💦 FULL SET: Changeset/ - Collection

Changeset 3200288


Ignore:
Timestamp:
12/01/2024 04:35:53 PM (13 months ago)
Author:
hasanuzzamanshamim
Message:

release version 1.0.4

Location:
buy-me-coffee
Files:
157 added
19 edited

Legend:

Unmodified
Added
Removed
  • buy-me-coffee/trunk/assets/js/Editor/gutenBlock.js

    r3044362 r3200288  
    77 * This source code is licensed under the MIT license found in the
    88 * LICENSE file in the root directory of this source tree.
    9  */var d=Symbol.for("react.element"),F=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),V=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),E=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=E&&e[E]||e["@@iterator"],typeof e=="function"?e:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,P={};function p(e,t,o){this.props=e,this.context=t,this.refs=P,this.updater=o||j}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I(){}I.prototype=p.prototype;function k(e,t,o){this.props=e,this.context=t,this.refs=P,this.updater=o||j}var w=k.prototype=new I;w.constructor=k;O(w,p.prototype);w.isPureReactComponent=!0;var R=Array.isArray,T=Object.prototype.hasOwnProperty,g={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,o){var r,u={},c=null,f=null;if(t!=null)for(r in t.ref!==void 0&&(f=t.ref),t.key!==void 0&&(c=""+t.key),t)T.call(t,r)&&!B.hasOwnProperty(r)&&(u[r]=t[r]);var s=arguments.length-2;if(s===1)u.children=o;else if(1<s){for(var i=Array(s),a=0;a<s;a++)i[a]=arguments[a+2];u.children=i}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)u[r]===void 0&&(u[r]=s[r]);return{$$typeof:d,type:e,key:c,ref:f,props:u,_owner:g.current}}function J(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function Y(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return t[o]})}var $=/\/+/g;function S(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Y(""+e.key):t.toString(36)}function v(e,t,o,r,u){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case d:case F:f=!0}}if(f)return f=e,u=u(f),e=r===""?"."+S(f,0):r,R(u)?(o="",e!=null&&(o=e.replace($,"$&/")+"/"),v(u,t,o,"",function(a){return a})):u!=null&&(x(u)&&(u=J(u,o+(!u.key||f&&f.key===u.key?"":(""+u.key).replace($,"$&/")+"/")+e)),t.push(u)),1;if(f=0,r=r===""?".":r+":",R(e))for(var s=0;s<e.length;s++){c=e[s];var i=r+S(c,s);f+=v(c,t,o,i,u)}else if(i=G(e),typeof i=="function")for(e=i.call(e),s=0;!(c=e.next()).done;)c=c.value,i=r+S(c,s++),f+=v(c,t,o,i,u);else if(c==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return f}function _(e,t,o){if(e==null)return e;var r=[],u=0;return v(e,r,"","",function(c){return t.call(o,c,u++)}),r}function K(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o)},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var l={current:null},h={transition:null},Q={ReactCurrentDispatcher:l,ReactCurrentBatchConfig:h,ReactCurrentOwner:g};n.Children={map:_,forEach:function(e,t,o){_(e,function(){t.apply(this,arguments)},o)},count:function(e){var t=0;return _(e,function(){t++}),t},toArray:function(e){return _(e,function(t){return t})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Component=p;n.Fragment=L;n.Profiler=A;n.PureComponent=k;n.StrictMode=U;n.Suspense=W;n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q;n.cloneElement=function(e,t,o){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=O({},e.props),u=e.key,c=e.ref,f=e._owner;if(t!=null){if(t.ref!==void 0&&(c=t.ref,f=g.current),t.key!==void 0&&(u=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(i in t)T.call(t,i)&&!B.hasOwnProperty(i)&&(r[i]=t[i]===void 0&&s!==void 0?s[i]:t[i])}var i=arguments.length-2;if(i===1)r.children=o;else if(1<i){s=Array(i);for(var a=0;a<i;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:d,type:e.type,key:u,ref:c,props:r,_owner:f}};n.createContext=function(e){return e={$$typeof:V,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:M,_context:e},e.Consumer=e};n.createElement=N;n.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t};n.createRef=function(){return{current:null}};n.forwardRef=function(e){return{$$typeof:q,render:e}};n.isValidElement=x;n.lazy=function(e){return{$$typeof:H,_payload:{_status:-1,_result:e},_init:K}};n.memo=function(e,t){return{$$typeof:z,type:e,compare:t===void 0?null:t}};n.startTransition=function(e){var t=h.transition;h.transition={};try{e()}finally{h.transition=t}};n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};n.useCallback=function(e,t){return l.current.useCallback(e,t)};n.useContext=function(e){return l.current.useContext(e)};n.useDebugValue=function(){};n.useDeferredValue=function(e){return l.current.useDeferredValue(e)};n.useEffect=function(e,t){return l.current.useEffect(e,t)};n.useId=function(){return l.current.useId()};n.useImperativeHandle=function(e,t,o){return l.current.useImperativeHandle(e,t,o)};n.useInsertionEffect=function(e,t){return l.current.useInsertionEffect(e,t)};n.useLayoutEffect=function(e,t){return l.current.useLayoutEffect(e,t)};n.useMemo=function(e,t){return l.current.useMemo(e,t)};n.useReducer=function(e,t,o){return l.current.useReducer(e,t,o)};n.useRef=function(e){return l.current.useRef(e)};n.useState=function(e){return l.current.useState(e)};n.useSyncExternalStore=function(e,t,o){return l.current.useSyncExternalStore(e,t,o)};n.useTransition=function(){return l.current.useTransition()};n.version="18.2.0";(function(e){e.exports=n})(C);/**
     9 */var d=Symbol.for("react.element"),L=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),q=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),H=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),E=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=E&&e[E]||e["@@iterator"],typeof e=="function"?e:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,P={};function p(e,t,o){this.props=e,this.context=t,this.refs=P,this.updater=o||j}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function I(){}I.prototype=p.prototype;function k(e,t,o){this.props=e,this.context=t,this.refs=P,this.updater=o||j}var w=k.prototype=new I;w.constructor=k;O(w,p.prototype);w.isPureReactComponent=!0;var R=Array.isArray,T=Object.prototype.hasOwnProperty,g={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,o){var r,u={},c=null,f=null;if(t!=null)for(r in t.ref!==void 0&&(f=t.ref),t.key!==void 0&&(c=""+t.key),t)T.call(t,r)&&!B.hasOwnProperty(r)&&(u[r]=t[r]);var s=arguments.length-2;if(s===1)u.children=o;else if(1<s){for(var i=Array(s),a=0;a<s;a++)i[a]=arguments[a+2];u.children=i}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)u[r]===void 0&&(u[r]=s[r]);return{$$typeof:d,type:e,key:c,ref:f,props:u,_owner:g.current}}function Y(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function K(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return t[o]})}var $=/\/+/g;function S(e,t){return typeof e=="object"&&e!==null&&e.key!=null?K(""+e.key):t.toString(36)}function v(e,t,o,r,u){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var f=!1;if(e===null)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case d:case L:f=!0}}if(f)return f=e,u=u(f),e=r===""?"."+S(f,0):r,R(u)?(o="",e!=null&&(o=e.replace($,"$&/")+"/"),v(u,t,o,"",function(a){return a})):u!=null&&(x(u)&&(u=Y(u,o+(!u.key||f&&f.key===u.key?"":(""+u.key).replace($,"$&/")+"/")+e)),t.push(u)),1;if(f=0,r=r===""?".":r+":",R(e))for(var s=0;s<e.length;s++){c=e[s];var i=r+S(c,s);f+=v(c,t,o,i,u)}else if(i=J(e),typeof i=="function")for(e=i.call(e),s=0;!(c=e.next()).done;)c=c.value,i=r+S(c,s++),f+=v(c,t,o,i,u);else if(c==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return f}function _(e,t,o){if(e==null)return e;var r=[],u=0;return v(e,r,"","",function(c){return t.call(o,c,u++)}),r}function Q(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o)},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var l={current:null},h={transition:null},X={ReactCurrentDispatcher:l,ReactCurrentBatchConfig:h,ReactCurrentOwner:g};function D(){throw Error("act(...) is not supported in production builds of React.")}n.Children={map:_,forEach:function(e,t,o){_(e,function(){t.apply(this,arguments)},o)},count:function(e){var t=0;return _(e,function(){t++}),t},toArray:function(e){return _(e,function(t){return t})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Component=p;n.Fragment=U;n.Profiler=M;n.PureComponent=k;n.StrictMode=A;n.Suspense=z;n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X;n.act=D;n.cloneElement=function(e,t,o){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=O({},e.props),u=e.key,c=e.ref,f=e._owner;if(t!=null){if(t.ref!==void 0&&(c=t.ref,f=g.current),t.key!==void 0&&(u=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(i in t)T.call(t,i)&&!B.hasOwnProperty(i)&&(r[i]=t[i]===void 0&&s!==void 0?s[i]:t[i])}var i=arguments.length-2;if(i===1)r.children=o;else if(1<i){s=Array(i);for(var a=0;a<i;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:d,type:e.type,key:u,ref:c,props:r,_owner:f}};n.createContext=function(e){return e={$$typeof:q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:V,_context:e},e.Consumer=e};n.createElement=N;n.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t};n.createRef=function(){return{current:null}};n.forwardRef=function(e){return{$$typeof:W,render:e}};n.isValidElement=x;n.lazy=function(e){return{$$typeof:G,_payload:{_status:-1,_result:e},_init:Q}};n.memo=function(e,t){return{$$typeof:H,type:e,compare:t===void 0?null:t}};n.startTransition=function(e){var t=h.transition;h.transition={};try{e()}finally{h.transition=t}};n.unstable_act=D;n.useCallback=function(e,t){return l.current.useCallback(e,t)};n.useContext=function(e){return l.current.useContext(e)};n.useDebugValue=function(){};n.useDeferredValue=function(e){return l.current.useDeferredValue(e)};n.useEffect=function(e,t){return l.current.useEffect(e,t)};n.useId=function(){return l.current.useId()};n.useImperativeHandle=function(e,t,o){return l.current.useImperativeHandle(e,t,o)};n.useInsertionEffect=function(e,t){return l.current.useInsertionEffect(e,t)};n.useLayoutEffect=function(e,t){return l.current.useLayoutEffect(e,t)};n.useMemo=function(e,t){return l.current.useMemo(e,t)};n.useReducer=function(e,t,o){return l.current.useReducer(e,t,o)};n.useRef=function(e){return l.current.useRef(e)};n.useState=function(e){return l.current.useState(e)};n.useSyncExternalStore=function(e,t,o){return l.current.useSyncExternalStore(e,t,o)};n.useTransition=function(){return l.current.useTransition()};n.version="18.3.1";(function(e){e.exports=n})(C);/**
    1010 * @license React
    1111 * react-jsx-runtime.production.min.js
     
    1515 * This source code is licensed under the MIT license found in the
    1616 * LICENSE file in the root directory of this source tree.
    17  */var X=C.exports,Z=Symbol.for("react.element"),ee=Symbol.for("react.fragment"),te=Object.prototype.hasOwnProperty,re=X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ne={key:!0,ref:!0,__self:!0,__source:!0};function D(e,t,o){var r,u={},c=null,f=null;o!==void 0&&(c=""+o),t.key!==void 0&&(c=""+t.key),t.ref!==void 0&&(f=t.ref);for(r in t)te.call(t,r)&&!ne.hasOwnProperty(r)&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)u[r]===void 0&&(u[r]=t[r]);return{$$typeof:Z,type:e,key:c,ref:f,props:u,_owner:re.current}}b.Fragment=ee;b.jsx=D;b.jsxs=D;(function(e){e.exports=b})(m);console.log("buymecoffee-gutenberg-block");const{__:y}=wp.i18n,{registerBlockType:oe}=wp.blocks,{SelectControl:ue}=wp.components;oe("buymecoffee/guten-block",{title:y("Buy Me Coffee"),icon:"coffee",category:"formatting",keywords:[y("Buy Me Coffee"),y("Gutenberg Block"),y("buymecoffee-gutenberg-block")],attributes:{widget:{value:"buymecoffee_button",type:"string"}},edit({attributes:e,setAttributes:t}){const o={widgets:[{value:"buymecoffee_button",text:"Button"},{value:"buymecoffee_form",text:"Form"},{value:"buymecoffee_basic",text:"Basic full template"}]};return m.exports.jsxs("div",{className:"buymecoffee-guten-wrapper",style:{padding:"23px",border:"1px solid #ccc"},children:[m.exports.jsx("div",{className:"buymecoffee-logo",children:"Buy Me Coffee"}),m.exports.jsx(ue,{label:y("Select a Widget"),value:e.widget,options:o.widgets.map(r=>({value:r.value,label:r.text})),onChange:r=>t({widget:r})})]})},save({attributes:e}){return"["+e.widget+"]"}});
     17 */var Z=C.exports,ee=Symbol.for("react.element"),te=Symbol.for("react.fragment"),re=Object.prototype.hasOwnProperty,ne=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,o){var r,u={},c=null,f=null;o!==void 0&&(c=""+o),t.key!==void 0&&(c=""+t.key),t.ref!==void 0&&(f=t.ref);for(r in t)re.call(t,r)&&!oe.hasOwnProperty(r)&&(u[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)u[r]===void 0&&(u[r]=t[r]);return{$$typeof:ee,type:e,key:c,ref:f,props:u,_owner:ne.current}}b.Fragment=te;b.jsx=F;b.jsxs=F;(function(e){e.exports=b})(m);console.log("buymecoffee-gutenberg-block");const{__:y}=wp.i18n,{registerBlockType:ue}=wp.blocks,{SelectControl:ce}=wp.components;ue("buymecoffee/guten-block",{title:y("Buy Me Coffee"),icon:"coffee",category:"formatting",keywords:[y("Buy Me Coffee"),y("Gutenberg Block"),y("buymecoffee-gutenberg-block")],attributes:{widget:{value:"buymecoffee_button",type:"string"}},edit({attributes:e,setAttributes:t}){const o={widgets:[{value:"buymecoffee_button",text:"Button"},{value:"buymecoffee_form",text:"Form"},{value:"buymecoffee_basic",text:"Basic full template"}]};return m.exports.jsxs("div",{className:"buymecoffee-guten-wrapper",style:{padding:"23px",border:"1px solid #ccc"},children:[m.exports.jsx("div",{className:"buymecoffee-logo",children:"Buy Me Coffee"}),m.exports.jsx(ce,{label:y("Select a Widget"),value:e.widget,options:o.widgets.map(r=>({value:r.value,label:r.text})),onChange:r=>t({widget:r})})]})},save({attributes:e}){return"["+e.widget+"]"}});
  • buy-me-coffee/trunk/assets/js/PaymentMethods/paypal-checkout.js

    r3046504 r3200288  
    1 class u{constructor(t,a){this.form=t,this.data=a.data}init(){var a;this.form.find(".wpm_submit_button, .buymecoffee_pay_method").hide();let t=jQuery("<div style='padding: 0px;'></div>");paypal.Buttons({fundingSource:paypal.FUNDING.PAYPAL,style:{shape:"pill",layout:"vertical",label:"paypal",size:"responsive",disableMaxWidth:!0},createOrder:(o,r)=>r.order.create({purchase_units:[this.data.purchase_units]}),onApprove:(o,r)=>r.order.capture().then(i=>{var p=i==null?void 0:i.purchase_units[0].payments.captures[0];jQuery.post(window.buymecoffee_general.ajax_url,{action:"buymecoffee_payment_confirmation_paypal",hash:this.data.hash,charge_id:p.id}).then(c=>{var e;window.location=(e=this.data)==null?void 0:e.confirmation_url}).catch(c=>{var e;window.location=(e=this.data)==null?void 0:e.confirmation_url})}),onError:function(o){alert("An error occurred: "+o)}}).render(t[0]),this.form.find(".buymecoffee_form_submit_wrapper, .buymecoffee_no_signup, .buymecoffee_input_content, .buymecoffee_payment_input_content").hide(),(a=this.form.find(".buymecoffee_pay_methods"))==null||a.parent().append(t),this.form.prepend("<p class='complete_payment_instruction'>Please complete your donation with PayPal \u{1F447}</p>")}}window.addEventListener("buymecoffee_payment_next_action_paypal",function(n){new u(n.detail.form,n.detail.response).init()});
     1class s{constructor(t,a){this.form=t,this.data=a.data}init(){var a;this.form.find(".wpm_submit_button, .buymecoffee_pay_method").hide();let t=jQuery("<div class='buymecoffee_paypal_button_wrap' style='padding: 0px;'></div>");paypal.Buttons({fundingSource:paypal.FUNDING.PAYPAL,style:{shape:"pill",layout:"vertical",label:"paypal",size:"responsive",disableMaxWidth:!0},createOrder:(i,r)=>r.order.create({purchase_units:[this.data.purchase_units]}),onApprove:(i,r)=>r.order.capture().then(n=>{var p=n==null?void 0:n.purchase_units[0].payments.captures[0];window.myform=this.form,this.form.find(".buymecoffee_paypal_button_wrap").hide(),this.form.find(".complete_payment_instruction").html("Please wait, payment is being confirmed..."),jQuery.post(window.buymecoffee_general.ajax_url,{action:"buymecoffee_payment_confirmation_paypal",hash:this.data.hash,charge_id:n.id,transaction_id:p.id}).then(c=>{var e;window.location=(e=this.data)==null?void 0:e.confirmation_url}).catch(c=>{var e;window.location=(e=this.data)==null?void 0:e.confirmation_url})}),onError:function(i){alert("An error occurred: "+i)}}).render(t[0]),this.form.find(".buymecoffee_form_submit_wrapper, .buymecoffee_no_signup, .buymecoffee_input_content, .buymecoffee_payment_input_content").hide(),(a=this.form.find(".buymecoffee_pay_methods"))==null||a.parent().append(t),this.form.prepend("<p class='complete_payment_instruction'>Please complete your donation with PayPal \u{1F447}</p>")}}window.addEventListener("buymecoffee_payment_next_action_paypal",function(o){new s(o.detail.form,o.detail.response).init()});
  • buy-me-coffee/trunk/assets/js/plugin-main-js-file.js

    r3141609 r3200288  
    1 var vv=Object.defineProperty;var bv=(e,t,n)=>t in e?vv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ae=(e,t,n)=>(bv(e,typeof t!="symbol"?t+"":t,n),n);import{i as ot,a as _v,b as Ln,g as ga,r as Ao,d as gu,c as Ah,e as Rh,f as Lh,h as sc,j as ic,k as no,l as Ki,m as wv,n as rn,S as Cs,L as rc,M as Xr,o as $h,t as zs,p as Ih,q as ac,s as Fh,u as Dt,v as Dh,w as xv,x as Sv,y as Cv,z as kv,A as Vs,C as vn,D as ss,E as P,F as rl,G as De,H as se,I as b,J as Be,K as Co,N as Pt,O as $n,P as Eo,Q as he,R as Ev,T as ws,U as Mv,V as lc,W as Pv,X as Qr,Y as Bh,Z as ye,_ as mt,$ as Nt,a0 as bn,a1 as A,a2 as Zo,a3 as Tv,a4 as Nh,a5 as we,a6 as on,a7 as cc,a8 as ke,a9 as He,aa as rt,ab as is,ac as ao,ad as Y,ae as Ov,af as me,ag as Av,ah as nn,ai as qi,aj as st,ak as Ht,al as lo,am as M,an as N,ao as R,ap as ve,aq as ma,ar as In,as as L,at as Ge,au as xe,av as Hs,aw as Rv,ax as F,ay as q,az as Ke,aA as Te,aB as fe,aC as ce,aD as X,aE as E,aF as Lv,aG as Or,aH as dt,aI as un,aJ as yt,aK as $v,aL as We,aM as Et,aN as $e,aO as On,aP as zh,aQ as et,aR as Vh,aS as uc,aT as Iv,aU as wn,aV as Mo,aW as Fv,aX as Hh,aY as Wh,aZ as jh,a_ as oo,a$ as Uh,b0 as Dv,b1 as Bv,b2 as Nv,b3 as zv,b4 as Vv,b5 as dc,b6 as Po,b7 as ks,b8 as Jr,b9 as Kh,ba as Mi,bb as so,bc as Lt,bd as Wt,be as ft,bf as fc,bg as Ce,bh as Qs,bi as Aa,bj as Hv,bk as Me,bl as ds,bm as Wv,bn as jv,bo as qh,bp as mu,bq as Yh,br as Gh,bs as va,bt as Uv,bu as Kv,bv as qv,bw as Yv,bx as vu,by as Gv,bz as Xv,bA as Qv,bB as Jv,bC as bu,bD as Xh,bE as Qh,bF as Zr,bG as Jh,bH as Zv,bI as ea,bJ as eb,bK as Zh,bL as ep,bM as tp,bN as Yi,bO as Gi,bP as tb,bQ as nb,bR as ob,bS as sb,bT as ib,bU as rb,B as ab}from"../plugin_main_js_file.js";var LN=yv((Qt,Jt)=>{const lb='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',cb=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,yu=e=>Array.from(e.querySelectorAll(lb)).filter(t=>ub(t)&&cb(t)),ub=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Xn=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const i=e==null?void 0:e(s);if(n===!1||!i)return t==null?void 0:t(s)},db=()=>ot&&/firefox/i.test(window.navigator.userAgent),hc=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var fb=/\s/;function hb(e){for(var t=e.length;t--&&fb.test(e.charAt(t)););return t}var pb=/^\s+/;function gb(e){return e&&e.slice(0,hb(e)+1).replace(pb,"")}var _u=0/0,mb=/^[-+]0x[0-9a-f]+$/i,vb=/^0b[01]+$/i,bb=/^0o[0-7]+$/i,yb=parseInt;function al(e){if(typeof e=="number")return e;if(_v(e))return _u;if(Ln(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ln(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gb(e);var n=vb.test(e);return n||bb.test(e)?yb(e.slice(2),n?2:8):mb.test(e)?_u:+e}var wu=1/0,_b=17976931348623157e292;function wb(e){if(!e)return e===0?e:0;if(e=al(e),e===wu||e===-wu){var t=e<0?-1:1;return t*_b}return e===e?e:0}function xb(e){var t=wb(e),n=t%1;return t===t?n?t-n:t:0}function pc(e){return e}var Sb=ga(Ao,"WeakMap");const ll=Sb;var xu=Object.create,Cb=function(){function e(){}return function(t){if(!Ln(t))return{};if(xu)return xu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const kb=Cb;function Eb(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function np(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var Mb=800,Pb=16,Tb=Date.now;function Ob(e){var t=0,n=0;return function(){var o=Tb(),s=Pb-(o-n);if(n=o,s>0){if(++t>=Mb)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ab(e){return function(){return e}}var Rb=gu?function(e,t){return gu(e,"toString",{configurable:!0,enumerable:!1,value:Ab(t),writable:!0})}:pc;const Lb=Rb;var $b=Ob(Lb);const op=$b;function Ib(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function Fb(e,t,n,o){for(var s=e.length,i=n+(o?1:-1);o?i--:++i<s;)if(t(e[i],i,e))return i;return-1}function Xi(e,t,n,o){var s=!n;n||(n={});for(var i=-1,r=t.length;++i<r;){var a=t[i],l=o?o(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),s?Ah(n,a,l):Rh(n,a,l)}return n}var Su=Math.max;function sp(e,t,n){return t=Su(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,i=Su(o.length-t,0),r=Array(i);++s<i;)r[s]=o[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=o[s];return a[t]=n(r),Eb(e,this,a)}}function Db(e,t){return op(sp(e,t,pc),e+"")}var Bb=9007199254740991;function gc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bb}function Ws(e){return e!=null&&gc(e.length)&&!Lh(e)}function Nb(e,t,n){if(!Ln(n))return!1;var o=typeof t;return(o=="number"?Ws(n)&&sc(t,n.length):o=="string"&&t in n)?ic(n[t],e):!1}function zb(e){return Db(function(t,n){var o=-1,s=n.length,i=s>1?n[s-1]:void 0,r=s>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(s--,i):void 0,r&&Nb(n[0],n[1],r)&&(i=s<3?void 0:i,s=1),t=Object(t);++o<s;){var a=n[o];a&&e(t,a,o,i)}return t})}var Vb=Object.prototype;function mc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Vb;return e===n}function Hb(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Wb="[object Arguments]";function Cu(e){return no(e)&&Ki(e)==Wb}var ip=Object.prototype,jb=ip.hasOwnProperty,Ub=ip.propertyIsEnumerable,Kb=Cu(function(){return arguments}())?Cu:function(e){return no(e)&&jb.call(e,"callee")&&!Ub.call(e,"callee")};const Pi=Kb;function qb(){return!1}var rp=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,ku=rp&&typeof Jt=="object"&&Jt&&!Jt.nodeType&&Jt,Yb=ku&&ku.exports===rp,Eu=Yb?Ao.Buffer:void 0,Gb=Eu?Eu.isBuffer:void 0,Xb=Gb||qb;const Ti=Xb;var Qb="[object Arguments]",Jb="[object Array]",Zb="[object Boolean]",ey="[object Date]",ty="[object Error]",ny="[object Function]",oy="[object Map]",sy="[object Number]",iy="[object Object]",ry="[object RegExp]",ay="[object Set]",ly="[object String]",cy="[object WeakMap]",uy="[object ArrayBuffer]",dy="[object DataView]",fy="[object Float32Array]",hy="[object Float64Array]",py="[object Int8Array]",gy="[object Int16Array]",my="[object Int32Array]",vy="[object Uint8Array]",by="[object Uint8ClampedArray]",yy="[object Uint16Array]",_y="[object Uint32Array]",Ze={};Ze[fy]=Ze[hy]=Ze[py]=Ze[gy]=Ze[my]=Ze[vy]=Ze[by]=Ze[yy]=Ze[_y]=!0;Ze[Qb]=Ze[Jb]=Ze[uy]=Ze[Zb]=Ze[dy]=Ze[ey]=Ze[ty]=Ze[ny]=Ze[oy]=Ze[sy]=Ze[iy]=Ze[ry]=Ze[ay]=Ze[ly]=Ze[cy]=!1;function wy(e){return no(e)&&gc(e.length)&&!!Ze[Ki(e)]}function vc(e){return function(t){return e(t)}}var ap=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,hi=ap&&typeof Jt=="object"&&Jt&&!Jt.nodeType&&Jt,xy=hi&&hi.exports===ap,Ra=xy&&wv.process,Sy=function(){try{var e=hi&&hi.require&&hi.require("util").types;return e||Ra&&Ra.binding&&Ra.binding("util")}catch{}}();const Es=Sy;var Mu=Es&&Es.isTypedArray,Cy=Mu?vc(Mu):wy;const bc=Cy;var ky=Object.prototype,Ey=ky.hasOwnProperty;function lp(e,t){var n=rn(e),o=!n&&Pi(e),s=!n&&!o&&Ti(e),i=!n&&!o&&!s&&bc(e),r=n||o||s||i,a=r?Hb(e.length,String):[],l=a.length;for(var c in e)(t||Ey.call(e,c))&&!(r&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||sc(c,l)))&&a.push(c);return a}function cp(e,t){return function(n){return e(t(n))}}var My=cp(Object.keys,Object);const Py=My;var Ty=Object.prototype,Oy=Ty.hasOwnProperty;function Ay(e){if(!mc(e))return Py(e);var t=[];for(var n in Object(e))Oy.call(e,n)&&n!="constructor"&&t.push(n);return t}function Qi(e){return Ws(e)?lp(e):Ay(e)}function Ry(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Ly=Object.prototype,$y=Ly.hasOwnProperty;function Iy(e){if(!Ln(e))return Ry(e);var t=mc(e),n=[];for(var o in e)o=="constructor"&&(t||!$y.call(e,o))||n.push(o);return n}function Ji(e){return Ws(e)?lp(e,!0):Iy(e)}function yc(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var Pu=Cs?Cs.isConcatSpreadable:void 0;function Fy(e){return rn(e)||Pi(e)||!!(Pu&&e&&e[Pu])}function _c(e,t,n,o,s){var i=-1,r=e.length;for(n||(n=Fy),s||(s=[]);++i<r;){var a=e[i];t>0&&n(a)?t>1?_c(a,t-1,n,o,s):yc(s,a):o||(s[s.length]=a)}return s}function Dy(e){var t=e==null?0:e.length;return t?_c(e,1):[]}function By(e){return op(sp(e,void 0,Dy),e+"")}var Ny=cp(Object.getPrototypeOf,Object);const wc=Ny;var zy="[object Object]",Vy=Function.prototype,Hy=Object.prototype,up=Vy.toString,Wy=Hy.hasOwnProperty,jy=up.call(Object);function Uy(e){if(!no(e)||Ki(e)!=zy)return!1;var t=wc(e);if(t===null)return!0;var n=Wy.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&up.call(n)==jy}function cl(){if(!arguments.length)return[];var e=arguments[0];return rn(e)?e:[e]}function Ky(){this.__data__=new rc,this.size=0}function qy(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yy(e){return this.__data__.get(e)}function Gy(e){return this.__data__.has(e)}var Xy=200;function Qy(e,t){var n=this.__data__;if(n instanceof rc){var o=n.__data__;if(!Xr||o.length<Xy-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $h(o)}return n.set(e,t),this.size=n.size,this}function yn(e){var t=this.__data__=new rc(e);this.size=t.size}yn.prototype.clear=Ky;yn.prototype.delete=qy;yn.prototype.get=Yy;yn.prototype.has=Gy;yn.prototype.set=Qy;function Jy(e,t){return e&&Xi(t,Qi(t),e)}function Zy(e,t){return e&&Xi(t,Ji(t),e)}var dp=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,Tu=dp&&typeof Jt=="object"&&Jt&&!Jt.nodeType&&Jt,e0=Tu&&Tu.exports===dp,Ou=e0?Ao.Buffer:void 0,Au=Ou?Ou.allocUnsafe:void 0;function fp(e,t){if(t)return e.slice();var n=e.length,o=Au?Au(n):new e.constructor(n);return e.copy(o),o}function t0(e,t){for(var n=-1,o=e==null?0:e.length,s=0,i=[];++n<o;){var r=e[n];t(r,n,e)&&(i[s++]=r)}return i}function hp(){return[]}var n0=Object.prototype,o0=n0.propertyIsEnumerable,Ru=Object.getOwnPropertySymbols,s0=Ru?function(e){return e==null?[]:(e=Object(e),t0(Ru(e),function(t){return o0.call(e,t)}))}:hp;const xc=s0;function i0(e,t){return Xi(e,xc(e),t)}var r0=Object.getOwnPropertySymbols,a0=r0?function(e){for(var t=[];e;)yc(t,xc(e)),e=wc(e);return t}:hp;const pp=a0;function l0(e,t){return Xi(e,pp(e),t)}function gp(e,t,n){var o=t(e);return rn(e)?o:yc(o,n(e))}function ul(e){return gp(e,Qi,xc)}function c0(e){return gp(e,Ji,pp)}var u0=ga(Ao,"DataView");const dl=u0;var d0=ga(Ao,"Promise");const fl=d0;var f0=ga(Ao,"Set");const hl=f0;var Lu="[object Map]",h0="[object Object]",$u="[object Promise]",Iu="[object Set]",Fu="[object WeakMap]",Du="[object DataView]",p0=zs(dl),g0=zs(Xr),m0=zs(fl),v0=zs(hl),b0=zs(ll),jo=Ki;(dl&&jo(new dl(new ArrayBuffer(1)))!=Du||Xr&&jo(new Xr)!=Lu||fl&&jo(fl.resolve())!=$u||hl&&jo(new hl)!=Iu||ll&&jo(new ll)!=Fu)&&(jo=function(e){var t=Ki(e),n=t==h0?e.constructor:void 0,o=n?zs(n):"";if(o)switch(o){case p0:return Du;case g0:return Lu;case m0:return $u;case v0:return Iu;case b0:return Fu}return t});const Oi=jo;var y0=Object.prototype,_0=y0.hasOwnProperty;function w0(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&_0.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var x0=Ao.Uint8Array;const ta=x0;function Sc(e){var t=new e.constructor(e.byteLength);return new ta(t).set(new ta(e)),t}function S0(e,t){var n=t?Sc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var C0=/\w*$/;function k0(e){var t=new e.constructor(e.source,C0.exec(e));return t.lastIndex=e.lastIndex,t}var Bu=Cs?Cs.prototype:void 0,Nu=Bu?Bu.valueOf:void 0;function E0(e){return Nu?Object(Nu.call(e)):{}}function mp(e,t){var n=t?Sc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var M0="[object Boolean]",P0="[object Date]",T0="[object Map]",O0="[object Number]",A0="[object RegExp]",R0="[object Set]",L0="[object String]",$0="[object Symbol]",I0="[object ArrayBuffer]",F0="[object DataView]",D0="[object Float32Array]",B0="[object Float64Array]",N0="[object Int8Array]",z0="[object Int16Array]",V0="[object Int32Array]",H0="[object Uint8Array]",W0="[object Uint8ClampedArray]",j0="[object Uint16Array]",U0="[object Uint32Array]";function K0(e,t,n){var o=e.constructor;switch(t){case I0:return Sc(e);case M0:case P0:return new o(+e);case F0:return S0(e,n);case D0:case B0:case N0:case z0:case V0:case H0:case W0:case j0:case U0:return mp(e,n);case T0:return new o;case O0:case L0:return new o(e);case A0:return k0(e);case R0:return new o;case $0:return E0(e)}}function vp(e){return typeof e.constructor=="function"&&!mc(e)?kb(wc(e)):{}}var q0="[object Map]";function Y0(e){return no(e)&&Oi(e)==q0}var zu=Es&&Es.isMap,G0=zu?vc(zu):Y0;const X0=G0;var Q0="[object Set]";function J0(e){return no(e)&&Oi(e)==Q0}var Vu=Es&&Es.isSet,Z0=Vu?vc(Vu):J0;const e_=Z0;var t_=1,n_=2,o_=4,bp="[object Arguments]",s_="[object Array]",i_="[object Boolean]",r_="[object Date]",a_="[object Error]",yp="[object Function]",l_="[object GeneratorFunction]",c_="[object Map]",u_="[object Number]",_p="[object Object]",d_="[object RegExp]",f_="[object Set]",h_="[object String]",p_="[object Symbol]",g_="[object WeakMap]",m_="[object ArrayBuffer]",v_="[object DataView]",b_="[object Float32Array]",y_="[object Float64Array]",__="[object Int8Array]",w_="[object Int16Array]",x_="[object Int32Array]",S_="[object Uint8Array]",C_="[object Uint8ClampedArray]",k_="[object Uint16Array]",E_="[object Uint32Array]",Xe={};Xe[bp]=Xe[s_]=Xe[m_]=Xe[v_]=Xe[i_]=Xe[r_]=Xe[b_]=Xe[y_]=Xe[__]=Xe[w_]=Xe[x_]=Xe[c_]=Xe[u_]=Xe[_p]=Xe[d_]=Xe[f_]=Xe[h_]=Xe[p_]=Xe[S_]=Xe[C_]=Xe[k_]=Xe[E_]=!0;Xe[a_]=Xe[yp]=Xe[g_]=!1;function Ar(e,t,n,o,s,i){var r,a=t&t_,l=t&n_,c=t&o_;if(n&&(r=s?n(e,o,s,i):n(e)),r!==void 0)return r;if(!Ln(e))return e;var u=rn(e);if(u){if(r=w0(e),!a)return np(e,r)}else{var d=Oi(e),f=d==yp||d==l_;if(Ti(e))return fp(e,a);if(d==_p||d==bp||f&&!s){if(r=l||f?{}:vp(e),!a)return l?l0(e,Zy(r,e)):i0(e,Jy(r,e))}else{if(!Xe[d])return s?e:{};r=K0(e,d,a)}}i||(i=new yn);var p=i.get(e);if(p)return p;i.set(e,r),e_(e)?e.forEach(function(v){r.add(Ar(v,t,n,v,e,i))}):X0(e)&&e.forEach(function(v,m){r.set(m,Ar(v,t,n,m,e,i))});var g=c?l?c0:ul:l?Ji:Qi,h=u?void 0:g(e);return Ib(h||e,function(v,m){h&&(m=v,v=e[m]),Rh(r,m,Ar(v,t,n,m,e,i))}),r}var M_=4;function Hu(e){return Ar(e,M_)}var P_="__lodash_hash_undefined__";function T_(e){return this.__data__.set(e,P_),this}function O_(e){return this.__data__.has(e)}function na(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $h;++t<n;)this.add(e[t])}na.prototype.add=na.prototype.push=T_;na.prototype.has=O_;function A_(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function R_(e,t){return e.has(t)}var L_=1,$_=2;function wp(e,t,n,o,s,i){var r=n&L_,a=e.length,l=t.length;if(a!=l&&!(r&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&$_?new na:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var g=e[d],h=t[d];if(o)var v=r?o(h,g,d,t,e,i):o(g,h,d,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!A_(t,function(m,y){if(!R_(p,y)&&(g===m||s(g,m,n,o,i)))return p.push(y)})){f=!1;break}}else if(!(g===h||s(g,h,n,o,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function I_(e){var t=-1,n=Array(e.size);return e.forEach(function(o,s){n[++t]=[s,o]}),n}function F_(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var D_=1,B_=2,N_="[object Boolean]",z_="[object Date]",V_="[object Error]",H_="[object Map]",W_="[object Number]",j_="[object RegExp]",U_="[object Set]",K_="[object String]",q_="[object Symbol]",Y_="[object ArrayBuffer]",G_="[object DataView]",Wu=Cs?Cs.prototype:void 0,La=Wu?Wu.valueOf:void 0;function X_(e,t,n,o,s,i,r){switch(n){case G_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Y_:return!(e.byteLength!=t.byteLength||!i(new ta(e),new ta(t)));case N_:case z_:case W_:return ic(+e,+t);case V_:return e.name==t.name&&e.message==t.message;case j_:case K_:return e==t+"";case H_:var a=I_;case U_:var l=o&D_;if(a||(a=F_),e.size!=t.size&&!l)return!1;var c=r.get(e);if(c)return c==t;o|=B_,r.set(e,t);var u=wp(a(e),a(t),o,s,i,r);return r.delete(e),u;case q_:if(La)return La.call(e)==La.call(t)}return!1}var Q_=1,J_=Object.prototype,Z_=J_.hasOwnProperty;function ew(e,t,n,o,s,i){var r=n&Q_,a=ul(e),l=a.length,c=ul(t),u=c.length;if(l!=u&&!r)return!1;for(var d=l;d--;){var f=a[d];if(!(r?f in t:Z_.call(t,f)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var h=!0;i.set(e,t),i.set(t,e);for(var v=r;++d<l;){f=a[d];var m=e[f],y=t[f];if(o)var w=r?o(y,m,f,t,e,i):o(m,y,f,e,t,i);if(!(w===void 0?m===y||s(m,y,n,o,i):w)){h=!1;break}v||(v=f=="constructor")}if(h&&!v){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof x=="function"&&x instanceof x)&&(h=!1)}return i.delete(e),i.delete(t),h}var tw=1,ju="[object Arguments]",Uu="[object Array]",ir="[object Object]",nw=Object.prototype,Ku=nw.hasOwnProperty;function ow(e,t,n,o,s,i){var r=rn(e),a=rn(t),l=r?Uu:Oi(e),c=a?Uu:Oi(t);l=l==ju?ir:l,c=c==ju?ir:c;var u=l==ir,d=c==ir,f=l==c;if(f&&Ti(e)){if(!Ti(t))return!1;r=!0,u=!1}if(f&&!u)return i||(i=new yn),r||bc(e)?wp(e,t,n,o,s,i):X_(e,t,l,n,o,s,i);if(!(n&tw)){var p=u&&Ku.call(e,"__wrapped__"),g=d&&Ku.call(t,"__wrapped__");if(p||g){var h=p?e.value():e,v=g?t.value():t;return i||(i=new yn),s(h,v,n,o,i)}}return f?(i||(i=new yn),ew(e,t,n,o,s,i)):!1}function ba(e,t,n,o,s){return e===t?!0:e==null||t==null||!no(e)&&!no(t)?e!==e&&t!==t:ow(e,t,n,o,ba,s)}var sw=1,iw=2;function rw(e,t,n,o){var s=n.length,i=s,r=!o;if(e==null)return!i;for(e=Object(e);s--;){var a=n[s];if(r&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++s<i;){a=n[s];var l=a[0],c=e[l],u=a[1];if(r&&a[2]){if(c===void 0&&!(l in e))return!1}else{var d=new yn;if(o)var f=o(c,u,l,e,t,d);if(!(f===void 0?ba(u,c,sw|iw,o,d):f))return!1}}return!0}function xp(e){return e===e&&!Ln(e)}function aw(e){for(var t=Qi(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,xp(s)]}return t}function Sp(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function lw(e){var t=aw(e);return t.length==1&&t[0][2]?Sp(t[0][0],t[0][1]):function(n){return n===e||rw(n,e,t)}}function cw(e,t){return e!=null&&t in Object(e)}function uw(e,t,n){t=Ih(t,e);for(var o=-1,s=t.length,i=!1;++o<s;){var r=ac(t[o]);if(!(i=e!=null&&n(e,r)))break;e=e[r]}return i||++o!=s?i:(s=e==null?0:e.length,!!s&&gc(s)&&sc(r,s)&&(rn(e)||Pi(e)))}function Cp(e,t){return e!=null&&uw(e,t,cw)}var dw=1,fw=2;function hw(e,t){return Fh(e)&&xp(t)?Sp(ac(e),t):function(n){var o=Dt(n,e);return o===void 0&&o===t?Cp(n,e):ba(t,o,dw|fw)}}function pw(e){return function(t){return t==null?void 0:t[e]}}function gw(e){return function(t){return Dh(t,e)}}function mw(e){return Fh(e)?pw(ac(e)):gw(e)}function kp(e){return typeof e=="function"?e:e==null?pc:typeof e=="object"?rn(e)?hw(e[0],e[1]):lw(e):mw(e)}function vw(e){return function(t,n,o){for(var s=-1,i=Object(t),r=o(t),a=r.length;a--;){var l=r[e?a:++s];if(n(i[l],l,i)===!1)break}return t}}var bw=vw();const Ep=bw;function yw(e,t){return e&&Ep(e,t,Qi)}function _w(e,t){return function(n,o){if(n==null)return n;if(!Ws(n))return e(n,o);for(var s=n.length,i=t?s:-1,r=Object(n);(t?i--:++i<s)&&o(r[i],i,r)!==!1;);return n}}var ww=_w(yw);const xw=ww;var Sw=function(){return Ao.Date.now()};const $a=Sw;var Cw="Expected a function",kw=Math.max,Ew=Math.min;function rs(e,t,n){var o,s,i,r,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Cw);t=al(t)||0,Ln(n)&&(u=!!n.leading,d="maxWait"in n,i=d?kw(al(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function p(S){var C=o,k=s;return o=s=void 0,c=S,r=e.apply(k,C),r}function g(S){return c=S,a=setTimeout(m,t),u?p(S):r}function h(S){var C=S-l,k=S-c,T=t-C;return d?Ew(T,i-k):T}function v(S){var C=S-l,k=S-c;return l===void 0||C>=t||C<0||d&&k>=i}function m(){var S=$a();if(v(S))return y(S);a=setTimeout(m,h(S))}function y(S){return a=void 0,f&&o?p(S):(o=s=void 0,r)}function w(){a!==void 0&&clearTimeout(a),c=0,o=l=s=a=void 0}function _(){return a===void 0?r:y($a())}function x(){var S=$a(),C=v(S);if(o=arguments,s=this,l=S,C){if(a===void 0)return g(l);if(d)return clearTimeout(a),a=setTimeout(m,t),p(l)}return a===void 0&&(a=setTimeout(m,t)),r}return x.cancel=w,x.flush=_,x}function pl(e,t,n){(n!==void 0&&!ic(e[t],n)||n===void 0&&!(t in e))&&Ah(e,t,n)}function Mw(e){return no(e)&&Ws(e)}function gl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Pw(e){return Xi(e,Ji(e))}function Tw(e,t,n,o,s,i,r){var a=gl(e,n),l=gl(t,n),c=r.get(l);if(c){pl(e,n,c);return}var u=i?i(a,l,n+"",e,t,r):void 0,d=u===void 0;if(d){var f=rn(l),p=!f&&Ti(l),g=!f&&!p&&bc(l);u=l,f||p||g?rn(a)?u=a:Mw(a)?u=np(a):p?(d=!1,u=fp(l,!0)):g?(d=!1,u=mp(l,!0)):u=[]:Uy(l)||Pi(l)?(u=a,Pi(a)?u=Pw(a):(!Ln(a)||Lh(a))&&(u=vp(l))):d=!1}d&&(r.set(l,u),s(u,l,o,i,r),r.delete(l)),pl(e,n,u)}function Mp(e,t,n,o,s){e!==t&&Ep(t,function(i,r){if(s||(s=new yn),Ln(i))Tw(e,t,r,n,Mp,o,s);else{var a=o?o(gl(e,r),i,r+"",e,t,s):void 0;a===void 0&&(a=i),pl(e,r,a)}},Ji)}var Ow=Math.max,Aw=Math.min;function Rw(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var s=o-1;return n!==void 0&&(s=xb(n),s=n<0?Ow(o+s,0):Aw(s,o-1)),Fb(e,kp(t),s,!0)}function Lw(e,t){var n=-1,o=Ws(e)?Array(e.length):[];return xw(e,function(s,i,r){o[++n]=t(s,i,r)}),o}function $w(e,t){var n=rn(e)?xv:Lw;return n(e,kp(t))}function Iw(e,t){return _c($w(e,t),1)}function oa(e,t){return ba(e,t)}function es(e){return e==null}function Fw(e){return e===void 0}var Dw=zb(function(e,t,n){Mp(e,t,n)});const Pp=Dw;function Bw(e,t,n){for(var o=-1,s=t.length,i={};++o<s;){var r=t[o],a=Dh(e,r);n(a,r)&&Sv(i,Ih(r,e),a)}return i}function Nw(e,t){return Bw(e,t,function(n,o){return Cp(e,o)})}var zw=By(function(e,t){return e==null?{}:Nw(e,t)});const Vw=zw,Hw=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),bo=e=>Cv(e);class Ww extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ro(e,t){throw new Ww(`[${e}] ${t}`)}let rr;const jw=e=>{var t;if(!ot)return 0;if(rr!==void 0)return rr;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const i=s.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),rr=o-i,rr};function Uw(e,t){if(!ot)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const s=t.offsetTop+n.reduce((l,c)=>l+c.offsetTop,0),i=s+t.offsetHeight,r=e.scrollTop,a=r+e.clientHeight;s<r?e.scrollTop=s:i>a&&(e.scrollTop=i-e.clientHeight)}const Je="update:modelValue",io="change",ml="input",Kw=e=>kv[e||"default"],Cc=e=>["",...Vs].includes(e);var Rr=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Rr||{});const Lr=e=>{const t=vn(e)?e:[e],n=[];return t.forEach(o=>{var s;vn(o)?n.push(...Lr(o)):ss(o)&&vn(o.children)?n.push(...Lr(o.children)):(n.push(o),ss(o)&&((s=o.component)==null?void 0:s.subTree)&&n.push(...Lr(o.component.subTree)))}),n},Tp=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),qw=e=>ot?window.requestAnimationFrame(e):setTimeout(e,16),pn=e=>e,Yw=["class","style"],Gw=/^on[A-Z]/,Xw=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=P(()=>((n==null?void 0:n.value)||[]).concat(Yw)),s=De();return s?P(()=>{var i;return rl(Object.entries((i=s.proxy)==null?void 0:i.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&Gw.test(r))))}):P(()=>({}))},ya=({from:e,replacement:t,scope:n,version:o,ref:s,type:i="API"},r)=>{se(()=>b(r),a=>{},{immediate:!0})},Qw=(e,t,n)=>{let o={offsetX:0,offsetY:0};const s=a=>{const l=a.clientX,c=a.clientY,{offsetX:u,offsetY:d}=o,f=e.value.getBoundingClientRect(),p=f.left,g=f.top,h=f.width,v=f.height,m=document.documentElement.clientWidth,y=document.documentElement.clientHeight,w=-p+u,_=-g+d,x=m-p-h+u,S=y-g-v+d,C=T=>{const B=Math.min(Math.max(u+T.clientX-l,w),x),$=Math.min(Math.max(d+T.clientY-c,_),S);o={offsetX:B,offsetY:$},e.value.style.transform=`translate(${$n(B)}, ${$n($)})`},k=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",k)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",s)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",s)};Be(()=>{Co(()=>{n.value?i():r()})}),Pt(()=>{r()})},Jw=(e,t={})=>{Eo(e)||Ro("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||he("popup"),o=Ev(()=>n.bm("parent","hidden"));if(!ot||ws(document.body,o.value))return;let s=0,i=!1,r="0";const a=()=>{setTimeout(()=>{Qr(document==null?void 0:document.body,o.value),i&&document&&(document.body.style.width=r)},200)};se(e,l=>{if(!l){a();return}i=!ws(document.body,o.value),i&&(r=document.body.style.width),s=jw(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,u=Mv(document.body,"overflowY");s>0&&(c||u==="scroll")&&i&&(document.body.style.width=`calc(100% - ${s}px)`),lc(document.body,o.value)}),Pv(()=>a())},Zw=Bh({type:ye(Boolean),default:null}),e1=Bh({type:ye(Function)}),t1=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],s={[e]:Zw,[n]:e1};return{useModelToggle:({indicator:r,toggleReason:a,shouldHideWhenRouteChanges:l,shouldProceed:c,onShow:u,onHide:d})=>{const f=De(),{emit:p}=f,g=f.props,h=P(()=>mt(g[n])),v=P(()=>g[e]===null),m=C=>{r.value!==!0&&(r.value=!0,a&&(a.value=C),mt(u)&&u(C))},y=C=>{r.value!==!1&&(r.value=!1,a&&(a.value=C),mt(d)&&d(C))},w=C=>{if(g.disabled===!0||mt(c)&&!c())return;const k=h.value&&ot;k&&p(t,!0),(v.value||!k)&&m(C)},_=C=>{if(g.disabled===!0||!ot)return;const k=h.value&&ot;k&&p(t,!1),(v.value||!k)&&y(C)},x=C=>{!Nt(C)||(g.disabled&&C?h.value&&p(t,!1):r.value!==C&&(C?m():y()))},S=()=>{r.value?_():w()};return se(()=>g[e],x),l&&f.appContext.config.globalProperties.$route!==void 0&&se(()=>({...f.proxy.$route}),()=>{l.value&&r.value&&_()}),Be(()=>{x(g[e])}),{hide:_,show:w,toggle:S,hasUpdateHandler:h}},useModelToggleProps:s,useModelToggleEmits:o}},Op=e=>{const t=De();return P(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var zt="top",an="bottom",ln="right",Vt="left",kc="auto",Zi=[zt,an,ln,Vt],Ms="start",Ai="end",n1="clippingParents",Ap="viewport",Js="popper",o1="reference",qu=Zi.reduce(function(e,t){return e.concat([t+"-"+Ms,t+"-"+Ai])},[]),_a=[].concat(Zi,[kc]).reduce(function(e,t){return e.concat([t,t+"-"+Ms,t+"-"+Ai])},[]),s1="beforeRead",i1="read",r1="afterRead",a1="beforeMain",l1="main",c1="afterMain",u1="beforeWrite",d1="write",f1="afterWrite",h1=[s1,i1,r1,a1,l1,c1,u1,d1,f1];function Fn(e){return e?(e.nodeName||"").toLowerCase():null}function Cn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ps(e){var t=Cn(e).Element;return e instanceof t||e instanceof Element}function sn(e){var t=Cn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ec(e){if(typeof ShadowRoot>"u")return!1;var t=Cn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p1(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!sn(i)||!Fn(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(r){var a=s[r];a===!1?i.removeAttribute(r):i.setAttribute(r,a===!0?"":a)}))})}function g1(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=r.reduce(function(l,c){return l[c]="",l},{});!sn(s)||!Fn(s)||(Object.assign(s.style,a),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}var Rp={name:"applyStyles",enabled:!0,phase:"write",fn:p1,effect:g1,requires:["computeStyles"]};function An(e){return e.split("-")[0]}var ts=Math.max,sa=Math.min,Ts=Math.round;function Os(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(sn(e)&&t){var i=e.offsetHeight,r=e.offsetWidth;r>0&&(o=Ts(n.width)/r||1),i>0&&(s=Ts(n.height)/i||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function Mc(e){var t=Os(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Lp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ec(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ro(e){return Cn(e).getComputedStyle(e)}function m1(e){return["table","td","th"].indexOf(Fn(e))>=0}function Lo(e){return((Ps(e)?e.ownerDocument:e.document)||window.document).documentElement}function wa(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ec(e)?e.host:null)||Lo(e)}function Yu(e){return!sn(e)||ro(e).position==="fixed"?null:e.offsetParent}function v1(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&sn(e)){var o=ro(e);if(o.position==="fixed")return null}var s=wa(e);for(Ec(s)&&(s=s.host);sn(s)&&["html","body"].indexOf(Fn(s))<0;){var i=ro(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function er(e){for(var t=Cn(e),n=Yu(e);n&&m1(n)&&ro(n).position==="static";)n=Yu(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&ro(n).position==="static")?t:n||v1(e)||t}function Pc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pi(e,t,n){return ts(e,sa(t,n))}function b1(e,t,n){var o=pi(e,t,n);return o>n?n:o}function $p(){return{top:0,right:0,bottom:0,left:0}}function Ip(e){return Object.assign({},$p(),e)}function Fp(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var y1=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ip(typeof e!="number"?e:Fp(e,Zi))};function _1(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,r=n.modifiersData.popperOffsets,a=An(n.placement),l=Pc(a),c=[Vt,ln].indexOf(a)>=0,u=c?"height":"width";if(!(!i||!r)){var d=y1(s.padding,n),f=Mc(i),p=l==="y"?zt:Vt,g=l==="y"?an:ln,h=n.rects.reference[u]+n.rects.reference[l]-r[l]-n.rects.popper[u],v=r[l]-n.rects.reference[l],m=er(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=h/2-v/2,_=d[p],x=y-f[u]-d[g],S=y/2-f[u]/2+w,C=pi(_,S,x),k=l;n.modifiersData[o]=(t={},t[k]=C,t.centerOffset=C-S,t)}}function w1(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!Lp(t.elements.popper,s)||(t.elements.arrow=s))}var x1={name:"arrow",enabled:!0,phase:"main",fn:_1,effect:w1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function As(e){return e.split("-")[1]}var S1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C1(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:Ts(t*s)/s||0,y:Ts(n*s)/s||0}}function Gu(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=r.x,p=f===void 0?0:f,g=r.y,h=g===void 0?0:g,v=typeof u=="function"?u({x:p,y:h}):{x:p,y:h};p=v.x,h=v.y;var m=r.hasOwnProperty("x"),y=r.hasOwnProperty("y"),w=Vt,_=zt,x=window;if(c){var S=er(n),C="clientHeight",k="clientWidth";if(S===Cn(n)&&(S=Lo(n),ro(S).position!=="static"&&a==="absolute"&&(C="scrollHeight",k="scrollWidth")),S=S,s===zt||(s===Vt||s===ln)&&i===Ai){_=an;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-o.height,h*=l?1:-1}if(s===Vt||(s===zt||s===an)&&i===Ai){w=ln;var B=d&&S===x&&x.visualViewport?x.visualViewport.width:S[k];p-=B-o.width,p*=l?1:-1}}var $=Object.assign({position:a},c&&S1),D=u===!0?C1({x:p,y:h}):{x:p,y:h};if(p=D.x,h=D.y,l){var W;return Object.assign({},$,(W={},W[_]=y?"0":"",W[w]=m?"0":"",W.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",W))}return Object.assign({},$,(t={},t[_]=y?h+"px":"",t[w]=m?p+"px":"",t.transform="",t))}function k1(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,r=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:An(t.placement),variation:As(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Gu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Dp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k1,data:{}},ar={passive:!0};function E1(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,r=o.resize,a=r===void 0?!0:r,l=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,ar)}),a&&l.addEventListener("resize",n.update,ar),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ar)}),a&&l.removeEventListener("resize",n.update,ar)}}var Bp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:E1,data:{}},M1={left:"right",right:"left",bottom:"top",top:"bottom"};function $r(e){return e.replace(/left|right|bottom|top/g,function(t){return M1[t]})}var P1={start:"end",end:"start"};function Xu(e){return e.replace(/start|end/g,function(t){return P1[t]})}function Tc(e){var t=Cn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Oc(e){return Os(Lo(e)).left+Tc(e).scrollLeft}function T1(e){var t=Cn(e),n=Lo(e),o=t.visualViewport,s=n.clientWidth,i=n.clientHeight,r=0,a=0;return o&&(s=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,a=o.offsetTop)),{width:s,height:i,x:r+Oc(e),y:a}}function O1(e){var t,n=Lo(e),o=Tc(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=ts(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=ts(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-o.scrollLeft+Oc(e),l=-o.scrollTop;return ro(s||n).direction==="rtl"&&(a+=ts(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:r,x:a,y:l}}function Ac(e){var t=ro(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function Np(e){return["html","body","#document"].indexOf(Fn(e))>=0?e.ownerDocument.body:sn(e)&&Ac(e)?e:Np(wa(e))}function gi(e,t){var n;t===void 0&&(t=[]);var o=Np(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Cn(o),r=s?[i].concat(i.visualViewport||[],Ac(o)?o:[]):o,a=t.concat(r);return s?a:a.concat(gi(wa(r)))}function vl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function A1(e){var t=Os(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Qu(e,t){return t===Ap?vl(T1(e)):Ps(t)?A1(t):vl(O1(Lo(e)))}function R1(e){var t=gi(wa(e)),n=["absolute","fixed"].indexOf(ro(e).position)>=0,o=n&&sn(e)?er(e):e;return Ps(o)?t.filter(function(s){return Ps(s)&&Lp(s,o)&&Fn(s)!=="body"}):[]}function L1(e,t,n){var o=t==="clippingParents"?R1(e):[].concat(t),s=[].concat(o,[n]),i=s[0],r=s.reduce(function(a,l){var c=Qu(e,l);return a.top=ts(c.top,a.top),a.right=sa(c.right,a.right),a.bottom=sa(c.bottom,a.bottom),a.left=ts(c.left,a.left),a},Qu(e,i));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function zp(e){var t=e.reference,n=e.element,o=e.placement,s=o?An(o):null,i=o?As(o):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case zt:l={x:r,y:t.y-n.height};break;case an:l={x:r,y:t.y+t.height};break;case ln:l={x:t.x+t.width,y:a};break;case Vt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?Pc(s):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ms:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Ai:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Ri(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.boundary,r=i===void 0?n1:i,a=n.rootBoundary,l=a===void 0?Ap:a,c=n.elementContext,u=c===void 0?Js:c,d=n.altBoundary,f=d===void 0?!1:d,p=n.padding,g=p===void 0?0:p,h=Ip(typeof g!="number"?g:Fp(g,Zi)),v=u===Js?o1:Js,m=e.rects.popper,y=e.elements[f?v:u],w=L1(Ps(y)?y:y.contextElement||Lo(e.elements.popper),r,l),_=Os(e.elements.reference),x=zp({reference:_,element:m,strategy:"absolute",placement:s}),S=vl(Object.assign({},m,x)),C=u===Js?S:_,k={top:w.top-C.top+h.top,bottom:C.bottom-w.bottom+h.bottom,left:w.left-C.left+h.left,right:C.right-w.right+h.right},T=e.modifiersData.offset;if(u===Js&&T){var B=T[s];Object.keys(k).forEach(function($){var D=[ln,an].indexOf($)>=0?1:-1,W=[zt,an].indexOf($)>=0?"y":"x";k[$]+=B[W]*D})}return k}function $1(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?_a:l,u=As(o),d=u?a?qu:qu.filter(function(g){return As(g)===u}):Zi,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,h){return g[h]=Ri(e,{placement:h,boundary:s,rootBoundary:i,padding:r})[An(h)],g},{});return Object.keys(p).sort(function(g,h){return p[g]-p[h]})}function I1(e){if(An(e)===kc)return[];var t=$r(e);return[Xu(e),t,Xu(t)]}function F1(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,g=p===void 0?!0:p,h=n.allowedAutoPlacements,v=t.options.placement,m=An(v),y=m===v,w=l||(y||!g?[$r(v)]:I1(v)),_=[v].concat(w).reduce(function(K,re){return K.concat(An(re)===kc?$1(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:h}):re)},[]),x=t.rects.reference,S=t.rects.popper,C=new Map,k=!0,T=_[0],B=0;B<_.length;B++){var $=_[B],D=An($),W=As($)===Ms,ne=[zt,an].indexOf(D)>=0,j=ne?"width":"height",Q=Ri(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),V=ne?W?ln:Vt:W?an:zt;x[j]>S[j]&&(V=$r(V));var le=$r(V),I=[];if(i&&I.push(Q[D]<=0),a&&I.push(Q[V]<=0,Q[le]<=0),I.every(function(K){return K})){T=$,k=!1;break}C.set($,I)}if(k)for(var Z=g?3:1,de=function(K){var re=_.find(function(ie){var O=C.get(ie);if(O)return O.slice(0,K).every(function(H){return H})});if(re)return T=re,"break"},J=Z;J>0;J--){var G=de(J);if(G==="break")break}t.placement!==T&&(t.modifiersData[o]._skip=!0,t.placement=T,t.reset=!0)}}var D1={name:"flip",enabled:!0,phase:"main",fn:F1,requiresIfExists:["offset"],data:{_skip:!1}};function Ju(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Zu(e){return[zt,ln,an,Vt].some(function(t){return e[t]>=0})}function B1(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,r=Ri(t,{elementContext:"reference"}),a=Ri(t,{altBoundary:!0}),l=Ju(r,o),c=Ju(a,s,i),u=Zu(l),d=Zu(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var N1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:B1};function z1(e,t,n){var o=An(e),s=[Vt,zt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=i[0],a=i[1];return r=r||0,a=(a||0)*s,[Vt,ln].indexOf(o)>=0?{x:a,y:r}:{x:r,y:a}}function V1(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,r=_a.reduce(function(u,d){return u[d]=z1(d,t.rects,i),u},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var H1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:V1};function W1(e){var t=e.state,n=e.name;t.modifiersData[n]=zp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Vp={name:"popperOffsets",enabled:!0,phase:"read",fn:W1,data:{}};function j1(e){return e==="x"?"y":"x"}function U1(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,g=n.tetherOffset,h=g===void 0?0:g,v=Ri(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=An(t.placement),y=As(t.placement),w=!y,_=Pc(m),x=j1(_),S=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,T=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,B=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(S){if(i){var W,ne=_==="y"?zt:Vt,j=_==="y"?an:ln,Q=_==="y"?"height":"width",V=S[_],le=V+v[ne],I=V-v[j],Z=p?-k[Q]/2:0,de=y===Ms?C[Q]:k[Q],J=y===Ms?-k[Q]:-C[Q],G=t.elements.arrow,K=p&&G?Mc(G):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$p(),ie=re[ne],O=re[j],H=pi(0,C[Q],K[Q]),U=w?C[Q]/2-Z-H-ie-B.mainAxis:de-H-ie-B.mainAxis,te=w?-C[Q]/2+Z+H+O+B.mainAxis:J+H+O+B.mainAxis,ge=t.elements.arrow&&er(t.elements.arrow),Le=ge?_==="y"?ge.clientTop||0:ge.clientLeft||0:0,Ee=(W=$==null?void 0:$[_])!=null?W:0,_e=V+U-Ee-Le,Ve=V+te-Ee,gt=pi(p?sa(le,_e):le,V,p?ts(I,Ve):I);S[_]=gt,D[_]=gt-V}if(a){var Ye,jt=_==="x"?zt:Vt,zn=_==="x"?an:ln,Tt=S[x],Zt=x==="y"?"height":"width",Ut=Tt+v[jt],En=Tt-v[zn],en=[zt,Vt].indexOf(m)!==-1,oe=(Ye=$==null?void 0:$[x])!=null?Ye:0,be=en?Ut:Tt-C[Zt]-k[Zt]-oe+B.altAxis,qe=en?Tt+C[Zt]+k[Zt]-oe-B.altAxis:En,Kt=p&&en?b1(be,Tt,qe):pi(p?be:Ut,Tt,p?qe:En);S[x]=Kt,D[x]=Kt-Tt}t.modifiersData[o]=D}}var K1={name:"preventOverflow",enabled:!0,phase:"main",fn:U1,requiresIfExists:["offset"]};function q1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Y1(e){return e===Cn(e)||!sn(e)?Tc(e):q1(e)}function G1(e){var t=e.getBoundingClientRect(),n=Ts(t.width)/e.offsetWidth||1,o=Ts(t.height)/e.offsetHeight||1;return n!==1||o!==1}function X1(e,t,n){n===void 0&&(n=!1);var o=sn(t),s=sn(t)&&G1(t),i=Lo(t),r=Os(e,s),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Fn(t)!=="body"||Ac(i))&&(a=Y1(t)),sn(t)?(l=Os(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Oc(i))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Q1(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var r=[].concat(i.requires||[],i.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function J1(e){var t=Q1(e);return h1.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function Z1(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ex(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ed={placement:"bottom",modifiers:[],strategy:"absolute"};function td(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Rc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?ed:s;return function(r,a,l){l===void 0&&(l=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ed,i),modifiersData:{},elements:{reference:r,popper:a},attributes:{},styles:{}},u=[],d=!1,f={state:c,setOptions:function(h){var v=typeof h=="function"?h(c.options):h;g(),c.options=Object.assign({},i,c.options,v),c.scrollParents={reference:Ps(r)?gi(r):r.contextElement?gi(r.contextElement):[],popper:gi(a)};var m=J1(ex([].concat(o,c.options.modifiers)));return c.orderedModifiers=m.filter(function(y){return y.enabled}),p(),f.update()},forceUpdate:function(){if(!d){var h=c.elements,v=h.reference,m=h.popper;if(td(v,m)){c.rects={reference:X1(v,er(m),c.options.strategy==="fixed"),popper:Mc(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(k){return c.modifiersData[k.name]=Object.assign({},k.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var w=c.orderedModifiers[y],_=w.fn,x=w.options,S=x===void 0?{}:x,C=w.name;typeof _=="function"&&(c=_({state:c,options:S,name:C,instance:f})||c)}}}},update:Z1(function(){return new Promise(function(h){f.forceUpdate(),h(c)})}),destroy:function(){g(),d=!0}};if(!td(r,a))return f;f.setOptions(l).then(function(h){!d&&l.onFirstUpdate&&l.onFirstUpdate(h)});function p(){c.orderedModifiers.forEach(function(h){var v=h.name,m=h.options,y=m===void 0?{}:m,w=h.effect;if(typeof w=="function"){var _=w({state:c,name:v,instance:f,options:y}),x=function(){};u.push(_||x)}})}function g(){u.forEach(function(h){return h()}),u=[]}return f}}Rc();var tx=[Bp,Vp,Dp,Rp];Rc({defaultModifiers:tx});var nx=[Bp,Vp,Dp,Rp,H1,D1,K1,x1,N1],Hp=Rc({defaultModifiers:nx});const ox=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const c=sx(l);Object.assign(r.value,c)},requires:["computeStyles"]},s=P(()=>{const{onFirstUpdate:l,placement:c,strategy:u,modifiers:d}=b(n);return{onFirstUpdate:l,placement:c||"bottom",strategy:u||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),i=bn(),r=A({styles:{popper:{position:b(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{!i.value||(i.value.destroy(),i.value=void 0)};return se(s,l=>{const c=b(i);c&&c.setOptions(l)},{deep:!0}),se([e,t],([l,c])=>{a(),!(!l||!c)&&(i.value=Hp(l,c,b(s)))}),Pt(()=>{a()}),{state:P(()=>{var l;return{...((l=b(i))==null?void 0:l.state)||{}}}),styles:P(()=>b(r).styles),attributes:P(()=>b(r).attributes),update:()=>{var l;return(l=b(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=b(i))==null?void 0:l.forceUpdate()},instanceRef:P(()=>b(i))}};function sx(e){const t=Object.keys(e.elements),n=rl(t.map(s=>[s,e.styles[s]||{}])),o=rl(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:o}}const Wp=e=>{if(!e)return{onClick:Zo,onMousedown:Zo,onMouseup:Zo};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},ix=(e,t=0)=>{if(t===0)return e;const n=A(!1);let o=0;const s=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{n.value=e.value},t)};return Be(s),se(()=>e.value,i=>{i?s():n.value=i}),n};function nd(){let e;const t=(o,s)=>{n(),e=window.setTimeout(o,s)},n=()=>window.clearTimeout(e);return Tv(()=>n()),{registerTimeout:t,cancelTimeout:n}}const od={prefix:Math.floor(Math.random()*1e4),current:0},rx=Symbol("elIdInjection"),jp=()=>De()?we(rx,od):od,Rs=e=>{const t=jp(),n=Nh();return P(()=>b(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let bs=[];const sd=e=>{const t=e;t.key===on.esc&&bs.forEach(n=>n(t))},ax=e=>{Be(()=>{bs.length===0&&document.addEventListener("keydown",sd),ot&&bs.push(e)}),Pt(()=>{bs=bs.filter(t=>t!==e),bs.length===0&&ot&&document.removeEventListener("keydown",sd)})};let id;const Up=()=>{const e=Nh(),t=jp(),n=P(()=>`${e.value}-popper-container-${t.prefix}`),o=P(()=>`#${n.value}`);return{id:n,selector:o}},lx=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},cx=()=>{const{id:e,selector:t}=Up();return cc(()=>{!ot||!id&&!document.body.querySelector(t.value)&&(id=lx(e.value))}),{id:e,selector:t}},ux=ke({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Kp=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:s})=>{const{registerTimeout:i}=nd(),{registerTimeout:r,cancelTimeout:a}=nd();return{onOpen:u=>{i(()=>{o(u);const d=b(n);He(d)&&d>0&&r(()=>{s(u)},d)},b(e))},onClose:u=>{a(),i(()=>{s(u)},b(t))}}},qp=Symbol("elForwardRef"),dx=e=>{rt(qp,{setForwardRef:n=>{e.value=n}})},fx=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});function hx(e){const t=A();function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:i,value:r}=e.value;if(s==null||i==null)return;const a=r.slice(0,Math.max(0,s)),l=r.slice(Math.max(0,i));t.value={selectionStart:s,selectionEnd:i,value:r,beforeTxt:a,afterTxt:l}}function o(){if(e.value==null||t.value==null)return;const{value:s}=e.value,{beforeTxt:i,afterTxt:r,selectionStart:a}=t.value;if(i==null||r==null||a==null)return;let l=s.length;if(s.endsWith(r))l=s.length-r.length;else if(s.startsWith(i))l=i.length;else{const c=i[a-1],u=s.indexOf(c,a-1);u!==-1&&(l=u+1)}e.value.setSelectionRange(l,l)}return[n,o]}const px=(e,t,n)=>Lr(e.subTree).filter(i=>{var r;return ss(i)&&((r=i.type)==null?void 0:r.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),Yp=(e,t)=>{const n={},o=bn([]);return{children:o,addChild:r=>{n[r.uid]=r,o.value=px(e,t,n)},removeChild:r=>{delete n[r],o.value=o.value.filter(a=>a.uid!==r)}}};function gx(e,{afterFocus:t,afterBlur:n}={}){const o=De(),{emit:s}=o,i=bn(),r=A(!1),a=u=>{r.value||(r.value=!0,s("focus",u),t==null||t())},l=u=>{var d;u.relatedTarget&&((d=i.value)==null?void 0:d.contains(u.relatedTarget))||(r.value=!1,s("blur",u),n==null||n())},c=()=>{var u;(u=e.value)==null||u.focus()};return se(i,u=>{u&&u.setAttribute("tabindex","-1")}),is(i,"click",c),{wrapperRef:i,isFocused:r,handleFocus:a,handleBlur:l}}const mx=ke({a11y:{type:Boolean,default:!0},locale:{type:ye(Object)},size:ao,button:{type:ye(Object)},experimentalFeatures:{type:ye(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ye(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),bl={};Y({name:"ElConfigProvider",props:mx,setup(e,{slots:t}){se(()=>e.message,o=>{Object.assign(bl,o!=null?o:{})},{immediate:!0,deep:!0});const n=Ov(e);return()=>me(t,"default",{config:n==null?void 0:n.value})}});const js=Symbol("formContextKey"),as=Symbol("formItemContextKey"),cn=(e,t={})=>{const n=A(void 0),o=t.prop?n:Op("size"),s=t.global?n:Av(),i=t.form?{size:void 0}:we(js,void 0),r=t.formItem?{size:void 0}:we(as,void 0);return P(()=>o.value||b(e)||(r==null?void 0:r.size)||(i==null?void 0:i.size)||s.value||"")},fs=e=>{const t=Op("disabled"),n=we(js,void 0);return P(()=>t.value||b(e)||(n==null?void 0:n.disabled)||!1)},co=()=>{const e=we(js,void 0),t=we(as,void 0);return{form:e,formItem:t}},Us=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=A(!1)),o||(o=A(!1));const s=A();let i;const r=P(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Be(()=>{i=se([nn(e,"id"),n],([a,l])=>{const c=a!=null?a:l?void 0:Rs().value;c!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(o!=null&&o.value)&&!l&&c&&t.addInputId(c)),s.value=c)},{immediate:!0})}),qi(()=>{i&&i(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:r,inputId:s}},vx=ke({size:{type:String,values:Vs},disabled:Boolean}),bx=ke({...vx,model:Object,rules:{type:ye(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),yx={validate:(e,t,n)=>(vn(e)||st(e))&&Nt(t)&&st(n)};function _x(){const e=A([]),t=P(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const r=e.value.indexOf(i);return r===-1&&t.value,r}function o(i,r){if(i&&r){const a=n(r);e.value.splice(a,1,i)}else i&&e.value.push(i)}function s(i){const r=n(i);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:s}}const lr=(e,t)=>{const n=cl(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},wx="ElForm",xx=Y({name:wx}),Sx=Y({...xx,props:bx,emits:yx,setup(e,{expose:t,emit:n}){const o=e,s=[],i=cn(),r=he("form"),a=P(()=>{const{labelPosition:y,inline:w}=o;return[r.b(),r.m(i.value||"default"),{[r.m(`label-${y}`)]:y,[r.m("inline")]:w}]}),l=y=>{s.push(y)},c=y=>{y.prop&&s.splice(s.indexOf(y),1)},u=(y=[])=>{!o.model||lr(s,y).forEach(w=>w.resetField())},d=(y=[])=>{lr(s,y).forEach(w=>w.clearValidate())},f=P(()=>!!o.model),p=y=>{if(s.length===0)return[];const w=lr(s,y);return w.length?w:[]},g=async y=>v(void 0,y),h=async(y=[])=>{if(!f.value)return!1;const w=p(y);if(w.length===0)return!0;let _={};for(const x of w)try{await x.validate("")}catch(S){_={..._,...S}}return Object.keys(_).length===0?!0:Promise.reject(_)},v=async(y=[],w)=>{const _=!mt(w);try{const x=await h(y);return x===!0&&(w==null||w(x)),x}catch(x){if(x instanceof Error)throw x;const S=x;return o.scrollToError&&m(Object.keys(S)[0]),w==null||w(!1,S),_&&Promise.reject(S)}},m=y=>{var w;const _=lr(s,y)[0];_&&((w=_.$el)==null||w.scrollIntoView(o.scrollIntoViewOptions))};return se(()=>o.rules,()=>{o.validateOnRuleChange&&g().catch(y=>void 0)},{deep:!0}),rt(js,Ht({...lo(o),emit:n,resetFields:u,clearValidate:d,validateField:v,addField:l,removeField:c,..._x()})),t({validate:g,validateField:v,resetFields:u,clearValidate:d,scrollToField:m}),(y,w)=>(M(),N("form",{class:R(b(a))},[me(y.$slots,"default")],2))}});var Cx=ve(Sx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yo.apply(this,arguments)}function kx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Li(e,t)}function yl(e){return yl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yl(e)}function Li(e,t){return Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},Li(e,t)}function Ex(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ir(e,t,n){return Ex()?Ir=Reflect.construct.bind():Ir=function(s,i,r){var a=[null];a.push.apply(a,i);var l=Function.bind.apply(s,a),c=new l;return r&&Li(c,r.prototype),c},Ir.apply(null,arguments)}function Mx(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _l(e){var t=typeof Map=="function"?new Map:void 0;return _l=function(o){if(o===null||!Mx(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,s)}function s(){return Ir(o,arguments,yl(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Li(s,o)},_l(e)}var Px=/%[sdj%]/g,Tx=function(){};typeof process<"u"&&process.env;function wl(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function Xt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var s=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var r=e.replace(Px,function(a){if(a==="%%")return"%";if(s>=i)return a;switch(a){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch{return"[Circular]"}break;default:return a}});return r}return e}function Ox(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ox(t)&&typeof e=="string"&&!e)}function Ax(e,t,n){var o=[],s=0,i=e.length;function r(a){o.push.apply(o,a||[]),s++,s===i&&n(o)}e.forEach(function(a){t(a,r)})}function rd(e,t,n){var o=0,s=e.length;function i(r){if(r&&r.length){n(r);return}var a=o;o=o+1,a<s?t(e[a],i):n([])}i([])}function Rx(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var ad=function(e){kx(t,e);function t(n,o){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=n,s.fields=o,s}return t}(_l(Error));function Lx(e,t,n,o,s){if(t.first){var i=new Promise(function(f,p){var g=function(m){return o(m),m.length?p(new ad(m,wl(m))):f(s)},h=Rx(e);rd(h,n,g)});return i.catch(function(f){return f}),i}var r=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,c=0,u=[],d=new Promise(function(f,p){var g=function(v){if(u.push.apply(u,v),c++,c===l)return o(u),u.length?p(new ad(u,wl(u))):f(s)};a.length||(o(u),f(s)),a.forEach(function(h){var v=e[h];r.indexOf(h)!==-1?rd(v,n,g):Ax(v,n,g)})});return d.catch(function(f){return f}),d}function $x(e){return!!(e&&e.message!==void 0)}function Ix(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function ld(e,t){return function(n){var o;return e.fullFields?o=Ix(t,e.fullFields):o=t[n.field||e.fullField],$x(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function cd(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=Yo({},e[n],o):e[n]=o}}return e}var Gp=function(t,n,o,s,i,r){t.required&&(!o.hasOwnProperty(t.field)||pt(n,r||t.type))&&s.push(Xt(i.messages.required,t.fullField))},Fx=function(t,n,o,s,i){(/^\s+$/.test(n)||n==="")&&s.push(Xt(i.messages.whitespace,t.fullField))},cr,Dx=function(){if(cr)return cr;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",s=(`
     1var Zv=Object.defineProperty;var eb=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ce=(e,t,n)=>(eb(e,typeof t!="symbol"?t+"":t,n),n);import{i as tt,a as nb,b as Bn,g as vr,r as Ro,d as Tc,c as Uh,e as Kh,f as qh,h as hu,j as pu,k as io,l as Gi,m as ob,n as an,S as Ts,L as gu,M as tr,o as Yh,t as Us,p as Gh,q as mu,s as Xh,u as Qn,v as Jh,w as sb,x as ib,y as ab,z as je,A as Ks,C as ze,D as as,E as T,F as hl,G as Ve,H as ie,I as v,J as De,K as no,N as yt,O as jt,P as Po,Q as pe,R as qo,T as rb,U as Ei,V as lb,W as Ps,X as Qh,Y as he,Z as lt,_ as oo,$ as R,a0 as Zo,a1 as St,a2 as Te,a3 as $t,a4 as ub,a5 as Zh,a6 as pl,a7 as we,a8 as rt,a9 as vu,aa as ye,ab as nt,ac as so,ad as Me,ae as En,af as ep,ag as K,ah as cb,ai as re,aj as tp,ak as on,al as Xi,am as Ie,an as Ft,ao as uo,ap as M,aq as D,ar as A,as as me,at as br,au as Tt,av as P,aw as Qe,ax as ds,ay as db,az as L,aA as G,aB as Ue,aC as Oe,aD as le,aE as ee,aF as q,aG as k,aH as fb,aI as $a,aJ as ct,aK as dn,aL as mt,aM as hb,aN as Le,aO as rn,aP as np,aQ as Xe,aR as op,aS as bu,aT as pb,aU as es,aV as $e,aW as At,aX as fs,aY as gb,aZ as mb,a_ as sp,a$ as ip,b0 as ap,b1 as In,b2 as rp,b3 as vb,b4 as bb,b5 as yb,b6 as _b,b7 as lp,b8 as Mi,b9 as Ti,ba as gl,bb as nr,bc as up,bd as Pi,be as Ut,bf as ao,bg as Bt,bh as zt,bi as yu,bj as ke,bk as wb,bl as Sb,bm as ml,bn as xb,bo as Cb,bp as Pc,bq as kb,br as _e,bs as co,bt as Eb,bu as Mb,bv as Tb,bw as cp,bx as Oc,by as dp,bz as fp,bA as yr,bB as Pb,bC as Ob,bD as Ab,bE as Rb,bF as Lb,bG as Ac,bH as Os,bI as Ib,bJ as $b,bK as Fb,bL as Bb,bM as hp,bN as pp,bO as or,bP as gp,bQ as Db,bR as Rc,bS as mp,bT as vp,bU as bp,bV as Nb,bW as zb,bX as Vb,bY as Hb,bZ as Wb,b_ as jb,b$ as Ub,c0 as Kb,c1 as qb,c2 as Yb,B as Gb}from"../plugin_main_js_file.js";var kN=tb((Qt,Zt)=>{const Xb='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Jb=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Lc=e=>Array.from(e.querySelectorAll(Xb)).filter(t=>vl(t)&&Jb(t)),vl=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Gn=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const i=e==null?void 0:e(s);if(n===!1||!i)return t==null?void 0:t(s)},Qb=()=>tt&&/firefox/i.test(window.navigator.userAgent),_u=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var Zb=/\s/;function ey(e){for(var t=e.length;t--&&Zb.test(e.charAt(t)););return t}var ty=/^\s+/;function ny(e){return e&&e.slice(0,ey(e)+1).replace(ty,"")}var Ic=0/0,oy=/^[-+]0x[0-9a-f]+$/i,sy=/^0b[01]+$/i,iy=/^0o[0-7]+$/i,ay=parseInt;function bl(e){if(typeof e=="number")return e;if(nb(e))return Ic;if(Bn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Bn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ny(e);var n=sy.test(e);return n||iy.test(e)?ay(e.slice(2),n?2:8):oy.test(e)?Ic:+e}var $c=1/0,ry=17976931348623157e292;function ly(e){if(!e)return e===0?e:0;if(e=bl(e),e===$c||e===-$c){var t=e<0?-1:1;return t*ry}return e===e?e:0}function uy(e){var t=ly(e),n=t%1;return t===t?n?t-n:t:0}function wu(e){return e}var cy=vr(Ro,"WeakMap");const yl=cy;var Fc=Object.create,dy=function(){function e(){}return function(t){if(!Bn(t))return{};if(Fc)return Fc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const fy=dy;function hy(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yp(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var py=800,gy=16,my=Date.now;function vy(e){var t=0,n=0;return function(){var o=my(),s=gy-(o-n);if(n=o,s>0){if(++t>=py)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function by(e){return function(){return e}}var yy=Tc?function(e,t){return Tc(e,"toString",{configurable:!0,enumerable:!1,value:by(t),writable:!0})}:wu;const _y=yy;var wy=vy(_y);const _p=wy;function Sy(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function xy(e,t,n,o){for(var s=e.length,i=n+(o?1:-1);o?i--:++i<s;)if(t(e[i],i,e))return i;return-1}function Ji(e,t,n,o){var s=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var r=t[i],l=o?o(n[r],e[r],r,n,e):void 0;l===void 0&&(l=e[r]),s?Uh(n,r,l):Kh(n,r,l)}return n}var Bc=Math.max;function wp(e,t,n){return t=Bc(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,i=Bc(o.length-t,0),a=Array(i);++s<i;)a[s]=o[t+s];s=-1;for(var r=Array(t+1);++s<t;)r[s]=o[s];return r[t]=n(a),hy(e,this,r)}}function Cy(e,t){return _p(wp(e,t,wu),e+"")}var ky=9007199254740991;function Su(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ky}function qs(e){return e!=null&&Su(e.length)&&!qh(e)}function Ey(e,t,n){if(!Bn(n))return!1;var o=typeof t;return(o=="number"?qs(n)&&hu(t,n.length):o=="string"&&t in n)?pu(n[t],e):!1}function My(e){return Cy(function(t,n){var o=-1,s=n.length,i=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(s--,i):void 0,a&&Ey(n[0],n[1],a)&&(i=s<3?void 0:i,s=1),t=Object(t);++o<s;){var r=n[o];r&&e(t,r,o,i)}return t})}var Ty=Object.prototype;function xu(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ty;return e===n}function Py(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var Oy="[object Arguments]";function Dc(e){return io(e)&&Gi(e)==Oy}var Sp=Object.prototype,Ay=Sp.hasOwnProperty,Ry=Sp.propertyIsEnumerable,Ly=Dc(function(){return arguments}())?Dc:function(e){return io(e)&&Ay.call(e,"callee")&&!Ry.call(e,"callee")};const Oi=Ly;function Iy(){return!1}var xp=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,Nc=xp&&typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,$y=Nc&&Nc.exports===xp,zc=$y?Ro.Buffer:void 0,Fy=zc?zc.isBuffer:void 0,By=Fy||Iy;const Ai=By;var Dy="[object Arguments]",Ny="[object Array]",zy="[object Boolean]",Vy="[object Date]",Hy="[object Error]",Wy="[object Function]",jy="[object Map]",Uy="[object Number]",Ky="[object Object]",qy="[object RegExp]",Yy="[object Set]",Gy="[object String]",Xy="[object WeakMap]",Jy="[object ArrayBuffer]",Qy="[object DataView]",Zy="[object Float32Array]",e0="[object Float64Array]",t0="[object Int8Array]",n0="[object Int16Array]",o0="[object Int32Array]",s0="[object Uint8Array]",i0="[object Uint8ClampedArray]",a0="[object Uint16Array]",r0="[object Uint32Array]",ot={};ot[Zy]=ot[e0]=ot[t0]=ot[n0]=ot[o0]=ot[s0]=ot[i0]=ot[a0]=ot[r0]=!0;ot[Dy]=ot[Ny]=ot[Jy]=ot[zy]=ot[Qy]=ot[Vy]=ot[Hy]=ot[Wy]=ot[jy]=ot[Uy]=ot[Ky]=ot[qy]=ot[Yy]=ot[Gy]=ot[Xy]=!1;function l0(e){return io(e)&&Su(e.length)&&!!ot[Gi(e)]}function Cu(e){return function(t){return e(t)}}var Cp=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,hi=Cp&&typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,u0=hi&&hi.exports===Cp,Fr=u0&&ob.process,c0=function(){try{var e=hi&&hi.require&&hi.require("util").types;return e||Fr&&Fr.binding&&Fr.binding("util")}catch{}}();const As=c0;var Vc=As&&As.isTypedArray,d0=Vc?Cu(Vc):l0;const ku=d0;var f0=Object.prototype,h0=f0.hasOwnProperty;function kp(e,t){var n=an(e),o=!n&&Oi(e),s=!n&&!o&&Ai(e),i=!n&&!o&&!s&&ku(e),a=n||o||s||i,r=a?Py(e.length,String):[],l=r.length;for(var u in e)(t||h0.call(e,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||hu(u,l)))&&r.push(u);return r}function Ep(e,t){return function(n){return e(t(n))}}var p0=Ep(Object.keys,Object);const g0=p0;var m0=Object.prototype,v0=m0.hasOwnProperty;function b0(e){if(!xu(e))return g0(e);var t=[];for(var n in Object(e))v0.call(e,n)&&n!="constructor"&&t.push(n);return t}function Qi(e){return qs(e)?kp(e):b0(e)}function y0(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _0=Object.prototype,w0=_0.hasOwnProperty;function S0(e){if(!Bn(e))return y0(e);var t=xu(e),n=[];for(var o in e)o=="constructor"&&(t||!w0.call(e,o))||n.push(o);return n}function Zi(e){return qs(e)?kp(e,!0):S0(e)}function Eu(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var Hc=Ts?Ts.isConcatSpreadable:void 0;function x0(e){return an(e)||Oi(e)||!!(Hc&&e&&e[Hc])}function Mu(e,t,n,o,s){var i=-1,a=e.length;for(n||(n=x0),s||(s=[]);++i<a;){var r=e[i];t>0&&n(r)?t>1?Mu(r,t-1,n,o,s):Eu(s,r):o||(s[s.length]=r)}return s}function C0(e){var t=e==null?0:e.length;return t?Mu(e,1):[]}function k0(e){return _p(wp(e,void 0,C0),e+"")}var E0=Ep(Object.getPrototypeOf,Object);const Tu=E0;var M0="[object Object]",T0=Function.prototype,P0=Object.prototype,Mp=T0.toString,O0=P0.hasOwnProperty,A0=Mp.call(Object);function R0(e){if(!io(e)||Gi(e)!=M0)return!1;var t=Tu(e);if(t===null)return!0;var n=O0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Mp.call(n)==A0}function vn(){if(!arguments.length)return[];var e=arguments[0];return an(e)?e:[e]}function L0(){this.__data__=new gu,this.size=0}function I0(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function $0(e){return this.__data__.get(e)}function F0(e){return this.__data__.has(e)}var B0=200;function D0(e,t){var n=this.__data__;if(n instanceof gu){var o=n.__data__;if(!tr||o.length<B0-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yh(o)}return n.set(e,t),this.size=n.size,this}function wn(e){var t=this.__data__=new gu(e);this.size=t.size}wn.prototype.clear=L0;wn.prototype.delete=I0;wn.prototype.get=$0;wn.prototype.has=F0;wn.prototype.set=D0;function N0(e,t){return e&&Ji(t,Qi(t),e)}function z0(e,t){return e&&Ji(t,Zi(t),e)}var Tp=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,Wc=Tp&&typeof Zt=="object"&&Zt&&!Zt.nodeType&&Zt,V0=Wc&&Wc.exports===Tp,jc=V0?Ro.Buffer:void 0,Uc=jc?jc.allocUnsafe:void 0;function Pp(e,t){if(t)return e.slice();var n=e.length,o=Uc?Uc(n):new e.constructor(n);return e.copy(o),o}function H0(e,t){for(var n=-1,o=e==null?0:e.length,s=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[s++]=a)}return i}function Op(){return[]}var W0=Object.prototype,j0=W0.propertyIsEnumerable,Kc=Object.getOwnPropertySymbols,U0=Kc?function(e){return e==null?[]:(e=Object(e),H0(Kc(e),function(t){return j0.call(e,t)}))}:Op;const Pu=U0;function K0(e,t){return Ji(e,Pu(e),t)}var q0=Object.getOwnPropertySymbols,Y0=q0?function(e){for(var t=[];e;)Eu(t,Pu(e)),e=Tu(e);return t}:Op;const Ap=Y0;function G0(e,t){return Ji(e,Ap(e),t)}function Rp(e,t,n){var o=t(e);return an(e)?o:Eu(o,n(e))}function _l(e){return Rp(e,Qi,Pu)}function X0(e){return Rp(e,Zi,Ap)}var J0=vr(Ro,"DataView");const wl=J0;var Q0=vr(Ro,"Promise");const Sl=Q0;var Z0=vr(Ro,"Set");const xl=Z0;var qc="[object Map]",e_="[object Object]",Yc="[object Promise]",Gc="[object Set]",Xc="[object WeakMap]",Jc="[object DataView]",t_=Us(wl),n_=Us(tr),o_=Us(Sl),s_=Us(xl),i_=Us(yl),Wo=Gi;(wl&&Wo(new wl(new ArrayBuffer(1)))!=Jc||tr&&Wo(new tr)!=qc||Sl&&Wo(Sl.resolve())!=Yc||xl&&Wo(new xl)!=Gc||yl&&Wo(new yl)!=Xc)&&(Wo=function(e){var t=Gi(e),n=t==e_?e.constructor:void 0,o=n?Us(n):"";if(o)switch(o){case t_:return Jc;case n_:return qc;case o_:return Yc;case s_:return Gc;case i_:return Xc}return t});const Ri=Wo;var a_=Object.prototype,r_=a_.hasOwnProperty;function l_(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&r_.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var u_=Ro.Uint8Array;const sr=u_;function Ou(e){var t=new e.constructor(e.byteLength);return new sr(t).set(new sr(e)),t}function c_(e,t){var n=t?Ou(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var d_=/\w*$/;function f_(e){var t=new e.constructor(e.source,d_.exec(e));return t.lastIndex=e.lastIndex,t}var Qc=Ts?Ts.prototype:void 0,Zc=Qc?Qc.valueOf:void 0;function h_(e){return Zc?Object(Zc.call(e)):{}}function Lp(e,t){var n=t?Ou(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var p_="[object Boolean]",g_="[object Date]",m_="[object Map]",v_="[object Number]",b_="[object RegExp]",y_="[object Set]",__="[object String]",w_="[object Symbol]",S_="[object ArrayBuffer]",x_="[object DataView]",C_="[object Float32Array]",k_="[object Float64Array]",E_="[object Int8Array]",M_="[object Int16Array]",T_="[object Int32Array]",P_="[object Uint8Array]",O_="[object Uint8ClampedArray]",A_="[object Uint16Array]",R_="[object Uint32Array]";function L_(e,t,n){var o=e.constructor;switch(t){case S_:return Ou(e);case p_:case g_:return new o(+e);case x_:return c_(e,n);case C_:case k_:case E_:case M_:case T_:case P_:case O_:case A_:case R_:return Lp(e,n);case m_:return new o;case v_:case __:return new o(e);case b_:return f_(e);case y_:return new o;case w_:return h_(e)}}function Ip(e){return typeof e.constructor=="function"&&!xu(e)?fy(Tu(e)):{}}var I_="[object Map]";function $_(e){return io(e)&&Ri(e)==I_}var ed=As&&As.isMap,F_=ed?Cu(ed):$_;const B_=F_;var D_="[object Set]";function N_(e){return io(e)&&Ri(e)==D_}var td=As&&As.isSet,z_=td?Cu(td):N_;const V_=z_;var H_=1,W_=2,j_=4,$p="[object Arguments]",U_="[object Array]",K_="[object Boolean]",q_="[object Date]",Y_="[object Error]",Fp="[object Function]",G_="[object GeneratorFunction]",X_="[object Map]",J_="[object Number]",Bp="[object Object]",Q_="[object RegExp]",Z_="[object Set]",ew="[object String]",tw="[object Symbol]",nw="[object WeakMap]",ow="[object ArrayBuffer]",sw="[object DataView]",iw="[object Float32Array]",aw="[object Float64Array]",rw="[object Int8Array]",lw="[object Int16Array]",uw="[object Int32Array]",cw="[object Uint8Array]",dw="[object Uint8ClampedArray]",fw="[object Uint16Array]",hw="[object Uint32Array]",Ze={};Ze[$p]=Ze[U_]=Ze[ow]=Ze[sw]=Ze[K_]=Ze[q_]=Ze[iw]=Ze[aw]=Ze[rw]=Ze[lw]=Ze[uw]=Ze[X_]=Ze[J_]=Ze[Bp]=Ze[Q_]=Ze[Z_]=Ze[ew]=Ze[tw]=Ze[cw]=Ze[dw]=Ze[fw]=Ze[hw]=!0;Ze[Y_]=Ze[Fp]=Ze[nw]=!1;function Fa(e,t,n,o,s,i){var a,r=t&H_,l=t&W_,u=t&j_;if(n&&(a=s?n(e,o,s,i):n(e)),a!==void 0)return a;if(!Bn(e))return e;var c=an(e);if(c){if(a=l_(e),!r)return yp(e,a)}else{var d=Ri(e),f=d==Fp||d==G_;if(Ai(e))return Pp(e,r);if(d==Bp||d==$p||f&&!s){if(a=l||f?{}:Ip(e),!r)return l?G0(e,z0(a,e)):K0(e,N0(a,e))}else{if(!Ze[d])return s?e:{};a=L_(e,d,r)}}i||(i=new wn);var h=i.get(e);if(h)return h;i.set(e,a),V_(e)?e.forEach(function(m){a.add(Fa(m,t,n,m,e,i))}):B_(e)&&e.forEach(function(m,b){a.set(b,Fa(m,t,n,b,e,i))});var p=u?l?X0:_l:l?Zi:Qi,g=c?void 0:p(e);return Sy(g||e,function(m,b){g&&(b=m,m=e[b]),Kh(a,b,Fa(m,t,n,b,e,i))}),a}var pw=4;function nd(e){return Fa(e,pw)}var gw="__lodash_hash_undefined__";function mw(e){return this.__data__.set(e,gw),this}function vw(e){return this.__data__.has(e)}function ir(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Yh;++t<n;)this.add(e[t])}ir.prototype.add=ir.prototype.push=mw;ir.prototype.has=vw;function bw(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function yw(e,t){return e.has(t)}var _w=1,ww=2;function Dp(e,t,n,o,s,i){var a=n&_w,r=e.length,l=t.length;if(r!=l&&!(a&&l>r))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=n&ww?new ir:void 0;for(i.set(e,t),i.set(t,e);++d<r;){var p=e[d],g=t[d];if(o)var m=a?o(g,p,d,t,e,i):o(p,g,d,e,t,i);if(m!==void 0){if(m)continue;f=!1;break}if(h){if(!bw(t,function(b,w){if(!yw(h,w)&&(p===b||s(p,b,n,o,i)))return h.push(w)})){f=!1;break}}else if(!(p===g||s(p,g,n,o,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function Sw(e){var t=-1,n=Array(e.size);return e.forEach(function(o,s){n[++t]=[s,o]}),n}function xw(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Cw=1,kw=2,Ew="[object Boolean]",Mw="[object Date]",Tw="[object Error]",Pw="[object Map]",Ow="[object Number]",Aw="[object RegExp]",Rw="[object Set]",Lw="[object String]",Iw="[object Symbol]",$w="[object ArrayBuffer]",Fw="[object DataView]",od=Ts?Ts.prototype:void 0,Br=od?od.valueOf:void 0;function Bw(e,t,n,o,s,i,a){switch(n){case Fw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $w:return!(e.byteLength!=t.byteLength||!i(new sr(e),new sr(t)));case Ew:case Mw:case Ow:return pu(+e,+t);case Tw:return e.name==t.name&&e.message==t.message;case Aw:case Lw:return e==t+"";case Pw:var r=Sw;case Rw:var l=o&Cw;if(r||(r=xw),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;o|=kw,a.set(e,t);var c=Dp(r(e),r(t),o,s,i,a);return a.delete(e),c;case Iw:if(Br)return Br.call(e)==Br.call(t)}return!1}var Dw=1,Nw=Object.prototype,zw=Nw.hasOwnProperty;function Vw(e,t,n,o,s,i){var a=n&Dw,r=_l(e),l=r.length,u=_l(t),c=u.length;if(l!=c&&!a)return!1;for(var d=l;d--;){var f=r[d];if(!(a?f in t:zw.call(t,f)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var m=a;++d<l;){f=r[d];var b=e[f],w=t[f];if(o)var S=a?o(w,b,f,t,e,i):o(b,w,f,e,t,i);if(!(S===void 0?b===w||s(b,w,n,o,i):S)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var _=e.constructor,y=t.constructor;_!=y&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof y=="function"&&y instanceof y)&&(g=!1)}return i.delete(e),i.delete(t),g}var Hw=1,sd="[object Arguments]",id="[object Array]",ca="[object Object]",Ww=Object.prototype,ad=Ww.hasOwnProperty;function jw(e,t,n,o,s,i){var a=an(e),r=an(t),l=a?id:Ri(e),u=r?id:Ri(t);l=l==sd?ca:l,u=u==sd?ca:u;var c=l==ca,d=u==ca,f=l==u;if(f&&Ai(e)){if(!Ai(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new wn),a||ku(e)?Dp(e,t,n,o,s,i):Bw(e,t,l,n,o,s,i);if(!(n&Hw)){var h=c&&ad.call(e,"__wrapped__"),p=d&&ad.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,m=p?t.value():t;return i||(i=new wn),s(g,m,n,o,i)}}return f?(i||(i=new wn),Vw(e,t,n,o,s,i)):!1}function _r(e,t,n,o,s){return e===t?!0:e==null||t==null||!io(e)&&!io(t)?e!==e&&t!==t:jw(e,t,n,o,_r,s)}var Uw=1,Kw=2;function qw(e,t,n,o){var s=n.length,i=s,a=!o;if(e==null)return!i;for(e=Object(e);s--;){var r=n[s];if(a&&r[2]?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++s<i;){r=n[s];var l=r[0],u=e[l],c=r[1];if(a&&r[2]){if(u===void 0&&!(l in e))return!1}else{var d=new wn;if(o)var f=o(u,c,l,e,t,d);if(!(f===void 0?_r(c,u,Uw|Kw,o,d):f))return!1}}return!0}function Np(e){return e===e&&!Bn(e)}function Yw(e){for(var t=Qi(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,Np(s)]}return t}function zp(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Gw(e){var t=Yw(e);return t.length==1&&t[0][2]?zp(t[0][0],t[0][1]):function(n){return n===e||qw(n,e,t)}}function Xw(e,t){return e!=null&&t in Object(e)}function Jw(e,t,n){t=Gh(t,e);for(var o=-1,s=t.length,i=!1;++o<s;){var a=mu(t[o]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++o!=s?i:(s=e==null?0:e.length,!!s&&Su(s)&&hu(a,s)&&(an(e)||Oi(e)))}function Vp(e,t){return e!=null&&Jw(e,t,Xw)}var Qw=1,Zw=2;function e1(e,t){return Xh(e)&&Np(t)?zp(mu(e),t):function(n){var o=Qn(n,e);return o===void 0&&o===t?Vp(n,e):_r(t,o,Qw|Zw)}}function t1(e){return function(t){return t==null?void 0:t[e]}}function n1(e){return function(t){return Jh(t,e)}}function o1(e){return Xh(e)?t1(mu(e)):n1(e)}function Hp(e){return typeof e=="function"?e:e==null?wu:typeof e=="object"?an(e)?e1(e[0],e[1]):Gw(e):o1(e)}function s1(e){return function(t,n,o){for(var s=-1,i=Object(t),a=o(t),r=a.length;r--;){var l=a[e?r:++s];if(n(i[l],l,i)===!1)break}return t}}var i1=s1();const Wp=i1;function a1(e,t){return e&&Wp(e,t,Qi)}function r1(e,t){return function(n,o){if(n==null)return n;if(!qs(n))return e(n,o);for(var s=n.length,i=t?s:-1,a=Object(n);(t?i--:++i<s)&&o(a[i],i,a)!==!1;);return n}}var l1=r1(a1);const u1=l1;var c1=function(){return Ro.Date.now()};const Dr=c1;var d1="Expected a function",f1=Math.max,h1=Math.min;function Rs(e,t,n){var o,s,i,a,r,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(d1);t=bl(t)||0,Bn(n)&&(c=!!n.leading,d="maxWait"in n,i=d?f1(bl(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function h(x){var C=o,E=s;return o=s=void 0,u=x,a=e.apply(E,C),a}function p(x){return u=x,r=setTimeout(b,t),c?h(x):a}function g(x){var C=x-l,E=x-u,O=t-C;return d?h1(O,i-E):O}function m(x){var C=x-l,E=x-u;return l===void 0||C>=t||C<0||d&&E>=i}function b(){var x=Dr();if(m(x))return w(x);r=setTimeout(b,g(x))}function w(x){return r=void 0,f&&o?h(x):(o=s=void 0,a)}function S(){r!==void 0&&clearTimeout(r),u=0,o=l=s=r=void 0}function _(){return r===void 0?a:w(Dr())}function y(){var x=Dr(),C=m(x);if(o=arguments,s=this,l=x,C){if(r===void 0)return p(l);if(d)return clearTimeout(r),r=setTimeout(b,t),h(l)}return r===void 0&&(r=setTimeout(b,t)),a}return y.cancel=S,y.flush=_,y}function Cl(e,t,n){(n!==void 0&&!pu(e[t],n)||n===void 0&&!(t in e))&&Uh(e,t,n)}function p1(e){return io(e)&&qs(e)}function kl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function g1(e){return Ji(e,Zi(e))}function m1(e,t,n,o,s,i,a){var r=kl(e,n),l=kl(t,n),u=a.get(l);if(u){Cl(e,n,u);return}var c=i?i(r,l,n+"",e,t,a):void 0,d=c===void 0;if(d){var f=an(l),h=!f&&Ai(l),p=!f&&!h&&ku(l);c=l,f||h||p?an(r)?c=r:p1(r)?c=yp(r):h?(d=!1,c=Pp(l,!0)):p?(d=!1,c=Lp(l,!0)):c=[]:R0(l)||Oi(l)?(c=r,Oi(r)?c=g1(r):(!Bn(r)||qh(r))&&(c=Ip(l))):d=!1}d&&(a.set(l,c),s(c,l,o,i,a),a.delete(l)),Cl(e,n,c)}function jp(e,t,n,o,s){e!==t&&Wp(t,function(i,a){if(s||(s=new wn),Bn(i))m1(e,t,a,n,jp,o,s);else{var r=o?o(kl(e,a),i,a+"",e,t,s):void 0;r===void 0&&(r=i),Cl(e,a,r)}},Zi)}var v1=Math.max,b1=Math.min;function y1(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var s=o-1;return n!==void 0&&(s=uy(n),s=n<0?v1(o+s,0):b1(s,o-1)),xy(e,Hp(t),s,!0)}function _1(e,t){var n=-1,o=qs(e)?Array(e.length):[];return u1(e,function(s,i,a){o[++n]=t(s,i,a)}),o}function w1(e,t){var n=an(e)?sb:_1;return n(e,Hp(t))}function S1(e,t){return Mu(w1(e,t),1)}function ts(e,t){return _r(e,t)}function Up(e){return e===void 0}var x1=My(function(e,t,n){jp(e,t,n)});const Kp=x1;function C1(e,t,n){for(var o=-1,s=t.length,i={};++o<s;){var a=t[o],r=Jh(e,a);n(r,a)&&ib(i,Gh(a,e),r)}return i}function k1(e,t){return C1(e,t,function(n,o){return Vp(e,o)})}var E1=k0(function(e,t){return e==null?{}:k1(e,t)});const qp=E1,M1=e=>tt?window.requestAnimationFrame(e):setTimeout(e,16),T1=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),So=e=>ab(e);class P1 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Lo(e,t){throw new P1(`[${e}] ${t}`)}let da;const O1=e=>{var t;if(!tt)return 0;if(da!==void 0)return da;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const i=s.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),da=o-i,da};function A1(e,t){if(!tt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const s=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=s+t.offsetHeight,a=e.scrollTop,r=a+e.clientHeight;s<a?e.scrollTop=s:i>r&&(e.scrollTop=i-e.clientHeight)}const R1=(...e)=>t=>{e.forEach(n=>{je(n)?n(t):n.value=t})},Je="update:modelValue",ro="change",El="input",Yp=e=>["",...Ks].includes(e);var Ba=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Ba||{});const Da=e=>{const t=ze(e)?e:[e],n=[];return t.forEach(o=>{var s;ze(o)?n.push(...Da(o)):as(o)&&((s=o.component)==null?void 0:s.subTree)?n.push(o,...Da(o.component.subTree)):as(o)&&ze(o.children)?n.push(...Da(o.children)):n.push(o)}),n},L1=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),bn=e=>e,I1=["class","style"],$1=/^on[A-Z]/,F1=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=T(()=>((n==null?void 0:n.value)||[]).concat(I1)),s=Ve();return s?T(()=>{var i;return hl(Object.entries((i=s.proxy)==null?void 0:i.$attrs).filter(([a])=>!o.value.includes(a)&&!(t&&$1.test(a))))}):T(()=>({}))},ns=({from:e,replacement:t,scope:n,version:o,ref:s,type:i="API"},a)=>{ie(()=>v(a),r=>{},{immediate:!0})},Gp=(e,t,n,o)=>{let s={offsetX:0,offsetY:0};const i=u=>{const c=u.clientX,d=u.clientY,{offsetX:f,offsetY:h}=s,p=e.value.getBoundingClientRect(),g=p.left,m=p.top,b=p.width,w=p.height,S=document.documentElement.clientWidth,_=document.documentElement.clientHeight,y=-g+f,x=-m+h,C=S-g-b+f,E=_-m-w+h,O=$=>{let N=f+$.clientX-c,j=h+$.clientY-d;o!=null&&o.value||(N=Math.min(Math.max(N,y),C),j=Math.min(Math.max(j,x),E)),s={offsetX:N,offsetY:j},e.value&&(e.value.style.transform=`translate(${jt(N)}, ${jt(j)})`)},I=()=>{document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)},l=()=>{s={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return De(()=>{no(()=>{n.value?a():r()})}),yt(()=>{r()}),{resetPosition:l}},Xp=(e,t={})=>{Po(e)||Lo("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||pe("popup"),o=T(()=>n.bm("parent","hidden"));if(!tt||qo(document.body,o.value))return;let s=0,i=!1,a="0";const r=()=>{setTimeout(()=>{typeof document>"u"||(Ps(document==null?void 0:document.body,o.value),i&&document&&(document.body.style.width=a))},200)};ie(e,l=>{if(!l){r();return}i=!qo(document.body,o.value),i&&(a=document.body.style.width),s=O1(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=rb(document.body,"overflowY");s>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${s}px)`),Ei(document.body,o.value)}),lb(()=>r())},B1=Qh({type:he(Boolean),default:null}),D1=Qh({type:he(Function)}),N1=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],s={[e]:B1,[n]:D1};return{useModelToggle:({indicator:a,toggleReason:r,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:d})=>{const f=Ve(),{emit:h}=f,p=f.props,g=T(()=>je(p[n])),m=T(()=>p[e]===null),b=C=>{a.value!==!0&&(a.value=!0,r&&(r.value=C),je(c)&&c(C))},w=C=>{a.value!==!1&&(a.value=!1,r&&(r.value=C),je(d)&&d(C))},S=C=>{if(p.disabled===!0||je(u)&&!u())return;const E=g.value&&tt;E&&h(t,!0),(m.value||!E)&&b(C)},_=C=>{if(p.disabled===!0||!tt)return;const E=g.value&&tt;E&&h(t,!1),(m.value||!E)&&w(C)},y=C=>{!lt(C)||(p.disabled&&C?g.value&&h(t,!1):a.value!==C&&(C?b():w()))},x=()=>{a.value?_():S()};return ie(()=>p[e],y),l&&f.appContext.config.globalProperties.$route!==void 0&&ie(()=>({...f.proxy.$route}),()=>{l.value&&a.value&&_()}),De(()=>{y(p[e])}),{hide:_,show:S,toggle:x,hasUpdateHandler:g}},useModelToggleProps:s,useModelToggleEmits:o}},Jp=e=>{const t=Ve();return T(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})};var Ht="top",ln="bottom",un="right",Wt="left",Au="auto",ea=[Ht,ln,un,Wt],Ls="start",Li="end",z1="clippingParents",Qp="viewport",Qs="popper",V1="reference",rd=ea.reduce(function(e,t){return e.concat([t+"-"+Ls,t+"-"+Li])},[]),wr=[].concat(ea,[Au]).reduce(function(e,t){return e.concat([t,t+"-"+Ls,t+"-"+Li])},[]),H1="beforeRead",W1="read",j1="afterRead",U1="beforeMain",K1="main",q1="afterMain",Y1="beforeWrite",G1="write",X1="afterWrite",J1=[H1,W1,j1,U1,K1,q1,Y1,G1,X1];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Mn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Is(e){var t=Mn(e).Element;return e instanceof t||e instanceof Element}function sn(e){var t=Mn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ru(e){if(typeof ShadowRoot>"u")return!1;var t=Mn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q1(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!sn(i)||!Dn(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(a){var r=s[a];r===!1?i.removeAttribute(a):i.setAttribute(a,r===!0?"":r)}))})}function Z1(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),r=a.reduce(function(l,u){return l[u]="",l},{});!sn(s)||!Dn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(l){s.removeAttribute(l)}))})}}var Zp={name:"applyStyles",enabled:!0,phase:"write",fn:Q1,effect:Z1,requires:["computeStyles"]};function $n(e){return e.split("-")[0]}var os=Math.max,ar=Math.min,$s=Math.round;function Fs(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(sn(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(o=$s(n.width)/a||1),i>0&&(s=$s(n.height)/i||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function Lu(e){var t=Fs(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function eg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ru(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function lo(e){return Mn(e).getComputedStyle(e)}function eS(e){return["table","td","th"].indexOf(Dn(e))>=0}function Io(e){return((Is(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sr(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(Ru(e)?e.host:null)||Io(e)}function ld(e){return!sn(e)||lo(e).position==="fixed"?null:e.offsetParent}function tS(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&sn(e)){var o=lo(e);if(o.position==="fixed")return null}var s=Sr(e);for(Ru(s)&&(s=s.host);sn(s)&&["html","body"].indexOf(Dn(s))<0;){var i=lo(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function ta(e){for(var t=Mn(e),n=ld(e);n&&eS(n)&&lo(n).position==="static";)n=ld(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&lo(n).position==="static")?t:n||tS(e)||t}function Iu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pi(e,t,n){return os(e,ar(t,n))}function nS(e,t,n){var o=pi(e,t,n);return o>n?n:o}function tg(){return{top:0,right:0,bottom:0,left:0}}function ng(e){return Object.assign({},tg(),e)}function og(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var oS=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ng(typeof e!="number"?e:og(e,ea))};function sS(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,r=$n(n.placement),l=Iu(r),u=[Wt,un].indexOf(r)>=0,c=u?"height":"width";if(!(!i||!a)){var d=oS(s.padding,n),f=Lu(i),h=l==="y"?Ht:Wt,p=l==="y"?ln:un,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],b=ta(i),w=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=g/2-m/2,_=d[h],y=w-f[c]-d[p],x=w/2-f[c]/2+S,C=pi(_,x,y),E=l;n.modifiersData[o]=(t={},t[E]=C,t.centerOffset=C-x,t)}}function iS(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!eg(t.elements.popper,s)||(t.elements.arrow=s))}var aS={name:"arrow",enabled:!0,phase:"main",fn:sS,effect:iS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bs(e){return e.split("-")[1]}var rS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lS(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:$s(t*s)/s||0,y:$s(n*s)/s||0}}function ud(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,r=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,g=p===void 0?0:p,m=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var b=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Wt,_=Ht,y=window;if(u){var x=ta(n),C="clientHeight",E="clientWidth";if(x===Mn(n)&&(x=Io(n),lo(x).position!=="static"&&r==="absolute"&&(C="scrollHeight",E="scrollWidth")),x=x,s===Ht||(s===Wt||s===un)&&i===Li){_=ln;var O=d&&x===y&&y.visualViewport?y.visualViewport.height:x[C];g-=O-o.height,g*=l?1:-1}if(s===Wt||(s===Ht||s===ln)&&i===Li){S=un;var I=d&&x===y&&y.visualViewport?y.visualViewport.width:x[E];h-=I-o.width,h*=l?1:-1}}var $=Object.assign({position:r},u&&rS),N=c===!0?lS({x:h,y:g}):{x:h,y:g};if(h=N.x,g=N.y,l){var j;return Object.assign({},$,(j={},j[_]=w?"0":"",j[S]=b?"0":"",j.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},$,(t={},t[_]=w?g+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function uS(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,r=n.roundOffsets,l=r===void 0?!0:r,u={placement:$n(t.placement),variation:Bs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ud(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ud(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var sg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uS,data:{}},fa={passive:!0};function cS(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,a=o.resize,r=a===void 0?!0:a,l=Mn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,fa)}),r&&l.addEventListener("resize",n.update,fa),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,fa)}),r&&l.removeEventListener("resize",n.update,fa)}}var ig={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cS,data:{}},dS={left:"right",right:"left",bottom:"top",top:"bottom"};function Na(e){return e.replace(/left|right|bottom|top/g,function(t){return dS[t]})}var fS={start:"end",end:"start"};function cd(e){return e.replace(/start|end/g,function(t){return fS[t]})}function $u(e){var t=Mn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Fu(e){return Fs(Io(e)).left+$u(e).scrollLeft}function hS(e){var t=Mn(e),n=Io(e),o=t.visualViewport,s=n.clientWidth,i=n.clientHeight,a=0,r=0;return o&&(s=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,r=o.offsetTop)),{width:s,height:i,x:a+Fu(e),y:r}}function pS(e){var t,n=Io(e),o=$u(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=os(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=os(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),r=-o.scrollLeft+Fu(e),l=-o.scrollTop;return lo(s||n).direction==="rtl"&&(r+=os(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:r,y:l}}function Bu(e){var t=lo(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function ag(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:sn(e)&&Bu(e)?e:ag(Sr(e))}function gi(e,t){var n;t===void 0&&(t=[]);var o=ag(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Mn(o),a=s?[i].concat(i.visualViewport||[],Bu(o)?o:[]):o,r=t.concat(a);return s?r:r.concat(gi(Sr(a)))}function Ml(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gS(e){var t=Fs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function dd(e,t){return t===Qp?Ml(hS(e)):Is(t)?gS(t):Ml(pS(Io(e)))}function mS(e){var t=gi(Sr(e)),n=["absolute","fixed"].indexOf(lo(e).position)>=0,o=n&&sn(e)?ta(e):e;return Is(o)?t.filter(function(s){return Is(s)&&eg(s,o)&&Dn(s)!=="body"}):[]}function vS(e,t,n){var o=t==="clippingParents"?mS(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(r,l){var u=dd(e,l);return r.top=os(u.top,r.top),r.right=ar(u.right,r.right),r.bottom=ar(u.bottom,r.bottom),r.left=os(u.left,r.left),r},dd(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rg(e){var t=e.reference,n=e.element,o=e.placement,s=o?$n(o):null,i=o?Bs(o):null,a=t.x+t.width/2-n.width/2,r=t.y+t.height/2-n.height/2,l;switch(s){case Ht:l={x:a,y:t.y-n.height};break;case ln:l={x:a,y:t.y+t.height};break;case un:l={x:t.x+t.width,y:r};break;case Wt:l={x:t.x-n.width,y:r};break;default:l={x:t.x,y:t.y}}var u=s?Iu(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ls:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Li:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Ii(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.boundary,a=i===void 0?z1:i,r=n.rootBoundary,l=r===void 0?Qp:r,u=n.elementContext,c=u===void 0?Qs:u,d=n.altBoundary,f=d===void 0?!1:d,h=n.padding,p=h===void 0?0:h,g=ng(typeof p!="number"?p:og(p,ea)),m=c===Qs?V1:Qs,b=e.rects.popper,w=e.elements[f?m:c],S=vS(Is(w)?w:w.contextElement||Io(e.elements.popper),a,l),_=Fs(e.elements.reference),y=rg({reference:_,element:b,strategy:"absolute",placement:s}),x=Ml(Object.assign({},b,y)),C=c===Qs?x:_,E={top:S.top-C.top+g.top,bottom:C.bottom-S.bottom+g.bottom,left:S.left-C.left+g.left,right:C.right-S.right+g.right},O=e.modifiersData.offset;if(c===Qs&&O){var I=O[s];Object.keys(E).forEach(function($){var N=[un,ln].indexOf($)>=0?1:-1,j=[Ht,ln].indexOf($)>=0?"y":"x";E[$]+=I[j]*N})}return E}function bS(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,r=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?wr:l,c=Bs(o),d=c?r?rd:rd.filter(function(p){return Bs(p)===c}):ea,f=d.filter(function(p){return u.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,g){return p[g]=Ii(e,{placement:g,boundary:s,rootBoundary:i,padding:a})[$n(g)],p},{});return Object.keys(h).sort(function(p,g){return h[p]-h[g]})}function yS(e){if($n(e)===Au)return[];var t=Na(e);return[cd(e),t,cd(t)]}function _S(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,r=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,g=n.allowedAutoPlacements,m=t.options.placement,b=$n(m),w=b===m,S=l||(w||!p?[Na(m)]:yS(m)),_=[m].concat(S).reduce(function(Q,oe){return Q.concat($n(oe)===Au?bS(t,{placement:oe,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:g}):oe)},[]),y=t.rects.reference,x=t.rects.popper,C=new Map,E=!0,O=_[0],I=0;I<_.length;I++){var $=_[I],N=$n($),j=Bs($)===Ls,ae=[Ht,ln].indexOf(N)>=0,Y=ae?"width":"height",z=Ii(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),J=ae?j?un:Wt:j?ln:Ht;y[Y]>x[Y]&&(J=Na(J));var U=Na(J),H=[];if(i&&H.push(z[N]<=0),r&&H.push(z[J]<=0,z[U]<=0),H.every(function(Q){return Q})){O=$,E=!1;break}C.set($,H)}if(E)for(var de=p?3:1,Se=function(Q){var oe=_.find(function(ne){var F=C.get(ne);if(F)return F.slice(0,Q).every(function(V){return V})});if(oe)return O=oe,"break"},te=de;te>0;te--){var X=Se(te);if(X==="break")break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}}var wS={name:"flip",enabled:!0,phase:"main",fn:_S,requiresIfExists:["offset"],data:{_skip:!1}};function fd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function hd(e){return[Ht,un,ln,Wt].some(function(t){return e[t]>=0})}function SS(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ii(t,{elementContext:"reference"}),r=Ii(t,{altBoundary:!0}),l=fd(a,o),u=fd(r,s,i),c=hd(l),d=hd(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var xS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SS};function CS(e,t,n){var o=$n(e),s=[Wt,Ht].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],r=i[1];return a=a||0,r=(r||0)*s,[Wt,un].indexOf(o)>=0?{x:r,y:a}:{x:a,y:r}}function kS(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=wr.reduce(function(c,d){return c[d]=CS(d,t.rects,i),c},{}),r=a[t.placement],l=r.x,u=r.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}var ES={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kS};function MS(e){var t=e.state,n=e.name;t.modifiersData[n]=rg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var lg={name:"popperOffsets",enabled:!0,phase:"read",fn:MS,data:{}};function TS(e){return e==="x"?"y":"x"}function PS(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,r=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,g=p===void 0?0:p,m=Ii(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=$n(t.placement),w=Bs(t.placement),S=!w,_=Iu(b),y=TS(_),x=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,I=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(i){var j,ae=_==="y"?Ht:Wt,Y=_==="y"?ln:un,z=_==="y"?"height":"width",J=x[_],U=J+m[ae],H=J-m[Y],de=h?-E[z]/2:0,Se=w===Ls?C[z]:E[z],te=w===Ls?-E[z]:-C[z],X=t.elements.arrow,Q=h&&X?Lu(X):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tg(),ne=oe[ae],F=oe[Y],V=pi(0,C[z],Q[z]),B=S?C[z]/2-de-V-ne-I.mainAxis:Se-V-ne-I.mainAxis,Z=S?-C[z]/2+de+V+F+I.mainAxis:te+V+F+I.mainAxis,fe=t.elements.arrow&&ta(t.elements.arrow),Ee=fe?_==="y"?fe.clientTop||0:fe.clientLeft||0:0,ve=(j=$==null?void 0:$[_])!=null?j:0,xe=J+B-ve-Ee,be=J+Z-ve,dt=pi(h?ar(U,xe):U,J,h?os(H,be):H);x[_]=dt,N[_]=dt-J}if(r){var Ke,Tn=_==="x"?Ht:Wt,ho=_==="x"?ln:un,Ct=x[y],en=y==="y"?"height":"width",po=Ct+m[Tn],Wn=Ct-m[ho],se=[Ht,Wt].indexOf(b)!==-1,qe=(Ke=$==null?void 0:$[y])!=null?Ke:0,Lt=se?po:Ct-C[en]-E[en]-qe+I.altAxis,Pn=se?Ct+C[en]+E[en]-qe-I.altAxis:Wn,On=h&&se?nS(Lt,Ct,Pn):pi(h?Lt:po,Ct,h?Pn:Wn);x[y]=On,N[y]=On-Ct}t.modifiersData[o]=N}}var OS={name:"preventOverflow",enabled:!0,phase:"main",fn:PS,requiresIfExists:["offset"]};function AS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RS(e){return e===Mn(e)||!sn(e)?$u(e):AS(e)}function LS(e){var t=e.getBoundingClientRect(),n=$s(t.width)/e.offsetWidth||1,o=$s(t.height)/e.offsetHeight||1;return n!==1||o!==1}function IS(e,t,n){n===void 0&&(n=!1);var o=sn(t),s=sn(t)&&LS(t),i=Io(t),a=Fs(e,s),r={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Dn(t)!=="body"||Bu(i))&&(r=RS(t)),sn(t)?(l=Fs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Fu(i))),{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}function $S(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(r){if(!n.has(r)){var l=t.get(r);l&&s(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function FS(e){var t=$S(e);return J1.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function BS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DS(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var pd={placement:"bottom",modifiers:[],strategy:"absolute"};function gd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Du(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?pd:s;return function(a,r,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},pd,i),modifiersData:{},elements:{reference:a,popper:r},attributes:{},styles:{}},c=[],d=!1,f={state:u,setOptions:function(g){var m=typeof g=="function"?g(u.options):g;p(),u.options=Object.assign({},i,u.options,m),u.scrollParents={reference:Is(a)?gi(a):a.contextElement?gi(a.contextElement):[],popper:gi(r)};var b=FS(DS([].concat(o,u.options.modifiers)));return u.orderedModifiers=b.filter(function(w){return w.enabled}),h(),f.update()},forceUpdate:function(){if(!d){var g=u.elements,m=g.reference,b=g.popper;if(gd(m,b)){u.rects={reference:IS(m,ta(b),u.options.strategy==="fixed"),popper:Lu(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var S=u.orderedModifiers[w],_=S.fn,y=S.options,x=y===void 0?{}:y,C=S.name;typeof _=="function"&&(u=_({state:u,options:x,name:C,instance:f})||u)}}}},update:BS(function(){return new Promise(function(g){f.forceUpdate(),g(u)})}),destroy:function(){p(),d=!0}};if(!gd(a,r))return f;f.setOptions(l).then(function(g){!d&&l.onFirstUpdate&&l.onFirstUpdate(g)});function h(){u.orderedModifiers.forEach(function(g){var m=g.name,b=g.options,w=b===void 0?{}:b,S=g.effect;if(typeof S=="function"){var _=S({state:u,name:m,instance:f,options:w}),y=function(){};c.push(_||y)}})}function p(){c.forEach(function(g){return g()}),c=[]}return f}}Du();var NS=[ig,lg,sg,Zp];Du({defaultModifiers:NS});var zS=[ig,lg,sg,Zp,ES,wS,OS,aS,xS],VS=Du({defaultModifiers:zS});const HS=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=WS(l);Object.assign(a.value,u)},requires:["computeStyles"]},s=T(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:d}=v(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...d||[],o,{name:"applyStyles",enabled:!1}]}}),i=oo(),a=R({styles:{popper:{position:v(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),r=()=>{!i.value||(i.value.destroy(),i.value=void 0)};return ie(s,l=>{const u=v(i);u&&u.setOptions(l)},{deep:!0}),ie([e,t],([l,u])=>{r(),!(!l||!u)&&(i.value=VS(l,u,v(s)))}),yt(()=>{r()}),{state:T(()=>{var l;return{...((l=v(i))==null?void 0:l.state)||{}}}),styles:T(()=>v(a).styles),attributes:T(()=>v(a).attributes),update:()=>{var l;return(l=v(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=v(i))==null?void 0:l.forceUpdate()},instanceRef:T(()=>v(i))}};function WS(e){const t=Object.keys(e.elements),n=hl(t.map(s=>[s,e.styles[s]||{}])),o=hl(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:o}}const Nu=e=>{if(!e)return{onClick:Zo,onMousedown:Zo,onMouseup:Zo};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},jS=(e,t=0)=>{if(t===0)return e;const n=St(t)&&Boolean(t.initVal),o=R(n);let s=null;const i=r=>{if($t(r)){o.value=e.value;return}s&&clearTimeout(s),s=setTimeout(()=>{o.value=e.value},r)},a=r=>{r==="leading"?Te(t)?i(t):i(t.leading):St(t)?i(t.trailing):o.value=!1};return De(()=>a("leading")),ie(()=>e.value,r=>{a(r?"leading":"trailing")}),o};function md(){let e;const t=(o,s)=>{n(),e=window.setTimeout(o,s)},n=()=>window.clearTimeout(e);return ub(()=>n()),{registerTimeout:t,cancelTimeout:n}}const vd={prefix:Math.floor(Math.random()*1e4),current:0},US=Symbol("elIdInjection"),ug=()=>Ve()?we(US,vd):vd,Nn=e=>{const t=ug(),n=Zh();return pl(()=>v(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Cs=[];const bd=e=>{e.code===rt.esc&&Cs.forEach(t=>t(e))},KS=e=>{De(()=>{Cs.length===0&&document.addEventListener("keydown",bd),tt&&Cs.push(e)}),yt(()=>{Cs=Cs.filter(t=>t!==e),Cs.length===0&&tt&&document.removeEventListener("keydown",bd)})},cg=()=>{const e=Zh(),t=ug(),n=T(()=>`${e.value}-popper-container-${t.prefix}`),o=T(()=>`#${n.value}`);return{id:n,selector:o}},qS=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},YS=()=>{const{id:e,selector:t}=cg();return vu(()=>{!tt||document.body.querySelector(t.value)||qS(e.value)}),{id:e,selector:t}},GS=ye({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),XS=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:s})=>{const{registerTimeout:i}=md(),{registerTimeout:a,cancelTimeout:r}=md();return{onOpen:c=>{i(()=>{o(c);const d=v(n);Te(d)&&d>0&&a(()=>{s(c)},d)},v(e))},onClose:c=>{r(),i(()=>{s(c)},v(t))}}},dg=Symbol("elForwardRef"),JS=e=>{nt(dg,{setForwardRef:n=>{e.value=n}})},QS=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}});function ZS(e){let t;function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:i,value:a}=e.value;if(s==null||i==null)return;const r=a.slice(0,Math.max(0,s)),l=a.slice(Math.max(0,i));t={selectionStart:s,selectionEnd:i,value:a,beforeTxt:r,afterTxt:l}}function o(){if(e.value==null||t==null)return;const{value:s}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:r}=t;if(i==null||a==null||r==null)return;let l=s.length;if(s.endsWith(a))l=s.length-a.length;else if(s.startsWith(i))l=i.length;else{const u=i[r-1],c=s.indexOf(u,r-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,o]}const ex=(e,t,n)=>Da(e.subTree).filter(i=>{var a;return as(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),fg=(e,t)=>{const n={},o=oo([]);return{children:o,addChild:a=>{n[a.uid]=a,o.value=ex(e,t,n)},removeChild:a=>{delete n[a],o.value=o.value.filter(r=>r.uid!==a)}}};function zu(e,{beforeFocus:t,afterFocus:n,beforeBlur:o,afterBlur:s}={}){const i=Ve(),{emit:a}=i,r=oo(),l=R(!1),u=f=>{(je(t)?t(f):!1)||l.value||(l.value=!0,a("focus",f),n==null||n())},c=f=>{var h;(je(o)?o(f):!1)||f.relatedTarget&&((h=r.value)==null?void 0:h.contains(f.relatedTarget))||(l.value=!1,a("blur",f),s==null||s())},d=()=>{var f,h;((f=r.value)==null?void 0:f.contains(document.activeElement))&&r.value!==document.activeElement||(h=e.value)==null||h.focus()};return ie(r,f=>{f&&f.setAttribute("tabindex","-1")}),so(r,"focus",u,!0),so(r,"blur",c,!0),so(r,"click",d,!0),{isFocused:l,wrapperRef:r,handleFocus:u,handleBlur:c}}function hg({afterComposition:e,emit:t}){const n=R(!1),o=r=>{t==null||t("compositionstart",r),n.value=!0},s=r=>{var l;t==null||t("compositionupdate",r);const u=(l=r.target)==null?void 0:l.value,c=u[u.length-1]||"";n.value=!L1(c)},i=r=>{t==null||t("compositionend",r),n.value&&(n.value=!1,Me(()=>e(r)))};return{isComposing:n,handleComposition:r=>{r.type==="compositionend"?i(r):s(r)},handleCompositionStart:o,handleCompositionUpdate:s,handleCompositionEnd:i}}const tx=ye({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),zn=e=>qp(tx,e),nx=ye({a11y:{type:Boolean,default:!0},locale:{type:he(Object)},size:En,button:{type:he(Object)},experimentalFeatures:{type:he(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:he(Object)},zIndex:Number,namespace:{type:String,default:"el"},...ep}),mn={};K({name:"ElConfigProvider",props:nx,setup(e,{slots:t}){ie(()=>e.message,o=>{Object.assign(mn,o!=null?o:{})},{immediate:!0,deep:!0});const n=cb(e);return()=>re(t,"default",{config:n==null?void 0:n.value})}});const Ys=Symbol("formContextKey"),rs=Symbol("formItemContextKey"),cn=(e,t={})=>{const n=R(void 0),o=t.prop?n:Jp("size"),s=t.global?n:tp(),i=t.form?{size:void 0}:we(Ys,void 0),a=t.formItem?{size:void 0}:we(rs,void 0);return T(()=>o.value||v(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||s.value||"")},hs=e=>{const t=Jp("disabled"),n=we(Ys,void 0);return T(()=>t.value||v(e)||(n==null?void 0:n.disabled)||!1)},fo=()=>{const e=we(Ys,void 0),t=we(rs,void 0);return{form:e,formItem:t}},ps=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=R(!1)),o||(o=R(!1));const s=R();let i;const a=T(()=>{var r;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((r=t.inputIds)==null?void 0:r.length)<=1)});return De(()=>{i=ie([on(e,"id"),n],([r,l])=>{const u=r!=null?r:l?void 0:Nn().value;u!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(o!=null&&o.value)&&!l&&u&&t.addInputId(u)),s.value=u)},{immediate:!0})}),Xi(()=>{i&&i(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:a,inputId:s}},ox=ye({size:{type:String,values:Ks},disabled:Boolean}),sx=ye({...ox,model:Object,rules:{type:he(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),ix={validate:(e,t,n)=>(ze(e)||Ie(e))&&lt(t)&&Ie(n)};function ax(){const e=R([]),t=T(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function o(i,a){if(i&&a){const r=n(a);e.value.splice(r,1,i)}else i&&e.value.push(i)}function s(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:s}}const ha=(e,t)=>{const n=vn(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},rx="ElForm",lx=K({name:rx}),ux=K({...lx,props:sx,emits:ix,setup(e,{expose:t,emit:n}){const o=e,s=[],i=cn(),a=pe("form"),r=T(()=>{const{labelPosition:S,inline:_}=o;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${S}`)]:S,[a.m("inline")]:_}]}),l=S=>s.find(_=>_.prop===S),u=S=>{s.push(S)},c=S=>{S.prop&&s.splice(s.indexOf(S),1)},d=(S=[])=>{!o.model||ha(s,S).forEach(_=>_.resetField())},f=(S=[])=>{ha(s,S).forEach(_=>_.clearValidate())},h=T(()=>!!o.model),p=S=>{if(s.length===0)return[];const _=ha(s,S);return _.length?_:[]},g=async S=>b(void 0,S),m=async(S=[])=>{if(!h.value)return!1;const _=p(S);if(_.length===0)return!0;let y={};for(const x of _)try{await x.validate("")}catch(C){y={...y,...C}}return Object.keys(y).length===0?!0:Promise.reject(y)},b=async(S=[],_)=>{const y=!je(_);try{const x=await m(S);return x===!0&&await(_==null?void 0:_(x)),x}catch(x){if(x instanceof Error)throw x;const C=x;return o.scrollToError&&w(Object.keys(C)[0]),await(_==null?void 0:_(!1,C)),y&&Promise.reject(C)}},w=S=>{var _;const y=ha(s,S)[0];y&&((_=y.$el)==null||_.scrollIntoView(o.scrollIntoViewOptions))};return ie(()=>o.rules,()=>{o.validateOnRuleChange&&g().catch(S=>void 0)},{deep:!0}),nt(Ys,Ft({...uo(o),emit:n,resetFields:d,clearValidate:f,validateField:b,getField:l,addField:u,removeField:c,...ax()})),t({validate:g,validateField:b,resetFields:d,clearValidate:f,scrollToField:w,fields:s}),(S,_)=>(M(),D("form",{class:A(v(r))},[re(S.$slots,"default")],2))}});var cx=me(ux,[["__file","form.vue"]]);function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yo.apply(this,arguments)}function dx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$i(e,t)}function Tl(e){return Tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tl(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},$i(e,t)}function fx(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function za(e,t,n){return fx()?za=Reflect.construct.bind():za=function(s,i,a){var r=[null];r.push.apply(r,i);var l=Function.bind.apply(s,r),u=new l;return a&&$i(u,a.prototype),u},za.apply(null,arguments)}function hx(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Pl(e){var t=typeof Map=="function"?new Map:void 0;return Pl=function(o){if(o===null||!hx(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,s)}function s(){return za(o,arguments,Tl(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),$i(s,o)},Pl(e)}var px=/%[sdj%]/g,gx=function(){};typeof process<"u"&&process.env;function Ol(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function Jt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var s=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(px,function(r){if(r==="%%")return"%";if(s>=i)return r;switch(r){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch{return"[Circular]"}break;default:return r}});return a}return e}function mx(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function bt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||mx(t)&&typeof e=="string"&&!e)}function vx(e,t,n){var o=[],s=0,i=e.length;function a(r){o.push.apply(o,r||[]),s++,s===i&&n(o)}e.forEach(function(r){t(r,a)})}function yd(e,t,n){var o=0,s=e.length;function i(a){if(a&&a.length){n(a);return}var r=o;o=o+1,r<s?t(e[r],i):n([])}i([])}function bx(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var _d=function(e){dx(t,e);function t(n,o){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=n,s.fields=o,s}return t}(Pl(Error));function yx(e,t,n,o,s){if(t.first){var i=new Promise(function(f,h){var p=function(b){return o(b),b.length?h(new _d(b,Ol(b))):f(s)},g=bx(e);yd(g,n,p)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],r=Object.keys(e),l=r.length,u=0,c=[],d=new Promise(function(f,h){var p=function(m){if(c.push.apply(c,m),u++,u===l)return o(c),c.length?h(new _d(c,Ol(c))):f(s)};r.length||(o(c),f(s)),r.forEach(function(g){var m=e[g];a.indexOf(g)!==-1?yd(m,n,p):vx(m,n,p)})});return d.catch(function(f){return f}),d}function _x(e){return!!(e&&e.message!==void 0)}function wx(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function wd(e,t){return function(n){var o;return e.fullFields?o=wx(t,e.fullFields):o=t[n.field||e.fullField],_x(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function Sd(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=Yo({},e[n],o):e[n]=o}}return e}var pg=function(t,n,o,s,i,a){t.required&&(!o.hasOwnProperty(t.field)||bt(n,a||t.type))&&s.push(Jt(i.messages.required,t.fullField))},Sx=function(t,n,o,s,i){(/^\s+$/.test(n)||n==="")&&s.push(Jt(i.messages.whitespace,t.fullField))},pa,xx=function(){if(pa)return pa;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",s=(`
    22(?:
    33(?:`+o+":){7}(?:"+o+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
     
    1010(?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
    1111)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
    12 `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+s+"$)"),r=new RegExp("^"+n+"$"),a=new RegExp("^"+s+"$"),l=function(_){return _&&_.exact?i:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+s+t(_)+")","g")};l.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?a:new RegExp(""+t(w)+s+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+f+"|"+p+g+h+")"+v+m;return cr=new RegExp("(?:^"+y+"$)","i"),cr},ud={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ri={integer:function(t){return ri.number(t)&&parseInt(t,10)===t},float:function(t){return ri.number(t)&&!ri.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ri.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ud.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Dx())},hex:function(t){return typeof t=="string"&&!!t.match(ud.hex)}},Bx=function(t,n,o,s,i){if(t.required&&n===void 0){Gp(t,n,o,s,i);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;r.indexOf(a)>-1?ri[a](n)||s.push(Xt(i.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&s.push(Xt(i.messages.types[a],t.fullField,t.type))},Nx=function(t,n,o,s,i){var r=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",p=typeof n=="string",g=Array.isArray(n);if(f?d="number":p?d="string":g&&(d="array"),!d)return!1;g&&(u=n.length),p&&(u=n.replace(c,"_").length),r?u!==t.len&&s.push(Xt(i.messages[d].len,t.fullField,t.len)):a&&!l&&u<t.min?s.push(Xt(i.messages[d].min,t.fullField,t.min)):l&&!a&&u>t.max?s.push(Xt(i.messages[d].max,t.fullField,t.max)):a&&l&&(u<t.min||u>t.max)&&s.push(Xt(i.messages[d].range,t.fullField,t.min,t.max))},ps="enum",zx=function(t,n,o,s,i){t[ps]=Array.isArray(t[ps])?t[ps]:[],t[ps].indexOf(n)===-1&&s.push(Xt(i.messages[ps],t.fullField,t[ps].join(", ")))},Vx=function(t,n,o,s,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||s.push(Xt(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||s.push(Xt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ie={required:Gp,whitespace:Fx,type:Bx,range:Nx,enum:zx,pattern:Vx},Hx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n,"string")&&!t.required)return o();Ie.required(t,n,s,r,i,"string"),pt(n,"string")||(Ie.type(t,n,s,r,i),Ie.range(t,n,s,r,i),Ie.pattern(t,n,s,r,i),t.whitespace===!0&&Ie.whitespace(t,n,s,r,i))}o(r)},Wx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&Ie.type(t,n,s,r,i)}o(r)},jx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&(Ie.type(t,n,s,r,i),Ie.range(t,n,s,r,i))}o(r)},Ux=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&Ie.type(t,n,s,r,i)}o(r)},Kx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),pt(n)||Ie.type(t,n,s,r,i)}o(r)},qx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&(Ie.type(t,n,s,r,i),Ie.range(t,n,s,r,i))}o(r)},Yx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&(Ie.type(t,n,s,r,i),Ie.range(t,n,s,r,i))}o(r)},Gx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();Ie.required(t,n,s,r,i,"array"),n!=null&&(Ie.type(t,n,s,r,i),Ie.range(t,n,s,r,i))}o(r)},Xx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&Ie.type(t,n,s,r,i)}o(r)},Qx="enum",Jx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i),n!==void 0&&Ie[Qx](t,n,s,r,i)}o(r)},Zx=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n,"string")&&!t.required)return o();Ie.required(t,n,s,r,i),pt(n,"string")||Ie.pattern(t,n,s,r,i)}o(r)},eS=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n,"date")&&!t.required)return o();if(Ie.required(t,n,s,r,i),!pt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ie.type(t,l,s,r,i),l&&Ie.range(t,l.getTime(),s,r,i)}}o(r)},tS=function(t,n,o,s,i){var r=[],a=Array.isArray(n)?"array":typeof n;Ie.required(t,n,s,r,i,a),o(r)},Ia=function(t,n,o,s,i){var r=t.type,a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pt(n,r)&&!t.required)return o();Ie.required(t,n,s,a,i,r),pt(n,r)||Ie.type(t,n,s,a,i)}o(a)},nS=function(t,n,o,s,i){var r=[],a=t.required||!t.required&&s.hasOwnProperty(t.field);if(a){if(pt(n)&&!t.required)return o();Ie.required(t,n,s,r,i)}o(r)},mi={string:Hx,method:Wx,number:jx,boolean:Ux,regexp:Kx,integer:qx,float:Yx,array:Gx,object:Xx,enum:Jx,pattern:Zx,date:eS,url:Ia,hex:Ia,email:Ia,required:tS,any:nS};function xl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Sl=xl(),tr=function(){function e(n){this.rules=null,this._messages=Sl,this.define(n)}var t=e.prototype;return t.define=function(o){var s=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var r=o[i];s.rules[i]=Array.isArray(r)?r:[r]})},t.messages=function(o){return o&&(this._messages=cd(xl(),o)),this._messages},t.validate=function(o,s,i){var r=this;s===void 0&&(s={}),i===void 0&&(i=function(){});var a=o,l=s,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(h){var v=[],m={};function y(_){if(Array.isArray(_)){var x;v=(x=v).concat.apply(x,_)}else v.push(_)}for(var w=0;w<h.length;w++)y(h[w]);v.length?(m=wl(v),c(v,m)):c(null,a)}if(l.messages){var d=this.messages();d===Sl&&(d=xl()),cd(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(h){var v=r.rules[h],m=a[h];v.forEach(function(y){var w=y;typeof w.transform=="function"&&(a===o&&(a=Yo({},a)),m=a[h]=w.transform(m)),typeof w=="function"?w={validator:w}:w=Yo({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=h,w.fullField=w.fullField||h,w.type=r.getType(w),f[h]=f[h]||[],f[h].push({rule:w,value:m,source:a,field:h}))})});var g={};return Lx(f,l,function(h,v){var m=h.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&h.value),m.field=h.field;function w(S,C){return Yo({},C,{fullField:m.fullField+"."+S,fullFields:m.fullFields?[].concat(m.fullFields,[S]):[S]})}function _(S){S===void 0&&(S=[]);var C=Array.isArray(S)?S:[S];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&m.message!==void 0&&(C=[].concat(m.message));var k=C.map(ld(m,a));if(l.first&&k.length)return g[m.field]=1,v(k);if(!y)v(k);else{if(m.required&&!h.value)return m.message!==void 0?k=[].concat(m.message).map(ld(m,a)):l.error&&(k=[l.error(m,Xt(l.messages.required,m.field))]),v(k);var T={};m.defaultField&&Object.keys(h.value).map(function(D){T[D]=m.defaultField}),T=Yo({},T,h.rule.fields);var B={};Object.keys(T).forEach(function(D){var W=T[D],ne=Array.isArray(W)?W:[W];B[D]=ne.map(w.bind(null,D))});var $=new e(B);$.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),$.validate(h.value,h.rule.options||l,function(D){var W=[];k&&k.length&&W.push.apply(W,k),D&&D.length&&W.push.apply(W,D),v(W.length?W:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,h.value,_,h.source,l);else if(m.validator){try{x=m.validator(m,h.value,_,h.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),_(S.message)}x===!0?_():x===!1?_(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):x instanceof Array?_(x):x instanceof Error&&_(x.message)}x&&x.then&&x.then(function(){return _()},function(S){return _(S)})},function(h){u(h)},a)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!mi.hasOwnProperty(o.type))throw new Error(Xt("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var s=Object.keys(o),i=s.indexOf("message");return i!==-1&&s.splice(i,1),s.length===1&&s[0]==="required"?mi.required:mi[this.getType(o)]||void 0},e}();tr.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");mi[t]=n};tr.warning=Tx;tr.messages=Sl;tr.validators=mi;const oS=["","error","validating","success"],sS=ke({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ye([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ye([Object,Array])},error:String,validateStatus:{type:String,values:oS},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Vs}}),dd="ElLabelWrap";var iS=Y({name:dd,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=we(js,void 0),o=we(as);o||Ro(dd,"usage: <el-form-item><label-wrap /></el-form-item>");const s=he("form"),i=A(),r=A(0),a=()=>{var u;if((u=i.value)!=null&&u.firstElementChild){const d=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(u="update")=>{xe(()=>{t.default&&e.isAutoWidth&&(u==="update"?r.value=a():u==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>l("update");return Be(()=>{c()}),Pt(()=>{l("remove")}),ma(()=>c()),se(r,(u,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(u,d))}),In(P(()=>{var u,d;return(d=(u=i.value)==null?void 0:u.firstElementChild)!=null?d:null}),c),()=>{var u,d;if(!t)return null;const{isAutoWidth:f}=e;if(f){const p=n==null?void 0:n.autoLabelWidth,g=o==null?void 0:o.hasLabel,h={};if(g&&p&&p!=="auto"){const v=Math.max(0,Number.parseInt(p,10)-r.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(h[m]=`${v}px`)}return L("div",{ref:i,class:[s.be("item","label-wrap")],style:h},[(u=t.default)==null?void 0:u.call(t)])}else return L(Ge,{ref:i},[(d=t.default)==null?void 0:d.call(t)])}}});const rS=["role","aria-labelledby"],aS=Y({name:"ElFormItem"}),lS=Y({...aS,props:sS,setup(e,{expose:t}){const n=e,o=Hs(),s=we(js,void 0),i=we(as,void 0),r=cn(void 0,{formItem:!1}),a=he("form-item"),l=Rs().value,c=A([]),u=A(""),d=Rv(u,100),f=A(""),p=A();let g,h=!1;const v=P(()=>{if((s==null?void 0:s.labelPosition)==="top")return{};const O=$n(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return O?{width:O}:{}}),m=P(()=>{if((s==null?void 0:s.labelPosition)==="top"||(s==null?void 0:s.inline))return{};if(!n.label&&!n.labelWidth&&T)return{};const O=$n(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!o.label?{marginLeft:O}:{}}),y=P(()=>[a.b(),a.m(r.value),a.is("error",u.value==="error"),a.is("validating",u.value==="validating"),a.is("success",u.value==="success"),a.is("required",ne.value||n.required),a.is("no-asterisk",s==null?void 0:s.hideRequiredAsterisk),(s==null?void 0:s.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:s==null?void 0:s.statusIcon}]),w=P(()=>Nt(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),_=P(()=>[a.e("error"),{[a.em("error","inline")]:w.value}]),x=P(()=>n.prop?st(n.prop)?n.prop:n.prop.join("."):""),S=P(()=>!!(n.label||o.label)),C=P(()=>n.for||c.value.length===1?c.value[0]:void 0),k=P(()=>!C.value&&S.value),T=!!i,B=P(()=>{const O=s==null?void 0:s.model;if(!(!O||!n.prop))return Or(O,n.prop).value}),$=P(()=>{const{required:O}=n,H=[];n.rules&&H.push(...cl(n.rules));const U=s==null?void 0:s.rules;if(U&&n.prop){const te=Or(U,n.prop).value;te&&H.push(...cl(te))}if(O!==void 0){const te=H.map((ge,Le)=>[ge,Le]).filter(([ge])=>Object.keys(ge).includes("required"));if(te.length>0)for(const[ge,Le]of te)ge.required!==O&&(H[Le]={...ge,required:O});else H.push({required:O})}return H}),D=P(()=>$.value.length>0),W=O=>$.value.filter(U=>!U.trigger||!O?!0:Array.isArray(U.trigger)?U.trigger.includes(O):U.trigger===O).map(({trigger:U,...te})=>te),ne=P(()=>$.value.some(O=>O.required)),j=P(()=>{var O;return d.value==="error"&&n.showMessage&&((O=s==null?void 0:s.showMessage)!=null?O:!0)}),Q=P(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),V=O=>{u.value=O},le=O=>{var H,U;const{errors:te,fields:ge}=O;(!te||!ge)&&console.error(O),V("error"),f.value=te?(U=(H=te==null?void 0:te[0])==null?void 0:H.message)!=null?U:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,f.value)},I=()=>{V("success"),s==null||s.emit("validate",n.prop,!0,"")},Z=async O=>{const H=x.value;return new tr({[H]:O}).validate({[H]:B.value},{firstFields:!0}).then(()=>(I(),!0)).catch(te=>(le(te),Promise.reject(te)))},de=async(O,H)=>{if(h||!n.prop)return!1;const U=mt(H);if(!D.value)return H==null||H(!1),!1;const te=W(O);return te.length===0?(H==null||H(!0),!0):(V("validating"),Z(te).then(()=>(H==null||H(!0),!0)).catch(ge=>{const{fields:Le}=ge;return H==null||H(!1,Le),U?!1:Promise.reject(Le)}))},J=()=>{V(""),f.value="",h=!1},G=async()=>{const O=s==null?void 0:s.model;if(!O||!n.prop)return;const H=Or(O,n.prop);h=!0,H.value=Hu(g),await xe(),J(),h=!1},K=O=>{c.value.includes(O)||c.value.push(O)},re=O=>{c.value=c.value.filter(H=>H!==O)};se(()=>n.error,O=>{f.value=O||"",V(O?"error":"")},{immediate:!0}),se(()=>n.validateStatus,O=>V(O||""));const ie=Ht({...lo(n),$el:p,size:r,validateState:u,labelId:l,inputIds:c,isGroup:k,hasLabel:S,addInputId:K,removeInputId:re,resetField:G,clearValidate:J,validate:de});return rt(as,ie),Be(()=>{n.prop&&(s==null||s.addField(ie),g=Hu(B.value))}),Pt(()=>{s==null||s.removeField(ie)}),t({size:r,validateMessage:f,validateState:u,validate:de,clearValidate:J,resetField:G}),(O,H)=>{var U;return M(),N("div",{ref_key:"formItemRef",ref:p,class:R(b(y)),role:b(k)?"group":void 0,"aria-labelledby":b(k)?b(l):void 0},[L(b(iS),{"is-auto-width":b(v).width==="auto","update-all":((U=b(s))==null?void 0:U.labelWidth)==="auto"},{default:F(()=>[b(S)?(M(),q(Ke(b(C)?"label":"div"),{key:0,id:b(l),for:b(C),class:R(b(a).e("label")),style:Te(b(v))},{default:F(()=>[me(O.$slots,"label",{label:b(Q)},()=>[fe(ce(b(Q)),1)])]),_:3},8,["id","for","class","style"])):X("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:R(b(a).e("content")),style:Te(b(m))},[me(O.$slots,"default"),L(Lv,{name:`${b(a).namespace.value}-zoom-in-top`},{default:F(()=>[b(j)?me(O.$slots,"error",{key:0,error:f.value},()=>[E("div",{class:R(b(_))},ce(f.value),3)]):X("v-if",!0)]),_:3},8,["name"])],6)],10,rS)}}});var Xp=ve(lS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Lc=dt(Cx,{FormItem:Xp}),$c=un(Xp);let fn;const cS=`
     12`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+s+"$)"),a=new RegExp("^"+n+"$"),r=new RegExp("^"+s+"$"),l=function(_){return _&&_.exact?i:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+s+t(_)+")","g")};l.v4=function(S){return S&&S.exact?a:new RegExp(""+t(S)+n+t(S),"g")},l.v6=function(S){return S&&S.exact?r:new RegExp(""+t(S)+s+t(S),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,f=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',w="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+h+p+g+")"+m+b;return pa=new RegExp("(?:^"+w+"$)","i"),pa},xd={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ai={integer:function(t){return ai.number(t)&&parseInt(t,10)===t},float:function(t){return ai.number(t)&&!ai.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ai.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(xd.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(xx())},hex:function(t){return typeof t=="string"&&!!t.match(xd.hex)}},Cx=function(t,n,o,s,i){if(t.required&&n===void 0){pg(t,n,o,s,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],r=t.type;a.indexOf(r)>-1?ai[r](n)||s.push(Jt(i.messages.types[r],t.fullField,t.type)):r&&typeof n!==t.type&&s.push(Jt(i.messages.types[r],t.fullField,t.type))},kx=function(t,n,o,s,i){var a=typeof t.len=="number",r=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(f?d="number":h?d="string":p&&(d="array"),!d)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),a?c!==t.len&&s.push(Jt(i.messages[d].len,t.fullField,t.len)):r&&!l&&c<t.min?s.push(Jt(i.messages[d].min,t.fullField,t.min)):l&&!r&&c>t.max?s.push(Jt(i.messages[d].max,t.fullField,t.max)):r&&l&&(c<t.min||c>t.max)&&s.push(Jt(i.messages[d].range,t.fullField,t.min,t.max))},ys="enum",Ex=function(t,n,o,s,i){t[ys]=Array.isArray(t[ys])?t[ys]:[],t[ys].indexOf(n)===-1&&s.push(Jt(i.messages[ys],t.fullField,t[ys].join(", ")))},Mx=function(t,n,o,s,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||s.push(Jt(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||s.push(Jt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Fe={required:pg,whitespace:Sx,type:Cx,range:kx,enum:Ex,pattern:Mx},Tx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n,"string")&&!t.required)return o();Fe.required(t,n,s,a,i,"string"),bt(n,"string")||(Fe.type(t,n,s,a,i),Fe.range(t,n,s,a,i),Fe.pattern(t,n,s,a,i),t.whitespace===!0&&Fe.whitespace(t,n,s,a,i))}o(a)},Px=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&Fe.type(t,n,s,a,i)}o(a)},Ox=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(n===""&&(n=void 0),bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&(Fe.type(t,n,s,a,i),Fe.range(t,n,s,a,i))}o(a)},Ax=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&Fe.type(t,n,s,a,i)}o(a)},Rx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),bt(n)||Fe.type(t,n,s,a,i)}o(a)},Lx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&(Fe.type(t,n,s,a,i),Fe.range(t,n,s,a,i))}o(a)},Ix=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&(Fe.type(t,n,s,a,i),Fe.range(t,n,s,a,i))}o(a)},$x=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(n==null&&!t.required)return o();Fe.required(t,n,s,a,i,"array"),n!=null&&(Fe.type(t,n,s,a,i),Fe.range(t,n,s,a,i))}o(a)},Fx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&Fe.type(t,n,s,a,i)}o(a)},Bx="enum",Dx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i),n!==void 0&&Fe[Bx](t,n,s,a,i)}o(a)},Nx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n,"string")&&!t.required)return o();Fe.required(t,n,s,a,i),bt(n,"string")||Fe.pattern(t,n,s,a,i)}o(a)},zx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n,"date")&&!t.required)return o();if(Fe.required(t,n,s,a,i),!bt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Fe.type(t,l,s,a,i),l&&Fe.range(t,l.getTime(),s,a,i)}}o(a)},Vx=function(t,n,o,s,i){var a=[],r=Array.isArray(n)?"array":typeof n;Fe.required(t,n,s,a,i,r),o(a)},Nr=function(t,n,o,s,i){var a=t.type,r=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(bt(n,a)&&!t.required)return o();Fe.required(t,n,s,r,i,a),bt(n,a)||Fe.type(t,n,s,r,i)}o(r)},Hx=function(t,n,o,s,i){var a=[],r=t.required||!t.required&&s.hasOwnProperty(t.field);if(r){if(bt(n)&&!t.required)return o();Fe.required(t,n,s,a,i)}o(a)},mi={string:Tx,method:Px,number:Ox,boolean:Ax,regexp:Rx,integer:Lx,float:Ix,array:$x,object:Fx,enum:Dx,pattern:Nx,date:zx,url:Nr,hex:Nr,email:Nr,required:Vx,any:Hx};function Al(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Rl=Al(),na=function(){function e(n){this.rules=null,this._messages=Rl,this.define(n)}var t=e.prototype;return t.define=function(o){var s=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var a=o[i];s.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(o){return o&&(this._messages=Sd(Al(),o)),this._messages},t.validate=function(o,s,i){var a=this;s===void 0&&(s={}),i===void 0&&(i=function(){});var r=o,l=s,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,r),Promise.resolve(r);function c(g){var m=[],b={};function w(_){if(Array.isArray(_)){var y;m=(y=m).concat.apply(y,_)}else m.push(_)}for(var S=0;S<g.length;S++)w(g[S]);m.length?(b=Ol(m),u(m,b)):u(null,r)}if(l.messages){var d=this.messages();d===Rl&&(d=Al()),Sd(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},h=l.keys||Object.keys(this.rules);h.forEach(function(g){var m=a.rules[g],b=r[g];m.forEach(function(w){var S=w;typeof S.transform=="function"&&(r===o&&(r=Yo({},r)),b=r[g]=S.transform(b)),typeof S=="function"?S={validator:S}:S=Yo({},S),S.validator=a.getValidationMethod(S),S.validator&&(S.field=g,S.fullField=S.fullField||g,S.type=a.getType(S),f[g]=f[g]||[],f[g].push({rule:S,value:b,source:r,field:g}))})});var p={};return yx(f,l,function(g,m){var b=g.rule,w=(b.type==="object"||b.type==="array")&&(typeof b.fields=="object"||typeof b.defaultField=="object");w=w&&(b.required||!b.required&&g.value),b.field=g.field;function S(x,C){return Yo({},C,{fullField:b.fullField+"."+x,fullFields:b.fullFields?[].concat(b.fullFields,[x]):[x]})}function _(x){x===void 0&&(x=[]);var C=Array.isArray(x)?x:[x];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&b.message!==void 0&&(C=[].concat(b.message));var E=C.map(wd(b,r));if(l.first&&E.length)return p[b.field]=1,m(E);if(!w)m(E);else{if(b.required&&!g.value)return b.message!==void 0?E=[].concat(b.message).map(wd(b,r)):l.error&&(E=[l.error(b,Jt(l.messages.required,b.field))]),m(E);var O={};b.defaultField&&Object.keys(g.value).map(function(N){O[N]=b.defaultField}),O=Yo({},O,g.rule.fields);var I={};Object.keys(O).forEach(function(N){var j=O[N],ae=Array.isArray(j)?j:[j];I[N]=ae.map(S.bind(null,N))});var $=new e(I);$.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),$.validate(g.value,g.rule.options||l,function(N){var j=[];E&&E.length&&j.push.apply(j,E),N&&N.length&&j.push.apply(j,N),m(j.length?j:null)})}}var y;if(b.asyncValidator)y=b.asyncValidator(b,g.value,_,g.source,l);else if(b.validator){try{y=b.validator(b,g.value,_,g.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),_(x.message)}y===!0?_():y===!1?_(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||(b.fullField||b.field)+" fails"):y instanceof Array?_(y):y instanceof Error&&_(y.message)}y&&y.then&&y.then(function(){return _()},function(x){return _(x)})},function(g){c(g)},r)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!mi.hasOwnProperty(o.type))throw new Error(Jt("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var s=Object.keys(o),i=s.indexOf("message");return i!==-1&&s.splice(i,1),s.length===1&&s[0]==="required"?mi.required:mi[this.getType(o)]||void 0},e}();na.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");mi[t]=n};na.warning=gx;na.messages=Rl;na.validators=mi;const Wx=["","error","validating","success"],jx=ye({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:he([String,Array])},required:{type:Boolean,default:void 0},rules:{type:he([Object,Array])},error:String,validateStatus:{type:String,values:Wx},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Ks}}),Cd="ElLabelWrap";var Ux=K({name:Cd,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=we(Ys,void 0),o=we(rs);o||Lo(Cd,"usage: <el-form-item><label-wrap /></el-form-item>");const s=pe("form"),i=R(),a=R(0),r=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const d=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},l=(c="update")=>{Me(()=>{t.default&&e.isAutoWidth&&(c==="update"?a.value=r():c==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return De(()=>{u()}),yt(()=>{l("remove")}),br(()=>u()),ie(a,(c,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,d))}),Tt(T(()=>{var c,d;return(d=(c=i.value)==null?void 0:c.firstElementChild)!=null?d:null}),u),()=>{var c,d;if(!t)return null;const{isAutoWidth:f}=e;if(f){const h=n==null?void 0:n.autoLabelWidth,p=o==null?void 0:o.hasLabel,g={};if(p&&h&&h!=="auto"){const m=Math.max(0,Number.parseInt(h,10)-a.value),w=(o.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(g[w]=`${m}px`)}return P("div",{ref:i,class:[s.be("item","label-wrap")],style:g},[(c=t.default)==null?void 0:c.call(t)])}else return P(Qe,{ref:i},[(d=t.default)==null?void 0:d.call(t)])}}});const Kx=K({name:"ElFormItem"}),qx=K({...Kx,props:jx,setup(e,{expose:t}){const n=e,o=ds(),s=we(Ys,void 0),i=we(rs,void 0),a=cn(void 0,{formItem:!1}),r=pe("form-item"),l=Nn().value,u=R([]),c=R(""),d=db(c,100),f=R(""),h=R();let p,g=!1;const m=T(()=>n.labelPosition||(s==null?void 0:s.labelPosition)),b=T(()=>{if(m.value==="top")return{};const V=jt(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return V?{width:V}:{}}),w=T(()=>{if(m.value==="top"||(s==null?void 0:s.inline))return{};if(!n.label&&!n.labelWidth&&I)return{};const V=jt(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!o.label?{marginLeft:V}:{}}),S=T(()=>[r.b(),r.m(a.value),r.is("error",c.value==="error"),r.is("validating",c.value==="validating"),r.is("success",c.value==="success"),r.is("required",Y.value||n.required),r.is("no-asterisk",s==null?void 0:s.hideRequiredAsterisk),(s==null?void 0:s.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[r.m("feedback")]:s==null?void 0:s.statusIcon,[r.m(`label-${m.value}`)]:m.value}]),_=T(()=>lt(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),y=T(()=>[r.e("error"),{[r.em("error","inline")]:_.value}]),x=T(()=>n.prop?Ie(n.prop)?n.prop:n.prop.join("."):""),C=T(()=>!!(n.label||o.label)),E=T(()=>n.for||(u.value.length===1?u.value[0]:void 0)),O=T(()=>!E.value&&C.value),I=!!i,$=T(()=>{const V=s==null?void 0:s.model;if(!(!V||!n.prop))return $a(V,n.prop).value}),N=T(()=>{const{required:V}=n,B=[];n.rules&&B.push(...vn(n.rules));const Z=s==null?void 0:s.rules;if(Z&&n.prop){const fe=$a(Z,n.prop).value;fe&&B.push(...vn(fe))}if(V!==void 0){const fe=B.map((Ee,ve)=>[Ee,ve]).filter(([Ee])=>Object.keys(Ee).includes("required"));if(fe.length>0)for(const[Ee,ve]of fe)Ee.required!==V&&(B[ve]={...Ee,required:V});else B.push({required:V})}return B}),j=T(()=>N.value.length>0),ae=V=>N.value.filter(Z=>!Z.trigger||!V?!0:ze(Z.trigger)?Z.trigger.includes(V):Z.trigger===V).map(({trigger:Z,...fe})=>fe),Y=T(()=>N.value.some(V=>V.required)),z=T(()=>{var V;return d.value==="error"&&n.showMessage&&((V=s==null?void 0:s.showMessage)!=null?V:!0)}),J=T(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),U=V=>{c.value=V},H=V=>{var B,Z;const{errors:fe,fields:Ee}=V;(!fe||!Ee)&&console.error(V),U("error"),f.value=fe?(Z=(B=fe==null?void 0:fe[0])==null?void 0:B.message)!=null?Z:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,f.value)},de=()=>{U("success"),s==null||s.emit("validate",n.prop,!0,"")},Se=async V=>{const B=x.value;return new na({[B]:V}).validate({[B]:$.value},{firstFields:!0}).then(()=>(de(),!0)).catch(fe=>(H(fe),Promise.reject(fe)))},te=async(V,B)=>{if(g||!n.prop)return!1;const Z=je(B);if(!j.value)return B==null||B(!1),!1;const fe=ae(V);return fe.length===0?(B==null||B(!0),!0):(U("validating"),Se(fe).then(()=>(B==null||B(!0),!0)).catch(Ee=>{const{fields:ve}=Ee;return B==null||B(!1,ve),Z?!1:Promise.reject(ve)}))},X=()=>{U(""),f.value="",g=!1},Q=async()=>{const V=s==null?void 0:s.model;if(!V||!n.prop)return;const B=$a(V,n.prop);g=!0,B.value=nd(p),await Me(),X(),g=!1},oe=V=>{u.value.includes(V)||u.value.push(V)},ne=V=>{u.value=u.value.filter(B=>B!==V)};ie(()=>n.error,V=>{f.value=V||"",U(V?"error":"")},{immediate:!0}),ie(()=>n.validateStatus,V=>U(V||""));const F=Ft({...uo(n),$el:h,size:a,validateState:c,labelId:l,inputIds:u,isGroup:O,hasLabel:C,fieldValue:$,addInputId:oe,removeInputId:ne,resetField:Q,clearValidate:X,validate:te});return nt(rs,F),De(()=>{n.prop&&(s==null||s.addField(F),p=nd($.value))}),yt(()=>{s==null||s.removeField(F)}),t({size:a,validateMessage:f,validateState:c,validate:te,clearValidate:X,resetField:Q}),(V,B)=>{var Z;return M(),D("div",{ref_key:"formItemRef",ref:h,class:A(v(S)),role:v(O)?"group":void 0,"aria-labelledby":v(O)?v(l):void 0},[P(v(Ux),{"is-auto-width":v(b).width==="auto","update-all":((Z=v(s))==null?void 0:Z.labelWidth)==="auto"},{default:L(()=>[v(C)?(M(),G(Ue(v(E)?"label":"div"),{key:0,id:v(l),for:v(E),class:A(v(r).e("label")),style:Oe(v(b))},{default:L(()=>[re(V.$slots,"label",{label:v(J)},()=>[le(ee(v(J)),1)])]),_:3},8,["id","for","class","style"])):q("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),k("div",{class:A(v(r).e("content")),style:Oe(v(w))},[re(V.$slots,"default"),P(fb,{name:`${v(r).namespace.value}-zoom-in-top`},{default:L(()=>[v(z)?re(V.$slots,"error",{key:0,error:f.value},()=>[k("div",{class:A(v(y))},ee(f.value),3)]):q("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var gg=me(qx,[["__file","form-item.vue"]]);const Vu=ct(cx,{FormItem:gg}),Hu=dn(gg);let pn;const Yx=`
    1313  height:0 !important;
    1414  visibility:hidden !important;
    15   ${db()?"":"overflow:hidden !important;"}
     15  ${Qb()?"":"overflow:hidden !important;"}
    1616  position:absolute !important;
    1717  z-index:-1000 !important;
    1818  top:0 !important;
    1919  right:0 !important;
    20 `,uS=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function dS(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:uS.map(r=>`${r}:${t.getPropertyValue(r)}`).join(";"),paddingSize:o,borderSize:s,boxSizing:n}}function fd(e,t=1,n){var o;fn||(fn=document.createElement("textarea"),document.body.appendChild(fn));const{paddingSize:s,borderSize:i,boxSizing:r,contextStyle:a}=dS(e);fn.setAttribute("style",`${a};${cS}`),fn.value=e.value||e.placeholder||"";let l=fn.scrollHeight;const c={};r==="border-box"?l=l+i:r==="content-box"&&(l=l-s),fn.value="";const u=fn.scrollHeight-s;if(He(t)){let d=u*t;r==="border-box"&&(d=d+s+i),l=Math.max(d,l),c.minHeight=`${d}px`}if(He(n)){let d=u*n;r==="border-box"&&(d=d+s+i),l=Math.min(d,l)}return c.height=`${l}px`,(o=fn.parentNode)==null||o.removeChild(fn),fn=void 0,c}const fS=ke({id:{type:String,default:void 0},size:ao,disabled:Boolean,modelValue:{type:ye([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ye([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:yt},prefixIcon:{type:yt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ye([Object,Array,String]),default:()=>pn({})},autofocus:{type:Boolean,default:!1}}),hS={[Je]:e=>st(e),input:e=>st(e),change:e=>st(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},pS=["role"],gS=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],mS=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],vS=Y({name:"ElInput",inheritAttrs:!1}),bS=Y({...vS,props:fS,emits:hS,setup(e,{expose:t,emit:n}){const o=e,s=$v(),i=Hs(),r=P(()=>{const oe={};return o.containerRole==="combobox"&&(oe["aria-haspopup"]=s["aria-haspopup"],oe["aria-owns"]=s["aria-owns"],oe["aria-expanded"]=s["aria-expanded"]),oe}),a=P(()=>[o.type==="textarea"?v.b():h.b(),h.m(p.value),h.is("disabled",g.value),h.is("exceed",K.value),{[h.b("group")]:i.prepend||i.append,[h.bm("group","append")]:i.append,[h.bm("group","prepend")]:i.prepend,[h.m("prefix")]:i.prefix||o.prefixIcon,[h.m("suffix")]:i.suffix||o.suffixIcon||o.clearable||o.showPassword,[h.bm("suffix","password-clear")]:Z.value&&de.value},s.class]),l=P(()=>[h.e("wrapper"),h.is("focus",B.value)]),c=Xw({excludeKeys:P(()=>Object.keys(r.value))}),{form:u,formItem:d}=co(),{inputId:f}=Us(o,{formItemContext:d}),p=cn(),g=fs(),h=he("input"),v=he("textarea"),m=bn(),y=bn(),w=A(!1),_=A(!1),x=A(!1),S=A(),C=bn(o.inputStyle),k=P(()=>m.value||y.value),{wrapperRef:T,isFocused:B,handleFocus:$,handleBlur:D}=gx(k,{afterBlur(){var oe;o.validateEvent&&((oe=d==null?void 0:d.validate)==null||oe.call(d,"blur").catch(be=>void 0))}}),W=P(()=>{var oe;return(oe=u==null?void 0:u.statusIcon)!=null?oe:!1}),ne=P(()=>(d==null?void 0:d.validateState)||""),j=P(()=>ne.value&&Vh[ne.value]),Q=P(()=>x.value?uc:Iv),V=P(()=>[s.style,o.inputStyle]),le=P(()=>[o.inputStyle,C.value,{resize:o.resize}]),I=P(()=>es(o.modelValue)?"":String(o.modelValue)),Z=P(()=>o.clearable&&!g.value&&!o.readonly&&!!I.value&&(B.value||w.value)),de=P(()=>o.showPassword&&!g.value&&!o.readonly&&!!I.value&&(!!I.value||B.value)),J=P(()=>o.showWordLimit&&!!c.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!g.value&&!o.readonly&&!o.showPassword),G=P(()=>I.value.length),K=P(()=>!!J.value&&G.value>Number(c.value.maxlength)),re=P(()=>!!i.suffix||!!o.suffixIcon||Z.value||o.showPassword||J.value||!!ne.value&&W.value),[ie,O]=hx(m);In(y,oe=>{if(te(),!J.value||o.resize!=="both")return;const be=oe[0],{width:qe}=be.contentRect;S.value={right:`calc(100% - ${qe+15+6}px)`}});const H=()=>{const{type:oe,autosize:be}=o;if(!(!ot||oe!=="textarea"||!y.value))if(be){const qe=wn(be)?be.minRows:void 0,Kt=wn(be)?be.maxRows:void 0,Vn=fd(y.value,qe,Kt);C.value={overflowY:"hidden",...Vn},xe(()=>{y.value.offsetHeight,C.value=Vn})}else C.value={minHeight:fd(y.value).minHeight}},te=(oe=>{let be=!1;return()=>{var qe;if(be||!o.autosize)return;((qe=y.value)==null?void 0:qe.offsetParent)===null||(oe(),be=!0)}})(H),ge=()=>{const oe=k.value,be=o.formatter?o.formatter(I.value):I.value;!oe||oe.value===be||(oe.value=be)},Le=async oe=>{ie();let{value:be}=oe.target;if(o.formatter&&(be=o.parser?o.parser(be):be),!_.value){if(be===I.value){ge();return}n(Je,be),n("input",be),await xe(),ge(),O()}},Ee=oe=>{n("change",oe.target.value)},_e=oe=>{n("compositionstart",oe),_.value=!0},Ve=oe=>{var be;n("compositionupdate",oe);const qe=(be=oe.target)==null?void 0:be.value,Kt=qe[qe.length-1]||"";_.value=!Tp(Kt)},gt=oe=>{n("compositionend",oe),_.value&&(_.value=!1,Le(oe))},Ye=()=>{x.value=!x.value,jt()},jt=async()=>{var oe;await xe(),(oe=k.value)==null||oe.focus()},zn=()=>{var oe;return(oe=k.value)==null?void 0:oe.blur()},Tt=oe=>{w.value=!1,n("mouseleave",oe)},Zt=oe=>{w.value=!0,n("mouseenter",oe)},Ut=oe=>{n("keydown",oe)},En=()=>{var oe;(oe=k.value)==null||oe.select()},en=()=>{n(Je,""),n("change",""),n("clear"),n("input","")};return se(()=>o.modelValue,()=>{var oe;xe(()=>H()),o.validateEvent&&((oe=d==null?void 0:d.validate)==null||oe.call(d,"change").catch(be=>void 0))}),se(I,()=>ge()),se(()=>o.type,async()=>{await xe(),ge(),H()}),Be(()=>{!o.formatter&&o.parser,ge(),xe(H)}),t({input:m,textarea:y,ref:k,textareaStyle:le,autosize:nn(o,"autosize"),focus:jt,blur:zn,select:En,clear:en,resizeTextarea:H}),(oe,be)=>We((M(),N("div",On(b(r),{class:b(a),style:b(V),role:oe.containerRole,onMouseenter:Zt,onMouseleave:Tt}),[X(" input "),oe.type!=="textarea"?(M(),N(Ge,{key:0},[X(" prepend slot "),oe.$slots.prepend?(M(),N("div",{key:0,class:R(b(h).be("group","prepend"))},[me(oe.$slots,"prepend")],2)):X("v-if",!0),E("div",{ref_key:"wrapperRef",ref:T,class:R(b(l))},[X(" prefix slot "),oe.$slots.prefix||oe.prefixIcon?(M(),N("span",{key:0,class:R(b(h).e("prefix"))},[E("span",{class:R(b(h).e("prefix-inner"))},[me(oe.$slots,"prefix"),oe.prefixIcon?(M(),q(b($e),{key:0,class:R(b(h).e("icon"))},{default:F(()=>[(M(),q(Ke(oe.prefixIcon)))]),_:1},8,["class"])):X("v-if",!0)],2)],2)):X("v-if",!0),E("input",On({id:b(f),ref_key:"input",ref:m,class:b(h).e("inner")},b(c),{type:oe.showPassword?x.value?"text":"password":oe.type,disabled:b(g),formatter:oe.formatter,parser:oe.parser,readonly:oe.readonly,autocomplete:oe.autocomplete,tabindex:oe.tabindex,"aria-label":oe.label,placeholder:oe.placeholder,style:oe.inputStyle,form:o.form,autofocus:o.autofocus,onCompositionstart:_e,onCompositionupdate:Ve,onCompositionend:gt,onInput:Le,onFocus:be[0]||(be[0]=(...qe)=>b($)&&b($)(...qe)),onBlur:be[1]||(be[1]=(...qe)=>b(D)&&b(D)(...qe)),onChange:Ee,onKeydown:Ut}),null,16,gS),X(" suffix slot "),b(re)?(M(),N("span",{key:1,class:R(b(h).e("suffix"))},[E("span",{class:R(b(h).e("suffix-inner"))},[!b(Z)||!b(de)||!b(J)?(M(),N(Ge,{key:0},[me(oe.$slots,"suffix"),oe.suffixIcon?(M(),q(b($e),{key:0,class:R(b(h).e("icon"))},{default:F(()=>[(M(),q(Ke(oe.suffixIcon)))]),_:1},8,["class"])):X("v-if",!0)],64)):X("v-if",!0),b(Z)?(M(),q(b($e),{key:1,class:R([b(h).e("icon"),b(h).e("clear")]),onMousedown:et(b(Zo),["prevent"]),onClick:en},{default:F(()=>[L(b(zh))]),_:1},8,["class","onMousedown"])):X("v-if",!0),b(de)?(M(),q(b($e),{key:2,class:R([b(h).e("icon"),b(h).e("password")]),onClick:Ye},{default:F(()=>[(M(),q(Ke(b(Q))))]),_:1},8,["class"])):X("v-if",!0),b(J)?(M(),N("span",{key:3,class:R(b(h).e("count"))},[E("span",{class:R(b(h).e("count-inner"))},ce(b(G))+" / "+ce(b(c).maxlength),3)],2)):X("v-if",!0),b(ne)&&b(j)&&b(W)?(M(),q(b($e),{key:4,class:R([b(h).e("icon"),b(h).e("validateIcon"),b(h).is("loading",b(ne)==="validating")])},{default:F(()=>[(M(),q(Ke(b(j))))]),_:1},8,["class"])):X("v-if",!0)],2)],2)):X("v-if",!0)],2),X(" append slot "),oe.$slots.append?(M(),N("div",{key:1,class:R(b(h).be("group","append"))},[me(oe.$slots,"append")],2)):X("v-if",!0)],64)):(M(),N(Ge,{key:1},[X(" textarea "),E("textarea",On({id:b(f),ref_key:"textarea",ref:y,class:b(v).e("inner")},b(c),{tabindex:oe.tabindex,disabled:b(g),readonly:oe.readonly,autocomplete:oe.autocomplete,style:b(le),"aria-label":oe.label,placeholder:oe.placeholder,form:o.form,autofocus:o.autofocus,onCompositionstart:_e,onCompositionupdate:Ve,onCompositionend:gt,onInput:Le,onFocus:be[2]||(be[2]=(...qe)=>b($)&&b($)(...qe)),onBlur:be[3]||(be[3]=(...qe)=>b(D)&&b(D)(...qe)),onChange:Ee,onKeydown:Ut}),null,16,mS),b(J)?(M(),N("span",{key:0,style:Te(S.value),class:R(b(h).e("count"))},ce(b(G))+" / "+ce(b(c).maxlength),7)):X("v-if",!0)],64))],16,pS)),[[Et,oe.type!=="hidden"]])}});var yS=ve(bS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const $o=dt(yS),_s=4,_S={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},wS=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Qp=Symbol("scrollbarContextKey"),xS=ke({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),SS="Thumb",CS=Y({__name:"thumb",props:xS,setup(e){const t=e,n=we(Qp),o=he("scrollbar");n||Ro(SS,"can not inject scrollbar context");const s=A(),i=A(),r=A({}),a=A(!1);let l=!1,c=!1,u=ot?document.onselectstart:null;const d=P(()=>_S[t.vertical?"vertical":"horizontal"]),f=P(()=>wS({size:t.size,move:t.move,bar:d.value})),p=P(()=>s.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/i.value[d.value.offset]),g=S=>{var C;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(C=window.getSelection())==null||C.removeAllRanges(),v(S);const k=S.currentTarget;!k||(r.value[d.value.axis]=k[d.value.offset]-(S[d.value.client]-k.getBoundingClientRect()[d.value.direction]))},h=S=>{if(!i.value||!s.value||!n.wrapElement)return;const C=Math.abs(S.target.getBoundingClientRect()[d.value.direction]-S[d.value.client]),k=i.value[d.value.offset]/2,T=(C-k)*100*p.value/s.value[d.value.offset];n.wrapElement[d.value.scroll]=T*n.wrapElement[d.value.scrollSize]/100},v=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),u=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!s.value||!i.value||l===!1)return;const C=r.value[d.value.axis];if(!C)return;const k=(s.value.getBoundingClientRect()[d.value.direction]-S[d.value.client])*-1,T=i.value[d.value.offset]-C,B=(k-T)*100*p.value/s.value[d.value.offset];n.wrapElement[d.value.scroll]=B*n.wrapElement[d.value.scrollSize]/100},y=()=>{l=!1,r.value[d.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),x(),c&&(a.value=!1)},w=()=>{c=!1,a.value=!!t.size},_=()=>{c=!0,a.value=l};Pt(()=>{x(),document.removeEventListener("mouseup",y)});const x=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return is(nn(n,"scrollbarElement"),"mousemove",w),is(nn(n,"scrollbarElement"),"mouseleave",_),(S,C)=>(M(),q(Mo,{name:b(o).b("fade"),persisted:""},{default:F(()=>[We(E("div",{ref_key:"instance",ref:s,class:R([b(o).e("bar"),b(o).is(b(d).key)]),onMousedown:h},[E("div",{ref_key:"thumb",ref:i,class:R(b(o).e("thumb")),style:Te(b(f)),onMousedown:g},null,38)],34),[[Et,S.always||a.value]])]),_:1},8,["name"]))}});var hd=ve(CS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const kS=ke({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ES=Y({__name:"bar",props:kS,setup(e,{expose:t}){const n=e,o=A(0),s=A(0);return t({handleScroll:r=>{if(r){const a=r.offsetHeight-_s,l=r.offsetWidth-_s;s.value=r.scrollTop*100/a*n.ratioY,o.value=r.scrollLeft*100/l*n.ratioX}}}),(r,a)=>(M(),N(Ge,null,[L(hd,{move:o.value,ratio:r.ratioX,size:r.width,always:r.always},null,8,["move","ratio","size","always"]),L(hd,{move:s.value,ratio:r.ratioY,size:r.height,vertical:"",always:r.always},null,8,["move","ratio","size","always"])],64))}});var MS=ve(ES,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const PS=ke({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ye([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),TS={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(He)},OS="ElScrollbar",AS=Y({name:OS}),RS=Y({...AS,props:PS,emits:TS,setup(e,{expose:t,emit:n}){const o=e,s=he("scrollbar");let i,r;const a=A(),l=A(),c=A(),u=A("0"),d=A("0"),f=A(),p=A(1),g=A(1),h=P(()=>{const C={};return o.height&&(C.height=$n(o.height)),o.maxHeight&&(C.maxHeight=$n(o.maxHeight)),[o.wrapStyle,C]}),v=P(()=>[o.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!o.native}]),m=P(()=>[s.e("view"),o.viewClass]),y=()=>{var C;l.value&&((C=f.value)==null||C.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function w(C,k){wn(C)?l.value.scrollTo(C):He(C)&&He(k)&&l.value.scrollTo(C,k)}const _=C=>{!He(C)||(l.value.scrollTop=C)},x=C=>{!He(C)||(l.value.scrollLeft=C)},S=()=>{if(!l.value)return;const C=l.value.offsetHeight-_s,k=l.value.offsetWidth-_s,T=C**2/l.value.scrollHeight,B=k**2/l.value.scrollWidth,$=Math.max(T,o.minSize),D=Math.max(B,o.minSize);p.value=T/(C-T)/($/(C-$)),g.value=B/(k-B)/(D/(k-D)),d.value=$+_s<C?`${$}px`:"",u.value=D+_s<k?`${D}px`:""};return se(()=>o.noresize,C=>{C?(i==null||i(),r==null||r()):({stop:i}=In(c,S),r=is("resize",S))},{immediate:!0}),se(()=>[o.maxHeight,o.height],()=>{o.native||xe(()=>{var C;S(),l.value&&((C=f.value)==null||C.handleScroll(l.value))})}),rt(Qp,Ht({scrollbarElement:a,wrapElement:l})),Be(()=>{o.native||xe(()=>{S()})}),ma(()=>S()),t({wrapRef:l,update:S,scrollTo:w,setScrollTop:_,setScrollLeft:x,handleScroll:y}),(C,k)=>(M(),N("div",{ref_key:"scrollbarRef",ref:a,class:R(b(s).b())},[E("div",{ref_key:"wrapRef",ref:l,class:R(b(v)),style:Te(b(h)),onScroll:y},[(M(),q(Ke(C.tag),{ref_key:"resizeRef",ref:c,class:R(b(m)),style:Te(C.viewStyle)},{default:F(()=>[me(C.$slots,"default")]),_:3},8,["class","style"]))],38),C.native?X("v-if",!0):(M(),q(MS,{key:0,ref_key:"barRef",ref:f,height:d.value,width:u.value,always:C.always,"ratio-x":g.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var LS=ve(RS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ic=dt(LS),Fc=Symbol("popper"),Jp=Symbol("popperContent"),$S=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Zp=ke({role:{type:String,values:$S,default:"tooltip"}}),IS=Y({name:"ElPopper",inheritAttrs:!1}),FS=Y({...IS,props:Zp,setup(e,{expose:t}){const n=e,o=A(),s=A(),i=A(),r=A(),a=P(()=>n.role),l={triggerRef:o,popperInstanceRef:s,contentRef:i,referenceRef:r,role:a};return t(l),rt(Fc,l),(c,u)=>me(c.$slots,"default")}});var DS=ve(FS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const eg=ke({arrowOffset:{type:Number,default:5}}),BS=Y({name:"ElPopperArrow",inheritAttrs:!1}),NS=Y({...BS,props:eg,setup(e,{expose:t}){const n=e,o=he("popper"),{arrowOffset:s,arrowRef:i,arrowStyle:r}=we(Jp,void 0);return se(()=>n.arrowOffset,a=>{s.value=a}),Pt(()=>{i.value=void 0}),t({arrowRef:i}),(a,l)=>(M(),N("span",{ref_key:"arrowRef",ref:i,class:R(b(o).e("arrow")),style:Te(b(r)),"data-popper-arrow":""},null,6))}});var zS=ve(NS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const VS="ElOnlyChild",HS=Y({name:VS,setup(e,{slots:t,attrs:n}){var o;const s=we(qp),i=fx((o=s==null?void 0:s.setForwardRef)!=null?o:Zo);return()=>{var r;const a=(r=t.default)==null?void 0:r.call(t,n);if(!a||a.length>1)return null;const l=tg(a);return l?We(Fv(l,n),[[i]]):null}}});function tg(e){if(!e)return null;const t=e;for(const n of t){if(wn(n))switch(n.type){case Wh:continue;case Hh:case"svg":return pd(n);case Ge:return tg(n.children);default:return n}return pd(n)}return null}function pd(e){const t=he("only-child");return L("span",{class:t.e("content")},[e])}const ng=ke({virtualRef:{type:ye(Object)},virtualTriggering:Boolean,onMouseenter:{type:ye(Function)},onMouseleave:{type:ye(Function)},onClick:{type:ye(Function)},onKeydown:{type:ye(Function)},onFocus:{type:ye(Function)},onBlur:{type:ye(Function)},onContextmenu:{type:ye(Function)},id:String,open:Boolean}),WS=Y({name:"ElPopperTrigger",inheritAttrs:!1}),jS=Y({...WS,props:ng,setup(e,{expose:t}){const n=e,{role:o,triggerRef:s}=we(Fc,void 0);dx(s);const i=P(()=>a.value?n.id:void 0),r=P(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=P(()=>{if(o&&o.value!=="tooltip")return o.value}),l=P(()=>a.value?`${n.open}`:void 0);let c;return Be(()=>{se(()=>n.virtualRef,u=>{u&&(s.value=jh(u))},{immediate:!0}),se(s,(u,d)=>{c==null||c(),c=void 0,oo(u)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var p;const g=n[f];g&&(u.addEventListener(f.slice(2).toLowerCase(),g),(p=d==null?void 0:d.removeEventListener)==null||p.call(d,f.slice(2).toLowerCase(),g))}),c=se([i,r,a,l],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{es(f[g])?u.removeAttribute(p):u.setAttribute(p,f[g])})},{immediate:!0})),oo(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>d.removeAttribute(f))},{immediate:!0})}),Pt(()=>{c==null||c(),c=void 0}),t({triggerRef:s}),(u,d)=>u.virtualTriggering?X("v-if",!0):(M(),q(b(HS),On({key:0},u.$attrs,{"aria-controls":b(i),"aria-describedby":b(r),"aria-expanded":b(l),"aria-haspopup":b(a)}),{default:F(()=>[me(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var US=ve(jS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Fa="focus-trap.focus-after-trapped",Da="focus-trap.focus-after-released",KS="focus-trap.focusout-prevented",gd={cancelable:!0,bubbles:!1},qS={cancelable:!0,bubbles:!1},md="focusAfterTrapped",vd="focusAfterReleased",YS=Symbol("elFocusTrap"),Dc=A(),xa=A(0),Bc=A(0);let ur=0;const og=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},bd=(e,t)=>{for(const n of e)if(!GS(n,t))return n},GS=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},XS=e=>{const t=og(e),n=bd(t,e),o=bd(t.reverse(),e);return[n,o]},QS=e=>e instanceof HTMLInputElement&&"select"in e,po=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Bc.value=window.performance.now(),e!==n&&QS(e)&&t&&e.select()}};function yd(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const JS=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=yd(e,o),e.unshift(o)},remove:o=>{var s,i;e=yd(e,o),(i=(s=e[0])==null?void 0:s.resume)==null||i.call(s)}}},ZS=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(po(o,t),document.activeElement!==n)return},_d=JS(),eC=()=>xa.value>Bc.value,dr=()=>{Dc.value="pointer",xa.value=window.performance.now()},wd=()=>{Dc.value="keyboard",xa.value=window.performance.now()},tC=()=>(Be(()=>{ur===0&&(document.addEventListener("mousedown",dr),document.addEventListener("touchstart",dr),document.addEventListener("keydown",wd)),ur++}),Pt(()=>{ur--,ur<=0&&(document.removeEventListener("mousedown",dr),document.removeEventListener("touchstart",dr),document.removeEventListener("keydown",wd))}),{focusReason:Dc,lastUserFocusTimestamp:xa,lastAutomatedFocusTimestamp:Bc}),fr=e=>new CustomEvent(KS,{...qS,detail:e}),nC=Y({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[md,vd,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=A();let o,s;const{focusReason:i}=tC();ax(g=>{e.trapped&&!r.paused&&t("release-requested",g)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=g=>{if(!e.loop&&!e.trapped||r.paused)return;const{key:h,altKey:v,ctrlKey:m,metaKey:y,currentTarget:w,shiftKey:_}=g,{loop:x}=e,S=h===on.tab&&!v&&!m&&!y,C=document.activeElement;if(S&&C){const k=w,[T,B]=XS(k);if(T&&B){if(!_&&C===B){const D=fr({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(g.preventDefault(),x&&po(T,!0))}else if(_&&[T,k].includes(C)){const D=fr({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(g.preventDefault(),x&&po(B,!0))}}else if(C===k){const D=fr({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||g.preventDefault()}}};rt(YS,{focusTrapRef:n,onKeydown:a}),se(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),se([n],([g],[h])=>{g&&(g.addEventListener("keydown",a),g.addEventListener("focusin",u),g.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",a),h.removeEventListener("focusin",u),h.removeEventListener("focusout",d))});const l=g=>{t(md,g)},c=g=>t(vd,g),u=g=>{const h=b(n);if(!h)return;const v=g.target,m=g.relatedTarget,y=v&&h.contains(v);e.trapped||m&&h.contains(m)||(o=m),y&&t("focusin",g),!r.paused&&e.trapped&&(y?s=v:po(s,!0))},d=g=>{const h=b(n);if(!(r.paused||!h))if(e.trapped){const v=g.relatedTarget;!es(v)&&!h.contains(v)&&setTimeout(()=>{if(!r.paused&&e.trapped){const m=fr({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||po(s,!0)}},0)}else{const v=g.target;v&&h.contains(v)||t("focusout",g)}};async function f(){await xe();const g=b(n);if(g){_d.push(r);const h=g.contains(document.activeElement)?o:document.activeElement;if(o=h,!g.contains(h)){const m=new Event(Fa,gd);g.addEventListener(Fa,l),g.dispatchEvent(m),m.defaultPrevented||xe(()=>{let y=e.focusStartEl;st(y)||(po(y),document.activeElement!==y&&(y="first")),y==="first"&&ZS(og(g),!0),(document.activeElement===h||y==="container")&&po(g)})}}}function p(){const g=b(n);if(g){g.removeEventListener(Fa,l);const h=new CustomEvent(Da,{...gd,detail:{focusReason:i.value}});g.addEventListener(Da,c),g.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!eC()||g.contains(document.activeElement))&&po(o!=null?o:document.body),g.removeEventListener(Da,c),_d.remove(r)}}return Be(()=>{e.trapped&&f(),se(()=>e.trapped,g=>{g?f():p()})}),Pt(()=>{e.trapped&&p()}),{onKeydown:a}}});function oC(e,t,n,o,s,i){return me(e.$slots,"default",{handleKeydown:e.onKeydown})}var sg=ve(nC,[["render",oC],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const sC=["fixed","absolute"],iC=ke({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ye(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:_a,default:"bottom"},popperOptions:{type:ye(Object),default:()=>({})},strategy:{type:String,values:sC,default:"absolute"}}),ig=ke({...iC,id:String,style:{type:ye([String,Array,Object])},className:{type:ye([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ye([String,Array,Object])},popperStyle:{type:ye([String,Array,Object])},referenceEl:{type:ye(Object)},triggerTargetEl:{type:ye(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),rC={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},aC=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:s}=e,i={placement:n,strategy:o,...s,modifiers:[...cC(e),...t]};return uC(i,s==null?void 0:s.modifiers),i},lC=e=>{if(!!ot)return jh(e)};function cC(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function uC(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const dC=0,fC=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:s}=we(Fc,void 0),i=A(),r=A(),a=P(()=>({name:"eventListeners",enabled:!!e.visible})),l=P(()=>{var m;const y=b(i),w=(m=b(r))!=null?m:dC;return{name:"arrow",enabled:!Fw(y),options:{element:y,padding:w}}}),c=P(()=>({onFirstUpdate:()=>{g()},...aC(e,[b(l),b(a)])})),u=P(()=>lC(e.referenceEl)||b(o)),{attributes:d,state:f,styles:p,update:g,forceUpdate:h,instanceRef:v}=ox(u,n,c);return se(v,m=>t.value=m),Be(()=>{se(()=>{var m;return(m=b(u))==null?void 0:m.getBoundingClientRect()},()=>{g()})}),{attributes:d,arrowRef:i,contentRef:n,instanceRef:v,state:f,styles:p,role:s,forceUpdate:h,update:g}},hC=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:s}=Uh(),i=he("popper"),r=P(()=>b(t).popper),a=A(e.zIndex||s()),l=P(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=P(()=>[{zIndex:b(a)},b(n).popper,e.popperStyle||{}]),u=P(()=>o.value==="dialog"?"false":void 0),d=P(()=>b(n).arrow||{});return{ariaModal:u,arrowStyle:d,contentAttrs:r,contentClass:l,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||s()}}},pC=(e,t)=>{const n=A(!1),o=A();return{focusStartRef:o,trapped:n,onFocusAfterReleased:c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(o.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},gC=Y({name:"ElPopperContent"}),mC=Y({...gC,props:ig,emits:rC,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:s,trapped:i,onFocusAfterReleased:r,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:c,onReleaseRequested:u}=pC(o,n),{attributes:d,arrowRef:f,contentRef:p,styles:g,instanceRef:h,role:v,update:m}=fC(o),{ariaModal:y,arrowStyle:w,contentAttrs:_,contentClass:x,contentStyle:S,updateZIndex:C}=hC(o,{styles:g,attributes:d,role:v}),k=we(as,void 0),T=A();rt(Jp,{arrowStyle:w,arrowRef:f,arrowOffset:T}),k&&(k.addInputId||k.removeInputId)&&rt(as,{...k,addInputId:Zo,removeInputId:Zo});let B;const $=(W=!0)=>{m(),W&&C()},D=()=>{$(!1),o.visible&&o.focusOnShow?i.value=!0:o.visible===!1&&(i.value=!1)};return Be(()=>{se(()=>o.triggerTargetEl,(W,ne)=>{B==null||B(),B=void 0;const j=b(W||p.value),Q=b(ne||p.value);oo(j)&&(B=se([v,()=>o.ariaLabel,y,()=>o.id],V=>{["role","aria-label","aria-modal","id"].forEach((le,I)=>{es(V[I])?j.removeAttribute(le):j.setAttribute(le,V[I])})},{immediate:!0})),Q!==j&&oo(Q)&&["role","aria-label","aria-modal","id"].forEach(V=>{Q.removeAttribute(V)})},{immediate:!0}),se(()=>o.visible,D,{immediate:!0})}),Pt(()=>{B==null||B(),B=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:$,contentStyle:S}),(W,ne)=>(M(),N("div",On({ref_key:"contentRef",ref:p},b(_),{style:b(S),class:b(x),tabindex:"-1",onMouseenter:ne[0]||(ne[0]=j=>W.$emit("mouseenter",j)),onMouseleave:ne[1]||(ne[1]=j=>W.$emit("mouseleave",j))}),[L(b(sg),{trapped:b(i),"trap-on-focus-in":!0,"focus-trap-el":b(p),"focus-start-el":b(s),onFocusAfterTrapped:b(a),onFocusAfterReleased:b(r),onFocusin:b(l),onFocusoutPrevented:b(c),onReleaseRequested:b(u)},{default:F(()=>[me(W.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var vC=ve(mC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const bC=dt(DS),Nc=Symbol("elTooltip"),$i=ke({...ux,...ig,appendTo:{type:ye([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ye(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),rg=ke({...ng,disabled:Boolean,trigger:{type:ye([String,Array]),default:"hover"},triggerKeys:{type:ye(Array),default:()=>[on.enter,on.space]}}),{useModelToggleProps:yC,useModelToggleEmits:_C,useModelToggle:wC}=t1("visible"),xC=ke({...Zp,...yC,...$i,...rg,...eg,showArrow:{type:Boolean,default:!0}}),SC=[..._C,"before-show","before-hide","show","hide","open","close"],CC=(e,t)=>vn(e)?e.includes(t):e===t,gs=(e,t,n)=>o=>{CC(b(e),t)&&n(o)},kC=Y({name:"ElTooltipTrigger"}),EC=Y({...kC,props:rg,setup(e,{expose:t}){const n=e,o=he("tooltip"),{controlled:s,id:i,open:r,onOpen:a,onClose:l,onToggle:c}=we(Nc,void 0),u=A(null),d=()=>{if(b(s)||n.disabled)return!0},f=nn(n,"trigger"),p=Xn(d,gs(f,"hover",a)),g=Xn(d,gs(f,"hover",l)),h=Xn(d,gs(f,"click",_=>{_.button===0&&c(_)})),v=Xn(d,gs(f,"focus",a)),m=Xn(d,gs(f,"focus",l)),y=Xn(d,gs(f,"contextmenu",_=>{_.preventDefault(),c(_)})),w=Xn(d,_=>{const{code:x}=_;n.triggerKeys.includes(x)&&(_.preventDefault(),c(_))});return t({triggerRef:u}),(_,x)=>(M(),q(b(US),{id:b(i),"virtual-ref":_.virtualRef,open:b(r),"virtual-triggering":_.virtualTriggering,class:R(b(o).e("trigger")),onBlur:b(m),onClick:b(h),onContextmenu:b(y),onFocus:b(v),onMouseenter:b(p),onMouseleave:b(g),onKeydown:b(w)},{default:F(()=>[me(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var MC=ve(EC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const PC=Y({name:"ElTooltipContent",inheritAttrs:!1}),TC=Y({...PC,props:$i,setup(e,{expose:t}){const n=e,{selector:o}=Up(),s=he("tooltip"),i=A(null),r=A(!1),{controlled:a,id:l,open:c,trigger:u,onClose:d,onOpen:f,onShow:p,onHide:g,onBeforeShow:h,onBeforeHide:v}=we(Nc,void 0),m=P(()=>n.transition||`${s.namespace.value}-fade-in-linear`),y=P(()=>n.persistent);Pt(()=>{r.value=!0});const w=P(()=>b(y)?!0:b(c)),_=P(()=>n.disabled?!1:b(c)),x=P(()=>n.appendTo||o.value),S=P(()=>{var V;return(V=n.style)!=null?V:{}}),C=P(()=>!b(c)),k=()=>{g()},T=()=>{if(b(a))return!0},B=Xn(T,()=>{n.enterable&&b(u)==="hover"&&f()}),$=Xn(T,()=>{b(u)==="hover"&&d()}),D=()=>{var V,le;(le=(V=i.value)==null?void 0:V.updatePopper)==null||le.call(V),h==null||h()},W=()=>{v==null||v()},ne=()=>{p(),Q=Bv(P(()=>{var V;return(V=i.value)==null?void 0:V.popperContentRef}),()=>{if(b(a))return;b(u)!=="hover"&&d()})},j=()=>{n.virtualTriggering||d()};let Q;return se(()=>b(c),V=>{V||Q==null||Q()},{flush:"post"}),se(()=>n.content,()=>{var V,le;(le=(V=i.value)==null?void 0:V.updatePopper)==null||le.call(V)}),t({contentRef:i}),(V,le)=>(M(),q(Dv,{disabled:!V.teleported,to:b(x)},[L(Mo,{name:b(m),onAfterLeave:k,onBeforeEnter:D,onAfterEnter:ne,onBeforeLeave:W},{default:F(()=>[b(w)?We((M(),q(b(vC),On({key:0,id:b(l),ref_key:"contentRef",ref:i},V.$attrs,{"aria-label":V.ariaLabel,"aria-hidden":b(C),"boundaries-padding":V.boundariesPadding,"fallback-placements":V.fallbackPlacements,"gpu-acceleration":V.gpuAcceleration,offset:V.offset,placement:V.placement,"popper-options":V.popperOptions,strategy:V.strategy,effect:V.effect,enterable:V.enterable,pure:V.pure,"popper-class":V.popperClass,"popper-style":[V.popperStyle,b(S)],"reference-el":V.referenceEl,"trigger-target-el":V.triggerTargetEl,visible:b(_),"z-index":V.zIndex,onMouseenter:b(B),onMouseleave:b($),onBlur:j,onClose:b(d)}),{default:F(()=>[r.value?X("v-if",!0):me(V.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Et,b(_)]]):X("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var OC=ve(TC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const AC=["innerHTML"],RC={key:1},LC=Y({name:"ElTooltip"}),$C=Y({...LC,props:xC,emits:SC,setup(e,{expose:t,emit:n}){const o=e;cx();const s=Rs(),i=A(),r=A(),a=()=>{var m;const y=b(i);y&&((m=y.popperInstanceRef)==null||m.update())},l=A(!1),c=A(),{show:u,hide:d,hasUpdateHandler:f}=wC({indicator:l,toggleReason:c}),{onOpen:p,onClose:g}=Kp({showAfter:nn(o,"showAfter"),hideAfter:nn(o,"hideAfter"),autoClose:nn(o,"autoClose"),open:u,close:d}),h=P(()=>Nt(o.visible)&&!f.value);rt(Nc,{controlled:h,id:s,open:Nv(l),trigger:nn(o,"trigger"),onOpen:m=>{p(m)},onClose:m=>{g(m)},onToggle:m=>{b(l)?g(m):p(m)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:a}),se(()=>o.disabled,m=>{m&&l.value&&(l.value=!1)});const v=m=>{var y,w;const _=(w=(y=r.value)==null?void 0:y.contentRef)==null?void 0:w.popperContentRef,x=(m==null?void 0:m.relatedTarget)||document.activeElement;return _&&_.contains(x)};return zv(()=>l.value&&d()),t({popperRef:i,contentRef:r,isFocusInsideContent:v,updatePopper:a,onOpen:p,onClose:g,hide:d}),(m,y)=>(M(),q(b(bC),{ref_key:"popperRef",ref:i,role:m.role},{default:F(()=>[L(MC,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:F(()=>[m.$slots.default?me(m.$slots,"default",{key:0}):X("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),L(OC,{ref_key:"contentRef",ref:r,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:F(()=>[me(m.$slots,"content",{},()=>[m.rawContent?(M(),N("span",{key:0,innerHTML:m.content},null,8,AC)):(M(),N("span",RC,ce(m.content),1))]),m.showArrow?(M(),q(b(zS),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):X("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var IC=ve($C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Io=dt(IC),FC=ke({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),DC=["textContent"],BC=Y({name:"ElBadge"}),NC=Y({...BC,props:FC,setup(e,{expose:t}){const n=e,o=he("badge"),s=P(()=>n.isDot?"":He(n.value)&&He(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:s}),(i,r)=>(M(),N("div",{class:R(b(o).b())},[me(i.$slots,"default"),L(Mo,{name:`${b(o).namespace.value}-zoom-in-center`,persisted:""},{default:F(()=>[We(E("sup",{class:R([b(o).e("content"),b(o).em("content",i.type),b(o).is("fixed",!!i.$slots.default),b(o).is("dot",i.isDot)]),textContent:ce(b(s))},null,10,DC),[[Et,!i.hidden&&(b(s)||i.isDot)]])]),_:1},8,["name"])],2))}});var zC=ve(NC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const VC=dt(zC),ag=Symbol("buttonGroupContextKey"),HC=(e,t)=>{ya({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},P(()=>e.type==="text"));const n=we(ag,void 0),o=Vv("button"),{form:s}=co(),i=cn(P(()=>n==null?void 0:n.size)),r=fs(),a=A(),l=Hs(),c=P(()=>e.type||(n==null?void 0:n.type)||""),u=P(()=>{var g,h,v;return(v=(h=e.autoInsertSpace)!=null?h:(g=o.value)==null?void 0:g.autoInsertSpace)!=null?v:!1}),d=P(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=P(()=>{var g;const h=(g=l.default)==null?void 0:g.call(l);if(u.value&&(h==null?void 0:h.length)===1){const v=h[0];if((v==null?void 0:v.type)===Hh){const m=v.children;return/^\p{Unified_Ideograph}{2}$/u.test(m.trim())}}return!1});return{_disabled:r,_size:i,_type:c,_ref:a,_props:d,shouldAddSpace:f,handleClick:g=>{e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",g)}}},Cl=["default","primary","success","warning","info","danger","text",""],WC=["button","submit","reset"],kl=ke({size:ao,disabled:Boolean,type:{type:String,values:Cl,default:""},icon:{type:yt},nativeType:{type:String,values:WC,default:"button"},loading:Boolean,loadingIcon:{type:yt,default:()=>dc},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ye([String,Object]),default:"button"}}),jC={click:e=>e instanceof MouseEvent};function _t(e,t){UC(e)&&(e="100%");var n=KC(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function hr(e){return Math.min(1,Math.max(0,e))}function UC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function KC(e){return typeof e=="string"&&e.indexOf("%")!==-1}function lg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function pr(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Go(e){return e.length===1?"0"+e:String(e)}function qC(e,t,n){return{r:_t(e,255)*255,g:_t(t,255)*255,b:_t(n,255)*255}}function xd(e,t,n){e=_t(e,255),t=_t(t,255),n=_t(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),i=0,r=0,a=(o+s)/2;if(o===s)r=0,i=0;else{var l=o-s;switch(r=a>.5?l/(2-o-s):l/(o+s),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:r,l:a}}function Ba(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YC(e,t,n){var o,s,i;if(e=_t(e,360),t=_t(t,100),n=_t(n,100),t===0)s=n,i=n,o=n;else{var r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=Ba(a,r,e+1/3),s=Ba(a,r,e),i=Ba(a,r,e-1/3)}return{r:o*255,g:s*255,b:i*255}}function Sd(e,t,n){e=_t(e,255),t=_t(t,255),n=_t(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),i=0,r=o,a=o-s,l=o===0?0:a/o;if(o===s)i=0;else{switch(o){case e:i=(t-n)/a+(t<n?6:0);break;case t:i=(n-e)/a+2;break;case n:i=(e-t)/a+4;break}i/=6}return{h:i,s:l,v:r}}function GC(e,t,n){e=_t(e,360)*6,t=_t(t,100),n=_t(n,100);var o=Math.floor(e),s=e-o,i=n*(1-t),r=n*(1-s*t),a=n*(1-(1-s)*t),l=o%6,c=[n,r,i,i,a,n][l],u=[a,n,n,r,i,i][l],d=[i,i,a,n,n,r][l];return{r:c*255,g:u*255,b:d*255}}function Cd(e,t,n,o){var s=[Go(Math.round(e).toString(16)),Go(Math.round(t).toString(16)),Go(Math.round(n).toString(16))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function XC(e,t,n,o,s){var i=[Go(Math.round(e).toString(16)),Go(Math.round(t).toString(16)),Go(Math.round(n).toString(16)),Go(QC(o))];return s&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function QC(e){return Math.round(parseFloat(e)*255).toString(16)}function kd(e){return qt(e)/255}function qt(e){return parseInt(e,16)}function JC(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var El={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ZC(e){var t={r:0,g:0,b:0},n=1,o=null,s=null,i=null,r=!1,a=!1;return typeof e=="string"&&(e=nk(e)),typeof e=="object"&&(jn(e.r)&&jn(e.g)&&jn(e.b)?(t=qC(e.r,e.g,e.b),r=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):jn(e.h)&&jn(e.s)&&jn(e.v)?(o=pr(e.s),s=pr(e.v),t=GC(e.h,o,s),r=!0,a="hsv"):jn(e.h)&&jn(e.s)&&jn(e.l)&&(o=pr(e.s),i=pr(e.l),t=YC(e.h,o,i),r=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=lg(n),{ok:r,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var ek="[-\\+]?\\d+%?",tk="[-\\+]?\\d*\\.\\d+%?",yo="(?:".concat(tk,")|(?:").concat(ek,")"),Na="[\\s|\\(]+(".concat(yo,")[,|\\s]+(").concat(yo,")[,|\\s]+(").concat(yo,")\\s*\\)?"),za="[\\s|\\(]+(".concat(yo,")[,|\\s]+(").concat(yo,")[,|\\s]+(").concat(yo,")[,|\\s]+(").concat(yo,")\\s*\\)?"),hn={CSS_UNIT:new RegExp(yo),rgb:new RegExp("rgb"+Na),rgba:new RegExp("rgba"+za),hsl:new RegExp("hsl"+Na),hsla:new RegExp("hsla"+za),hsv:new RegExp("hsv"+Na),hsva:new RegExp("hsva"+za),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nk(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(El[e])e=El[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=hn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=hn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=hn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=hn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hn.hex8.exec(e),n?{r:qt(n[1]),g:qt(n[2]),b:qt(n[3]),a:kd(n[4]),format:t?"name":"hex8"}:(n=hn.hex6.exec(e),n?{r:qt(n[1]),g:qt(n[2]),b:qt(n[3]),format:t?"name":"hex"}:(n=hn.hex4.exec(e),n?{r:qt(n[1]+n[1]),g:qt(n[2]+n[2]),b:qt(n[3]+n[3]),a:kd(n[4]+n[4]),format:t?"name":"hex8"}:(n=hn.hex3.exec(e),n?{r:qt(n[1]+n[1]),g:qt(n[2]+n[2]),b:qt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function jn(e){return Boolean(hn.CSS_UNIT.exec(String(e)))}var ok=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=JC(t)),this.originalInput=t;var s=ZC(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,s,i=t.r/255,r=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=lg(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Sd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Sd(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=xd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=xd(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Cd(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),XC(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(_t(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(_t(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Cd(this.r,this.g,this.b,!1),n=0,o=Object.entries(El);n<o.length;n++){var s=o[n],i=s[0],r=s[1];if(t===r)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var o=!1,s=this.a<1&&this.a>=0,i=!n&&s&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=hr(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=hr(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=hr(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=hr(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),s=new e(t).toRgb(),i=n/100,r={r:(s.r-o.r)*i+o.r,g:(s.g-o.g)*i+o.g,b:(s.b-o.b)*i+o.b,a:(s.a-o.a)*i+o.a};return new e(r)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),s=360/n,i=[this];for(o.h=(o.h-(s*t>>1)+720)%360;--t;)o.h=(o.h+s)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,s=n.s,i=n.v,r=[],a=1/t;t--;)r.push(new e({h:o,s,v:i})),i=(i+a)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),s=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/s,g:(n.g*n.a+o.g*o.a*(1-n.a))/s,b:(n.b*n.a+o.b*o.a*(1-n.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,s=[this],i=360/t,r=1;r<t;r++)s.push(new e({h:(o+r*i)%360,s:n.s,l:n.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function fo(e,t=20){return e.mix("#141414",t).toString()}function sk(e){const t=fs(),n=he("button");return P(()=>{let o={};const s=e.color;if(s){const i=new ok(s),r=e.dark?i.tint(20).toString():fo(i,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?fo(i,90):i.tint(90).toString(),"text-color":s,"border-color":e.dark?fo(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":r,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":r}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?fo(i,90):i.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?fo(i,50):i.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?fo(i,80):i.tint(80).toString());else{const a=e.dark?fo(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":s,"text-color":l,"border-color":s,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":r,"active-border-color":r}),t.value){const c=e.dark?fo(i,50):i.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const ik=Y({name:"ElButton"}),rk=Y({...ik,props:kl,emits:jC,setup(e,{expose:t,emit:n}){const o=e,s=sk(o),i=he("button"),{_ref:r,_size:a,_type:l,_disabled:c,_props:u,shouldAddSpace:d,handleClick:f}=HC(o,n);return t({ref:r,size:a,type:l,disabled:c,shouldAddSpace:d}),(p,g)=>(M(),q(Ke(p.tag),On({ref_key:"_ref",ref:r},b(u),{class:[b(i).b(),b(i).m(b(l)),b(i).m(b(a)),b(i).is("disabled",b(c)),b(i).is("loading",p.loading),b(i).is("plain",p.plain),b(i).is("round",p.round),b(i).is("circle",p.circle),b(i).is("text",p.text),b(i).is("link",p.link),b(i).is("has-bg",p.bg)],style:b(s),onClick:b(f)}),{default:F(()=>[p.loading?(M(),N(Ge,{key:0},[p.$slots.loading?me(p.$slots,"loading",{key:0}):(M(),q(b($e),{key:1,class:R(b(i).is("loading"))},{default:F(()=>[(M(),q(Ke(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(M(),q(b($e),{key:1},{default:F(()=>[p.icon?(M(),q(Ke(p.icon),{key:0})):me(p.$slots,"icon",{key:1})]),_:3})):X("v-if",!0),p.$slots.default?(M(),N("span",{key:2,class:R({[b(i).em("text","expand")]:b(d)})},[me(p.$slots,"default")],2)):X("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ak=ve(rk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const lk={size:kl.size,type:kl.type},ck=Y({name:"ElButtonGroup"}),uk=Y({...ck,props:lk,setup(e){const t=e;rt(ag,Ht({size:nn(t,"size"),type:nn(t,"type")}));const n=he("button");return(o,s)=>(M(),N("div",{class:R(`${b(n).b("group")}`)},[me(o.$slots,"default")],2))}});var cg=ve(uk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Dn=dt(ak,{ButtonGroup:cg}),dk=un(cg);var fk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const go=new Map;let Ed;ot&&(document.addEventListener("mousedown",e=>Ed=e),document.addEventListener("mouseup",e=>{for(const t of go.values())for(const{documentHandler:n}of t)n(e,Ed)}));function Md(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:oo(t.arg)&&n.push(t.arg),function(o,s){const i=t.instance.popperRef,r=o.target,a=s==null?void 0:s.target,l=!t||!t.instance,c=!r||!a,u=e.contains(r)||e.contains(a),d=e===r,f=n.length&&n.some(g=>g==null?void 0:g.contains(r))||n.length&&n.includes(a),p=i&&(i.contains(r)||i.contains(a));l||c||u||d||f||p||t.value(o,s)}}const zc={beforeMount(e,t){go.has(e)||go.set(e,[]),go.get(e).push({documentHandler:Md(e,t),bindingFn:t.value})},updated(e,t){go.has(e)||go.set(e,[]);const n=go.get(e),o=n.findIndex(i=>i.bindingFn===t.oldValue),s={documentHandler:Md(e,t),bindingFn:t.value};o>=0?n.splice(o,1,s):n.push(s)},unmounted(e){go.delete(e)}},Ml="_trap-focus-children",Xo=[],Pd=e=>{if(Xo.length===0)return;const t=Xo[Xo.length-1][Ml];if(t.length>0&&e.code===on.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],s=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),s&&!n&&(e.preventDefault(),t[0].focus())}},pk={beforeMount(e){e[Ml]=yu(e),Xo.push(e),Xo.length<=1&&document.addEventListener("keydown",Pd)},updated(e){xe(()=>{e[Ml]=yu(e)})},unmounted(){Xo.shift(),Xo.length===0&&document.removeEventListener("keydown",Pd)}};var Td=!1,qo,Pl,Tl,Fr,Dr,ug,Br,Ol,Al,Rl,dg,Ll,$l,fg,hg;function $t(){if(!Td){Td=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ll=/\b(iPhone|iP[ao]d)/.exec(e),$l=/\b(iP[ao]d)/.exec(e),Rl=/Android/i.exec(e),fg=/FBAN\/\w+;/i.exec(e),hg=/Mobile/i.exec(e),dg=!!/Win64/.exec(e),t){qo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,qo&&document&&document.documentMode&&(qo=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);ug=o?parseFloat(o[1])+4:qo,Pl=t[2]?parseFloat(t[2]):NaN,Tl=t[3]?parseFloat(t[3]):NaN,Fr=t[4]?parseFloat(t[4]):NaN,Fr?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Dr=t&&t[1]?parseFloat(t[1]):NaN):Dr=NaN}else qo=Pl=Tl=Dr=Fr=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Br=s?parseFloat(s[1].replace("_",".")):!0}else Br=!1;Ol=!!n[2],Al=!!n[3]}else Br=Ol=Al=!1}}var Il={ie:function(){return $t()||qo},ieCompatibilityMode:function(){return $t()||ug>qo},ie64:function(){return Il.ie()&&dg},firefox:function(){return $t()||Pl},opera:function(){return $t()||Tl},webkit:function(){return $t()||Fr},safari:function(){return Il.webkit()},chrome:function(){return $t()||Dr},windows:function(){return $t()||Ol},osx:function(){return $t()||Br},linux:function(){return $t()||Al},iphone:function(){return $t()||Ll},mobile:function(){return $t()||Ll||$l||Rl||hg},nativeApp:function(){return $t()||fg},android:function(){return $t()||Rl},ipad:function(){return $t()||$l}},gk=Il,gr=!!(typeof window<"u"&&window.document&&window.document.createElement),mk={canUseDOM:gr,canUseWorkers:typeof Worker<"u",canUseEventListeners:gr&&!!(window.addEventListener||window.attachEvent),canUseViewport:gr&&!!window.screen,isInWorker:!gr},pg=mk,gg;pg.canUseDOM&&(gg=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function vk(e,t){if(!pg.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o=typeof s[n]=="function"}return!o&&gg&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var bk=vk,Od=10,Ad=40,Rd=800;function mg(e){var t=0,n=0,o=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*Od,s=n*Od,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||s)&&e.deltaMode&&(e.deltaMode==1?(o*=Ad,s*=Ad):(o*=Rd,s*=Rd)),o&&!t&&(t=o<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:s}}mg.getEventType=function(){return gk.firefox()?"DOMMouseScroll":bk("wheel")?"wheel":"mousewheel"};var yk=mg;/**
     20`,Gx=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Xx(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Gx.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:o,borderSize:s,boxSizing:n}}function kd(e,t=1,n){var o;pn||(pn=document.createElement("textarea"),document.body.appendChild(pn));const{paddingSize:s,borderSize:i,boxSizing:a,contextStyle:r}=Xx(e);pn.setAttribute("style",`${r};${Yx}`),pn.value=e.value||e.placeholder||"";let l=pn.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-s),pn.value="";const c=pn.scrollHeight-s;if(Te(t)){let d=c*t;a==="border-box"&&(d=d+s+i),l=Math.max(d,l),u.minHeight=`${d}px`}if(Te(n)){let d=c*n;a==="border-box"&&(d=d+s+i),l=Math.min(d,l)}return u.height=`${l}px`,(o=pn.parentNode)==null||o.removeChild(pn),pn=void 0,u}const Jx=ye({id:{type:String,default:void 0},size:En,disabled:Boolean,modelValue:{type:he([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:he([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:mt},prefixIcon:{type:mt},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:he([Object,Array,String]),default:()=>bn({})},autofocus:Boolean,rows:{type:Number,default:2},...zn(["ariaLabel"])}),Qx={[Je]:e=>Ie(e),input:e=>Ie(e),change:e=>Ie(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Zx=K({name:"ElInput",inheritAttrs:!1}),eC=K({...Zx,props:Jx,emits:Qx,setup(e,{expose:t,emit:n}){const o=e,s=hb(),i=F1(),a=ds(),r=T(()=>[o.type==="textarea"?g.b():p.b(),p.m(f.value),p.is("disabled",h.value),p.is("exceed",te.value),{[p.b("group")]:a.prepend||a.append,[p.m("prefix")]:a.prefix||o.prefixIcon,[p.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[p.bm("suffix","password-clear")]:U.value&&H.value,[p.b("hidden")]:o.type==="hidden"},s.class]),l=T(()=>[p.e("wrapper"),p.is("focus",E.value)]),{form:u,formItem:c}=fo(),{inputId:d}=ps(o,{formItemContext:c}),f=cn(),h=hs(),p=pe("input"),g=pe("textarea"),m=oo(),b=oo(),w=R(!1),S=R(!1),_=R(),y=oo(o.inputStyle),x=T(()=>m.value||b.value),{wrapperRef:C,isFocused:E,handleFocus:O,handleBlur:I}=zu(x,{beforeFocus(){return h.value},afterBlur(){var se;o.validateEvent&&((se=c==null?void 0:c.validate)==null||se.call(c,"blur").catch(qe=>void 0))}}),$=T(()=>{var se;return(se=u==null?void 0:u.statusIcon)!=null?se:!1}),N=T(()=>(c==null?void 0:c.validateState)||""),j=T(()=>N.value&&op[N.value]),ae=T(()=>S.value?bu:pb),Y=T(()=>[s.style]),z=T(()=>[o.inputStyle,y.value,{resize:o.resize}]),J=T(()=>es(o.modelValue)?"":String(o.modelValue)),U=T(()=>o.clearable&&!h.value&&!o.readonly&&!!J.value&&(E.value||w.value)),H=T(()=>o.showPassword&&!h.value&&!!J.value&&(!!J.value||E.value)),de=T(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!h.value&&!o.readonly&&!o.showPassword),Se=T(()=>J.value.length),te=T(()=>!!de.value&&Se.value>Number(o.maxlength)),X=T(()=>!!a.suffix||!!o.suffixIcon||U.value||o.showPassword||de.value||!!N.value&&$.value),[Q,oe]=ZS(m);Tt(b,se=>{if(V(),!de.value||o.resize!=="both")return;const qe=se[0],{width:Lt}=qe.contentRect;_.value={right:`calc(100% - ${Lt+15+6}px)`}});const ne=()=>{const{type:se,autosize:qe}=o;if(!(!tt||se!=="textarea"||!b.value))if(qe){const Lt=St(qe)?qe.minRows:void 0,Pn=St(qe)?qe.maxRows:void 0,On=kd(b.value,Lt,Pn);y.value={overflowY:"hidden",...On},Me(()=>{b.value.offsetHeight,y.value=On})}else y.value={minHeight:kd(b.value).minHeight}},V=(se=>{let qe=!1;return()=>{var Lt;if(qe||!o.autosize)return;((Lt=b.value)==null?void 0:Lt.offsetParent)===null||(se(),qe=!0)}})(ne),B=()=>{const se=x.value,qe=o.formatter?o.formatter(J.value):J.value;!se||se.value===qe||(se.value=qe)},Z=async se=>{Q();let{value:qe}=se.target;if(o.formatter&&(qe=o.parser?o.parser(qe):qe),!Ee.value){if(qe===J.value){B();return}n(Je,qe),n("input",qe),await Me(),B(),oe()}},fe=se=>{n("change",se.target.value)},{isComposing:Ee,handleCompositionStart:ve,handleCompositionUpdate:xe,handleCompositionEnd:be}=hg({emit:n,afterComposition:Z}),dt=()=>{S.value=!S.value,Ke()},Ke=async()=>{var se;await Me(),(se=x.value)==null||se.focus()},Tn=()=>{var se;return(se=x.value)==null?void 0:se.blur()},ho=se=>{w.value=!1,n("mouseleave",se)},Ct=se=>{w.value=!0,n("mouseenter",se)},en=se=>{n("keydown",se)},po=()=>{var se;(se=x.value)==null||se.select()},Wn=()=>{n(Je,""),n("change",""),n("clear"),n("input","")};return ie(()=>o.modelValue,()=>{var se;Me(()=>ne()),o.validateEvent&&((se=c==null?void 0:c.validate)==null||se.call(c,"change").catch(qe=>void 0))}),ie(J,()=>B()),ie(()=>o.type,async()=>{await Me(),B(),ne()}),De(()=>{!o.formatter&&o.parser,B(),Me(ne)}),t({input:m,textarea:b,ref:x,textareaStyle:z,autosize:on(o,"autosize"),isComposing:Ee,focus:Ke,blur:Tn,select:po,clear:Wn,resizeTextarea:ne}),(se,qe)=>(M(),D("div",{class:A([v(r),{[v(p).bm("group","append")]:se.$slots.append,[v(p).bm("group","prepend")]:se.$slots.prepend}]),style:Oe(v(Y)),onMouseenter:Ct,onMouseleave:ho},[q(" input "),se.type!=="textarea"?(M(),D(Qe,{key:0},[q(" prepend slot "),se.$slots.prepend?(M(),D("div",{key:0,class:A(v(p).be("group","prepend"))},[re(se.$slots,"prepend")],2)):q("v-if",!0),k("div",{ref_key:"wrapperRef",ref:C,class:A(v(l))},[q(" prefix slot "),se.$slots.prefix||se.prefixIcon?(M(),D("span",{key:0,class:A(v(p).e("prefix"))},[k("span",{class:A(v(p).e("prefix-inner"))},[re(se.$slots,"prefix"),se.prefixIcon?(M(),G(v(Le),{key:0,class:A(v(p).e("icon"))},{default:L(()=>[(M(),G(Ue(se.prefixIcon)))]),_:1},8,["class"])):q("v-if",!0)],2)],2)):q("v-if",!0),k("input",rn({id:v(d),ref_key:"input",ref:m,class:v(p).e("inner")},v(i),{minlength:se.minlength,maxlength:se.maxlength,type:se.showPassword?S.value?"text":"password":se.type,disabled:v(h),readonly:se.readonly,autocomplete:se.autocomplete,tabindex:se.tabindex,"aria-label":se.ariaLabel,placeholder:se.placeholder,style:se.inputStyle,form:se.form,autofocus:se.autofocus,role:se.containerRole,onCompositionstart:v(ve),onCompositionupdate:v(xe),onCompositionend:v(be),onInput:Z,onChange:fe,onKeydown:en}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),q(" suffix slot "),v(X)?(M(),D("span",{key:1,class:A(v(p).e("suffix"))},[k("span",{class:A(v(p).e("suffix-inner"))},[!v(U)||!v(H)||!v(de)?(M(),D(Qe,{key:0},[re(se.$slots,"suffix"),se.suffixIcon?(M(),G(v(Le),{key:0,class:A(v(p).e("icon"))},{default:L(()=>[(M(),G(Ue(se.suffixIcon)))]),_:1},8,["class"])):q("v-if",!0)],64)):q("v-if",!0),v(U)?(M(),G(v(Le),{key:1,class:A([v(p).e("icon"),v(p).e("clear")]),onMousedown:Xe(v(Zo),["prevent"]),onClick:Wn},{default:L(()=>[P(v(np))]),_:1},8,["class","onMousedown"])):q("v-if",!0),v(H)?(M(),G(v(Le),{key:2,class:A([v(p).e("icon"),v(p).e("password")]),onClick:dt},{default:L(()=>[(M(),G(Ue(v(ae))))]),_:1},8,["class"])):q("v-if",!0),v(de)?(M(),D("span",{key:3,class:A(v(p).e("count"))},[k("span",{class:A(v(p).e("count-inner"))},ee(v(Se))+" / "+ee(se.maxlength),3)],2)):q("v-if",!0),v(N)&&v(j)&&v($)?(M(),G(v(Le),{key:4,class:A([v(p).e("icon"),v(p).e("validateIcon"),v(p).is("loading",v(N)==="validating")])},{default:L(()=>[(M(),G(Ue(v(j))))]),_:1},8,["class"])):q("v-if",!0)],2)],2)):q("v-if",!0)],2),q(" append slot "),se.$slots.append?(M(),D("div",{key:1,class:A(v(p).be("group","append"))},[re(se.$slots,"append")],2)):q("v-if",!0)],64)):(M(),D(Qe,{key:1},[q(" textarea "),k("textarea",rn({id:v(d),ref_key:"textarea",ref:b,class:[v(g).e("inner"),v(p).is("focus",v(E))]},v(i),{minlength:se.minlength,maxlength:se.maxlength,tabindex:se.tabindex,disabled:v(h),readonly:se.readonly,autocomplete:se.autocomplete,style:v(z),"aria-label":se.ariaLabel,placeholder:se.placeholder,form:se.form,autofocus:se.autofocus,rows:se.rows,role:se.containerRole,onCompositionstart:v(ve),onCompositionupdate:v(xe),onCompositionend:v(be),onInput:Z,onFocus:v(O),onBlur:v(I),onChange:fe,onKeydown:en}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),v(de)?(M(),D("span",{key:0,style:Oe(_.value),class:A(v(p).e("count"))},ee(v(Se))+" / "+ee(se.maxlength),7)):q("v-if",!0)],64))],38))}});var tC=me(eC,[["__file","input.vue"]]);const $o=ct(tC),_s=4,nC={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},oC=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Wu=Symbol("scrollbarContextKey"),sC=ye({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),iC="Thumb",aC=K({__name:"thumb",props:sC,setup(e){const t=e,n=we(Wu),o=pe("scrollbar");n||Lo(iC,"can not inject scrollbar context");const s=R(),i=R(),a=R({}),r=R(!1);let l=!1,u=!1,c=tt?document.onselectstart:null;const d=T(()=>nC[t.vertical?"vertical":"horizontal"]),f=T(()=>oC({size:t.size,move:t.move,bar:d.value})),h=T(()=>s.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/i.value[d.value.offset]),p=x=>{var C;if(x.stopPropagation(),x.ctrlKey||[1,2].includes(x.button))return;(C=window.getSelection())==null||C.removeAllRanges(),m(x);const E=x.currentTarget;!E||(a.value[d.value.axis]=E[d.value.offset]-(x[d.value.client]-E.getBoundingClientRect()[d.value.direction]))},g=x=>{if(!i.value||!s.value||!n.wrapElement)return;const C=Math.abs(x.target.getBoundingClientRect()[d.value.direction]-x[d.value.client]),E=i.value[d.value.offset]/2,O=(C-E)*100*h.value/s.value[d.value.offset];n.wrapElement[d.value.scroll]=O*n.wrapElement[d.value.scrollSize]/100},m=x=>{x.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),c=document.onselectstart,document.onselectstart=()=>!1},b=x=>{if(!s.value||!i.value||l===!1)return;const C=a.value[d.value.axis];if(!C)return;const E=(s.value.getBoundingClientRect()[d.value.direction]-x[d.value.client])*-1,O=i.value[d.value.offset]-C,I=(E-O)*100*h.value/s.value[d.value.offset];n.wrapElement[d.value.scroll]=I*n.wrapElement[d.value.scrollSize]/100},w=()=>{l=!1,a.value[d.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w),y(),u&&(r.value=!1)},S=()=>{u=!1,r.value=!!t.size},_=()=>{u=!0,r.value=l};yt(()=>{y(),document.removeEventListener("mouseup",w)});const y=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return so(on(n,"scrollbarElement"),"mousemove",S),so(on(n,"scrollbarElement"),"mouseleave",_),(x,C)=>(M(),G(fs,{name:v(o).b("fade"),persisted:""},{default:L(()=>[$e(k("div",{ref_key:"instance",ref:s,class:A([v(o).e("bar"),v(o).is(v(d).key)]),onMousedown:g},[k("div",{ref_key:"thumb",ref:i,class:A(v(o).e("thumb")),style:Oe(v(f)),onMousedown:p},null,38)],34),[[At,x.always||r.value]])]),_:1},8,["name"]))}});var Ed=me(aC,[["__file","thumb.vue"]]);const rC=ye({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),lC=K({__name:"bar",props:rC,setup(e,{expose:t}){const n=e,o=we(Wu),s=R(0),i=R(0),a=R(""),r=R(""),l=R(1),u=R(1);return t({handleScroll:f=>{if(f){const h=f.offsetHeight-_s,p=f.offsetWidth-_s;i.value=f.scrollTop*100/h*l.value,s.value=f.scrollLeft*100/p*u.value}},update:()=>{const f=o==null?void 0:o.wrapElement;if(!f)return;const h=f.offsetHeight-_s,p=f.offsetWidth-_s,g=h**2/f.scrollHeight,m=p**2/f.scrollWidth,b=Math.max(g,n.minSize),w=Math.max(m,n.minSize);l.value=g/(h-g)/(b/(h-b)),u.value=m/(p-m)/(w/(p-w)),r.value=b+_s<h?`${b}px`:"",a.value=w+_s<p?`${w}px`:""}}),(f,h)=>(M(),D(Qe,null,[P(Ed,{move:s.value,ratio:u.value,size:a.value,always:f.always},null,8,["move","ratio","size","always"]),P(Ed,{move:i.value,ratio:l.value,size:r.value,vertical:"",always:f.always},null,8,["move","ratio","size","always"])],64))}});var uC=me(lC,[["__file","bar.vue"]]);const cC=ye({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:he([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...zn(["ariaLabel","ariaOrientation"])}),dC={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Te)},fC="ElScrollbar",hC=K({name:fC}),pC=K({...hC,props:cC,emits:dC,setup(e,{expose:t,emit:n}){const o=e,s=pe("scrollbar");let i,a,r=0,l=0;const u=R(),c=R(),d=R(),f=R(),h=T(()=>{const y={};return o.height&&(y.height=jt(o.height)),o.maxHeight&&(y.maxHeight=jt(o.maxHeight)),[o.wrapStyle,y]}),p=T(()=>[o.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!o.native}]),g=T(()=>[s.e("view"),o.viewClass]),m=()=>{var y;c.value&&((y=f.value)==null||y.handleScroll(c.value),r=c.value.scrollTop,l=c.value.scrollLeft,n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function b(y,x){St(y)?c.value.scrollTo(y):Te(y)&&Te(x)&&c.value.scrollTo(y,x)}const w=y=>{!Te(y)||(c.value.scrollTop=y)},S=y=>{!Te(y)||(c.value.scrollLeft=y)},_=()=>{var y;(y=f.value)==null||y.update()};return ie(()=>o.noresize,y=>{y?(i==null||i(),a==null||a()):({stop:i}=Tt(d,_),a=so("resize",_))},{immediate:!0}),ie(()=>[o.maxHeight,o.height],()=>{o.native||Me(()=>{var y;_(),c.value&&((y=f.value)==null||y.handleScroll(c.value))})}),nt(Wu,Ft({scrollbarElement:u,wrapElement:c})),gb(()=>{c.value&&(c.value.scrollTop=r,c.value.scrollLeft=l)}),De(()=>{o.native||Me(()=>{_()})}),br(()=>_()),t({wrapRef:c,update:_,scrollTo:b,setScrollTop:w,setScrollLeft:S,handleScroll:m}),(y,x)=>(M(),D("div",{ref_key:"scrollbarRef",ref:u,class:A(v(s).b())},[k("div",{ref_key:"wrapRef",ref:c,class:A(v(p)),style:Oe(v(h)),tabindex:y.tabindex,onScroll:m},[(M(),G(Ue(y.tag),{id:y.id,ref_key:"resizeRef",ref:d,class:A(v(g)),style:Oe(y.viewStyle),role:y.role,"aria-label":y.ariaLabel,"aria-orientation":y.ariaOrientation},{default:L(()=>[re(y.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),y.native?q("v-if",!0):(M(),G(uC,{key:0,ref_key:"barRef",ref:f,always:y.always,"min-size":y.minSize},null,8,["always","min-size"]))],2))}});var gC=me(pC,[["__file","scrollbar.vue"]]);const ju=ct(gC),Uu=Symbol("popper"),mg=Symbol("popperContent"),mC=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],vg=ye({role:{type:String,values:mC,default:"tooltip"}}),vC=K({name:"ElPopper",inheritAttrs:!1}),bC=K({...vC,props:vg,setup(e,{expose:t}){const n=e,o=R(),s=R(),i=R(),a=R(),r=T(()=>n.role),l={triggerRef:o,popperInstanceRef:s,contentRef:i,referenceRef:a,role:r};return t(l),nt(Uu,l),(u,c)=>re(u.$slots,"default")}});var yC=me(bC,[["__file","popper.vue"]]);const bg=ye({arrowOffset:{type:Number,default:5}}),_C=K({name:"ElPopperArrow",inheritAttrs:!1}),wC=K({..._C,props:bg,setup(e,{expose:t}){const n=e,o=pe("popper"),{arrowOffset:s,arrowRef:i,arrowStyle:a}=we(mg,void 0);return ie(()=>n.arrowOffset,r=>{s.value=r}),yt(()=>{i.value=void 0}),t({arrowRef:i}),(r,l)=>(M(),D("span",{ref_key:"arrowRef",ref:i,class:A(v(o).e("arrow")),style:Oe(v(a)),"data-popper-arrow":""},null,6))}});var SC=me(wC,[["__file","arrow.vue"]]);const xC="ElOnlyChild",CC=K({name:xC,setup(e,{slots:t,attrs:n}){var o;const s=we(dg),i=QS((o=s==null?void 0:s.setForwardRef)!=null?o:Zo);return()=>{var a;const r=(a=t.default)==null?void 0:a.call(t,n);if(!r||r.length>1)return null;const l=yg(r);return l?$e(mb(l,n),[[i]]):null}}});function yg(e){if(!e)return null;const t=e;for(const n of t){if(St(n))switch(n.type){case ip:continue;case sp:case"svg":return Md(n);case Qe:return yg(n.children);default:return n}return Md(n)}return null}function Md(e){const t=pe("only-child");return P("span",{class:t.e("content")},[e])}const _g=ye({virtualRef:{type:he(Object)},virtualTriggering:Boolean,onMouseenter:{type:he(Function)},onMouseleave:{type:he(Function)},onClick:{type:he(Function)},onKeydown:{type:he(Function)},onFocus:{type:he(Function)},onBlur:{type:he(Function)},onContextmenu:{type:he(Function)},id:String,open:Boolean}),kC=K({name:"ElPopperTrigger",inheritAttrs:!1}),EC=K({...kC,props:_g,setup(e,{expose:t}){const n=e,{role:o,triggerRef:s}=we(Uu,void 0);JS(s);const i=T(()=>r.value?n.id:void 0),a=T(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),r=T(()=>{if(o&&o.value!=="tooltip")return o.value}),l=T(()=>r.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return De(()=>{ie(()=>n.virtualRef,d=>{d&&(s.value=ap(d))},{immediate:!0}),ie(s,(d,f)=>{u==null||u(),u=void 0,In(d)&&(c.forEach(h=>{var p;const g=n[h];g&&(d.addEventListener(h.slice(2).toLowerCase(),g),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,h.slice(2).toLowerCase(),g))}),vl(d)&&(u=ie([i,a,r,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{es(h[g])?d.removeAttribute(p):d.setAttribute(p,h[g])})},{immediate:!0}))),In(f)&&vl(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>f.removeAttribute(h))},{immediate:!0})}),yt(()=>{if(u==null||u(),u=void 0,s.value&&In(s.value)){const d=s.value;c.forEach(f=>{const h=n[f];h&&d.removeEventListener(f.slice(2).toLowerCase(),h)}),s.value=void 0}}),t({triggerRef:s}),(d,f)=>d.virtualTriggering?q("v-if",!0):(M(),G(v(CC),rn({key:0},d.$attrs,{"aria-controls":v(i),"aria-describedby":v(a),"aria-expanded":v(l),"aria-haspopup":v(r)}),{default:L(()=>[re(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var MC=me(EC,[["__file","trigger.vue"]]);const zr="focus-trap.focus-after-trapped",Vr="focus-trap.focus-after-released",TC="focus-trap.focusout-prevented",Td={cancelable:!0,bubbles:!1},PC={cancelable:!0,bubbles:!1},Pd="focusAfterTrapped",Od="focusAfterReleased",wg=Symbol("elFocusTrap"),Ku=R(),xr=R(0),qu=R(0);let ga=0;const Sg=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Ad=(e,t)=>{for(const n of e)if(!OC(n,t))return n},OC=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},AC=e=>{const t=Sg(e),n=Ad(t,e),o=Ad(t.reverse(),e);return[n,o]},RC=e=>e instanceof HTMLInputElement&&"select"in e,bo=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),qu.value=window.performance.now(),e!==n&&RC(e)&&t&&e.select()}};function Rd(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const LC=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=Rd(e,o),e.unshift(o)},remove:o=>{var s,i;e=Rd(e,o),(i=(s=e[0])==null?void 0:s.resume)==null||i.call(s)}}},IC=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(bo(o,t),document.activeElement!==n)return},Ld=LC(),$C=()=>xr.value>qu.value,ma=()=>{Ku.value="pointer",xr.value=window.performance.now()},Id=()=>{Ku.value="keyboard",xr.value=window.performance.now()},FC=()=>(De(()=>{ga===0&&(document.addEventListener("mousedown",ma),document.addEventListener("touchstart",ma),document.addEventListener("keydown",Id)),ga++}),yt(()=>{ga--,ga<=0&&(document.removeEventListener("mousedown",ma),document.removeEventListener("touchstart",ma),document.removeEventListener("keydown",Id))}),{focusReason:Ku,lastUserFocusTimestamp:xr,lastAutomatedFocusTimestamp:qu}),va=e=>new CustomEvent(TC,{...PC,detail:e}),BC=K({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Pd,Od,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=R();let o,s;const{focusReason:i}=FC();KS(p=>{e.trapped&&!a.paused&&t("release-requested",p)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},r=p=>{if(!e.loop&&!e.trapped||a.paused)return;const{code:g,altKey:m,ctrlKey:b,metaKey:w,currentTarget:S,shiftKey:_}=p,{loop:y}=e,x=g===rt.tab&&!m&&!b&&!w,C=document.activeElement;if(x&&C){const E=S,[O,I]=AC(E);if(O&&I){if(!_&&C===I){const N=va({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(p.preventDefault(),y&&bo(O,!0))}else if(_&&[O,E].includes(C)){const N=va({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(p.preventDefault(),y&&bo(I,!0))}}else if(C===E){const N=va({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||p.preventDefault()}}};nt(wg,{focusTrapRef:n,onKeydown:r}),ie(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),ie([n],([p],[g])=>{p&&(p.addEventListener("keydown",r),p.addEventListener("focusin",c),p.addEventListener("focusout",d)),g&&(g.removeEventListener("keydown",r),g.removeEventListener("focusin",c),g.removeEventListener("focusout",d))});const l=p=>{t(Pd,p)},u=p=>t(Od,p),c=p=>{const g=v(n);if(!g)return;const m=p.target,b=p.relatedTarget,w=m&&g.contains(m);e.trapped||b&&g.contains(b)||(o=b),w&&t("focusin",p),!a.paused&&e.trapped&&(w?s=m:bo(s,!0))},d=p=>{const g=v(n);if(!(a.paused||!g))if(e.trapped){const m=p.relatedTarget;!es(m)&&!g.contains(m)&&setTimeout(()=>{if(!a.paused&&e.trapped){const b=va({focusReason:i.value});t("focusout-prevented",b),b.defaultPrevented||bo(s,!0)}},0)}else{const m=p.target;m&&g.contains(m)||t("focusout",p)}};async function f(){await Me();const p=v(n);if(p){Ld.push(a);const g=p.contains(document.activeElement)?o:document.activeElement;if(o=g,!p.contains(g)){const b=new Event(zr,Td);p.addEventListener(zr,l),p.dispatchEvent(b),b.defaultPrevented||Me(()=>{let w=e.focusStartEl;Ie(w)||(bo(w),document.activeElement!==w&&(w="first")),w==="first"&&IC(Sg(p),!0),(document.activeElement===g||w==="container")&&bo(p)})}}}function h(){const p=v(n);if(p){p.removeEventListener(zr,l);const g=new CustomEvent(Vr,{...Td,detail:{focusReason:i.value}});p.addEventListener(Vr,u),p.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!$C()||p.contains(document.activeElement))&&bo(o!=null?o:document.body),p.removeEventListener(Vr,u),Ld.remove(a)}}return De(()=>{e.trapped&&f(),ie(()=>e.trapped,p=>{p?f():h()})}),yt(()=>{e.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",r),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",d),n.value=void 0)}),{onKeydown:r}}});function DC(e,t,n,o,s,i){return re(e.$slots,"default",{handleKeydown:e.onKeydown})}var Yu=me(BC,[["render",DC],["__file","focus-trap.vue"]]);const NC=["fixed","absolute"],zC=ye({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:he(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:wr,default:"bottom"},popperOptions:{type:he(Object),default:()=>({})},strategy:{type:String,values:NC,default:"absolute"}}),xg=ye({...zC,id:String,style:{type:he([String,Array,Object])},className:{type:he([String,Array,Object])},effect:{type:he(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:he([String,Array,Object])},popperStyle:{type:he([String,Array,Object])},referenceEl:{type:he(Object)},triggerTargetEl:{type:he(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...zn(["ariaLabel"])}),VC={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},HC=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:s}=e,i={placement:n,strategy:o,...s,modifiers:[...jC(e),...t]};return UC(i,s==null?void 0:s.modifiers),i},WC=e=>{if(!!tt)return ap(e)};function jC(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function UC(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const KC=0,qC=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:s}=we(Uu,void 0),i=R(),a=R(),r=T(()=>({name:"eventListeners",enabled:!!e.visible})),l=T(()=>{var b;const w=v(i),S=(b=v(a))!=null?b:KC;return{name:"arrow",enabled:!Up(w),options:{element:w,padding:S}}}),u=T(()=>({onFirstUpdate:()=>{p()},...HC(e,[v(l),v(r)])})),c=T(()=>WC(e.referenceEl)||v(o)),{attributes:d,state:f,styles:h,update:p,forceUpdate:g,instanceRef:m}=HS(c,n,u);return ie(m,b=>t.value=b),De(()=>{ie(()=>{var b;return(b=v(c))==null?void 0:b.getBoundingClientRect()},()=>{p()})}),{attributes:d,arrowRef:i,contentRef:n,instanceRef:m,state:f,styles:h,role:s,forceUpdate:g,update:p}},YC=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:s}=rp(),i=pe("popper"),a=T(()=>v(t).popper),r=R(Te(e.zIndex)?e.zIndex:s()),l=T(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=T(()=>[{zIndex:v(r)},v(n).popper,e.popperStyle||{}]),c=T(()=>o.value==="dialog"?"false":void 0),d=T(()=>v(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:r,updateZIndex:()=>{r.value=Te(e.zIndex)?e.zIndex:s()}}},GC=(e,t)=>{const n=R(!1),o=R();return{focusStartRef:o,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(o.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},XC=K({name:"ElPopperContent"}),JC=K({...XC,props:xg,emits:VC,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:s,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:r,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=GC(o,n),{attributes:d,arrowRef:f,contentRef:h,styles:p,instanceRef:g,role:m,update:b}=qC(o),{ariaModal:w,arrowStyle:S,contentAttrs:_,contentClass:y,contentStyle:x,updateZIndex:C}=YC(o,{styles:p,attributes:d,role:m}),E=we(rs,void 0),O=R();nt(mg,{arrowStyle:S,arrowRef:f,arrowOffset:O}),E&&nt(rs,{...E,addInputId:Zo,removeInputId:Zo});let I;const $=(j=!0)=>{b(),j&&C()},N=()=>{$(!1),o.visible&&o.focusOnShow?i.value=!0:o.visible===!1&&(i.value=!1)};return De(()=>{ie(()=>o.triggerTargetEl,(j,ae)=>{I==null||I(),I=void 0;const Y=v(j||h.value),z=v(ae||h.value);In(Y)&&(I=ie([m,()=>o.ariaLabel,w,()=>o.id],J=>{["role","aria-label","aria-modal","id"].forEach((U,H)=>{es(J[H])?Y.removeAttribute(U):Y.setAttribute(U,J[H])})},{immediate:!0})),z!==Y&&In(z)&&["role","aria-label","aria-modal","id"].forEach(J=>{z.removeAttribute(J)})},{immediate:!0}),ie(()=>o.visible,N,{immediate:!0})}),yt(()=>{I==null||I(),I=void 0}),t({popperContentRef:h,popperInstanceRef:g,updatePopper:$,contentStyle:x}),(j,ae)=>(M(),D("div",rn({ref_key:"contentRef",ref:h},v(_),{style:v(x),class:v(y),tabindex:"-1",onMouseenter:Y=>j.$emit("mouseenter",Y),onMouseleave:Y=>j.$emit("mouseleave",Y)}),[P(v(Yu),{trapped:v(i),"trap-on-focus-in":!0,"focus-trap-el":v(h),"focus-start-el":v(s),onFocusAfterTrapped:v(r),onFocusAfterReleased:v(a),onFocusin:v(l),onFocusoutPrevented:v(u),onReleaseRequested:v(c)},{default:L(()=>[re(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var QC=me(JC,[["__file","content.vue"]]);const ZC=ct(yC),Gu=Symbol("elTooltip"),Mt=ye({...GS,...xg,appendTo:{type:he([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:he(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...zn(["ariaLabel"])}),Fi=ye({..._g,disabled:Boolean,trigger:{type:he([String,Array]),default:"hover"},triggerKeys:{type:he(Array),default:()=>[rt.enter,rt.numpadEnter,rt.space]}}),{useModelToggleProps:ek,useModelToggleEmits:tk,useModelToggle:nk}=N1("visible"),ok=ye({...vg,...ek,...Mt,...Fi,...bg,showArrow:{type:Boolean,default:!0}}),sk=[...tk,"before-show","before-hide","show","hide","open","close"],ik=(e,t)=>ze(e)?e.includes(t):e===t,ws=(e,t,n)=>o=>{ik(v(e),t)&&n(o)},ak=K({name:"ElTooltipTrigger"}),rk=K({...ak,props:Fi,setup(e,{expose:t}){const n=e,o=pe("tooltip"),{controlled:s,id:i,open:a,onOpen:r,onClose:l,onToggle:u}=we(Gu,void 0),c=R(null),d=()=>{if(v(s)||n.disabled)return!0},f=on(n,"trigger"),h=Gn(d,ws(f,"hover",r)),p=Gn(d,ws(f,"hover",l)),g=Gn(d,ws(f,"click",_=>{_.button===0&&u(_)})),m=Gn(d,ws(f,"focus",r)),b=Gn(d,ws(f,"focus",l)),w=Gn(d,ws(f,"contextmenu",_=>{_.preventDefault(),u(_)})),S=Gn(d,_=>{const{code:y}=_;n.triggerKeys.includes(y)&&(_.preventDefault(),u(_))});return t({triggerRef:c}),(_,y)=>(M(),G(v(MC),{id:v(i),"virtual-ref":_.virtualRef,open:v(a),"virtual-triggering":_.virtualTriggering,class:A(v(o).e("trigger")),onBlur:v(b),onClick:v(g),onContextmenu:v(w),onFocus:v(m),onMouseenter:v(h),onMouseleave:v(p),onKeydown:v(S)},{default:L(()=>[re(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var lk=me(rk,[["__file","trigger.vue"]]);const uk=ye({to:{type:he([String,Object]),required:!0},disabled:Boolean}),ck=K({__name:"teleport",props:uk,setup(e){return(t,n)=>t.disabled?re(t.$slots,"default",{key:0}):(M(),G(vb,{key:1,to:t.to},[re(t.$slots,"default")],8,["to"]))}});var dk=me(ck,[["__file","teleport.vue"]]);const Cg=ct(dk),fk=K({name:"ElTooltipContent",inheritAttrs:!1}),hk=K({...fk,props:Mt,setup(e,{expose:t}){const n=e,{selector:o}=cg(),s=pe("tooltip"),i=R(null);let a;const{controlled:r,id:l,open:u,trigger:c,onClose:d,onOpen:f,onShow:h,onHide:p,onBeforeShow:g,onBeforeHide:m}=we(Gu,void 0),b=T(()=>n.transition||`${s.namespace.value}-fade-in-linear`),w=T(()=>n.persistent);yt(()=>{a==null||a()});const S=T(()=>v(w)?!0:v(u)),_=T(()=>n.disabled?!1:v(u)),y=T(()=>n.appendTo||o.value),x=T(()=>{var z;return(z=n.style)!=null?z:{}}),C=R(!0),E=()=>{p(),C.value=!0},O=()=>{if(v(r))return!0},I=Gn(O,()=>{n.enterable&&v(c)==="hover"&&f()}),$=Gn(O,()=>{v(c)==="hover"&&d()}),N=()=>{var z,J;(J=(z=i.value)==null?void 0:z.updatePopper)==null||J.call(z),g==null||g()},j=()=>{m==null||m()},ae=()=>{h(),a=bb(T(()=>{var z;return(z=i.value)==null?void 0:z.popperContentRef}),()=>{if(v(r))return;v(c)!=="hover"&&d()})},Y=()=>{n.virtualTriggering||d()};return ie(()=>v(u),z=>{z?C.value=!1:a==null||a()},{flush:"post"}),ie(()=>n.content,()=>{var z,J;(J=(z=i.value)==null?void 0:z.updatePopper)==null||J.call(z)}),t({contentRef:i}),(z,J)=>(M(),G(v(Cg),{disabled:!z.teleported,to:v(y)},{default:L(()=>[P(fs,{name:v(b),onAfterLeave:E,onBeforeEnter:N,onAfterEnter:ae,onBeforeLeave:j},{default:L(()=>[v(S)?$e((M(),G(v(QC),rn({key:0,id:v(l),ref_key:"contentRef",ref:i},z.$attrs,{"aria-label":z.ariaLabel,"aria-hidden":C.value,"boundaries-padding":z.boundariesPadding,"fallback-placements":z.fallbackPlacements,"gpu-acceleration":z.gpuAcceleration,offset:z.offset,placement:z.placement,"popper-options":z.popperOptions,strategy:z.strategy,effect:z.effect,enterable:z.enterable,pure:z.pure,"popper-class":z.popperClass,"popper-style":[z.popperStyle,v(x)],"reference-el":z.referenceEl,"trigger-target-el":z.triggerTargetEl,visible:v(_),"z-index":z.zIndex,onMouseenter:v(I),onMouseleave:v($),onBlur:Y,onClose:v(d)}),{default:L(()=>[re(z.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[At,v(_)]]):q("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var pk=me(hk,[["__file","content.vue"]]);const gk=K({name:"ElTooltip"}),mk=K({...gk,props:ok,emits:sk,setup(e,{expose:t,emit:n}){const o=e;YS();const s=Nn(),i=R(),a=R(),r=()=>{var b;const w=v(i);w&&((b=w.popperInstanceRef)==null||b.update())},l=R(!1),u=R(),{show:c,hide:d,hasUpdateHandler:f}=nk({indicator:l,toggleReason:u}),{onOpen:h,onClose:p}=XS({showAfter:on(o,"showAfter"),hideAfter:on(o,"hideAfter"),autoClose:on(o,"autoClose"),open:c,close:d}),g=T(()=>lt(o.visible)&&!f.value);nt(Gu,{controlled:g,id:s,open:yb(l),trigger:on(o,"trigger"),onOpen:b=>{h(b)},onClose:b=>{p(b)},onToggle:b=>{v(l)?p(b):h(b)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:r}),ie(()=>o.disabled,b=>{b&&l.value&&(l.value=!1)});const m=b=>{var w,S;const _=(S=(w=a.value)==null?void 0:w.contentRef)==null?void 0:S.popperContentRef,y=(b==null?void 0:b.relatedTarget)||document.activeElement;return _&&_.contains(y)};return _b(()=>l.value&&d()),t({popperRef:i,contentRef:a,isFocusInsideContent:m,updatePopper:r,onOpen:h,onClose:p,hide:d}),(b,w)=>(M(),G(v(ZC),{ref_key:"popperRef",ref:i,role:b.role},{default:L(()=>[P(lk,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:L(()=>[b.$slots.default?re(b.$slots,"default",{key:0}):q("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),P(pk,{ref_key:"contentRef",ref:a,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass,"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:L(()=>[re(b.$slots,"content",{},()=>[b.rawContent?(M(),D("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(M(),D("span",{key:1},ee(b.content),1))]),b.showArrow?(M(),G(v(SC),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):q("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var vk=me(mk,[["__file","tooltip.vue"]]);const Vn=ct(vk),bk=ye({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:he([String,Object,Array])},offset:{type:he(Array),default:[0,0]},badgeClass:{type:String}}),yk=K({name:"ElBadge"}),_k=K({...yk,props:bk,setup(e,{expose:t}){const n=e,o=pe("badge"),s=T(()=>n.isDot?"":Te(n.value)&&Te(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=T(()=>{var a,r,l,u,c;return[{backgroundColor:n.color,marginRight:jt(-((r=(a=n.offset)==null?void 0:a[0])!=null?r:0)),marginTop:jt((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(c=n.badgeStyle)!=null?c:{}]});return t({content:s}),(a,r)=>(M(),D("div",{class:A(v(o).b())},[re(a.$slots,"default"),P(fs,{name:`${v(o).namespace.value}-zoom-in-center`,persisted:""},{default:L(()=>[$e(k("sup",{class:A([v(o).e("content"),v(o).em("content",a.type),v(o).is("fixed",!!a.$slots.default),v(o).is("dot",a.isDot),v(o).is("hide-zero",!a.showZero&&n.value===0),a.badgeClass]),style:Oe(v(i)),textContent:ee(v(s))},null,14,["textContent"]),[[At,!a.hidden&&(v(s)||a.isDot)]])]),_:1},8,["name"])],2))}});var wk=me(_k,[["__file","badge.vue"]]);const Sk=ct(wk),kg=Symbol("buttonGroupContextKey"),xk=(e,t)=>{ns({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},T(()=>e.type==="text"));const n=we(kg,void 0),o=lp("button"),{form:s}=fo(),i=cn(T(()=>n==null?void 0:n.size)),a=hs(),r=R(),l=ds(),u=T(()=>e.type||(n==null?void 0:n.type)||""),c=T(()=>{var p,g,m;return(m=(g=e.autoInsertSpace)!=null?g:(p=o.value)==null?void 0:p.autoInsertSpace)!=null?m:!1}),d=T(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=T(()=>{var p;const g=(p=l.default)==null?void 0:p.call(l);if(c.value&&(g==null?void 0:g.length)===1){const m=g[0];if((m==null?void 0:m.type)===sp){const b=m.children;return/^\p{Unified_Ideograph}{2}$/u.test(b.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:r,_props:d,shouldAddSpace:f,handleClick:p=>{if(a.value||e.loading){p.stopPropagation();return}e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",p)}}},Ll=["default","primary","success","warning","info","danger","text",""],Ck=["button","submit","reset"],Il=ye({size:En,disabled:Boolean,type:{type:String,values:Ll,default:""},icon:{type:mt},nativeType:{type:String,values:Ck,default:"button"},loading:Boolean,loadingIcon:{type:mt,default:()=>Mi},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:he([String,Object]),default:"button"}}),kk={click:e=>e instanceof MouseEvent};function xt(e,t){Ek(e)&&(e="100%");var n=Mk(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ba(e){return Math.min(1,Math.max(0,e))}function Ek(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Mk(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Eg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ya(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Go(e){return e.length===1?"0"+e:String(e)}function Tk(e,t,n){return{r:xt(e,255)*255,g:xt(t,255)*255,b:xt(n,255)*255}}function $d(e,t,n){e=xt(e,255),t=xt(t,255),n=xt(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),i=0,a=0,r=(o+s)/2;if(o===s)a=0,i=0;else{var l=o-s;switch(a=r>.5?l/(2-o-s):l/(o+s),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:r}}function Hr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pk(e,t,n){var o,s,i;if(e=xt(e,360),t=xt(t,100),n=xt(n,100),t===0)s=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,r=2*n-a;o=Hr(r,a,e+1/3),s=Hr(r,a,e),i=Hr(r,a,e-1/3)}return{r:o*255,g:s*255,b:i*255}}function Fd(e,t,n){e=xt(e,255),t=xt(t,255),n=xt(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),i=0,a=o,r=o-s,l=o===0?0:r/o;if(o===s)i=0;else{switch(o){case e:i=(t-n)/r+(t<n?6:0);break;case t:i=(n-e)/r+2;break;case n:i=(e-t)/r+4;break}i/=6}return{h:i,s:l,v:a}}function Ok(e,t,n){e=xt(e,360)*6,t=xt(t,100),n=xt(n,100);var o=Math.floor(e),s=e-o,i=n*(1-t),a=n*(1-s*t),r=n*(1-(1-s)*t),l=o%6,u=[n,a,i,i,r,n][l],c=[r,n,n,a,i,i][l],d=[i,i,r,n,n,a][l];return{r:u*255,g:c*255,b:d*255}}function Bd(e,t,n,o){var s=[Go(Math.round(e).toString(16)),Go(Math.round(t).toString(16)),Go(Math.round(n).toString(16))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function Ak(e,t,n,o,s){var i=[Go(Math.round(e).toString(16)),Go(Math.round(t).toString(16)),Go(Math.round(n).toString(16)),Go(Rk(o))];return s&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Rk(e){return Math.round(parseFloat(e)*255).toString(16)}function Dd(e){return Yt(e)/255}function Yt(e){return parseInt(e,16)}function Lk(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var $l={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ik(e){var t={r:0,g:0,b:0},n=1,o=null,s=null,i=null,a=!1,r=!1;return typeof e=="string"&&(e=Bk(e)),typeof e=="object"&&(jn(e.r)&&jn(e.g)&&jn(e.b)?(t=Tk(e.r,e.g,e.b),a=!0,r=String(e.r).substr(-1)==="%"?"prgb":"rgb"):jn(e.h)&&jn(e.s)&&jn(e.v)?(o=ya(e.s),s=ya(e.v),t=Ok(e.h,o,s),a=!0,r="hsv"):jn(e.h)&&jn(e.s)&&jn(e.l)&&(o=ya(e.s),i=ya(e.l),t=Pk(e.h,o,i),a=!0,r="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Eg(n),{ok:a,format:e.format||r,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var $k="[-\\+]?\\d+%?",Fk="[-\\+]?\\d*\\.\\d+%?",xo="(?:".concat(Fk,")|(?:").concat($k,")"),Wr="[\\s|\\(]+(".concat(xo,")[,|\\s]+(").concat(xo,")[,|\\s]+(").concat(xo,")\\s*\\)?"),jr="[\\s|\\(]+(".concat(xo,")[,|\\s]+(").concat(xo,")[,|\\s]+(").concat(xo,")[,|\\s]+(").concat(xo,")\\s*\\)?"),gn={CSS_UNIT:new RegExp(xo),rgb:new RegExp("rgb"+Wr),rgba:new RegExp("rgba"+jr),hsl:new RegExp("hsl"+Wr),hsla:new RegExp("hsla"+jr),hsv:new RegExp("hsv"+Wr),hsva:new RegExp("hsva"+jr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Bk(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($l[e])e=$l[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=gn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=gn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=gn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=gn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=gn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=gn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=gn.hex8.exec(e),n?{r:Yt(n[1]),g:Yt(n[2]),b:Yt(n[3]),a:Dd(n[4]),format:t?"name":"hex8"}:(n=gn.hex6.exec(e),n?{r:Yt(n[1]),g:Yt(n[2]),b:Yt(n[3]),format:t?"name":"hex"}:(n=gn.hex4.exec(e),n?{r:Yt(n[1]+n[1]),g:Yt(n[2]+n[2]),b:Yt(n[3]+n[3]),a:Dd(n[4]+n[4]),format:t?"name":"hex8"}:(n=gn.hex3.exec(e),n?{r:Yt(n[1]+n[1]),g:Yt(n[2]+n[2]),b:Yt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function jn(e){return Boolean(gn.CSS_UNIT.exec(String(e)))}var Dk=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=Lk(t)),this.originalInput=t;var s=Ik(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,s,i=t.r/255,a=t.g/255,r=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),.2126*n+.7152*o+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Eg(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Fd(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Fd(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$d(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=$d(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Bd(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Ak(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Bd(this.r,this.g,this.b,!1),n=0,o=Object.entries($l);n<o.length;n++){var s=o[n],i=s[0],a=s[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var o=!1,s=this.a<1&&this.a>=0,i=!n&&s&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ba(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ba(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ba(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ba(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),s=new e(t).toRgb(),i=n/100,a={r:(s.r-o.r)*i+o.r,g:(s.g-o.g)*i+o.g,b:(s.b-o.b)*i+o.b,a:(s.a-o.a)*i+o.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),s=360/n,i=[this];for(o.h=(o.h-(s*t>>1)+720)%360;--t;)o.h=(o.h+s)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,s=n.s,i=n.v,a=[],r=1/t;t--;)a.push(new e({h:o,s,v:i})),i=(i+r)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),s=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/s,g:(n.g*n.a+o.g*o.a*(1-n.a))/s,b:(n.b*n.a+o.b*o.a*(1-n.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,s=[this],i=360/t,a=1;a<t;a++)s.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function mo(e,t=20){return e.mix("#141414",t).toString()}function Nk(e){const t=hs(),n=pe("button");return T(()=>{let o={},s=e.color;if(s){const i=s.match(/var\((.*?)\)/);i&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new Dk(s),r=e.dark?a.tint(20).toString():mo(a,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?mo(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?mo(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":r,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":r}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?mo(a,90):a.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?mo(a,50):a.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?mo(a,80):a.tint(80).toString());else{const l=e.dark?mo(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":s,"text-color":u,"border-color":s,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":r,"active-border-color":r}),t.value){const c=e.dark?mo(a,50):a.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=c,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=c}}}return o})}const zk=K({name:"ElButton"}),Vk=K({...zk,props:Il,emits:kk,setup(e,{expose:t,emit:n}){const o=e,s=Nk(o),i=pe("button"),{_ref:a,_size:r,_type:l,_disabled:u,_props:c,shouldAddSpace:d,handleClick:f}=xk(o,n),h=T(()=>[i.b(),i.m(l.value),i.m(r.value),i.is("disabled",u.value),i.is("loading",o.loading),i.is("plain",o.plain),i.is("round",o.round),i.is("circle",o.circle),i.is("text",o.text),i.is("link",o.link),i.is("has-bg",o.bg)]);return t({ref:a,size:r,type:l,disabled:u,shouldAddSpace:d}),(p,g)=>(M(),G(Ue(p.tag),rn({ref_key:"_ref",ref:a},v(c),{class:v(h),style:v(s),onClick:v(f)}),{default:L(()=>[p.loading?(M(),D(Qe,{key:0},[p.$slots.loading?re(p.$slots,"loading",{key:0}):(M(),G(v(Le),{key:1,class:A(v(i).is("loading"))},{default:L(()=>[(M(),G(Ue(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(M(),G(v(Le),{key:1},{default:L(()=>[p.icon?(M(),G(Ue(p.icon),{key:0})):re(p.$slots,"icon",{key:1})]),_:3})):q("v-if",!0),p.$slots.default?(M(),D("span",{key:2,class:A({[v(i).em("text","expand")]:v(d)})},[re(p.$slots,"default")],2)):q("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Hk=me(Vk,[["__file","button.vue"]]);const Wk={size:Il.size,type:Il.type},jk=K({name:"ElButtonGroup"}),Uk=K({...jk,props:Wk,setup(e){const t=e;nt(kg,Ft({size:on(t,"size"),type:on(t,"type")}));const n=pe("button");return(o,s)=>(M(),D("div",{class:A(v(n).b("group"))},[re(o.$slots,"default")],2))}});var Mg=me(Uk,[["__file","button-group.vue"]]);const xn=ct(Hk,{ButtonGroup:Mg}),Kk=dn(Mg);var qk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const yo=new Map;if(tt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of yo.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function Nd(e,t){let n=[];return ze(t.arg)?n=t.arg:In(t.arg)&&n.push(t.arg),function(o,s){const i=t.instance.popperRef,a=o.target,r=s==null?void 0:s.target,l=!t||!t.instance,u=!a||!r,c=e.contains(a)||e.contains(r),d=e===a,f=n.length&&n.some(p=>p==null?void 0:p.contains(a))||n.length&&n.includes(r),h=i&&(i.contains(a)||i.contains(r));l||u||c||d||f||h||t.value(o,s)}}const Xu={beforeMount(e,t){yo.has(e)||yo.set(e,[]),yo.get(e).push({documentHandler:Nd(e,t),bindingFn:t.value})},updated(e,t){yo.has(e)||yo.set(e,[]);const n=yo.get(e),o=n.findIndex(i=>i.bindingFn===t.oldValue),s={documentHandler:Nd(e,t),bindingFn:t.value};o>=0?n.splice(o,1,s):n.push(s)},unmounted(e){yo.delete(e)}},Fl="_trap-focus-children",Xo=[],zd=e=>{if(Xo.length===0)return;const t=Xo[Xo.length-1][Fl];if(t.length>0&&e.code===rt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],s=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),s&&!n&&(e.preventDefault(),t[0].focus())}},Gk={beforeMount(e){e[Fl]=Lc(e),Xo.push(e),Xo.length<=1&&document.addEventListener("keydown",zd)},updated(e){Me(()=>{e[Fl]=Lc(e)})},unmounted(){Xo.shift(),Xo.length===0&&document.removeEventListener("keydown",zd)}};var Vd=!1,Ko,Bl,Dl,Va,Ha,Tg,Wa,Nl,zl,Vl,Pg,Hl,Wl,Og,Ag;function Dt(){if(!Vd){Vd=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Hl=/\b(iPhone|iP[ao]d)/.exec(e),Wl=/\b(iP[ao]d)/.exec(e),Vl=/Android/i.exec(e),Og=/FBAN\/\w+;/i.exec(e),Ag=/Mobile/i.exec(e),Pg=!!/Win64/.exec(e),t){Ko=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ko&&document&&document.documentMode&&(Ko=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);Tg=o?parseFloat(o[1])+4:Ko,Bl=t[2]?parseFloat(t[2]):NaN,Dl=t[3]?parseFloat(t[3]):NaN,Va=t[4]?parseFloat(t[4]):NaN,Va?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ha=t&&t[1]?parseFloat(t[1]):NaN):Ha=NaN}else Ko=Bl=Dl=Ha=Va=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Wa=s?parseFloat(s[1].replace("_",".")):!0}else Wa=!1;Nl=!!n[2],zl=!!n[3]}else Wa=Nl=zl=!1}}var jl={ie:function(){return Dt()||Ko},ieCompatibilityMode:function(){return Dt()||Tg>Ko},ie64:function(){return jl.ie()&&Pg},firefox:function(){return Dt()||Bl},opera:function(){return Dt()||Dl},webkit:function(){return Dt()||Va},safari:function(){return jl.webkit()},chrome:function(){return Dt()||Ha},windows:function(){return Dt()||Nl},osx:function(){return Dt()||Wa},linux:function(){return Dt()||zl},iphone:function(){return Dt()||Hl},mobile:function(){return Dt()||Hl||Wl||Vl||Ag},nativeApp:function(){return Dt()||Og},android:function(){return Dt()||Vl},ipad:function(){return Dt()||Wl}},Xk=jl,_a=!!(typeof window<"u"&&window.document&&window.document.createElement),Jk={canUseDOM:_a,canUseWorkers:typeof Worker<"u",canUseEventListeners:_a&&!!(window.addEventListener||window.attachEvent),canUseViewport:_a&&!!window.screen,isInWorker:!_a},Rg=Jk,Lg;Rg.canUseDOM&&(Lg=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Qk(e,t){if(!Rg.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o=typeof s[n]=="function"}return!o&&Lg&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var Zk=Qk,Hd=10,Wd=40,jd=800;function Ig(e){var t=0,n=0,o=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*Hd,s=n*Hd,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||s)&&e.deltaMode&&(e.deltaMode==1?(o*=Wd,s*=Wd):(o*=jd,s*=jd)),o&&!t&&(t=o<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:s}}Ig.getEventType=function(){return Xk.firefox()?"DOMMouseScroll":Zk("wheel")?"wheel":"mousewheel"};var eE=Ig;/**
    2121* Checks if an event is supported in the current execution environment.
    2222*
     
    3131* @internal
    3232* @license Modernizr 3.0.0pre (Custom Build) | MIT
    33 */const _k=function(e,t){if(e&&e.addEventListener){const n=function(o){const s=yk(o);t&&Reflect.apply(t,this,[o,s])};e.addEventListener("wheel",n,{passive:!0})}},wk={beforeMount(e,t){_k(e,t.value)}},vg={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:ao,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},bg={[Je]:e=>st(e)||He(e)||Nt(e),change:e=>st(e)||He(e)||Nt(e)},Ks=Symbol("checkboxGroupContextKey"),xk=({model:e,isChecked:t})=>{const n=we(Ks,void 0),o=P(()=>{var i,r;const a=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(r=n==null?void 0:n.min)==null?void 0:r.value;return!Po(a)&&e.value.length>=a&&!t.value||!Po(l)&&e.value.length<=l&&t.value});return{isDisabled:fs(P(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},Sk=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:s,isLabeledByFormItem:i})=>{const r=we(Ks,void 0),{formItem:a}=co(),{emit:l}=De();function c(g){var h,v;return g===e.trueLabel||g===!0?(h=e.trueLabel)!=null?h:!0:(v=e.falseLabel)!=null?v:!1}function u(g,h){l("change",c(g),h)}function d(g){if(n.value)return;const h=g.target;l("change",c(h.checked),g)}async function f(g){n.value||!o.value&&!s.value&&i.value&&(g.composedPath().some(m=>m.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await xe(),u(t.value,g)))}const p=P(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return se(()=>e.modelValue,()=>{p.value&&(a==null||a.validate("change").catch(g=>void 0))}),{handleChange:d,onClickRoot:f}},Ck=e=>{const t=A(!1),{emit:n}=De(),o=we(Ks,void 0),s=P(()=>Po(o)===!1),i=A(!1);return{model:P({get(){var a,l;return s.value?(a=o==null?void 0:o.modelValue)==null?void 0:a.value:(l=e.modelValue)!=null?l:t.value},set(a){var l,c;s.value&&vn(a)?(i.value=((l=o==null?void 0:o.max)==null?void 0:l.value)!==void 0&&a.length>(o==null?void 0:o.max.value),i.value===!1&&((c=o==null?void 0:o.changeEvent)==null||c.call(o,a))):(n(Je,a),t.value=a)}}),isGroup:s,isLimitExceeded:i}},kk=(e,t,{model:n})=>{const o=we(Ks,void 0),s=A(!1),i=P(()=>{const c=n.value;return Nt(c)?c:vn(c)?wn(e.label)?c.map(ks).some(u=>oa(u,e.label)):c.map(ks).includes(e.label):c!=null?c===e.trueLabel:!!c}),r=cn(P(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value}),{prop:!0}),a=cn(P(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value})),l=P(()=>!!(t.default||e.label));return{checkboxButtonSize:r,isChecked:i,isFocused:s,checkboxSize:a,hasOwnLabel:l}},Ek=(e,{model:t})=>{function n(){vn(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},yg=(e,t)=>{const{formItem:n}=co(),{model:o,isGroup:s,isLimitExceeded:i}=Ck(e),{isFocused:r,isChecked:a,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u}=kk(e,t,{model:o}),{isDisabled:d}=xk({model:o,isChecked:a}),{inputId:f,isLabeledByFormItem:p}=Us(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:s}),{handleChange:g,onClickRoot:h}=Sk(e,{model:o,isLimitExceeded:i,hasOwnLabel:u,isDisabled:d,isLabeledByFormItem:p});return Ek(e,{model:o}),{inputId:f,isLabeledByFormItem:p,isChecked:a,isDisabled:d,isFocused:r,checkboxButtonSize:l,checkboxSize:c,hasOwnLabel:u,model:o,handleChange:g,onClickRoot:h}},Mk=["tabindex","role","aria-checked"],Pk=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Tk=["id","aria-hidden","disabled","value","name","tabindex"],Ok=Y({name:"ElCheckbox"}),Ak=Y({...Ok,props:vg,emits:bg,setup(e){const t=e,n=Hs(),{inputId:o,isLabeledByFormItem:s,isChecked:i,isDisabled:r,isFocused:a,checkboxSize:l,hasOwnLabel:c,model:u,handleChange:d,onClickRoot:f}=yg(t,n),p=he("checkbox"),g=P(()=>[p.b(),p.m(l.value),p.is("disabled",r.value),p.is("bordered",t.border),p.is("checked",i.value)]),h=P(()=>[p.e("input"),p.is("disabled",r.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",a.value)]);return(v,m)=>(M(),q(Ke(!b(c)&&b(s)?"span":"label"),{class:R(b(g)),"aria-controls":v.indeterminate?v.controls:null,onClick:b(f)},{default:F(()=>[E("span",{class:R(b(h)),tabindex:v.indeterminate?0:void 0,role:v.indeterminate?"checkbox":void 0,"aria-checked":v.indeterminate?"mixed":void 0},[v.trueLabel||v.falseLabel?We((M(),N("input",{key:0,id:b(o),"onUpdate:modelValue":m[0]||(m[0]=y=>Eo(u)?u.value=y:null),class:R(b(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",name:v.name,tabindex:v.tabindex,disabled:b(r),"true-value":v.trueLabel,"false-value":v.falseLabel,onChange:m[1]||(m[1]=(...y)=>b(d)&&b(d)(...y)),onFocus:m[2]||(m[2]=y=>a.value=!0),onBlur:m[3]||(m[3]=y=>a.value=!1),onClick:m[4]||(m[4]=et(()=>{},["stop"]))},null,42,Pk)),[[Jr,b(u)]]):We((M(),N("input",{key:1,id:b(o),"onUpdate:modelValue":m[5]||(m[5]=y=>Eo(u)?u.value=y:null),class:R(b(p).e("original")),type:"checkbox","aria-hidden":v.indeterminate?"true":"false",disabled:b(r),value:v.label,name:v.name,tabindex:v.tabindex,onChange:m[6]||(m[6]=(...y)=>b(d)&&b(d)(...y)),onFocus:m[7]||(m[7]=y=>a.value=!0),onBlur:m[8]||(m[8]=y=>a.value=!1),onClick:m[9]||(m[9]=et(()=>{},["stop"]))},null,42,Tk)),[[Jr,b(u)]]),E("span",{class:R(b(p).e("inner"))},null,2)],10,Mk),b(c)?(M(),N("span",{key:0,class:R(b(p).e("label"))},[me(v.$slots,"default"),v.$slots.default?X("v-if",!0):(M(),N(Ge,{key:0},[fe(ce(v.label),1)],64))],2)):X("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Rk=ve(Ak,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Lk=["name","tabindex","disabled","true-value","false-value"],$k=["name","tabindex","disabled","value"],Ik=Y({name:"ElCheckboxButton"}),Fk=Y({...Ik,props:vg,emits:bg,setup(e){const t=e,n=Hs(),{isFocused:o,isChecked:s,isDisabled:i,checkboxButtonSize:r,model:a,handleChange:l}=yg(t,n),c=we(Ks,void 0),u=he("checkbox"),d=P(()=>{var p,g,h,v;const m=(g=(p=c==null?void 0:c.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:m,borderColor:m,color:(v=(h=c==null?void 0:c.textColor)==null?void 0:h.value)!=null?v:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),f=P(()=>[u.b("button"),u.bm("button",r.value),u.is("disabled",i.value),u.is("checked",s.value),u.is("focus",o.value)]);return(p,g)=>(M(),N("label",{class:R(b(f))},[p.trueLabel||p.falseLabel?We((M(),N("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=h=>Eo(a)?a.value=h:null),class:R(b(u).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:b(i),"true-value":p.trueLabel,"false-value":p.falseLabel,onChange:g[1]||(g[1]=(...h)=>b(l)&&b(l)(...h)),onFocus:g[2]||(g[2]=h=>o.value=!0),onBlur:g[3]||(g[3]=h=>o.value=!1),onClick:g[4]||(g[4]=et(()=>{},["stop"]))},null,42,Lk)),[[Jr,b(a)]]):We((M(),N("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=h=>Eo(a)?a.value=h:null),class:R(b(u).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:b(i),value:p.label,onChange:g[6]||(g[6]=(...h)=>b(l)&&b(l)(...h)),onFocus:g[7]||(g[7]=h=>o.value=!0),onBlur:g[8]||(g[8]=h=>o.value=!1),onClick:g[9]||(g[9]=et(()=>{},["stop"]))},null,42,$k)),[[Jr,b(a)]]),p.$slots.default||p.label?(M(),N("span",{key:2,class:R(b(u).be("button","inner")),style:Te(b(s)?b(d):void 0)},[me(p.$slots,"default",{},()=>[fe(ce(p.label),1)])],6)):X("v-if",!0)],2))}});var _g=ve(Fk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Dk=ke({modelValue:{type:ye(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ao,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Bk={[Je]:e=>vn(e),change:e=>vn(e)},Nk=Y({name:"ElCheckboxGroup"}),zk=Y({...Nk,props:Dk,emits:Bk,setup(e,{emit:t}){const n=e,o=he("checkbox"),{formItem:s}=co(),{inputId:i,isLabeledByFormItem:r}=Us(n,{formItemContext:s}),a=async c=>{t(Je,c),await xe(),t("change",c)},l=P({get(){return n.modelValue},set(c){a(c)}});return rt(Ks,{...Vw(lo(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),se(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(c=>void 0))}),(c,u)=>{var d;return M(),q(Ke(c.tag),{id:b(i),class:R(b(o).b("group")),role:"group","aria-label":b(r)?void 0:c.label||"checkbox-group","aria-labelledby":b(r)?(d=b(s))==null?void 0:d.labelId:void 0},{default:F(()=>[me(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var wg=ve(zk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ls=dt(Rk,{CheckboxButton:_g,CheckboxGroup:wg});un(_g);un(wg);const xg=ke({size:ao,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Vk=ke({...xg,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Sg={[Je]:e=>st(e)||He(e)||Nt(e),[io]:e=>st(e)||He(e)||Nt(e)},Cg=Symbol("radioGroupKey"),kg=(e,t)=>{const n=A(),o=we(Cg,void 0),s=P(()=>!!o),i=P({get(){return s.value?o.modelValue:e.modelValue},set(u){s.value?o.changeEvent(u):t&&t(Je,u),n.value.checked=e.modelValue===e.label}}),r=cn(P(()=>o==null?void 0:o.size)),a=fs(P(()=>o==null?void 0:o.disabled)),l=A(!1),c=P(()=>a.value||s.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:s,radioGroup:o,focus:l,size:r,disabled:a,tabIndex:c,modelValue:i}},Hk=["value","name","disabled"],Wk=Y({name:"ElRadio"}),jk=Y({...Wk,props:Vk,emits:Sg,setup(e,{emit:t}){const n=e,o=he("radio"),{radioRef:s,radioGroup:i,focus:r,size:a,disabled:l,modelValue:c}=kg(n,t);function u(){xe(()=>t("change",c.value))}return(d,f)=>{var p;return M(),N("label",{class:R([b(o).b(),b(o).is("disabled",b(l)),b(o).is("focus",b(r)),b(o).is("bordered",d.border),b(o).is("checked",b(c)===d.label),b(o).m(b(a))])},[E("span",{class:R([b(o).e("input"),b(o).is("disabled",b(l)),b(o).is("checked",b(c)===d.label)])},[We(E("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":f[0]||(f[0]=g=>Eo(c)?c.value=g:null),class:R(b(o).e("original")),value:d.label,name:d.name||((p=b(i))==null?void 0:p.name),disabled:b(l),type:"radio",onFocus:f[1]||(f[1]=g=>r.value=!0),onBlur:f[2]||(f[2]=g=>r.value=!1),onChange:u,onClick:f[3]||(f[3]=et(()=>{},["stop"]))},null,42,Hk),[[Kh,b(c)]]),E("span",{class:R(b(o).e("inner"))},null,2)],2),E("span",{class:R(b(o).e("label")),onKeydown:f[4]||(f[4]=et(()=>{},["stop"]))},[me(d.$slots,"default",{},()=>[fe(ce(d.label),1)])],34)],2)}}});var Uk=ve(jk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Kk=ke({...xg,name:{type:String,default:""}}),qk=["value","name","disabled"],Yk=Y({name:"ElRadioButton"}),Gk=Y({...Yk,props:Kk,setup(e){const t=e,n=he("radio"),{radioRef:o,focus:s,size:i,disabled:r,modelValue:a,radioGroup:l}=kg(t),c=P(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(u,d)=>{var f;return M(),N("label",{class:R([b(n).b("button"),b(n).is("active",b(a)===u.label),b(n).is("disabled",b(r)),b(n).is("focus",b(s)),b(n).bm("button",b(i))])},[We(E("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":d[0]||(d[0]=p=>Eo(a)?a.value=p:null),class:R(b(n).be("button","original-radio")),value:u.label,type:"radio",name:u.name||((f=b(l))==null?void 0:f.name),disabled:b(r),onFocus:d[1]||(d[1]=p=>s.value=!0),onBlur:d[2]||(d[2]=p=>s.value=!1),onClick:d[3]||(d[3]=et(()=>{},["stop"]))},null,42,qk),[[Kh,b(a)]]),E("span",{class:R(b(n).be("button","inner")),style:Te(b(a)===u.label?b(c):{}),onKeydown:d[4]||(d[4]=et(()=>{},["stop"]))},[me(u.$slots,"default",{},()=>[fe(ce(u.label),1)])],38)],2)}}});var Eg=ve(Gk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Xk=ke({id:{type:String,default:void 0},size:ao,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Qk=Sg,Jk=["id","aria-label","aria-labelledby"],Zk=Y({name:"ElRadioGroup"}),eE=Y({...Zk,props:Xk,emits:Qk,setup(e,{emit:t}){const n=e,o=he("radio"),s=Rs(),i=A(),{formItem:r}=co(),{inputId:a,isLabeledByFormItem:l}=Us(n,{formItemContext:r}),c=d=>{t(Je,d),xe(()=>t("change",d))};Be(()=>{const d=i.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(p=>p.checked)&&f&&(f.tabIndex=0)});const u=P(()=>n.name||s.value);return rt(Cg,Ht({...lo(n),changeEvent:c,name:u})),se(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(d=>void 0))}),(d,f)=>(M(),N("div",{id:b(a),ref_key:"radioGroupRef",ref:i,class:R(b(o).b("group")),role:"radiogroup","aria-label":b(l)?void 0:d.label||"radio-group","aria-labelledby":b(l)?b(r).labelId:void 0},[me(d.$slots,"default")],10,Jk))}});var Mg=ve(eE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Pg=dt(Uk,{RadioButton:Eg,RadioGroup:Mg}),Tg=un(Mg);un(Eg);const Og=ke({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Vs,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tE={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},nE=Y({name:"ElTag"}),oE=Y({...nE,props:Og,emits:tE,setup(e,{emit:t}){const n=e,o=cn(),s=he("tag"),i=P(()=>{const{type:l,hit:c,effect:u,closable:d,round:f}=n;return[s.b(),s.is("closable",d),s.m(l),s.m(o.value),s.m(u),s.is("hit",c),s.is("round",f)]}),r=l=>{t("close",l)},a=l=>{t("click",l)};return(l,c)=>l.disableTransitions?(M(),N("span",{key:0,class:R(b(i)),style:Te({backgroundColor:l.color}),onClick:a},[E("span",{class:R(b(s).e("content"))},[me(l.$slots,"default")],2),l.closable?(M(),q(b($e),{key:0,class:R(b(s).e("close")),onClick:et(r,["stop"])},{default:F(()=>[L(b(Mi))]),_:1},8,["class","onClick"])):X("v-if",!0)],6)):(M(),q(Mo,{key:1,name:`${b(s).namespace.value}-zoom-in-center`,appear:""},{default:F(()=>[E("span",{class:R(b(i)),style:Te({backgroundColor:l.color}),onClick:a},[E("span",{class:R(b(s).e("content"))},[me(l.$slots,"default")],2),l.closable?(M(),q(b($e),{key:0,class:R(b(s).e("close")),onClick:et(r,["stop"])},{default:F(()=>[L(b(Mi))]),_:1},8,["class","onClick"])):X("v-if",!0)],6)]),_:3},8,["name"]))}});var sE=ve(oE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const iE=dt(sE),Ag=Symbol("rowContextKey"),rE=["start","center","end","space-around","space-between","space-evenly"],aE=["top","middle","bottom"],lE=ke({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:rE,default:"start"},align:{type:String,values:aE}}),cE=Y({name:"ElRow"}),uE=Y({...cE,props:lE,setup(e){const t=e,n=he("row"),o=P(()=>t.gutter);rt(Ag,{gutter:o});const s=P(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),i=P(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,a)=>(M(),q(Ke(r.tag),{class:R(b(i)),style:Te(b(s))},{default:F(()=>[me(r.$slots,"default")]),_:3},8,["class","style"]))}});var dE=ve(uE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Vc=dt(dE),fE=ke({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ye([Number,Object]),default:()=>pn({})},sm:{type:ye([Number,Object]),default:()=>pn({})},md:{type:ye([Number,Object]),default:()=>pn({})},lg:{type:ye([Number,Object]),default:()=>pn({})},xl:{type:ye([Number,Object]),default:()=>pn({})}}),hE=Y({name:"ElCol"}),pE=Y({...hE,props:fE,setup(e){const t=e,{gutter:n}=we(Ag,{gutter:P(()=>0)}),o=he("col"),s=P(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),i=P(()=>{const r=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];He(u)&&(c==="span"?r.push(o.b(`${t[c]}`)):u>0&&r.push(o.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{He(t[c])?r.push(o.b(`${c}-${t[c]}`)):wn(t[c])&&Object.entries(t[c]).forEach(([u,d])=>{r.push(u!=="span"?o.b(`${c}-${u}-${d}`):o.b(`${c}-${d}`))})}),n.value&&r.push(o.is("guttered")),[o.b(),r]});return(r,a)=>(M(),q(Ke(r.tag),{class:R(b(i)),style:Te(b(s))},{default:F(()=>[me(r.$slots,"default")]),_:3},8,["class","style"]))}});var gE=ve(pE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Rg=dt(gE),mE=ke({color:{type:ye(Object),required:!0},vertical:{type:Boolean,default:!1}});let Va=!1;function Ii(e,t){if(!ot)return;const n=function(i){var r;(r=t.drag)==null||r.call(t,i)},o=function(i){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,Va=!1,(r=t.end)==null||r.call(t,i)},s=function(i){var r;Va||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchend",o),Va=!0,(r=t.start)==null||r.call(t,i))};e.addEventListener("mousedown",s),e.addEventListener("touchstart",s)}const vE=e=>{const t=De(),n=bn(),o=bn();function s(r){r.target!==n.value&&i(r)}function i(r){if(!o.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:c,clientY:u}=hc(r);if(e.vertical){let d=u-l.top;d=Math.max(n.value.offsetHeight/2,d),d=Math.min(d,l.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((d-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let d=c-l.left;d=Math.max(n.value.offsetWidth/2,d),d=Math.min(d,l.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((d-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:o,handleDrag:i,handleClick:s}},bE=(e,{bar:t,thumb:n,handleDrag:o})=>{const s=De(),i=he("color-alpha-slider"),r=A(0),a=A(0),l=A();function c(){if(!n.value||e.vertical)return 0;const y=s.vnode.el,w=e.color.get("alpha");return y?Math.round(w*(y.offsetWidth-n.value.offsetWidth/2)/100):0}function u(){if(!n.value)return 0;const y=s.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return y?Math.round(w*(y.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:y,g:w,b:_}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${w}, ${_}, 0) 0%, rgba(${y}, ${w}, ${_}, 1) 100%)`}return""}function f(){r.value=c(),a.value=u(),l.value=d()}Be(()=>{if(!t.value||!n.value)return;const y={drag:w=>{o(w)},end:w=>{o(w)}};Ii(t.value,y),Ii(n.value,y),f()}),se(()=>e.color.get("alpha"),()=>f()),se(()=>e.color.value,()=>f());const p=P(()=>[i.b(),i.is("vertical",e.vertical)]),g=P(()=>i.e("bar")),h=P(()=>i.e("thumb")),v=P(()=>({background:l.value})),m=P(()=>({left:$n(r.value),top:$n(a.value)}));return{rootKls:p,barKls:g,barStyle:v,thumbKls:h,thumbStyle:m,update:f}},yE="ElColorAlphaSlider",_E=Y({name:yE}),wE=Y({..._E,props:mE,setup(e,{expose:t}){const n=e,{bar:o,thumb:s,handleDrag:i,handleClick:r}=vE(n),{rootKls:a,barKls:l,barStyle:c,thumbKls:u,thumbStyle:d,update:f}=bE(n,{bar:o,thumb:s,handleDrag:i});return t({update:f,bar:o,thumb:s}),(p,g)=>(M(),N("div",{class:R(b(a))},[E("div",{ref_key:"bar",ref:o,class:R(b(l)),style:Te(b(c)),onClick:g[0]||(g[0]=(...h)=>b(r)&&b(r)(...h))},null,6),E("div",{ref_key:"thumb",ref:s,class:R(b(u)),style:Te(b(d))},null,6)],2))}});var xE=ve(wE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const SE=Y({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=he("color-hue-slider"),n=De(),o=A(),s=A(),i=A(0),r=A(0),a=P(()=>e.color.get("hue"));se(()=>a.value,()=>{f()});function l(p){p.target!==o.value&&c(p)}function c(p){if(!s.value||!o.value)return;const h=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:m}=hc(p);let y;if(e.vertical){let w=m-h.top;w=Math.min(w,h.height-o.value.offsetHeight/2),w=Math.max(o.value.offsetHeight/2,w),y=Math.round((w-o.value.offsetHeight/2)/(h.height-o.value.offsetHeight)*360)}else{let w=v-h.left;w=Math.min(w,h.width-o.value.offsetWidth/2),w=Math.max(o.value.offsetWidth/2,w),y=Math.round((w-o.value.offsetWidth/2)/(h.width-o.value.offsetWidth)*360)}e.color.set("hue",y)}function u(){if(!o.value)return 0;const p=n.vnode.el;if(e.vertical)return 0;const g=e.color.get("hue");return p?Math.round(g*(p.offsetWidth-o.value.offsetWidth/2)/360):0}function d(){if(!o.value)return 0;const p=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("hue");return p?Math.round(g*(p.offsetHeight-o.value.offsetHeight/2)/360):0}function f(){i.value=u(),r.value=d()}return Be(()=>{if(!s.value||!o.value)return;const p={drag:g=>{c(g)},end:g=>{c(g)}};Ii(s.value,p),Ii(o.value,p),f()}),{bar:s,thumb:o,thumbLeft:i,thumbTop:r,hueValue:a,handleClick:l,update:f,ns:t}}});function CE(e,t,n,o,s,i){return M(),N("div",{class:R([e.ns.b(),e.ns.is("vertical",e.vertical)])},[E("div",{ref:"bar",class:R(e.ns.e("bar")),onClick:t[0]||(t[0]=(...r)=>e.handleClick&&e.handleClick(...r))},null,2),E("div",{ref:"thumb",class:R(e.ns.e("thumb")),style:Te({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var kE=ve(SE,[["render",CE],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const EE=ke({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ao,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ye(Array)},validateEvent:{type:Boolean,default:!0}}),ME={[Je]:e=>st(e)||es(e),[io]:e=>st(e)||es(e),activeChange:e=>st(e)||es(e)},Lg=Symbol("colorPickerContextKey"),Ld=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},PE=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},TE=function(e){return typeof e=="string"&&e.includes("%")},xs=function(e,t){PE(e)&&(e="100%");const n=TE(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},$d={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Nr=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${$d[t]||t}${$d[n]||n}`},Id=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Nr(e)}${Nr(t)}${Nr(n)}`},Ha={A:10,B:11,C:12,D:13,E:14,F:15},No=function(e){return e.length===2?(Ha[e[0].toUpperCase()]||+e[0])*16+(Ha[e[1].toUpperCase()]||+e[1]):Ha[e[1].toUpperCase()]||+e[1]},OE=function(e,t,n){t=t/100,n=n/100;let o=t;const s=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=s<=1?s:2-s;const i=(n+t)/2,r=n===0?2*o/(s+o):2*t/(n+t);return{h:e,s:r*100,v:i*100}},Fd=(e,t,n)=>{e=xs(e,255),t=xs(t,255),n=xs(n,255);const o=Math.max(e,t,n),s=Math.min(e,t,n);let i;const r=o,a=o-s,l=o===0?0:a/o;if(o===s)i=0;else{switch(o){case e:{i=(t-n)/a+(t<n?6:0);break}case t:{i=(n-e)/a+2;break}case n:{i=(e-t)/a+4;break}}i/=6}return{h:i*360,s:l*100,v:r*100}},Zs=function(e,t,n){e=xs(e,360)*6,t=xs(t,100),n=xs(n,100);const o=Math.floor(e),s=e-o,i=n*(1-t),r=n*(1-s*t),a=n*(1-(1-s)*t),l=o%6,c=[n,r,i,i,a,n][l],u=[a,n,n,r,i,i][l],d=[i,i,a,n,n,r][l];return{r:Math.round(c*255),g:Math.round(u*255),b:Math.round(d*255)}};class vi{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)so(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const o in t)so(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Zs(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(o,s,i)=>{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,s)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:i,v:r}=OE(o[0],o[1],o[2]);n(s,i,r)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:i,v:r}=Fd(o[0],o[1],o[2]);n(s,i,r)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let s,i,r;o.length===3?(s=No(o[0]+o[0]),i=No(o[1]+o[1]),r=No(o[2]+o[2])):(o.length===6||o.length===8)&&(s=No(o.slice(0,2)),i=No(o.slice(2,4)),r=No(o.slice(4,6))),o.length===8?this._alpha=No(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:a,s:l,v:c}=Fd(s,i,r);n(a,l,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:s,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const r=Ld(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(r[1]*100)}%, ${Math.round(r[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Id(Zs(t,n,o))}${Nr(s*255/100)}`;break}default:{const{r,g:a,b:l}=Zs(t,n,o);this.value=`rgba(${r}, ${a}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const r=Ld(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(r[1]*100)}%, ${Math.round(r[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r,g:a,b:l}=Zs(t,n,o);this.value=`rgb(${r}, ${a}, ${l})`;break}default:this.value=Id(Zs(t,n,o))}}}const AE=Y({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=he("color-predefine"),{currentColor:n}=we(Lg),o=A(i(e.colors,e.color));se(()=>n.value,r=>{const a=new vi;a.fromString(r),o.value.forEach(l=>{l.selected=a.compare(l)})}),Co(()=>{o.value=i(e.colors,e.color)});function s(r){e.color.fromString(e.colors[r])}function i(r,a){return r.map(l=>{const c=new vi;return c.enableAlpha=!0,c.format="rgba",c.fromString(l),c.selected=c.value===a.value,c})}return{rgbaColors:o,handleSelect:s,ns:t}}}),RE=["onClick"];function LE(e,t,n,o,s,i){return M(),N("div",{class:R(e.ns.b())},[E("div",{class:R(e.ns.e("colors"))},[(M(!0),N(Ge,null,Lt(e.rgbaColors,(r,a)=>(M(),N("div",{key:e.colors[a],class:R([e.ns.e("color-selector"),e.ns.is("alpha",r._alpha<100),{selected:r.selected}]),onClick:l=>e.handleSelect(a)},[E("div",{style:Te({backgroundColor:r.value})},null,4)],10,RE))),128))],2)],2)}var $E=ve(AE,[["render",LE],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const IE=Y({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=he("color-svpanel"),n=De(),o=A(0),s=A(0),i=A("hsl(0, 100%, 50%)"),r=P(()=>{const c=e.color.get("hue"),u=e.color.get("value");return{hue:c,value:u}});function a(){const c=e.color.get("saturation"),u=e.color.get("value"),d=n.vnode.el,{clientWidth:f,clientHeight:p}=d;s.value=c*f/100,o.value=(100-u)*p/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(c){const d=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:p}=hc(c);let g=f-d.left,h=p-d.top;g=Math.max(0,g),g=Math.min(g,d.width),h=Math.max(0,h),h=Math.min(h,d.height),s.value=g,o.value=h,e.color.set({saturation:g/d.width*100,value:100-h/d.height*100})}return se(()=>r.value,()=>{a()}),Be(()=>{Ii(n.vnode.el,{drag:c=>{l(c)},end:c=>{l(c)}}),a()}),{cursorTop:o,cursorLeft:s,background:i,colorValue:r,handleDrag:l,update:a,ns:t}}}),FE=E("div",null,null,-1),DE=[FE];function BE(e,t,n,o,s,i){return M(),N("div",{class:R(e.ns.b()),style:Te({backgroundColor:e.background})},[E("div",{class:R(e.ns.e("white"))},null,2),E("div",{class:R(e.ns.e("black"))},null,2),E("div",{class:R(e.ns.e("cursor")),style:Te({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},DE,6)],6)}var NE=ve(IE,[["render",BE],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const zE=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],VE=Y({name:"ElColorPicker"}),HE=Y({...VE,props:EE,emits:ME,setup(e,{expose:t,emit:n}){const o=e,{t:s}=Wt(),i=he("color"),{formItem:r}=co(),a=cn(),l=fs(),{inputId:c,isLabeledByFormItem:u}=Us(o,{formItemContext:r}),d=A(),f=A(),p=A(),g=A();let h=!0;const v=Ht(new vi({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),m=A(!1),y=A(!1),w=A(""),_=P(()=>!o.modelValue&&!y.value?"transparent":T(v,o.showAlpha)),x=P(()=>!o.modelValue&&!y.value?"":v.value),S=P(()=>u.value?void 0:o.label||s("el.colorpicker.defaultLabel")),C=P(()=>u.value?r==null?void 0:r.labelId:void 0),k=P(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",a.value)]);function T(I,Z){if(!(I instanceof vi))throw new TypeError("color should be instance of _color Class");const{r:de,g:J,b:G}=I.toRgb();return Z?`rgba(${de}, ${J}, ${G}, ${I.get("alpha")/100})`:`rgb(${de}, ${J}, ${G})`}function B(I){m.value=I}const $=rs(B,100);function D(){l.value||B(!0)}function W(){$(!1),ne()}function ne(){xe(()=>{o.modelValue?v.fromString(o.modelValue):(v.value="",xe(()=>{y.value=!1}))})}function j(){l.value||$(!m.value)}function Q(){v.fromString(w.value)}function V(){const I=v.value;n(Je,I),n("change",I),o.validateEvent&&(r==null||r.validate("change").catch(Z=>void 0)),$(!1),xe(()=>{const Z=new vi({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});v.compare(Z)||ne()})}function le(){$(!1),n(Je,null),n("change",null),o.modelValue!==null&&o.validateEvent&&(r==null||r.validate("change").catch(I=>void 0)),ne()}return Be(()=>{o.modelValue&&(w.value=x.value)}),se(()=>o.modelValue,I=>{I?I&&I!==v.value&&(h=!1,v.fromString(I)):y.value=!1}),se(()=>x.value,I=>{w.value=I,h&&n("activeChange",I),h=!0}),se(()=>v.value,()=>{!o.modelValue&&!y.value&&(y.value=!0)}),se(()=>m.value,()=>{xe(()=>{var I,Z,de;(I=d.value)==null||I.update(),(Z=f.value)==null||Z.update(),(de=p.value)==null||de.update()})}),rt(Lg,{currentColor:x}),t({color:v,show:D,hide:W}),(I,Z)=>(M(),q(b(Io),{ref_key:"popper",ref:g,visible:m.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[b(i).be("picker","panel"),b(i).b("dropdown"),I.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${b(i).namespace.value}-zoom-in-top`,persistent:""},{content:F(()=>[We((M(),N("div",null,[E("div",{class:R(b(i).be("dropdown","main-wrapper"))},[L(kE,{ref_key:"hue",ref:d,class:"hue-slider",color:b(v),vertical:""},null,8,["color"]),L(NE,{ref_key:"sv",ref:f,color:b(v)},null,8,["color"])],2),I.showAlpha?(M(),q(xE,{key:0,ref_key:"alpha",ref:p,color:b(v)},null,8,["color"])):X("v-if",!0),I.predefine?(M(),q($E,{key:1,ref:"predefine",color:b(v),colors:I.predefine},null,8,["color","colors"])):X("v-if",!0),E("div",{class:R(b(i).be("dropdown","btns"))},[E("span",{class:R(b(i).be("dropdown","value"))},[L(b($o),{modelValue:w.value,"onUpdate:modelValue":Z[0]||(Z[0]=de=>w.value=de),"validate-event":!1,size:"small",onKeyup:ft(Q,["enter"]),onBlur:Q},null,8,["modelValue","onKeyup"])],2),L(b(Dn),{class:R(b(i).be("dropdown","link-btn")),text:"",size:"small",onClick:le},{default:F(()=>[fe(ce(b(s)("el.colorpicker.clear")),1)]),_:1},8,["class"]),L(b(Dn),{plain:"",size:"small",class:R(b(i).be("dropdown","btn")),onClick:V},{default:F(()=>[fe(ce(b(s)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[b(zc),W]])]),default:F(()=>[E("div",{id:b(c),class:R(b(k)),role:"button","aria-label":b(S),"aria-labelledby":b(C),"aria-description":b(s)("el.colorpicker.description",{color:I.modelValue||""}),tabindex:I.tabindex,onKeydown:ft(j,["enter"])},[b(l)?(M(),N("div",{key:0,class:R(b(i).be("picker","mask"))},null,2)):X("v-if",!0),E("div",{class:R(b(i).be("picker","trigger")),onClick:j},[E("span",{class:R([b(i).be("picker","color"),b(i).is("alpha",I.showAlpha)])},[E("span",{class:R(b(i).be("picker","color-inner")),style:Te({backgroundColor:b(_)})},[We(L(b($e),{class:R([b(i).be("picker","icon"),b(i).is("icon-arrow-down")])},{default:F(()=>[L(b(fc))]),_:1},8,["class"]),[[Et,I.modelValue||y.value]]),We(L(b($e),{class:R([b(i).be("picker","empty"),b(i).is("icon-close")])},{default:F(()=>[L(b(Mi))]),_:1},8,["class"]),[[Et,!I.modelValue&&!y.value]])],6)],2)],2)],42,zE)]),_:1},8,["visible","popper-class","transition"]))}});var WE=ve(HE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const jE=dt(WE),UE=ke({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ye([String,Array,Object])},zIndex:{type:ye([String,Number])}}),KE={click:e=>e instanceof MouseEvent},qE="overlay";var YE=Y({name:"ElOverlay",props:UE,emits:KE,setup(e,{slots:t,emit:n}){const o=he(qE),s=l=>{n("click",l)},{onClick:i,onMousedown:r,onMouseup:a}=Wp(e.customMaskEvent?void 0:s);return()=>e.mask?L("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:r,onMouseup:a},[me(t,"default")],Rr.STYLE|Rr.CLASS|Rr.PROPS,["onClick","onMouseup","onMousedown"]):Ce("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[me(t,"default")])}});const GE=YE,$g=Symbol("elPaginationKey"),XE=ke({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:yt}}),QE={click:e=>e instanceof MouseEvent},JE=["disabled","aria-label","aria-disabled"],ZE={key:0},eM=Y({name:"ElPaginationPrev"}),tM=Y({...eM,props:XE,emits:QE,setup(e){const t=e,{t:n}=Wt(),o=P(()=>t.disabled||t.currentPage<=1);return(s,i)=>(M(),N("button",{type:"button",class:"btn-prev",disabled:b(o),"aria-label":s.prevText||b(n)("el.pagination.prev"),"aria-disabled":b(o),onClick:i[0]||(i[0]=r=>s.$emit("click",r))},[s.prevText?(M(),N("span",ZE,ce(s.prevText),1)):(M(),q(b($e),{key:1},{default:F(()=>[(M(),q(Ke(s.prevIcon)))]),_:1}))],8,JE))}});var nM=ve(tM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const oM=ke({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:yt}}),sM=["disabled","aria-label","aria-disabled"],iM={key:0},rM=Y({name:"ElPaginationNext"}),aM=Y({...rM,props:oM,emits:["click"],setup(e){const t=e,{t:n}=Wt(),o=P(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(s,i)=>(M(),N("button",{type:"button",class:"btn-next",disabled:b(o),"aria-label":s.nextText||b(n)("el.pagination.next"),"aria-disabled":b(o),onClick:i[0]||(i[0]=r=>s.$emit("click",r))},[s.nextText?(M(),N("span",iM,ce(s.nextText),1)):(M(),q(b($e),{key:1},{default:F(()=>[(M(),q(Ke(s.nextIcon)))]),_:1}))],8,sM))}});var lM=ve(aM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Ig=Symbol("ElSelectGroup"),Sa=Symbol("ElSelect");function cM(e,t){const n=we(Sa),o=we(Ig,{disabled:!1}),s=P(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=P(()=>n.props.multiple?d(n.props.modelValue,e.value):f(e.value,n.props.modelValue)),r=P(()=>{if(n.props.multiple){const h=n.props.modelValue||[];return!i.value&&h.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=P(()=>e.label||(s.value?"":e.value)),l=P(()=>e.value||e.label||""),c=P(()=>e.disabled||t.groupDisabled||r.value),u=De(),d=(h=[],v)=>{if(s.value){const m=n.props.valueKey;return h&&h.some(y=>ks(Dt(y,m))===Dt(v,m))}else return h&&h.includes(v)},f=(h,v)=>{if(s.value){const{valueKey:m}=n.props;return Dt(h,m)===Dt(v,m)}else return h===v},p=()=>{!e.disabled&&!o.disabled&&(n.hoverIndex=n.optionsArray.indexOf(u.proxy))};se(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),se(()=>e.value,(h,v)=>{const{remote:m,valueKey:y}=n.props;if(Object.is(h,v)||(n.onOptionDestroy(v,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!m){if(y&&typeof h=="object"&&typeof v=="object"&&h[y]===v[y])return;n.setSelected()}}),se(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0});const{queryChange:g}=ks(n);return se(g,h=>{const{query:v}=b(h),m=new RegExp(Hw(v),"i");t.visible=m.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:i,isDisabled:c,hoverItem:p}}const uM=Y({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=he("select"),n=P(()=>[t.be("dropdown","item"),t.is("disabled",b(r)),{selected:b(i),hover:b(u)}]),o=Ht({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:s,itemSelected:i,isDisabled:r,select:a,hoverItem:l}=cM(e,o),{visible:c,hover:u}=lo(o),d=De().proxy;a.onOptionCreate(d),Pt(()=>{const p=d.value,{selected:g}=a,v=(a.props.multiple?g:[g]).some(m=>m.value===d.value);xe(()=>{a.cachedOptions.get(p)===d&&!v&&a.cachedOptions.delete(p)}),a.onOptionDestroy(p,d)});function f(){e.disabled!==!0&&o.groupDisabled!==!0&&a.handleOptionSelect(d)}return{ns:t,containerKls:n,currentLabel:s,itemSelected:i,isDisabled:r,select:a,hoverItem:l,visible:c,hover:u,selectOptionClick:f,states:o}}});function dM(e,t,n,o,s,i){return We((M(),N("li",{class:R(e.containerKls),onMouseenter:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onClick:t[1]||(t[1]=et((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[me(e.$slots,"default",{},()=>[E("span",null,ce(e.currentLabel),1)])],34)),[[Et,e.visible]])}var Hc=ve(uM,[["render",dM],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const fM=Y({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=we(Sa),t=he("select"),n=P(()=>e.props.popperClass),o=P(()=>e.props.multiple),s=P(()=>e.props.fitInputWidth),i=A("");function r(){var a;i.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Be(()=>{r(),In(e.selectWrapper,r)}),{ns:t,minWidth:i,popperClass:n,isMultiple:o,isFitInputWidth:s}}});function hM(e,t,n,o,s,i){return M(),N("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Te({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[me(e.$slots,"default")],6)}var pM=ve(fM,[["render",hM],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function gM(e){const{t}=Wt();return Ht({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const mM=(e,t,n)=>{const{t:o}=Wt(),s=he("select");ya({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},P(()=>e.suffixTransition===!1));const i=A(null),r=A(null),a=A(null),l=A(null),c=A(null),u=A(null),d=A(null),f=A(null),p=A(-1),g=bn({query:""}),h=bn(""),v=A([]);let m=0;const{form:y,formItem:w}=co(),_=P(()=>!e.filterable||e.multiple||!t.visible),x=P(()=>e.disabled||(y==null?void 0:y.disabled)),S=P(()=>{const z=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&z}),C=P(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),k=P(()=>s.is("reverse",C.value&&t.visible&&e.suffixTransition)),T=P(()=>(y==null?void 0:y.statusIcon)&&(w==null?void 0:w.validateState)&&Vh[w==null?void 0:w.validateState]),B=P(()=>e.remote?300:0),$=P(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||o("el.select.noMatch"):t.options.size===0?e.noDataText||o("el.select.noData"):null),D=P(()=>{const z=Array.from(t.options.values()),ee=[];return v.value.forEach(ue=>{const Pe=z.findIndex(xt=>xt.currentLabel===ue);Pe>-1&&ee.push(z[Pe])}),ee.length>=z.length?ee:z}),W=P(()=>Array.from(t.cachedOptions.values())),ne=P(()=>{const z=D.value.filter(ee=>!ee.created).some(ee=>ee.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!z}),j=cn(),Q=P(()=>["small"].includes(j.value)?"small":"default"),V=P({get(){return t.visible&&$.value!==!1},set(z){t.visible=z}});se([()=>x.value,()=>j.value,()=>y==null?void 0:y.size],()=>{xe(()=>{le()})}),se(()=>e.placeholder,z=>{t.cachedPlaceHolder=t.currentPlaceholder=z,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),se(()=>e.modelValue,(z,ee)=>{e.multiple&&(le(),z&&z.length>0||r.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",I(t.query))),J(),e.filterable&&!e.multiple&&(t.inputLength=20),!oa(z,ee)&&e.validateEvent&&(w==null||w.validate("change").catch(ue=>void 0))},{flush:"post",deep:!0}),se(()=>t.visible,z=>{var ee,ue,Pe,xt,At;z?((ue=(ee=l.value)==null?void 0:ee.updatePopper)==null||ue.call(ee),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(xt=(Pe=a.value)==null?void 0:Pe.focus)==null||xt.call(Pe),e.multiple?(At=r.value)==null||At.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),I(t.query),!e.multiple&&!e.remote&&(g.value.query="",Qs(g),Qs(h)))):(e.filterable&&(mt(e.filterMethod)&&e.filterMethod(""),mt(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,K(),xe(()=>{r.value&&r.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",z)}),se(()=>t.options.entries(),()=>{var z,ee,ue;if(!ot)return;(ee=(z=l.value)==null?void 0:z.updatePopper)==null||ee.call(z),e.multiple&&le();const Pe=((ue=d.value)==null?void 0:ue.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Po(e.modelValue)||!Array.from(Pe).includes(document.activeElement))&&J(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&de()},{flush:"post"}),se(()=>t.hoverIndex,z=>{He(z)&&z>-1?p.value=D.value[z]||{}:p.value={},D.value.forEach(ee=>{ee.hover=p.value===ee})});const le=()=>{xe(()=>{var z,ee;if(!i.value)return;const ue=i.value.$el.querySelector("input");m=m||(ue.clientHeight>0?ue.clientHeight+2:0);const Pe=u.value,xt=Kw(j.value||(y==null?void 0:y.size)),At=j.value||xt===m||m<=0?xt:m;!(ue.offsetParent===null)&&(ue.style.height=`${(t.selected.length===0?At:Math.max(Pe?Pe.clientHeight+(Pe.clientHeight>At?6:0):0,At))-2}px`),t.visible&&$.value!==!1&&((ee=(z=l.value)==null?void 0:z.updatePopper)==null||ee.call(z))})},I=async z=>{if(!(t.previousQuery===z||t.isOnComposition)){if(t.previousQuery===null&&(mt(e.filterMethod)||mt(e.remoteMethod))){t.previousQuery=z;return}t.previousQuery=z,xe(()=>{var ee,ue;t.visible&&((ue=(ee=l.value)==null?void 0:ee.updatePopper)==null||ue.call(ee))}),t.hoverIndex=-1,e.multiple&&e.filterable&&xe(()=>{if(!x.value){const ee=r.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,ee):ee,Z()}le()}),e.remote&&mt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(z)):mt(e.filterMethod)?(e.filterMethod(z),Qs(h)):(t.filteredOptionsCount=t.optionsCount,g.value.query=z,Qs(g),Qs(h)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await xe(),de())}},Z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=r.value.value?"":t.cachedPlaceHolder)},de=()=>{const z=D.value.filter(Pe=>Pe.visible&&!Pe.disabled&&!Pe.states.groupDisabled),ee=z.find(Pe=>Pe.created),ue=z[0];t.hoverIndex=gt(D.value,ee||ue)},J=()=>{var z;if(e.multiple)t.selectedLabel="";else{const ue=G(e.modelValue);(z=ue.props)!=null&&z.created?(t.createdLabel=ue.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=ue.currentLabel,t.selected=ue,e.filterable&&(t.query=t.selectedLabel);return}const ee=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(ue=>{ee.push(G(ue))}),t.selected=ee,xe(()=>{le()})},G=z=>{let ee;const ue=Aa(z).toLowerCase()==="object",Pe=Aa(z).toLowerCase()==="null",xt=Aa(z).toLowerCase()==="undefined";for(let Wn=t.cachedOptions.size-1;Wn>=0;Wn--){const dn=W.value[Wn];if(ue?Dt(dn.value,e.valueKey)===Dt(z,e.valueKey):dn.value===z){ee={value:z,currentLabel:dn.currentLabel,isDisabled:dn.isDisabled};break}}if(ee)return ee;const At=ue?z.label:!Pe&&!xt?z:"",Hn={value:z,currentLabel:At};return e.multiple&&(Hn.hitState=!1),Hn},K=()=>{setTimeout(()=>{const z=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(ee=>D.value.findIndex(ue=>Dt(ue,z)===Dt(ee,z)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(ee=>Ne(ee)===Ne(t.selected))},300)},re=()=>{var z,ee;ie(),(ee=(z=l.value)==null?void 0:z.updatePopper)==null||ee.call(z),e.multiple&&le()},ie=()=>{var z;t.inputWidth=(z=i.value)==null?void 0:z.$el.offsetWidth},O=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,I(t.query))},H=rs(()=>{O()},B.value),U=rs(z=>{I(z.target.value)},B.value),te=z=>{oa(e.modelValue,z)||n.emit(io,z)},ge=z=>Rw(z,ee=>!t.disabledOptions.has(ee)),Le=z=>{if(z.code!==on.delete){if(z.target.value.length<=0&&!Ut()){const ee=e.modelValue.slice(),ue=ge(ee);if(ue<0)return;ee.splice(ue,1),n.emit(Je,ee),te(ee)}z.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Ee=(z,ee)=>{const ue=t.selected.indexOf(ee);if(ue>-1&&!x.value){const Pe=e.modelValue.slice();Pe.splice(ue,1),n.emit(Je,Pe),te(Pe),n.emit("remove-tag",ee.value)}z.stopPropagation(),be()},_e=z=>{z.stopPropagation();const ee=e.multiple?[]:"";if(!st(ee))for(const ue of t.selected)ue.isDisabled&&ee.push(ue.value);n.emit(Je,ee),te(ee),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),be()},Ve=z=>{var ee;if(e.multiple){const ue=(e.modelValue||[]).slice(),Pe=gt(ue,z.value);Pe>-1?ue.splice(Pe,1):(e.multipleLimit<=0||ue.length<e.multipleLimit)&&ue.push(z.value),n.emit(Je,ue),te(ue),z.created&&(t.query="",I(""),t.inputLength=20),e.filterable&&((ee=r.value)==null||ee.focus())}else n.emit(Je,z.value),te(z.value),t.visible=!1;Ye(),!t.visible&&xe(()=>{jt(z)})},gt=(z=[],ee)=>{if(!wn(ee))return z.indexOf(ee);const ue=e.valueKey;let Pe=-1;return z.some((xt,At)=>ks(Dt(xt,ue))===Dt(ee,ue)?(Pe=At,!0):!1),Pe},Ye=()=>{const z=r.value||i.value;z&&(z==null||z.focus())},jt=z=>{var ee,ue,Pe,xt,At;const Hn=Array.isArray(z)?z[0]:z;let Wn=null;if(Hn!=null&&Hn.value){const dn=D.value.filter(St=>St.value===Hn.value);dn.length>0&&(Wn=dn[0].$el)}if(l.value&&Wn){const dn=(xt=(Pe=(ue=(ee=l.value)==null?void 0:ee.popperRef)==null?void 0:ue.contentRef)==null?void 0:Pe.querySelector)==null?void 0:xt.call(Pe,`.${s.be("dropdown","wrap")}`);dn&&Uw(dn,Wn)}(At=f.value)==null||At.handleScroll()},zn=z=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(z.value,z),t.cachedOptions.set(z.value,z),z.disabled&&t.disabledOptions.set(z.value,z)},Tt=(z,ee)=>{t.options.get(z)===ee&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(z))},Zt=z=>{z.code!==on.backspace&&Ut(!1),t.inputLength=r.value.value.length*15+20,le()},Ut=z=>{if(!Array.isArray(t.selected))return;const ee=ge(t.selected.map(Pe=>Pe.value)),ue=t.selected[ee];if(!!ue)return z===!0||z===!1?(ue.hitState=z,z):(ue.hitState=!ue.hitState,ue.hitState)},En=z=>{const ee=z.target.value;if(z.type==="compositionend")t.isOnComposition=!1,xe(()=>I(ee));else{const ue=ee[ee.length-1]||"";t.isOnComposition=!Tp(ue)}},en=()=>{xe(()=>jt(t.selected))},oe=z=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",z))},be=()=>{var z,ee;t.visible?(z=r.value||i.value)==null||z.focus():(ee=i.value)==null||ee.focus()},qe=()=>{var z,ee,ue;t.visible=!1,(z=i.value)==null||z.blur(),(ue=(ee=a.value)==null?void 0:ee.blur)==null||ue.call(ee)},Kt=z=>{var ee,ue,Pe;((ee=l.value)==null?void 0:ee.isFocusInsideContent(z))||((ue=c.value)==null?void 0:ue.isFocusInsideContent(z))||((Pe=d.value)==null?void 0:Pe.contains(z.relatedTarget))||(t.visible&&pe(),t.focused=!1,n.emit("blur",z))},Vn=z=>{_e(z)},pe=()=>{t.visible=!1},Se=z=>{t.visible&&(z.preventDefault(),z.stopPropagation(),t.visible=!1)},Re=z=>{z&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),be())},Oe=()=>{t.visible?D.value[t.hoverIndex]&&Ve(D.value[t.hoverIndex]):Re()},Ne=z=>wn(z.value)?Dt(z.value,e.valueKey):z.value,at=P(()=>D.value.filter(z=>z.visible).every(z=>z.disabled)),wt=P(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),Mn=P(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),Ot=z=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!at.value){z==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):z==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const ee=D.value[t.hoverIndex];(ee.disabled===!0||ee.states.groupDisabled===!0||!ee.visible)&&Ot(z),xe(()=>jt(p.value))}},Gs=()=>{t.mouseEnter=!0},Xs=()=>{t.mouseEnter=!1},uo=(z,ee)=>{var ue,Pe;Ee(z,ee),(Pe=(ue=c.value)==null?void 0:ue.updatePopper)==null||Pe.call(ue)},Do=P(()=>({maxWidth:`${b(t.inputWidth)-32-(T.value?22:0)}px`,width:"100%"}));return{optionList:v,optionsArray:D,selectSize:j,handleResize:re,debouncedOnInputChange:H,debouncedQueryChange:U,deletePrevTag:Le,deleteTag:Ee,deleteSelected:_e,handleOptionSelect:Ve,scrollToOption:jt,readonly:_,resetInputHeight:le,showClose:S,iconComponent:C,iconReverse:k,showNewOption:ne,collapseTagSize:Q,setSelected:J,managePlaceholder:Z,selectDisabled:x,emptyText:$,toggleLastOptionHitState:Ut,resetInputState:Zt,handleComposition:En,onOptionCreate:zn,onOptionDestroy:Tt,handleMenuEnter:en,handleFocus:oe,focus:be,blur:qe,handleBlur:Kt,handleClearClick:Vn,handleClose:pe,handleKeydownEscape:Se,toggleMenu:Re,selectOption:Oe,getValueKey:Ne,navigateOptions:Ot,handleDeleteTooltipTag:uo,dropMenuVisible:V,queryChange:g,groupQueryChange:h,showTagList:wt,collapseTagList:Mn,selectTagsStyle:Do,reference:i,input:r,iOSInput:a,tooltipRef:l,tagTooltipRef:c,tags:u,selectWrapper:d,scrollbar:f,handleMouseEnter:Gs,handleMouseLeave:Xs}};var vM=Y({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let o=[];function s(i,r){if(i.length!==r.length)return!1;for(const[a]of i.entries())if(i[a]!=r[a])return!1;return!0}return()=>{var i,r;const a=(i=t.default)==null?void 0:i.call(t),l=[];function c(u){!Array.isArray(u)||u.forEach(d=>{var f,p,g,h;const v=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;v==="ElOptionGroup"?c(!st(d.children)&&!Array.isArray(d.children)&&mt((p=d.children)==null?void 0:p.default)?(g=d.children)==null?void 0:g.default():d.children):v==="ElOption"?l.push((h=d.props)==null?void 0:h.label):Array.isArray(d.children)&&c(d.children)})}return a.length&&c((r=a[0])==null?void 0:r.children),s(l,o)||(o=l,n("update-options",l)),a}}});const Dd="ElSelect",bM=Y({name:Dd,componentName:Dd,components:{ElInput:$o,ElSelectMenu:pM,ElOption:Hc,ElOptions:vM,ElTag:iE,ElScrollbar:Ic,ElTooltip:Io,ElIcon:$e},directives:{ClickOutside:zc},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Cc},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:$i.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:yt,default:zh},fitInputWidth:Boolean,suffixIcon:{type:yt,default:fc},tagType:{...Og.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:_a,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Je,io,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=he("select"),o=he("input"),{t:s}=Wt(),i=gM(e),{optionList:r,optionsArray:a,selectSize:l,readonly:c,handleResize:u,collapseTagSize:d,debouncedOnInputChange:f,debouncedQueryChange:p,deletePrevTag:g,deleteTag:h,deleteSelected:v,handleOptionSelect:m,scrollToOption:y,setSelected:w,resetInputHeight:_,managePlaceholder:x,showClose:S,selectDisabled:C,iconComponent:k,iconReverse:T,showNewOption:B,emptyText:$,toggleLastOptionHitState:D,resetInputState:W,handleComposition:ne,onOptionCreate:j,onOptionDestroy:Q,handleMenuEnter:V,handleFocus:le,focus:I,blur:Z,handleBlur:de,handleClearClick:J,handleClose:G,handleKeydownEscape:K,toggleMenu:re,selectOption:ie,getValueKey:O,navigateOptions:H,handleDeleteTooltipTag:U,dropMenuVisible:te,reference:ge,input:Le,iOSInput:Ee,tooltipRef:_e,tagTooltipRef:Ve,tags:gt,selectWrapper:Ye,scrollbar:jt,queryChange:zn,groupQueryChange:Tt,handleMouseEnter:Zt,handleMouseLeave:Ut,showTagList:En,collapseTagList:en,selectTagsStyle:oe}=mM(e,i,t),{inputWidth:be,selected:qe,inputLength:Kt,filteredOptionsCount:Vn,visible:pe,selectedLabel:Se,hoverIndex:Re,query:Oe,inputHovering:Ne,currentPlaceholder:at,menuVisibleOnFocus:wt,isOnComposition:Mn,options:Ot,cachedOptions:Gs,optionsCount:Xs,prefixWidth:uo}=lo(i),Do=P(()=>{const St=[n.b()],Bo=b(l);return Bo&&St.push(n.m(Bo)),e.disabled&&St.push(n.m("disabled")),St}),z=P(()=>[n.e("tags"),n.is("disabled",b(C))]),ee=P(()=>[n.b("tags-wrapper"),{"has-prefix":b(uo)&&b(qe).length}]),ue=P(()=>[n.e("input"),n.is(b(l)),n.is("disabled",b(C))]),Pe=P(()=>[n.e("input"),n.is(b(l)),n.em("input","iOS")]),xt=P(()=>[n.is("empty",!e.allowCreate&&Boolean(b(Oe))&&b(Vn)===0)]),At=P(()=>({maxWidth:`${b(be)>123?b(be)-123:b(be)-75}px`})),Hn=P(()=>({marginLeft:`${b(uo)}px`,flexGrow:1,width:`${b(Kt)/(b(be)-32)}%`,maxWidth:`${b(be)-42}px`}));rt(Sa,Ht({props:e,options:Ot,optionsArray:a,cachedOptions:Gs,optionsCount:Xs,filteredOptionsCount:Vn,hoverIndex:Re,handleOptionSelect:m,onOptionCreate:j,onOptionDestroy:Q,selectWrapper:Ye,selected:qe,setSelected:w,queryChange:zn,groupQueryChange:Tt})),Be(()=>{i.cachedPlaceHolder=at.value=e.placeholder||(()=>s("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(at.value=""),In(Ye,u),e.remote&&e.multiple&&_(),xe(()=>{const St=ge.value&&ge.value.$el;if(!!St&&(be.value=St.getBoundingClientRect().width,t.slots.prefix)){const Bo=St.querySelector(`.${o.e("prefix")}`);uo.value=Math.max(Bo.getBoundingClientRect().width+11,30)}}),w()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Je,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Je,"");const Wn=P(()=>{var St,Bo;return(Bo=(St=_e.value)==null?void 0:St.popperRef)==null?void 0:Bo.contentRef});return{isIOS:Hv,onOptionsRendered:St=>{r.value=St},prefixWidth:uo,selectSize:l,readonly:c,handleResize:u,collapseTagSize:d,debouncedOnInputChange:f,debouncedQueryChange:p,deletePrevTag:g,deleteTag:h,handleDeleteTooltipTag:U,deleteSelected:v,handleOptionSelect:m,scrollToOption:y,inputWidth:be,selected:qe,inputLength:Kt,filteredOptionsCount:Vn,visible:pe,selectedLabel:Se,hoverIndex:Re,query:Oe,inputHovering:Ne,currentPlaceholder:at,menuVisibleOnFocus:wt,isOnComposition:Mn,options:Ot,resetInputHeight:_,managePlaceholder:x,showClose:S,selectDisabled:C,iconComponent:k,iconReverse:T,showNewOption:B,emptyText:$,toggleLastOptionHitState:D,resetInputState:W,handleComposition:ne,handleMenuEnter:V,handleFocus:le,focus:I,blur:Z,handleBlur:de,handleClearClick:J,handleClose:G,handleKeydownEscape:K,toggleMenu:re,selectOption:ie,getValueKey:O,navigateOptions:H,dropMenuVisible:te,reference:ge,input:Le,iOSInput:Ee,tooltipRef:_e,popperPaneRef:Wn,tags:gt,selectWrapper:Ye,scrollbar:jt,wrapperKls:Do,tagsKls:z,tagWrapperKls:ee,inputKls:ue,iOSInputKls:Pe,scrollbarKls:xt,selectTagsStyle:oe,nsSelect:n,tagTextStyle:At,inputStyle:Hn,handleMouseEnter:Zt,handleMouseLeave:Ut,showTagList:En,collapseTagList:en,tagTooltipRef:Ve}}}),yM=["disabled","autocomplete","aria-label"],_M=["disabled"],wM={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function xM(e,t,n,o,s,i){const r=Me("el-tag"),a=Me("el-tooltip"),l=Me("el-icon"),c=Me("el-input"),u=Me("el-option"),d=Me("el-options"),f=Me("el-scrollbar"),p=Me("el-select-menu"),g=ds("click-outside");return We((M(),N("div",{ref:"selectWrapper",class:R(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...h)=>e.handleMouseEnter&&e.handleMouseEnter(...h)),onMouseleave:t[23]||(t[23]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h)),onClick:t[24]||(t[24]=et((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[L(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:F(()=>[E("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=h=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=h=>e.inputHovering=!1)},[e.multiple?(M(),N("div",{key:0,ref:"tags",tabindex:"-1",class:R(e.tagsKls),style:Te(e.selectTagsStyle),onClick:t[15]||(t[15]=(...h)=>e.focus&&e.focus(...h))},[e.collapseTags&&e.selected.length?(M(),q(Mo,{key:0,onAfterLeave:e.resetInputHeight},{default:F(()=>[E("span",{class:R(e.tagWrapperKls)},[(M(!0),N(Ge,null,Lt(e.showTagList,h=>(M(),q(r,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,h)},{default:F(()=>[E("span",{class:R(e.nsSelect.e("tags-text")),style:Te(e.tagTextStyle)},ce(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(M(),q(r,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:F(()=>[e.collapseTagsTooltip?(M(),q(a,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:F(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},"+ "+ce(e.selected.length-e.maxCollapseTags),3)]),content:F(()=>[E("div",{class:R(e.nsSelect.e("collapse-tags"))},[(M(!0),N(Ge,null,Lt(e.collapseTagList,h=>(M(),N("div",{key:e.getValueKey(h),class:R(e.nsSelect.e("collapse-tag"))},[L(r,{class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:v=>e.handleDeleteTooltipTag(v,h)},{default:F(()=>[E("span",{class:R(e.nsSelect.e("tags-text")),style:Te({maxWidth:e.inputWidth-75+"px"})},ce(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(M(),N("span",{key:1,class:R(e.nsSelect.e("tags-text"))},"+ "+ce(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):X("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):X("v-if",!0),e.collapseTags?X("v-if",!0):(M(),q(Mo,{key:1,onAfterLeave:e.resetInputHeight},{default:F(()=>[E("span",{class:R(e.tagWrapperKls),style:Te(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(M(!0),N(Ge,null,Lt(e.selected,h=>(M(),q(r,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,h)},{default:F(()=>[E("span",{class:R(e.nsSelect.e("tags-text")),style:Te({maxWidth:e.inputWidth-75+"px"})},ce(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?We((M(),N("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=h=>e.query=h),type:"text",class:R(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Te(e.inputStyle),"aria-label":e.ariaLabel,onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeyup:t[3]||(t[3]=(...h)=>e.managePlaceholder&&e.managePlaceholder(...h)),onKeydown:[t[4]||(t[4]=(...h)=>e.resetInputState&&e.resetInputState(...h)),t[5]||(t[5]=ft(et(h=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=ft(et(h=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=ft((...h)=>e.handleKeydownEscape&&e.handleKeydownEscape(...h),["esc"])),t[8]||(t[8]=ft(et((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[9]||(t[9]=ft((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["delete"])),t[10]||(t[10]=ft(h=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionupdate:t[12]||(t[12]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionend:t[13]||(t[13]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onInput:t[14]||(t[14]=(...h)=>e.debouncedQueryChange&&e.debouncedQueryChange(...h))},null,46,yM)),[[Wv,e.query]]):X("v-if",!0)],6)):X("v-if",!0),X(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(M(),N("input",{key:1,ref:"iOSInput",class:R(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,_M)):X("v-if",!0),L(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=h=>e.selectedLabel=h),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:R([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,label:e.ariaLabel,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=ft(et(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=ft(et(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),ft(et(e.selectOption,["stop","prevent"]),["enter"]),ft(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=ft(h=>e.visible=!1,["tab"]))]},jv({suffix:F(()=>[e.iconComponent&&!e.showClose?(M(),q(l,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:F(()=>[(M(),q(Ke(e.iconComponent)))]),_:1},8,["class"])):X("v-if",!0),e.showClose&&e.clearIcon?(M(),q(l,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:F(()=>[(M(),q(Ke(e.clearIcon)))]),_:1},8,["class","onClick"])):X("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:F(()=>[E("div",wM,[me(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:F(()=>[L(p,null,{default:F(()=>[We(L(f,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R(e.scrollbarKls)},{default:F(()=>[e.showNewOption?(M(),q(u,{key:0,value:e.query,created:!0},null,8,["value"])):X("v-if",!0),L(d,{onUpdateOptions:e.onOptionsRendered},{default:F(()=>[me(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Et,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(M(),N(Ge,{key:0},[e.$slots.empty?me(e.$slots,"empty",{key:0}):(M(),N("p",{key:1,class:R(e.nsSelect.be("dropdown","empty"))},ce(e.emptyText),3))],64)):X("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[g,e.handleClose,e.popperPaneRef]])}var SM=ve(bM,[["render",xM],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const CM=Y({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=he("select"),n=A(!0),o=De(),s=A([]);rt(Ig,Ht({...lo(e)}));const i=we(Sa);Be(()=>{s.value=r(o.subTree)});const r=l=>{const c=[];return Array.isArray(l.children)&&l.children.forEach(u=>{var d;u.type&&u.type.name==="ElOption"&&u.component&&u.component.proxy?c.push(u.component.proxy):(d=u.children)!=null&&d.length&&c.push(...r(u))}),c},{groupQueryChange:a}=ks(i);return se(a,()=>{n.value=s.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function kM(e,t,n,o,s,i){return We((M(),N("ul",{class:R(e.ns.be("group","wrap"))},[E("li",{class:R(e.ns.be("group","title"))},ce(e.label),3),E("li",null,[E("ul",{class:R(e.ns.b("group"))},[me(e.$slots,"default")],2)])],2)),[[Et,e.visible]])}var Fg=ve(CM,[["render",kM],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Wc=dt(SM,{Option:Hc,OptionGroup:Fg}),jc=un(Hc);un(Fg);const Uc=()=>we($g,{}),EM=ke({pageSize:{type:Number,required:!0},pageSizes:{type:ye(Array),default:()=>pn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Vs}}),MM=Y({name:"ElPaginationSizes"}),PM=Y({...MM,props:EM,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Wt(),s=he("pagination"),i=Uc(),r=A(n.pageSize);se(()=>n.pageSizes,(c,u)=>{if(!oa(c,u)&&Array.isArray(c)){const d=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),se(()=>n.pageSize,c=>{r.value=c});const a=P(()=>n.pageSizes);function l(c){var u;c!==r.value&&(r.value=c,(u=i.handleSizeChange)==null||u.call(i,Number(c)))}return(c,u)=>(M(),N("span",{class:R(b(s).e("sizes"))},[L(b(Wc),{"model-value":r.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,onChange:l},{default:F(()=>[(M(!0),N(Ge,null,Lt(b(a),d=>(M(),q(b(jc),{key:d,value:d,label:d+b(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var TM=ve(PM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const OM=ke({size:{type:String,values:Vs}}),AM=["disabled"],RM=Y({name:"ElPaginationJumper"}),LM=Y({...RM,props:OM,setup(e){const{t}=Wt(),n=he("pagination"),{pageCount:o,disabled:s,currentPage:i,changeEvent:r}=Uc(),a=A(),l=P(()=>{var d;return(d=a.value)!=null?d:i==null?void 0:i.value});function c(d){a.value=d?+d:""}function u(d){d=Math.trunc(+d),r==null||r(d),a.value=void 0}return(d,f)=>(M(),N("span",{class:R(b(n).e("jump")),disabled:b(s)},[E("span",{class:R([b(n).e("goto")])},ce(b(t)("el.pagination.goto")),3),L(b($o),{size:d.size,class:R([b(n).e("editor"),b(n).is("in-pagination")]),min:1,max:b(o),disabled:b(s),"model-value":b(l),"validate-event":!1,label:b(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value","label"]),E("span",{class:R([b(n).e("classifier")])},ce(b(t)("el.pagination.pageClassifier")),3)],10,AM))}});var $M=ve(LM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const IM=ke({total:{type:Number,default:1e3}}),FM=["disabled"],DM=Y({name:"ElPaginationTotal"}),BM=Y({...DM,props:IM,setup(e){const{t}=Wt(),n=he("pagination"),{disabled:o}=Uc();return(s,i)=>(M(),N("span",{class:R(b(n).e("total")),disabled:b(o)},ce(b(t)("el.pagination.total",{total:s.total})),11,FM))}});var NM=ve(BM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const zM=ke({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),VM=["onKeyup"],HM=["aria-current","aria-label","tabindex"],WM=["tabindex","aria-label"],jM=["aria-current","aria-label","tabindex"],UM=["tabindex","aria-label"],KM=["aria-current","aria-label","tabindex"],qM=Y({name:"ElPaginationPager"}),YM=Y({...qM,props:zM,emits:["change"],setup(e,{emit:t}){const n=e,o=he("pager"),s=he("icon"),{t:i}=Wt(),r=A(!1),a=A(!1),l=A(!1),c=A(!1),u=A(!1),d=A(!1),f=P(()=>{const _=n.pagerCount,x=(_-1)/2,S=Number(n.currentPage),C=Number(n.pageCount);let k=!1,T=!1;C>_&&(S>_-x&&(k=!0),S<C-x&&(T=!0));const B=[];if(k&&!T){const $=C-(_-2);for(let D=$;D<C;D++)B.push(D)}else if(!k&&T)for(let $=2;$<_;$++)B.push($);else if(k&&T){const $=Math.floor(_/2)-1;for(let D=S-$;D<=S+$;D++)B.push(D)}else for(let $=2;$<C;$++)B.push($);return B}),p=P(()=>["more","btn-quickprev",s.b(),o.is("disabled",n.disabled)]),g=P(()=>["more","btn-quicknext",s.b(),o.is("disabled",n.disabled)]),h=P(()=>n.disabled?-1:0);Co(()=>{const _=(n.pagerCount-1)/2;r.value=!1,a.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-_&&(r.value=!0),n.currentPage<n.pageCount-_&&(a.value=!0))});function v(_=!1){n.disabled||(_?l.value=!0:c.value=!0)}function m(_=!1){_?u.value=!0:d.value=!0}function y(_){const x=_.target;if(x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("number")){const S=Number(x.textContent);S!==n.currentPage&&t("change",S)}else x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("more")&&w(_)}function w(_){const x=_.target;if(x.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(x.textContent);const C=n.pageCount,k=n.currentPage,T=n.pagerCount-2;x.className.includes("more")&&(x.className.includes("quickprev")?S=k-T:x.className.includes("quicknext")&&(S=k+T)),Number.isNaN(+S)||(S<1&&(S=1),S>C&&(S=C)),S!==k&&t("change",S)}return(_,x)=>(M(),N("ul",{class:R(b(o).b()),onClick:w,onKeyup:ft(y,["enter"])},[_.pageCount>0?(M(),N("li",{key:0,class:R([[b(o).is("active",_.currentPage===1),b(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":b(i)("el.pagination.currentPage",{pager:1}),tabindex:b(h)}," 1 ",10,HM)):X("v-if",!0),r.value?(M(),N("li",{key:1,class:R(b(p)),tabindex:b(h),"aria-label":b(i)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:x[0]||(x[0]=S=>v(!0)),onMouseleave:x[1]||(x[1]=S=>l.value=!1),onFocus:x[2]||(x[2]=S=>m(!0)),onBlur:x[3]||(x[3]=S=>u.value=!1)},[(l.value||u.value)&&!_.disabled?(M(),q(b(qh),{key:0})):(M(),q(b(mu),{key:1}))],42,WM)):X("v-if",!0),(M(!0),N(Ge,null,Lt(b(f),S=>(M(),N("li",{key:S,class:R([[b(o).is("active",_.currentPage===S),b(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===S,"aria-label":b(i)("el.pagination.currentPage",{pager:S}),tabindex:b(h)},ce(S),11,jM))),128)),a.value?(M(),N("li",{key:2,class:R(b(g)),tabindex:b(h),"aria-label":b(i)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:x[4]||(x[4]=S=>v()),onMouseleave:x[5]||(x[5]=S=>c.value=!1),onFocus:x[6]||(x[6]=S=>m()),onBlur:x[7]||(x[7]=S=>d.value=!1)},[(c.value||d.value)&&!_.disabled?(M(),q(b(Yh),{key:0})):(M(),q(b(mu),{key:1}))],42,UM)):X("v-if",!0),_.pageCount>1?(M(),N("li",{key:3,class:R([[b(o).is("active",_.currentPage===_.pageCount),b(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":b(i)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:b(h)},ce(_.pageCount),11,KM)):X("v-if",!0)],42,VM))}});var GM=ve(YM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Rt=e=>typeof e!="number",XM=ke({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>He(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ye(Array),default:()=>pn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:yt,default:()=>Gh},nextText:{type:String,default:""},nextIcon:{type:yt,default:()=>va},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),QM={"update:current-page":e=>He(e),"update:page-size":e=>He(e),"size-change":e=>He(e),"current-change":e=>He(e),"prev-click":e=>He(e),"next-click":e=>He(e)},Bd="ElPagination";var JM=Y({name:Bd,props:XM,emits:QM,setup(e,{emit:t,slots:n}){const{t:o}=Wt(),s=he("pagination"),i=De().vnode.props||{},r="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,a="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=P(()=>{if(Rt(e.total)&&Rt(e.pageCount)||!Rt(e.currentPage)&&!r)return!1;if(e.layout.includes("sizes")){if(Rt(e.pageCount)){if(!Rt(e.total)&&!Rt(e.pageSize)&&!a)return!1}else if(!a)return!1}return!0}),c=A(Rt(e.defaultPageSize)?10:e.defaultPageSize),u=A(Rt(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=P({get(){return Rt(e.pageSize)?c.value:e.pageSize},set(w){Rt(e.pageSize)&&(c.value=w),a&&(t("update:page-size",w),t("size-change",w))}}),f=P(()=>{let w=0;return Rt(e.pageCount)?Rt(e.total)||(w=Math.max(1,Math.ceil(e.total/d.value))):w=e.pageCount,w}),p=P({get(){return Rt(e.currentPage)?u.value:e.currentPage},set(w){let _=w;w<1?_=1:w>f.value&&(_=f.value),Rt(e.currentPage)&&(u.value=_),r&&(t("update:current-page",_),t("current-change",_))}});se(f,w=>{p.value>w&&(p.value=w)});function g(w){p.value=w}function h(w){d.value=w;const _=f.value;p.value>_&&(p.value=_)}function v(){e.disabled||(p.value-=1,t("prev-click",p.value))}function m(){e.disabled||(p.value+=1,t("next-click",p.value))}function y(w,_){w&&(w.props||(w.props={}),w.props.class=[w.props.class,_].join(" "))}return rt($g,{pageCount:f,disabled:P(()=>e.disabled),currentPage:p,changeEvent:g,handleSizeChange:h}),()=>{var w,_;if(!l.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const x=[],S=[],C=Ce("div",{class:s.e("rightwrapper")},S),k={prev:Ce(nM,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:v}),jumper:Ce($M,{size:e.small?"small":"default"}),pager:Ce(GM,{currentPage:p.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:g,disabled:e.disabled}),next:Ce(lM,{disabled:e.disabled,currentPage:p.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:Ce(TM,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(_=(w=n==null?void 0:n.default)==null?void 0:w.call(n))!=null?_:null,total:Ce(NM,{total:Rt(e.total)?0:e.total})},T=e.layout.split(",").map($=>$.trim());let B=!1;return T.forEach($=>{if($==="->"){B=!0;return}B?S.push(k[$]):x.push(k[$])}),y(x[0],s.is("first")),y(x[x.length-1],s.is("last")),B&&S.length>0&&(y(S[0],s.is("first")),y(S[S.length-1],s.is("last")),x.push(C)),Ce("div",{class:[s.b(),s.is("background",e.background),{[s.m("small")]:e.small}]},x)}}});const ZM=dt(JM),eP=ke({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Cl,default:"primary"},cancelButtonType:{type:String,values:Cl,default:"text"},icon:{type:yt,default:()=>Uv},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:$i.teleported,persistent:$i.persistent,width:{type:[String,Number],default:150}}),tP={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},nP=Y({name:"ElPopconfirm"}),oP=Y({...nP,props:eP,emits:tP,setup(e,{emit:t}){const n=e,{t:o}=Wt(),s=he("popconfirm"),i=A(),r=()=>{var f,p;(p=(f=i.value)==null?void 0:f.onClose)==null||p.call(f)},a=P(()=>({width:$n(n.width)})),l=f=>{t("confirm",f),r()},c=f=>{t("cancel",f),r()},u=P(()=>n.confirmButtonText||o("el.popconfirm.confirmButtonText")),d=P(()=>n.cancelButtonText||o("el.popconfirm.cancelButtonText"));return(f,p)=>(M(),q(b(Io),On({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},f.$attrs,{"popper-class":`${b(s).namespace.value}-popover`,"popper-style":b(a),teleported:f.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":f.hideAfter,persistent:f.persistent}),{content:F(()=>[E("div",{class:R(b(s).b())},[E("div",{class:R(b(s).e("main"))},[!f.hideIcon&&f.icon?(M(),q(b($e),{key:0,class:R(b(s).e("icon")),style:Te({color:f.iconColor})},{default:F(()=>[(M(),q(Ke(f.icon)))]),_:1},8,["class","style"])):X("v-if",!0),fe(" "+ce(f.title),1)],2),E("div",{class:R(b(s).e("action"))},[L(b(Dn),{size:"small",type:f.cancelButtonType==="text"?"":f.cancelButtonType,text:f.cancelButtonType==="text",onClick:c},{default:F(()=>[fe(ce(b(d)),1)]),_:1},8,["type","text"]),L(b(Dn),{size:"small",type:f.confirmButtonType==="text"?"":f.confirmButtonType,text:f.confirmButtonType==="text",onClick:l},{default:F(()=>[fe(ce(b(u)),1)]),_:1},8,["type","text"])],2)],2)]),default:F(()=>[f.$slots.reference?me(f.$slots,"reference",{key:0}):X("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var sP=ve(oP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const Dg=dt(sP),iP=ke({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),rP=ke({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),aP=Y({name:"ElSkeletonItem"}),lP=Y({...aP,props:rP,setup(e){const t=he("skeleton");return(n,o)=>(M(),N("div",{class:R([b(t).e("item"),b(t).e(n.variant)])},[n.variant==="image"?(M(),q(b(Kv),{key:0})):X("v-if",!0)],2))}});var ia=ve(lP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const cP=Y({name:"ElSkeleton"}),uP=Y({...cP,props:iP,setup(e,{expose:t}){const n=e,o=he("skeleton"),s=ix(nn(n,"loading"),n.throttle);return t({uiLoading:s}),(i,r)=>b(s)?(M(),N("div",On({key:0,class:[b(o).b(),b(o).is("animated",i.animated)]},i.$attrs),[(M(!0),N(Ge,null,Lt(i.count,a=>(M(),N(Ge,{key:a},[i.loading?me(i.$slots,"template",{key:a},()=>[L(ia,{class:R(b(o).is("first")),variant:"p"},null,8,["class"]),(M(!0),N(Ge,null,Lt(i.rows,l=>(M(),q(ia,{key:l,class:R([b(o).e("paragraph"),b(o).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):X("v-if",!0)],64))),128))],16)):me(i.$slots,"default",qv(On({key:1},i.$attrs)))}});var dP=ve(uP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const fP=dt(dP,{SkeletonItem:ia});un(ia);const hP=ke({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),pP={[io]:(e,t)=>[e,t].every(He)},gP=Y({name:"ElSteps"}),mP=Y({...gP,props:hP,emits:pP,setup(e,{emit:t}){const n=e,o=he("steps"),{children:s,addChild:i,removeChild:r}=Yp(De(),"ElStep");return se(s,()=>{s.value.forEach((a,l)=>{a.setIndex(l)})}),rt("ElSteps",{props:n,steps:s,addStep:i,removeStep:r}),se(()=>n.active,(a,l)=>{t(io,a,l)}),(a,l)=>(M(),N("div",{class:R([b(o).b(),b(o).m(a.simple?"simple":a.direction)])},[me(a.$slots,"default")],2))}});var vP=ve(mP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const bP=ke({title:{type:String,default:""},icon:{type:yt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),yP=Y({name:"ElStep"}),_P=Y({...yP,props:bP,setup(e){const t=e,n=he("step"),o=A(-1),s=A({}),i=A(""),r=we("ElSteps"),a=De();Be(()=>{se([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([S])=>{_(S)},{immediate:!0})}),Pt(()=>{r.removeStep(x.uid)});const l=P(()=>t.status||i.value),c=P(()=>{const S=r.steps.value[o.value-1];return S?S.currentStatus:"wait"}),u=P(()=>r.props.alignCenter),d=P(()=>r.props.direction==="vertical"),f=P(()=>r.props.simple),p=P(()=>r.steps.value.length),g=P(()=>{var S;return((S=r.steps.value[p.value-1])==null?void 0:S.uid)===(a==null?void 0:a.uid)}),h=P(()=>f.value?"":r.props.space),v=P(()=>[n.b(),n.is(f.value?"simple":r.props.direction),n.is("flex",g.value&&!h.value&&!u.value),n.is("center",u.value&&!d.value&&!f.value)]),m=P(()=>{const S={flexBasis:He(h.value)?`${h.value}px`:h.value?h.value:`${100/(p.value-(u.value?0:1))}%`};return d.value||g.value&&(S.maxWidth=`${100/p.value}%`),S}),y=S=>{o.value=S},w=S=>{const C=S==="wait",k={transitionDelay:`${C?"-":""}${150*o.value}ms`},T=S===r.props.processStatus||C?0:100;k.borderWidth=T&&!f.value?"1px":0,k[r.props.direction==="vertical"?"height":"width"]=`${T}%`,s.value=k},_=S=>{S>o.value?i.value=r.props.finishStatus:S===o.value&&c.value!=="error"?i.value=r.props.processStatus:i.value="wait";const C=r.steps.value[o.value-1];C&&C.calcProgress(i.value)},x=Ht({uid:a.uid,currentStatus:l,setIndex:y,calcProgress:w});return r.addStep(x),(S,C)=>(M(),N("div",{style:Te(b(m)),class:R(b(v))},[X(" icon & line "),E("div",{class:R([b(n).e("head"),b(n).is(b(l))])},[b(f)?X("v-if",!0):(M(),N("div",{key:0,class:R(b(n).e("line"))},[E("i",{class:R(b(n).e("line-inner")),style:Te(s.value)},null,6)],2)),E("div",{class:R([b(n).e("icon"),b(n).is(S.icon||S.$slots.icon?"icon":"text")])},[me(S.$slots,"icon",{},()=>[S.icon?(M(),q(b($e),{key:0,class:R(b(n).e("icon-inner"))},{default:F(()=>[(M(),q(Ke(S.icon)))]),_:1},8,["class"])):b(l)==="success"?(M(),q(b($e),{key:1,class:R([b(n).e("icon-inner"),b(n).is("status")])},{default:F(()=>[L(b(Yv))]),_:1},8,["class"])):b(l)==="error"?(M(),q(b($e),{key:2,class:R([b(n).e("icon-inner"),b(n).is("status")])},{default:F(()=>[L(b(Mi))]),_:1},8,["class"])):b(f)?X("v-if",!0):(M(),N("div",{key:3,class:R(b(n).e("icon-inner"))},ce(o.value+1),3))])],2)],2),X(" title & description "),E("div",{class:R(b(n).e("main"))},[E("div",{class:R([b(n).e("title"),b(n).is(b(l))])},[me(S.$slots,"title",{},()=>[fe(ce(S.title),1)])],2),b(f)?(M(),N("div",{key:0,class:R(b(n).e("arrow"))},null,2)):(M(),N("div",{key:1,class:R([b(n).e("description"),b(n).is(b(l))])},[me(S.$slots,"description",{},()=>[fe(ce(S.description),1)])],2))],2)],6))}});var Bg=ve(_P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const wP=dt(vP,{Step:Bg}),xP=un(Bg),SP=ke({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Cc},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:yt},activeActionIcon:{type:yt},activeIcon:{type:yt},inactiveIcon:{type:yt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ye(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),CP={[Je]:e=>Nt(e)||st(e)||He(e),[io]:e=>Nt(e)||st(e)||He(e),[ml]:e=>Nt(e)||st(e)||He(e)},kP=["onClick"],EP=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],MP=["aria-hidden"],PP=["aria-hidden"],TP=["aria-hidden"],Fl="ElSwitch",OP=Y({name:Fl}),AP=Y({...OP,props:SP,emits:CP,setup(e,{expose:t,emit:n}){const o=e,s=De(),{formItem:i}=co(),r=cn(),a=he("switch");(k=>{k.forEach(T=>{ya({from:T[0],replacement:T[1],scope:Fl,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},P(()=>{var B;return!!((B=s.vnode.props)!=null&&B[T[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:c}=Us(o,{formItemContext:i}),u=fs(P(()=>o.loading)),d=A(o.modelValue!==!1),f=A(),p=A(),g=P(()=>[a.b(),a.m(r.value),a.is("disabled",u.value),a.is("checked",w.value)]),h=P(()=>[a.e("label"),a.em("label","left"),a.is("active",!w.value)]),v=P(()=>[a.e("label"),a.em("label","right"),a.is("active",w.value)]),m=P(()=>({width:$n(o.width)}));se(()=>o.modelValue,()=>{d.value=!0}),se(()=>o.value,()=>{d.value=!1});const y=P(()=>d.value?o.modelValue:o.value),w=P(()=>y.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(y.value)||(n(Je,o.inactiveValue),n(io,o.inactiveValue),n(ml,o.inactiveValue)),se(w,k=>{var T;f.value.checked=k,o.validateEvent&&((T=i==null?void 0:i.validate)==null||T.call(i,"change").catch(B=>void 0))});const _=()=>{const k=w.value?o.inactiveValue:o.activeValue;n(Je,k),n(io,k),n(ml,k),xe(()=>{f.value.checked=w.value})},x=()=>{if(u.value)return;const{beforeChange:k}=o;if(!k){_();return}const T=k();[vu(T),Nt(T)].includes(!0)||Ro(Fl,"beforeChange must return type `Promise<boolean>` or `boolean`"),vu(T)?T.then($=>{$&&_()}).catch($=>{}):T&&_()},S=P(()=>a.cssVarBlock({...o.activeColor?{"on-color":o.activeColor}:null,...o.inactiveColor?{"off-color":o.inactiveColor}:null,...o.borderColor?{"border-color":o.borderColor}:null})),C=()=>{var k,T;(T=(k=f.value)==null?void 0:k.focus)==null||T.call(k)};return Be(()=>{f.value.checked=w.value}),t({focus:C,checked:w}),(k,T)=>(M(),N("div",{class:R(b(g)),style:Te(b(S)),onClick:et(x,["prevent"])},[E("input",{id:b(c),ref_key:"input",ref:f,class:R(b(a).e("input")),type:"checkbox",role:"switch","aria-checked":b(w),"aria-disabled":b(u),name:k.name,"true-value":k.activeValue,"false-value":k.inactiveValue,disabled:b(u),tabindex:k.tabindex,onChange:_,onKeydown:ft(x,["enter"])},null,42,EP),!k.inlinePrompt&&(k.inactiveIcon||k.inactiveText)?(M(),N("span",{key:0,class:R(b(h))},[k.inactiveIcon?(M(),q(b($e),{key:0},{default:F(()=>[(M(),q(Ke(k.inactiveIcon)))]),_:1})):X("v-if",!0),!k.inactiveIcon&&k.inactiveText?(M(),N("span",{key:1,"aria-hidden":b(w)},ce(k.inactiveText),9,MP)):X("v-if",!0)],2)):X("v-if",!0),E("span",{ref_key:"core",ref:p,class:R(b(a).e("core")),style:Te(b(m))},[k.inlinePrompt?(M(),N("div",{key:0,class:R(b(a).e("inner"))},[k.activeIcon||k.inactiveIcon?(M(),q(b($e),{key:0,class:R(b(a).is("icon"))},{default:F(()=>[(M(),q(Ke(b(w)?k.activeIcon:k.inactiveIcon)))]),_:1},8,["class"])):k.activeText||k.inactiveText?(M(),N("span",{key:1,class:R(b(a).is("text")),"aria-hidden":!b(w)},ce(b(w)?k.activeText:k.inactiveText),11,PP)):X("v-if",!0)],2)):X("v-if",!0),E("div",{class:R(b(a).e("action"))},[k.loading?(M(),q(b($e),{key:0,class:R(b(a).is("loading"))},{default:F(()=>[L(b(dc))]),_:1},8,["class"])):k.activeActionIcon&&b(w)?(M(),q(b($e),{key:1},{default:F(()=>[(M(),q(Ke(k.activeActionIcon)))]),_:1})):k.inactiveActionIcon&&!b(w)?(M(),q(b($e),{key:2},{default:F(()=>[(M(),q(Ke(k.inactiveActionIcon)))]),_:1})):X("v-if",!0)],2)],6),!k.inlinePrompt&&(k.activeIcon||k.activeText)?(M(),N("span",{key:1,class:R(b(v))},[k.activeIcon?(M(),q(b($e),{key:0},{default:F(()=>[(M(),q(Ke(k.activeIcon)))]),_:1})):X("v-if",!0),!k.activeIcon&&k.activeText?(M(),N("span",{key:1,"aria-hidden":!b(w)},ce(k.activeText),9,TP)):X("v-if",!0)],2)):X("v-if",!0)],14,kP))}});var RP=ve(AP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Ng=dt(RP);/*!
    34  * escape-html
    35  * Copyright(c) 2012-2013 TJ Holowaychuk
    36  * Copyright(c) 2015 Andreas Lubbe
    37  * Copyright(c) 2015 Tiancheng "Timothy" Gu
    38  * MIT Licensed
    39  */var LP=/["'&<>]/,$P=IP;function IP(e){var t=""+e,n=LP.exec(t);if(!n)return t;var o,s="",i=0,r=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}r!==i&&(s+=t.substring(r,i)),r=i+1,s+=o}return r!==i?s+t.substring(r,i):s}const Wa=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},FP=function(e,t,n,o,s){if(!t&&!o&&(!s||Array.isArray(s)&&!s.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(a,l){return s?(Array.isArray(s)||(s=[s]),s.map(c=>typeof c=="string"?Dt(a,c):c(a,l,e))):(t!=="$key"&&wn(a)&&"$value"in a&&(a=a.$value),[wn(a)?Dt(a,t):a])},r=function(a,l){if(o)return o(a.value,l.value);for(let c=0,u=a.key.length;c<u;c++){if(a.key[c]<l.key[c])return-1;if(a.key[c]>l.key[c])return 1}return 0};return e.map((a,l)=>({value:a,index:l,key:i?i(a,l):null})).sort((a,l)=>{let c=r(a,l);return c||(c=a.index-l.index),c*+n}).map(a=>a.value)},zg=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},DP=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const s=e.columns[o];if(s.columnKey===t){n=s;break}}return n||Ro("ElTable",`No column matching with column-key: ${t}`),n},Nd=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?zg(e,o[0]):null},bt=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const s of n)o=o[s];return`${o}`}else if(typeof t=="function")return t.call(null,e)},Qo=function(e,t){const n={};return(e||[]).forEach((o,s)=>{n[bt(o,t)]={row:o,index:s}}),n};function BP(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(so(t,o)){const s=t[o];typeof s<"u"&&(n[o]=s)}return n}function Kc(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Vg(e){return e===""||e!==void 0&&(e=Kc(e),Number.isNaN(e)&&(e=80)),e}function NP(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function zP(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function bi(e,t,n){let o=!1;const s=e.indexOf(t),i=s!==-1,r=a=>{a==="add"?e.push(t):e.splice(s,1),o=!0,vn(t.children)&&t.children.forEach(l=>{bi(e,l,n!=null?n:!i)})};return Nt(n)?n&&!i?r("add"):!n&&i&&r("remove"):r(i?"remove":"add"),o}function VP(e,t,n="children",o="hasChildren"){const s=r=>!(Array.isArray(r)&&r.length);function i(r,a,l){t(r,a,l),a.forEach(c=>{if(c[o]){t(c,null,l+1);return}const u=c[n];s(u)||i(c,u,l+1)})}e.forEach(r=>{if(r[o]){t(r,null,0);return}const a=r[n];s(a)||i(r,a,0)})}let qn;function HP(e,t,n,o,s){s=Pp({enterable:!0,showArrow:!0},s);const i=e==null?void 0:e.dataset.prefix,r=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function a(){const v=s.effect==="light",m=document.createElement("div");return m.className=[`${i}-popper`,v?"is-light":"is-dark",s.popperClass||""].join(" "),n=$P(n),m.innerHTML=n,m.style.zIndex=String(o()),e==null||e.appendChild(m),m}function l(){const v=document.createElement("div");return v.className=`${i}-popper__arrow`,v}function c(){u&&u.update()}qn==null||qn(),qn=()=>{try{u&&u.destroy(),p&&(e==null||e.removeChild(p)),t.removeEventListener("mouseenter",d),t.removeEventListener("mouseleave",f),r==null||r.removeEventListener("scroll",qn),qn=void 0}catch{}};let u=null,d=c,f=qn;s.enterable&&({onOpen:d,onClose:f}=Kp({showAfter:s.showAfter,hideAfter:s.hideAfter,open:c,close:qn}));const p=a();p.onmouseenter=d,p.onmouseleave=f;const g=[];if(s.offset&&g.push({name:"offset",options:{offset:[0,s.offset]}}),s.showArrow){const v=p.appendChild(l());g.push({name:"arrow",options:{element:v,padding:10}})}const h=s.popperOptions||{};return u=Hp(t,p,{placement:s.placement||"top",strategy:"fixed",...h,modifiers:h.modifiers?g.concat(h.modifiers):g}),t.addEventListener("mouseenter",d),t.addEventListener("mouseleave",f),r==null||r.addEventListener("scroll",qn),u}function Hg(e){return e.children?Iw(e.children,Hg):[e]}function zd(e,t){return e+t.colSpan}const Wg=(e,t,n,o)=>{let s=0,i=e;const r=n.states.columns.value;if(o){const l=Hg(o[e]);s=r.slice(0,r.indexOf(l[0])).reduce(zd,0),i=s+l.reduce(zd,0)-1}else s=e;let a;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(a="left");break;case"right":s>=r.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:i<n.states.fixedLeafColumnsLength.value?a="left":s>=r.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:s,after:i}:{}},qc=(e,t,n,o,s,i=0)=>{const r=[],{direction:a,start:l,after:c}=Wg(t,n,o,s);if(a){const u=a==="left";r.push(`${e}-fixed-column--${a}`),u&&c+i===o.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!u&&l-i===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function Vd(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Yc=(e,t,n,o)=>{const{direction:s,start:i=0,after:r=0}=Wg(e,t,n,o);if(!s)return;const a={},l=s==="left",c=n.states.columns.value;return l?a.left=c.slice(0,i).reduce(Vd,0):a.right=c.slice(r+1).reverse().reduce(Vd,0),a},Ls=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function WP(e){const t=De(),n=A(!1),o=A([]);return{updateExpandRows:()=>{const l=e.data.value||[],c=e.rowKey.value;if(n.value)o.value=l.slice();else if(c){const u=Qo(o.value,c);o.value=l.reduce((d,f)=>{const p=bt(f,c);return u[p]&&d.push(f),d},[])}else o.value=[]},toggleRowExpansion:(l,c)=>{bi(o.value,l,c)&&t.emit("expand-change",l,o.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const c=e.data.value||[],u=e.rowKey.value,d=Qo(c,u);o.value=l.reduce((f,p)=>{const g=d[p];return g&&f.push(g.row),f},[])},isRowExpanded:l=>{const c=e.rowKey.value;return c?!!Qo(o.value,c)[bt(l,c)]:o.value.includes(l)},states:{expandRows:o,defaultExpandAll:n}}}function jP(e){const t=De(),n=A(null),o=A(null),s=c=>{t.store.assertRowKey(),n.value=c,r(c)},i=()=>{n.value=null},r=c=>{const{data:u,rowKey:d}=e;let f=null;d.value&&(f=(b(u)||[]).find(p=>bt(p,d.value)===c)),o.value=f,t.emit("current-change",o.value,null)};return{setCurrentRowKey:s,restoreCurrentRowKey:i,setCurrentRowByKey:r,updateCurrentRow:c=>{const u=o.value;if(c&&c!==u){o.value=c,t.emit("current-change",o.value,u);return}!c&&u&&(o.value=null,t.emit("current-change",null,u))},updateCurrentRowData:()=>{const c=e.rowKey.value,u=e.data.value||[],d=o.value;if(!u.includes(d)&&d){if(c){const f=bt(d,c);r(f)}else o.value=null;o.value===null&&t.emit("current-change",null,d)}else n.value&&(r(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function UP(e){const t=A([]),n=A({}),o=A(16),s=A(!1),i=A({}),r=A("hasChildren"),a=A("children"),l=De(),c=P(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return d(m)}),u=P(()=>{const m=e.rowKey.value,y=Object.keys(i.value),w={};return y.length&&y.forEach(_=>{if(i.value[_].length){const x={children:[]};i.value[_].forEach(S=>{const C=bt(S,m);x.children.push(C),S[r.value]&&!w[C]&&(w[C]={children:[]})}),w[_]=x}}),w}),d=m=>{const y=e.rowKey.value,w={};return VP(m,(_,x,S)=>{const C=bt(_,y);Array.isArray(x)?w[C]={children:x.map(k=>bt(k,y)),level:S}:s.value&&(w[C]={children:[],lazy:!0,level:S})},a.value,r.value),w},f=(m=!1,y=(w=>(w=l.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const _=c.value,x=u.value,S=Object.keys(_),C={};if(S.length){const k=b(n),T=[],B=(D,W)=>{if(m)return t.value?y||t.value.includes(W):!!(y||(D==null?void 0:D.expanded));{const ne=y||t.value&&t.value.includes(W);return!!((D==null?void 0:D.expanded)||ne)}};S.forEach(D=>{const W=k[D],ne={..._[D]};if(ne.expanded=B(W,D),ne.lazy){const{loaded:j=!1,loading:Q=!1}=W||{};ne.loaded=!!j,ne.loading=!!Q,T.push(D)}C[D]=ne});const $=Object.keys(x);s.value&&$.length&&T.length&&$.forEach(D=>{const W=k[D],ne=x[D].children;if(T.includes(D)){if(C[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");C[D].children=ne}else{const{loaded:j=!1,loading:Q=!1}=W||{};C[D]={lazy:!0,loaded:!!j,loading:!!Q,expanded:B(W,D),children:ne,level:""}}})}n.value=C,(w=l.store)==null||w.updateTableScrollY()};se(()=>t.value,()=>{f(!0)}),se(()=>c.value,()=>{f()}),se(()=>u.value,()=>{f()});const p=m=>{t.value=m,f()},g=(m,y)=>{l.store.assertRowKey();const w=e.rowKey.value,_=bt(m,w),x=_&&n.value[_];if(_&&x&&"expanded"in x){const S=x.expanded;y=typeof y>"u"?!x.expanded:y,n.value[_].expanded=y,S!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},h=m=>{l.store.assertRowKey();const y=e.rowKey.value,w=bt(m,y),_=n.value[w];s.value&&_&&"loaded"in _&&!_.loaded?v(m,w,_):g(m,void 0)},v=(m,y,w)=>{const{load:_}=l.props;_&&!n.value[y].loaded&&(n.value[y].loading=!0,_(m,w,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");n.value[y].loading=!1,n.value[y].loaded=!0,n.value[y].expanded=!0,x.length&&(i.value[y]=x),l.emit("expand-change",m,!0)}))};return{loadData:v,loadOrToggle:h,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:f,normalize:d,states:{expandRowKeys:t,treeData:n,indent:o,lazy:s,lazyTreeNodeMap:i,lazyColumnIdentifier:r,childrenColumnName:a}}}const KP=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:FP(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},zr=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,zr(n.children)):t.push(n)}),t};function qP(){var e;const t=De(),{size:n}=lo((e=t.proxy)==null?void 0:e.$props),o=A(null),s=A([]),i=A([]),r=A(!1),a=A([]),l=A([]),c=A([]),u=A([]),d=A([]),f=A([]),p=A([]),g=A([]),h=[],v=A(0),m=A(0),y=A(0),w=A(!1),_=A([]),x=A(!1),S=A(!1),C=A(null),k=A({}),T=A(null),B=A(null),$=A(null),D=A(null),W=A(null);se(s,()=>t.state&&V(!1),{deep:!0});const ne=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},j=pe=>{var Se;(Se=pe.children)==null||Se.forEach(Re=>{Re.fixed=pe.fixed,j(Re)})},Q=()=>{a.value.forEach(Ne=>{j(Ne)}),u.value=a.value.filter(Ne=>Ne.fixed===!0||Ne.fixed==="left"),d.value=a.value.filter(Ne=>Ne.fixed==="right"),u.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,u.value.unshift(a.value[0]));const pe=a.value.filter(Ne=>!Ne.fixed);l.value=[].concat(u.value).concat(pe).concat(d.value);const Se=zr(pe),Re=zr(u.value),Oe=zr(d.value);v.value=Se.length,m.value=Re.length,y.value=Oe.length,c.value=[].concat(Re).concat(Se).concat(Oe),r.value=u.value.length>0||d.value.length>0},V=(pe,Se=!1)=>{pe&&Q(),Se?t.state.doLayout():t.state.debouncedUpdateLayout()},le=pe=>_.value.includes(pe),I=()=>{w.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},Z=()=>{let pe;if(o.value){pe=[];const Se=Qo(_.value,o.value),Re=Qo(s.value,o.value);for(const Oe in Se)so(Se,Oe)&&!Re[Oe]&&pe.push(Se[Oe].row)}else pe=_.value.filter(Se=>!s.value.includes(Se));if(pe.length){const Se=_.value.filter(Re=>!pe.includes(Re));_.value=Se,t.emit("selection-change",Se.slice())}},de=()=>(_.value||[]).slice(),J=(pe,Se=void 0,Re=!0)=>{if(bi(_.value,pe,Se)){const Ne=(_.value||[]).slice();Re&&t.emit("select",Ne,pe),t.emit("selection-change",Ne)}},G=()=>{var pe,Se;const Re=S.value?!w.value:!(w.value||_.value.length);w.value=Re;let Oe=!1,Ne=0;const at=(Se=(pe=t==null?void 0:t.store)==null?void 0:pe.states)==null?void 0:Se.rowKey.value;s.value.forEach((wt,Mn)=>{const Ot=Mn+Ne;C.value?C.value.call(null,wt,Ot)&&bi(_.value,wt,Re)&&(Oe=!0):bi(_.value,wt,Re)&&(Oe=!0),Ne+=ie(bt(wt,at))}),Oe&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},K=()=>{const pe=Qo(_.value,o.value);s.value.forEach(Se=>{const Re=bt(Se,o.value),Oe=pe[Re];Oe&&(_.value[Oe.index]=Se)})},re=()=>{var pe,Se,Re;if(((pe=s.value)==null?void 0:pe.length)===0){w.value=!1;return}let Oe;o.value&&(Oe=Qo(_.value,o.value));const Ne=function(Ot){return Oe?!!Oe[bt(Ot,o.value)]:_.value.includes(Ot)};let at=!0,wt=0,Mn=0;for(let Ot=0,Gs=(s.value||[]).length;Ot<Gs;Ot++){const Xs=(Re=(Se=t==null?void 0:t.store)==null?void 0:Se.states)==null?void 0:Re.rowKey.value,uo=Ot+Mn,Do=s.value[Ot],z=C.value&&C.value.call(null,Do,uo);if(Ne(Do))wt++;else if(!C.value||z){at=!1;break}Mn+=ie(bt(Do,Xs))}wt===0&&(at=!1),w.value=at},ie=pe=>{var Se;if(!t||!t.store)return 0;const{treeData:Re}=t.store.states;let Oe=0;const Ne=(Se=Re.value[pe])==null?void 0:Se.children;return Ne&&(Oe+=Ne.length,Ne.forEach(at=>{Oe+=ie(at)})),Oe},O=(pe,Se)=>{Array.isArray(pe)||(pe=[pe]);const Re={};return pe.forEach(Oe=>{k.value[Oe.id]=Se,Re[Oe.columnKey||Oe.id]=Se}),Re},H=(pe,Se,Re)=>{B.value&&B.value!==pe&&(B.value.order=null),B.value=pe,$.value=Se,D.value=Re},U=()=>{let pe=b(i);Object.keys(k.value).forEach(Se=>{const Re=k.value[Se];if(!Re||Re.length===0)return;const Oe=zg({columns:c.value},Se);Oe&&Oe.filterMethod&&(pe=pe.filter(Ne=>Re.some(at=>Oe.filterMethod.call(null,at,Ne,Oe))))}),T.value=pe},te=()=>{s.value=KP(T.value,{sortingColumn:B.value,sortProp:$.value,sortOrder:D.value})},ge=(pe=void 0)=>{pe&&pe.filter||U(),te()},Le=pe=>{const{tableHeaderRef:Se}=t.refs;if(!Se)return;const Re=Object.assign({},Se.filterPanels),Oe=Object.keys(Re);if(!!Oe.length)if(typeof pe=="string"&&(pe=[pe]),Array.isArray(pe)){const Ne=pe.map(at=>DP({columns:c.value},at));Oe.forEach(at=>{const wt=Ne.find(Mn=>Mn.id===at);wt&&(wt.filteredValue=[])}),t.store.commit("filterChange",{column:Ne,values:[],silent:!0,multi:!0})}else Oe.forEach(Ne=>{const at=c.value.find(wt=>wt.id===Ne);at&&(at.filteredValue=[])}),k.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Ee=()=>{!B.value||(H(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:_e,toggleRowExpansion:Ve,updateExpandRows:gt,states:Ye,isRowExpanded:jt}=WP({data:s,rowKey:o}),{updateTreeExpandKeys:zn,toggleTreeExpansion:Tt,updateTreeData:Zt,loadOrToggle:Ut,states:En}=UP({data:s,rowKey:o}),{updateCurrentRowData:en,updateCurrentRow:oe,setCurrentRowKey:be,states:qe}=jP({data:s,rowKey:o});return{assertRowKey:ne,updateColumns:Q,scheduleLayout:V,isSelected:le,clearSelection:I,cleanSelection:Z,getSelectionRows:de,toggleRowSelection:J,_toggleAllSelection:G,toggleAllSelection:null,updateSelectionByRowKey:K,updateAllSelected:re,updateFilters:O,updateCurrentRow:oe,updateSort:H,execFilter:U,execSort:te,execQuery:ge,clearFilter:Le,clearSort:Ee,toggleRowExpansion:Ve,setExpandRowKeysAdapter:pe=>{_e(pe),zn(pe)},setCurrentRowKey:be,toggleRowExpansionAdapter:(pe,Se)=>{c.value.some(({type:Oe})=>Oe==="expand")?Ve(pe,Se):Tt(pe,Se)},isRowExpanded:jt,updateExpandRows:gt,updateCurrentRowData:en,loadOrToggle:Ut,updateTreeData:Zt,states:{tableSize:n,rowKey:o,data:s,_data:i,isComplex:r,_columns:a,originColumns:l,columns:c,fixedColumns:u,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:p,rightFixedLeafColumns:g,updateOrderFns:h,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:w,selection:_,reserveSelection:x,selectOnIndeterminate:S,selectable:C,filters:k,filteredData:T,sortingColumn:B,sortProp:$,sortOrder:D,hoverRow:W,...Ye,...En,...qe}}}function Dl(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Dl(n.children,t)),n)})}function Bl(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Bl(t.children)}),e.sort((t,n)=>t.no-n.no)}function YP(){const e=De(),t=qP();return{ns:he("table"),...t,mutations:{setData(r,a){const l=b(r._data)!==a;r.data.value=a,r._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),b(r.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(r,a,l,c){const u=b(r._columns);let d=[];l?(l&&!l.children&&(l.children=[]),l.children.push(a),d=Dl(u,l)):(u.push(a),d=u),Bl(d),r._columns.value=d,r.updateOrderFns.push(c),a.type==="selection"&&(r.selectable.value=a.selectable,r.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(r,a){var l;((l=a.getColumnIndex)==null?void 0:l.call(a))!==a.no&&(Bl(r._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(r,a,l,c){const u=b(r._columns)||[];if(l)l.children.splice(l.children.findIndex(f=>f.id===a.id),1),xe(()=>{var f;((f=l.children)==null?void 0:f.length)===0&&delete l.children}),r._columns.value=Dl(u,l);else{const f=u.indexOf(a);f>-1&&(u.splice(f,1),r._columns.value=u)}const d=r.updateOrderFns.indexOf(c);d>-1&&r.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(r,a){const{prop:l,order:c,init:u}=a;if(l){const d=b(r.columns).find(f=>f.property===l);d&&(d.order=c,e.store.updateSort(d,l,c),e.store.commit("changeSortCondition",{init:u}))}},changeSortCondition(r,a){const{sortingColumn:l,sortProp:c,sortOrder:u}=r,d=b(l),f=b(c),p=b(u);p===null&&(r.sortingColumn.value=null,r.sortProp.value=null);const g={filter:!0};e.store.execQuery(g),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:d,prop:f,order:p}),e.store.updateTableScrollY()},filterChange(r,a){const{column:l,values:c,silent:u}=a,d=e.store.updateFilters(l,c);e.store.execQuery(),u||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(r,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(r,a){r.hoverRow.value=a},setCurrentRow(r,a){e.store.updateCurrentRow(a)}},commit:function(r,...a){const l=e.store.mutations;if(l[r])l[r].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${r}`)},updateTableScrollY:function(){xe(()=>e.layout.updateScrollY.apply(e.layout))}}}const yi={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function GP(e,t){if(!e)throw new Error("Table is required.");const n=YP();return n.toggleAllSelection=rs(n._toggleAllSelection,10),Object.keys(yi).forEach(o=>{jg(Ug(t,o),o,n)}),XP(n,t),n}function XP(e,t){Object.keys(yi).forEach(n=>{se(()=>Ug(t,n),o=>{jg(o,n,e)})})}function jg(e,t,n){let o=e,s=yi[t];typeof yi[t]=="object"&&(s=s.key,o=o||yi[t].default),n.states[s].value=o}function Ug(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(s=>{o=o[s]}),o}else return e[t]}class QP{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=A(null),this.scrollX=A(!1),this.scrollY=A(!1),this.bodyWidth=A(null),this.fixedWidth=A(null),this.rightFixedWidth=A(null),this.gutterWidth=0;for(const n in t)so(t,n)&&(Eo(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const s=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,s!==o}return!1}setHeight(t,n="height"){if(!ot)return;const o=this.table.vnode.el;if(t=NP(t),this.height.value=Number(t),!o&&(t||t===0))return xe(()=>this.setHeight(t,n));typeof t=="number"?(o.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!ot)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const s=this.getFlattenColumns(),i=s.filter(l=>typeof l.width!="number");if(s.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(s.forEach(l=>{o+=Number(l.width||l.minWidth||80)}),o<=n){this.scrollX.value=!1;const l=n-o;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const c=i.reduce((f,p)=>f+Number(p.minWidth||80),0),u=l/c;let d=0;i.forEach((f,p)=>{if(p===0)return;const g=Math.floor(Number(f.minWidth||80)*u);d+=g,f.realWidth=Number(f.minWidth||80)+g}),i[0].realWidth=Number(i[0].minWidth||80)+l-d}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else s.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),o+=l.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const r=this.store.states.fixedColumns.value;if(r.length>0){let l=0;r.forEach(c=>{l+=Number(c.realWidth||c.width)}),this.fixedWidth.value=l}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let l=0;a.forEach(c=>{l+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var s,i;switch(t){case"columns":(s=o.state)==null||s.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:JP}=ls,ZP=Y({name:"ElTableFilterPanel",components:{ElCheckbox:ls,ElCheckboxGroup:JP,ElScrollbar:Ic,ElTooltip:Io,ElIcon:$e,ArrowDown:fc,ArrowUp:Gv},directives:{ClickOutside:zc},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=De(),{t:n}=Wt(),o=he("table-filter"),s=t==null?void 0:t.parent;s.filterPanels.value[e.column.id]||(s.filterPanels.value[e.column.id]=t);const i=A(!1),r=A(null),a=P(()=>e.column&&e.column.filters),l=P({get:()=>{var _;return(((_=e.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{c.value&&(typeof _<"u"&&_!==null?c.value.splice(0,1,_):c.value.splice(0,1))}}),c=P({get(){return e.column?e.column.filteredValue||[]:[]},set(_){e.column&&e.upDataColumn("filteredValue",_)}}),u=P(()=>e.column?e.column.filterMultiple:!0),d=_=>_.value===l.value,f=()=>{i.value=!1},p=_=>{_.stopPropagation(),i.value=!i.value},g=()=>{i.value=!1},h=()=>{y(c.value),f()},v=()=>{c.value=[],y(c.value),f()},m=_=>{l.value=_,y(typeof _<"u"&&_!==null?c.value:[]),f()},y=_=>{e.store.commit("filterChange",{column:e.column,values:_}),e.store.updateAllSelected()};se(i,_=>{e.column&&e.upDataColumn("filterOpened",_)},{immediate:!0});const w=P(()=>{var _,x;return(x=(_=r.value)==null?void 0:_.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:i,multiple:u,filteredValue:c,filterValue:l,filters:a,handleConfirm:h,handleReset:v,handleSelect:m,isActive:d,t:n,ns:o,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:w,tooltip:r}}}),eT={key:0},tT=["disabled"],nT=["label","onClick"];function oT(e,t,n,o,s,i){const r=Me("el-checkbox"),a=Me("el-checkbox-group"),l=Me("el-scrollbar"),c=Me("arrow-up"),u=Me("arrow-down"),d=Me("el-icon"),f=Me("el-tooltip"),p=ds("click-outside");return M(),q(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:F(()=>[e.multiple?(M(),N("div",eT,[E("div",{class:R(e.ns.e("content"))},[L(l,{"wrap-class":e.ns.e("wrap")},{default:F(()=>[L(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:F(()=>[(M(!0),N(Ge,null,Lt(e.filters,g=>(M(),q(r,{key:g.value,label:g.value},{default:F(()=>[fe(ce(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:R(e.ns.e("bottom"))},[E("button",{class:R({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},ce(e.t("el.table.confirmFilter")),11,tT),E("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},ce(e.t("el.table.resetFilter")),1)],2)])):(M(),N("ul",{key:1,class:R(e.ns.e("list"))},[E("li",{class:R([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},ce(e.t("el.table.clearFilter")),3),(M(!0),N(Ge,null,Lt(e.filters,g=>(M(),N("li",{key:g.value,class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:h=>e.handleSelect(g.value)},ce(g.text),11,nT))),128))],2))]),default:F(()=>[We((M(),N("span",{class:R([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[L(d,null,{default:F(()=>[e.column.filterOpened?(M(),q(c,{key:0})):(M(),q(u,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var sT=ve(ZP,[["render",oT],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Kg(e){const t=De();cc(()=>{n.value.addObserver(t)}),Be(()=>{o(n.value),s(n.value)}),ma(()=>{o(n.value),s(n.value)}),qi(()=>{n.value.removeObserver(t)});const n=P(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var r;const a=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const l=i.getFlattenColumns(),c={};l.forEach(u=>{c[u.id]=u});for(let u=0,d=a.length;u<d;u++){const f=a[u],p=f.getAttribute("name"),g=c[p];g&&f.setAttribute("width",g.realWidth||g.width)}},s=i=>{var r,a;const l=((r=e.vnode.el)==null?void 0:r.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let u=0,d=l.length;u<d;u++)l[u].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const c=((a=e.vnode.el)==null?void 0:a.querySelectorAll("th.gutter"))||[];for(let u=0,d=c.length;u<d;u++){const f=c[u];f.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",f.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:s}}const Bn=Symbol("ElTable");function iT(e,t){const n=De(),o=we(Bn),s=h=>{h.stopPropagation()},i=(h,v)=>{!v.filters&&v.sortable?g(h,v,!1):v.filterable&&!v.sortable&&s(h),o==null||o.emit("header-click",v,h)},r=(h,v)=>{o==null||o.emit("header-contextmenu",v,h)},a=A(null),l=A(!1),c=A({}),u=(h,v)=>{if(!!ot&&!(v.children&&v.children.length>0)&&a.value&&e.border){l.value=!0;const m=o;t("set-drag-visible",!0);const w=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,_=n.vnode.el.querySelector(`th.${v.id}`),x=_.getBoundingClientRect(),S=x.left-w+30;lc(_,"noclick"),c.value={startMouseLeft:h.clientX,startLeft:x.right-w,startColumnLeft:x.left-w,tableLeft:w};const C=m==null?void 0:m.refs.resizeProxy;C.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const k=B=>{const $=B.clientX-c.value.startMouseLeft,D=c.value.startLeft+$;C.style.left=`${Math.max(S,D)}px`},T=()=>{if(l.value){const{startColumnLeft:B,startLeft:$}=c.value,W=Number.parseInt(C.style.left,10)-B;v.width=v.realWidth=W,m==null||m.emit("header-dragend",v.width,$-B,v,h),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,a.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Qr(_,"noclick")},0)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",T)}},d=(h,v)=>{if(v.children&&v.children.length>0)return;const m=h.target;if(!oo(m))return;const y=m==null?void 0:m.closest("th");if(!(!v||!v.resizable)&&!l.value&&e.border){const w=y.getBoundingClientRect(),_=document.body.style;w.width>12&&w.right-h.pageX<8?(_.cursor="col-resize",ws(y,"is-sortable")&&(y.style.cursor="col-resize"),a.value=v):l.value||(_.cursor="",ws(y,"is-sortable")&&(y.style.cursor="pointer"),a.value=null)}},f=()=>{!ot||(document.body.style.cursor="")},p=({order:h,sortOrders:v})=>{if(h==="")return v[0];const m=v.indexOf(h||null);return v[m>v.length-2?0:m+1]},g=(h,v,m)=>{var y;h.stopPropagation();const w=v.order===m?null:m||p(v),_=(y=h.target)==null?void 0:y.closest("th");if(_&&ws(_,"noclick")){Qr(_,"noclick");return}if(!v.sortable)return;const x=e.store.states;let S=x.sortProp.value,C;const k=x.sortingColumn.value;(k!==v||k===v&&k.order===null)&&(k&&(k.order=null),x.sortingColumn.value=v,S=v.property),w?C=v.order=w:C=v.order=null,x.sortProp.value=S,x.sortOrder.value=C,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:r,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:g,handleFilterClick:s}}function rT(e){const t=we(Bn),n=he("table");return{getHeaderRowStyle:a=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:a}):l},getHeaderRowClass:a=>{const l=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?l.push(c):typeof c=="function"&&l.push(c.call(null,{rowIndex:a})),l.join(" ")},getHeaderCellStyle:(a,l,c,u)=>{var d;let f=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof f=="function"&&(f=f.call(null,{rowIndex:a,columnIndex:l,row:c,column:u}));const p=Yc(l,u.fixed,e.store,c);return Ls(p,"left"),Ls(p,"right"),Object.assign({},f,p)},getHeaderCellClass:(a,l,c,u)=>{const d=qc(n.b(),l,u.fixed,e.store,c),f=[u.id,u.order,u.headerAlign,u.className,u.labelClassName,...d];u.children||f.push("is-leaf"),u.sortable&&f.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?f.push(p):typeof p=="function"&&f.push(p.call(null,{rowIndex:a,columnIndex:l,row:c,column:u})),f.push(n.e("cell")),f.filter(g=>Boolean(g)).join(" ")}}}const qg=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,qg(n.children))):t.push(n)}),t},aT=e=>{let t=1;const n=(i,r)=>{if(r&&(i.level=r.level+1,t<i.level&&(t=i.level)),i.children){let a=0;i.children.forEach(l=>{n(l,i),a+=l.colSpan}),i.colSpan=a}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i<t;i++)o.push([]);return qg(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(r=>r.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function lT(e){const t=we(Bn),n=P(()=>aT(e.store.states.originColumns.value));return{isGroup:P(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var cT=Y({name:"ElTableHeader",components:{ElCheckbox:ls},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=De(),o=we(Bn),s=he("table"),i=A({}),{onColumnsChange:r,onScrollableChange:a}=Kg(o);Be(async()=>{await xe(),await xe();const{prop:S,order:C}=e.defaultSort;o==null||o.store.commit("sort",{prop:S,order:C,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:g}=iT(e,t),{getHeaderRowStyle:h,getHeaderRowClass:v,getHeaderCellStyle:m,getHeaderCellClass:y}=rT(e),{isGroup:w,toggleAllSelection:_,columnRows:x}=lT(e);return n.state={onColumnsChange:r,onScrollableChange:a},n.filterPanels=i,{ns:s,filterPanels:i,onColumnsChange:r,onScrollableChange:a,columnRows:x,getHeaderRowClass:v,getHeaderRowStyle:h,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:g,isGroup:w,toggleAllSelection:_}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:s,getHeaderRowClass:i,getHeaderRowStyle:r,handleHeaderClick:a,handleHeaderContextMenu:l,handleMouseDown:c,handleMouseMove:u,handleSortClick:d,handleMouseOut:f,store:p,$parent:g}=this;let h=1;return Ce("thead",{class:{[e.is("group")]:t}},n.map((v,m)=>Ce("tr",{class:i(m),key:m,style:r(m)},v.map((y,w)=>(y.rowSpan>h&&(h=y.rowSpan),Ce("th",{class:s(m,w,v,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:o(m,w,v,y),onClick:_=>a(_,y),onContextmenu:_=>l(_,y),onMousedown:_=>c(_,y),onMousemove:_=>u(_,y),onMouseout:f},[Ce("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:w,store:p,_self:g}):y.label,y.sortable&&Ce("span",{onClick:_=>d(_,y),class:"caret-wrapper"},[Ce("i",{onClick:_=>d(_,y,"ascending"),class:"sort-caret ascending"}),Ce("i",{onClick:_=>d(_,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Ce(sT,{store:p,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(_,x)=>{y[_]=x}})])]))))))}});function uT(e){const t=we(Bn),n=A(""),o=A(Ce("div")),{nextZIndex:s}=Uh(),i=(g,h,v)=>{var m;const y=t,w=Wa(g);let _;const x=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;w&&(_=Nd({columns:e.store.states.columns.value},w,x),_&&(y==null||y.emit(`cell-${v}`,h,_,w,g))),y==null||y.emit(`row-${v}`,h,_,g)},r=(g,h)=>{i(g,h,"dblclick")},a=(g,h)=>{e.store.commit("setCurrentRow",h),i(g,h,"click")},l=(g,h)=>{i(g,h,"contextmenu")},c=rs(g=>{e.store.commit("setHoverRow",g)},30),u=rs(()=>{e.store.commit("setHoverRow",null)},30),d=g=>{const h=window.getComputedStyle(g,null),v=Number.parseInt(h.paddingLeft,10)||0,m=Number.parseInt(h.paddingRight,10)||0,y=Number.parseInt(h.paddingTop,10)||0,w=Number.parseInt(h.paddingBottom,10)||0;return{left:v,right:m,top:y,bottom:w}};return{handleDoubleClick:r,handleClick:a,handleContextMenu:l,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(g,h,v)=>{var m;const y=t,w=Wa(g),_=(m=y==null?void 0:y.vnode.el)==null?void 0:m.dataset.prefix;if(w){const V=Nd({columns:e.store.states.columns.value},w,_),le=y.hoverState={cell:w,column:V,row:h};y==null||y.emit("cell-mouse-enter",le.row,le.column,le.cell,g)}if(!v)return;const x=g.target.querySelector(".cell");if(!(ws(x,`${_}-tooltip`)&&x.childNodes.length))return;const S=document.createRange();S.setStart(x,0),S.setEnd(x,x.childNodes.length);let C=S.getBoundingClientRect().width,k=S.getBoundingClientRect().height;C-Math.floor(C)<.001&&(C=Math.floor(C)),k-Math.floor(k)<.001&&(k=Math.floor(k));const{top:$,left:D,right:W,bottom:ne}=d(x),j=D+W,Q=$+ne;(C+j>x.offsetWidth||k+Q>x.offsetHeight||x.scrollWidth>x.offsetWidth)&&HP(t==null?void 0:t.refs.tableWrapper,w,w.innerText||w.textContent,s,v)},handleCellMouseLeave:g=>{if(!Wa(g))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,g)},tooltipContent:n,tooltipTrigger:o}}function dT(e){const t=we(Bn),n=he("table");return{getRowStyle:(c,u)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:u}):d||null},getRowClass:(c,u)=>{const d=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&c===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&u%2===1&&d.push(n.em("row","striped"));const f=t==null?void 0:t.props.rowClassName;return typeof f=="string"?d.push(f):typeof f=="function"&&d.push(f.call(null,{row:c,rowIndex:u})),d},getCellStyle:(c,u,d,f)=>{const p=t==null?void 0:t.props.cellStyle;let g=p!=null?p:{};typeof p=="function"&&(g=p.call(null,{rowIndex:c,columnIndex:u,row:d,column:f}));const h=Yc(u,e==null?void 0:e.fixed,e.store);return Ls(h,"left"),Ls(h,"right"),Object.assign({},g,h)},getCellClass:(c,u,d,f,p)=>{const g=qc(n.b(),u,e==null?void 0:e.fixed,e.store,void 0,p),h=[f.id,f.align,f.className,...g],v=t==null?void 0:t.props.cellClassName;return typeof v=="string"?h.push(v):typeof v=="function"&&h.push(v.call(null,{rowIndex:c,columnIndex:u,row:d,column:f})),h.push(n.e("cell")),h.filter(m=>Boolean(m)).join(" ")},getSpan:(c,u,d,f)=>{let p=1,g=1;const h=t==null?void 0:t.props.spanMethod;if(typeof h=="function"){const v=h({row:c,column:u,rowIndex:d,columnIndex:f});Array.isArray(v)?(p=v[0],g=v[1]):typeof v=="object"&&(p=v.rowspan,g=v.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(c,u,d)=>{if(u<1)return c[d].realWidth;const f=c.map(({realWidth:p,width:g})=>p||g).slice(d,d+u);return Number(f.reduce((p,g)=>Number(p)+Number(g),-1))}}}function fT(e){const t=we(Bn),n=he("table"),{handleDoubleClick:o,handleClick:s,handleContextMenu:i,handleMouseEnter:r,handleMouseLeave:a,handleCellMouseEnter:l,handleCellMouseLeave:c,tooltipContent:u,tooltipTrigger:d}=uT(e),{getRowStyle:f,getRowClass:p,getCellStyle:g,getCellClass:h,getSpan:v,getColspanRealWidth:m}=dT(e),y=P(()=>e.store.states.columns.value.findIndex(({type:C})=>C==="default")),w=(C,k)=>{const T=t.props.rowKey;return T?bt(C,T):k},_=(C,k,T,B=!1)=>{const{tooltipEffect:$,tooltipOptions:D,store:W}=e,{indent:ne,columns:j}=W.states,Q=p(C,k);let V=!0;return T&&(Q.push(n.em("row",`level-${T.level}`)),V=T.display),Ce("tr",{style:[V?null:{display:"none"},f(C,k)],class:Q,key:w(C,k),onDblclick:I=>o(I,C),onClick:I=>s(I,C),onContextmenu:I=>i(I,C),onMouseenter:()=>r(k),onMouseleave:a},j.value.map((I,Z)=>{const{rowspan:de,colspan:J}=v(C,I,k,Z);if(!de||!J)return null;const G=Object.assign({},I);G.realWidth=m(j.value,J,Z);const K={store:e.store,_self:e.context||t,column:G,row:C,$index:k,cellIndex:Z,expanded:B};Z===y.value&&T&&(K.treeNode={indent:T.level*ne.value,level:T.level},typeof T.expanded=="boolean"&&(K.treeNode.expanded=T.expanded,"loading"in T&&(K.treeNode.loading=T.loading),"noLazyChildren"in T&&(K.treeNode.noLazyChildren=T.noLazyChildren)));const re=`${k},${Z}`,ie=G.columnKey||G.rawColumnKey||"",O=x(Z,I,K),H=I.showOverflowTooltip&&Pp({effect:$},D,I.showOverflowTooltip);return Ce("td",{style:g(k,Z,C,I),class:h(k,Z,C,I,J-1),key:`${ie}${re}`,rowspan:de,colspan:J,onMouseenter:U=>l(U,C,H),onMouseleave:c},[O])}))},x=(C,k,T)=>k.renderCell(T);return{wrappedRowRender:(C,k)=>{const T=e.store,{isRowExpanded:B,assertRowKey:$}=T,{treeData:D,lazyTreeNodeMap:W,childrenColumnName:ne,rowKey:j}=T.states,Q=T.states.columns.value;if(Q.some(({type:le})=>le==="expand")){const le=B(C),I=_(C,k,void 0,le),Z=t.renderExpanded;return le?Z?[[I,Ce("tr",{key:`expanded-row__${I.key}`},[Ce("td",{colspan:Q.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Z({row:C,$index:k,store:T,expanded:le})])])]]:(console.error("[Element Error]renderExpanded is required."),I):[[I]]}else if(Object.keys(D.value).length){$();const le=bt(C,j.value);let I=D.value[le],Z=null;I&&(Z={expanded:I.expanded,level:I.level,display:!0},typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(Z.noLazyChildren=!(I.children&&I.children.length)),Z.loading=I.loading));const de=[_(C,k,Z)];if(I){let J=0;const G=(re,ie)=>{!(re&&re.length&&ie)||re.forEach(O=>{const H={display:ie.display&&ie.expanded,level:ie.level+1,expanded:!1,noLazyChildren:!1,loading:!1},U=bt(O,j.value);if(U==null)throw new Error("For nested data item, row-key is required.");if(I={...D.value[U]},I&&(H.expanded=I.expanded,I.level=I.level||H.level,I.display=!!(I.expanded&&H.display),typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(H.noLazyChildren=!(I.children&&I.children.length)),H.loading=I.loading)),J++,de.push(_(O,k+J,H)),I){const te=W.value[U]||O[ne.value];G(te,I)}})};I.display=!0;const K=W.value[le]||C[ne.value];G(K,I)}return de}else return _(C,k,void 0)},tooltipContent:u,tooltipTrigger:d}}const hT={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var pT=Y({name:"ElTableBody",props:hT,setup(e){const t=De(),n=we(Bn),o=he("table"),{wrappedRowRender:s,tooltipContent:i,tooltipTrigger:r}=fT(e),{onColumnsChange:a,onScrollableChange:l}=Kg(n);return se(e.store.states.hoverRow,(c,u)=>{!e.store.states.isComplex.value||!ot||qw(()=>{const d=t==null?void 0:t.vnode.el,f=Array.from((d==null?void 0:d.children)||[]).filter(h=>h==null?void 0:h.classList.contains(`${o.e("row")}`)),p=f[u],g=f[c];p&&Qr(p,"hover-row"),g&&lc(g,"hover-row")})}),qi(()=>{var c;(c=qn)==null||c()}),{ns:o,onColumnsChange:a,onScrollableChange:l,wrappedRowRender:s,tooltipContent:i,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ce("tbody",{tabIndex:-1},[n.reduce((o,s)=>o.concat(e(s,o.length)),[])])}});function Gc(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(s=>s.width===void 0)&&(n=[]);const o=s=>{const i={key:`${e.tableLayout}_${s.id}`,style:{},name:void 0};return t?i.style={width:`${s.width}px`}:i.name=s.id,i};return Ce("colgroup",{},n.map(s=>Ce("col",o(s))))}Gc.props=["columns","tableLayout"];function gT(){const e=we(Bn),t=e==null?void 0:e.store,n=P(()=>t.states.fixedLeafColumnsLength.value),o=P(()=>t.states.rightFixedColumns.value.length),s=P(()=>t.states.columns.value.length),i=P(()=>t.states.fixedColumns.value.length),r=P(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:s,leftFixedCount:i,rightFixedCount:r,columns:t.states.columns}}function mT(e){const{columns:t}=gT(),n=he("table");return{getCellClasses:(i,r)=>{const a=i[r],l=[n.e("cell"),a.id,a.align,a.labelClassName,...qc(n.b(),r,a.fixed,e.store)];return a.className&&l.push(a.className),a.children||l.push(n.is("leaf")),l},getCellStyles:(i,r)=>{const a=Yc(r,i.fixed,e.store);return Ls(a,"left"),Ls(a,"right"),a},columns:t}}var vT=Y({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=mT(e);return{ns:he("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:s,ns:i}=this,r=this.store.states.data.value;let a=[];return o?a=o({columns:e,data:r}):e.forEach((l,c)=>{if(c===0){a[c]=s;return}const u=r.map(g=>Number(g[l.property])),d=[];let f=!0;u.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const h=`${g}`.split(".")[1];d.push(h?h.length:0)}});const p=Math.max.apply(null,d);f?a[c]="":a[c]=u.reduce((g,h)=>{const v=Number(h);return Number.isNaN(+v)?g:Number.parseFloat((g+h).toFixed(Math.min(p,20)))},0)}),Ce("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Gc({columns:e}),Ce("tbody",[Ce("tr",{},[...e.map((l,c)=>Ce("td",{key:c,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,c),style:t(l,c)},[Ce("div",{class:["cell",l.labelClassName]},[a[c]])]))])])])}});function bT(e){return{setCurrentRow:u=>{e.commit("setCurrentRow",u)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(u,d)=>{e.toggleRowSelection(u,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:u=>{e.clearFilter(u)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(u,d)=>{e.toggleRowExpansionAdapter(u,d)},clearSort:()=>{e.clearSort()},sort:(u,d)=>{e.commit("sort",{prop:u,order:d})}}}function yT(e,t,n,o){const s=A(!1),i=A(null),r=A(!1),a=I=>{r.value=I},l=A({width:null,height:null,headerHeight:null}),c=A(!1),u={display:"inline-block",verticalAlign:"middle"},d=A(),f=A(0),p=A(0),g=A(0),h=A(0),v=A(0);Co(()=>{t.setHeight(e.height)}),Co(()=>{t.setMaxHeight(e.maxHeight)}),se(()=>[e.currentRowKey,n.states.rowKey],([I,Z])=>{!b(Z)||!b(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),se(()=>e.data,I=>{o.store.commit("setData",I)},{immediate:!0,deep:!0}),Co(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},y=(I,Z)=>{const{pixelX:de,pixelY:J}=Z;Math.abs(de)>=Math.abs(J)&&(o.refs.bodyWrapper.scrollLeft+=Z.pixelX/5)},w=P(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=P(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(T)};Be(async()=>{await xe(),n.updateColumns(),B(),requestAnimationFrame(x);const I=o.vnode.el,Z=o.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),l.value={width:d.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&Z?Z.offsetHeight:null},n.states.columns.value.forEach(de=>{de.filteredValue&&de.filteredValue.length&&o.store.commit("filterChange",{column:de,values:de.filteredValue,silent:!0})}),o.$ready=!0});const S=(I,Z)=>{if(!I)return;const de=Array.from(I.classList).filter(J=>!J.startsWith("is-scrolling-"));de.push(t.scrollX.value?Z:"is-scrolling-none"),I.className=de.join(" ")},C=I=>{const{tableWrapper:Z}=o.refs;S(Z,I)},k=I=>{const{tableWrapper:Z}=o.refs;return!!(Z&&Z.classList.contains(I))},T=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const ie="is-scrolling-none";k(ie)||C(ie);return}const I=o.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:Z,offsetWidth:de,scrollWidth:J}=I,{headerWrapper:G,footerWrapper:K}=o.refs;G&&(G.scrollLeft=Z),K&&(K.scrollLeft=Z);const re=J-de-1;Z>=re?C("is-scrolling-right"):C(Z===0?"is-scrolling-left":"is-scrolling-middle")},B=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&is(o.refs.scrollBarRef.wrapRef,"scroll",T,{passive:!0}),e.fit?In(o.vnode.el,$):is(window,"resize",$),In(o.refs.bodyWrapper,()=>{var I,Z;$(),(Z=(I=o.refs)==null?void 0:I.scrollBarRef)==null||Z.update()}))},$=()=>{var I,Z,de,J;const G=o.vnode.el;if(!o.$ready||!G)return;let K=!1;const{width:re,height:ie,headerHeight:O}=l.value,H=d.value=G.offsetWidth;re!==H&&(K=!0);const U=G.offsetHeight;(e.height||w.value)&&ie!==U&&(K=!0);const te=e.tableLayout==="fixed"?o.refs.headerWrapper:(I=o.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(te==null?void 0:te.offsetHeight)!==O&&(K=!0),f.value=((Z=o.refs.tableWrapper)==null?void 0:Z.scrollHeight)||0,g.value=(te==null?void 0:te.scrollHeight)||0,h.value=((de=o.refs.footerWrapper)==null?void 0:de.offsetHeight)||0,v.value=((J=o.refs.appendWrapper)==null?void 0:J.offsetHeight)||0,p.value=f.value-g.value-h.value-v.value,K&&(l.value={width:H,height:U,headerHeight:e.showHeader&&(te==null?void 0:te.offsetHeight)||0},x())},D=cn(),W=P(()=>{const{bodyWidth:I,scrollY:Z,gutterWidth:de}=t;return I.value?`${I.value-(Z.value?de:0)}px`:""}),ne=P(()=>e.maxHeight?"fixed":e.tableLayout),j=P(()=>{if(e.data&&e.data.length)return null;let I="100%";e.height&&p.value&&(I=`${p.value}px`);const Z=d.value;return{width:Z?`${Z}px`:"",height:I}}),Q=P(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),V=P(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${g.value+h.value}px)`}:{maxHeight:`${e.maxHeight-g.value-h.value}px`}:{});return{isHidden:s,renderExpanded:i,setDragVisible:a,isGroup:c,handleMouseLeave:m,handleHeaderFooterMousewheel:y,tableSize:D,emptyBlockStyle:j,handleFixedMousewheel:(I,Z)=>{const de=o.refs.bodyWrapper;if(Math.abs(Z.spinY)>0){const J=de.scrollTop;Z.pixelY<0&&J!==0&&I.preventDefault(),Z.pixelY>0&&de.scrollHeight-de.clientHeight>J&&I.preventDefault(),de.scrollTop+=Math.ceil(Z.pixelY/5)}else de.scrollLeft+=Math.ceil(Z.pixelX/5)},resizeProxyVisible:r,bodyWidth:W,resizeState:l,doLayout:x,tableBodyStyles:_,tableLayout:ne,scrollbarViewStyle:u,tableInnerStyle:Q,scrollbarStyle:V}}function _T(e){const t=A(),n=()=>{const s=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},r=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{r.forEach(a=>a())}),t.value.observe(s,i)};Be(()=>{n()}),qi(()=>{var o;(o=t.value)==null||o.disconnect()})}var wT={data:{type:Array,default:()=>[]},size:ao,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const xT=()=>{const e=A(),t=(i,r)=>{const a=e.value;a&&a.scrollTo(i,r)},n=(i,r)=>{const a=e.value;a&&He(r)&&["Top","Left"].includes(i)&&a[`setScroll${i}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let ST=1;const CT=Y({name:"ElTable",directives:{Mousewheel:wk},components:{TableHeader:cT,TableBody:pT,TableFooter:vT,ElScrollbar:Ic,hColgroup:Gc},props:wT,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Wt(),n=he("table"),o=De();rt(Bn,o);const s=GP(o,e);o.store=s;const i=new QP({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=i;const r=P(()=>(s.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:g,sort:h}=bT(s),{isHidden:v,renderExpanded:m,setDragVisible:y,isGroup:w,handleMouseLeave:_,handleHeaderFooterMousewheel:x,tableSize:S,emptyBlockStyle:C,handleFixedMousewheel:k,resizeProxyVisible:T,bodyWidth:B,resizeState:$,doLayout:D,tableBodyStyles:W,tableLayout:ne,scrollbarViewStyle:j,tableInnerStyle:Q,scrollbarStyle:V}=yT(e,i,s,o),{scrollBarRef:le,scrollTo:I,setScrollLeft:Z,setScrollTop:de}=xT(),J=rs(D,50),G=`${n.namespace.value}-table_${ST++}`;o.tableId=G,o.state={isGroup:w,resizeState:$,doLayout:D,debouncedUpdateLayout:J};const K=P(()=>e.sumText||t("el.table.sumText")),re=P(()=>e.emptyText||t("el.table.emptyText"));return _T(o),{ns:n,layout:i,store:s,handleHeaderFooterMousewheel:x,handleMouseLeave:_,tableId:G,tableSize:S,isHidden:v,isEmpty:r,renderExpanded:m,resizeProxyVisible:T,resizeState:$,isGroup:w,bodyWidth:B,tableBodyStyles:W,emptyBlockStyle:C,debouncedUpdateLayout:J,handleFixedMousewheel:k,setCurrentRow:a,getSelectionRows:l,toggleRowSelection:c,clearSelection:u,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:p,clearSort:g,doLayout:D,sort:h,t,setDragVisible:y,context:o,computedSumText:K,computedEmptyText:re,tableLayout:ne,scrollbarViewStyle:j,tableInnerStyle:Q,scrollbarStyle:V,scrollBarRef:le,scrollTo:I,setScrollLeft:Z,setScrollTop:de}}}),kT=["data-prefix"],ET={ref:"hiddenColumns",class:"hidden-columns"};function MT(e,t,n,o,s,i){const r=Me("hColgroup"),a=Me("table-header"),l=Me("table-body"),c=Me("el-scrollbar"),u=Me("table-footer"),d=ds("mousewheel");return M(),N("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Te(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...f)=>e.handleMouseLeave&&e.handleMouseLeave(...f))},[E("div",{class:R(e.ns.e("inner-wrapper")),style:Te(e.tableInnerStyle)},[E("div",ET,[me(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?We((M(),N("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:Te(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[L(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),L(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):X("v-if",!0),E("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[L(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:F(()=>[E("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Te({width:e.bodyWidth,tableLayout:e.tableLayout})},[L(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(M(),q(a,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):X("v-if",!0),L(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(M(),N("div",{key:0,ref:"emptyBlock",style:Te(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[E("span",{class:R(e.ns.e("empty-text"))},[me(e.$slots,"empty",{},()=>[fe(ce(e.computedEmptyText),1)])],2)],6)):X("v-if",!0),e.$slots.append?(M(),N("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[me(e.$slots,"append")],2)):X("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?We((M(),N("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[L(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Te(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Et,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):X("v-if",!0),e.border||e.isGroup?(M(),N("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):X("v-if",!0)],6),We(E("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[Et,e.resizeProxyVisible]])],46,kT)}var PT=ve(CT,[["render",MT],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const TT={selection:"table-column--selection",expand:"table__expand-column"},OT={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},AT=e=>TT[e]||"",RT={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Ce(ls,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:o}){return Ce(ls,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:s=>s.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return typeof o=="number"?n=t+o:typeof o=="function"&&(n=o(t)),Ce("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,s=[o.e("expand-icon")];return n&&s.push(o.em("expand-icon","expanded")),Ce("div",{class:s,onClick:function(r){r.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ce($e,null,{default:()=>[Ce(va)]})]})},sortable:!1,resizable:!1}};function LT({row:e,column:t,$index:n}){var o;const s=t.property,i=s&&Or(e,s).value;return t&&t.formatter?t.formatter(e,t,i,n):((o=i==null?void 0:i.toString)==null?void 0:o.call(i))||""}function $T({row:e,treeNode:t,store:n},o=!1){const{ns:s}=n;if(!t)return o?[Ce("span",{class:s.e("placeholder")})]:null;const i=[],r=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Ce("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let l=va;t.loading&&(l=dc),i.push(Ce("div",{class:a,onClick:r},{default:()=>[Ce($e,{class:{[s.is("loading")]:t.loading}},{default:()=>[Ce(l)]})]}))}else i.push(Ce("span",{class:s.e("placeholder")}));return i}function Hd(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function IT(e,t){const n=De();return{registerComplexWatchers:()=>{const i=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},a=Hd(i,r);Object.keys(a).forEach(l=>{const c=r[l];so(t,c)&&se(()=>t[c],u=>{let d=u;c==="width"&&l==="realWidth"&&(d=Kc(u)),c==="minWidth"&&l==="realMinWidth"&&(d=Vg(u)),n.columnConfig.value[c]=d,n.columnConfig.value[l]=d;const f=c==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],r={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=Hd(i,r);Object.keys(a).forEach(l=>{const c=r[l];so(t,c)&&se(()=>t[c],u=>{n.columnConfig.value[l]=u})})}}}function FT(e,t,n){const o=De(),s=A(""),i=A(!1),r=A(),a=A(),l=he("table");Co(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),Co(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:r.value,a.value});const c=P(()=>{let _=o.vnode.vParent||o.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),u=P(()=>{const{store:_}=o.parent;if(!_)return!1;const{treeData:x}=_.states,S=x.value;return S&&Object.keys(S).length>0}),d=A(Kc(e.width)),f=A(Vg(e.minWidth)),p=_=>(d.value&&(_.width=d.value),f.value&&(_.minWidth=f.value),!d.value&&f.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),g=_=>{const x=_.type,S=RT[x]||{};Object.keys(S).forEach(k=>{const T=S[k];k!=="className"&&T!==void 0&&(_[k]=T)});const C=AT(x);if(C){const k=`${b(l.namespace)}-${C}`;_.className=_.className?`${_.className} ${k}`:k}return _},h=_=>{Array.isArray(_)?_.forEach(S=>x(S)):x(_);function x(S){var C;((C=S==null?void 0:S.type)==null?void 0:C.name)==="ElTableColumn"&&(S.vParent=o)}};return{columnId:s,realAlign:r,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=S=>{o.columnConfig.value.label;const C=t.header;return C?C(S):_.label});let x=_.renderCell;return _.type==="expand"?(_.renderCell=S=>Ce("div",{class:"cell"},[x(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(x=x||LT,_.renderCell=S=>{let C=null;if(t.default){const W=t.default(S);C=W.some(ne=>ne.type!==Wh)?W:x(S)}else C=x(S);const{columns:k}=n.value.store.states,T=k.value.findIndex(W=>W.type==="default"),B=u.value&&S.cellIndex===T,$=$T(S,B),D={class:"cell",style:{}};return _.showOverflowTooltip&&(D.class=`${D.class} ${b(l.namespace)}-tooltip`,D.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),h(C),Ce("div",D,[$,C])}),_},getPropsData:(..._)=>_.reduce((x,S)=>(Array.isArray(S)&&S.forEach(C=>{x[C]=e[C]}),x),{}),getColumnElIndex:(_,x)=>Array.prototype.indexOf.call(_,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var DT={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let BT=1;var Yg=Y({name:"ElTableColumn",components:{ElCheckbox:ls},props:DT,setup(e,{slots:t}){const n=De(),o=A({}),s=P(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:i,registerComplexWatchers:r}=IT(s,e),{columnId:a,isSubColumn:l,realHeaderAlign:c,columnOrTableParent:u,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:p,getPropsData:g,getColumnElIndex:h,realAlign:v,updateColumnOrder:m}=FT(e,t,s),y=u.value;a.value=`${y.tableId||y.columnId}_column_${BT++}`,cc(()=>{l.value=s.value!==y;const w=e.type||"default",_=e.sortable===""?!0:e.sortable,x=Po(e.showOverflowTooltip)?y.props.showOverflowTooltip:e.showOverflowTooltip,S={...OT[w],id:a.value,type:w,property:e.prop||e.property,align:v,headerAlign:c,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let $=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);$=BP(S,$),$=zP(p,d,f)($),o.value=$,i(),r()}),Be(()=>{var w;const _=u.value,x=l.value?_.vnode.el.children:(w=_.refs.hiddenColumns)==null?void 0:w.children,S=()=>h(x||[],n.vnode.el);o.value.getColumnIndex=S,S()>-1&&s.value.store.commit("insertColumn",o.value,l.value?_.columnConfig.value:null,m)}),Pt(()=>{s.value.store.commit("removeColumn",o.value,l.value?y.columnConfig.value:null,m)}),n.columnId=a.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),s=[];if(Array.isArray(o))for(const r of o)((n=r.type)==null?void 0:n.name)==="ElTableColumn"||r.shapeFlag&2?s.push(r):r.type===Ge&&Array.isArray(r.children)&&r.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!st(a==null?void 0:a.children)&&s.push(a)});return Ce("div",s)}catch{return Ce("div",[])}}});const NT=dt(PT,{TableColumn:Yg}),zT=un(Yg),Ca=Symbol("tabsRootContextKey"),VT=ke({tabs:{type:ye(Array),default:()=>pn([])}}),Gg="ElTabBar",HT=Y({name:Gg}),WT=Y({...HT,props:VT,setup(e,{expose:t}){const n=e,o=De(),s=we(Ca);s||Ro(Gg,"<el-tabs><el-tab-bar /></el-tabs>");const i=he("tabs"),r=A(),a=A(),l=()=>{let u=0,d=0;const f=["top","bottom"].includes(s.props.tabPosition)?"width":"height",p=f==="width"?"x":"y",g=p==="x"?"left":"top";return n.tabs.every(h=>{var v,m;const y=(m=(v=o.parent)==null?void 0:v.refs)==null?void 0:m[`tab-${h.uid}`];if(!y)return!1;if(!h.active)return!0;u=y[`offset${bo(g)}`],d=y[`client${bo(f)}`];const w=window.getComputedStyle(y);return f==="width"&&(n.tabs.length>1&&(d-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),u+=Number.parseFloat(w.paddingLeft)),!1}),{[f]:`${d}px`,transform:`translate${bo(p)}(${u}px)`}},c=()=>a.value=l();return se(()=>n.tabs,async()=>{await xe(),c()},{immediate:!0}),In(r,()=>c()),t({ref:r,update:c}),(u,d)=>(M(),N("div",{ref_key:"barRef",ref:r,class:R([b(i).e("active-bar"),b(i).is(b(s).props.tabPosition)]),style:Te(a.value)},null,6))}});var jT=ve(WT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const UT=ke({panes:{type:ye(Array),default:()=>pn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),KT={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Wd="ElTabNav",qT=Y({name:Wd,props:UT,emits:KT,setup(e,{expose:t,emit:n}){const o=De(),s=we(Ca);s||Ro(Wd,"<el-tabs><tab-nav /></el-tabs>");const i=he("tabs"),r=Xv(),a=Qv(),l=A(),c=A(),u=A(),d=A(),f=A(!1),p=A(0),g=A(!1),h=A(!0),v=P(()=>["top","bottom"].includes(s.props.tabPosition)?"width":"height"),m=P(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${p.value}px)`})),y=()=>{if(!l.value)return;const T=l.value[`offset${bo(v.value)}`],B=p.value;if(!B)return;const $=B>T?B-T:0;p.value=$},w=()=>{if(!l.value||!c.value)return;const T=c.value[`offset${bo(v.value)}`],B=l.value[`offset${bo(v.value)}`],$=p.value;if(T-$<=B)return;const D=T-$>B*2?$+B:T-B;p.value=D},_=async()=>{const T=c.value;if(!f.value||!u.value||!l.value||!T)return;await xe();const B=u.value.querySelector(".is-active");if(!B)return;const $=l.value,D=["top","bottom"].includes(s.props.tabPosition),W=B.getBoundingClientRect(),ne=$.getBoundingClientRect(),j=D?T.offsetWidth-ne.width:T.offsetHeight-ne.height,Q=p.value;let V=Q;D?(W.left<ne.left&&(V=Q-(ne.left-W.left)),W.right>ne.right&&(V=Q+W.right-ne.right)):(W.top<ne.top&&(V=Q-(ne.top-W.top)),W.bottom>ne.bottom&&(V=Q+(W.bottom-ne.bottom))),V=Math.max(V,0),p.value=Math.min(V,j)},x=()=>{var T;if(!c.value||!l.value)return;e.stretch&&((T=d.value)==null||T.update());const B=c.value[`offset${bo(v.value)}`],$=l.value[`offset${bo(v.value)}`],D=p.value;$<B?(f.value=f.value||{},f.value.prev=D,f.value.next=D+$<B,B-D<$&&(p.value=B-$)):(f.value=!1,D>0&&(p.value=0))},S=T=>{const B=T.code,{up:$,down:D,left:W,right:ne}=on;if(![$,D,W,ne].includes(B))return;const j=Array.from(T.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Q=j.indexOf(T.target);let V;B===W||B===$?Q===0?V=j.length-1:V=Q-1:Q<j.length-1?V=Q+1:V=0,j[V].focus({preventScroll:!0}),j[V].click(),C()},C=()=>{h.value&&(g.value=!0)},k=()=>g.value=!1;return se(r,T=>{T==="hidden"?h.value=!1:T==="visible"&&setTimeout(()=>h.value=!0,50)}),se(a,T=>{T?setTimeout(()=>h.value=!0,50):h.value=!1}),In(u,x),Be(()=>setTimeout(()=>_(),0)),ma(()=>x()),t({scrollToActiveTab:_,removeFocus:k}),se(()=>e.panes,()=>o.update(),{flush:"post",deep:!0}),()=>{const T=f.value?[L("span",{class:[i.e("nav-prev"),i.is("disabled",!f.value.prev)],onClick:y},[L($e,null,{default:()=>[L(Gh,null,null)]})]),L("span",{class:[i.e("nav-next"),i.is("disabled",!f.value.next)],onClick:w},[L($e,null,{default:()=>[L(va,null,null)]})])]:null,B=e.panes.map(($,D)=>{var W,ne,j,Q;const V=$.uid,le=$.props.disabled,I=(ne=(W=$.props.name)!=null?W:$.index)!=null?ne:`${D}`,Z=!le&&($.isClosable||e.editable);$.index=`${D}`;const de=Z?L($e,{class:"is-icon-close",onClick:K=>n("tabRemove",$,K)},{default:()=>[L(Mi,null,null)]}):null,J=((Q=(j=$.slots).label)==null?void 0:Q.call(j))||$.props.label,G=!le&&$.active?0:-1;return L("div",{ref:`tab-${V}`,class:[i.e("item"),i.is(s.props.tabPosition),i.is("active",$.active),i.is("disabled",le),i.is("closable",Z),i.is("focus",g.value)],id:`tab-${I}`,key:`tab-${V}`,"aria-controls":`pane-${I}`,role:"tab","aria-selected":$.active,tabindex:G,onFocus:()=>C(),onBlur:()=>k(),onClick:K=>{k(),n("tabClick",$,I,K)},onKeydown:K=>{Z&&(K.code===on.delete||K.code===on.backspace)&&n("tabRemove",$,K)}},[J,de])});return L("div",{ref:u,class:[i.e("nav-wrap"),i.is("scrollable",!!f.value),i.is(s.props.tabPosition)]},[T,L("div",{class:i.e("nav-scroll"),ref:l},[L("div",{class:[i.e("nav"),i.is(s.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(s.props.tabPosition))],ref:c,style:m.value,role:"tablist",onKeydown:S},[e.type?null:L(jT,{ref:d,tabs:[...e.panes]},null),B])])])}}}),YT=ke({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ye(Function),default:()=>!0},stretch:Boolean}),ja=e=>st(e)||He(e),GT={[Je]:e=>ja(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>ja(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>ja(e),tabAdd:()=>!0};var XT=Y({name:"ElTabs",props:YT,emits:GT,setup(e,{emit:t,slots:n,expose:o}){var s,i;const r=he("tabs"),{children:a,addChild:l,removeChild:c}=Yp(De(),"ElTabPane"),u=A(),d=A((i=(s=e.modelValue)!=null?s:e.activeName)!=null?i:"0"),f=m=>{d.value=m,t(Je,m),t("tabChange",m)},p=async m=>{var y,w,_;if(!(d.value===m||Po(m)))try{await((y=e.beforeLeave)==null?void 0:y.call(e,m,d.value))!==!1&&(f(m),(_=(w=u.value)==null?void 0:w.removeFocus)==null||_.call(w))}catch{}},g=(m,y,w)=>{m.props.disabled||(p(y),t("tabClick",m,w))},h=(m,y)=>{m.props.disabled||Po(m.props.name)||(y.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")};return ya({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},P(()=>!!e.activeName)),se(()=>e.activeName,m=>p(m)),se(()=>e.modelValue,m=>p(m)),se(d,async()=>{var m;await xe(),(m=u.value)==null||m.scrollToActiveTab()}),rt(Ca,{props:e,currentName:d,registerPane:l,unregisterPane:c}),o({currentName:d}),()=>{const m=e.editable||e.addable?L("span",{class:r.e("new-tab"),tabindex:"0",onClick:v,onKeydown:_=>{_.code===on.enter&&v()}},[L($e,{class:r.is("icon-plus")},{default:()=>[L(Jv,null,null)]})]):null,y=L("div",{class:[r.e("header"),r.is(e.tabPosition)]},[m,L(qT,{ref:u,currentName:d.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:g,onTabRemove:h},null)]),w=L("div",{class:r.e("content")},[me(n,"default")]);return L("div",{class:[r.b(),r.m(e.tabPosition),{[r.m("card")]:e.type==="card",[r.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[y,w]:[w,y]])}}});const QT=ke({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),JT=["id","aria-hidden","aria-labelledby"],Xg="ElTabPane",ZT=Y({name:Xg}),eO=Y({...ZT,props:QT,setup(e){const t=e,n=De(),o=Hs(),s=we(Ca);s||Ro(Xg,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=he("tab-pane"),r=A(),a=P(()=>t.closable||s.props.closable),l=bu(()=>{var p;return s.currentName.value===((p=t.name)!=null?p:r.value)}),c=A(l.value),u=P(()=>{var p;return(p=t.name)!=null?p:r.value}),d=bu(()=>!t.lazy||c.value||l.value);se(l,p=>{p&&(c.value=!0)});const f=Ht({uid:n.uid,slots:o,props:t,paneName:u,active:l,index:r,isClosable:a});return Be(()=>{s.registerPane(f)}),qi(()=>{s.unregisterPane(f.uid)}),(p,g)=>b(d)?We((M(),N("div",{key:0,id:`pane-${b(u)}`,class:R(b(i).b()),role:"tabpanel","aria-hidden":!b(l),"aria-labelledby":`tab-${b(u)}`},[me(p.$slots,"default")],10,JT)),[[Et,b(l)]]):X("v-if",!0)}});var Qg=ve(eO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const Jg=dt(XT,{TabPane:Qg}),Zg=un(Qg),em=["success","info","warning","error"],Ft=pn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ot?document.body:void 0}),tO=ke({customClass:{type:String,default:Ft.customClass},center:{type:Boolean,default:Ft.center},dangerouslyUseHTMLString:{type:Boolean,default:Ft.dangerouslyUseHTMLString},duration:{type:Number,default:Ft.duration},icon:{type:yt,default:Ft.icon},id:{type:String,default:Ft.id},message:{type:ye([String,Object,Function]),default:Ft.message},onClose:{type:ye(Function),required:!1},showClose:{type:Boolean,default:Ft.showClose},type:{type:String,values:em,default:Ft.type},offset:{type:Number,default:Ft.offset},zIndex:{type:Number,default:Ft.zIndex},grouping:{type:Boolean,default:Ft.grouping},repeatNum:{type:Number,default:Ft.repeatNum}}),nO={destroy:()=>!0},gn=Xh([]),oO=e=>{const t=gn.findIndex(s=>s.id===e),n=gn[t];let o;return t>0&&(o=gn[t-1]),{current:n,prev:o}},sO=e=>{const{prev:t}=oO(e);return t?t.vm.exposed.bottom.value:0},iO=(e,t)=>gn.findIndex(o=>o.id===e)>0?20:t,rO=["id"],aO=["innerHTML"],lO=Y({name:"ElMessage"}),cO=Y({...lO,props:tO,emits:nO,setup(e,{expose:t}){const n=e,{Close:o}=Jh,{ns:s,zIndex:i}=Qh("message"),{currentZIndex:r,nextZIndex:a}=i,l=A(),c=A(!1),u=A(0);let d;const f=P(()=>n.type?n.type==="error"?"danger":n.type:"info"),p=P(()=>{const C=n.type;return{[s.bm("icon",C)]:C&&Zr[C]}}),g=P(()=>n.icon||Zr[n.type]||""),h=P(()=>sO(n.id)),v=P(()=>iO(n.id,n.offset)+h.value),m=P(()=>u.value+v.value),y=P(()=>({top:`${v.value}px`,zIndex:r.value}));function w(){n.duration!==0&&({stop:d}=Zv(()=>{x()},n.duration))}function _(){d==null||d()}function x(){c.value=!1}function S({code:C}){C===on.esc&&x()}return Be(()=>{w(),a(),c.value=!0}),se(()=>n.repeatNum,()=>{_(),w()}),is(document,"keydown",S),In(l,()=>{u.value=l.value.getBoundingClientRect().height}),t({visible:c,bottom:m,close:x}),(C,k)=>(M(),q(Mo,{name:b(s).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:k[0]||(k[0]=T=>C.$emit("destroy")),persisted:""},{default:F(()=>[We(E("div",{id:C.id,ref_key:"messageRef",ref:l,class:R([b(s).b(),{[b(s).m(C.type)]:C.type&&!C.icon},b(s).is("center",C.center),b(s).is("closable",C.showClose),C.customClass]),style:Te(b(y)),role:"alert",onMouseenter:_,onMouseleave:w},[C.repeatNum>1?(M(),q(b(VC),{key:0,value:C.repeatNum,type:b(f),class:R(b(s).e("badge"))},null,8,["value","type","class"])):X("v-if",!0),b(g)?(M(),q(b($e),{key:1,class:R([b(s).e("icon"),b(p)])},{default:F(()=>[(M(),q(Ke(b(g))))]),_:1},8,["class"])):X("v-if",!0),me(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(M(),N(Ge,{key:1},[X(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:R(b(s).e("content")),innerHTML:C.message},null,10,aO)],2112)):(M(),N("p",{key:0,class:R(b(s).e("content"))},ce(C.message),3))]),C.showClose?(M(),q(b($e),{key:2,class:R(b(s).e("closeBtn")),onClick:et(x,["stop"])},{default:F(()=>[L(b(o))]),_:1},8,["class","onClick"])):X("v-if",!0)],46,rO),[[Et,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var uO=ve(cO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let dO=1;const tm=e=>{const t=!e||st(e)||ss(e)||mt(e)?{message:e}:e,n={...Ft,...t};if(!n.appendTo)n.appendTo=document.body;else if(st(n.appendTo)){let o=document.querySelector(n.appendTo);oo(o)||(o=document.body),n.appendTo=o}return n},fO=e=>{const t=gn.indexOf(e);if(t===-1)return;gn.splice(t,1);const{handler:n}=e;n.close()},hO=({appendTo:e,...t},n)=>{const o=`message_${dO++}`,s=t.onClose,i=document.createElement("div"),r={...t,id:o,onClose:()=>{s==null||s(),fO(u)},onDestroy:()=>{ea(null,i)}},a=L(uO,r,mt(r.message)||ss(r.message)?{default:mt(r.message)?r.message:()=>r.message}:null);a.appContext=n||$s._context,ea(a,i),e.appendChild(i.firstElementChild);const l=a.component,u={id:o,vnode:a,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:a.component.props};return u},$s=(e={},t)=>{if(!ot)return{close:()=>{}};if(He(bl.max)&&gn.length>=bl.max)return{close:()=>{}};const n=tm(e);if(n.grouping&&gn.length){const s=gn.find(({vnode:i})=>{var r;return((r=i.props)==null?void 0:r.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}const o=hO(n,t);return gn.push(o),o.handler};em.forEach(e=>{$s[e]=(t={},n)=>{const o=tm(t);return $s({...o,type:e},n)}});function pO(e){for(const t of gn)(!e||e===t.props.type)&&t.handler.close()}$s.closeAll=pO;$s._context=null;const gO=eb($s,"$message"),mO=Y({name:"ElMessageBox",directives:{TrapFocus:pk},components:{ElButton:Dn,ElFocusTrap:sg,ElInput:$o,ElOverlay:GE,ElIcon:$e,...Jh},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Cc},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:s,size:i}=Qh("message-box",P(()=>e.buttonSize)),{t:r}=n,{nextZIndex:a}=o,l=A(!1),c=Ht({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),u=P(()=>{const j=c.type;return{[s.bm("icon",j)]:j&&Zr[j]}}),d=Rs(),f=Rs(),p=P(()=>c.icon||Zr[c.type]||""),g=P(()=>!!c.message),h=A(),v=A(),m=A(),y=A(),w=A(),_=P(()=>c.confirmButtonClass);se(()=>c.inputValue,async j=>{await xe(),e.boxType==="prompt"&&j!==null&&$()},{immediate:!0}),se(()=>l.value,j=>{var Q,V;j&&(e.boxType!=="prompt"&&(c.autofocus?m.value=(V=(Q=w.value)==null?void 0:Q.$el)!=null?V:h.value:m.value=h.value),c.zIndex=a()),e.boxType==="prompt"&&(j?xe().then(()=>{var le;y.value&&y.value.$el&&(c.autofocus?m.value=(le=D())!=null?le:h.value:m.value=h.value)}):(c.editorErrorMessage="",c.validateError=!1))});const x=P(()=>e.draggable);Qw(h,v,x),Be(async()=>{await xe(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),Pt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){!l.value||(l.value=!1,xe(()=>{c.action&&t("action",c.action)}))}const C=()=>{e.closeOnClickModal&&B(c.distinguishCancelAndClose?"close":"cancel")},k=Wp(C),T=j=>{if(c.inputType!=="textarea")return j.preventDefault(),B("confirm")},B=j=>{var Q;e.boxType==="prompt"&&j==="confirm"&&!$()||(c.action=j,c.beforeClose?(Q=c.beforeClose)==null||Q.call(c,j,c,S):S())},$=()=>{if(e.boxType==="prompt"){const j=c.inputPattern;if(j&&!j.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const Q=c.inputValidator;if(typeof Q=="function"){const V=Q(c.inputValue);if(V===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(typeof V=="string")return c.editorErrorMessage=V,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},D=()=>{const j=y.value.$refs;return j.input||j.textarea},W=()=>{B("close")},ne=()=>{e.closeOnPressEscape&&W()};return e.lockScroll&&Jw(l),{...lo(c),ns:s,overlayEvent:k,visible:l,hasMessage:g,typeClass:u,contentId:d,inputId:f,btnSize:i,iconComponent:p,confirmButtonClasses:_,rootRef:h,focusStartRef:m,headerRef:v,inputRef:y,confirmRef:w,doClose:S,handleClose:W,onCloseRequested:ne,handleWrapperClick:C,handleInputEnter:T,handleAction:B,t:r}}}),vO=["aria-label","aria-describedby"],bO=["aria-label"],yO=["id"];function _O(e,t,n,o,s,i){const r=Me("el-icon"),a=Me("close"),l=Me("el-input"),c=Me("el-button"),u=Me("el-focus-trap"),d=Me("el-overlay");return M(),q(Mo,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:F(()=>[We(L(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:F(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[L(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:F(()=>[E("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Te(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=et(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(M(),N("div",{key:0,ref:"headerRef",class:R(e.ns.e("header"))},[E("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(M(),q(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:F(()=>[(M(),q(Ke(e.iconComponent)))]),_:1},8,["class"])):X("v-if",!0),E("span",null,ce(e.title),1)],2),e.showClose?(M(),N("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=ft(et(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[L(r,{class:R(e.ns.e("close"))},{default:F(()=>[L(a)]),_:1},8,["class"])],42,bO)):X("v-if",!0)],2)):X("v-if",!0),E("div",{id:e.contentId,class:R(e.ns.e("content"))},[E("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(M(),q(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:F(()=>[(M(),q(Ke(e.iconComponent)))]),_:1},8,["class"])):X("v-if",!0),e.hasMessage?(M(),N("div",{key:1,class:R(e.ns.e("message"))},[me(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(M(),q(Ke(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(M(),q(Ke(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:F(()=>[fe(ce(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):X("v-if",!0)],2),We(E("div",{class:R(e.ns.e("input"))},[L(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:ft(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:R(e.ns.e("errormsg")),style:Te({visibility:e.editorErrorMessage?"visible":"hidden"})},ce(e.editorErrorMessage),7)],2),[[Et,e.showInput]])],10,yO),E("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(M(),q(c,{key:0,loading:e.cancelButtonLoading,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=ft(et(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:F(()=>[fe(ce(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):X("v-if",!0),We(L(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=ft(et(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:F(()=>[fe(ce(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Et,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,vO)]),_:3},8,["z-index","overlay-class","mask"]),[[Et,e.visible]])]),_:3})}var wO=ve(mO,[["render",_O],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Fi=new Map,xO=e=>{let t=document.body;return e.appendTo&&(st(e.appendTo)&&(t=document.querySelector(e.appendTo)),oo(e.appendTo)&&(t=e.appendTo),oo(t)||(t=document.body)),t},SO=(e,t,n=null)=>{const o=L(wO,e,mt(e.message)||ss(e.message)?{default:mt(e.message)?e.message:()=>e.message}:null);return o.appContext=n,ea(o,t),xO(e).appendChild(t.firstElementChild),o.component},CO=()=>document.createElement("div"),kO=(e,t)=>{const n=CO();e.onVanish=()=>{ea(null,n),Fi.delete(s)},e.onAction=i=>{const r=Fi.get(s);let a;e.showInput?a={value:s.inputValue,action:i}:a=i,e.callback?e.callback(a,o.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(a)};const o=SO(e,n,t),s=o.proxy;for(const i in e)so(e,i)&&!so(s.$props,i)&&(s[i]=e[i]);return s.visible=!0,s};function qs(e,t=null){if(!ot)return Promise.reject();let n;return st(e)||ss(e)?e={message:e}:n=e.callback,new Promise((o,s)=>{const i=kO(e,t!=null?t:qs._context);Fi.set(i,{options:e,callback:n,resolve:o,reject:s})})}const EO=["alert","confirm","prompt"],MO={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};EO.forEach(e=>{qs[e]=PO(e)});function PO(e){return(t,n,o,s)=>{let i="";return wn(n)?(o=n,i=""):Po(n)?i="":i=n,qs(Object.assign({title:i,message:t,type:"",...MO[e]},o,{boxType:e}),s)}}qs.close=()=>{Fi.forEach((e,t)=>{t.doClose()}),Fi.clear()};qs._context=null;const mo=qs;mo.install=e=>{mo._context=e._context,e.config.globalProperties.$msgbox=mo,e.config.globalProperties.$messageBox=mo,e.config.globalProperties.$alert=mo.alert,e.config.globalProperties.$confirm=mo.confirm,e.config.globalProperties.$prompt=mo.prompt};const jd=mo,kn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},TO={name:"Report",components:{Coffee:Zh,User:ep,Money:tp},data(){return{val:"Hello from Report"}},props:{reportData:{type:Object,required:!0}},methods:{getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e}}},Ys=e=>(Yi("data-v-ebe5bac1"),e=e(),Gi(),e),OO={class:"buymecoffee_report_wrapper"},AO={class:"buymecoffee_report_inner"},RO={class:"buymecoffee_report_count",style:{"text-align":"center"}},LO=["src"],$O={key:0,style:{"max-height":"120px","overflow-y":"hidden"}},IO=Ys(()=>E("li",null,[E("span",null,"Total Received")],-1)),FO=["innerHTML"],DO=["innerHTML"],BO={key:1},NO=Ys(()=>E("br",null,null,-1)),zO={class:"buymecoffee_report_inner"},VO={class:"buymecoffee_report_count",style:{"text-align":"center"}},HO=["src"],WO={key:0,style:{"max-height":"120px","overflow-y":"hidden"}},jO=Ys(()=>E("li",null,[E("span",null,"Amount Pending")],-1)),UO=["innerHTML"],KO=["innerHTML"],qO={key:1},YO=Ys(()=>E("br",null,null,-1)),GO={class:"buymecoffee_report_inner"},XO={class:"buymecoffee_report_count"},QO=["src"],JO=Ys(()=>E("li",null,[E("span",null,"Supporters")],-1)),ZO={style:{margin:"0"}},eA={class:"buymecoffee_report_inner"},tA={class:"buymecoffee_report_count"},nA=["src"],oA=Ys(()=>E("li",null,[E("span",null,"Total Coffee")],-1)),sA={style:{margin:"0"}};function iA(e,t,n,o,s,i){var r,a;return M(),N("div",OO,[E("div",AO,[E("div",RO,[E("img",{src:i.getImage("money.png"),alt:"Money"},null,8,LO),n.reportData.currency_total.length>0?(M(),N("ul",$O,[IO,n.reportData.currency_total.length===1?(M(),N("p",{key:0,style:{margin:"0"},innerHTML:(r=n.reportData)==null?void 0:r.currency_total[0].formatted_total},null,8,FO)):(M(!0),N(Ge,{key:1},Lt(n.reportData.currency_total,l=>(M(),N("li",null,[E("span",{style:{"font-size":"20px"},innerHTML:l.formatted_total},null,8,DO)]))),256))])):(M(),N("span",BO,[NO,fe("No amount received yet!")]))])]),E("div",zO,[E("div",VO,[E("img",{src:i.getImage("money-pending.png"),alt:"MoneyPending"},null,8,HO),n.reportData.currency_total_pending.length>0?(M(),N("ul",WO,[jO,n.reportData.currency_total_pending.length===1?(M(),N("p",{key:0,style:{margin:"0"},innerHTML:(a=n.reportData)==null?void 0:a.currency_total_pending[0].formatted_total},null,8,UO)):(M(!0),N(Ge,{key:1},Lt(n.reportData.currency_total_pending,l=>(M(),N("li",null,[E("span",{style:{"font-size":"20px"},innerHTML:l.formatted_total},null,8,KO)]))),256))])):(M(),N("span",qO,[YO,fe("No pending yet!")]))])]),E("div",GO,[E("div",XO,[E("img",{src:i.getImage("supporters.png"),alt:"supporters"},null,8,QO),E("ul",null,[JO,E("li",null,[E("p",ZO,ce(n.reportData.total_supporters||0),1)])])])]),E("div",eA,[E("div",tA,[E("img",{src:i.getImage("coffee-cup.png"),alt:"coffee-cup"},null,8,nA),E("ul",null,[oA,E("li",null,[E("p",sA,ce(n.reportData.total_coffee||0),1)])])])])])}const rA=kn(TO,[["render",iA],["__scopeId","data-v-ebe5bac1"]]),aA={name:"Supporters",data(){return{currentPage:this.current}},props:{supporters:{type:Array,required:!0},posts_per_page:{type:Number},total:{type:Number||String},current:{type:Number||String},hide_pagination:{type:String,default:"no"},hide_columns:{type:Array,default:[]}},methods:{handleSizeChange(e){this.currentPage=e-1,this.$emit("pageChanged",this.currentPage)},handleGet(e){this.$router.push({name:"Supporter",params:{id:e}})},handleDelete(e){this.$post({action:"buymecoffee_admin_ajax",route:"delete_supporter",data:{id:e},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(()=>{this.$handleSuccess("This record has been deleted."),this.$emit("fetchSupporters")}).catch(t=>{this.$handleError(t)})},maybeGetMethodImage(e){return e==="paypal"?window.BuyMeCoffeeAdmin.assets_url+"images/PayPal.svg":e==="stripe"?window.BuyMeCoffeeAdmin.assets_url+"images/stripe.svg":!1}}},lA=["onClick"],cA=["innerHTML"],uA=["innerHTML"],dA=["src"],fA=E("br",null,null,-1);function hA(e,t,n,o,s,i){const r=zT,a=Dn,l=Dg,c=dk,u=NT,d=ZM;return M(),N("div",null,[L(u,{class:"customers_table",data:n.supporters},{default:F(()=>[n.hide_columns.includes("id")?X("",!0):(M(),q(r,{key:0,width:"80",label:"Id"},{default:F(f=>[E("span",null,ce(f.row.id),1)]),_:1})),n.hide_columns.includes("date")?X("",!0):(M(),q(r,{key:1,width:"180",label:"Date"},{default:F(f=>[E("span",null,ce(f.row.created_at),1)]),_:1})),n.hide_columns.includes("name")?X("",!0):(M(),q(r,{key:2,prop:"supporters_name",width:"200",label:"Name"},{default:F(f=>[E("a",{style:{cursor:"pointer"},onClick:p=>i.handleGet(f.row.id)},ce(f.row.supporters_name),9,lA)]),_:1})),n.hide_columns.includes("amount")?X("",!0):(M(),q(r,{key:3,label:"Amount"},{default:F(f=>[E("span",{class:"wpm_supporters_amount",innerHTML:f.row.amount_formatted},null,8,cA)]),_:1})),n.hide_columns.includes("status")?X("",!0):(M(),q(r,{key:4,prop:"payment_status",label:"Status"},{default:F(f=>[E("span",{class:R("buymecoffee_status buymecoffee_status_"+f.row.payment_status),innerHTML:f.row.payment_status},null,10,uA)]),_:1})),n.hide_columns.includes("method")?X("",!0):(M(),q(r,{key:5,label:"Method"},{default:F(f=>[i.maybeGetMethodImage(f.row.payment_method)?(M(),N("img",{key:0,width:"48",class:"buymecoffee_paid_by_image",src:i.maybeGetMethodImage(f.row.payment_method)},null,8,dA)):(M(),N("span",{key:1,class:R("buymecoffee_payment_type buymecoffee_payment_type_"+f.row.payment_method),style:{"margin-left":"10px"}},ce(f.row.payment_method?f.row.payment_method:"-"),3))]),_:1})),n.hide_columns.includes("mode")?X("",!0):(M(),q(r,{key:6,label:"Mode"},{default:F(f=>[E("span",{class:R("buymecoffee_payment_mode buymecoffee_payment_mode_"+f.row.payment_mode),style:{"margin-left":"10px"}},ce(f.row.payment_mode?f.row.payment_mode:"-"),3)]),_:1})),n.hide_columns.includes("operations")?X("",!0):(M(),q(r,{key:7,label:"Operations"},{default:F(f=>[L(c,null,{default:F(()=>[L(a,{round:"",size:"small",icon:"View",onClick:p=>i.handleGet(f.row.id)},null,8,["onClick"]),L(l,{onConfirm:p=>i.handleDelete(f.row.id),title:"Are you sure to delete this?"},{reference:F(()=>[L(a,{round:"",size:"small",type:"danger",icon:"Delete"})]),_:2},1032,["onConfirm"])]),_:2},1024)]),_:1}))]),_:1},8,["data"]),fA,n.hide_pagination!=="yes"?(M(),q(d,{key:0,onCurrentChange:i.handleSizeChange,"page-size":n.posts_per_page,background:"background",layout:"size, prev, pager, next, total","page-count":Math.ceil(n.total/n.posts_per_page),total:n.total},null,8,["onCurrentChange","page-size","page-count","total"])):X("",!0)])}const nm=kn(aA,[["render",hA]]);/*!
    40  * @kurkle/color v0.3.2
     33*/const tE=function(e,t){if(e&&e.addEventListener){const n=function(o){const s=eE(o);t&&Reflect.apply(t,this,[o,s])};e.addEventListener("wheel",n,{passive:!0})}},nE={beforeMount(e,t){tE(e,t.value)}},$g={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:En,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...zn(["ariaControls"])},Fg={[Je]:e=>Ie(e)||Te(e)||lt(e),change:e=>Ie(e)||Te(e)||lt(e)},Gs=Symbol("checkboxGroupContextKey"),oE=({model:e,isChecked:t})=>{const n=we(Gs,void 0),o=T(()=>{var i,a;const r=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!$t(r)&&e.value.length>=r&&!t.value||!$t(l)&&e.value.length<=l&&t.value});return{isDisabled:hs(T(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},sE=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:s,isLabeledByFormItem:i})=>{const a=we(Gs,void 0),{formItem:r}=fo(),{emit:l}=Ve();function u(p){var g,m,b,w;return[!0,e.trueValue,e.trueLabel].includes(p)?(m=(g=e.trueValue)!=null?g:e.trueLabel)!=null?m:!0:(w=(b=e.falseValue)!=null?b:e.falseLabel)!=null?w:!1}function c(p,g){l("change",u(p),g)}function d(p){if(n.value)return;const g=p.target;l("change",u(g.checked),p)}async function f(p){n.value||!o.value&&!s.value&&i.value&&(p.composedPath().some(b=>b.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await Me(),c(t.value,p)))}const h=T(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return ie(()=>e.modelValue,()=>{h.value&&(r==null||r.validate("change").catch(p=>void 0))}),{handleChange:d,onClickRoot:f}},iE=e=>{const t=R(!1),{emit:n}=Ve(),o=we(Gs,void 0),s=T(()=>$t(o)===!1),i=R(!1),a=T({get(){var r,l;return s.value?(r=o==null?void 0:o.modelValue)==null?void 0:r.value:(l=e.modelValue)!=null?l:t.value},set(r){var l,u;s.value&&ze(r)?(i.value=((l=o==null?void 0:o.max)==null?void 0:l.value)!==void 0&&r.length>(o==null?void 0:o.max.value)&&r.length>a.value.length,i.value===!1&&((u=o==null?void 0:o.changeEvent)==null||u.call(o,r))):(n(Je,r),t.value=r)}});return{model:a,isGroup:s,isLimitExceeded:i}},aE=(e,t,{model:n})=>{const o=we(Gs,void 0),s=R(!1),i=T(()=>Ti(e.value)?e.label:e.value),a=T(()=>{const c=n.value;return lt(c)?c:ze(c)?St(i.value)?c.map(gl).some(d=>ts(d,i.value)):c.map(gl).includes(i.value):c!=null?c===e.trueValue||c===e.trueLabel:!!c}),r=cn(T(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value}),{prop:!0}),l=cn(T(()=>{var c;return(c=o==null?void 0:o.size)==null?void 0:c.value})),u=T(()=>!!t.default||!Ti(i.value));return{checkboxButtonSize:r,isChecked:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,actualValue:i}},Bg=(e,t)=>{const{formItem:n}=fo(),{model:o,isGroup:s,isLimitExceeded:i}=iE(e),{isFocused:a,isChecked:r,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:d}=aE(e,t,{model:o}),{isDisabled:f}=oE({model:o,isChecked:r}),{inputId:h,isLabeledByFormItem:p}=ps(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:s}),{handleChange:g,onClickRoot:m}=sE(e,{model:o,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:p});return(()=>{function w(){var S,_;ze(o.value)&&!o.value.includes(d.value)?o.value.push(d.value):o.value=(_=(S=e.trueValue)!=null?S:e.trueLabel)!=null?_:!0}e.checked&&w()})(),ns({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},T(()=>s.value&&Ti(e.value))),ns({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},T(()=>!!e.trueLabel)),ns({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},T(()=>!!e.falseLabel)),{inputId:h,isLabeledByFormItem:p,isChecked:r,isDisabled:f,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:o,actualValue:d,handleChange:g,onClickRoot:m}},rE=K({name:"ElCheckbox"}),lE=K({...rE,props:$g,emits:Fg,setup(e){const t=e,n=ds(),{inputId:o,isLabeledByFormItem:s,isChecked:i,isDisabled:a,isFocused:r,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=Bg(t,n),p=pe("checkbox"),g=T(()=>[p.b(),p.m(l.value),p.is("disabled",a.value),p.is("bordered",t.border),p.is("checked",i.value)]),m=T(()=>[p.e("input"),p.is("disabled",a.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",r.value)]);return(b,w)=>(M(),G(Ue(!v(u)&&v(s)?"span":"label"),{class:A(v(g)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:v(h)},{default:L(()=>{var S,_,y,x;return[k("span",{class:A(v(m))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?$e((M(),D("input",{key:0,id:v(o),"onUpdate:modelValue":C=>Po(c)?c.value=C:null,class:A(v(p).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:v(a),"true-value":(_=(S=b.trueValue)!=null?S:b.trueLabel)!=null?_:!0,"false-value":(x=(y=b.falseValue)!=null?y:b.falseLabel)!=null?x:!1,onChange:v(f),onFocus:C=>r.value=!0,onBlur:C=>r.value=!1,onClick:Xe(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[nr,v(c)]]):$e((M(),D("input",{key:1,id:v(o),"onUpdate:modelValue":C=>Po(c)?c.value=C:null,class:A(v(p).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:v(a),value:v(d),name:b.name,tabindex:b.tabindex,onChange:v(f),onFocus:C=>r.value=!0,onBlur:C=>r.value=!1,onClick:Xe(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[nr,v(c)]]),k("span",{class:A(v(p).e("inner"))},null,2)],2),v(u)?(M(),D("span",{key:0,class:A(v(p).e("label"))},[re(b.$slots,"default"),b.$slots.default?q("v-if",!0):(M(),D(Qe,{key:0},[le(ee(b.label),1)],64))],2)):q("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var uE=me(lE,[["__file","checkbox.vue"]]);const cE=K({name:"ElCheckboxButton"}),dE=K({...cE,props:$g,emits:Fg,setup(e){const t=e,n=ds(),{isFocused:o,isChecked:s,isDisabled:i,checkboxButtonSize:a,model:r,actualValue:l,handleChange:u}=Bg(t,n),c=we(Gs,void 0),d=pe("checkbox"),f=T(()=>{var p,g,m,b;const w=(g=(p=c==null?void 0:c.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(b=(m=c==null?void 0:c.textColor)==null?void 0:m.value)!=null?b:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),h=T(()=>[d.b("button"),d.bm("button",a.value),d.is("disabled",i.value),d.is("checked",s.value),d.is("focus",o.value)]);return(p,g)=>{var m,b,w,S;return M(),D("label",{class:A(v(h))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?$e((M(),D("input",{key:0,"onUpdate:modelValue":_=>Po(r)?r.value=_:null,class:A(v(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:v(i),"true-value":(b=(m=p.trueValue)!=null?m:p.trueLabel)!=null?b:!0,"false-value":(S=(w=p.falseValue)!=null?w:p.falseLabel)!=null?S:!1,onChange:v(u),onFocus:_=>o.value=!0,onBlur:_=>o.value=!1,onClick:Xe(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[nr,v(r)]]):$e((M(),D("input",{key:1,"onUpdate:modelValue":_=>Po(r)?r.value=_:null,class:A(v(d).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:v(i),value:v(l),onChange:v(u),onFocus:_=>o.value=!0,onBlur:_=>o.value=!1,onClick:Xe(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[nr,v(r)]]),p.$slots.default||p.label?(M(),D("span",{key:2,class:A(v(d).be("button","inner")),style:Oe(v(s)?v(f):void 0)},[re(p.$slots,"default",{},()=>[le(ee(p.label),1)])],6)):q("v-if",!0)],2)}}});var Dg=me(dE,[["__file","checkbox-button.vue"]]);const fE=ye({modelValue:{type:he(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:En,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...zn(["ariaLabel"])}),hE={[Je]:e=>ze(e),change:e=>ze(e)},pE=K({name:"ElCheckboxGroup"}),gE=K({...pE,props:fE,emits:hE,setup(e,{emit:t}){const n=e,o=pe("checkbox"),{formItem:s}=fo(),{inputId:i,isLabeledByFormItem:a}=ps(n,{formItemContext:s}),r=async u=>{t(Je,u),await Me(),t("change",u)},l=T({get(){return n.modelValue},set(u){r(u)}});return nt(Gs,{...qp(uo(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:r}),ie(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(u=>void 0))}),(u,c)=>{var d;return M(),G(Ue(u.tag),{id:v(i),class:A(v(o).b("group")),role:"group","aria-label":v(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":v(a)?(d=v(s))==null?void 0:d.labelId:void 0},{default:L(()=>[re(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Ng=me(gE,[["__file","checkbox-group.vue"]]);const ls=ct(uE,{CheckboxButton:Dg,CheckboxGroup:Ng});dn(Dg);dn(Ng);const zg=ye({modelValue:{type:[String,Number,Boolean],default:void 0},size:En,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),mE=ye({...zg,border:Boolean}),Vg={[Je]:e=>Ie(e)||Te(e)||lt(e),[ro]:e=>Ie(e)||Te(e)||lt(e)},Hg=Symbol("radioGroupKey"),Wg=(e,t)=>{const n=R(),o=we(Hg,void 0),s=T(()=>!!o),i=T(()=>Ti(e.value)?e.label:e.value),a=T({get(){return s.value?o.modelValue:e.modelValue},set(d){s.value?o.changeEvent(d):t&&t(Je,d),n.value.checked=e.modelValue===i.value}}),r=cn(T(()=>o==null?void 0:o.size)),l=hs(T(()=>o==null?void 0:o.disabled)),u=R(!1),c=T(()=>l.value||s.value&&a.value!==i.value?-1:0);return ns({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},T(()=>s.value&&Ti(e.value))),{radioRef:n,isGroup:s,radioGroup:o,focus:u,size:r,disabled:l,tabIndex:c,modelValue:a,actualValue:i}},vE=K({name:"ElRadio"}),bE=K({...vE,props:mE,emits:Vg,setup(e,{emit:t}){const n=e,o=pe("radio"),{radioRef:s,radioGroup:i,focus:a,size:r,disabled:l,modelValue:u,actualValue:c}=Wg(n,t);function d(){Me(()=>t("change",u.value))}return(f,h)=>{var p;return M(),D("label",{class:A([v(o).b(),v(o).is("disabled",v(l)),v(o).is("focus",v(a)),v(o).is("bordered",f.border),v(o).is("checked",v(u)===v(c)),v(o).m(v(r))])},[k("span",{class:A([v(o).e("input"),v(o).is("disabled",v(l)),v(o).is("checked",v(u)===v(c))])},[$e(k("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":g=>Po(u)?u.value=g:null,class:A(v(o).e("original")),value:v(c),name:f.name||((p=v(i))==null?void 0:p.name),disabled:v(l),checked:v(u)===v(c),type:"radio",onFocus:g=>a.value=!0,onBlur:g=>a.value=!1,onChange:d,onClick:Xe(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[up,v(u)]]),k("span",{class:A(v(o).e("inner"))},null,2)],2),k("span",{class:A(v(o).e("label")),onKeydown:Xe(()=>{},["stop"])},[re(f.$slots,"default",{},()=>[le(ee(f.label),1)])],42,["onKeydown"])],2)}}});var yE=me(bE,[["__file","radio.vue"]]);const _E=ye({...zg}),wE=K({name:"ElRadioButton"}),SE=K({...wE,props:_E,setup(e){const t=e,n=pe("radio"),{radioRef:o,focus:s,size:i,disabled:a,modelValue:r,radioGroup:l,actualValue:u}=Wg(t),c=T(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(d,f)=>{var h;return M(),D("label",{class:A([v(n).b("button"),v(n).is("active",v(r)===v(u)),v(n).is("disabled",v(a)),v(n).is("focus",v(s)),v(n).bm("button",v(i))])},[$e(k("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":p=>Po(r)?r.value=p:null,class:A(v(n).be("button","original-radio")),value:v(u),type:"radio",name:d.name||((h=v(l))==null?void 0:h.name),disabled:v(a),onFocus:p=>s.value=!0,onBlur:p=>s.value=!1,onClick:Xe(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[up,v(r)]]),k("span",{class:A(v(n).be("button","inner")),style:Oe(v(r)===v(u)?v(c):{}),onKeydown:Xe(()=>{},["stop"])},[re(d.$slots,"default",{},()=>[le(ee(d.label),1)])],46,["onKeydown"])],2)}}});var jg=me(SE,[["__file","radio-button.vue"]]);const xE=ye({id:{type:String,default:void 0},size:En,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...zn(["ariaLabel"])}),CE=Vg,kE=K({name:"ElRadioGroup"}),EE=K({...kE,props:xE,emits:CE,setup(e,{emit:t}){const n=e,o=pe("radio"),s=Nn(),i=R(),{formItem:a}=fo(),{inputId:r,isLabeledByFormItem:l}=ps(n,{formItemContext:a}),u=d=>{t(Je,d),Me(()=>t("change",d))};De(()=>{const d=i.value.querySelectorAll("[type=radio]"),f=d[0];!Array.from(d).some(h=>h.checked)&&f&&(f.tabIndex=0)});const c=T(()=>n.name||s.value);return nt(Hg,Ft({...uo(n),changeEvent:u,name:c})),ie(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(d=>void 0))}),(d,f)=>(M(),D("div",{id:v(r),ref_key:"radioGroupRef",ref:i,class:A(v(o).b("group")),role:"radiogroup","aria-label":v(l)?void 0:d.ariaLabel||"radio-group","aria-labelledby":v(l)?v(a).labelId:void 0},[re(d.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Ug=me(EE,[["__file","radio-group.vue"]]);const Kg=ct(yE,{RadioButton:jg,RadioGroup:Ug}),qg=dn(Ug);dn(jg);const Ul=ye({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Ks},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),ME={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},TE=K({name:"ElTag"}),PE=K({...TE,props:Ul,emits:ME,setup(e,{emit:t}){const n=e,o=cn(),s=pe("tag"),i=T(()=>{const{type:u,hit:c,effect:d,closable:f,round:h}=n;return[s.b(),s.is("closable",f),s.m(u||"primary"),s.m(o.value),s.m(d),s.is("hit",c),s.is("round",h)]}),a=u=>{t("close",u)},r=u=>{t("click",u)},l=u=>{u.component.subTree.component.bum=null};return(u,c)=>u.disableTransitions?(M(),D("span",{key:0,class:A(v(i)),style:Oe({backgroundColor:u.color}),onClick:r},[k("span",{class:A(v(s).e("content"))},[re(u.$slots,"default")],2),u.closable?(M(),G(v(Le),{key:0,class:A(v(s).e("close")),onClick:Xe(a,["stop"])},{default:L(()=>[P(v(Pi))]),_:1},8,["class","onClick"])):q("v-if",!0)],6)):(M(),G(fs,{key:1,name:`${v(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:L(()=>[k("span",{class:A(v(i)),style:Oe({backgroundColor:u.color}),onClick:r},[k("span",{class:A(v(s).e("content"))},[re(u.$slots,"default")],2),u.closable?(M(),G(v(Le),{key:0,class:A(v(s).e("close")),onClick:Xe(a,["stop"])},{default:L(()=>[P(v(Pi))]),_:1},8,["class","onClick"])):q("v-if",!0)],6)]),_:3},8,["name"]))}});var OE=me(PE,[["__file","tag.vue"]]);const Yg=ct(OE),Gg=Symbol("rowContextKey"),AE=["start","center","end","space-around","space-between","space-evenly"],RE=["top","middle","bottom"],LE=ye({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:AE,default:"start"},align:{type:String,values:RE}}),IE=K({name:"ElRow"}),$E=K({...IE,props:LE,setup(e){const t=e,n=pe("row"),o=T(()=>t.gutter);nt(Gg,{gutter:o});const s=T(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=T(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,r)=>(M(),G(Ue(a.tag),{class:A(v(i)),style:Oe(v(s))},{default:L(()=>[re(a.$slots,"default")]),_:3},8,["class","style"]))}});var FE=me($E,[["__file","row.vue"]]);const oa=ct(FE),BE=ye({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:he([Number,Object]),default:()=>bn({})},sm:{type:he([Number,Object]),default:()=>bn({})},md:{type:he([Number,Object]),default:()=>bn({})},lg:{type:he([Number,Object]),default:()=>bn({})},xl:{type:he([Number,Object]),default:()=>bn({})}}),DE=K({name:"ElCol"}),NE=K({...DE,props:BE,setup(e){const t=e,{gutter:n}=we(Gg,{gutter:T(()=>0)}),o=pe("col"),s=T(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=T(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];Te(c)&&(u==="span"?a.push(o.b(`${t[u]}`)):c>0&&a.push(o.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Te(t[u])?a.push(o.b(`${u}-${t[u]}`)):St(t[u])&&Object.entries(t[u]).forEach(([c,d])=>{a.push(c!=="span"?o.b(`${u}-${c}-${d}`):o.b(`${u}-${d}`))})}),n.value&&a.push(o.is("guttered")),[o.b(),a]});return(a,r)=>(M(),G(Ue(a.tag),{class:A(v(i)),style:Oe(v(s))},{default:L(()=>[re(a.$slots,"default")]),_:3},8,["class","style"]))}});var zE=me(NE,[["__file","col.vue"]]);const Cr=ct(zE),VE=ye({color:{type:he(Object),required:!0},vertical:{type:Boolean,default:!1}});let Ur=!1;function Bi(e,t){if(!tt)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},o=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,Ur=!1,(a=t.end)==null||a.call(t,i)},s=function(i){var a;Ur||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchend",o),Ur=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",s),e.addEventListener("touchstart",s,{passive:!1})}const HE=e=>{const t=Ve(),{t:n}=Ut(),o=oo(),s=oo(),i=T(()=>e.color.get("alpha")),a=T(()=>n("el.colorpicker.alphaLabel"));function r(d){var f;d.target!==o.value&&l(d),(f=o.value)==null||f.focus()}function l(d){if(!s.value||!o.value)return;const h=t.vnode.el.getBoundingClientRect(),{clientX:p,clientY:g}=_u(d);if(e.vertical){let m=g-h.top;m=Math.max(o.value.offsetHeight/2,m),m=Math.min(m,h.height-o.value.offsetHeight/2),e.color.set("alpha",Math.round((m-o.value.offsetHeight/2)/(h.height-o.value.offsetHeight)*100))}else{let m=p-h.left;m=Math.max(o.value.offsetWidth/2,m),m=Math.min(m,h.width-o.value.offsetWidth/2),e.color.set("alpha",Math.round((m-o.value.offsetWidth/2)/(h.width-o.value.offsetWidth)*100))}}function u(d){const{code:f,shiftKey:h}=d,p=h?10:1;switch(f){case rt.left:case rt.down:d.preventDefault(),d.stopPropagation(),c(-p);break;case rt.right:case rt.up:d.preventDefault(),d.stopPropagation(),c(p);break}}function c(d){let f=i.value+d;f=f<0?0:f>100?100:f,e.color.set("alpha",f)}return{thumb:o,bar:s,alpha:i,alphaLabel:a,handleDrag:l,handleClick:r,handleKeydown:u}},WE=(e,{bar:t,thumb:n,handleDrag:o})=>{const s=Ve(),i=pe("color-alpha-slider"),a=R(0),r=R(0),l=R();function u(){if(!n.value||e.vertical)return 0;const w=s.vnode.el,S=e.color.get("alpha");return w?Math.round(S*(w.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const w=s.vnode.el;if(!e.vertical)return 0;const S=e.color.get("alpha");return w?Math.round(S*(w.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:w,g:S,b:_}=e.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${S}, ${_}, 0) 0%, rgba(${w}, ${S}, ${_}, 1) 100%)`}return""}function f(){a.value=u(),r.value=c(),l.value=d()}De(()=>{if(!t.value||!n.value)return;const w={drag:S=>{o(S)},end:S=>{o(S)}};Bi(t.value,w),Bi(n.value,w),f()}),ie(()=>e.color.get("alpha"),()=>f()),ie(()=>e.color.value,()=>f());const h=T(()=>[i.b(),i.is("vertical",e.vertical)]),p=T(()=>i.e("bar")),g=T(()=>i.e("thumb")),m=T(()=>({background:l.value})),b=T(()=>({left:jt(a.value),top:jt(r.value)}));return{rootKls:h,barKls:p,barStyle:m,thumbKls:g,thumbStyle:b,update:f}},jE="ElColorAlphaSlider",UE=K({name:jE}),KE=K({...UE,props:VE,setup(e,{expose:t}){const n=e,{alpha:o,alphaLabel:s,bar:i,thumb:a,handleDrag:r,handleClick:l,handleKeydown:u}=HE(n),{rootKls:c,barKls:d,barStyle:f,thumbKls:h,thumbStyle:p,update:g}=WE(n,{bar:i,thumb:a,handleDrag:r});return t({update:g,bar:i,thumb:a}),(m,b)=>(M(),D("div",{class:A(v(c))},[k("div",{ref_key:"bar",ref:i,class:A(v(d)),style:Oe(v(f)),onClick:v(l)},null,14,["onClick"]),k("div",{ref_key:"thumb",ref:a,class:A(v(h)),style:Oe(v(p)),"aria-label":v(s),"aria-valuenow":v(o),"aria-orientation":m.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:v(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var qE=me(KE,[["__file","alpha-slider.vue"]]);const YE=K({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=pe("color-hue-slider"),n=Ve(),o=R(),s=R(),i=R(0),a=R(0),r=T(()=>e.color.get("hue"));ie(()=>r.value,()=>{f()});function l(h){h.target!==o.value&&u(h)}function u(h){if(!s.value||!o.value)return;const g=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:b}=_u(h);let w;if(e.vertical){let S=b-g.top;S=Math.min(S,g.height-o.value.offsetHeight/2),S=Math.max(o.value.offsetHeight/2,S),w=Math.round((S-o.value.offsetHeight/2)/(g.height-o.value.offsetHeight)*360)}else{let S=m-g.left;S=Math.min(S,g.width-o.value.offsetWidth/2),S=Math.max(o.value.offsetWidth/2,S),w=Math.round((S-o.value.offsetWidth/2)/(g.width-o.value.offsetWidth)*360)}e.color.set("hue",w)}function c(){if(!o.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const p=e.color.get("hue");return h?Math.round(p*(h.offsetWidth-o.value.offsetWidth/2)/360):0}function d(){if(!o.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const p=e.color.get("hue");return h?Math.round(p*(h.offsetHeight-o.value.offsetHeight/2)/360):0}function f(){i.value=c(),a.value=d()}return De(()=>{if(!s.value||!o.value)return;const h={drag:p=>{u(p)},end:p=>{u(p)}};Bi(s.value,h),Bi(o.value,h),f()}),{bar:s,thumb:o,thumbLeft:i,thumbTop:a,hueValue:r,handleClick:l,update:f,ns:t}}});function GE(e,t,n,o,s,i){return M(),D("div",{class:A([e.ns.b(),e.ns.is("vertical",e.vertical)])},[k("div",{ref:"bar",class:A(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),k("div",{ref:"thumb",class:A(e.ns.e("thumb")),style:Oe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var XE=me(YE,[["render",GE],["__file","hue-slider.vue"]]);const JE=ye({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:En,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Mt.teleported,predefine:{type:he(Array)},validateEvent:{type:Boolean,default:!0},...zn(["ariaLabel"])}),QE={[Je]:e=>Ie(e)||es(e),[ro]:e=>Ie(e)||es(e),activeChange:e=>Ie(e)||es(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Xg=Symbol("colorPickerContextKey"),Ud=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},ZE=function(e){return Ie(e)&&e.includes(".")&&Number.parseFloat(e)===1},eM=function(e){return Ie(e)&&e.includes("%")},Es=function(e,t){ZE(e)&&(e="100%");const n=eM(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Kd={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},ja=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Kd[t]||t}${Kd[n]||n}`},qd=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${ja(e)}${ja(t)}${ja(n)}`},Kr={A:10,B:11,C:12,D:13,E:14,F:15},Do=function(e){return e.length===2?(Kr[e[0].toUpperCase()]||+e[0])*16+(Kr[e[1].toUpperCase()]||+e[1]):Kr[e[1].toUpperCase()]||+e[1]},tM=function(e,t,n){t=t/100,n=n/100;let o=t;const s=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=s<=1?s:2-s;const i=(n+t)/2,a=n===0?2*o/(s+o):2*t/(n+t);return{h:e,s:a*100,v:i*100}},Yd=(e,t,n)=>{e=Es(e,255),t=Es(t,255),n=Es(n,255);const o=Math.max(e,t,n),s=Math.min(e,t,n);let i;const a=o,r=o-s,l=o===0?0:r/o;if(o===s)i=0;else{switch(o){case e:{i=(t-n)/r+(t<n?6:0);break}case t:{i=(n-e)/r+2;break}case n:{i=(e-t)/r+4;break}}i/=6}return{h:i*360,s:l*100,v:a*100}},Zs=function(e,t,n){e=Es(e,360)*6,t=Es(t,100),n=Es(n,100);const o=Math.floor(e),s=e-o,i=n*(1-t),a=n*(1-s*t),r=n*(1-(1-s)*t),l=o%6,u=[n,a,i,i,r,n][l],c=[r,n,n,a,i,i][l],d=[i,i,r,n,n,a][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(d*255)}};class vi{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)ao(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const o in t)ao(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Zs(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(o,s,i)=>{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,s)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:i,v:a}=tM(o[0],o[1],o[2]);n(s,i,a)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:i,v:a}=Yd(o[0],o[1],o[2]);n(s,i,a)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let s,i,a;o.length===3?(s=Do(o[0]+o[0]),i=Do(o[1]+o[1]),a=Do(o[2]+o[2])):(o.length===6||o.length===8)&&(s=Do(o.slice(0,2)),i=Do(o.slice(2,4)),a=Do(o.slice(4,6))),o.length===8?this._alpha=Do(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:r,s:l,v:u}=Yd(s,i,a);n(r,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:s,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const a=Ud(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${qd(Zs(t,n,o))}${ja(s*255/100)}`;break}default:{const{r:a,g:r,b:l}=Zs(t,n,o);this.value=`rgba(${a}, ${r}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const a=Ud(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:a,g:r,b:l}=Zs(t,n,o);this.value=`rgb(${a}, ${r}, ${l})`;break}default:this.value=qd(Zs(t,n,o))}}}const nM=K({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=pe("color-predefine"),{currentColor:n}=we(Xg),o=R(i(e.colors,e.color));ie(()=>n.value,a=>{const r=new vi;r.fromString(a),o.value.forEach(l=>{l.selected=r.compare(l)})}),no(()=>{o.value=i(e.colors,e.color)});function s(a){e.color.fromString(e.colors[a])}function i(a,r){return a.map(l=>{const u=new vi;return u.enableAlpha=e.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===r.value,u})}return{rgbaColors:o,handleSelect:s,ns:t}}});function oM(e,t,n,o,s,i){return M(),D("div",{class:A(e.ns.b())},[k("div",{class:A(e.ns.e("colors"))},[(M(!0),D(Qe,null,Bt(e.rgbaColors,(a,r)=>(M(),D("div",{key:e.colors[r],class:A([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>e.handleSelect(r)},[k("div",{style:Oe({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var sM=me(nM,[["render",oM],["__file","predefine.vue"]]);const iM=K({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=pe("color-svpanel"),n=Ve(),o=R(0),s=R(0),i=R("hsl(0, 100%, 50%)"),a=T(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function r(){const u=e.color.get("saturation"),c=e.color.get("value"),d=n.vnode.el,{clientWidth:f,clientHeight:h}=d;s.value=u*f/100,o.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const d=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:h}=_u(u);let p=f-d.left,g=h-d.top;p=Math.max(0,p),p=Math.min(p,d.width),g=Math.max(0,g),g=Math.min(g,d.height),s.value=p,o.value=g,e.color.set({saturation:p/d.width*100,value:100-g/d.height*100})}return ie(()=>a.value,()=>{r()}),De(()=>{Bi(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),r()}),{cursorTop:o,cursorLeft:s,background:i,colorValue:a,handleDrag:l,update:r,ns:t}}});function aM(e,t,n,o,s,i){return M(),D("div",{class:A(e.ns.b()),style:Oe({backgroundColor:e.background})},[k("div",{class:A(e.ns.e("white"))},null,2),k("div",{class:A(e.ns.e("black"))},null,2),k("div",{class:A(e.ns.e("cursor")),style:Oe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[k("div")],6)],6)}var rM=me(iM,[["render",aM],["__file","sv-panel.vue"]]);const lM=K({name:"ElColorPicker"}),uM=K({...lM,props:JE,emits:QE,setup(e,{expose:t,emit:n}){const o=e,{t:s}=Ut(),i=pe("color"),{formItem:a}=fo(),r=cn(),l=hs(),{inputId:u,isLabeledByFormItem:c}=ps(o,{formItemContext:a}),d=R(),f=R(),h=R(),p=R(),g=R(),m=R(),{isFocused:b,handleFocus:w,handleBlur:S}=zu(g,{beforeFocus(){return l.value},beforeBlur(B){var Z;return(Z=p.value)==null?void 0:Z.isFocusInsideContent(B)},afterBlur(){Y(!1),H()}});let _=!0;const y=Ft(new vi({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),x=R(!1),C=R(!1),E=R(""),O=T(()=>!o.modelValue&&!C.value?"transparent":ae(y,o.showAlpha)),I=T(()=>!o.modelValue&&!C.value?"":y.value),$=T(()=>c.value?void 0:o.ariaLabel||s("el.colorpicker.defaultLabel")),N=T(()=>c.value?a==null?void 0:a.labelId:void 0),j=T(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",r.value),i.is("focused",b.value)]);function ae(B,Z){if(!(B instanceof vi))throw new TypeError("color should be instance of _color Class");const{r:fe,g:Ee,b:ve}=B.toRgb();return Z?`rgba(${fe}, ${Ee}, ${ve}, ${B.get("alpha")/100})`:`rgb(${fe}, ${Ee}, ${ve})`}function Y(B){x.value=B}const z=Rs(Y,100,{leading:!0});function J(){l.value||Y(!0)}function U(){z(!1),H()}function H(){Me(()=>{o.modelValue?y.fromString(o.modelValue):(y.value="",Me(()=>{C.value=!1}))})}function de(){l.value||z(!x.value)}function Se(){y.fromString(E.value)}function te(){const B=y.value;n(Je,B),n("change",B),o.validateEvent&&(a==null||a.validate("change").catch(Z=>void 0)),z(!1),Me(()=>{const Z=new vi({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});y.compare(Z)||H()})}function X(){z(!1),n(Je,null),n("change",null),o.modelValue!==null&&o.validateEvent&&(a==null||a.validate("change").catch(B=>void 0)),H()}function Q(){!x.value||(U(),b.value&&F())}function oe(B){B.preventDefault(),B.stopPropagation(),Y(!1),H()}function ne(B){switch(B.code){case rt.enter:case rt.numpadEnter:case rt.space:B.preventDefault(),B.stopPropagation(),J(),m.value.focus();break;case rt.esc:oe(B);break}}function F(){g.value.focus()}function V(){g.value.blur()}return De(()=>{o.modelValue&&(E.value=I.value)}),ie(()=>o.modelValue,B=>{B?B&&B!==y.value&&(_=!1,y.fromString(B)):C.value=!1}),ie(()=>[o.colorFormat,o.showAlpha],()=>{y.enableAlpha=o.showAlpha,y.format=o.colorFormat||y.format,y.doOnChange(),n(Je,y.value)}),ie(()=>I.value,B=>{E.value=B,_&&n("activeChange",B),_=!0}),ie(()=>y.value,()=>{!o.modelValue&&!C.value&&(C.value=!0)}),ie(()=>x.value,()=>{Me(()=>{var B,Z,fe;(B=d.value)==null||B.update(),(Z=f.value)==null||Z.update(),(fe=h.value)==null||fe.update()})}),nt(Xg,{currentColor:I}),t({color:y,show:J,hide:U,focus:F,blur:V}),(B,Z)=>(M(),G(v(Vn),{ref_key:"popper",ref:p,visible:x.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[v(i).be("picker","panel"),v(i).b("dropdown"),B.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:B.teleported,transition:`${v(i).namespace.value}-zoom-in-top`,persistent:"",onHide:fe=>Y(!1)},{content:L(()=>[$e((M(),D("div",{onKeydown:zt(oe,["esc"])},[k("div",{class:A(v(i).be("dropdown","main-wrapper"))},[P(XE,{ref_key:"hue",ref:d,class:"hue-slider",color:v(y),vertical:""},null,8,["color"]),P(rM,{ref_key:"sv",ref:f,color:v(y)},null,8,["color"])],2),B.showAlpha?(M(),G(qE,{key:0,ref_key:"alpha",ref:h,color:v(y)},null,8,["color"])):q("v-if",!0),B.predefine?(M(),G(sM,{key:1,ref:"predefine","enable-alpha":B.showAlpha,color:v(y),colors:B.predefine},null,8,["enable-alpha","color","colors"])):q("v-if",!0),k("div",{class:A(v(i).be("dropdown","btns"))},[k("span",{class:A(v(i).be("dropdown","value"))},[P(v($o),{ref_key:"inputRef",ref:m,modelValue:E.value,"onUpdate:modelValue":fe=>E.value=fe,"validate-event":!1,size:"small",onKeyup:zt(Se,["enter"]),onBlur:Se},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),P(v(xn),{class:A(v(i).be("dropdown","link-btn")),text:"",size:"small",onClick:X},{default:L(()=>[le(ee(v(s)("el.colorpicker.clear")),1)]),_:1},8,["class"]),P(v(xn),{plain:"",size:"small",class:A(v(i).be("dropdown","btn")),onClick:te},{default:L(()=>[le(ee(v(s)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[v(Xu),Q]])]),default:L(()=>[k("div",rn({id:v(u),ref_key:"triggerRef",ref:g},B.$attrs,{class:v(j),role:"button","aria-label":v($),"aria-labelledby":v(N),"aria-description":v(s)("el.colorpicker.description",{color:B.modelValue||""}),"aria-disabled":v(l),tabindex:v(l)?-1:B.tabindex,onKeydown:ne,onFocus:v(w),onBlur:v(S)}),[v(l)?(M(),D("div",{key:0,class:A(v(i).be("picker","mask"))},null,2)):q("v-if",!0),k("div",{class:A(v(i).be("picker","trigger")),onClick:de},[k("span",{class:A([v(i).be("picker","color"),v(i).is("alpha",B.showAlpha)])},[k("span",{class:A(v(i).be("picker","color-inner")),style:Oe({backgroundColor:v(O)})},[$e(P(v(Le),{class:A([v(i).be("picker","icon"),v(i).is("icon-arrow-down")])},{default:L(()=>[P(v(yu))]),_:1},8,["class"]),[[At,B.modelValue||C.value]]),$e(P(v(Le),{class:A([v(i).be("picker","empty"),v(i).is("icon-close")])},{default:L(()=>[P(v(Pi))]),_:1},8,["class"]),[[At,!B.modelValue&&!C.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var cM=me(uM,[["__file","color-picker.vue"]]);const dM=ct(cM),fM=ye({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:he([String,Array,Object])},zIndex:{type:he([String,Number])}}),hM={click:e=>e instanceof MouseEvent},pM="overlay";var gM=K({name:"ElOverlay",props:fM,emits:hM,setup(e,{slots:t,emit:n}){const o=pe(pM),s=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:r}=Nu(e.customMaskEvent?void 0:s);return()=>e.mask?P("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:r},[re(t,"default")],Ba.STYLE|Ba.CLASS|Ba.PROPS,["onClick","onMouseup","onMousedown"]):ke("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[re(t,"default")])}});const Jg=gM,Qg=Symbol("dialogInjectionKey"),Zg=ye({center:Boolean,alignCenter:Boolean,closeIcon:{type:mt},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),mM={close:()=>!0},vM=K({name:"ElDialogContent"}),bM=K({...vM,props:Zg,emits:mM,setup(e,{expose:t}){const n=e,{t:o}=Ut(),{Close:s}=wb,{dialogRef:i,headerRef:a,bodyId:r,ns:l,style:u}=we(Qg),{focusTrapRef:c}=we(wg),d=T(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),f=R1(c,i),h=T(()=>n.draggable),p=T(()=>n.overflow),{resetPosition:g}=Gp(i,a,h,p);return t({resetPosition:g}),(m,b)=>(M(),D("div",{ref:v(f),class:A(v(d)),style:Oe(v(u)),tabindex:"-1"},[k("header",{ref_key:"headerRef",ref:a,class:A([v(l).e("header"),{"show-close":m.showClose}])},[re(m.$slots,"header",{},()=>[k("span",{role:"heading","aria-level":m.ariaLevel,class:A(v(l).e("title"))},ee(m.title),11,["aria-level"])]),m.showClose?(M(),D("button",{key:0,"aria-label":v(o)("el.dialog.close"),class:A(v(l).e("headerbtn")),type:"button",onClick:w=>m.$emit("close")},[P(v(Le),{class:A(v(l).e("close"))},{default:L(()=>[(M(),G(Ue(m.closeIcon||v(s))))]),_:1},8,["class"])],10,["aria-label","onClick"])):q("v-if",!0)],2),k("div",{id:v(r),class:A(v(l).e("body"))},[re(m.$slots,"default")],10,["id"]),m.$slots.footer?(M(),D("footer",{key:0,class:A(v(l).e("footer"))},[re(m.$slots,"footer")],2)):q("v-if",!0)],6))}});var yM=me(bM,[["__file","dialog-content.vue"]]);const _M=ye({...Zg,appendToBody:Boolean,appendTo:{type:he([String,Object]),default:"body"},beforeClose:{type:he(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),wM={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Je]:e=>lt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},SM=(e,t)=>{var n;const s=Ve().emit,{nextZIndex:i}=rp();let a="";const r=Nn(),l=Nn(),u=R(!1),c=R(!1),d=R(!1),f=R((n=e.zIndex)!=null?n:i());let h,p;const g=lp("namespace",Sb),m=T(()=>{const Y={},z=`--${g.value}-dialog`;return e.fullscreen||(e.top&&(Y[`${z}-margin-top`]=e.top),e.width&&(Y[`${z}-width`]=jt(e.width))),Y}),b=T(()=>e.alignCenter?{display:"flex"}:{});function w(){s("opened")}function S(){s("closed"),s(Je,!1),e.destroyOnClose&&(d.value=!1)}function _(){s("close")}function y(){p==null||p(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=ml(()=>O(),e.openDelay):O()}function x(){h==null||h(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=ml(()=>I(),e.closeDelay):I()}function C(){function Y(z){z||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(Y):x()}function E(){e.closeOnClickModal&&C()}function O(){!tt||(u.value=!0)}function I(){u.value=!1}function $(){s("openAutoFocus")}function N(){s("closeAutoFocus")}function j(Y){var z;((z=Y.detail)==null?void 0:z.focusReason)==="pointer"&&Y.preventDefault()}e.lockScroll&&Xp(u);function ae(){e.closeOnPressEscape&&C()}return ie(()=>e.modelValue,Y=>{Y?(c.value=!1,y(),d.value=!0,f.value=Up(e.zIndex)?i():f.value++,Me(()=>{s("open"),t.value&&(t.value.scrollTop=0)})):u.value&&x()}),ie(()=>e.fullscreen,Y=>{!t.value||(Y?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),De(()=>{e.modelValue&&(u.value=!0,d.value=!0,y())}),{afterEnter:w,afterLeave:S,beforeLeave:_,handleClose:C,onModalClick:E,close:x,doClose:I,onOpenAutoFocus:$,onCloseAutoFocus:N,onCloseRequested:ae,onFocusoutPrevented:j,titleId:r,bodyId:l,closed:c,style:m,overlayDialogStyle:b,rendered:d,visible:u,zIndex:f}},xM=K({name:"ElDialog",inheritAttrs:!1}),CM=K({...xM,props:_M,emits:wM,setup(e,{expose:t}){const n=e,o=ds();ns({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},T(()=>!!o.title));const s=pe("dialog"),i=R(),a=R(),r=R(),{visible:l,titleId:u,bodyId:c,style:d,overlayDialogStyle:f,rendered:h,zIndex:p,afterEnter:g,afterLeave:m,beforeLeave:b,handleClose:w,onModalClick:S,onOpenAutoFocus:_,onCloseAutoFocus:y,onCloseRequested:x,onFocusoutPrevented:C}=SM(n,i);nt(Qg,{dialogRef:i,headerRef:a,bodyId:c,ns:s,rendered:h,style:d});const E=Nu(S),O=T(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:r,resetPosition:()=>{var $;($=r.value)==null||$.resetPosition()}}),($,N)=>(M(),G(v(Cg),{to:$.appendTo,disabled:$.appendTo!=="body"?!1:!$.appendToBody},{default:L(()=>[P(fs,{name:"dialog-fade",onAfterEnter:v(g),onAfterLeave:v(m),onBeforeLeave:v(b),persisted:""},{default:L(()=>[$e(P(v(Jg),{"custom-mask-event":"",mask:$.modal,"overlay-class":$.modalClass,"z-index":v(p)},{default:L(()=>[k("div",{role:"dialog","aria-modal":"true","aria-label":$.title||void 0,"aria-labelledby":$.title?void 0:v(u),"aria-describedby":v(c),class:A(`${v(s).namespace.value}-overlay-dialog`),style:Oe(v(f)),onClick:v(E).onClick,onMousedown:v(E).onMousedown,onMouseup:v(E).onMouseup},[P(v(Yu),{loop:"",trapped:v(l),"focus-start-el":"container",onFocusAfterTrapped:v(_),onFocusAfterReleased:v(y),onFocusoutPrevented:v(C),onReleaseRequested:v(x)},{default:L(()=>[v(h)?(M(),G(yM,rn({key:0,ref_key:"dialogContentRef",ref:r},$.$attrs,{center:$.center,"align-center":$.alignCenter,"close-icon":$.closeIcon,draggable:v(O),overflow:$.overflow,fullscreen:$.fullscreen,"show-close":$.showClose,title:$.title,"aria-level":$.headerAriaLevel,onClose:v(w)}),xb({header:L(()=>[$.$slots.title?re($.$slots,"title",{key:1}):re($.$slots,"header",{key:0,close:v(w),titleId:v(u),titleClass:v(s).e("title")})]),default:L(()=>[re($.$slots,"default")]),_:2},[$.$slots.footer?{name:"footer",fn:L(()=>[re($.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):q("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[At,v(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var kM=me(CM,[["__file","dialog.vue"]]);const EM=ct(kM),MM=K({inheritAttrs:!1});function TM(e,t,n,o,s,i){return re(e.$slots,"default")}var PM=me(MM,[["render",TM],["__file","collection.vue"]]);const OM=K({name:"ElCollectionItem",inheritAttrs:!1});function AM(e,t,n,o,s,i){return re(e.$slots,"default")}var RM=me(OM,[["render",AM],["__file","collection-item.vue"]]);const LM="data-el-collection-item",IM=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),s=Symbol(n),i={...PM,name:t,setup(){const r=R(null),l=new Map;nt(o,{itemMap:l,getItems:()=>{const c=v(r);if(!c)return[];const d=Array.from(c.querySelectorAll(`[${LM}]`));return[...l.values()].sort((h,p)=>d.indexOf(h.ref)-d.indexOf(p.ref))},collectionRef:r})}},a={...RM,name:n,setup(r,{attrs:l}){const u=R(null),c=we(o,void 0);nt(s,{collectionItemRef:u}),De(()=>{const d=v(u);d&&c.itemMap.set(d,{ref:d,...l})}),yt(()=>{const d=v(u);c.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:i,ElCollectionItem:a}},qr=ye({trigger:Fi.trigger,effect:{...Mt.effect,default:"light"},type:{type:he(String)},placement:{type:he(String),default:"bottom"},popperOptions:{type:he(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:he([Number,String]),default:0},maxHeight:{type:he([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:he(Object)},teleported:Mt.teleported});ye({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:mt}});ye({onKeydown:{type:he(Function)}});IM("Dropdown");const em=Symbol("elPaginationKey"),$M=ye({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:mt}}),FM={click:e=>e instanceof MouseEvent},BM=K({name:"ElPaginationPrev"}),DM=K({...BM,props:$M,emits:FM,setup(e){const t=e,{t:n}=Ut(),o=T(()=>t.disabled||t.currentPage<=1);return(s,i)=>(M(),D("button",{type:"button",class:"btn-prev",disabled:v(o),"aria-label":s.prevText||v(n)("el.pagination.prev"),"aria-disabled":v(o),onClick:a=>s.$emit("click",a)},[s.prevText?(M(),D("span",{key:0},ee(s.prevText),1)):(M(),G(v(Le),{key:1},{default:L(()=>[(M(),G(Ue(s.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var NM=me(DM,[["__file","prev.vue"]]);const zM=ye({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:mt}}),VM=K({name:"ElPaginationNext"}),HM=K({...VM,props:zM,emits:["click"],setup(e){const t=e,{t:n}=Ut(),o=T(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(s,i)=>(M(),D("button",{type:"button",class:"btn-next",disabled:v(o),"aria-label":s.nextText||v(n)("el.pagination.next"),"aria-disabled":v(o),onClick:a=>s.$emit("click",a)},[s.nextText?(M(),D("span",{key:0},ee(s.nextText),1)):(M(),G(v(Le),{key:1},{default:L(()=>[(M(),G(Ue(s.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var WM=me(HM,[["__file","next.vue"]]);const tm=Symbol("ElSelectGroup"),kr=Symbol("ElSelect");function jM(e,t){const n=we(kr),o=we(tm,{disabled:!1}),s=T(()=>c(vn(n.props.modelValue),e.value)),i=T(()=>{var h;if(n.props.multiple){const p=vn((h=n.props.modelValue)!=null?h:[]);return!s.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=T(()=>e.label||(St(e.value)?"":e.value)),r=T(()=>e.value||e.label||""),l=T(()=>e.disabled||t.groupDisabled||i.value),u=Ve(),c=(h=[],p)=>{if(St(e.value)){const g=n.props.valueKey;return h&&h.some(m=>gl(Qn(m,g))===Qn(p,g))}else return h&&h.includes(p)},d=()=>{!e.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},f=h=>{const p=new RegExp(T1(h),"i");t.visible=p.test(a.value)||e.created};return ie(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ie(()=>e.value,(h,p)=>{const{remote:g,valueKey:m}=n.props;if(h!==p&&(n.onOptionDestroy(p,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!g){if(m&&St(h)&&St(p)&&h[m]===p[m])return;n.setSelected()}}),ie(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:r,itemSelected:s,isDisabled:l,hoverItem:d,updateOption:f}}const UM=K({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=pe("select"),n=Nn(),o=T(()=>[t.be("dropdown","item"),t.is("disabled",v(r)),t.is("selected",v(a)),t.is("hovering",v(f))]),s=Ft({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:r,select:l,hoverItem:u,updateOption:c}=jM(e,s),{visible:d,hover:f}=uo(s),h=Ve().proxy;l.onOptionCreate(h),yt(()=>{const g=h.value,{selected:m}=l.states,w=(l.props.multiple?m:[m]).some(S=>S.value===h.value);Me(()=>{l.states.cachedOptions.get(g)===h&&!w&&l.states.cachedOptions.delete(g)}),l.onOptionDestroy(g,h)});function p(){r.value||l.handleOptionSelect(h)}return{ns:t,id:n,containerKls:o,currentLabel:i,itemSelected:a,isDisabled:r,select:l,hoverItem:u,updateOption:c,visible:d,hover:f,selectOptionClick:p,states:s}}});function KM(e,t,n,o,s,i){return $e((M(),D("li",{id:e.id,class:A(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:Xe(e.selectOptionClick,["stop"])},[re(e.$slots,"default",{},()=>[k("span",null,ee(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[At,e.visible]])}var Ju=me(UM,[["render",KM],["__file","option.vue"]]);const qM=K({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=we(kr),t=pe("select"),n=T(()=>e.props.popperClass),o=T(()=>e.props.multiple),s=T(()=>e.props.fitInputWidth),i=R("");function a(){var r;i.value=`${(r=e.selectRef)==null?void 0:r.offsetWidth}px`}return De(()=>{a(),Tt(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:o,isFitInputWidth:s}}});function YM(e,t,n,o,s,i){return M(),D("div",{class:A([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Oe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(M(),D("div",{key:0,class:A(e.ns.be("dropdown","header"))},[re(e.$slots,"header")],2)):q("v-if",!0),re(e.$slots,"default"),e.$slots.footer?(M(),D("div",{key:1,class:A(e.ns.be("dropdown","footer"))},[re(e.$slots,"footer")],2)):q("v-if",!0)],6)}var GM=me(qM,[["render",YM],["__file","select-dropdown.vue"]]);const XM=11,JM=(e,t)=>{const{t:n}=Ut(),o=Nn(),s=pe("select"),i=pe("input"),a=Ft({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),r=R(null),l=R(null),u=R(null),c=R(null),d=R(null),f=R(null),h=R(null),p=R(null),g=R(null),m=R(null),b=R(null),w=R(null),{isComposing:S,handleCompositionStart:_,handleCompositionUpdate:y,handleCompositionEnd:x}=hg({afterComposition:W=>ra(W)}),{wrapperRef:C,isFocused:E,handleBlur:O}=zu(d,{beforeFocus(){return J.value},afterFocus(){e.automaticDropdown&&!I.value&&(I.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(W){var ue,Re;return((ue=u.value)==null?void 0:ue.isFocusInsideContent(W))||((Re=c.value)==null?void 0:Re.isFocusInsideContent(W))},afterBlur(){I.value=!1,a.menuVisibleOnFocus=!1}}),I=R(!1),$=R(),{form:N,formItem:j}=fo(),{inputId:ae}=ps(e,{formItemContext:j}),{valueOnClear:Y,isEmptyValue:z}=Cb(e),J=T(()=>e.disabled||(N==null?void 0:N.disabled)),U=T(()=>ze(e.modelValue)?e.modelValue.length>0:!z(e.modelValue)),H=T(()=>{var W;return(W=N==null?void 0:N.statusIcon)!=null?W:!1}),de=T(()=>e.clearable&&!J.value&&a.inputHovering&&U.value),Se=T(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),te=T(()=>s.is("reverse",Se.value&&I.value)),X=T(()=>(j==null?void 0:j.validateState)||""),Q=T(()=>op[X.value]),oe=T(()=>e.remote?300:0),ne=T(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&F.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),F=T(()=>V.value.filter(W=>W.visible).length),V=T(()=>{const W=Array.from(a.options.values()),ue=[];return a.optionValues.forEach(Re=>{const gt=W.findIndex(qt=>qt.value===Re);gt>-1&&ue.push(W[gt])}),ue.length>=W.length?ue:W}),B=T(()=>Array.from(a.cachedOptions.values())),Z=T(()=>{const W=V.value.filter(ue=>!ue.created).some(ue=>ue.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!W}),fe=()=>{e.filterable&&je(e.filterMethod)||e.filterable&&e.remote&&je(e.remoteMethod)||V.value.forEach(W=>{var ue;(ue=W.updateOption)==null||ue.call(W,a.inputValue)})},Ee=cn(),ve=T(()=>["small"].includes(Ee.value)?"small":"default"),xe=T({get(){return I.value&&ne.value!==!1},set(W){I.value=W}}),be=T(()=>{if(e.multiple&&!$t(e.modelValue))return vn(e.modelValue).length===0&&!a.inputValue;const W=ze(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||$t(W)?!a.inputValue:!0}),dt=T(()=>{var W;const ue=(W=e.placeholder)!=null?W:n("el.select.placeholder");return e.multiple||!U.value?ue:a.selectedLabel}),Ke=T(()=>Pc?null:"mouseenter");ie(()=>e.modelValue,(W,ue)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",Tn("")),Ct(),!ts(W,ue)&&e.validateEvent&&(j==null||j.validate("change").catch(Re=>void 0))},{flush:"post",deep:!0}),ie(()=>I.value,W=>{W?Tn(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",W)}),ie(()=>a.options.entries(),()=>{var W;if(!tt)return;const ue=((W=r.value)==null?void 0:W.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!$t(e.modelValue)||!Array.from(ue).includes(document.activeElement))&&Ct(),e.defaultFirstOption&&(e.filterable||e.remote)&&F.value&&ho()},{flush:"post"}),ie(()=>a.hoveringIndex,W=>{Te(W)&&W>-1?$.value=V.value[W]||{}:$.value={},V.value.forEach(ue=>{ue.hover=$.value===ue})}),no(()=>{a.isBeforeHide||fe()});const Tn=W=>{a.previousQuery===W||S.value||(a.previousQuery=W,e.filterable&&je(e.filterMethod)?e.filterMethod(W):e.filterable&&e.remote&&je(e.remoteMethod)&&e.remoteMethod(W),e.defaultFirstOption&&(e.filterable||e.remote)&&F.value?Me(ho):Me(po))},ho=()=>{const W=V.value.filter(qt=>qt.visible&&!qt.disabled&&!qt.states.groupDisabled),ue=W.find(qt=>qt.created),Re=W[0],gt=V.value.map(qt=>qt.value);a.hoveringIndex=ft(gt,ue||Re)},Ct=()=>{if(e.multiple)a.selectedLabel="";else{const ue=ze(e.modelValue)?e.modelValue[0]:e.modelValue,Re=en(ue);a.selectedLabel=Re.currentLabel,a.selected=[Re];return}const W=[];$t(e.modelValue)||vn(e.modelValue).forEach(ue=>{W.push(en(ue))}),a.selected=W},en=W=>{let ue;const Re=kb(W);for(let bs=a.cachedOptions.size-1;bs>=0;bs--){const go=B.value[bs];if(Re?Qn(go.value,e.valueKey)===Qn(W,e.valueKey):go.value===W){ue={value:W,currentLabel:go.currentLabel,get isDisabled(){return go.isDisabled}};break}}if(ue)return ue;const gt=Re?W.label:W!=null?W:"";return{value:W,currentLabel:gt}},po=()=>{a.hoveringIndex=V.value.findIndex(W=>a.selected.some(ue=>la(ue)===la(W)))},Wn=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},se=()=>{a.calculatorWidth=f.value.getBoundingClientRect().width},qe=()=>{a.collapseItemWidth=b.value.getBoundingClientRect().width},Lt=()=>{var W,ue;(ue=(W=u.value)==null?void 0:W.updatePopper)==null||ue.call(W)},Pn=()=>{var W,ue;(ue=(W=c.value)==null?void 0:W.updatePopper)==null||ue.call(W)},On=()=>{a.inputValue.length>0&&!I.value&&(I.value=!0),Tn(a.inputValue)},ra=W=>{if(a.inputValue=W.target.value,e.remote)$r();else return On()},$r=Rs(()=>{On()},oe.value),ms=W=>{ts(e.modelValue,W)||t(ro,W)},ge=W=>y1(W,ue=>{const Re=a.cachedOptions.get(ue);return Re&&!Re.disabled&&!Re.states.groupDisabled}),Ce=W=>{if(!!e.multiple&&W.code!==rt.delete&&W.target.value.length<=0){const ue=vn(e.modelValue).slice(),Re=ge(ue);if(Re<0)return;const gt=ue[Re];ue.splice(Re,1),t(Je,ue),ms(ue),t("remove-tag",gt)}},Ne=(W,ue)=>{const Re=a.selected.indexOf(ue);if(Re>-1&&!J.value){const gt=vn(e.modelValue).slice();gt.splice(Re,1),t(Je,gt),ms(gt),t("remove-tag",ue.value)}W.stopPropagation(),vs()},Ae=W=>{W.stopPropagation();const ue=e.multiple?[]:Y.value;if(e.multiple)for(const Re of a.selected)Re.isDisabled&&ue.push(Re.value);t(Je,ue),ms(ue),a.hoveringIndex=-1,I.value=!1,t("clear"),vs()},We=W=>{var ue;if(e.multiple){const Re=vn((ue=e.modelValue)!=null?ue:[]).slice(),gt=ft(Re,W);gt>-1?Re.splice(gt,1):(e.multipleLimit<=0||Re.length<e.multipleLimit)&&Re.push(W.value),t(Je,Re),ms(Re),W.created&&Tn(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Je,W.value),ms(W.value),I.value=!1;vs(),!I.value&&Me(()=>{wt(W)})},ft=(W=[],ue)=>$t(ue)?-1:St(ue.value)?W.findIndex(Re=>ts(Qn(Re,e.valueKey),la(ue))):W.indexOf(ue.value),wt=W=>{var ue,Re,gt,qt,bs;const go=ze(W)?W[0]:W;let ua=null;if(go!=null&&go.value){const Js=V.value.filter(Qv=>Qv.value===go.value);Js.length>0&&(ua=Js[0].$el)}if(u.value&&ua){const Js=(qt=(gt=(Re=(ue=u.value)==null?void 0:ue.popperRef)==null?void 0:Re.contentRef)==null?void 0:gt.querySelector)==null?void 0:qt.call(gt,`.${s.be("dropdown","wrap")}`);Js&&A1(Js,ua)}(bs=w.value)==null||bs.handleScroll()},An=W=>{a.options.set(W.value,W),a.cachedOptions.set(W.value,W)},fn=(W,ue)=>{a.options.get(W)===ue&&a.options.delete(W)},Bo=T(()=>{var W,ue;return(ue=(W=u.value)==null?void 0:W.popperRef)==null?void 0:ue.contentRef}),hn=()=>{a.isBeforeHide=!1,Me(()=>wt(a.selected))},vs=()=>{var W;(W=d.value)==null||W.focus()},zv=()=>{var W;if(I.value){I.value=!1,Me(()=>{var ue;return(ue=d.value)==null?void 0:ue.blur()});return}(W=d.value)==null||W.blur()},Vv=W=>{Ae(W)},Hv=W=>{if(I.value=!1,E.value){const ue=new FocusEvent("focus",W);Me(()=>O(ue))}},Wv=()=>{a.inputValue.length>0?a.inputValue="":I.value=!1},Ec=()=>{J.value||(Pc&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:I.value=!I.value)},jv=()=>{if(!I.value)Ec();else{const W=V.value[a.hoveringIndex];W&&!W.disabled&&!W.states.groupDisabled&&We(W)}},la=W=>St(W.value)?Qn(W.value,e.valueKey):W.value,Uv=T(()=>V.value.filter(W=>W.visible).every(W=>W.disabled)),Kv=T(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),qv=T(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Mc=W=>{if(!I.value){I.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||S.value)&&!Uv.value){W==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):W==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ue=V.value[a.hoveringIndex];(ue.disabled===!0||ue.states.groupDisabled===!0||!ue.visible)&&Mc(W),Me(()=>wt($.value))}},Yv=()=>{if(!l.value)return 0;const W=window.getComputedStyle(l.value);return Number.parseFloat(W.gap||"6px")},Gv=T(()=>{const W=Yv();return{maxWidth:`${b.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-W:a.selectionWidth}px`}}),Xv=T(()=>({maxWidth:`${a.selectionWidth}px`})),Jv=T(()=>({width:`${Math.max(a.calculatorWidth,XM)}px`}));return Tt(l,Wn),Tt(f,se),Tt(g,Lt),Tt(C,Lt),Tt(m,Pn),Tt(b,qe),De(()=>{Ct()}),{inputId:ae,contentId:o,nsSelect:s,nsInput:i,states:a,isFocused:E,expanded:I,optionsArray:V,hoverOption:$,selectSize:Ee,filteredOptionsCount:F,resetCalculatorWidth:se,updateTooltip:Lt,updateTagTooltip:Pn,debouncedOnInputChange:$r,onInput:ra,deletePrevTag:Ce,deleteTag:Ne,deleteSelected:Ae,handleOptionSelect:We,scrollToOption:wt,hasModelValue:U,shouldShowPlaceholder:be,currentPlaceholder:dt,mouseEnterEventName:Ke,needStatusIcon:H,showClose:de,iconComponent:Se,iconReverse:te,validateState:X,validateIcon:Q,showNewOption:Z,updateOptions:fe,collapseTagSize:ve,setSelected:Ct,selectDisabled:J,emptyText:ne,handleCompositionStart:_,handleCompositionUpdate:y,handleCompositionEnd:x,onOptionCreate:An,onOptionDestroy:fn,handleMenuEnter:hn,focus:vs,blur:zv,handleClearClick:Vv,handleClickOutside:Hv,handleEsc:Wv,toggleMenu:Ec,selectOption:jv,getValueKey:la,navigateOptions:Mc,dropdownMenuVisible:xe,showTagList:Kv,collapseTagList:qv,tagStyle:Gv,collapseTagStyle:Xv,inputStyle:Jv,popperRef:Bo,inputRef:d,tooltipRef:u,tagTooltipRef:c,calculatorRef:f,prefixRef:h,suffixRef:p,selectRef:r,wrapperRef:C,selectionRef:l,scrollbarRef:w,menuRef:g,tagMenuRef:m,collapseItemRef:b}};var QM=K({name:"ElOptions",setup(e,{slots:t}){const n=we(kr);let o=[];return()=>{var s,i;const a=(s=t.default)==null?void 0:s.call(t),r=[];function l(u){!ze(u)||u.forEach(c=>{var d,f,h,p;const g=(d=(c==null?void 0:c.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?l(!Ie(c.children)&&!ze(c.children)&&je((f=c.children)==null?void 0:f.default)?(h=c.children)==null?void 0:h.default():c.children):g==="ElOption"?r.push((p=c.props)==null?void 0:p.value):ze(c.children)&&l(c.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),ts(r,o)||(o=r,n&&(n.states.optionValues=r)),a}}});const ZM=ye({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:En,effect:{type:he(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:he(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Mt.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:mt,default:np},fitInputWidth:Boolean,suffixIcon:{type:mt,default:yu},tagType:{...Ul.type,default:"info"},tagEffect:{...Ul.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:he(String),values:wr,default:"bottom-start"},fallbackPlacements:{type:he(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...ep,...zn(["ariaLabel"])}),Gd="ElSelect",eT=K({name:Gd,componentName:Gd,components:{ElSelectMenu:GM,ElOption:Ju,ElOptions:QM,ElTag:Yg,ElScrollbar:ju,ElTooltip:Vn,ElIcon:Le},directives:{ClickOutside:Xu},props:ZM,emits:[Je,ro,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=T(()=>{const{modelValue:a,multiple:r}=e,l=r?[]:void 0;return ze(a)?r?a:l:r?l:a}),o=Ft({...uo(e),modelValue:n}),s=JM(o,t);nt(kr,Ft({props:o,states:s.states,optionsArray:s.optionsArray,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy,selectRef:s.selectRef,setSelected:s.setSelected}));const i=T(()=>e.multiple?s.states.selected.map(a=>a.currentLabel):s.states.selectedLabel);return{...s,modelValue:n,selectedLabel:i}}});function tT(e,t,n,o,s,i){const a=_e("el-tag"),r=_e("el-tooltip"),l=_e("el-icon"),u=_e("el-option"),c=_e("el-options"),d=_e("el-scrollbar"),f=_e("el-select-menu"),h=co("click-outside");return $e((M(),D("div",{ref:"selectRef",class:A([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Mb(e.mouseEnterEventName)]:p=>e.states.inputHovering=!0,onMouseleave:p=>e.states.inputHovering=!1},[P(r,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:p=>e.states.isBeforeHide=!1},{default:L(()=>{var p;return[k("div",{ref:"wrapperRef",class:A([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:Xe(e.toggleMenu,["prevent"])},[e.$slots.prefix?(M(),D("div",{key:0,ref:"prefixRef",class:A(e.nsSelect.e("prefix"))},[re(e.$slots,"prefix")],2)):q("v-if",!0),k("div",{ref:"selectionRef",class:A([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?re(e.$slots,"tag",{key:0},()=>[(M(!0),D(Qe,null,Bt(e.showTagList,g=>(M(),D("div",{key:e.getValueKey(g),class:A(e.nsSelect.e("selected-item"))},[P(a,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Oe(e.tagStyle),onClose:m=>e.deleteTag(m,g)},{default:L(()=>[k("span",{class:A(e.nsSelect.e("tags-text"))},[re(e.$slots,"label",{label:g.currentLabel,value:g.value},()=>[le(ee(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(M(),G(r,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:L(()=>[k("div",{ref:"collapseItemRef",class:A(e.nsSelect.e("selected-item"))},[P(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Oe(e.collapseTagStyle)},{default:L(()=>[k("span",{class:A(e.nsSelect.e("tags-text"))}," + "+ee(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[k("div",{ref:"tagMenuRef",class:A(e.nsSelect.e("selection"))},[(M(!0),D(Qe,null,Bt(e.collapseTagList,g=>(M(),D("div",{key:e.getValueKey(g),class:A(e.nsSelect.e("selected-item"))},[P(a,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:m=>e.deleteTag(m,g)},{default:L(()=>[k("span",{class:A(e.nsSelect.e("tags-text"))},[re(e.$slots,"label",{label:g.currentLabel,value:g.value},()=>[le(ee(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):q("v-if",!0)]):q("v-if",!0),e.selectDisabled?q("v-if",!0):(M(),D("div",{key:1,class:A([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[$e(k("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":g=>e.states.inputValue=g,type:"text",name:e.name,class:A([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Oe(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[zt(Xe(g=>e.navigateOptions("next"),["stop","prevent"]),["down"]),zt(Xe(g=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),zt(Xe(e.handleEsc,["stop","prevent"]),["esc"]),zt(Xe(e.selectOption,["stop","prevent"]),["enter"]),zt(Xe(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:Xe(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Eb,e.states.inputValue]]),e.filterable?(M(),D("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:A(e.nsSelect.e("input-calculator")),textContent:ee(e.states.inputValue)},null,10,["textContent"])):q("v-if",!0)],2)),e.shouldShowPlaceholder?(M(),D("div",{key:2,class:A([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?re(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[k("span",null,ee(e.currentPlaceholder),1)]):(M(),D("span",{key:1},ee(e.currentPlaceholder),1))],2)):q("v-if",!0)],2),k("div",{ref:"suffixRef",class:A(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(M(),G(l,{key:0,class:A([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(M(),G(Ue(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),e.showClose&&e.clearIcon?(M(),G(l,{key:1,class:A([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(M(),G(Ue(e.clearIcon)))]),_:1},8,["class","onClick"])):q("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(M(),G(l,{key:2,class:A([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:L(()=>[(M(),G(Ue(e.validateIcon)))]),_:1},8,["class"])):q("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[P(f,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(M(),D("div",{key:0,class:A(e.nsSelect.be("dropdown","header")),onClick:Xe(()=>{},["stop"])},[re(e.$slots,"header")],10,["onClick"])):q("v-if",!0),$e(P(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:A([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:L(()=>[e.showNewOption?(M(),G(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):q("v-if",!0),P(c,null,{default:L(()=>[re(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[At,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(M(),D("div",{key:1,class:A(e.nsSelect.be("dropdown","loading"))},[re(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(M(),D("div",{key:2,class:A(e.nsSelect.be("dropdown","empty"))},[re(e.$slots,"empty",{},()=>[k("span",null,ee(e.emptyText),1)])],2)):q("v-if",!0),e.$slots.footer?(M(),D("div",{key:3,class:A(e.nsSelect.be("dropdown","footer")),onClick:Xe(()=>{},["stop"])},[re(e.$slots,"footer")],10,["onClick"])):q("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[h,e.handleClickOutside,e.popperRef]])}var nT=me(eT,[["render",tT],["__file","select.vue"]]);const oT=K({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=pe("select"),n=R(null),o=Ve(),s=R([]);nt(tm,Ft({...uo(e)}));const i=T(()=>s.value.some(u=>u.visible===!0)),a=u=>{var c,d;return((c=u.type)==null?void 0:c.name)==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},r=u=>{const c=vn(u),d=[];return c.forEach(f=>{var h,p;a(f)?d.push(f.component.proxy):(h=f.children)!=null&&h.length?d.push(...r(f.children)):(p=f.component)!=null&&p.subTree&&d.push(...r(f.component.subTree))}),d},l=()=>{s.value=r(o.subTree)};return De(()=>{l()}),Tb(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function sT(e,t,n,o,s,i){return $e((M(),D("ul",{ref:"groupRef",class:A(e.ns.be("group","wrap"))},[k("li",{class:A(e.ns.be("group","title"))},ee(e.label),3),k("li",null,[k("ul",{class:A(e.ns.b("group"))},[re(e.$slots,"default")],2)])],2)),[[At,e.visible]])}var nm=me(oT,[["render",sT],["__file","option-group.vue"]]);const Er=ct(nT,{Option:Ju,OptionGroup:nm}),Mr=dn(Ju);dn(nm);const Qu=()=>we(em,{}),iT=ye({pageSize:{type:Number,required:!0},pageSizes:{type:he(Array),default:()=>bn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Ks},appendSizeTo:String}),aT=K({name:"ElPaginationSizes"}),rT=K({...aT,props:iT,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=Ut(),s=pe("pagination"),i=Qu(),a=R(n.pageSize);ie(()=>n.pageSizes,(u,c)=>{if(!ts(u,c)&&ze(u)){const d=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),ie(()=>n.pageSize,u=>{a.value=u});const r=T(()=>n.pageSizes);function l(u){var c;u!==a.value&&(a.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(M(),D("span",{class:A(v(s).e("sizes"))},[P(v(Er),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:l},{default:L(()=>[(M(!0),D(Qe,null,Bt(v(r),d=>(M(),G(v(Mr),{key:d,value:d,label:d+v(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var lT=me(rT,[["__file","sizes.vue"]]);const uT=ye({size:{type:String,values:Ks}}),cT=K({name:"ElPaginationJumper"}),dT=K({...cT,props:uT,setup(e){const{t}=Ut(),n=pe("pagination"),{pageCount:o,disabled:s,currentPage:i,changeEvent:a}=Qu(),r=R(),l=T(()=>{var d;return(d=r.value)!=null?d:i==null?void 0:i.value});function u(d){r.value=d?+d:""}function c(d){d=Math.trunc(+d),a==null||a(d),r.value=void 0}return(d,f)=>(M(),D("span",{class:A(v(n).e("jump")),disabled:v(s)},[k("span",{class:A([v(n).e("goto")])},ee(v(t)("el.pagination.goto")),3),P(v($o),{size:d.size,class:A([v(n).e("editor"),v(n).is("in-pagination")]),min:1,max:v(o),disabled:v(s),"model-value":v(l),"validate-event":!1,"aria-label":v(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","aria-label"]),k("span",{class:A([v(n).e("classifier")])},ee(v(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var fT=me(dT,[["__file","jumper.vue"]]);const hT=ye({total:{type:Number,default:1e3}}),pT=K({name:"ElPaginationTotal"}),gT=K({...pT,props:hT,setup(e){const{t}=Ut(),n=pe("pagination"),{disabled:o}=Qu();return(s,i)=>(M(),D("span",{class:A(v(n).e("total")),disabled:v(o)},ee(v(t)("el.pagination.total",{total:s.total})),11,["disabled"]))}});var mT=me(gT,[["__file","total.vue"]]);const vT=ye({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),bT=K({name:"ElPaginationPager"}),yT=K({...bT,props:vT,emits:["change"],setup(e,{emit:t}){const n=e,o=pe("pager"),s=pe("icon"),{t:i}=Ut(),a=R(!1),r=R(!1),l=R(!1),u=R(!1),c=R(!1),d=R(!1),f=T(()=>{const _=n.pagerCount,y=(_-1)/2,x=Number(n.currentPage),C=Number(n.pageCount);let E=!1,O=!1;C>_&&(x>_-y&&(E=!0),x<C-y&&(O=!0));const I=[];if(E&&!O){const $=C-(_-2);for(let N=$;N<C;N++)I.push(N)}else if(!E&&O)for(let $=2;$<_;$++)I.push($);else if(E&&O){const $=Math.floor(_/2)-1;for(let N=x-$;N<=x+$;N++)I.push(N)}else for(let $=2;$<C;$++)I.push($);return I}),h=T(()=>["more","btn-quickprev",s.b(),o.is("disabled",n.disabled)]),p=T(()=>["more","btn-quicknext",s.b(),o.is("disabled",n.disabled)]),g=T(()=>n.disabled?-1:0);no(()=>{const _=(n.pagerCount-1)/2;a.value=!1,r.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-_&&(a.value=!0),n.currentPage<n.pageCount-_&&(r.value=!0))});function m(_=!1){n.disabled||(_?l.value=!0:u.value=!0)}function b(_=!1){_?c.value=!0:d.value=!0}function w(_){const y=_.target;if(y.tagName.toLowerCase()==="li"&&Array.from(y.classList).includes("number")){const x=Number(y.textContent);x!==n.currentPage&&t("change",x)}else y.tagName.toLowerCase()==="li"&&Array.from(y.classList).includes("more")&&S(_)}function S(_){const y=_.target;if(y.tagName.toLowerCase()==="ul"||n.disabled)return;let x=Number(y.textContent);const C=n.pageCount,E=n.currentPage,O=n.pagerCount-2;y.className.includes("more")&&(y.className.includes("quickprev")?x=E-O:y.className.includes("quicknext")&&(x=E+O)),Number.isNaN(+x)||(x<1&&(x=1),x>C&&(x=C)),x!==E&&t("change",x)}return(_,y)=>(M(),D("ul",{class:A(v(o).b()),onClick:S,onKeyup:zt(w,["enter"])},[_.pageCount>0?(M(),D("li",{key:0,class:A([[v(o).is("active",_.currentPage===1),v(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":v(i)("el.pagination.currentPage",{pager:1}),tabindex:v(g)}," 1 ",10,["aria-current","aria-label","tabindex"])):q("v-if",!0),a.value?(M(),D("li",{key:1,class:A(v(h)),tabindex:v(g),"aria-label":v(i)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:x=>m(!0),onMouseleave:x=>l.value=!1,onFocus:x=>b(!0),onBlur:x=>c.value=!1},[(l.value||c.value)&&!_.disabled?(M(),G(v(cp),{key:0})):(M(),G(v(Oc),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):q("v-if",!0),(M(!0),D(Qe,null,Bt(v(f),x=>(M(),D("li",{key:x,class:A([[v(o).is("active",_.currentPage===x),v(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===x,"aria-label":v(i)("el.pagination.currentPage",{pager:x}),tabindex:v(g)},ee(x),11,["aria-current","aria-label","tabindex"]))),128)),r.value?(M(),D("li",{key:2,class:A(v(p)),tabindex:v(g),"aria-label":v(i)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:x=>m(),onMouseleave:x=>u.value=!1,onFocus:x=>b(),onBlur:x=>d.value=!1},[(u.value||d.value)&&!_.disabled?(M(),G(v(dp),{key:0})):(M(),G(v(Oc),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):q("v-if",!0),_.pageCount>1?(M(),D("li",{key:3,class:A([[v(o).is("active",_.currentPage===_.pageCount),v(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":v(i)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:v(g)},ee(_.pageCount),11,["aria-current","aria-label","tabindex"])):q("v-if",!0)],42,["onKeyup"]))}});var _T=me(yT,[["__file","pager.vue"]]);const It=e=>typeof e!="number",wT=ye({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Te(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:he(Array),default:()=>bn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:mt,default:()=>fp},nextText:{type:String,default:""},nextIcon:{type:mt,default:()=>yr},teleported:{type:Boolean,default:!0},small:Boolean,size:En,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),ST={"update:current-page":e=>Te(e),"update:page-size":e=>Te(e),"size-change":e=>Te(e),change:(e,t)=>Te(e)&&Te(t),"current-change":e=>Te(e),"prev-click":e=>Te(e),"next-click":e=>Te(e)},Xd="ElPagination";var xT=K({name:Xd,props:wT,emits:ST,setup(e,{emit:t,slots:n}){const{t:o}=Ut(),s=pe("pagination"),i=Ve().vnode.props||{},a=tp(),r=T(()=>{var y;return e.small?"small":(y=e.size)!=null?y:a.value});ns({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},T(()=>!!e.small));const l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,u="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,c=T(()=>{if(It(e.total)&&It(e.pageCount)||!It(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(It(e.pageCount)){if(!It(e.total)&&!It(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),d=R(It(e.defaultPageSize)?10:e.defaultPageSize),f=R(It(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=T({get(){return It(e.pageSize)?d.value:e.pageSize},set(y){It(e.pageSize)&&(d.value=y),u&&(t("update:page-size",y),t("size-change",y))}}),p=T(()=>{let y=0;return It(e.pageCount)?It(e.total)||(y=Math.max(1,Math.ceil(e.total/h.value))):y=e.pageCount,y}),g=T({get(){return It(e.currentPage)?f.value:e.currentPage},set(y){let x=y;y<1?x=1:y>p.value&&(x=p.value),It(e.currentPage)&&(f.value=x),l&&(t("update:current-page",x),t("current-change",x))}});ie(p,y=>{g.value>y&&(g.value=y)}),ie([g,h],y=>{t("change",...y)},{flush:"post"});function m(y){g.value=y}function b(y){h.value=y;const x=p.value;g.value>x&&(g.value=x)}function w(){e.disabled||(g.value-=1,t("prev-click",g.value))}function S(){e.disabled||(g.value+=1,t("next-click",g.value))}function _(y,x){y&&(y.props||(y.props={}),y.props.class=[y.props.class,x].join(" "))}return nt(em,{pageCount:p,disabled:T(()=>e.disabled),currentPage:g,changeEvent:m,handleSizeChange:b}),()=>{var y,x;if(!c.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const C=[],E=[],O=ke("div",{class:s.e("rightwrapper")},E),I={prev:ke(NM,{disabled:e.disabled,currentPage:g.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:w}),jumper:ke(fT,{size:r.value}),pager:ke(_T,{currentPage:g.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:ke(WM,{disabled:e.disabled,currentPage:g.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:S}),sizes:ke(lT,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:r.value,appendSizeTo:e.appendSizeTo}),slot:(x=(y=n==null?void 0:n.default)==null?void 0:y.call(n))!=null?x:null,total:ke(mT,{total:It(e.total)?0:e.total})},$=e.layout.split(",").map(j=>j.trim());let N=!1;return $.forEach(j=>{if(j==="->"){N=!0;return}N?E.push(I[j]):C.push(I[j])}),_(C[0],s.is("first")),_(C[C.length-1],s.is("last")),N&&E.length>0&&(_(E[0],s.is("first")),_(E[E.length-1],s.is("last")),C.push(O)),ke("div",{class:[s.b(),s.is("background",e.background),s.m(r.value)]},C)}}});const CT=ct(xT),kT=ye({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Ll,default:"primary"},cancelButtonType:{type:String,values:Ll,default:"text"},icon:{type:mt,default:()=>Pb},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Mt.teleported,persistent:Mt.persistent,width:{type:[String,Number],default:150}}),ET={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},MT=K({name:"ElPopconfirm"}),TT=K({...MT,props:kT,emits:ET,setup(e,{emit:t}){const n=e,{t:o}=Ut(),s=pe("popconfirm"),i=R(),a=()=>{var f,h;(h=(f=i.value)==null?void 0:f.onClose)==null||h.call(f)},r=T(()=>({width:jt(n.width)})),l=f=>{t("confirm",f),a()},u=f=>{t("cancel",f),a()},c=T(()=>n.confirmButtonText||o("el.popconfirm.confirmButtonText")),d=T(()=>n.cancelButtonText||o("el.popconfirm.cancelButtonText"));return(f,h)=>(M(),G(v(Vn),rn({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},f.$attrs,{"popper-class":`${v(s).namespace.value}-popover`,"popper-style":v(r),teleported:f.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":f.hideAfter,persistent:f.persistent}),{content:L(()=>[k("div",{class:A(v(s).b())},[k("div",{class:A(v(s).e("main"))},[!f.hideIcon&&f.icon?(M(),G(v(Le),{key:0,class:A(v(s).e("icon")),style:Oe({color:f.iconColor})},{default:L(()=>[(M(),G(Ue(f.icon)))]),_:1},8,["class","style"])):q("v-if",!0),le(" "+ee(f.title),1)],2),k("div",{class:A(v(s).e("action"))},[re(f.$slots,"actions",{confirm:l,cancel:u},()=>[P(v(xn),{size:"small",type:f.cancelButtonType==="text"?"":f.cancelButtonType,text:f.cancelButtonType==="text",onClick:u},{default:L(()=>[le(ee(v(d)),1)]),_:1},8,["type","text"]),P(v(xn),{size:"small",type:f.confirmButtonType==="text"?"":f.confirmButtonType,text:f.confirmButtonType==="text",onClick:l},{default:L(()=>[le(ee(v(c)),1)]),_:1},8,["type","text"])])],2)],2)]),default:L(()=>[f.$slots.reference?re(f.$slots,"reference",{key:0}):q("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var PT=me(TT,[["__file","popconfirm.vue"]]);const om=ct(PT),OT=ye({trigger:Fi.trigger,placement:qr.placement,disabled:Fi.disabled,visible:Mt.visible,transition:Mt.transition,popperOptions:qr.popperOptions,tabindex:qr.tabindex,content:Mt.content,popperStyle:Mt.popperStyle,popperClass:Mt.popperClass,enterable:{...Mt.enterable,default:!0},effect:{...Mt.effect,default:"light"},teleported:Mt.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),AT={"update:visible":e=>lt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},RT="onUpdate:visible",LT=K({name:"ElPopover"}),IT=K({...LT,props:OT,emits:AT,setup(e,{expose:t,emit:n}){const o=e,s=T(()=>o[RT]),i=pe("popover"),a=R(),r=T(()=>{var m;return(m=v(a))==null?void 0:m.popperRef}),l=T(()=>[{width:jt(o.width)},o.popperStyle]),u=T(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),c=T(()=>o.transition===`${i.namespace.value}-fade-in-linear`),d=()=>{var m;(m=a.value)==null||m.hide()},f=()=>{n("before-enter")},h=()=>{n("before-leave")},p=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:r,hide:d}),(m,b)=>(M(),G(v(Vn),rn({ref_key:"tooltipRef",ref:a},m.$attrs,{trigger:m.trigger,placement:m.placement,disabled:m.disabled,visible:m.visible,transition:m.transition,"popper-options":m.popperOptions,tabindex:m.tabindex,content:m.content,offset:m.offset,"show-after":m.showAfter,"hide-after":m.hideAfter,"auto-close":m.autoClose,"show-arrow":m.showArrow,"aria-label":m.title,effect:m.effect,enterable:m.enterable,"popper-class":v(u),"popper-style":v(l),teleported:m.teleported,persistent:m.persistent,"gpu-acceleration":v(c),"onUpdate:visible":v(s),onBeforeShow:f,onBeforeHide:h,onShow:p,onHide:g}),{content:L(()=>[m.title?(M(),D("div",{key:0,class:A(v(i).e("title")),role:"title"},ee(m.title),3)):q("v-if",!0),re(m.$slots,"default",{},()=>[le(ee(m.content),1)])]),default:L(()=>[m.$slots.reference?re(m.$slots,"reference",{key:0}):q("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var $T=me(IT,[["__file","popover.vue"]]);const Jd=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var FT={mounted(e,t){Jd(e,t)},updated(e,t){Jd(e,t)}};const BT="popover",DT=Ob(FT,BT),NT=ct($T,{directive:DT}),zT=ye({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:he([Number,Object])}}),VT=ye({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),HT=K({name:"ElSkeletonItem"}),WT=K({...HT,props:VT,setup(e){const t=pe("skeleton");return(n,o)=>(M(),D("div",{class:A([v(t).e("item"),v(t).e(n.variant)])},[n.variant==="image"?(M(),G(v(Ab),{key:0})):q("v-if",!0)],2))}});var rr=me(WT,[["__file","skeleton-item.vue"]]);const jT=K({name:"ElSkeleton"}),UT=K({...jT,props:zT,setup(e,{expose:t}){const n=e,o=pe("skeleton"),s=jS(on(n,"loading"),n.throttle);return t({uiLoading:s}),(i,a)=>v(s)?(M(),D("div",rn({key:0,class:[v(o).b(),v(o).is("animated",i.animated)]},i.$attrs),[(M(!0),D(Qe,null,Bt(i.count,r=>(M(),D(Qe,{key:r},[v(s)?re(i.$slots,"template",{key:r},()=>[P(rr,{class:A(v(o).is("first")),variant:"p"},null,8,["class"]),(M(!0),D(Qe,null,Bt(i.rows,l=>(M(),G(rr,{key:l,class:A([v(o).e("paragraph"),v(o).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):q("v-if",!0)],64))),128))],16)):re(i.$slots,"default",Rb(rn({key:1},i.$attrs)))}});var KT=me(UT,[["__file","skeleton.vue"]]);const qT=ct(KT,{SkeletonItem:rr});dn(rr);const YT=ye({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),GT={[ro]:(e,t)=>[e,t].every(Te)},XT=K({name:"ElSteps"}),JT=K({...XT,props:YT,emits:GT,setup(e,{emit:t}){const n=e,o=pe("steps"),{children:s,addChild:i,removeChild:a}=fg(Ve(),"ElStep");return ie(s,()=>{s.value.forEach((r,l)=>{r.setIndex(l)})}),nt("ElSteps",{props:n,steps:s,addStep:i,removeStep:a}),ie(()=>n.active,(r,l)=>{t(ro,r,l)}),(r,l)=>(M(),D("div",{class:A([v(o).b(),v(o).m(r.simple?"simple":r.direction)])},[re(r.$slots,"default")],2))}});var QT=me(JT,[["__file","steps.vue"]]);const ZT=ye({title:{type:String,default:""},icon:{type:mt},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),eP=K({name:"ElStep"}),tP=K({...eP,props:ZT,setup(e){const t=e,n=pe("step"),o=R(-1),s=R({}),i=R(""),a=we("ElSteps"),r=Ve();De(()=>{ie([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([x])=>{_(x)},{immediate:!0})}),yt(()=>{a.removeStep(y.uid)});const l=T(()=>t.status||i.value),u=T(()=>{const x=a.steps.value[o.value-1];return x?x.currentStatus:"wait"}),c=T(()=>a.props.alignCenter),d=T(()=>a.props.direction==="vertical"),f=T(()=>a.props.simple),h=T(()=>a.steps.value.length),p=T(()=>{var x;return((x=a.steps.value[h.value-1])==null?void 0:x.uid)===(r==null?void 0:r.uid)}),g=T(()=>f.value?"":a.props.space),m=T(()=>[n.b(),n.is(f.value?"simple":a.props.direction),n.is("flex",p.value&&!g.value&&!c.value),n.is("center",c.value&&!d.value&&!f.value)]),b=T(()=>{const x={flexBasis:Te(g.value)?`${g.value}px`:g.value?g.value:`${100/(h.value-(c.value?0:1))}%`};return d.value||p.value&&(x.maxWidth=`${100/h.value}%`),x}),w=x=>{o.value=x},S=x=>{const C=x==="wait",E={transitionDelay:`${C?"-":""}${150*o.value}ms`},O=x===a.props.processStatus||C?0:100;E.borderWidth=O&&!f.value?"1px":0,E[a.props.direction==="vertical"?"height":"width"]=`${O}%`,s.value=E},_=x=>{x>o.value?i.value=a.props.finishStatus:x===o.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const C=a.steps.value[o.value-1];C&&C.calcProgress(i.value)},y=Ft({uid:r.uid,currentStatus:l,setIndex:w,calcProgress:S});return a.addStep(y),(x,C)=>(M(),D("div",{style:Oe(v(b)),class:A(v(m))},[q(" icon & line "),k("div",{class:A([v(n).e("head"),v(n).is(v(l))])},[v(f)?q("v-if",!0):(M(),D("div",{key:0,class:A(v(n).e("line"))},[k("i",{class:A(v(n).e("line-inner")),style:Oe(s.value)},null,6)],2)),k("div",{class:A([v(n).e("icon"),v(n).is(x.icon||x.$slots.icon?"icon":"text")])},[re(x.$slots,"icon",{},()=>[x.icon?(M(),G(v(Le),{key:0,class:A(v(n).e("icon-inner"))},{default:L(()=>[(M(),G(Ue(x.icon)))]),_:1},8,["class"])):v(l)==="success"?(M(),G(v(Le),{key:1,class:A([v(n).e("icon-inner"),v(n).is("status")])},{default:L(()=>[P(v(Lb))]),_:1},8,["class"])):v(l)==="error"?(M(),G(v(Le),{key:2,class:A([v(n).e("icon-inner"),v(n).is("status")])},{default:L(()=>[P(v(Pi))]),_:1},8,["class"])):v(f)?q("v-if",!0):(M(),D("div",{key:3,class:A(v(n).e("icon-inner"))},ee(o.value+1),3))])],2)],2),q(" title & description "),k("div",{class:A(v(n).e("main"))},[k("div",{class:A([v(n).e("title"),v(n).is(v(l))])},[re(x.$slots,"title",{},()=>[le(ee(x.title),1)])],2),v(f)?(M(),D("div",{key:0,class:A(v(n).e("arrow"))},null,2)):(M(),D("div",{key:1,class:A([v(n).e("description"),v(n).is(v(l))])},[re(x.$slots,"description",{},()=>[le(ee(x.description),1)])],2))],2)],6))}});var sm=me(tP,[["__file","item.vue"]]);const nP=ct(QT,{Step:sm}),oP=dn(sm),sP=ye({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:Yp},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:mt},activeActionIcon:{type:mt},activeIcon:{type:mt},inactiveIcon:{type:mt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:he(Function)},id:String,tabindex:{type:[String,Number]},...zn(["ariaLabel"])}),iP={[Je]:e=>lt(e)||Ie(e)||Te(e),[ro]:e=>lt(e)||Ie(e)||Te(e),[El]:e=>lt(e)||Ie(e)||Te(e)},im="ElSwitch",aP=K({name:im}),rP=K({...aP,props:sP,emits:iP,setup(e,{expose:t,emit:n}){const o=e,{formItem:s}=fo(),i=cn(),a=pe("switch"),{inputId:r}=ps(o,{formItemContext:s}),l=hs(T(()=>o.loading)),u=R(o.modelValue!==!1),c=R(),d=R(),f=T(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",b.value)]),h=T(()=>[a.e("label"),a.em("label","left"),a.is("active",!b.value)]),p=T(()=>[a.e("label"),a.em("label","right"),a.is("active",b.value)]),g=T(()=>({width:jt(o.width)}));ie(()=>o.modelValue,()=>{u.value=!0});const m=T(()=>u.value?o.modelValue:!1),b=T(()=>m.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(m.value)||(n(Je,o.inactiveValue),n(ro,o.inactiveValue),n(El,o.inactiveValue)),ie(b,y=>{var x;c.value.checked=y,o.validateEvent&&((x=s==null?void 0:s.validate)==null||x.call(s,"change").catch(C=>void 0))});const w=()=>{const y=b.value?o.inactiveValue:o.activeValue;n(Je,y),n(ro,y),n(El,y),Me(()=>{c.value.checked=b.value})},S=()=>{if(l.value)return;const{beforeChange:y}=o;if(!y){w();return}const x=y();[Ac(x),lt(x)].includes(!0)||Lo(im,"beforeChange must return type `Promise<boolean>` or `boolean`"),Ac(x)?x.then(E=>{E&&w()}).catch(E=>{}):x&&w()},_=()=>{var y,x;(x=(y=c.value)==null?void 0:y.focus)==null||x.call(y)};return De(()=>{c.value.checked=b.value}),t({focus:_,checked:b}),(y,x)=>(M(),D("div",{class:A(v(f)),onClick:Xe(S,["prevent"])},[k("input",{id:v(r),ref_key:"input",ref:c,class:A(v(a).e("input")),type:"checkbox",role:"switch","aria-checked":v(b),"aria-disabled":v(l),"aria-label":y.ariaLabel,name:y.name,"true-value":y.activeValue,"false-value":y.inactiveValue,disabled:v(l),tabindex:y.tabindex,onChange:w,onKeydown:zt(S,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!y.inlinePrompt&&(y.inactiveIcon||y.inactiveText)?(M(),D("span",{key:0,class:A(v(h))},[y.inactiveIcon?(M(),G(v(Le),{key:0},{default:L(()=>[(M(),G(Ue(y.inactiveIcon)))]),_:1})):q("v-if",!0),!y.inactiveIcon&&y.inactiveText?(M(),D("span",{key:1,"aria-hidden":v(b)},ee(y.inactiveText),9,["aria-hidden"])):q("v-if",!0)],2)):q("v-if",!0),k("span",{ref_key:"core",ref:d,class:A(v(a).e("core")),style:Oe(v(g))},[y.inlinePrompt?(M(),D("div",{key:0,class:A(v(a).e("inner"))},[y.activeIcon||y.inactiveIcon?(M(),G(v(Le),{key:0,class:A(v(a).is("icon"))},{default:L(()=>[(M(),G(Ue(v(b)?y.activeIcon:y.inactiveIcon)))]),_:1},8,["class"])):y.activeText||y.inactiveText?(M(),D("span",{key:1,class:A(v(a).is("text")),"aria-hidden":!v(b)},ee(v(b)?y.activeText:y.inactiveText),11,["aria-hidden"])):q("v-if",!0)],2)):q("v-if",!0),k("div",{class:A(v(a).e("action"))},[y.loading?(M(),G(v(Le),{key:0,class:A(v(a).is("loading"))},{default:L(()=>[P(v(Mi))]),_:1},8,["class"])):v(b)?re(y.$slots,"active-action",{key:1},()=>[y.activeActionIcon?(M(),G(v(Le),{key:0},{default:L(()=>[(M(),G(Ue(y.activeActionIcon)))]),_:1})):q("v-if",!0)]):v(b)?q("v-if",!0):re(y.$slots,"inactive-action",{key:2},()=>[y.inactiveActionIcon?(M(),G(v(Le),{key:0},{default:L(()=>[(M(),G(Ue(y.inactiveActionIcon)))]),_:1})):q("v-if",!0)])],2)],6),!y.inlinePrompt&&(y.activeIcon||y.activeText)?(M(),D("span",{key:1,class:A(v(p))},[y.activeIcon?(M(),G(v(Le),{key:0},{default:L(()=>[(M(),G(Ue(y.activeIcon)))]),_:1})):q("v-if",!0),!y.activeIcon&&y.activeText?(M(),D("span",{key:1,"aria-hidden":!v(b)},ee(y.activeText),9,["aria-hidden"])):q("v-if",!0)],2)):q("v-if",!0)],10,["onClick"]))}});var lP=me(rP,[["__file","switch.vue"]]);const am=ct(lP),Yr=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},uP=function(e,t,n,o,s){if(!t&&!o&&(!s||ze(s)&&!s.length))return e;Ie(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(r,l){return s?(ze(s)||(s=[s]),s.map(u=>Ie(u)?Qn(r,u):u(r,l,e))):(t!=="$key"&&St(r)&&"$value"in r&&(r=r.$value),[St(r)?Qn(r,t):r])},a=function(r,l){if(o)return o(r.value,l.value);for(let u=0,c=r.key.length;u<c;u++){if(r.key[u]<l.key[u])return-1;if(r.key[u]>l.key[u])return 1}return 0};return e.map((r,l)=>({value:r,index:l,key:i?i(r,l):null})).sort((r,l)=>{let u=a(r,l);return u||(u=r.index-l.index),u*+n}).map(r=>r.value)},rm=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},cP=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const s=e.columns[o];if(s.columnKey===t){n=s;break}}return n||Lo("ElTable",`No column matching with column-key: ${t}`),n},Qd=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?rm(e,o[0]):null},Pt=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(Ie(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const s of n)o=o[s];return`${o}`}else if(je(t))return t.call(null,e)},Jo=function(e,t){const n={};return(e||[]).forEach((o,s)=>{n[Pt(o,t)]={row:o,index:s}}),n};function dP(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(ao(t,o)){const s=t[o];typeof s<"u"&&(n[o]=s)}return n}function Zu(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function lm(e){return e===""||e!==void 0&&(e=Zu(e),Number.isNaN(e)&&(e=80)),e}function fP(e){return Te(e)?e:Ie(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function hP(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function lr(e,t,n,o,s,i){let a=i!=null?i:0,r=!1;const l=e.indexOf(t),u=l!==-1,c=s==null?void 0:s.call(null,t,i),d=h=>{h==="add"?e.push(t):e.splice(l,1),r=!0},f=h=>{let p=0;const g=(o==null?void 0:o.children)&&h[o.children];return g&&ze(g)&&(p+=g.length,g.forEach(m=>{p+=f(m)})),p};return(!s||c)&&(lt(n)?n&&!u?d("add"):!n&&u&&d("remove"):d(u?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o==null?void 0:o.children)&&ze(t[o.children])&&t[o.children].forEach(h=>{lr(e,h,n!=null?n:!u,o,s,a+1),a+=f(h)+1}),r}function pP(e,t,n="children",o="hasChildren"){const s=a=>!(ze(a)&&a.length);function i(a,r,l){t(a,r,l),r.forEach(u=>{if(u[o]){t(u,null,l+1);return}const c=u[n];s(c)||i(u,c,l+1)})}e.forEach(a=>{if(a[o]){t(a,null,0);return}const r=a[n];s(r)||i(a,r,0)})}const Zd=(e,t)=>({content:t,...e,popperOptions:{strategy:"fixed",...e.popperOptions}});let nn=null;function gP(e,t,n,o){if((nn==null?void 0:nn.trigger)===n){Kp(nn.vm.component.props,Zd(e,t));return}nn==null||nn();const s=o==null?void 0:o.refs.tableWrapper,i=s==null?void 0:s.dataset.prefix,a=P(Vn,{virtualTriggering:!0,virtualRef:n,appendTo:s,placement:"top",transition:"none",offset:0,hideAfter:0,...Zd(e,t)});a.appContext={...o.appContext,...o};const r=document.createElement("div");Os(a,r),a.component.exposed.onOpen();const l=s==null?void 0:s.querySelector(`.${i}-scrollbar__wrap`);nn=()=>{Os(null,r),l==null||l.removeEventListener("scroll",nn),nn=null},nn.trigger=n,nn.vm=a,l==null||l.addEventListener("scroll",nn)}function um(e){return e.children?S1(e.children,um):[e]}function ef(e,t){return e+t.colSpan}const cm=(e,t,n,o)=>{let s=0,i=e;const a=n.states.columns.value;if(o){const l=um(o[e]);s=a.slice(0,a.indexOf(l[0])).reduce(ef,0),i=s+l.reduce(ef,0)-1}else s=e;let r;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(r="left");break;case"right":s>=a.length-n.states.rightFixedLeafColumnsLength.value&&(r="right");break;default:i<n.states.fixedLeafColumnsLength.value?r="left":s>=a.length-n.states.rightFixedLeafColumnsLength.value&&(r="right")}return r?{direction:r,start:s,after:i}:{}},ec=(e,t,n,o,s,i=0)=>{const a=[],{direction:r,start:l,after:u}=cm(t,n,o,s);if(r){const c=r==="left";a.push(`${e}-fixed-column--${r}`),c&&u+i===o.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!c&&l-i===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function tf(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const tc=(e,t,n,o)=>{const{direction:s,start:i=0,after:a=0}=cm(e,t,n,o);if(!s)return;const r={},l=s==="left",u=n.states.columns.value;return l?r.left=u.slice(0,i).reduce(tf,0):r.right=u.slice(a+1).reverse().reduce(tf,0),r},Ds=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function mP(e){const t=Ve(),n=R(!1),o=R([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)o.value=l.slice();else if(u){const c=Jo(o.value,u);o.value=l.reduce((d,f)=>{const h=Pt(f,u);return c[h]&&d.push(f),d},[])}else o.value=[]},toggleRowExpansion:(l,u)=>{lr(o.value,l,u)&&t.emit("expand-change",l,o.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,d=Jo(u,c);o.value=l.reduce((f,h)=>{const p=d[h];return p&&f.push(p.row),f},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Jo(o.value,u)[Pt(l,u)]:o.value.includes(l)},states:{expandRows:o,defaultExpandAll:n}}}function vP(e){const t=Ve(),n=R(null),o=R(null),s=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{const{data:c,rowKey:d}=e;let f=null;d.value&&(f=(v(c)||[]).find(h=>Pt(h,d.value)===u)),o.value=f,t.emit("current-change",o.value,null)};return{setCurrentRowKey:s,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const c=o.value;if(u&&u!==c){o.value=u,t.emit("current-change",o.value,c);return}!u&&c&&(o.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],d=o.value;if(!c.includes(d)&&d){if(u){const f=Pt(d,u);a(f)}else o.value=null;o.value===null&&t.emit("current-change",null,d)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function bP(e){const t=R([]),n=R({}),o=R(16),s=R(!1),i=R({}),a=R("hasChildren"),r=R("children"),l=R(!1),u=Ve(),c=T(()=>{if(!e.rowKey.value)return{};const S=e.data.value||[];return f(S)}),d=T(()=>{const S=e.rowKey.value,_=Object.keys(i.value),y={};return _.length&&_.forEach(x=>{if(i.value[x].length){const C={children:[]};i.value[x].forEach(E=>{const O=Pt(E,S);C.children.push(O),E[a.value]&&!y[O]&&(y[O]={children:[]})}),y[x]=C}}),y}),f=S=>{const _=e.rowKey.value,y={};return pP(S,(x,C,E)=>{const O=Pt(x,_);ze(C)?y[O]={children:C.map(I=>Pt(I,_)),level:E}:s.value&&(y[O]={children:[],lazy:!0,level:E})},r.value,a.value),y},h=(S=!1,_=(y=>(y=u.store)==null?void 0:y.states.defaultExpandAll.value)())=>{var y;const x=c.value,C=d.value,E=Object.keys(x),O={};if(E.length){const I=v(n),$=[],N=(ae,Y)=>{if(S)return t.value?_||t.value.includes(Y):!!(_||(ae==null?void 0:ae.expanded));{const z=_||t.value&&t.value.includes(Y);return!!((ae==null?void 0:ae.expanded)||z)}};E.forEach(ae=>{const Y=I[ae],z={...x[ae]};if(z.expanded=N(Y,ae),z.lazy){const{loaded:J=!1,loading:U=!1}=Y||{};z.loaded=!!J,z.loading=!!U,$.push(ae)}O[ae]=z});const j=Object.keys(C);s.value&&j.length&&$.length&&j.forEach(ae=>{const Y=I[ae],z=C[ae].children;if($.includes(ae)){if(O[ae].children.length!==0)throw new Error("[ElTable]children must be an empty array.");O[ae].children=z}else{const{loaded:J=!1,loading:U=!1}=Y||{};O[ae]={lazy:!0,loaded:!!J,loading:!!U,expanded:N(Y,ae),children:z,level:""}}})}n.value=O,(y=u.store)==null||y.updateTableScrollY()};ie(()=>t.value,()=>{h(!0)}),ie(()=>c.value,()=>{h()}),ie(()=>d.value,()=>{h()});const p=S=>{t.value=S,h()},g=(S,_)=>{u.store.assertRowKey();const y=e.rowKey.value,x=Pt(S,y),C=x&&n.value[x];if(x&&C&&"expanded"in C){const E=C.expanded;_=$t(_)?!C.expanded:_,n.value[x].expanded=_,E!==_&&u.emit("expand-change",S,_),u.store.updateTableScrollY()}},m=S=>{u.store.assertRowKey();const _=e.rowKey.value,y=Pt(S,_),x=n.value[y];s.value&&x&&"loaded"in x&&!x.loaded?b(S,y,x):g(S,void 0)},b=(S,_,y)=>{const{load:x}=u.props;x&&!n.value[_].loaded&&(n.value[_].loading=!0,x(S,y,C=>{if(!ze(C))throw new TypeError("[ElTable] data must be an array");n.value[_].loading=!1,n.value[_].loaded=!0,n.value[_].expanded=!0,C.length&&(i.value[_]=C),u.emit("expand-change",S,!0)}))};return{loadData:b,loadOrToggle:m,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,updateKeyChildren:(S,_)=>{const{lazy:y,rowKey:x}=u.props;if(!!y){if(!x)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[S]&&(i.value[S]=_)}},normalize:f,states:{expandRowKeys:t,treeData:n,indent:o,lazy:s,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:r,checkStrictly:l}}}const yP=(e,t)=>{const n=t.sortingColumn;return!n||Ie(n.sortable)?e:uP(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Ua=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Ua(n.children)):t.push(n)}),t};function _P(){var e;const t=Ve(),{size:n}=uo((e=t.proxy)==null?void 0:e.$props),o=R(null),s=R([]),i=R([]),a=R(!1),r=R([]),l=R([]),u=R([]),c=R([]),d=R([]),f=R([]),h=R([]),p=R([]),g=[],m=R(0),b=R(0),w=R(0),S=R(!1),_=R([]),y=R(!1),x=R(!1),C=R(null),E=R({}),O=R(null),I=R(null),$=R(null),N=R(null),j=R(null);ie(s,()=>{var ge;t.state&&(U(!1),t.props.tableLayout==="auto"&&((ge=t.refs.tableHeaderRef)==null||ge.updateFixedColumnStyle()))},{deep:!0});const ae=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},Y=ge=>{var Ce;(Ce=ge.children)==null||Ce.forEach(Ne=>{Ne.fixed=ge.fixed,Y(Ne)})};let z;const J=()=>{r.value.forEach(We=>{Y(We)}),c.value=r.value.filter(We=>We.fixed===!0||We.fixed==="left"),d.value=r.value.filter(We=>We.fixed==="right"),$t(z)&&r.value[0]&&r.value[0].type==="selection"&&(z=Boolean(r.value[0].fixed)),c.value.length>0&&r.value[0]&&r.value[0].type==="selection"&&(r.value[0].fixed?c.value.some(ft=>ft.type!=="selection")?z=void 0:(r.value[0].fixed=z,z||c.value.shift()):(r.value[0].fixed=!0,c.value.unshift(r.value[0])));const ge=r.value.filter(We=>!We.fixed);l.value=[].concat(c.value).concat(ge).concat(d.value);const Ce=Ua(ge),Ne=Ua(c.value),Ae=Ua(d.value);m.value=Ce.length,b.value=Ne.length,w.value=Ae.length,u.value=[].concat(Ne).concat(Ce).concat(Ae),a.value=c.value.length>0||d.value.length>0},U=(ge,Ce=!1)=>{ge&&J(),Ce?t.state.doLayout():t.state.debouncedUpdateLayout()},H=ge=>_.value.some(Ce=>ts(Ce,ge)),de=()=>{S.value=!1;const ge=_.value;_.value=[],ge.length&&t.emit("selection-change",[])},Se=()=>{let ge;if(o.value){ge=[];const Ce=Jo(_.value,o.value),Ne=Jo(s.value,o.value);for(const Ae in Ce)ao(Ce,Ae)&&!Ne[Ae]&&ge.push(Ce[Ae].row)}else ge=_.value.filter(Ce=>!s.value.includes(Ce));if(ge.length){const Ce=_.value.filter(Ne=>!ge.includes(Ne));_.value=Ce,t.emit("selection-change",Ce.slice())}},te=()=>(_.value||[]).slice(),X=(ge,Ce,Ne=!0,Ae=!1)=>{var We,ft,wt,An;const fn={children:(ft=(We=t==null?void 0:t.store)==null?void 0:We.states)==null?void 0:ft.childrenColumnName.value,checkStrictly:(An=(wt=t==null?void 0:t.store)==null?void 0:wt.states)==null?void 0:An.checkStrictly.value};if(lr(_.value,ge,Ce,fn,Ae?void 0:C.value)){const hn=(_.value||[]).slice();Ne&&t.emit("select",hn,ge),t.emit("selection-change",hn)}},Q=()=>{var ge,Ce;const Ne=x.value?!S.value:!(S.value||_.value.length);S.value=Ne;let Ae=!1,We=0;const ft=(Ce=(ge=t==null?void 0:t.store)==null?void 0:ge.states)==null?void 0:Ce.rowKey.value,{childrenColumnName:wt}=t.store.states,An={children:wt.value,checkStrictly:!1};s.value.forEach((fn,Bo)=>{const hn=Bo+We;lr(_.value,fn,Ne,An,C.value,hn)&&(Ae=!0),We+=F(Pt(fn,ft))}),Ae&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},oe=()=>{const ge=Jo(_.value,o.value);s.value.forEach(Ce=>{const Ne=Pt(Ce,o.value),Ae=ge[Ne];Ae&&(_.value[Ae.index]=Ce)})},ne=()=>{var ge;if(((ge=s.value)==null?void 0:ge.length)===0){S.value=!1;return}const{childrenColumnName:Ce}=t.store.states,Ne=o.value?Jo(_.value,o.value):void 0;let Ae=0,We=0;const ft=fn=>Ne?!!Ne[Pt(fn,o.value)]:_.value.includes(fn),wt=fn=>{var Bo;for(const hn of fn){const vs=C.value&&C.value.call(null,hn,Ae);if(ft(hn))We++;else if(!C.value||vs)return!1;if(Ae++,((Bo=hn[Ce.value])==null?void 0:Bo.length)&&!wt(hn[Ce.value]))return!1}return!0},An=wt(s.value||[]);S.value=We===0?!1:An},F=ge=>{var Ce;if(!t||!t.store)return 0;const{treeData:Ne}=t.store.states;let Ae=0;const We=(Ce=Ne.value[ge])==null?void 0:Ce.children;return We&&(Ae+=We.length,We.forEach(ft=>{Ae+=F(ft)})),Ae},V=(ge,Ce)=>{ze(ge)||(ge=[ge]);const Ne={};return ge.forEach(Ae=>{E.value[Ae.id]=Ce,Ne[Ae.columnKey||Ae.id]=Ce}),Ne},B=(ge,Ce,Ne)=>{I.value&&I.value!==ge&&(I.value.order=null),I.value=ge,$.value=Ce,N.value=Ne},Z=()=>{let ge=v(i);Object.keys(E.value).forEach(Ce=>{const Ne=E.value[Ce];if(!Ne||Ne.length===0)return;const Ae=rm({columns:u.value},Ce);Ae&&Ae.filterMethod&&(ge=ge.filter(We=>Ne.some(ft=>Ae.filterMethod.call(null,ft,We,Ae))))}),O.value=ge},fe=()=>{s.value=yP(O.value,{sortingColumn:I.value,sortProp:$.value,sortOrder:N.value})},Ee=(ge=void 0)=>{ge&&ge.filter||Z(),fe()},ve=ge=>{const{tableHeaderRef:Ce}=t.refs;if(!Ce)return;const Ne=Object.assign({},Ce.filterPanels),Ae=Object.keys(Ne);if(!!Ae.length)if(Ie(ge)&&(ge=[ge]),ze(ge)){const We=ge.map(ft=>cP({columns:u.value},ft));Ae.forEach(ft=>{const wt=We.find(An=>An.id===ft);wt&&(wt.filteredValue=[])}),t.store.commit("filterChange",{column:We,values:[],silent:!0,multi:!0})}else Ae.forEach(We=>{const ft=u.value.find(wt=>wt.id===We);ft&&(ft.filteredValue=[])}),E.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},xe=()=>{!I.value||(B(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:be,toggleRowExpansion:dt,updateExpandRows:Ke,states:Tn,isRowExpanded:ho}=mP({data:s,rowKey:o}),{updateTreeExpandKeys:Ct,toggleTreeExpansion:en,updateTreeData:po,updateKeyChildren:Wn,loadOrToggle:se,states:qe}=bP({data:s,rowKey:o}),{updateCurrentRowData:Lt,updateCurrentRow:Pn,setCurrentRowKey:On,states:ra}=vP({data:s,rowKey:o});return{assertRowKey:ae,updateColumns:J,scheduleLayout:U,isSelected:H,clearSelection:de,cleanSelection:Se,getSelectionRows:te,toggleRowSelection:X,_toggleAllSelection:Q,toggleAllSelection:null,updateSelectionByRowKey:oe,updateAllSelected:ne,updateFilters:V,updateCurrentRow:Pn,updateSort:B,execFilter:Z,execSort:fe,execQuery:Ee,clearFilter:ve,clearSort:xe,toggleRowExpansion:dt,setExpandRowKeysAdapter:ge=>{be(ge),Ct(ge)},setCurrentRowKey:On,toggleRowExpansionAdapter:(ge,Ce)=>{u.value.some(({type:Ae})=>Ae==="expand")?dt(ge,Ce):en(ge,Ce)},isRowExpanded:ho,updateExpandRows:Ke,updateCurrentRowData:Lt,loadOrToggle:se,updateTreeData:po,updateKeyChildren:Wn,states:{tableSize:n,rowKey:o,data:s,_data:i,isComplex:a,_columns:r,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:g,leafColumnsLength:m,fixedLeafColumnsLength:b,rightFixedLeafColumnsLength:w,isAllSelected:S,selection:_,reserveSelection:y,selectOnIndeterminate:x,selectable:C,filters:E,filteredData:O,sortingColumn:I,sortProp:$,sortOrder:N,hoverRow:j,...Tn,...qe,...ra}}}function Kl(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Kl(n.children,t)),n)})}function ql(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&ql(t.children)}),e.sort((t,n)=>t.no-n.no)}function wP(){const e=Ve(),t=_P();return{ns:pe("table"),...t,mutations:{setData(a,r){const l=v(a._data)!==r;a.data.value=r,a._data.value=r,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),v(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,r,l,u){const c=v(a._columns);let d=[];l?(l&&!l.children&&(l.children=[]),l.children.push(r),d=Kl(c,l)):(c.push(r),d=c),ql(d),a._columns.value=d,a.updateOrderFns.push(u),r.type==="selection"&&(a.selectable.value=r.selectable,a.reserveSelection.value=r.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,r){var l;((l=r.getColumnIndex)==null?void 0:l.call(r))!==r.no&&(ql(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,r,l,u){const c=v(a._columns)||[];if(l)l.children.splice(l.children.findIndex(f=>f.id===r.id),1),Me(()=>{var f;((f=l.children)==null?void 0:f.length)===0&&delete l.children}),a._columns.value=Kl(c,l);else{const f=c.indexOf(r);f>-1&&(c.splice(f,1),a._columns.value=c)}const d=a.updateOrderFns.indexOf(u);d>-1&&a.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,r){const{prop:l,order:u,init:c}=r;if(l){const d=v(a.columns).find(f=>f.property===l);d&&(d.order=u,e.store.updateSort(d,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(a,r){const{sortingColumn:l,sortProp:u,sortOrder:c}=a,d=v(l),f=v(u),h=v(c);h===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!r||!(r.silent||r.init))&&e.emit("sort-change",{column:d,prop:f,order:h}),e.store.updateTableScrollY()},filterChange(a,r){const{column:l,values:u,silent:c}=r,d=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,r){e.store.toggleRowSelection(r),e.store.updateAllSelected()},setHoverRow(a,r){a.hoverRow.value=r},setCurrentRow(a,r){e.store.updateCurrentRow(r)}},commit:function(a,...r){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states].concat(r));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){Me(()=>e.layout.updateScrollY.apply(e.layout))}}}const bi={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"},["treeProps.checkStrictly"]:{key:"checkStrictly",default:!1}};function SP(e,t){if(!e)throw new Error("Table is required.");const n=wP();return n.toggleAllSelection=Rs(n._toggleAllSelection,10),Object.keys(bi).forEach(o=>{dm(fm(t,o),o,n)}),xP(n,t),n}function xP(e,t){Object.keys(bi).forEach(n=>{ie(()=>fm(t,n),o=>{dm(o,n,e)})})}function dm(e,t,n){let o=e,s=bi[t];typeof bi[t]=="object"&&(s=s.key,o=o||bi[t].default),n.states[s].value=o}function fm(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(s=>{o=o[s]}),o}else return e[t]}class CP{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=R(null),this.scrollX=R(!1),this.scrollY=R(!1),this.bodyWidth=R(null),this.fixedWidth=R(null),this.rightFixedWidth=R(null),this.gutterWidth=0;for(const n in t)ao(t,n)&&(Po(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n==null?void 0:n.wrapRef)){let o=!0;const s=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,s!==o}return!1}setHeight(t,n="height"){if(!tt)return;const o=this.table.vnode.el;if(t=fP(t),this.height.value=Number(t),!o&&(t||t===0))return Me(()=>this.setHeight(t,n));Te(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):Ie(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!tt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const s=this.getFlattenColumns(),i=s.filter(l=>!Te(l.width));if(s.forEach(l=>{Te(l.width)&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(s.forEach(l=>{o+=Number(l.width||l.minWidth||80)}),o<=n){this.scrollX.value=!1;const l=n-o;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((f,h)=>f+Number(h.minWidth||80),0),c=l/u;let d=0;i.forEach((f,h)=>{if(h===0)return;const p=Math.floor(Number(f.minWidth||80)*c);d+=p,f.realWidth=Number(f.minWidth||80)+p}),i[0].realWidth=Number(i[0].minWidth||80)+l-d}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else s.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),o+=l.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const a=this.store.states.fixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let l=0;r.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var s,i;switch(t){case"columns":(s=o.state)==null||s.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:kP}=ls,EP=K({name:"ElTableFilterPanel",components:{ElCheckbox:ls,ElCheckboxGroup:kP,ElScrollbar:ju,ElTooltip:Vn,ElIcon:Le,ArrowDown:yu,ArrowUp:Ib},directives:{ClickOutside:Xu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=Ve(),{t:n}=Ut(),o=pe("table-filter"),s=t==null?void 0:t.parent;s.filterPanels.value[e.column.id]||(s.filterPanels.value[e.column.id]=t);const i=R(!1),a=R(null),r=T(()=>e.column&&e.column.filters),l=T(()=>e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),u=T({get:()=>{var y;return(((y=e.column)==null?void 0:y.filteredValue)||[])[0]},set:y=>{c.value&&(typeof y<"u"&&y!==null?c.value.splice(0,1,y):c.value.splice(0,1))}}),c=T({get(){return e.column?e.column.filteredValue||[]:[]},set(y){e.column&&e.upDataColumn("filteredValue",y)}}),d=T(()=>e.column?e.column.filterMultiple:!0),f=y=>y.value===u.value,h=()=>{i.value=!1},p=y=>{y.stopPropagation(),i.value=!i.value},g=()=>{i.value=!1},m=()=>{S(c.value),h()},b=()=>{c.value=[],S(c.value),h()},w=y=>{u.value=y,S(typeof y<"u"&&y!==null?c.value:[]),h()},S=y=>{e.store.commit("filterChange",{column:e.column,values:y}),e.store.updateAllSelected()};ie(i,y=>{e.column&&e.upDataColumn("filterOpened",y)},{immediate:!0});const _=T(()=>{var y,x;return(x=(y=a.value)==null?void 0:y.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:i,multiple:d,filterClassName:l,filteredValue:c,filterValue:u,filters:r,handleConfirm:m,handleReset:b,handleSelect:w,isActive:f,t:n,ns:o,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:_,tooltip:a}}});function MP(e,t,n,o,s,i){const a=_e("el-checkbox"),r=_e("el-checkbox-group"),l=_e("el-scrollbar"),u=_e("arrow-up"),c=_e("arrow-down"),d=_e("el-icon"),f=_e("el-tooltip"),h=co("click-outside");return M(),G(f,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:L(()=>[e.multiple?(M(),D("div",{key:0},[k("div",{class:A(e.ns.e("content"))},[P(l,{"wrap-class":e.ns.e("wrap")},{default:L(()=>[P(r,{modelValue:e.filteredValue,"onUpdate:modelValue":p=>e.filteredValue=p,class:A(e.ns.e("checkbox-group"))},{default:L(()=>[(M(!0),D(Qe,null,Bt(e.filters,p=>(M(),G(a,{key:p.value,value:p.value},{default:L(()=>[le(ee(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),k("div",{class:A(e.ns.e("bottom"))},[k("button",{class:A({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ee(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),k("button",{type:"button",onClick:e.handleReset},ee(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(M(),D("ul",{key:1,class:A(e.ns.e("list"))},[k("li",{class:A([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:p=>e.handleSelect(null)},ee(e.t("el.table.clearFilter")),11,["onClick"]),(M(!0),D(Qe,null,Bt(e.filters,p=>(M(),D("li",{key:p.value,class:A([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),label:p.value,onClick:g=>e.handleSelect(p.value)},ee(p.text),11,["label","onClick"]))),128))],2))]),default:L(()=>[$e((M(),D("span",{class:A([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[P(d,null,{default:L(()=>[re(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(M(),G(u,{key:0})):(M(),G(c,{key:1}))])]),_:3})],10,["onClick"])),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var TP=me(EP,[["render",MP],["__file","filter-panel.vue"]]);function hm(e){const t=Ve();vu(()=>{n.value.addObserver(t)}),De(()=>{o(n.value),s(n.value)}),br(()=>{o(n.value),s(n.value)}),Xi(()=>{n.value.removeObserver(t)});const n=T(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var a;const r=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,d=r.length;c<d;c++){const f=r[c],h=f.getAttribute("name"),p=u[h];p&&f.setAttribute("width",p.realWidth||p.width)}},s=i=>{var a,r;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,d=l.length;c<d;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((r=e.vnode.el)==null?void 0:r.querySelectorAll("th.gutter"))||[];for(let c=0,d=u.length;c<d;c++){const f=u[c];f.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",f.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:s}}const Hn=Symbol("ElTable");function PP(e,t){const n=Ve(),o=we(Hn),s=g=>{g.stopPropagation()},i=(g,m)=>{!m.filters&&m.sortable?p(g,m,!1):m.filterable&&!m.sortable&&s(g),o==null||o.emit("header-click",m,g)},a=(g,m)=>{o==null||o.emit("header-contextmenu",m,g)},r=R(null),l=R(!1),u=R({}),c=(g,m)=>{if(!!tt&&!(m.children&&m.children.length>0)&&r.value&&e.border){l.value=!0;const b=o;t("set-drag-visible",!0);const S=(b==null?void 0:b.vnode.el).getBoundingClientRect().left,_=n.vnode.el.querySelector(`th.${m.id}`),y=_.getBoundingClientRect(),x=y.left-S+30;Ei(_,"noclick"),u.value={startMouseLeft:g.clientX,startLeft:y.right-S,startColumnLeft:y.left-S,tableLeft:S};const C=b==null?void 0:b.refs.resizeProxy;C.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const E=I=>{const $=I.clientX-u.value.startMouseLeft,N=u.value.startLeft+$;C.style.left=`${Math.max(x,N)}px`},O=()=>{if(l.value){const{startColumnLeft:I,startLeft:$}=u.value,j=Number.parseInt(C.style.left,10)-I;m.width=m.realWidth=j,b==null||b.emit("header-dragend",m.width,$-I,m,g),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,r.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",O),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ps(_,"noclick")},0)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",O)}},d=(g,m)=>{var b;if(m.children&&m.children.length>0)return;const w=g.target;if(!In(w))return;const S=w==null?void 0:w.closest("th");if(!(!m||!m.resizable||!S)&&!l.value&&e.border){const _=S.getBoundingClientRect(),y=document.body.style,x=((b=S.parentNode)==null?void 0:b.lastElementChild)===S;_.width>12&&_.right-g.pageX<8&&!x?(y.cursor="col-resize",qo(S,"is-sortable")&&(S.style.cursor="col-resize"),r.value=m):l.value||(y.cursor="",qo(S,"is-sortable")&&(S.style.cursor="pointer"),r.value=null)}},f=()=>{!tt||(document.body.style.cursor="")},h=({order:g,sortOrders:m})=>{if(g==="")return m[0];const b=m.indexOf(g||null);return m[b>m.length-2?0:b+1]},p=(g,m,b)=>{var w;g.stopPropagation();const S=m.order===b?null:b||h(m),_=(w=g.target)==null?void 0:w.closest("th");if(_&&qo(_,"noclick")){Ps(_,"noclick");return}if(!m.sortable)return;const y=g.currentTarget;if(["ascending","descending"].some(I=>qo(y,I)&&!m.sortOrders.includes(I)))return;const x=e.store.states;let C=x.sortProp.value,E;const O=x.sortingColumn.value;(O!==m||O===m&&O.order===null)&&(O&&(O.order=null),x.sortingColumn.value=m,C=m.property),S?E=m.order=S:E=m.order=null,x.sortProp.value=C,x.sortOrder.value=E,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:d,handleMouseOut:f,handleSortClick:p,handleFilterClick:s}}function OP(e){const t=we(Hn),n=pe("table");return{getHeaderRowStyle:r=>{const l=t==null?void 0:t.props.headerRowStyle;return je(l)?l.call(null,{rowIndex:r}):l},getHeaderRowClass:r=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return Ie(u)?l.push(u):je(u)&&l.push(u.call(null,{rowIndex:r})),l.join(" ")},getHeaderCellStyle:(r,l,u,c)=>{var d;let f=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};je(f)&&(f=f.call(null,{rowIndex:r,columnIndex:l,row:u,column:c}));const h=tc(l,c.fixed,e.store,u);return Ds(h,"left"),Ds(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(r,l,u,c)=>{const d=ec(n.b(),l,c.fixed,e.store,u),f=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...d];c.children||f.push("is-leaf"),c.sortable&&f.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return Ie(h)?f.push(h):je(h)&&f.push(h.call(null,{rowIndex:r,columnIndex:l,row:u,column:c})),f.push(n.e("cell")),f.filter(p=>Boolean(p)).join(" ")}}}const pm=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,pm(n.children))):t.push(n)}),t},gm=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let r=0;i.children.forEach(l=>{n(l,i),r+=l.colSpan}),i.colSpan=r}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i<t;i++)o.push([]);return pm(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function AP(e){const t=we(Hn),n=T(()=>gm(e.store.states.originColumns.value));return{isGroup:T(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var RP=K({name:"ElTableHeader",components:{ElCheckbox:ls},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String}},setup(e,{emit:t}){const n=Ve(),o=we(Hn),s=pe("table"),i=R({}),{onColumnsChange:a,onScrollableChange:r}=hm(o),l=(o==null?void 0:o.props.tableLayout)==="auto",u=new Map,c=R(),d=()=>{setTimeout(()=>{u.size>0&&(u.forEach((I,$)=>{const N=c.value.querySelector(`.${$.replace(/\s/g,".")}`);if(N){const j=N.getBoundingClientRect().width;I.width=j}}),u.clear())})};De(async()=>{await Me(),await Me();const{prop:I,order:$}=e.defaultSort;o==null||o.store.commit("sort",{prop:I,order:$,init:!0}),d()});const{handleHeaderClick:f,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:g,handleMouseOut:m,handleSortClick:b,handleFilterClick:w}=PP(e,t),{getHeaderRowStyle:S,getHeaderRowClass:_,getHeaderCellStyle:y,getHeaderCellClass:x}=OP(e),{isGroup:C,toggleAllSelection:E,columnRows:O}=AP(e);return n.state={onColumnsChange:a,onScrollableChange:r},n.filterPanels=i,{ns:s,filterPanels:i,onColumnsChange:a,onScrollableChange:r,columnRows:O,getHeaderRowClass:_,getHeaderRowStyle:S,getHeaderCellClass:x,getHeaderCellStyle:y,handleHeaderClick:f,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:g,handleMouseOut:m,handleSortClick:b,handleFilterClick:w,isGroup:C,toggleAllSelection:E,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:c,updateFixedColumnStyle:d}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:s,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:r,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:d,handleMouseOut:f,store:h,$parent:p,saveIndexSelection:g,isTableLayoutAuto:m}=this;let b=1;return ke("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((w,S)=>ke("tr",{class:i(S),key:S,style:a(S)},w.map((_,y)=>{_.rowSpan>b&&(b=_.rowSpan);const x=s(S,y,w,_);return m&&_.fixed&&g.set(x,_),ke("th",{class:x,colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:o(S,y,w,_),onClick:C=>{C.currentTarget.classList.contains("noclick")||r(C,_)},onContextmenu:C=>l(C,_),onMousedown:C=>u(C,_),onMousemove:C=>c(C,_),onMouseout:f},[ke("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":""]},[_.renderHeader?_.renderHeader({column:_,$index:y,store:h,_self:p}):_.label,_.sortable&&ke("span",{onClick:C=>d(C,_),class:"caret-wrapper"},[ke("i",{onClick:C=>d(C,_,"ascending"),class:"sort-caret ascending"}),ke("i",{onClick:C=>d(C,_,"descending"),class:"sort-caret descending"})]),_.filterable&&ke(TP,{store:h,placement:_.filterPlacement||"bottom-start",appendTo:p.appendFilterPanelTo,column:_,upDataColumn:(C,E)=>{_[C]=E}},{"filter-icon":()=>_.renderFilterIcon?_.renderFilterIcon({filterOpened:_.filterOpened}):null})])])}))))}});function Gr(e,t,n=.03){return e-t>n}function LP(e){const t=we(Hn),n=R(""),o=R(ke("div")),s=(p,g,m)=>{var b;const w=t,S=Yr(p);let _;const y=(b=w==null?void 0:w.vnode.el)==null?void 0:b.dataset.prefix;S&&(_=Qd({columns:e.store.states.columns.value},S,y),_&&(w==null||w.emit(`cell-${m}`,g,_,S,p))),w==null||w.emit(`row-${m}`,g,_,p)},i=(p,g)=>{s(p,g,"dblclick")},a=(p,g)=>{e.store.commit("setCurrentRow",g),s(p,g,"click")},r=(p,g)=>{s(p,g,"contextmenu")},l=Rs(p=>{e.store.commit("setHoverRow",p)},30),u=Rs(()=>{e.store.commit("setHoverRow",null)},30),c=p=>{const g=window.getComputedStyle(p,null),m=Number.parseInt(g.paddingLeft,10)||0,b=Number.parseInt(g.paddingRight,10)||0,w=Number.parseInt(g.paddingTop,10)||0,S=Number.parseInt(g.paddingBottom,10)||0;return{left:m,right:b,top:w,bottom:S}},d=(p,g,m)=>{let b=g.target.parentNode;for(;p>1&&(b=b==null?void 0:b.nextSibling,!(!b||b.nodeName!=="TR"));)m(b,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:r,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(p,g,m)=>{var b;const w=t,S=Yr(p),_=(b=w==null?void 0:w.vnode.el)==null?void 0:b.dataset.prefix;if(S){const J=Qd({columns:e.store.states.columns.value},S,_);S.rowSpan>1&&d(S.rowSpan,p,Ei);const U=w.hoverState={cell:S,column:J,row:g};w==null||w.emit("cell-mouse-enter",U.row,U.column,U.cell,p)}if(!m)return;const y=p.target.querySelector(".cell");if(!(qo(y,`${_}-tooltip`)&&y.childNodes.length))return;const x=document.createRange();x.setStart(y,0),x.setEnd(y,y.childNodes.length);const{width:C,height:E}=x.getBoundingClientRect(),{width:O,height:I}=y.getBoundingClientRect(),{top:$,left:N,right:j,bottom:ae}=c(y),Y=N+j,z=$+ae;(Gr(C+Y,O)||Gr(E+z,I)||Gr(y.scrollWidth,O))&&gP(m,S.innerText||S.textContent,S,w)},handleCellMouseLeave:p=>{const g=Yr(p);if(!g)return;g.rowSpan>1&&d(g.rowSpan,p,Ps);const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:o}}function IP(e){const t=we(Hn),n=pe("table");return{getRowStyle:(u,c)=>{const d=t==null?void 0:t.props.rowStyle;return je(d)?d.call(null,{row:u,rowIndex:c}):d||null},getRowClass:(u,c)=>{const d=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&u===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&c%2===1&&d.push(n.em("row","striped"));const f=t==null?void 0:t.props.rowClassName;return Ie(f)?d.push(f):je(f)&&d.push(f.call(null,{row:u,rowIndex:c})),d},getCellStyle:(u,c,d,f)=>{const h=t==null?void 0:t.props.cellStyle;let p=h!=null?h:{};je(h)&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:d,column:f}));const g=tc(c,e==null?void 0:e.fixed,e.store);return Ds(g,"left"),Ds(g,"right"),Object.assign({},p,g)},getCellClass:(u,c,d,f,h)=>{const p=ec(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),g=[f.id,f.align,f.className,...p],m=t==null?void 0:t.props.cellClassName;return Ie(m)?g.push(m):je(m)&&g.push(m.call(null,{rowIndex:u,columnIndex:c,row:d,column:f})),g.push(n.e("cell")),g.filter(b=>Boolean(b)).join(" ")},getSpan:(u,c,d,f)=>{let h=1,p=1;const g=t==null?void 0:t.props.spanMethod;if(je(g)){const m=g({row:u,column:c,rowIndex:d,columnIndex:f});ze(m)?(h=m[0],p=m[1]):typeof m=="object"&&(h=m.rowspan,p=m.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(u,c,d)=>{if(c<1)return u[d].realWidth;const f=u.map(({realWidth:h,width:p})=>h||p).slice(d,d+c);return Number(f.reduce((h,p)=>Number(h)+Number(p),-1))}}}const $P=K({name:"TableTdWrapper"}),FP=K({...$P,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(M(),D("td",{colspan:e.colspan,rowspan:e.rowspan},[re(t.$slots,"default")],8,["colspan","rowspan"]))}});var BP=me(FP,[["__file","td-wrapper.vue"]]);function DP(e){const t=we(Hn),n=pe("table"),{handleDoubleClick:o,handleClick:s,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:r,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:d}=LP(e),{getRowStyle:f,getRowClass:h,getCellStyle:p,getCellClass:g,getSpan:m,getColspanRealWidth:b}=IP(e),w=T(()=>e.store.states.columns.value.findIndex(({type:C})=>C==="default")),S=(C,E)=>{const O=t.props.rowKey;return O?Pt(C,O):E},_=(C,E,O,I=!1)=>{const{tooltipEffect:$,tooltipOptions:N,store:j}=e,{indent:ae,columns:Y}=j.states,z=h(C,E);let J=!0;return O&&(z.push(n.em("row",`level-${O.level}`)),J=O.display),ke("tr",{style:[J?null:{display:"none"},f(C,E)],class:z,key:S(C,E),onDblclick:H=>o(H,C),onClick:H=>s(H,C),onContextmenu:H=>i(H,C),onMouseenter:()=>a(E),onMouseleave:r},Y.value.map((H,de)=>{const{rowspan:Se,colspan:te}=m(C,H,E,de);if(!Se||!te)return null;const X=Object.assign({},H);X.realWidth=b(Y.value,te,de);const Q={store:e.store,_self:e.context||t,column:X,row:C,$index:E,cellIndex:de,expanded:I};de===w.value&&O&&(Q.treeNode={indent:O.level*ae.value,level:O.level},lt(O.expanded)&&(Q.treeNode.expanded=O.expanded,"loading"in O&&(Q.treeNode.loading=O.loading),"noLazyChildren"in O&&(Q.treeNode.noLazyChildren=O.noLazyChildren)));const oe=`${S(C,E)},${de}`,ne=X.columnKey||X.rawColumnKey||"",F=H.showOverflowTooltip&&Kp({effect:$},N,H.showOverflowTooltip);return ke(BP,{style:p(E,de,C,H),class:g(E,de,C,H,te-1),key:`${ne}${oe}`,rowspan:Se,colspan:te,onMouseenter:V=>l(V,C,F),onMouseleave:u},{default:()=>y(de,H,Q)})}))},y=(C,E,O)=>E.renderCell(O);return{wrappedRowRender:(C,E)=>{const O=e.store,{isRowExpanded:I,assertRowKey:$}=O,{treeData:N,lazyTreeNodeMap:j,childrenColumnName:ae,rowKey:Y}=O.states,z=O.states.columns.value;if(z.some(({type:U})=>U==="expand")){const U=I(C),H=_(C,E,void 0,U),de=t.renderExpanded;return U?de?[[H,ke("tr",{key:`expanded-row__${H.key}`},[ke("td",{colspan:z.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[de({row:C,$index:E,store:O,expanded:U})])])]]:(console.error("[Element Error]renderExpanded is required."),H):[[H]]}else if(Object.keys(N.value).length){$();const U=Pt(C,Y.value);let H=N.value[U],de=null;H&&(de={expanded:H.expanded,level:H.level,display:!0},lt(H.lazy)&&(lt(H.loaded)&&H.loaded&&(de.noLazyChildren=!(H.children&&H.children.length)),de.loading=H.loading));const Se=[_(C,E,de)];if(H){let te=0;const X=(oe,ne)=>{!(oe&&oe.length&&ne)||oe.forEach(F=>{const V={display:ne.display&&ne.expanded,level:ne.level+1,expanded:!1,noLazyChildren:!1,loading:!1},B=Pt(F,Y.value);if(B==null)throw new Error("For nested data item, row-key is required.");if(H={...N.value[B]},H&&(V.expanded=H.expanded,H.level=H.level||V.level,H.display=!!(H.expanded&&V.display),lt(H.lazy)&&(lt(H.loaded)&&H.loaded&&(V.noLazyChildren=!(H.children&&H.children.length)),V.loading=H.loading)),te++,Se.push(_(F,E+te,V)),H){const Z=j.value[B]||F[ae.value];X(Z,H)}})};H.display=!0;const Q=j.value[U]||C[ae.value];X(Q,H)}return Se}else return _(C,E,void 0)},tooltipContent:c,tooltipTrigger:d}}const NP={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var zP=K({name:"ElTableBody",props:NP,setup(e){const t=Ve(),n=we(Hn),o=pe("table"),{wrappedRowRender:s,tooltipContent:i,tooltipTrigger:a}=DP(e),{onColumnsChange:r,onScrollableChange:l}=hm(n),u=[];return ie(e.store.states.hoverRow,(c,d)=>{var f;const h=t==null?void 0:t.vnode.el,p=Array.from((h==null?void 0:h.children)||[]).filter(b=>b==null?void 0:b.classList.contains(`${o.e("row")}`));let g=c;const m=(f=p[g])==null?void 0:f.childNodes;if(m!=null&&m.length){let b=0;Array.from(m).reduce((S,_,y)=>{var x,C;return((x=m[y])==null?void 0:x.colSpan)>1&&(b=(C=m[y])==null?void 0:C.colSpan),_.nodeName!=="TD"&&b===0&&S.push(y),b>0&&b--,S},[]).forEach(S=>{var _;for(g=c;g>0;){const y=(_=p[g-1])==null?void 0:_.childNodes;if(y[S]&&y[S].nodeName==="TD"&&y[S].rowSpan>1){Ei(y[S],"hover-cell"),u.push(y[S]);break}g--}})}else u.forEach(b=>Ps(b,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!tt||M1(()=>{const b=p[d],w=p[c];b&&!b.classList.contains("hover-fixed-row")&&Ps(b,"hover-row"),w&&Ei(w,"hover-row")})}),Xi(()=>{var c;(c=nn)==null||c()}),{ns:o,onColumnsChange:r,onScrollableChange:l,wrappedRowRender:s,tooltipContent:i,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return ke("tbody",{tabIndex:-1},[n.reduce((o,s)=>o.concat(e(s,o.length)),[])])}});function VP(){const e=we(Hn),t=e==null?void 0:e.store,n=T(()=>t.states.fixedLeafColumnsLength.value),o=T(()=>t.states.rightFixedColumns.value.length),s=T(()=>t.states.columns.value.length),i=T(()=>t.states.fixedColumns.value.length),a=T(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:s,leftFixedCount:i,rightFixedCount:a,columns:t.states.columns}}function HP(e){const{columns:t}=VP(),n=pe("table");return{getCellClasses:(i,a)=>{const r=i[a],l=[n.e("cell"),r.id,r.align,r.labelClassName,...ec(n.b(),a,r.fixed,e.store)];return r.className&&l.push(r.className),r.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const r=tc(a,i.fixed,e.store);return Ds(r,"left"),Ds(r,"right"),r},columns:t}}var WP=K({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=HP(e);return{ns:pe("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:s}=this,i=this.store.states.data.value;let a=[];return o?a=o({columns:e,data:i}):e.forEach((r,l)=>{if(l===0){a[l]=s;return}const u=i.map(h=>Number(h[r.property])),c=[];let d=!0;u.forEach(h=>{if(!Number.isNaN(+h)){d=!1;const p=`${h}`.split(".")[1];c.push(p?p.length:0)}});const f=Math.max.apply(null,c);d?a[l]="":a[l]=u.reduce((h,p)=>{const g=Number(p);return Number.isNaN(+g)?h:Number.parseFloat((h+p).toFixed(Math.min(f,20)))},0)}),ke(ke("tfoot",[ke("tr",{},[...e.map((r,l)=>ke("td",{key:l,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,l),style:t(r,l)},[ke("div",{class:["cell",r.labelClassName]},[a[l]])]))])]))}});function jP(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,f,h=!0)=>{e.toggleRowSelection(d,f,!1,h),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{e.toggleRowExpansionAdapter(d,f)},clearSort:()=>{e.clearSort()},sort:(d,f)=>{e.commit("sort",{prop:d,order:f})},updateKeyChildren:(d,f)=>{e.updateKeyChildren(d,f)}}}function UP(e,t,n,o){const s=R(!1),i=R(null),a=R(!1),r=U=>{a.value=U},l=R({width:null,height:null,headerHeight:null}),u=R(!1),c={display:"inline-block",verticalAlign:"middle"},d=R(),f=R(0),h=R(0),p=R(0),g=R(0),m=R(0);no(()=>{t.setHeight(e.height)}),no(()=>{t.setMaxHeight(e.maxHeight)}),ie(()=>[e.currentRowKey,n.states.rowKey],([U,H])=>{!v(H)||!v(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),ie(()=>e.data,U=>{o.store.commit("setData",U)},{immediate:!0,deep:!0}),no(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const b=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},w=(U,H)=>{const{pixelX:de,pixelY:Se}=H;Math.abs(de)>=Math.abs(Se)&&(o.refs.bodyWrapper.scrollLeft+=H.pixelX/5)},S=T(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=T(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),y=()=>{S.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(O)};De(async()=>{await Me(),n.updateColumns(),I(),requestAnimationFrame(y);const U=o.vnode.el,H=o.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),l.value={width:d.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&H?H.offsetHeight:null},n.states.columns.value.forEach(de=>{de.filteredValue&&de.filteredValue.length&&o.store.commit("filterChange",{column:de,values:de.filteredValue,silent:!0})}),o.$ready=!0});const x=(U,H)=>{if(!U)return;const de=Array.from(U.classList).filter(Se=>!Se.startsWith("is-scrolling-"));de.push(t.scrollX.value?H:"is-scrolling-none"),U.className=de.join(" ")},C=U=>{const{tableWrapper:H}=o.refs;x(H,U)},E=U=>{const{tableWrapper:H}=o.refs;return!!(H&&H.classList.contains(U))},O=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const oe="is-scrolling-none";E(oe)||C(oe);return}const U=o.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:H,offsetWidth:de,scrollWidth:Se}=U,{headerWrapper:te,footerWrapper:X}=o.refs;te&&(te.scrollLeft=H),X&&(X.scrollLeft=H);const Q=Se-de-1;H>=Q?C("is-scrolling-right"):C(H===0?"is-scrolling-left":"is-scrolling-middle")},I=()=>{!o.refs.scrollBarRef||(o.refs.scrollBarRef.wrapRef&&so(o.refs.scrollBarRef.wrapRef,"scroll",O,{passive:!0}),e.fit?Tt(o.vnode.el,$):so(window,"resize",$),Tt(o.refs.bodyWrapper,()=>{var U,H;$(),(H=(U=o.refs)==null?void 0:U.scrollBarRef)==null||H.update()}))},$=()=>{var U,H,de,Se;const te=o.vnode.el;if(!o.$ready||!te)return;let X=!1;const{width:Q,height:oe,headerHeight:ne}=l.value,F=d.value=te.offsetWidth;Q!==F&&(X=!0);const V=te.offsetHeight;(e.height||S.value)&&oe!==V&&(X=!0);const B=e.tableLayout==="fixed"?o.refs.headerWrapper:(U=o.refs.tableHeaderRef)==null?void 0:U.$el;e.showHeader&&(B==null?void 0:B.offsetHeight)!==ne&&(X=!0),f.value=((H=o.refs.tableWrapper)==null?void 0:H.scrollHeight)||0,p.value=(B==null?void 0:B.scrollHeight)||0,g.value=((de=o.refs.footerWrapper)==null?void 0:de.offsetHeight)||0,m.value=((Se=o.refs.appendWrapper)==null?void 0:Se.offsetHeight)||0,h.value=f.value-p.value-g.value-m.value,X&&(l.value={width:F,height:V,headerHeight:e.showHeader&&(B==null?void 0:B.offsetHeight)||0},y())},N=cn(),j=T(()=>{const{bodyWidth:U,scrollY:H,gutterWidth:de}=t;return U.value?`${U.value-(H.value?de:0)}px`:""}),ae=T(()=>e.maxHeight?"fixed":e.tableLayout),Y=T(()=>{if(e.data&&e.data.length)return null;let U="100%";e.height&&h.value&&(U=`${h.value}px`);const H=d.value;return{width:H?`${H}px`:"",height:U}}),z=T(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+g.value}px)`}:{maxHeight:`${e.maxHeight-p.value-g.value}px`}:{});return{isHidden:s,renderExpanded:i,setDragVisible:r,isGroup:u,handleMouseLeave:b,handleHeaderFooterMousewheel:w,tableSize:N,emptyBlockStyle:Y,handleFixedMousewheel:(U,H)=>{const de=o.refs.bodyWrapper;if(Math.abs(H.spinY)>0){const Se=de.scrollTop;H.pixelY<0&&Se!==0&&U.preventDefault(),H.pixelY>0&&de.scrollHeight-de.clientHeight>Se&&U.preventDefault(),de.scrollTop+=Math.ceil(H.pixelY/5)}else de.scrollLeft+=Math.ceil(H.pixelX/5)},resizeProxyVisible:a,bodyWidth:j,resizeState:l,doLayout:y,tableBodyStyles:_,tableLayout:ae,scrollbarViewStyle:c,scrollbarStyle:z}}function KP(e){const t=R(),n=()=>{const s=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(r=>r())}),t.value.observe(s,i)};De(()=>{n()}),Xi(()=>{var o;(o=t.value)==null||o.disconnect()})}var qP={data:{type:Array,default:()=>[]},size:En,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};function mm(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(s=>s.width===void 0)&&(n=[]);const o=s=>{const i={key:`${e.tableLayout}_${s.id}`,style:{},name:void 0};return t?i.style={width:`${s.width}px`}:i.name=s.id,i};return ke("colgroup",{},n.map(s=>ke("col",o(s))))}mm.props=["columns","tableLayout"];const YP=()=>{const e=R(),t=(i,a)=>{const r=e.value;r&&r.scrollTo(i,a)},n=(i,a)=>{const r=e.value;r&&Te(a)&&["Top","Left"].includes(i)&&r[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let GP=1;const XP=K({name:"ElTable",directives:{Mousewheel:nE},components:{TableHeader:RP,TableBody:zP,TableFooter:WP,ElScrollbar:ju,hColgroup:mm},props:qP,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Ut(),n=pe("table"),o=Ve();nt(Hn,o);const s=SP(o,e);o.store=s;const i=new CP({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=i;const a=T(()=>(s.states.data.value||[]).length===0),{setCurrentRow:r,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,sort:g,updateKeyChildren:m}=jP(s),{isHidden:b,renderExpanded:w,setDragVisible:S,isGroup:_,handleMouseLeave:y,handleHeaderFooterMousewheel:x,tableSize:C,emptyBlockStyle:E,handleFixedMousewheel:O,resizeProxyVisible:I,bodyWidth:$,resizeState:N,doLayout:j,tableBodyStyles:ae,tableLayout:Y,scrollbarViewStyle:z,scrollbarStyle:J}=UP(e,i,s,o),{scrollBarRef:U,scrollTo:H,setScrollLeft:de,setScrollTop:Se}=YP(),te=Rs(j,50),X=`${n.namespace.value}-table_${GP++}`;o.tableId=X,o.state={isGroup:_,resizeState:N,doLayout:j,debouncedUpdateLayout:te};const Q=T(()=>{var F;return(F=e.sumText)!=null?F:t("el.table.sumText")}),oe=T(()=>{var F;return(F=e.emptyText)!=null?F:t("el.table.emptyText")}),ne=T(()=>gm(s.states.originColumns.value)[0]);return KP(o),yt(()=>{te.cancel()}),{ns:n,layout:i,store:s,columns:ne,handleHeaderFooterMousewheel:x,handleMouseLeave:y,tableId:X,tableSize:C,isHidden:b,isEmpty:a,renderExpanded:w,resizeProxyVisible:I,resizeState:N,isGroup:_,bodyWidth:$,tableBodyStyles:ae,emptyBlockStyle:E,debouncedUpdateLayout:te,handleFixedMousewheel:O,setCurrentRow:r,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:f,toggleRowExpansion:h,clearSort:p,doLayout:j,sort:g,updateKeyChildren:m,t,setDragVisible:S,context:o,computedSumText:Q,computedEmptyText:oe,tableLayout:Y,scrollbarViewStyle:z,scrollbarStyle:J,scrollBarRef:U,scrollTo:H,setScrollLeft:de,setScrollTop:Se}}});function JP(e,t,n,o,s,i){const a=_e("hColgroup"),r=_e("table-header"),l=_e("table-body"),u=_e("table-footer"),c=_e("el-scrollbar"),d=co("mousewheel");return M(),D("div",{ref:"tableWrapper",class:A([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Oe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[k("div",{class:A(e.ns.e("inner-wrapper"))},[k("div",{ref:"hiddenColumns",class:"hidden-columns"},[re(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?$e((M(),D("div",{key:0,ref:"headerWrapper",class:A(e.ns.e("header-wrapper"))},[k("table",{ref:"tableHeader",class:A(e.ns.e("header")),style:Oe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[P(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),P(r,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):q("v-if",!0),k("div",{ref:"bodyWrapper",class:A(e.ns.e("body-wrapper"))},[P(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex},{default:L(()=>[k("table",{ref:"tableBody",class:A(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Oe({width:e.bodyWidth,tableLayout:e.tableLayout})},[P(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(M(),G(r,{key:0,ref:"tableHeaderRef",class:A(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):q("v-if",!0),P(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(M(),G(u,{key:1,class:A(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):q("v-if",!0)],6),e.isEmpty?(M(),D("div",{key:0,ref:"emptyBlock",style:Oe(e.emptyBlockStyle),class:A(e.ns.e("empty-block"))},[k("span",{class:A(e.ns.e("empty-text"))},[re(e.$slots,"empty",{},()=>[le(ee(e.computedEmptyText),1)])],2)],6)):q("v-if",!0),e.$slots.append?(M(),D("div",{key:1,ref:"appendWrapper",class:A(e.ns.e("append-wrapper"))},[re(e.$slots,"append")],2)):q("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex"])],2),e.showSummary&&e.tableLayout==="fixed"?$e((M(),D("div",{key:1,ref:"footerWrapper",class:A(e.ns.e("footer-wrapper"))},[k("table",{class:A(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Oe(e.tableBodyStyles)},[P(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),P(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[At,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):q("v-if",!0),e.border||e.isGroup?(M(),D("div",{key:2,class:A(e.ns.e("border-left-patch"))},null,2)):q("v-if",!0)],2),$e(k("div",{ref:"resizeProxy",class:A(e.ns.e("column-resize-proxy"))},null,2),[[At,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var QP=me(XP,[["render",JP],["__file","table.vue"]]);const ZP={selection:"table-column--selection",expand:"table__expand-column"},eO={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},tO=e=>ZP[e]||"",nO={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return ke(ls,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:o}){return ke(ls,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:s=>s.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return Te(o)?n=t+o:je(o)&&(n=o(t)),ke("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,s=[o.e("expand-icon")];return n&&s.push(o.em("expand-icon","expanded")),ke("div",{class:s,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[ke(Le,null,{default:()=>[ke(yr)]})]})},sortable:!1,resizable:!1}};function oO({row:e,column:t,$index:n}){var o;const s=t.property,i=s&&$a(e,s).value;return t&&t.formatter?t.formatter(e,t,i,n):((o=i==null?void 0:i.toString)==null?void 0:o.call(i))||""}function sO({row:e,treeNode:t,store:n},o=!1){const{ns:s}=n;if(!t)return o?[ke("span",{class:s.e("placeholder")})]:null;const i=[],a=function(r){r.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(ke("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),lt(t.expanded)&&!t.noLazyChildren){const r=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let l=yr;t.loading&&(l=Mi),i.push(ke("div",{class:r,onClick:a},{default:()=>[ke(Le,{class:{[s.is("loading")]:t.loading}},{default:()=>[ke(l)]})]}))}else i.push(ke("span",{class:s.e("placeholder")}));return i}function nf(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function iO(e,t){const n=Ve();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},r=nf(i,a);Object.keys(r).forEach(l=>{const u=a[l];ao(t,u)&&ie(()=>t[u],c=>{let d=c;u==="width"&&l==="realWidth"&&(d=Zu(c)),u==="minWidth"&&l==="realMinWidth"&&(d=lm(c)),n.columnConfig.value[u]=d,n.columnConfig.value[l]=d;const f=u==="fixed";e.value.store.scheduleLayout(f)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},r=nf(i,a);Object.keys(r).forEach(l=>{const u=a[l];ao(t,u)&&ie(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function aO(e,t,n){const o=Ve(),s=R(""),i=R(!1),a=R(),r=R(),l=pe("table");no(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),no(()=>{r.value=e.headerAlign?`is-${e.headerAlign}`:a.value,r.value});const u=T(()=>{let _=o.vnode.vParent||o.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),c=T(()=>{const{store:_}=o.parent;if(!_)return!1;const{treeData:y}=_.states,x=y.value;return x&&Object.keys(x).length>0}),d=R(Zu(e.width)),f=R(lm(e.minWidth)),h=_=>(d.value&&(_.width=d.value),f.value&&(_.minWidth=f.value),!d.value&&f.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),p=_=>{const y=_.type,x=nO[y]||{};Object.keys(x).forEach(E=>{const O=x[E];E!=="className"&&O!==void 0&&(_[E]=O)});const C=tO(y);if(C){const E=`${v(l.namespace)}-${C}`;_.className=_.className?`${_.className} ${E}`:E}return _},g=_=>{ze(_)?_.forEach(x=>y(x)):y(_);function y(x){var C;((C=x==null?void 0:x.type)==null?void 0:C.name)==="ElTableColumn"&&(x.vParent=o)}};return{columnId:s,realAlign:a,isSubColumn:i,realHeaderAlign:r,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=x=>(o.columnConfig.value.label,re(t,"header",x,()=>[_.label]))),t["filter-icon"]&&(_.renderFilterIcon=x=>re(t,"filter-icon",x));let y=_.renderCell;return _.type==="expand"?(_.renderCell=x=>ke("div",{class:"cell"},[y(x)]),n.value.renderExpanded=x=>t.default?t.default(x):t.default):(y=y||oO,_.renderCell=x=>{let C=null;if(t.default){const j=t.default(x);C=j.some(ae=>ae.type!==ip)?j:y(x)}else C=y(x);const{columns:E}=n.value.store.states,O=E.value.findIndex(j=>j.type==="default"),I=c.value&&x.cellIndex===O,$=sO(x,I),N={class:"cell",style:{}};return _.showOverflowTooltip&&(N.class=`${N.class} ${v(l.namespace)}-tooltip`,N.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),g(C),ke("div",N,[$,C])}),_},getPropsData:(..._)=>_.reduce((y,x)=>(ze(x)&&x.forEach(C=>{y[C]=e[C]}),y),{}),getColumnElIndex:(_,y)=>Array.prototype.indexOf.call(_,y),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var rO={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let lO=1;var vm=K({name:"ElTableColumn",components:{ElCheckbox:ls},props:rO,setup(e,{slots:t}){const n=Ve(),o=R({}),s=T(()=>{let S=n.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:i,registerComplexWatchers:a}=iO(s,e),{columnId:r,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:d,setColumnForcedProps:f,setColumnRenders:h,getPropsData:p,getColumnElIndex:g,realAlign:m,updateColumnOrder:b}=aO(e,t,s),w=c.value;r.value=`${w.tableId||w.columnId}_column_${lO++}`,vu(()=>{l.value=s.value!==w;const S=e.type||"default",_=e.sortable===""?!0:e.sortable,y=$t(e.showOverflowTooltip)?w.props.showOverflowTooltip:e.showOverflowTooltip,x={...eO[S],id:r.value,type:S,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:y,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let $=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);$=dP(x,$),$=hP(h,d,f)($),o.value=$,i(),a()}),De(()=>{var S;const _=c.value,y=l.value?_.vnode.el.children:(S=_.refs.hiddenColumns)==null?void 0:S.children,x=()=>g(y||[],n.vnode.el);o.value.getColumnIndex=x,x()>-1&&s.value.store.commit("insertColumn",o.value,l.value?_.columnConfig.value:null,b)}),yt(()=>{const S=o.value.getColumnIndex;(S?S():-1)>-1&&s.value.store.commit("removeColumn",o.value,l.value?w.columnConfig.value:null,b)}),n.columnId=r.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),s=[];if(ze(o))for(const a of o)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?s.push(a):a.type===Qe&&ze(a.children)&&a.children.forEach(r=>{(r==null?void 0:r.patchFlag)!==1024&&!Ie(r==null?void 0:r.children)&&s.push(r)});return ke("div",s)}catch{return ke("div",[])}}});const nc=ct(QP,{TableColumn:vm}),oc=dn(vm),Tr=Symbol("tabsRootContextKey"),uO=ye({tabs:{type:he(Array),default:()=>bn([])}}),bm="ElTabBar",cO=K({name:bm}),dO=K({...cO,props:uO,setup(e,{expose:t}){const n=e,o=Ve(),s=we(Tr);s||Lo(bm,"<el-tabs><el-tab-bar /></el-tabs>");const i=pe("tabs"),a=R(),r=R(),l=()=>{let h=0,p=0;const g=["top","bottom"].includes(s.props.tabPosition)?"width":"height",m=g==="width"?"x":"y",b=m==="x"?"left":"top";return n.tabs.every(w=>{var S,_;const y=(_=(S=o.parent)==null?void 0:S.refs)==null?void 0:_[`tab-${w.uid}`];if(!y)return!1;if(!w.active)return!0;h=y[`offset${So(b)}`],p=y[`client${So(g)}`];const x=window.getComputedStyle(y);return g==="width"&&(p-=Number.parseFloat(x.paddingLeft)+Number.parseFloat(x.paddingRight),h+=Number.parseFloat(x.paddingLeft)),!1}),{[g]:`${p}px`,transform:`translate${So(m)}(${h}px)`}},u=()=>r.value=l(),c=[],d=()=>{var h;c.forEach(g=>g.stop()),c.length=0;const p=(h=o.parent)==null?void 0:h.refs;if(!!p){for(const g in p)if(g.startsWith("tab-")){const m=p[g];m&&c.push(Tt(m,u))}}};ie(()=>n.tabs,async()=>{await Me(),u(),d()},{immediate:!0});const f=Tt(a,()=>u());return yt(()=>{c.forEach(h=>h.stop()),c.length=0,f.stop()}),t({ref:a,update:u}),(h,p)=>(M(),D("div",{ref_key:"barRef",ref:a,class:A([v(i).e("active-bar"),v(i).is(v(s).props.tabPosition)]),style:Oe(r.value)},null,6))}});var fO=me(dO,[["__file","tab-bar.vue"]]);const hO=ye({panes:{type:he(Array),default:()=>bn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),pO={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},of="ElTabNav",gO=K({name:of,props:hO,emits:pO,setup(e,{expose:t,emit:n}){const o=we(Tr);o||Lo(of,"<el-tabs><tab-nav /></el-tabs>");const s=pe("tabs"),i=$b(),a=Fb(),r=R(),l=R(),u=R(),c=R(),d=R(!1),f=R(0),h=R(!1),p=R(!0),g=T(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),m=T(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${f.value}px)`})),b=()=>{if(!r.value)return;const E=r.value[`offset${So(g.value)}`],O=f.value;if(!O)return;const I=O>E?O-E:0;f.value=I},w=()=>{if(!r.value||!l.value)return;const E=l.value[`offset${So(g.value)}`],O=r.value[`offset${So(g.value)}`],I=f.value;if(E-I<=O)return;const $=E-I>O*2?I+O:E-O;f.value=$},S=async()=>{const E=l.value;if(!d.value||!u.value||!r.value||!E)return;await Me();const O=u.value.querySelector(".is-active");if(!O)return;const I=r.value,$=["top","bottom"].includes(o.props.tabPosition),N=O.getBoundingClientRect(),j=I.getBoundingClientRect(),ae=$?E.offsetWidth-j.width:E.offsetHeight-j.height,Y=f.value;let z=Y;$?(N.left<j.left&&(z=Y-(j.left-N.left)),N.right>j.right&&(z=Y+N.right-j.right)):(N.top<j.top&&(z=Y-(j.top-N.top)),N.bottom>j.bottom&&(z=Y+(N.bottom-j.bottom))),z=Math.max(z,0),f.value=Math.min(z,ae)},_=()=>{var E;if(!l.value||!r.value)return;e.stretch&&((E=c.value)==null||E.update());const O=l.value[`offset${So(g.value)}`],I=r.value[`offset${So(g.value)}`],$=f.value;I<O?(d.value=d.value||{},d.value.prev=$,d.value.next=$+I<O,O-$<I&&(f.value=O-I)):(d.value=!1,$>0&&(f.value=0))},y=E=>{let O=0;switch(E.code){case rt.left:case rt.up:O=-1;break;case rt.right:case rt.down:O=1;break;default:return}const I=Array.from(E.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let N=I.indexOf(E.target)+O;N<0?N=I.length-1:N>=I.length&&(N=0),I[N].focus({preventScroll:!0}),I[N].click(),x()},x=()=>{p.value&&(h.value=!0)},C=()=>h.value=!1;return ie(i,E=>{E==="hidden"?p.value=!1:E==="visible"&&setTimeout(()=>p.value=!0,50)}),ie(a,E=>{E?setTimeout(()=>p.value=!0,50):p.value=!1}),Tt(u,_),De(()=>setTimeout(()=>S(),0)),br(()=>_()),t({scrollToActiveTab:S,removeFocus:C}),()=>{const E=d.value?[P("span",{class:[s.e("nav-prev"),s.is("disabled",!d.value.prev)],onClick:b},[P(Le,null,{default:()=>[P(fp,null,null)]})]),P("span",{class:[s.e("nav-next"),s.is("disabled",!d.value.next)],onClick:w},[P(Le,null,{default:()=>[P(yr,null,null)]})])]:null,O=e.panes.map((I,$)=>{var N,j,ae,Y;const z=I.uid,J=I.props.disabled,U=(j=(N=I.props.name)!=null?N:I.index)!=null?j:`${$}`,H=!J&&(I.isClosable||e.editable);I.index=`${$}`;const de=H?P(Le,{class:"is-icon-close",onClick:X=>n("tabRemove",I,X)},{default:()=>[P(Pi,null,null)]}):null,Se=((Y=(ae=I.slots).label)==null?void 0:Y.call(ae))||I.props.label,te=!J&&I.active?0:-1;return P("div",{ref:`tab-${z}`,class:[s.e("item"),s.is(o.props.tabPosition),s.is("active",I.active),s.is("disabled",J),s.is("closable",H),s.is("focus",h.value)],id:`tab-${U}`,key:`tab-${z}`,"aria-controls":`pane-${U}`,role:"tab","aria-selected":I.active,tabindex:te,onFocus:()=>x(),onBlur:()=>C(),onClick:X=>{C(),n("tabClick",I,U,X)},onKeydown:X=>{H&&(X.code===rt.delete||X.code===rt.backspace)&&n("tabRemove",I,X)}},[Se,de])});return P("div",{ref:u,class:[s.e("nav-wrap"),s.is("scrollable",!!d.value),s.is(o.props.tabPosition)]},[E,P("div",{class:s.e("nav-scroll"),ref:r},[P("div",{class:[s.e("nav"),s.is(o.props.tabPosition),s.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:l,style:m.value,role:"tablist",onKeydown:y},[e.type?null:P(fO,{ref:c,tabs:[...e.panes]},null),O])])])}}}),mO=ye({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:he(Function),default:()=>!0},stretch:Boolean}),Xr=e=>Ie(e)||Te(e),vO={[Je]:e=>Xr(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Xr(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Xr(e),tabAdd:()=>!0},bO=K({name:"ElTabs",props:mO,emits:vO,setup(e,{emit:t,slots:n,expose:o}){var s;const i=pe("tabs"),a=T(()=>["left","right"].includes(e.tabPosition)),{children:r,addChild:l,removeChild:u}=fg(Ve(),"ElTabPane"),c=R(),d=R((s=e.modelValue)!=null?s:"0"),f=async(b,w=!1)=>{var S,_,y;if(!(d.value===b||$t(b)))try{await((S=e.beforeLeave)==null?void 0:S.call(e,b,d.value))!==!1&&(d.value=b,w&&(t(Je,b),t("tabChange",b)),(y=(_=c.value)==null?void 0:_.removeFocus)==null||y.call(_))}catch{}},h=(b,w,S)=>{b.props.disabled||(f(w,!0),t("tabClick",b,S))},p=(b,w)=>{b.props.disabled||$t(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};ie(()=>e.modelValue,b=>f(b)),ie(d,async()=>{var b;await Me(),(b=c.value)==null||b.scrollToActiveTab()}),nt(Tr,{props:e,currentName:d,registerPane:b=>{r.value.push(b)},sortPane:l,unregisterPane:u}),o({currentName:d});const m=({render:b})=>b();return()=>{const b=n["add-icon"],w=e.editable||e.addable?P("div",{class:[i.e("new-tab"),a.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:g,onKeydown:y=>{[rt.enter,rt.numpadEnter].includes(y.code)&&g()}},[b?re(n,"add-icon"):P(Le,{class:i.is("icon-plus")},{default:()=>[P(Bb,null,null)]})]):null,S=P("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[P(m,{render:()=>{const y=r.value.some(x=>x.slots.label);return P(gO,{ref:c,currentName:d.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:h,onTabRemove:p},{$stable:!y})}},null),w]),_=P("div",{class:i.e("content")},[re(n,"default")]);return P("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[_,S])}}}),yO=ye({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),ym="ElTabPane",_O=K({name:ym}),wO=K({..._O,props:yO,setup(e){const t=e,n=Ve(),o=ds(),s=we(Tr);s||Lo(ym,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=pe("tab-pane"),a=R(),r=T(()=>t.closable||s.props.closable),l=pl(()=>{var h;return s.currentName.value===((h=t.name)!=null?h:a.value)}),u=R(l.value),c=T(()=>{var h;return(h=t.name)!=null?h:a.value}),d=pl(()=>!t.lazy||u.value||l.value);ie(l,h=>{h&&(u.value=!0)});const f=Ft({uid:n.uid,slots:o,props:t,paneName:c,active:l,index:a,isClosable:r});return s.registerPane(f),De(()=>{s.sortPane(f)}),Xi(()=>{s.unregisterPane(f.uid)}),(h,p)=>v(d)?$e((M(),D("div",{key:0,id:`pane-${v(c)}`,class:A(v(i).b()),role:"tabpanel","aria-hidden":!v(l),"aria-labelledby":`tab-${v(c)}`},[re(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[At,v(l)]]):q("v-if",!0)}});var _m=me(wO,[["__file","tab-pane.vue"]]);const sc=ct(bO,{TabPane:_m}),ic=dn(_m),wm=["success","info","warning","error"],kt=bn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:tt?document.body:void 0}),SO=ye({customClass:{type:String,default:kt.customClass},center:{type:Boolean,default:kt.center},dangerouslyUseHTMLString:{type:Boolean,default:kt.dangerouslyUseHTMLString},duration:{type:Number,default:kt.duration},icon:{type:mt,default:kt.icon},id:{type:String,default:kt.id},message:{type:he([String,Object,Function]),default:kt.message},onClose:{type:he(Function),default:kt.onClose},showClose:{type:Boolean,default:kt.showClose},type:{type:String,values:wm,default:kt.type},plain:{type:Boolean,default:kt.plain},offset:{type:Number,default:kt.offset},zIndex:{type:Number,default:kt.zIndex},grouping:{type:Boolean,default:kt.grouping},repeatNum:{type:Number,default:kt.repeatNum}}),xO={destroy:()=>!0},yn=hp([]),CO=e=>{const t=yn.findIndex(s=>s.id===e),n=yn[t];let o;return t>0&&(o=yn[t-1]),{current:n,prev:o}},kO=e=>{const{prev:t}=CO(e);return t?t.vm.exposed.bottom.value:0},EO=(e,t)=>yn.findIndex(o=>o.id===e)>0?16:t,MO=K({name:"ElMessage"}),TO=K({...MO,props:SO,emits:xO,setup(e,{expose:t}){const n=e,{Close:o}=gp,{ns:s,zIndex:i}=pp("message"),{currentZIndex:a,nextZIndex:r}=i,l=R(),u=R(!1),c=R(0);let d;const f=T(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=T(()=>{const C=n.type;return{[s.bm("icon",C)]:C&&or[C]}}),p=T(()=>n.icon||or[n.type]||""),g=T(()=>kO(n.id)),m=T(()=>EO(n.id,n.offset)+g.value),b=T(()=>c.value+m.value),w=T(()=>({top:`${m.value}px`,zIndex:a.value}));function S(){n.duration!==0&&({stop:d}=ml(()=>{y()},n.duration))}function _(){d==null||d()}function y(){u.value=!1}function x({code:C}){C===rt.esc&&y()}return De(()=>{S(),r(),u.value=!0}),ie(()=>n.repeatNum,()=>{_(),S()}),so(document,"keydown",x),Tt(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:b,close:y}),(C,E)=>(M(),G(fs,{name:v(s).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:O=>C.$emit("destroy"),persisted:""},{default:L(()=>[$e(k("div",{id:C.id,ref_key:"messageRef",ref:l,class:A([v(s).b(),{[v(s).m(C.type)]:C.type},v(s).is("center",C.center),v(s).is("closable",C.showClose),v(s).is("plain",C.plain),C.customClass]),style:Oe(v(w)),role:"alert",onMouseenter:_,onMouseleave:S},[C.repeatNum>1?(M(),G(v(Sk),{key:0,value:C.repeatNum,type:v(f),class:A(v(s).e("badge"))},null,8,["value","type","class"])):q("v-if",!0),v(p)?(M(),G(v(Le),{key:1,class:A([v(s).e("icon"),v(h)])},{default:L(()=>[(M(),G(Ue(v(p))))]),_:1},8,["class"])):q("v-if",!0),re(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(M(),D(Qe,{key:1},[q(" Caution here, message could've been compromised, never use user's input as message "),k("p",{class:A(v(s).e("content")),innerHTML:C.message},null,10,["innerHTML"])],2112)):(M(),D("p",{key:0,class:A(v(s).e("content"))},ee(C.message),3))]),C.showClose?(M(),G(v(Le),{key:2,class:A(v(s).e("closeBtn")),onClick:Xe(y,["stop"])},{default:L(()=>[P(v(o))]),_:1},8,["class","onClick"])):q("v-if",!0)],46,["id"]),[[At,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var PO=me(TO,[["__file","message.vue"]]);let OO=1;const Sm=e=>{const t=!e||Ie(e)||as(e)||je(e)?{message:e}:e,n={...kt,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ie(n.appendTo)){let o=document.querySelector(n.appendTo);In(o)||(o=document.body),n.appendTo=o}return lt(mn.grouping)&&!n.grouping&&(n.grouping=mn.grouping),Te(mn.duration)&&n.duration===3e3&&(n.duration=mn.duration),Te(mn.offset)&&n.offset===16&&(n.offset=mn.offset),lt(mn.showClose)&&!n.showClose&&(n.showClose=mn.showClose),n},AO=e=>{const t=yn.indexOf(e);if(t===-1)return;yn.splice(t,1);const{handler:n}=e;n.close()},RO=({appendTo:e,...t},n)=>{const o=`message_${OO++}`,s=t.onClose,i=document.createElement("div"),a={...t,id:o,onClose:()=>{s==null||s(),AO(c)},onDestroy:()=>{Os(null,i)}},r=P(PO,a,je(a.message)||as(a.message)?{default:je(a.message)?a.message:()=>a.message}:null);r.appContext=n||Ns._context,Os(r,i),e.appendChild(i.firstElementChild);const l=r.component,c={id:o,vnode:r,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:r.component.props};return c},Ns=(e={},t)=>{if(!tt)return{close:()=>{}};const n=Sm(e);if(n.grouping&&yn.length){const s=yn.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if(Te(mn.max)&&yn.length>=mn.max)return{close:()=>{}};const o=RO(n,t);return yn.push(o),o.handler};wm.forEach(e=>{Ns[e]=(t={},n)=>{const o=Sm(t);return Ns({...o,type:e},n)}});function LO(e){for(const t of yn)(!e||e===t.props.type)&&t.handler.close()}Ns.closeAll=LO;Ns._context=null;const IO=Db(Ns,"$message"),$O=K({name:"ElMessageBox",directives:{TrapFocus:Gk},components:{ElButton:xn,ElFocusTrap:Yu,ElInput:$o,ElOverlay:Jg,ElIcon:Le,...gp},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Yp},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:s,size:i}=pp("message-box",T(()=>e.buttonSize)),{t:a}=n,{nextZIndex:r}=o,l=R(!1),u=Ft({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Rc(Mi),cancelButtonLoadingIcon:Rc(Mi),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:r()}),c=T(()=>{const z=u.type;return{[s.bm("icon",z)]:z&&or[z]}}),d=Nn(),f=Nn(),h=T(()=>u.icon||or[u.type]||""),p=T(()=>!!u.message),g=R(),m=R(),b=R(),w=R(),S=R(),_=T(()=>u.confirmButtonClass);ie(()=>u.inputValue,async z=>{await Me(),e.boxType==="prompt"&&z!==null&&N()},{immediate:!0}),ie(()=>l.value,z=>{var J,U;z&&(e.boxType!=="prompt"&&(u.autofocus?b.value=(U=(J=S.value)==null?void 0:J.$el)!=null?U:g.value:b.value=g.value),u.zIndex=r()),e.boxType==="prompt"&&(z?Me().then(()=>{var H;w.value&&w.value.$el&&(u.autofocus?b.value=(H=j())!=null?H:g.value:b.value=g.value)}):(u.editorErrorMessage="",u.validateError=!1))});const y=T(()=>e.draggable),x=T(()=>e.overflow);Gp(g,m,y,x),De(async()=>{await Me(),e.closeOnHashChange&&window.addEventListener("hashchange",C)}),yt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",C)});function C(){!l.value||(l.value=!1,Me(()=>{u.action&&t("action",u.action)}))}const E=()=>{e.closeOnClickModal&&$(u.distinguishCancelAndClose?"close":"cancel")},O=Nu(E),I=z=>{if(u.inputType!=="textarea")return z.preventDefault(),$("confirm")},$=z=>{var J;e.boxType==="prompt"&&z==="confirm"&&!N()||(u.action=z,u.beforeClose?(J=u.beforeClose)==null||J.call(u,z,u,C):C())},N=()=>{if(e.boxType==="prompt"){const z=u.inputPattern;if(z&&!z.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const J=u.inputValidator;if(je(J)){const U=J(u.inputValue);if(U===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(Ie(U))return u.editorErrorMessage=U,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},j=()=>{const z=w.value.$refs;return z.input||z.textarea},ae=()=>{$("close")},Y=()=>{e.closeOnPressEscape&&ae()};return e.lockScroll&&Xp(l),{...uo(u),ns:s,overlayEvent:O,visible:l,hasMessage:p,typeClass:c,contentId:d,inputId:f,btnSize:i,iconComponent:h,confirmButtonClasses:_,rootRef:g,focusStartRef:b,headerRef:m,inputRef:w,confirmRef:S,doClose:C,handleClose:ae,onCloseRequested:Y,handleWrapperClick:E,handleInputEnter:I,handleAction:$,t:a}}});function FO(e,t,n,o,s,i){const a=_e("el-icon"),r=_e("close"),l=_e("el-input"),u=_e("el-button"),c=_e("el-focus-trap"),d=_e("el-overlay");return M(),G(fs,{name:"fade-in-linear",onAfterLeave:f=>e.$emit("vanish"),persisted:""},{default:L(()=>[$e(P(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:L(()=>[k("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:A(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[P(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:L(()=>[k("div",{ref:"rootRef",class:A([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Oe(e.customStyle),tabindex:"-1",onClick:Xe(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(M(),D("div",{key:0,ref:"headerRef",class:A([e.ns.e("header"),{"show-close":e.showClose}])},[k("div",{class:A(e.ns.e("title"))},[e.iconComponent&&e.center?(M(),G(a,{key:0,class:A([e.ns.e("status"),e.typeClass])},{default:L(()=>[(M(),G(Ue(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),k("span",null,ee(e.title),1)],2),e.showClose?(M(),D("button",{key:0,type:"button",class:A(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:zt(Xe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[P(a,{class:A(e.ns.e("close"))},{default:L(()=>[P(r)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):q("v-if",!0)],2)):q("v-if",!0),k("div",{id:e.contentId,class:A(e.ns.e("content"))},[k("div",{class:A(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(M(),G(a,{key:0,class:A([e.ns.e("status"),e.typeClass])},{default:L(()=>[(M(),G(Ue(e.iconComponent)))]),_:1},8,["class"])):q("v-if",!0),e.hasMessage?(M(),D("div",{key:1,class:A(e.ns.e("message"))},[re(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(M(),G(Ue(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(M(),G(Ue(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:L(()=>[le(ee(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):q("v-if",!0)],2),$e(k("div",{class:A(e.ns.e("input"))},[P(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":f=>e.inputValue=f,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:A({invalid:e.validateError}),onKeydown:zt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),k("div",{class:A(e.ns.e("errormsg")),style:Oe({visibility:e.editorErrorMessage?"visible":"hidden"})},ee(e.editorErrorMessage),7)],2),[[At,e.showInput]])],10,["id"]),k("div",{class:A(e.ns.e("btns"))},[e.showCancelButton?(M(),G(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:A([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:f=>e.handleAction("cancel"),onKeydown:zt(Xe(f=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:L(()=>[le(ee(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):q("v-if",!0),$e(P(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:A([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:f=>e.handleAction("confirm"),onKeydown:zt(Xe(f=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:L(()=>[le(ee(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[At,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[At,e.visible]])]),_:3},8,["onAfterLeave"])}var BO=me($O,[["render",FO],["__file","index.vue"]]);const Di=new Map,DO=e=>{let t=document.body;return e.appendTo&&(Ie(e.appendTo)&&(t=document.querySelector(e.appendTo)),In(e.appendTo)&&(t=e.appendTo),In(t)||(t=document.body)),t},NO=(e,t,n=null)=>{const o=P(BO,e,je(e.message)||as(e.message)?{default:je(e.message)?e.message:()=>e.message}:null);return o.appContext=n,Os(o,t),DO(e).appendChild(t.firstElementChild),o.component},zO=()=>document.createElement("div"),VO=(e,t)=>{const n=zO();e.onVanish=()=>{Os(null,n),Di.delete(s)},e.onAction=i=>{const a=Di.get(s);let r;e.showInput?r={value:s.inputValue,action:i}:r=i,e.callback?e.callback(r,o.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(r)};const o=NO(e,n,t),s=o.proxy;for(const i in e)ao(e,i)&&!ao(s.$props,i)&&(s[i]=e[i]);return s.visible=!0,s};function Xs(e,t=null){if(!tt)return Promise.reject();let n;return Ie(e)||as(e)?e={message:e}:n=e.callback,new Promise((o,s)=>{const i=VO(e,t!=null?t:Xs._context);Di.set(i,{options:e,callback:n,resolve:o,reject:s})})}const HO=["alert","confirm","prompt"],WO={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};HO.forEach(e=>{Xs[e]=jO(e)});function jO(e){return(t,n,o,s)=>{let i="";return St(n)?(o=n,i=""):$t(n)?i="":i=n,Xs(Object.assign({title:i,message:t,type:"",...WO[e]},o,{boxType:e}),s)}}Xs.close=()=>{Di.forEach((e,t)=>{t.doClose()}),Di.clear()};Xs._context=null;const _o=Xs;_o.install=e=>{_o._context=e._context,e.config.globalProperties.$msgbox=_o,e.config.globalProperties.$messageBox=_o,e.config.globalProperties.$alert=_o.alert,e.config.globalProperties.$confirm=_o.confirm,e.config.globalProperties.$prompt=_o.prompt};const sf=_o,Kt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},UO={name:"Report",components:{Coffee:mp,User:vp,Money:bp},data(){return{val:"Hello from Report"}},props:{reportData:{type:Object,required:!0}},methods:{getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e}}},KO={class:"buymecoffee_report_wrapper"},qO={class:"buymecoffee_report_inner"},YO={class:"buymecoffee_report_count",style:{"text-align":"center"}},GO=["src"],XO={key:0,style:{"max-height":"120px","overflow-y":"hidden"}},JO=["innerHTML"],QO=["innerHTML"],ZO={key:1},eA={class:"buymecoffee_report_inner"},tA={class:"buymecoffee_report_count",style:{"text-align":"center"}},nA=["src"],oA={key:0,style:{"max-height":"120px","overflow-y":"hidden"}},sA=["innerHTML"],iA=["innerHTML"],aA={key:1},rA={class:"buymecoffee_report_inner"},lA={class:"buymecoffee_report_count"},uA=["src"],cA={style:{margin:"0"}},dA={class:"buymecoffee_report_inner"},fA={class:"buymecoffee_report_count"},hA=["src"],pA={style:{margin:"0"}};function gA(e,t,n,o,s,i){var a,r;return M(),D("div",KO,[k("div",qO,[k("div",YO,[k("img",{src:i.getImage("money.png"),alt:"Money"},null,8,GO),n.reportData.currency_total.length>0?(M(),D("ul",XO,[t[0]||(t[0]=k("li",null,[k("span",null,"Total Received")],-1)),n.reportData.currency_total.length===1?(M(),D("p",{key:0,style:{margin:"0"},innerHTML:(a=n.reportData)==null?void 0:a.currency_total[0].formatted_total},null,8,JO)):(M(!0),D(Qe,{key:1},Bt(n.reportData.currency_total,l=>(M(),D("li",null,[k("span",{style:{"font-size":"20px"},innerHTML:l.formatted_total},null,8,QO)]))),256))])):(M(),D("span",ZO,t[1]||(t[1]=[k("br",null,null,-1),le("No amount received yet!")])))])]),k("div",eA,[k("div",tA,[k("img",{src:i.getImage("money-pending.png"),alt:"MoneyPending"},null,8,nA),n.reportData.currency_total_pending.length>0?(M(),D("ul",oA,[t[2]||(t[2]=k("li",null,[k("span",null,"Amount Pending")],-1)),n.reportData.currency_total_pending.length===1?(M(),D("p",{key:0,style:{margin:"0"},innerHTML:(r=n.reportData)==null?void 0:r.currency_total_pending[0].formatted_total},null,8,sA)):(M(!0),D(Qe,{key:1},Bt(n.reportData.currency_total_pending,l=>(M(),D("li",null,[k("span",{style:{"font-size":"20px"},innerHTML:l.formatted_total},null,8,iA)]))),256))])):(M(),D("span",aA,t[3]||(t[3]=[k("br",null,null,-1),le("No pending yet!")])))])]),k("div",rA,[k("div",lA,[k("img",{src:i.getImage("supporters.png"),alt:"supporters"},null,8,uA),k("ul",null,[t[4]||(t[4]=k("li",null,[k("span",null,"Supporters")],-1)),k("li",null,[k("p",cA,ee(n.reportData.total_supporters||0),1)])])])]),k("div",dA,[k("div",fA,[k("img",{src:i.getImage("coffee-cup.png"),alt:"coffee-cup"},null,8,hA),k("ul",null,[t[5]||(t[5]=k("li",null,[k("span",null,"Total Coffee")],-1)),k("li",null,[k("p",pA,ee(n.reportData.total_coffee||0),1)])])])])])}const mA=Kt(UO,[["render",gA],["__scopeId","data-v-ebe5bac1"]]),vA={name:"Supporters",data(){return{currentPage:this.current}},props:{fetching:{type:Boolean,required:!0},supporters:{type:Array,required:!0},posts_per_page:{type:Number},total:{type:Number||String},current:{type:Number||String},hide_pagination:{type:String,default:"no"},hide_columns:{type:Array,default:[]}},methods:{sizeChanged(e){this.$emit("sizeChanged",e)},handleSizeChange(e){this.currentPage=e-1,this.$emit("pageChanged",this.currentPage)},handleGet(e){this.$router.push({name:"Supporter",params:{id:e}})},handleDelete(e){this.$post({action:"buymecoffee_admin_ajax",route:"delete_supporter",data:{id:e},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(()=>{this.$handleSuccess("This record has been deleted."),this.$emit("fetchSupporters")}).catch(t=>{this.$handleError(t)})},maybeGetMethodImage(e){return e==="paypal"?window.BuyMeCoffeeAdmin.assets_url+"images/PayPal.svg":e==="stripe"?window.BuyMeCoffeeAdmin.assets_url+"images/stripe.svg":!1}}},bA=["onClick"],yA=["innerHTML"],_A=["innerHTML"],wA=["src"];function SA(e,t,n,o,s,i){const a=oc,r=xn,l=om,u=Kk,c=nc,d=CT,f=co("loading");return M(),D("div",null,[$e((M(),G(c,{"element-loading-text":"loading...",class:"customers_table",data:n.supporters},{default:L(()=>[n.hide_columns.includes("id")?q("",!0):(M(),G(a,{key:0,sortable:"",prop:"id",width:"80",label:"Id"})),n.hide_columns.includes("date")?q("",!0):(M(),G(a,{key:1,width:"180",label:"Date"},{default:L(h=>[k("span",null,ee(h.row.created_at),1)]),_:1})),n.hide_columns.includes("name")?q("",!0):(M(),G(a,{key:2,prop:"supporters_name",width:"200",label:"Name"},{default:L(h=>[k("a",{class:"text-blue-700 cursor-pointer",onClick:p=>i.handleGet(h.row.id)},ee(h.row.supporters_name),9,bA)]),_:1})),n.hide_columns.includes("amount")?q("",!0):(M(),G(a,{key:3,label:"Amount"},{default:L(h=>[k("span",{class:"wpm_supporters_amount",innerHTML:h.row.amount_formatted},null,8,yA)]),_:1})),n.hide_columns.includes("status")?q("",!0):(M(),G(a,{key:4,prop:"payment_status",label:"Status"},{default:L(h=>[k("span",{class:A("buymecoffee_status buymecoffee_status_"+h.row.payment_status),innerHTML:h.row.payment_status},null,10,_A)]),_:1})),n.hide_columns.includes("method")?q("",!0):(M(),G(a,{key:5,label:"Method"},{default:L(h=>[i.maybeGetMethodImage(h.row.payment_method)?(M(),D("img",{key:0,width:"48",class:"buymecoffee_paid_by_image",src:i.maybeGetMethodImage(h.row.payment_method)},null,8,wA)):(M(),D("span",{key:1,class:A("buymecoffee_payment_type buymecoffee_payment_type_"+h.row.payment_method),style:{"margin-left":"10px"}},ee(h.row.payment_method?h.row.payment_method:"-"),3))]),_:1})),n.hide_columns.includes("mode")?q("",!0):(M(),G(a,{key:6,label:"Mode"},{default:L(h=>[k("span",{class:A("buymecoffee_payment_mode buymecoffee_payment_mode_"+h.row.payment_mode),style:{"margin-left":"10px"}},ee(h.row.payment_mode?h.row.payment_mode:"-"),3)]),_:1})),n.hide_columns.includes("operations")?q("",!0):(M(),G(a,{key:7,label:"Operations"},{default:L(h=>[P(u,null,{default:L(()=>[P(r,{round:"",size:"small",icon:"View",onClick:p=>i.handleGet(h.row.id)},null,8,["onClick"]),P(l,{onConfirm:p=>i.handleDelete(h.row.id),title:"Are you sure to delete this?"},{reference:L(()=>[P(r,{round:"",size:"small",type:"danger",icon:"Delete"})]),_:2},1032,["onConfirm"])]),_:2},1024)]),_:1}))]),_:1},8,["data"])),[[f,n.fetching]]),t[0]||(t[0]=k("br",null,null,-1)),n.hide_pagination!=="yes"?(M(),G(d,{key:0,onCurrentChange:i.handleSizeChange,"page-size":n.posts_per_page,"page-sizes":[50,100,200,300],background:"background",layout:"size, sizes, prev, pager, next, total",onSizeChange:i.sizeChanged,"page-count":Math.ceil(n.total/n.posts_per_page),total:n.total},null,8,["onCurrentChange","page-size","onSizeChange","page-count","total"])):q("",!0)])}const xm=Kt(vA,[["render",SA]]);/*!
     34 * @kurkle/color v0.3.4
    4135 * https://github.com/kurkle/color#readme
    42  * (c) 2023 Jukka Kurkela
     36 * (c) 2024 Jukka Kurkela
    4337 * Released under the MIT License
    44  */function nr(e){return e+.5|0}const _o=(e,t,n)=>Math.max(Math.min(e,n),t);function ai(e){return _o(nr(e*2.55),0,255)}function ko(e){return _o(nr(e*255),0,255)}function Qn(e){return _o(nr(e/2.55)/100,0,1)}function Ud(e){return _o(nr(e*100),0,100)}const tn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Nl=[..."0123456789ABCDEF"],pA=e=>Nl[e&15],gA=e=>Nl[(e&240)>>4]+Nl[e&15],mr=e=>(e&240)>>4===(e&15),mA=e=>mr(e.r)&&mr(e.g)&&mr(e.b)&&mr(e.a);function vA(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&tn[e[1]]*17,g:255&tn[e[2]]*17,b:255&tn[e[3]]*17,a:t===5?tn[e[4]]*17:255}:(t===7||t===9)&&(n={r:tn[e[1]]<<4|tn[e[2]],g:tn[e[3]]<<4|tn[e[4]],b:tn[e[5]]<<4|tn[e[6]],a:t===9?tn[e[7]]<<4|tn[e[8]]:255})),n}const bA=(e,t)=>e<255?t(e):"";function yA(e){var t=mA(e)?pA:gA;return e?"#"+t(e.r)+t(e.g)+t(e.b)+bA(e.a,t):void 0}const _A=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function om(e,t,n){const o=t*Math.min(n,1-n),s=(i,r=(i+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function wA(e,t,n){const o=(s,i=(s+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[o(5),o(3),o(1)]}function xA(e,t,n){const o=om(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)o[s]*=1-t-n,o[s]+=t;return o}function SA(e,t,n,o,s){return e===s?(t-n)/o+(t<n?6:0):t===s?(n-e)/o+2:(e-t)/o+4}function Xc(e){const n=e.r/255,o=e.g/255,s=e.b/255,i=Math.max(n,o,s),r=Math.min(n,o,s),a=(i+r)/2;let l,c,u;return i!==r&&(u=i-r,c=a>.5?u/(2-i-r):u/(i+r),l=SA(n,o,s,u,i),l=l*60+.5),[l|0,c||0,a]}function Qc(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(ko)}function Jc(e,t,n){return Qc(om,e,t,n)}function CA(e,t,n){return Qc(xA,e,t,n)}function kA(e,t,n){return Qc(wA,e,t,n)}function sm(e){return(e%360+360)%360}function EA(e){const t=_A.exec(e);let n=255,o;if(!t)return;t[5]!==o&&(n=t[6]?ai(+t[5]):ko(+t[5]));const s=sm(+t[2]),i=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?o=CA(s,i,r):t[1]==="hsv"?o=kA(s,i,r):o=Jc(s,i,r),{r:o[0],g:o[1],b:o[2],a:n}}function MA(e,t){var n=Xc(e);n[0]=sm(n[0]+t),n=Jc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function PA(e){if(!e)return;const t=Xc(e),n=t[0],o=Ud(t[1]),s=Ud(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${s}%, ${Qn(e.a)})`:`hsl(${n}, ${o}%, ${s}%)`}const Kd={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},qd={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function TA(){const e={},t=Object.keys(qd),n=Object.keys(Kd);let o,s,i,r,a;for(o=0;o<t.length;o++){for(r=a=t[o],s=0;s<n.length;s++)i=n[s],a=a.replace(i,Kd[i]);i=parseInt(qd[r],16),e[a]=[i>>16&255,i>>8&255,i&255]}return e}let vr;function OA(e){vr||(vr=TA(),vr.transparent=[0,0,0,0]);const t=vr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const AA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function RA(e){const t=AA.exec(e);let n=255,o,s,i;if(!!t){if(t[7]!==o){const r=+t[7];n=t[8]?ai(r):_o(r*255,0,255)}return o=+t[1],s=+t[3],i=+t[5],o=255&(t[2]?ai(o):_o(o,0,255)),s=255&(t[4]?ai(s):_o(s,0,255)),i=255&(t[6]?ai(i):_o(i,0,255)),{r:o,g:s,b:i,a:n}}}function LA(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Qn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ua=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ms=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function $A(e,t,n){const o=ms(Qn(e.r)),s=ms(Qn(e.g)),i=ms(Qn(e.b));return{r:ko(Ua(o+n*(ms(Qn(t.r))-o))),g:ko(Ua(s+n*(ms(Qn(t.g))-s))),b:ko(Ua(i+n*(ms(Qn(t.b))-i))),a:e.a+n*(t.a-e.a)}}function br(e,t,n){if(e){let o=Xc(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,t===0?360:1)),o=Jc(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function im(e,t){return e&&Object.assign(t||{},e)}function Yd(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ko(e[3]))):(t=im(e,{r:0,g:0,b:0,a:1}),t.a=ko(t.a)),t}function IA(e){return e.charAt(0)==="r"?RA(e):EA(e)}class Di{constructor(t){if(t instanceof Di)return t;const n=typeof t;let o;n==="object"?o=Yd(t):n==="string"&&(o=vA(t)||OA(t)||IA(t)),this._rgb=o,this._valid=!!o}get valid(){return this._valid}get rgb(){var t=im(this._rgb);return t&&(t.a=Qn(t.a)),t}set rgb(t){this._rgb=Yd(t)}rgbString(){return this._valid?LA(this._rgb):void 0}hexString(){return this._valid?yA(this._rgb):void 0}hslString(){return this._valid?PA(this._rgb):void 0}mix(t,n){if(t){const o=this.rgb,s=t.rgb;let i;const r=n===i?.5:n,a=2*r-1,l=o.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;i=1-c,o.r=255&c*o.r+i*s.r+.5,o.g=255&c*o.g+i*s.g+.5,o.b=255&c*o.b+i*s.b+.5,o.a=r*o.a+(1-r)*s.a,this.rgb=o}return this}interpolate(t,n){return t&&(this._rgb=$A(this._rgb,t._rgb,n)),this}clone(){return new Di(this.rgb)}alpha(t){return this._rgb.a=ko(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=nr(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return br(this._rgb,2,t),this}darken(t){return br(this._rgb,2,-t),this}saturate(t){return br(this._rgb,1,t),this}desaturate(t){return br(this._rgb,1,-t),this}rotate(t){return MA(this._rgb,t),this}}/*!
    45  * Chart.js v4.4.0
     38 */function sa(e){return e+.5|0}const Co=(e,t,n)=>Math.max(Math.min(e,n),t);function ri(e){return Co(sa(e*2.55),0,255)}function To(e){return Co(sa(e*255),0,255)}function Xn(e){return Co(sa(e/2.55)/100,0,1)}function af(e){return Co(sa(e*100),0,100)}const tn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Yl=[..."0123456789ABCDEF"],xA=e=>Yl[e&15],CA=e=>Yl[(e&240)>>4]+Yl[e&15],wa=e=>(e&240)>>4===(e&15),kA=e=>wa(e.r)&&wa(e.g)&&wa(e.b)&&wa(e.a);function EA(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&tn[e[1]]*17,g:255&tn[e[2]]*17,b:255&tn[e[3]]*17,a:t===5?tn[e[4]]*17:255}:(t===7||t===9)&&(n={r:tn[e[1]]<<4|tn[e[2]],g:tn[e[3]]<<4|tn[e[4]],b:tn[e[5]]<<4|tn[e[6]],a:t===9?tn[e[7]]<<4|tn[e[8]]:255})),n}const MA=(e,t)=>e<255?t(e):"";function TA(e){var t=kA(e)?xA:CA;return e?"#"+t(e.r)+t(e.g)+t(e.b)+MA(e.a,t):void 0}const PA=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Cm(e,t,n){const o=t*Math.min(n,1-n),s=(i,a=(i+e/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return[s(0),s(8),s(4)]}function OA(e,t,n){const o=(s,i=(s+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[o(5),o(3),o(1)]}function AA(e,t,n){const o=Cm(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)o[s]*=1-t-n,o[s]+=t;return o}function RA(e,t,n,o,s){return e===s?(t-n)/o+(t<n?6:0):t===s?(n-e)/o+2:(e-t)/o+4}function ac(e){const n=e.r/255,o=e.g/255,s=e.b/255,i=Math.max(n,o,s),a=Math.min(n,o,s),r=(i+a)/2;let l,u,c;return i!==a&&(c=i-a,u=r>.5?c/(2-i-a):c/(i+a),l=RA(n,o,s,c,i),l=l*60+.5),[l|0,u||0,r]}function rc(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(To)}function lc(e,t,n){return rc(Cm,e,t,n)}function LA(e,t,n){return rc(AA,e,t,n)}function IA(e,t,n){return rc(OA,e,t,n)}function km(e){return(e%360+360)%360}function $A(e){const t=PA.exec(e);let n=255,o;if(!t)return;t[5]!==o&&(n=t[6]?ri(+t[5]):To(+t[5]));const s=km(+t[2]),i=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?o=LA(s,i,a):t[1]==="hsv"?o=IA(s,i,a):o=lc(s,i,a),{r:o[0],g:o[1],b:o[2],a:n}}function FA(e,t){var n=ac(e);n[0]=km(n[0]+t),n=lc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function BA(e){if(!e)return;const t=ac(e),n=t[0],o=af(t[1]),s=af(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${s}%, ${Xn(e.a)})`:`hsl(${n}, ${o}%, ${s}%)`}const rf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function DA(){const e={},t=Object.keys(lf),n=Object.keys(rf);let o,s,i,a,r;for(o=0;o<t.length;o++){for(a=r=t[o],s=0;s<n.length;s++)i=n[s],r=r.replace(i,rf[i]);i=parseInt(lf[a],16),e[r]=[i>>16&255,i>>8&255,i&255]}return e}let Sa;function NA(e){Sa||(Sa=DA(),Sa.transparent=[0,0,0,0]);const t=Sa[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const zA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function VA(e){const t=zA.exec(e);let n=255,o,s,i;if(!!t){if(t[7]!==o){const a=+t[7];n=t[8]?ri(a):Co(a*255,0,255)}return o=+t[1],s=+t[3],i=+t[5],o=255&(t[2]?ri(o):Co(o,0,255)),s=255&(t[4]?ri(s):Co(s,0,255)),i=255&(t[6]?ri(i):Co(i,0,255)),{r:o,g:s,b:i,a:n}}}function HA(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Xn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Jr=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ss=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function WA(e,t,n){const o=Ss(Xn(e.r)),s=Ss(Xn(e.g)),i=Ss(Xn(e.b));return{r:To(Jr(o+n*(Ss(Xn(t.r))-o))),g:To(Jr(s+n*(Ss(Xn(t.g))-s))),b:To(Jr(i+n*(Ss(Xn(t.b))-i))),a:e.a+n*(t.a-e.a)}}function xa(e,t,n){if(e){let o=ac(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,t===0?360:1)),o=lc(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function Em(e,t){return e&&Object.assign(t||{},e)}function uf(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=To(e[3]))):(t=Em(e,{r:0,g:0,b:0,a:1}),t.a=To(t.a)),t}function jA(e){return e.charAt(0)==="r"?VA(e):$A(e)}class Ni{constructor(t){if(t instanceof Ni)return t;const n=typeof t;let o;n==="object"?o=uf(t):n==="string"&&(o=EA(t)||NA(t)||jA(t)),this._rgb=o,this._valid=!!o}get valid(){return this._valid}get rgb(){var t=Em(this._rgb);return t&&(t.a=Xn(t.a)),t}set rgb(t){this._rgb=uf(t)}rgbString(){return this._valid?HA(this._rgb):void 0}hexString(){return this._valid?TA(this._rgb):void 0}hslString(){return this._valid?BA(this._rgb):void 0}mix(t,n){if(t){const o=this.rgb,s=t.rgb;let i;const a=n===i?.5:n,r=2*a-1,l=o.a-s.a,u=((r*l===-1?r:(r+l)/(1+r*l))+1)/2;i=1-u,o.r=255&u*o.r+i*s.r+.5,o.g=255&u*o.g+i*s.g+.5,o.b=255&u*o.b+i*s.b+.5,o.a=a*o.a+(1-a)*s.a,this.rgb=o}return this}interpolate(t,n){return t&&(this._rgb=WA(this._rgb,t._rgb,n)),this}clone(){return new Ni(this.rgb)}alpha(t){return this._rgb.a=To(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=sa(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return xa(this._rgb,2,t),this}darken(t){return xa(this._rgb,2,-t),this}saturate(t){return xa(this._rgb,1,t),this}desaturate(t){return xa(this._rgb,1,-t),this}rotate(t){return FA(this._rgb,t),this}}/*!
     39 * Chart.js v4.4.6
    4640 * https://www.chartjs.org
    47  * (c) 2023 Chart.js Contributors
     41 * (c) 2024 Chart.js Contributors
    4842 * Released under the MIT License
    49  */function Un(){}const FA=(()=>{let e=0;return()=>e++})();function ze(e){return e===null||typeof e>"u"}function tt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Fe(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function lt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Yt(e,t){return lt(e)?e:t}function Ae(e,t){return typeof e>"u"?t:e}const DA=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,rm=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Qe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ue(e,t,n,o){let s,i,r;if(tt(e))if(i=e.length,o)for(s=i-1;s>=0;s--)t.call(n,e[s],s);else for(s=0;s<i;s++)t.call(n,e[s],s);else if(Fe(e))for(r=Object.keys(e),i=r.length,s=0;s<i;s++)t.call(n,e[r[s]],r[s])}function ra(e,t){let n,o,s,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(s=e[n],i=t[n],s.datasetIndex!==i.datasetIndex||s.index!==i.index)return!1;return!0}function aa(e){if(tt(e))return e.map(aa);if(Fe(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let s=0;for(;s<o;++s)t[n[s]]=aa(e[n[s]]);return t}return e}function am(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function BA(e,t,n,o){if(!am(e))return;const s=t[e],i=n[e];Fe(s)&&Fe(i)?Bi(s,i,o):t[e]=aa(i)}function Bi(e,t,n){const o=tt(t)?t:[t],s=o.length;if(!Fe(e))return e;n=n||{};const i=n.merger||BA;let r;for(let a=0;a<s;++a){if(r=o[a],!Fe(r))continue;const l=Object.keys(r);for(let c=0,u=l.length;c<u;++c)i(l[c],e,r,n)}return e}function _i(e,t){return Bi(e,t,{merger:NA})}function NA(e,t,n){if(!am(e))return;const o=t[e],s=n[e];Fe(o)&&Fe(s)?_i(o,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=aa(s))}const Gd={"":e=>e,x:e=>e.x,y:e=>e.y};function zA(e){const t=e.split("."),n=[];let o="";for(const s of t)o+=s,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function VA(e){const t=zA(e);return n=>{for(const o of t){if(o==="")break;n=n&&n[o]}return n}}function To(e,t){return(Gd[t]||(Gd[t]=VA(t)))(e)}function Zc(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ni=e=>typeof e<"u",Oo=e=>typeof e=="function",Xd=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function HA(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const it=Math.PI,nt=2*it,WA=nt+it,la=Number.POSITIVE_INFINITY,jA=it/180,ut=it/2,zo=it/4,Qd=it*2/3,wo=Math.log10,Rn=Math.sign;function wi(e,t,n){return Math.abs(e-t)<n}function Jd(e){const t=Math.round(e);e=wi(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(wo(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function UA(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o===0&&(t.push(o),t.push(e/o));return n===(n|0)&&t.push(n),t.sort((s,i)=>s-i).pop(),t}function Is(e){return!isNaN(parseFloat(e))&&isFinite(e)}function KA(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function lm(e,t,n){let o,s,i;for(o=0,s=e.length;o<s;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function mn(e){return e*(it/180)}function eu(e){return e*(180/it)}function Zd(e){if(!lt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function cm(e,t){const n=t.x-e.x,o=t.y-e.y,s=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*it&&(i+=nt),{angle:i,distance:s}}function zl(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function qA(e,t){return(e-t+WA)%nt-it}function Gt(e){return(e%nt+nt)%nt}function zi(e,t,n,o){const s=Gt(e),i=Gt(t),r=Gt(n),a=Gt(i-s),l=Gt(r-s),c=Gt(s-i),u=Gt(s-r);return s===i||s===r||o&&i===r||a>l&&c<u}function vt(e,t,n){return Math.max(t,Math.min(n,e))}function YA(e){return vt(e,-32768,32767)}function Zn(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function tu(e,t,n){n=n||(r=>e[r]<t);let o=e.length-1,s=0,i;for(;o-s>1;)i=s+o>>1,n(i)?s=i:o=i;return{lo:s,hi:o}}const eo=(e,t,n,o)=>tu(e,n,o?s=>{const i=e[s][t];return i<n||i===n&&e[s+1][t]===n}:s=>e[s][t]<n),GA=(e,t,n)=>tu(e,n,o=>e[o][t]>=n);function XA(e,t,n){let o=0,s=e.length;for(;o<s&&e[o]<t;)o++;for(;s>o&&e[s-1]>n;)s--;return o>0||s<e.length?e.slice(o,s):e}const um=["push","pop","shift","splice","unshift"];function QA(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),um.forEach(n=>{const o="_onData"+Zc(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const r=s.apply(this,i);return e._chartjs.listeners.forEach(a=>{typeof a[o]=="function"&&a[o](...i)}),r}})})}function ef(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,s=o.indexOf(t);s!==-1&&o.splice(s,1),!(o.length>0)&&(um.forEach(i=>{delete e[i]}),delete e._chartjs)}function dm(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const fm=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function hm(e,t){let n=[],o=!1;return function(...s){n=s,o||(o=!0,fm.call(window,()=>{o=!1,e.apply(t,n)}))}}function JA(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}const nu=e=>e==="start"?"left":e==="end"?"right":"center",Ct=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,ZA=(e,t,n,o)=>e===(o?"left":"right")?n:e==="center"?(t+n)/2:t;function pm(e,t,n){const o=t.length;let s=0,i=o;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:u,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(s=vt(Math.min(eo(a,l,c).lo,n?o:eo(t,l,r.getPixelForValue(c)).lo),0,o-1)),f?i=vt(Math.max(eo(a,r.axis,u,!0).hi+1,n?0:eo(t,l,r.getPixelForValue(u),!0).hi+1),s,o)-s:i=o-s}return{start:s,count:i}}function gm(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=s,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,s),i}const yr=e=>e===0||e===1,tf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*nt/n)),nf=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*nt/n)+1,xi={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ut)+1,easeOutSine:e=>Math.sin(e*ut),easeInOutSine:e=>-.5*(Math.cos(it*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>yr(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>yr(e)?e:tf(e,.075,.3),easeOutElastic:e=>yr(e)?e:nf(e,.075,.3),easeInOutElastic(e){return yr(e)?e:e<.5?.5*tf(e*2,.1125,.45):.5+.5*nf(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-xi.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?xi.easeInBounce(e*2)*.5:xi.easeOutBounce(e*2-1)*.5+.5};function ou(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function of(e){return ou(e)?e:new Di(e)}function Ka(e){return ou(e)?e:new Di(e).saturate(.5).darken(.1).hexString()}const e2=["x","y","borderWidth","radius","tension"],t2=["color","borderColor","backgroundColor"];function n2(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:t2},numbers:{type:"number",properties:e2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function o2(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const sf=new Map;function s2(e,t){t=t||{};const n=e+JSON.stringify(t);let o=sf.get(n);return o||(o=new Intl.NumberFormat(e,t),sf.set(n,o)),o}function or(e,t,n){return s2(t,n).format(e)}const mm={values(e){return tt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const o=this.chart.options.locale;let s,i=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),i=i2(e,n)}const r=wo(Math.abs(i)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),or(e,o,l)},logarithmic(e,t,n){if(e===0)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(wo(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?mm.numeric.call(this,e,t,n):""}};function i2(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ka={formatters:mm};function r2(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ka.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const cs=Object.create(null),Vl=Object.create(null);function Si(e,t){if(!t)return e;const n=t.split(".");for(let o=0,s=n.length;o<s;++o){const i=n[o];e=e[i]||(e[i]=Object.create(null))}return e}function qa(e,t,n){return typeof t=="string"?Bi(Si(e,t),n):Bi(Si(e,""),t)}class a2{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,s)=>Ka(s.backgroundColor),this.hoverBorderColor=(o,s)=>Ka(s.borderColor),this.hoverColor=(o,s)=>Ka(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return qa(this,t,n)}get(t){return Si(this,t)}describe(t,n){return qa(Vl,t,n)}override(t,n){return qa(cs,t,n)}route(t,n,o,s){const i=Si(this,t),r=Si(this,o),a="_"+n;Object.defineProperties(i,{[a]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[s];return Fe(l)?Object.assign({},c,l):Ae(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var ct=new a2({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[n2,o2,r2]);function l2(e){return!e||ze(e.size)||ze(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ca(e,t,n,o,s){let i=t[s];return i||(i=t[s]=e.measureText(s).width,n.push(s)),i>o&&(o=i),o}function c2(e,t,n,o){o=o||{};let s=o.data=o.data||{},i=o.garbageCollect=o.garbageCollect||[];o.font!==t&&(s=o.data={},i=o.garbageCollect=[],o.font=t),e.save(),e.font=t;let r=0;const a=n.length;let l,c,u,d,f;for(l=0;l<a;l++)if(d=n[l],d!=null&&!tt(d))r=ca(e,s,i,r,d);else if(tt(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!tt(f)&&(r=ca(e,s,i,r,f));e.restore();const p=i.length/2;if(p>n.length){for(l=0;l<p;l++)delete s[i[l]];i.splice(0,p)}return r}function Vo(e,t,n){const o=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*o)/o+s}function rf(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function Hl(e,t,n,o){vm(e,t,n,o,null)}function vm(e,t,n,o,s){let i,r,a,l,c,u,d,f;const p=t.pointStyle,g=t.rotation,h=t.radius;let v=(g||0)*jA;if(p&&typeof p=="object"&&(i=p.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,o),e.rotate(v),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(h)||h<=0)){switch(e.beginPath(),p){default:s?e.ellipse(n,o,s/2,h,0,0,nt):e.arc(n,o,h,0,nt),e.closePath();break;case"triangle":u=s?s/2:h,e.moveTo(n+Math.sin(v)*u,o-Math.cos(v)*h),v+=Qd,e.lineTo(n+Math.sin(v)*u,o-Math.cos(v)*h),v+=Qd,e.lineTo(n+Math.sin(v)*u,o-Math.cos(v)*h),e.closePath();break;case"rectRounded":c=h*.516,l=h-c,r=Math.cos(v+zo)*l,d=Math.cos(v+zo)*(s?s/2-c:l),a=Math.sin(v+zo)*l,f=Math.sin(v+zo)*(s?s/2-c:l),e.arc(n-d,o-a,c,v-it,v-ut),e.arc(n+f,o-r,c,v-ut,v),e.arc(n+d,o+a,c,v,v+ut),e.arc(n-f,o+r,c,v+ut,v+it),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*h,u=s?s/2:l,e.rect(n-u,o-l,2*u,2*l);break}v+=zo;case"rectRot":d=Math.cos(v)*(s?s/2:h),r=Math.cos(v)*h,a=Math.sin(v)*h,f=Math.sin(v)*(s?s/2:h),e.moveTo(n-d,o-a),e.lineTo(n+f,o-r),e.lineTo(n+d,o+a),e.lineTo(n-f,o+r),e.closePath();break;case"crossRot":v+=zo;case"cross":d=Math.cos(v)*(s?s/2:h),r=Math.cos(v)*h,a=Math.sin(v)*h,f=Math.sin(v)*(s?s/2:h),e.moveTo(n-d,o-a),e.lineTo(n+d,o+a),e.moveTo(n+f,o-r),e.lineTo(n-f,o+r);break;case"star":d=Math.cos(v)*(s?s/2:h),r=Math.cos(v)*h,a=Math.sin(v)*h,f=Math.sin(v)*(s?s/2:h),e.moveTo(n-d,o-a),e.lineTo(n+d,o+a),e.moveTo(n+f,o-r),e.lineTo(n-f,o+r),v+=zo,d=Math.cos(v)*(s?s/2:h),r=Math.cos(v)*h,a=Math.sin(v)*h,f=Math.sin(v)*(s?s/2:h),e.moveTo(n-d,o-a),e.lineTo(n+d,o+a),e.moveTo(n+f,o-r),e.lineTo(n-f,o+r);break;case"line":r=s?s/2:Math.cos(v)*h,a=Math.sin(v)*h,e.moveTo(n-r,o-a),e.lineTo(n+r,o+a);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(v)*(s?s/2:h),o+Math.sin(v)*h);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function to(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ea(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ma(e){e.restore()}function u2(e,t,n,o,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else s==="after"!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function d2(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function f2(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ze(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function h2(e,t,n,o,s){if(s.strikethrough||s.underline){const i=e.measureText(o),r=t-i.actualBoundingBoxLeft,a=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,u),e.lineTo(a,u),e.stroke()}}function p2(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function us(e,t,n,o,s,i={}){const r=tt(t)?t:[t],a=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,f2(e,i),l=0;l<r.length;++l)c=r[l],i.backdrop&&p2(e,i.backdrop),a&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),ze(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),h2(e,n,o,c,i),o+=Number(s.lineHeight);e.restore()}function Vi(e,t){const{x:n,y:o,w:s,h:i,radius:r}=t;e.arc(n+r.topLeft,o+r.topLeft,r.topLeft,1.5*it,it,!0),e.lineTo(n,o+i-r.bottomLeft),e.arc(n+r.bottomLeft,o+i-r.bottomLeft,r.bottomLeft,it,ut,!0),e.lineTo(n+s-r.bottomRight,o+i),e.arc(n+s-r.bottomRight,o+i-r.bottomRight,r.bottomRight,ut,0,!0),e.lineTo(n+s,o+r.topRight),e.arc(n+s-r.topRight,o+r.topRight,r.topRight,0,-ut,!0),e.lineTo(n+r.topLeft,o)}const g2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,m2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function v2(e,t){const n=(""+e).match(g2);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const b2=e=>+e||0;function su(e,t){const n={},o=Fe(t),s=o?Object.keys(t):t,i=Fe(e)?o?r=>Ae(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)n[r]=b2(i(r));return n}function bm(e){return su(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ns(e){return su(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Mt(e){const t=bm(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ht(e,t){e=e||{},t=t||ct.font;let n=Ae(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let o=Ae(e.style,t.style);o&&!(""+o).match(m2)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const s={family:Ae(e.family,t.family),lineHeight:v2(Ae(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:Ae(e.weight,t.weight),string:""};return s.string=l2(s),s}function li(e,t,n,o){let s=!0,i,r,a;for(i=0,r=e.length;i<r;++i)if(a=e[i],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),s=!1),n!==void 0&&tt(a)&&(a=a[n%a.length],s=!1),a!==void 0))return o&&!s&&(o.cacheable=!1),a}function y2(e,t,n){const{min:o,max:s}=e,i=rm(t,(s-o)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(o,-Math.abs(i)),max:r(s,i)}}function Fo(e,t){return Object.assign(Object.create(e),t)}function iu(e,t=[""],n,o,s=()=>e[0]){const i=n||e;typeof o>"u"&&(o=xm("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:s,override:a=>iu([a,...e],t,i,o)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return _m(a,l,()=>M2(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return lf(a).includes(l)},ownKeys(a){return lf(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function Fs(e,t,n,o){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ym(e,o),setContext:i=>Fs(e,i,n,o),override:i=>Fs(e.override(i),t,n,o)};return new Proxy(s,{deleteProperty(i,r){return delete i[r],delete e[r],!0},get(i,r,a){return _m(i,r,()=>w2(i,r,a))},getOwnPropertyDescriptor(i,r){return i._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(i,r,a){return e[r]=a,delete i[r],!0}})}function ym(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:o,isScriptable:Oo(n)?n:()=>n,isIndexable:Oo(o)?o:()=>o}}const _2=(e,t)=>e?e+Zc(t):t,ru=(e,t)=>Fe(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function _m(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const o=n();return e[t]=o,o}function w2(e,t,n){const{_proxy:o,_context:s,_subProxy:i,_descriptors:r}=e;let a=o[t];return Oo(a)&&r.isScriptable(t)&&(a=x2(t,a,e,n)),tt(a)&&a.length&&(a=S2(t,a,e,r.isIndexable)),ru(t,a)&&(a=Fs(a,s,i&&i[t],r)),a}function x2(e,t,n,o){const{_proxy:s,_context:i,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(i,r||o);return a.delete(e),ru(e,l)&&(l=au(s._scopes,s,e,l)),l}function S2(e,t,n,o){const{_proxy:s,_context:i,_subProxy:r,_descriptors:a}=n;if(typeof i.index<"u"&&o(e))return t[i.index%t.length];if(Fe(t[0])){const l=t,c=s._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=au(c,s,e,u);t.push(Fs(d,i,r&&r[e],a))}}return t}function wm(e,t,n){return Oo(e)?e(t,n):e}const C2=(e,t)=>e===!0?t:typeof e=="string"?To(t,e):void 0;function k2(e,t,n,o,s){for(const i of t){const r=C2(n,i);if(r){e.add(r);const a=wm(r._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==o)return a}else if(r===!1&&typeof o<"u"&&n!==o)return null}return!1}function au(e,t,n,o){const s=t._rootScopes,i=wm(t._fallback,n,o),r=[...e,...s],a=new Set;a.add(o);let l=af(a,r,n,i||n,o);return l===null||typeof i<"u"&&i!==n&&(l=af(a,r,i,l,o),l===null)?!1:iu(Array.from(a),[""],s,i,()=>E2(t,n,o))}function af(e,t,n,o,s){for(;n;)n=k2(e,t,n,o,s);return n}function E2(e,t,n){const o=e._getTarget();t in o||(o[t]={});const s=o[t];return tt(s)&&Fe(n)?n:s||{}}function M2(e,t,n,o){let s;for(const i of t)if(s=xm(_2(i,e),n),typeof s<"u")return ru(e,s)?au(n,o,e,s):s}function xm(e,t){for(const n of t){if(!n)continue;const o=n[e];if(typeof o<"u")return o}}function lf(e){let t=e._keys;return t||(t=e._keys=P2(e._scopes)),t}function P2(e){const t=new Set;for(const n of e)for(const o of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(o);return Array.from(t)}function Sm(e,t,n,o){const{iScale:s}=e,{key:i="r"}=this._parsing,r=new Array(o);let a,l,c,u;for(a=0,l=o;a<l;++a)c=a+n,u=t[c],r[a]={r:s.parse(To(u,i),c)};return r}const T2=Number.EPSILON||1e-14,Ds=(e,t)=>t<e.length&&!e[t].skip&&e[t],Cm=e=>e==="x"?"y":"x";function O2(e,t,n,o){const s=e.skip?t:e,i=t,r=n.skip?t:n,a=zl(i,s),l=zl(r,i);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,f=o*u;return{previous:{x:i.x-d*(r.x-s.x),y:i.y-d*(r.y-s.y)},next:{x:i.x+f*(r.x-s.x),y:i.y+f*(r.y-s.y)}}}function A2(e,t,n){const o=e.length;let s,i,r,a,l,c=Ds(e,0);for(let u=0;u<o-1;++u)if(l=c,c=Ds(e,u+1),!(!l||!c)){if(wi(t[u],0,T2)){n[u]=n[u+1]=0;continue}s=n[u]/t[u],i=n[u+1]/t[u],a=Math.pow(s,2)+Math.pow(i,2),!(a<=9)&&(r=3/Math.sqrt(a),n[u]=s*r*t[u],n[u+1]=i*r*t[u])}}function R2(e,t,n="x"){const o=Cm(n),s=e.length;let i,r,a,l=Ds(e,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ds(e,c+1),!a)continue;const u=a[n],d=a[o];r&&(i=(u-r[n])/3,a[`cp1${n}`]=u-i,a[`cp1${o}`]=d-i*t[c]),l&&(i=(l[n]-u)/3,a[`cp2${n}`]=u+i,a[`cp2${o}`]=d+i*t[c])}}function L2(e,t="x"){const n=Cm(t),o=e.length,s=Array(o).fill(0),i=Array(o);let r,a,l,c=Ds(e,0);for(r=0;r<o;++r)if(a=l,l=c,c=Ds(e,r+1),!!l){if(c){const u=c[t]-l[t];s[r]=u!==0?(c[n]-l[n])/u:0}i[r]=a?c?Rn(s[r-1])!==Rn(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}A2(e,s,i),R2(e,i,t)}function _r(e,t,n){return Math.max(Math.min(e,n),t)}function $2(e,t){let n,o,s,i,r,a=to(e[0],t);for(n=0,o=e.length;n<o;++n)r=i,i=a,a=n<o-1&&to(e[n+1],t),i&&(s=e[n],r&&(s.cp1x=_r(s.cp1x,t.left,t.right),s.cp1y=_r(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=_r(s.cp2x,t.left,t.right),s.cp2y=_r(s.cp2y,t.top,t.bottom)))}function I2(e,t,n,o,s){let i,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")L2(e,s);else{let c=o?e[e.length-1]:e[0];for(i=0,r=e.length;i<r;++i)a=e[i],l=O2(c,a,e[Math.min(i+1,r-(o?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&$2(e,n)}function km(){return typeof window<"u"&&typeof document<"u"}function lu(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ua(e,t,n){let o;return typeof e=="string"?(o=parseInt(e,10),e.indexOf("%")!==-1&&(o=o/100*t.parentNode[n])):o=e,o}const Pa=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function F2(e,t){return Pa(e).getPropertyValue(t)}const D2=["top","right","bottom","left"];function os(e,t,n){const o={};n=n?"-"+n:"";for(let s=0;s<4;s++){const i=D2[s];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const B2=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function N2(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:s,offsetY:i}=o;let r=!1,a,l;if(B2(s,i,e.target))a=s,l=i;else{const c=t.getBoundingClientRect();a=o.clientX-c.left,l=o.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Uo(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,s=Pa(n),i=s.boxSizing==="border-box",r=os(s,"padding"),a=os(s,"border","width"),{x:l,y:c,box:u}=N2(e,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:g}=t;return i&&(p-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-d)/p*n.width/o),y:Math.round((c-f)/g*n.height/o)}}function z2(e,t,n){let o,s;if(t===void 0||n===void 0){const i=lu(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const r=i.getBoundingClientRect(),a=Pa(i),l=os(a,"border","width"),c=os(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,o=ua(a.maxWidth,i,"clientWidth"),s=ua(a.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:o||la,maxHeight:s||la}}const wr=e=>Math.round(e*10)/10;function V2(e,t,n,o){const s=Pa(e),i=os(s,"margin"),r=ua(s.maxWidth,e,"clientWidth")||la,a=ua(s.maxHeight,e,"clientHeight")||la,l=z2(e,t,n);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const f=os(s,"border","width"),p=os(s,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=wr(Math.min(c,r,l.maxWidth)),u=wr(Math.min(u,a,l.maxHeight)),c&&!u&&(u=wr(c/2)),(t!==void 0||n!==void 0)&&o&&l.height&&u>l.height&&(u=l.height,c=wr(Math.floor(u*o))),{width:c,height:u}}function cf(e,t,n){const o=t||1,s=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==o||r.height!==s||r.width!==i?(e.currentDevicePixelRatio=o,r.height=s,r.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0):!1}const H2=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function uf(e,t){const n=F2(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function Ko(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function W2(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:o==="middle"?n<.5?e.y:t.y:o==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function j2(e,t,n,o){const s={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},r=Ko(e,s,n),a=Ko(s,i,n),l=Ko(i,t,n),c=Ko(r,a,n),u=Ko(a,l,n);return Ko(c,u,n)}const U2=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},K2=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ss(e,t,n){return e?U2(t,n):K2()}function Em(e,t){let n,o;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function Mm(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Pm(e){return e==="angle"?{between:zi,compare:qA,normalize:Gt}:{between:Zn,compare:(t,n)=>t-n,normalize:t=>t}}function df({start:e,end:t,count:n,loop:o,style:s}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n===0,style:s}}function q2(e,t,n){const{property:o,start:s,end:i}=n,{between:r,normalize:a}=Pm(o),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;f<p&&r(a(t[c%l][o]),s,i);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function Tm(e,t,n){if(!n)return[e];const{property:o,start:s,end:i}=n,r=t.length,{compare:a,between:l,normalize:c}=Pm(o),{start:u,end:d,loop:f,style:p}=q2(e,t,n),g=[];let h=!1,v=null,m,y,w;const _=()=>l(s,w,m)&&a(s,w)!==0,x=()=>a(i,m)===0||l(i,w,m),S=()=>h||_(),C=()=>!h||x();for(let k=u,T=u;k<=d;++k)y=t[k%r],!y.skip&&(m=c(y[o]),m!==w&&(h=l(m,s,i),v===null&&S()&&(v=a(m,s)===0?k:T),v!==null&&C()&&(g.push(df({start:v,end:k,loop:f,count:r,style:p})),v=null),T=k,w=m));return v!==null&&g.push(df({start:v,end:d,loop:f,count:r,style:p})),g}function Om(e,t){const n=[],o=e.segments;for(let s=0;s<o.length;s++){const i=Tm(o[s],e.points,t);i.length&&n.push(...i)}return n}function Y2(e,t,n,o){let s=0,i=t-1;if(n&&!o)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(i+=s);i>s&&e[i%t].skip;)i--;return i%=t,{start:s,end:i}}function G2(e,t,n,o){const s=e.length,i=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(o=!1,i.push({start:t%s,end:(l-1)%s,loop:o}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&i.push({start:t%s,end:r%s,loop:o}),i}function X2(e,t){const n=e.points,o=e.options.spanGaps,s=n.length;if(!s)return[];const i=!!e._loop,{start:r,end:a}=Y2(n,s,i,o);if(o===!0)return ff(e,[{start:r,end:a,loop:i}],n,t);const l=a<r?a+s:a,c=!!e._fullLoop&&r===0&&a===s-1;return ff(e,G2(n,r,l,c),n,t)}function ff(e,t,n,o){return!o||!o.setContext||!n?t:Q2(e,t,n,o)}function Q2(e,t,n,o){const s=e._chart.getContext(),i=hf(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let u=i,d=t[0].start,f=d;function p(g,h,v,m){const y=a?-1:1;if(g!==h){for(g+=l;n[g%l].skip;)g-=y;for(;n[h%l].skip;)h+=y;g%l!==h%l&&(c.push({start:g%l,end:h%l,loop:v,style:m}),u=m,d=h%l)}}for(const g of t){d=a?d:g.start;let h=n[d%l],v;for(f=d+1;f<=g.end;f++){const m=n[f%l];v=hf(o.setContext(Fo(s,{type:"segment",p0:h,p1:m,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:r}))),J2(v,u)&&p(d,f-1,g.loop,u),h=m,u=v}d<f-1&&p(d,f-1,g.loop,u)}return c}function hf(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function J2(e,t){if(!t)return!1;const n=[],o=function(s,i){return ou(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,o)!==JSON.stringify(t,o)}/*!
    50  * Chart.js v4.4.0
     43 */function Un(){}const UA=(()=>{let e=0;return()=>e++})();function He(e){return e===null||typeof e>"u"}function st(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Be(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ht(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Gt(e,t){return ht(e)?e:t}function Pe(e,t){return typeof e>"u"?t:e}const KA=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Mm=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function et(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Ge(e,t,n,o){let s,i,a;if(st(e))if(i=e.length,o)for(s=i-1;s>=0;s--)t.call(n,e[s],s);else for(s=0;s<i;s++)t.call(n,e[s],s);else if(Be(e))for(a=Object.keys(e),i=a.length,s=0;s<i;s++)t.call(n,e[a[s]],a[s])}function ur(e,t){let n,o,s,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(s=e[n],i=t[n],s.datasetIndex!==i.datasetIndex||s.index!==i.index)return!1;return!0}function cr(e){if(st(e))return e.map(cr);if(Be(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let s=0;for(;s<o;++s)t[n[s]]=cr(e[n[s]]);return t}return e}function Tm(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function qA(e,t,n,o){if(!Tm(e))return;const s=t[e],i=n[e];Be(s)&&Be(i)?zi(s,i,o):t[e]=cr(i)}function zi(e,t,n){const o=st(t)?t:[t],s=o.length;if(!Be(e))return e;n=n||{};const i=n.merger||qA;let a;for(let r=0;r<s;++r){if(a=o[r],!Be(a))continue;const l=Object.keys(a);for(let u=0,c=l.length;u<c;++u)i(l[u],e,a,n)}return e}function yi(e,t){return zi(e,t,{merger:YA})}function YA(e,t,n){if(!Tm(e))return;const o=t[e],s=n[e];Be(o)&&Be(s)?yi(o,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=cr(s))}const cf={"":e=>e,x:e=>e.x,y:e=>e.y};function GA(e){const t=e.split("."),n=[];let o="";for(const s of t)o+=s,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}function XA(e){const t=GA(e);return n=>{for(const o of t){if(o==="")break;n=n&&n[o]}return n}}function Oo(e,t){return(cf[t]||(cf[t]=XA(t)))(e)}function uc(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Vi=e=>typeof e<"u",Ao=e=>typeof e=="function",df=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function JA(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const at=Math.PI,it=2*at,QA=it+at,dr=Number.POSITIVE_INFINITY,ZA=at/180,pt=at/2,No=at/4,ff=at*2/3,ko=Math.log10,Fn=Math.sign;function _i(e,t,n){return Math.abs(e-t)<n}function hf(e){const t=Math.round(e);e=_i(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ko(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function e2(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o===0&&(t.push(o),t.push(e/o));return n===(n|0)&&t.push(n),t.sort((s,i)=>s-i).pop(),t}function zs(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t2(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Pm(e,t,n){let o,s,i;for(o=0,s=e.length;o<s;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}function _n(e){return e*(at/180)}function cc(e){return e*(180/at)}function pf(e){if(!ht(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Om(e,t){const n=t.x-e.x,o=t.y-e.y,s=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*at&&(i+=it),{angle:i,distance:s}}function Gl(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function n2(e,t){return(e-t+QA)%it-at}function Xt(e){return(e%it+it)%it}function Hi(e,t,n,o){const s=Xt(e),i=Xt(t),a=Xt(n),r=Xt(i-s),l=Xt(a-s),u=Xt(s-i),c=Xt(s-a);return s===i||s===a||o&&i===a||r>l&&u<c}function _t(e,t,n){return Math.max(t,Math.min(n,e))}function o2(e){return _t(e,-32768,32767)}function Zn(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function dc(e,t,n){n=n||(a=>e[a]<t);let o=e.length-1,s=0,i;for(;o-s>1;)i=s+o>>1,n(i)?s=i:o=i;return{lo:s,hi:o}}const eo=(e,t,n,o)=>dc(e,n,o?s=>{const i=e[s][t];return i<n||i===n&&e[s+1][t]===n}:s=>e[s][t]<n),s2=(e,t,n)=>dc(e,n,o=>e[o][t]>=n);function i2(e,t,n){let o=0,s=e.length;for(;o<s&&e[o]<t;)o++;for(;s>o&&e[s-1]>n;)s--;return o>0||s<e.length?e.slice(o,s):e}const Am=["push","pop","shift","splice","unshift"];function a2(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Am.forEach(n=>{const o="_onData"+uc(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...i){const a=s.apply(this,i);return e._chartjs.listeners.forEach(r=>{typeof r[o]=="function"&&r[o](...i)}),a}})})}function gf(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,s=o.indexOf(t);s!==-1&&o.splice(s,1),!(o.length>0)&&(Am.forEach(i=>{delete e[i]}),delete e._chartjs)}function Rm(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Lm=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Im(e,t){let n=[],o=!1;return function(...s){n=s,o||(o=!0,Lm.call(window,()=>{o=!1,e.apply(t,n)}))}}function r2(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}const fc=e=>e==="start"?"left":e==="end"?"right":"center",Et=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,l2=(e,t,n,o)=>e===(o?"left":"right")?n:e==="center"?(t+n)/2:t;function $m(e,t,n){const o=t.length;let s=0,i=o;if(e._sorted){const{iScale:a,_parsed:r}=e,l=a.axis,{min:u,max:c,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(s=_t(Math.min(eo(r,l,u).lo,n?o:eo(t,l,a.getPixelForValue(u)).lo),0,o-1)),f?i=_t(Math.max(eo(r,a.axis,c,!0).hi+1,n?0:eo(t,l,a.getPixelForValue(c),!0).hi+1),s,o)-s:i=o-s}return{start:s,count:i}}function Fm(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=s,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,s),i}const Ca=e=>e===0||e===1,mf=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*it/n)),vf=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*it/n)+1,wi={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*pt)+1,easeOutSine:e=>Math.sin(e*pt),easeInOutSine:e=>-.5*(Math.cos(at*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Ca(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ca(e)?e:mf(e,.075,.3),easeOutElastic:e=>Ca(e)?e:vf(e,.075,.3),easeInOutElastic(e){return Ca(e)?e:e<.5?.5*mf(e*2,.1125,.45):.5+.5*vf(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-wi.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?wi.easeInBounce(e*2)*.5:wi.easeOutBounce(e*2-1)*.5+.5};function hc(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function bf(e){return hc(e)?e:new Ni(e)}function Qr(e){return hc(e)?e:new Ni(e).saturate(.5).darken(.1).hexString()}const u2=["x","y","borderWidth","radius","tension"],c2=["color","borderColor","backgroundColor"];function d2(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:c2},numbers:{type:"number",properties:u2}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function f2(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const yf=new Map;function h2(e,t){t=t||{};const n=e+JSON.stringify(t);let o=yf.get(n);return o||(o=new Intl.NumberFormat(e,t),yf.set(n,o)),o}function ia(e,t,n){return h2(t,n).format(e)}const Bm={values(e){return st(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const o=this.chart.options.locale;let s,i=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(s="scientific"),i=p2(e,n)}const a=ko(Math.abs(i)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:s,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ia(e,o,l)},logarithmic(e,t,n){if(e===0)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(ko(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?Bm.numeric.call(this,e,t,n):""}};function p2(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Pr={formatters:Bm};function g2(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Pr.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const us=Object.create(null),Xl=Object.create(null);function Si(e,t){if(!t)return e;const n=t.split(".");for(let o=0,s=n.length;o<s;++o){const i=n[o];e=e[i]||(e[i]=Object.create(null))}return e}function Zr(e,t,n){return typeof t=="string"?zi(Si(e,t),n):zi(Si(e,""),t)}class m2{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,s)=>Qr(s.backgroundColor),this.hoverBorderColor=(o,s)=>Qr(s.borderColor),this.hoverColor=(o,s)=>Qr(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Zr(this,t,n)}get(t){return Si(this,t)}describe(t,n){return Zr(Xl,t,n)}override(t,n){return Zr(us,t,n)}route(t,n,o,s){const i=Si(this,t),a=Si(this,o),r="_"+n;Object.defineProperties(i,{[r]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[r],u=a[s];return Be(l)?Object.assign({},u,l):Pe(l,u)},set(l){this[r]=l}}})}apply(t){t.forEach(n=>n(this))}}var ut=new m2({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[d2,f2,g2]);function v2(e){return!e||He(e.size)||He(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function fr(e,t,n,o,s){let i=t[s];return i||(i=t[s]=e.measureText(s).width,n.push(s)),i>o&&(o=i),o}function b2(e,t,n,o){o=o||{};let s=o.data=o.data||{},i=o.garbageCollect=o.garbageCollect||[];o.font!==t&&(s=o.data={},i=o.garbageCollect=[],o.font=t),e.save(),e.font=t;let a=0;const r=n.length;let l,u,c,d,f;for(l=0;l<r;l++)if(d=n[l],d!=null&&!st(d))a=fr(e,s,i,a,d);else if(st(d))for(u=0,c=d.length;u<c;u++)f=d[u],f!=null&&!st(f)&&(a=fr(e,s,i,a,f));e.restore();const h=i.length/2;if(h>n.length){for(l=0;l<h;l++)delete s[i[l]];i.splice(0,h)}return a}function zo(e,t,n){const o=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*o)/o+s}function _f(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Jl(e,t,n,o){Dm(e,t,n,o,null)}function Dm(e,t,n,o,s){let i,a,r,l,u,c,d,f;const h=t.pointStyle,p=t.rotation,g=t.radius;let m=(p||0)*ZA;if(h&&typeof h=="object"&&(i=h.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){e.save(),e.translate(n,o),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),h){default:s?e.ellipse(n,o,s/2,g,0,0,it):e.arc(n,o,g,0,it),e.closePath();break;case"triangle":c=s?s/2:g,e.moveTo(n+Math.sin(m)*c,o-Math.cos(m)*g),m+=ff,e.lineTo(n+Math.sin(m)*c,o-Math.cos(m)*g),m+=ff,e.lineTo(n+Math.sin(m)*c,o-Math.cos(m)*g),e.closePath();break;case"rectRounded":u=g*.516,l=g-u,a=Math.cos(m+No)*l,d=Math.cos(m+No)*(s?s/2-u:l),r=Math.sin(m+No)*l,f=Math.sin(m+No)*(s?s/2-u:l),e.arc(n-d,o-r,u,m-at,m-pt),e.arc(n+f,o-a,u,m-pt,m),e.arc(n+d,o+r,u,m,m+pt),e.arc(n-f,o+a,u,m+pt,m+at),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,c=s?s/2:l,e.rect(n-c,o-l,2*c,2*l);break}m+=No;case"rectRot":d=Math.cos(m)*(s?s/2:g),a=Math.cos(m)*g,r=Math.sin(m)*g,f=Math.sin(m)*(s?s/2:g),e.moveTo(n-d,o-r),e.lineTo(n+f,o-a),e.lineTo(n+d,o+r),e.lineTo(n-f,o+a),e.closePath();break;case"crossRot":m+=No;case"cross":d=Math.cos(m)*(s?s/2:g),a=Math.cos(m)*g,r=Math.sin(m)*g,f=Math.sin(m)*(s?s/2:g),e.moveTo(n-d,o-r),e.lineTo(n+d,o+r),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"star":d=Math.cos(m)*(s?s/2:g),a=Math.cos(m)*g,r=Math.sin(m)*g,f=Math.sin(m)*(s?s/2:g),e.moveTo(n-d,o-r),e.lineTo(n+d,o+r),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a),m+=No,d=Math.cos(m)*(s?s/2:g),a=Math.cos(m)*g,r=Math.sin(m)*g,f=Math.sin(m)*(s?s/2:g),e.moveTo(n-d,o-r),e.lineTo(n+d,o+r),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"line":a=s?s/2:Math.cos(m)*g,r=Math.sin(m)*g,e.moveTo(n-a,o-r),e.lineTo(n+a,o+r);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(m)*(s?s/2:g),o+Math.sin(m)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function to(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Or(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Ar(e){e.restore()}function y2(e,t,n,o,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const i=(t.x+n.x)/2;e.lineTo(i,t.y),e.lineTo(i,n.y)}else s==="after"!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function _2(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function w2(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),He(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function S2(e,t,n,o,s){if(s.strikethrough||s.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,r=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,u=n+i.actualBoundingBoxDescent,c=s.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(a,c),e.lineTo(r,c),e.stroke()}}function x2(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function cs(e,t,n,o,s,i={}){const a=st(t)?t:[t],r=i.strokeWidth>0&&i.strokeColor!=="";let l,u;for(e.save(),e.font=s.string,w2(e,i),l=0;l<a.length;++l)u=a[l],i.backdrop&&x2(e,i.backdrop),r&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),He(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(u,n,o,i.maxWidth)),e.fillText(u,n,o,i.maxWidth),S2(e,n,o,u,i),o+=Number(s.lineHeight);e.restore()}function Wi(e,t){const{x:n,y:o,w:s,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*at,at,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,at,pt,!0),e.lineTo(n+s-a.bottomRight,o+i),e.arc(n+s-a.bottomRight,o+i-a.bottomRight,a.bottomRight,pt,0,!0),e.lineTo(n+s,o+a.topRight),e.arc(n+s-a.topRight,o+a.topRight,a.topRight,0,-pt,!0),e.lineTo(n+a.topLeft,o)}const C2=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,k2=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function E2(e,t){const n=(""+e).match(C2);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const M2=e=>+e||0;function pc(e,t){const n={},o=Be(t),s=o?Object.keys(t):t,i=Be(e)?o?a=>Pe(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of s)n[a]=M2(i(a));return n}function Nm(e){return pc(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ss(e){return pc(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Rt(e){const t=Nm(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function vt(e,t){e=e||{},t=t||ut.font;let n=Pe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let o=Pe(e.style,t.style);o&&!(""+o).match(k2)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const s={family:Pe(e.family,t.family),lineHeight:E2(Pe(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:Pe(e.weight,t.weight),string:""};return s.string=v2(s),s}function li(e,t,n,o){let s=!0,i,a,r;for(i=0,a=e.length;i<a;++i)if(r=e[i],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t),s=!1),n!==void 0&&st(r)&&(r=r[n%r.length],s=!1),r!==void 0))return o&&!s&&(o.cacheable=!1),r}function T2(e,t,n){const{min:o,max:s}=e,i=Mm(t,(s-o)/2),a=(r,l)=>n&&r===0?0:r+l;return{min:a(o,-Math.abs(i)),max:a(s,i)}}function Fo(e,t){return Object.assign(Object.create(e),t)}function gc(e,t=[""],n,o,s=()=>e[0]){const i=n||e;typeof o>"u"&&(o=Wm("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:s,override:r=>gc([r,...e],t,i,o)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete e[0][l],!0},get(r,l){return Vm(r,l,()=>F2(l,t,e,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(r,l){return Sf(r).includes(l)},ownKeys(r){return Sf(r)},set(r,l,u){const c=r._storage||(r._storage=s());return r[l]=c[l]=u,delete r._keys,!0}})}function Vs(e,t,n,o){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:zm(e,o),setContext:i=>Vs(e,i,n,o),override:i=>Vs(e.override(i),t,n,o)};return new Proxy(s,{deleteProperty(i,a){return delete i[a],delete e[a],!0},get(i,a,r){return Vm(i,a,()=>O2(i,a,r))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(i,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(i,a,r){return e[a]=r,delete i[a],!0}})}function zm(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:o,isScriptable:Ao(n)?n:()=>n,isIndexable:Ao(o)?o:()=>o}}const P2=(e,t)=>e?e+uc(t):t,mc=(e,t)=>Be(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Vm(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const o=n();return e[t]=o,o}function O2(e,t,n){const{_proxy:o,_context:s,_subProxy:i,_descriptors:a}=e;let r=o[t];return Ao(r)&&a.isScriptable(t)&&(r=A2(t,r,e,n)),st(r)&&r.length&&(r=R2(t,r,e,a.isIndexable)),mc(t,r)&&(r=Vs(r,s,i&&i[t],a)),r}function A2(e,t,n,o){const{_proxy:s,_context:i,_subProxy:a,_stack:r}=n;if(r.has(e))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+e);r.add(e);let l=t(i,a||o);return r.delete(e),mc(e,l)&&(l=vc(s._scopes,s,e,l)),l}function R2(e,t,n,o){const{_proxy:s,_context:i,_subProxy:a,_descriptors:r}=n;if(typeof i.index<"u"&&o(e))return t[i.index%t.length];if(Be(t[0])){const l=t,u=s._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=vc(u,s,e,c);t.push(Vs(d,i,a&&a[e],r))}}return t}function Hm(e,t,n){return Ao(e)?e(t,n):e}const L2=(e,t)=>e===!0?t:typeof e=="string"?Oo(t,e):void 0;function I2(e,t,n,o,s){for(const i of t){const a=L2(n,i);if(a){e.add(a);const r=Hm(a._fallback,n,s);if(typeof r<"u"&&r!==n&&r!==o)return r}else if(a===!1&&typeof o<"u"&&n!==o)return null}return!1}function vc(e,t,n,o){const s=t._rootScopes,i=Hm(t._fallback,n,o),a=[...e,...s],r=new Set;r.add(o);let l=wf(r,a,n,i||n,o);return l===null||typeof i<"u"&&i!==n&&(l=wf(r,a,i,l,o),l===null)?!1:gc(Array.from(r),[""],s,i,()=>$2(t,n,o))}function wf(e,t,n,o,s){for(;n;)n=I2(e,t,n,o,s);return n}function $2(e,t,n){const o=e._getTarget();t in o||(o[t]={});const s=o[t];return st(s)&&Be(n)?n:s||{}}function F2(e,t,n,o){let s;for(const i of t)if(s=Wm(P2(i,e),n),typeof s<"u")return mc(e,s)?vc(n,o,e,s):s}function Wm(e,t){for(const n of t){if(!n)continue;const o=n[e];if(typeof o<"u")return o}}function Sf(e){let t=e._keys;return t||(t=e._keys=B2(e._scopes)),t}function B2(e){const t=new Set;for(const n of e)for(const o of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(o);return Array.from(t)}function jm(e,t,n,o){const{iScale:s}=e,{key:i="r"}=this._parsing,a=new Array(o);let r,l,u,c;for(r=0,l=o;r<l;++r)u=r+n,c=t[u],a[r]={r:s.parse(Oo(c,i),u)};return a}const D2=Number.EPSILON||1e-14,Hs=(e,t)=>t<e.length&&!e[t].skip&&e[t],Um=e=>e==="x"?"y":"x";function N2(e,t,n,o){const s=e.skip?t:e,i=t,a=n.skip?t:n,r=Gl(i,s),l=Gl(a,i);let u=r/(r+l),c=l/(r+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=o*u,f=o*c;return{previous:{x:i.x-d*(a.x-s.x),y:i.y-d*(a.y-s.y)},next:{x:i.x+f*(a.x-s.x),y:i.y+f*(a.y-s.y)}}}function z2(e,t,n){const o=e.length;let s,i,a,r,l,u=Hs(e,0);for(let c=0;c<o-1;++c)if(l=u,u=Hs(e,c+1),!(!l||!u)){if(_i(t[c],0,D2)){n[c]=n[c+1]=0;continue}s=n[c]/t[c],i=n[c+1]/t[c],r=Math.pow(s,2)+Math.pow(i,2),!(r<=9)&&(a=3/Math.sqrt(r),n[c]=s*a*t[c],n[c+1]=i*a*t[c])}}function V2(e,t,n="x"){const o=Um(n),s=e.length;let i,a,r,l=Hs(e,0);for(let u=0;u<s;++u){if(a=r,r=l,l=Hs(e,u+1),!r)continue;const c=r[n],d=r[o];a&&(i=(c-a[n])/3,r[`cp1${n}`]=c-i,r[`cp1${o}`]=d-i*t[u]),l&&(i=(l[n]-c)/3,r[`cp2${n}`]=c+i,r[`cp2${o}`]=d+i*t[u])}}function H2(e,t="x"){const n=Um(t),o=e.length,s=Array(o).fill(0),i=Array(o);let a,r,l,u=Hs(e,0);for(a=0;a<o;++a)if(r=l,l=u,u=Hs(e,a+1),!!l){if(u){const c=u[t]-l[t];s[a]=c!==0?(u[n]-l[n])/c:0}i[a]=r?u?Fn(s[a-1])!==Fn(s[a])?0:(s[a-1]+s[a])/2:s[a-1]:s[a]}z2(e,s,i),V2(e,i,t)}function ka(e,t,n){return Math.max(Math.min(e,n),t)}function W2(e,t){let n,o,s,i,a,r=to(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=r,r=n<o-1&&to(e[n+1],t),i&&(s=e[n],a&&(s.cp1x=ka(s.cp1x,t.left,t.right),s.cp1y=ka(s.cp1y,t.top,t.bottom)),r&&(s.cp2x=ka(s.cp2x,t.left,t.right),s.cp2y=ka(s.cp2y,t.top,t.bottom)))}function j2(e,t,n,o,s){let i,a,r,l;if(t.spanGaps&&(e=e.filter(u=>!u.skip)),t.cubicInterpolationMode==="monotone")H2(e,s);else{let u=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)r=e[i],l=N2(u,r,e[Math.min(i+1,a-(o?0:1))%a],t.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,u=r}t.capBezierPoints&&W2(e,n)}function bc(){return typeof window<"u"&&typeof document<"u"}function yc(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function hr(e,t,n){let o;return typeof e=="string"?(o=parseInt(e,10),e.indexOf("%")!==-1&&(o=o/100*t.parentNode[n])):o=e,o}const Rr=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function U2(e,t){return Rr(e).getPropertyValue(t)}const K2=["top","right","bottom","left"];function is(e,t,n){const o={};n=n?"-"+n:"";for(let s=0;s<4;s++){const i=K2[s];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const q2=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Y2(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:s,offsetY:i}=o;let a=!1,r,l;if(q2(s,i,e.target))r=s,l=i;else{const u=t.getBoundingClientRect();r=o.clientX-u.left,l=o.clientY-u.top,a=!0}return{x:r,y:l,box:a}}function jo(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,s=Rr(n),i=s.boxSizing==="border-box",a=is(s,"padding"),r=is(s,"border","width"),{x:l,y:u,box:c}=Y2(e,n),d=a.left+(c&&r.left),f=a.top+(c&&r.top);let{width:h,height:p}=t;return i&&(h-=a.width+r.width,p-=a.height+r.height),{x:Math.round((l-d)/h*n.width/o),y:Math.round((u-f)/p*n.height/o)}}function G2(e,t,n){let o,s;if(t===void 0||n===void 0){const i=e&&yc(e);if(!i)t=e.clientWidth,n=e.clientHeight;else{const a=i.getBoundingClientRect(),r=Rr(i),l=is(r,"border","width"),u=is(r,"padding");t=a.width-u.width-l.width,n=a.height-u.height-l.height,o=hr(r.maxWidth,i,"clientWidth"),s=hr(r.maxHeight,i,"clientHeight")}}return{width:t,height:n,maxWidth:o||dr,maxHeight:s||dr}}const Ea=e=>Math.round(e*10)/10;function X2(e,t,n,o){const s=Rr(e),i=is(s,"margin"),a=hr(s.maxWidth,e,"clientWidth")||dr,r=hr(s.maxHeight,e,"clientHeight")||dr,l=G2(e,t,n);let{width:u,height:c}=l;if(s.boxSizing==="content-box"){const f=is(s,"border","width"),h=is(s,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-i.width),c=Math.max(0,o?u/o:c-i.height),u=Ea(Math.min(u,a,l.maxWidth)),c=Ea(Math.min(c,r,l.maxHeight)),u&&!c&&(c=Ea(u/2)),(t!==void 0||n!==void 0)&&o&&l.height&&c>l.height&&(c=l.height,u=Ea(Math.floor(c*o))),{width:u,height:c}}function xf(e,t,n){const o=t||1,s=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==o||a.height!==s||a.width!==i?(e.currentDevicePixelRatio=o,a.height=s,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0):!1}const J2=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};bc()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Cf(e,t){const n=U2(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function Uo(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Q2(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:o==="middle"?n<.5?e.y:t.y:o==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Z2(e,t,n,o){const s={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=Uo(e,s,n),r=Uo(s,i,n),l=Uo(i,t,n),u=Uo(a,r,n),c=Uo(r,l,n);return Uo(u,c,n)}const eR=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,o){return n-o},leftForLtr(n,o){return n-o}}},tR=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ms(e,t,n){return e?eR(t,n):tR()}function Km(e,t){let n,o;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function qm(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Ym(e){return e==="angle"?{between:Hi,compare:n2,normalize:Xt}:{between:Zn,compare:(t,n)=>t-n,normalize:t=>t}}function kf({start:e,end:t,count:n,loop:o,style:s}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n===0,style:s}}function nR(e,t,n){const{property:o,start:s,end:i}=n,{between:a,normalize:r}=Ym(o),l=t.length;let{start:u,end:c,loop:d}=e,f,h;if(d){for(u+=l,c+=l,f=0,h=l;f<h&&a(r(t[u%l][o]),s,i);++f)u--,c--;u%=l,c%=l}return c<u&&(c+=l),{start:u,end:c,loop:d,style:e.style}}function Gm(e,t,n){if(!n)return[e];const{property:o,start:s,end:i}=n,a=t.length,{compare:r,between:l,normalize:u}=Ym(o),{start:c,end:d,loop:f,style:h}=nR(e,t,n),p=[];let g=!1,m=null,b,w,S;const _=()=>l(s,S,b)&&r(s,S)!==0,y=()=>r(i,b)===0||l(i,S,b),x=()=>g||_(),C=()=>!g||y();for(let E=c,O=c;E<=d;++E)w=t[E%a],!w.skip&&(b=u(w[o]),b!==S&&(g=l(b,s,i),m===null&&x()&&(m=r(b,s)===0?E:O),m!==null&&C()&&(p.push(kf({start:m,end:E,loop:f,count:a,style:h})),m=null),O=E,S=b));return m!==null&&p.push(kf({start:m,end:d,loop:f,count:a,style:h})),p}function Xm(e,t){const n=[],o=e.segments;for(let s=0;s<o.length;s++){const i=Gm(o[s],e.points,t);i.length&&n.push(...i)}return n}function oR(e,t,n,o){let s=0,i=t-1;if(n&&!o)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(i+=s);i>s&&e[i%t].skip;)i--;return i%=t,{start:s,end:i}}function sR(e,t,n,o){const s=e.length,i=[];let a=t,r=e[t],l;for(l=t+1;l<=n;++l){const u=e[l%s];u.skip||u.stop?r.skip||(o=!1,i.push({start:t%s,end:(l-1)%s,loop:o}),t=a=u.stop?l:null):(a=l,r.skip&&(t=l)),r=u}return a!==null&&i.push({start:t%s,end:a%s,loop:o}),i}function iR(e,t){const n=e.points,o=e.options.spanGaps,s=n.length;if(!s)return[];const i=!!e._loop,{start:a,end:r}=oR(n,s,i,o);if(o===!0)return Ef(e,[{start:a,end:r,loop:i}],n,t);const l=r<a?r+s:r,u=!!e._fullLoop&&a===0&&r===s-1;return Ef(e,sR(n,a,l,u),n,t)}function Ef(e,t,n,o){return!o||!o.setContext||!n?t:aR(e,t,n,o)}function aR(e,t,n,o){const s=e._chart.getContext(),i=Mf(e.options),{_datasetIndex:a,options:{spanGaps:r}}=e,l=n.length,u=[];let c=i,d=t[0].start,f=d;function h(p,g,m,b){const w=r?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=w;for(;n[g%l].skip;)g+=w;p%l!==g%l&&(u.push({start:p%l,end:g%l,loop:m,style:b}),c=b,d=g%l)}}for(const p of t){d=r?d:p.start;let g=n[d%l],m;for(f=d+1;f<=p.end;f++){const b=n[f%l];m=Mf(o.setContext(Fo(s,{type:"segment",p0:g,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),rR(m,c)&&h(d,f-1,p.loop,c),g=b,c=m}d<f-1&&h(d,f-1,p.loop,c)}return u}function Mf(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function rR(e,t){if(!t)return!1;const n=[],o=function(s,i){return hc(i)?(n.includes(i)||n.push(i),n.indexOf(i)):i};return JSON.stringify(e,o)!==JSON.stringify(t,o)}/*!
     44 * Chart.js v4.4.6
    5145 * https://www.chartjs.org
    52  * (c) 2023 Chart.js Contributors
     46 * (c) 2024 Chart.js Contributors
    5347 * Released under the MIT License
    54  */class Z2{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,o,s){const i=n.listeners[s],r=n.duration;i.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(o-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=fm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((o,s)=>{if(!o.running||!o.items.length)return;const i=o.items;let r=i.length-1,a=!1,l;for(;r>=0;--r)l=i[r],l._active?(l._total>o.duration&&(o.duration=l._total),l.tick(t),a=!0):(i[r]=i[i.length-1],i.pop());a&&(s.draw(),this._notify(s,o,t,"progress")),i.length||(o.running=!1,this._notify(s,o,t,"complete"),o.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let o=n.get(t);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,o)),o}listen(t,n,o){this._getAnims(t).listeners[n].push(o)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,s)=>Math.max(o,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const o=n.items;let s=o.length-1;for(;s>=0;--s)o[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Yn=new Z2;const pf="transparent",eR={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const o=of(e||pf),s=o.valid&&of(t||pf);return s&&s.valid?s.mix(o,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class tR{constructor(t,n,o,s){const i=n[o];s=li([t.to,s,i,t.from]);const r=li([t.from,i,s]);this._active=!0,this._fn=t.fn||eR[t.type||typeof r],this._easing=xi[t.easing]||xi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=o,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,o){if(this._active){this._notify(!1);const s=this._target[this._prop],i=o-this._start,r=this._duration-i;this._start=o,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=li([t.to,n,s,t.from]),this._from=li([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,o=this._duration,s=this._prop,i=this._from,r=this._loop,a=this._to;let l;if(this._active=i!==a&&(r||n<o),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=i;return}l=n/o%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(i,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,o)=>{t.push({res:n,rej:o})})}_notify(t){const n=t?"res":"rej",o=this._promises||[];for(let s=0;s<o.length;s++)o[s][n]()}}class Am{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Fe(t))return;const n=Object.keys(ct.animation),o=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const i=t[s];if(!Fe(i))return;const r={};for(const a of n)r[a]=i[a];(tt(i.properties)&&i.properties||[s]).forEach(a=>{(a===s||!o.has(a))&&o.set(a,r)})})}_animateOptions(t,n){const o=n.options,s=oR(t,o);if(!s)return[];const i=this._createAnimations(s,o);return o.$shared&&nR(t.options.$animations,o).then(()=>{t.options=o},()=>{}),i}_createAnimations(t,n){const o=this._properties,s=[],i=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const u=n[c];let d=i[c];const f=o.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}i[c]=d=new tR(f,t,c,u),s.push(d)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const o=this._createAnimations(t,n);if(o.length)return Yn.add(this._chart,o),!0}}function nR(e,t){const n=[],o=Object.keys(t);for(let s=0;s<o.length;s++){const i=e[o[s]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function oR(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function gf(e,t){const n=e&&e.options||{},o=n.reverse,s=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:o?i:s,end:o?s:i}}function sR(e,t,n){if(n===!1)return!1;const o=gf(e,n),s=gf(t,n);return{top:s.end,right:o.end,bottom:s.start,left:o.start}}function iR(e){let t,n,o,s;return Fe(e)?(t=e.top,n=e.right,o=e.bottom,s=e.left):t=n=o=s=e,{top:t,right:n,bottom:o,left:s,disabled:e===!1}}function Rm(e,t){const n=[],o=e._getSortedDatasetMetas(t);let s,i;for(s=0,i=o.length;s<i;++s)n.push(o[s].index);return n}function mf(e,t,n,o={}){const s=e.keys,i=o.mode==="single";let r,a,l,c;if(t!==null){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(o.all)continue;break}c=e.values[l],lt(c)&&(i||t===0||Rn(t)===Rn(c))&&(t+=c)}return t}}function rR(e){const t=Object.keys(e),n=new Array(t.length);let o,s,i;for(o=0,s=t.length;o<s;++o)i=t[o],n[o]={x:i,y:e[i]};return n}function vf(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function aR(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function lR(e){const{min:t,max:n,minDefined:o,maxDefined:s}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function cR(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function bf(e,t,n,o){for(const s of t.getMatchingVisibleMetas(o).reverse()){const i=e[s.index];if(n&&i>0||!n&&i<0)return s.index}return null}function yf(e,t){const{chart:n,_cachedMeta:o}=e,s=n._stacks||(n._stacks={}),{iScale:i,vScale:r,index:a}=o,l=i.axis,c=r.axis,u=aR(i,r,o),d=t.length;let f;for(let p=0;p<d;++p){const g=t[p],{[l]:h,[c]:v}=g,m=g._stacks||(g._stacks={});f=m[c]=cR(s,u,h),f[a]=v,f._top=bf(f,r,!0,o.type),f._bottom=bf(f,r,!1,o.type);const y=f._visualValues||(f._visualValues={});y[a]=v}}function Ya(e,t){const n=e.scales;return Object.keys(n).filter(o=>n[o].axis===t).shift()}function uR(e,t){return Fo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function dR(e,t,n){return Fo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ei(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(!!o){t=t||e._parsed;for(const s of t){const i=s._stacks;if(!i||i[o]===void 0||i[o][n]===void 0)return;delete i[o][n],i[o]._visualValues!==void 0&&i[o]._visualValues[n]!==void 0&&delete i[o]._visualValues[n]}}}const Ga=e=>e==="reset"||e==="none",_f=(e,t)=>t?e:Object.assign({},e),fR=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Rm(n,!0),values:null};class _n{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=vf(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ei(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(d,f,p,g)=>d==="x"?f:d==="r"?g:p,i=n.xAxisID=Ae(o.xAxisID,Ya(t,"x")),r=n.yAxisID=Ae(o.yAxisID,Ya(t,"y")),a=n.rAxisID=Ae(o.rAxisID,Ya(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,i,r,a),u=n.vAxisID=s(l,r,i,a);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ef(this._data,this),t._stacked&&ei(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),o=this._data;if(Fe(n))this._data=rR(n);else if(o!==n){if(o){ef(o,this);const s=this._cachedMeta;ei(s),s._parsed=[]}n&&Object.isExtensible(n)&&QA(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const i=n._stacked;n._stacked=vf(n.vScale,n),n.stack!==o.stack&&(s=!0,ei(n),n.stack=o.stack),this._resyncElements(t),(s||i!==n._stacked)&&yf(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),o=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:o,_data:s}=this,{iScale:i,_stacked:r}=o,a=i.axis;let l=t===0&&n===s.length?!0:o._sorted,c=t>0&&o._parsed[t-1],u,d,f;if(this._parsing===!1)o._parsed=s,o._sorted=!0,f=s;else{tt(s[t])?f=this.parseArrayData(o,s,t,n):Fe(s[t])?f=this.parseObjectData(o,s,t,n):f=this.parsePrimitiveData(o,s,t,n);const p=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)o._parsed[u+t]=d=f[u],l&&(p()&&(l=!1),c=d);o._sorted=l}r&&yf(this,f)}parsePrimitiveData(t,n,o,s){const{iScale:i,vScale:r}=t,a=i.axis,l=r.axis,c=i.getLabels(),u=i===r,d=new Array(s);let f,p,g;for(f=0,p=s;f<p;++f)g=f+o,d[f]={[a]:u||i.parse(c[g],g),[l]:r.parse(n[g],g)};return d}parseArrayData(t,n,o,s){const{xScale:i,yScale:r}=t,a=new Array(s);let l,c,u,d;for(l=0,c=s;l<c;++l)u=l+o,d=n[u],a[l]={x:i.parse(d[0],u),y:r.parse(d[1],u)};return a}parseObjectData(t,n,o,s){const{xScale:i,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let u,d,f,p;for(u=0,d=s;u<d;++u)f=u+o,p=n[f],c[u]={x:i.parse(To(p,a),f),y:r.parse(To(p,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,o){const s=this.chart,i=this._cachedMeta,r=n[t.axis],a={keys:Rm(s,!0),values:n._stacks[t.axis]._visualValues};return mf(a,r,i.index,{mode:o})}updateRangeFromParsed(t,n,o,s){const i=o[n.axis];let r=i===null?NaN:i;const a=s&&o._stacks[n.axis];s&&a&&(s.values=a,r=mf(s,i,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const o=this._cachedMeta,s=o._parsed,i=o._sorted&&t===o.iScale,r=s.length,a=this._getOtherScale(t),l=fR(n,o,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=lR(a);let f,p;function g(){p=s[f];const h=p[a.axis];return!lt(p[t.axis])||u>h||d<h}for(f=0;f<r&&!(!g()&&(this.updateRangeFromParsed(c,t,p,l),i));++f);if(i){for(f=r-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,o=[];let s,i,r;for(s=0,i=n.length;s<i;++s)r=n[s][t.axis],lt(r)&&o.push(r);return o}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,o=n.iScale,s=n.vScale,i=this.getParsed(t);return{label:o?""+o.getLabelForValue(i[o.axis]):"",value:s?""+s.getLabelForValue(i[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=iR(Ae(this.options.clip,sR(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,o=this._cachedMeta,s=o.data||[],i=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let u;for(o.dataset&&o.dataset.draw(t,i,a,l),u=a;u<a+l;++u){const d=s[u];d.hidden||(d.active&&c?r.push(d):d.draw(t,i))}for(u=0;u<r.length;++u)r[u].draw(t,i)}getStyle(t,n){const o=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(t||0,o)}getContext(t,n,o){const s=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];i=r.$context||(r.$context=dR(this.getContext(),t,r)),i.parsed=this.getParsed(t),i.raw=s.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=uR(this.chart.getContext(),this.index)),i.dataset=s,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=o,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",o){const s=n==="active",i=this._cachedDataOpts,r=t+"-"+n,a=i[r],l=this.enableOptionSharing&&Ni(o);if(a)return _f(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=s?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),p=Object.keys(ct.elements[t]),g=()=>this.getContext(o,s,n),h=c.resolveNamedOptions(f,p,g,d);return h.$shared&&(h.$shared=l,i[r]=Object.freeze(_f(h,l))),h}_resolveAnimations(t,n,o){const s=this.chart,i=this._cachedDataOpts,r=`animation-${n}`,a=i[r];if(a)return a;let l;if(s.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,o,n))}const c=new Am(s,l&&l.animations);return l&&l._cacheable&&(i[r]=Object.freeze(c)),c}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Ga(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const o=this.resolveDataElementOptions(t,n),s=this._sharedOptions,i=this.getSharedOptions(o),r=this.includeOptions(n,i)||i!==s;return this.updateSharedOptions(i,n,o),{sharedOptions:i,includeOptions:r}}updateElement(t,n,o,s){Ga(s)?Object.assign(t,o):this._resolveAnimations(n,s).update(t,o)}updateSharedOptions(t,n,o){t&&!Ga(n)&&this._resolveAnimations(void 0,n).update(t,o)}_setStyle(t,n,o,s){t.active=s;const i=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(t,{options:!s&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,o){this._setStyle(t,o,"active",!1)}setHoverStyle(t,n,o){this._setStyle(t,o,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,o=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=o.length,i=n.length,r=Math.min(i,s);r&&this.parse(0,r),i>s?this._insertElements(s,i-s,t):i<s&&this._removeElements(i,s-i)}_insertElements(t,n,o=!0){const s=this._cachedMeta,i=s.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(i),a=t;a<r;++a)i[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),o&&this.updateElements(i,t,n,"reset")}updateElements(t,n,o,s){}_removeElements(t,n){const o=this._cachedMeta;if(this._parsing){const s=o._parsed.splice(t,n);o._stacked&&ei(o,s)}o.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,o,s]=t;this[n](o,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",t,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ae(_n,"defaults",{}),ae(_n,"datasetElementType",null),ae(_n,"dataElementType",null);function hR(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let s=0,i=n.length;s<i;s++)o=o.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=dm(o.sort((s,i)=>s-i))}return e._cache.$bar}function pR(e){const t=e.iScale,n=hR(t,e.type);let o=t._length,s,i,r,a;const l=()=>{r===32767||r===-32768||(Ni(a)&&(o=Math.min(o,Math.abs(r-a)||o)),a=r)};for(s=0,i=n.length;s<i;++s)r=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,i=t.ticks.length;s<i;++s)r=t.getPixelForTick(s),l();return o}function gR(e,t,n,o){const s=n.barThickness;let i,r;return ze(s)?(i=t.min*n.categoryPercentage,r=n.barPercentage):(i=s*o,r=1),{chunk:i/o,ratio:r,start:t.pixels[e]-i/2}}function mR(e,t,n,o){const s=t.pixels,i=s[e];let r=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;r===null&&(r=i-(a===null?t.end-t.start:a-i)),a===null&&(a=i+i-r);const c=i-(i-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/o,ratio:n.barPercentage,start:c}}function vR(e,t,n,o){const s=n.parse(e[0],o),i=n.parse(e[1],o),r=Math.min(s,i),a=Math.max(s,i);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:i,min:r,max:a}}function Lm(e,t,n,o){return tt(e)?vR(e,t,n,o):t[n.axis]=n.parse(e,o),t}function wf(e,t,n,o){const s=e.iScale,i=e.vScale,r=s.getLabels(),a=s===i,l=[];let c,u,d,f;for(c=n,u=n+o;c<u;++c)f=t[c],d={},d[s.axis]=a||s.parse(r[c],c),l.push(Lm(f,d,i,c));return l}function Xa(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function bR(e,t,n){return e!==0?Rn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function yR(e){let t,n,o,s,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(s="end",i="start"):(s="start",i="end"),{start:n,end:o,reverse:t,top:s,bottom:i}}function _R(e,t,n,o){let s=t.borderSkipped;const i={};if(!s){e.borderSkipped=i;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:u}=yR(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?s=c:(n._bottom||0)===o?s=u:(i[xf(u,r,a,l)]=!0,s=c)),i[xf(s,r,a,l)]=!0,e.borderSkipped=i}function xf(e,t,n,o){return o?(e=wR(e,t,n),e=Sf(e,n,t)):e=Sf(e,t,n),e}function wR(e,t,n){return e===t?n:e===n?t:e}function Sf(e,t,n){return e==="start"?t:e==="end"?n:e}function xR(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Vr extends _n{parsePrimitiveData(t,n,o,s){return wf(t,n,o,s)}parseArrayData(t,n,o,s){return wf(t,n,o,s)}parseObjectData(t,n,o,s){const{iScale:i,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=i.axis==="x"?a:l,u=r.axis==="x"?a:l,d=[];let f,p,g,h;for(f=o,p=o+s;f<p;++f)h=n[f],g={},g[i.axis]=i.parse(To(h,c),f),d.push(Lm(To(h,u),g,r,f));return d}updateRangeFromParsed(t,n,o,s){super.updateRangeFromParsed(t,n,o,s);const i=o._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:o,vScale:s}=n,i=this.getParsed(t),r=i._custom,a=Xa(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(i[s.axis]);return{label:""+o.getLabelForValue(i[o.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,o,s){const i=s==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,s);for(let p=n;p<n+o;p++){const g=this.getParsed(p),h=i||ze(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),v=this._calculateBarIndexPixels(p,u),m=(g._stacks||{})[a.axis],y={horizontal:c,base:h.base,enableBorderRadius:!m||Xa(g._custom)||r===m._top||r===m._bottom,x:c?h.head:v.center,y:c?v.center:h.head,height:c?v.size:Math.abs(h.size),width:c?Math.abs(h.size):v.size};f&&(y.options=d||this.resolveDataElementOptions(p,t[p].active?"active":s));const w=y.options||t[p].options;_R(y,w,m,r),xR(y,w,u.ratio),this.updateElement(t[p],p,y,s)}}_getStacks(t,n){const{iScale:o}=this._cachedMeta,s=o.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),i=o.options.stacked,r=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(ze(u)||isNaN(u))return!0};for(const l of s)if(!(n!==void 0&&a(l))&&((i===!1||r.indexOf(l.stack)===-1||i===void 0&&l.stack===void 0)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,o){const s=this._getStacks(t,o),i=n!==void 0?s.indexOf(n):-1;return i===-1?s.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,o=n.iScale,s=[];let i,r;for(i=0,r=n.data.length;i<r;++i)s.push(o.getPixelForValue(this.getParsed(i)[o.axis],i));const a=t.barThickness;return{min:a||pR(n),pixels:s,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:o,index:s},options:{base:i,minBarLength:r}}=this,a=i||0,l=this.getParsed(t),c=l._custom,u=Xa(c);let d=l[n.axis],f=0,p=o?this.applyStack(n,l,o):d,g,h;p!==d&&(f=p-d,p=d),u&&(d=c.barStart,p=c.barEnd-c.barStart,d!==0&&Rn(d)!==Rn(c.barEnd)&&(f=0),f+=d);const v=!ze(i)&&!u?i:f;let m=n.getPixelForValue(v);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(f+p):g=m,h=g-m,Math.abs(h)<r){h=bR(h,n,a)*r,d===a&&(m-=h/2);const y=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),_=Math.min(y,w),x=Math.max(y,w);m=Math.max(Math.min(m,x),_),g=m+h,o&&!u&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(m))}if(m===n.getPixelForValue(a)){const y=Rn(h)*n.getLineWidthForValue(a)/2;m+=y,h-=y}return{size:h,base:m,head:g,center:g+h/2}}_calculateBarIndexPixels(t,n){const o=n.scale,s=this.options,i=s.skipNull,r=Ae(s.maxBarThickness,1/0);let a,l;if(n.grouped){const c=i?this._getStackCount(t):n.stackCount,u=s.barThickness==="flex"?mR(t,n,s,c):gR(t,n,s,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(r,u.chunk*u.ratio)}else a=o.getPixelForValue(this.getParsed(t)[o.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,o=t.data,s=o.length;let i=0;for(;i<s;++i)this.getParsed(i)[n.axis]!==null&&o[i].draw(this._ctx)}}ae(Vr,"id","bar"),ae(Vr,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ae(Vr,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Hr extends _n{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,o,s){const i=super.parsePrimitiveData(t,n,o,s);for(let r=0;r<i.length;r++)i[r]._custom=this.resolveDataElementOptions(r+o).radius;return i}parseArrayData(t,n,o,s){const i=super.parseArrayData(t,n,o,s);for(let r=0;r<i.length;r++){const a=n[o+r];i[r]._custom=Ae(a[2],this.resolveDataElementOptions(r+o).radius)}return i}parseObjectData(t,n,o,s){const i=super.parseObjectData(t,n,o,s);for(let r=0;r<i.length;r++){const a=n[o+r];i[r]._custom=Ae(a&&a.r&&+a.r,this.resolveDataElementOptions(r+o).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let o=t.length-1;o>=0;--o)n=Math.max(n,t[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:i}=n,r=this.getParsed(t),a=s.getLabelForValue(r.x),l=i.getLabelForValue(r.y),c=r._custom;return{label:o[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,o,s){const i=s==="reset",{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,s),u=r.axis,d=a.axis;for(let f=n;f<n+o;f++){const p=t[f],g=!i&&this.getParsed(f),h={},v=h[u]=i?r.getPixelForDecimal(.5):r.getPixelForValue(g[u]),m=h[d]=i?a.getBasePixel():a.getPixelForValue(g[d]);h.skip=isNaN(v)||isNaN(m),c&&(h.options=l||this.resolveDataElementOptions(f,p.active?"active":s),i&&(h.options.radius=0)),this.updateElement(p,f,h,s)}}resolveDataElementOptions(t,n){const o=this.getParsed(t);let s=super.resolveDataElementOptions(t,n);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const i=s.radius;return n!=="active"&&(s.radius=0),s.radius+=Ae(o&&o._custom,i),s}}ae(Hr,"id","bubble"),ae(Hr,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ae(Hr,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function SR(e,t,n){let o=1,s=1,i=0,r=0;if(t<nt){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),f=Math.sin(l),p=(w,_,x)=>zi(w,a,l,!0)?1:Math.max(_,_*n,x,x*n),g=(w,_,x)=>zi(w,a,l,!0)?-1:Math.min(_,_*n,x,x*n),h=p(0,c,d),v=p(ut,u,f),m=g(it,c,d),y=g(it+ut,u,f);o=(h-m)/2,s=(v-y)/2,i=-(h+m)/2,r=-(v+y)/2}return{ratioX:o,ratioY:s,offsetX:i,offsetY:r}}class Jo extends _n{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const o=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=o;else{let i=l=>+o[l];if(Fe(o[t])){const{key:l="value"}=this._parsing;i=c=>+To(o[c],l)}let r,a;for(r=t,a=t+n;r<a;++r)s._parsed[r]=i(r)}}_getRotation(){return mn(this.options.rotation-90)}_getCircumference(){return mn(this.options.circumference)}_getRotationExtents(){let t=nt,n=-nt;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const s=this.chart.getDatasetMeta(o).controller,i=s._getRotation(),r=s._getCircumference();t=Math.min(t,i),n=Math.max(n,i+r)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:o}=n,s=this._cachedMeta,i=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(o.width,o.height)-r)/2,0),l=Math.min(DA(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:g,offsetY:h}=SR(d,u,l),v=(o.width-r)/f,m=(o.height-r)/p,y=Math.max(Math.min(v,m)/2,0),w=rm(this.options.radius,y),_=Math.max(w*l,0),x=(w-_)/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=h*w,s.total=this.calculateTotal(),this.outerRadius=w-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*c,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const o=this.options,s=this._cachedMeta,i=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*i/nt)}updateElements(t,n,o,s){const i=s==="reset",r=this.chart,a=r.chartArea,c=r.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,f=i&&c.animateScale,p=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:h,includeOptions:v}=this._getSharedOptions(n,s);let m=this._getRotation(),y;for(y=0;y<n;++y)m+=this._circumference(y,i);for(y=n;y<n+o;++y){const w=this._circumference(y,i),_=t[y],x={x:u+this.offsetX,y:d+this.offsetY,startAngle:m,endAngle:m+w,circumference:w,outerRadius:g,innerRadius:p};v&&(x.options=h||this.resolveDataElementOptions(y,_.active?"active":s)),m+=w,this.updateElement(_,y,x,s)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let o=0,s;for(s=0;s<n.length;s++){const i=t._parsed[s];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(o+=Math.abs(i))}return o}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?nt*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart,s=o.data.labels||[],i=or(n._parsed[t],o.options.locale);return{label:s[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const o=this.chart;let s,i,r,a,l;if(!t){for(s=0,i=o.data.datasets.length;s<i;++s)if(o.isDatasetVisible(s)){r=o.getDatasetMeta(s),t=r.data,a=r.controller;break}}if(!t)return 0;for(s=0,i=t.length;s<i;++s)l=a.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let o=0,s=t.length;o<s;++o){const i=this.resolveDataElementOptions(o);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let o=0;o<t;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(t){return Math.max(Ae(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ae(Jo,"id","doughnut"),ae(Jo,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ae(Jo,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ae(Jo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o,color:s}}=t.legend.options;return n.labels.map((i,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:o,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class Wr extends _n{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:i}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=pm(n,s,r);this._drawStart=a,this._drawCount=l,gm(n)&&(a=0,l=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(o,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,o,s){const i=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,s),f=r.axis,p=a.axis,{spanGaps:g,segment:h}=this.options,v=Is(g)?g:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||i||s==="none",y=n+o,w=t.length;let _=n>0&&this.getParsed(n-1);for(let x=0;x<w;++x){const S=t[x],C=m?S:{};if(x<n||x>=y){C.skip=!0;continue}const k=this.getParsed(x),T=ze(k[p]),B=C[f]=r.getPixelForValue(k[f],x),$=C[p]=i||T?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[p],x);C.skip=isNaN(B)||isNaN($)||T,C.stop=x>0&&Math.abs(k[f]-_[f])>v,h&&(C.parsed=k,C.raw=c.data[x]),d&&(C.options=u||this.resolveDataElementOptions(x,S.active?"active":s)),m||this.updateElement(S,x,C,s),_=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,o=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return o;const i=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,i,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ae(Wr,"id","line"),ae(Wr,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(Wr,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Ci extends _n{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart,s=o.data.labels||[],i=or(n._parsed[t].r,o.options.locale);return{label:s[t]||"",value:i}}parseObjectData(t,n,o,s){return Sm.bind(this)(t,n,o,s)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((o,s)=>{const i=this.getParsed(s).r;!isNaN(i)&&this.chart.getDataVisibility(s)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,o=t.options,s=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(s/2,0),r=Math.max(o.cutoutPercentage?i/100*o.cutoutPercentage:1,0),a=(i-r)/t.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,o,s){const i=s==="reset",r=this.chart,l=r.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*it;let p=f,g;const h=360/this.countVisibleElements();for(g=0;g<n;++g)p+=this._computeAngle(g,s,h);for(g=n;g<n+o;g++){const v=t[g];let m=p,y=p+this._computeAngle(g,s,h),w=r.getDataVisibility(g)?c.getDistanceFromCenterForValue(this.getParsed(g).r):0;p=y,i&&(l.animateScale&&(w=0),l.animateRotate&&(m=y=f));const _={x:u,y:d,innerRadius:0,outerRadius:w,startAngle:m,endAngle:y,options:this.resolveDataElementOptions(g,v.active?"active":s)};this.updateElement(v,g,_,s)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((o,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(t,n,o){return this.chart.getDataVisibility(t)?mn(this.resolveDataElementOptions(t,n).angle||o):0}}ae(Ci,"id","polarArea"),ae(Ci,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ae(Ci,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o,color:s}}=t.legend.options;return n.labels.map((i,r)=>{const l=t.getDatasetMeta(0).controller.getStyle(r);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:o,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Wl extends Jo{}ae(Wl,"id","pie"),ae(Wl,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class jr extends _n{getLabelAndValue(t){const n=this._cachedMeta.vScale,o=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(t,n,o,s){return Sm.bind(this)(t,n,o,s)}update(t){const n=this._cachedMeta,o=n.dataset,s=n.data||[],i=n.iScale.getLabels();if(o.points=s,t!=="resize"){const r=this.resolveDatasetElementOptions(t);this.options.showLine||(r.borderWidth=0);const a={_loop:!0,_fullLoop:i.length===s.length,options:r};this.updateElement(o,void 0,a,t)}this.updateElements(s,0,s.length,t)}updateElements(t,n,o,s){const i=this._cachedMeta.rScale,r=s==="reset";for(let a=n;a<n+o;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":s),u=i.getPointPositionForValue(a,this.getParsed(a).r),d=r?i.xCenter:u.x,f=r?i.yCenter:u.y,p={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,a,p,s)}}}ae(jr,"id","radar"),ae(jr,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ae(jr,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Ur extends _n{getLabelAndValue(t){const n=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:i}=n,r=this.getParsed(t),a=s.getLabelForValue(r.x),l=i.getLabelForValue(r.y);return{label:o[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:i,count:r}=pm(n,o,s);if(this._drawStart=i,this._drawCount=r,gm(n)&&(i=0,r=o.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=o;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!s,options:c},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(o,i,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,o,s){const i=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,s),d=this.getSharedOptions(u),f=this.includeOptions(s,d),p=r.axis,g=a.axis,{spanGaps:h,segment:v}=this.options,m=Is(h)?h:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||i||s==="none";let w=n>0&&this.getParsed(n-1);for(let _=n;_<n+o;++_){const x=t[_],S=this.getParsed(_),C=y?x:{},k=ze(S[g]),T=C[p]=r.getPixelForValue(S[p],_),B=C[g]=i||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,S,l):S[g],_);C.skip=isNaN(T)||isNaN(B)||k,C.stop=_>0&&Math.abs(S[p]-w[p])>m,v&&(C.parsed=S,C.raw=c.data[_]),f&&(C.options=d||this.resolveDataElementOptions(_,x.active?"active":s)),y||this.updateElement(x,_,C,s),w=S}this.updateSharedOptions(d,s,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const o=t.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const i=n[0].size(this.resolveDataElementOptions(0)),r=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,i,r)/2}}ae(Ur,"id","scatter"),ae(Ur,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ae(Ur,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var CR=Object.freeze({__proto__:null,BarController:Vr,BubbleController:Hr,DoughnutController:Jo,LineController:Wr,PieController:Wl,PolarAreaController:Ci,RadarController:jr,ScatterController:Ur});function Ho(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class cu{constructor(t){ae(this,"options");this.options=t||{}}static override(t){Object.assign(cu.prototype,t)}init(){}formats(){return Ho()}parse(){return Ho()}format(){return Ho()}add(){return Ho()}diff(){return Ho()}startOf(){return Ho()}endOf(){return Ho()}}var kR={_date:cu};function ER(e,t,n,o){const{controller:s,data:i,_sorted:r}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&i.length){const l=a._reversePixels?GA:eo;if(o){if(s._sharedOptions){const c=i[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(i,t,n-u),f=l(i,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(i,t,n)}return{lo:0,hi:i.length-1}}function sr(e,t,n,o,s){const i=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=i.length;a<l;++a){const{index:c,data:u}=i[a],{lo:d,hi:f}=ER(i[a],t,r,s);for(let p=d;p<=f;++p){const g=u[p];g.skip||o(g,c,p)}}}function MR(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(o,s){const i=t?Math.abs(o.x-s.x):0,r=n?Math.abs(o.y-s.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(r,2))}}function Qa(e,t,n,o,s){const i=[];return!s&&!e.isPointInArea(t)||sr(e,n,t,function(a,l,c){!s&&!to(a,e.chartArea,0)||a.inRange(t.x,t.y,o)&&i.push({element:a,datasetIndex:l,index:c})},!0),i}function PR(e,t,n,o){let s=[];function i(r,a,l){const{startAngle:c,endAngle:u}=r.getProps(["startAngle","endAngle"],o),{angle:d}=cm(r,{x:t.x,y:t.y});zi(d,c,u)&&s.push({element:r,datasetIndex:a,index:l})}return sr(e,n,t,i),s}function TR(e,t,n,o,s,i){let r=[];const a=MR(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const p=u.inRange(t.x,t.y,s);if(o&&!p)return;const g=u.getCenterPoint(s);if(!(!!i||e.isPointInArea(g))&&!p)return;const v=a(t,g);v<l?(r=[{element:u,datasetIndex:d,index:f}],l=v):v===l&&r.push({element:u,datasetIndex:d,index:f})}return sr(e,n,t,c),r}function Ja(e,t,n,o,s,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!o?PR(e,t,n,s):TR(e,t,n,o,s,i)}function Cf(e,t,n,o,s){const i=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return sr(e,n,t,(l,c,u)=>{l[r](t[n],s)&&(i.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,s))}),o&&!a?[]:i}var OR={evaluateInteractionItems:sr,modes:{index(e,t,n,o){const s=Uo(t,e),i=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Qa(e,s,i,o,r):Ja(e,s,i,!1,o,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,o){const s=Uo(t,e),i=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Qa(e,s,i,o,r):Ja(e,s,i,!1,o,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(e,t,n,o){const s=Uo(t,e),i=n.axis||"xy",r=n.includeInvisible||!1;return Qa(e,s,i,o,r)},nearest(e,t,n,o){const s=Uo(t,e),i=n.axis||"xy",r=n.includeInvisible||!1;return Ja(e,s,i,n.intersect,o,r)},x(e,t,n,o){const s=Uo(t,e);return Cf(e,s,"x",n.intersect,o)},y(e,t,n,o){const s=Uo(t,e);return Cf(e,s,"y",n.intersect,o)}}};const $m=["left","top","right","bottom"];function ti(e,t){return e.filter(n=>n.pos===t)}function kf(e,t){return e.filter(n=>$m.indexOf(n.pos)===-1&&n.box.axis===t)}function ni(e,t){return e.sort((n,o)=>{const s=t?o:n,i=t?n:o;return s.weight===i.weight?s.index-i.index:s.weight-i.weight})}function AR(e){const t=[];let n,o,s,i,r,a;for(n=0,o=(e||[]).length;n<o;++n)s=e[n],{position:i,options:{stack:r,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:i,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&i+r,stackWeight:a});return t}function RR(e){const t={};for(const n of e){const{stack:o,pos:s,stackWeight:i}=n;if(!o||!$m.includes(s))continue;const r=t[o]||(t[o]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=i}return t}function LR(e,t){const n=RR(e),{vBoxMaxWidth:o,hBoxMaxHeight:s}=t;let i,r,a;for(i=0,r=e.length;i<r;++i){a=e[i];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*o:l&&t.availableWidth,a.height=s):(a.width=o,a.height=u?u*s:l&&t.availableHeight)}return n}function $R(e){const t=AR(e),n=ni(t.filter(c=>c.box.fullSize),!0),o=ni(ti(t,"left"),!0),s=ni(ti(t,"right")),i=ni(ti(t,"top"),!0),r=ni(ti(t,"bottom")),a=kf(t,"x"),l=kf(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:ti(t,"chartArea"),vertical:o.concat(s).concat(l),horizontal:i.concat(r).concat(a)}}function Ef(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function Im(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function IR(e,t,n,o){const{pos:s,box:i}=n,r=e.maxPadding;if(!Fe(s)){n.size&&(e[s]-=n.size);const d=o[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?i.height:i.width),n.size=d.size/d.count,e[s]+=n.size}i.getPadding&&Im(r,i.getPadding());const a=Math.max(0,t.outerWidth-Ef(r,e,"left","right")),l=Math.max(0,t.outerHeight-Ef(r,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function FR(e){const t=e.maxPadding;function n(o){const s=Math.max(t[o]-e[o],0);return e[o]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function DR(e,t){const n=t.maxPadding;function o(s){const i={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{i[r]=Math.max(t[r],n[r])}),i}return o(e?["left","right"]:["top","bottom"])}function ci(e,t,n,o){const s=[];let i,r,a,l,c,u;for(i=0,r=e.length,c=0;i<r;++i){a=e[i],l=a.box,l.update(a.width||t.w,a.height||t.h,DR(a.horizontal,t));const{same:d,other:f}=IR(t,n,a,o);c|=d&&s.length,u=u||f,l.fullSize||s.push(a)}return c&&ci(s,t,n,o)||u}function xr(e,t,n,o,s){e.top=n,e.left=t,e.right=t+o,e.bottom=n+s,e.width=o,e.height=s}function Mf(e,t,n,o){const s=n.padding;let{x:i,y:r}=t;for(const a of e){const l=a.box,c=o[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*u,f=c.size||l.height;Ni(c.start)&&(r=c.start),l.fullSize?xr(l,s.left,r,n.outerWidth-s.right-s.left,f):xr(l,t.left+c.placed,r,d,f),c.start=r,c.placed+=d,r=l.bottom}else{const d=t.h*u,f=c.size||l.width;Ni(c.start)&&(i=c.start),l.fullSize?xr(l,i,s.top,f,n.outerHeight-s.bottom-s.top):xr(l,i,t.top+c.placed,f,d),c.start=i,c.placed+=d,i=l.right}}t.x=i,t.y=r}var kt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const s=Mt(e.options.layout.padding),i=Math.max(t-s.width,0),r=Math.max(n-s.height,0),a=$R(e.boxes),l=a.vertical,c=a.horizontal;Ue(e.boxes,h=>{typeof h.beforeLayout=="function"&&h.beforeLayout()});const u=l.reduce((h,v)=>v.box.options&&v.box.options.display===!1?h:h+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:i,availableHeight:r,vBoxMaxWidth:i/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},s);Im(f,Mt(o));const p=Object.assign({maxPadding:f,w:i,h:r,x:s.left,y:s.top},s),g=LR(l.concat(c),d);ci(a.fullSize,p,d,g),ci(l,p,d,g),ci(c,p,d,g)&&ci(l,p,d,g),FR(p),Mf(a.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,Mf(a.rightAndBottom,p,d,g),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Ue(a.chartArea,h=>{const v=h.box;Object.assign(v,e.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Fm{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,o){}removeEventListener(t,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,o,s){return n=Math.max(0,n||t.width),o=o||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):o)}}isAttached(t){return!0}updateConfig(t){}}class BR extends Fm{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Kr="$chartjs",NR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Pf=e=>e===null||e==="";function zR(e,t){const n=e.style,o=e.getAttribute("height"),s=e.getAttribute("width");if(e[Kr]={initial:{height:o,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Pf(s)){const i=uf(e,"width");i!==void 0&&(e.width=i)}if(Pf(o))if(e.style.height==="")e.height=e.width/(t||2);else{const i=uf(e,"height");i!==void 0&&(e.height=i)}return e}const Dm=H2?{passive:!0}:!1;function VR(e,t,n){e.addEventListener(t,n,Dm)}function HR(e,t,n){e.canvas.removeEventListener(t,n,Dm)}function WR(e,t){const n=NR[e.type]||e.type,{x:o,y:s}=Uo(e,t);return{type:n,chart:t,native:e,x:o!==void 0?o:null,y:s!==void 0?s:null}}function da(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function jR(e,t,n){const o=e.canvas,s=new MutationObserver(i=>{let r=!1;for(const a of i)r=r||da(a.addedNodes,o),r=r&&!da(a.removedNodes,o);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function UR(e,t,n){const o=e.canvas,s=new MutationObserver(i=>{let r=!1;for(const a of i)r=r||da(a.removedNodes,o),r=r&&!da(a.addedNodes,o);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const Hi=new Map;let Tf=0;function Bm(){const e=window.devicePixelRatio;e!==Tf&&(Tf=e,Hi.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function KR(e,t){Hi.size||window.addEventListener("resize",Bm),Hi.set(e,t)}function qR(e){Hi.delete(e),Hi.size||window.removeEventListener("resize",Bm)}function YR(e,t,n){const o=e.canvas,s=o&&lu(o);if(!s)return;const i=hm((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return r.observe(s),KR(e,i),r}function Za(e,t,n){n&&n.disconnect(),t==="resize"&&qR(e)}function GR(e,t,n){const o=e.canvas,s=hm(i=>{e.ctx!==null&&n(WR(i,e))},e);return VR(o,t,s),s}class XR extends Fm{acquireContext(t,n){const o=t&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(zR(t,n),o):null}releaseContext(t){const n=t.canvas;if(!n[Kr])return!1;const o=n[Kr].initial;["height","width"].forEach(i=>{const r=o[i];ze(r)?n.removeAttribute(i):n.setAttribute(i,r)});const s=o.style||{};return Object.keys(s).forEach(i=>{n.style[i]=s[i]}),n.width=n.width,delete n[Kr],!0}addEventListener(t,n,o){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),r={attach:jR,detach:UR,resize:YR}[n]||GR;s[n]=r(t,n,o)}removeEventListener(t,n){const o=t.$proxies||(t.$proxies={}),s=o[n];if(!s)return;({attach:Za,detach:Za,resize:Za}[n]||HR)(t,n,s),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,o,s){return V2(t,n,o,s)}isAttached(t){const n=lu(t);return!!(n&&n.isConnected)}}function QR(e){return!km()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?BR:XR}class xn{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(t){const{x:n,y:o}=this.getProps(["x","y"],t);return{x:n,y:o}}hasValue(){return Is(this.x)&&Is(this.y)}getProps(t,n){const o=this.$animations;if(!n||!o)return this;const s={};return t.forEach(i=>{s[i]=o[i]&&o[i].active()?o[i]._to:this[i]}),s}}ae(xn,"defaults",{}),ae(xn,"defaultRoutes");function JR(e,t){const n=e.options.ticks,o=ZR(e),s=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?tL(t):[],r=i.length,a=i[0],l=i[r-1],c=[];if(r>s)return nL(t,c,i,r/s),c;const u=eL(i,t,s);if(r>0){let d,f;const p=r>1?Math.round((l-a)/(r-1)):null;for(Sr(t,c,u,ze(p)?0:a-p,a),d=0,f=r-1;d<f;d++)Sr(t,c,u,i[d],i[d+1]);return Sr(t,c,u,l,ze(p)?t.length:l+p),c}return Sr(t,c,u),c}function ZR(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(o,s))}function eL(e,t,n){const o=oL(e),s=t.length/n;if(!o)return Math.max(s,1);const i=UA(o);for(let r=0,a=i.length-1;r<a;r++){const l=i[r];if(l>s)return l}return Math.max(s,1)}function tL(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}function nL(e,t,n,o){let s=0,i=n[0],r;for(o=Math.ceil(o),r=0;r<e.length;r++)r===i&&(t.push(e[r]),s++,i=n[s*o])}function Sr(e,t,n,o,s){const i=Ae(o,0),r=Math.min(Ae(s,e.length),e.length);let a=0,l,c,u;for(n=Math.ceil(n),s&&(l=s-o,n=l/Math.floor(l/n)),u=i;u<0;)a++,u=Math.round(i+a*n);for(c=Math.max(i,0);c<r;c++)c===u&&(t.push(e[c]),a++,u=Math.round(i+a*n))}function oL(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}const sL=e=>e==="left"?"right":e==="right"?"left":e,Of=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Af=(e,t)=>Math.min(t||e,e);function Rf(e,t){const n=[],o=e.length/t,s=e.length;let i=0;for(;i<s;i+=o)n.push(e[Math.floor(i)]);return n}function iL(e,t,n){const o=e.ticks.length,s=Math.min(t,o-1),i=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(o===1?c=Math.max(l-i,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<i-a||l>r+a)))return l}function rL(e,t){Ue(e,n=>{const o=n.gc,s=o.length/2;let i;if(s>t){for(i=0;i<s;++i)delete n.data[o[i]];o.splice(0,s)}})}function oi(e){return e.drawTicks?e.tickLength:0}function Lf(e,t){if(!e.display)return 0;const n=ht(e.font,t),o=Mt(e.padding);return(tt(e.text)?e.text.length:1)*n.lineHeight+o.height}function aL(e,t){return Fo(e,{scale:t,type:"scale"})}function lL(e,t,n){return Fo(e,{tick:n,index:t,type:"tick"})}function cL(e,t,n){let o=nu(e);return(n&&t!=="right"||!n&&t==="right")&&(o=sL(o)),o}function uL(e,t,n,o){const{top:s,left:i,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,p,g;const h=r-s,v=a-i;if(e.isHorizontal()){if(p=Ct(o,i,a),Fe(n)){const m=Object.keys(n)[0],y=n[m];g=u[m].getPixelForValue(y)+h-t}else n==="center"?g=(c.bottom+c.top)/2+h-t:g=Of(e,n,t);f=a-i}else{if(Fe(n)){const m=Object.keys(n)[0],y=n[m];p=u[m].getPixelForValue(y)-v+t}else n==="center"?p=(c.left+c.right)/2-v+t:p=Of(e,n,t);g=Ct(o,r,s),d=n==="left"?-ut:ut}return{titleX:p,titleY:g,maxWidth:f,rotation:d}}class hs extends xn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:o,_suggestedMax:s}=this;return t=Yt(t,Number.POSITIVE_INFINITY),n=Yt(n,Number.NEGATIVE_INFINITY),o=Yt(o,Number.POSITIVE_INFINITY),s=Yt(s,Number.NEGATIVE_INFINITY),{min:Yt(t,o),max:Yt(n,s),minDefined:lt(t),maxDefined:lt(n)}}getMinMax(t){let{min:n,max:o,minDefined:s,maxDefined:i}=this.getUserBounds(),r;if(s&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,r.min)),i||(o=Math.max(o,r.max));return n=i&&n>o?o:n,o=s&&n>o?n:o,{min:Yt(n,Yt(o,n)),max:Yt(o,Yt(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Qe(this.options.beforeUpdate,[this])}update(t,n,o){const{beginAtZero:s,grace:i,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=y2(this,i,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Rf(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=JR(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,t=!t),this._startPixel=n,this._endPixel=o,this._reversePixels=t,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Qe(this.options.afterUpdate,[this])}beforeSetDimensions(){Qe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Qe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Qe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Qe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let o,s,i;for(o=0,s=t.length;o<s;o++)i=t[o],i.label=Qe(n.callback,[i.value,o,t],this)}afterTickToLabelConversion(){Qe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Qe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,o=Af(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,i=n.maxRotation;let r=s,a,l,c;if(!this._isVisible()||!n.display||s>=i||o<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=vt(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/o:p/(o-1),d+6>a&&(a=p/(o-(t.offset?.5:1)),l=this.maxHeight-oi(t.grid)-n.padding-Lf(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=eu(Math.min(Math.asin(vt((u.highest.height+6)/a,-1,1)),Math.asin(vt(l/c,-1,1))-Math.asin(vt(f/c,-1,1)))),r=Math.max(s,Math.min(i,r))),this.labelRotation=r}afterCalculateLabelRotation(){Qe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Qe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:o,title:s,grid:i}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=Lf(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=oi(i)+l):(t.height=this.maxHeight,t.width=oi(i)+l),o.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=o.padding*2,g=mn(this.labelRotation),h=Math.cos(g),v=Math.sin(g);if(a){const m=o.mirror?0:v*d.width+h*f.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=o.mirror?0:h*d.width+v*f.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,u,v,h)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,o,s){const{ticks:{align:i,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=s*t.width,p=o*n.height):(f=o*t.height,p=s*n.width):i==="start"?p=n.width:i==="end"?f=t.width:i!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+r)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;i==="start"?(u=0,d=t.height):i==="end"&&(u=n.height,d=0),this.paddingTop=u+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Qe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,o;for(n=0,o=t.length;n<o;n++)ze(t[n].label)&&(t.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=Rf(o,n)),this._labelSizes=t=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,o){const{ctx:s,_longestTextCache:i}=this,r=[],a=[],l=Math.floor(n/Af(n,o));let c=0,u=0,d,f,p,g,h,v,m,y,w,_,x;for(d=0;d<n;d+=l){if(g=t[d].label,h=this._resolveTickFontOptions(d),s.font=v=h.string,m=i[v]=i[v]||{data:{},gc:[]},y=h.lineHeight,w=_=0,!ze(g)&&!tt(g))w=ca(s,m.data,m.gc,w,g),_=y;else if(tt(g))for(f=0,p=g.length;f<p;++f)x=g[f],!ze(x)&&!tt(x)&&(w=ca(s,m.data,m.gc,w,x),_+=y);r.push(w),a.push(_),c=Math.max(w,c),u=Math.max(_,u)}rL(i,n);const S=r.indexOf(c),C=a.indexOf(u),k=T=>({width:r[T]||0,height:a[T]||0});return{first:k(0),last:k(n-1),widest:k(S),highest:k(C),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return YA(this._alignToPixels?Vo(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const o=n[t];return o.$context||(o.$context=lL(this.getContext(),t,o))}return this.$context||(this.$context=aL(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=mn(this.labelRotation),o=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),i=this._getLabelSizes(),r=t.autoSkipPadding||0,a=i?i.widest.width+r:0,l=i?i.highest.height+r:0;return this.isHorizontal()?l*o>a*s?a/o:l/s:l*s<a*o?l/o:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,o=this.chart,s=this.options,{grid:i,position:r,border:a}=s,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=oi(i),p=[],g=a.setContext(this.getContext()),h=g.display?g.width:0,v=h/2,m=function(Q){return Vo(o,Q,h)};let y,w,_,x,S,C,k,T,B,$,D,W;if(r==="top")y=m(this.bottom),C=this.bottom-f,T=y-v,$=m(t.top)+v,W=t.bottom;else if(r==="bottom")y=m(this.top),$=t.top,W=m(t.bottom)-v,C=y+v,T=this.top+f;else if(r==="left")y=m(this.right),S=this.right-f,k=y-v,B=m(t.left)+v,D=t.right;else if(r==="right")y=m(this.left),B=t.left,D=m(t.right)-v,S=y+v,k=this.left+f;else if(n==="x"){if(r==="center")y=m((t.top+t.bottom)/2+.5);else if(Fe(r)){const Q=Object.keys(r)[0],V=r[Q];y=m(this.chart.scales[Q].getPixelForValue(V))}$=t.top,W=t.bottom,C=y+v,T=C+f}else if(n==="y"){if(r==="center")y=m((t.left+t.right)/2);else if(Fe(r)){const Q=Object.keys(r)[0],V=r[Q];y=m(this.chart.scales[Q].getPixelForValue(V))}S=y-v,k=S-f,B=t.left,D=t.right}const ne=Ae(s.ticks.maxTicksLimit,d),j=Math.max(1,Math.ceil(d/ne));for(w=0;w<d;w+=j){const Q=this.getContext(w),V=i.setContext(Q),le=a.setContext(Q),I=V.lineWidth,Z=V.color,de=le.dash||[],J=le.dashOffset,G=V.tickWidth,K=V.tickColor,re=V.tickBorderDash||[],ie=V.tickBorderDashOffset;_=iL(this,w,l),_!==void 0&&(x=Vo(o,_,I),c?S=k=B=D=x:C=T=$=W=x,p.push({tx1:S,ty1:C,tx2:k,ty2:T,x1:B,y1:$,x2:D,y2:W,width:I,color:Z,borderDash:de,borderDashOffset:J,tickWidth:G,tickColor:K,tickBorderDash:re,tickBorderDashOffset:ie}))}return this._ticksLength=d,this._borderValue=y,p}_computeLabelItems(t){const n=this.axis,o=this.options,{position:s,ticks:i}=o,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=i,f=oi(o.grid),p=f+u,g=d?-u:p,h=-mn(this.labelRotation),v=[];let m,y,w,_,x,S,C,k,T,B,$,D,W="middle";if(s==="top")S=this.bottom-g,C=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+g,C=this._getXAxisLabelAlignment();else if(s==="left"){const j=this._getYAxisLabelAlignment(f);C=j.textAlign,x=j.x}else if(s==="right"){const j=this._getYAxisLabelAlignment(f);C=j.textAlign,x=j.x}else if(n==="x"){if(s==="center")S=(t.top+t.bottom)/2+p;else if(Fe(s)){const j=Object.keys(s)[0],Q=s[j];S=this.chart.scales[j].getPixelForValue(Q)+p}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")x=(t.left+t.right)/2-p;else if(Fe(s)){const j=Object.keys(s)[0],Q=s[j];x=this.chart.scales[j].getPixelForValue(Q)}C=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?W="top":l==="end"&&(W="bottom"));const ne=this._getLabelSizes();for(m=0,y=a.length;m<y;++m){w=a[m],_=w.label;const j=i.setContext(this.getContext(m));k=this.getPixelForTick(m)+i.labelOffset,T=this._resolveTickFontOptions(m),B=T.lineHeight,$=tt(_)?_.length:1;const Q=$/2,V=j.color,le=j.textStrokeColor,I=j.textStrokeWidth;let Z=C;r?(x=k,C==="inner"&&(m===y-1?Z=this.options.reverse?"left":"right":m===0?Z=this.options.reverse?"right":"left":Z="center"),s==="top"?c==="near"||h!==0?D=-$*B+B/2:c==="center"?D=-ne.highest.height/2-Q*B+B:D=-ne.highest.height+B/2:c==="near"||h!==0?D=B/2:c==="center"?D=ne.highest.height/2-Q*B:D=ne.highest.height-$*B,d&&(D*=-1),h!==0&&!j.showLabelBackdrop&&(x+=B/2*Math.sin(h))):(S=k,D=(1-$)*B/2);let de;if(j.showLabelBackdrop){const J=Mt(j.backdropPadding),G=ne.heights[m],K=ne.widths[m];let re=D-J.top,ie=0-J.left;switch(W){case"middle":re-=G/2;break;case"bottom":re-=G;break}switch(C){case"center":ie-=K/2;break;case"right":ie-=K;break}de={left:ie,top:re,width:K+J.width,height:G+J.height,color:j.backdropColor}}v.push({label:_,font:T,textOffset:D,options:{rotation:h,color:V,strokeColor:le,strokeWidth:I,textAlign:Z,textBaseline:W,translation:[x,S],backdrop:de}})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-mn(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:o,mirror:s,padding:i}}=this.options,r=this._getLabelSizes(),a=t+i,l=r.widest.width;let c,u;return n==="left"?s?(u=this.right+i,o==="near"?c="left":o==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,o==="near"?c="right":o==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?s?(u=this.left+i,o==="near"?c="right":o==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,o==="near"?c="left":o==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:o,top:s,width:i,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(o,s,i,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(i=>i.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,o=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,r;const a=(l,c,u)=>{!u.width||!u.color||(o.save(),o.lineWidth=u.width,o.strokeStyle=u.color,o.setLineDash(u.borderDash||[]),o.lineDashOffset=u.borderDashOffset,o.beginPath(),o.moveTo(l.x,l.y),o.lineTo(c.x,c.y),o.stroke(),o.restore())};if(n.display)for(i=0,r=s.length;i<r;++i){const l=s[i];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:o,grid:s}}=this,i=o.setContext(this.getContext()),r=o.display?i.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=Vo(t,this.left,r)-r/2,u=Vo(t,this.right,a)+a/2,d=f=l):(d=Vo(t,this.top,r)-r/2,f=Vo(t,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const o=this.ctx,s=this._computeLabelArea();s&&Ea(o,s);const i=this.getLabelItems(t);for(const r of i){const a=r.options,l=r.font,c=r.label,u=r.textOffset;us(o,c,0,u,l,a)}s&&Ma(o)}drawTitle(){const{ctx:t,options:{position:n,title:o,reverse:s}}=this;if(!o.display)return;const i=ht(o.font),r=Mt(o.padding),a=o.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||Fe(n)?(l+=r.bottom,tt(o.text)&&(l+=i.lineHeight*(o.text.length-1))):l+=r.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=uL(this,l,n,a);us(t,o.text,0,0,i,{color:o.color,maxWidth:d,rotation:f,textAlign:cL(a,n,s),textBaseline:"middle",translation:[c,u]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,o=Ae(t.grid&&t.grid.z,-1),s=Ae(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==hs.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:o,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",s=[];let i,r;for(i=0,r=n.length;i<r;++i){const a=n[i];a[o]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return ht(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Cr{constructor(t,n,o){this.type=t,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let o;hL(n)&&(o=this.register(n));const s=this.items,i=t.id,r=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in s||(s[i]=t,dL(t,r,o),this.override&&ct.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,o=t.id,s=this.scope;o in n&&delete n[o],s&&o in ct[s]&&(delete ct[s][o],this.override&&delete cs[o])}}function dL(e,t,n){const o=Bi(Object.create(null),[n?ct.get(n):{},ct.get(t),e.defaults]);ct.set(t,o),e.defaultRoutes&&fL(t,e.defaultRoutes),e.descriptors&&ct.describe(t,e.descriptors)}function fL(e,t){Object.keys(t).forEach(n=>{const o=n.split("."),s=o.pop(),i=[e].concat(o).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");ct.route(i,s,l,a)})}function hL(e){return"id"in e&&"defaults"in e}class pL{constructor(){this.controllers=new Cr(_n,"datasets",!0),this.elements=new Cr(xn,"elements"),this.plugins=new Cr(Object,"plugins"),this.scales=new Cr(hs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,o){[...n].forEach(s=>{const i=o||this._getRegistryForType(s);o||i.isForType(s)||i===this.plugins&&s.id?this._exec(t,i,s):Ue(s,r=>{const a=o||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,o){const s=Zc(t);Qe(o["before"+s],[],o),n[t](o),Qe(o["after"+s],[],o)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(t))return o}return this.plugins}_get(t,n,o){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+o+".");return s}}var Tn=new pL;class gL{constructor(){this._init=[]}notify(t,n,o,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(i,t,n,o);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,o,s){s=s||{};for(const i of t){const r=i.plugin,a=r[o],l=[n,s,i.options];if(Qe(a,l,r)===!1&&s.cancelable)return!1}return!0}invalidate(){ze(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const o=t&&t.config,s=Ae(o.options&&o.options.plugins,{}),i=mL(o);return s===!1&&!n?[]:bL(t,i,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],o=this._cache,s=(i,r)=>i.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,o),t,"stop"),this._notify(s(o,n),t,"start")}}function mL(e){const t={},n=[],o=Object.keys(Tn.plugins.items);for(let i=0;i<o.length;i++)n.push(Tn.getPlugin(o[i]));const s=e.plugins||[];for(let i=0;i<s.length;i++){const r=s[i];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function vL(e,t){return!t&&e===!1?null:e===!0?{}:e}function bL(e,{plugins:t,localIds:n},o,s){const i=[],r=e.getContext();for(const a of t){const l=a.id,c=vL(o[l],s);c!==null&&i.push({plugin:a,options:yL(e.config,{plugin:a,local:n[l]},c,r)})}return i}function yL(e,{plugin:t,local:n},o,s){const i=e.pluginScopeKeys(t),r=e.getOptionScopes(o,i);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function jl(e,t){const n=ct.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function _L(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function wL(e,t){return e===t?"_index_":"_value_"}function $f(e){if(e==="x"||e==="y"||e==="r")return e}function xL(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Ul(e,...t){if($f(e))return e;for(const n of t){const o=n.axis||xL(n.position)||e.length>1&&$f(e[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function If(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function SL(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(o=>o.xAxisID===e||o.yAxisID===e);if(n.length)return If(e,"x",n[0])||If(e,"y",n[0])}return{}}function CL(e,t){const n=cs[e.type]||{scales:{}},o=t.scales||{},s=jl(e.type,t),i=Object.create(null);return Object.keys(o).forEach(r=>{const a=o[r];if(!Fe(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Ul(r,a,SL(r,e),ct.scales[a.type]),c=wL(l,s),u=n.scales||{};i[r]=_i(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||jl(a,t),u=(cs[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=_L(d,l),p=r[f+"AxisID"]||f;i[p]=i[p]||Object.create(null),_i(i[p],[{axis:f},o[p],u[d]])})}),Object.keys(i).forEach(r=>{const a=i[r];_i(a,[ct.scales[a.type],ct.scale])}),i}function Nm(e){const t=e.options||(e.options={});t.plugins=Ae(t.plugins,{}),t.scales=CL(e,t)}function zm(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function kL(e){return e=e||{},e.data=zm(e.data),Nm(e),e}const Ff=new Map,Vm=new Set;function kr(e,t){let n=Ff.get(e);return n||(n=t(),Ff.set(e,n),Vm.add(n)),n}const si=(e,t,n)=>{const o=To(t,n);o!==void 0&&e.add(o)};class EL{constructor(t){this._config=kL(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=zm(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Nm(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return kr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return kr(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return kr(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,o=this.type;return kr(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const o=this._scopeCache;let s=o.get(t);return(!s||n)&&(s=new Map,o.set(t,s)),s}getOptionScopes(t,n,o){const{options:s,type:i}=this,r=this._cachedScopes(t,o),a=r.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>si(l,t,d))),u.forEach(d=>si(l,s,d)),u.forEach(d=>si(l,cs[i]||{},d)),u.forEach(d=>si(l,ct,d)),u.forEach(d=>si(l,Vl,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Vm.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,cs[n]||{},ct.datasets[n]||{},{type:n},ct,Vl]}resolveNamedOptions(t,n,o,s=[""]){const i={$shared:!0},{resolver:r,subPrefixes:a}=Df(this._resolverCache,t,s);let l=r;if(PL(r,n)){i.$shared=!1,o=Oo(o)?o():o;const c=this.createResolver(t,o,a);l=Fs(r,o,c)}for(const c of n)i[c]=l[c];return i}createResolver(t,n,o=[""],s){const{resolver:i}=Df(this._resolverCache,t,o);return Fe(n)?Fs(i,n,void 0,s):i}}function Df(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const s=n.join();let i=o.get(s);return i||(i={resolver:iu(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},o.set(s,i)),i}const ML=e=>Fe(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||Oo(e[n]),!1);function PL(e,t){const{isScriptable:n,isIndexable:o}=ym(e);for(const s of t){const i=n(s),r=o(s),a=(r||i)&&e[s];if(i&&(Oo(a)||ML(a))||r&&tt(a))return!0}return!1}var TL="4.4.0";const OL=["top","bottom","left","right","chartArea"];function Bf(e,t){return e==="top"||e==="bottom"||OL.indexOf(e)===-1&&t==="x"}function Nf(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function zf(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Qe(n&&n.onComplete,[e],t)}function AL(e){const t=e.chart,n=t.options.animation;Qe(n&&n.onProgress,[e],t)}function Hm(e){return km()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const qr={},Vf=e=>{const t=Hm(e);return Object.values(qr).filter(n=>n.canvas===t).pop()};function RL(e,t,n){const o=Object.keys(e);for(const s of o){const i=+s;if(i>=t){const r=e[s];delete e[s],(n>0||i>t)&&(e[i+n]=r)}}}function LL(e,t,n,o){return!n||e.type==="mouseout"?null:o?t:e}function Er(e,t,n){return e.options.clip?e[n]:t[n]}function $L(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:Er(n,t,"left"),right:Er(n,t,"right"),top:Er(o,t,"top"),bottom:Er(o,t,"bottom")}:t}class Jn{static register(...t){Tn.add(...t),Hf()}static unregister(...t){Tn.remove(...t),Hf()}constructor(t,n){const o=this.config=new EL(n),s=Hm(t),i=Vf(s);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const r=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||QR(s)),this.platform.updateConfig(o);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=FA(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new gL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=JA(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],qr[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Yn.listen(this,"complete",zf),Yn.listen(this,"progress",AL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:o,height:s,_aspectRatio:i}=this;return ze(t)?n&&i?i:s?o/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Tn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return rf(this.canvas,this.ctx),this}stop(){return Yn.stop(this),this}resize(t,n){Yn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const o=this.options,s=this.canvas,i=o.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,n,i),a=o.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,cf(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Qe(o.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ue(n,(o,s)=>{o.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,o=this.scales,s=Object.keys(o).reduce((r,a)=>(r[a]=!1,r),{});let i=[];n&&(i=i.concat(Object.keys(n).map(r=>{const a=n[r],l=Ul(r,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ue(i,r=>{const a=r.options,l=a.id,c=Ul(l,a),u=Ae(a.type,r.dtype);(a.position===void 0||Bf(a.position,c)!==Bf(r.dposition))&&(a.position=r.dposition),s[l]=!0;let d=null;if(l in o&&o[l].type===u)d=o[l];else{const f=Tn.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),o[d.id]=d}d.init(a,t)}),Ue(s,(r,a)=>{r||delete o[a]}),Ue(o,r=>{kt.configure(this,r,r.options),kt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,o=t.length;if(t.sort((s,i)=>s.index-i.index),o>n){for(let s=n;s<o;++s)this._destroyDatasetMeta(s);t.splice(n,o-n)}this._sortedMetasets=t.slice(0).sort(Nf("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((o,s)=>{n.filter(i=>i===o._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let o,s;for(this._removeUnreferencedMetasets(),o=0,s=n.length;o<s;o++){const i=n[o];let r=this.getDatasetMeta(o);const a=i.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(o),r=this.getDatasetMeta(o)),r.type=a,r.indexAxis=i.indexAxis||jl(a,this.options),r.order=i.order||0,r.index=o,r.label=""+i.label,r.visible=this.isDatasetVisible(o),r.controller)r.controller.updateIndex(o),r.controller.linkScales();else{const l=Tn.getController(a),{datasetElementType:c,dataElementType:u}=ct.datasets[a];Object.assign(l,{dataElementType:Tn.getElement(u),datasetElementType:c&&Tn.getElement(c)}),r.controller=new l(this,o),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){Ue(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!s&&i.indexOf(d)===-1;d.buildOrUpdateElements(f),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=o.layout.autoPadding?r:0,this._updateLayout(r),s||Ue(i,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Nf("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ue(this.scales,t=>{kt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(t.events);(!Xd(n,o)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:s,count:i}of n){const r=o==="_removeElements"?-i:i;RL(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=i=>new Set(t.filter(r=>r[0]===i).map((r,a)=>a+","+r.splice(1).join(","))),s=o(0);for(let i=1;i<n;i++)if(!Xd(s,o(i)))return;return Array.from(s).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;kt.update(this,this.width,this.height,t);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],Ue(this.boxes,s=>{o&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,i)=>{s._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,Oo(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const o=this.getDatasetMeta(t),s={meta:o,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(o.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Yn.has(this)?this.attached&&!Yn.running(this)&&Yn.start(this):(this.draw(),zf({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:o,height:s}=this._resizeBeforeDraw;this._resize(o,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,o=[];let s,i;for(s=0,i=n.length;s<i;++s){const r=n[s];(!t||r.visible)&&o.push(r)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,o=t._clip,s=!o.disabled,i=$L(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Ea(n,{left:o.left===!1?0:i.left-o.left,right:o.right===!1?this.width:i.right+o.right,top:o.top===!1?0:i.top-o.top,bottom:o.bottom===!1?this.height:i.bottom+o.bottom}),t.controller.draw(),s&&Ma(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return to(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,o,s){const i=OR.modes[n];return typeof i=="function"?i(this,t,o,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],o=this._metasets;let s=o.filter(i=>i&&i._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},o.push(s)),s}getContext(){return this.$context||(this.$context=Fo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const o=this.getDatasetMeta(t);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(t,n){const o=this.getDatasetMeta(t);o.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,o){const s=o?"show":"hide",i=this.getDatasetMeta(t),r=i.controller._resolveAnimations(void 0,s);Ni(n)?(i.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(t,o),r.update(i,{visible:o}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Yn.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),rf(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete qr[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,o=(i,r)=>{n.addEventListener(this,i,r),t[i]=r},s=(i,r,a)=>{i.offsetX=r,i.offsetY=a,this._eventHandler(i)};Ue(this.options.events,i=>o(i,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,o=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),o("resize",i),o("detach",r)};r=()=>{this.attached=!1,s("resize",i),this._stop(),this._resize(0,0),o("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){Ue(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ue(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,o){const s=o?"set":"remove";let i,r,a,l;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],o=t.map(({datasetIndex:i,index:r})=>{const a=this.getDatasetMeta(i);if(!a)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:a.data[r],index:r}});!ra(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(t,n,o){return this._plugins.notify(this,t,n,o)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,o){const s=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),r=i(n,t),a=o?t:i(t,n);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const o={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",o,s)===!1)return;const i=this._handleEvent(t,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,s),(i||o.changed)&&this.render(),this}_handleEvent(t,n,o){const{_active:s=[],options:i}=this,r=n,a=this._getActiveElements(t,s,o,r),l=HA(t),c=LL(t,this._lastEvent,o,l);o&&(this._lastEvent=null,Qe(i.onHover,[t,a,this],this),l&&Qe(i.onClick,[t,a,this],this));const u=!ra(a,s);return(u||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,u}_getActiveElements(t,n,o,s){if(t.type==="mouseout")return[];if(!o)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,s)}}ae(Jn,"defaults",ct),ae(Jn,"instances",qr),ae(Jn,"overrides",cs),ae(Jn,"registry",Tn),ae(Jn,"version",TL),ae(Jn,"getChart",Vf);function Hf(){return Ue(Jn.instances,e=>e._plugins.invalidate())}function IL(e,t,n){const{startAngle:o,pixelMargin:s,x:i,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(i,r,a,o-c,n+c),l>s?(c=s/l,e.arc(i,r,l,n+c,o-c,!0)):e.arc(i,r,s,n+ut,o-ut),e.closePath(),e.clip()}function FL(e){return su(e,["outerStart","outerEnd","innerStart","innerEnd"])}function DL(e,t,n,o){const s=FL(e.options.borderRadius),i=(n-t)/2,r=Math.min(i,o*t/2),a=l=>{const c=(n-Math.min(i,l))*o/2;return vt(l,0,Math.min(i,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:vt(s.innerStart,0,r),innerEnd:vt(s.innerEnd,0,r)}}function vs(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function fa(e,t,n,o,s,i){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+o+n-c,0),f=u>0?u+o+n+c:0;let p=0;const g=s-l;if(o){const j=u>0?u-o:0,Q=d>0?d-o:0,V=(j+Q)/2,le=V!==0?g*V/(V+o):g;p=(g-le)/2}const h=Math.max(.001,g*d-n/it)/d,v=(g-h)/2,m=l+v+p,y=s-v-p,{outerStart:w,outerEnd:_,innerStart:x,innerEnd:S}=DL(t,f,d,y-m),C=d-w,k=d-_,T=m+w/C,B=y-_/k,$=f+x,D=f+S,W=m+x/$,ne=y-S/D;if(e.beginPath(),i){const j=(T+B)/2;if(e.arc(r,a,d,T,j),e.arc(r,a,d,j,B),_>0){const I=vs(k,B,r,a);e.arc(I.x,I.y,_,B,y+ut)}const Q=vs(D,y,r,a);if(e.lineTo(Q.x,Q.y),S>0){const I=vs(D,ne,r,a);e.arc(I.x,I.y,S,y+ut,ne+Math.PI)}const V=(y-S/f+(m+x/f))/2;if(e.arc(r,a,f,y-S/f,V,!0),e.arc(r,a,f,V,m+x/f,!0),x>0){const I=vs($,W,r,a);e.arc(I.x,I.y,x,W+Math.PI,m-ut)}const le=vs(C,m,r,a);if(e.lineTo(le.x,le.y),w>0){const I=vs(C,T,r,a);e.arc(I.x,I.y,w,m-ut,T)}}else{e.moveTo(r,a);const j=Math.cos(T)*d+r,Q=Math.sin(T)*d+a;e.lineTo(j,Q);const V=Math.cos(B)*d+r,le=Math.sin(B)*d+a;e.lineTo(V,le)}e.closePath()}function BL(e,t,n,o,s){const{fullCircles:i,startAngle:r,circumference:a}=t;let l=t.endAngle;if(i){fa(e,t,n,o,l,s);for(let c=0;c<i;++c)e.fill();isNaN(a)||(l=r+(a%nt||nt))}return fa(e,t,n,o,l,s),e.fill(),l}function NL(e,t,n,o,s){const{fullCircles:i,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,p=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,p?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let g=t.endAngle;if(i){fa(e,t,n,o,g,s);for(let h=0;h<i;++h)e.stroke();isNaN(a)||(g=r+(a%nt||nt))}p&&IL(e,t,g),i||(fa(e,t,n,o,g,s),e.stroke())}class ui extends xn{constructor(n){super();ae(this,"circumference");ae(this,"endAngle");ae(this,"fullCircles");ae(this,"innerRadius");ae(this,"outerRadius");ae(this,"pixelMargin");ae(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,s){const i=this.getProps(["x","y"],s),{angle:r,distance:a}=cm(i,{x:n,y:o}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),p=(this.options.spacing+this.options.borderWidth)/2,h=Ae(f,c-l)>=nt||zi(r,l,c),v=Zn(a,u+p,d+p);return h&&v}getCenterPoint(n){const{x:o,y:s,startAngle:i,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(i+r)/2,f=(a+l+u+c)/2;return{x:o+Math.cos(d)*f,y:s+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:s}=this,i=(o.offset||0)/4,r=(o.spacing||0)/2,a=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=s>nt?Math.floor(s/nt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(it,s||0)),u=i*c;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,BL(n,this,u,r,a),NL(n,this,u,r,a),n.restore()}}ae(ui,"id","arc"),ae(ui,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(ui,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(ui,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Wm(e,t,n=t){e.lineCap=Ae(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ae(n.borderDash,t.borderDash)),e.lineDashOffset=Ae(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ae(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ae(n.borderWidth,t.borderWidth),e.strokeStyle=Ae(n.borderColor,t.borderColor)}function zL(e,t,n){e.lineTo(n.x,n.y)}function VL(e){return e.stepped?u2:e.tension||e.cubicInterpolationMode==="monotone"?d2:zL}function jm(e,t,n={}){const o=e.length,{start:s=0,end:i=o-1}=n,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(i,a),u=s<r&&i<r||s>a&&i>a;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function HL(e,t,n,o){const{points:s,options:i}=t,{count:r,start:a,loop:l,ilen:c}=jm(s,n,o),u=VL(i);let{move:d=!0,reverse:f}=o||{},p,g,h;for(p=0;p<=c;++p)g=s[(a+(f?c-p:p))%r],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):u(e,h,g,f,i.stepped),h=g);return l&&(g=s[(a+(f?c:0))%r],u(e,h,g,f,i.stepped)),!!l}function WL(e,t,n,o){const s=t.points,{count:i,start:r,ilen:a}=jm(s,n,o),{move:l=!0,reverse:c}=o||{};let u=0,d=0,f,p,g,h,v,m;const y=_=>(r+(c?a-_:_))%i,w=()=>{h!==v&&(e.lineTo(u,v),e.lineTo(u,h),e.lineTo(u,m))};for(l&&(p=s[y(0)],e.moveTo(p.x,p.y)),f=0;f<=a;++f){if(p=s[y(f)],p.skip)continue;const _=p.x,x=p.y,S=_|0;S===g?(x<h?h=x:x>v&&(v=x),u=(d*u+_)/++d):(w(),e.lineTo(_,x),g=S,d=0,h=v=x),m=x}w()}function Kl(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?WL:HL}function jL(e){return e.stepped?W2:e.tension||e.cubicInterpolationMode==="monotone"?j2:Ko}function UL(e,t,n,o){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,o)&&s.closePath()),Wm(e,t.options),e.stroke(s)}function KL(e,t,n,o){const{segments:s,options:i}=t,r=Kl(t);for(const a of s)Wm(e,i,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}const qL=typeof Path2D=="function";function YL(e,t,n,o){qL&&!t.options.segment?UL(e,t,n,o):KL(e,t,n,o)}class xo extends xn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const s=o.spanGaps?this._loop:this._fullLoop;I2(this._points,o,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=X2(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,o=t.length;return o&&n[t[o-1].end]}interpolate(t,n){const o=this.options,s=t[n],i=this.points,r=Om(this,{property:n,start:s,end:s});if(!r.length)return;const a=[],l=jL(o);let c,u;for(c=0,u=r.length;c<u;++c){const{start:d,end:f}=r[c],p=i[d],g=i[f];if(p===g){a.push(p);continue}const h=Math.abs((s-p[n])/(g[n]-p[n])),v=l(p,g,h,o.stepped);v[n]=t[n],a.push(v)}return a.length===1?a[0]:a}pathSegment(t,n,o){return Kl(this)(t,this,n,o)}path(t,n,o){const s=this.segments,i=Kl(this);let r=this._loop;n=n||0,o=o||this.points.length-n;for(const a of s)r&=i(t,this,a,{start:n,end:n+o-1});return!!r}draw(t,n,o,s){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),YL(t,this,o,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ae(xo,"id","line"),ae(xo,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ae(xo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ae(xo,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function Wf(e,t,n,o){const s=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<s.radius+s.hitRadius}class Yr extends xn{constructor(n){super();ae(this,"parsed");ae(this,"skip");ae(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,s){const i=this.options,{x:r,y:a}=this.getProps(["x","y"],s);return Math.pow(n-r,2)+Math.pow(o-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,o){return Wf(this,n,"x",o)}inYRange(n,o){return Wf(this,n,"y",o)}getCenterPoint(n){const{x:o,y:s}=this.getProps(["x","y"],n);return{x:o,y:s}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const s=o&&n.borderWidth||0;return(o+s)*2}draw(n,o){const s=this.options;this.skip||s.radius<.1||!to(this,o,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Hl(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ae(Yr,"id","point"),ae(Yr,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ae(Yr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Um(e,t){const{x:n,y:o,base:s,width:i,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return e.horizontal?(d=r/2,a=Math.min(n,s),l=Math.max(n,s),c=o-d,u=o+d):(d=i/2,a=n-d,l=n+d,c=Math.min(o,s),u=Math.max(o,s)),{left:a,top:c,right:l,bottom:u}}function So(e,t,n,o){return e?0:vt(t,n,o)}function GL(e,t,n){const o=e.options.borderWidth,s=e.borderSkipped,i=bm(o);return{t:So(s.top,i.top,0,n),r:So(s.right,i.right,0,t),b:So(s.bottom,i.bottom,0,n),l:So(s.left,i.left,0,t)}}function XL(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,i=ns(s),r=Math.min(t,n),a=e.borderSkipped,l=o||Fe(s);return{topLeft:So(!l||a.top||a.left,i.topLeft,0,r),topRight:So(!l||a.top||a.right,i.topRight,0,r),bottomLeft:So(!l||a.bottom||a.left,i.bottomLeft,0,r),bottomRight:So(!l||a.bottom||a.right,i.bottomRight,0,r)}}function QL(e){const t=Um(e),n=t.right-t.left,o=t.bottom-t.top,s=GL(e,n/2,o/2),i=XL(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:o-s.t-s.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,i.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(s.b,s.r))}}}}function el(e,t,n,o){const s=t===null,i=n===null,a=e&&!(s&&i)&&Um(e,o);return a&&(s||Zn(t,a.left,a.right))&&(i||Zn(n,a.top,a.bottom))}function JL(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function ZL(e,t){e.rect(t.x,t.y,t.w,t.h)}function tl(e,t,n={}){const o=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,r=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+o,y:e.y+s,w:e.w+i,h:e.h+r,radius:e.radius}}class Gr extends xn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:o,backgroundColor:s}}=this,{inner:i,outer:r}=QL(this),a=JL(r.radius)?Vi:ZL;t.save(),(r.w!==i.w||r.h!==i.h)&&(t.beginPath(),a(t,tl(r,n,i)),t.clip(),a(t,tl(i,-n,r)),t.fillStyle=o,t.fill("evenodd")),t.beginPath(),a(t,tl(i,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,o){return el(this,t,n,o)}inXRange(t,n){return el(this,t,null,n)}inYRange(t,n){return el(this,null,t,n)}getCenterPoint(t){const{x:n,y:o,base:s,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+s)/2:n,y:i?o:(o+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}ae(Gr,"id","bar"),ae(Gr,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ae(Gr,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var e$=Object.freeze({__proto__:null,ArcElement:ui,BarElement:Gr,LineElement:xo,PointElement:Yr});const ql=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],jf=ql.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function Km(e){return ql[e%ql.length]}function qm(e){return jf[e%jf.length]}function t$(e,t){return e.borderColor=Km(t),e.backgroundColor=qm(t),++t}function n$(e,t){return e.backgroundColor=e.data.map(()=>Km(t++)),t}function o$(e,t){return e.backgroundColor=e.data.map(()=>qm(t++)),t}function s$(e){let t=0;return(n,o)=>{const s=e.getDatasetMeta(o).controller;s instanceof Jo?t=n$(n,t):s instanceof Ci?t=o$(n,t):s&&(t=t$(n,t))}}function Uf(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function i$(e){return e&&(e.borderColor||e.backgroundColor)}var r$={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:o},options:s}=e.config,{elements:i}=s;if(!n.forceOverride&&(Uf(o)||i$(s)||i&&Uf(i)))return;const r=s$(e);o.forEach(r)}};function a$(e,t,n,o,s){const i=s.samples||o;if(i>=n)return e.slice(t,t+n);const r=[],a=(n-2)/(i-2);let l=0;const c=t+n-1;let u=t,d,f,p,g,h;for(r[l++]=e[u],d=0;d<i-2;d++){let v=0,m=0,y;const w=Math.floor((d+1)*a)+1+t,_=Math.min(Math.floor((d+2)*a)+1,n)+t,x=_-w;for(y=w;y<_;y++)v+=e[y].x,m+=e[y].y;v/=x,m/=x;const S=Math.floor(d*a)+1+t,C=Math.min(Math.floor((d+1)*a)+1,n)+t,{x:k,y:T}=e[u];for(p=g=-1,y=S;y<C;y++)g=.5*Math.abs((k-v)*(e[y].y-T)-(k-e[y].x)*(m-T)),g>p&&(p=g,f=e[y],h=y);r[l++]=f,u=h}return r[l++]=e[c],r}function l$(e,t,n,o){let s=0,i=0,r,a,l,c,u,d,f,p,g,h;const v=[],m=t+n-1,y=e[t].x,_=e[m].x-y;for(r=t;r<t+n;++r){a=e[r],l=(a.x-y)/_*o,c=a.y;const x=l|0;if(x===u)c<g?(g=c,d=r):c>h&&(h=c,f=r),s=(i*s+a.x)/++i;else{const S=r-1;if(!ze(d)&&!ze(f)){const C=Math.min(d,f),k=Math.max(d,f);C!==p&&C!==S&&v.push({...e[C],x:s}),k!==p&&k!==S&&v.push({...e[k],x:s})}r>0&&S!==p&&v.push(e[S]),v.push(a),u=x,i=0,g=h=c,d=f=p=r}}return v}function Ym(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Kf(e){e.data.datasets.forEach(t=>{Ym(t)})}function c$(e,t){const n=t.length;let o=0,s;const{iScale:i}=e,{min:r,max:a,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(o=vt(eo(t,i.axis,r).lo,0,n-1)),c?s=vt(eo(t,i.axis,a).hi+1,o,n)-o:s=n-o,{start:o,count:s}}var u$={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){Kf(e);return}const o=e.width;e.data.datasets.forEach((s,i)=>{const{_data:r,indexAxis:a}=s,l=e.getDatasetMeta(i),c=r||s.data;if(li([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=c$(l,c);const p=n.threshold||4*o;if(f<=p){Ym(s);return}ze(r)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(h){this._data=h}}));let g;switch(n.algorithm){case"lttb":g=a$(c,d,f,o,n);break;case"min-max":g=l$(c,d,f,o);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=g})},destroy(e){Kf(e)}};function d$(e,t,n){const o=e.segments,s=e.points,i=t.points,r=[];for(const a of o){let{start:l,end:c}=a;c=uu(l,c,s);const u=Yl(n,s[l],s[c],a.loop);if(!t.segments){r.push({source:a,target:u,start:s[l],end:s[c]});continue}const d=Om(t,u);for(const f of d){const p=Yl(n,i[f.start],i[f.end],f.loop),g=Tm(a,s,p);for(const h of g)r.push({source:h,target:f,start:{[n]:qf(u,p,"start",Math.max)},end:{[n]:qf(u,p,"end",Math.min)}})}}return r}function Yl(e,t,n,o){if(o)return;let s=t[e],i=n[e];return e==="angle"&&(s=Gt(s),i=Gt(i)),{property:e,start:s,end:i}}function f$(e,t){const{x:n=null,y:o=null}=e||{},s=t.points,i=[];return t.segments.forEach(({start:r,end:a})=>{a=uu(r,a,s);const l=s[r],c=s[a];o!==null?(i.push({x:l.x,y:o}),i.push({x:c.x,y:o})):n!==null&&(i.push({x:n,y:l.y}),i.push({x:n,y:c.y}))}),i}function uu(e,t,n){for(;t>e;t--){const o=n[t];if(!isNaN(o.x)&&!isNaN(o.y))break}return t}function qf(e,t,n,o){return e&&t?o(e[n],t[n]):e?e[n]:t?t[n]:0}function Gm(e,t){let n=[],o=!1;return tt(e)?(o=!0,n=e):n=f$(e,t),n.length?new xo({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function Yf(e){return e&&e.fill!==!1}function h$(e,t,n){let s=e[t].fill;const i=[t];let r;if(!n)return s;for(;s!==!1&&i.indexOf(s)===-1;){if(!lt(s))return s;if(r=e[s],!r)return!1;if(r.visible)return s;i.push(s),s=r.fill}return!1}function p$(e,t,n){const o=b$(e);if(Fe(o))return isNaN(o.value)?!1:o;let s=parseFloat(o);return lt(s)&&Math.floor(s)===s?g$(o[0],t,s,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function g$(e,t,n,o){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=o?!1:n}function m$(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Fe(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function v$(e,t,n){let o;return e==="start"?o=n:e==="end"?o=t.options.reverse?t.min:t.max:Fe(e)?o=e.value:o=t.getBaseValue(),o}function b$(e){const t=e.options,n=t.fill;let o=Ae(n&&n.target,n);return o===void 0&&(o=!!t.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function y$(e){const{scale:t,index:n,line:o}=e,s=[],i=o.segments,r=o.points,a=_$(t,n);a.push(Gm({x:null,y:t.bottom},o));for(let l=0;l<i.length;l++){const c=i[l];for(let u=c.start;u<=c.end;u++)w$(s,r[u],a)}return new xo({points:s,options:{}})}function _$(e,t){const n=[],o=e.getMatchingVisibleMetas("line");for(let s=0;s<o.length;s++){const i=o[s];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function w$(e,t,n){const o=[];for(let s=0;s<n.length;s++){const i=n[s],{first:r,last:a,point:l}=x$(i,t,"x");if(!(!l||r&&a)){if(r)o.unshift(l);else if(e.push(l),!a)break}}e.push(...o)}function x$(e,t,n){const o=e.interpolate(t,n);if(!o)return{};const s=o[n],i=e.segments,r=e.points;let a=!1,l=!1;for(let c=0;c<i.length;c++){const u=i[c],d=r[u.start][n],f=r[u.end][n];if(Zn(s,d,f)){a=s===d,l=s===f;break}}return{first:a,last:l,point:o}}class Xm{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,o){const{x:s,y:i,radius:r}=this;return n=n||{start:0,end:nt},t.arc(s,i,r,n.end,n.start,!0),!o.bounds}interpolate(t){const{x:n,y:o,radius:s}=this,i=t.angle;return{x:n+Math.cos(i)*s,y:o+Math.sin(i)*s,angle:i}}}function S$(e){const{chart:t,fill:n,line:o}=e;if(lt(n))return C$(t,n);if(n==="stack")return y$(e);if(n==="shape")return!0;const s=k$(e);return s instanceof Xm?s:Gm(s,o)}function C$(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function k$(e){return(e.scale||{}).getPointPositionForValue?M$(e):E$(e)}function E$(e){const{scale:t={},fill:n}=e,o=m$(n,t);if(lt(o)){const s=t.isHorizontal();return{x:s?o:null,y:s?null:o}}return null}function M$(e){const{scale:t,fill:n}=e,o=t.options,s=t.getLabels().length,i=o.reverse?t.max:t.min,r=v$(n,t,i),a=[];if(o.grid.circular){const l=t.getPointPositionForValue(0,i);return new Xm({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(r)})}for(let l=0;l<s;++l)a.push(t.getPointPositionForValue(l,r));return a}function nl(e,t,n){const o=S$(t),{line:s,scale:i,axis:r}=t,a=s.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};o&&s.points.length&&(Ea(e,n),P$(e,{line:s,target:o,above:u,below:d,area:n,scale:i,axis:r}),Ma(e))}function P$(e,t){const{line:n,target:o,above:s,below:i,area:r,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&i!==s&&(Gf(e,o,r.top),Xf(e,{line:n,target:o,color:s,scale:a,property:l}),e.restore(),e.save(),Gf(e,o,r.bottom)),Xf(e,{line:n,target:o,color:i,scale:a,property:l}),e.restore()}function Gf(e,t,n){const{segments:o,points:s}=t;let i=!0,r=!1;e.beginPath();for(const a of o){const{start:l,end:c}=a,u=s[l],d=s[uu(l,c,s)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),r=!!t.pathSegment(e,a,{move:r}),r?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Xf(e,t){const{line:n,target:o,property:s,color:i,scale:r}=t,a=d$(n,o,s);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:f=i}={}}=l,p=o!==!0;e.save(),e.fillStyle=f,T$(e,r,p&&Yl(s,u,d)),e.beginPath();const g=!!n.pathSegment(e,l);let h;if(p){g?e.closePath():Qf(e,o,d,s);const v=!!o.pathSegment(e,c,{move:g,reverse:!0});h=g&&v,h||Qf(e,o,u,s)}e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function T$(e,t,n){const{top:o,bottom:s}=t.chart.chartArea,{property:i,start:r,end:a}=n||{};i==="x"&&(e.beginPath(),e.rect(r,o,a-r,s-o),e.clip())}function Qf(e,t,n,o){const s=t.interpolate(n,o);s&&e.lineTo(s.x,s.y)}var O$={id:"filler",afterDatasetsUpdate(e,t,n){const o=(e.data.datasets||[]).length,s=[];let i,r,a,l;for(r=0;r<o;++r)i=e.getDatasetMeta(r),a=i.dataset,l=null,a&&a.options&&a instanceof xo&&(l={visible:e.isDatasetVisible(r),index:r,fill:p$(a,r,o),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:a}),i.$filler=l,s.push(l);for(r=0;r<o;++r)l=s[r],!(!l||l.fill===!1)&&(l.fill=h$(s,r,n.propagate))},beforeDraw(e,t,n){const o=n.drawTime==="beforeDraw",s=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let r=s.length-1;r>=0;--r){const a=s[r].$filler;!a||(a.line.updateControlPoints(i,a.axis),o&&a.fill&&nl(e.ctx,a,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=e.getSortedVisibleDatasetMetas();for(let s=o.length-1;s>=0;--s){const i=o[s].$filler;Yf(i)&&nl(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const o=t.meta.$filler;!Yf(o)||n.drawTime!=="beforeDatasetDraw"||nl(e.ctx,o,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Jf=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}},A$=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Zf extends xn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,o){this.maxWidth=t,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Qe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(o=>t.filter(o,this.chart.data))),t.sort&&(n=n.sort((o,s)=>t.sort(o,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const o=t.labels,s=ht(o.font),i=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Jf(o,i);let c,u;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,i,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,o,s){const{ctx:i,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let d=t;i.textAlign="left",i.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((g,h)=>{const v=o+n/2+i.measureText(g.text).width;(h===0||c[c.length-1]+v+2*a>r)&&(d+=u,c[c.length-(h>0?0:1)]=0,p+=u,f++),l[h]={left:0,top:p,row:f,width:v,height:s},c[c.length-1]+=v+a}),d}_fitCols(t,n,o,s){const{ctx:i,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-t;let d=a,f=0,p=0,g=0,h=0;return this.legendItems.forEach((v,m)=>{const{itemWidth:y,itemHeight:w}=R$(o,n,i,v,s);m>0&&p+w+2*a>u&&(d+=f+a,c.push({width:f,height:p}),g+=f+a,h++,f=p=0),l[m]={left:g,top:p,col:h,width:y,height:w},f=Math.max(f,y),p+=w+a}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:s},rtl:i}}=this,r=Ss(i,this.left,this.width);if(this.isHorizontal()){let a=0,l=Ct(o,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Ct(o,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=Ct(o,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Ct(o,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ea(t,this),this._draw(),Ma(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:o,ctx:s}=this,{align:i,labels:r}=t,a=ct.color,l=Ss(t.rtl,this.left,this.width),c=ht(r.font),{padding:u}=r,d=c.size,f=d/2;let p;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:h,itemHeight:v}=Jf(r,d),m=function(S,C,k){if(isNaN(g)||g<=0||isNaN(h)||h<0)return;s.save();const T=Ae(k.lineWidth,1);if(s.fillStyle=Ae(k.fillStyle,a),s.lineCap=Ae(k.lineCap,"butt"),s.lineDashOffset=Ae(k.lineDashOffset,0),s.lineJoin=Ae(k.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=Ae(k.strokeStyle,a),s.setLineDash(Ae(k.lineDash,[])),r.usePointStyle){const B={radius:h*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:T},$=l.xPlus(S,g/2),D=C+f;vm(s,B,$,D,r.pointStyleWidth&&g)}else{const B=C+Math.max((d-h)/2,0),$=l.leftForLtr(S,g),D=ns(k.borderRadius);s.beginPath(),Object.values(D).some(W=>W!==0)?Vi(s,{x:$,y:B,w:g,h,radius:D}):s.rect($,B,g,h),s.fill(),T!==0&&s.stroke()}s.restore()},y=function(S,C,k){us(s,k.text,S,C+v/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},w=this.isHorizontal(),_=this._computeTitleHeight();w?p={x:Ct(i,this.left+u,this.right-o[0]),y:this.top+u+_,line:0}:p={x:this.left+u,y:Ct(i,this.top+_+u,this.bottom-n[0].height),line:0},Em(this.ctx,t.textDirection);const x=v+u;this.legendItems.forEach((S,C)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const k=s.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=r.textAlign)),B=g+f+k;let $=p.x,D=p.y;l.setWidth(this.width),w?C>0&&$+B+u>this.right&&(D=p.y+=x,p.line++,$=p.x=Ct(i,this.left+u,this.right-o[p.line])):C>0&&D+x>this.bottom&&($=p.x=$+n[p.line].width+u,p.line++,D=p.y=Ct(i,this.top+_+u,this.bottom-n[p.line].height));const W=l.x($);if(m(W,D,S),$=ZA(T,$+g+f,w?$+B:this.right,t.rtl),y(l.x($),D,S),w)p.x+=B+u;else if(typeof S.text!="string"){const ne=c.lineHeight;p.y+=Qm(S,ne)+u}else p.y+=x}),Mm(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,o=ht(n.font),s=Mt(n.padding);if(!n.display)return;const i=Ss(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=o.size/2,c=s.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=Ct(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((h,v)=>Math.max(h,v.height),0);u=c+Ct(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const p=Ct(a,d,d+f);r.textAlign=i.textAlign(nu(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=o.string,us(r,n.text,p,u,o)}_computeTitleHeight(){const t=this.options.title,n=ht(t.font),o=Mt(t.padding);return t.display?n.lineHeight+o.height:0}_getLegendItemAt(t,n){let o,s,i;if(Zn(t,this.left,this.right)&&Zn(n,this.top,this.bottom)){for(i=this.legendHitBoxes,o=0;o<i.length;++o)if(s=i[o],Zn(t,s.left,s.left+s.width)&&Zn(n,s.top,s.top+s.height))return this.legendItems[o]}return null}handleEvent(t){const n=this.options;if(!I$(t.type,n))return;const o=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,i=A$(s,o);s&&!i&&Qe(n.onLeave,[t,s,this],this),this._hoveredItem=o,o&&!i&&Qe(n.onHover,[t,o,this],this)}else o&&Qe(n.onClick,[t,o,this],this)}}function R$(e,t,n,o,s){const i=L$(o,e,t,n),r=$$(s,o,t.lineHeight);return{itemWidth:i,itemHeight:r}}function L$(e,t,n,o){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((i,r)=>i.length>r.length?i:r)),t+n.size/2+o.measureText(s).width}function $$(e,t,n){let o=e;return typeof t.text!="string"&&(o=Qm(t,n)),o}function Qm(e,t){const n=e.text?e.text.length:0;return t*n}function I$(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var F$={id:"legend",_element:Zf,start(e,t,n){const o=e.legend=new Zf({ctx:e.ctx,options:n,chart:e});kt.configure(e,o,n),kt.addBox(e,o)},stop(e){kt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;kt.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,s=n.chart;s.isDatasetVisible(o)?(s.hide(o),t.hidden=!0):(s.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:s,color:i,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Mt(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:o||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class du extends xn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=tt(o.text)?o.text.length:1;this._padding=Mt(o.padding);const i=s*ht(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:o,bottom:s,right:i,options:r}=this,a=r.align;let l=0,c,u,d;return this.isHorizontal()?(u=Ct(a,o,i),d=n+t,c=i-o):(r.position==="left"?(u=o+t,d=Ct(a,s,n),l=it*-.5):(u=i-t,d=Ct(a,n,s),l=it*.5),c=s-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const o=ht(n.font),i=o.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(i);us(t,n.text,0,0,o,{color:n.color,maxWidth:l,rotation:c,textAlign:nu(n.align),textBaseline:"middle",translation:[r,a]})}}function D$(e,t){const n=new du({ctx:e.ctx,options:t,chart:e});kt.configure(e,n,t),kt.addBox(e,n),e.titleBlock=n}var B$={id:"title",_element:du,start(e,t,n){D$(e,n)},stop(e){const t=e.titleBlock;kt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;kt.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Mr=new WeakMap;var N$={id:"subtitle",start(e,t,n){const o=new du({ctx:e.ctx,options:n,chart:e});kt.configure(e,o,n),kt.addBox(e,o),Mr.set(e,o)},stop(e){kt.removeBox(e,Mr.get(e)),Mr.delete(e)},beforeUpdate(e,t,n){const o=Mr.get(e);kt.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const di={average(e){if(!e.length)return!1;let t,n,o=0,s=0,i=0;for(t=0,n=e.length;t<n;++t){const r=e[t].element;if(r&&r.hasValue()){const a=r.tooltipPosition();o+=a.x,s+=a.y,++i}}return{x:o/i,y:s/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,o=t.y,s=Number.POSITIVE_INFINITY,i,r,a;for(i=0,r=e.length;i<r;++i){const l=e[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=zl(t,c);u<s&&(s=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,o=l.y}return{x:n,y:o}}};function Pn(e,t){return t&&(tt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Gn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
     48 */class lR{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,o,s){const i=n.listeners[s],a=n.duration;i.forEach(r=>r({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(o-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Lm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((o,s)=>{if(!o.running||!o.items.length)return;const i=o.items;let a=i.length-1,r=!1,l;for(;a>=0;--a)l=i[a],l._active?(l._total>o.duration&&(o.duration=l._total),l.tick(t),r=!0):(i[a]=i[i.length-1],i.pop());r&&(s.draw(),this._notify(s,o,t,"progress")),i.length||(o.running=!1,this._notify(s,o,t,"complete"),o.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let o=n.get(t);return o||(o={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,o)),o}listen(t,n,o){this._getAnims(t).listeners[n].push(o)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((o,s)=>Math.max(o,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const o=n.items;let s=o.length-1;for(;s>=0;--s)o[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var qn=new lR;const Tf="transparent",uR={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const o=bf(e||Tf),s=o.valid&&bf(t||Tf);return s&&s.valid?s.mix(o,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class cR{constructor(t,n,o,s){const i=n[o];s=li([t.to,s,i,t.from]);const a=li([t.from,i,s]);this._active=!0,this._fn=t.fn||uR[t.type||typeof a],this._easing=wi[t.easing]||wi.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=o,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,o){if(this._active){this._notify(!1);const s=this._target[this._prop],i=o-this._start,a=this._duration-i;this._start=o,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=li([t.to,n,s,t.from]),this._from=li([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,o=this._duration,s=this._prop,i=this._from,a=this._loop,r=this._to;let l;if(this._active=i!==r&&(a||n<o),!this._active){this._target[s]=r,this._notify(!0);return}if(n<0){this._target[s]=i;return}l=n/o%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(i,r,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,o)=>{t.push({res:n,rej:o})})}_notify(t){const n=t?"res":"rej",o=this._promises||[];for(let s=0;s<o.length;s++)o[s][n]()}}class Jm{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!Be(t))return;const n=Object.keys(ut.animation),o=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const i=t[s];if(!Be(i))return;const a={};for(const r of n)a[r]=i[r];(st(i.properties)&&i.properties||[s]).forEach(r=>{(r===s||!o.has(r))&&o.set(r,a)})})}_animateOptions(t,n){const o=n.options,s=fR(t,o);if(!s)return[];const i=this._createAnimations(s,o);return o.$shared&&dR(t.options.$animations,o).then(()=>{t.options=o},()=>{}),i}_createAnimations(t,n){const o=this._properties,s=[],i=t.$animations||(t.$animations={}),a=Object.keys(n),r=Date.now();let l;for(l=a.length-1;l>=0;--l){const u=a[l];if(u.charAt(0)==="$")continue;if(u==="options"){s.push(...this._animateOptions(t,n));continue}const c=n[u];let d=i[u];const f=o.get(u);if(d)if(f&&d.active()){d.update(f,c,r);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}i[u]=d=new cR(f,t,u,c),s.push(d)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const o=this._createAnimations(t,n);if(o.length)return qn.add(this._chart,o),!0}}function dR(e,t){const n=[],o=Object.keys(t);for(let s=0;s<o.length;s++){const i=e[o[s]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function fR(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Pf(e,t){const n=e&&e.options||{},o=n.reverse,s=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:o?i:s,end:o?s:i}}function hR(e,t,n){if(n===!1)return!1;const o=Pf(e,n),s=Pf(t,n);return{top:s.end,right:o.end,bottom:s.start,left:o.start}}function pR(e){let t,n,o,s;return Be(e)?(t=e.top,n=e.right,o=e.bottom,s=e.left):t=n=o=s=e,{top:t,right:n,bottom:o,left:s,disabled:e===!1}}function Qm(e,t){const n=[],o=e._getSortedDatasetMetas(t);let s,i;for(s=0,i=o.length;s<i;++s)n.push(o[s].index);return n}function Of(e,t,n,o={}){const s=e.keys,i=o.mode==="single";let a,r,l,u;if(t===null)return;let c=!1;for(a=0,r=s.length;a<r;++a){if(l=+s[a],l===n){if(c=!0,o.all)continue;break}u=e.values[l],ht(u)&&(i||t===0||Fn(t)===Fn(u))&&(t+=u)}return!c&&!o.all?0:t}function gR(e,t){const{iScale:n,vScale:o}=t,s=n.axis==="x"?"x":"y",i=o.axis==="x"?"x":"y",a=Object.keys(e),r=new Array(a.length);let l,u,c;for(l=0,u=a.length;l<u;++l)c=a[l],r[l]={[s]:c,[i]:e[c]};return r}function el(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function mR(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function vR(e){const{min:t,max:n,minDefined:o,maxDefined:s}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function bR(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function Af(e,t,n,o){for(const s of t.getMatchingVisibleMetas(o).reverse()){const i=e[s.index];if(n&&i>0||!n&&i<0)return s.index}return null}function Rf(e,t){const{chart:n,_cachedMeta:o}=e,s=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:r}=o,l=i.axis,u=a.axis,c=mR(i,a,o),d=t.length;let f;for(let h=0;h<d;++h){const p=t[h],{[l]:g,[u]:m}=p,b=p._stacks||(p._stacks={});f=b[u]=bR(s,c,g),f[r]=m,f._top=Af(f,a,!0,o.type),f._bottom=Af(f,a,!1,o.type);const w=f._visualValues||(f._visualValues={});w[r]=m}}function tl(e,t){const n=e.scales;return Object.keys(n).filter(o=>n[o].axis===t).shift()}function yR(e,t){return Fo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function _R(e,t,n){return Fo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ei(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(!!o){t=t||e._parsed;for(const s of t){const i=s._stacks;if(!i||i[o]===void 0||i[o][n]===void 0)return;delete i[o][n],i[o]._visualValues!==void 0&&i[o]._visualValues[n]!==void 0&&delete i[o]._visualValues[n]}}}const nl=e=>e==="reset"||e==="none",Lf=(e,t)=>t?e:Object.assign({},e),wR=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Qm(n,!0),values:null};class Sn{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=el(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ei(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,i=n.xAxisID=Pe(o.xAxisID,tl(t,"x")),a=n.yAxisID=Pe(o.yAxisID,tl(t,"y")),r=n.rAxisID=Pe(o.rAxisID,tl(t,"r")),l=n.indexAxis,u=n.iAxisID=s(l,i,a,r),c=n.vAxisID=s(l,a,i,r);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(r),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&gf(this._data,this),t._stacked&&ei(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),o=this._data;if(Be(n)){const s=this._cachedMeta;this._data=gR(n,s)}else if(o!==n){if(o){gf(o,this);const s=this._cachedMeta;ei(s),s._parsed=[]}n&&Object.isExtensible(n)&&a2(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const i=n._stacked;n._stacked=el(n.vScale,n),n.stack!==o.stack&&(s=!0,ei(n),n.stack=o.stack),this._resyncElements(t),(s||i!==n._stacked)&&(Rf(this,n._parsed),n._stacked=el(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),o=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:o,_data:s}=this,{iScale:i,_stacked:a}=o,r=i.axis;let l=t===0&&n===s.length?!0:o._sorted,u=t>0&&o._parsed[t-1],c,d,f;if(this._parsing===!1)o._parsed=s,o._sorted=!0,f=s;else{st(s[t])?f=this.parseArrayData(o,s,t,n):Be(s[t])?f=this.parseObjectData(o,s,t,n):f=this.parsePrimitiveData(o,s,t,n);const h=()=>d[r]===null||u&&d[r]<u[r];for(c=0;c<n;++c)o._parsed[c+t]=d=f[c],l&&(h()&&(l=!1),u=d);o._sorted=l}a&&Rf(this,f)}parsePrimitiveData(t,n,o,s){const{iScale:i,vScale:a}=t,r=i.axis,l=a.axis,u=i.getLabels(),c=i===a,d=new Array(s);let f,h,p;for(f=0,h=s;f<h;++f)p=f+o,d[f]={[r]:c||i.parse(u[p],p),[l]:a.parse(n[p],p)};return d}parseArrayData(t,n,o,s){const{xScale:i,yScale:a}=t,r=new Array(s);let l,u,c,d;for(l=0,u=s;l<u;++l)c=l+o,d=n[c],r[l]={x:i.parse(d[0],c),y:a.parse(d[1],c)};return r}parseObjectData(t,n,o,s){const{xScale:i,yScale:a}=t,{xAxisKey:r="x",yAxisKey:l="y"}=this._parsing,u=new Array(s);let c,d,f,h;for(c=0,d=s;c<d;++c)f=c+o,h=n[f],u[c]={x:i.parse(Oo(h,r),f),y:a.parse(Oo(h,l),f)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,o){const s=this.chart,i=this._cachedMeta,a=n[t.axis],r={keys:Qm(s,!0),values:n._stacks[t.axis]._visualValues};return Of(r,a,i.index,{mode:o})}updateRangeFromParsed(t,n,o,s){const i=o[n.axis];let a=i===null?NaN:i;const r=s&&o._stacks[n.axis];s&&r&&(s.values=r,a=Of(s,i,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const o=this._cachedMeta,s=o._parsed,i=o._sorted&&t===o.iScale,a=s.length,r=this._getOtherScale(t),l=wR(n,o,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=vR(r);let f,h;function p(){h=s[f];const g=h[r.axis];return!ht(h[t.axis])||c>g||d<g}for(f=0;f<a&&!(!p()&&(this.updateRangeFromParsed(u,t,h,l),i));++f);if(i){for(f=a-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(u,t,h,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,o=[];let s,i,a;for(s=0,i=n.length;s<i;++s)a=n[s][t.axis],ht(a)&&o.push(a);return o}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,o=n.iScale,s=n.vScale,i=this.getParsed(t);return{label:o?""+o.getLabelForValue(i[o.axis]):"",value:s?""+s.getLabelForValue(i[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=pR(Pe(this.options.clip,hR(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,o=this._cachedMeta,s=o.data||[],i=n.chartArea,a=[],r=this._drawStart||0,l=this._drawCount||s.length-r,u=this.options.drawActiveElementsOnTop;let c;for(o.dataset&&o.dataset.draw(t,i,r,l),c=r;c<r+l;++c){const d=s[c];d.hidden||(d.active&&u?a.push(d):d.draw(t,i))}for(c=0;c<a.length;++c)a[c].draw(t,i)}getStyle(t,n){const o=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(t||0,o)}getContext(t,n,o){const s=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];i=a.$context||(a.$context=_R(this.getContext(),t,a)),i.parsed=this.getParsed(t),i.raw=s.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=yR(this.chart.getContext(),this.index)),i.dataset=s,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=o,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",o){const s=n==="active",i=this._cachedDataOpts,a=t+"-"+n,r=i[a],l=this.enableOptionSharing&&Vi(o);if(r)return Lf(r,l);const u=this.chart.config,c=u.datasetElementScopeKeys(this._type,t),d=s?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),c),h=Object.keys(ut.elements[t]),p=()=>this.getContext(o,s,n),g=u.resolveNamedOptions(f,h,p,d);return g.$shared&&(g.$shared=l,i[a]=Object.freeze(Lf(g,l))),g}_resolveAnimations(t,n,o){const s=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,r=i[a];if(r)return r;let l;if(s.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,o,n))}const u=new Jm(s,l&&l.animations);return l&&l._cacheable&&(i[a]=Object.freeze(u)),u}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||nl(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const o=this.resolveDataElementOptions(t,n),s=this._sharedOptions,i=this.getSharedOptions(o),a=this.includeOptions(n,i)||i!==s;return this.updateSharedOptions(i,n,o),{sharedOptions:i,includeOptions:a}}updateElement(t,n,o,s){nl(s)?Object.assign(t,o):this._resolveAnimations(n,s).update(t,o)}updateSharedOptions(t,n,o){t&&!nl(n)&&this._resolveAnimations(void 0,n).update(t,o)}_setStyle(t,n,o,s){t.active=s;const i=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(t,{options:!s&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,o){this._setStyle(t,o,"active",!1)}setHoverStyle(t,n,o){this._setStyle(t,o,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,o=this._cachedMeta.data;for(const[r,l,u]of this._syncList)this[r](l,u);this._syncList=[];const s=o.length,i=n.length,a=Math.min(i,s);a&&this.parse(0,a),i>s?this._insertElements(s,i-s,t):i<s&&this._removeElements(i,s-i)}_insertElements(t,n,o=!0){const s=this._cachedMeta,i=s.data,a=t+n;let r;const l=u=>{for(u.length+=n,r=u.length-1;r>=a;r--)u[r]=u[r-n]};for(l(i),r=t;r<a;++r)i[r]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),o&&this.updateElements(i,t,n,"reset")}updateElements(t,n,o,s){}_removeElements(t,n){const o=this._cachedMeta;if(this._parsing){const s=o._parsed.splice(t,n);o._stacked&&ei(o,s)}o.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,o,s]=t;this[n](o,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const o=arguments.length-2;o&&this._sync(["_insertElements",t,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ce(Sn,"defaults",{}),ce(Sn,"datasetElementType",null),ce(Sn,"dataElementType",null);function SR(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let s=0,i=n.length;s<i;s++)o=o.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=Rm(o.sort((s,i)=>s-i))}return e._cache.$bar}function xR(e){const t=e.iScale,n=SR(t,e.type);let o=t._length,s,i,a,r;const l=()=>{a===32767||a===-32768||(Vi(r)&&(o=Math.min(o,Math.abs(a-r)||o)),r=a)};for(s=0,i=n.length;s<i;++s)a=t.getPixelForValue(n[s]),l();for(r=void 0,s=0,i=t.ticks.length;s<i;++s)a=t.getPixelForTick(s),l();return o}function CR(e,t,n,o){const s=n.barThickness;let i,a;return He(s)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=s*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}function kR(e,t,n,o){const s=t.pixels,i=s[e];let a=e>0?s[e-1]:null,r=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;a===null&&(a=i-(r===null?t.end-t.start:r-i)),r===null&&(r=i+i-a);const u=i-(i-Math.min(a,r))/2*l;return{chunk:Math.abs(r-a)/2*l/o,ratio:n.barPercentage,start:u}}function ER(e,t,n,o){const s=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(s,i),r=Math.max(s,i);let l=a,u=r;Math.abs(a)>Math.abs(r)&&(l=r,u=a),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:s,end:i,min:a,max:r}}function Zm(e,t,n,o){return st(e)?ER(e,t,n,o):t[n.axis]=n.parse(e,o),t}function If(e,t,n,o){const s=e.iScale,i=e.vScale,a=s.getLabels(),r=s===i,l=[];let u,c,d,f;for(u=n,c=n+o;u<c;++u)f=t[u],d={},d[s.axis]=r||s.parse(a[u],u),l.push(Zm(f,d,i,u));return l}function ol(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function MR(e,t,n){return e!==0?Fn(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function TR(e){let t,n,o,s,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(s="end",i="start"):(s="start",i="end"),{start:n,end:o,reverse:t,top:s,bottom:i}}function PR(e,t,n,o){let s=t.borderSkipped;const i={};if(!s){e.borderSkipped=i;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:r,reverse:l,top:u,bottom:c}=TR(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?s=u:(n._bottom||0)===o?s=c:(i[$f(c,a,r,l)]=!0,s=u)),i[$f(s,a,r,l)]=!0,e.borderSkipped=i}function $f(e,t,n,o){return o?(e=OR(e,t,n),e=Ff(e,n,t)):e=Ff(e,t,n),e}function OR(e,t,n){return e===t?n:e===n?t:e}function Ff(e,t,n){return e==="start"?t:e==="end"?n:e}function AR(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Ka extends Sn{parsePrimitiveData(t,n,o,s){return If(t,n,o,s)}parseArrayData(t,n,o,s){return If(t,n,o,s)}parseObjectData(t,n,o,s){const{iScale:i,vScale:a}=t,{xAxisKey:r="x",yAxisKey:l="y"}=this._parsing,u=i.axis==="x"?r:l,c=a.axis==="x"?r:l,d=[];let f,h,p,g;for(f=o,h=o+s;f<h;++f)g=n[f],p={},p[i.axis]=i.parse(Oo(g,u),f),d.push(Zm(Oo(g,c),p,a,f));return d}updateRangeFromParsed(t,n,o,s){super.updateRangeFromParsed(t,n,o,s);const i=o._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:o,vScale:s}=n,i=this.getParsed(t),a=i._custom,r=ol(a)?"["+a.start+", "+a.end+"]":""+s.getLabelForValue(i[s.axis]);return{label:""+o.getLabelForValue(i[o.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,o,s){const i=s==="reset",{index:a,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),u=r.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,s);for(let h=n;h<n+o;h++){const p=this.getParsed(h),g=i||He(p[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),m=this._calculateBarIndexPixels(h,c),b=(p._stacks||{})[r.axis],w={horizontal:u,base:g.base,enableBorderRadius:!b||ol(p._custom)||a===b._top||a===b._bottom,x:u?g.head:m.center,y:u?m.center:g.head,height:u?m.size:Math.abs(g.size),width:u?Math.abs(g.size):m.size};f&&(w.options=d||this.resolveDataElementOptions(h,t[h].active?"active":s));const S=w.options||t[h].options;PR(w,S,b,a),AR(w,S,c.ratio),this.updateElement(t[h],h,w,s)}}_getStacks(t,n){const{iScale:o}=this._cachedMeta,s=o.getMatchingVisibleMetas(this._type).filter(c=>c.controller.options.grouped),i=o.options.stacked,a=[],r=this._cachedMeta.controller.getParsed(n),l=r&&r[o.axis],u=c=>{const d=c._parsed.find(h=>h[o.axis]===l),f=d&&d[c.vScale.axis];if(He(f)||isNaN(f))return!0};for(const c of s)if(!(n!==void 0&&u(c))&&((i===!1||a.indexOf(c.stack)===-1||i===void 0&&c.stack===void 0)&&a.push(c.stack),c.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,o){const s=this._getStacks(t,o),i=n!==void 0?s.indexOf(n):-1;return i===-1?s.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,o=n.iScale,s=[];let i,a;for(i=0,a=n.data.length;i<a;++i)s.push(o.getPixelForValue(this.getParsed(i)[o.axis],i));const r=t.barThickness;return{min:r||xR(n),pixels:s,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:o,index:s},options:{base:i,minBarLength:a}}=this,r=i||0,l=this.getParsed(t),u=l._custom,c=ol(u);let d=l[n.axis],f=0,h=o?this.applyStack(n,l,o):d,p,g;h!==d&&(f=h-d,h=d),c&&(d=u.barStart,h=u.barEnd-u.barStart,d!==0&&Fn(d)!==Fn(u.barEnd)&&(f=0),f+=d);const m=!He(i)&&!c?i:f;let b=n.getPixelForValue(m);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(f+h):p=b,g=p-b,Math.abs(g)<a){g=MR(g,n,r)*a,d===r&&(b-=g/2);const w=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),_=Math.min(w,S),y=Math.max(w,S);b=Math.max(Math.min(b,y),_),p=b+g,o&&!c&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(p)-n.getValueForPixel(b))}if(b===n.getPixelForValue(r)){const w=Fn(g)*n.getLineWidthForValue(r)/2;b+=w,g-=w}return{size:g,base:b,head:p,center:p+g/2}}_calculateBarIndexPixels(t,n){const o=n.scale,s=this.options,i=s.skipNull,a=Pe(s.maxBarThickness,1/0);let r,l;if(n.grouped){const u=i?this._getStackCount(t):n.stackCount,c=s.barThickness==="flex"?kR(t,n,s,u):CR(t,n,s,u),d=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);r=c.start+c.chunk*d+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else r=o.getPixelForValue(this.getParsed(t)[o.axis],t),l=Math.min(a,n.min*n.ratio);return{base:r-l/2,head:r+l/2,center:r,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,o=t.data,s=o.length;let i=0;for(;i<s;++i)this.getParsed(i)[n.axis]!==null&&!o[i].hidden&&o[i].draw(this._ctx)}}ce(Ka,"id","bar"),ce(Ka,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ce(Ka,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class qa extends Sn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,o,s){const i=super.parsePrimitiveData(t,n,o,s);for(let a=0;a<i.length;a++)i[a]._custom=this.resolveDataElementOptions(a+o).radius;return i}parseArrayData(t,n,o,s){const i=super.parseArrayData(t,n,o,s);for(let a=0;a<i.length;a++){const r=n[o+a];i[a]._custom=Pe(r[2],this.resolveDataElementOptions(a+o).radius)}return i}parseObjectData(t,n,o,s){const i=super.parseObjectData(t,n,o,s);for(let a=0;a<i.length;a++){const r=n[o+a];i[a]._custom=Pe(r&&r.r&&+r.r,this.resolveDataElementOptions(a+o).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let o=t.length-1;o>=0;--o)n=Math.max(n,t[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:i}=n,a=this.getParsed(t),r=s.getLabelForValue(a.x),l=i.getLabelForValue(a.y),u=a._custom;return{label:o[t]||"",value:"("+r+", "+l+(u?", "+u:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,o,s){const i=s==="reset",{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(n,s),c=a.axis,d=r.axis;for(let f=n;f<n+o;f++){const h=t[f],p=!i&&this.getParsed(f),g={},m=g[c]=i?a.getPixelForDecimal(.5):a.getPixelForValue(p[c]),b=g[d]=i?r.getBasePixel():r.getPixelForValue(p[d]);g.skip=isNaN(m)||isNaN(b),u&&(g.options=l||this.resolveDataElementOptions(f,h.active?"active":s),i&&(g.options.radius=0)),this.updateElement(h,f,g,s)}}resolveDataElementOptions(t,n){const o=this.getParsed(t);let s=super.resolveDataElementOptions(t,n);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const i=s.radius;return n!=="active"&&(s.radius=0),s.radius+=Pe(o&&o._custom,i),s}}ce(qa,"id","bubble"),ce(qa,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ce(qa,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function RR(e,t,n){let o=1,s=1,i=0,a=0;if(t<it){const r=e,l=r+t,u=Math.cos(r),c=Math.sin(r),d=Math.cos(l),f=Math.sin(l),h=(S,_,y)=>Hi(S,r,l,!0)?1:Math.max(_,_*n,y,y*n),p=(S,_,y)=>Hi(S,r,l,!0)?-1:Math.min(_,_*n,y,y*n),g=h(0,u,d),m=h(pt,c,f),b=p(at,u,d),w=p(at+pt,c,f);o=(g-b)/2,s=(m-w)/2,i=-(g+b)/2,a=-(m+w)/2}return{ratioX:o,ratioY:s,offsetX:i,offsetY:a}}class Qo extends Sn{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const o=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=o;else{let i=l=>+o[l];if(Be(o[t])){const{key:l="value"}=this._parsing;i=u=>+Oo(o[u],l)}let a,r;for(a=t,r=t+n;a<r;++a)s._parsed[a]=i(a)}}_getRotation(){return _n(this.options.rotation-90)}_getCircumference(){return _n(this.options.circumference)}_getRotationExtents(){let t=it,n=-it;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const s=this.chart.getDatasetMeta(o).controller,i=s._getRotation(),a=s._getCircumference();t=Math.min(t,i),n=Math.max(n,i+a)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:o}=n,s=this._cachedMeta,i=s.data,a=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,r=Math.max((Math.min(o.width,o.height)-a)/2,0),l=Math.min(KA(this.options.cutout,r),1),u=this._getRingWeight(this.index),{circumference:c,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:g}=RR(d,c,l),m=(o.width-a)/f,b=(o.height-a)/h,w=Math.max(Math.min(m,b)/2,0),S=Mm(this.options.radius,w),_=Math.max(S*l,0),y=(S-_)/this._getVisibleDatasetWeightTotal();this.offsetX=p*S,this.offsetY=g*S,s.total=this.calculateTotal(),this.outerRadius=S-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const o=this.options,s=this._cachedMeta,i=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*i/it)}updateElements(t,n,o,s){const i=s==="reset",a=this.chart,r=a.chartArea,u=a.options.animation,c=(r.left+r.right)/2,d=(r.top+r.bottom)/2,f=i&&u.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:g,includeOptions:m}=this._getSharedOptions(n,s);let b=this._getRotation(),w;for(w=0;w<n;++w)b+=this._circumference(w,i);for(w=n;w<n+o;++w){const S=this._circumference(w,i),_=t[w],y={x:c+this.offsetX,y:d+this.offsetY,startAngle:b,endAngle:b+S,circumference:S,outerRadius:p,innerRadius:h};m&&(y.options=g||this.resolveDataElementOptions(w,_.active?"active":s)),b+=S,this.updateElement(_,w,y,s)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let o=0,s;for(s=0;s<n.length;s++){const i=t._parsed[s];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(o+=Math.abs(i))}return o}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?it*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart,s=o.data.labels||[],i=ia(n._parsed[t],o.options.locale);return{label:s[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const o=this.chart;let s,i,a,r,l;if(!t){for(s=0,i=o.data.datasets.length;s<i;++s)if(o.isDatasetVisible(s)){a=o.getDatasetMeta(s),t=a.data,r=a.controller;break}}if(!t)return 0;for(s=0,i=t.length;s<i;++s)l=r.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let o=0,s=t.length;o<s;++o){const i=this.resolveDataElementOptions(o);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let o=0;o<t;++o)this.chart.isDatasetVisible(o)&&(n+=this._getRingWeight(o));return n}_getRingWeight(t){return Math.max(Pe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}ce(Qo,"id","doughnut"),ce(Qo,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ce(Qo,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ce(Qo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o,color:s}}=t.legend.options;return n.labels.map((i,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:o,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}}});class Ya extends Sn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:i}=n,a=this.chart._animationsDisabled;let{start:r,count:l}=$m(n,s,a);this._drawStart=r,this._drawCount=l,Fm(n)&&(r=0,l=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!i._decimated,o.points=s;const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},t),this.updateElements(s,r,l,t)}updateElements(t,n,o,s){const i=s==="reset",{iScale:a,vScale:r,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,s),f=a.axis,h=r.axis,{spanGaps:p,segment:g}=this.options,m=zs(p)?p:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||s==="none",w=n+o,S=t.length;let _=n>0&&this.getParsed(n-1);for(let y=0;y<S;++y){const x=t[y],C=b?x:{};if(y<n||y>=w){C.skip=!0;continue}const E=this.getParsed(y),O=He(E[h]),I=C[f]=a.getPixelForValue(E[f],y),$=C[h]=i||O?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,E,l):E[h],y);C.skip=isNaN(I)||isNaN($)||O,C.stop=y>0&&Math.abs(E[f]-_[f])>m,g&&(C.parsed=E,C.raw=u.data[y]),d&&(C.options=c||this.resolveDataElementOptions(y,x.active?"active":s)),b||this.updateElement(x,y,C,s),_=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,o=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return o;const i=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,i,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ce(Ya,"id","line"),ce(Ya,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ce(Ya,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class xi extends Sn{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,o=this.chart,s=o.data.labels||[],i=ia(n._parsed[t].r,o.options.locale);return{label:s[t]||"",value:i}}parseObjectData(t,n,o,s){return jm.bind(this)(t,n,o,s)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((o,s)=>{const i=this.getParsed(s).r;!isNaN(i)&&this.chart.getDataVisibility(s)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,o=t.options,s=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(s/2,0),a=Math.max(o.cutoutPercentage?i/100*o.cutoutPercentage:1,0),r=(i-a)/t.getVisibleDatasetCount();this.outerRadius=i-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,n,o,s){const i=s==="reset",a=this.chart,l=a.options.animation,u=this._cachedMeta.rScale,c=u.xCenter,d=u.yCenter,f=u.getIndexAngle(0)-.5*at;let h=f,p;const g=360/this.countVisibleElements();for(p=0;p<n;++p)h+=this._computeAngle(p,s,g);for(p=n;p<n+o;p++){const m=t[p];let b=h,w=h+this._computeAngle(p,s,g),S=a.getDataVisibility(p)?u.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=w,i&&(l.animateScale&&(S=0),l.animateRotate&&(b=w=f));const _={x:c,y:d,innerRadius:0,outerRadius:S,startAngle:b,endAngle:w,options:this.resolveDataElementOptions(p,m.active?"active":s)};this.updateElement(m,p,_,s)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((o,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(t,n,o){return this.chart.getDataVisibility(t)?_n(this.resolveDataElementOptions(t,n).angle||o):0}}ce(xi,"id","polarArea"),ce(xi,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ce(xi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:o,color:s}}=t.legend.options;return n.labels.map((i,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:o,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,n,o){o.chart.toggleDataVisibility(n.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Ql extends Qo{}ce(Ql,"id","pie"),ce(Ql,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ga extends Sn{getLabelAndValue(t){const n=this._cachedMeta.vScale,o=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(t,n,o,s){return jm.bind(this)(t,n,o,s)}update(t){const n=this._cachedMeta,o=n.dataset,s=n.data||[],i=n.iScale.getLabels();if(o.points=s,t!=="resize"){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const r={_loop:!0,_fullLoop:i.length===s.length,options:a};this.updateElement(o,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(t,n,o,s){const i=this._cachedMeta.rScale,a=s==="reset";for(let r=n;r<n+o;r++){const l=t[r],u=this.resolveDataElementOptions(r,l.active?"active":s),c=i.getPointPositionForValue(r,this.getParsed(r).r),d=a?i.xCenter:c.x,f=a?i.yCenter:c.y,h={x:d,y:f,angle:c.angle,skip:isNaN(d)||isNaN(f),options:u};this.updateElement(l,r,h,s)}}}ce(Ga,"id","radar"),ce(Ga,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ce(Ga,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Xa extends Sn{getLabelAndValue(t){const n=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:i}=n,a=this.getParsed(t),r=s.getLabelForValue(a.x),l=i.getLabelForValue(a.y);return{label:o[t]||"",value:"("+r+", "+l+")"}}update(t){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:i,count:a}=$m(n,o,s);if(this._drawStart=i,this._drawCount=a,Fm(n)&&(i=0,a=o.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:l}=n;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!l._decimated,r.points=o;const u=this.resolveDatasetElementOptions(t);u.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:u},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(o,i,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,o,s){const i=s==="reset",{iScale:a,vScale:r,_stacked:l,_dataset:u}=this._cachedMeta,c=this.resolveDataElementOptions(n,s),d=this.getSharedOptions(c),f=this.includeOptions(s,d),h=a.axis,p=r.axis,{spanGaps:g,segment:m}=this.options,b=zs(g)?g:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||i||s==="none";let S=n>0&&this.getParsed(n-1);for(let _=n;_<n+o;++_){const y=t[_],x=this.getParsed(_),C=w?y:{},E=He(x[p]),O=C[h]=a.getPixelForValue(x[h],_),I=C[p]=i||E?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,x,l):x[p],_);C.skip=isNaN(O)||isNaN(I)||E,C.stop=_>0&&Math.abs(x[h]-S[h])>b,m&&(C.parsed=x,C.raw=u.data[_]),f&&(C.options=d||this.resolveDataElementOptions(_,y.active?"active":s)),w||this.updateElement(y,_,C,s),S=x}this.updateSharedOptions(d,s,c)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let r=0;for(let l=n.length-1;l>=0;--l)r=Math.max(r,n[l].size(this.resolveDataElementOptions(l))/2);return r>0&&r}const o=t.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const i=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,i,a)/2}}ce(Xa,"id","scatter"),ce(Xa,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ce(Xa,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var LR=Object.freeze({__proto__:null,BarController:Ka,BubbleController:qa,DoughnutController:Qo,LineController:Ya,PieController:Ql,PolarAreaController:xi,RadarController:Ga,ScatterController:Xa});function Vo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class _c{constructor(t){ce(this,"options");this.options=t||{}}static override(t){Object.assign(_c.prototype,t)}init(){}formats(){return Vo()}parse(){return Vo()}format(){return Vo()}add(){return Vo()}diff(){return Vo()}startOf(){return Vo()}endOf(){return Vo()}}var IR={_date:_c};function $R(e,t,n,o){const{controller:s,data:i,_sorted:a}=e,r=s._cachedMeta.iScale;if(r&&t===r.axis&&t!=="r"&&a&&i.length){const l=r._reversePixels?s2:eo;if(o){if(s._sharedOptions){const u=i[0],c=typeof u.getRange=="function"&&u.getRange(t);if(c){const d=l(i,t,n-c),f=l(i,t,n+c);return{lo:d.lo,hi:f.hi}}}}else return l(i,t,n)}return{lo:0,hi:i.length-1}}function aa(e,t,n,o,s){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let r=0,l=i.length;r<l;++r){const{index:u,data:c}=i[r],{lo:d,hi:f}=$R(i[r],t,a,s);for(let h=d;h<=f;++h){const p=c[h];p.skip||o(p,u,h)}}}function FR(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(o,s){const i=t?Math.abs(o.x-s.x):0,a=n?Math.abs(o.y-s.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function sl(e,t,n,o,s){const i=[];return!s&&!e.isPointInArea(t)||aa(e,n,t,function(r,l,u){!s&&!to(r,e.chartArea,0)||r.inRange(t.x,t.y,o)&&i.push({element:r,datasetIndex:l,index:u})},!0),i}function BR(e,t,n,o){let s=[];function i(a,r,l){const{startAngle:u,endAngle:c}=a.getProps(["startAngle","endAngle"],o),{angle:d}=Om(a,{x:t.x,y:t.y});Hi(d,u,c)&&s.push({element:a,datasetIndex:r,index:l})}return aa(e,n,t,i),s}function DR(e,t,n,o,s,i){let a=[];const r=FR(n);let l=Number.POSITIVE_INFINITY;function u(c,d,f){const h=c.inRange(t.x,t.y,s);if(o&&!h)return;const p=c.getCenterPoint(s);if(!(!!i||e.isPointInArea(p))&&!h)return;const m=r(t,p);m<l?(a=[{element:c,datasetIndex:d,index:f}],l=m):m===l&&a.push({element:c,datasetIndex:d,index:f})}return aa(e,n,t,u),a}function il(e,t,n,o,s,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!o?BR(e,t,n,s):DR(e,t,n,o,s,i)}function Bf(e,t,n,o,s){const i=[],a=n==="x"?"inXRange":"inYRange";let r=!1;return aa(e,n,t,(l,u,c)=>{l[a]&&l[a](t[n],s)&&(i.push({element:l,datasetIndex:u,index:c}),r=r||l.inRange(t.x,t.y,s))}),o&&!r?[]:i}var NR={evaluateInteractionItems:aa,modes:{index(e,t,n,o){const s=jo(t,e),i=n.axis||"x",a=n.includeInvisible||!1,r=n.intersect?sl(e,s,i,o,a):il(e,s,i,!1,o,a),l=[];return r.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=r[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,o){const s=jo(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let r=n.intersect?sl(e,s,i,o,a):il(e,s,i,!1,o,a);if(r.length>0){const l=r[0].datasetIndex,u=e.getDatasetMeta(l).data;r=[];for(let c=0;c<u.length;++c)r.push({element:u[c],datasetIndex:l,index:c})}return r},point(e,t,n,o){const s=jo(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return sl(e,s,i,o,a)},nearest(e,t,n,o){const s=jo(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return il(e,s,i,n.intersect,o,a)},x(e,t,n,o){const s=jo(t,e);return Bf(e,s,"x",n.intersect,o)},y(e,t,n,o){const s=jo(t,e);return Bf(e,s,"y",n.intersect,o)}}};const ev=["left","top","right","bottom"];function ti(e,t){return e.filter(n=>n.pos===t)}function Df(e,t){return e.filter(n=>ev.indexOf(n.pos)===-1&&n.box.axis===t)}function ni(e,t){return e.sort((n,o)=>{const s=t?o:n,i=t?n:o;return s.weight===i.weight?s.index-i.index:s.weight-i.weight})}function zR(e){const t=[];let n,o,s,i,a,r;for(n=0,o=(e||[]).length;n<o;++n)s=e[n],{position:i,options:{stack:a,stackWeight:r=1}}=s,t.push({index:n,box:s,pos:i,horizontal:s.isHorizontal(),weight:s.weight,stack:a&&i+a,stackWeight:r});return t}function VR(e){const t={};for(const n of e){const{stack:o,pos:s,stackWeight:i}=n;if(!o||!ev.includes(s))continue;const a=t[o]||(t[o]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return t}function HR(e,t){const n=VR(e),{vBoxMaxWidth:o,hBoxMaxHeight:s}=t;let i,a,r;for(i=0,a=e.length;i<a;++i){r=e[i];const{fullSize:l}=r.box,u=n[r.stack],c=u&&r.stackWeight/u.weight;r.horizontal?(r.width=c?c*o:l&&t.availableWidth,r.height=s):(r.width=o,r.height=c?c*s:l&&t.availableHeight)}return n}function WR(e){const t=zR(e),n=ni(t.filter(u=>u.box.fullSize),!0),o=ni(ti(t,"left"),!0),s=ni(ti(t,"right")),i=ni(ti(t,"top"),!0),a=ni(ti(t,"bottom")),r=Df(t,"x"),l=Df(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:s.concat(l).concat(a).concat(r),chartArea:ti(t,"chartArea"),vertical:o.concat(s).concat(l),horizontal:i.concat(a).concat(r)}}function Nf(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function tv(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function jR(e,t,n,o){const{pos:s,box:i}=n,a=e.maxPadding;if(!Be(s)){n.size&&(e[s]-=n.size);const d=o[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?i.height:i.width),n.size=d.size/d.count,e[s]+=n.size}i.getPadding&&tv(a,i.getPadding());const r=Math.max(0,t.outerWidth-Nf(a,e,"left","right")),l=Math.max(0,t.outerHeight-Nf(a,e,"top","bottom")),u=r!==e.w,c=l!==e.h;return e.w=r,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function UR(e){const t=e.maxPadding;function n(o){const s=Math.max(t[o]-e[o],0);return e[o]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function KR(e,t){const n=t.maxPadding;function o(s){const i={left:0,top:0,right:0,bottom:0};return s.forEach(a=>{i[a]=Math.max(t[a],n[a])}),i}return o(e?["left","right"]:["top","bottom"])}function ui(e,t,n,o){const s=[];let i,a,r,l,u,c;for(i=0,a=e.length,u=0;i<a;++i){r=e[i],l=r.box,l.update(r.width||t.w,r.height||t.h,KR(r.horizontal,t));const{same:d,other:f}=jR(t,n,r,o);u|=d&&s.length,c=c||f,l.fullSize||s.push(r)}return u&&ui(s,t,n,o)||c}function Ma(e,t,n,o,s){e.top=n,e.left=t,e.right=t+o,e.bottom=n+s,e.width=o,e.height=s}function zf(e,t,n,o){const s=n.padding;let{x:i,y:a}=t;for(const r of e){const l=r.box,u=o[r.stack]||{count:1,placed:0,weight:1},c=r.stackWeight/u.weight||1;if(r.horizontal){const d=t.w*c,f=u.size||l.height;Vi(u.start)&&(a=u.start),l.fullSize?Ma(l,s.left,a,n.outerWidth-s.right-s.left,f):Ma(l,t.left+u.placed,a,d,f),u.start=a,u.placed+=d,a=l.bottom}else{const d=t.h*c,f=u.size||l.width;Vi(u.start)&&(i=u.start),l.fullSize?Ma(l,i,s.top,f,n.outerHeight-s.bottom-s.top):Ma(l,i,t.top+u.placed,f,d),u.start=i,u.placed+=d,i=l.right}}t.x=i,t.y=a}var Ot={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const s=Rt(e.options.layout.padding),i=Math.max(t-s.width,0),a=Math.max(n-s.height,0),r=WR(e.boxes),l=r.vertical,u=r.horizontal;Ge(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const c=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/c,hBoxMaxHeight:a/2}),f=Object.assign({},s);tv(f,Rt(o));const h=Object.assign({maxPadding:f,w:i,h:a,x:s.left,y:s.top},s),p=HR(l.concat(u),d);ui(r.fullSize,h,d,p),ui(l,h,d,p),ui(u,h,d,p)&&ui(l,h,d,p),UR(h),zf(r.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,zf(r.rightAndBottom,h,d,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Ge(r.chartArea,g=>{const m=g.box;Object.assign(m,e.chartArea),m.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class nv{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,o){}removeEventListener(t,n,o){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,o,s){return n=Math.max(0,n||t.width),o=o||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):o)}}isAttached(t){return!0}updateConfig(t){}}class qR extends nv{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ja="$chartjs",YR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vf=e=>e===null||e==="";function GR(e,t){const n=e.style,o=e.getAttribute("height"),s=e.getAttribute("width");if(e[Ja]={initial:{height:o,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vf(s)){const i=Cf(e,"width");i!==void 0&&(e.width=i)}if(Vf(o))if(e.style.height==="")e.height=e.width/(t||2);else{const i=Cf(e,"height");i!==void 0&&(e.height=i)}return e}const ov=J2?{passive:!0}:!1;function XR(e,t,n){e&&e.addEventListener(t,n,ov)}function JR(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ov)}function QR(e,t){const n=YR[e.type]||e.type,{x:o,y:s}=jo(e,t);return{type:n,chart:t,native:e,x:o!==void 0?o:null,y:s!==void 0?s:null}}function pr(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function ZR(e,t,n){const o=e.canvas,s=new MutationObserver(i=>{let a=!1;for(const r of i)a=a||pr(r.addedNodes,o),a=a&&!pr(r.removedNodes,o);a&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function eL(e,t,n){const o=e.canvas,s=new MutationObserver(i=>{let a=!1;for(const r of i)a=a||pr(r.removedNodes,o),a=a&&!pr(r.addedNodes,o);a&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const ji=new Map;let Hf=0;function sv(){const e=window.devicePixelRatio;e!==Hf&&(Hf=e,ji.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function tL(e,t){ji.size||window.addEventListener("resize",sv),ji.set(e,t)}function nL(e){ji.delete(e),ji.size||window.removeEventListener("resize",sv)}function oL(e,t,n){const o=e.canvas,s=o&&yc(o);if(!s)return;const i=Im((r,l)=>{const u=s.clientWidth;n(r,l),u<s.clientWidth&&n()},window),a=new ResizeObserver(r=>{const l=r[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||i(u,c)});return a.observe(s),tL(e,i),a}function al(e,t,n){n&&n.disconnect(),t==="resize"&&nL(e)}function sL(e,t,n){const o=e.canvas,s=Im(i=>{e.ctx!==null&&n(QR(i,e))},e);return XR(o,t,s),s}class iL extends nv{acquireContext(t,n){const o=t&&t.getContext&&t.getContext("2d");return o&&o.canvas===t?(GR(t,n),o):null}releaseContext(t){const n=t.canvas;if(!n[Ja])return!1;const o=n[Ja].initial;["height","width"].forEach(i=>{const a=o[i];He(a)?n.removeAttribute(i):n.setAttribute(i,a)});const s=o.style||{};return Object.keys(s).forEach(i=>{n.style[i]=s[i]}),n.width=n.width,delete n[Ja],!0}addEventListener(t,n,o){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),a={attach:ZR,detach:eL,resize:oL}[n]||sL;s[n]=a(t,n,o)}removeEventListener(t,n){const o=t.$proxies||(t.$proxies={}),s=o[n];if(!s)return;({attach:al,detach:al,resize:al}[n]||JR)(t,n,s),o[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,o,s){return X2(t,n,o,s)}isAttached(t){const n=t&&yc(t);return!!(n&&n.isConnected)}}function aL(e){return!bc()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?qR:iL}class Cn{constructor(){ce(this,"x");ce(this,"y");ce(this,"active",!1);ce(this,"options");ce(this,"$animations")}tooltipPosition(t){const{x:n,y:o}=this.getProps(["x","y"],t);return{x:n,y:o}}hasValue(){return zs(this.x)&&zs(this.y)}getProps(t,n){const o=this.$animations;if(!n||!o)return this;const s={};return t.forEach(i=>{s[i]=o[i]&&o[i].active()?o[i]._to:this[i]}),s}}ce(Cn,"defaults",{}),ce(Cn,"defaultRoutes");function rL(e,t){const n=e.options.ticks,o=lL(e),s=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?cL(t):[],a=i.length,r=i[0],l=i[a-1],u=[];if(a>s)return dL(t,u,i,a/s),u;const c=uL(i,t,s);if(a>0){let d,f;const h=a>1?Math.round((l-r)/(a-1)):null;for(Ta(t,u,c,He(h)?0:r-h,r),d=0,f=a-1;d<f;d++)Ta(t,u,c,i[d],i[d+1]);return Ta(t,u,c,l,He(h)?t.length:l+h),u}return Ta(t,u,c),u}function lL(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(o,s))}function uL(e,t,n){const o=fL(e),s=t.length/n;if(!o)return Math.max(s,1);const i=e2(o);for(let a=0,r=i.length-1;a<r;a++){const l=i[a];if(l>s)return l}return Math.max(s,1)}function cL(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}function dL(e,t,n,o){let s=0,i=n[0],a;for(o=Math.ceil(o),a=0;a<e.length;a++)a===i&&(t.push(e[a]),s++,i=n[s*o])}function Ta(e,t,n,o,s){const i=Pe(o,0),a=Math.min(Pe(s,e.length),e.length);let r=0,l,u,c;for(n=Math.ceil(n),s&&(l=s-o,n=l/Math.floor(l/n)),c=i;c<0;)r++,c=Math.round(i+r*n);for(u=Math.max(i,0);u<a;u++)u===c&&(t.push(e[u]),r++,c=Math.round(i+r*n))}function fL(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}const hL=e=>e==="left"?"right":e==="right"?"left":e,Wf=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,jf=(e,t)=>Math.min(t||e,e);function Uf(e,t){const n=[],o=e.length/t,s=e.length;let i=0;for(;i<s;i+=o)n.push(e[Math.floor(i)]);return n}function pL(e,t,n){const o=e.ticks.length,s=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,r=1e-6;let l=e.getPixelForTick(s),u;if(!(n&&(o===1?u=Math.max(l-i,a-l):t===0?u=(e.getPixelForTick(1)-l)/2:u=(l-e.getPixelForTick(s-1))/2,l+=s<t?u:-u,l<i-r||l>a+r)))return l}function gL(e,t){Ge(e,n=>{const o=n.gc,s=o.length/2;let i;if(s>t){for(i=0;i<s;++i)delete n.data[o[i]];o.splice(0,s)}})}function oi(e){return e.drawTicks?e.tickLength:0}function Kf(e,t){if(!e.display)return 0;const n=vt(e.font,t),o=Rt(e.padding);return(st(e.text)?e.text.length:1)*n.lineHeight+o.height}function mL(e,t){return Fo(e,{scale:t,type:"scale"})}function vL(e,t,n){return Fo(e,{tick:n,index:t,type:"tick"})}function bL(e,t,n){let o=fc(e);return(n&&t!=="right"||!n&&t==="right")&&(o=hL(o)),o}function yL(e,t,n,o){const{top:s,left:i,bottom:a,right:r,chart:l}=e,{chartArea:u,scales:c}=l;let d=0,f,h,p;const g=a-s,m=r-i;if(e.isHorizontal()){if(h=Et(o,i,r),Be(n)){const b=Object.keys(n)[0],w=n[b];p=c[b].getPixelForValue(w)+g-t}else n==="center"?p=(u.bottom+u.top)/2+g-t:p=Wf(e,n,t);f=r-i}else{if(Be(n)){const b=Object.keys(n)[0],w=n[b];h=c[b].getPixelForValue(w)-m+t}else n==="center"?h=(u.left+u.right)/2-m+t:h=Wf(e,n,t);p=Et(o,a,s),d=n==="left"?-pt:pt}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class gs extends Cn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:o,_suggestedMax:s}=this;return t=Gt(t,Number.POSITIVE_INFINITY),n=Gt(n,Number.NEGATIVE_INFINITY),o=Gt(o,Number.POSITIVE_INFINITY),s=Gt(s,Number.NEGATIVE_INFINITY),{min:Gt(t,o),max:Gt(n,s),minDefined:ht(t),maxDefined:ht(n)}}getMinMax(t){let{min:n,max:o,minDefined:s,maxDefined:i}=this.getUserBounds(),a;if(s&&i)return{min:n,max:o};const r=this.getMatchingVisibleMetas();for(let l=0,u=r.length;l<u;++l)a=r[l].controller.getMinMax(this,t),s||(n=Math.min(n,a.min)),i||(o=Math.max(o,a.max));return n=i&&n>o?o:n,o=s&&n>o?n:o,{min:Gt(n,Gt(o,n)),max:Gt(o,Gt(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){et(this.options.beforeUpdate,[this])}update(t,n,o){const{beginAtZero:s,grace:i,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=o=Object.assign({left:0,right:0,top:0,bottom:0},o),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+o.left+o.right:this.height+o.top+o.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=T2(this,i,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r<this.ticks.length;this._convertTicksToLabels(l?Uf(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=rL(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,o;this.isHorizontal()?(n=this.left,o=this.right):(n=this.top,o=this.bottom,t=!t),this._startPixel=n,this._endPixel=o,this._reversePixels=t,this._length=o-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){et(this.options.afterUpdate,[this])}beforeSetDimensions(){et(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){et(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),et(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){et(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let o,s,i;for(o=0,s=t.length;o<s;o++)i=t[o],i.label=et(n.callback,[i.value,o,t],this)}afterTickToLabelConversion(){et(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){et(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,o=jf(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,i=n.maxRotation;let a=s,r,l,u;if(!this._isVisible()||!n.display||s>=i||o<=1||!this.isHorizontal()){this.labelRotation=s;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=_t(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/o:h/(o-1),d+6>r&&(r=h/(o-(t.offset?.5:1)),l=this.maxHeight-oi(t.grid)-n.padding-Kf(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),a=cc(Math.min(Math.asin(_t((c.highest.height+6)/r,-1,1)),Math.asin(_t(l/u,-1,1))-Math.asin(_t(f/u,-1,1)))),a=Math.max(s,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){et(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){et(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:o,title:s,grid:i}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const l=Kf(s,n.options.font);if(r?(t.width=this.maxWidth,t.height=oi(i)+l):(t.height=this.maxHeight,t.width=oi(i)+l),o.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=o.padding*2,p=_n(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(r){const b=o.mirror?0:m*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+b+h)}else{const b=o.mirror?0:g*d.width+m*f.height;t.width=Math.min(this.maxWidth,t.width+b+h)}this._calculatePadding(u,c,m,g)}}this._handleMargins(),r?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,o,s){const{ticks:{align:i,padding:a},position:r}=this.options,l=this.labelRotation!==0,u=r!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=s*t.width,h=o*n.height):(f=o*t.height,h=s*n.width):i==="start"?h=n.width:i==="end"?f=t.width:i!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+a)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+a)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;i==="start"?(c=0,d=t.height):i==="end"&&(c=n.height,d=0),this.paddingTop=c+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){et(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,o;for(n=0,o=t.length;n<o;n++)He(t[n].label)&&(t.splice(n,1),o--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let o=this.ticks;n<o.length&&(o=Uf(o,n)),this._labelSizes=t=this._computeLabelSizes(o,o.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,o){const{ctx:s,_longestTextCache:i}=this,a=[],r=[],l=Math.floor(n/jf(n,o));let u=0,c=0,d,f,h,p,g,m,b,w,S,_,y;for(d=0;d<n;d+=l){if(p=t[d].label,g=this._resolveTickFontOptions(d),s.font=m=g.string,b=i[m]=i[m]||{data:{},gc:[]},w=g.lineHeight,S=_=0,!He(p)&&!st(p))S=fr(s,b.data,b.gc,S,p),_=w;else if(st(p))for(f=0,h=p.length;f<h;++f)y=p[f],!He(y)&&!st(y)&&(S=fr(s,b.data,b.gc,S,y),_+=w);a.push(S),r.push(_),u=Math.max(S,u),c=Math.max(_,c)}gL(i,n);const x=a.indexOf(u),C=r.indexOf(c),E=O=>({width:a[O]||0,height:r[O]||0});return{first:E(0),last:E(n-1),widest:E(x),highest:E(C),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return o2(this._alignToPixels?zo(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const o=n[t];return o.$context||(o.$context=vL(this.getContext(),t,o))}return this.$context||(this.$context=mL(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=_n(this.labelRotation),o=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),i=this._getLabelSizes(),a=t.autoSkipPadding||0,r=i?i.widest.width+a:0,l=i?i.highest.height+a:0;return this.isHorizontal()?l*o>r*s?r/o:l/s:l*s<r*o?l/o:r/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,o=this.chart,s=this.options,{grid:i,position:a,border:r}=s,l=i.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=oi(i),h=[],p=r.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,b=function(z){return zo(o,z,g)};let w,S,_,y,x,C,E,O,I,$,N,j;if(a==="top")w=b(this.bottom),C=this.bottom-f,O=w-m,$=b(t.top)+m,j=t.bottom;else if(a==="bottom")w=b(this.top),$=t.top,j=b(t.bottom)-m,C=w+m,O=this.top+f;else if(a==="left")w=b(this.right),x=this.right-f,E=w-m,I=b(t.left)+m,N=t.right;else if(a==="right")w=b(this.left),I=t.left,N=b(t.right)-m,x=w+m,E=this.left+f;else if(n==="x"){if(a==="center")w=b((t.top+t.bottom)/2+.5);else if(Be(a)){const z=Object.keys(a)[0],J=a[z];w=b(this.chart.scales[z].getPixelForValue(J))}$=t.top,j=t.bottom,C=w+m,O=C+f}else if(n==="y"){if(a==="center")w=b((t.left+t.right)/2);else if(Be(a)){const z=Object.keys(a)[0],J=a[z];w=b(this.chart.scales[z].getPixelForValue(J))}x=w-m,E=x-f,I=t.left,N=t.right}const ae=Pe(s.ticks.maxTicksLimit,d),Y=Math.max(1,Math.ceil(d/ae));for(S=0;S<d;S+=Y){const z=this.getContext(S),J=i.setContext(z),U=r.setContext(z),H=J.lineWidth,de=J.color,Se=U.dash||[],te=U.dashOffset,X=J.tickWidth,Q=J.tickColor,oe=J.tickBorderDash||[],ne=J.tickBorderDashOffset;_=pL(this,S,l),_!==void 0&&(y=zo(o,_,H),u?x=E=I=N=y:C=O=$=j=y,h.push({tx1:x,ty1:C,tx2:E,ty2:O,x1:I,y1:$,x2:N,y2:j,width:H,color:de,borderDash:Se,borderDashOffset:te,tickWidth:X,tickColor:Q,tickBorderDash:oe,tickBorderDashOffset:ne}))}return this._ticksLength=d,this._borderValue=w,h}_computeLabelItems(t){const n=this.axis,o=this.options,{position:s,ticks:i}=o,a=this.isHorizontal(),r=this.ticks,{align:l,crossAlign:u,padding:c,mirror:d}=i,f=oi(o.grid),h=f+c,p=d?-c:h,g=-_n(this.labelRotation),m=[];let b,w,S,_,y,x,C,E,O,I,$,N,j="middle";if(s==="top")x=this.bottom-p,C=this._getXAxisLabelAlignment();else if(s==="bottom")x=this.top+p,C=this._getXAxisLabelAlignment();else if(s==="left"){const Y=this._getYAxisLabelAlignment(f);C=Y.textAlign,y=Y.x}else if(s==="right"){const Y=this._getYAxisLabelAlignment(f);C=Y.textAlign,y=Y.x}else if(n==="x"){if(s==="center")x=(t.top+t.bottom)/2+h;else if(Be(s)){const Y=Object.keys(s)[0],z=s[Y];x=this.chart.scales[Y].getPixelForValue(z)+h}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")y=(t.left+t.right)/2-h;else if(Be(s)){const Y=Object.keys(s)[0],z=s[Y];y=this.chart.scales[Y].getPixelForValue(z)}C=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?j="top":l==="end"&&(j="bottom"));const ae=this._getLabelSizes();for(b=0,w=r.length;b<w;++b){S=r[b],_=S.label;const Y=i.setContext(this.getContext(b));E=this.getPixelForTick(b)+i.labelOffset,O=this._resolveTickFontOptions(b),I=O.lineHeight,$=st(_)?_.length:1;const z=$/2,J=Y.color,U=Y.textStrokeColor,H=Y.textStrokeWidth;let de=C;a?(y=E,C==="inner"&&(b===w-1?de=this.options.reverse?"left":"right":b===0?de=this.options.reverse?"right":"left":de="center"),s==="top"?u==="near"||g!==0?N=-$*I+I/2:u==="center"?N=-ae.highest.height/2-z*I+I:N=-ae.highest.height+I/2:u==="near"||g!==0?N=I/2:u==="center"?N=ae.highest.height/2-z*I:N=ae.highest.height-$*I,d&&(N*=-1),g!==0&&!Y.showLabelBackdrop&&(y+=I/2*Math.sin(g))):(x=E,N=(1-$)*I/2);let Se;if(Y.showLabelBackdrop){const te=Rt(Y.backdropPadding),X=ae.heights[b],Q=ae.widths[b];let oe=N-te.top,ne=0-te.left;switch(j){case"middle":oe-=X/2;break;case"bottom":oe-=X;break}switch(C){case"center":ne-=Q/2;break;case"right":ne-=Q;break;case"inner":b===w-1?ne-=Q:b>0&&(ne-=Q/2);break}Se={left:ne,top:oe,width:Q+te.width,height:X+te.height,color:Y.backdropColor}}m.push({label:_,font:O,textOffset:N,options:{rotation:g,color:J,strokeColor:U,strokeWidth:H,textAlign:de,textBaseline:j,translation:[y,x],backdrop:Se}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-_n(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:o,mirror:s,padding:i}}=this.options,a=this._getLabelSizes(),r=t+i,l=a.widest.width;let u,c;return n==="left"?s?(c=this.right+i,o==="near"?u="left":o==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-r,o==="near"?u="right":o==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?s?(c=this.left+i,o==="near"?u="right":o==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+r,o==="near"?u="left":o==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:o,top:s,width:i,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(o,s,i,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(i=>i.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,o=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,a;const r=(l,u,c)=>{!c.width||!c.color||(o.save(),o.lineWidth=c.width,o.strokeStyle=c.color,o.setLineDash(c.borderDash||[]),o.lineDashOffset=c.borderDashOffset,o.beginPath(),o.moveTo(l.x,l.y),o.lineTo(u.x,u.y),o.stroke(),o.restore())};if(n.display)for(i=0,a=s.length;i<a;++i){const l=s[i];n.drawOnChartArea&&r({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&r({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:o,grid:s}}=this,i=o.setContext(this.getContext()),a=o.display?i.width:0;if(!a)return;const r=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let u,c,d,f;this.isHorizontal()?(u=zo(t,this.left,a)-a/2,c=zo(t,this.right,r)+r/2,d=f=l):(d=zo(t,this.top,a)-a/2,f=zo(t,this.bottom,r)+r/2,u=c=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(u,d),n.lineTo(c,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const o=this.ctx,s=this._computeLabelArea();s&&Or(o,s);const i=this.getLabelItems(t);for(const a of i){const r=a.options,l=a.font,u=a.label,c=a.textOffset;cs(o,u,0,c,l,r)}s&&Ar(o)}drawTitle(){const{ctx:t,options:{position:n,title:o,reverse:s}}=this;if(!o.display)return;const i=vt(o.font),a=Rt(o.padding),r=o.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||Be(n)?(l+=a.bottom,st(o.text)&&(l+=i.lineHeight*(o.text.length-1))):l+=a.top;const{titleX:u,titleY:c,maxWidth:d,rotation:f}=yL(this,l,n,r);cs(t,o.text,0,0,i,{color:o.color,maxWidth:d,rotation:f,textAlign:bL(r,n,s),textBaseline:"middle",translation:[u,c]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,o=Pe(t.grid&&t.grid.z,-1),s=Pe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==gs.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:o,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),o=this.axis+"AxisID",s=[];let i,a;for(i=0,a=n.length;i<a;++i){const r=n[i];r[o]===this.id&&(!t||r.type===t)&&s.push(r)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return vt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Pa{constructor(t,n,o){this.type=t,this.scope=n,this.override=o,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let o;SL(n)&&(o=this.register(n));const s=this.items,i=t.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in s||(s[i]=t,_L(t,a,o),this.override&&ut.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,o=t.id,s=this.scope;o in n&&delete n[o],s&&o in ut[s]&&(delete ut[s][o],this.override&&delete us[o])}}function _L(e,t,n){const o=zi(Object.create(null),[n?ut.get(n):{},ut.get(t),e.defaults]);ut.set(t,o),e.defaultRoutes&&wL(t,e.defaultRoutes),e.descriptors&&ut.describe(t,e.descriptors)}function wL(e,t){Object.keys(t).forEach(n=>{const o=n.split("."),s=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),r=a.pop(),l=a.join(".");ut.route(i,s,l,r)})}function SL(e){return"id"in e&&"defaults"in e}class xL{constructor(){this.controllers=new Pa(Sn,"datasets",!0),this.elements=new Pa(Cn,"elements"),this.plugins=new Pa(Object,"plugins"),this.scales=new Pa(gs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,o){[...n].forEach(s=>{const i=o||this._getRegistryForType(s);o||i.isForType(s)||i===this.plugins&&s.id?this._exec(t,i,s):Ge(s,a=>{const r=o||this._getRegistryForType(a);this._exec(t,r,a)})})}_exec(t,n,o){const s=uc(t);et(o["before"+s],[],o),n[t](o),et(o["after"+s],[],o)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const o=this._typedRegistries[n];if(o.isForType(t))return o}return this.plugins}_get(t,n,o){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+o+".");return s}}var Ln=new xL;class CL{constructor(){this._init=[]}notify(t,n,o,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=s?this._descriptors(t).filter(s):this._descriptors(t),a=this._notify(i,t,n,o);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,n,o,s){s=s||{};for(const i of t){const a=i.plugin,r=a[o],l=[n,s,i.options];if(et(r,l,a)===!1&&s.cancelable)return!1}return!0}invalidate(){He(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const o=t&&t.config,s=Pe(o.options&&o.options.plugins,{}),i=kL(o);return s===!1&&!n?[]:ML(t,i,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],o=this._cache,s=(i,a)=>i.filter(r=>!a.some(l=>r.plugin.id===l.plugin.id));this._notify(s(n,o),t,"stop"),this._notify(s(o,n),t,"start")}}function kL(e){const t={},n=[],o=Object.keys(Ln.plugins.items);for(let i=0;i<o.length;i++)n.push(Ln.getPlugin(o[i]));const s=e.plugins||[];for(let i=0;i<s.length;i++){const a=s[i];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function EL(e,t){return!t&&e===!1?null:e===!0?{}:e}function ML(e,{plugins:t,localIds:n},o,s){const i=[],a=e.getContext();for(const r of t){const l=r.id,u=EL(o[l],s);u!==null&&i.push({plugin:r,options:TL(e.config,{plugin:r,local:n[l]},u,a)})}return i}function TL(e,{plugin:t,local:n},o,s){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zl(e,t){const n=ut.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function PL(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function OL(e,t){return e===t?"_index_":"_value_"}function qf(e){if(e==="x"||e==="y"||e==="r")return e}function AL(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function eu(e,...t){if(qf(e))return e;for(const n of t){const o=n.axis||AL(n.position)||e.length>1&&qf(e[0].toLowerCase());if(o)return o}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Yf(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function RL(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(o=>o.xAxisID===e||o.yAxisID===e);if(n.length)return Yf(e,"x",n[0])||Yf(e,"y",n[0])}return{}}function LL(e,t){const n=us[e.type]||{scales:{}},o=t.scales||{},s=Zl(e.type,t),i=Object.create(null);return Object.keys(o).forEach(a=>{const r=o[a];if(!Be(r))return console.error(`Invalid scale configuration for scale: ${a}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=eu(a,r,RL(a,e),ut.scales[r.type]),u=OL(l,s),c=n.scales||{};i[a]=yi(Object.create(null),[{axis:l},r,c[l],c[u]])}),e.data.datasets.forEach(a=>{const r=a.type||e.type,l=a.indexAxis||Zl(r,t),c=(us[r]||{}).scales||{};Object.keys(c).forEach(d=>{const f=PL(d,l),h=a[f+"AxisID"]||f;i[h]=i[h]||Object.create(null),yi(i[h],[{axis:f},o[h],c[d]])})}),Object.keys(i).forEach(a=>{const r=i[a];yi(r,[ut.scales[r.type],ut.scale])}),i}function iv(e){const t=e.options||(e.options={});t.plugins=Pe(t.plugins,{}),t.scales=LL(e,t)}function av(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function IL(e){return e=e||{},e.data=av(e.data),iv(e),e}const Gf=new Map,rv=new Set;function Oa(e,t){let n=Gf.get(e);return n||(n=t(),Gf.set(e,n),rv.add(n)),n}const si=(e,t,n)=>{const o=Oo(t,n);o!==void 0&&e.add(o)};class $L{constructor(t){this._config=IL(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=av(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),iv(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Oa(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Oa(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Oa(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,o=this.type;return Oa(`${o}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const o=this._scopeCache;let s=o.get(t);return(!s||n)&&(s=new Map,o.set(t,s)),s}getOptionScopes(t,n,o){const{options:s,type:i}=this,a=this._cachedScopes(t,o),r=a.get(n);if(r)return r;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>si(l,t,d))),c.forEach(d=>si(l,s,d)),c.forEach(d=>si(l,us[i]||{},d)),c.forEach(d=>si(l,ut,d)),c.forEach(d=>si(l,Xl,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),rv.has(n)&&a.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,us[n]||{},ut.datasets[n]||{},{type:n},ut,Xl]}resolveNamedOptions(t,n,o,s=[""]){const i={$shared:!0},{resolver:a,subPrefixes:r}=Xf(this._resolverCache,t,s);let l=a;if(BL(a,n)){i.$shared=!1,o=Ao(o)?o():o;const u=this.createResolver(t,o,r);l=Vs(a,o,u)}for(const u of n)i[u]=l[u];return i}createResolver(t,n,o=[""],s){const{resolver:i}=Xf(this._resolverCache,t,o);return Be(n)?Vs(i,n,void 0,s):i}}function Xf(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const s=n.join();let i=o.get(s);return i||(i={resolver:gc(t,n),subPrefixes:n.filter(r=>!r.toLowerCase().includes("hover"))},o.set(s,i)),i}const FL=e=>Be(e)&&Object.getOwnPropertyNames(e).some(t=>Ao(e[t]));function BL(e,t){const{isScriptable:n,isIndexable:o}=zm(e);for(const s of t){const i=n(s),a=o(s),r=(a||i)&&e[s];if(i&&(Ao(r)||FL(r))||a&&st(r))return!0}return!1}var DL="4.4.6";const NL=["top","bottom","left","right","chartArea"];function Jf(e,t){return e==="top"||e==="bottom"||NL.indexOf(e)===-1&&t==="x"}function Qf(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function Zf(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),et(n&&n.onComplete,[e],t)}function zL(e){const t=e.chart,n=t.options.animation;et(n&&n.onProgress,[e],t)}function lv(e){return bc()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Qa={},eh=e=>{const t=lv(e);return Object.values(Qa).filter(n=>n.canvas===t).pop()};function VL(e,t,n){const o=Object.keys(e);for(const s of o){const i=+s;if(i>=t){const a=e[s];delete e[s],(n>0||i>t)&&(e[i+n]=a)}}}function HL(e,t,n,o){return!n||e.type==="mouseout"?null:o?t:e}function Aa(e,t,n){return e.options.clip?e[n]:t[n]}function WL(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:Aa(n,t,"left"),right:Aa(n,t,"right"),top:Aa(o,t,"top"),bottom:Aa(o,t,"bottom")}:t}class Jn{static register(...t){Ln.add(...t),th()}static unregister(...t){Ln.remove(...t),th()}constructor(t,n){const o=this.config=new $L(n),s=lv(t),i=eh(s);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||aL(s)),this.platform.updateConfig(o);const r=this.platform.acquireContext(s,a.aspectRatio),l=r&&r.canvas,u=l&&l.height,c=l&&l.width;if(this.id=UA(),this.ctx=r,this.canvas=l,this.width=c,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new CL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=r2(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Qa[this.id]=this,!r||!l){console.error("Failed to create chart: can't acquire context from the given item");return}qn.listen(this,"complete",Zf),qn.listen(this,"progress",zL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:o,height:s,_aspectRatio:i}=this;return He(t)?n&&i?i:s?o/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ln}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xf(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return _f(this.canvas,this.ctx),this}stop(){return qn.stop(this),this}resize(t,n){qn.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const o=this.options,s=this.canvas,i=o.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(s,t,n,i),r=o.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,xf(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),et(o.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ge(n,(o,s)=>{o.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,o=this.scales,s=Object.keys(o).reduce((a,r)=>(a[r]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const r=n[a],l=eu(a,r),u=l==="r",c=l==="x";return{options:r,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),Ge(i,a=>{const r=a.options,l=r.id,u=eu(l,r),c=Pe(r.type,a.dtype);(r.position===void 0||Jf(r.position,u)!==Jf(a.dposition))&&(r.position=a.dposition),s[l]=!0;let d=null;if(l in o&&o[l].type===c)d=o[l];else{const f=Ln.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),o[d.id]=d}d.init(r,t)}),Ge(s,(a,r)=>{a||delete o[r]}),Ge(o,a=>{Ot.configure(this,a,a.options),Ot.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,o=t.length;if(t.sort((s,i)=>s.index-i.index),o>n){for(let s=n;s<o;++s)this._destroyDatasetMeta(s);t.splice(n,o-n)}this._sortedMetasets=t.slice(0).sort(Qf("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((o,s)=>{n.filter(i=>i===o._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let o,s;for(this._removeUnreferencedMetasets(),o=0,s=n.length;o<s;o++){const i=n[o];let a=this.getDatasetMeta(o);const r=i.type||this.config.type;if(a.type&&a.type!==r&&(this._destroyDatasetMeta(o),a=this.getDatasetMeta(o)),a.type=r,a.indexAxis=i.indexAxis||Zl(r,this.options),a.order=i.order||0,a.index=o,a.label=""+i.label,a.visible=this.isDatasetVisible(o),a.controller)a.controller.updateIndex(o),a.controller.linkScales();else{const l=Ln.getController(r),{datasetElementType:u,dataElementType:c}=ut.datasets[r];Object.assign(l,{dataElementType:Ln.getElement(c),datasetElementType:u&&Ln.getElement(u)}),a.controller=new l(this,o),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){Ge(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const o=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let u=0,c=this.data.datasets.length;u<c;u++){const{controller:d}=this.getDatasetMeta(u),f=!s&&i.indexOf(d)===-1;d.buildOrUpdateElements(f),a=Math.max(+d.getMaxOverflow(),a)}a=this._minPadding=o.layout.autoPadding?a:0,this._updateLayout(a),s||Ge(i,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Qf("z","_idx"));const{_active:r,_lastEvent:l}=this;l?this._eventHandler(l,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Ge(this.scales,t=>{Ot.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),o=new Set(t.events);(!df(n,o)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:o,start:s,count:i}of n){const a=o==="_removeElements"?-i:i;VL(t,s,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,o=i=>new Set(t.filter(a=>a[0]===i).map((a,r)=>r+","+a.splice(1).join(","))),s=o(0);for(let i=1;i<n;i++)if(!df(s,o(i)))return;return Array.from(s).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ot.update(this,this.width,this.height,t);const n=this.chartArea,o=n.width<=0||n.height<=0;this._layers=[],Ge(this.boxes,s=>{o&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,i)=>{s._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,o=this.data.datasets.length;n<o;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,o=this.data.datasets.length;n<o;++n)this._updateDataset(n,Ao(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const o=this.getDatasetMeta(t),s={meta:o,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(o.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(qn.has(this)?this.attached&&!qn.running(this)&&qn.start(this):(this.draw(),Zf({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:o,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,o=[];let s,i;for(s=0,i=n.length;s<i;++s){const a=n[s];(!t||a.visible)&&o.push(a)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,o=t._clip,s=!o.disabled,i=WL(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(s&&Or(n,{left:o.left===!1?0:i.left-o.left,right:o.right===!1?this.width:i.right+o.right,top:o.top===!1?0:i.top-o.top,bottom:o.bottom===!1?this.height:i.bottom+o.bottom}),t.controller.draw(),s&&Ar(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return to(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,o,s){const i=NR.modes[n];return typeof i=="function"?i(this,t,o,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],o=this._metasets;let s=o.filter(i=>i&&i._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},o.push(s)),s}getContext(){return this.$context||(this.$context=Fo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const o=this.getDatasetMeta(t);return typeof o.hidden=="boolean"?!o.hidden:!n.hidden}setDatasetVisibility(t,n){const o=this.getDatasetMeta(t);o.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,o){const s=o?"show":"hide",i=this.getDatasetMeta(t),a=i.controller._resolveAnimations(void 0,s);Vi(n)?(i.data[n].hidden=!o,this.update()):(this.setDatasetVisibility(t,o),a.update(i,{visible:o}),this.update(r=>r.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),qn.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),_f(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Qa[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,o=(i,a)=>{n.addEventListener(this,i,a),t[i]=a},s=(i,a,r)=>{i.offsetX=a,i.offsetY=r,this._eventHandler(i)};Ge(this.options.events,i=>o(i,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,o=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},s=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},i=(l,u)=>{this.canvas&&this.resize(l,u)};let a;const r=()=>{s("attach",r),this.attached=!0,this.resize(),o("resize",i),o("detach",a)};a=()=>{this.attached=!1,s("resize",i),this._stop(),this._resize(0,0),o("attach",r)},n.isAttached(this.canvas)?r():a()}unbindEvents(){Ge(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ge(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,o){const s=o?"set":"remove";let i,a,r,l;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+s+"DatasetHoverStyle"]()),r=0,l=t.length;r<l;++r){a=t[r];const u=a&&this.getDatasetMeta(a.datasetIndex).controller;u&&u[s+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],o=t.map(({datasetIndex:i,index:a})=>{const r=this.getDatasetMeta(i);if(!r)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:r.data[a],index:a}});!ur(o,n)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,n))}notifyPlugins(t,n,o){return this._plugins.notify(this,t,n,o)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,o){const s=this.options.hover,i=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),a=i(n,t),r=o?t:i(t,n);a.length&&this.updateHoverStyle(a,s.mode,!1),r.length&&s.mode&&this.updateHoverStyle(r,s.mode,!0)}_eventHandler(t,n){const o={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",o,s)===!1)return;const i=this._handleEvent(t,n,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,s),(i||o.changed)&&this.render(),this}_handleEvent(t,n,o){const{_active:s=[],options:i}=this,a=n,r=this._getActiveElements(t,s,o,a),l=JA(t),u=HL(t,this._lastEvent,o,l);o&&(this._lastEvent=null,et(i.onHover,[t,r,this],this),l&&et(i.onClick,[t,r,this],this));const c=!ur(r,s);return(c||n)&&(this._active=r,this._updateHoverStyles(r,s,n)),this._lastEvent=u,c}_getActiveElements(t,n,o,s){if(t.type==="mouseout")return[];if(!o)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,s)}}ce(Jn,"defaults",ut),ce(Jn,"instances",Qa),ce(Jn,"overrides",us),ce(Jn,"registry",Ln),ce(Jn,"version",DL),ce(Jn,"getChart",eh);function th(){return Ge(Jn.instances,e=>e._plugins.invalidate())}function jL(e,t,n){const{startAngle:o,pixelMargin:s,x:i,y:a,outerRadius:r,innerRadius:l}=t;let u=s/r;e.beginPath(),e.arc(i,a,r,o-u,n+u),l>s?(u=s/l,e.arc(i,a,l,n+u,o-u,!0)):e.arc(i,a,s,n+pt,o-pt),e.closePath(),e.clip()}function UL(e){return pc(e,["outerStart","outerEnd","innerStart","innerEnd"])}function KL(e,t,n,o){const s=UL(e.options.borderRadius),i=(n-t)/2,a=Math.min(i,o*t/2),r=l=>{const u=(n-Math.min(i,l))*o/2;return _t(l,0,Math.min(i,u))};return{outerStart:r(s.outerStart),outerEnd:r(s.outerEnd),innerStart:_t(s.innerStart,0,a),innerEnd:_t(s.innerEnd,0,a)}}function xs(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function gr(e,t,n,o,s,i){const{x:a,y:r,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+o+n-u,0),f=c>0?c+o+n+u:0;let h=0;const p=s-l;if(o){const Y=c>0?c-o:0,z=d>0?d-o:0,J=(Y+z)/2,U=J!==0?p*J/(J+o):p;h=(p-U)/2}const g=Math.max(.001,p*d-n/at)/d,m=(p-g)/2,b=l+m+h,w=s-m-h,{outerStart:S,outerEnd:_,innerStart:y,innerEnd:x}=KL(t,f,d,w-b),C=d-S,E=d-_,O=b+S/C,I=w-_/E,$=f+y,N=f+x,j=b+y/$,ae=w-x/N;if(e.beginPath(),i){const Y=(O+I)/2;if(e.arc(a,r,d,O,Y),e.arc(a,r,d,Y,I),_>0){const H=xs(E,I,a,r);e.arc(H.x,H.y,_,I,w+pt)}const z=xs(N,w,a,r);if(e.lineTo(z.x,z.y),x>0){const H=xs(N,ae,a,r);e.arc(H.x,H.y,x,w+pt,ae+Math.PI)}const J=(w-x/f+(b+y/f))/2;if(e.arc(a,r,f,w-x/f,J,!0),e.arc(a,r,f,J,b+y/f,!0),y>0){const H=xs($,j,a,r);e.arc(H.x,H.y,y,j+Math.PI,b-pt)}const U=xs(C,b,a,r);if(e.lineTo(U.x,U.y),S>0){const H=xs(C,O,a,r);e.arc(H.x,H.y,S,b-pt,O)}}else{e.moveTo(a,r);const Y=Math.cos(O)*d+a,z=Math.sin(O)*d+r;e.lineTo(Y,z);const J=Math.cos(I)*d+a,U=Math.sin(I)*d+r;e.lineTo(J,U)}e.closePath()}function qL(e,t,n,o,s){const{fullCircles:i,startAngle:a,circumference:r}=t;let l=t.endAngle;if(i){gr(e,t,n,o,l,s);for(let u=0;u<i;++u)e.fill();isNaN(r)||(l=a+(r%it||it))}return gr(e,t,n,o,l,s),e.fill(),l}function YL(e,t,n,o,s){const{fullCircles:i,startAngle:a,circumference:r,options:l}=t,{borderWidth:u,borderJoinStyle:c,borderDash:d,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!u)return;e.setLineDash(d||[]),e.lineDashOffset=f,h?(e.lineWidth=u*2,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");let p=t.endAngle;if(i){gr(e,t,n,o,p,s);for(let g=0;g<i;++g)e.stroke();isNaN(r)||(p=a+(r%it||it))}h&&jL(e,t,p),i||(gr(e,t,n,o,p,s),e.stroke())}class ci extends Cn{constructor(n){super();ce(this,"circumference");ce(this,"endAngle");ce(this,"fullCircles");ce(this,"innerRadius");ce(this,"outerRadius");ce(this,"pixelMargin");ce(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,o,s){const i=this.getProps(["x","y"],s),{angle:a,distance:r}=Om(i,{x:n,y:o}),{startAngle:l,endAngle:u,innerRadius:c,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),h=(this.options.spacing+this.options.borderWidth)/2,p=Pe(f,u-l),g=Hi(a,l,u)&&l!==u,m=p>=it||g,b=Zn(r,c+h,d+h);return m&&b}getCenterPoint(n){const{x:o,y:s,startAngle:i,endAngle:a,innerRadius:r,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(i+a)/2,f=(r+l+c+u)/2;return{x:o+Math.cos(d)*f,y:s+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:o,circumference:s}=this,i=(o.offset||0)/4,a=(o.spacing||0)/2,r=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=s>it?Math.floor(s/it):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*i,Math.sin(l)*i);const u=1-Math.sin(Math.min(at,s||0)),c=i*u;n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,qL(n,this,c,a,r),YL(n,this,c,a,r),n.restore()}}ce(ci,"id","arc"),ce(ci,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ce(ci,"defaultRoutes",{backgroundColor:"backgroundColor"}),ce(ci,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function uv(e,t,n=t){e.lineCap=Pe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Pe(n.borderDash,t.borderDash)),e.lineDashOffset=Pe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Pe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Pe(n.borderWidth,t.borderWidth),e.strokeStyle=Pe(n.borderColor,t.borderColor)}function GL(e,t,n){e.lineTo(n.x,n.y)}function XL(e){return e.stepped?y2:e.tension||e.cubicInterpolationMode==="monotone"?_2:GL}function cv(e,t,n={}){const o=e.length,{start:s=0,end:i=o-1}=n,{start:a,end:r}=t,l=Math.max(s,a),u=Math.min(i,r),c=s<a&&i<a||s>r&&i>r;return{count:o,start:l,loop:t.loop,ilen:u<l&&!c?o+u-l:u-l}}function JL(e,t,n,o){const{points:s,options:i}=t,{count:a,start:r,loop:l,ilen:u}=cv(s,n,o),c=XL(i);let{move:d=!0,reverse:f}=o||{},h,p,g;for(h=0;h<=u;++h)p=s[(r+(f?u-h:h))%a],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):c(e,g,p,f,i.stepped),g=p);return l&&(p=s[(r+(f?u:0))%a],c(e,g,p,f,i.stepped)),!!l}function QL(e,t,n,o){const s=t.points,{count:i,start:a,ilen:r}=cv(s,n,o),{move:l=!0,reverse:u}=o||{};let c=0,d=0,f,h,p,g,m,b;const w=_=>(a+(u?r-_:_))%i,S=()=>{g!==m&&(e.lineTo(c,m),e.lineTo(c,g),e.lineTo(c,b))};for(l&&(h=s[w(0)],e.moveTo(h.x,h.y)),f=0;f<=r;++f){if(h=s[w(f)],h.skip)continue;const _=h.x,y=h.y,x=_|0;x===p?(y<g?g=y:y>m&&(m=y),c=(d*c+_)/++d):(S(),e.lineTo(_,y),p=x,d=0,g=m=y),b=y}S()}function tu(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?QL:JL}function ZL(e){return e.stepped?Q2:e.tension||e.cubicInterpolationMode==="monotone"?Z2:Uo}function eI(e,t,n,o){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,o)&&s.closePath()),uv(e,t.options),e.stroke(s)}function tI(e,t,n,o){const{segments:s,options:i}=t,a=tu(t);for(const r of s)uv(e,i,r.style),e.beginPath(),a(e,t,r,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}const nI=typeof Path2D=="function";function oI(e,t,n,o){nI&&!t.options.segment?eI(e,t,n,o):tI(e,t,n,o)}class Eo extends Cn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const o=this.options;if((o.tension||o.cubicInterpolationMode==="monotone")&&!o.stepped&&!this._pointsUpdated){const s=o.spanGaps?this._loop:this._fullLoop;j2(this._points,o,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=iR(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,o=t.length;return o&&n[t[o-1].end]}interpolate(t,n){const o=this.options,s=t[n],i=this.points,a=Xm(this,{property:n,start:s,end:s});if(!a.length)return;const r=[],l=ZL(o);let u,c;for(u=0,c=a.length;u<c;++u){const{start:d,end:f}=a[u],h=i[d],p=i[f];if(h===p){r.push(h);continue}const g=Math.abs((s-h[n])/(p[n]-h[n])),m=l(h,p,g,o.stepped);m[n]=t[n],r.push(m)}return r.length===1?r[0]:r}pathSegment(t,n,o){return tu(this)(t,this,n,o)}path(t,n,o){const s=this.segments,i=tu(this);let a=this._loop;n=n||0,o=o||this.points.length-n;for(const r of s)a&=i(t,this,r,{start:n,end:n+o-1});return!!a}draw(t,n,o,s){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),oI(t,this,o,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}ce(Eo,"id","line"),ce(Eo,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ce(Eo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ce(Eo,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function nh(e,t,n,o){const s=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<s.radius+s.hitRadius}class Za extends Cn{constructor(n){super();ce(this,"parsed");ce(this,"skip");ce(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,o,s){const i=this.options,{x:a,y:r}=this.getProps(["x","y"],s);return Math.pow(n-a,2)+Math.pow(o-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,o){return nh(this,n,"x",o)}inYRange(n,o){return nh(this,n,"y",o)}getCenterPoint(n){const{x:o,y:s}=this.getProps(["x","y"],n);return{x:o,y:s}}size(n){n=n||this.options||{};let o=n.radius||0;o=Math.max(o,o&&n.hoverRadius||0);const s=o&&n.borderWidth||0;return(o+s)*2}draw(n,o){const s=this.options;this.skip||s.radius<.1||!to(this,o,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Jl(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}ce(Za,"id","point"),ce(Za,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ce(Za,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function dv(e,t){const{x:n,y:o,base:s,width:i,height:a}=e.getProps(["x","y","base","width","height"],t);let r,l,u,c,d;return e.horizontal?(d=a/2,r=Math.min(n,s),l=Math.max(n,s),u=o-d,c=o+d):(d=i/2,r=n-d,l=n+d,u=Math.min(o,s),c=Math.max(o,s)),{left:r,top:u,right:l,bottom:c}}function Mo(e,t,n,o){return e?0:_t(t,n,o)}function sI(e,t,n){const o=e.options.borderWidth,s=e.borderSkipped,i=Nm(o);return{t:Mo(s.top,i.top,0,n),r:Mo(s.right,i.right,0,t),b:Mo(s.bottom,i.bottom,0,n),l:Mo(s.left,i.left,0,t)}}function iI(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,i=ss(s),a=Math.min(t,n),r=e.borderSkipped,l=o||Be(s);return{topLeft:Mo(!l||r.top||r.left,i.topLeft,0,a),topRight:Mo(!l||r.top||r.right,i.topRight,0,a),bottomLeft:Mo(!l||r.bottom||r.left,i.bottomLeft,0,a),bottomRight:Mo(!l||r.bottom||r.right,i.bottomRight,0,a)}}function aI(e){const t=dv(e),n=t.right-t.left,o=t.bottom-t.top,s=sI(e,n/2,o/2),i=iI(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:i},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:o-s.t-s.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,i.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(s.b,s.r))}}}}function rl(e,t,n,o){const s=t===null,i=n===null,r=e&&!(s&&i)&&dv(e,o);return r&&(s||Zn(t,r.left,r.right))&&(i||Zn(n,r.top,r.bottom))}function rI(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function lI(e,t){e.rect(t.x,t.y,t.w,t.h)}function ll(e,t,n={}){const o=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-o,a=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+o,y:e.y+s,w:e.w+i,h:e.h+a,radius:e.radius}}class er extends Cn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:o,backgroundColor:s}}=this,{inner:i,outer:a}=aI(this),r=rI(a.radius)?Wi:lI;t.save(),(a.w!==i.w||a.h!==i.h)&&(t.beginPath(),r(t,ll(a,n,i)),t.clip(),r(t,ll(i,-n,a)),t.fillStyle=o,t.fill("evenodd")),t.beginPath(),r(t,ll(i,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,o){return rl(this,t,n,o)}inXRange(t,n){return rl(this,t,null,n)}inYRange(t,n){return rl(this,null,t,n)}getCenterPoint(t){const{x:n,y:o,base:s,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+s)/2:n,y:i?o:(o+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}ce(er,"id","bar"),ce(er,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ce(er,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var uI=Object.freeze({__proto__:null,ArcElement:ci,BarElement:er,LineElement:Eo,PointElement:Za});const nu=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],oh=nu.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function fv(e){return nu[e%nu.length]}function hv(e){return oh[e%oh.length]}function cI(e,t){return e.borderColor=fv(t),e.backgroundColor=hv(t),++t}function dI(e,t){return e.backgroundColor=e.data.map(()=>fv(t++)),t}function fI(e,t){return e.backgroundColor=e.data.map(()=>hv(t++)),t}function hI(e){let t=0;return(n,o)=>{const s=e.getDatasetMeta(o).controller;s instanceof Qo?t=dI(n,t):s instanceof xi?t=fI(n,t):s&&(t=cI(n,t))}}function sh(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function pI(e){return e&&(e.borderColor||e.backgroundColor)}function gI(){return ut.borderColor!=="rgba(0,0,0,0.1)"||ut.backgroundColor!=="rgba(0,0,0,0.1)"}var mI={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:o},options:s}=e.config,{elements:i}=s,a=sh(o)||pI(s)||i&&sh(i)||gI();if(!n.forceOverride&&a)return;const r=hI(e);o.forEach(r)}};function vI(e,t,n,o,s){const i=s.samples||o;if(i>=n)return e.slice(t,t+n);const a=[],r=(n-2)/(i-2);let l=0;const u=t+n-1;let c=t,d,f,h,p,g;for(a[l++]=e[c],d=0;d<i-2;d++){let m=0,b=0,w;const S=Math.floor((d+1)*r)+1+t,_=Math.min(Math.floor((d+2)*r)+1,n)+t,y=_-S;for(w=S;w<_;w++)m+=e[w].x,b+=e[w].y;m/=y,b/=y;const x=Math.floor(d*r)+1+t,C=Math.min(Math.floor((d+1)*r)+1,n)+t,{x:E,y:O}=e[c];for(h=p=-1,w=x;w<C;w++)p=.5*Math.abs((E-m)*(e[w].y-O)-(E-e[w].x)*(b-O)),p>h&&(h=p,f=e[w],g=w);a[l++]=f,c=g}return a[l++]=e[u],a}function bI(e,t,n,o){let s=0,i=0,a,r,l,u,c,d,f,h,p,g;const m=[],b=t+n-1,w=e[t].x,_=e[b].x-w;for(a=t;a<t+n;++a){r=e[a],l=(r.x-w)/_*o,u=r.y;const y=l|0;if(y===c)u<p?(p=u,d=a):u>g&&(g=u,f=a),s=(i*s+r.x)/++i;else{const x=a-1;if(!He(d)&&!He(f)){const C=Math.min(d,f),E=Math.max(d,f);C!==h&&C!==x&&m.push({...e[C],x:s}),E!==h&&E!==x&&m.push({...e[E],x:s})}a>0&&x!==h&&m.push(e[x]),m.push(r),c=y,i=0,p=g=u,d=f=h=a}}return m}function pv(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function ih(e){e.data.datasets.forEach(t=>{pv(t)})}function yI(e,t){const n=t.length;let o=0,s;const{iScale:i}=e,{min:a,max:r,minDefined:l,maxDefined:u}=i.getUserBounds();return l&&(o=_t(eo(t,i.axis,a).lo,0,n-1)),u?s=_t(eo(t,i.axis,r).hi+1,o,n)-o:s=n-o,{start:o,count:s}}var _I={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){ih(e);return}const o=e.width;e.data.datasets.forEach((s,i)=>{const{_data:a,indexAxis:r}=s,l=e.getDatasetMeta(i),u=a||s.data;if(li([r,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const c=e.scales[l.xAxisID];if(c.type!=="linear"&&c.type!=="time"||e.options.parsing)return;let{start:d,count:f}=yI(l,u);const h=n.threshold||4*o;if(f<=h){pv(s);return}He(a)&&(s._data=u,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=vI(u,d,f,o,n);break;case"min-max":p=bI(u,d,f,o);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}s._decimated=p})},destroy(e){ih(e)}};function wI(e,t,n){const o=e.segments,s=e.points,i=t.points,a=[];for(const r of o){let{start:l,end:u}=r;u=wc(l,u,s);const c=ou(n,s[l],s[u],r.loop);if(!t.segments){a.push({source:r,target:c,start:s[l],end:s[u]});continue}const d=Xm(t,c);for(const f of d){const h=ou(n,i[f.start],i[f.end],f.loop),p=Gm(r,s,h);for(const g of p)a.push({source:g,target:f,start:{[n]:ah(c,h,"start",Math.max)},end:{[n]:ah(c,h,"end",Math.min)}})}}return a}function ou(e,t,n,o){if(o)return;let s=t[e],i=n[e];return e==="angle"&&(s=Xt(s),i=Xt(i)),{property:e,start:s,end:i}}function SI(e,t){const{x:n=null,y:o=null}=e||{},s=t.points,i=[];return t.segments.forEach(({start:a,end:r})=>{r=wc(a,r,s);const l=s[a],u=s[r];o!==null?(i.push({x:l.x,y:o}),i.push({x:u.x,y:o})):n!==null&&(i.push({x:n,y:l.y}),i.push({x:n,y:u.y}))}),i}function wc(e,t,n){for(;t>e;t--){const o=n[t];if(!isNaN(o.x)&&!isNaN(o.y))break}return t}function ah(e,t,n,o){return e&&t?o(e[n],t[n]):e?e[n]:t?t[n]:0}function gv(e,t){let n=[],o=!1;return st(e)?(o=!0,n=e):n=SI(e,t),n.length?new Eo({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function rh(e){return e&&e.fill!==!1}function xI(e,t,n){let s=e[t].fill;const i=[t];let a;if(!n)return s;for(;s!==!1&&i.indexOf(s)===-1;){if(!ht(s))return s;if(a=e[s],!a)return!1;if(a.visible)return s;i.push(s),s=a.fill}return!1}function CI(e,t,n){const o=TI(e);if(Be(o))return isNaN(o.value)?!1:o;let s=parseFloat(o);return ht(s)&&Math.floor(s)===s?kI(o[0],t,s,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function kI(e,t,n,o){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=o?!1:n}function EI(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Be(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function MI(e,t,n){let o;return e==="start"?o=n:e==="end"?o=t.options.reverse?t.min:t.max:Be(e)?o=e.value:o=t.getBaseValue(),o}function TI(e){const t=e.options,n=t.fill;let o=Pe(n&&n.target,n);return o===void 0&&(o=!!t.backgroundColor),o===!1||o===null?!1:o===!0?"origin":o}function PI(e){const{scale:t,index:n,line:o}=e,s=[],i=o.segments,a=o.points,r=OI(t,n);r.push(gv({x:null,y:t.bottom},o));for(let l=0;l<i.length;l++){const u=i[l];for(let c=u.start;c<=u.end;c++)AI(s,a[c],r)}return new Eo({points:s,options:{}})}function OI(e,t){const n=[],o=e.getMatchingVisibleMetas("line");for(let s=0;s<o.length;s++){const i=o[s];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function AI(e,t,n){const o=[];for(let s=0;s<n.length;s++){const i=n[s],{first:a,last:r,point:l}=RI(i,t,"x");if(!(!l||a&&r)){if(a)o.unshift(l);else if(e.push(l),!r)break}}e.push(...o)}function RI(e,t,n){const o=e.interpolate(t,n);if(!o)return{};const s=o[n],i=e.segments,a=e.points;let r=!1,l=!1;for(let u=0;u<i.length;u++){const c=i[u],d=a[c.start][n],f=a[c.end][n];if(Zn(s,d,f)){r=s===d,l=s===f;break}}return{first:r,last:l,point:o}}class mv{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,o){const{x:s,y:i,radius:a}=this;return n=n||{start:0,end:it},t.arc(s,i,a,n.end,n.start,!0),!o.bounds}interpolate(t){const{x:n,y:o,radius:s}=this,i=t.angle;return{x:n+Math.cos(i)*s,y:o+Math.sin(i)*s,angle:i}}}function LI(e){const{chart:t,fill:n,line:o}=e;if(ht(n))return II(t,n);if(n==="stack")return PI(e);if(n==="shape")return!0;const s=$I(e);return s instanceof mv?s:gv(s,o)}function II(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function $I(e){return(e.scale||{}).getPointPositionForValue?BI(e):FI(e)}function FI(e){const{scale:t={},fill:n}=e,o=EI(n,t);if(ht(o)){const s=t.isHorizontal();return{x:s?o:null,y:s?null:o}}return null}function BI(e){const{scale:t,fill:n}=e,o=t.options,s=t.getLabels().length,i=o.reverse?t.max:t.min,a=MI(n,t,i),r=[];if(o.grid.circular){const l=t.getPointPositionForValue(0,i);return new mv({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(a)})}for(let l=0;l<s;++l)r.push(t.getPointPositionForValue(l,a));return r}function ul(e,t,n){const o=LI(t),{line:s,scale:i,axis:a}=t,r=s.options,l=r.fill,u=r.backgroundColor,{above:c=u,below:d=u}=l||{};o&&s.points.length&&(Or(e,n),DI(e,{line:s,target:o,above:c,below:d,area:n,scale:i,axis:a}),Ar(e))}function DI(e,t){const{line:n,target:o,above:s,below:i,area:a,scale:r}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&i!==s&&(lh(e,o,a.top),uh(e,{line:n,target:o,color:s,scale:r,property:l}),e.restore(),e.save(),lh(e,o,a.bottom)),uh(e,{line:n,target:o,color:i,scale:r,property:l}),e.restore()}function lh(e,t,n){const{segments:o,points:s}=t;let i=!0,a=!1;e.beginPath();for(const r of o){const{start:l,end:u}=r,c=s[l],d=s[wc(l,u,s)];i?(e.moveTo(c.x,c.y),i=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),a=!!t.pathSegment(e,r,{move:a}),a?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function uh(e,t){const{line:n,target:o,property:s,color:i,scale:a}=t,r=wI(n,o,s);for(const{source:l,target:u,start:c,end:d}of r){const{style:{backgroundColor:f=i}={}}=l,h=o!==!0;e.save(),e.fillStyle=f,NI(e,a,h&&ou(s,c,d)),e.beginPath();const p=!!n.pathSegment(e,l);let g;if(h){p?e.closePath():ch(e,o,d,s);const m=!!o.pathSegment(e,u,{move:p,reverse:!0});g=p&&m,g||ch(e,o,c,s)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function NI(e,t,n){const{top:o,bottom:s}=t.chart.chartArea,{property:i,start:a,end:r}=n||{};i==="x"&&(e.beginPath(),e.rect(a,o,r-a,s-o),e.clip())}function ch(e,t,n,o){const s=t.interpolate(n,o);s&&e.lineTo(s.x,s.y)}var zI={id:"filler",afterDatasetsUpdate(e,t,n){const o=(e.data.datasets||[]).length,s=[];let i,a,r,l;for(a=0;a<o;++a)i=e.getDatasetMeta(a),r=i.dataset,l=null,r&&r.options&&r instanceof Eo&&(l={visible:e.isDatasetVisible(a),index:a,fill:CI(r,a,o),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:r}),i.$filler=l,s.push(l);for(a=0;a<o;++a)l=s[a],!(!l||l.fill===!1)&&(l.fill=xI(s,a,n.propagate))},beforeDraw(e,t,n){const o=n.drawTime==="beforeDraw",s=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let a=s.length-1;a>=0;--a){const r=s[a].$filler;!r||(r.line.updateControlPoints(i,r.axis),o&&r.fill&&ul(e.ctx,r,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const o=e.getSortedVisibleDatasetMetas();for(let s=o.length-1;s>=0;--s){const i=o[s].$filler;rh(i)&&ul(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const o=t.meta.$filler;!rh(o)||n.drawTime!=="beforeDatasetDraw"||ul(e.ctx,o,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const dh=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}},VI=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class fh extends Cn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,o){this.maxWidth=t,this.maxHeight=n,this._margins=o,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=et(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(o=>t.filter(o,this.chart.data))),t.sort&&(n=n.sort((o,s)=>t.sort(o,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const o=t.labels,s=vt(o.font),i=s.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=dh(o,i);let u,c;n.font=s.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(a,i,r,l)+10):(c=this.maxHeight,u=this._fitCols(a,s,r,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,o,s){const{ctx:i,maxWidth:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=s+r;let d=t;i.textAlign="left",i.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((p,g)=>{const m=o+n/2+i.measureText(p.text).width;(g===0||u[u.length-1]+m+2*r>a)&&(d+=c,u[u.length-(g>0?0:1)]=0,h+=c,f++),l[g]={left:0,top:h,row:f,width:m,height:s},u[u.length-1]+=m+r}),d}_fitCols(t,n,o,s){const{ctx:i,maxHeight:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=a-t;let d=r,f=0,h=0,p=0,g=0;return this.legendItems.forEach((m,b)=>{const{itemWidth:w,itemHeight:S}=HI(o,n,i,m,s);b>0&&h+S+2*r>c&&(d+=f+r,u.push({width:f,height:h}),p+=f+r,g++,f=h=0),l[b]={left:p,top:h,col:g,width:w,height:S},f=Math.max(f,w),h+=S+r}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:o,labels:{padding:s},rtl:i}}=this,a=Ms(i,this.left,this.width);if(this.isHorizontal()){let r=0,l=Et(o,this.left+s,this.right-this.lineWidths[r]);for(const u of n)r!==u.row&&(r=u.row,l=Et(o,this.left+s,this.right-this.lineWidths[r])),u.top+=this.top+t+s,u.left=a.leftForLtr(a.x(l),u.width),l+=u.width+s}else{let r=0,l=Et(o,this.top+t+s,this.bottom-this.columnSizes[r].height);for(const u of n)u.col!==r&&(r=u.col,l=Et(o,this.top+t+s,this.bottom-this.columnSizes[r].height)),u.top=l,u.left+=this.left+s,u.left=a.leftForLtr(a.x(u.left),u.width),l+=u.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Or(t,this),this._draw(),Ar(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:o,ctx:s}=this,{align:i,labels:a}=t,r=ut.color,l=Ms(t.rtl,this.left,this.width),u=vt(a.font),{padding:c}=a,d=u.size,f=d/2;let h;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=u.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=dh(a,d),b=function(x,C,E){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;s.save();const O=Pe(E.lineWidth,1);if(s.fillStyle=Pe(E.fillStyle,r),s.lineCap=Pe(E.lineCap,"butt"),s.lineDashOffset=Pe(E.lineDashOffset,0),s.lineJoin=Pe(E.lineJoin,"miter"),s.lineWidth=O,s.strokeStyle=Pe(E.strokeStyle,r),s.setLineDash(Pe(E.lineDash,[])),a.usePointStyle){const I={radius:g*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:O},$=l.xPlus(x,p/2),N=C+f;Dm(s,I,$,N,a.pointStyleWidth&&p)}else{const I=C+Math.max((d-g)/2,0),$=l.leftForLtr(x,p),N=ss(E.borderRadius);s.beginPath(),Object.values(N).some(j=>j!==0)?Wi(s,{x:$,y:I,w:p,h:g,radius:N}):s.rect($,I,p,g),s.fill(),O!==0&&s.stroke()}s.restore()},w=function(x,C,E){cs(s,E.text,x,C+m/2,u,{strikethrough:E.hidden,textAlign:l.textAlign(E.textAlign)})},S=this.isHorizontal(),_=this._computeTitleHeight();S?h={x:Et(i,this.left+c,this.right-o[0]),y:this.top+c+_,line:0}:h={x:this.left+c,y:Et(i,this.top+_+c,this.bottom-n[0].height),line:0},Km(this.ctx,t.textDirection);const y=m+c;this.legendItems.forEach((x,C)=>{s.strokeStyle=x.fontColor,s.fillStyle=x.fontColor;const E=s.measureText(x.text).width,O=l.textAlign(x.textAlign||(x.textAlign=a.textAlign)),I=p+f+E;let $=h.x,N=h.y;l.setWidth(this.width),S?C>0&&$+I+c>this.right&&(N=h.y+=y,h.line++,$=h.x=Et(i,this.left+c,this.right-o[h.line])):C>0&&N+y>this.bottom&&($=h.x=$+n[h.line].width+c,h.line++,N=h.y=Et(i,this.top+_+c,this.bottom-n[h.line].height));const j=l.x($);if(b(j,N,x),$=l2(O,$+p+f,S?$+I:this.right,t.rtl),w(l.x($),N,x),S)h.x+=I+c;else if(typeof x.text!="string"){const ae=u.lineHeight;h.y+=vv(x,ae)+c}else h.y+=y}),qm(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,o=vt(n.font),s=Rt(n.padding);if(!n.display)return;const i=Ms(t.rtl,this.left,this.width),a=this.ctx,r=n.position,l=o.size/2,u=s.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=Et(t.align,d,this.right-f);else{const p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);c=u+Et(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const h=Et(r,d,d+f);a.textAlign=i.textAlign(fc(r)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=o.string,cs(a,n.text,h,c,o)}_computeTitleHeight(){const t=this.options.title,n=vt(t.font),o=Rt(t.padding);return t.display?n.lineHeight+o.height:0}_getLegendItemAt(t,n){let o,s,i;if(Zn(t,this.left,this.right)&&Zn(n,this.top,this.bottom)){for(i=this.legendHitBoxes,o=0;o<i.length;++o)if(s=i[o],Zn(t,s.left,s.left+s.width)&&Zn(n,s.top,s.top+s.height))return this.legendItems[o]}return null}handleEvent(t){const n=this.options;if(!UI(t.type,n))return;const o=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,i=VI(s,o);s&&!i&&et(n.onLeave,[t,s,this],this),this._hoveredItem=o,o&&!i&&et(n.onHover,[t,o,this],this)}else o&&et(n.onClick,[t,o,this],this)}}function HI(e,t,n,o,s){const i=WI(o,e,t,n),a=jI(s,o,t.lineHeight);return{itemWidth:i,itemHeight:a}}function WI(e,t,n,o){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((i,a)=>i.length>a.length?i:a)),t+n.size/2+o.measureText(s).width}function jI(e,t,n){let o=e;return typeof t.text!="string"&&(o=vv(t,n)),o}function vv(e,t){const n=e.text?e.text.length:0;return t*n}function UI(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var KI={id:"legend",_element:fh,start(e,t,n){const o=e.legend=new fh({ctx:e.ctx,options:n,chart:e});Ot.configure(e,o,n),Ot.addBox(e,o)},stop(e){Ot.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;Ot.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,s=n.chart;s.isDatasetVisible(o)?(s.hide(o),t.hidden=!0):(s.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:s,color:i,useBorderRadius:a,borderRadius:r}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Rt(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:o||u.pointStyle,rotation:u.rotation,textAlign:s||u.textAlign,borderRadius:a&&(r||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Sc extends Cn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const o=this.options;if(this.left=0,this.top=0,!o.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=st(o.text)?o.text.length:1;this._padding=Rt(o.padding);const i=s*vt(o.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:o,bottom:s,right:i,options:a}=this,r=a.align;let l=0,u,c,d;return this.isHorizontal()?(c=Et(r,o,i),d=n+t,u=i-o):(a.position==="left"?(c=o+t,d=Et(r,s,n),l=at*-.5):(c=i-t,d=Et(r,n,s),l=at*.5),u=s-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const o=vt(n.font),i=o.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:l,rotation:u}=this._drawArgs(i);cs(t,n.text,0,0,o,{color:n.color,maxWidth:l,rotation:u,textAlign:fc(n.align),textBaseline:"middle",translation:[a,r]})}}function qI(e,t){const n=new Sc({ctx:e.ctx,options:t,chart:e});Ot.configure(e,n,t),Ot.addBox(e,n),e.titleBlock=n}var YI={id:"title",_element:Sc,start(e,t,n){qI(e,n)},stop(e){const t=e.titleBlock;Ot.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;Ot.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ra=new WeakMap;var GI={id:"subtitle",start(e,t,n){const o=new Sc({ctx:e.ctx,options:n,chart:e});Ot.configure(e,o,n),Ot.addBox(e,o),Ra.set(e,o)},stop(e){Ot.removeBox(e,Ra.get(e)),Ra.delete(e)},beforeUpdate(e,t,n){const o=Ra.get(e);Ot.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const di={average(e){if(!e.length)return!1;let t,n,o=new Set,s=0,i=0;for(t=0,n=e.length;t<n;++t){const r=e[t].element;if(r&&r.hasValue()){const l=r.tooltipPosition();o.add(l.x),s+=l.y,++i}}return i===0||o.size===0?!1:{x:[...o].reduce((r,l)=>r+l)/o.size,y:s/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,o=t.y,s=Number.POSITIVE_INFINITY,i,a,r;for(i=0,a=e.length;i<a;++i){const l=e[i].element;if(l&&l.hasValue()){const u=l.getCenterPoint(),c=Gl(t,u);c<s&&(s=c,r=l)}}if(r){const l=r.tooltipPosition();n=l.x,o=l.y}return{x:n,y:o}}};function Rn(e,t){return t&&(st(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Yn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
    5549`)>-1?e.split(`
    56 `):e}function z$(e,t){const{element:n,datasetIndex:o,index:s}=t,i=e.getDatasetMeta(o).controller,{label:r,value:a}=i.getLabelAndValue(s);return{chart:e,label:r,parsed:i.getParsed(s),raw:e.data.datasets[o].data[s],formattedValue:a,dataset:i.getDataset(),dataIndex:s,datasetIndex:o,element:n}}function eh(e,t){const n=e.chart.ctx,{body:o,footer:s,title:i}=e,{boxWidth:r,boxHeight:a}=t,l=ht(t.bodyFont),c=ht(t.titleFont),u=ht(t.footerFont),d=i.length,f=s.length,p=o.length,g=Mt(t.padding);let h=g.height,v=0,m=o.reduce((_,x)=>_+x.before.length+x.lines.length+x.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;h+=p*_+(m-p)*l.lineHeight+(m-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let y=0;const w=function(_){v=Math.max(v,n.measureText(_).width+y)};return n.save(),n.font=c.string,Ue(e.title,w),n.font=l.string,Ue(e.beforeBody.concat(e.afterBody),w),y=t.displayColors?r+2+t.boxPadding:0,Ue(o,_=>{Ue(_.before,w),Ue(_.lines,w),Ue(_.after,w)}),y=0,n.font=u.string,Ue(e.footer,w),n.restore(),v+=g.width,{width:v,height:h}}function V$(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}function H$(e,t,n,o){const{x:s,width:i}=o,r=n.caretSize+n.caretPadding;if(e==="left"&&s+i+r>t.width||e==="right"&&s-i-r<0)return!0}function W$(e,t,n,o){const{x:s,width:i}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return o==="center"?c=s<=(a+l)/2?"left":"right":s<=i/2?c="left":s>=r-i/2&&(c="right"),H$(c,e,t,n)&&(c="center"),c}function th(e,t,n){const o=n.yAlign||t.yAlign||V$(e,n);return{xAlign:n.xAlign||t.xAlign||W$(e,t,n,o),yAlign:o}}function j$(e,t){let{x:n,width:o}=e;return t==="right"?n-=o:t==="center"&&(n-=o/2),n}function U$(e,t,n){let{y:o,height:s}=e;return t==="top"?o+=n:t==="bottom"?o-=s+n:o-=s/2,o}function nh(e,t,n,o){const{caretSize:s,caretPadding:i,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=ns(r);let g=j$(t,a);const h=U$(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(u,f)+s:a==="right"&&(g+=Math.max(d,p)+s),{x:vt(g,0,o.width-t.width),y:vt(h,0,o.height-t.height)}}function Pr(e,t,n){const o=Mt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-o.right:e.x+o.left}function oh(e){return Pn([],Gn(e))}function K$(e,t,n){return Fo(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function sh(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Jm={beforeTitle:Un,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:Un,beforeBody:Un,beforeLabel:Un,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ze(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Un,afterBody:Un,beforeFooter:Un,footer:Un,afterFooter:Un};function It(e,t,n,o){const s=e[t].call(n,o);return typeof s>"u"?Jm[t].call(n,o):s}class Gl extends xn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,i=new Am(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=K$(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:o}=n,s=It(o,"beforeTitle",this,t),i=It(o,"title",this,t),r=It(o,"afterTitle",this,t);let a=[];return a=Pn(a,Gn(s)),a=Pn(a,Gn(i)),a=Pn(a,Gn(r)),a}getBeforeBody(t,n){return oh(It(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:o}=n,s=[];return Ue(t,i=>{const r={before:[],lines:[],after:[]},a=sh(o,i);Pn(r.before,Gn(It(a,"beforeLabel",this,i))),Pn(r.lines,It(a,"label",this,i)),Pn(r.after,Gn(It(a,"afterLabel",this,i))),s.push(r)}),s}getAfterBody(t,n){return oh(It(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:o}=n,s=It(o,"beforeFooter",this,t),i=It(o,"footer",this,t),r=It(o,"afterFooter",this,t);let a=[];return a=Pn(a,Gn(s)),a=Pn(a,Gn(i)),a=Pn(a,Gn(r)),a}_createItems(t){const n=this._active,o=this.chart.data,s=[],i=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(z$(this.chart,n[l]));return t.filter&&(a=a.filter((u,d,f)=>t.filter(u,d,f,o))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,o))),Ue(a,u=>{const d=sh(t.callbacks,u);s.push(It(d,"labelColor",this,u)),i.push(It(d,"labelPointStyle",this,u)),r.push(It(d,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=i,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const o=this.options.setContext(this.getContext()),s=this._active;let i,r=[];if(!s.length)this.opacity!==0&&(i={opacity:0});else{const a=di[o.position].call(this,s,this._eventPosition);r=this._createItems(o),this.title=this.getTitle(r,o),this.beforeBody=this.getBeforeBody(r,o),this.body=this.getBody(r,o),this.afterBody=this.getAfterBody(r,o),this.footer=this.getFooter(r,o);const l=this._size=eh(this,o),c=Object.assign({},a,l),u=th(this.chart,o,c),d=nh(o,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,o,s){const i=this.getCaretPosition(t,o,s);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,o){const{xAlign:s,yAlign:i}=this,{caretSize:r,cornerRadius:a}=o,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ns(a),{x:f,y:p}=t,{width:g,height:h}=n;let v,m,y,w,_,x;return i==="center"?(_=p+h/2,s==="left"?(v=f,m=v-r,w=_+r,x=_-r):(v=f+g,m=v+r,w=_-r,x=_+r),y=v):(s==="left"?m=f+Math.max(l,u)+r:s==="right"?m=f+g-Math.max(c,d)-r:m=this.caretX,i==="top"?(w=p,_=w-r,v=m-r,y=m+r):(w=p+h,_=w+r,v=m+r,y=m-r),x=w),{x1:v,x2:m,x3:y,y1:w,y2:_,y3:x}}drawTitle(t,n,o){const s=this.title,i=s.length;let r,a,l;if(i){const c=Ss(o.rtl,this.x,this.width);for(t.x=Pr(this,o.titleAlign,o),n.textAlign=c.textAlign(o.titleAlign),n.textBaseline="middle",r=ht(o.titleFont),a=o.titleSpacing,n.fillStyle=o.titleColor,n.font=r.string,l=0;l<i;++l)n.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===i&&(t.y+=o.titleMarginBottom-a)}}_drawColorBox(t,n,o,s,i){const r=this.labelColors[o],a=this.labelPointStyles[o],{boxHeight:l,boxWidth:c}=i,u=ht(i.bodyFont),d=Pr(this,"left",i),f=s.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,g=n.y+p;if(i.usePointStyle){const h={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},v=s.leftForLtr(f,c)+c/2,m=g+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Hl(t,h,v,m),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Hl(t,h,v,m)}else{t.lineWidth=Fe(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const h=s.leftForLtr(f,c),v=s.leftForLtr(s.xPlus(f,1),c-2),m=ns(r.borderRadius);Object.values(m).some(y=>y!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Vi(t,{x:h,y:g,w:c,h:l,radius:m}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Vi(t,{x:v,y:g+1,w:c-2,h:l-2,radius:m}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(h,g,c,l),t.strokeRect(h,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(v,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[o]}drawBody(t,n,o){const{body:s}=this,{bodySpacing:i,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=o,d=ht(o.bodyFont);let f=d.lineHeight,p=0;const g=Ss(o.rtl,this.x,this.width),h=function(k){n.fillText(k,g.x(t.x+p),t.y+f/2),t.y+=f+i},v=g.textAlign(r);let m,y,w,_,x,S,C;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=Pr(this,v,o),n.fillStyle=o.bodyColor,Ue(this.beforeBody,h),p=a&&v!=="right"?r==="center"?c/2+u:c+2+u:0,_=0,S=s.length;_<S;++_){for(m=s[_],y=this.labelTextColors[_],n.fillStyle=y,Ue(m.before,h),w=m.lines,a&&w.length&&(this._drawColorBox(n,t,_,g,o),f=Math.max(d.lineHeight,l)),x=0,C=w.length;x<C;++x)h(w[x]),f=d.lineHeight;Ue(m.after,h)}p=0,f=d.lineHeight,Ue(this.afterBody,h),t.y-=i}drawFooter(t,n,o){const s=this.footer,i=s.length;let r,a;if(i){const l=Ss(o.rtl,this.x,this.width);for(t.x=Pr(this,o.footerAlign,o),t.y+=o.footerMarginTop,n.textAlign=l.textAlign(o.footerAlign),n.textBaseline="middle",r=ht(o.footerFont),n.fillStyle=o.footerColor,n.font=r.string,a=0;a<i;++a)n.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+o.footerSpacing}}drawBackground(t,n,o,s){const{xAlign:i,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:u}=o,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:g}=ns(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+d,l),r==="top"&&this.drawCaret(t,n,o,s),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),r==="center"&&i==="right"&&this.drawCaret(t,n,o,s),n.lineTo(a+c,l+u-g),n.quadraticCurveTo(a+c,l+u,a+c-g,l+u),r==="bottom"&&this.drawCaret(t,n,o,s),n.lineTo(a+p,l+u),n.quadraticCurveTo(a,l+u,a,l+u-p),r==="center"&&i==="left"&&this.drawCaret(t,n,o,s),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,o=this.$animations,s=o&&o.x,i=o&&o.y;if(s||i){const r=di[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=eh(this,t),l=Object.assign({},r,this._size),c=th(n,t,l),u=nh(t,l,c,n);(s._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},i={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const r=Mt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=o,this.drawBackground(i,t,s,n),Em(t,n.textDirection),i.y+=r.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),Mm(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const o=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),i=!ra(o,s),r=this._positionChanged(s,n);(i||r)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,i=this._active||[],r=this._getActiveElements(t,i,n,o),a=this._positionChanged(r,t),l=n||!ra(r,i)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,o,s){const i=this.options;if(t.type==="mouseout")return[];if(!s)return n;const r=this.chart.getElementsAtEventForMode(t,i.mode,i,o);return i.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:o,caretY:s,options:i}=this,r=di[i.position].call(this,t,n);return r!==!1&&(o!==r.x||s!==r.y)}}ae(Gl,"positioners",di);var q$={id:"tooltip",_element:Gl,positioners:di,afterInit(e,t,n){n&&(e.tooltip=new Gl({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Jm},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Y$=Object.freeze({__proto__:null,Colors:r$,Decimation:u$,Filler:O$,Legend:F$,SubTitle:N$,Title:B$,Tooltip:q$});const G$=(e,t,n,o)=>(typeof t=="string"?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function X$(e,t,n,o){const s=e.indexOf(t);if(s===-1)return G$(e,t,n,o);const i=e.lastIndexOf(t);return s!==i?n:s}const Q$=(e,t)=>e===null?null:vt(Math.round(e),0,t);function ih(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Xl extends hs{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:s,label:i}of n)o[s]===i&&o.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ze(t))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===t?n:X$(o,t,Ae(n,t),this._addedLabels),Q$(n,o.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(o=0),n||(s=this.getLabels().length-1)),this.min=o,this.max=s}buildTicks(){const t=this.min,n=this.max,o=this.options.offset,s=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let r=t;r<=n;r++)s.push({value:r});return s}getLabelForValue(t){return ih.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ae(Xl,"id","category"),ae(Xl,"defaults",{ticks:{callback:ih}});function J$(e,t){const n=[],{bounds:s,step:i,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=i||1,g=u-1,{min:h,max:v}=t,m=!ze(r),y=!ze(a),w=!ze(c),_=(v-h)/(d+1);let x=Jd((v-h)/g/p)*p,S,C,k,T;if(x<1e-14&&!m&&!y)return[{value:h},{value:v}];T=Math.ceil(v/x)-Math.floor(h/x),T>g&&(x=Jd(T*x/g/p)*p),ze(l)||(S=Math.pow(10,l),x=Math.ceil(x*S)/S),s==="ticks"?(C=Math.floor(h/x)*x,k=Math.ceil(v/x)*x):(C=h,k=v),m&&y&&i&&KA((a-r)/i,x/1e3)?(T=Math.round(Math.min((a-r)/x,u)),x=(a-r)/T,C=r,k=a):w?(C=m?r:C,k=y?a:k,T=c-1,x=(k-C)/T):(T=(k-C)/x,wi(T,Math.round(T),x/1e3)?T=Math.round(T):T=Math.ceil(T));const B=Math.max(Zd(x),Zd(C));S=Math.pow(10,ze(l)?B:l),C=Math.round(C*S)/S,k=Math.round(k*S)/S;let $=0;for(m&&(f&&C!==r?(n.push({value:r}),C<r&&$++,wi(Math.round((C+$*x)*S)/S,r,rh(r,_,e))&&$++):C<r&&$++);$<T;++$){const D=Math.round((C+$*x)*S)/S;if(y&&D>a)break;n.push({value:D})}return y&&f&&k!==a?n.length&&wi(n[n.length-1].value,a,rh(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!y||k===a)&&n.push({value:k}),n}function rh(e,t,{horizontal:n,minRotation:o}){const s=mn(o),i=(n?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/i,r)}class ha extends hs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ze(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:s,max:i}=this;const r=l=>s=n?s:l,a=l=>i=o?i:l;if(t){const l=Rn(s),c=Rn(i);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===i){let l=i===0?1:Math.abs(i*.05);a(i+l),t||r(s-l)}this.min=s,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=t,s;return o?(s=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let o=this.getTickLimit();o=Math.max(2,o);const s={maxTicks:o,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,r=J$(s,i);return t.bounds==="ticks"&&lm(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&t.length){const s=(o-n)/Math.max(t.length-1,1)/2;n-=s,o+=s}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(t){return or(t,this.chart.options.locale,this.options.ticks.format)}}class Ql extends ha{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=lt(t)?t:0,this.max=lt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,o=mn(this.options.ticks.minRotation),s=(t?Math.sin(o):Math.cos(o))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ae(Ql,"id","linear"),ae(Ql,"defaults",{ticks:{callback:ka.formatters.numeric}});const Wi=e=>Math.floor(wo(e)),Wo=(e,t)=>Math.pow(10,Wi(e)+t);function ah(e){return e/Math.pow(10,Wi(e))===1}function lh(e,t,n){const o=Math.pow(10,n),s=Math.floor(e/o);return Math.ceil(t/o)-s}function Z$(e,t){const n=t-e;let o=Wi(n);for(;lh(e,t,o)>10;)o++;for(;lh(e,t,o)<10;)o--;return Math.min(o,Wi(e))}function eI(e,{min:t,max:n}){t=Yt(e.min,t);const o=[],s=Wi(t);let i=Z$(t,n),r=i<0?Math.pow(10,Math.abs(i)):1;const a=Math.pow(10,i),l=s>i?Math.pow(10,s):0,c=Math.round((t-l)*r)/r,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,i)),f=Yt(e.min,Math.round((l+u+d*Math.pow(10,i))*r)/r);for(;f<n;)o.push({value:f,major:ah(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,r=i>=0?1:r),f=Math.round((l+u+d*Math.pow(10,i))*r)/r;const p=Yt(e.max,f);return o.push({value:p,major:ah(p),significand:d}),o}class Jl extends hs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const o=ha.prototype.parse.apply(this,[t,n]);if(o===0){this._zero=!0;return}return lt(o)&&o>0?o:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=lt(t)?Math.max(0,t):null,this.max=lt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!lt(this._userMin)&&(this.min=t===Wo(this.min,0)?Wo(this.min,-1):Wo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let o=this.min,s=this.max;const i=a=>o=t?o:a,r=a=>s=n?s:a;o===s&&(o<=0?(i(1),r(10)):(i(Wo(o,-1)),r(Wo(s,1)))),o<=0&&i(Wo(s,-1)),s<=0&&r(Wo(o,1)),this.min=o,this.max=s}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},o=eI(n,this);return t.bounds==="ticks"&&lm(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}getLabelForValue(t){return t===void 0?"0":or(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=wo(t),this._valueRange=wo(this.max)-wo(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(wo(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}ae(Jl,"id","logarithmic"),ae(Jl,"defaults",{ticks:{callback:ka.formatters.logarithmic,major:{enabled:!0}}});function Zl(e){const t=e.ticks;if(t.display&&e.display){const n=Mt(t.backdropPadding);return Ae(t.font&&t.font.size,ct.font.size)+n.height}return 0}function tI(e,t,n){return n=tt(n)?n:[n],{w:c2(e,t.string,n),h:n.length*t.lineHeight}}function ch(e,t,n,o,s){return e===o||e===s?{start:t-n/2,end:t+n/2}:e<o||e>s?{start:t-n,end:t}:{start:t,end:t+n}}function nI(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),o=[],s=[],i=e._pointLabels.length,r=e.options.pointLabels,a=r.centerPointLabels?it/i:0;for(let l=0;l<i;l++){const c=r.setContext(e.getPointLabelContext(l));s[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+s[l],a),d=ht(c.font),f=tI(e.ctx,d,e._pointLabels[l]);o[l]=f;const p=Gt(e.getIndexAngle(l)+a),g=Math.round(eu(p)),h=ch(g,u.x,f.w,0,180),v=ch(g,u.y,f.h,90,270);oI(n,t,p,h,v)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=rI(e,o,s)}function oI(e,t,n,o,s){const i=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n));let a=0,l=0;o.start<t.l?(a=(t.l-o.start)/i,e.l=Math.min(e.l,t.l-a)):o.end>t.r&&(a=(o.end-t.r)/i,e.r=Math.max(e.r,t.r+a)),s.start<t.t?(l=(t.t-s.start)/r,e.t=Math.min(e.t,t.t-l)):s.end>t.b&&(l=(s.end-t.b)/r,e.b=Math.max(e.b,t.b+l))}function sI(e,t,n){const o=e.drawingArea,{extra:s,additionalAngle:i,padding:r,size:a}=n,l=e.getPointPosition(t,o+s+r,i),c=Math.round(eu(Gt(l.angle+ut))),u=cI(l.y,a.h,c),d=aI(c),f=lI(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function iI(e,t){if(!t)return!0;const{left:n,top:o,right:s,bottom:i}=e;return!(to({x:n,y:o},t)||to({x:n,y:i},t)||to({x:s,y:o},t)||to({x:s,y:i},t))}function rI(e,t,n){const o=[],s=e._pointLabels.length,i=e.options,{centerPointLabels:r,display:a}=i.pointLabels,l={extra:Zl(i)/2,additionalAngle:r?it/s:0};let c;for(let u=0;u<s;u++){l.padding=n[u],l.size=t[u];const d=sI(e,u,l);o.push(d),a==="auto"&&(d.visible=iI(d,c),d.visible&&(c=d))}return o}function aI(e){return e===0||e===180?"center":e<180?"left":"right"}function lI(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function cI(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function uI(e,t,n){const{left:o,top:s,right:i,bottom:r}=n,{backdropColor:a}=t;if(!ze(a)){const l=ns(t.borderRadius),c=Mt(t.backdropPadding);e.fillStyle=a;const u=o-c.left,d=s-c.top,f=i-o+c.width,p=r-s+c.height;Object.values(l).some(g=>g!==0)?(e.beginPath(),Vi(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function dI(e,t){const{ctx:n,options:{pointLabels:o}}=e;for(let s=t-1;s>=0;s--){const i=e._pointLabelItems[s];if(!i.visible)continue;const r=o.setContext(e.getPointLabelContext(s));uI(n,r,i);const a=ht(r.font),{x:l,y:c,textAlign:u}=i;us(n,e._pointLabels[s],l,c+a.lineHeight/2,a,{color:r.color,textAlign:u,textBaseline:"middle"})}}function Zm(e,t,n,o){const{ctx:s}=e;if(n)s.arc(e.xCenter,e.yCenter,t,0,nt);else{let i=e.getPointPosition(0,t);s.moveTo(i.x,i.y);for(let r=1;r<o;r++)i=e.getPointPosition(r,t),s.lineTo(i.x,i.y)}}function fI(e,t,n,o,s){const i=e.ctx,r=t.circular,{color:a,lineWidth:l}=t;!r&&!o||!a||!l||n<0||(i.save(),i.strokeStyle=a,i.lineWidth=l,i.setLineDash(s.dash),i.lineDashOffset=s.dashOffset,i.beginPath(),Zm(e,n,r,o),i.closePath(),i.stroke(),i.restore())}function hI(e,t,n){return Fo(e,{label:n,index:t,type:"pointLabel"})}class fi extends ha{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Mt(Zl(this.options)/2),n=this.width=this.maxWidth-t.width,o=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+o/2+t.top),this.drawingArea=Math.floor(Math.min(n,o)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=lt(t)&&!isNaN(t)?t:0,this.max=lt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Zl(this.options))}generateTickLabels(t){ha.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,o)=>{const s=Qe(this.options.pointLabels.callback,[n,o],this);return s||s===0?s:""}).filter((n,o)=>this.chart.getDataVisibility(o))}fit(){const t=this.options;t.display&&t.pointLabels.display?nI(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,o,s){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((o-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,o,s))}getIndexAngle(t){const n=nt/(this._pointLabels.length||1),o=this.options.startAngle||0;return Gt(t*n+mn(o))}getDistanceFromCenterForValue(t){if(ze(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(ze(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const o=n[t];return hI(this.getContext(),t,o)}}getPointPosition(t,n,o=0){const s=this.getIndexAngle(t)-ut+o;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:o,right:s,bottom:i}=this._pointLabelItems[t];return{left:n,top:o,right:s,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const o=this.ctx;o.save(),o.beginPath(),Zm(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),o.closePath(),o.fillStyle=t,o.fill(),o.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:o,grid:s,border:i}=n,r=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&dI(this,r),s.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=s.setContext(f),g=i.setContext(f);fI(this,p,l,r,g)}}),o.display){for(t.save(),a=r-1;a>=0;a--){const u=o.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,o=n.ticks;if(!o.display)return;const s=this.getIndexAngle(0);let i,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=o.setContext(this.getContext(l)),u=ht(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,r=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=Mt(c.backdropPadding);t.fillRect(-r/2-d.left,-i-u.size/2-d.top,r+d.width,u.size+d.height)}us(t,a.label,0,-i,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}ae(fi,"id","radialLinear"),ae(fi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ka.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ae(fi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(fi,"descriptors",{angleLines:{_fallback:"grid"}});const Ta={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bt=Object.keys(Ta);function uh(e,t){return e-t}function dh(e,t){if(ze(t))return null;const n=e._adapter,{parser:o,round:s,isoWeekday:i}=e._parseOpts;let r=t;return typeof o=="function"&&(r=o(r)),lt(r)||(r=typeof o=="string"?n.parse(r,o):n.parse(r)),r===null?null:(s&&(r=s==="week"&&(Is(i)||i===!0)?n.startOf(r,"isoWeek",i):n.startOf(r,s)),+r)}function fh(e,t,n,o){const s=Bt.length;for(let i=Bt.indexOf(e);i<s-1;++i){const r=Ta[Bt[i]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=o)return Bt[i]}return Bt[s-1]}function pI(e,t,n,o,s){for(let i=Bt.length-1;i>=Bt.indexOf(n);i--){const r=Bt[i];if(Ta[r].common&&e._adapter.diff(s,o,r)>=t-1)return r}return Bt[n?Bt.indexOf(n):0]}function gI(e){for(let t=Bt.indexOf(e)+1,n=Bt.length;t<n;++t)if(Ta[Bt[t]].common)return Bt[t]}function hh(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:o,hi:s}=tu(n,t),i=n[o]>=t?n[o]:n[s];e[i]=!0}}function mI(e,t,n,o){const s=e._adapter,i=+s.startOf(t[0].value,o),r=t[t.length-1].value;let a,l;for(a=i;a<=r;a=+s.add(a,1,o))l=n[a],l>=0&&(t[l].major=!0);return t}function ph(e,t,n){const o=[],s={},i=t.length;let r,a;for(r=0;r<i;++r)a=t[r],s[a]=r,o.push({value:a,major:!1});return i===0||!n?o:mI(e,o,s,n)}class ji extends hs{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const o=t.time||(t.time={}),s=this._adapter=new kR._date(t.adapters.date);s.init(n),_i(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:dh(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,o=t.time.unit||"day";let{min:s,max:i,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=lt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),i=lt(i)&&!isNaN(i)?i:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,i-1),this.max=Math.max(s+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],o=t[t.length-1]),{min:n,max:o}}buildTicks(){const t=this.options,n=t.time,o=t.ticks,s=o.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const i=this.min,r=this.max,a=XA(s,i,r);return this._unit=n.unit||(o.autoSkip?fh(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):pI(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:gI(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),ph(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,o=0,s,i;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?o=i:o=(i-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=vt(n,0,r),o=vt(o,0,r),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const t=this._adapter,n=this.min,o=this.max,s=this.options,i=s.time,r=i.unit||fh(i.minUnit,n,o,this._getLabelCapacity(n)),a=Ae(s.ticks.stepSize,1),l=r==="week"?i.isoWeekday:!1,c=Is(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(o,n,r)>1e5*a)throw new Error(n+" and "+o+" are too far apart with stepSize of "+a+" "+r);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f<o;f=+t.add(f,a,r),p++)hh(u,f,g);return(f===o||s.bounds==="ticks"||p===1)&&hh(u,f,g),Object.keys(u).sort(uh).map(h=>+h)}getLabelForValue(t){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(t,o.tooltipFormat):n.format(t,o.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,i=this._unit,r=n||s[i];return this._adapter.format(t,r)}_tickFormatFunction(t,n,o,s){const i=this.options,r=i.ticks.callback;if(r)return Qe(r,[t,n,o],this);const a=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=o[n],p=c&&d&&f&&f.major;return this._adapter.format(t,s||(p?d:u))}generateTickLabels(t){let n,o,s;for(n=0,o=t.length;n<o;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,o=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,o=this.ctx.measureText(t).width,s=mn(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:o*i+a*r,h:o*r+a*i}}_getLabelCapacity(t){const n=this.options.time,o=n.displayFormats,s=o[n.unit]||o.millisecond,i=this._tickFormatFunction(t,0,ph(this,[t],this._majorUnit),s),r=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,o;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n<o;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,o;if(t.length)return t;const s=this.getLabels();for(n=0,o=s.length;n<o;++n)t.push(dh(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return dm(t.sort(uh))}}ae(ji,"id","time"),ae(ji,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Tr(e,t,n){let o=0,s=e.length-1,i,r,a,l;n?(t>=e[o].pos&&t<=e[s].pos&&({lo:o,hi:s}=eo(e,"pos",t)),{pos:i,time:a}=e[o],{pos:r,time:l}=e[s]):(t>=e[o].time&&t<=e[s].time&&({lo:o,hi:s}=eo(e,"time",t)),{time:i,pos:a}=e[o],{time:r,pos:l}=e[s]);const c=r-i;return c?a+(l-a)*(t-i)/c:a}class ec extends ji{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Tr(n,this.min),this._tableRange=Tr(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:o}=this,s=[],i=[];let r,a,l,c,u;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=o&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(r=0,a=s.length;r<a;++r)u=s[r+1],l=s[r-1],c=s[r],Math.round((u+l)/2)!==c&&i.push({time:c,pos:r/(a-1)});return i}_generate(){const t=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(t)||!o.length)&&o.splice(0,0,t),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((s,i)=>s-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?t=this.normalize(n.concat(o)):t=n.length?n:o,t=this._cache.all=t,t}getDecimalForValue(t){return(Tr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return Tr(this._table,o*this._tableRange+this._minPos,!0)}}ae(ec,"id","timeseries"),ae(ec,"defaults",ji.defaults);var vI=Object.freeze({__proto__:null,CategoryScale:Xl,LinearScale:Ql,LogarithmicScale:Jl,RadialLinearScale:fi,TimeScale:ji,TimeSeriesScale:ec});const bI=[CR,e$,Y$,vI];Jn.register(...bI);const yI={name:"CardChart",props:{chartProps:{type:Object,required:!0},chartOptions:{type:Object,required:!0}},data(){return{loading:!1,chartId:"buymecoffee_overview_chart_"+this.chartProps.id,chartHeight:this.chartProps.height?this.chartProps.height:"auto",chartWidth:this.chartProps.width?this.chartProps.width:"auto"}},methods:{generateChart(){let e={type:this.chartProps.type?this.chartProps.type:"line",data:{labels:this.chartProps.label,datasets:[{bezierCurve:!1,label:"",data:this.chartProps.data,borderWidth:1,borderColor:this.chartProps.color,backgroundColor:this.chartProps.backgroundColor,fill:!0}]},options:this.chartOptions},t=document.getElementById(this.chartId).getContext("2d");window[this.chartProps.id]=new Jn(t,e)}},mounted(){this.generateChart()}},_I=["id","width","height"];function wI(e,t,n,o,s,i){return M(),N("div",null,[E("canvas",{id:s.chartId,width:s.chartWidth,height:s.chartHeight},null,8,_I)])}const xI=kn(yI,[["render",wI]]),SI={name:"Dashboard",components:{Report:rA,View:uc,Help:tb,Setting:nb,SupportersTable:nm,ChartRenderer:xI},data(){return{limit:20,guidedTour:!0,fetching:!0,posts_per_page:10,current:0,total:0,supporters:[],renderChart:!1,dummyChart:!0,top_paid_currency:"USD",previewUrl:window.BuyMeCoffeeAdmin.preview_url,reportData:{total_supporters:this.total,total_coffee:0,currency_total:[],currency_total_pending:[]},totalRevenue:{id:"revenue_chart",type:"line",height:"460",title:"Total Revenue",color:"rgba(111,194,255,0.51)",backgroundColor:"rgba(24,220,244,0.32)",data:[20,18,20,20,25],label:["January","February","March","April","May"]},overviewOptions:{elements:{line:{tension:.3},point:{radius:5}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>e.formattedValue+" "+this.top_paid_currency}}}}}},computed:{},methods:{getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},setStore(){this.guidedTour=!0,window.localStorage&&localStorage.setItem("buymecoffee_guided_tour",!1)},getSupporters(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_supporters",data:{filter_top:"yes",limit:this.limit,page:this.current,posts_per_page:this.posts_per_page},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.supporters=e.data.supporters,this.total=e.data.total,this.reportData=e.data.reports,this.fetching=!1}).fail(e=>{this.$message.error(e.responseJSON.data.message)}).always(()=>{this.fetching=!1})},getWeeklyRevenue(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_weekly_revenue",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var n,o;this.top_paid_currency=((n=e==null?void 0:e.data)==null?void 0:n.top_paid_currency)||"USD";let t=(o=e==null?void 0:e.data)==null?void 0:o.chartData[this.top_paid_currency];t&&(this.totalRevenue.data=t.data,this.totalRevenue.label=t.label,this.dummyChart=!1),this.renderChart=!0,this.fetching=!1}).catch(e=>{this.fetching=!1,this.$handleError(e)})}},mounted(){this.getSupporters(),this.getWeeklyRevenue(),window.localStorage&&(this.guidedTour=!!window.localStorage.getItem("buymecoffee_guided_tour"))}},ev=e=>(Yi("data-v-b2a15b64"),e=e(),Gi(),e),CI={class:"buymecoffee_main_container"},kI={class:"bmc_coffee_preview"},EI=["href"],MI={key:0,class:"quick_setup_tour"},PI=ev(()=>E("br",null,null,-1)),TI={class:"buymecoffee_dashboard_2nd_row"},OI={class:"buymecoffee_supporters"},AI=ev(()=>E("h1",{class:"buymecoffee_menu_graph_title"},"Supporters Leaderboard",-1)),RI={class:"buymecoffee_supporters_map",style:{padding:"23px"}},LI={class:"buymecoffee_menu_graph_title"},$I={key:0,style:{color:"#ff9800","font-weight":"400"}},II={style:{height:"100%"}},FI={key:0,style:{"text-align":"center",color:"#e38110"}};function DI(e,t,n,o,s,i){const r=Me("report"),a=Me("Help"),l=$e,c=Io,u=Me("View"),d=Me("Setting"),f=Me("supporters-table"),p=Me("ChartRenderer");return M(),N("div",CI,[L(r,{reportData:s.reportData},null,8,["reportData"]),E("div",kI,[L(c,{effect:"light",content:"Quick guided setup",placement:"top"},{default:F(()=>[E("a",{style:{cursor:"pointer"},onClick:t[0]||(t[0]=g=>e.$router.push("quick-setup"))},[L(l,null,{default:F(()=>[L(a)]),_:1}),fe("Setup | ")])]),_:1}),E("a",{href:s.previewUrl,target:"_blank"},[L(l,{style:{"margin-right":"4px"}},{default:F(()=>[L(u)]),_:1}),fe(" Preview")],8,EI)]),!s.supporters.length&&!s.guidedTour&&!s.fetching?(M(),N("div",MI,[E("p",{onClick:t[1]||(t[1]=(...g)=>i.setStore&&i.setStore(...g)),style:{float:"right"}},"x close "),E("div",null,[L(l,null,{default:F(()=>[L(d)]),_:1})]),E("div",{onClick:t[2]||(t[2]=g=>e.$router.push("quick-setup"))},[fe(" Start collecting your donations with Buy me coffee! "),PI,fe(" Start a Quick setup tour. ")])])):X("",!0),E("div",TI,[E("div",OI,[AI,L(f,{onPageChanged:t[3]||(t[3]=g=>{s.current=g,i.getSupporters()}),supporters:s.supporters,hide_pagination:"yes",hide_columns:["operations","id","mode","date"]},null,8,["supporters"])]),E("div",RI,[E("h1",LI,[fe("Recent Revenue graph in "+ce(s.top_paid_currency)+" ",1),s.dummyChart?(M(),N("span",$I,"(Dummy chart)")):X("",!0)]),E("div",II,[s.dummyChart?(M(),N("div",FI," NB: No actual data found! Once you receive some donations, this chart will be updated. ")):X("",!0),s.renderChart?(M(),q(p,{key:1,chartProps:s.totalRevenue,chartOptions:s.overviewOptions},null,8,["chartProps","chartOptions"])):X("",!0)])])])])}const BI=kn(SI,[["render",DI],["__scopeId","data-v-b2a15b64"]]);var tv={exports:{}};/*!
     50`):e}function XI(e,t){const{element:n,datasetIndex:o,index:s}=t,i=e.getDatasetMeta(o).controller,{label:a,value:r}=i.getLabelAndValue(s);return{chart:e,label:a,parsed:i.getParsed(s),raw:e.data.datasets[o].data[s],formattedValue:r,dataset:i.getDataset(),dataIndex:s,datasetIndex:o,element:n}}function hh(e,t){const n=e.chart.ctx,{body:o,footer:s,title:i}=e,{boxWidth:a,boxHeight:r}=t,l=vt(t.bodyFont),u=vt(t.titleFont),c=vt(t.footerFont),d=i.length,f=s.length,h=o.length,p=Rt(t.padding);let g=p.height,m=0,b=o.reduce((_,y)=>_+y.before.length+y.lines.length+y.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(r,l.lineHeight):l.lineHeight;g+=h*_+(b-h)*l.lineHeight+(b-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let w=0;const S=function(_){m=Math.max(m,n.measureText(_).width+w)};return n.save(),n.font=u.string,Ge(e.title,S),n.font=l.string,Ge(e.beforeBody.concat(e.afterBody),S),w=t.displayColors?a+2+t.boxPadding:0,Ge(o,_=>{Ge(_.before,S),Ge(_.lines,S),Ge(_.after,S)}),w=0,n.font=c.string,Ge(e.footer,S),n.restore(),m+=p.width,{width:m,height:g}}function JI(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}function QI(e,t,n,o){const{x:s,width:i}=o,a=n.caretSize+n.caretPadding;if(e==="left"&&s+i+a>t.width||e==="right"&&s-i-a<0)return!0}function ZI(e,t,n,o){const{x:s,width:i}=n,{width:a,chartArea:{left:r,right:l}}=e;let u="center";return o==="center"?u=s<=(r+l)/2?"left":"right":s<=i/2?u="left":s>=a-i/2&&(u="right"),QI(u,e,t,n)&&(u="center"),u}function ph(e,t,n){const o=n.yAlign||t.yAlign||JI(e,n);return{xAlign:n.xAlign||t.xAlign||ZI(e,t,n,o),yAlign:o}}function e$(e,t){let{x:n,width:o}=e;return t==="right"?n-=o:t==="center"&&(n-=o/2),n}function t$(e,t,n){let{y:o,height:s}=e;return t==="top"?o+=n:t==="bottom"?o-=s+n:o-=s/2,o}function gh(e,t,n,o){const{caretSize:s,caretPadding:i,cornerRadius:a}=e,{xAlign:r,yAlign:l}=n,u=s+i,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=ss(a);let p=e$(t,r);const g=t$(t,l,u);return l==="center"?r==="left"?p+=u:r==="right"&&(p-=u):r==="left"?p-=Math.max(c,f)+s:r==="right"&&(p+=Math.max(d,h)+s),{x:_t(p,0,o.width-t.width),y:_t(g,0,o.height-t.height)}}function La(e,t,n){const o=Rt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-o.right:e.x+o.left}function mh(e){return Rn([],Yn(e))}function n$(e,t,n){return Fo(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function vh(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const bv={beforeTitle:Un,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:Un,beforeBody:Un,beforeLabel:Un,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return He(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Un,afterBody:Un,beforeFooter:Un,footer:Un,afterFooter:Un};function Nt(e,t,n,o){const s=e[t].call(n,o);return typeof s>"u"?bv[t].call(n,o):s}class su extends Cn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,i=new Jm(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=n$(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:o}=n,s=Nt(o,"beforeTitle",this,t),i=Nt(o,"title",this,t),a=Nt(o,"afterTitle",this,t);let r=[];return r=Rn(r,Yn(s)),r=Rn(r,Yn(i)),r=Rn(r,Yn(a)),r}getBeforeBody(t,n){return mh(Nt(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:o}=n,s=[];return Ge(t,i=>{const a={before:[],lines:[],after:[]},r=vh(o,i);Rn(a.before,Yn(Nt(r,"beforeLabel",this,i))),Rn(a.lines,Nt(r,"label",this,i)),Rn(a.after,Yn(Nt(r,"afterLabel",this,i))),s.push(a)}),s}getAfterBody(t,n){return mh(Nt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:o}=n,s=Nt(o,"beforeFooter",this,t),i=Nt(o,"footer",this,t),a=Nt(o,"afterFooter",this,t);let r=[];return r=Rn(r,Yn(s)),r=Rn(r,Yn(i)),r=Rn(r,Yn(a)),r}_createItems(t){const n=this._active,o=this.chart.data,s=[],i=[],a=[];let r=[],l,u;for(l=0,u=n.length;l<u;++l)r.push(XI(this.chart,n[l]));return t.filter&&(r=r.filter((c,d,f)=>t.filter(c,d,f,o))),t.itemSort&&(r=r.sort((c,d)=>t.itemSort(c,d,o))),Ge(r,c=>{const d=vh(t.callbacks,c);s.push(Nt(d,"labelColor",this,c)),i.push(Nt(d,"labelPointStyle",this,c)),a.push(Nt(d,"labelTextColor",this,c))}),this.labelColors=s,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=r,r}update(t,n){const o=this.options.setContext(this.getContext()),s=this._active;let i,a=[];if(!s.length)this.opacity!==0&&(i={opacity:0});else{const r=di[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const l=this._size=hh(this,o),u=Object.assign({},r,l),c=ph(this.chart,o,u),d=gh(o,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:r.x,caretY:r.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,o,s){const i=this.getCaretPosition(t,o,s);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,o){const{xAlign:s,yAlign:i}=this,{caretSize:a,cornerRadius:r}=o,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=ss(r),{x:f,y:h}=t,{width:p,height:g}=n;let m,b,w,S,_,y;return i==="center"?(_=h+g/2,s==="left"?(m=f,b=m-a,S=_+a,y=_-a):(m=f+p,b=m+a,S=_-a,y=_+a),w=m):(s==="left"?b=f+Math.max(l,c)+a:s==="right"?b=f+p-Math.max(u,d)-a:b=this.caretX,i==="top"?(S=h,_=S-a,m=b-a,w=b+a):(S=h+g,_=S+a,m=b+a,w=b-a),y=S),{x1:m,x2:b,x3:w,y1:S,y2:_,y3:y}}drawTitle(t,n,o){const s=this.title,i=s.length;let a,r,l;if(i){const u=Ms(o.rtl,this.x,this.width);for(t.x=La(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=vt(o.titleFont),r=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,l=0;l<i;++l)n.fillText(s[l],u.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,l+1===i&&(t.y+=o.titleMarginBottom-r)}}_drawColorBox(t,n,o,s,i){const a=this.labelColors[o],r=this.labelPointStyles[o],{boxHeight:l,boxWidth:u}=i,c=vt(i.bodyFont),d=La(this,"left",i),f=s.x(d),h=l<c.lineHeight?(c.lineHeight-l)/2:0,p=n.y+h;if(i.usePointStyle){const g={radius:Math.min(u,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},m=s.leftForLtr(f,u)+u/2,b=p+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Jl(t,g,m,b),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Jl(t,g,m,b)}else{t.lineWidth=Be(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const g=s.leftForLtr(f,u),m=s.leftForLtr(s.xPlus(f,1),u-2),b=ss(a.borderRadius);Object.values(b).some(w=>w!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Wi(t,{x:g,y:p,w:u,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Wi(t,{x:m,y:p+1,w:u-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,p,u,l),t.strokeRect(g,p,u,l),t.fillStyle=a.backgroundColor,t.fillRect(m,p+1,u-2,l-2))}t.fillStyle=this.labelTextColors[o]}drawBody(t,n,o){const{body:s}=this,{bodySpacing:i,bodyAlign:a,displayColors:r,boxHeight:l,boxWidth:u,boxPadding:c}=o,d=vt(o.bodyFont);let f=d.lineHeight,h=0;const p=Ms(o.rtl,this.x,this.width),g=function(E){n.fillText(E,p.x(t.x+h),t.y+f/2),t.y+=f+i},m=p.textAlign(a);let b,w,S,_,y,x,C;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=La(this,m,o),n.fillStyle=o.bodyColor,Ge(this.beforeBody,g),h=r&&m!=="right"?a==="center"?u/2+c:u+2+c:0,_=0,x=s.length;_<x;++_){for(b=s[_],w=this.labelTextColors[_],n.fillStyle=w,Ge(b.before,g),S=b.lines,r&&S.length&&(this._drawColorBox(n,t,_,p,o),f=Math.max(d.lineHeight,l)),y=0,C=S.length;y<C;++y)g(S[y]),f=d.lineHeight;Ge(b.after,g)}h=0,f=d.lineHeight,Ge(this.afterBody,g),t.y-=i}drawFooter(t,n,o){const s=this.footer,i=s.length;let a,r;if(i){const l=Ms(o.rtl,this.x,this.width);for(t.x=La(this,o.footerAlign,o),t.y+=o.footerMarginTop,n.textAlign=l.textAlign(o.footerAlign),n.textBaseline="middle",a=vt(o.footerFont),n.fillStyle=o.footerColor,n.font=a.string,r=0;r<i;++r)n.fillText(s[r],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+o.footerSpacing}}drawBackground(t,n,o,s){const{xAlign:i,yAlign:a}=this,{x:r,y:l}=t,{width:u,height:c}=o,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=ss(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(r+d,l),a==="top"&&this.drawCaret(t,n,o,s),n.lineTo(r+u-f,l),n.quadraticCurveTo(r+u,l,r+u,l+f),a==="center"&&i==="right"&&this.drawCaret(t,n,o,s),n.lineTo(r+u,l+c-p),n.quadraticCurveTo(r+u,l+c,r+u-p,l+c),a==="bottom"&&this.drawCaret(t,n,o,s),n.lineTo(r+h,l+c),n.quadraticCurveTo(r,l+c,r,l+c-h),a==="center"&&i==="left"&&this.drawCaret(t,n,o,s),n.lineTo(r,l+d),n.quadraticCurveTo(r,l,r+d,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,o=this.$animations,s=o&&o.x,i=o&&o.y;if(s||i){const a=di[t.position].call(this,this._active,this._eventPosition);if(!a)return;const r=this._size=hh(this,t),l=Object.assign({},a,this._size),u=ph(n,t,l),c=gh(t,l,u,n);(s._to!==c.x||i._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=r.width,this.height=r.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},i={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Rt(n.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&r&&(t.save(),t.globalAlpha=o,this.drawBackground(i,t,s,n),Km(t,n.textDirection),i.y+=a.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),qm(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const o=this._active,s=t.map(({datasetIndex:r,index:l})=>{const u=this.chart.getDatasetMeta(r);if(!u)throw new Error("Cannot find a dataset at index "+r);return{datasetIndex:r,element:u.data[l],index:l}}),i=!ur(o,s),a=this._positionChanged(s,n);(i||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,i=this._active||[],a=this._getActiveElements(t,i,n,o),r=this._positionChanged(a,t),l=n||!ur(a,i)||r;return l&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,o,s){const i=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(r=>this.chart.data.datasets[r.datasetIndex]&&this.chart.getDatasetMeta(r.datasetIndex).controller.getParsed(r.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,i.mode,i,o);return i.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:o,caretY:s,options:i}=this,a=di[i.position].call(this,t,n);return a!==!1&&(o!==a.x||s!==a.y)}}ce(su,"positioners",di);var o$={id:"tooltip",_element:su,positioners:di,afterInit(e,t,n){n&&(e.tooltip=new su({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:bv},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},s$=Object.freeze({__proto__:null,Colors:mI,Decimation:_I,Filler:zI,Legend:KI,SubTitle:GI,Title:YI,Tooltip:o$});const i$=(e,t,n,o)=>(typeof t=="string"?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function a$(e,t,n,o){const s=e.indexOf(t);if(s===-1)return i$(e,t,n,o);const i=e.lastIndexOf(t);return s!==i?n:s}const r$=(e,t)=>e===null?null:_t(Math.round(e),0,t);function bh(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class iu extends gs{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const o=this.getLabels();for(const{index:s,label:i}of n)o[s]===i&&o.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(He(t))return null;const o=this.getLabels();return n=isFinite(n)&&o[n]===t?n:a$(o,t,Pe(n,t),this._addedLabels),r$(n,o.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(o=0),n||(s=this.getLabels().length-1)),this.min=o,this.max=s}buildTicks(){const t=this.min,n=this.max,o=this.options.offset,s=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let a=t;a<=n;a++)s.push({value:a});return s}getLabelForValue(t){return bh.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ce(iu,"id","category"),ce(iu,"defaults",{ticks:{callback:bh}});function l$(e,t){const n=[],{bounds:s,step:i,min:a,max:r,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=i||1,p=c-1,{min:g,max:m}=t,b=!He(a),w=!He(r),S=!He(u),_=(m-g)/(d+1);let y=hf((m-g)/p/h)*h,x,C,E,O;if(y<1e-14&&!b&&!w)return[{value:g},{value:m}];O=Math.ceil(m/y)-Math.floor(g/y),O>p&&(y=hf(O*y/p/h)*h),He(l)||(x=Math.pow(10,l),y=Math.ceil(y*x)/x),s==="ticks"?(C=Math.floor(g/y)*y,E=Math.ceil(m/y)*y):(C=g,E=m),b&&w&&i&&t2((r-a)/i,y/1e3)?(O=Math.round(Math.min((r-a)/y,c)),y=(r-a)/O,C=a,E=r):S?(C=b?a:C,E=w?r:E,O=u-1,y=(E-C)/O):(O=(E-C)/y,_i(O,Math.round(O),y/1e3)?O=Math.round(O):O=Math.ceil(O));const I=Math.max(pf(y),pf(C));x=Math.pow(10,He(l)?I:l),C=Math.round(C*x)/x,E=Math.round(E*x)/x;let $=0;for(b&&(f&&C!==a?(n.push({value:a}),C<a&&$++,_i(Math.round((C+$*y)*x)/x,a,yh(a,_,e))&&$++):C<a&&$++);$<O;++$){const N=Math.round((C+$*y)*x)/x;if(w&&N>r)break;n.push({value:N})}return w&&f&&E!==r?n.length&&_i(n[n.length-1].value,r,yh(r,_,e))?n[n.length-1].value=r:n.push({value:r}):(!w||E===r)&&n.push({value:E}),n}function yh(e,t,{horizontal:n,minRotation:o}){const s=_n(o),i=(n?Math.sin(s):Math.cos(s))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class mr extends gs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return He(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:o}=this.getUserBounds();let{min:s,max:i}=this;const a=l=>s=n?s:l,r=l=>i=o?i:l;if(t){const l=Fn(s),u=Fn(i);l<0&&u<0?r(0):l>0&&u>0&&a(0)}if(s===i){let l=i===0?1:Math.abs(i*.05);r(i+l),t||a(s-l)}this.min=s,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:o}=t,s;return o?(s=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let o=this.getTickLimit();o=Math.max(2,o);const s={maxTicks:o,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=l$(s,i);return t.bounds==="ticks"&&Pm(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,o=this.max;if(super.configure(),this.options.offset&&t.length){const s=(o-n)/Math.max(t.length-1,1)/2;n-=s,o+=s}this._startValue=n,this._endValue=o,this._valueRange=o-n}getLabelForValue(t){return ia(t,this.chart.options.locale,this.options.ticks.format)}}class au extends mr{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ht(t)?t:0,this.max=ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,o=_n(this.options.ticks.minRotation),s=(t?Math.sin(o):Math.cos(o))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ce(au,"id","linear"),ce(au,"defaults",{ticks:{callback:Pr.formatters.numeric}});const Ui=e=>Math.floor(ko(e)),Ho=(e,t)=>Math.pow(10,Ui(e)+t);function _h(e){return e/Math.pow(10,Ui(e))===1}function wh(e,t,n){const o=Math.pow(10,n),s=Math.floor(e/o);return Math.ceil(t/o)-s}function u$(e,t){const n=t-e;let o=Ui(n);for(;wh(e,t,o)>10;)o++;for(;wh(e,t,o)<10;)o--;return Math.min(o,Ui(e))}function c$(e,{min:t,max:n}){t=Gt(e.min,t);const o=[],s=Ui(t);let i=u$(t,n),a=i<0?Math.pow(10,Math.abs(i)):1;const r=Math.pow(10,i),l=s>i?Math.pow(10,s):0,u=Math.round((t-l)*a)/a,c=Math.floor((t-l)/r/10)*r*10;let d=Math.floor((u-c)/Math.pow(10,i)),f=Gt(e.min,Math.round((l+c+d*Math.pow(10,i))*a)/a);for(;f<n;)o.push({value:f,major:_h(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,a=i>=0?1:a),f=Math.round((l+c+d*Math.pow(10,i))*a)/a;const h=Gt(e.max,f);return o.push({value:h,major:_h(h),significand:d}),o}class ru extends gs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const o=mr.prototype.parse.apply(this,[t,n]);if(o===0){this._zero=!0;return}return ht(o)&&o>0?o:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ht(t)?Math.max(0,t):null,this.max=ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ht(this._userMin)&&(this.min=t===Ho(this.min,0)?Ho(this.min,-1):Ho(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let o=this.min,s=this.max;const i=r=>o=t?o:r,a=r=>s=n?s:r;o===s&&(o<=0?(i(1),a(10)):(i(Ho(o,-1)),a(Ho(s,1)))),o<=0&&i(Ho(s,-1)),s<=0&&a(Ho(o,1)),this.min=o,this.max=s}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},o=c$(n,this);return t.bounds==="ticks"&&Pm(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}getLabelForValue(t){return t===void 0?"0":ia(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ko(t),this._valueRange=ko(this.max)-ko(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ko(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}ce(ru,"id","logarithmic"),ce(ru,"defaults",{ticks:{callback:Pr.formatters.logarithmic,major:{enabled:!0}}});function lu(e){const t=e.ticks;if(t.display&&e.display){const n=Rt(t.backdropPadding);return Pe(t.font&&t.font.size,ut.font.size)+n.height}return 0}function d$(e,t,n){return n=st(n)?n:[n],{w:b2(e,t.string,n),h:n.length*t.lineHeight}}function Sh(e,t,n,o,s){return e===o||e===s?{start:t-n/2,end:t+n/2}:e<o||e>s?{start:t-n,end:t}:{start:t,end:t+n}}function f$(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),o=[],s=[],i=e._pointLabels.length,a=e.options.pointLabels,r=a.centerPointLabels?at/i:0;for(let l=0;l<i;l++){const u=a.setContext(e.getPointLabelContext(l));s[l]=u.padding;const c=e.getPointPosition(l,e.drawingArea+s[l],r),d=vt(u.font),f=d$(e.ctx,d,e._pointLabels[l]);o[l]=f;const h=Xt(e.getIndexAngle(l)+r),p=Math.round(cc(h)),g=Sh(p,c.x,f.w,0,180),m=Sh(p,c.y,f.h,90,270);h$(n,t,h,g,m)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=m$(e,o,s)}function h$(e,t,n,o,s){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let r=0,l=0;o.start<t.l?(r=(t.l-o.start)/i,e.l=Math.min(e.l,t.l-r)):o.end>t.r&&(r=(o.end-t.r)/i,e.r=Math.max(e.r,t.r+r)),s.start<t.t?(l=(t.t-s.start)/a,e.t=Math.min(e.t,t.t-l)):s.end>t.b&&(l=(s.end-t.b)/a,e.b=Math.max(e.b,t.b+l))}function p$(e,t,n){const o=e.drawingArea,{extra:s,additionalAngle:i,padding:a,size:r}=n,l=e.getPointPosition(t,o+s+a,i),u=Math.round(cc(Xt(l.angle+pt))),c=y$(l.y,r.h,u),d=v$(u),f=b$(l.x,r.w,d);return{visible:!0,x:l.x,y:c,textAlign:d,left:f,top:c,right:f+r.w,bottom:c+r.h}}function g$(e,t){if(!t)return!0;const{left:n,top:o,right:s,bottom:i}=e;return!(to({x:n,y:o},t)||to({x:n,y:i},t)||to({x:s,y:o},t)||to({x:s,y:i},t))}function m$(e,t,n){const o=[],s=e._pointLabels.length,i=e.options,{centerPointLabels:a,display:r}=i.pointLabels,l={extra:lu(i)/2,additionalAngle:a?at/s:0};let u;for(let c=0;c<s;c++){l.padding=n[c],l.size=t[c];const d=p$(e,c,l);o.push(d),r==="auto"&&(d.visible=g$(d,u),d.visible&&(u=d))}return o}function v$(e){return e===0||e===180?"center":e<180?"left":"right"}function b$(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function y$(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function _$(e,t,n){const{left:o,top:s,right:i,bottom:a}=n,{backdropColor:r}=t;if(!He(r)){const l=ss(t.borderRadius),u=Rt(t.backdropPadding);e.fillStyle=r;const c=o-u.left,d=s-u.top,f=i-o+u.width,h=a-s+u.height;Object.values(l).some(p=>p!==0)?(e.beginPath(),Wi(e,{x:c,y:d,w:f,h,radius:l}),e.fill()):e.fillRect(c,d,f,h)}}function w$(e,t){const{ctx:n,options:{pointLabels:o}}=e;for(let s=t-1;s>=0;s--){const i=e._pointLabelItems[s];if(!i.visible)continue;const a=o.setContext(e.getPointLabelContext(s));_$(n,a,i);const r=vt(a.font),{x:l,y:u,textAlign:c}=i;cs(n,e._pointLabels[s],l,u+r.lineHeight/2,r,{color:a.color,textAlign:c,textBaseline:"middle"})}}function yv(e,t,n,o){const{ctx:s}=e;if(n)s.arc(e.xCenter,e.yCenter,t,0,it);else{let i=e.getPointPosition(0,t);s.moveTo(i.x,i.y);for(let a=1;a<o;a++)i=e.getPointPosition(a,t),s.lineTo(i.x,i.y)}}function S$(e,t,n,o,s){const i=e.ctx,a=t.circular,{color:r,lineWidth:l}=t;!a&&!o||!r||!l||n<0||(i.save(),i.strokeStyle=r,i.lineWidth=l,i.setLineDash(s.dash||[]),i.lineDashOffset=s.dashOffset,i.beginPath(),yv(e,n,a,o),i.closePath(),i.stroke(),i.restore())}function x$(e,t,n){return Fo(e,{label:n,index:t,type:"pointLabel"})}class fi extends mr{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Rt(lu(this.options)/2),n=this.width=this.maxWidth-t.width,o=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+o/2+t.top),this.drawingArea=Math.floor(Math.min(n,o)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ht(t)&&!isNaN(t)?t:0,this.max=ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/lu(this.options))}generateTickLabels(t){mr.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,o)=>{const s=et(this.options.pointLabels.callback,[n,o],this);return s||s===0?s:""}).filter((n,o)=>this.chart.getDataVisibility(o))}fit(){const t=this.options;t.display&&t.pointLabels.display?f$(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,o,s){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((o-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,o,s))}getIndexAngle(t){const n=it/(this._pointLabels.length||1),o=this.options.startAngle||0;return Xt(t*n+_n(o))}getDistanceFromCenterForValue(t){if(He(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(He(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const o=n[t];return x$(this.getContext(),t,o)}}getPointPosition(t,n,o=0){const s=this.getIndexAngle(t)-pt+o;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:o,right:s,bottom:i}=this._pointLabelItems[t];return{left:n,top:o,right:s,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const o=this.ctx;o.save(),o.beginPath(),yv(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),o.closePath(),o.fillStyle=t,o.fill(),o.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:o,grid:s,border:i}=n,a=this._pointLabels.length;let r,l,u;if(n.pointLabels.display&&w$(this,a),s.display&&this.ticks.forEach((c,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(c.value);const f=this.getContext(d),h=s.setContext(f),p=i.setContext(f);S$(this,h,l,a,p)}}),o.display){for(t.save(),r=a-1;r>=0;r--){const c=o.setContext(this.getPointLabelContext(r)),{color:d,lineWidth:f}=c;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(r,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,o=n.ticks;if(!o.display)return;const s=this.getIndexAngle(0);let i,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const u=o.setContext(this.getContext(l)),c=vt(u.font);if(i=this.getDistanceFromCenterForValue(this.ticks[l].value),u.showLabelBackdrop){t.font=c.string,a=t.measureText(r.label).width,t.fillStyle=u.backdropColor;const d=Rt(u.backdropPadding);t.fillRect(-a/2-d.left,-i-c.size/2-d.top,a+d.width,c.size+d.height)}cs(t,r.label,0,-i,c,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}}ce(fi,"id","radialLinear"),ce(fi,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pr.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ce(fi,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ce(fi,"descriptors",{angleLines:{_fallback:"grid"}});const Lr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Vt=Object.keys(Lr);function xh(e,t){return e-t}function Ch(e,t){if(He(t))return null;const n=e._adapter,{parser:o,round:s,isoWeekday:i}=e._parseOpts;let a=t;return typeof o=="function"&&(a=o(a)),ht(a)||(a=typeof o=="string"?n.parse(a,o):n.parse(a)),a===null?null:(s&&(a=s==="week"&&(zs(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,s)),+a)}function kh(e,t,n,o){const s=Vt.length;for(let i=Vt.indexOf(e);i<s-1;++i){const a=Lr[Vt[i]],r=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(r*a.size))<=o)return Vt[i]}return Vt[s-1]}function C$(e,t,n,o,s){for(let i=Vt.length-1;i>=Vt.indexOf(n);i--){const a=Vt[i];if(Lr[a].common&&e._adapter.diff(s,o,a)>=t-1)return a}return Vt[n?Vt.indexOf(n):0]}function k$(e){for(let t=Vt.indexOf(e)+1,n=Vt.length;t<n;++t)if(Lr[Vt[t]].common)return Vt[t]}function Eh(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:o,hi:s}=dc(n,t),i=n[o]>=t?n[o]:n[s];e[i]=!0}}function E$(e,t,n,o){const s=e._adapter,i=+s.startOf(t[0].value,o),a=t[t.length-1].value;let r,l;for(r=i;r<=a;r=+s.add(r,1,o))l=n[r],l>=0&&(t[l].major=!0);return t}function Mh(e,t,n){const o=[],s={},i=t.length;let a,r;for(a=0;a<i;++a)r=t[a],s[r]=a,o.push({value:r,major:!1});return i===0||!n?o:E$(e,o,s,n)}class Ki extends gs{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const o=t.time||(t.time={}),s=this._adapter=new IR._date(t.adapters.date);s.init(n),yi(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Ch(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,o=t.time.unit||"day";let{min:s,max:i,minDefined:a,maxDefined:r}=this.getUserBounds();function l(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!r&&!isNaN(u.max)&&(i=Math.max(i,u.max))}(!a||!r)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=ht(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),i=ht(i)&&!isNaN(i)?i:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,i-1),this.max=Math.max(s+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],o=t[t.length-1]),{min:n,max:o}}buildTicks(){const t=this.options,n=t.time,o=t.ticks,s=o.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const i=this.min,a=this.max,r=i2(s,i,a);return this._unit=n.unit||(o.autoSkip?kh(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):C$(this,r.length,n.minUnit,this.min,this.max)),this._majorUnit=!o.major.enabled||this._unit==="year"?void 0:k$(this._unit),this.initOffsets(s),t.reverse&&r.reverse(),Mh(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,o=0,s,i;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?o=i:o=(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=_t(n,0,a),o=_t(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const t=this._adapter,n=this.min,o=this.max,s=this.options,i=s.time,a=i.unit||kh(i.minUnit,n,o,this._getLabelCapacity(n)),r=Pe(s.ticks.stepSize,1),l=a==="week"?i.isoWeekday:!1,u=zs(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":a),t.diff(o,n,a)>1e5*r)throw new Error(n+" and "+o+" are too far apart with stepSize of "+r+" "+a);const p=s.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<o;f=+t.add(f,r,a),h++)Eh(c,f,p);return(f===o||s.bounds==="ticks"||h===1)&&Eh(c,f,p),Object.keys(c).sort(xh).map(g=>+g)}getLabelForValue(t){const n=this._adapter,o=this.options.time;return o.tooltipFormat?n.format(t,o.tooltipFormat):n.format(t,o.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,i=this._unit,a=n||s[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,o,s){const i=this.options,a=i.ticks.callback;if(a)return et(a,[t,n,o],this);const r=i.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&r[l],d=u&&r[u],f=o[n],h=u&&d&&f&&f.major;return this._adapter.format(t,s||(h?d:c))}generateTickLabels(t){let n,o,s;for(n=0,o=t.length;n<o;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,o=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+o)*n.factor)}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+o*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,o=this.ctx.measureText(t).width,s=_n(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(s),a=Math.sin(s),r=this._resolveTickFontOptions(0).size;return{w:o*i+r*a,h:o*a+r*i}}_getLabelCapacity(t){const n=this.options.time,o=n.displayFormats,s=o[n.unit]||o.millisecond,i=this._tickFormatFunction(t,0,Mh(this,[t],this._majorUnit),s),a=this._getLabelSize(i),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let t=this._cache.data||[],n,o;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n<o;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,o;if(t.length)return t;const s=this.getLabels();for(n=0,o=s.length;n<o;++n)t.push(Ch(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Rm(t.sort(xh))}}ce(Ki,"id","time"),ce(Ki,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ia(e,t,n){let o=0,s=e.length-1,i,a,r,l;n?(t>=e[o].pos&&t<=e[s].pos&&({lo:o,hi:s}=eo(e,"pos",t)),{pos:i,time:r}=e[o],{pos:a,time:l}=e[s]):(t>=e[o].time&&t<=e[s].time&&({lo:o,hi:s}=eo(e,"time",t)),{time:i,pos:r}=e[o],{time:a,pos:l}=e[s]);const u=a-i;return u?r+(l-r)*(t-i)/u:r}class uu extends Ki{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ia(n,this.min),this._tableRange=Ia(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:o}=this,s=[],i=[];let a,r,l,u,c;for(a=0,r=t.length;a<r;++a)u=t[a],u>=n&&u<=o&&s.push(u);if(s.length<2)return[{time:n,pos:0},{time:o,pos:1}];for(a=0,r=s.length;a<r;++a)c=s[a+1],l=s[a-1],u=s[a],Math.round((c+l)/2)!==u&&i.push({time:u,pos:a/(r-1)});return i}_generate(){const t=this.min,n=this.max;let o=super.getDataTimestamps();return(!o.includes(t)||!o.length)&&o.splice(0,0,t),(!o.includes(n)||o.length===1)&&o.push(n),o.sort((s,i)=>s-i)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),o=this.getLabelTimestamps();return n.length&&o.length?t=this.normalize(n.concat(o)):t=n.length?n:o,t=this._cache.all=t,t}getDecimalForValue(t){return(Ia(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,o=this.getDecimalForPixel(t)/n.factor-n.end;return Ia(this._table,o*this._tableRange+this._minPos,!0)}}ce(uu,"id","timeseries"),ce(uu,"defaults",Ki.defaults);var M$=Object.freeze({__proto__:null,CategoryScale:iu,LinearScale:au,LogarithmicScale:ru,RadialLinearScale:fi,TimeScale:Ki,TimeSeriesScale:uu});const T$=[LR,uI,s$,M$];Jn.register(...T$);const P$={name:"CardChart",props:{chartProps:{type:Object,required:!0},chartOptions:{type:Object,required:!0}},data(){return{loading:!1,chartId:"buymecoffee_overview_chart_"+this.chartProps.id,chartHeight:this.chartProps.height?this.chartProps.height:"auto",chartWidth:this.chartProps.width?this.chartProps.width:"auto"}},methods:{generateChart(){let e={type:this.chartProps.type?this.chartProps.type:"line",data:{labels:this.chartProps.label,datasets:[{bezierCurve:!1,label:"",data:this.chartProps.data,borderWidth:1,borderColor:this.chartProps.color,backgroundColor:this.chartProps.backgroundColor,fill:!0}]},options:this.chartOptions},t=document.getElementById(this.chartId).getContext("2d");window[this.chartProps.id]=new Jn(t,e)}},mounted(){this.generateChart()}},O$=["id","width","height"];function A$(e,t,n,o,s,i){return M(),D("div",null,[k("canvas",{id:s.chartId,width:s.chartWidth,height:s.chartHeight},null,8,O$)])}const R$=Kt(P$,[["render",A$]]),L$={name:"Dashboard",components:{Report:mA,View:bu,Help:Nb,Setting:zb,SupportersTable:xm,ChartRenderer:R$},data(){return{limit:20,guidedTour:!0,fetching:!0,posts_per_page:10,current:0,total:0,supporters:[],renderChart:!1,dummyChart:!0,top_paid_currency:"USD",previewUrl:window.BuyMeCoffeeAdmin.preview_url,reportData:{total_supporters:this.total,total_coffee:0,currency_total:[],currency_total_pending:[]},totalRevenue:{id:"revenue_chart",type:"line",height:"460",title:"Total Revenue",color:"rgba(111,194,255,0.51)",backgroundColor:"rgba(24,220,244,0.32)",data:[20,18,20,20,25],label:["January","February","March","April","May"]},overviewOptions:{elements:{line:{tension:.3},point:{radius:5}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>e.formattedValue+" "+this.top_paid_currency}}}}}},computed:{},methods:{getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},setStore(){this.guidedTour=!0,window.localStorage&&localStorage.setItem("buymecoffee_guided_tour",!1)},getSupporters(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_supporters",data:{filter_top:"yes",limit:this.limit,page:this.current,posts_per_page:this.posts_per_page},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.supporters=e.data.supporters,this.total=e.data.total,this.reportData=e.data.reports,this.fetching=!1}).fail(e=>{this.$message.error(e.responseJSON.data.message)}).always(()=>{this.fetching=!1})},getWeeklyRevenue(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_weekly_revenue",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var n,o;this.top_paid_currency=((n=e==null?void 0:e.data)==null?void 0:n.top_paid_currency)||"USD";let t=(o=e==null?void 0:e.data)==null?void 0:o.chartData[this.top_paid_currency];t&&(this.totalRevenue.data=t.data,this.totalRevenue.label=t.label,this.dummyChart=!1),this.renderChart=!0,this.fetching=!1}).catch(e=>{this.fetching=!1,this.$handleError(e)})}},mounted(){this.getSupporters(),this.getWeeklyRevenue(),window.localStorage&&(this.guidedTour=!!window.localStorage.getItem("buymecoffee_guided_tour"))}},I$={class:"buymecoffee_main_container"},$$={class:"bmc_coffee_preview"},F$=["href"],B$={key:0,class:"quick_setup_tour"},D$={class:"buymecoffee_dashboard_2nd_row"},N$={class:"buymecoffee_supporters"},z$={class:"buymecoffee_supporters_map",style:{padding:"23px"}},V$={class:"buymecoffee_menu_graph_title"},H$={key:0,style:{color:"#ff9800","font-weight":"400"}},W$={style:{height:"100%"}},j$={key:0,style:{"text-align":"center",color:"#e38110"}};function U$(e,t,n,o,s,i){const a=_e("report"),r=_e("Help"),l=Le,u=Vn,c=_e("View"),d=_e("Setting"),f=_e("supporters-table"),h=_e("ChartRenderer");return M(),D("div",I$,[P(a,{reportData:s.reportData},null,8,["reportData"]),k("div",$$,[P(u,{effect:"light",content:"Quick guided setup",placement:"top"},{default:L(()=>[k("a",{class:"cursor-pointer",onClick:t[0]||(t[0]=p=>e.$router.push("quick-setup"))},[P(l,null,{default:L(()=>[P(r)]),_:1}),t[4]||(t[4]=k("p",{class:"ml-1"},"Setup",-1)),t[5]||(t[5]=le()),t[6]||(t[6]=k("p",{class:"text-gray-400 ml-2 mr-2"},"|",-1))])]),_:1}),k("a",{href:s.previewUrl,target:"_blank"},[P(l,null,{default:L(()=>[P(c)]),_:1}),t[7]||(t[7]=k("p",{class:"ml-1"},"Preview",-1))],8,F$)]),!s.supporters.length&&!s.guidedTour&&!s.fetching?(M(),D("div",B$,[k("p",{class:"float-right",onClick:t[1]||(t[1]=(...p)=>i.setStore&&i.setStore(...p))},"x close "),k("div",null,[P(l,null,{default:L(()=>[P(d)]),_:1})]),k("div",{onClick:t[2]||(t[2]=p=>e.$router.push("quick-setup"))},t[8]||(t[8]=[le(" Start collecting your donations with Buy me coffee! "),k("br",null,null,-1),le(" Start a Quick setup tour. ")]))])):q("",!0),k("div",D$,[k("div",N$,[t[9]||(t[9]=k("h1",{class:"buymecoffee_menu_graph_title"},"Supporters Leaderboard",-1)),P(f,{onPageChanged:t[3]||(t[3]=p=>{s.current=p,i.getSupporters()}),supporters:s.supporters,hide_pagination:"yes",hide_columns:["operations","id","mode","date"]},null,8,["supporters"])]),k("div",z$,[k("h1",V$,[le("Recent Revenue graph in "+ee(s.top_paid_currency)+" ",1),s.dummyChart?(M(),D("span",H$,"(Dummy chart)")):q("",!0)]),k("div",W$,[s.dummyChart?(M(),D("div",j$," NB: No actual data found! Once you receive some donations, this chart will be updated. ")):q("",!0),s.renderChart?(M(),G(h,{key:1,chartProps:s.totalRevenue,chartOptions:s.overviewOptions},null,8,["chartProps","chartOptions"])):q("",!0)])])])])}const K$=Kt(L$,[["render",U$],["__scopeId","data-v-2b59d981"]]);var _v={exports:{}};/*!
    5751 * clipboard.js v2.0.11
    5852 * https://clipboardjs.com/
    5953 *
    6054 * Licensed MIT © Zeno Rocha
    61  */(function(e,t){(function(o,s){e.exports=s()})(fk,function(){return function(){var n={686:function(i,r,a){a.d(r,{default:function(){return de}});var l=a(279),c=a.n(l),u=a(370),d=a.n(u),f=a(817),p=a.n(f);function g(J){try{return document.execCommand(J)}catch{return!1}}var h=function(G){var K=p()(G);return g("cut"),K},v=h;function m(J){var G=document.documentElement.getAttribute("dir")==="rtl",K=document.createElement("textarea");K.style.fontSize="12pt",K.style.border="0",K.style.padding="0",K.style.margin="0",K.style.position="absolute",K.style[G?"right":"left"]="-9999px";var re=window.pageYOffset||document.documentElement.scrollTop;return K.style.top="".concat(re,"px"),K.setAttribute("readonly",""),K.value=J,K}var y=function(G,K){var re=m(G);K.container.appendChild(re);var ie=p()(re);return g("copy"),re.remove(),ie},w=function(G){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},re="";return typeof G=="string"?re=y(G,K):G instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(G==null?void 0:G.type)?re=y(G.value,K):(re=p()(G),g("copy")),re},_=w;function x(J){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(K){return typeof K}:x=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},x(J)}var S=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},K=G.action,re=K===void 0?"copy":K,ie=G.container,O=G.target,H=G.text;if(re!=="copy"&&re!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(O!==void 0)if(O&&x(O)==="object"&&O.nodeType===1){if(re==="copy"&&O.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(re==="cut"&&(O.hasAttribute("readonly")||O.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(H)return _(H,{container:ie});if(O)return re==="cut"?v(O):_(O,{container:ie})},C=S;function k(J){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(K){return typeof K}:k=function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},k(J)}function T(J,G){if(!(J instanceof G))throw new TypeError("Cannot call a class as a function")}function B(J,G){for(var K=0;K<G.length;K++){var re=G[K];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(J,re.key,re)}}function $(J,G,K){return G&&B(J.prototype,G),K&&B(J,K),J}function D(J,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(G&&G.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),G&&W(J,G)}function W(J,G){return W=Object.setPrototypeOf||function(re,ie){return re.__proto__=ie,re},W(J,G)}function ne(J){var G=V();return function(){var re=le(J),ie;if(G){var O=le(this).constructor;ie=Reflect.construct(re,arguments,O)}else ie=re.apply(this,arguments);return j(this,ie)}}function j(J,G){return G&&(k(G)==="object"||typeof G=="function")?G:Q(J)}function Q(J){if(J===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function le(J){return le=Object.setPrototypeOf?Object.getPrototypeOf:function(K){return K.__proto__||Object.getPrototypeOf(K)},le(J)}function I(J,G){var K="data-clipboard-".concat(J);if(!!G.hasAttribute(K))return G.getAttribute(K)}var Z=function(J){D(K,J);var G=ne(K);function K(re,ie){var O;return T(this,K),O=G.call(this),O.resolveOptions(ie),O.listenClick(re),O}return $(K,[{key:"resolveOptions",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ie.action=="function"?ie.action:this.defaultAction,this.target=typeof ie.target=="function"?ie.target:this.defaultTarget,this.text=typeof ie.text=="function"?ie.text:this.defaultText,this.container=k(ie.container)==="object"?ie.container:document.body}},{key:"listenClick",value:function(ie){var O=this;this.listener=d()(ie,"click",function(H){return O.onClick(H)})}},{key:"onClick",value:function(ie){var O=ie.delegateTarget||ie.currentTarget,H=this.action(O)||"copy",U=C({action:H,container:this.container,target:this.target(O),text:this.text(O)});this.emit(U?"success":"error",{action:H,text:U,trigger:O,clearSelection:function(){O&&O.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ie){return I("action",ie)}},{key:"defaultTarget",value:function(ie){var O=I("target",ie);if(O)return document.querySelector(O)}},{key:"defaultText",value:function(ie){return I("text",ie)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ie){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return _(ie,O)}},{key:"cut",value:function(ie){return v(ie)}},{key:"isSupported",value:function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],O=typeof ie=="string"?[ie]:ie,H=!!document.queryCommandSupported;return O.forEach(function(U){H=H&&!!document.queryCommandSupported(U)}),H}}]),K}(c()),de=Z},828:function(i){var r=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==r;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,r,a){var l=a(828);function c(f,p,g,h,v){var m=d.apply(this,arguments);return f.addEventListener(g,m,v),{destroy:function(){f.removeEventListener(g,m,v)}}}function u(f,p,g,h,v){return typeof f.addEventListener=="function"?c.apply(null,arguments):typeof g=="function"?c.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(m){return c(m,p,g,h,v)}))}function d(f,p,g,h){return function(v){v.delegateTarget=l(v.target,p),v.delegateTarget&&h.call(f,v)}}i.exports=u},879:function(i,r){r.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},r.nodeList=function(a){var l=Object.prototype.toString.call(a);return a!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in a&&(a.length===0||r.node(a[0]))},r.string=function(a){return typeof a=="string"||a instanceof String},r.fn=function(a){var l=Object.prototype.toString.call(a);return l==="[object Function]"}},370:function(i,r,a){var l=a(879),c=a(438);function u(g,h,v){if(!g&&!h&&!v)throw new Error("Missing required arguments");if(!l.string(h))throw new TypeError("Second argument must be a String");if(!l.fn(v))throw new TypeError("Third argument must be a Function");if(l.node(g))return d(g,h,v);if(l.nodeList(g))return f(g,h,v);if(l.string(g))return p(g,h,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(g,h,v){return g.addEventListener(h,v),{destroy:function(){g.removeEventListener(h,v)}}}function f(g,h,v){return Array.prototype.forEach.call(g,function(m){m.addEventListener(h,v)}),{destroy:function(){Array.prototype.forEach.call(g,function(m){m.removeEventListener(h,v)})}}}function p(g,h,v){return c(document.body,g,h,v)}i.exports=u},817:function(i){function r(a){var l;if(a.nodeName==="SELECT")a.focus(),l=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var c=a.hasAttribute("readonly");c||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),c||a.removeAttribute("readonly"),l=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(a),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=r},279:function(i){function r(){}r.prototype={on:function(a,l,c){var u=this.e||(this.e={});return(u[a]||(u[a]=[])).push({fn:l,ctx:c}),this},once:function(a,l,c){var u=this;function d(){u.off(a,d),l.apply(c,arguments)}return d._=l,this.on(a,d,c)},emit:function(a){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[a]||[]).slice(),u=0,d=c.length;for(u;u<d;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(a,l){var c=this.e||(this.e={}),u=c[a],d=[];if(u&&l)for(var f=0,p=u.length;f<p;f++)u[f].fn!==l&&u[f].fn._!==l&&d.push(u[f]);return d.length?c[a]=d:delete c[a],this}},i.exports=r,i.exports.TinyEmitter=r}},o={};function s(i){if(o[i])return o[i].exports;var r=o[i]={exports:{}};return n[i](r,r.exports,s),r.exports}return function(){s.n=function(i){var r=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(r,{a:r}),r}}(),function(){s.d=function(i,r){for(var a in r)s.o(r,a)&&!s.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:r[a]})}}(),function(){s.o=function(i,r){return Object.prototype.hasOwnProperty.call(i,r)}}(),s(686)}().default})})(tv);const fu=hk(tv.exports),nv={__name:"MediaButton",emits:["onMediaSelected"],setup(e,{emit:t}){let n=null;const o=()=>{n!=null&&n.open()};Be(()=>{!typeof window.wp.media!=="function"&&(n=window.wp.media({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!0}),s())});const s=()=>{n.on("select",function(){const i=n.state().get("selection").toJSON();t("onMediaSelected",i)})};return(i,r)=>(M(),N("button",{type:"button",class:"rounded-sm bg-primary-500 py-2 px-4 border-0 shadow text-[14px] font-medium cursor-pointer",onClick:o},[L(b(ob)),fe("Update Image ")]))}},NI={name:"Settings",computed:{View(){return uc}},components:{MediaButton:nv},data(){return{saving:!1,currencies:{},fetching:!0,previewUrl:window.BuyMeCoffeeAdmin.preview_url,predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577","#FFF","#000000"],template:{advanced:{}}}},methods:{onMediaSelected(e){e.length&&(this.template.advanced.image=e[0].url)},changeBgColor(e){this.template.advanced.bgColor=e},changeFontColor(e){this.template.advanced.color=e},getSettings(){this.$get({action:"buymecoffee_admin_ajax",route:"get_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.template=e.data.template,this.currencies=e.data.currencies,this.fetching=!1})},fullPath(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},resetDefault(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"reset_template_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.$handleSuccess(e.data.message),this.template=e.data.settings,this.saving=!1}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})},saveTemplates(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"save_settings",data:this.template,buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.$handleSuccess(e.data.message),this.saving=!1}).fail(e=>{var t,n;console.log(e),this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})},previewButton(){window.open(this.previewUrl)}},mounted(){this.getSettings(),jQuery(document).ready(function(e){var t=new fu(".copy");t.on("success",function(n){e(n.trigger).text("Copied!"),n.clearSelection(),setTimeout(function(){e(n.trigger).text(n.text)},1e3)})})}},zI={class:"buymecoffee_main_container"},VI={class:"wpm-template-inner"},HI={class:"buymecoffee-editor"},WI={class:"buymecoffee_menu_title"},jI=E("span",{style:{"font-style":"italic","font-size":"13px",color:"#929292","line-height":"1.6em"}},[fe(" Also you can use data params Ex: https://page-link&"),E("code",null,"for=John")],-1),UI={class:"buymecoffee_template_section"},KI={class:"buymecoffee_template_section"},qI={class:"buymecoffee_settings_image"},YI=["src"],GI=["src"],XI={key:1},QI=E("h3",null,"Preview Button Style",-1),JI={style:{display:"flex"}},ZI={class:"wpm-btm-render-options"},eF=E("br",null,null,-1),tF=E("h3",null,"Embed:",-1),nF=E("i",{class:"el-icon-info"},null,-1),oF=E("p",null,"Use Block editor or embed the shortcode on your posts/pages if you want to use the button above. Or use the URL bellow to collect payments from your supporters",-1),sF=E("br",null,null,-1),iF=["src"],rF=E("h4",null,"Or Use ShortCodes:",-1),aF={style:{display:"flex","align-items":"center"}},lF=E("p",null,"Button ShortCode:",-1),cF=E("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_button]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_button] ")],-1),uF={style:{display:"flex","align-items":"center"}},dF=E("p",null,"Form ShortCode:",-1),fF=E("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_form]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_form] ")],-1),hF={style:{display:"flex","align-items":"center"}},pF=E("p",null,"Form With Template: ",-1),gF=E("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_basic]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_basic] ")],-1),mF=["href"],vF=E("p",null," For custom amount:",-1),bF=E("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_basic custom=10]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_basic custom=10] ")],-1),yF=["href"],_F=E("br",null,null,-1),wF=E("p",null,[fe("Also you can use custom amount template by adding "),E("code",null,"&custom"),fe(" \xA0 param with your page link like this:")],-1);function xF(e,t,n,o,s,i){const r=Me("CoffeeCup"),a=ls,l=$c,c=$o,u=jc,d=Wc,f=Zg,p=jE,g=Me("MediaButton"),h=Dn,v=Dg,m=Jg,y=Lc,w=fP,_=Rg,x=Io,S=Vc,C=ds("loading");return M(),N("div",zI,[We((M(),q(S,{class:"wpm-template"},{default:F(()=>[E("div",VI,[E("div",HI,[L(S,null,{default:F(()=>[L(_,{md:24,lg:12,style:{background:"linear-gradient(122deg, #ffffff87, #c4fff654)","border-radius":"6px",padding:"24px"}},{default:F(()=>[E("h1",WI,[fe("Buy Me "),L(r,{style:{width:"23px"}}),fe("- Global settings")]),s.fetching?(M(),N("div",XI,[L(w,{rows:5})])):(M(),q(y,{key:0,"label-position":"left","label-width":"140px"},{default:F(()=>[L(m,null,{default:F(()=>[L(f,{label:"General"},{default:F(()=>[L(l,null,{default:F(()=>[L(a,{"true-label":"yes","false-label":"no",modelValue:s.template.formTitle,"onUpdate:modelValue":t[0]||(t[0]=k=>s.template.formTitle=k)},{default:F(()=>[fe("Show form title section")]),_:1},8,["modelValue"])]),_:1}),s.template.formTitle==="yes"?(M(),q(l,{key:0,label:"You Name"},{default:F(()=>[L(c,{size:"small",type:"text",modelValue:s.template.yourName,"onUpdate:modelValue":t[1]||(t[1]=k=>s.template.yourName=k)},null,8,["modelValue"]),jI]),_:1})):X("",!0),L(l,null,{default:F(()=>[L(a,{"true-label":"yes","false-label":"no",modelValue:s.template.enableName,"onUpdate:modelValue":t[2]||(t[2]=k=>s.template.enableName=k)},{default:F(()=>[fe("Collect name of supporter")]),_:1},8,["modelValue"])]),_:1}),L(l,null,{default:F(()=>[L(a,{"true-label":"yes","false-label":"no",modelValue:s.template.enableEmail,"onUpdate:modelValue":t[3]||(t[3]=k=>s.template.enableEmail=k)},{default:F(()=>[fe("Collect email of supporter")]),_:1},8,["modelValue"])]),_:1}),L(l,null,{default:F(()=>[L(a,{"true-label":"yes","false-label":"no",modelValue:s.template.enableMessage,"onUpdate:modelValue":t[4]||(t[4]=k=>s.template.enableMessage=k)},{default:F(()=>[fe("Enable message option when donate")]),_:1},8,["modelValue"])]),_:1}),L(l,{label:"Per coffee price"},{default:F(()=>[L(c,{type:"number",modelValue:s.template.defaultAmount,"onUpdate:modelValue":t[5]||(t[5]=k=>s.template.defaultAmount=k)},null,8,["modelValue"])]),_:1}),L(l,{label:"Currency"},{default:F(()=>[L(d,{class:"wpm_currency_select",filterable:"",modelValue:s.template.currency,"onUpdate:modelValue":t[6]||(t[6]=k=>s.template.currency=k),placeholder:"Select Currency"},{default:F(()=>[(M(!0),N(Ge,null,Lt(s.currencies,(k,T)=>(M(),q(u,{key:T,label:k,value:T},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),L(f,{label:"Template Settings"},{default:F(()=>[E("div",UI,[L(l,{label:"Button text"},{default:F(()=>[L(c,{size:"small",type:"text",modelValue:s.template.buttonText,"onUpdate:modelValue":t[7]||(t[7]=k=>s.template.buttonText=k)},null,8,["modelValue"])]),_:1}),L(l,{label:"Button color"},{default:F(()=>[L(p,{size:"small",onActiveChange:i.changeBgColor,modelValue:s.template.advanced.bgColor,"onUpdate:modelValue":t[8]||(t[8]=k=>s.template.advanced.bgColor=k),"show-alpha":"",predefine:s.predefineColors},null,8,["onActiveChange","modelValue","predefine"])]),_:1}),L(l,{label:"Button Text color"},{default:F(()=>[L(p,{size:"small",onActiveChange:i.changeFontColor,modelValue:s.template.advanced.color,"onUpdate:modelValue":t[9]||(t[9]=k=>s.template.advanced.color=k),"show-alpha":"",predefine:s.predefineColors},null,8,["onActiveChange","modelValue","predefine"])]),_:1}),L(l,{label:"Button Radius(px)"},{default:F(()=>[L(c,{style:{width:"50%"},type:"number",size:"small",modelValue:s.template.advanced.radius,"onUpdate:modelValue":t[10]||(t[10]=k=>s.template.advanced.radius=k)},null,8,["modelValue"])]),_:1})]),E("div",KI,[L(l,{label:"Form shadow"},{default:F(()=>[L(a,{"true-label":"yes","false-label":"no",modelValue:s.template.advanced.formShadow,"onUpdate:modelValue":t[11]||(t[11]=k=>s.template.advanced.formShadow=k)},{default:F(()=>[fe("Enable form box shadow")]),_:1},8,["modelValue"])]),_:1}),L(l,{label:"Your Quotes"},{default:F(()=>[L(c,{type:"textarea",size:"small",modelValue:s.template.advanced.quote,"onUpdate:modelValue":t[12]||(t[12]=k=>s.template.advanced.quote=k)},null,8,["modelValue"])]),_:1}),L(l,{label:""},{default:F(()=>[E("div",qI,[E("div",null,[L(g,{onOnMediaSelected:i.onMediaSelected},null,8,["onOnMediaSelected"])]),s.template.advanced.image?(M(),N("img",{key:0,width:"120",height:"120",src:s.template.advanced.image},null,8,YI)):(M(),N("img",{key:1,width:"120",height:"120",src:i.fullPath("profile.png")},null,8,GI))])]),_:1})])]),_:1}),E("div",null,[L(v,{onConfirm:i.resetDefault,title:"Are you sure to reset to default settings?"},{reference:F(()=>[L(h,{plain:"",style:{"margin-top":"12px"},type:"warning",size:"default"},{default:F(()=>[fe(" Reset Default ")]),_:1})]),_:1},8,["onConfirm"]),L(h,{plain:"",style:{"margin-top":"12px"},onClick:i.saveTemplates,type:"success",size:"default"},{default:F(()=>[fe(" Save Settings ")]),_:1},8,["onClick"])])]),_:1})]),_:1}))]),_:1}),L(_,{md:24,lg:12,class:"wpm-btm-preview",style:{padding:"24px",background:"white","border-top-right-radius":"6px","border-bottom-right-radius":"6px"}},{default:F(()=>[QI,E("div",JI,[E("button",{style:Te([{cursor:"pointer"},{"background-color":s.template.advanced.bgColor,color:s.template.advanced.color,"border-radius":s.template.advanced.radius+"px",padding:"8px 20px",border:"none",height:"50px","font-size":s.template.advanced.fontSize+"px"}]),size:"default",onClick:t[13]||(t[13]=(...k)=>i.previewButton&&i.previewButton(...k))},ce(s.template.buttonText),5)]),E("div",ZI,[eF,tF,nF,oF,sF,E("img",{src:i.fullPath("blocks.jpeg"),alt:"Block editor",style:{width:"80%",opacity:"0.3"}},null,8,iF),rF,E("div",aF,[lF,E("div",null,[L(x,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:F(()=>[cF]),_:1})])]),E("div",uF,[dF,E("div",null,[L(x,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:F(()=>[fF]),_:1})])]),E("div",hF,[pF,E("div",null,[L(x,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:F(()=>[gF]),_:1})]),E("a",{style:{"margin-left":"12px",color:"#e88b0d","text-decoration":"none"},href:s.previewUrl,target:"_blank"},"Preview",8,mF)]),E("div",null,[vF,L(x,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:F(()=>[bF]),_:1}),E("a",{style:{color:"#e88b0d","text-decoration":"none"},target:"_blank",href:s.previewUrl+"&custom=10"},"Preview",8,yF)]),_F,wF,E("p",null,ce(s.previewUrl)+"&custom=10",1)])]),_:1})]),_:1})])])]),_:1})),[[C,s.saving]])])}const SF=kn(NI,[["render",xF]]),CF={name:"paypal_settings",data(){return{settings:{},saving:!1,fetching:!1,labelPosition:"right",webhook_url:""}},methods:{getSettings(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_data",data:{method:"paypal"},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.settings=e.data.settings,this.webhook_url=e.data.webhook_url,this.fetching=!1}).fail(e=>{this.$message.error(e.responseJSON.data.message)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"save_payment_settings",data:{method:"paypal",settings:this.settings},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var t;this.$handleSuccess((t=e==null?void 0:e.data)==null?void 0:t.message)}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})}},mounted(){this.getSettings(),jQuery(document).ready(function(e){var t=new fu(".copy");t.on("success",function(n){e(n.trigger).text("Copied!"),n.clearSelection(),setTimeout(function(){e(n.trigger).text(n.text)},1e3)})})}},kF={class:"buymecoffee_main_container"},EF={class:"buymecoffee_wrapper buymecoffee_payment_settings"},MF={class:"buymecoffee_header"},PF={class:"buymecoffee_title"},TF={style:{"margin-bottom":"23px"}},OF={key:0},AF={key:1},RF=E("p",null,"If you are unable to use Payment Data Transfer and payments are not getting marked as complete, then check this box. This forces the site to use a slightly less secure method of verifying purchases.",-1),LF={class:"buymecoffee_settings_section"},$F=E("p",null,"Please use IPN url to get marked paid on you site.",-1),IF=E("b",null,"IPN URL: ",-1),FF=["data-clipboard-text"],DF=E("i",{class:"el-icon-document"},null,-1),BF={class:"action_right",style:{"margin-top":"24px"}};function NF(e,t,n,o,s,i){const r=Me("router-link"),a=Ng,l=Pg,c=Tg,u=$c,d=$o,f=Zg,p=Jg,g=Io,h=Dn,v=Lc,m=ds("loading");return We((M(),N("div",kF,[E("div",EF,[E("div",MF,[E("h3",PF,[L(r,{style:{"text-decoration":"none"},to:{name:"Gateway"}}),fe("PayPal Gateway Settings: ")])]),E("div",TF,[E("label",null,[fe("Enable PayPal Payment "),L(a,{"active-value":"yes","inactive-value":"no","active-text":"Enable PayPal",modelValue:s.settings.enable,"onUpdate:modelValue":t[0]||(t[0]=y=>s.settings.enable=y)},null,8,["modelValue"])])]),E("div",{class:R(["buymecoffee_section_body",s.settings.enable!=="yes"?"payment-inactive":""])},[L(v,{"label-position":s.labelPosition,rel:"paypal_settings",model:s.settings,"label-width":"220px"},{default:F(()=>[L(u,{label:"PayPal Payment Mode"},{default:F(()=>[L(c,{modelValue:s.settings.payment_mode,"onUpdate:modelValue":t[1]||(t[1]=y=>s.settings.payment_mode=y)},{default:F(()=>[L(l,{label:"test"},{default:F(()=>[fe("Sandbox Mode")]),_:1}),L(l,{label:"live"},{default:F(()=>[fe("Live Mode")]),_:1})]),_:1},8,["modelValue"])]),_:1}),L(p,{modelValue:s.settings.payment_type,"onUpdate:modelValue":t[6]||(t[6]=y=>s.settings.payment_type=y),class:"demo-tabs"},{default:F(()=>[L(f,{label:"PayPal pro",name:"pro"},{default:F(()=>[s.settings.payment_mode==="test"?(M(),N("div",OF,[L(u,{label:"Test Public key"},{default:F(()=>[L(d,{type:"text",size:"small",modelValue:s.settings.test_public_key,"onUpdate:modelValue":t[2]||(t[2]=y=>s.settings.test_public_key=y),placeholder:"Public key from paypal dashboard"},null,8,["modelValue"])]),_:1})])):(M(),N("div",AF,[L(u,{label:"Live Public key"},{default:F(()=>[L(d,{type:"text",size:"small",modelValue:s.settings.live_public_key,"onUpdate:modelValue":t[3]||(t[3]=y=>s.settings.live_public_key=y),placeholder:"Public key from paypal dashboard"},null,8,["modelValue"])]),_:1})]))]),_:1}),L(f,{label:"Paypal Standard",name:"standard"},{default:F(()=>[L(u,{label:"Paypal Email"},{default:F(()=>[L(d,{type:"text",size:"small",modelValue:s.settings.paypal_email,"onUpdate:modelValue":t[4]||(t[4]=y=>s.settings.paypal_email=y),placeholder:"Paypal Email Address"},null,8,["modelValue"])]),_:1}),L(u,{label:"Disable PayPal IPN Verification"},{default:F(()=>[L(a,{"active-value":"yes","inactive-value":"no",modelValue:s.settings.disable_ipn_verification,"onUpdate:modelValue":t[5]||(t[5]=y=>s.settings.disable_ipn_verification=y)},null,8,["modelValue"]),RF]),_:1})]),_:1})]),_:1},8,["modelValue"]),E("div",LF,[$F,IF,L(g,{effect:"dark",content:"Click to copy",title:"Click to copy",placement:"top"},{default:F(()=>[E("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":s.webhook_url},[DF,fe(" "+ce(s.webhook_url),1)],8,FF)]),_:1})]),E("div",BF,[L(h,{onClick:t[7]||(t[7]=y=>i.saveSettings()),type:"primary",size:"default"},{default:F(()=>[fe("Save PayPal Settings")]),_:1})])]),_:1},8,["label-position","model"])],2)])])),[[m,s.fetching]])}const zF=kn(CF,[["render",NF]]),VF={name:"settings",data(){return{settings:{},saving:!1,fetching:!1,labelPosition:"right",webhook_url:""}},methods:{getSettings(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_data",data:{method:"stripe"},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.settings=e.data.settings,this.webhook_url=e.data.webhook_url}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",data:{settings:this.settings,method:"stripe"},route:"save_payment_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.$handleSuccess(e.data.message)}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})}},mounted(){this.getSettings()}},HF={class:"buymecoffee_main_container"},WF={class:"buymecoffee_wrapper buymecoffee_payment_settings"},jF={class:"buymecoffee_title"},UF={style:{"margin-bottom":"23px"}},KF={key:0,class:"buymecoffee_settings_section"},qF=E("h3",null,"Stripe Test Keys",-1),YF={key:1,class:"buymecoffee_settings_section"},GF=E("h3",null,"Stripe Live Keys",-1),XF={class:"buymecoffee_settings_section"},QF=E("p",null,[fe("In order for Stripe to function completely for subscription/recurring payments, you must configure your Stripe webhooks. Visit your "),E("a",{href:"https://dashboard.stripe.com/account/webhooks",target:"_blank",rel:"noopener"},"account dashboard"),fe(" to configure them. Please add a webhook endpoint for the URL below.")],-1),JF=E("b",null,"Webhook URL: ",-1),ZF={class:"action_right"};function eD(e,t,n,o,s,i){const r=Me("router-link"),a=Ng,l=Pg,c=Tg,u=$c,d=$o,f=Dn,p=Lc,g=ds("loading");return We((M(),N("div",HF,[E("div",WF,[E("h3",jF,[L(r,{style:{"text-decoration":"none"},to:{name:"Gateway"}}),fe("Stripe Gateway Settings: ")]),E("div",UF,[E("label",null,[fe("Enable Stripe Payment "),L(a,{"active-value":"yes","inactive-value":"no","active-text":"Enable stripe",modelValue:s.settings.enable,"onUpdate:modelValue":t[0]||(t[0]=h=>s.settings.enable=h)},null,8,["modelValue"])])]),E("div",{class:R(["buymecoffee_section_body",s.settings.enable!=="yes"?"payment-inactive":""])},[L(p,{"label-position":s.labelPosition,rel:"stripe_settings",model:s.settings,"label-width":"220px"},{default:F(()=>[L(u,{label:"Stripe Payment Mode"},{default:F(()=>[L(c,{modelValue:s.settings.payment_mode,"onUpdate:modelValue":t[1]||(t[1]=h=>s.settings.payment_mode=h)},{default:F(()=>[L(l,{label:"test"},{default:F(()=>[fe("Test Mode")]),_:1}),L(l,{label:"live"},{default:F(()=>[fe("Live Mode")]),_:1})]),_:1},8,["modelValue"])]),_:1}),s.settings.payment_mode!=="live"?(M(),N("div",KF,[qF,L(u,{label:"Test Publishable key"},{default:F(()=>[L(d,{type:"text",size:"small",modelValue:s.settings.test_pub_key,"onUpdate:modelValue":t[2]||(t[2]=h=>s.settings.test_pub_key=h),placeholder:"Test Publishable key"},null,8,["modelValue"])]),_:1}),L(u,{label:"Test Secret key"},{default:F(()=>[L(d,{type:"password",size:"small",modelValue:s.settings.test_secret_key,"onUpdate:modelValue":t[3]||(t[3]=h=>s.settings.test_secret_key=h),placeholder:"Test Secret key"},null,8,["modelValue"])]),_:1})])):(M(),N("div",YF,[GF,L(u,{label:"Live Publishable key"},{default:F(()=>[L(d,{type:"text",size:"small",modelValue:s.settings.live_pub_key,"onUpdate:modelValue":t[4]||(t[4]=h=>s.settings.live_pub_key=h),placeholder:"Live Publishable key"},null,8,["modelValue"])]),_:1}),L(u,{label:"Live Secret key"},{default:F(()=>[L(d,{type:"password",size:"small",modelValue:s.settings.live_secret_key,"onUpdate:modelValue":t[5]||(t[5]=h=>s.settings.live_secret_key=h),placeholder:"Live Secret key"},null,8,["modelValue"])]),_:1})])),E("div",XF,[QF,E("p",null,[JF,E("code",null,ce(s.webhook_url),1)])]),E("div",ZF,[L(f,{onClick:t[6]||(t[6]=h=>i.saveSettings()),type:"primary",size:"default"},{default:F(()=>[fe("Save Settings")]),_:1})])]),_:1},8,["label-position","model"])],2)])])),[[g,s.fetching]])}const ov=kn(VF,[["render",eD]]),tD={name:"Gateway",data(){return{gateways:[],current_route:this.$route.name}},methods:{getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"/images/"+e},goto(){this.$router.push({name:"stripe"})},getAllMethods(){this.$get({action:"buymecoffee_admin_ajax",route:"gateways",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.gateways=e.data}).catch(e=>{console.log(e)})}},computed:{},watch:{},mounted(){this.getAllMethods()}},nD=e=>(Yi("data-v-3cbf6993"),e=e(),Gi(),e),oD={class:"buymecoffee_main_container"},sD=nD(()=>E("h1",{class:"buymecoffee_menu_title"},"Payment Gateways",-1)),iD={class:"buymecoffee_gateway_menu"},rD=["onClick"],aD=["src"];function lD(e,t,n,o,s,i){const r=Me("router-view"),a=Vc;return M(),N("div",oD,[L(a,{class:"buymecoffee_gateways"},{default:F(()=>[sD,E("div",iD,[(M(!0),N(Ge,null,Lt(s.gateways,(l,c)=>(M(),N("div",{key:c,class:"buymecoffee_gateway_item",onClick:()=>this.$router.push({name:l.route})},[E("div",{class:R("buymecoffee_gateway_"+l.route+(l.route===s.current_route?" active":""))},[E("img",{src:l.image,style:{width:"70px","max-width":"70px"},class:"image"},null,8,aD)],2)],8,rD))),128))]),L(r)]),_:1})])}const cD=kn(tD,[["render",lD],["__scopeId","data-v-3cbf6993"]]),uD={name:"Supporter",data(){return{supporter:{},loading:!1,paymentStatus:"",val:"Hello from Supports",options:[{value:"pending",label:"Pending"},{value:"paid",label:"Paid"},{value:"refunded",label:"Refunded"},{value:"cancelled",label:"Cancelled"},{value:"failed",label:"Failed"},{value:"paid-initially",label:"Paid Initially"}]}},components:{ElMessageBox:jd,Coffee:Zh,User:ep,Money:tp},methods:{getTransactionUrl(){var e,t,n,o,s,i;return this.supporter.payment_method==="paypal"?this.supporter.payment_mode!=="live"?"https://www.sandbox.paypal.com/activity/payment/"+((t=(e=this.supporter)==null?void 0:e.transaction)==null?void 0:t.charge_id):"https://www.paypal.com/activity/payment/"+((o=(n=this.supporter)==null?void 0:n.transaction)==null?void 0:o.charge_id):"https://dashboard.stripe.com/test/payments/"+((i=(s=this.supporter)==null?void 0:s.transaction)==null?void 0:i.charge_id)},getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},updateStatus(){jd.confirm("Are you sure to change payment status?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{this.$post({action:"buymecoffee_admin_ajax",route:"update_payment_status",data:{id:this.$route.params.id,status:this.paymentStatus},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.getSupporter(),this.$handleSuccess("Updated Successfully")})}).catch(()=>{gO({type:"info",message:"Update canceled"})})},getSupporter(){this.loading=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_supporter",data:{id:this.$route.params.id},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.supporter=e.data,this.paymentStatus=e.data.payment_status,this.loading=!1}).catch(e=>{this.loading=!1,this.$handleError(e)})}},mounted(){this.getSupporter()}},dD={class:"buymecoffee_supporter_main_container"},fD={class:"buymecoffee_title"},hD={class:"wpm_supporter_profile_wrapper"},pD={class:"wpm_supporter_profile_section"},gD=["src"],mD={key:0,class:"wpm_supporter_profile_name"},vD={key:1,class:"wpm_supporter_profile_name"},bD={key:2,class:"wpm_supporter_profile_email"},yD=["href"],_D={key:3,class:"wpm_supporter_profile_email"},wD=E("p",{id:"supporters_email"},"No Email",-1),xD=[wD],SD={class:"wpm_supporter_message"},CD=E("div",{class:"wpm_supporter_payment_line"},null,-1),kD={class:"wpm_supporter_payment_wrapper"},ED={class:"wpm_supporter_items"},MD={class:"wpm_supporter_payments"},PD=E("thead",null,null,-1),TD=E("td",null,"Payment Method",-1),OD=["src"],AD={key:1},RD=E("td",null,"Payment Status",-1),LD=["href"],$D={key:0},ID=E("td",null,"Payment Mode",-1),FD=E("td",{style:{"text-transform":"capitalize"}},"Coffee For",-1),DD={key:1},BD=E("td",{style:{"text-transform":"capitalize"}},"Message",-1),ND=E("td",null,"Submission Hash:",-1),zD={style:{"font-family":"monospace"}},VD=E("td",null,"Transaction URL:",-1),HD={style:{"font-family":"monospace"}},WD=["href"],jD={style:{"font-family":"monospace"}},UD={class:"wpm_supporter_payment_actions"};function KD(e,t,n,o,s,i){var f,p,g,h,v,m,y,w,_,x,S,C,k;const r=Me("router-link"),a=Me("Coffee"),l=Me("Money"),c=jc,u=Wc,d=ds("loading");return We((M(),N("div",dD,[E("h3",fD,[L(r,{style:{"text-decoration":"none"},to:{name:"Dashboard"}},{default:F(()=>[fe("Supporters / ")]),_:1}),fe(ce(e.$route.params.id),1)]),E("div",hD,[E("div",pD,[(f=s.supporter)!=null&&f.supporters_image?(M(),N("img",{key:0,src:(p=s.supporter)==null?void 0:p.supporters_image,alt:"Supporter's Image",class:"wpm_supporter_profile_image"},null,8,gD)):X("",!0)]),E("div",null,[(g=s.supporter)!=null&&g.supporters_name?(M(),N("h3",mD,ce((h=s.supporter)==null?void 0:h.supporters_name),1)):(M(),N("h3",vD,"Anonymous")),(v=s.supporter)!=null&&v.supporters_email?(M(),N("p",bD,[E("a",{href:"mailto:"+((m=s.supporter)==null?void 0:m.supporters_email),id:"supporters_email"},ce((y=s.supporter)==null?void 0:y.supporters_email),9,yD)])):(M(),N("p",_D,xD)),E("p",SD,ce((w=s.supporter)==null?void 0:w.supporters_message),1)])]),CD,E("div",kD,[E("div",null,[E("div",ED,[E("div",null,[L(a),E("span",null,ce(parseInt((_=s.supporter)==null?void 0:_.coffee_count)),1)]),E("div",null,[L(l),E("span",null,ce(parseInt(((x=s.supporter)==null?void 0:x.payment_total)/100))+" "+ce((S=s.supporter)==null?void 0:S.currency),1)])]),E("table",MD,[PD,E("tbody",null,[E("tr",null,[TD,E("td",null,[s.supporter.payment_method==="paypal"?(M(),N("img",{key:0,width:"64",src:i.getImage("PayPal.svg")},null,8,OD)):(M(),N("span",AD,ce(s.supporter.payment_method),1))])]),E("tr",null,[RD,E("td",null,[E("span",{class:R("buymecoffee_status buymecoffee_status_"+s.supporter.payment_status)},[fe(ce(s.supporter.payment_status)+" ",1),s.supporter.payment_status==="paid-initially"?(M(),N("a",{key:0,href:i.getTransactionUrl()},"Needs to verify",8,LD)):X("",!0)],2)])]),s.supporter.payment_mode?(M(),N("tr",$D,[ID,E("td",null,ce(s.supporter.payment_mode),1)])):X("",!0),E("tr",null,[FD,E("td",null,ce(s.supporter.reference),1)]),s.supporter.supporters_message?(M(),N("tr",DD,[BD,E("td",null,ce(s.supporter.supporters_message),1)])):X("",!0),E("tr",null,[ND,E("td",zD,ce(s.supporter.entry_hash),1)]),E("tr",null,[VD,E("td",HD,[E("a",{target:"_blank",href:i.getTransactionUrl()},ce((k=(C=s.supporter)==null?void 0:C.transaction)==null?void 0:k.charge_id),9,WD)])]),E("tr",null,[E("td",jD,ce(s.supporter.created_at),1)])])])]),E("div",null,[E("div",UD,[L(u,{modelValue:s.paymentStatus,"onUpdate:modelValue":t[0]||(t[0]=T=>s.paymentStatus=T),onChange:i.updateStatus},{default:F(()=>[(M(!0),N(Ge,null,Lt(s.options,T=>(M(),q(c,{key:T.value,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])])])])),[[d,s.loading]])}const qD=kn(uD,[["render",KD]]),YD={name:"Onboarding",components:{DArrowLeft:qh,DArrowRight:Yh,MediaButton:nv,Share:sb,InfoFilled:ib,DocumentCopy:rb,Stripe:ov},data(){return{active:1,saving:!1,previewUrl:window.BuyMeCoffeeAdmin.preview_url,template:{advanced:{}},currencies:[],fetching:!1}},methods:{getSettings(){this.$get({action:"buymecoffee_admin_ajax",route:"get_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.template=e.data.template,this.currencies=e.data.currencies,this.fetching=!1})},onMediaSelected(e){e.length&&(this.template.advanced.image=e[0].url)},gotoPage(){window.open(this.previewUrl,"_blank")},fullPath(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},prev(){this.active>0&&(this.active=this.active-1)},next(){this.active==1&&(this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"save_settings",data:this.template,buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.saving=!1}).fail(e=>{console.log(e)}).always(()=>{this.saving=!1})),this.active===2&&this.$refs.stripeRef.saveSettings(),this.active<3&&(this.active=this.active+1)}},mounted(){this.getSettings(),jQuery(document).ready(function(e){var t=new fu(".copy");t.on("success",function(n){e(n.trigger).text("Copied!"),n.clearSelection(),setTimeout(function(){e(n.trigger).text(n.text)},1e3)})})}},Nn=e=>(Yi("data-v-9acef49f"),e=e(),Gi(),e),GD={class:"buymecoffee_onboard_wrapper"},XD={class:"buymecoffee_onboard_content"},QD={key:0,class:"profile_section"},JD={class:"profile_image"},ZD=["src"],eB=["src"],tB=Nn(()=>E("br",null,null,-1)),nB={class:"profile_name",style:{"margin-top":"32px"}},oB=Nn(()=>E("label",null,"Collect donation for",-1)),sB={key:1,class:"quick_payment_section"},iB={key:2,class:"quick_done_section"},rB=Nn(()=>E("h1",{style:{"margin-bottom":"32px"}}," Congratulations \u{1F389} Everything done! ",-1)),aB={style:{display:"inline"}},lB={style:{"margin-bottom":"32px"}},cB=["href"],uB=Nn(()=>E("br",null,null,-1)),dB=Nn(()=>E("br",null,null,-1)),fB=Nn(()=>E("br",null,null,-1)),hB=Nn(()=>E("p",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_basic]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_basic] ")],-1)),pB=Nn(()=>E("p",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_form]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_form] ")],-1)),gB=Nn(()=>E("p",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_button]"},[E("i",{class:"el-icon-document"}),fe(" [buymecoffee_button] ")],-1)),mB={style:{"text-align":"center"}},vB={class:"buymecoffee_onboard_stepper"},bB=Nn(()=>E("h3",null,"Quick setup",-1));function yB(e,t,n,o,s,i){const r=Me("MediaButton"),a=$o,l=Me("Stripe"),c=Me("Share"),u=$e,d=Me("InfoFilled"),f=Io,p=Me("DArrowLeft"),g=Dn,h=Me("DArrowRight"),v=xP,m=wP;return M(),N("div",null,[E("div",GD,[E("div",XD,[E("div",null,[s.active==1?(M(),N("div",QD,[E("div",JD,[s.template.advanced.image?(M(),N("img",{key:0,width:"120",height:"120",src:s.template.advanced.image},null,8,ZD)):(M(),N("img",{key:1,width:"120",height:"120",src:i.fullPath("profile.png")},null,8,eB)),L(r,{class:"quick_media",onOnMediaSelected:i.onMediaSelected},null,8,["onOnMediaSelected"]),fe(),tB]),E("div",nB,[oB,L(a,{size:"large",modelValue:s.template.yourName,"onUpdate:modelValue":t[0]||(t[0]=y=>s.template.yourName=y)},null,8,["modelValue"])])])):s.active==2?(M(),N("div",sB,[L(l,{ref:"stripeRef",onSave_settings:e.saveSettings},null,8,["onSave_settings"])])):s.active==3?(M(),N("div",iB,[rB,E("div",null,[E("div",aB,[E("h3",lB,[L(u,null,{default:F(()=>[L(c)]),_:1}),fe(" Share your page "),E("a",{target:"_blank",href:s.previewUrl},ce(s.previewUrl),9,cB),uB])]),L(u,null,{default:F(()=>[L(d)]),_:1}),fe(' You can build your own page using block editor "BuyMeCoffee" or use available shortcodes '),dB,fB,L(f,{effect:"light",content:"Click to copy shortcode",title:"Click to copy shortcode","show-after":1e3,placement:"right"},{default:F(()=>[hB]),_:1}),L(f,{effect:"light","show-after":1e3,content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"right"},{default:F(()=>[pB]),_:1}),L(f,{effect:"light","show-after":1e3,content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"right"},{default:F(()=>[gB]),_:1})])])):X("",!0)]),E("div",mB,[L(g,{disabled:s.active<2,onClick:i.prev},{default:F(()=>[L(u,null,{default:F(()=>[L(p)]),_:1}),fe(" \xA0 Prev ")]),_:1},8,["disabled","onClick"]),s.active<3?(M(),q(g,{key:0,disabled:s.active>2,onClick:i.next},{default:F(()=>[fe("Next \xA0 "),L(u,null,{default:F(()=>[L(h)]),_:1})]),_:1},8,["disabled","onClick"])):X("",!0),s.active==3?(M(),q(g,{key:1,type:"success",plain:"",onClick:t[1]||(t[1]=y=>i.gotoPage())},{default:F(()=>[fe("View Page")]),_:1})):X("",!0)])]),E("div",vB,[bB,L(m,{direction:"vertical","finish-status":"success",style:{"margin-top":"23px"},active:s.active},{default:F(()=>[L(v,{title:"Profile"}),L(v,{title:"Payment"}),L(v,{title:"Done"})]),_:1},8,["active"]),L(g,{class:"el-button el-button--text",style:{"margin-top":"12px"},onClick:t[2]||(t[2]=y=>e.$router.push("/"))},{default:F(()=>[fe("Skip Setup for later")]),_:1})])])])}const _B=kn(YD,[["render",yB],["__scopeId","data-v-9acef49f"]]),wB={name:"Supporters",data(){return{current:0,total:0,posts_per_page:10,supporters:[]}},components:{SupportersTable:nm},methods:{getSupporters(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_supporters",data:{limit:this.limit,page:this.current,posts_per_page:this.posts_per_page},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var t,n,o;this.supporters=(t=e==null?void 0:e.data)==null?void 0:t.supporters,this.total=(n=e==null?void 0:e.data)==null?void 0:n.total,this.reportData=(o=e==null?void 0:e.data)==null?void 0:o.reports,this.fetching=!1}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.fetching=!1})}},mounted(){this.getSupporters()}},xB=e=>(Yi("data-v-e8e8ed3c"),e=e(),Gi(),e),SB={class:"buymecoffee_main_container"},CB={class:"buymecoffee_supporters"},kB=xB(()=>E("h1",{class:"buymecoffee_menu_title"},"Supporters",-1));function EB(e,t,n,o,s,i){const r=Rg,a=Vc,l=Me("SupportersTable");return M(),N("div",SB,[E("div",CB,[L(a,null,{default:F(()=>[L(r,{span:12},{default:F(()=>[kB]),_:1}),L(r,{span:12})]),_:1}),L(l,{onPageChanged:t[0]||(t[0]=c=>{s.current=c,i.getSupporters()}),onFetchSupporters:t[1]||(t[1]=()=>i.getSupporters()),supporters:s.supporters,posts_per_page:s.posts_per_page,current:s.current,total:s.total},null,8,["supporters","posts_per_page","current","total"])])])}const MB=kn(wB,[["render",EB],["__scopeId","data-v-e8e8ed3c"]]),PB=[{path:"/",name:"Dashboard",component:BI,meta:{active:"dashboard"}},{path:"/supporters",name:"Supporters",component:MB,meta:{active:"supporters"}},{path:"/settings",name:"Settings",component:SF},{path:"/supporter/:id",name:"Supporter",component:qD},{path:"/gateway",name:"Gateway",component:cD,exact:!0,children:[{path:"/paypal",name:"paypal",component:zF,exact:!0},{path:"/stripe",name:"stripe",component:ov,exact:!0}]},{path:"/quick-setup",name:"Onboarding",component:_B,exact:!0}];/*!
    62   * vue-router v4.2.5
    63   * (c) 2023 Eduardo San Martin Morote
     55 */(function(e,t){(function(o,s){e.exports=s()})(qk,function(){return function(){var n={686:function(i,a,r){r.d(a,{default:function(){return Se}});var l=r(279),u=r.n(l),c=r(370),d=r.n(c),f=r(817),h=r.n(f);function p(te){try{return document.execCommand(te)}catch{return!1}}var g=function(X){var Q=h()(X);return p("cut"),Q},m=g;function b(te){var X=document.documentElement.getAttribute("dir")==="rtl",Q=document.createElement("textarea");Q.style.fontSize="12pt",Q.style.border="0",Q.style.padding="0",Q.style.margin="0",Q.style.position="absolute",Q.style[X?"right":"left"]="-9999px";var oe=window.pageYOffset||document.documentElement.scrollTop;return Q.style.top="".concat(oe,"px"),Q.setAttribute("readonly",""),Q.value=te,Q}var w=function(X,Q){var oe=b(X);Q.container.appendChild(oe);var ne=h()(oe);return p("copy"),oe.remove(),ne},S=function(X){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},oe="";return typeof X=="string"?oe=w(X,Q):X instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(X==null?void 0:X.type)?oe=w(X.value,Q):(oe=h()(X),p("copy")),oe},_=S;function y(te){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(Q){return typeof Q}:y=function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},y(te)}var x=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Q=X.action,oe=Q===void 0?"copy":Q,ne=X.container,F=X.target,V=X.text;if(oe!=="copy"&&oe!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(F!==void 0)if(F&&y(F)==="object"&&F.nodeType===1){if(oe==="copy"&&F.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(oe==="cut"&&(F.hasAttribute("readonly")||F.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(V)return _(V,{container:ne});if(F)return oe==="cut"?m(F):_(F,{container:ne})},C=x;function E(te){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(Q){return typeof Q}:E=function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},E(te)}function O(te,X){if(!(te instanceof X))throw new TypeError("Cannot call a class as a function")}function I(te,X){for(var Q=0;Q<X.length;Q++){var oe=X[Q];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(te,oe.key,oe)}}function $(te,X,Q){return X&&I(te.prototype,X),Q&&I(te,Q),te}function N(te,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(X&&X.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),X&&j(te,X)}function j(te,X){return j=Object.setPrototypeOf||function(oe,ne){return oe.__proto__=ne,oe},j(te,X)}function ae(te){var X=J();return function(){var oe=U(te),ne;if(X){var F=U(this).constructor;ne=Reflect.construct(oe,arguments,F)}else ne=oe.apply(this,arguments);return Y(this,ne)}}function Y(te,X){return X&&(E(X)==="object"||typeof X=="function")?X:z(te)}function z(te){if(te===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te}function J(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function U(te){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(Q){return Q.__proto__||Object.getPrototypeOf(Q)},U(te)}function H(te,X){var Q="data-clipboard-".concat(te);if(!!X.hasAttribute(Q))return X.getAttribute(Q)}var de=function(te){N(Q,te);var X=ae(Q);function Q(oe,ne){var F;return O(this,Q),F=X.call(this),F.resolveOptions(ne),F.listenClick(oe),F}return $(Q,[{key:"resolveOptions",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof ne.action=="function"?ne.action:this.defaultAction,this.target=typeof ne.target=="function"?ne.target:this.defaultTarget,this.text=typeof ne.text=="function"?ne.text:this.defaultText,this.container=E(ne.container)==="object"?ne.container:document.body}},{key:"listenClick",value:function(ne){var F=this;this.listener=d()(ne,"click",function(V){return F.onClick(V)})}},{key:"onClick",value:function(ne){var F=ne.delegateTarget||ne.currentTarget,V=this.action(F)||"copy",B=C({action:V,container:this.container,target:this.target(F),text:this.text(F)});this.emit(B?"success":"error",{action:V,text:B,trigger:F,clearSelection:function(){F&&F.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(ne){return H("action",ne)}},{key:"defaultTarget",value:function(ne){var F=H("target",ne);if(F)return document.querySelector(F)}},{key:"defaultText",value:function(ne){return H("text",ne)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(ne){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return _(ne,F)}},{key:"cut",value:function(ne){return m(ne)}},{key:"isSupported",value:function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],F=typeof ne=="string"?[ne]:ne,V=!!document.queryCommandSupported;return F.forEach(function(B){V=V&&!!document.queryCommandSupported(B)}),V}}]),Q}(u()),Se=de},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}function l(u,c){for(;u&&u.nodeType!==a;){if(typeof u.matches=="function"&&u.matches(c))return u;u=u.parentNode}}i.exports=l},438:function(i,a,r){var l=r(828);function u(f,h,p,g,m){var b=d.apply(this,arguments);return f.addEventListener(p,b,m),{destroy:function(){f.removeEventListener(p,b,m)}}}function c(f,h,p,g,m){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof p=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return u(b,h,p,g,m)}))}function d(f,h,p,g){return function(m){m.delegateTarget=l(m.target,h),m.delegateTarget&&g.call(f,m)}}i.exports=c},879:function(i,a){a.node=function(r){return r!==void 0&&r instanceof HTMLElement&&r.nodeType===1},a.nodeList=function(r){var l=Object.prototype.toString.call(r);return r!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in r&&(r.length===0||a.node(r[0]))},a.string=function(r){return typeof r=="string"||r instanceof String},a.fn=function(r){var l=Object.prototype.toString.call(r);return l==="[object Function]"}},370:function(i,a,r){var l=r(879),u=r(438);function c(p,g,m){if(!p&&!g&&!m)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(m))throw new TypeError("Third argument must be a Function");if(l.node(p))return d(p,g,m);if(l.nodeList(p))return f(p,g,m);if(l.string(p))return h(p,g,m);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(p,g,m){return p.addEventListener(g,m),{destroy:function(){p.removeEventListener(g,m)}}}function f(p,g,m){return Array.prototype.forEach.call(p,function(b){b.addEventListener(g,m)}),{destroy:function(){Array.prototype.forEach.call(p,function(b){b.removeEventListener(g,m)})}}}function h(p,g,m){return u(document.body,p,g,m)}i.exports=c},817:function(i){function a(r){var l;if(r.nodeName==="SELECT")r.focus(),l=r.value;else if(r.nodeName==="INPUT"||r.nodeName==="TEXTAREA"){var u=r.hasAttribute("readonly");u||r.setAttribute("readonly",""),r.select(),r.setSelectionRange(0,r.value.length),u||r.removeAttribute("readonly"),l=r.value}else{r.hasAttribute("contenteditable")&&r.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(r),c.removeAllRanges(),c.addRange(d),l=c.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(r,l,u){var c=this.e||(this.e={});return(c[r]||(c[r]=[])).push({fn:l,ctx:u}),this},once:function(r,l,u){var c=this;function d(){c.off(r,d),l.apply(u,arguments)}return d._=l,this.on(r,d,u)},emit:function(r){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[r]||[]).slice(),c=0,d=u.length;for(c;c<d;c++)u[c].fn.apply(u[c].ctx,l);return this},off:function(r,l){var u=this.e||(this.e={}),c=u[r],d=[];if(c&&l)for(var f=0,h=c.length;f<h;f++)c[f].fn!==l&&c[f].fn._!==l&&d.push(c[f]);return d.length?u[r]=d:delete u[r],this}},i.exports=a,i.exports.TinyEmitter=a}},o={};function s(i){if(o[i])return o[i].exports;var a=o[i]={exports:{}};return n[i](a,a.exports,s),a.exports}return function(){s.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(a,{a}),a}}(),function(){s.d=function(i,a){for(var r in a)s.o(a,r)&&!s.o(i,r)&&Object.defineProperty(i,r,{enumerable:!0,get:a[r]})}}(),function(){s.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}}(),s(686)}().default})})(_v);const xc=Yk(_v.exports),wv={__name:"MediaButton",emits:["onMediaSelected"],setup(e,{emit:t}){let n=null;const o=t,s=()=>{n!=null&&n.open()};De(()=>{!typeof window.wp.media!=="function"&&(n=window.wp.media({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!0}),i())});const i=()=>{n.on("select",function(){const a=n.state().get("selection").toJSON();o("onMediaSelected",a)})};return(a,r)=>(M(),D("button",{type:"button",class:"rounded-sm bg-primary-500 py-2 px-4 border-0 shadow text-[14px] font-medium cursor-pointer",onClick:s},[P(v(Vb)),r[0]||(r[0]=le("Update Image "))]))}},q$={name:"Settings",computed:{View(){return bu}},components:{MediaButton:wv},data(){return{saving:!1,currencies:{},fetching:!0,previewUrl:window.BuyMeCoffeeAdmin.preview_url,predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577","#FFF","#000000"],template:{advanced:{}}}},methods:{onMediaSelected(e){e.length&&(this.template.advanced.image=e[0].url)},changeBgColor(e){this.template.advanced.bgColor=e},changeFontColor(e){this.template.advanced.color=e},getSettings(){this.$get({action:"buymecoffee_admin_ajax",route:"get_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.template=e.data.template,this.currencies=e.data.currencies,this.fetching=!1})},fullPath(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},resetDefault(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"reset_template_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.$handleSuccess(e.data.message),this.template=e.data.settings,this.saving=!1}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})},saveTemplates(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"save_settings",data:this.template,buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.$handleSuccess(e.data.message),this.saving=!1}).fail(e=>{var t,n;console.log(e),this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})},previewButton(){window.open(this.previewUrl)}},mounted(){this.getSettings(),jQuery(document).ready(function(e){var t=new xc(".copy");t.on("success",function(n){e(n.trigger).text("Copied!"),n.clearSelection(),setTimeout(function(){e(n.trigger).text(n.text)},1e3)})})}},Y$={class:"buymecoffee_main_container"},G$={class:"wpm-template-inner"},X$={class:"buymecoffee-editor input_green_border"},J$={class:"buymecoffee_menu_title flex"},Q$={class:"buymecoffee_template_section"},Z$={class:"buymecoffee_template_section"},eF={class:"buymecoffee_settings_image"},tF=["src"],nF=["src"],oF={key:1},sF={style:{display:"flex"}},iF={class:"wpm-btm-render-options"},aF=["src"],rF={style:{display:"flex","align-items":"center"}},lF={style:{display:"flex","align-items":"center"}},uF={style:{display:"flex","align-items":"center"}},cF=["href"],dF=["href"];function fF(e,t,n,o,s,i){const a=_e("CoffeeCup"),r=ls,l=Hu,u=$o,c=Mr,d=Er,f=ic,h=dM,p=_e("MediaButton"),g=xn,m=om,b=sc,w=Vu,S=qT,_=Cr,y=Vn,x=oa,C=_e("child"),E=co("loading");return M(),D("div",Y$,[$e((M(),G(x,{class:"wpm-template"},{default:L(()=>[k("div",G$,[k("div",X$,[P(x,null,{default:L(()=>[P(_,{md:24,lg:12,style:{background:"linear-gradient(122deg, #ffffff87, #c4fff654)","border-radius":"6px",padding:"24px"}},{default:L(()=>[k("h1",J$,[t[14]||(t[14]=le("Buy Me ")),P(a,{style:{width:"23px"}}),t[15]||(t[15]=le("- Global settings"))]),s.fetching?(M(),D("div",oF,[P(S,{rows:5})])):(M(),G(w,{key:0,"label-position":"left","label-width":"140px"},{default:L(()=>[P(b,null,{default:L(()=>[P(f,{label:"General"},{default:L(()=>[P(l,null,{default:L(()=>[P(r,{"true-label":"yes","false-label":"no",modelValue:s.template.formTitle,"onUpdate:modelValue":t[0]||(t[0]=O=>s.template.formTitle=O)},{default:L(()=>t[16]||(t[16]=[le("Show form title section")])),_:1},8,["modelValue"])]),_:1}),s.template.formTitle==="yes"?(M(),G(l,{key:0,label:"You Name"},{default:L(()=>[P(u,{size:"small",type:"text",modelValue:s.template.yourName,"onUpdate:modelValue":t[1]||(t[1]=O=>s.template.yourName=O)},null,8,["modelValue"]),t[17]||(t[17]=k("span",{style:{"font-style":"italic","font-size":"13px",color:"#929292","line-height":"1.6em"}},[le(" Also you can use data params Ex: https://page-link&"),k("code",null,"for=John")],-1))]),_:1})):q("",!0),P(l,null,{default:L(()=>[P(r,{"true-label":"yes","false-label":"no",modelValue:s.template.enableName,"onUpdate:modelValue":t[2]||(t[2]=O=>s.template.enableName=O)},{default:L(()=>t[18]||(t[18]=[le("Collect name of supporter")])),_:1},8,["modelValue"])]),_:1}),P(l,null,{default:L(()=>[P(r,{"true-label":"yes","false-label":"no",modelValue:s.template.enableEmail,"onUpdate:modelValue":t[3]||(t[3]=O=>s.template.enableEmail=O)},{default:L(()=>t[19]||(t[19]=[le("Collect email of supporter")])),_:1},8,["modelValue"])]),_:1}),P(l,null,{default:L(()=>[P(r,{"true-label":"yes","false-label":"no",modelValue:s.template.enableMessage,"onUpdate:modelValue":t[4]||(t[4]=O=>s.template.enableMessage=O)},{default:L(()=>t[20]||(t[20]=[le("Enable message option when donate")])),_:1},8,["modelValue"])]),_:1}),P(l,{label:"Per coffee price"},{default:L(()=>[P(u,{type:"number",modelValue:s.template.defaultAmount,"onUpdate:modelValue":t[5]||(t[5]=O=>s.template.defaultAmount=O)},null,8,["modelValue"])]),_:1}),P(l,{label:"Currency"},{default:L(()=>[P(d,{class:"wpm_currency_select",filterable:"",modelValue:s.template.currency,"onUpdate:modelValue":t[6]||(t[6]=O=>s.template.currency=O),placeholder:"Select Currency"},{default:L(()=>[(M(!0),D(Qe,null,Bt(s.currencies,(O,I)=>(M(),G(c,{key:I,label:O,value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),P(f,{label:"Template Settings"},{default:L(()=>[k("div",Q$,[P(l,{label:"Button text"},{default:L(()=>[P(u,{size:"small",type:"text",modelValue:s.template.buttonText,"onUpdate:modelValue":t[7]||(t[7]=O=>s.template.buttonText=O)},null,8,["modelValue"])]),_:1}),P(l,{label:"Button color"},{default:L(()=>[P(h,{size:"small",onActiveChange:i.changeBgColor,modelValue:s.template.advanced.bgColor,"onUpdate:modelValue":t[8]||(t[8]=O=>s.template.advanced.bgColor=O),"show-alpha":"",predefine:s.predefineColors},null,8,["onActiveChange","modelValue","predefine"])]),_:1}),P(l,{label:"Button Text color"},{default:L(()=>[P(h,{size:"small",onActiveChange:i.changeFontColor,modelValue:s.template.advanced.color,"onUpdate:modelValue":t[9]||(t[9]=O=>s.template.advanced.color=O),"show-alpha":"",predefine:s.predefineColors},null,8,["onActiveChange","modelValue","predefine"])]),_:1}),P(l,{label:"Button Radius(px)"},{default:L(()=>[P(u,{style:{width:"50%"},type:"number",size:"small",modelValue:s.template.advanced.radius,"onUpdate:modelValue":t[10]||(t[10]=O=>s.template.advanced.radius=O)},null,8,["modelValue"])]),_:1})]),k("div",Z$,[P(l,{label:"Form shadow"},{default:L(()=>[P(r,{"true-label":"yes","false-label":"no",modelValue:s.template.advanced.formShadow,"onUpdate:modelValue":t[11]||(t[11]=O=>s.template.advanced.formShadow=O)},{default:L(()=>t[21]||(t[21]=[le("Enable form box shadow")])),_:1},8,["modelValue"])]),_:1}),P(l,{label:"Your Quotes"},{default:L(()=>[P(u,{type:"textarea",size:"small",modelValue:s.template.advanced.quote,"onUpdate:modelValue":t[12]||(t[12]=O=>s.template.advanced.quote=O)},null,8,["modelValue"])]),_:1}),P(l,{label:""},{default:L(()=>[k("div",eF,[k("div",null,[P(p,{onOnMediaSelected:i.onMediaSelected},null,8,["onOnMediaSelected"])]),s.template.advanced.image?(M(),D("img",{key:0,width:"120",height:"120",src:s.template.advanced.image},null,8,tF)):(M(),D("img",{key:1,width:"120",height:"120",src:i.fullPath("profile.png")},null,8,nF))])]),_:1})])]),_:1}),k("div",null,[P(m,{onConfirm:i.resetDefault,title:"Are you sure to reset to default settings?"},{reference:L(()=>[P(g,{plain:"",style:{"margin-top":"12px"},type:"warning",size:"default"},{default:L(()=>t[22]||(t[22]=[le(" Reset Default ")])),_:1})]),_:1},8,["onConfirm"]),P(g,{plain:"",style:{"margin-top":"12px"},onClick:i.saveTemplates,type:"success",size:"default"},{default:L(()=>t[23]||(t[23]=[le(" Save Settings ")])),_:1},8,["onClick"])])]),_:1})]),_:1}))]),_:1}),P(_,{md:24,lg:12,class:"wpm-btm-preview",style:{padding:"24px",background:"white","border-top-right-radius":"6px","border-bottom-right-radius":"6px"}},{default:L(()=>[t[40]||(t[40]=k("h3",null,"Preview Button Style",-1)),k("div",sF,[k("button",{style:Oe([{cursor:"pointer"},{"background-color":s.template.advanced.bgColor,color:s.template.advanced.color,"border-radius":s.template.advanced.radius+"px",padding:"8px 20px",border:"none",height:"50px","font-size":s.template.advanced.fontSize+"px"}]),size:"default",onClick:t[13]||(t[13]=(...O)=>i.previewButton&&i.previewButton(...O))},ee(s.template.buttonText),5)]),k("div",iF,[t[32]||(t[32]=k("br",null,null,-1)),t[33]||(t[33]=k("h3",null,"Embed:",-1)),t[34]||(t[34]=k("i",{class:"el-icon-info"},null,-1)),t[35]||(t[35]=k("p",null,"Use Block editor or embed the shortcode on your posts/pages if you want to use the button above. Or use the URL bellow to collect payments from your supporters",-1)),t[36]||(t[36]=k("br",null,null,-1)),k("img",{src:i.fullPath("blocks.jpeg"),alt:"Block editor",style:{width:"80%",opacity:"0.3"}},null,8,aF),t[37]||(t[37]=k("h4",null,"Or Use ShortCodes:",-1)),k("div",rF,[t[25]||(t[25]=k("p",null,"Button ShortCode:",-1)),k("div",null,[P(y,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:L(()=>t[24]||(t[24]=[k("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_button]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_button] ")],-1)])),_:1})])]),k("div",lF,[t[27]||(t[27]=k("p",null,"Form ShortCode:",-1)),k("div",null,[P(y,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:L(()=>t[26]||(t[26]=[k("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_form]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_form] ")],-1)])),_:1})])]),k("div",uF,[t[29]||(t[29]=k("p",null,"Form With Template: ",-1)),k("div",null,[P(y,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:L(()=>t[28]||(t[28]=[k("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_basic]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_basic] ")],-1)])),_:1})]),k("a",{style:{"margin-left":"12px",color:"#e88b0d","text-decoration":"none"},href:s.previewUrl,target:"_blank"},"Preview",8,cF)]),k("div",null,[t[31]||(t[31]=k("p",null," For custom amount:",-1)),P(y,{effect:"dark",content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"top"},{default:L(()=>t[30]||(t[30]=[k("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_basic custom=10]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_basic custom=10] ")],-1)])),_:1}),k("a",{style:{color:"#e88b0d","text-decoration":"none"},target:"_blank",href:s.previewUrl+"&custom=10"},"Preview",8,dF)]),t[38]||(t[38]=k("br",null,null,-1)),t[39]||(t[39]=k("p",null,[le("Also you can use custom amount template by adding "),k("code",null,"&custom"),le(" \xA0 param with your page link like this:")],-1)),k("p",null,ee(s.previewUrl)+"&custom=10",1)])]),_:1})]),_:1})])])]),_:1})),[[E,s.saving]]),P(C,{template:s.template},null,8,["template"])])}const hF=Kt(q$,[["render",fF]]),pF={name:"paypal_settings",data(){return{settings:{},saving:!1,fetching:!1,labelPosition:"right",webhook_url:""}},methods:{getSettings(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_data",data:{method:"paypal"},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.settings=e.data.settings,this.webhook_url=e.data.webhook_url,this.fetching=!1}).fail(e=>{this.$message.error(e.responseJSON.data.message)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"save_payment_settings",data:{method:"paypal",settings:this.settings},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var t;this.$handleSuccess((t=e==null?void 0:e.data)==null?void 0:t.message)}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})}},mounted(){this.getSettings(),jQuery(document).ready(function(e){var t=new xc(".copy");t.on("success",function(n){e(n.trigger).text("Copied!"),n.clearSelection(),setTimeout(function(){e(n.trigger).text(n.text)},1e3)})})}},gF={class:"buymecoffee_main_container"},mF={class:"buymecoffee_wrapper buymecoffee_payment_settings"},vF={class:"buymecoffee_header"},bF={class:"buymecoffee_title"},yF={style:{"margin-bottom":"23px"}},_F={key:0},wF={key:1},SF={class:"buymecoffee_settings_section"},xF=["data-clipboard-text"],CF={class:"action_right",style:{"margin-top":"24px"}};function kF(e,t,n,o,s,i){const a=_e("router-link"),r=am,l=Kg,u=qg,c=Hu,d=$o,f=ic,h=sc,p=Vn,g=xn,m=Vu,b=co("loading");return $e((M(),D("div",gF,[k("div",mF,[k("div",vF,[k("h3",bF,[P(a,{style:{"text-decoration":"none"},to:{name:"Gateway"}}),t[10]||(t[10]=le("PayPal Gateway Settings: "))])]),k("div",yF,[k("label",null,[t[11]||(t[11]=le("Enable PayPal Payment ")),P(r,{"active-value":"yes","inactive-value":"no","active-text":"Enable PayPal",modelValue:s.settings.enable,"onUpdate:modelValue":t[0]||(t[0]=w=>s.settings.enable=w)},null,8,["modelValue"])])]),k("div",{class:A(["buymecoffee_section_body",s.settings.enable!=="yes"?"payment-inactive":""])},[P(m,{"label-position":s.labelPosition,rel:"paypal_settings",model:s.settings,"label-width":"220px"},{default:L(()=>[P(c,{label:"PayPal Payment Mode"},{default:L(()=>[P(u,{modelValue:s.settings.payment_mode,"onUpdate:modelValue":t[1]||(t[1]=w=>s.settings.payment_mode=w)},{default:L(()=>[P(l,{label:"test"},{default:L(()=>t[12]||(t[12]=[le("Sandbox Mode")])),_:1}),P(l,{label:"live"},{default:L(()=>t[13]||(t[13]=[le("Live Mode")])),_:1})]),_:1},8,["modelValue"])]),_:1}),P(h,{modelValue:s.settings.payment_type,"onUpdate:modelValue":t[8]||(t[8]=w=>s.settings.payment_type=w),class:"demo-tabs"},{default:L(()=>[P(f,{label:"PayPal pro",name:"pro"},{default:L(()=>[s.settings.payment_mode==="test"?(M(),D("div",_F,[P(c,{label:"Test Public key"},{default:L(()=>[P(d,{type:"text",size:"small",modelValue:s.settings.test_public_key,"onUpdate:modelValue":t[2]||(t[2]=w=>s.settings.test_public_key=w),placeholder:"Public key from paypal dashboard"},null,8,["modelValue"])]),_:1}),P(c,{label:"Test Secret key"},{default:L(()=>[P(d,{type:"password",size:"small",modelValue:s.settings.test_secret_key,"onUpdate:modelValue":t[3]||(t[3]=w=>s.settings.test_secret_key=w),placeholder:"Public key from paypal dashboard"},null,8,["modelValue"])]),_:1})])):(M(),D("div",wF,[P(c,{label:"Live Public key"},{default:L(()=>[P(d,{type:"text",size:"small",modelValue:s.settings.live_public_key,"onUpdate:modelValue":t[4]||(t[4]=w=>s.settings.live_public_key=w),placeholder:"Public key from paypal dashboard"},null,8,["modelValue"])]),_:1}),P(c,{label:"Live Secret key"},{default:L(()=>[P(d,{type:"password",size:"small",modelValue:s.settings.live_secret_key,"onUpdate:modelValue":t[5]||(t[5]=w=>s.settings.live_secret_key=w),placeholder:"Public key from paypal dashboard"},null,8,["modelValue"])]),_:1})]))]),_:1}),P(f,{label:"Paypal Standard",name:"standard"},{default:L(()=>[P(c,{label:"Paypal Email"},{default:L(()=>[P(d,{type:"text",size:"small",modelValue:s.settings.paypal_email,"onUpdate:modelValue":t[6]||(t[6]=w=>s.settings.paypal_email=w),placeholder:"Paypal Email Address"},null,8,["modelValue"])]),_:1}),P(c,{label:"Disable PayPal IPN Verification"},{default:L(()=>[P(r,{"active-value":"yes","inactive-value":"no",modelValue:s.settings.disable_ipn_verification,"onUpdate:modelValue":t[7]||(t[7]=w=>s.settings.disable_ipn_verification=w)},null,8,["modelValue"]),t[14]||(t[14]=k("p",null,"If you are unable to use Payment Data Transfer and payments are not getting marked as complete, then check this box. This forces the site to use a slightly less secure method of verifying purchases.",-1))]),_:1})]),_:1})]),_:1},8,["modelValue"]),k("div",SF,[t[16]||(t[16]=k("p",null,"Please use IPN url to get marked paid on you site.",-1)),t[17]||(t[17]=k("b",null,"IPN URL: ",-1)),P(p,{effect:"dark",content:"Click to copy",title:"Click to copy",placement:"top"},{default:L(()=>[k("code",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":s.webhook_url},[t[15]||(t[15]=k("i",{class:"el-icon-document"},null,-1)),le(" "+ee(s.webhook_url),1)],8,xF)]),_:1})]),k("div",CF,[P(g,{onClick:t[9]||(t[9]=w=>i.saveSettings()),type:"primary",size:"default"},{default:L(()=>t[18]||(t[18]=[le("Save PayPal Settings")])),_:1})])]),_:1},8,["label-position","model"])],2)])])),[[b,s.fetching]])}const EF=Kt(pF,[["render",kF]]),MF={name:"settings",data(){return{settings:{},saving:!1,fetching:!1,labelPosition:"right",webhook_url:""}},methods:{getSettings(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_data",data:{method:"stripe"},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.settings=e.data.settings,this.webhook_url=e.data.webhook_url}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",data:{settings:this.settings,method:"stripe"},route:"save_payment_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.$handleSuccess(e.data.message)}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.saving=!1})}},mounted(){this.getSettings()}},TF={class:"buymecoffee_main_container"},PF={class:"buymecoffee_wrapper buymecoffee_payment_settings"},OF={class:"buymecoffee_title"},AF={style:{"margin-bottom":"23px"}},RF={key:0,class:"buymecoffee_settings_section"},LF={key:1,class:"buymecoffee_settings_section"},IF={class:"buymecoffee_settings_section"},$F={class:"action_right"};function FF(e,t,n,o,s,i){const a=_e("router-link"),r=am,l=Kg,u=qg,c=Hu,d=$o,f=xn,h=Vu,p=co("loading");return $e((M(),D("div",TF,[k("div",PF,[k("h3",OF,[P(a,{style:{"text-decoration":"none"},to:{name:"Gateway"}}),t[7]||(t[7]=le("Stripe Gateway Settings: "))]),k("div",AF,[k("label",null,[t[8]||(t[8]=le("Enable Stripe Payment ")),P(r,{"active-value":"yes","inactive-value":"no","active-text":"Enable stripe",modelValue:s.settings.enable,"onUpdate:modelValue":t[0]||(t[0]=g=>s.settings.enable=g)},null,8,["modelValue"])])]),k("div",{class:A(["buymecoffee_section_body",s.settings.enable!=="yes"?"payment-inactive":""])},[P(h,{"label-position":s.labelPosition,rel:"stripe_settings",model:s.settings,"label-width":"220px"},{default:L(()=>[P(c,{label:"Stripe Payment Mode"},{default:L(()=>[P(u,{modelValue:s.settings.payment_mode,"onUpdate:modelValue":t[1]||(t[1]=g=>s.settings.payment_mode=g)},{default:L(()=>[P(l,{label:"test"},{default:L(()=>t[9]||(t[9]=[le("Test Mode")])),_:1}),P(l,{label:"live"},{default:L(()=>t[10]||(t[10]=[le("Live Mode")])),_:1})]),_:1},8,["modelValue"])]),_:1}),s.settings.payment_mode!=="live"?(M(),D("div",RF,[t[11]||(t[11]=k("h3",null,"Stripe Test Keys",-1)),P(c,{label:"Test Publishable key"},{default:L(()=>[P(d,{type:"text",size:"small",modelValue:s.settings.test_pub_key,"onUpdate:modelValue":t[2]||(t[2]=g=>s.settings.test_pub_key=g),placeholder:"Test Publishable key"},null,8,["modelValue"])]),_:1}),P(c,{label:"Test Secret key"},{default:L(()=>[P(d,{type:"password",size:"small",modelValue:s.settings.test_secret_key,"onUpdate:modelValue":t[3]||(t[3]=g=>s.settings.test_secret_key=g),placeholder:"Test Secret key"},null,8,["modelValue"])]),_:1})])):(M(),D("div",LF,[t[12]||(t[12]=k("h3",null,"Stripe Live Keys",-1)),P(c,{label:"Live Publishable key"},{default:L(()=>[P(d,{type:"text",size:"small",modelValue:s.settings.live_pub_key,"onUpdate:modelValue":t[4]||(t[4]=g=>s.settings.live_pub_key=g),placeholder:"Live Publishable key"},null,8,["modelValue"])]),_:1}),P(c,{label:"Live Secret key"},{default:L(()=>[P(d,{type:"password",size:"small",modelValue:s.settings.live_secret_key,"onUpdate:modelValue":t[5]||(t[5]=g=>s.settings.live_secret_key=g),placeholder:"Live Secret key"},null,8,["modelValue"])]),_:1})])),k("div",IF,[t[14]||(t[14]=k("p",null,[le("In order for Stripe to function completely for subscription/recurring payments, you must configure your Stripe webhooks. Visit your "),k("a",{href:"https://dashboard.stripe.com/account/webhooks",target:"_blank",rel:"noopener"},"account dashboard"),le(" to configure them. Please add a webhook endpoint for the URL below.")],-1)),k("p",null,[t[13]||(t[13]=k("b",null,"Webhook URL: ",-1)),k("code",null,ee(s.webhook_url),1)])]),k("div",$F,[P(f,{onClick:t[6]||(t[6]=g=>i.saveSettings()),type:"primary",size:"default"},{default:L(()=>t[15]||(t[15]=[le("Save Settings")])),_:1})])]),_:1},8,["label-position","model"])],2)])])),[[p,s.fetching]])}const Sv=Kt(MF,[["render",FF]]),BF={name:"Gateway",data(){return{gateways:[],current_route:this.$route.name}},methods:{getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"/images/"+e},goto(){this.$router.push({name:"stripe"})},getAllMethods(){this.$get({action:"buymecoffee_admin_ajax",route:"gateways",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.gateways=e.data}).catch(e=>{console.log(e)})}},computed:{},watch:{},mounted(){this.getAllMethods()}},DF={class:"buymecoffee_main_container input_green_border"},NF={class:"buymecoffee_gateway_menu"},zF=["onClick"],VF=["src"];function HF(e,t,n,o,s,i){const a=_e("router-view"),r=oa;return M(),D("div",DF,[P(r,{class:"buymecoffee_gateways"},{default:L(()=>[t[0]||(t[0]=k("h1",{class:"buymecoffee_menu_title"},"Payment Gateways",-1)),k("div",NF,[(M(!0),D(Qe,null,Bt(s.gateways,(l,u)=>(M(),D("div",{key:u,class:"buymecoffee_gateway_item",onClick:()=>this.$router.push({name:l.route})},[k("div",{class:A("buymecoffee_gateway_"+l.route+(l.route===s.current_route?" active":""))},[k("img",{src:l.image,style:{width:"70px","max-width":"70px"},class:"image"},null,8,VF)],2)],8,zF))),128))]),P(a)]),_:1})])}const WF=Kt(BF,[["render",HF],["__scopeId","data-v-9122130d"]]),jF={name:"Supporter",data(){return{supporter:{},loading:!1,paymentStatus:"",statusModal:!1,val:"Hello from Supports",options:[{value:"pending",label:"Pending"},{value:"paid",label:"Paid"},{value:"refunded",label:"Refunded"},{value:"cancelled",label:"Cancelled"},{value:"failed",label:"Failed"}]}},components:{Message:Hb,Warning:Wb,ElMessageBox:sf,Coffee:mp,User:vp,Money:bp,EditPen:jb,Link:Ub},methods:{handleGet(e){this.$router.push({name:"Supporter",params:{id:e}}).then(()=>{this.getSupporter()})},getFormatedAmount(e){return parseInt(e/100)},getImage(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},updateStatus(){sf.confirm("Are you sure to change payment status?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{this.$post({action:"buymecoffee_admin_ajax",route:"update_payment_status",data:{id:this.$route.params.id,status:this.paymentStatus},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.statusModal=!1,this.getSupporter(),this.$handleSuccess("Updated Successfully")})}).catch(()=>{IO({type:"info",message:"Update canceled"})})},getSupporter(){this.loading=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_supporter",data:{id:this.$route.params.id},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.supporter=e.data,this.paymentStatus=e.data.payment_status,this.loading=!1}).catch(e=>{this.loading=!1,this.$handleError(e)})}},mounted(){this.getSupporter()}},UF={class:"buymecoffee_supporter_main_container"},KF={class:"buymecoffee_title"},qF={class:"max-w-7xl mx-auto p-6 flex flex-wrap"},YF={class:"w-1/3 pr-6 mb-4"},GF={class:"rounded-lg shadow-md p-4",style:{background:"rgb(255 254 246)"}},XF={class:"flex items-center"},JF=["alt","src"],QF={class:"ml-4"},ZF={class:"text-xl font-semibold"},eB=["href"],tB={class:"mt-4 flex space-x-2"},nB=["href"],oB=["href"],sB={class:"mt-4"},iB={class:"text-gray-500"},aB={class:"mt-4"},rB={class:"mt-4"},lB={class:"text-lg font-semibold"},uB={class:""},cB={class:"wpm_supporter_items"},dB={class:"text-white rounded-lg p-6 relative",style:{"background-image":"linear-gradient(22deg, rgb(196 144 255), rgb(30, 71, 65))"}},fB={class:"flex justify-between items-center mb-4"},hB={class:"absolute top-3 right-4 bg-gradient-to-r from-green-300 to-blue-300 rounded-full p-2"},pB={class:"text-black font-semibold"},gB={class:"text-sm mb-4"},mB={class:"flex justify-between items-center text-sm"},vB={key:0,class:"text-[12px] border rounded-md bg-amber-200 p-1 mt-2"},bB={class:"w-2/3"},yB={class:"flex items-center mb-4"},_B={class:"bg-blue-100 p-4 rounded-lg flex-1 text-center shadow-md"},wB={class:"flex items-center justify-center"},SB=["innerHTML"],xB={class:"bg-green-100 p-4 rounded-lg flex-1 text-center ml-2 shadow-md"},CB=["innerHTML"],kB={class:"bg-yellow-100 p-4 rounded-lg flex-1 text-center ml-2 shadow-md"},EB=["innerHTML"],MB=["onClick"],TB={class:"text-[10px]"},PB=["innerHTML"],OB={class:"wpm_supporter_payment_actions"};function AB(e,t,n,o,s,i){var _,y,x,C,E,O,I,$,N,j,ae,Y,z,J,U,H,de,Se,te,X,Q,oe,ne,F,V,B,Z,fe,Ee,ve,xe;const a=_e("router-link"),r=_e("Message"),l=Le,u=_e("Link"),c=_e("EditPen"),d=_e("Coffee"),f=_e("Money"),h=_e("Warning"),p=oc,g=nc,m=Mr,b=Er,w=EM,S=co("loading");return M(),D(Qe,null,[$e((M(),D("div",UF,[k("h3",KF,[P(a,{class:"text-blue-500",to:{name:"Supporters"}},{default:L(()=>t[3]||(t[3]=[le("Supporters / ")])),_:1}),le("# "+ee(e.$route.params.id),1)]),k("div",qF,[k("div",YF,[k("div",GF,[k("div",XF,[k("img",{alt:(_=s.supporter)==null?void 0:_.supporters_name,class:"w-20 h-20 rounded-full",height:"100",src:(y=s.supporter)==null?void 0:y.supporters_image,width:"100"},null,8,JF),k("div",QF,[k("h2",ZF,ee((x=s.supporter)==null?void 0:x.supporters_name),1),(C=s.supporter)!=null&&C.supporters_email?(M(),D("a",{key:0,href:"mailto:"+((E=s.supporter)==null?void 0:E.supporters_email),class:"text-gray-500"},ee((O=s.supporter)==null?void 0:O.supporters_email),9,eB)):q("",!0),k("p",null,ee((I=s.supporter)==null?void 0:I.created_at),1)])]),k("div",tB,[($=s.supporter)!=null&&$.supporters_email?(M(),D("a",{key:0,href:"mailto:"+((N=s.supporter)==null?void 0:N.supporters_email),class:"bg-gray-200 text-black px-4 py-2 flex align-center rounded-md",style:{"align-items":"center"}},[P(l,{class:"mr-2"},{default:L(()=>[P(r)]),_:1}),t[4]||(t[4]=le(" Send email "))],8,nB)):q("",!0),(ae=(j=s.supporter)==null?void 0:j.transaction)!=null&&ae.transaction_url?(M(),D("a",{key:1,target:"_blank",href:(z=(Y=s.supporter)==null?void 0:Y.transaction)==null?void 0:z.transaction_url,class:"bg-blue-300 text-black px-4 py-2 flex align-center rounded-md cursor-pointer",style:{"align-items":"center"}},[P(l,{class:"mr-2"},{default:L(()=>[P(u)]),_:1}),le(" View on "+ee((J=s.supporter)==null?void 0:J.payment_method),1)],8,oB)):q("",!0)]),k("div",sB,[t[5]||(t[5]=k("h3",{class:"text-lg font-semibold"}," Message ",-1)),k("p",iB,ee((H=(U=s.supporter)==null?void 0:U.supporters_message)!=null?H:"No message"),1)]),k("div",aB,[k("div",rB,[k("h3",lB,[t[6]||(t[6]=le(" Transaction ")),k("span",{class:A("buymecoffee_status buymecoffee_status_"+s.supporter.payment_status)},[le(ee(s.supporter.payment_status)+" ",1),k("span",{class:"cursor-pointer",onClick:t[0]||(t[0]=be=>s.statusModal=!s.statusModal)},[P(l,null,{default:L(()=>[P(c)]),_:1})])],2)]),k("div",uB,[t[7]||(t[7]=k("p",{class:"text-md font-semibold"}," Donated ",-1)),k("div",cB,[k("div",null,[P(d),k("span",null,ee(parseInt((de=s.supporter)==null?void 0:de.coffee_count)),1)]),k("div",null,[P(f),k("span",null,ee(i.getFormatedAmount((Se=s.supporter)==null?void 0:Se.payment_total))+" "+ee((te=s.supporter)==null?void 0:te.currency),1)])])]),k("div",dB,[k("div",fB,[t[8]||(t[8]=k("div",{class:"text-lg font-semibold"},"Card",-1)),k("div",hB,[k("span",pB,ee((Q=(X=s.supporter)==null?void 0:X.transaction)==null?void 0:Q.card_brand),1)])]),k("div",gB,"**** **** **** "+ee((ne=(oe=s.supporter)==null?void 0:oe.transaction)==null?void 0:ne.card_last_4),1),k("div",mB,[k("div",null,ee((V=(F=s.supporter)==null?void 0:F.supporters_name)!=null?V:"Anonymous"),1),k("div",null,ee((Z=(B=s.supporter)==null?void 0:B.payment_method)!=null?Z:"-"),1)])]),s.supporter.payment_status==="paid-initially"?(M(),D("p",vB,[P(l,null,{default:L(()=>[P(h)]),_:1}),t[9]||(t[9]=le(" Please verify this transaction, before mark paid! "))])):q("",!0)])])])]),k("div",bB,[k("div",yB,[k("div",_B,[k("div",wB,[k("span",null,[P(d,{style:{width:"20px"},class:"mr-2"})]),t[10]||(t[10]=le()),k("h3",{class:"text-2xl font-semibold",innerHTML:(fe=s.supporter)==null?void 0:fe.all_time_total_coffee},null,8,SB)]),t[11]||(t[11]=k("p",{class:"text-gray-500"}," All time total coffee ",-1))]),k("div",xB,[k("h3",{class:"text-2xl font-semibold text-green-600",innerHTML:(Ee=s.supporter)==null?void 0:Ee.all_time_total_paid},null,8,CB),t[12]||(t[12]=k("p",{class:"text-gray-500"}," All time total paid ",-1))]),k("div",kB,[k("h3",{class:"text-2xl font-semibold text-yellow-600",innerHTML:(ve=s.supporter)==null?void 0:ve.all_time_total_pending},null,8,EB),t[13]||(t[13]=k("p",{class:"text-gray-500"}," All time total pending ",-1))])]),P(g,{class:"w-full bg-white rounded-lg shadow-md",data:(xe=s.supporter)==null?void 0:xe.other_donations},{default:L(()=>[P(p,{label:"ID",width:"100"},{default:L(be=>[k("a",{class:"text-blue-700 cursor-pointer",onClick:dt=>i.handleGet(be.row.id)},ee(be.row.id),9,MB)]),_:1}),P(p,{label:"Name"},{default:L(be=>{var dt,Ke;return[le(ee((dt=be==null?void 0:be.row)==null?void 0:dt.supporters_name)+" ",1),t[14]||(t[14]=k("br",null,null,-1)),k("span",TB,ee((Ke=be==null?void 0:be.row)==null?void 0:Ke.created_at),1)]}),_:1}),P(p,{label:"Donated For",prop:"reference"}),P(p,{label:"Amount"},{default:L(be=>{var dt,Ke;return[le(ee(i.getFormatedAmount((dt=be==null?void 0:be.row)==null?void 0:dt.payment_total))+" "+ee((Ke=be==null?void 0:be.row)==null?void 0:Ke.currency),1)]}),_:1}),P(p,{label:"Payment Status"},{default:L(be=>[k("span",{class:A("buymecoffee_status buymecoffee_status_"+be.row.payment_status),innerHTML:be.row.payment_status},null,10,PB)]),_:1})]),_:1},8,["data"])])])])),[[S,s.loading]]),P(w,{modelValue:s.statusModal,"onUpdate:modelValue":t[2]||(t[2]=be=>s.statusModal=be),width:"400px"},{default:L(()=>[t[15]||(t[15]=le(" Change Payment Status ")),k("div",OB,[P(b,{modelValue:s.paymentStatus,"onUpdate:modelValue":t[1]||(t[1]=be=>s.paymentStatus=be),onChange:i.updateStatus},{default:L(()=>[(M(!0),D(Qe,null,Bt(s.options,be=>(M(),G(m,{key:be.value,label:be.label,value:be.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1},8,["modelValue"])],64)}const RB=Kt(jF,[["render",AB]]),LB={name:"Onboarding",components:{DArrowLeft:cp,DArrowRight:dp,MediaButton:wv,Share:Kb,InfoFilled:qb,DocumentCopy:Yb,Stripe:Sv},data(){return{active:1,saving:!1,previewUrl:window.BuyMeCoffeeAdmin.preview_url,template:{advanced:{}},currencies:[],fetching:!1}},methods:{getSettings(){this.$get({action:"buymecoffee_admin_ajax",route:"get_settings",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.template=e.data.template,this.currencies=e.data.currencies,this.fetching=!1})},onMediaSelected(e){e.length&&(this.template.advanced.image=e[0].url)},gotoPage(){window.open(this.previewUrl,"_blank")},fullPath(e){return window.BuyMeCoffeeAdmin.assets_url+"images/"+e},prev(){this.active>0&&(this.active=this.active-1)},next(){this.active==1&&(this.saving=!0,this.$post({action:"buymecoffee_admin_ajax",route:"save_settings",data:this.template,buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.saving=!1}).fail(e=>{console.log(e)}).always(()=>{this.saving=!1})),this.active===2&&this.$refs.stripeRef.saveSettings(),this.active<3&&(this.active=this.active+1)}},mounted(){this.getSettings(),jQuery(document).ready(function(e){var t=new xc(".copy");t.on("success",function(n){e(n.trigger).text("Copied!"),n.clearSelection(),setTimeout(function(){e(n.trigger).text(n.text)},1e3)})})}},IB={class:"buymecoffee_onboard_wrapper input_green_border"},$B={class:"buymecoffee_onboard_content"},FB={key:0,class:"profile_section"},BB={class:"profile_image"},DB=["src"],NB=["src"],zB={class:"profile_name",style:{"margin-top":"32px"}},VB={key:1,class:"quick_payment_section"},HB={key:2,class:"quick_done_section"},WB={style:{display:"inline"}},jB={style:{"margin-bottom":"32px"}},UB=["href"],KB={style:{"text-align":"center"}},qB={class:"buymecoffee_onboard_stepper"};function YB(e,t,n,o,s,i){const a=_e("MediaButton"),r=$o,l=_e("Stripe"),u=_e("Share"),c=Le,d=_e("InfoFilled"),f=Vn,h=_e("DArrowLeft"),p=xn,g=_e("DArrowRight"),m=oP,b=nP;return M(),D("div",null,[k("div",IB,[k("div",$B,[k("div",null,[s.active==1?(M(),D("div",FB,[k("div",BB,[s.template.advanced.image?(M(),D("img",{key:0,width:"120",height:"120",src:s.template.advanced.image},null,8,DB)):(M(),D("img",{key:1,width:"120",height:"120",src:i.fullPath("profile.png")},null,8,NB)),P(a,{class:"quick_media",onOnMediaSelected:i.onMediaSelected},null,8,["onOnMediaSelected"]),t[3]||(t[3]=le()),t[4]||(t[4]=k("br",null,null,-1))]),k("div",zB,[t[5]||(t[5]=k("label",null,"Collect donation for",-1)),P(r,{class:"input_green_border",size:"large",modelValue:s.template.yourName,"onUpdate:modelValue":t[0]||(t[0]=w=>s.template.yourName=w)},null,8,["modelValue"])])])):s.active==2?(M(),D("div",VB,[P(l,{ref:"stripeRef",onSave_settings:e.saveSettings},null,8,["onSave_settings"])])):s.active==3?(M(),D("div",HB,[t[14]||(t[14]=k("h1",{style:{"margin-bottom":"32px"}}," Congratulations \u{1F389} Everything done! ",-1)),k("div",null,[k("div",WB,[k("h3",jB,[P(c,null,{default:L(()=>[P(u)]),_:1}),t[6]||(t[6]=le(" Share your page ")),k("a",{target:"_blank",href:s.previewUrl},ee(s.previewUrl),9,UB),t[7]||(t[7]=k("br",null,null,-1))])]),P(c,null,{default:L(()=>[P(d)]),_:1}),t[11]||(t[11]=le(' You can build your own page using block editor "BuyMeCoffee" or use available shortcodes ')),t[12]||(t[12]=k("br",null,null,-1)),t[13]||(t[13]=k("br",null,null,-1)),P(f,{effect:"light",content:"Click to copy shortcode",title:"Click to copy shortcode","show-after":1e3,placement:"right"},{default:L(()=>t[8]||(t[8]=[k("p",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_basic]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_basic] ")],-1)])),_:1}),P(f,{effect:"light","show-after":1e3,content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"right"},{default:L(()=>t[9]||(t[9]=[k("p",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_form]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_form] ")],-1)])),_:1}),P(f,{effect:"light","show-after":1e3,content:"Click to copy shortcode",title:"Click to copy shortcode",placement:"right"},{default:L(()=>t[10]||(t[10]=[k("p",{class:"copy","data-clipboard-action":"copy","data-clipboard-text":"[buymecoffee_button]"},[k("i",{class:"el-icon-document"}),le(" [buymecoffee_button] ")],-1)])),_:1})])])):q("",!0)]),k("div",KB,[P(p,{disabled:s.active<2,onClick:i.prev},{default:L(()=>[P(c,null,{default:L(()=>[P(h)]),_:1}),t[15]||(t[15]=le(" \xA0 Prev "))]),_:1},8,["disabled","onClick"]),s.active<3?(M(),G(p,{key:0,disabled:s.active>2,onClick:i.next},{default:L(()=>[t[16]||(t[16]=le("Next \xA0 ")),P(c,null,{default:L(()=>[P(g)]),_:1})]),_:1},8,["disabled","onClick"])):q("",!0),s.active==3?(M(),G(p,{key:1,type:"success",plain:"",onClick:t[1]||(t[1]=w=>i.gotoPage())},{default:L(()=>t[17]||(t[17]=[le("View Page")])),_:1})):q("",!0)])]),k("div",qB,[t[19]||(t[19]=k("h3",null,"Quick setup",-1)),P(b,{direction:"vertical","finish-status":"success",style:{"margin-top":"23px"},active:s.active},{default:L(()=>[P(m,{title:"Profile"}),P(m,{title:"Payment"}),P(m,{title:"Done"})]),_:1},8,["active"]),P(p,{class:"el-button el-button--text",style:{"margin-top":"12px"},onClick:t[2]||(t[2]=w=>e.$router.push("/"))},{default:L(()=>t[18]||(t[18]=[le("Skip Setup for later")])),_:1})])])])}const GB=Kt(LB,[["render",YB],["__scopeId","data-v-6a24bf64"]]),XB={name:"Supporters",data(){return{current:0,total:0,search:"",searchStatus:"all",loading:!1,posts_per_page:10,supporters:[],filters:[{label:"All",value:"all"},{label:"Paid",value:"paid"},{label:"Pending",value:"pending"},{label:"Cancelled",value:"cancelled"},{label:"Refunded",value:"refunded"},{label:"Failed",value:"failed"}]}},components:{SupportersTable:xm},methods:{getSupporters(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_supporters",data:{search:this.search,filter_status:this.searchStatus,limit:this.limit,page:this.current,posts_per_page:this.posts_per_page},statusReportData:{},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var t,n,o;this.supporters=(t=e==null?void 0:e.data)==null?void 0:t.supporters,this.total=(n=e==null?void 0:e.data)==null?void 0:n.total,this.reportData=(o=e==null?void 0:e.data)==null?void 0:o.reports,this.fetching=!1}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.fetching=!1})},statusReport(){this.loading=!0,this.$get({action:"buymecoffee_admin_ajax",route:"status_report",buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{this.statusReportData=e.data}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}},mounted(){this.getSupporters(),this.statusReport()}},JB={class:"buymecoffee_main_container"},QB={class:"buymecoffee_supporters input_fade_border"},ZB={class:"h-20 mt-5 flex flex-wrap gap-2.5 justify-around buymecoffee_supporters_stat_row"},eD={"element-loading-text":"counting...",class:"buymecoffee_supporters_stat buymecoffee_status_paid"},tD={class:"buymecoffee_supporters_stat_count"},nD={"element-loading-text":"counting...",class:"buymecoffee_supporters_stat buymecoffee_status_pending"},oD={class:"buymecoffee_supporters_stat_count"},sD={"element-loading-text":"counting...",class:"buymecoffee_supporters_stat buymecoffee_status_failed"},iD={class:"buymecoffee_supporters_stat_count"},aD={"element-loading-text":"counting...",class:"buymecoffee_supporters_stat buymecoffee_status_refunded"},rD={class:"buymecoffee_supporters_stat_count"},lD={class:"pt-4 pb-4 flex align-left gap-2.5 float-end"};function uD(e,t,n,o,s,i){var h,p,g,m,b;const a=Cr,r=oa,l=Mr,u=Er,c=$o,d=_e("SupportersTable"),f=co("loading");return M(),D("div",JB,[k("div",QB,[P(r,null,{default:L(()=>[P(a,{span:12},{default:L(()=>t[5]||(t[5]=[k("h1",{class:"buymecoffee_menu_title"},"Supporters",-1)])),_:1}),P(a,{span:12})]),_:1}),k("div",ZB,[$e((M(),D("div",eD,[k("div",null,[k("p",tD,ee((h=e.statusReportData)==null?void 0:h.total_paid)+" / "+ee((p=e.statusReportData)==null?void 0:p.total)+" of Total",1),t[6]||(t[6]=k("p",{class:"buymecoffee_supporters_stat_status"},"Paid Transactions ",-1))])])),[[f,s.loading]]),$e((M(),D("div",nD,[k("div",null,[k("p",oD,ee((g=e.statusReportData)==null?void 0:g.total_pending),1),t[7]||(t[7]=k("p",{class:"buymecoffee_supporters_stat_status"},"Pending Transactions",-1))])])),[[f,s.loading]]),$e((M(),D("div",sD,[k("div",null,[k("p",iD,ee((m=e.statusReportData)==null?void 0:m.total_failed),1),t[8]||(t[8]=k("p",{class:"buymecoffee_supporters_stat_status"},"Failed Transactions",-1))])])),[[f,s.loading]]),$e((M(),D("div",aD,[k("div",null,[k("p",rD,ee((b=e.statusReportData)==null?void 0:b.total_refunded),1),t[9]||(t[9]=k("p",{class:"buymecoffee_supporters_stat_status"},"Refunded Transactions",-1))])])),[[f,s.loading]])]),k("div",lD,[k("div",null,[P(u,{modelValue:s.searchStatus,"onUpdate:modelValue":t[0]||(t[0]=w=>s.searchStatus=w),id:"filter",style:{width:"120px"},onChange:i.getSupporters},{default:L(()=>[(M(!0),D(Qe,null,Bt(s.filters,w=>(M(),G(l,{key:w.value,value:w.value},{default:L(()=>[le(ee(w.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange"])]),k("div",null,[P(c,{modelValue:s.search,"onUpdate:modelValue":t[1]||(t[1]=w=>s.search=w),style:{width:"240px"},placeholder:"Search",onChange:i.getSupporters,onKeyup:zt(i.getSupporters,["enter"])},null,8,["modelValue","onChange","onKeyup"])])]),P(d,{fetching:e.fetching,onPageChanged:t[2]||(t[2]=w=>{s.current=w,i.getSupporters()}),onSizeChanged:t[3]||(t[3]=w=>{s.posts_per_page=w,i.getSupporters()}),onFetchSupporters:t[4]||(t[4]=()=>i.getSupporters()),supporters:s.supporters,posts_per_page:s.posts_per_page,current:s.current,total:s.total},null,8,["fetching","supporters","posts_per_page","current","total"])])])}const cD=Kt(XB,[["render",uD],["__scopeId","data-v-fc274a66"]]),dD={name:"Emails",data(){return{tableData:[{name:"John Brown",trigger_on:"on_submit",address:"New York No. 1 Lake Park"},{name:"Jim Green",trigger_on:"on_submit",address:"London No. 1 Lake Park"},{name:"Joe Black",trigger_on:"on_payment_paid",address:"Sydney No. 1 Lake Park"},{name:"Jon Snow",trigger_on:"on_payment_paid",address:"Ottawa No. 1 Lake Park"}]}},methods:{handleEdit(e,t){console.log(e,t)},handleDelete(e,t){this.tableData.splice(e,1)}}},fD={class:"buymecoffee_email"};function hD(e,t,n,o,s,i){const a=Cr,r=oa,l=oc,u=Yg,c=NT,d=xn,f=nc;return M(),D("div",fD,[P(r,null,{default:L(()=>[P(a,{span:12},{default:L(()=>t[0]||(t[0]=[k("h1",{class:"buymecoffee_menu_title"},null,-1)])),_:1}),P(a,{span:12})]),_:1}),P(r,null,{default:L(()=>[P(f,{data:s.tableData,style:{width:"100%"}},{default:L(()=>[P(l,{prop:"name",label:"Name",width:"180"}),P(l,{prop:"trigger_on",label:"Trigger On",width:"180"},{default:L(h=>[P(c,{effect:"light",trigger:"hover",placement:"top",width:"auto"},{default:L(()=>[k("div",null,"Event: "+ee(h.row.trigger_on),1),k("div",null,ee(h.row.trigger_on==="on_submit"?"This will trigger before the payment.":"Trigger only the payment paid!"),1)]),reference:L(()=>[P(u,null,{default:L(()=>[le(ee(h.row.trigger_on),1)]),_:2},1024)]),_:2},1024)]),_:1}),P(l,{label:"Operations"},{default:L(h=>[P(d,{size:"small",onClick:p=>i.handleEdit(h.$index,h.row)},{default:L(()=>t[1]||(t[1]=[le(" Edit ")])),_:2},1032,["onClick"]),P(d,{size:"small",type:"danger",onClick:p=>i.handleDelete(h.$index,h.row)},{default:L(()=>t[2]||(t[2]=[le(" Delete ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1})])}const xv=Kt(dD,[["render",hD]]),pD={name:"Webhook"};function gD(e,t,n,o,s,i){return" webhook "}const Cv=Kt(pD,[["render",gD]]),mD={name:"Notifications",data(){return{current:0,total:0,posts_per_page:10,notifications:[]}},components:{Webhook:Cv,Emails:xv},methods:{getNotifications(){this.fetching=!0,this.$get({action:"buymecoffee_admin_ajax",route:"get_notifications",data:{limit:this.limit,page:this.current,posts_per_page:this.posts_per_page},buymecoffee_nonce:window.BuyMeCoffeeAdmin.buymecoffee_nonce}).then(e=>{var t,n,o;this.notifications=(t=e==null?void 0:e.data)==null?void 0:t.notifications,this.total=(n=e==null?void 0:e.data)==null?void 0:n.total,this.reportData=(o=e==null?void 0:e.data)==null?void 0:o.reports,this.fetching=!1}).fail(e=>{var t,n;this.$message.error((n=(t=e==null?void 0:e.responseJSON)==null?void 0:t.data)==null?void 0:n.message)}).always(()=>{this.fetching=!1})}},mounted(){this.getNotifications()}},vD={class:"buymecoffee_main_container"},bD={class:"buymecoffee_notifications"};function yD(e,t,n,o,s,i){const a=Cr,r=oa,l=_e("router-view"),u=_e("Emails"),c=ic,d=_e("Webhook"),f=sc;return M(),D("div",vD,[k("div",bD,[P(r,null,{default:L(()=>[P(a,{span:12},{default:L(()=>t[0]||(t[0]=[k("h1",{class:"buymecoffee_menu_title"},"Notifications",-1)])),_:1}),P(a,{span:12})]),_:1}),P(f,{"tab-position":"top",style:{height:"200px"}},{default:L(()=>[t[1]||(t[1]=le(" hello ")),P(l),t[2]||(t[2]=le(" end ")),P(c,{label:"Emails"},{default:L(()=>[P(u)]),_:1}),P(c,{label:"Webhook"},{default:L(()=>[P(d)]),_:1})]),_:1})])])}const _D=Kt(mD,[["render",yD],["__scopeId","data-v-038f7422"]]),wD=[{path:"/",name:"Dashboard",component:K$,meta:{active:"dashboard"}},{path:"/supporters",name:"Supporters",component:cD,meta:{active:"supporters"}},{path:"/settings",name:"Settings",component:hF},{path:"/supporter/:id",name:"Supporter",component:RB},{path:"/notifications",name:"Notifications",component:_D,exact:!0,children:[{path:"/email",name:"Emails",component:xv,exact:!0},{path:"/webhook",name:"Webhook",component:Cv,exact:!0}]},{path:"/gateway",name:"Gateway",component:WF,exact:!0,children:[{path:"/paypal",name:"paypal",component:EF,exact:!0},{path:"/stripe",name:"stripe",component:Sv,exact:!0}]},{path:"/quick-setup",name:"Onboarding",component:GB,exact:!0}];/*!
     56  * vue-router v4.4.5
     57  * (c) 2024 Eduardo San Martin Morote
    6458  * @license MIT
    65   */const ys=typeof window<"u";function TB(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const je=Object.assign;function ol(e,t){const n={};for(const o in t){const s=t[o];n[o]=Sn(s)?s.map(e):e(s)}return n}const ki=()=>{},Sn=Array.isArray,OB=/\/$/,AB=e=>e.replace(OB,"");function sl(e,t,n="/"){let o,s={},i="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(o=o||t.slice(0,a),r=t.slice(a,t.length)),o=IB(o!=null?o:t,n),{fullPath:o+(i&&"?")+i+r,path:o,query:s,hash:r}}function RB(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function LB(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&Bs(t.matched[o],n.matched[s])&&sv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Bs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!$B(e[n],t[n]))return!1;return!0}function $B(e,t){return Sn(e)?mh(e,t):Sn(t)?mh(t,e):e===t}function mh(e,t){return Sn(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function IB(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let i=n.length-1,r,a;for(r=0;r<o.length;r++)if(a=o[r],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}var Ui;(function(e){e.pop="pop",e.push="push"})(Ui||(Ui={}));var Ei;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ei||(Ei={}));function FB(e){if(!e)if(ys){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),AB(e)}const DB=/^[^#]+#/;function BB(e,t){return e.replace(DB,"#")+t}function NB(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Oa=()=>({left:window.pageXOffset,top:window.pageYOffset});function zB(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=NB(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function vh(e,t){return(history.state?history.state.position-t:-1)+e}const tc=new Map;function VB(e,t){tc.set(e,t)}function HB(e){const t=tc.get(e);return tc.delete(e),t}let WB=()=>location.protocol+"//"+location.host;function iv(e,t){const{pathname:n,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),gh(l,"")}return gh(n,e)+o+s}function jB(e,t,n,o){let s=[],i=[],r=null;const a=({state:f})=>{const p=iv(e,location),g=n.value,h=t.value;let v=0;if(f){if(n.value=p,t.value=f,r&&r===g){r=null;return}v=h?f.position-h.position:0}else o(p);s.forEach(m=>{m(n.value,g,{delta:v,type:Ui.pop,direction:v?v>0?Ei.forward:Ei.back:Ei.unknown})})};function l(){r=n.value}function c(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return i.push(p),p}function u(){const{history:f}=window;!f.state||f.replaceState(je({},f.state,{scroll:Oa()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function bh(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?Oa():null}}function UB(e){const{history:t,location:n}=window,o={value:iv(e,n)},s={value:t.state};s.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:WB()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function r(l,c){const u=je({},t.state,bh(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),o.value=l}function a(l,c){const u=je({},s.value,t.state,{forward:l,scroll:Oa()});i(u.current,u,!0);const d=je({},bh(o.value,l,null),{position:u.position+1},c);i(l,d,!1),o.value=l}return{location:o,state:s,push:a,replace:r}}function KB(e){e=FB(e);const t=UB(e),n=jB(e,t.state,t.location,t.replace);function o(i,r=!0){r||n.pauseListeners(),history.go(i)}const s=je({location:"",base:e,go:o,createHref:BB.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function qB(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),KB(e)}function YB(e){return typeof e=="string"||e&&typeof e=="object"}function rv(e){return typeof e=="string"||typeof e=="symbol"}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},av=Symbol("");var yh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(yh||(yh={}));function Ns(e,t){return je(new Error,{type:e,[av]:!0},t)}function Kn(e,t){return e instanceof Error&&av in e&&(t==null||!!(e.type&t))}const _h="[^/]+?",GB={sensitive:!1,strict:!1,start:!0,end:!0},XB=/[.+*?^${}()[\]/\\]/g;function QB(e,t){const n=je({},GB,t),o=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(s+="/"),s+=f.value.replace(XB,"\\$&"),p+=40;else if(f.type===1){const{value:g,repeatable:h,optional:v,regexp:m}=f;i.push({name:g,repeatable:h,optional:v});const y=m||_h;if(y!==_h){p+=10;try{new RegExp(`(${y})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${g}" (${y}): `+_.message)}}let w=h?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;d||(w=v&&c.length<2?`(?:/${w})`:"/"+w),v&&(w+="?"),s+=w,p+=20,v&&(p+=-8),h&&(p+=-20),y===".*"&&(p+=-50)}u.push(p)}o.push(u)}if(n.strict&&n.end){const c=o.length-1;o[c][o[c].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const r=new RegExp(s,n.sensitive?"":"i");function a(c){const u=c.match(r),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",g=i[f-1];d[g.name]=p&&g.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:g,repeatable:h,optional:v}=p,m=g in c?c[g]:"";if(Sn(m)&&!h)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const y=Sn(m)?m.join("/"):m;if(!y)if(v)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);u+=y}}return u||"/"}return{re:r,score:o,keys:i,parse:a,stringify:l}}function JB(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function ZB(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const i=JB(o[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-o.length)===1){if(wh(o))return 1;if(wh(s))return-1}return s.length-o.length}function wh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const eN={type:0,value:""},tN=/[a-zA-Z0-9_]/;function nN(e){if(!e)return[[]];if(e==="/")return[[eN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,o=n;const s=[];let i;function r(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function d(){!c||(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(c&&d(),r()):l===":"?(d(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:tN.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),s}function oN(e,t,n){const o=QB(nN(e.path),n),s=je(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function sN(e,t){const n=[],o=new Map;t=Ch({strict:!1,end:!0,sensitive:!1},t);function s(u){return o.get(u)}function i(u,d,f){const p=!f,g=iN(u);g.aliasOf=f&&f.record;const h=Ch(t,u),v=[g];if("alias"in u){const w=typeof u.alias=="string"?[u.alias]:u.alias;for(const _ of w)v.push(je({},g,{components:f?f.record.components:g.components,path:_,aliasOf:f?f.record:g}))}let m,y;for(const w of v){const{path:_}=w;if(d&&_[0]!=="/"){const x=d.record.path,S=x[x.length-1]==="/"?"":"/";w.path=d.record.path+(_&&S+_)}if(m=oN(w,d,h),f?f.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),p&&u.name&&!Sh(m)&&r(u.name)),g.children){const x=g.children;for(let S=0;S<x.length;S++)i(x[S],m,f&&f.children[S])}f=f||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{r(y)}:ki}function r(u){if(rv(u)){const d=o.get(u);d&&(o.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(r),d.alias.forEach(r))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&o.delete(u.record.name),u.children.forEach(r),u.alias.forEach(r))}}function a(){return n}function l(u){let d=0;for(;d<n.length&&ZB(u,n[d])>=0&&(u.record.path!==n[d].record.path||!lv(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Sh(u)&&o.set(u.record.name,u)}function c(u,d){let f,p={},g,h;if("name"in u&&u.name){if(f=o.get(u.name),!f)throw Ns(1,{location:u});h=f.record.name,p=je(xh(d.params,f.keys.filter(y=>!y.optional).map(y=>y.name)),u.params&&xh(u.params,f.keys.map(y=>y.name))),g=f.stringify(p)}else if("path"in u)g=u.path,f=n.find(y=>y.re.test(g)),f&&(p=f.parse(g),h=f.record.name);else{if(f=d.name?o.get(d.name):n.find(y=>y.re.test(d.path)),!f)throw Ns(1,{location:u,currentLocation:d});h=f.record.name,p=je({},d.params,u.params),g=f.stringify(p)}const v=[];let m=f;for(;m;)v.unshift(m.record),m=m.parent;return{name:h,path:g,params:p,matched:v,meta:aN(v)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:r,getRoutes:a,getRecordMatcher:s}}function xh(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function iN(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:rN(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function rN(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Sh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function aN(e){return e.reduce((t,n)=>je(t,n.meta),{})}function Ch(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function lv(e,t){return t.children.some(n=>n===e||lv(e,n))}const cv=/#/g,lN=/&/g,cN=/\//g,uN=/=/g,dN=/\?/g,uv=/\+/g,fN=/%5B/g,hN=/%5D/g,dv=/%5E/g,pN=/%60/g,fv=/%7B/g,gN=/%7C/g,hv=/%7D/g,mN=/%20/g;function hu(e){return encodeURI(""+e).replace(gN,"|").replace(fN,"[").replace(hN,"]")}function vN(e){return hu(e).replace(fv,"{").replace(hv,"}").replace(dv,"^")}function nc(e){return hu(e).replace(uv,"%2B").replace(mN,"+").replace(cv,"%23").replace(lN,"%26").replace(pN,"`").replace(fv,"{").replace(hv,"}").replace(dv,"^")}function bN(e){return nc(e).replace(uN,"%3D")}function yN(e){return hu(e).replace(cv,"%23").replace(dN,"%3F")}function _N(e){return e==null?"":yN(e).replace(cN,"%2F")}function pa(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function wN(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const i=o[s].replace(uv," "),r=i.indexOf("="),a=pa(r<0?i:i.slice(0,r)),l=r<0?null:pa(i.slice(r+1));if(a in t){let c=t[a];Sn(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function kh(e){let t="";for(let n in e){const o=e[n];if(n=bN(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(Sn(o)?o.map(i=>i&&nc(i)):[o&&nc(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function xN(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Sn(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const SN=Symbol(""),Eh=Symbol(""),pu=Symbol(""),pv=Symbol(""),oc=Symbol("");function ii(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function vo(e,t,n,o,s){const i=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((r,a)=>{const l=d=>{d===!1?a(Ns(4,{from:n,to:t})):d instanceof Error?a(d):YB(d)?a(Ns(2,{from:t,to:d})):(i&&o.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),r())},c=e.call(o&&o.instances[s],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(d=>a(d))})}function il(e,t,n,o){const s=[];for(const i of e)for(const r in i.components){let a=i.components[r];if(!(t!=="beforeRouteEnter"&&!i.instances[r]))if(CN(a)){const c=(a.__vccOpts||a)[t];c&&s.push(vo(c,n,o,i,r))}else{let l=a();s.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${i.path}"`));const u=TB(c)?c.default:c;i.components[r]=u;const f=(u.__vccOpts||u)[t];return f&&vo(f,n,o,i,r)()}))}}return s}function CN(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mh(e){const t=we(pu),n=we(pv),o=P(()=>t.resolve(b(e.to))),s=P(()=>{const{matched:l}=o.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Bs.bind(null,u));if(f>-1)return f;const p=Ph(l[c-2]);return c>1&&Ph(u)===p&&d[d.length-1].path!==p?d.findIndex(Bs.bind(null,l[c-2])):f}),i=P(()=>s.value>-1&&PN(n.params,o.value.params)),r=P(()=>s.value>-1&&s.value===n.matched.length-1&&sv(n.params,o.value.params));function a(l={}){return MN(l)?t[b(e.replace)?"replace":"push"](b(e.to)).catch(ki):Promise.resolve()}return{route:o,href:P(()=>o.value.href),isActive:i,isExactActive:r,navigate:a}}const kN=Y({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Mh,setup(e,{slots:t}){const n=Ht(Mh(e)),{options:o}=we(pu),s=P(()=>({[Th(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Th(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ce("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),EN=kN;function MN(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function PN(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!Sn(s)||s.length!==o.length||o.some((i,r)=>i!==s[r]))return!1}return!0}function Ph(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Th=(e,t,n)=>e!=null?e:t!=null?t:n,TN=Y({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=we(oc),s=P(()=>e.route||o.value),i=we(Eh,0),r=P(()=>{let c=b(i);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=P(()=>s.value.matched[r.value]);rt(Eh,P(()=>r.value+1)),rt(SN,a),rt(oc,s);const l=A();return se(()=>[l.value,a.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Bs(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return Oh(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=Ce(f,je({},g,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Oh(n.default,{Component:v,route:c})||v}}});function Oh(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ON=TN;function AN(e){const t=sN(e.routes,e),n=e.parseQuery||wN,o=e.stringifyQuery||kh,s=e.history,i=ii(),r=ii(),a=ii(),l=bn(ho);let c=ho;ys&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ol.bind(null,O=>""+O),d=ol.bind(null,_N),f=ol.bind(null,pa);function p(O,H){let U,te;return rv(O)?(U=t.getRecordMatcher(O),te=H):te=O,t.addRoute(te,U)}function g(O){const H=t.getRecordMatcher(O);H&&t.removeRoute(H)}function h(){return t.getRoutes().map(O=>O.record)}function v(O){return!!t.getRecordMatcher(O)}function m(O,H){if(H=je({},H||l.value),typeof O=="string"){const _e=sl(n,O,H.path),Ve=t.resolve({path:_e.path},H),gt=s.createHref(_e.fullPath);return je(_e,Ve,{params:f(Ve.params),hash:pa(_e.hash),redirectedFrom:void 0,href:gt})}let U;if("path"in O)U=je({},O,{path:sl(n,O.path,H.path).path});else{const _e=je({},O.params);for(const Ve in _e)_e[Ve]==null&&delete _e[Ve];U=je({},O,{params:d(_e)}),H.params=d(H.params)}const te=t.resolve(U,H),ge=O.hash||"";te.params=u(f(te.params));const Le=RB(o,je({},O,{hash:vN(ge),path:te.path})),Ee=s.createHref(Le);return je({fullPath:Le,hash:ge,query:o===kh?xN(O.query):O.query||{}},te,{redirectedFrom:void 0,href:Ee})}function y(O){return typeof O=="string"?sl(n,O,l.value.path):je({},O)}function w(O,H){if(c!==O)return Ns(8,{from:H,to:O})}function _(O){return C(O)}function x(O){return _(je(y(O),{replace:!0}))}function S(O){const H=O.matched[O.matched.length-1];if(H&&H.redirect){const{redirect:U}=H;let te=typeof U=="function"?U(O):U;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=y(te):{path:te},te.params={}),je({query:O.query,hash:O.hash,params:"path"in te?{}:O.params},te)}}function C(O,H){const U=c=m(O),te=l.value,ge=O.state,Le=O.force,Ee=O.replace===!0,_e=S(U);if(_e)return C(je(y(_e),{state:typeof _e=="object"?je({},ge,_e.state):ge,force:Le,replace:Ee}),H||U);const Ve=U;Ve.redirectedFrom=H;let gt;return!Le&&LB(o,te,U)&&(gt=Ns(16,{to:Ve,from:te}),de(te,te,!0,!1)),(gt?Promise.resolve(gt):B(Ve,te)).catch(Ye=>Kn(Ye)?Kn(Ye,2)?Ye:Z(Ye):le(Ye,Ve,te)).then(Ye=>{if(Ye){if(Kn(Ye,2))return C(je({replace:Ee},y(Ye.to),{state:typeof Ye.to=="object"?je({},ge,Ye.to.state):ge,force:Le}),H||Ve)}else Ye=D(Ve,te,!0,Ee,ge);return $(Ve,te,Ye),Ye})}function k(O,H){const U=w(O,H);return U?Promise.reject(U):Promise.resolve()}function T(O){const H=K.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(O):O()}function B(O,H){let U;const[te,ge,Le]=RN(O,H);U=il(te.reverse(),"beforeRouteLeave",O,H);for(const _e of te)_e.leaveGuards.forEach(Ve=>{U.push(vo(Ve,O,H))});const Ee=k.bind(null,O,H);return U.push(Ee),ie(U).then(()=>{U=[];for(const _e of i.list())U.push(vo(_e,O,H));return U.push(Ee),ie(U)}).then(()=>{U=il(ge,"beforeRouteUpdate",O,H);for(const _e of ge)_e.updateGuards.forEach(Ve=>{U.push(vo(Ve,O,H))});return U.push(Ee),ie(U)}).then(()=>{U=[];for(const _e of Le)if(_e.beforeEnter)if(Sn(_e.beforeEnter))for(const Ve of _e.beforeEnter)U.push(vo(Ve,O,H));else U.push(vo(_e.beforeEnter,O,H));return U.push(Ee),ie(U)}).then(()=>(O.matched.forEach(_e=>_e.enterCallbacks={}),U=il(Le,"beforeRouteEnter",O,H),U.push(Ee),ie(U))).then(()=>{U=[];for(const _e of r.list())U.push(vo(_e,O,H));return U.push(Ee),ie(U)}).catch(_e=>Kn(_e,8)?_e:Promise.reject(_e))}function $(O,H,U){a.list().forEach(te=>T(()=>te(O,H,U)))}function D(O,H,U,te,ge){const Le=w(O,H);if(Le)return Le;const Ee=H===ho,_e=ys?history.state:{};U&&(te||Ee?s.replace(O.fullPath,je({scroll:Ee&&_e&&_e.scroll},ge)):s.push(O.fullPath,ge)),l.value=O,de(O,H,U,Ee),Z()}let W;function ne(){W||(W=s.listen((O,H,U)=>{if(!re.listening)return;const te=m(O),ge=S(te);if(ge){C(je(ge,{replace:!0}),te).catch(ki);return}c=te;const Le=l.value;ys&&VB(vh(Le.fullPath,U.delta),Oa()),B(te,Le).catch(Ee=>Kn(Ee,12)?Ee:Kn(Ee,2)?(C(Ee.to,te).then(_e=>{Kn(_e,20)&&!U.delta&&U.type===Ui.pop&&s.go(-1,!1)}).catch(ki),Promise.reject()):(U.delta&&s.go(-U.delta,!1),le(Ee,te,Le))).then(Ee=>{Ee=Ee||D(te,Le,!1),Ee&&(U.delta&&!Kn(Ee,8)?s.go(-U.delta,!1):U.type===Ui.pop&&Kn(Ee,20)&&s.go(-1,!1)),$(te,Le,Ee)}).catch(ki)}))}let j=ii(),Q=ii(),V;function le(O,H,U){Z(O);const te=Q.list();return te.length?te.forEach(ge=>ge(O,H,U)):console.error(O),Promise.reject(O)}function I(){return V&&l.value!==ho?Promise.resolve():new Promise((O,H)=>{j.add([O,H])})}function Z(O){return V||(V=!O,ne(),j.list().forEach(([H,U])=>O?U(O):H()),j.reset()),O}function de(O,H,U,te){const{scrollBehavior:ge}=e;if(!ys||!ge)return Promise.resolve();const Le=!U&&HB(vh(O.fullPath,0))||(te||!U)&&history.state&&history.state.scroll||null;return xe().then(()=>ge(O,H,Le)).then(Ee=>Ee&&zB(Ee)).catch(Ee=>le(Ee,O,H))}const J=O=>s.go(O);let G;const K=new Set,re={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,hasRoute:v,getRoutes:h,resolve:m,options:e,push:_,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:i.add,beforeResolve:r.add,afterEach:a.add,onError:Q.add,isReady:I,install(O){const H=this;O.component("RouterLink",EN),O.component("RouterView",ON),O.config.globalProperties.$router=H,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>b(l)}),ys&&!G&&l.value===ho&&(G=!0,_(s.location).catch(ge=>{}));const U={};for(const ge in ho)Object.defineProperty(U,ge,{get:()=>l.value[ge],enumerable:!0});O.provide(pu,H),O.provide(pv,Xh(U)),O.provide(oc,l);const te=O.unmount;K.add(O),O.unmount=function(){K.delete(O),K.size<1&&(c=ho,W&&W(),W=null,l.value=ho,G=!1,V=!1),te()}}};function ie(O){return O.reduce((H,U)=>H.then(()=>T(U)),Promise.resolve())}return re}function RN(e,t){const n=[],o=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let r=0;r<i;r++){const a=t.matched[r];a&&(e.matched.find(c=>Bs(c,a))?o.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Bs(c,l))||s.push(l))}return[n,o,s]}const gv=AN({history:qB(),routes:PB}),mv=new ab;mv.app.config.globalProperties.appVars=window.BuyMeCoffeeAdmin;window.BuyMeCoffeeApp=mv.app.use(gv).mount("#buy-me-coffee_app");gv.afterEach((e,t)=>{const n=["stripe","paypal"];jQuery(".buymecoffee_app_menu li").removeClass("active");let o=e.meta.active;if(e.name){o=e.name.toLowerCase(),n.includes(o)&&(jQuery(".buymecoffee_gateway_item div").removeClass("active"),jQuery(".buymecoffee_gateway_item .buymecoffee_gateway_"+o).addClass("active"),o="gateway");let s=".buymecoffee_menu_"+o;jQuery(".buymecoffee_app_menu "+s).addClass("active")}});jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()});export default LN();
     59  */const ks=typeof document<"u";function kv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function SD(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&kv(e.default)}const Ye=Object.assign;function cl(e,t){const n={};for(const o in t){const s=t[o];n[o]=kn(s)?s.map(e):e(s)}return n}const Ci=()=>{},kn=Array.isArray,Ev=/#/g,xD=/&/g,CD=/\//g,kD=/=/g,ED=/\?/g,Mv=/\+/g,MD=/%5B/g,TD=/%5D/g,Tv=/%5E/g,PD=/%60/g,Pv=/%7B/g,OD=/%7C/g,Ov=/%7D/g,AD=/%20/g;function Cc(e){return encodeURI(""+e).replace(OD,"|").replace(MD,"[").replace(TD,"]")}function RD(e){return Cc(e).replace(Pv,"{").replace(Ov,"}").replace(Tv,"^")}function cu(e){return Cc(e).replace(Mv,"%2B").replace(AD,"+").replace(Ev,"%23").replace(xD,"%26").replace(PD,"`").replace(Pv,"{").replace(Ov,"}").replace(Tv,"^")}function LD(e){return cu(e).replace(kD,"%3D")}function ID(e){return Cc(e).replace(Ev,"%23").replace(ED,"%3F")}function $D(e){return e==null?"":ID(e).replace(CD,"%2F")}function qi(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const FD=/\/$/,BD=e=>e.replace(FD,"");function dl(e,t,n="/"){let o,s={},i="",a="";const r=t.indexOf("#");let l=t.indexOf("?");return r<l&&r>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,r>-1?r:t.length),s=e(i)),r>-1&&(o=o||t.slice(0,r),a=t.slice(r,t.length)),o=VD(o!=null?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:s,hash:qi(a)}}function DD(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Th(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ND(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&Ws(t.matched[o],n.matched[s])&&Av(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ws(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Av(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!zD(e[n],t[n]))return!1;return!0}function zD(e,t){return kn(e)?Ph(e,t):kn(t)?Ph(t,e):e===t}function Ph(e,t){return kn(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function VD(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let i=n.length-1,a,r;for(a=0;a<o.length;a++)if(r=o[a],r!==".")if(r==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(a).join("/")}const vo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Yi;(function(e){e.pop="pop",e.push="push"})(Yi||(Yi={}));var ki;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ki||(ki={}));function HD(e){if(!e)if(ks){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),BD(e)}const WD=/^[^#]+#/;function jD(e,t){return e.replace(WD,"#")+t}function UD(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Ir=()=>({left:window.scrollX,top:window.scrollY});function KD(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=UD(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Oh(e,t){return(history.state?history.state.position-t:-1)+e}const du=new Map;function qD(e,t){du.set(e,t)}function YD(e){const t=du.get(e);return du.delete(e),t}let GD=()=>location.protocol+"//"+location.host;function Rv(e,t){const{pathname:n,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){let r=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(r);return l[0]!=="/"&&(l="/"+l),Th(l,"")}return Th(n,e)+o+s}function XD(e,t,n,o){let s=[],i=[],a=null;const r=({state:f})=>{const h=Rv(e,location),p=n.value,g=t.value;let m=0;if(f){if(n.value=h,t.value=f,a&&a===p){a=null;return}m=g?f.position-g.position:0}else o(h);s.forEach(b=>{b(n.value,p,{delta:m,type:Yi.pop,direction:m?m>0?ki.forward:ki.back:ki.unknown})})};function l(){a=n.value}function u(f){s.push(f);const h=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return i.push(h),h}function c(){const{history:f}=window;!f.state||f.replaceState(Ye({},f.state,{scroll:Ir()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",r),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",r),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:d}}function Ah(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?Ir():null}}function JD(e){const{history:t,location:n}=window,o={value:Rv(e,n)},s={value:t.state};s.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:GD()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),s.value=u}catch(h){console.error(h),n[c?"replace":"assign"](f)}}function a(l,u){const c=Ye({},t.state,Ah(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});i(l,c,!0),o.value=l}function r(l,u){const c=Ye({},s.value,t.state,{forward:l,scroll:Ir()});i(c.current,c,!0);const d=Ye({},Ah(o.value,l,null),{position:c.position+1},u);i(l,d,!1),o.value=l}return{location:o,state:s,push:r,replace:a}}function QD(e){e=HD(e);const t=JD(e),n=XD(e,t.state,t.location,t.replace);function o(i,a=!0){a||n.pauseListeners(),history.go(i)}const s=Ye({location:"",base:e,go:o,createHref:jD.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function ZD(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),QD(e)}function eN(e){return typeof e=="string"||e&&typeof e=="object"}function Lv(e){return typeof e=="string"||typeof e=="symbol"}const Iv=Symbol("");var Rh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Rh||(Rh={}));function js(e,t){return Ye(new Error,{type:e,[Iv]:!0},t)}function Kn(e,t){return e instanceof Error&&Iv in e&&(t==null||!!(e.type&t))}const Lh="[^/]+?",tN={sensitive:!1,strict:!1,start:!0,end:!0},nN=/[.+*?^${}()[\]/\\]/g;function oN(e,t){const n=Ye({},tN,t),o=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let d=0;d<u.length;d++){const f=u[d];let h=40+(n.sensitive?.25:0);if(f.type===0)d||(s+="/"),s+=f.value.replace(nN,"\\$&"),h+=40;else if(f.type===1){const{value:p,repeatable:g,optional:m,regexp:b}=f;i.push({name:p,repeatable:g,optional:m});const w=b||Lh;if(w!==Lh){h+=10;try{new RegExp(`(${w})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${p}" (${w}): `+_.message)}}let S=g?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(S=m&&u.length<2?`(?:/${S})`:"/"+S),m&&(S+="?"),s+=S,h+=20,m&&(h+=-8),g&&(h+=-20),w===".*"&&(h+=-50)}c.push(h)}o.push(c)}if(n.strict&&n.end){const u=o.length-1;o[u][o[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const a=new RegExp(s,n.sensitive?"":"i");function r(u){const c=u.match(a),d={};if(!c)return null;for(let f=1;f<c.length;f++){const h=c[f]||"",p=i[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const h of f)if(h.type===0)c+=h.value;else if(h.type===1){const{value:p,repeatable:g,optional:m}=h,b=p in u?u[p]:"";if(kn(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const w=kn(b)?b.join("/"):b;if(!w)if(m)f.length<2&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);c+=w}}return c||"/"}return{re:a,score:o,keys:i,parse:r,stringify:l}}function sN(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function $v(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const i=sN(o[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-o.length)===1){if(Ih(o))return 1;if(Ih(s))return-1}return s.length-o.length}function Ih(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const iN={type:0,value:""},aN=/[a-zA-Z0-9_]/;function rN(e){if(!e)return[[]];if(e==="/")return[[iN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,o=n;const s=[];let i;function a(){i&&s.push(i),i=[]}let r=0,l,u="",c="";function d(){!u||(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;r<e.length;){if(l=e[r++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(u&&d(),a()):l===":"?(d(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:aN.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&r--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&r--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),a(),s}function lN(e,t,n){const o=oN(rN(e.path),n),s=Ye(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function uN(e,t){const n=[],o=new Map;t=Dh({strict:!1,end:!0,sensitive:!1},t);function s(d){return o.get(d)}function i(d,f,h){const p=!h,g=Fh(d);g.aliasOf=h&&h.record;const m=Dh(t,d),b=[g];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const y of _)b.push(Fh(Ye({},g,{components:h?h.record.components:g.components,path:y,aliasOf:h?h.record:g})))}let w,S;for(const _ of b){const{path:y}=_;if(f&&y[0]!=="/"){const x=f.record.path,C=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(y&&C+y)}if(w=lN(_,f,m),h?h.alias.push(w):(S=S||w,S!==w&&S.alias.push(w),p&&d.name&&!Bh(w)&&a(d.name)),Fv(w)&&l(w),g.children){const x=g.children;for(let C=0;C<x.length;C++)i(x[C],w,h&&h.children[C])}h=h||w}return S?()=>{a(S)}:Ci}function a(d){if(Lv(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function r(){return n}function l(d){const f=fN(d,n);n.splice(f,0,d),d.record.name&&!Bh(d)&&o.set(d.record.name,d)}function u(d,f){let h,p={},g,m;if("name"in d&&d.name){if(h=o.get(d.name),!h)throw js(1,{location:d});m=h.record.name,p=Ye($h(f.params,h.keys.filter(S=>!S.optional).concat(h.parent?h.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),d.params&&$h(d.params,h.keys.map(S=>S.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(S=>S.re.test(g)),h&&(p=h.parse(g),m=h.record.name);else{if(h=f.name?o.get(f.name):n.find(S=>S.re.test(f.path)),!h)throw js(1,{location:d,currentLocation:f});m=h.record.name,p=Ye({},f.params,d.params),g=h.stringify(p)}const b=[];let w=h;for(;w;)b.unshift(w.record),w=w.parent;return{name:m,path:g,params:p,matched:b,meta:dN(b)}}e.forEach(d=>i(d));function c(){n.length=0,o.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:r,getRecordMatcher:s}}function $h(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Fh(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cN(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function cN(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function Bh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dN(e){return e.reduce((t,n)=>Ye(t,n.meta),{})}function Dh(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function fN(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;$v(e,t[i])<0?o=i:n=i+1}const s=hN(e);return s&&(o=t.lastIndexOf(s,o-1)),o}function hN(e){let t=e;for(;t=t.parent;)if(Fv(t)&&$v(e,t)===0)return t}function Fv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function pN(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const i=o[s].replace(Mv," "),a=i.indexOf("="),r=qi(a<0?i:i.slice(0,a)),l=a<0?null:qi(i.slice(a+1));if(r in t){let u=t[r];kn(u)||(u=t[r]=[u]),u.push(l)}else t[r]=l}return t}function Nh(e){let t="";for(let n in e){const o=e[n];if(n=LD(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(kn(o)?o.map(i=>i&&cu(i)):[o&&cu(o)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function gN(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=kn(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const mN=Symbol(""),zh=Symbol(""),kc=Symbol(""),Bv=Symbol(""),fu=Symbol("");function ii(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wo(e,t,n,o,s,i=a=>a()){const a=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((r,l)=>{const u=f=>{f===!1?l(js(4,{from:n,to:t})):f instanceof Error?l(f):eN(f)?l(js(2,{from:t,to:f})):(a&&o.enterCallbacks[s]===a&&typeof f=="function"&&a.push(f),r())},c=i(()=>e.call(o&&o.instances[s],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>l(f))})}function fl(e,t,n,o,s=i=>i()){const i=[];for(const a of e)for(const r in a.components){let l=a.components[r];if(!(t!=="beforeRouteEnter"&&!a.instances[r]))if(kv(l)){const c=(l.__vccOpts||l)[t];c&&i.push(wo(c,n,o,a,r,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${r}" at "${a.path}"`);const d=SD(c)?c.default:c;a.mods[r]=c,a.components[r]=d;const h=(d.__vccOpts||d)[t];return h&&wo(h,n,o,a,r,s)()}))}}return i}function Vh(e){const t=we(kc),n=we(Bv),o=T(()=>{const l=v(e.to);return t.resolve(l)}),s=T(()=>{const{matched:l}=o.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Ws.bind(null,c));if(f>-1)return f;const h=Hh(l[u-2]);return u>1&&Hh(c)===h&&d[d.length-1].path!==h?d.findIndex(Ws.bind(null,l[u-2])):f}),i=T(()=>s.value>-1&&_N(n.params,o.value.params)),a=T(()=>s.value>-1&&s.value===n.matched.length-1&&Av(n.params,o.value.params));function r(l={}){return yN(l)?t[v(e.replace)?"replace":"push"](v(e.to)).catch(Ci):Promise.resolve()}return{route:o,href:T(()=>o.value.href),isActive:i,isExactActive:a,navigate:r}}const vN=K({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vh,setup(e,{slots:t}){const n=Ft(Vh(e)),{options:o}=we(kc),s=T(()=>({[Wh(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Wh(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),bN=vN;function yN(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _N(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!kn(s)||s.length!==o.length||o.some((i,a)=>i!==s[a]))return!1}return!0}function Hh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wh=(e,t,n)=>e!=null?e:t!=null?t:n,wN=K({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=we(fu),s=T(()=>e.route||o.value),i=we(zh,0),a=T(()=>{let u=v(i);const{matched:c}=s.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),r=T(()=>s.value.matched[a.value]);nt(zh,T(()=>a.value+1)),nt(mN,r),nt(fu,s);const l=R();return ie(()=>[l.value,r.value,e.name],([u,c,d],[f,h,p])=>{c&&(c.instances[d]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!Ws(c,h)||!f)&&(c.enterCallbacks[d]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,d=r.value,f=d&&d.components[c];if(!f)return jh(n.default,{Component:f,route:u});const h=d.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=ke(f,Ye({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[c]=null)},ref:l}));return jh(n.default,{Component:m,route:u})||m}}});function jh(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const SN=wN;function xN(e){const t=uN(e.routes,e),n=e.parseQuery||pN,o=e.stringifyQuery||Nh,s=e.history,i=ii(),a=ii(),r=ii(),l=oo(vo);let u=vo;ks&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=cl.bind(null,F=>""+F),d=cl.bind(null,$D),f=cl.bind(null,qi);function h(F,V){let B,Z;return Lv(F)?(B=t.getRecordMatcher(F),Z=V):Z=F,t.addRoute(Z,B)}function p(F){const V=t.getRecordMatcher(F);V&&t.removeRoute(V)}function g(){return t.getRoutes().map(F=>F.record)}function m(F){return!!t.getRecordMatcher(F)}function b(F,V){if(V=Ye({},V||l.value),typeof F=="string"){const xe=dl(n,F,V.path),be=t.resolve({path:xe.path},V),dt=s.createHref(xe.fullPath);return Ye(xe,be,{params:f(be.params),hash:qi(xe.hash),redirectedFrom:void 0,href:dt})}let B;if(F.path!=null)B=Ye({},F,{path:dl(n,F.path,V.path).path});else{const xe=Ye({},F.params);for(const be in xe)xe[be]==null&&delete xe[be];B=Ye({},F,{params:d(xe)}),V.params=d(V.params)}const Z=t.resolve(B,V),fe=F.hash||"";Z.params=c(f(Z.params));const Ee=DD(o,Ye({},F,{hash:RD(fe),path:Z.path})),ve=s.createHref(Ee);return Ye({fullPath:Ee,hash:fe,query:o===Nh?gN(F.query):F.query||{}},Z,{redirectedFrom:void 0,href:ve})}function w(F){return typeof F=="string"?dl(n,F,l.value.path):Ye({},F)}function S(F,V){if(u!==F)return js(8,{from:V,to:F})}function _(F){return C(F)}function y(F){return _(Ye(w(F),{replace:!0}))}function x(F){const V=F.matched[F.matched.length-1];if(V&&V.redirect){const{redirect:B}=V;let Z=typeof B=="function"?B(F):B;return typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=w(Z):{path:Z},Z.params={}),Ye({query:F.query,hash:F.hash,params:Z.path!=null?{}:F.params},Z)}}function C(F,V){const B=u=b(F),Z=l.value,fe=F.state,Ee=F.force,ve=F.replace===!0,xe=x(B);if(xe)return C(Ye(w(xe),{state:typeof xe=="object"?Ye({},fe,xe.state):fe,force:Ee,replace:ve}),V||B);const be=B;be.redirectedFrom=V;let dt;return!Ee&&ND(o,Z,B)&&(dt=js(16,{to:be,from:Z}),Se(Z,Z,!0,!1)),(dt?Promise.resolve(dt):I(be,Z)).catch(Ke=>Kn(Ke)?Kn(Ke,2)?Ke:de(Ke):U(Ke,be,Z)).then(Ke=>{if(Ke){if(Kn(Ke,2))return C(Ye({replace:ve},w(Ke.to),{state:typeof Ke.to=="object"?Ye({},fe,Ke.to.state):fe,force:Ee}),V||be)}else Ke=N(be,Z,!0,ve,fe);return $(be,Z,Ke),Ke})}function E(F,V){const B=S(F,V);return B?Promise.reject(B):Promise.resolve()}function O(F){const V=Q.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(F):F()}function I(F,V){let B;const[Z,fe,Ee]=CN(F,V);B=fl(Z.reverse(),"beforeRouteLeave",F,V);for(const xe of Z)xe.leaveGuards.forEach(be=>{B.push(wo(be,F,V))});const ve=E.bind(null,F,V);return B.push(ve),ne(B).then(()=>{B=[];for(const xe of i.list())B.push(wo(xe,F,V));return B.push(ve),ne(B)}).then(()=>{B=fl(fe,"beforeRouteUpdate",F,V);for(const xe of fe)xe.updateGuards.forEach(be=>{B.push(wo(be,F,V))});return B.push(ve),ne(B)}).then(()=>{B=[];for(const xe of Ee)if(xe.beforeEnter)if(kn(xe.beforeEnter))for(const be of xe.beforeEnter)B.push(wo(be,F,V));else B.push(wo(xe.beforeEnter,F,V));return B.push(ve),ne(B)}).then(()=>(F.matched.forEach(xe=>xe.enterCallbacks={}),B=fl(Ee,"beforeRouteEnter",F,V,O),B.push(ve),ne(B))).then(()=>{B=[];for(const xe of a.list())B.push(wo(xe,F,V));return B.push(ve),ne(B)}).catch(xe=>Kn(xe,8)?xe:Promise.reject(xe))}function $(F,V,B){r.list().forEach(Z=>O(()=>Z(F,V,B)))}function N(F,V,B,Z,fe){const Ee=S(F,V);if(Ee)return Ee;const ve=V===vo,xe=ks?history.state:{};B&&(Z||ve?s.replace(F.fullPath,Ye({scroll:ve&&xe&&xe.scroll},fe)):s.push(F.fullPath,fe)),l.value=F,Se(F,V,B,ve),de()}let j;function ae(){j||(j=s.listen((F,V,B)=>{if(!oe.listening)return;const Z=b(F),fe=x(Z);if(fe){C(Ye(fe,{replace:!0}),Z).catch(Ci);return}u=Z;const Ee=l.value;ks&&qD(Oh(Ee.fullPath,B.delta),Ir()),I(Z,Ee).catch(ve=>Kn(ve,12)?ve:Kn(ve,2)?(C(ve.to,Z).then(xe=>{Kn(xe,20)&&!B.delta&&B.type===Yi.pop&&s.go(-1,!1)}).catch(Ci),Promise.reject()):(B.delta&&s.go(-B.delta,!1),U(ve,Z,Ee))).then(ve=>{ve=ve||N(Z,Ee,!1),ve&&(B.delta&&!Kn(ve,8)?s.go(-B.delta,!1):B.type===Yi.pop&&Kn(ve,20)&&s.go(-1,!1)),$(Z,Ee,ve)}).catch(Ci)}))}let Y=ii(),z=ii(),J;function U(F,V,B){de(F);const Z=z.list();return Z.length?Z.forEach(fe=>fe(F,V,B)):console.error(F),Promise.reject(F)}function H(){return J&&l.value!==vo?Promise.resolve():new Promise((F,V)=>{Y.add([F,V])})}function de(F){return J||(J=!F,ae(),Y.list().forEach(([V,B])=>F?B(F):V()),Y.reset()),F}function Se(F,V,B,Z){const{scrollBehavior:fe}=e;if(!ks||!fe)return Promise.resolve();const Ee=!B&&YD(Oh(F.fullPath,0))||(Z||!B)&&history.state&&history.state.scroll||null;return Me().then(()=>fe(F,V,Ee)).then(ve=>ve&&KD(ve)).catch(ve=>U(ve,F,V))}const te=F=>s.go(F);let X;const Q=new Set,oe={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:g,resolve:b,options:e,push:_,replace:y,go:te,back:()=>te(-1),forward:()=>te(1),beforeEach:i.add,beforeResolve:a.add,afterEach:r.add,onError:z.add,isReady:H,install(F){const V=this;F.component("RouterLink",bN),F.component("RouterView",SN),F.config.globalProperties.$router=V,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>v(l)}),ks&&!X&&l.value===vo&&(X=!0,_(s.location).catch(fe=>{}));const B={};for(const fe in vo)Object.defineProperty(B,fe,{get:()=>l.value[fe],enumerable:!0});F.provide(kc,V),F.provide(Bv,hp(B)),F.provide(fu,l);const Z=F.unmount;Q.add(F),F.unmount=function(){Q.delete(F),Q.size<1&&(u=vo,j&&j(),j=null,l.value=vo,X=!1,J=!1),Z()}}};function ne(F){return F.reduce((V,B)=>V.then(()=>O(B)),Promise.resolve())}return oe}function CN(e,t){const n=[],o=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const r=t.matched[a];r&&(e.matched.find(u=>Ws(u,r))?o.push(r):n.push(r));const l=e.matched[a];l&&(t.matched.find(u=>Ws(u,l))||s.push(l))}return[n,o,s]}const Dv=xN({history:ZD(),routes:wD}),Nv=new Gb;Nv.app.config.globalProperties.appVars=window.BuyMeCoffeeAdmin;window.BuyMeCoffeeApp=Nv.app.use(Dv).mount("#buy-me-coffee_app");Dv.afterEach((e,t)=>{const n=["stripe","paypal"];jQuery(".buymecoffee_app_menu li").removeClass("active");let o=e.meta.active;if(e.name){o=e.name.toLowerCase(),n.includes(o)&&(jQuery(".buymecoffee_gateway_item div").removeClass("active"),jQuery(".buymecoffee_gateway_item .buymecoffee_gateway_"+o).addClass("active"),o="gateway");let s=".buymecoffee_menu_"+o;jQuery(".buymecoffee_app_menu "+s).addClass("active")}});jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()});export default kN();
  • buy-me-coffee/trunk/assets/manifest.json

    r3141609 r3200288  
    1616    ],
    1717    "css": [
    18       "assets/main.795faa66.css"
     18      "assets/main.5ed477d0.css"
    1919    ]
    2020  },
     
    5555    "file": "plugin_main_js_file.js",
    5656    "css": [
    57       "assets/plugin_main_js_file.b6284581.css"
     57      "assets/plugin_main_js_file.8005830e.css"
    5858    ]
    59   },
    60   "plugin_main_js_file.css": {
    61     "file": "assets/plugin_main_js_file.b6284581.css",
    62     "src": "plugin_main_js_file.css"
    63   },
    64   "src/scss/admin/customizer.scss": {
    65     "file": "assets/customizer.b5d8557c.css",
    66     "src": "src/scss/admin/customizer.scss",
    67     "isEntry": true
    68   },
    69   "src/scss/public/BasicTemplate.scss": {
    70     "file": "assets/BasicTemplate.5ed307c8.css",
    71     "src": "src/scss/public/BasicTemplate.scss",
    72     "isEntry": true
    7359  },
    7460  "src/scss/public/public-style.scss": {
     
    7763    "isEntry": true
    7864  },
    79   "src/scss/admin/app.scss": {
    80     "file": "assets/app.10587444.css",
    81     "src": "src/scss/admin/app.scss",
     65  "src/scss/admin/customizer.scss": {
     66    "file": "assets/customizer.cb12d4ae.css",
     67    "src": "src/scss/admin/customizer.scss",
     68    "isEntry": true
     69  },
     70  "plugin_main_js_file.css": {
     71    "file": "assets/plugin_main_js_file.8005830e.css",
     72    "src": "plugin_main_js_file.css"
     73  },
     74  "src/scss/public/BasicTemplate.scss": {
     75    "file": "assets/BasicTemplate.051ccc74.css",
     76    "src": "src/scss/public/BasicTemplate.scss",
    8277    "isEntry": true
    8378  },
    8479  "src/js/main.css": {
    85     "file": "assets/main.795faa66.css",
     80    "file": "assets/main.5ed477d0.css",
    8681    "src": "src/js/main.css"
     82  },
     83  "src/scss/admin/app.scss": {
     84    "file": "assets/app.c7f2a802.css",
     85    "src": "src/scss/admin/app.scss",
     86    "isEntry": true
    8787  }
    8888}
  • buy-me-coffee/trunk/assets/plugin_main_js_file.js

    r3044362 r3200288  
    1 function Be(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const ue={},vn=[],Ae=()=>{},Jr=()=>!1,Vf=/^on[^a-z]/,rn=e=>Vf.test(e),Wi=e=>e.startsWith("onUpdate:"),ne=Object.assign,qi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zf=Object.prototype.hasOwnProperty,te=(e,t)=>zf.call(e,t),B=Array.isArray,yn=e=>xn(e)==="[object Map]",sn=e=>xn(e)==="[object Set]",sl=e=>xn(e)==="[object Date]",jf=e=>xn(e)==="[object RegExp]",q=e=>typeof e=="function",J=e=>typeof e=="string",$t=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",Ji=e=>ie(e)&&q(e.then)&&q(e.catch),Da=Object.prototype.toString,xn=e=>Da.call(e),Uf=e=>xn(e).slice(8,-1),Va=e=>xn(e)==="[object Object]",Zi=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zt=Be(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Kf=Be("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Os=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wf=/-(\w)/g,ye=Os(e=>e.replace(Wf,(t,n)=>n?n.toUpperCase():"")),qf=/\B([A-Z])/g,xe=Os(e=>e.replace(qf,"-$1").toLowerCase()),on=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),bn=Os(e=>e?`on${on(e)}`:""),Tn=(e,t)=>!Object.is(e,t),wn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ts=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ns=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rs=e=>{const t=J(e)?Number(e):NaN;return isNaN(t)?e:t};let il;const pi=()=>il||(il=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Jf="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",Zf=Be(Jf);function Yt(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=J(r)?za(r):Yt(r);if(s)for(const i in s)t[i]=s[i]}return t}else{if(J(e))return e;if(ie(e))return e}}const Yf=/;(?![^(]*\))/g,Gf=/:([^]+)/,Qf=/\/\*[^]*?\*\//g;function za(e){const t={};return e.replace(Qf,"").split(Yf).forEach(n=>{if(n){const r=n.split(Gf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Xe(e){let t="";if(J(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Xe(e[n]);r&&(t+=r+" ")}else if(ie(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Xf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!J(t)&&(e.class=Xe(t)),n&&(e.style=Yt(n)),e}const ed="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",td="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",nd="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",rd=Be(ed),sd=Be(td),id=Be(nd),od="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ld=Be(od);function ja(e){return!!e||e===""}function ad(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ot(e[r],t[r]);return n}function Ot(e,t){if(e===t)return!0;let n=sl(e),r=sl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=$t(e),r=$t(t),n||r)return e===t;if(n=B(e),r=B(t),n||r)return n&&r?ad(e,t):!1;if(n=ie(e),r=ie(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!Ot(e[o],t[o]))return!1}}return String(e)===String(t)}function Ps(e,t){return e.findIndex(n=>Ot(n,t))}const hi=e=>J(e)?e:e==null?"":B(e)||ie(e)&&(e.toString===Da||!q(e.toString))?JSON.stringify(e,Ua,2):String(e),Ua=(e,t)=>t&&t.__v_isRef?Ua(e,t.value):yn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:sn(t)?{[`Set(${t.size})`]:[...t.values()]}:ie(t)&&!B(t)&&!Va(t)?String(t):t;let Ve;class Yi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ve,!t&&Ve&&(this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){Ve=this}off(){Ve=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function cd(e){return new Yi(e)}function Ka(e,t=Ve){t&&t.active&&t.effects.push(e)}function Gi(){return Ve}function Wa(e){Ve&&Ve.cleanups.push(e)}const Qi=e=>{const t=new Set(e);return t.w=0,t.n=0,t},qa=e=>(e.w&Pt)>0,Ja=e=>(e.n&Pt)>0,ud=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Pt},fd=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];qa(s)&&!Ja(s)?s.delete(e):t[n++]=s,s.w&=~Pt,s.n&=~Pt}t.length=n}},ss=new WeakMap;let Kn=0,Pt=1;const gi=30;let et;const jt=Symbol(""),_i=Symbol("");class br{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ka(this,r)}run(){if(!this.active)return this.fn();let t=et,n=Et;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=et,et=this,Et=!0,Pt=1<<++Kn,Kn<=gi?ud(this):ol(this),this.fn()}finally{Kn<=gi&&fd(this),Pt=1<<--Kn,et=this.parent,Et=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){et===this?this.deferStop=!0:this.active&&(ol(this),this.onStop&&this.onStop(),this.active=!1)}}function ol(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function dd(e,t){e.effect&&(e=e.effect.fn);const n=new br(e);t&&(ne(n,t),t.scope&&Ka(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function pd(e){e.effect.stop()}let Et=!0;const Za=[];function kn(){Za.push(Et),Et=!1}function Fn(){const e=Za.pop();Et=e===void 0?!0:e}function Re(e,t,n){if(Et&&et){let r=ss.get(e);r||ss.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Qi()),Ya(s)}}function Ya(e,t){let n=!1;Kn<=gi?Ja(e)||(e.n|=Pt,n=!qa(e)):n=!e.has(et),n&&(e.add(et),et.deps.push(e))}function _t(e,t,n,r,s,i){const o=ss.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&B(e)){const a=Number(r);o.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":B(e)?Zi(n)&&l.push(o.get("length")):(l.push(o.get(jt)),yn(e)&&l.push(o.get(_i)));break;case"delete":B(e)||(l.push(o.get(jt)),yn(e)&&l.push(o.get(_i)));break;case"set":yn(e)&&l.push(o.get(jt));break}if(l.length===1)l[0]&&mi(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);mi(Qi(a))}}function mi(e,t){const n=B(e)?e:[...e];for(const r of n)r.computed&&ll(r);for(const r of n)r.computed||ll(r)}function ll(e,t){(e!==et||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function hd(e,t){var n;return(n=ss.get(e))==null?void 0:n.get(t)}const gd=Be("__proto__,__v_isRef,__isVue"),Ga=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($t)),_d=As(),md=As(!1,!0),vd=As(!0),yd=As(!0,!0),al=bd();function bd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=re(this);for(let i=0,o=this.length;i<o;i++)Re(r,"get",i+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(re)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){kn();const r=re(this)[t].apply(this,n);return Fn(),r}}),e}function wd(e){const t=re(this);return Re(t,"has",e),t.hasOwnProperty(e)}function As(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?sc:rc:t?nc:tc).get(r))return r;const o=B(r);if(!e){if(o&&te(al,s))return Reflect.get(al,s,i);if(s==="hasOwnProperty")return wd}const l=Reflect.get(r,s,i);return($t(s)?Ga.has(s):gd(s))||(e||Re(r,"get",s),t)?l:ve(l)?o&&Zi(s)?l:l.value:ie(l)?e?Cr(l):wr(l):l}}const Cd=Qa(),Ed=Qa(!0);function Qa(e=!1){return function(n,r,s,i){let o=n[r];if(Gt(o)&&ve(o)&&!ve(s))return!1;if(!e&&(!tr(s)&&!Gt(s)&&(o=re(o),s=re(s)),!B(n)&&ve(o)&&!ve(s)))return o.value=s,!0;const l=B(n)&&Zi(r)?Number(r)<n.length:te(n,r),a=Reflect.set(n,r,s,i);return n===re(i)&&(l?Tn(s,o)&&_t(n,"set",r,s):_t(n,"add",r,s)),a}}function Td(e,t){const n=te(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&_t(e,"delete",t,void 0),r}function Sd(e,t){const n=Reflect.has(e,t);return(!$t(t)||!Ga.has(t))&&Re(e,"has",t),n}function $d(e){return Re(e,"iterate",B(e)?"length":jt),Reflect.ownKeys(e)}const Xa={get:_d,set:Cd,deleteProperty:Td,has:Sd,ownKeys:$d},ec={get:vd,set(e,t){return!0},deleteProperty(e,t){return!0}},Od=ne({},Xa,{get:md,set:Ed}),Pd=ne({},ec,{get:yd}),Xi=e=>e,Is=e=>Reflect.getPrototypeOf(e);function Mr(e,t,n=!1,r=!1){e=e.__v_raw;const s=re(e),i=re(t);n||(t!==i&&Re(s,"get",t),Re(s,"get",i));const{has:o}=Is(s),l=r?Xi:n?no:nr;if(o.call(s,t))return l(e.get(t));if(o.call(s,i))return l(e.get(i));e!==s&&e.get(t)}function Lr(e,t=!1){const n=this.__v_raw,r=re(n),s=re(e);return t||(e!==s&&Re(r,"has",e),Re(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function xr(e,t=!1){return e=e.__v_raw,!t&&Re(re(e),"iterate",jt),Reflect.get(e,"size",e)}function cl(e){e=re(e);const t=re(this);return Is(t).has.call(t,e)||(t.add(e),_t(t,"add",e,e)),this}function ul(e,t){t=re(t);const n=re(this),{has:r,get:s}=Is(n);let i=r.call(n,e);i||(e=re(e),i=r.call(n,e));const o=s.call(n,e);return n.set(e,t),i?Tn(t,o)&&_t(n,"set",e,t):_t(n,"add",e,t),this}function fl(e){const t=re(this),{has:n,get:r}=Is(t);let s=n.call(t,e);s||(e=re(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&_t(t,"delete",e,void 0),i}function dl(){const e=re(this),t=e.size!==0,n=e.clear();return t&&_t(e,"clear",void 0,void 0),n}function kr(e,t){return function(r,s){const i=this,o=i.__v_raw,l=re(o),a=t?Xi:e?no:nr;return!e&&Re(l,"iterate",jt),o.forEach((c,u)=>r.call(s,a(c),a(u),i))}}function Fr(e,t,n){return function(...r){const s=this.__v_raw,i=re(s),o=yn(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=s[e](...r),u=n?Xi:t?no:nr;return!t&&Re(i,"iterate",a?_i:jt),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function vt(e){return function(...t){return e==="delete"?!1:this}}function Ad(){const e={get(i){return Mr(this,i)},get size(){return xr(this)},has:Lr,add:cl,set:ul,delete:fl,clear:dl,forEach:kr(!1,!1)},t={get(i){return Mr(this,i,!1,!0)},get size(){return xr(this)},has:Lr,add:cl,set:ul,delete:fl,clear:dl,forEach:kr(!1,!0)},n={get(i){return Mr(this,i,!0)},get size(){return xr(this,!0)},has(i){return Lr.call(this,i,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:kr(!0,!1)},r={get(i){return Mr(this,i,!0,!0)},get size(){return xr(this,!0)},has(i){return Lr.call(this,i,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:kr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Fr(i,!1,!1),n[i]=Fr(i,!0,!1),t[i]=Fr(i,!1,!0),r[i]=Fr(i,!0,!0)}),[e,n,t,r]}const[Id,Nd,Md,Ld]=Ad();function Ns(e,t){const n=t?e?Ld:Md:e?Nd:Id;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(te(n,s)&&s in r?n:r,s,i)}const xd={get:Ns(!1,!1)},kd={get:Ns(!1,!0)},Fd={get:Ns(!0,!1)},Rd={get:Ns(!0,!0)},tc=new WeakMap,nc=new WeakMap,rc=new WeakMap,sc=new WeakMap;function Bd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hd(e){return e.__v_skip||!Object.isExtensible(e)?0:Bd(Uf(e))}function wr(e){return Gt(e)?e:Ms(e,!1,Xa,xd,tc)}function ic(e){return Ms(e,!1,Od,kd,nc)}function Cr(e){return Ms(e,!0,ec,Fd,rc)}function Dd(e){return Ms(e,!0,Pd,Rd,sc)}function Ms(e,t,n,r,s){if(!ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Hd(e);if(o===0)return e;const l=new Proxy(e,o===2?r:n);return s.set(e,l),l}function Ut(e){return Gt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function tr(e){return!!(e&&e.__v_isShallow)}function eo(e){return Ut(e)||Gt(e)}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function to(e){return ts(e,"__v_skip",!0),e}const nr=e=>ie(e)?wr(e):e,no=e=>ie(e)?Cr(e):e;function ro(e){Et&&et&&(e=re(e),Ya(e.dep||(e.dep=Qi())))}function Ls(e,t){e=re(e);const n=e.dep;n&&mi(n)}function ve(e){return!!(e&&e.__v_isRef===!0)}function me(e){return lc(e,!1)}function oc(e){return lc(e,!0)}function lc(e,t){return ve(e)?e:new Vd(e,t)}class Vd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:re(t),this._value=n?t:nr(t)}get value(){return ro(this),this._value}set value(t){const n=this.__v_isShallow||tr(t)||Gt(t);t=n?t:re(t),Tn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nr(t),Ls(this))}}function zd(e){Ls(e)}function ae(e){return ve(e)?e.value:e}function jd(e){return q(e)?e():ae(e)}const Ud={get:(e,t,n)=>ae(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function so(e){return Ut(e)?e:new Proxy(e,Ud)}class Kd{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ro(this),()=>Ls(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Wd(e){return new Kd(e)}function ac(e){const t=B(e)?new Array(e.length):{};for(const n in e)t[n]=cc(e,n);return t}class qd{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return hd(re(this._object),this._key)}}class Jd{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Zd(e,t,n){return ve(e)?e:q(e)?new Jd(e):ie(e)&&arguments.length>1?cc(e,t,n):me(e)}function cc(e,t,n){const r=e[t];return ve(r)?r:new qd(e,t,n)}class Yd{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new br(t,()=>{this._dirty||(this._dirty=!0,Ls(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=re(this);return ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Gd(e,t,n=!1){let r,s;const i=q(e);return i?(r=e,s=Ae):(r=e.get,s=e.set),new Yd(r,s,i||!s,n)}function uc(e,...t){}function Qd(e,t){}function gt(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){ln(i,t,n)}return s}function je(e,t,n,r){if(q(e)){const i=gt(e,t,n,r);return i&&Ji(i)&&i.catch(o=>{ln(o,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(je(e[i],t,n,r));return s}function ln(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,o,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){gt(a,null,10,[e,o,l]);return}}Xd(e,n,s,r)}function Xd(e,t,n,r=!0){console.error(e)}let rr=!1,vi=!1;const Oe=[];let lt=0;const Cn=[];let pt=null,Ft=0;const fc=Promise.resolve();let io=null;function Rn(e){const t=io||fc;return e?t.then(this?e.bind(this):e):t}function ep(e){let t=lt+1,n=Oe.length;for(;t<n;){const r=t+n>>>1;sr(Oe[r])<e?t=r+1:n=r}return t}function xs(e){(!Oe.length||!Oe.includes(e,rr&&e.allowRecurse?lt+1:lt))&&(e.id==null?Oe.push(e):Oe.splice(ep(e.id),0,e),dc())}function dc(){!rr&&!vi&&(vi=!0,io=fc.then(pc))}function tp(e){const t=Oe.indexOf(e);t>lt&&Oe.splice(t,1)}function oo(e){B(e)?Cn.push(...e):(!pt||!pt.includes(e,e.allowRecurse?Ft+1:Ft))&&Cn.push(e),dc()}function pl(e,t=rr?lt+1:0){for(;t<Oe.length;t++){const n=Oe[t];n&&n.pre&&(Oe.splice(t,1),t--,n())}}function is(e){if(Cn.length){const t=[...new Set(Cn)];if(Cn.length=0,pt){pt.push(...t);return}for(pt=t,pt.sort((n,r)=>sr(n)-sr(r)),Ft=0;Ft<pt.length;Ft++)pt[Ft]();pt=null,Ft=0}}const sr=e=>e.id==null?1/0:e.id,np=(e,t)=>{const n=sr(e)-sr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pc(e){vi=!1,rr=!0,Oe.sort(np);const t=Ae;try{for(lt=0;lt<Oe.length;lt++){const n=Oe[lt];n&&n.active!==!1&&gt(n,null,14)}}finally{lt=0,Oe.length=0,is(),rr=!1,io=null,(Oe.length||Cn.length)&&pc()}}let gn,Rr=[];function hc(e,t){var n,r;gn=e,gn?(gn.enabled=!0,Rr.forEach(({event:s,args:i})=>gn.emit(s,...i)),Rr=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{hc(i,t)}),setTimeout(()=>{gn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Rr=[])},3e3)):Rr=[]}function rp(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let s=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in r){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[u]||ue;d&&(s=n.map(h=>J(h)?h.trim():h)),f&&(s=n.map(ns))}let l,a=r[l=bn(t)]||r[l=bn(ye(t))];!a&&i&&(a=r[l=bn(xe(t))]),a&&je(a,e,6,s);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,je(c,e,6,s)}}function gc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},l=!1;if(!q(e)){const a=c=>{const u=gc(c,t,!0);u&&(l=!0,ne(o,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ie(e)&&r.set(e,null),null):(B(i)?i.forEach(a=>o[a]=null):ne(o,i),ie(e)&&r.set(e,o),o)}function ks(e,t){return!e||!rn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,xe(t))||te(e,t))}let Se=null,Fs=null;function ir(e){const t=Se;return Se=e,Fs=e&&e.type.__scopeId||null,t}function sp(e){Fs=e}function ip(){Fs=null}const op=e=>Kt;function Kt(e,t=Se,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Si(-1);const i=ir(t);let o;try{o=e(...s)}finally{ir(i),r._d&&Si(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Zr(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[o],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:y}=e;let E,m;const _=ir(e);try{if(n.shapeFlag&4){const b=s||r;E=ze(u.call(b,b,f,i,h,d,v)),m=a}else{const b=t;E=ze(b.length>1?b(i,{attrs:a,slots:l,emit:c}):b(i,null)),m=t.props?a:ap(a)}}catch(b){Yn.length=0,ln(b,e,1),E=de(Ie)}let C=E;if(m&&y!==!1){const b=Object.keys(m),{shapeFlag:S}=C;b.length&&S&7&&(o&&b.some(Wi)&&(m=cp(m,o)),C=ut(C,m))}return n.dirs&&(C=ut(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),E=C,ir(_),E}function lp(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(rt(r)){if(r.type!==Ie||r.children==="v-if"){if(t)return;t=r}}else return}return t}const ap=e=>{let t;for(const n in e)(n==="class"||n==="style"||rn(n))&&((t||(t={}))[n]=e[n]);return t},cp=(e,t)=>{const n={};for(const r in e)(!Wi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function up(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?hl(r,o,c):!!o;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(o[d]!==r[d]&&!ks(c,d))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?hl(r,o,c):!0:!!o;return!1}function hl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!ks(n,i))return!0}return!1}function lo({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const _c=e=>e.__isSuspense,fp={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,l,a,c){e==null?pp(t,n,r,s,i,o,l,a,c):hp(e,t,n,r,s,o,l,a,c)},hydrate:gp,create:ao,normalize:_p},dp=fp;function or(e,t){const n=e.props&&e.props[t];q(n)&&n()}function pp(e,t,n,r,s,i,o,l,a){const{p:c,o:{createElement:u}}=a,f=u("div"),d=e.suspense=ao(e,s,r,t,f,n,i,o,l,a);c(null,d.pendingBranch=e.ssContent,f,null,r,d,i,o),d.deps>0?(or(e,"onPending"),or(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,o),En(d,e.ssFallback)):d.resolve(!1,!0)}function hp(e,t,n,r,s,i,o,l,{p:a,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:y,isInFallback:E,isHydrating:m}=f;if(y)f.pendingBranch=d,tt(d,y)?(a(y,d,f.hiddenContainer,null,s,f,i,o,l),f.deps<=0?f.resolve():E&&(a(v,h,n,r,s,null,i,o,l),En(f,h))):(f.pendingId++,m?(f.isHydrating=!1,f.activeBranch=y):c(y,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),E?(a(null,d,f.hiddenContainer,null,s,f,i,o,l),f.deps<=0?f.resolve():(a(v,h,n,r,s,null,i,o,l),En(f,h))):v&&tt(d,v)?(a(v,d,n,r,s,f,i,o,l),f.resolve(!0)):(a(null,d,f.hiddenContainer,null,s,f,i,o,l),f.deps<=0&&f.resolve()));else if(v&&tt(d,v))a(v,d,n,r,s,f,i,o,l),En(f,d);else if(or(t,"onPending"),f.pendingBranch=d,f.pendingId++,a(null,d,f.hiddenContainer,null,s,f,i,o,l),f.deps<=0)f.resolve();else{const{timeout:_,pendingId:C}=f;_>0?setTimeout(()=>{f.pendingId===C&&f.fallback(h)},_):_===0&&f.fallback(h)}}function ao(e,t,n,r,s,i,o,l,a,c,u=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:y,remove:E}}=c;let m;const _=mp(e);_&&t!=null&&t.pendingBranch&&(m=t.pendingId,t.deps++);const C=e.props?rs(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:n,isSVG:o,container:r,hiddenContainer:s,anchor:i,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,V=!1){const{vnode:A,activeBranch:w,pendingBranch:N,pendingId:L,effects:M,parentComponent:I,container:H}=b;if(b.isHydrating)b.isHydrating=!1;else if(!S){const X=w&&N.transition&&N.transition.mode==="out-in";X&&(w.transition.afterLeave=()=>{L===b.pendingId&&d(N,H,le,0)});let{anchor:le}=b;w&&(le=v(w),h(w,I,b,!0)),X||d(N,H,le,0)}En(b,N),b.pendingBranch=null,b.isInFallback=!1;let F=b.parent,se=!1;for(;F;){if(F.pendingBranch){F.effects.push(...M),se=!0;break}F=F.parent}se||oo(M),b.effects=[],_&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!V&&t.resolve()),or(A,"onResolve")},fallback(S){if(!b.pendingBranch)return;const{vnode:V,activeBranch:A,parentComponent:w,container:N,isSVG:L}=b;or(V,"onFallback");const M=v(A),I=()=>{!b.isInFallback||(f(null,S,N,M,w,null,L,l,a),En(b,S))},H=S.transition&&S.transition.mode==="out-in";H&&(A.transition.afterLeave=I),b.isInFallback=!0,h(A,w,null,!0),H||I()},move(S,V,A){b.activeBranch&&d(b.activeBranch,S,V,A),b.container=S},next(){return b.activeBranch&&v(b.activeBranch)},registerDep(S,V){const A=!!b.pendingBranch;A&&b.deps++;const w=S.vnode.el;S.asyncDep.catch(N=>{ln(N,S,0)}).then(N=>{if(S.isUnmounted||b.isUnmounted||b.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:L}=S;$i(S,N,!1),w&&(L.el=w);const M=!w&&S.subTree.el;V(S,L,y(w||S.subTree.el),w?null:v(S.subTree),b,o,a),M&&E(M),lo(S,L.el),A&&--b.deps===0&&b.resolve()})},unmount(S,V){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,S,V),b.pendingBranch&&h(b.pendingBranch,n,S,V)}};return b}function gp(e,t,n,r,s,i,o,l,a){const c=t.suspense=ao(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,l,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function _p(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=gl(r?n.default:n),e.ssFallback=r?gl(n.fallback):de(Ie)}function gl(e){let t;if(q(e)){const n=en&&e._c;n&&(e._d=!1,W()),e=e(),n&&(e._d=!0,t=ke,qc())}return B(e)&&(e=lp(e)),e=ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function mc(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):oo(e)}function En(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,s=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=s,lo(r,s))}function mp(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function vc(e,t){return Er(e,null,t)}function yc(e,t){return Er(e,null,{flush:"post"})}function vp(e,t){return Er(e,null,{flush:"sync"})}const Br={};function at(e,t,n){return Er(e,t,n)}function Er(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:o}=ue){var l;const a=Gi()===((l=Ce)==null?void 0:l.scope)?Ce:null;let c,u=!1,f=!1;if(ve(e)?(c=()=>e.value,u=tr(e)):Ut(e)?(c=()=>e,r=!0):B(e)?(f=!0,u=e.some(b=>Ut(b)||tr(b)),c=()=>e.map(b=>{if(ve(b))return b.value;if(Ut(b))return Ht(b);if(q(b))return gt(b,a,2)})):q(e)?t?c=()=>gt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),je(e,a,3,[h])}:c=Ae,t&&r){const b=c;c=()=>Ht(b())}let d,h=b=>{d=_.onStop=()=>{gt(b,a,4)}},v;if($n)if(h=Ae,t?n&&je(t,a,3,[c(),f?[]:void 0,h]):c(),s==="sync"){const b=su();v=b.__watcherHandles||(b.__watcherHandles=[])}else return Ae;let y=f?new Array(e.length).fill(Br):Br;const E=()=>{if(!!_.active)if(t){const b=_.run();(r||u||(f?b.some((S,V)=>Tn(S,y[V])):Tn(b,y)))&&(d&&d(),je(t,a,3,[b,y===Br?void 0:f&&y[0]===Br?[]:y,h]),y=b)}else _.run()};E.allowRecurse=!!t;let m;s==="sync"?m=E:s==="post"?m=()=>$e(E,a&&a.suspense):(E.pre=!0,a&&(E.id=a.uid),m=()=>xs(E));const _=new br(c,m);t?n?E():y=_.run():s==="post"?$e(_.run.bind(_),a&&a.suspense):_.run();const C=()=>{_.stop(),a&&a.scope&&qi(a.scope.effects,_)};return v&&v.push(C),C}function yp(e,t,n){const r=this.proxy,s=J(e)?e.includes(".")?bc(r,e):()=>r[e]:e.bind(r,r);let i;q(t)?i=t:(i=t.handler,n=t);const o=Ce;At(this);const l=Er(s,i.bind(r),n);return o?At(o):Tt(),l}function bc(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Ht(e,t){if(!ie(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ve(e))Ht(e.value,t);else if(B(e))for(let n=0;n<e.length;n++)Ht(e[n],t);else if(sn(e)||yn(e))e.forEach(n=>{Ht(n,t)});else if(Va(e))for(const n in e)Ht(e[n],t);return e}function os(e,t){const n=Se;if(n===null)return e;const r=js(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,l,a,c=ue]=t[i];o&&(q(o)&&(o={mounted:o,updated:o}),o.deep&&Ht(l),s.push({dir:o,instance:r,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function ot(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const l=s[o];i&&(l.oldValue=i[o].value);let a=l.dir[r];a&&(kn(),je(a,n,8,[e.el,l,e,t]),Fn())}}function co(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return an(()=>{e.isMounted=!0}),Ds(()=>{e.isUnmounting=!0}),e}const We=[Function,Array],uo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:We,onEnter:We,onAfterEnter:We,onEnterCancelled:We,onBeforeLeave:We,onLeave:We,onAfterLeave:We,onLeaveCancelled:We,onBeforeAppear:We,onAppear:We,onAfterAppear:We,onAppearCancelled:We},bp={name:"BaseTransition",props:uo,setup(e,{slots:t}){const n=He(),r=co();let s;return()=>{const i=t.default&&Rs(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const y of i)if(y.type!==Ie){o=y;break}}const l=re(e),{mode:a}=l;if(r.isLeaving)return ti(o);const c=_l(o);if(!c)return ti(o);const u=Sn(c,l,r,n);Qt(c,u);const f=n.subTree,d=f&&_l(f);let h=!1;const{getTransitionKey:v}=c.type;if(v){const y=v();s===void 0?s=y:y!==s&&(s=y,h=!0)}if(d&&d.type!==Ie&&(!tt(c,d)||h)){const y=Sn(d,l,r,n);if(Qt(d,y),a==="out-in")return r.isLeaving=!0,y.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},ti(o);a==="in-out"&&c.type!==Ie&&(y.delayLeave=(E,m,_)=>{const C=Cc(r,d);C[String(d.key)]=d,E._leaveCb=()=>{m(),E._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},wc=bp;function Cc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Sn(e,t,n,r){const{appear:s,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:y,onAppear:E,onAfterAppear:m,onAppearCancelled:_}=t,C=String(e.key),b=Cc(n,e),S=(w,N)=>{w&&je(w,r,9,N)},V=(w,N)=>{const L=N[1];S(w,N),B(w)?w.every(M=>M.length<=1)&&L():w.length<=1&&L()},A={mode:i,persisted:o,beforeEnter(w){let N=l;if(!n.isMounted)if(s)N=y||l;else return;w._leaveCb&&w._leaveCb(!0);const L=b[C];L&&tt(e,L)&&L.el._leaveCb&&L.el._leaveCb(),S(N,[w])},enter(w){let N=a,L=c,M=u;if(!n.isMounted)if(s)N=E||a,L=m||c,M=_||u;else return;let I=!1;const H=w._enterCb=F=>{I||(I=!0,F?S(M,[w]):S(L,[w]),A.delayedLeave&&A.delayedLeave(),w._enterCb=void 0)};N?V(N,[w,H]):H()},leave(w,N){const L=String(e.key);if(w._enterCb&&w._enterCb(!0),n.isUnmounting)return N();S(f,[w]);let M=!1;const I=w._leaveCb=H=>{M||(M=!0,N(),H?S(v,[w]):S(h,[w]),w._leaveCb=void 0,b[L]===e&&delete b[L])};b[L]=e,d?V(d,[w,I]):I()},clone(w){return Sn(w,t,n,r)}};return A}function ti(e){if(Tr(e))return e=ut(e),e.children=null,e}function _l(e){return Tr(e)?e.children?e.children[0]:void 0:e}function Qt(e,t){e.shapeFlag&6&&e.component?Qt(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Rs(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Te?(o.patchFlag&128&&s++,r=r.concat(Rs(o.children,t,l))):(t||o.type!==Ie)&&r.push(l!=null?ut(o,{key:l}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Nt(e,t){return q(e)?(()=>ne({name:e.name},t,{setup:e}))():e}const Wt=e=>!!e.type.__asyncLoader;function wp(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:i,suspensible:o=!0,onError:l}=e;let a=null,c,u=0;const f=()=>(u++,a=null,d()),d=()=>{let h;return a||(h=a=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((y,E)=>{l(v,()=>y(f()),()=>E(v),u+1)});throw v}).then(v=>h!==a&&a?a:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),c=v,v)))};return Nt({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const h=Ce;if(c)return()=>ni(c,h);const v=_=>{a=null,ln(_,h,13,!r)};if(o&&h.suspense||$n)return d().then(_=>()=>ni(_,h)).catch(_=>(v(_),()=>r?de(r,{error:_}):null));const y=me(!1),E=me(),m=me(!!s);return s&&setTimeout(()=>{m.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!E.value){const _=new Error(`Async component timed out after ${i}ms.`);v(_),E.value=_}},i),d().then(()=>{y.value=!0,h.parent&&Tr(h.parent.vnode)&&xs(h.parent.update)}).catch(_=>{v(_),E.value=_}),()=>{if(y.value&&c)return ni(c,h);if(E.value&&r)return de(r,{error:E.value});if(n&&!m.value)return de(n)}}})}function ni(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=de(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Tr=e=>e.type.__isKeepAlive,Cp={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=He(),r=n.ctx;if(!r.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const s=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(_,C,b,S,V)=>{const A=_.component;c(_,C,b,0,l),a(A.vnode,_,C,b,A,l,S,_.slotScopeIds,V),$e(()=>{A.isDeactivated=!1,A.a&&wn(A.a);const w=_.props&&_.props.onVnodeMounted;w&&Le(w,A.parent,_)},l)},r.deactivate=_=>{const C=_.component;c(_,d,null,1,l),$e(()=>{C.da&&wn(C.da);const b=_.props&&_.props.onVnodeUnmounted;b&&Le(b,C.parent,_),C.isDeactivated=!0},l)};function h(_){ri(_),u(_,n,l,!0)}function v(_){s.forEach((C,b)=>{const S=Pi(C.type);S&&(!_||!_(S))&&y(b)})}function y(_){const C=s.get(_);!o||!tt(C,o)?h(C):o&&ri(o),s.delete(_),i.delete(_)}at(()=>[e.include,e.exclude],([_,C])=>{_&&v(b=>Wn(_,b)),C&&v(b=>!Wn(C,b))},{flush:"post",deep:!0});let E=null;const m=()=>{E!=null&&s.set(E,si(n.subTree))};return an(m),Hs(m),Ds(()=>{s.forEach(_=>{const{subTree:C,suspense:b}=n,S=si(C);if(_.type===S.type&&_.key===S.key){ri(S);const V=S.component.da;V&&$e(V,b);return}h(_)})}),()=>{if(E=null,!t.default)return null;const _=t.default(),C=_[0];if(_.length>1)return o=null,_;if(!rt(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return o=null,C;let b=si(C);const S=b.type,V=Pi(Wt(b)?b.type.__asyncResolved||{}:S),{include:A,exclude:w,max:N}=e;if(A&&(!V||!Wn(A,V))||w&&V&&Wn(w,V))return o=b,C;const L=b.key==null?S:b.key,M=s.get(L);return b.el&&(b=ut(b),C.shapeFlag&128&&(C.ssContent=b)),E=L,M?(b.el=M.el,b.component=M.component,b.transition&&Qt(b,b.transition),b.shapeFlag|=512,i.delete(L),i.add(L)):(i.add(L),N&&i.size>parseInt(N,10)&&y(i.values().next().value)),b.shapeFlag|=256,o=b,_c(C.type)?C:b}}},Ep=Cp;function Wn(e,t){return B(e)?e.some(n=>Wn(n,t)):J(e)?e.split(",").includes(t):jf(e)?e.test(t):!1}function Ec(e,t){Sc(e,"a",t)}function Tc(e,t){Sc(e,"da",t)}function Sc(e,t,n=Ce){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Bs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Tr(s.parent.vnode)&&Tp(r,t,n,s),s=s.parent}}function Tp(e,t,n,r){const s=Bs(t,e,r,!0);Vs(()=>{qi(r[t],s)},n)}function ri(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function si(e){return e.shapeFlag&128?e.ssContent:e}function Bs(e,t,n=Ce,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;kn(),At(n);const l=je(t,n,e,o);return Tt(),Fn(),l});return r?s.unshift(i):s.push(i),i}}const mt=e=>(t,n=Ce)=>(!$n||e==="sp")&&Bs(e,(...r)=>t(...r),n),$c=mt("bm"),an=mt("m"),Oc=mt("bu"),Hs=mt("u"),Ds=mt("bum"),Vs=mt("um"),Pc=mt("sp"),Ac=mt("rtg"),Ic=mt("rtc");function Nc(e,t=Ce){Bs("ec",e,t)}const fo="components",Sp="directives";function $p(e,t){return po(fo,e,!0,t)||e}const Mc=Symbol.for("v-ndc");function Lc(e){return J(e)?po(fo,e,!1)||e:e||Mc}function Op(e){return po(Sp,e)}function po(e,t,n=!0,r=!1){const s=Se||Ce;if(s){const i=s.type;if(e===fo){const l=Pi(i,!1);if(l&&(l===t||l===ye(t)||l===on(ye(t))))return i}const o=ml(s[e]||i[e],t)||ml(s.appContext[e],t);return!o&&r?i:o}}function ml(e,t){return e&&(e[t]||e[ye(t)]||e[on(ye(t))])}function Pp(e,t,n,r){let s;const i=n&&n[r];if(B(e)||J(e)){s=new Array(e.length);for(let o=0,l=e.length;o<l;o++)s[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i&&i[o])}else if(ie(e))if(e[Symbol.iterator])s=Array.from(e,(o,l)=>t(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);s=new Array(o.length);for(let l=0,a=o.length;l<a;l++){const c=o[l];s[l]=t(e[c],c,l,i&&i[l])}}else s=[];return n&&(n[r]=s),s}function Ap(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(B(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function ho(e,t,n={},r,s){if(Se.isCE||Se.parent&&Wt(Se.parent)&&Se.parent.isCE)return t!=="default"&&(n.name=t),de("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),W();const o=i&&xc(i(n)),l=Dt(Te,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function xc(e){return e.some(t=>rt(t)?!(t.type===Ie||t.type===Te&&!xc(t.children)):!0)?e:null}function Ip(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:bn(r)]=e[r];return n}const yi=e=>e?Qc(e)?js(e)||e.proxy:yi(e.parent):null,Jn=ne(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>yi(e.parent),$root:e=>yi(e.root),$emit:e=>e.emit,$options:e=>go(e),$forceUpdate:e=>e.f||(e.f=()=>xs(e.update)),$nextTick:e=>e.n||(e.n=Rn.bind(e.proxy)),$watch:e=>yp.bind(e)}),ii=(e,t)=>e!==ue&&!e.__isScriptSetup&&te(e,t),bi={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ii(r,t))return o[t]=1,r[t];if(s!==ue&&te(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&te(c,t))return o[t]=3,i[t];if(n!==ue&&te(n,t))return o[t]=4,n[t];wi&&(o[t]=0)}}const u=Jn[t];let f,d;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ue&&te(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,te(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ii(s,t)?(s[t]=n,!0):r!==ue&&te(r,t)?(r[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let l;return!!n[o]||e!==ue&&te(e,o)||ii(t,o)||(l=i[0])&&te(l,o)||te(r,o)||te(Jn,o)||te(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Np=ne({},bi,{get(e,t){if(t!==Symbol.unscopables)return bi.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Zf(t)}});function Mp(){return null}function Lp(){return null}function xp(e){}function kp(e){}function Fp(){return null}function Rp(){}function Bp(e,t){return null}function Hp(){return kc().slots}function Dp(){return kc().attrs}function Vp(e,t,n){const r=He();if(n&&n.local){const s=me(e[t]);return at(()=>e[t],i=>s.value=i),at(s,i=>{i!==e[t]&&r.emit(`update:${t}`,i)}),s}else return{__v_isRef:!0,get value(){return e[t]},set value(s){r.emit(`update:${t}`,s)}}}function kc(){const e=He();return e.setupContext||(e.setupContext=nu(e))}function lr(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function zp(e,t){const n=lr(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?B(s)||q(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function jp(e,t){return!e||!t?e||t:B(e)&&B(t)?e.concat(t):ne({},lr(e),lr(t))}function Up(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Kp(e){const t=He();let n=e();return Tt(),Ji(n)&&(n=n.catch(r=>{throw At(t),r})),[n,()=>At(t)]}let wi=!0;function Wp(e){const t=go(e),n=e.proxy,r=e.ctx;wi=!1,t.beforeCreate&&vl(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:y,deactivated:E,beforeDestroy:m,beforeUnmount:_,destroyed:C,unmounted:b,render:S,renderTracked:V,renderTriggered:A,errorCaptured:w,serverPrefetch:N,expose:L,inheritAttrs:M,components:I,directives:H,filters:F}=t;if(c&&qp(c,r,null),o)for(const le in o){const oe=o[le];q(oe)&&(r[le]=oe.bind(n))}if(s){const le=s.call(n,n);ie(le)&&(e.data=wr(le))}if(wi=!0,i)for(const le in i){const oe=i[le],Ge=q(oe)?oe.bind(n,n):q(oe.get)?oe.get.bind(n,n):Ae,Ir=!q(oe)&&q(oe.set)?oe.set.bind(n):Ae,Mt=he({get:Ge,set:Ir});Object.defineProperty(r,le,{enumerable:!0,configurable:!0,get:()=>Mt.value,set:st=>Mt.value=st})}if(l)for(const le in l)Fc(l[le],r,n,le);if(a){const le=q(a)?a.call(n):a;Reflect.ownKeys(le).forEach(oe=>{_o(oe,le[oe])})}u&&vl(u,e,"c");function X(le,oe){B(oe)?oe.forEach(Ge=>le(Ge.bind(n))):oe&&le(oe.bind(n))}if(X($c,f),X(an,d),X(Oc,h),X(Hs,v),X(Ec,y),X(Tc,E),X(Nc,w),X(Ic,V),X(Ac,A),X(Ds,_),X(Vs,b),X(Pc,N),B(L))if(L.length){const le=e.exposed||(e.exposed={});L.forEach(oe=>{Object.defineProperty(le,oe,{get:()=>n[oe],set:Ge=>n[oe]=Ge})})}else e.exposed||(e.exposed={});S&&e.render===Ae&&(e.render=S),M!=null&&(e.inheritAttrs=M),I&&(e.components=I),H&&(e.directives=H)}function qp(e,t,n=Ae){B(e)&&(e=Ci(e));for(const r in e){const s=e[r];let i;ie(s)?"default"in s?i=ct(s.from||r,s.default,!0):i=ct(s.from||r):i=ct(s),ve(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function vl(e,t,n){je(B(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fc(e,t,n,r){const s=r.includes(".")?bc(n,r):()=>n[r];if(J(e)){const i=t[e];q(i)&&at(s,i)}else if(q(e))at(s,e.bind(n));else if(ie(e))if(B(e))e.forEach(i=>Fc(i,t,n,r));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(i)&&at(s,i,e)}}function go(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(c=>ls(a,c,o,!0)),ls(a,t,o)),ie(t)&&i.set(t,a),a}function ls(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&ls(e,i,n,!0),s&&s.forEach(o=>ls(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const l=Jp[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Jp={data:yl,props:bl,emits:bl,methods:qn,computed:qn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:qn,directives:qn,watch:Yp,provide:yl,inject:Zp};function yl(e,t){return t?e?function(){return ne(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Zp(e,t){return qn(Ci(e),Ci(t))}function Ci(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function qn(e,t){return e?ne(Object.create(null),e,t):t}function bl(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:ne(Object.create(null),lr(e),lr(t!=null?t:{})):t}function Yp(e,t){if(!e)return t;if(!t)return e;const n=ne(Object.create(null),e);for(const r in t)n[r]=Me(e[r],t[r]);return n}function Rc(){return{app:null,config:{isNativeTag:Jr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Gp=0;function Qp(e,t){return function(r,s=null){q(r)||(r=ne({},r)),s!=null&&!ie(s)&&(s=null);const i=Rc(),o=new Set;let l=!1;const a=i.app={_uid:Gp++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:ou,get config(){return i.config},set config(c){},use(c,...u){return o.has(c)||(c&&q(c.install)?(o.add(c),c.install(a,...u)):q(c)&&(o.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,f){if(!l){const d=de(r,s);return d.appContext=i,u&&t?t(d,c):e(d,c,f),l=!0,a._container=c,c.__vue_app__=a,js(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){ar=a;try{return c()}finally{ar=null}}};return a}}let ar=null;function _o(e,t){if(Ce){let n=Ce.provides;const r=Ce.parent&&Ce.parent.provides;r===n&&(n=Ce.provides=Object.create(r)),n[e]=t}}function ct(e,t,n=!1){const r=Ce||Se;if(r||ar){const s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:ar._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&q(t)?t.call(r&&r.proxy):t}}function Xp(){return!!(Ce||Se||ar)}function e0(e,t,n,r=!1){const s={},i={};ts(i,zs,1),e.propsDefaults=Object.create(null),Bc(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:ic(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function t0(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=re(s),[a]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(ks(e.emitsOptions,d))continue;const h=t[d];if(a)if(te(i,d))h!==i[d]&&(i[d]=h,c=!0);else{const v=ye(d);s[v]=Ei(a,l,v,h,e,!1)}else h!==i[d]&&(i[d]=h,c=!0)}}}else{Bc(e,t,s,i)&&(c=!0);let u;for(const f in l)(!t||!te(t,f)&&((u=xe(f))===f||!te(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=Ei(a,l,f,void 0,e,!0)):delete s[f]);if(i!==l)for(const f in i)(!t||!te(t,f)&&!0)&&(delete i[f],c=!0)}c&&_t(e,"set","$attrs")}function Bc(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(zt(a))continue;const c=t[a];let u;s&&te(s,u=ye(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:ks(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,o=!0)}if(i){const a=re(n),c=l||ue;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Ei(s,a,f,c[f],e,!te(c,f))}}return o}function Ei(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=te(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&q(a)){const{propsDefaults:c}=s;n in c?r=c[n]:(At(s),r=c[n]=a.call(null,t),Tt())}else r=a}o[0]&&(i&&!l?r=!1:o[1]&&(r===""||r===xe(n))&&(r=!0))}return r}function Hc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},l=[];let a=!1;if(!q(e)){const u=f=>{a=!0;const[d,h]=Hc(f,t,!0);ne(o,d),h&&l.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ie(e)&&r.set(e,vn),vn;if(B(i))for(let u=0;u<i.length;u++){const f=ye(i[u]);wl(f)&&(o[f]=ue)}else if(i)for(const u in i){const f=ye(u);if(wl(f)){const d=i[u],h=o[f]=B(d)||q(d)?{type:d}:ne({},d);if(h){const v=Tl(Boolean,h.type),y=Tl(String,h.type);h[0]=v>-1,h[1]=y<0||v<y,(v>-1||te(h,"default"))&&l.push(f)}}}const c=[o,l];return ie(e)&&r.set(e,c),c}function wl(e){return e[0]!=="$"}function Cl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function El(e,t){return Cl(e)===Cl(t)}function Tl(e,t){return B(t)?t.findIndex(n=>El(n,e)):q(t)&&El(t,e)?0:-1}const Dc=e=>e[0]==="_"||e==="$stable",mo=e=>B(e)?e.map(ze):[ze(e)],n0=(e,t,n)=>{if(t._n)return t;const r=Kt((...s)=>mo(t(...s)),n);return r._c=!1,r},Vc=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Dc(s))continue;const i=e[s];if(q(i))t[s]=n0(s,i,r);else if(i!=null){const o=mo(i);t[s]=()=>o}}},zc=(e,t)=>{const n=mo(t);e.slots.default=()=>n},r0=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=re(t),ts(t,"_",n)):Vc(t,e.slots={})}else e.slots={},t&&zc(e,t);ts(e.slots,zs,1)},s0=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ue;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ne(s,t),!n&&l===1&&delete s._):(i=!t.$stable,Vc(t,s)),o=t}else t&&(zc(e,t),o={default:1});if(i)for(const l in s)!Dc(l)&&!(l in o)&&delete s[l]};function as(e,t,n,r,s=!1){if(B(e)){e.forEach((d,h)=>as(d,t&&(B(t)?t[h]:t),n,r,s));return}if(Wt(r)&&!s)return;const i=r.shapeFlag&4?js(r.component)||r.component.proxy:r.el,o=s?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(J(c)?(u[c]=null,te(f,c)&&(f[c]=null)):ve(c)&&(c.value=null)),q(a))gt(a,l,12,[o,u]);else{const d=J(a),h=ve(a);if(d||h){const v=()=>{if(e.f){const y=d?te(f,a)?f[a]:u[a]:a.value;s?B(y)&&qi(y,i):B(y)?y.includes(i)||y.push(i):d?(u[a]=[i],te(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else d?(u[a]=o,te(f,a)&&(f[a]=o)):h&&(a.value=o,e.k&&(u[e.k]=o))};o?(v.id=-1,$e(v,n)):v()}}}let yt=!1;const Hr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Dr=e=>e.nodeType===8;function i0(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:l,insert:a,createComment:c}}=e,u=(m,_)=>{if(!_.hasChildNodes()){n(null,m,_),is(),_._vnode=m;return}yt=!1,f(_.firstChild,m,null,null,null),is(),_._vnode=m,yt&&console.error("Hydration completed but contains mismatches.")},f=(m,_,C,b,S,V=!1)=>{const A=Dr(m)&&m.data==="[",w=()=>y(m,_,C,b,S,A),{type:N,ref:L,shapeFlag:M,patchFlag:I}=_;let H=m.nodeType;_.el=m,I===-2&&(V=!1,_.dynamicChildren=null);let F=null;switch(N){case Xt:H!==3?_.children===""?(a(_.el=s(""),o(m),m),F=m):F=w():(m.data!==_.children&&(yt=!0,m.data=_.children),F=i(m));break;case Ie:H!==8||A?F=w():F=i(m);break;case qt:if(A&&(m=i(m),H=m.nodeType),H===1||H===3){F=m;const se=!_.children.length;for(let X=0;X<_.staticCount;X++)se&&(_.children+=F.nodeType===1?F.outerHTML:F.data),X===_.staticCount-1&&(_.anchor=F),F=i(F);return A?i(F):F}else w();break;case Te:A?F=v(m,_,C,b,S,V):F=w();break;default:if(M&1)H!==1||_.type.toLowerCase()!==m.tagName.toLowerCase()?F=w():F=d(m,_,C,b,S,V);else if(M&6){_.slotScopeIds=S;const se=o(m);if(t(_,se,null,C,b,Hr(se),V),F=A?E(m):i(m),F&&Dr(F)&&F.data==="teleport end"&&(F=i(F)),Wt(_)){let X;A?(X=de(Te),X.anchor=F?F.previousSibling:se.lastChild):X=m.nodeType===3?yo(""):de("div"),X.el=m,_.component.subTree=X}}else M&64?H!==8?F=w():F=_.type.hydrate(m,_,C,b,S,V,e,h):M&128&&(F=_.type.hydrate(m,_,C,b,Hr(o(m)),S,V,e,f))}return L!=null&&as(L,null,b,_),F},d=(m,_,C,b,S,V)=>{V=V||!!_.dynamicChildren;const{type:A,props:w,patchFlag:N,shapeFlag:L,dirs:M}=_,I=A==="input"&&M||A==="option";if(I||N!==-1){if(M&&ot(_,null,C,"created"),w)if(I||!V||N&48)for(const F in w)(I&&F.endsWith("value")||rn(F)&&!zt(F))&&r(m,F,null,w[F],!1,void 0,C);else w.onClick&&r(m,"onClick",null,w.onClick,!1,void 0,C);let H;if((H=w&&w.onVnodeBeforeMount)&&Le(H,C,_),M&&ot(_,null,C,"beforeMount"),((H=w&&w.onVnodeMounted)||M)&&mc(()=>{H&&Le(H,C,_),M&&ot(_,null,C,"mounted")},b),L&16&&!(w&&(w.innerHTML||w.textContent))){let F=h(m.firstChild,_,m,C,b,S,V);for(;F;){yt=!0;const se=F;F=F.nextSibling,l(se)}}else L&8&&m.textContent!==_.children&&(yt=!0,m.textContent=_.children)}return m.nextSibling},h=(m,_,C,b,S,V,A)=>{A=A||!!_.dynamicChildren;const w=_.children,N=w.length;for(let L=0;L<N;L++){const M=A?w[L]:w[L]=ze(w[L]);if(m)m=f(m,M,b,S,V,A);else{if(M.type===Xt&&!M.children)continue;yt=!0,n(null,M,C,null,b,S,Hr(C),V)}}return m},v=(m,_,C,b,S,V)=>{const{slotScopeIds:A}=_;A&&(S=S?S.concat(A):A);const w=o(m),N=h(i(m),_,w,C,b,S,V);return N&&Dr(N)&&N.data==="]"?i(_.anchor=N):(yt=!0,a(_.anchor=c("]"),w,N),N)},y=(m,_,C,b,S,V)=>{if(yt=!0,_.el=null,V){const N=E(m);for(;;){const L=i(m);if(L&&L!==N)l(L);else break}}const A=i(m),w=o(m);return l(m),n(null,_,w,A,C,b,Hr(w),S),A},E=m=>{let _=0;for(;m;)if(m=i(m),m&&Dr(m)&&(m.data==="["&&_++,m.data==="]")){if(_===0)return i(m);_--}return m};return[u,f]}const $e=mc;function jc(e){return Kc(e)}function Uc(e){return Kc(e,i0)}function Kc(e,t){const n=pi();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Ae,insertStaticContent:v}=e,y=(p,g,T,O=null,$=null,k=null,D=!1,x=null,R=!!g.dynamicChildren)=>{if(p===g)return;p&&!tt(p,g)&&(O=Nr(p),st(p,$,k,!0),p=null),g.patchFlag===-2&&(R=!1,g.dynamicChildren=null);const{type:P,ref:j,shapeFlag:z}=g;switch(P){case Xt:E(p,g,T,O);break;case Ie:m(p,g,T,O);break;case qt:p==null&&_(g,T,O,D);break;case Te:I(p,g,T,O,$,k,D,x,R);break;default:z&1?S(p,g,T,O,$,k,D,x,R):z&6?H(p,g,T,O,$,k,D,x,R):(z&64||z&128)&&P.process(p,g,T,O,$,k,D,x,R,fn)}j!=null&&$&&as(j,p&&p.ref,k,g||p,!g)},E=(p,g,T,O)=>{if(p==null)r(g.el=l(g.children),T,O);else{const $=g.el=p.el;g.children!==p.children&&c($,g.children)}},m=(p,g,T,O)=>{p==null?r(g.el=a(g.children||""),T,O):g.el=p.el},_=(p,g,T,O)=>{[p.el,p.anchor]=v(p.children,g,T,O,p.el,p.anchor)},C=({el:p,anchor:g},T,O)=>{let $;for(;p&&p!==g;)$=d(p),r(p,T,O),p=$;r(g,T,O)},b=({el:p,anchor:g})=>{let T;for(;p&&p!==g;)T=d(p),s(p),p=T;s(g)},S=(p,g,T,O,$,k,D,x,R)=>{D=D||g.type==="svg",p==null?V(g,T,O,$,k,D,x,R):N(p,g,$,k,D,x,R)},V=(p,g,T,O,$,k,D,x)=>{let R,P;const{type:j,props:z,shapeFlag:U,transition:Z,dirs:ee}=p;if(R=p.el=o(p.type,k,z&&z.is,z),U&8?u(R,p.children):U&16&&w(p.children,R,null,O,$,k&&j!=="foreignObject",D,x),ee&&ot(p,null,O,"created"),A(R,p,p.scopeId,D,O),z){for(const fe in z)fe!=="value"&&!zt(fe)&&i(R,fe,null,z[fe],k,p.children,O,$,ft);"value"in z&&i(R,"value",null,z.value),(P=z.onVnodeBeforeMount)&&Le(P,O,p)}ee&&ot(p,null,O,"beforeMount");const pe=(!$||$&&!$.pendingBranch)&&Z&&!Z.persisted;pe&&Z.beforeEnter(R),r(R,g,T),((P=z&&z.onVnodeMounted)||pe||ee)&&$e(()=>{P&&Le(P,O,p),pe&&Z.enter(R),ee&&ot(p,null,O,"mounted")},$)},A=(p,g,T,O,$)=>{if(T&&h(p,T),O)for(let k=0;k<O.length;k++)h(p,O[k]);if($){let k=$.subTree;if(g===k){const D=$.vnode;A(p,D,D.scopeId,D.slotScopeIds,$.parent)}}},w=(p,g,T,O,$,k,D,x,R=0)=>{for(let P=R;P<p.length;P++){const j=p[P]=x?Ct(p[P]):ze(p[P]);y(null,j,g,T,O,$,k,D,x)}},N=(p,g,T,O,$,k,D)=>{const x=g.el=p.el;let{patchFlag:R,dynamicChildren:P,dirs:j}=g;R|=p.patchFlag&16;const z=p.props||ue,U=g.props||ue;let Z;T&&Lt(T,!1),(Z=U.onVnodeBeforeUpdate)&&Le(Z,T,g,p),j&&ot(g,p,T,"beforeUpdate"),T&&Lt(T,!0);const ee=$&&g.type!=="foreignObject";if(P?L(p.dynamicChildren,P,x,T,O,ee,k):D||oe(p,g,x,null,T,O,ee,k,!1),R>0){if(R&16)M(x,g,z,U,T,O,$);else if(R&2&&z.class!==U.class&&i(x,"class",null,U.class,$),R&4&&i(x,"style",z.style,U.style,$),R&8){const pe=g.dynamicProps;for(let fe=0;fe<pe.length;fe++){const be=pe[fe],Qe=z[be],dn=U[be];(dn!==Qe||be==="value")&&i(x,be,Qe,dn,$,p.children,T,O,ft)}}R&1&&p.children!==g.children&&u(x,g.children)}else!D&&P==null&&M(x,g,z,U,T,O,$);((Z=U.onVnodeUpdated)||j)&&$e(()=>{Z&&Le(Z,T,g,p),j&&ot(g,p,T,"updated")},O)},L=(p,g,T,O,$,k,D)=>{for(let x=0;x<g.length;x++){const R=p[x],P=g[x],j=R.el&&(R.type===Te||!tt(R,P)||R.shapeFlag&70)?f(R.el):T;y(R,P,j,null,O,$,k,D,!0)}},M=(p,g,T,O,$,k,D)=>{if(T!==O){if(T!==ue)for(const x in T)!zt(x)&&!(x in O)&&i(p,x,T[x],null,D,g.children,$,k,ft);for(const x in O){if(zt(x))continue;const R=O[x],P=T[x];R!==P&&x!=="value"&&i(p,x,P,R,D,g.children,$,k,ft)}"value"in O&&i(p,"value",T.value,O.value)}},I=(p,g,T,O,$,k,D,x,R)=>{const P=g.el=p?p.el:l(""),j=g.anchor=p?p.anchor:l("");let{patchFlag:z,dynamicChildren:U,slotScopeIds:Z}=g;Z&&(x=x?x.concat(Z):Z),p==null?(r(P,T,O),r(j,T,O),w(g.children,T,j,$,k,D,x,R)):z>0&&z&64&&U&&p.dynamicChildren?(L(p.dynamicChildren,U,T,$,k,D,x),(g.key!=null||$&&g===$.subTree)&&vo(p,g,!0)):oe(p,g,T,j,$,k,D,x,R)},H=(p,g,T,O,$,k,D,x,R)=>{g.slotScopeIds=x,p==null?g.shapeFlag&512?$.ctx.activate(g,T,O,D,R):F(g,T,O,$,k,D,R):se(p,g,R)},F=(p,g,T,O,$,k,D)=>{const x=p.component=Gc(p,O,$);if(Tr(p)&&(x.ctx.renderer=fn),Xc(x),x.asyncDep){if($&&$.registerDep(x,X),!p.el){const R=x.subTree=de(Ie);m(null,R,g,T)}return}X(x,p,g,T,$,k,D)},se=(p,g,T)=>{const O=g.component=p.component;if(up(p,g,T))if(O.asyncDep&&!O.asyncResolved){le(O,g,T);return}else O.next=g,tp(O.update),O.update();else g.el=p.el,O.vnode=g},X=(p,g,T,O,$,k,D)=>{const x=()=>{if(p.isMounted){let{next:j,bu:z,u:U,parent:Z,vnode:ee}=p,pe=j,fe;Lt(p,!1),j?(j.el=ee.el,le(p,j,D)):j=ee,z&&wn(z),(fe=j.props&&j.props.onVnodeBeforeUpdate)&&Le(fe,Z,j,ee),Lt(p,!0);const be=Zr(p),Qe=p.subTree;p.subTree=be,y(Qe,be,f(Qe.el),Nr(Qe),p,$,k),j.el=be.el,pe===null&&lo(p,be.el),U&&$e(U,$),(fe=j.props&&j.props.onVnodeUpdated)&&$e(()=>Le(fe,Z,j,ee),$)}else{let j;const{el:z,props:U}=g,{bm:Z,m:ee,parent:pe}=p,fe=Wt(g);if(Lt(p,!1),Z&&wn(Z),!fe&&(j=U&&U.onVnodeBeforeMount)&&Le(j,pe,g),Lt(p,!0),z&&ei){const be=()=>{p.subTree=Zr(p),ei(z,p.subTree,p,$,null)};fe?g.type.__asyncLoader().then(()=>!p.isUnmounted&&be()):be()}else{const be=p.subTree=Zr(p);y(null,be,T,O,p,$,k),g.el=be.el}if(ee&&$e(ee,$),!fe&&(j=U&&U.onVnodeMounted)){const be=g;$e(()=>Le(j,pe,be),$)}(g.shapeFlag&256||pe&&Wt(pe.vnode)&&pe.vnode.shapeFlag&256)&&p.a&&$e(p.a,$),p.isMounted=!0,g=T=O=null}},R=p.effect=new br(x,()=>xs(P),p.scope),P=p.update=()=>R.run();P.id=p.uid,Lt(p,!0),P()},le=(p,g,T)=>{g.component=p;const O=p.vnode.props;p.vnode=g,p.next=null,t0(p,g.props,O,T),s0(p,g.children,T),kn(),pl(),Fn()},oe=(p,g,T,O,$,k,D,x,R=!1)=>{const P=p&&p.children,j=p?p.shapeFlag:0,z=g.children,{patchFlag:U,shapeFlag:Z}=g;if(U>0){if(U&128){Ir(P,z,T,O,$,k,D,x,R);return}else if(U&256){Ge(P,z,T,O,$,k,D,x,R);return}}Z&8?(j&16&&ft(P,$,k),z!==P&&u(T,z)):j&16?Z&16?Ir(P,z,T,O,$,k,D,x,R):ft(P,$,k,!0):(j&8&&u(T,""),Z&16&&w(z,T,O,$,k,D,x,R))},Ge=(p,g,T,O,$,k,D,x,R)=>{p=p||vn,g=g||vn;const P=p.length,j=g.length,z=Math.min(P,j);let U;for(U=0;U<z;U++){const Z=g[U]=R?Ct(g[U]):ze(g[U]);y(p[U],Z,T,null,$,k,D,x,R)}P>j?ft(p,$,k,!0,!1,z):w(g,T,O,$,k,D,x,R,z)},Ir=(p,g,T,O,$,k,D,x,R)=>{let P=0;const j=g.length;let z=p.length-1,U=j-1;for(;P<=z&&P<=U;){const Z=p[P],ee=g[P]=R?Ct(g[P]):ze(g[P]);if(tt(Z,ee))y(Z,ee,T,null,$,k,D,x,R);else break;P++}for(;P<=z&&P<=U;){const Z=p[z],ee=g[U]=R?Ct(g[U]):ze(g[U]);if(tt(Z,ee))y(Z,ee,T,null,$,k,D,x,R);else break;z--,U--}if(P>z){if(P<=U){const Z=U+1,ee=Z<j?g[Z].el:O;for(;P<=U;)y(null,g[P]=R?Ct(g[P]):ze(g[P]),T,ee,$,k,D,x,R),P++}}else if(P>U)for(;P<=z;)st(p[P],$,k,!0),P++;else{const Z=P,ee=P,pe=new Map;for(P=ee;P<=U;P++){const De=g[P]=R?Ct(g[P]):ze(g[P]);De.key!=null&&pe.set(De.key,P)}let fe,be=0;const Qe=U-ee+1;let dn=!1,tl=0;const Hn=new Array(Qe);for(P=0;P<Qe;P++)Hn[P]=0;for(P=Z;P<=z;P++){const De=p[P];if(be>=Qe){st(De,$,k,!0);continue}let it;if(De.key!=null)it=pe.get(De.key);else for(fe=ee;fe<=U;fe++)if(Hn[fe-ee]===0&&tt(De,g[fe])){it=fe;break}it===void 0?st(De,$,k,!0):(Hn[it-ee]=P+1,it>=tl?tl=it:dn=!0,y(De,g[it],T,null,$,k,D,x,R),be++)}const nl=dn?o0(Hn):vn;for(fe=nl.length-1,P=Qe-1;P>=0;P--){const De=ee+P,it=g[De],rl=De+1<j?g[De+1].el:O;Hn[P]===0?y(null,it,T,rl,$,k,D,x,R):dn&&(fe<0||P!==nl[fe]?Mt(it,T,rl,2):fe--)}}},Mt=(p,g,T,O,$=null)=>{const{el:k,type:D,transition:x,children:R,shapeFlag:P}=p;if(P&6){Mt(p.component.subTree,g,T,O);return}if(P&128){p.suspense.move(g,T,O);return}if(P&64){D.move(p,g,T,fn);return}if(D===Te){r(k,g,T);for(let z=0;z<R.length;z++)Mt(R[z],g,T,O);r(p.anchor,g,T);return}if(D===qt){C(p,g,T);return}if(O!==2&&P&1&&x)if(O===0)x.beforeEnter(k),r(k,g,T),$e(()=>x.enter(k),$);else{const{leave:z,delayLeave:U,afterLeave:Z}=x,ee=()=>r(k,g,T),pe=()=>{z(k,()=>{ee(),Z&&Z()})};U?U(k,ee,pe):pe()}else r(k,g,T)},st=(p,g,T,O=!1,$=!1)=>{const{type:k,props:D,ref:x,children:R,dynamicChildren:P,shapeFlag:j,patchFlag:z,dirs:U}=p;if(x!=null&&as(x,null,T,p,!0),j&256){g.ctx.deactivate(p);return}const Z=j&1&&U,ee=!Wt(p);let pe;if(ee&&(pe=D&&D.onVnodeBeforeUnmount)&&Le(pe,g,p),j&6)Df(p.component,T,O);else{if(j&128){p.suspense.unmount(T,O);return}Z&&ot(p,null,g,"beforeUnmount"),j&64?p.type.remove(p,g,T,$,fn,O):P&&(k!==Te||z>0&&z&64)?ft(P,g,T,!1,!0):(k===Te&&z&384||!$&&j&16)&&ft(R,g,T),O&&Xo(p)}(ee&&(pe=D&&D.onVnodeUnmounted)||Z)&&$e(()=>{pe&&Le(pe,g,p),Z&&ot(p,null,g,"unmounted")},T)},Xo=p=>{const{type:g,el:T,anchor:O,transition:$}=p;if(g===Te){Hf(T,O);return}if(g===qt){b(p);return}const k=()=>{s(T),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(p.shapeFlag&1&&$&&!$.persisted){const{leave:D,delayLeave:x}=$,R=()=>D(T,k);x?x(p.el,k,R):R()}else k()},Hf=(p,g)=>{let T;for(;p!==g;)T=d(p),s(p),p=T;s(g)},Df=(p,g,T)=>{const{bum:O,scope:$,update:k,subTree:D,um:x}=p;O&&wn(O),$.stop(),k&&(k.active=!1,st(D,p,g,T)),x&&$e(x,g),$e(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},ft=(p,g,T,O=!1,$=!1,k=0)=>{for(let D=k;D<p.length;D++)st(p[D],g,T,O,$)},Nr=p=>p.shapeFlag&6?Nr(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el),el=(p,g,T)=>{p==null?g._vnode&&st(g._vnode,null,null,!0):y(g._vnode||null,p,g,null,null,null,T),pl(),is(),g._vnode=p},fn={p:y,um:st,m:Mt,r:Xo,mt:F,mc:w,pc:oe,pbc:L,n:Nr,o:e};let Xs,ei;return t&&([Xs,ei]=t(fn)),{render:el,hydrate:Xs,createApp:Qp(el,Xs)}}function Lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function vo(e,t,n=!1){const r=e.children,s=t.children;if(B(r)&&B(s))for(let i=0;i<r.length;i++){const o=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Ct(s[i]),l.el=o.el),n||vo(o,l)),l.type===Xt&&(l.el=o.el)}}function o0(e){const t=e.slice(),n=[0];let r,s,i,o,l;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<c?i=l+1:o=l;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const l0=e=>e.__isTeleport,Zn=e=>e&&(e.disabled||e.disabled===""),Sl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ti=(e,t)=>{const n=e&&e.to;return J(n)?t?t(n):null:n},a0={__isTeleport:!0,process(e,t,n,r,s,i,o,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:y,createComment:E}}=c,m=Zn(t.props);let{shapeFlag:_,children:C,dynamicChildren:b}=t;if(e==null){const S=t.el=y(""),V=t.anchor=y("");h(S,n,r),h(V,n,r);const A=t.target=Ti(t.props,v),w=t.targetAnchor=y("");A&&(h(w,A),o=o||Sl(A));const N=(L,M)=>{_&16&&u(C,L,M,s,i,o,l,a)};m?N(n,V):A&&N(A,w)}else{t.el=e.el;const S=t.anchor=e.anchor,V=t.target=e.target,A=t.targetAnchor=e.targetAnchor,w=Zn(e.props),N=w?n:V,L=w?S:A;if(o=o||Sl(V),b?(d(e.dynamicChildren,b,N,s,i,o,l),vo(e,t,!0)):a||f(e,t,N,L,s,i,o,l,!1),m)w||Vr(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=Ti(t.props,v);M&&Vr(t,M,null,c,0)}else w&&Vr(t,V,A,c,1)}Wc(t)},remove(e,t,n,r,{um:s,o:{remove:i}},o){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=e;if(f&&i(u),(o||!Zn(d))&&(i(c),l&16))for(let h=0;h<a.length;h++){const v=a[h];s(v,t,n,!0,!!v.dynamicChildren)}},move:Vr,hydrate:c0};function Vr(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:c,props:u}=e,f=i===2;if(f&&r(o,t,n),(!f||Zn(u))&&a&16)for(let d=0;d<c.length;d++)s(c[d],t,n,2);f&&r(l,t,n)}function c0(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:l,querySelector:a}},c){const u=t.target=Ti(t.props,a);if(u){const f=u._lpa||u.firstChild;if(t.shapeFlag&16)if(Zn(t.props))t.anchor=c(o(e),t,l(e),n,r,s,i),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,u._lpa=t.targetAnchor&&o(t.targetAnchor);break}c(f,t,u,n,r,s,i)}Wc(t)}return t.anchor&&o(t.anchor)}const u0=a0;function Wc(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Te=Symbol.for("v-fgt"),Xt=Symbol.for("v-txt"),Ie=Symbol.for("v-cmt"),qt=Symbol.for("v-stc"),Yn=[];let ke=null;function W(e=!1){Yn.push(ke=e?null:[])}function qc(){Yn.pop(),ke=Yn[Yn.length-1]||null}let en=1;function Si(e){en+=e}function Jc(e){return e.dynamicChildren=en>0?ke||vn:null,qc(),en>0&&ke&&ke.push(e),e}function Y(e,t,n,r,s,i){return Jc(K(e,t,n,r,s,i,!0))}function Dt(e,t,n,r,s){return Jc(de(e,t,n,r,s,!0))}function rt(e){return e?e.__v_isVNode===!0:!1}function tt(e,t){return e.type===t.type&&e.key===t.key}function f0(e){}const zs="__vInternal",Zc=({key:e})=>e!=null?e:null,Yr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||ve(e)||q(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,r=0,s=null,i=e===Te?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zc(t),ref:t&&Yr(t),scopeId:Fs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Se};return l?(bo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=J(n)?8:16),en>0&&!o&&ke&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ke.push(a),a}const de=d0;function d0(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Mc)&&(e=Ie),rt(e)){const l=ut(e,t,!0);return n&&bo(l,n),en>0&&!i&&ke&&(l.shapeFlag&6?ke[ke.indexOf(e)]=l:ke.push(l)),l.patchFlag|=-2,l}if(y0(e)&&(e=e.__vccOpts),t){t=Yc(t);let{class:l,style:a}=t;l&&!J(l)&&(t.class=Xe(l)),ie(a)&&(eo(a)&&!B(a)&&(a=ne({},a)),t.style=Yt(a))}const o=J(e)?1:_c(e)?128:l0(e)?64:ie(e)?4:q(e)?2:0;return K(e,t,n,r,s,o,i,!0)}function Yc(e){return e?eo(e)||zs in e?ne({},e):e:null}function ut(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:o}=e,l=t?wo(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Zc(l),ref:t&&t.ref?n&&s?B(s)?s.concat(Yr(t)):[s,Yr(t)]:Yr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ut(e.ssContent),ssFallback:e.ssFallback&&ut(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function yo(e=" ",t=0){return de(Xt,null,e,t)}function p0(e,t){const n=de(qt,null,e);return n.staticCount=t,n}function Gr(e="",t=!1){return t?(W(),Dt(Ie,null,e)):de(Ie,null,e)}function ze(e){return e==null||typeof e=="boolean"?de(Ie):B(e)?de(Te,null,e.slice()):typeof e=="object"?Ct(e):de(Xt,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ut(e)}function bo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),bo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(zs in t)?t._ctx=Se:s===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),r&64?(n=16,t=[yo(t)]):n=8);e.children=t,e.shapeFlag|=n}function wo(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Xe([t.class,r.class]));else if(s==="style")t.style=Yt([t.style,r.style]);else if(rn(s)){const i=t[s],o=r[s];o&&i!==o&&!(B(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function Le(e,t,n,r=null){je(e,t,7,[n,r])}const h0=Rc();let g0=0;function Gc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||h0,i={uid:g0++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Yi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hc(r,s),emitsOptions:gc(r,s),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=rp.bind(null,i),e.ce&&e.ce(i),i}let Ce=null;const He=()=>Ce||Se;let Co,pn,$l="__VUE_INSTANCE_SETTERS__";(pn=pi()[$l])||(pn=pi()[$l]=[]),pn.push(e=>Ce=e),Co=e=>{pn.length>1?pn.forEach(t=>t(e)):pn[0](e)};const At=e=>{Co(e),e.scope.on()},Tt=()=>{Ce&&Ce.scope.off(),Co(null)};function Qc(e){return e.vnode.shapeFlag&4}let $n=!1;function Xc(e,t=!1){$n=t;const{props:n,children:r}=e.vnode,s=Qc(e);e0(e,n,s,t),r0(e,r);const i=s?_0(e,t):void 0;return $n=!1,i}function _0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=to(new Proxy(e.ctx,bi));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?nu(e):null;At(e),kn();const i=gt(r,e,0,[e.props,s]);if(Fn(),Tt(),Ji(i)){if(i.then(Tt,Tt),t)return i.then(o=>{$i(e,o,t)}).catch(o=>{ln(o,e,0)});e.asyncDep=i}else $i(e,i,t)}else tu(e,t)}function $i(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ie(t)&&(e.setupState=so(t)),tu(e,n)}let cs,Oi;function eu(e){cs=e,Oi=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Np))}}const m0=()=>!cs;function tu(e,t,n){const r=e.type;if(!e.render){if(!t&&cs&&!r.render){const s=r.template||go(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ne(ne({isCustomElement:i,delimiters:l},o),a);r.render=cs(s,c)}}e.render=r.render||Ae,Oi&&Oi(e)}At(e),kn(),Wp(e),Fn(),Tt()}function v0(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function nu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return v0(e)},slots:e.slots,emit:e.emit,expose:t}}function js(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(so(to(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jn)return Jn[n](e)},has(t,n){return n in t||n in Jn}}))}function Pi(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function y0(e){return q(e)&&"__vccOpts"in e}const he=(e,t)=>Gd(e,t,$n);function Rt(e,t,n){const r=arguments.length;return r===2?ie(t)&&!B(t)?rt(t)?de(e,null,[t]):de(e,t):de(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&rt(n)&&(n=[n]),de(e,t,n))}const ru=Symbol.for("v-scx"),su=()=>ct(ru);function b0(){}function w0(e,t,n,r){const s=n[r];if(s&&iu(s,e))return s;const i=t();return i.memo=e.slice(),n[r]=i}function iu(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Tn(n[r],t[r]))return!1;return en>0&&ke&&ke.push(e),!0}const ou="3.3.4",C0={createComponentInstance:Gc,setupComponent:Xc,renderComponentRoot:Zr,setCurrentRenderingInstance:ir,isVNode:rt,normalizeVNode:ze},E0=C0,T0=null,S0=null,$0="http://www.w3.org/2000/svg",Bt=typeof document<"u"?document:null,Ol=Bt&&Bt.createElement("template"),O0={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 s=t?Bt.createElementNS($0,e):Bt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ol.innerHTML=r?`<svg>${e}</svg>`:e;const l=Ol.content;if(r){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function P0(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function A0(e,t,n){const r=e.style,s=J(n);if(n&&!s){if(t&&!J(t))for(const i in t)n[i]==null&&Ai(r,i,"");for(const i in n)Ai(r,i,n[i])}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Pl=/\s*!important$/;function Ai(e,t,n){if(B(n))n.forEach(r=>Ai(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=I0(e,t);Pl.test(n)?e.setProperty(xe(r),n.replace(Pl,""),"important"):e[r]=n}}const Al=["Webkit","Moz","ms"],oi={};function I0(e,t){const n=oi[t];if(n)return n;let r=ye(t);if(r!=="filter"&&r in e)return oi[t]=r;r=on(r);for(let s=0;s<Al.length;s++){const i=Al[s]+r;if(i in e)return oi[t]=i}return t}const Il="http://www.w3.org/1999/xlink";function N0(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Il,t.slice(6,t.length)):e.setAttributeNS(Il,t,n);else{const i=ld(t);n==null||i&&!ja(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function M0(e,t,n,r,s,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,s,i),e[t]=n==null?"":n;return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n==null?"":n;c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=ja(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ht(e,t,n,r){e.addEventListener(t,n,r)}function L0(e,t,n,r){e.removeEventListener(t,n,r)}function x0(e,t,n,r,s=null){const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[l,a]=k0(t);if(r){const c=i[t]=B0(r,s);ht(e,l,c,a)}else o&&(L0(e,l,o,a),i[t]=void 0)}}const Nl=/(?:Once|Passive|Capture)$/;function k0(e){let t;if(Nl.test(e)){t={};let r;for(;r=e.match(Nl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xe(e.slice(2)),t]}let li=0;const F0=Promise.resolve(),R0=()=>li||(F0.then(()=>li=0),li=Date.now());function B0(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;je(H0(r,n.value),t,5,[r])};return n.value=e,n.attached=R0(),n}function H0(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ml=/^on[a-z]/,D0=(e,t,n,r,s=!1,i,o,l,a)=>{t==="class"?P0(e,r,s):t==="style"?A0(e,n,r):rn(t)?Wi(t)||x0(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):V0(e,t,r,s))?M0(e,t,r,i,o,l,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),N0(e,t,r,s))};function V0(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Ml.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ml.test(t)&&J(n)?!1:t in e}function lu(e,t){const n=Nt(e);class r extends Us{constructor(i){super(n,i,t)}}return r.def=n,r}const z0=e=>lu(e,Eu),j0=typeof HTMLElement<"u"?HTMLElement:class{};class Us extends j0{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Rn(()=>{this._connected||(ur(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=(r,s=!1)=>{const{props:i,styles:o}=r;let l;if(i&&!B(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=rs(this._props[a])),(l||(l=Object.create(null)))[ye(a)]=!0)}this._numberProps=l,s&&this._resolveProps(r),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=B(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of r.map(ye))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i)}})}_setAttr(t){let n=this.getAttribute(t);const r=ye(t);this._numberProps&&this._numberProps[r]&&(n=rs(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(xe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xe(t),n+""):n||this.removeAttribute(xe(t))))}_update(){ur(this._createVNode(),this.shadowRoot)}_createVNode(){const t=de(this._def,ne({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,{detail:o}))};n.emit=(i,...o)=>{r(i,o),xe(i)!==i&&r(xe(i),o)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Us){n.parent=s._instance,n.provides=s._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function U0(e="$style"){{const t=He();if(!t)return ue;const n=t.type.__cssModules;if(!n)return ue;const r=n[e];return r||ue}}function K0(e){const t=He();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Ni(i,s))},r=()=>{const s=e(t.proxy);Ii(t.subTree,s),n(s)};yc(r),an(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),Vs(()=>s.disconnect())})}function Ii(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ii(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ni(e.el,t);else if(e.type===Te)e.children.forEach(n=>Ii(n,t));else if(e.type===qt){let{el:n,anchor:r}=e;for(;n&&(Ni(n,t),n!==r);)n=n.nextSibling}}function Ni(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const bt="transition",Dn="animation",Sr=(e,{slots:t})=>Rt(wc,cu(e),t);Sr.displayName="Transition";const au={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},W0=Sr.props=ne({},uo,au),xt=(e,t=[])=>{B(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ll=e=>e?B(e)?e.some(t=>t.length>1):e.length>1:!1;function cu(e){const t={};for(const I in e)I in au||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=o,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=q0(s),y=v&&v[0],E=v&&v[1],{onBeforeEnter:m,onEnter:_,onEnterCancelled:C,onLeave:b,onLeaveCancelled:S,onBeforeAppear:V=m,onAppear:A=_,onAppearCancelled:w=C}=t,N=(I,H,F)=>{wt(I,H?u:l),wt(I,H?c:o),F&&F()},L=(I,H)=>{I._isLeaving=!1,wt(I,f),wt(I,h),wt(I,d),H&&H()},M=I=>(H,F)=>{const se=I?A:_,X=()=>N(H,I,F);xt(se,[H,X]),xl(()=>{wt(H,I?a:i),dt(H,I?u:l),Ll(se)||kl(H,r,y,X)})};return ne(t,{onBeforeEnter(I){xt(m,[I]),dt(I,i),dt(I,o)},onBeforeAppear(I){xt(V,[I]),dt(I,a),dt(I,c)},onEnter:M(!1),onAppear:M(!0),onLeave(I,H){I._isLeaving=!0;const F=()=>L(I,H);dt(I,f),fu(),dt(I,d),xl(()=>{!I._isLeaving||(wt(I,f),dt(I,h),Ll(b)||kl(I,r,E,F))}),xt(b,[I,F])},onEnterCancelled(I){N(I,!1),xt(C,[I])},onAppearCancelled(I){N(I,!0),xt(w,[I])},onLeaveCancelled(I){L(I),xt(S,[I])}})}function q0(e){if(e==null)return null;if(ie(e))return[ai(e.enter),ai(e.leave)];{const t=ai(e);return[t,t]}}function ai(e){return rs(e)}function dt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function wt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function xl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let J0=0;function kl(e,t,n,r){const s=e._endId=++J0,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=uu(e,t);if(!o)return r();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=h=>{h.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,d)}function uu(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),s=r(`${bt}Delay`),i=r(`${bt}Duration`),o=Fl(s,i),l=r(`${Dn}Delay`),a=r(`${Dn}Duration`),c=Fl(l,a);let u=null,f=0,d=0;t===bt?o>0&&(u=bt,f=o,d=i.length):t===Dn?c>0&&(u=Dn,f=c,d=a.length):(f=Math.max(o,c),u=f>0?o>c?bt:Dn:null,d=u?u===bt?i.length:a.length:0);const h=u===bt&&/\b(transform|all)(,|$)/.test(r(`${bt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function Fl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Rl(n)+Rl(e[r])))}function Rl(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function fu(){return document.body.offsetHeight}const du=new WeakMap,pu=new WeakMap,hu={name:"TransitionGroup",props:ne({},W0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=He(),r=co();let s,i;return Hs(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!eh(s[0].el,n.vnode.el,o))return;s.forEach(G0),s.forEach(Q0);const l=s.filter(X0);fu(),l.forEach(a=>{const c=a.el,u=c.style;dt(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const f=c._moveCb=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c._moveCb=null,wt(c,o))};c.addEventListener("transitionend",f)})}),()=>{const o=re(e),l=cu(o);let a=o.tag||Te;s=i,i=t.default?Rs(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&Qt(u,Sn(u,l,r,n))}if(s)for(let c=0;c<s.length;c++){const u=s[c];Qt(u,Sn(u,l,r,n)),du.set(u,u.el.getBoundingClientRect())}return de(a,null,i)}}},Z0=e=>delete e.mode;hu.props;const Y0=hu;function G0(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Q0(e){pu.set(e,e.el.getBoundingClientRect())}function X0(e){const t=du.get(e),n=pu.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function eh(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=uu(r);return s.removeChild(r),i}const It=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>wn(t,n):t};function th(e){e.target.composing=!0}function Bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const us={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=It(s);const i=r||s.props&&s.props.type==="number";ht(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=ns(l)),e._assign(l)}),n&&ht(e,"change",()=>{e.value=e.value.trim()}),t||(ht(e,"compositionstart",th),ht(e,"compositionend",Bl),ht(e,"change",Bl))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},i){if(e._assign=It(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&ns(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Eo={deep:!0,created(e,t,n){e._assign=It(n),ht(e,"change",()=>{const r=e._modelValue,s=On(e),i=e.checked,o=e._assign;if(B(r)){const l=Ps(r,s),a=l!==-1;if(i&&!a)o(r.concat(s));else if(!i&&a){const c=[...r];c.splice(l,1),o(c)}}else if(sn(r)){const l=new Set(r);i?l.add(s):l.delete(s),o(l)}else o(_u(e,i))})},mounted:Hl,beforeUpdate(e,t,n){e._assign=It(n),Hl(e,t,n)}};function Hl(e,{value:t,oldValue:n},r){e._modelValue=t,B(t)?e.checked=Ps(t,r.props.value)>-1:sn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Ot(t,_u(e,!0)))}const To={created(e,{value:t},n){e.checked=Ot(t,n.props.value),e._assign=It(n),ht(e,"change",()=>{e._assign(On(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=It(r),t!==n&&(e.checked=Ot(t,r.props.value))}},gu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=sn(t);ht(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?ns(On(o)):On(o));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=It(r)},mounted(e,{value:t}){Dl(e,t)},beforeUpdate(e,t,n){e._assign=It(n)},updated(e,{value:t}){Dl(e,t)}};function Dl(e,t){const n=e.multiple;if(!(n&&!B(t)&&!sn(t))){for(let r=0,s=e.options.length;r<s;r++){const i=e.options[r],o=On(i);if(n)B(t)?i.selected=Ps(t,o)>-1:i.selected=t.has(o);else if(Ot(On(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function On(e){return"_value"in e?e._value:e.value}function _u(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const mu={created(e,t,n){zr(e,t,n,null,"created")},mounted(e,t,n){zr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){zr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){zr(e,t,n,r,"updated")}};function vu(e,t){switch(e){case"SELECT":return gu;case"TEXTAREA":return us;default:switch(t){case"checkbox":return Eo;case"radio":return To;default:return us}}}function zr(e,t,n,r,s){const o=vu(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}function nh(){us.getSSRProps=({value:e})=>({value:e}),To.getSSRProps=({value:e},t)=>{if(t.props&&Ot(t.props.value,e))return{checked:!0}},Eo.getSSRProps=({value:e},t)=>{if(B(e)){if(t.props&&Ps(e,t.props.value)>-1)return{checked:!0}}else if(sn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},mu.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=vu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const rh=["ctrl","shift","alt","meta"],sh={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>rh.some(n=>e[`${n}Key`]&&!t.includes(n))},yu=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const i=sh[t[s]];if(i&&i(n,t))return}return e(n,...r)},ih={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},oh=(e,t)=>n=>{if(!("key"in n))return;const r=xe(n.key);if(t.some(s=>s===r||ih[s]===r))return e(n)},cr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Vn(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),Vn(e,!0),r.enter(e)):r.leave(e,()=>{Vn(e,!1)}):Vn(e,t))},beforeUnmount(e,{value:t}){Vn(e,t)}};function Vn(e,t){e.style.display=t?e._vod:"none"}function lh(){cr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const bu=ne({patchProp:D0},O0);let Gn,Vl=!1;function wu(){return Gn||(Gn=jc(bu))}function Cu(){return Gn=Vl?Gn:Uc(bu),Vl=!0,Gn}const ur=(...e)=>{wu().render(...e)},Eu=(...e)=>{Cu().hydrate(...e)},So=(...e)=>{const t=wu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Tu(r);if(!s)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},ah=(...e)=>{const t=Cu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Tu(r);if(s)return n(s,!0,s instanceof SVGElement)},t};function Tu(e){return J(e)?document.querySelector(e):e}let zl=!1;const ch=()=>{zl||(zl=!0,nh(),lh())},uh=Object.freeze(Object.defineProperty({__proto__:null,Transition:Sr,TransitionGroup:Y0,VueElement:Us,createApp:So,createSSRApp:ah,defineCustomElement:lu,defineSSRCustomElement:z0,hydrate:Eu,initDirectivesForSSR:ch,render:ur,useCssModule:U0,useCssVars:K0,vModelCheckbox:Eo,vModelDynamic:mu,vModelRadio:To,vModelSelect:gu,vModelText:us,vShow:cr,withKeys:oh,withModifiers:yu,EffectScope:Yi,ReactiveEffect:br,customRef:Wd,effect:dd,effectScope:cd,getCurrentScope:Gi,isProxy:eo,isReactive:Ut,isReadonly:Gt,isRef:ve,isShallow:tr,markRaw:to,onScopeDispose:Wa,proxyRefs:so,reactive:wr,readonly:Cr,ref:me,shallowReactive:ic,shallowReadonly:Dd,shallowRef:oc,stop:pd,toRaw:re,toRef:Zd,toRefs:ac,toValue:jd,triggerRef:zd,unref:ae,camelize:ye,capitalize:on,normalizeClass:Xe,normalizeProps:Xf,normalizeStyle:Yt,toDisplayString:hi,toHandlerKey:bn,BaseTransition:wc,BaseTransitionPropsValidators:uo,Comment:Ie,Fragment:Te,KeepAlive:Ep,Static:qt,Suspense:dp,Teleport:u0,Text:Xt,assertNumber:Qd,callWithAsyncErrorHandling:je,callWithErrorHandling:gt,cloneVNode:ut,compatUtils:S0,computed:he,createBlock:Dt,createCommentVNode:Gr,createElementBlock:Y,createElementVNode:K,createHydrationRenderer:Uc,createPropsRestProxy:Up,createRenderer:jc,createSlots:Ap,createStaticVNode:p0,createTextVNode:yo,createVNode:de,defineAsyncComponent:wp,defineComponent:Nt,defineEmits:Lp,defineExpose:xp,defineModel:Rp,defineOptions:kp,defineProps:Mp,defineSlots:Fp,get devtools(){return gn},getCurrentInstance:He,getTransitionRawChildren:Rs,guardReactiveProps:Yc,h:Rt,handleError:ln,hasInjectionContext:Xp,initCustomFormatter:b0,inject:ct,isMemoSame:iu,isRuntimeOnly:m0,isVNode:rt,mergeDefaults:zp,mergeModels:jp,mergeProps:wo,nextTick:Rn,onActivated:Ec,onBeforeMount:$c,onBeforeUnmount:Ds,onBeforeUpdate:Oc,onDeactivated:Tc,onErrorCaptured:Nc,onMounted:an,onRenderTracked:Ic,onRenderTriggered:Ac,onServerPrefetch:Pc,onUnmounted:Vs,onUpdated:Hs,openBlock:W,popScopeId:ip,provide:_o,pushScopeId:sp,queuePostFlushCb:oo,registerRuntimeCompiler:eu,renderList:Pp,renderSlot:ho,resolveComponent:$p,resolveDirective:Op,resolveDynamicComponent:Lc,resolveFilter:T0,resolveTransitionHooks:Sn,setBlockTracking:Si,setDevtoolsHook:hc,setTransitionHooks:Qt,ssrContextKey:ru,ssrUtils:E0,toHandlers:Ip,transformVNodeArgs:f0,useAttrs:Dp,useModel:Vp,useSSRContext:su,useSlots:Hp,useTransitionState:co,version:ou,warn:uc,watch:at,watchEffect:vc,watchPostEffect:yc,watchSyncEffect:vp,withAsyncContext:Kp,withCtx:Kt,withDefaults:Bp,withDirectives:os,withMemo:w0,withScopeId:op},Symbol.toStringTag,{value:"Module"}));function $o(e){throw e}function Su(e){}function ge(e,t,n,r){const s=e,i=new SyntaxError(String(s));return i.code=e,i.loc=t,i}const fr=Symbol(""),Qn=Symbol(""),Oo=Symbol(""),fs=Symbol(""),$u=Symbol(""),tn=Symbol(""),Ou=Symbol(""),Pu=Symbol(""),Po=Symbol(""),Ao=Symbol(""),$r=Symbol(""),Io=Symbol(""),Au=Symbol(""),No=Symbol(""),ds=Symbol(""),Mo=Symbol(""),Lo=Symbol(""),xo=Symbol(""),ko=Symbol(""),Iu=Symbol(""),Nu=Symbol(""),Ks=Symbol(""),ps=Symbol(""),Fo=Symbol(""),Ro=Symbol(""),dr=Symbol(""),Or=Symbol(""),Bo=Symbol(""),Mi=Symbol(""),fh=Symbol(""),Li=Symbol(""),hs=Symbol(""),dh=Symbol(""),ph=Symbol(""),Ho=Symbol(""),hh=Symbol(""),gh=Symbol(""),Do=Symbol(""),Mu=Symbol(""),Pn={[fr]:"Fragment",[Qn]:"Teleport",[Oo]:"Suspense",[fs]:"KeepAlive",[$u]:"BaseTransition",[tn]:"openBlock",[Ou]:"createBlock",[Pu]:"createElementBlock",[Po]:"createVNode",[Ao]:"createElementVNode",[$r]:"createCommentVNode",[Io]:"createTextVNode",[Au]:"createStaticVNode",[No]:"resolveComponent",[ds]:"resolveDynamicComponent",[Mo]:"resolveDirective",[Lo]:"resolveFilter",[xo]:"withDirectives",[ko]:"renderList",[Iu]:"renderSlot",[Nu]:"createSlots",[Ks]:"toDisplayString",[ps]:"mergeProps",[Fo]:"normalizeClass",[Ro]:"normalizeStyle",[dr]:"normalizeProps",[Or]:"guardReactiveProps",[Bo]:"toHandlers",[Mi]:"camelize",[fh]:"capitalize",[Li]:"toHandlerKey",[hs]:"setBlockTracking",[dh]:"pushScopeId",[ph]:"popScopeId",[Ho]:"withCtx",[hh]:"unref",[gh]:"isRef",[Do]:"withMemo",[Mu]:"isMemoSame"};function _h(e){Object.getOwnPropertySymbols(e).forEach(t=>{Pn[t]=e[t]})}const Ke={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function mh(e,t=Ke){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function pr(e,t,n,r,s,i,o,l=!1,a=!1,c=!1,u=Ke){return e&&(l?(e.helper(tn),e.helper(Nn(e.inSSR,c))):e.helper(In(e.inSSR,c)),o&&e.helper(xo)),{type:13,tag:t,props:n,children:r,patchFlag:s,dynamicProps:i,directives:o,isBlock:l,disableTracking:a,isComponent:c,loc:u}}function Pr(e,t=Ke){return{type:17,loc:t,elements:e}}function Je(e,t=Ke){return{type:15,loc:t,properties:e}}function _e(e,t){return{type:16,loc:Ke,key:J(e)?G(e,!0):e,value:t}}function G(e,t=!1,n=Ke,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function nt(e,t=Ke){return{type:8,loc:t,children:e}}function we(e,t=[],n=Ke){return{type:14,loc:n,callee:e,arguments:t}}function An(e,t=void 0,n=!1,r=!1,s=Ke){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:s}}function xi(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ke}}function vh(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Ke}}function yh(e){return{type:21,body:e,loc:Ke}}function In(e,t){return e||t?Po:Ao}function Nn(e,t){return e||t?Ou:Pu}function Vo(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(In(r,e.isComponent)),t(tn),t(Nn(r,e.isComponent)))}const Fe=e=>e.type===4&&e.isStatic,_n=(e,t)=>e===t||e===xe(t);function Lu(e){if(_n(e,"Teleport"))return Qn;if(_n(e,"Suspense"))return Oo;if(_n(e,"KeepAlive"))return fs;if(_n(e,"BaseTransition"))return $u}const bh=/^\d|[^\$\w]/,zo=e=>!bh.test(e),wh=/[A-Za-z_$\xA0-\uFFFF]/,Ch=/[\.\?\w$\xA0-\uFFFF]/,Eh=/\s+[.[]\s*|\s*[.[]\s+/g,Th=e=>{e=e.trim().replace(Eh,o=>o.trim());let t=0,n=[],r=0,s=0,i=null;for(let o=0;o<e.length;o++){const l=e.charAt(o);switch(t){case 0:if(l==="[")n.push(t),t=1,r++;else if(l==="(")n.push(t),t=2,s++;else if(!(o===0?wh:Ch).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(t),t=3,i=l):l==="["?r++:l==="]"&&(--r||(t=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(t),t=3,i=l;else if(l==="(")s++;else if(l===")"){if(o===e.length-1)return!1;--s||(t=n.pop())}break;case 3:l===i&&(t=n.pop(),i=null);break}}return!r&&!s},xu=Th;function ku(e,t,n){const s={source:e.source.slice(t,t+n),start:gs(e.start,e.source,t),end:e.end};return n!=null&&(s.end=gs(e.start,e.source,t+n)),s}function gs(e,t,n=t.length){return _s(ne({},e),t,n)}function _s(e,t,n=t.length){let r=0,s=-1;for(let i=0;i<n;i++)t.charCodeAt(i)===10&&(r++,s=i);return e.offset+=n,e.line+=r,e.column=s===-1?e.column+n:n-s,e}function qe(e,t,n=!1){for(let r=0;r<e.props.length;r++){const s=e.props[r];if(s.type===7&&(n||s.exp)&&(J(t)?s.name===t:t.test(s.name)))return s}}function Ws(e,t,n=!1,r=!1){for(let s=0;s<e.props.length;s++){const i=e.props[s];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||r))return i}else if(i.name==="bind"&&(i.exp||r)&&Vt(i.arg,t))return i}}function Vt(e,t){return!!(e&&Fe(e)&&e.content===t)}function Sh(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function ci(e){return e.type===5||e.type===2}function $h(e){return e.type===7&&e.name==="slot"}function ms(e){return e.type===1&&e.tagType===3}function vs(e){return e.type===1&&e.tagType===2}const Oh=new Set([dr,Or]);function Fu(e,t=[]){if(e&&!J(e)&&e.type===14){const n=e.callee;if(!J(n)&&Oh.has(n))return Fu(e.arguments[0],t.concat(e))}return[e,t]}function ys(e,t,n){let r,s=e.type===13?e.props:e.arguments[2],i=[],o;if(s&&!J(s)&&s.type===14){const l=Fu(s);s=l[0],i=l[1],o=i[i.length-1]}if(s==null||J(s))r=Je([t]);else if(s.type===14){const l=s.arguments[0];!J(l)&&l.type===15?jl(t,l)||l.properties.unshift(t):s.callee===Bo?r=we(n.helper(ps),[Je([t]),s]):s.arguments.unshift(Je([t])),!r&&(r=s)}else s.type===15?(jl(t,s)||s.properties.unshift(t),r=s):(r=we(n.helper(ps),[Je([t]),s]),o&&o.callee===Or&&(o=i[i.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function jl(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(s=>s.key.type===4&&s.key.content===r)}return n}function hr(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Ph(e){return e.type===14&&e.callee===Do?e.arguments[1].returns:e}function Ul(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function Jt(e,t){const n=Ul("MODE",t),r=Ul(e,t);return n===3?r===!0:r!==!1}function gr(e,t,n,...r){return Jt(e,t)}const Ah=/&(gt|lt|amp|apos|quot);/g,Ih={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Kl={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Jr,isPreTag:Jr,isCustomElement:Jr,decodeEntities:e=>e.replace(Ah,(t,n)=>Ih[n]),onError:$o,onWarn:Su,comments:!1};function Nh(e,t={}){const n=Mh(e,t),r=Ue(n);return mh(jo(n,0,[]),Ye(n,r))}function Mh(e,t){const n=ne({},Kl);let r;for(r in t)n[r]=t[r]===void 0?Kl[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function jo(e,t,n){const r=qs(n),s=r?r.ns:0,i=[];for(;!Vh(e,t,n);){const l=e.source;let a;if(t===0||t===1){if(!e.inVPre&&Pe(l,e.options.delimiters[0]))a=Hh(e,t);else if(t===0&&l[0]==="<")if(l.length===1)ce(e,5,1);else if(l[1]==="!")Pe(l,"<!--")?a=xh(e):Pe(l,"<!DOCTYPE")?a=zn(e):Pe(l,"<![CDATA[")?s!==0?a=Lh(e,n):(ce(e,1),a=zn(e)):(ce(e,11),a=zn(e));else if(l[1]==="/")if(l.length===2)ce(e,5,2);else if(l[2]===">"){ce(e,14,2),Ee(e,3);continue}else if(/[a-z]/i.test(l[2])){ce(e,23),ki(e,bs.End,r);continue}else ce(e,12,2),a=zn(e);else/[a-z]/i.test(l[1])?(a=kh(e,n),Jt("COMPILER_NATIVE_TEMPLATE",e)&&a&&a.tag==="template"&&!a.props.some(c=>c.type===7&&Ru(c.name))&&(a=a.children)):l[1]==="?"?(ce(e,21,1),a=zn(e)):ce(e,12,1)}if(a||(a=Dh(e,t)),B(a))for(let c=0;c<a.length;c++)Wl(i,a[c]);else Wl(i,a)}let o=!1;if(t!==2&&t!==1){const l=e.options.whitespace!=="preserve";for(let a=0;a<i.length;a++){const c=i[a];if(c.type===2)if(e.inPre)c.content=c.content.replace(/\r\n/g,`
    2 `);else if(/[^\t\r\n\f ]/.test(c.content))l&&(c.content=c.content.replace(/[\t\r\n\f ]+/g," "));else{const u=i[a-1],f=i[a+1];!u||!f||l&&(u.type===3&&f.type===3||u.type===3&&f.type===1||u.type===1&&f.type===3||u.type===1&&f.type===1&&/[\r\n]/.test(c.content))?(o=!0,i[a]=null):c.content=" "}else c.type===3&&!e.options.comments&&(o=!0,i[a]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const a=i[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}}return o?i.filter(Boolean):i}function Wl(e,t){if(t.type===2){const n=qs(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function Lh(e,t){Ee(e,9);const n=jo(e,3,t);return e.source.length===0?ce(e,6):Ee(e,3),n}function xh(e){const t=Ue(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),Ee(e,e.source.length),ce(e,7);else{r.index<=3&&ce(e,0),r[1]&&ce(e,10),n=e.source.slice(4,r.index);const s=e.source.slice(0,r.index);let i=1,o=0;for(;(o=s.indexOf("<!--",i))!==-1;)Ee(e,o-i+1),o+4<s.length&&ce(e,16),i=o+1;Ee(e,r.index+r[0].length-i+1)}return{type:3,content:n,loc:Ye(e,t)}}function zn(e){const t=Ue(e),n=e.source[1]==="?"?1:2;let r;const s=e.source.indexOf(">");return s===-1?(r=e.source.slice(n),Ee(e,e.source.length)):(r=e.source.slice(n,s),Ee(e,s+1)),{type:3,content:r,loc:Ye(e,t)}}function kh(e,t){const n=e.inPre,r=e.inVPre,s=qs(t),i=ki(e,bs.Start,s),o=e.inPre&&!n,l=e.inVPre&&!r;if(i.isSelfClosing||e.options.isVoidTag(i.tag))return o&&(e.inPre=!1),l&&(e.inVPre=!1),i;t.push(i);const a=e.options.getTextMode(i,s),c=jo(e,a,t);t.pop();{const u=i.props.find(f=>f.type===6&&f.name==="inline-template");if(u&&gr("COMPILER_INLINE_TEMPLATE",e,u.loc)){const f=Ye(e,i.loc.end);u.value={type:2,content:f.source,loc:f}}}if(i.children=c,Fi(e.source,i.tag))ki(e,bs.End,s);else if(ce(e,24,0,i.loc.start),e.source.length===0&&i.tag.toLowerCase()==="script"){const u=c[0];u&&Pe(u.loc.source,"<!--")&&ce(e,8)}return i.loc=Ye(e,i.loc.start),o&&(e.inPre=!1),l&&(e.inVPre=!1),i}var bs=(e=>(e[e.Start=0]="Start",e[e.End=1]="End",e))(bs||{});const Ru=Be("if,else,else-if,for,slot");function ki(e,t,n){const r=Ue(e),s=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),i=s[1],o=e.options.getNamespace(i,n);Ee(e,s[0].length),_r(e);const l=Ue(e),a=e.source;e.options.isPreTag(i)&&(e.inPre=!0);let c=ql(e,t);t===0&&!e.inVPre&&c.some(d=>d.type===7&&d.name==="pre")&&(e.inVPre=!0,ne(e,l),e.source=a,c=ql(e,t).filter(d=>d.name!=="v-pre"));let u=!1;if(e.source.length===0?ce(e,9):(u=Pe(e.source,"/>"),t===1&&u&&ce(e,4),Ee(e,u?2:1)),t===1)return;let f=0;return e.inVPre||(i==="slot"?f=2:i==="template"?c.some(d=>d.type===7&&Ru(d.name))&&(f=3):Fh(i,c,e)&&(f=1)),{type:1,ns:o,tag:i,tagType:f,props:c,isSelfClosing:u,children:[],loc:Ye(e,r),codegenNode:void 0}}function Fh(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||Lu(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const i=t[s];if(i.type===6){if(i.name==="is"&&i.value){if(i.value.content.startsWith("vue:"))return!0;if(gr("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}else{if(i.name==="is")return!0;if(i.name==="bind"&&Vt(i.arg,"is")&&!0&&gr("COMPILER_IS_ON_ELEMENT",n,i.loc))return!0}}}function ql(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Pe(e.source,">")&&!Pe(e.source,"/>");){if(Pe(e.source,"/")){ce(e,22),Ee(e,1),_r(e);continue}t===1&&ce(e,3);const s=Rh(e,r);s.type===6&&s.value&&s.name==="class"&&(s.value.content=s.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(s),/^[^\t\r\n\f />]/.test(e.source)&&ce(e,15),_r(e)}return n}function Rh(e,t){var n;const r=Ue(e),i=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(i)&&ce(e,2),t.add(i),i[0]==="="&&ce(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(i);)ce(e,17,c.index)}Ee(e,i.length);let o;/^[\t\r\n\f ]*=/.test(e.source)&&(_r(e),Ee(e,1),_r(e),o=Bh(e),o||ce(e,13));const l=Ye(e,r);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(i)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(i);let c=Pe(i,"."),u=a[1]||(c||Pe(i,":")?"bind":Pe(i,"@")?"on":"slot"),f;if(a[2]){const h=u==="slot",v=i.lastIndexOf(a[2],i.length-(((n=a[3])==null?void 0:n.length)||0)),y=Ye(e,Jl(e,r,v),Jl(e,r,v+a[2].length+(h&&a[3]||"").length));let E=a[2],m=!0;E.startsWith("[")?(m=!1,E.endsWith("]")?E=E.slice(1,E.length-1):(ce(e,27),E=E.slice(1))):h&&(E+=a[3]||""),f={type:4,content:E,isStatic:m,constType:m?3:0,loc:y}}if(o&&o.isQuoted){const h=o.loc;h.start.offset++,h.start.column++,h.end=gs(h.start,o.content),h.source=h.source.slice(1,-1)}const d=a[3]?a[3].slice(1).split("."):[];return c&&d.push("prop"),u==="bind"&&f&&d.includes("sync")&&gr("COMPILER_V_BIND_SYNC",e,l,f.loc.source)&&(u="model",d.splice(d.indexOf("sync"),1)),{type:7,name:u,exp:o&&{type:4,content:o.content,isStatic:!1,constType:0,loc:o.loc},arg:f,modifiers:d,loc:l}}return!e.inVPre&&Pe(i,"v-")&&ce(e,26),{type:6,name:i,value:o&&{type:2,content:o.content,loc:o.loc},loc:l}}function Bh(e){const t=Ue(e);let n;const r=e.source[0],s=r==='"'||r==="'";if(s){Ee(e,1);const i=e.source.indexOf(r);i===-1?n=Xn(e,e.source.length,4):(n=Xn(e,i,4),Ee(e,1))}else{const i=/^[^\t\r\n\f >]+/.exec(e.source);if(!i)return;const o=/["'<=`]/g;let l;for(;l=o.exec(i[0]);)ce(e,18,l.index);n=Xn(e,i[0].length,4)}return{content:n,isQuoted:s,loc:Ye(e,t)}}function Hh(e,t){const[n,r]=e.options.delimiters,s=e.source.indexOf(r,n.length);if(s===-1){ce(e,25);return}const i=Ue(e);Ee(e,n.length);const o=Ue(e),l=Ue(e),a=s-n.length,c=e.source.slice(0,a),u=Xn(e,a,t),f=u.trim(),d=u.indexOf(f);d>0&&_s(o,c,d);const h=a-(u.length-f.length-d);return _s(l,c,h),Ee(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:f,loc:Ye(e,o,l)},loc:Ye(e,i)}}function Dh(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let o=0;o<n.length;o++){const l=e.source.indexOf(n[o],1);l!==-1&&r>l&&(r=l)}const s=Ue(e);return{type:2,content:Xn(e,r,t),loc:Ye(e,s)}}function Xn(e,t,n){const r=e.source.slice(0,t);return Ee(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function Ue(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Ye(e,t,n){return n=n||Ue(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function qs(e){return e[e.length-1]}function Pe(e,t){return e.startsWith(t)}function Ee(e,t){const{source:n}=e;_s(e,n,t),e.source=n.slice(t)}function _r(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Ee(e,t[0].length)}function Jl(e,t,n){return gs(t,e.originalSource.slice(t.offset,n),n)}function ce(e,t,n,r=Ue(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(ge(t,{start:r,end:r,source:""}))}function Vh(e,t,n){const r=e.source;switch(t){case 0:if(Pe(r,"</")){for(let s=n.length-1;s>=0;--s)if(Fi(r,n[s].tag))return!0}break;case 1:case 2:{const s=qs(n);if(s&&Fi(r,s.tag))return!0;break}case 3:if(Pe(r,"]]>"))return!0;break}return!r}function Fi(e,t){return Pe(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function zh(e,t){Qr(e,t,Bu(e,e.children[0]))}function Bu(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!vs(t)}function Qr(e,t,n=!1){const{children:r}=e,s=r.length;let i=0;for(let o=0;o<r.length;o++){const l=r[o];if(l.type===1&&l.tagType===0){const a=n?0:Ze(l,t);if(a>0){if(a>=2){l.codegenNode.patchFlag=-1+"",l.codegenNode=t.hoist(l.codegenNode),i++;continue}}else{const c=l.codegenNode;if(c.type===13){const u=zu(c);if((!u||u===512||u===1)&&Du(l,t)>=2){const f=Vu(l);f&&(c.props=t.hoist(f))}c.dynamicProps&&(c.dynamicProps=t.hoist(c.dynamicProps))}}}if(l.type===1){const a=l.tagType===1;a&&t.scopes.vSlot++,Qr(l,t),a&&t.scopes.vSlot--}else if(l.type===11)Qr(l,t,l.children.length===1);else if(l.type===9)for(let a=0;a<l.branches.length;a++)Qr(l.branches[a],t,l.branches[a].children.length===1)}i&&t.transformHoist&&t.transformHoist(r,t,e),i&&i===s&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&B(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Pr(e.codegenNode.children)))}function Ze(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const s=e.codegenNode;if(s.type!==13||s.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(zu(s))return n.set(e,0),0;{let l=3;const a=Du(e,t);if(a===0)return n.set(e,0),0;a<l&&(l=a);for(let c=0;c<e.children.length;c++){const u=Ze(e.children[c],t);if(u===0)return n.set(e,0),0;u<l&&(l=u)}if(l>1)for(let c=0;c<e.props.length;c++){const u=e.props[c];if(u.type===7&&u.name==="bind"&&u.exp){const f=Ze(u.exp,t);if(f===0)return n.set(e,0),0;f<l&&(l=f)}}if(s.isBlock){for(let c=0;c<e.props.length;c++)if(e.props[c].type===7)return n.set(e,0),0;t.removeHelper(tn),t.removeHelper(Nn(t.inSSR,s.isComponent)),s.isBlock=!1,t.helper(In(t.inSSR,s.isComponent))}return n.set(e,l),l}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Ze(e.content,t);case 4:return e.constType;case 8:let o=3;for(let l=0;l<e.children.length;l++){const a=e.children[l];if(J(a)||$t(a))continue;const c=Ze(a,t);if(c===0)return 0;c<o&&(o=c)}return o;default:return 0}}const jh=new Set([Fo,Ro,dr,Or]);function Hu(e,t){if(e.type===14&&!J(e.callee)&&jh.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Ze(n,t);if(n.type===14)return Hu(n,t)}return 0}function Du(e,t){let n=3;const r=Vu(e);if(r&&r.type===15){const{properties:s}=r;for(let i=0;i<s.length;i++){const{key:o,value:l}=s[i],a=Ze(o,t);if(a===0)return a;a<n&&(n=a);let c;if(l.type===4?c=Ze(l,t):l.type===14?c=Hu(l,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function Vu(e){const t=e.codegenNode;if(t.type===13)return t.props}function zu(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function Uh(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:s=!1,nodeTransforms:i=[],directiveTransforms:o={},transformHoist:l=null,isBuiltInComponent:a=Ae,isCustomElement:c=Ae,expressionPlugins:u=[],scopeId:f=null,slotted:d=!0,ssr:h=!1,inSSR:v=!1,ssrCssVars:y="",bindingMetadata:E=ue,inline:m=!1,isTS:_=!1,onError:C=$o,onWarn:b=Su,compatConfig:S}){const V=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),A={selfName:V&&on(ye(V[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:s,nodeTransforms:i,directiveTransforms:o,transformHoist:l,isBuiltInComponent:a,isCustomElement:c,expressionPlugins:u,scopeId:f,slotted:d,ssr:h,inSSR:v,ssrCssVars:y,bindingMetadata:E,inline:m,isTS:_,onError:C,onWarn:b,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(w){const N=A.helpers.get(w)||0;return A.helpers.set(w,N+1),w},removeHelper(w){const N=A.helpers.get(w);if(N){const L=N-1;L?A.helpers.set(w,L):A.helpers.delete(w)}},helperString(w){return`_${Pn[A.helper(w)]}`},replaceNode(w){A.parent.children[A.childIndex]=A.currentNode=w},removeNode(w){const N=A.parent.children,L=w?N.indexOf(w):A.currentNode?A.childIndex:-1;!w||w===A.currentNode?(A.currentNode=null,A.onNodeRemoved()):A.childIndex>L&&(A.childIndex--,A.onNodeRemoved()),A.parent.children.splice(L,1)},onNodeRemoved:()=>{},addIdentifiers(w){},removeIdentifiers(w){},hoist(w){J(w)&&(w=G(w)),A.hoists.push(w);const N=G(`_hoisted_${A.hoists.length}`,!1,w.loc,2);return N.hoisted=w,N},cache(w,N=!1){return vh(A.cached++,w,N)}};return A.filters=new Set,A}function Kh(e,t){const n=Uh(e,t);Js(e,n),t.hoistStatic&&zh(e,n),t.ssr||Wh(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.filters=[...n.filters]}function Wh(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const s=r[0];if(Bu(e,s)&&s.codegenNode){const i=s.codegenNode;i.type===13&&Vo(i,t),e.codegenNode=i}else e.codegenNode=s}else if(r.length>1){let s=64;e.codegenNode=pr(t,n(fr),void 0,e.children,s+"",void 0,void 0,!0,void 0,!1)}}function qh(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const s=e.children[n];J(s)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Js(s,t))}}function Js(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(B(o)?r.push(...o):r.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper($r);break;case 5:t.ssr||t.helper(Ks);break;case 9:for(let i=0;i<e.branches.length;i++)Js(e.branches[i],t);break;case 10:case 11:case 1:case 0:qh(e,t);break}t.currentNode=e;let s=r.length;for(;s--;)r[s]()}function ju(e,t){const n=J(e)?r=>r===e:r=>e.test(r);return(r,s)=>{if(r.type===1){const{props:i}=r;if(r.tagType===3&&i.some($h))return;const o=[];for(let l=0;l<i.length;l++){const a=i[l];if(a.type===7&&n(a.name)){i.splice(l,1),l--;const c=t(r,a,s);c&&o.push(c)}}return o}}}const Zs="/*#__PURE__*/",Uu=e=>`${Pn[e]}: _${Pn[e]}`;function Zl(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:s="template.vue.html",scopeId:i=null,optimizeImports:o=!1,runtimeGlobalName:l="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:s,scopeId:i,optimizeImports:o,runtimeGlobalName:l,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:u,isTS:f,inSSR:d,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(y){return`_${Pn[y]}`},push(y,E){h.code+=y},indent(){v(++h.indentLevel)},deindent(y=!1){y?--h.indentLevel:v(--h.indentLevel)},newline(){v(h.indentLevel)}};function v(y){h.push(`
    3 `+"  ".repeat(y))}return h}function Jh(e,t={}){const n=Zl(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:s,prefixIdentifiers:i,indent:o,deindent:l,newline:a,scopeId:c,ssr:u}=n,f=Array.from(e.helpers),d=f.length>0,h=!i&&r!=="module",v=!1,y=v?Zl(e,t):n;Zh(e,y);const E=u?"ssrRender":"render",_=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(s(`function ${E}(${_}) {`),o(),h&&(s("with (_ctx) {"),o(),d&&(s(`const { ${f.map(Uu).join(", ")} } = _Vue`),s(`
    4 `),a())),e.components.length&&(ui(e.components,"component",n),(e.directives.length||e.temps>0)&&a()),e.directives.length&&(ui(e.directives,"directive",n),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),ui(e.filters,"filter",n),a()),e.temps>0){s("let ");for(let C=0;C<e.temps;C++)s(`${C>0?", ":""}_temp${C}`)}return(e.components.length||e.directives.length||e.temps)&&(s(`
    5 `),a()),u||s("return "),e.codegenNode?Ne(e.codegenNode,n):s("null"),h&&(l(),s("}")),l(),s("}"),{ast:e,code:n.code,preamble:v?y.code:"",map:n.map?n.map.toJSON():void 0}}function Zh(e,t){const{ssr:n,prefixIdentifiers:r,push:s,newline:i,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t,c=l,u=Array.from(e.helpers);if(u.length>0&&(s(`const _Vue = ${c}
    6 `),e.hoists.length)){const f=[Po,Ao,$r,Io,Au].filter(d=>u.includes(d)).map(Uu).join(", ");s(`const { ${f} } = _Vue
    7 `)}Yh(e.hoists,t),i(),s("return ")}function ui(e,t,{helper:n,push:r,newline:s,isTS:i}){const o=n(t==="filter"?Lo:t==="component"?No:Mo);for(let l=0;l<e.length;l++){let a=e[l];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),r(`const ${hr(a,t)} = ${o}(${JSON.stringify(a)}${c?", true":""})${i?"!":""}`),l<e.length-1&&s()}}function Yh(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:s,scopeId:i,mode:o}=t;r();for(let l=0;l<e.length;l++){const a=e[l];a&&(n(`const _hoisted_${l+1} = `),Ne(a,t),r())}t.pure=!1}function Uo(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Ar(e,t,n),n&&t.deindent(),t.push("]")}function Ar(e,t,n=!1,r=!0){const{push:s,newline:i}=t;for(let o=0;o<e.length;o++){const l=e[o];J(l)?s(l):B(l)?Uo(l,t):Ne(l,t),o<e.length-1&&(n?(r&&s(","),i()):r&&s(", "))}}function Ne(e,t){if(J(e)){t.push(e);return}if($t(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Ne(e.codegenNode,t);break;case 2:Gh(e,t);break;case 4:Ku(e,t);break;case 5:Qh(e,t);break;case 12:Ne(e.codegenNode,t);break;case 8:Wu(e,t);break;case 3:e2(e,t);break;case 13:t2(e,t);break;case 14:r2(e,t);break;case 15:s2(e,t);break;case 17:i2(e,t);break;case 18:o2(e,t);break;case 19:l2(e,t);break;case 20:a2(e,t);break;case 21:Ar(e.body,t,!0,!1);break}}function Gh(e,t){t.push(JSON.stringify(e.content),e)}function Ku(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Qh(e,t){const{push:n,helper:r,pure:s}=t;s&&n(Zs),n(`${r(Ks)}(`),Ne(e.content,t),n(")")}function Wu(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];J(r)?t.push(r):Ne(r,t)}}function Xh(e,t){const{push:n}=t;if(e.type===8)n("["),Wu(e,t),n("]");else if(e.isStatic){const r=zo(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function e2(e,t){const{push:n,helper:r,pure:s}=t;s&&n(Zs),n(`${r($r)}(${JSON.stringify(e.content)})`,e)}function t2(e,t){const{push:n,helper:r,pure:s}=t,{tag:i,props:o,children:l,patchFlag:a,dynamicProps:c,directives:u,isBlock:f,disableTracking:d,isComponent:h}=e;u&&n(r(xo)+"("),f&&n(`(${r(tn)}(${d?"true":""}), `),s&&n(Zs);const v=f?Nn(t.inSSR,h):In(t.inSSR,h);n(r(v)+"(",e),Ar(n2([i,o,l,a,c]),t),n(")"),f&&n(")"),u&&(n(", "),Ne(u,t),n(")"))}function n2(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function r2(e,t){const{push:n,helper:r,pure:s}=t,i=J(e.callee)?e.callee:r(e.callee);s&&n(Zs),n(i+"(",e),Ar(e.arguments,t),n(")")}function s2(e,t){const{push:n,indent:r,deindent:s,newline:i}=t,{properties:o}=e;if(!o.length){n("{}",e);return}const l=o.length>1||!1;n(l?"{":"{ "),l&&r();for(let a=0;a<o.length;a++){const{key:c,value:u}=o[a];Xh(c,t),n(": "),Ne(u,t),a<o.length-1&&(n(","),i())}l&&s(),n(l?"}":" }")}function i2(e,t){Uo(e.elements,t)}function o2(e,t){const{push:n,indent:r,deindent:s}=t,{params:i,returns:o,body:l,newline:a,isSlot:c}=e;c&&n(`_${Pn[Ho]}(`),n("(",e),B(i)?Ar(i,t):i&&Ne(i,t),n(") => "),(a||l)&&(n("{"),r()),o?(a&&n("return "),B(o)?Uo(o,t):Ne(o,t)):l&&Ne(l,t),(a||l)&&(s(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function l2(e,t){const{test:n,consequent:r,alternate:s,newline:i}=e,{push:o,indent:l,deindent:a,newline:c}=t;if(n.type===4){const f=!zo(n.content);f&&o("("),Ku(n,t),f&&o(")")}else o("("),Ne(n,t),o(")");i&&l(),t.indentLevel++,i||o(" "),o("? "),Ne(r,t),t.indentLevel--,i&&c(),i||o(" "),o(": ");const u=s.type===19;u||t.indentLevel++,Ne(s,t),u||t.indentLevel--,i&&a(!0)}function a2(e,t){const{push:n,helper:r,indent:s,deindent:i,newline:o}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(s(),n(`${r(hs)}(-1),`),o()),n(`_cache[${e.index}] = `),Ne(e.value,t),e.isVNode&&(n(","),o(),n(`${r(hs)}(1),`),o(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const c2=ju(/^(if|else|else-if)$/,(e,t,n)=>u2(e,t,n,(r,s,i)=>{const o=n.parent.children;let l=o.indexOf(r),a=0;for(;l-->=0;){const c=o[l];c&&c.type===9&&(a+=c.branches.length)}return()=>{if(i)r.codegenNode=Gl(s,a,n);else{const c=f2(r.codegenNode);c.alternate=Gl(s,a+r.branches.length-1,n)}}}));function u2(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const s=t.exp?t.exp.loc:e.loc;n.onError(ge(28,t.loc)),t.exp=G("true",!1,s)}if(t.name==="if"){const s=Yl(e,t),i={type:9,loc:e.loc,branches:[s]};if(n.replaceNode(i),r)return r(i,s,!0)}else{const s=n.parent.children;let i=s.indexOf(e);for(;i-->=-1;){const o=s[i];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(ge(30,e.loc)),n.removeNode();const l=Yl(e,t);o.branches.push(l);const a=r&&r(o,l,!1);Js(l,n),a&&a(),n.currentNode=null}else n.onError(ge(30,e.loc));break}}}function Yl(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!qe(e,"for")?e.children:[e],userKey:Ws(e,"key"),isTemplateIf:n}}function Gl(e,t,n){return e.condition?xi(e.condition,Ql(e,t,n),we(n.helper($r),['""',"true"])):Ql(e,t,n)}function Ql(e,t,n){const{helper:r}=n,s=_e("key",G(`${t}`,!1,Ke,2)),{children:i}=e,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const a=o.codegenNode;return ys(a,s,n),a}else{let a=64;return pr(n,r(fr),Je([s]),i,a+"",void 0,void 0,!0,!1,!1,e.loc)}else{const a=o.codegenNode,c=Ph(a);return c.type===13&&Vo(c,n),ys(c,s,n),a}}function f2(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const d2=ju("for",(e,t,n)=>{const{helper:r,removeHelper:s}=n;return p2(e,t,n,i=>{const o=we(r(ko),[i.source]),l=ms(e),a=qe(e,"memo"),c=Ws(e,"key"),u=c&&(c.type===6?G(c.value.content,!0):c.exp),f=c?_e("key",u):null,d=i.source.type===4&&i.source.constType>0,h=d?64:c?128:256;return i.codegenNode=pr(n,r(fr),void 0,o,h+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let v;const{children:y}=i,E=y.length!==1||y[0].type!==1,m=vs(e)?e:l&&e.children.length===1&&vs(e.children[0])?e.children[0]:null;if(m?(v=m.codegenNode,l&&f&&ys(v,f,n)):E?v=pr(n,r(fr),f?Je([f]):void 0,e.children,64+"",void 0,void 0,!0,void 0,!1):(v=y[0].codegenNode,l&&f&&ys(v,f,n),v.isBlock!==!d&&(v.isBlock?(s(tn),s(Nn(n.inSSR,v.isComponent))):s(In(n.inSSR,v.isComponent))),v.isBlock=!d,v.isBlock?(r(tn),r(Nn(n.inSSR,v.isComponent))):r(In(n.inSSR,v.isComponent))),a){const _=An(Ri(i.parseResult,[G("_cached")]));_.body=yh([nt(["const _memo = (",a.exp,")"]),nt(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(Mu)}(_cached, _memo)) return _cached`]),nt(["const _item = ",v]),G("_item.memo = _memo"),G("return _item")]),o.arguments.push(_,G("_cache"),G(String(n.cached++)))}else o.arguments.push(An(Ri(i.parseResult),v,!0))}})});function p2(e,t,n,r){if(!t.exp){n.onError(ge(31,t.loc));return}const s=qu(t.exp);if(!s){n.onError(ge(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:o,scopes:l}=n,{source:a,value:c,key:u,index:f}=s,d={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:f,parseResult:s,children:ms(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const h=r&&r(d);return()=>{l.vFor--,h&&h()}}const h2=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Xl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,g2=/^\(|\)$/g;function qu(e,t){const n=e.loc,r=e.content,s=r.match(h2);if(!s)return;const[,i,o]=s,l={source:jr(n,o.trim(),r.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let a=i.trim().replace(g2,"").trim();const c=i.indexOf(a),u=a.match(Xl);if(u){a=a.replace(Xl,"").trim();const f=u[1].trim();let d;if(f&&(d=r.indexOf(f,c+a.length),l.key=jr(n,f,d)),u[2]){const h=u[2].trim();h&&(l.index=jr(n,h,r.indexOf(h,l.key?d+f.length:c+a.length)))}}return a&&(l.value=jr(n,a,c)),l}function jr(e,t,n){return G(t,!1,ku(e,n,t.length))}function Ri({value:e,key:t,index:n},r=[]){return _2([e,t,n,...r])}function _2(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||G("_".repeat(r+1),!1))}const ea=G("undefined",!1),m2=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=qe(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},v2=(e,t,n)=>An(e,t,!1,!0,t.length?t[0].loc:n);function y2(e,t,n=v2){t.helper(Ho);const{children:r,loc:s}=e,i=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const a=qe(e,"slot",!0);if(a){const{arg:E,exp:m}=a;E&&!Fe(E)&&(l=!0),i.push(_e(E||G("default",!0),n(m,r,s)))}let c=!1,u=!1;const f=[],d=new Set;let h=0;for(let E=0;E<r.length;E++){const m=r[E];let _;if(!ms(m)||!(_=qe(m,"slot",!0))){m.type!==3&&f.push(m);continue}if(a){t.onError(ge(37,_.loc));break}c=!0;const{children:C,loc:b}=m,{arg:S=G("default",!0),exp:V,loc:A}=_;let w;Fe(S)?w=S?S.content:"default":l=!0;const N=n(V,C,b);let L,M,I;if(L=qe(m,"if"))l=!0,o.push(xi(L.exp,Ur(S,N,h++),ea));else if(M=qe(m,/^else(-if)?$/,!0)){let H=E,F;for(;H--&&(F=r[H],F.type===3););if(F&&ms(F)&&qe(F,"if")){r.splice(E,1),E--;let se=o[o.length-1];for(;se.alternate.type===19;)se=se.alternate;se.alternate=M.exp?xi(M.exp,Ur(S,N,h++),ea):Ur(S,N,h++)}else t.onError(ge(30,M.loc))}else if(I=qe(m,"for")){l=!0;const H=I.parseResult||qu(I.exp);H?o.push(we(t.helper(ko),[H.source,An(Ri(H),Ur(S,N),!0)])):t.onError(ge(32,I.loc))}else{if(w){if(d.has(w)){t.onError(ge(38,A));continue}d.add(w),w==="default"&&(u=!0)}i.push(_e(S,N))}}if(!a){const E=(m,_)=>{const C=n(m,_,s);return t.compatConfig&&(C.isNonScopedSlot=!0),_e("default",C)};c?f.length&&f.some(m=>Ju(m))&&(u?t.onError(ge(39,f[0].loc)):i.push(E(void 0,f))):i.push(E(void 0,r))}const v=l?2:Xr(e.children)?3:1;let y=Je(i.concat(_e("_",G(v+"",!1))),s);return o.length&&(y=we(t.helper(Nu),[y,Pr(o)])),{slots:y,hasDynamicSlots:l}}function Ur(e,t,n){const r=[_e("name",e),_e("fn",t)];return n!=null&&r.push(_e("key",G(String(n),!0))),Je(r)}function Xr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Xr(n.children))return!0;break;case 9:if(Xr(n.branches))return!0;break;case 10:case 11:if(Xr(n.children))return!0;break}}return!1}function Ju(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():Ju(e.content)}const Zu=new WeakMap,b2=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:s}=e,i=e.tagType===1;let o=i?w2(e,t):`"${r}"`;const l=ie(o)&&o.callee===ds;let a,c,u,f=0,d,h,v,y=l||o===Qn||o===Oo||!i&&(r==="svg"||r==="foreignObject");if(s.length>0){const E=Yu(e,t,void 0,i,l);a=E.props,f=E.patchFlag,h=E.dynamicPropNames;const m=E.directives;v=m&&m.length?Pr(m.map(_=>E2(_,t))):void 0,E.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(o===fs&&(y=!0,f|=1024),i&&o!==Qn&&o!==fs){const{slots:m,hasDynamicSlots:_}=y2(e,t);c=m,_&&(f|=1024)}else if(e.children.length===1&&o!==Qn){const m=e.children[0],_=m.type,C=_===5||_===8;C&&Ze(m,t)===0&&(f|=1),C||_===2?c=m:c=e.children}else c=e.children;f!==0&&(u=String(f),h&&h.length&&(d=T2(h))),e.codegenNode=pr(t,o,a,c,u,d,v,!!y,!1,i,e.loc)};function w2(e,t,n=!1){let{tag:r}=e;const s=Bi(r),i=Ws(e,"is");if(i)if(s||Jt("COMPILER_IS_ON_ELEMENT",t)){const a=i.type===6?i.value&&G(i.value.content,!0):i.exp;if(a)return we(t.helper(ds),[a])}else i.type===6&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const o=!s&&qe(e,"is");if(o&&o.exp)return we(t.helper(ds),[o.exp]);const l=Lu(r)||t.isBuiltInComponent(r);return l?(n||t.helper(l),l):(t.helper(No),t.components.add(r),hr(r,"component"))}function Yu(e,t,n=e.props,r,s,i=!1){const{tag:o,loc:l,children:a}=e;let c=[];const u=[],f=[],d=a.length>0;let h=!1,v=0,y=!1,E=!1,m=!1,_=!1,C=!1,b=!1;const S=[],V=N=>{c.length&&(u.push(Je(ta(c),l)),c=[]),N&&u.push(N)},A=({key:N,value:L})=>{if(Fe(N)){const M=N.content,I=rn(M);if(I&&(!r||s)&&M.toLowerCase()!=="onclick"&&M!=="onUpdate:modelValue"&&!zt(M)&&(_=!0),I&&zt(M)&&(b=!0),L.type===20||(L.type===4||L.type===8)&&Ze(L,t)>0)return;M==="ref"?y=!0:M==="class"?E=!0:M==="style"?m=!0:M!=="key"&&!S.includes(M)&&S.push(M),r&&(M==="class"||M==="style")&&!S.includes(M)&&S.push(M)}else C=!0};for(let N=0;N<n.length;N++){const L=n[N];if(L.type===6){const{loc:M,name:I,value:H}=L;let F=!0;if(I==="ref"&&(y=!0,t.scopes.vFor>0&&c.push(_e(G("ref_for",!0),G("true")))),I==="is"&&(Bi(o)||H&&H.content.startsWith("vue:")||Jt("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(_e(G(I,!0,ku(M,0,I.length)),G(H?H.content:"",F,H?H.loc:M)))}else{const{name:M,arg:I,exp:H,loc:F}=L,se=M==="bind",X=M==="on";if(M==="slot"){r||t.onError(ge(40,F));continue}if(M==="once"||M==="memo"||M==="is"||se&&Vt(I,"is")&&(Bi(o)||Jt("COMPILER_IS_ON_ELEMENT",t))||X&&i)continue;if((se&&Vt(I,"key")||X&&d&&Vt(I,"vue:before-update"))&&(h=!0),se&&Vt(I,"ref")&&t.scopes.vFor>0&&c.push(_e(G("ref_for",!0),G("true"))),!I&&(se||X)){if(C=!0,H)if(se){if(V(),Jt("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(H);continue}u.push(H)}else V({type:14,loc:F,callee:t.helper(Bo),arguments:r?[H]:[H,"true"]});else t.onError(ge(se?34:35,F));continue}const le=t.directiveTransforms[M];if(le){const{props:oe,needRuntime:Ge}=le(L,e,t);!i&&oe.forEach(A),X&&I&&!Fe(I)?V(Je(oe,l)):c.push(...oe),Ge&&(f.push(L),$t(Ge)&&Zu.set(L,Ge))}else Kf(M)||(f.push(L),d&&(h=!0))}}let w;if(u.length?(V(),u.length>1?w=we(t.helper(ps),u,l):w=u[0]):c.length&&(w=Je(ta(c),l)),C?v|=16:(E&&!r&&(v|=2),m&&!r&&(v|=4),S.length&&(v|=8),_&&(v|=32)),!h&&(v===0||v===32)&&(y||b||f.length>0)&&(v|=512),!t.inSSR&&w)switch(w.type){case 15:let N=-1,L=-1,M=!1;for(let F=0;F<w.properties.length;F++){const se=w.properties[F].key;Fe(se)?se.content==="class"?N=F:se.content==="style"&&(L=F):se.isHandlerKey||(M=!0)}const I=w.properties[N],H=w.properties[L];M?w=we(t.helper(dr),[w]):(I&&!Fe(I.value)&&(I.value=we(t.helper(Fo),[I.value])),H&&(m||H.value.type===4&&H.value.content.trim()[0]==="["||H.value.type===17)&&(H.value=we(t.helper(Ro),[H.value])));break;case 14:break;default:w=we(t.helper(dr),[we(t.helper(Or),[w])]);break}return{props:w,directives:f,patchFlag:v,dynamicPropNames:S,shouldUseBlock:h}}function ta(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const s=e[r];if(s.key.type===8||!s.key.isStatic){n.push(s);continue}const i=s.key.content,o=t.get(i);o?(i==="style"||i==="class"||rn(i))&&C2(o,s):(t.set(i,s),n.push(s))}return n}function C2(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Pr([e.value,t.value],e.loc)}function E2(e,t){const n=[],r=Zu.get(e);r?n.push(t.helperString(r)):(t.helper(Mo),t.directives.add(e.name),n.push(hr(e.name,"directive")));const{loc:s}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=G("true",!1,s);n.push(Je(e.modifiers.map(o=>_e(o,i)),s))}return Pr(n,e.loc)}function T2(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Bi(e){return e==="component"||e==="Component"}const S2=(e,t)=>{if(vs(e)){const{children:n,loc:r}=e,{slotName:s,slotProps:i}=$2(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let l=2;i&&(o[2]=i,l=3),n.length&&(o[3]=An([],n,!1,!1,r),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=we(t.helper(Iu),o,r)}};function $2(e,t){let n='"default"',r;const s=[];for(let i=0;i<e.props.length;i++){const o=e.props[i];o.type===6?o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=ye(o.name),s.push(o))):o.name==="bind"&&Vt(o.arg,"name")?o.exp&&(n=o.exp):(o.name==="bind"&&o.arg&&Fe(o.arg)&&(o.arg.content=ye(o.arg.content)),s.push(o))}if(s.length>0){const{props:i,directives:o}=Yu(e,t,s,!1,!1);r=i,o.length&&t.onError(ge(36,o[0].loc))}return{slotName:n,slotProps:r}}const O2=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Gu=(e,t,n,r)=>{const{loc:s,modifiers:i,arg:o}=e;!e.exp&&!i.length&&n.onError(ge(35,s));let l;if(o.type===4)if(o.isStatic){let f=o.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const d=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?bn(ye(f)):`on:${f}`;l=G(d,!0,o.loc)}else l=nt([`${n.helperString(Li)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(Li)}(`),l.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const f=xu(a.content),d=!(f||O2.test(a.content)),h=a.content.includes(";");(d||c&&f)&&(a=nt([`${d?"$event":"(...args)"} => ${h?"{":"("}`,a,h?"}":")"]))}let u={props:[_e(l,a||G("() => {}",!1,s))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(f=>f.key.isHandlerKey=!0),u},P2=(e,t,n)=>{const{exp:r,modifiers:s,loc:i}=e,o=e.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),s.includes("camel")&&(o.type===4?o.isStatic?o.content=ye(o.content):o.content=`${n.helperString(Mi)}(${o.content})`:(o.children.unshift(`${n.helperString(Mi)}(`),o.children.push(")"))),n.inSSR||(s.includes("prop")&&na(o,"."),s.includes("attr")&&na(o,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(ge(34,i)),{props:[_e(o,G("",!0,i))]}):{props:[_e(o,r)]}},na=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},A2=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,s=!1;for(let i=0;i<n.length;i++){const o=n[i];if(ci(o)){s=!0;for(let l=i+1;l<n.length;l++){const a=n[l];if(ci(a))r||(r=n[i]=nt([o],o.loc)),r.children.push(" + ",a),n.splice(l,1),l--;else{r=void 0;break}}}}if(!(!s||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const o=n[i];if(ci(o)||o.type===8){const l=[];(o.type!==2||o.content!==" ")&&l.push(o),!t.ssr&&Ze(o,t)===0&&l.push(1+""),n[i]={type:12,content:o,loc:o.loc,codegenNode:we(t.helper(Io),l)}}}}},ra=new WeakSet,I2=(e,t)=>{if(e.type===1&&qe(e,"once",!0))return ra.has(e)||t.inVOnce||t.inSSR?void 0:(ra.add(e),t.inVOnce=!0,t.helper(hs),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},Qu=(e,t,n)=>{const{exp:r,arg:s}=e;if(!r)return n.onError(ge(41,e.loc)),Kr();const i=r.loc.source,o=r.type===4?r.content:i,l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased")return n.onError(ge(44,r.loc)),Kr();const a=!1;if(!o.trim()||!xu(o)&&!a)return n.onError(ge(42,r.loc)),Kr();const c=s||G("modelValue",!0),u=s?Fe(s)?`onUpdate:${ye(s.content)}`:nt(['"onUpdate:" + ',s]):"onUpdate:modelValue";let f;const d=n.isTS?"($event: any)":"$event";f=nt([`${d} => ((`,r,") = $event)"]);const h=[_e(c,e.exp),_e(u,f)];if(e.modifiers.length&&t.tagType===1){const v=e.modifiers.map(E=>(zo(E)?E:JSON.stringify(E))+": true").join(", "),y=s?Fe(s)?`${s.content}Modifiers`:nt([s,' + "Modifiers"']):"modelModifiers";h.push(_e(y,G(`{ ${v} }`,!1,e.loc,2)))}return Kr(h)};function Kr(e=[]){return{props:e}}const N2=/[\w).+\-_$\]]/,M2=(e,t)=>{!Jt("COMPILER_FILTER",t)||(e.type===5&&ws(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&ws(n.exp,t)}))};function ws(e,t){if(e.type===4)sa(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?sa(r,t):r.type===8?ws(e,t):r.type===5&&ws(r.content,t))}}function sa(e,t){const n=e.content;let r=!1,s=!1,i=!1,o=!1,l=0,a=0,c=0,u=0,f,d,h,v,y=[];for(h=0;h<n.length;h++)if(d=f,f=n.charCodeAt(h),r)f===39&&d!==92&&(r=!1);else if(s)f===34&&d!==92&&(s=!1);else if(i)f===96&&d!==92&&(i=!1);else if(o)f===47&&d!==92&&(o=!1);else if(f===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!l&&!a&&!c)v===void 0?(u=h+1,v=n.slice(0,h).trim()):E();else{switch(f){case 34:s=!0;break;case 39:r=!0;break;case 96:i=!0;break;case 40:c++;break;case 41:c--;break;case 91:a++;break;case 93:a--;break;case 123:l++;break;case 125:l--;break}if(f===47){let m=h-1,_;for(;m>=0&&(_=n.charAt(m),_===" ");m--);(!_||!N2.test(_))&&(o=!0)}}v===void 0?v=n.slice(0,h).trim():u!==0&&E();function E(){y.push(n.slice(u,h).trim()),u=h+1}if(y.length){for(h=0;h<y.length;h++)v=L2(v,y[h],t);e.content=v}}function L2(e,t,n){n.helper(Lo);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${hr(t,"filter")}(${e})`;{const s=t.slice(0,r),i=t.slice(r+1);return n.filters.add(s),`${hr(s,"filter")}(${e}${i!==")"?","+i:i}`}}const ia=new WeakSet,x2=(e,t)=>{if(e.type===1){const n=qe(e,"memo");return!n||ia.has(e)?void 0:(ia.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Vo(r,t),e.codegenNode=we(t.helper(Do),[n.exp,An(void 0,r),"_cache",String(t.cached++)]))})}};function k2(e){return[[I2,c2,x2,d2,M2,S2,b2,m2,A2],{on:Gu,bind:P2,model:Qu}]}function F2(e,t={}){const n=t.onError||$o,r=t.mode==="module";t.prefixIdentifiers===!0?n(ge(47)):r&&n(ge(48));const s=!1;t.cacheHandlers&&n(ge(49)),t.scopeId&&!r&&n(ge(50));const i=J(e)?Nh(e,t):e,[o,l]=k2();return Kh(i,ne({},t,{prefixIdentifiers:s,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:ne({},l,t.directiveTransforms||{})})),Jh(i,ne({},t,{prefixIdentifiers:s}))}const R2=()=>({props:[]}),Xu=Symbol(""),ef=Symbol(""),tf=Symbol(""),nf=Symbol(""),Hi=Symbol(""),rf=Symbol(""),sf=Symbol(""),of=Symbol(""),lf=Symbol(""),af=Symbol("");_h({[Xu]:"vModelRadio",[ef]:"vModelCheckbox",[tf]:"vModelText",[nf]:"vModelSelect",[Hi]:"vModelDynamic",[rf]:"withModifiers",[sf]:"withKeys",[of]:"vShow",[lf]:"Transition",[af]:"TransitionGroup"});let hn;function B2(e,t=!1){return hn||(hn=document.createElement("div")),t?(hn.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,hn.children[0].getAttribute("foo")):(hn.innerHTML=e,hn.textContent)}const H2=Be("style,iframe,script,noscript",!0),D2={isVoidTag:id,isNativeTag:e=>rd(e)||sd(e),isPreTag:e=>e==="pre",decodeEntities:B2,isBuiltInComponent:e=>{if(_n(e,"Transition"))return lf;if(_n(e,"TransitionGroup"))return af},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(H2(e))return 2}return 0}},V2=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:G("style",!0,t.loc),exp:z2(t.value.content,t.loc),modifiers:[],loc:t.loc})})},z2=(e,t)=>{const n=za(e);return G(JSON.stringify(n),!1,t,3)};function St(e,t){return ge(e,t)}const j2=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(St(53,s)),t.children.length&&(n.onError(St(54,s)),t.children.length=0),{props:[_e(G("innerHTML",!0,s),r||G("",!0))]}},U2=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(St(55,s)),t.children.length&&(n.onError(St(56,s)),t.children.length=0),{props:[_e(G("textContent",!0),r?Ze(r,n)>0?r:we(n.helperString(Ks),[r],s):G("",!0))]}},K2=(e,t,n)=>{const r=Qu(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(St(58,e.arg.loc));const{tag:s}=t,i=n.isCustomElement(s);if(s==="input"||s==="textarea"||s==="select"||i){let o=tf,l=!1;if(s==="input"||i){const a=Ws(t,"type");if(a){if(a.type===7)o=Hi;else if(a.value)switch(a.value.content){case"radio":o=Xu;break;case"checkbox":o=ef;break;case"file":l=!0,n.onError(St(59,e.loc));break}}else Sh(t)&&(o=Hi)}else s==="select"&&(o=nf);l||(r.needRuntime=n.helper(o))}else n.onError(St(57,e.loc));return r.props=r.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),r},W2=Be("passive,once,capture"),q2=Be("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),J2=Be("left,right"),cf=Be("onkeyup,onkeydown,onkeypress",!0),Z2=(e,t,n,r)=>{const s=[],i=[],o=[];for(let l=0;l<t.length;l++){const a=t[l];a==="native"&&gr("COMPILER_V_ON_NATIVE",n)||W2(a)?o.push(a):J2(a)?Fe(e)?cf(e.content)?s.push(a):i.push(a):(s.push(a),i.push(a)):q2(a)?i.push(a):s.push(a)}return{keyModifiers:s,nonKeyModifiers:i,eventOptionModifiers:o}},oa=(e,t)=>Fe(e)&&e.content.toLowerCase()==="onclick"?G(t,!0):e.type!==4?nt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Y2=(e,t,n)=>Gu(e,t,n,r=>{const{modifiers:s}=e;if(!s.length)return r;let{key:i,value:o}=r.props[0];const{keyModifiers:l,nonKeyModifiers:a,eventOptionModifiers:c}=Z2(i,s,n,e.loc);if(a.includes("right")&&(i=oa(i,"onContextmenu")),a.includes("middle")&&(i=oa(i,"onMouseup")),a.length&&(o=we(n.helper(rf),[o,JSON.stringify(a)])),l.length&&(!Fe(i)||cf(i.content))&&(o=we(n.helper(sf),[o,JSON.stringify(l)])),c.length){const u=c.map(on).join("");i=Fe(i)?G(`${i.content}${u}`,!0):nt(["(",i,`) + "${u}"`])}return{props:[_e(i,o)]}}),G2=(e,t,n)=>{const{exp:r,loc:s}=e;return r||n.onError(St(61,s)),{props:[],needRuntime:n.helper(of)}},Q2=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},X2=[V2],e1={cloak:R2,html:j2,text:U2,model:K2,on:Y2,show:G2};function t1(e,t={}){return F2(e,ne({},D2,t,{nodeTransforms:[Q2,...X2,...t.nodeTransforms||[]],directiveTransforms:ne({},e1,t.directiveTransforms||{}),transformHoist:null}))}const la=Object.create(null);function n1(e,t){if(!J(e))if(e.nodeType)e=e.innerHTML;else return Ae;const n=e,r=la[n];if(r)return r;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const s=ne({hoistStatic:!0,onError:void 0,onWarn:Ae},t);!s.isCustomElement&&typeof customElements<"u"&&(s.isCustomElement=l=>!!customElements.get(l));const{code:i}=t1(e,s),o=new Function("Vue",i)(uh);return o._rc=!0,la[n]=o}eu(n1);var r1=Object.defineProperty,s1=Object.defineProperties,i1=Object.getOwnPropertyDescriptors,aa=Object.getOwnPropertySymbols,o1=Object.prototype.hasOwnProperty,l1=Object.prototype.propertyIsEnumerable,ca=(e,t,n)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a1=(e,t)=>{for(var n in t||(t={}))o1.call(t,n)&&ca(e,n,t[n]);if(aa)for(var n of aa(t))l1.call(t,n)&&ca(e,n,t[n]);return e},c1=(e,t)=>s1(e,i1(t));function V3(e,t){var n;const r=oc();return vc(()=>{r.value=e()},c1(a1({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Cr(r)}var ua;const cn=typeof window<"u",u1=e=>typeof e=="string",Cs=()=>{},f1=cn&&((ua=window==null?void 0:window.navigator)==null?void 0:ua.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function mr(e){return typeof e=="function"?e():ae(e)}function d1(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}function p1(e,t={}){let n,r,s=Cs;const i=l=>{clearTimeout(l),s(),s=Cs};return l=>{const a=mr(e),c=mr(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((u,f)=>{s=t.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(l())},c)),n=setTimeout(()=>{r&&i(r),r=null,u(l())},a)})}}function h1(e){return e}function Ko(e){return Gi()?(Wa(e),!0):!1}function g1(e,t=200,n={}){return d1(p1(t,n),e)}function z3(e,t=200,n={}){const r=me(e.value),s=g1(()=>{r.value=e.value},t,n);return at(e,()=>s()),r}function _1(e,t=!0){He()?an(e):t?e():Rn(e)}function m1(e,t,n={}){const{immediate:r=!0}=n,s=me(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function l(){s.value=!1,o()}function a(...c){o(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...c)},mr(t))}return r&&(s.value=!0,cn&&a()),Ko(l),{isPending:Cr(s),start:a,stop:l}}function mn(e){var t;const n=mr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ys=cn?window:void 0,v1=cn?window.document:void 0;function Zt(...e){let t,n,r,s;if(u1(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=Ys):[t,n,r,s]=e,!t)return Cs;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,d,h)=>(u.addEventListener(f,d,h),()=>u.removeEventListener(f,d,h)),a=at(()=>[mn(t),mr(s)],([u,f])=>{o(),u&&i.push(...n.flatMap(d=>r.map(h=>l(u,d,h,f))))},{immediate:!0,flush:"post"}),c=()=>{a(),o()};return Ko(c),c}let fa=!1;function j3(e,t,n={}){const{window:r=Ys,ignore:s=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;f1&&!fa&&(fa=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Cs)));let l=!0;const a=d=>s.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=mn(h);return v&&(d.target===v||d.composedPath().includes(v))}}),u=[Zt(r,"click",d=>{const h=mn(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(l=!a(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:i}),Zt(r,"pointerdown",d=>{const h=mn(e);h&&(l=!d.composedPath().includes(h)&&!a(d))},{passive:!0}),o&&Zt(r,"blur",d=>{var h;const v=mn(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>u.forEach(d=>d())}function y1(e,t=!1){const n=me(),r=()=>n.value=Boolean(e());return r(),_1(r,t),n}const Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vi="__vueuse_ssr_handlers__";Di[Vi]=Di[Vi]||{};Di[Vi];function U3({document:e=v1}={}){if(!e)return me("visible");const t=me(e.visibilityState);return Zt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var da=Object.getOwnPropertySymbols,b1=Object.prototype.hasOwnProperty,w1=Object.prototype.propertyIsEnumerable,C1=(e,t)=>{var n={};for(var r in e)b1.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&da)for(var r of da(e))t.indexOf(r)<0&&w1.call(e,r)&&(n[r]=e[r]);return n};function K3(e,t,n={}){const r=n,{window:s=Ys}=r,i=C1(r,["window"]);let o;const l=y1(()=>s&&"ResizeObserver"in s),a=()=>{o&&(o.disconnect(),o=void 0)},c=at(()=>mn(e),f=>{a(),l.value&&s&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Ko(u),{isSupported:l,stop:u}}var pa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(pa||(pa={}));var E1=Object.defineProperty,ha=Object.getOwnPropertySymbols,T1=Object.prototype.hasOwnProperty,S1=Object.prototype.propertyIsEnumerable,ga=(e,t,n)=>t in e?E1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$1=(e,t)=>{for(var n in t||(t={}))T1.call(t,n)&&ga(e,n,t[n]);if(ha)for(var n of ha(t))S1.call(t,n)&&ga(e,n,t[n]);return e};const O1={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};$1({linear:h1},O1);function W3({window:e=Ys}={}){if(!e)return me(!1);const t=me(e.document.hasFocus());return Zt(e,"blur",()=>{t.value=!1}),Zt(e,"focus",()=>{t.value=!0}),t}var P1=typeof global=="object"&&global&&global.Object===Object&&global;const A1=P1;var I1=typeof self=="object"&&self&&self.Object===Object&&self,N1=A1||I1||Function("return this")();const Wo=N1;var M1=Wo.Symbol;const Mn=M1;var uf=Object.prototype,L1=uf.hasOwnProperty,x1=uf.toString,jn=Mn?Mn.toStringTag:void 0;function k1(e){var t=L1.call(e,jn),n=e[jn];try{e[jn]=void 0;var r=!0}catch{}var s=x1.call(e);return r&&(t?e[jn]=n:delete e[jn]),s}var F1=Object.prototype,R1=F1.toString;function B1(e){return R1.call(e)}var H1="[object Null]",D1="[object Undefined]",_a=Mn?Mn.toStringTag:void 0;function ff(e){return e==null?e===void 0?D1:H1:_a&&_a in Object(e)?k1(e):B1(e)}function V1(e){return e!=null&&typeof e=="object"}var z1="[object Symbol]";function qo(e){return typeof e=="symbol"||V1(e)&&ff(e)==z1}function j1(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var U1=Array.isArray;const Jo=U1;var K1=1/0,ma=Mn?Mn.prototype:void 0,va=ma?ma.toString:void 0;function df(e){if(typeof e=="string")return e;if(Jo(e))return j1(e,df)+"";if(qo(e))return va?va.call(e):"";var t=e+"";return t=="0"&&1/e==-K1?"-0":t}function Es(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W1="[object AsyncFunction]",q1="[object Function]",J1="[object GeneratorFunction]",Z1="[object Proxy]";function Y1(e){if(!Es(e))return!1;var t=ff(e);return t==q1||t==J1||t==W1||t==Z1}var G1=Wo["__core-js_shared__"];const fi=G1;var ya=function(){var e=/[^.]+$/.exec(fi&&fi.keys&&fi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Q1(e){return!!ya&&ya in e}var X1=Function.prototype,eg=X1.toString;function tg(e){if(e!=null){try{return eg.call(e)}catch{}try{return e+""}catch{}}return""}var ng=/[\\^$.*+?()[\]{}|]/g,rg=/^\[object .+?Constructor\]$/,sg=Function.prototype,ig=Object.prototype,og=sg.toString,lg=ig.hasOwnProperty,ag=RegExp("^"+og.call(lg).replace(ng,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cg(e){if(!Es(e)||Q1(e))return!1;var t=Y1(e)?ag:rg;return t.test(tg(e))}function ug(e,t){return e==null?void 0:e[t]}function Zo(e,t){var n=ug(e,t);return cg(n)?n:void 0}var fg=function(){try{var e=Zo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ba=fg;var dg=9007199254740991,pg=/^(?:0|[1-9]\d*)$/;function hg(e,t){var n=typeof e;return t=t==null?dg:t,!!t&&(n=="number"||n!="symbol"&&pg.test(e))&&e>-1&&e%1==0&&e<t}function gg(e,t,n){t=="__proto__"&&ba?ba(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function pf(e,t){return e===t||e!==e&&t!==t}var _g=Object.prototype,mg=_g.hasOwnProperty;function vg(e,t,n){var r=e[t];(!(mg.call(e,t)&&pf(r,n))||n===void 0&&!(t in e))&&gg(e,t,n)}var yg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bg=/^\w*$/;function wg(e,t){if(Jo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qo(e)?!0:bg.test(e)||!yg.test(e)||t!=null&&e in Object(t)}var Cg=Zo(Object,"create");const vr=Cg;function Eg(){this.__data__=vr?vr(null):{},this.size=0}function Tg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sg="__lodash_hash_undefined__",$g=Object.prototype,Og=$g.hasOwnProperty;function Pg(e){var t=this.__data__;if(vr){var n=t[e];return n===Sg?void 0:n}return Og.call(t,e)?t[e]:void 0}var Ag=Object.prototype,Ig=Ag.hasOwnProperty;function Ng(e){var t=this.__data__;return vr?t[e]!==void 0:Ig.call(t,e)}var Mg="__lodash_hash_undefined__";function Lg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vr&&t===void 0?Mg:t,this}function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}nn.prototype.clear=Eg;nn.prototype.delete=Tg;nn.prototype.get=Pg;nn.prototype.has=Ng;nn.prototype.set=Lg;function xg(){this.__data__=[],this.size=0}function Gs(e,t){for(var n=e.length;n--;)if(pf(e[n][0],t))return n;return-1}var kg=Array.prototype,Fg=kg.splice;function Rg(e){var t=this.__data__,n=Gs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Fg.call(t,n,1),--this.size,!0}function Bg(e){var t=this.__data__,n=Gs(t,e);return n<0?void 0:t[n][1]}function Hg(e){return Gs(this.__data__,e)>-1}function Dg(e,t){var n=this.__data__,r=Gs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Bn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bn.prototype.clear=xg;Bn.prototype.delete=Rg;Bn.prototype.get=Bg;Bn.prototype.has=Hg;Bn.prototype.set=Dg;var Vg=Zo(Wo,"Map");const zg=Vg;function jg(){this.size=0,this.__data__={hash:new nn,map:new(zg||Bn),string:new nn}}function Ug(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qs(e,t){var n=e.__data__;return Ug(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Kg(e){var t=Qs(this,e).delete(e);return this.size-=t?1:0,t}function Wg(e){return Qs(this,e).get(e)}function qg(e){return Qs(this,e).has(e)}function Jg(e,t){var n=Qs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function un(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}un.prototype.clear=jg;un.prototype.delete=Kg;un.prototype.get=Wg;un.prototype.has=qg;un.prototype.set=Jg;var Zg="Expected a function";function Yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zg);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(Yo.Cache||un),n}Yo.Cache=un;var Yg=500;function Gg(e){var t=Yo(e,function(r){return n.size===Yg&&n.clear(),r}),n=t.cache;return t}var Qg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xg=/\\(\\)?/g,e_=Gg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Qg,function(n,r,s,i){t.push(s?i.replace(Xg,"$1"):r||n)}),t});const t_=e_;function n_(e){return e==null?"":df(e)}function hf(e,t){return Jo(e)?e:wg(e,t)?[e]:t_(n_(e))}var r_=1/0;function gf(e){if(typeof e=="string"||qo(e))return e;var t=e+"";return t=="0"&&1/e==-r_?"-0":t}function s_(e,t){t=hf(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[gf(t[n++])];return n&&n==r?e:void 0}function _f(e,t,n){var r=e==null?void 0:s_(e,t);return r===void 0?n:r}function i_(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];r[s[0]]=s[1]}return r}function o_(e,t,n,r){if(!Es(e))return e;t=hf(t,e);for(var s=-1,i=t.length,o=i-1,l=e;l!=null&&++s<i;){var a=gf(t[s]),c=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(s!=o){var u=l[a];c=r?r(u,a,l):void 0,c===void 0&&(c=Es(u)?u:hg(t[s+1])?[]:{})}vg(l,a,c),l=l[a]}return e}function l_(e,t,n){return e==null?e:o_(e,t,n)}const a_=e=>e===void 0,q3=e=>typeof e=="boolean",mf=e=>typeof e=="number",wa=e=>typeof Element>"u"?!1:e instanceof Element,c_=e=>J(e)?!Number.isNaN(Number(e)):!1,Ca=e=>Object.keys(e),J3=(e,t,n)=>({get value(){return _f(e,t,n)},set value(r){l_(e,t,r)}}),vf=(e="")=>e.split(" ").filter(t=>!!t.trim()),Z3=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ea=(e,t)=>{!e||!t.trim()||e.classList.add(...vf(t))},Ts=(e,t)=>{!e||!t.trim()||e.classList.remove(...vf(t))},Un=(e,t)=>{var n;if(!cn||!e||!t)return"";let r=ye(t);r==="float"&&(r="cssFloat");try{const s=e.style[r];if(s)return s;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function u_(e,t="px"){if(!e)return"";if(mf(e)||c_(e))return`${e}${t}`;if(J(e))return e}/*! Element Plus Icons Vue v2.1.0 */var Q=(e,t)=>{let n=e.__vccOpts||e;for(let[r,s]of t)n[r]=s;return n},f_={name:"ArrowDown"},d_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},p_=K("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),h_=[p_];function g_(e,t,n,r,s,i){return W(),Y("svg",d_,h_)}var Y3=Q(f_,[["render",g_],["__file","arrow-down.vue"]]),__={name:"ArrowLeft"},m_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},v_=K("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),y_=[v_];function b_(e,t,n,r,s,i){return W(),Y("svg",m_,y_)}var G3=Q(__,[["render",b_],["__file","arrow-left.vue"]]),w_={name:"ArrowRight"},C_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},E_=K("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),T_=[E_];function S_(e,t,n,r,s,i){return W(),Y("svg",C_,T_)}var Q3=Q(w_,[["render",S_],["__file","arrow-right.vue"]]),$_={name:"ArrowUp"},O_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},P_=K("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),A_=[P_];function I_(e,t,n,r,s,i){return W(),Y("svg",O_,A_)}var X3=Q($_,[["render",I_],["__file","arrow-up.vue"]]),N_={name:"Back"},M_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},L_=K("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),x_=K("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),k_=[L_,x_];function F_(e,t,n,r,s,i){return W(),Y("svg",M_,k_)}var R_=Q(N_,[["render",F_],["__file","back.vue"]]),B_={name:"Bottom"},H_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D_=K("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"},null,-1),V_=[D_];function z_(e,t,n,r,s,i){return W(),Y("svg",H_,V_)}var j_=Q(B_,[["render",z_],["__file","bottom.vue"]]),U_={name:"Check"},K_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W_=K("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),q_=[W_];function J_(e,t,n,r,s,i){return W(),Y("svg",K_,q_)}var e6=Q(U_,[["render",J_],["__file","check.vue"]]),Z_={name:"CircleCheck"},Y_={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},G_=K("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Q_=K("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),X_=[G_,Q_];function em(e,t,n,r,s,i){return W(),Y("svg",Y_,X_)}var yf=Q(Z_,[["render",em],["__file","circle-check.vue"]]),tm={name:"CircleCloseFilled"},nm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rm=K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),sm=[rm];function im(e,t,n,r,s,i){return W(),Y("svg",nm,sm)}var bf=Q(tm,[["render",im],["__file","circle-close-filled.vue"]]),om={name:"CircleClose"},lm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},am=K("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),cm=K("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),um=[am,cm];function fm(e,t,n,r,s,i){return W(),Y("svg",lm,um)}var dm=Q(om,[["render",fm],["__file","circle-close.vue"]]),pm={name:"Close"},hm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gm=K("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_m=[gm];function mm(e,t,n,r,s,i){return W(),Y("svg",hm,_m)}var wf=Q(pm,[["render",mm],["__file","close.vue"]]),vm={name:"CoffeeCup"},ym={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bm=K("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32v32zm0 64v256a128 128 0 1 0 0-256zM96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64zm32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192H128z"},null,-1),wm=[bm];function Cm(e,t,n,r,s,i){return W(),Y("svg",ym,wm)}var Em=Q(vm,[["render",Cm],["__file","coffee-cup.vue"]]),Tm={name:"Coffee"},Sm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$m=K("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304L822.592 192zm-64.128 0 4.544-64H260.736l4.544 64h493.184zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784zm68.736 64 36.544 512H708.16l36.544-512H279.04z"},null,-1),Om=[$m];function Pm(e,t,n,r,s,i){return W(),Y("svg",Sm,Om)}var t6=Q(Tm,[["render",Pm],["__file","coffee.vue"]]),Am={name:"DArrowLeft"},Im={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nm=K("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Mm=[Nm];function Lm(e,t,n,r,s,i){return W(),Y("svg",Im,Mm)}var n6=Q(Am,[["render",Lm],["__file","d-arrow-left.vue"]]),xm={name:"DArrowRight"},km={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fm=K("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Rm=[Fm];function Bm(e,t,n,r,s,i){return W(),Y("svg",km,Rm)}var r6=Q(xm,[["render",Bm],["__file","d-arrow-right.vue"]]),Hm={name:"Delete"},Dm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vm=K("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),zm=[Vm];function jm(e,t,n,r,s,i){return W(),Y("svg",Dm,zm)}var Um=Q(Hm,[["render",jm],["__file","delete.vue"]]),Km={name:"DocumentCopy"},Wm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qm=K("path",{fill:"currentColor",d:"M128 320v576h576V320H128zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zM960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32zM256 672h320v64H256v-64zm0-192h320v64H256v-64z"},null,-1),Jm=[qm];function Zm(e,t,n,r,s,i){return W(),Y("svg",Wm,Jm)}var s6=Q(Km,[["render",Zm],["__file","document-copy.vue"]]),Ym={name:"Edit"},Gm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qm=K("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),Xm=K("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),e4=[Qm,Xm];function t4(e,t,n,r,s,i){return W(),Y("svg",Gm,e4)}var n4=Q(Ym,[["render",t4],["__file","edit.vue"]]),r4={name:"Help"},s4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},i4=K("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752zm45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992l-91.008-90.944zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),o4=[i4];function l4(e,t,n,r,s,i){return W(),Y("svg",s4,o4)}var i6=Q(r4,[["render",l4],["__file","help.vue"]]),a4={name:"Hide"},c4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},u4=K("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),f4=K("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),d4=[u4,f4];function p4(e,t,n,r,s,i){return W(),Y("svg",c4,d4)}var o6=Q(a4,[["render",p4],["__file","hide.vue"]]),h4={name:"InfoFilled"},g4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_4=K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),m4=[_4];function v4(e,t,n,r,s,i){return W(),Y("svg",g4,m4)}var Cf=Q(h4,[["render",v4],["__file","info-filled.vue"]]),y4={name:"Loading"},b4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},w4=K("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),C4=[w4];function E4(e,t,n,r,s,i){return W(),Y("svg",b4,C4)}var T4=Q(y4,[["render",E4],["__file","loading.vue"]]),S4={name:"Money"},$4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},O4=K("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640h64z"},null,-1),P4=K("path",{fill:"currentColor",d:"M768 192H128v448h640V192zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"},null,-1),A4=K("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320zm0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192z"},null,-1),I4=[O4,P4,A4];function N4(e,t,n,r,s,i){return W(),Y("svg",$4,I4)}var l6=Q(S4,[["render",N4],["__file","money.vue"]]),M4={name:"MoreFilled"},L4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},x4=K("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),k4=[x4];function F4(e,t,n,r,s,i){return W(),Y("svg",L4,k4)}var a6=Q(M4,[["render",F4],["__file","more-filled.vue"]]),R4={name:"PictureFilled"},B4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},H4=K("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),D4=[H4];function V4(e,t,n,r,s,i){return W(),Y("svg",B4,D4)}var c6=Q(R4,[["render",V4],["__file","picture-filled.vue"]]),z4={name:"Plus"},j4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},U4=K("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),K4=[U4];function W4(e,t,n,r,s,i){return W(),Y("svg",j4,K4)}var q4=Q(z4,[["render",W4],["__file","plus.vue"]]),J4={name:"QuestionFilled"},Z4={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Y4=K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),G4=[Y4];function Q4(e,t,n,r,s,i){return W(),Y("svg",Z4,G4)}var u6=Q(J4,[["render",Q4],["__file","question-filled.vue"]]),X4={name:"Setting"},ev={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tv=K("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384zm0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"},null,-1),nv=[tv];function rv(e,t,n,r,s,i){return W(),Y("svg",ev,nv)}var f6=Q(X4,[["render",rv],["__file","setting.vue"]]),sv={name:"Share"},iv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ov=K("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"},null,-1),lv=[ov];function av(e,t,n,r,s,i){return W(),Y("svg",iv,lv)}var d6=Q(sv,[["render",av],["__file","share.vue"]]),cv={name:"SuccessFilled"},uv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fv=K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),dv=[fv];function pv(e,t,n,r,s,i){return W(),Y("svg",uv,dv)}var Go=Q(cv,[["render",pv],["__file","success-filled.vue"]]),hv={name:"Tools"},gv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_v=K("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0z"},null,-1),mv=[_v];function vv(e,t,n,r,s,i){return W(),Y("svg",gv,mv)}var yv=Q(hv,[["render",vv],["__file","tools.vue"]]),bv={name:"Top"},wv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cv=K("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"},null,-1),Ev=[Cv];function Tv(e,t,n,r,s,i){return W(),Y("svg",wv,Ev)}var Sv=Q(bv,[["render",Tv],["__file","top.vue"]]),$v={name:"UploadFilled"},Ov={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pv=K("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z"},null,-1),Av=[Pv];function Iv(e,t,n,r,s,i){return W(),Y("svg",Ov,Av)}var p6=Q($v,[["render",Iv],["__file","upload-filled.vue"]]),Nv={name:"Upload"},Mv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lv=K("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),xv=[Lv];function kv(e,t,n,r,s,i){return W(),Y("svg",Mv,xv)}var Fv=Q(Nv,[["render",kv],["__file","upload.vue"]]),Rv={name:"User"},Bv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hv=K("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512zm320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0z"},null,-1),Dv=[Hv];function Vv(e,t,n,r,s,i){return W(),Y("svg",Bv,Dv)}var h6=Q(Rv,[["render",Vv],["__file","user.vue"]]),zv={name:"View"},jv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uv=K("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Kv=[Uv];function Wv(e,t,n,r,s,i){return W(),Y("svg",jv,Kv)}var qv=Q(zv,[["render",Wv],["__file","view.vue"]]),Jv={name:"WarningFilled"},Zv={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yv=K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),Gv=[Yv];function Qv(e,t,n,r,s,i){return W(),Y("svg",Zv,Gv)}var Ef=Q(Jv,[["render",Qv],["__file","warning-filled.vue"]]);const Tf="__epPropKey",er=e=>e,Xv=e=>ie(e)&&!!e[Tf],Sf=(e,t)=>{if(!ie(e)||Xv(e))return e;const{values:n,required:r,default:s,type:i,validator:o}=e,a={type:i,required:!!r,validator:n||o?c=>{let u=!1,f=[];if(n&&(f=Array.from(n),te(e,"default")&&f.push(s),u||(u=f.includes(c))),o&&(u||(u=o(c))),!u&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");uc(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[Tf]:!0};return te(e,"default")&&(a.default=s),a},$f=e=>i_(Object.entries(e).map(([t,n])=>[t,Sf(n,t)])),e3=er([String,Object,Function]),t3={Close:wf},g6={Close:wf,SuccessFilled:Go,InfoFilled:Cf,WarningFilled:Ef,CircleCloseFilled:bf},Ta={success:Go,warning:Ef,error:bf,info:Cf},_6={validating:T4,success:yf,error:dm},n3=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},r3=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),m6=e=>(e.install=Ae,e),di={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},s3=["","default","small","large"],v6={large:40,default:32,small:24};var i3={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const o3=e=>(t,n)=>l3(t,n,ae(e)),l3=(e,t,n)=>_f(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>{var i;return`${(i=t==null?void 0:t[s])!=null?i:`{${s}}`}`}),a3=e=>{const t=he(()=>ae(e).name),n=ve(e)?e:me(e);return{lang:t,locale:n,t:o3(e)}},Of=Symbol("localeContextKey"),c3=e=>{const t=e||ct(Of,me());return a3(he(()=>t.value||i3))},es="el",u3="is-",kt=(e,t,n,r,s)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),s&&(i+=`--${s}`),i},Pf=Symbol("namespaceContextKey"),f3=e=>{const t=e||(He()?ct(Pf,me(es)):me(es));return he(()=>ae(t)||es)},Af=(e,t)=>{const n=f3(t);return{namespace:n,b:(y="")=>kt(n.value,e,y,"",""),e:y=>y?kt(n.value,e,"",y,""):"",m:y=>y?kt(n.value,e,"","",y):"",be:(y,E)=>y&&E?kt(n.value,e,y,E,""):"",em:(y,E)=>y&&E?kt(n.value,e,"",y,E):"",bm:(y,E)=>y&&E?kt(n.value,e,y,"",E):"",bem:(y,E,m)=>y&&E&&m?kt(n.value,e,y,E,m):"",is:(y,...E)=>{const m=E.length>=1?E[0]:!0;return y&&m?`${u3}${y}`:""},cssVar:y=>{const E={};for(const m in y)y[m]&&(E[`--${n.value}-${m}`]=y[m]);return E},cssVarName:y=>`--${n.value}-${y}`,cssVarBlock:y=>{const E={};for(const m in y)y[m]&&(E[`--${n.value}-${e}-${m}`]=y[m]);return E},cssVarBlockName:y=>`--${n.value}-${e}-${y}`}},Sa=me(0),If=2e3,Nf=Symbol("zIndexContextKey"),d3=e=>{const t=e||(He()?ct(Nf,void 0):void 0),n=he(()=>{const i=ae(t);return mf(i)?i:If}),r=he(()=>n.value+Sa.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Sa.value++,r.value)}},y6=Sf({type:String,values:s3,required:!1}),Mf=Symbol("size"),b6=()=>{const e=ct(Mf,{});return he(()=>ae(e.size)||"")},Lf=Symbol(),Ss=me();function xf(e,t=void 0){const n=He()?ct(Lf,Ss):Ss;return e?he(()=>{var r,s;return(s=(r=n.value)==null?void 0:r[e])!=null?s:t}):n}function kf(e,t){const n=xf(),r=Af(e,he(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||es})),s=c3(he(()=>{var l;return(l=n.value)==null?void 0:l.locale})),i=d3(he(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||If})),o=he(()=>{var l;return ae(t)||((l=n.value)==null?void 0:l.size)||""});return p3(he(()=>ae(n)||{})),{ns:r,locale:s,zIndex:i,size:o}}const p3=(e,t,n=!1)=>{var r;const s=!!He(),i=s?xf():void 0,o=(r=t==null?void 0:t.provide)!=null?r:s?_o:void 0;if(!o)return;const l=he(()=>{const a=ae(e);return i!=null&&i.value?h3(i.value,a):a});return o(Lf,l),o(Of,he(()=>l.value.locale)),o(Pf,he(()=>l.value.namespace)),o(Nf,he(()=>l.value.zIndex)),o(Mf,{size:he(()=>l.value.size||"")}),(n||!Ss.value)&&(Ss.value=l.value),l},h3=(e,t)=>{var n;const r=[...new Set([...Ca(e),...Ca(t)])],s={};for(const i of r)s[i]=(n=t[i])!=null?n:e[i];return s};var Ff=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const g3=$f({size:{type:er([Number,String])},color:{type:String}}),_3=Nt({name:"ElIcon",inheritAttrs:!1}),m3=Nt({..._3,props:g3,setup(e){const t=e,n=Af("icon"),r=he(()=>{const{size:s,color:i}=t;return!s&&!i?{}:{fontSize:a_(s)?void 0:u_(s),"--color":i}});return(s,i)=>(W(),Y("i",wo({class:ae(n).b(),style:ae(r)},s.$attrs),[ho(s.$slots,"default")],16))}});var v3=Ff(m3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const zi=n3(v3);function y3(e){let t;const n=me(!1),r=wr({...e,originalPosition:"",originalOverflow:"",visible:!1});function s(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(Ts(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),Ts(d,h.bm("parent","hidden"))}o(),u.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function l(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(a,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function a(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const c=Nt({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:y}=kf("loading");return h({ns:v,zIndex:y}),()=>{const E=r.spinner||r.svg,m=Rt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...E?{innerHTML:E}:{}},[Rt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_=r.text?Rt("p",{class:v.b("text")},[r.text]):void 0;return Rt(Sr,{name:v.b("fade"),onAfterLeave:a},{default:Kt(()=>[os(de("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Rt("div",{class:v.b("spinner")},[m,_])]),[[cr,r.visible]])])})}}}),u=So(c),f=u.mount(document.createElement("div"));return{...ac(r),setText:s,removeElLoadingChild:o,close:l,handleAfterLeave:a,vm:f,get $el(){return f.$el}}}let Wr;const ji=function(e={}){if(!cn)return;const t=b3(e);if(t.fullscreen&&Wr)return Wr;const n=y3({...t,closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(Wr=void 0)}});w3(t,t.parent,n),$a(t,t.parent,n),t.parent.vLoadingAddClassList=()=>$a(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Rn(()=>n.visible.value=t.visible),t.fullscreen&&(Wr=n),n},b3=e=>{var t,n,r,s;let i;return J(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,target:i}},w3=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=Un(document.body,"position"),n.originalOverflow.value=Un(document.body,"overflow"),s.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Un(document.body,"position"),await Rn();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";s[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Un(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])s[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Un(t,"position");for(const[i,o]of Object.entries(s))n.$el.style[i]=o},$a=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ts(t,r.bm("parent","relative")):Ea(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Ea(t,r.bm("parent","hidden")):Ts(t,r.bm("parent","hidden"))},Ui=Symbol("ElLoading"),Oa=(e,t)=>{var n,r,s,i;const o=t.instance,l=d=>ie(t.value)?t.value[d]:void 0,a=d=>{const h=J(d)&&(o==null?void 0:o[d])||d;return h&&me(h)},c=d=>a(l(d)||e.getAttribute(`element-loading-${xe(d)}`)),u=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(r=l("target"))!=null?r:u?void 0:e,body:(s=l("body"))!=null?s:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[Ui]={options:f,instance:ji(f)}},C3=(e,t)=>{for(const n of Object.keys(t))ve(t[n])&&(t[n].value=e[n])},Pa={mounted(e,t){t.value&&Oa(e,t)},updated(e,t){const n=e[Ui];t.oldValue!==t.value&&(t.value&&!t.oldValue?Oa(e,t):t.value&&t.oldValue?ie(t.value)&&C3(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ui])==null||t.instance.close()}},E3={install(e){e.directive("loading",Pa),e.config.globalProperties.$loading=ji},directive:Pa,service:ji},Rf=["success","info","warning","error"],T3=$f({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:e3},id:{type:String,default:""},message:{type:er([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:er(Function),default:()=>{}},onClose:{type:er(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Rf,""],default:""},zIndex:Number}),S3={destroy:()=>!0},$3=["id"],O3=["textContent"],P3={key:0},A3=["innerHTML"],I3=Nt({name:"ElNotification"}),N3=Nt({...I3,props:T3,emits:S3,setup(e,{expose:t}){const n=e,{ns:r,zIndex:s}=kf("notification"),{nextZIndex:i,currentZIndex:o}=s,{Close:l}=t3,a=me(!1);let c;const u=he(()=>{const C=n.type;return C&&Ta[n.type]?r.m(C):""}),f=he(()=>n.type&&Ta[n.type]||n.icon),d=he(()=>n.position.endsWith("right")?"right":"left"),h=he(()=>n.position.startsWith("top")?"top":"bottom"),v=he(()=>{var C;return{[h.value]:`${n.offset}px`,zIndex:(C=n.zIndex)!=null?C:o.value}});function y(){n.duration>0&&({stop:c}=m1(()=>{a.value&&m()},n.duration))}function E(){c==null||c()}function m(){a.value=!1}function _({code:C}){C===di.delete||C===di.backspace?E():C===di.esc?a.value&&m():y()}return an(()=>{y(),i(),a.value=!0}),Zt(document,"keydown",_),t({visible:a,close:m}),(C,b)=>(W(),Dt(Sr,{name:ae(r).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:b[1]||(b[1]=S=>C.$emit("destroy")),persisted:""},{default:Kt(()=>[os(K("div",{id:C.id,class:Xe([ae(r).b(),C.customClass,ae(d)]),style:Yt(ae(v)),role:"alert",onMouseenter:E,onMouseleave:y,onClick:b[0]||(b[0]=(...S)=>C.onClick&&C.onClick(...S))},[ae(f)?(W(),Dt(ae(zi),{key:0,class:Xe([ae(r).e("icon"),ae(u)])},{default:Kt(()=>[(W(),Dt(Lc(ae(f))))]),_:1},8,["class"])):Gr("v-if",!0),K("div",{class:Xe(ae(r).e("group"))},[K("h2",{class:Xe(ae(r).e("title")),textContent:hi(C.title)},null,10,O3),os(K("div",{class:Xe(ae(r).e("content")),style:Yt(C.title?void 0:{margin:0})},[ho(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(W(),Y(Te,{key:1},[Gr(" Caution here, message could've been compromised, never use user's input as message "),K("p",{innerHTML:C.message},null,8,A3)],2112)):(W(),Y("p",P3,hi(C.message),1))])],6),[[cr,C.message]]),C.showClose?(W(),Dt(ae(zi),{key:0,class:Xe(ae(r).e("closeBtn")),onClick:yu(m,["stop"])},{default:Kt(()=>[de(ae(l))]),_:1},8,["class","onClick"])):Gr("v-if",!0)],2)],46,$3),[[cr,a.value]])]),_:3},8,["name","onBeforeLeave"]))}});var M3=Ff(N3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const $s={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ki=16;let L3=1;const Ln=function(e={},t=null){if(!cn)return{close:()=>{}};(typeof e=="string"||rt(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;$s[n].forEach(({vm:u})=>{var f;r+=(((f=u.el)==null?void 0:f.offsetHeight)||0)+Ki}),r+=Ki;const s=`notification_${L3++}`,i=e.onClose,o={...e,offset:r,id:s,onClose:()=>{x3(s,n,i)}};let l=document.body;wa(e.appendTo)?l=e.appendTo:J(e.appendTo)&&(l=document.querySelector(e.appendTo)),wa(l)||(l=document.body);const a=document.createElement("div"),c=de(M3,o,rt(o.message)?{default:()=>o.message}:null);return c.appContext=t!=null?t:Ln._context,c.props.onDestroy=()=>{ur(null,a)},ur(c,a),$s[n].push({vm:c}),l.appendChild(a.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};Rf.forEach(e=>{Ln[e]=(t={})=>((typeof t=="string"||rt(t))&&(t={message:t}),Ln({...t,type:e}))});function x3(e,t,n){const r=$s[t],s=r.findIndex(({vm:c})=>{var u;return((u=c.component)==null?void 0:u.props.id)===e});if(s===-1)return;const{vm:i}=r[s];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,l=t.split("-")[0];r.splice(s,1);const a=r.length;if(!(a<1))for(let c=s;c<a;c++){const{el:u,component:f}=r[c].vm,d=Number.parseInt(u.style[l],10)-o-Ki;f.props.offset=d}}function k3(){for(const e of Object.values($s))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Ln.closeAll=k3;Ln._context=null;const F3=r3(Ln,"$notify");const R3=[Sv,j_,n4,qv,Um,yv,R_,Fv,q4,yf,Go,Em],yr=So({});yr.use(E3);yr.use(zi);R3.forEach(e=>{yr.component(e.name,e)});function Bf(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function Qo(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function Aa(e,t){return function(r,s,i,o=10){const l=e[t];if(!Qo(r)||!Bf(s))return;if(typeof i!="function"){console.error("The hook callback must be a function.");return}if(typeof o!="number"){console.error("If specified, the hook priority must be a number.");return}const a={callback:i,priority:o,namespace:s};if(l[r]){const c=l[r].handlers;let u;for(u=c.length;u>0&&!(o>=c[u-1].priority);u--);u===c.length?c[u]=a:c.splice(u,0,a),l.__current.forEach(f=>{f.name===r&&f.currentIndex>=u&&f.currentIndex++})}else l[r]={handlers:[a],runs:0};r!=="hookAdded"&&e.doAction("hookAdded",r,s,i,o)}}function qr(e,t,n=!1){return function(s,i){const o=e[t];if(!Qo(s)||!n&&!Bf(i))return;if(!o[s])return 0;let l=0;if(n)l=o[s].handlers.length,o[s]={runs:o[s].runs,handlers:[]};else{const a=o[s].handlers;for(let c=a.length-1;c>=0;c--)a[c].namespace===i&&(a.splice(c,1),l++,o.__current.forEach(u=>{u.name===s&&u.currentIndex>=c&&u.currentIndex--}))}return s!=="hookRemoved"&&e.doAction("hookRemoved",s,i),l}}function Ia(e,t){return function(r,s){const i=e[t];return typeof s<"u"?r in i&&i[r].handlers.some(o=>o.namespace===s):r in i}}function Na(e,t,n=!1){return function(s,...i){const o=e[t];o[s]||(o[s]={handlers:[],runs:0}),o[s].runs++;const l=o[s].handlers;if(!l||!l.length)return n?i[0]:void 0;const a={name:s,currentIndex:0};for(o.__current.push(a);a.currentIndex<l.length;){const u=l[a.currentIndex].callback.apply(null,i);n&&(i[0]=u),a.currentIndex++}if(o.__current.pop(),n)return i[0]}}function Ma(e,t){return function(){var i;var r;const s=e[t];return(r=(i=s.__current[s.__current.length-1])==null?void 0:i.name)!==null&&r!==void 0?r:null}}function La(e,t){return function(r){const s=e[t];return typeof r>"u"?typeof s.__current[0]<"u":s.__current[0]?r===s.__current[0].name:!1}}function xa(e,t){return function(r){const s=e[t];if(!!Qo(r))return s[r]&&s[r].runs?s[r].runs:0}}class B3{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=Aa(this,"actions"),this.addFilter=Aa(this,"filters"),this.removeAction=qr(this,"actions"),this.removeFilter=qr(this,"filters"),this.hasAction=Ia(this,"actions"),this.hasFilter=Ia(this,"filters"),this.removeAllActions=qr(this,"actions",!0),this.removeAllFilters=qr(this,"filters",!0),this.doAction=Na(this,"actions"),this.applyFilters=Na(this,"filters",!0),this.currentAction=Ma(this,"actions"),this.currentFilter=Ma(this,"filters"),this.doingAction=La(this,"actions"),this.doingFilter=La(this,"filters"),this.didAction=xa(this,"actions"),this.didFilter=xa(this,"filters")}}function H3(){return new B3}const D3=H3(),{addAction:ka,addFilter:Fa,removeAction:w6,removeFilter:C6,hasAction:E6,hasFilter:T6,removeAllActions:Ra,removeAllFilters:S6,doAction:Ba,applyFilters:Ha,currentAction:$6,currentFilter:O6,doingAction:P6,doingFilter:A6,didAction:I6,didFilter:N6,actions:M6,filters:L6}=D3;class x6{constructor(){this.doAction=Ba,this.addFilter=Fa,this.addAction=ka,this.applyFilters=Ha,this.removeAllActions=Ra,this.appVars=window.BuyMeCoffeeAdmin,this.app=this.extendVueConstructor()}extendVueConstructor(){const t=this;return yr.mixin({methods:{addFilter:Fa,applyFilters:Ha,doAction:Ba,addAction:ka,removeAllActions:Ra,ucFirst:t.ucFirst,ucWords:t.ucWords,slugify:t.slugify,$get:t.$get,$post:t.$post,$adminGet:t.$adminGet,$adminPost:t.$adminPost,$handleSuccess:t.handleSuccess,$handleError:t.handleError,$saveData:t.saveData,$getData:t.getData,convertToText:t.convertToText,$setTitle(n){document.title=n}}}),yr}registerBlock(t,n,r){this.addFilter(t,this.appVars.slug,function(s){return s[n]=r,s})}registerTopMenu(t,n){!t||!n.name||!n.path||!n.component||(this.addFilter("buy_me_coffee_top_menus",this.appVars.slug,function(r){return r=r.filter(s=>s.route!==n.name),r.push({route:n.name,title:t}),r}),this.addFilter("buy_me_coffee_global_routes",this.appVars.slug,function(r){return r=r.filter(s=>s.name!==n.name),r.push(n),r}))}$publicAssets(t){return window.BuyMeCoffeeAdmin.assets_url+t}$get(t){return window.jQuery.get(window.BuyMeCoffeeAdmin.ajaxurl,t)}$adminGet(t){return t.action="buy-me-coffee_admin_ajax",window.jQuery.get(window.BuyMeCoffeeAdmin.ajaxurl,t)}$post(t){return window.jQuery.post(window.BuyMeCoffeeAdmin.ajaxurl,t)}$adminPost(t){return t.action="buy-me-coffee_admin_ajax",window.jQuery.post(window.BuyMeCoffeeAdmin.ajaxurl,t)}$getJSON(t){return window.jQuery.getJSON(window.BuyMeCoffeeAdmin.ajaxurl,t)}saveData(t,n){let r=window.localStorage.getItem("__buymecoffee_data");r?r=JSON.parse(r):r={},r[t]=n,window.localStorage.setItem("__buymecoffee_data",JSON.stringify(r))}getData(t,n=!1){let r=window.localStorage.getItem("__buymecoffee_data");return r=JSON.parse(r),r&&r[t]?r[t]:n}longLocalDateTime(t){return this.dateTimeFormat(t,"ddd, DD MMM, YYYY hh:mm:ssa")}ucFirst(t){return t[0].toUpperCase()+t.slice(1).toLowerCase()}ucWords(t){return(t+"").replace(/^(.)|\s+(.)/g,function(n){return n.toUpperCase()})}slugify(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\\-]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}handleSuccess(t){F3({type:"success",title:"Success",message:t,offset:32,dangerouslyUseHTMLString:!0})}handleError(t){t.responseJSON&&(t=t.responseJSON);let n="";typeof t=="string"?n=t:t&&t.message?n=t.message:n=this.convertToText(t),n||(n="Something is wrong!"),this.$notify({type:"error",title:"Error",message:n,offset:32,dangerouslyUseHTMLString:!0})}convertToText(t){const n=[];if(typeof t=="object"&&t.join===void 0)for(const r in t)n.push(this.convertToText(t[r]));else if(typeof t=="object"&&t.join!==void 0)for(const r in t)n.push(this.convertToText(t[r]));else typeof t=="function"||typeof t=="string"&&n.push(t);return n.join("<br />")}}export{q3 as $,s3 as A,x6 as B,B as C,rt as D,he as E,i_ as F,He as G,at as H,ae as I,an as J,vc as K,Bn as L,zg as M,Ds as N,u_ as O,ve as P,Af as Q,Gd as R,Mn as S,Z3 as T,Un as U,Ea as V,Wa as W,Ts as X,Sf as Y,er as Z,q as _,qo as a,d3 as a$,oc as a0,me as a1,Ae as a2,Ko as a3,f3 as a4,ct as a5,di as a6,$c as a7,$f as a8,mf as a9,Yt as aA,yo as aB,hi as aC,Gr as aD,K as aE,Y0 as aF,J3 as aG,n3 as aH,m6 as aI,e3 as aJ,Dp as aK,os as aL,cr as aM,zi as aN,wo as aO,dm as aP,yu as aQ,_6 as aR,qv as aS,o6 as aT,ie as aU,Sr as aV,ut as aW,Xt as aX,Ie as aY,mn as aZ,wa as a_,_o as aa,Zt as ab,y6 as ac,Nt as ad,p3 as ae,ho as af,b6 as ag,Zd as ah,Vs as ai,J as aj,wr as ak,ac as al,W as am,Y as an,Xe as ao,Ff as ap,Hs as aq,K3 as ar,de as as,Te as at,Rn as au,Hp as av,z3 as aw,Kt as ax,Dt as ay,Lc as az,Es as b,u0 as b0,j3 as b1,Cr as b2,Tc as b3,xf as b4,T4 as b5,a_ as b6,re as b7,Eo as b8,To as b9,W3 as bA,q4 as bB,V3 as bC,ic as bD,kf as bE,Ta as bF,g6 as bG,m1 as bH,ur as bI,r3 as bJ,t6 as bK,h6 as bL,l6 as bM,sp as bN,ip as bO,i6 as bP,f6 as bQ,p6 as bR,d6 as bS,Cf as bT,s6 as bU,wf as ba,te as bb,Pp as bc,c3 as bd,oh as be,Y3 as bf,Rt as bg,zd as bh,Uf as bi,f1 as bj,$p as bk,Op as bl,us as bm,Ap as bn,n6 as bo,a6 as bp,r6 as bq,G3 as br,Q3 as bs,u6 as bt,c6 as bu,Xf as bv,e6 as bw,Ji as bx,X3 as by,U3 as bz,gg as c,ba as d,vg as e,Y1 as f,Zo as g,hg as h,cn as i,pf as j,V1 as k,ff as l,A1 as m,Jo as n,un as o,hf as p,gf as q,Wo as r,wg as s,tg as t,_f as u,s_ as v,j1 as w,o_ as x,on as y,v6 as z};
     1/**
     2* @vue/shared v3.5.13
     3* (c) 2018-present Yuxi (Evan) You and Vue contributors
     4* @license MIT
     5**//*! #__NO_SIDE_EFFECTS__ */function je(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},Bn=[],Pe=()=>{},ds=()=>!1,In=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ao=e=>e.startsWith("onUpdate:"),ie=Object.assign,Io=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xd=Object.prototype.hasOwnProperty,ae=(e,t)=>Xd.call(e,t),H=Array.isArray,Un=e=>ss(e)==="[object Map]",On=e=>ss(e)==="[object Set]",Dl=e=>ss(e)==="[object Date]",ep=e=>ss(e)==="[object RegExp]",G=e=>typeof e=="function",q=e=>typeof e=="string",Xe=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",Oo=e=>(ce(e)||G(e))&&G(e.then)&&G(e.catch),Ec=Object.prototype.toString,ss=e=>Ec.call(e),tp=e=>ss(e).slice(8,-1),ri=e=>ss(e)==="[object Object]",No=e=>q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yt=je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),np=je("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ii=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sp=/-(\w)/g,_e=ii(e=>e.replace(sp,(t,n)=>n?n.toUpperCase():"")),rp=/\B([A-Z])/g,He=ii(e=>e.replace(rp,"-$1").toLowerCase()),Nn=ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),jn=ii(e=>e?`on${Nn(e)}`:""),We=(e,t)=>!Object.is(e,t),zn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xc=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},xr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ar=e=>{const t=q(e)?Number(e):NaN;return isNaN(t)?e:t};let $l;const zs=()=>$l||($l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ip(e,t){return e+JSON.stringify(t,(n,s)=>typeof s=="function"?s.toString():s)}const op="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",lp=je(op);function en(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=q(s)?Ac(s):en(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(q(e)||ce(e))return e}const ap=/;(?![^(]*\))/g,cp=/:([^]+)/,up=/\/\*[^]*?\*\//g;function Ac(e){const t={};return e.replace(up,"").split(ap).forEach(n=>{if(n){const s=n.split(cp);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function fp(e){if(!e)return"";if(q(e))return e;let t="";for(const n in e){const s=e[n];if(q(s)||typeof s=="number"){const r=n.startsWith("--")?n:He(n);t+=`${r}:${s};`}}return t}function ct(e){let t="";if(q(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const s=ct(e[n]);s&&(t+=s+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function dp(e){if(!e)return null;let{class:t,style:n}=e;return t&&!q(t)&&(e.class=ct(t)),n&&(e.style=en(n)),e}const pp="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",hp="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",gp="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",mp="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",_p=je(pp),yp=je(hp),vp=je(gp),bp=je(mp),Ic="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Sp=je(Ic),Fl=je(Ic+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Mo(e){return!!e||e===""}const wp=je("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Cp=je("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Tp(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const Ep=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function xp(e,t){return e.replace(Ep,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function Ap(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=tn(e[s],t[s]);return n}function tn(e,t){if(e===t)return!0;let n=Dl(e),s=Dl(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Xe(e),s=Xe(t),n||s)return e===t;if(n=H(e),s=H(t),n||s)return n&&s?Ap(e,t):!1;if(n=ce(e),s=ce(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),a=t.hasOwnProperty(o);if(l&&!a||!l&&a||!tn(e[o],t[o]))return!1}}return String(e)===String(t)}function oi(e,t){return e.findIndex(n=>tn(n,t))}const Oc=e=>!!(e&&e.__v_isRef===!0),Ir=e=>q(e)?e:e==null?"":H(e)||ce(e)&&(e.toString===Ec||!G(e.toString))?Oc(e)?Ir(e.value):JSON.stringify(e,Nc,2):String(e),Nc=(e,t)=>Oc(t)?Nc(e,t.value):Un(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Mi(s,i)+" =>"]=r,n),{})}:On(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mi(n))}:Xe(t)?Mi(t):ce(t)&&!H(t)&&!ri(t)?String(t):t,Mi=(e,t="")=>{var n;return Xe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
     6* @vue/reactivity v3.5.13
     7* (c) 2018-present Yuxi (Evan) You and Vue contributors
     8* @license MIT
     9**/let Ke;class Po{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ip(e){return new Po(e)}function Ro(){return Ke}function Mc(e,t=!1){Ke&&Ke.cleanups.push(e)}let me;const Pi=new WeakSet;class Ts{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ke&&Ke.active&&Ke.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pi.has(this)&&(Pi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vl(this),Lc(this);const t=me,n=yt;me=this,yt=!0;try{return this.fn()}finally{kc(this),me=t,yt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Do(t);this.deps=this.depsTail=void 0,Vl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gi(this)&&this.run()}get dirty(){return Gi(this)}}let Pc=0,ms,_s;function Rc(e,t=!1){if(e.flags|=8,t){e.next=_s,_s=e;return}e.next=ms,ms=e}function Lo(){Pc++}function ko(){if(--Pc>0)return;if(_s){let t=_s;for(_s=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ms;){let t=ms;for(ms=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Lc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kc(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Do(s),Op(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Gi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Dc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Dc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Es))return;e.globalVersion=Es;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Gi(e)){e.flags&=-3;return}const n=me,s=yt;me=e,yt=!0;try{Lc(e);const r=e.fn(e._value);(t.version===0||We(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{me=n,yt=s,kc(e),e.flags&=-3}}function Do(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Do(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Op(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Np(e,t){e.effect instanceof Ts&&(e=e.effect.fn);const n=new Ts(e);t&&ie(n,t);try{n.run()}catch(r){throw n.stop(),r}const s=n.run.bind(n);return s.effect=n,s}function Mp(e){e.effect.stop()}let yt=!0;const $c=[];function Dt(){$c.push(yt),yt=!1}function $t(){const e=$c.pop();yt=e===void 0?!0:e}function Vl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let Es=0;class Pp{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class li{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!me||!yt||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new Pp(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,Fc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=s)}return n}trigger(t){this.version++,Es++,this.notify(t)}notify(t){Lo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ko()}}}function Fc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Fc(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Or=new WeakMap,mn=Symbol(""),Yi=Symbol(""),xs=Symbol("");function Fe(e,t,n){if(yt&&me){let s=Or.get(e);s||Or.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new li),r.map=s,r.key=n),r.track()}}function Mt(e,t,n,s,r,i){const o=Or.get(e);if(!o){Es++;return}const l=a=>{a&&a.trigger()};if(Lo(),t==="clear")o.forEach(l);else{const a=H(e),u=a&&No(n);if(a&&n==="length"){const c=Number(s);o.forEach((f,d)=>{(d==="length"||d===xs||!Xe(d)&&d>=c)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(xs)),t){case"add":a?u&&l(o.get("length")):(l(o.get(mn)),Un(e)&&l(o.get(Yi)));break;case"delete":a||(l(o.get(mn)),Un(e)&&l(o.get(Yi)));break;case"set":Un(e)&&l(o.get(mn));break}}ko()}function Rp(e,t){const n=Or.get(e);return n&&n.get(t)}function $n(e){const t=se(e);return t===e?t:(Fe(t,"iterate",xs),it(e)?t:t.map(Ve))}function ai(e){return Fe(e=se(e),"iterate",xs),e}const Lp={__proto__:null,[Symbol.iterator](){return Ri(this,Symbol.iterator,Ve)},concat(...e){return $n(this).concat(...e.map(t=>H(t)?$n(t):t))},entries(){return Ri(this,"entries",e=>(e[1]=Ve(e[1]),e))},every(e,t){return At(this,"every",e,t,void 0,arguments)},filter(e,t){return At(this,"filter",e,t,n=>n.map(Ve),arguments)},find(e,t){return At(this,"find",e,t,Ve,arguments)},findIndex(e,t){return At(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return At(this,"findLast",e,t,Ve,arguments)},findLastIndex(e,t){return At(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return At(this,"forEach",e,t,void 0,arguments)},includes(...e){return Li(this,"includes",e)},indexOf(...e){return Li(this,"indexOf",e)},join(e){return $n(this).join(e)},lastIndexOf(...e){return Li(this,"lastIndexOf",e)},map(e,t){return At(this,"map",e,t,void 0,arguments)},pop(){return ls(this,"pop")},push(...e){return ls(this,"push",e)},reduce(e,...t){return Hl(this,"reduce",e,t)},reduceRight(e,...t){return Hl(this,"reduceRight",e,t)},shift(){return ls(this,"shift")},some(e,t){return At(this,"some",e,t,void 0,arguments)},splice(...e){return ls(this,"splice",e)},toReversed(){return $n(this).toReversed()},toSorted(e){return $n(this).toSorted(e)},toSpliced(...e){return $n(this).toSpliced(...e)},unshift(...e){return ls(this,"unshift",e)},values(){return Ri(this,"values",Ve)}};function Ri(e,t,n){const s=ai(e),r=s[t]();return s!==e&&!it(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const kp=Array.prototype;function At(e,t,n,s,r,i){const o=ai(e),l=o!==e&&!it(e),a=o[t];if(a!==kp[t]){const f=a.apply(e,i);return l?Ve(f):f}let u=n;o!==e&&(l?u=function(f,d){return n.call(this,Ve(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=a.call(o,u,s);return l&&r?r(c):c}function Hl(e,t,n,s){const r=ai(e);let i=n;return r!==e&&(it(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,Ve(l),a,e)}),r[t](i,...s)}function Li(e,t,n){const s=se(e);Fe(s,"iterate",xs);const r=s[t](...n);return(r===-1||r===!1)&&fi(n[0])?(n[0]=se(n[0]),s[t](...n)):r}function ls(e,t,n=[]){Dt(),Lo();const s=se(e)[t].apply(e,n);return ko(),$t(),s}const Dp=je("__proto__,__v_isRef,__isVue"),Vc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xe));function $p(e){Xe(e)||(e=String(e));const t=se(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class Hc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Wc:Kc:i?zc:jc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=H(t);if(!r){let a;if(o&&(a=Lp[n]))return a;if(n==="hasOwnProperty")return $p}const l=Reflect.get(t,n,Ce(t)?t:s);return(Xe(n)?Vc.has(n):Dp(n))||(r||Fe(t,"get",n),i)?l:Ce(l)?o&&No(n)?l:l.value:ce(l)?r?Ws(l):Ks(l):l}}class Bc extends Hc{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const a=nn(i);if(!it(s)&&!nn(s)&&(i=se(i),s=se(s)),!H(t)&&Ce(i)&&!Ce(s))return a?!1:(i.value=s,!0)}const o=H(t)&&No(n)?Number(n)<t.length:ae(t,n),l=Reflect.set(t,n,s,Ce(t)?t:r);return t===se(r)&&(o?We(s,i)&&Mt(t,"set",n,s):Mt(t,"add",n,s)),l}deleteProperty(t,n){const s=ae(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Mt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Xe(n)||!Vc.has(n))&&Fe(t,"has",n),s}ownKeys(t){return Fe(t,"iterate",H(t)?"length":mn),Reflect.ownKeys(t)}}class Uc extends Hc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fp=new Bc,Vp=new Uc,Hp=new Bc(!0),Bp=new Uc(!0),Ji=e=>e,tr=e=>Reflect.getPrototypeOf(e);function Up(e,t,n){return function(...s){const r=this.__v_raw,i=se(r),o=Un(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,u=r[e](...s),c=n?Ji:t?Zi:Ve;return!t&&Fe(i,"iterate",a?Yi:mn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:l?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function nr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jp(e,t){const n={get(r){const i=this.__v_raw,o=se(i),l=se(r);e||(We(r,l)&&Fe(o,"get",r),Fe(o,"get",l));const{has:a}=tr(o),u=t?Ji:e?Zi:Ve;if(a.call(o,r))return u(i.get(r));if(a.call(o,l))return u(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Fe(se(r),"iterate",mn),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=se(i),l=se(r);return e||(We(r,l)&&Fe(o,"has",r),Fe(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,a=se(l),u=t?Ji:e?Zi:Ve;return!e&&Fe(a,"iterate",mn),l.forEach((c,f)=>r.call(i,u(c),u(f),o))}};return ie(n,e?{add:nr("add"),set:nr("set"),delete:nr("delete"),clear:nr("clear")}:{add(r){!t&&!it(r)&&!nn(r)&&(r=se(r));const i=se(this);return tr(i).has.call(i,r)||(i.add(r),Mt(i,"add",r,r)),this},set(r,i){!t&&!it(i)&&!nn(i)&&(i=se(i));const o=se(this),{has:l,get:a}=tr(o);let u=l.call(o,r);u||(r=se(r),u=l.call(o,r));const c=a.call(o,r);return o.set(r,i),u?We(i,c)&&Mt(o,"set",r,i):Mt(o,"add",r,i),this},delete(r){const i=se(this),{has:o,get:l}=tr(i);let a=o.call(i,r);a||(r=se(r),a=o.call(i,r)),l&&l.call(i,r);const u=i.delete(r);return a&&Mt(i,"delete",r,void 0),u},clear(){const r=se(this),i=r.size!==0,o=r.clear();return i&&Mt(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Up(r,e,t)}),n}function ci(e,t){const n=jp(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ae(n,r)&&r in s?n:s,r,i)}const zp={get:ci(!1,!1)},Kp={get:ci(!1,!0)},Wp={get:ci(!0,!1)},qp={get:ci(!0,!0)},jc=new WeakMap,zc=new WeakMap,Kc=new WeakMap,Wc=new WeakMap;function Gp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yp(e){return e.__v_skip||!Object.isExtensible(e)?0:Gp(tp(e))}function Ks(e){return nn(e)?e:ui(e,!1,Fp,zp,jc)}function qc(e){return ui(e,!1,Hp,Kp,zc)}function Ws(e){return ui(e,!0,Vp,Wp,Kc)}function Jp(e){return ui(e,!0,Bp,qp,Wc)}function ui(e,t,n,s,r){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Yp(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Jt(e){return nn(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function it(e){return!!(e&&e.__v_isShallow)}function fi(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function Gc(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&xc(e,"__v_skip",!0),e}const Ve=e=>ce(e)?Ks(e):e,Zi=e=>ce(e)?Ws(e):e;function Ce(e){return e?e.__v_isRef===!0:!1}function Se(e){return Yc(e,!1)}function $o(e){return Yc(e,!0)}function Yc(e,t){return Ce(e)?e:new Zp(e,t)}class Zp{constructor(t,n){this.dep=new li,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:Ve(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||it(t)||nn(t);t=s?t:se(t),We(t,n)&&(this._rawValue=t,this._value=s?t:Ve(t),this.dep.trigger())}}function Qp(e){e.dep&&e.dep.trigger()}function fe(e){return Ce(e)?e.value:e}function Xp(e){return G(e)?e():fe(e)}const eh={get:(e,t,n)=>t==="__v_raw"?e:fe(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Fo(e){return Jt(e)?e:new Proxy(e,eh)}class th{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new li,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Jc(e){return new th(e)}function Zc(e){const t=H(e)?new Array(e.length):{};for(const n in e)t[n]=Qc(e,n);return t}class nh{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Rp(se(this._object),this._key)}}class sh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function rh(e,t,n){return Ce(e)?e:G(e)?new sh(e):ce(e)&&arguments.length>1?Qc(e,t,n):Se(e)}function Qc(e,t,n){const s=e[t];return Ce(s)?s:new nh(e,t,n)}class ih{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new li(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Es-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return Rc(this,!0),!0}get value(){const t=this.dep.track();return Dc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function oh(e,t,n=!1){let s,r;return G(e)?s=e:(s=e.get,r=e.set),new ih(s,r,n)}const lh={GET:"get",HAS:"has",ITERATE:"iterate"},ah={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},sr={},Nr=new WeakMap;let jt;function ch(){return jt}function Xc(e,t=!1,n=jt){if(n){let s=Nr.get(n);s||Nr.set(n,s=[]),s.push(e)}}function uh(e,t,n=re){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:a}=n,u=y=>r?y:it(y)||r===!1||r===0?Pt(y,1):Pt(y);let c,f,d,p,v=!1,m=!1;if(Ce(e)?(f=()=>e.value,v=it(e)):Jt(e)?(f=()=>u(e),v=!0):H(e)?(m=!0,v=e.some(y=>Jt(y)||it(y)),f=()=>e.map(y=>{if(Ce(y))return y.value;if(Jt(y))return u(y);if(G(y))return a?a(y,2):y()})):G(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){Dt();try{d()}finally{$t()}}const y=jt;jt=c;try{return a?a(e,3,[p]):e(p)}finally{jt=y}}:f=Pe,t&&r){const y=f,S=r===!0?1/0:r;f=()=>Pt(y(),S)}const A=Ro(),E=()=>{c.stop(),A&&A.active&&Io(A.effects,c)};if(i&&t){const y=t;t=(...S)=>{y(...S),E()}}let x=m?new Array(e.length).fill(sr):sr;const h=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(t){const S=c.run();if(r||v||(m?S.some((O,F)=>We(O,x[F])):We(S,x))){d&&d();const O=jt;jt=c;try{const F=[S,x===sr?void 0:m&&x[0]===sr?[]:x,p];a?a(t,3,F):t(...F),x=S}finally{jt=O}}}else c.run()};return l&&l(h),c=new Ts(f),c.scheduler=o?()=>o(h,!1):h,p=y=>Xc(y,!1,c),d=c.onStop=()=>{const y=Nr.get(c);if(y){if(a)a(y,4);else for(const S of y)S();Nr.delete(c)}},t?s?h(!0):x=c.run():o?o(h.bind(null,!0),!0):c.run(),E.pause=c.pause.bind(c),E.resume=c.resume.bind(c),E.stop=E,E}function Pt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ce(e))Pt(e.value,t,n);else if(H(e))for(let s=0;s<e.length;s++)Pt(e[s],t,n);else if(On(e)||Un(e))e.forEach(s=>{Pt(s,t,n)});else if(ri(e)){for(const s in e)Pt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Pt(e[s],t,n)}return e}/**
     10* @vue/runtime-core v3.5.13
     11* (c) 2018-present Yuxi (Evan) You and Vue contributors
     12* @license MIT
     13**/const _n=[];function fh(e){_n.push(e)}function dh(){_n.pop()}let ki=!1;function Bt(e,...t){if(ki)return;ki=!0,Dt();const n=_n.length?_n[_n.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=ph();if(s)Mn(s,n,11,[e+t.map(i=>{var o,l;return(l=(o=i.toString)==null?void 0:o.call(i))!=null?l:JSON.stringify(i)}).join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${af(n,i.type)}>`).join(`
     14`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
     15`,...hh(r)),console.warn(...i)}$t(),ki=!1}function ph(){let e=_n[_n.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function hh(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
     16`],...gh(n))}),t}function gh({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${af(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...mh(e.props),i]:[r+i]}function mh(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...eu(s,e[s]))}),n.length>3&&t.push(" ..."),t}function eu(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=eu(e,se(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):G(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=se(t),n?t:[`${e}=`,t])}function _h(e,t){}const yh={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},vh={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update",[16]:"app unmount cleanup function"};function Mn(e,t,n,s){try{return s?e(...s):e()}catch(r){Pn(r,t,n)}}function pt(e,t,n,s){if(G(e)){const r=Mn(e,t,n,s);return r&&Oo(r)&&r.catch(i=>{Pn(i,t,n)}),r}if(H(e)){const r=[];for(let i=0;i<e.length;i++)r.push(pt(e[i],t,n,s));return r}}function Pn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||re;if(t){let l=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,a,u)===!1)return}l=l.parent}if(i){Dt(),Mn(i,null,10,[e,a,u]),$t();return}}bh(e,n,r,s,o)}function bh(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const qe=[];let Ct=-1;const Kn=[];let zt=null,Vn=0;const tu=Promise.resolve();let Mr=null;function Rn(e){const t=Mr||tu;return e?t.then(this?e.bind(this):e):t}function Sh(e){let t=Ct+1,n=qe.length;for(;t<n;){const s=t+n>>>1,r=qe[s],i=Is(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Vo(e){if(!(e.flags&1)){const t=Is(e),n=qe[qe.length-1];!n||!(e.flags&2)&&t>=Is(n)?qe.push(e):qe.splice(Sh(t),0,e),e.flags|=1,nu()}}function nu(){Mr||(Mr=tu.then(su))}function As(e){H(e)?Kn.push(...e):zt&&e.id===-1?zt.splice(Vn+1,0,e):e.flags&1||(Kn.push(e),e.flags|=1),nu()}function Bl(e,t,n=Ct+1){for(;n<qe.length;n++){const s=qe[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;qe.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Pr(e){if(Kn.length){const t=[...new Set(Kn)].sort((n,s)=>Is(n)-Is(s));if(Kn.length=0,zt){zt.push(...t);return}for(zt=t,Vn=0;Vn<zt.length;Vn++){const n=zt[Vn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zt=null,Vn=0}}const Is=e=>e.id==null?e.flags&2?-1:1/0:e.id;function su(e){const t=Pe;try{for(Ct=0;Ct<qe.length;Ct++){const n=qe[Ct];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),Mn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Ct<qe.length;Ct++){const n=qe[Ct];n&&(n.flags&=-2)}Ct=-1,qe.length=0,Pr(),Mr=null,(qe.length||Kn.length)&&su()}}let Hn,rr=[];function ru(e,t){var n,s;Hn=e,Hn?(Hn.enabled=!0,rr.forEach(({event:r,args:i})=>Hn.emit(r,...i)),rr=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{ru(i,t)}),setTimeout(()=>{Hn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,rr=[])},3e3)):rr=[]}let Me=null,di=null;function Os(e){const t=Me;return Me=e,di=e&&e.type.__scopeId||null,t}function wh(e){di=e}function Ch(){di=null}const Th=e=>yn;function yn(e,t=Me,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&io(-1);const i=Os(t);let o;try{o=e(...r)}finally{Os(i),s._d&&io(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Rr(e,t){if(Me===null)return e;const n=Ys(Me),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,a=re]=t[r];i&&(G(i)&&(i={mounted:i,updated:i}),i.deep&&Pt(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Tt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[s];a&&(Dt(),pt(a,n,8,[e.el,l,e,t]),$t())}}const iu=Symbol("_vte"),ou=e=>e.__isTeleport,ys=e=>e&&(e.disabled||e.disabled===""),Ul=e=>e&&(e.defer||e.defer===""),jl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,zl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Qi=(e,t)=>{const n=e&&e.to;return q(n)?t?t(n):null:n},lu={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,a,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:v,createText:m,createComment:A}}=u,E=ys(t.props);let{shapeFlag:x,children:h,dynamicChildren:y}=t;if(e==null){const S=t.el=m(""),O=t.anchor=m("");p(S,n,s),p(O,n,s);const F=(b,C)=>{x&16&&(r&&r.isCE&&(r.ce._teleportTarget=b),c(h,b,C,r,i,o,l,a))},M=()=>{const b=t.target=Qi(t.props,v),C=au(b,t,m,p);b&&(o!=="svg"&&jl(b)?o="svg":o!=="mathml"&&zl(b)&&(o="mathml"),E||(F(b,C),gr(t,!1)))};E&&(F(n,O),gr(t,!0)),Ul(t.props)?Ie(()=>{M(),t.el.__isMounted=!0},i):M()}else{if(Ul(t.props)&&!e.el.__isMounted){Ie(()=>{lu.process(e,t,n,s,r,i,o,l,a,u),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,O=t.target=e.target,F=t.targetAnchor=e.targetAnchor,M=ys(e.props),b=M?n:O,C=M?S:F;if(o==="svg"||jl(O)?o="svg":(o==="mathml"||zl(O))&&(o="mathml"),y?(d(e.dynamicChildren,y,b,r,i,o,l),Zo(e,t,!0)):a||f(e,t,b,C,r,i,o,l,!1),E)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ir(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=Qi(t.props,v);L&&ir(t,L,null,u,0)}else M&&ir(t,O,F,u,1);gr(t,E)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:a,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(r(u),r(c)),i&&r(a),o&16){const p=i||!ys(d);for(let v=0;v<l.length;v++){const m=l[v];s(m,t,n,p,!!m.dynamicChildren)}}},move:ir,hydrate:Eh};function ir(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:a,children:u,props:c}=e,f=i===2;if(f&&s(o,t,n),(!f||ys(c))&&a&16)for(let d=0;d<u.length;d++)r(u[d],t,n,2);f&&s(l,t,n)}function Eh(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:a,insert:u,createText:c}},f){const d=t.target=Qi(t.props,a);if(d){const p=ys(t.props),v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(p)t.anchor=f(o(e),t,l(e),n,s,r,i),t.targetStart=v,t.targetAnchor=v&&o(v);else{t.anchor=o(e);let m=v;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&o(t.targetAnchor);break}}m=o(m)}t.targetAnchor||au(d,t,c,u),f(v&&o(v),t,d,n,s,r,i)}gr(t,p)}return t.anchor&&o(t.anchor)}const xh=lu;function gr(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function au(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[iu]=i,e&&(s(r,e),s(i,e)),i}const Kt=Symbol("_leaveCb"),or=Symbol("_enterCb");function Ho(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ln(()=>{e.isMounted=!0}),mi(()=>{e.isUnmounting=!0}),e}const at=[Function,Array],Bo={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:at,onEnter:at,onAfterEnter:at,onEnterCancelled:at,onBeforeLeave:at,onLeave:at,onAfterLeave:at,onLeaveCancelled:at,onBeforeAppear:at,onAppear:at,onAfterAppear:at,onAppearCancelled:at},cu=e=>{const t=e.subTree;return t.component?cu(t.component):t},Ah={name:"BaseTransition",props:Bo,setup(e,{slots:t}){const n=Re(),s=Ho();return()=>{const r=t.default&&pi(t.default(),!0);if(!r||!r.length)return;const i=uu(r),o=se(e),{mode:l}=o;if(s.isLeaving)return Di(i);const a=Kl(i);if(!a)return Di(i);let u=qn(a,o,s,n,f=>u=f);a.type!==Ae&&kt(a,u);let c=n.subTree&&Kl(n.subTree);if(c&&c.type!==Ae&&!_t(a,c)&&cu(n).type!==Ae){let f=qn(c,o,s,n);if(kt(c,f),l==="out-in"&&a.type!==Ae)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Di(i);l==="in-out"&&a.type!==Ae?f.delayLeave=(d,p,v)=>{const m=du(s,c);m[String(c.key)]=c,d[Kt]=()=>{p(),d[Kt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function uu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ae){t=n;break}}return t}const fu=Ah;function du(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function qn(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:A,onAppear:E,onAfterAppear:x,onAppearCancelled:h}=t,y=String(e.key),S=du(n,e),O=(b,C)=>{b&&pt(b,s,9,C)},F=(b,C)=>{const L=C[1];O(b,C),H(b)?b.every(T=>T.length<=1)&&L():b.length<=1&&L()},M={mode:o,persisted:l,beforeEnter(b){let C=a;if(!n.isMounted)if(i)C=A||a;else return;b[Kt]&&b[Kt](!0);const L=S[y];L&&_t(e,L)&&L.el[Kt]&&L.el[Kt](),O(C,[b])},enter(b){let C=u,L=c,T=f;if(!n.isMounted)if(i)C=E||u,L=x||c,T=h||f;else return;let k=!1;const z=b[or]=J=>{k||(k=!0,J?O(T,[b]):O(L,[b]),M.delayedLeave&&M.delayedLeave(),b[or]=void 0)};C?F(C,[b,z]):z()},leave(b,C){const L=String(e.key);if(b[or]&&b[or](!0),n.isUnmounting)return C();O(d,[b]);let T=!1;const k=b[Kt]=z=>{T||(T=!0,C(),z?O(m,[b]):O(v,[b]),b[Kt]=void 0,S[L]===e&&delete S[L])};S[L]=e,p?F(p,[b,k]):k()},clone(b){const C=qn(b,t,n,s,r);return r&&r(C),C}};return M}function Di(e){if(qs(e))return e=xt(e),e.children=null,e}function Kl(e){if(!qs(e))return ou(e.type)&&e.children?uu(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&G(n.default))return n.default()}}function kt(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kt(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pi(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===xe?(o.patchFlag&128&&r++,s=s.concat(pi(o.children,t,l))):(t||o.type!==Ae)&&s.push(l!=null?xt(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function Q(e,t){return G(e)?(()=>ie({name:e.name},t,{setup:e}))():e}function Ih(){const e=Re();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Uo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Oh(e){const t=Re(),n=$o(null);if(t){const r=t.refs===re?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Ns(e,t,n,s,r=!1){if(H(e)){e.forEach((v,m)=>Ns(v,t&&(H(t)?t[m]:t),n,s,r));return}if(Zt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ns(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Ys(s.component):s.el,o=r?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===re?l.refs={}:l.refs,f=l.setupState,d=se(f),p=f===re?()=>!1:v=>ae(d,v);if(u!=null&&u!==a&&(q(u)?(c[u]=null,p(u)&&(f[u]=null)):Ce(u)&&(u.value=null)),G(a))Mn(a,l,12,[o,c]);else{const v=q(a),m=Ce(a);if(v||m){const A=()=>{if(e.f){const E=v?p(a)?f[a]:c[a]:a.value;r?H(E)&&Io(E,i):H(E)?E.includes(i)||E.push(i):v?(c[a]=[i],p(a)&&(f[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else v?(c[a]=o,p(a)&&(f[a]=o)):m&&(a.value=o,e.k&&(c[e.k]=o))};o?(A.id=-1,Ie(A,n)):A()}}}let Wl=!1;const on=()=>{Wl||(console.error("Hydration completed but contains mismatches."),Wl=!0)},Nh=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Mh=e=>e.namespaceURI.includes("MathML"),lr=e=>{if(e.nodeType===1){if(Nh(e))return"svg";if(Mh(e))return"mathml"}},fn=e=>e.nodeType===8;function Ph(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:a,createComment:u}}=e,c=(h,y)=>{if(!y.hasChildNodes()){__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Bt("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,h,y),Pr(),y._vnode=h;return}f(y.firstChild,h,null,null,null),Pr(),y._vnode=h},f=(h,y,S,O,F,M=!1)=>{M=M||!!y.dynamicChildren;const b=fn(h)&&h.data==="[",C=()=>m(h,y,S,O,F,b),{type:L,ref:T,shapeFlag:k,patchFlag:z}=y;let J=h.nodeType;y.el=h,z===-2&&(M=!1,y.dynamicChildren=null);let U=null;switch(L){case Qt:J!==3?y.children===""?(a(y.el=r(""),o(h),h),U=h):U=C():(h.data!==y.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Bt("Hydration text mismatch in",h.parentNode,`
     17  - rendered on server: ${JSON.stringify(h.data)}
     18  - expected on client: ${JSON.stringify(y.children)}`),on(),h.data=y.children),U=i(h));break;case Ae:x(h)?(U=i(h),E(y.el=h.content.firstChild,h,S)):J!==8||b?U=C():U=i(h);break;case bn:if(b&&(h=i(h),J=h.nodeType),J===1||J===3){U=h;const X=!y.children.length;for(let j=0;j<y.staticCount;j++)X&&(y.children+=U.nodeType===1?U.outerHTML:U.data),j===y.staticCount-1&&(y.anchor=U),U=i(U);return b?i(U):U}else C();break;case xe:b?U=v(h,y,S,O,F,M):U=C();break;default:if(k&1)(J!==1||y.type.toLowerCase()!==h.tagName.toLowerCase())&&!x(h)?U=C():U=d(h,y,S,O,F,M);else if(k&6){y.slotScopeIds=F;const X=o(h);if(b?U=A(h):fn(h)&&h.data==="teleport start"?U=A(h,h.data,"teleport end"):U=i(h),t(y,X,null,S,O,lr(X),M),Zt(y)&&!y.type.__asyncResolved){let j;b?(j=he(xe),j.anchor=U?U.previousSibling:X.lastChild):j=h.nodeType===3?Qo(""):he("div"),j.el=h,y.component.subTree=j}}else k&64?J!==8?U=C():U=y.type.hydrate(h,y,S,O,F,M,e,p):k&128?U=y.type.hydrate(h,y,S,O,lr(o(h)),F,M,e,f):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Bt("Invalid HostVNode type:",L,`(${typeof L})`)}return T!=null&&Ns(T,null,O,y),U},d=(h,y,S,O,F,M)=>{M=M||!!y.dynamicChildren;const{type:b,props:C,patchFlag:L,shapeFlag:T,dirs:k,transition:z}=y,J=b==="input"||b==="option";if(J||L!==-1){k&&Tt(y,null,S,"created");let U=!1;if(x(h)){U=Hu(null,z)&&S&&S.vnode.props&&S.vnode.props.appear;const j=h.content.firstChild;U&&z.beforeEnter(j),E(j,h,S),y.el=h=j}if(T&16&&!(C&&(C.innerHTML||C.textContent))){let j=p(h.firstChild,y,h,S,O,F,M),be=!1;for(;j;){ps(h,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!be&&(Bt("Hydration children mismatch on",h,`
     19Server rendered element contains more child nodes than client vdom.`),be=!0),on());const Ge=j;j=j.nextSibling,l(Ge)}}else if(T&8){let j=y.children;j[0]===`
     20`&&(h.tagName==="PRE"||h.tagName==="TEXTAREA")&&(j=j.slice(1)),h.textContent!==j&&(ps(h,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Bt("Hydration text content mismatch on",h,`
     21  - rendered on server: ${h.textContent}
     22  - expected on client: ${y.children}`),on()),h.textContent=y.children)}if(C){if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||J||!M||L&48){const j=h.tagName.includes("-");for(const be in C)__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!(k&&k.some(Ge=>Ge.dir.created))&&Rh(h,be,C[be],y,S)&&on(),(J&&(be.endsWith("value")||be==="indeterminate")||In(be)&&!Yt(be)||be[0]==="."||j)&&s(h,be,null,C[be],void 0,S)}else if(C.onClick)s(h,"onClick",null,C.onClick,void 0,S);else if(L&4&&Jt(C.style))for(const j in C.style)C.style[j]}let X;(X=C&&C.onVnodeBeforeMount)&&Je(X,S,y),k&&Tt(y,null,S,"beforeMount"),((X=C&&C.onVnodeMounted)||k||U)&&Ju(()=>{X&&Je(X,S,y),U&&z.enter(h),k&&Tt(y,null,S,"mounted")},O)}return h.nextSibling},p=(h,y,S,O,F,M,b)=>{b=b||!!y.dynamicChildren;const C=y.children,L=C.length;let T=!1;for(let k=0;k<L;k++){const z=b?C[k]:C[k]=Ze(C[k]),J=z.type===Qt;h?(J&&!b&&k+1<L&&Ze(C[k+1]).type===Qt&&(a(r(h.data.slice(z.children.length)),S,i(h)),h.data=z.children),h=f(h,z,O,F,M,b)):J&&!z.children?a(z.el=r(""),S):(ps(S,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!T&&(Bt("Hydration children mismatch on",S,`
     23Server rendered element contains fewer child nodes than client vdom.`),T=!0),on()),n(null,z,S,null,O,F,lr(S),M))}return h},v=(h,y,S,O,F,M)=>{const{slotScopeIds:b}=y;b&&(F=F?F.concat(b):b);const C=o(h),L=p(i(h),y,C,S,O,F,M);return L&&fn(L)&&L.data==="]"?i(y.anchor=L):(on(),a(y.anchor=u("]"),C,L),L)},m=(h,y,S,O,F,M)=>{if(ps(h.parentElement,1)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Bt(`Hydration node mismatch:
     24- rendered on server:`,h,h.nodeType===3?"(text)":fn(h)&&h.data==="["?"(start of fragment)":"",`
     25- expected on client:`,y.type),on()),y.el=null,M){const L=A(h);for(;;){const T=i(h);if(T&&T!==L)l(T);else break}}const b=i(h),C=o(h);return l(h),n(null,y,C,b,S,O,lr(C),F),S&&(S.vnode.el=y.el,vi(S,y.el)),b},A=(h,y="[",S="]")=>{let O=0;for(;h;)if(h=i(h),h&&fn(h)&&(h.data===y&&O++,h.data===S)){if(O===0)return i(h);O--}return h},E=(h,y,S)=>{const O=y.parentNode;O&&O.replaceChild(h,y);let F=S;for(;F;)F.vnode.el===y&&(F.vnode.el=F.subTree.el=h),F=F.parent},x=h=>h.nodeType===1&&h.tagName==="TEMPLATE";return[c,f]}function Rh(e,t,n,s,r){let i,o,l,a;if(t==="class")l=e.getAttribute("class"),a=ct(n),Lh(ql(l||""),ql(a))||(i=2,o="class");else if(t==="style"){l=e.getAttribute("style")||"",a=q(n)?n:fp(en(n));const u=Gl(l),c=Gl(a);if(s.dirs)for(const{dir:f,value:d}of s.dirs)f.name==="show"&&!d&&c.set("display","none");r&&pu(r,s,c),kh(u,c)||(i=3,o="style")}else(e instanceof SVGElement&&Cp(t)||e instanceof HTMLElement&&(Fl(t)||wp(t)))&&(Fl(t)?(l=e.hasAttribute(t),a=Mo(n)):n==null?(l=e.hasAttribute(t),a=!1):(e.hasAttribute(t)?l=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?l=e.value:l=!1,a=Tp(n)?String(n):!1),l!==a&&(i=4,o=t));if(i!=null&&!ps(e,i)){const u=d=>d===!1?"(not rendered)":`${o}="${d}"`,c=`Hydration ${hu[i]} mismatch on`,f=`
     26  - rendered on server: ${u(l)}
     27  - expected on client: ${u(a)}
     28  Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.
     29  You should fix the source of the mismatch.`;return Bt(c,e,f),!0}return!1}function ql(e){return new Set(e.trim().split(/\s+/))}function Lh(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Gl(e){const t=new Map;for(const n of e.split(";")){let[s,r]=n.split(":");s=s.trim(),r=r&&r.trim(),s&&r&&t.set(s,r)}return t}function kh(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e)if(s!==t.get(n))return!1;return!0}function pu(e,t,n){const s=e.subTree;if(e.getCssVars&&(t===s||s&&s.type===xe&&s.children.includes(t))){const r=e.getCssVars();for(const i in r)n.set(`--${xp(i,!1)}`,String(r[i]))}t===s&&e.parent&&pu(e.parent,e.vnode,n)}const Yl="data-allow-mismatch",hu={[0]:"text",[1]:"children",[2]:"class",[3]:"style",[4]:"attribute"};function ps(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Yl);)e=e.parentElement;const n=e&&e.getAttribute(Yl);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:n.split(",").includes(hu[t])}}const Dh=zs().requestIdleCallback||(e=>setTimeout(e,1)),$h=zs().cancelIdleCallback||(e=>clearTimeout(e)),Fh=(e=1e4)=>t=>{const n=Dh(t,{timeout:e});return()=>$h(n)};function Vh(e){const{top:t,left:n,bottom:s,right:r}=e.getBoundingClientRect(),{innerHeight:i,innerWidth:o}=window;return(t>0&&t<i||s>0&&s<i)&&(n>0&&n<o||r>0&&r<o)}const Hh=e=>(t,n)=>{const s=new IntersectionObserver(r=>{for(const i of r)if(!!i.isIntersecting){s.disconnect(),t();break}},e);return n(r=>{if(r instanceof Element){if(Vh(r))return t(),s.disconnect(),!1;s.observe(r)}}),()=>s.disconnect()},Bh=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},Uh=(e=[])=>(t,n)=>{q(e)&&(e=[e]);let s=!1;const r=o=>{s||(s=!0,i(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},i=()=>{n(o=>{for(const l of e)o.removeEventListener(l,r)})};return n(o=>{for(const l of e)o.addEventListener(l,r,{once:!0})}),i};function jh(e,t){if(fn(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(fn(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Zt=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function zh(e){G(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:a}=e;let u=null,c,f=0;const d=()=>(f++,u=null,p()),p=()=>{let v;return u||(v=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),a)return new Promise((A,E)=>{a(m,()=>A(d()),()=>E(m),f+1)});throw m}).then(m=>v!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return Q({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(v,m,A){const E=i?()=>{const x=i(A,h=>jh(v,h));x&&(m.bum||(m.bum=[])).push(x)}:A;c?E():p().then(()=>!m.isUnmounted&&E())},get __asyncResolved(){return c},setup(){const v=Ne;if(Uo(v),c)return()=>$i(c,v);const m=h=>{u=null,Pn(h,v,13,!s)};if(l&&v.suspense||Gn)return p().then(h=>()=>$i(h,v)).catch(h=>(m(h),()=>s?he(s,{error:h}):null));const A=Se(!1),E=Se(),x=Se(!!r);return r&&setTimeout(()=>{x.value=!1},r),o!=null&&setTimeout(()=>{if(!A.value&&!E.value){const h=new Error(`Async component timed out after ${o}ms.`);m(h),E.value=h}},o),p().then(()=>{A.value=!0,v.parent&&qs(v.parent.vnode)&&v.parent.update()}).catch(h=>{m(h),E.value=h}),()=>{if(A.value&&c)return $i(c,v);if(E.value&&s)return he(s,{error:E.value});if(n&&!x.value)return he(n)}}})}function $i(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=he(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const qs=e=>e.type.__isKeepAlive,Kh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Re(),s=n.ctx;if(!s.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:a,m:u,um:c,o:{createElement:f}}}=s,d=f("div");s.activate=(x,h,y,S,O)=>{const F=x.component;u(x,h,y,0,l),a(F.vnode,x,h,y,F,l,S,x.slotScopeIds,O),Ie(()=>{F.isDeactivated=!1,F.a&&zn(F.a);const M=x.props&&x.props.onVnodeMounted;M&&Je(M,F.parent,x)},l)},s.deactivate=x=>{const h=x.component;kr(h.m),kr(h.a),u(x,d,null,1,l),Ie(()=>{h.da&&zn(h.da);const y=x.props&&x.props.onVnodeUnmounted;y&&Je(y,h.parent,x),h.isDeactivated=!0},l)};function p(x){Fi(x),c(x,n,l,!0)}function v(x){r.forEach((h,y)=>{const S=Vr(h.type);S&&!x(S)&&m(y)})}function m(x){const h=r.get(x);h&&(!o||!_t(h,o))?p(h):o&&Fi(o),r.delete(x),i.delete(x)}Et(()=>[e.include,e.exclude],([x,h])=>{x&&v(y=>hs(x,y)),h&&v(y=>!hs(h,y))},{flush:"post",deep:!0});let A=null;const E=()=>{A!=null&&(Dr(n.subTree.type)?Ie(()=>{r.set(A,ar(n.subTree))},n.subTree.suspense):r.set(A,ar(n.subTree)))};return Ln(E),gi(E),mi(()=>{r.forEach(x=>{const{subTree:h,suspense:y}=n,S=ar(h);if(x.type===S.type&&x.key===S.key){Fi(S);const O=S.component.da;O&&Ie(O,y);return}p(x)})}),()=>{if(A=null,!t.default)return o=null;const x=t.default(),h=x[0];if(x.length>1)return o=null,x;if(!ht(h)||!(h.shapeFlag&4)&&!(h.shapeFlag&128))return o=null,h;let y=ar(h);if(y.type===Ae)return o=null,y;const S=y.type,O=Vr(Zt(y)?y.type.__asyncResolved||{}:S),{include:F,exclude:M,max:b}=e;if(F&&(!O||!hs(F,O))||M&&O&&hs(M,O))return y.shapeFlag&=-257,o=y,h;const C=y.key==null?S:y.key,L=r.get(C);return y.el&&(y=xt(y),h.shapeFlag&128&&(h.ssContent=y)),A=C,L?(y.el=L.el,y.component=L.component,y.transition&&kt(y,y.transition),y.shapeFlag|=512,i.delete(C),i.add(C)):(i.add(C),b&&i.size>parseInt(b,10)&&m(i.values().next().value)),y.shapeFlag|=256,o=y,Dr(h.type)?h:y}}},Wh=Kh;function hs(e,t){return H(e)?e.some(n=>hs(n,t)):q(e)?e.split(",").includes(t):ep(e)?(e.lastIndex=0,e.test(t)):!1}function gu(e,t){_u(e,"a",t)}function mu(e,t){_u(e,"da",t)}function _u(e,t,n=Ne){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hi(t,s,n),n){let r=n.parent;for(;r&&r.parent;)qs(r.parent.vnode)&&qh(s,t,n,r),r=r.parent}}function qh(e,t,n,s){const r=hi(t,e,s,!0);_i(()=>{Io(s[t],r)},n)}function Fi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ar(e){return e.shapeFlag&128?e.ssContent:e}function hi(e,t,n=Ne,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Dt();const l=En(n),a=pt(t,n,e,o);return l(),$t(),a});return s?r.unshift(i):r.push(i),i}}const Ft=e=>(t,n=Ne)=>{(!Gn||e==="sp")&&hi(e,(...s)=>t(...s),n)},yu=Ft("bm"),Ln=Ft("m"),jo=Ft("bu"),gi=Ft("u"),mi=Ft("bum"),_i=Ft("um"),vu=Ft("sp"),bu=Ft("rtg"),Su=Ft("rtc");function wu(e,t=Ne){hi("ec",e,t)}const zo="components",Gh="directives";function Yh(e,t){return Ko(zo,e,!0,t)||e}const Cu=Symbol.for("v-ndc");function Tu(e){return q(e)?Ko(zo,e,!1)||e:e||Cu}function Jh(e){return Ko(Gh,e)}function Ko(e,t,n=!0,s=!1){const r=Me||Ne;if(r){const i=r.type;if(e===zo){const l=Vr(i,!1);if(l&&(l===t||l===_e(t)||l===Nn(_e(t))))return i}const o=Jl(r[e]||i[e],t)||Jl(r.appContext[e],t);return!o&&s?i:o}}function Jl(e,t){return e&&(e[t]||e[_e(t)]||e[Nn(_e(t))])}function Zh(e,t,n,s){let r;const i=n&&n[s],o=H(e);if(o||q(e)){const l=o&&Jt(e);let a=!1;l&&(a=!it(e),e=ai(e)),r=new Array(e.length);for(let u=0,c=e.length;u<c;u++)r[u]=t(a?Ve(e[u]):e[u],u,void 0,i&&i[u])}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i&&i[l])}else if(ce(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,u=l.length;a<u;a++){const c=l[a];r[a]=t(e[c],c,a,i&&i[a])}}else r=[];return n&&(n[s]=r),r}function Qh(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(H(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Wo(e,t,n={},s,r){if(Me.ce||Me.parent&&Zt(Me.parent)&&Me.parent.ce)return t!=="default"&&(n.name=t),Y(),Gt(xe,null,[he("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),Y();const o=i&&qo(i(n)),l=n.key||o&&o.key,a=Gt(xe,{key:(l&&!Xe(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function qo(e){return e.some(t=>ht(t)?!(t.type===Ae||t.type===xe&&!qo(t.children)):!0)?e:null}function Xh(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:jn(s)]=e[s];return n}const Xi=e=>e?nf(e)?Ys(e):Xi(e.parent):null,vs=ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xi(e.parent),$root:e=>Xi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Go(e),$forceUpdate:e=>e.f||(e.f=()=>{Vo(e.update)}),$nextTick:e=>e.n||(e.n=Rn.bind(e.proxy)),$watch:e=>M0.bind(e)}),Vi=(e,t)=>e!==re&&!e.__isScriptSetup&&ae(e,t),eo={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Vi(s,t))return o[t]=1,s[t];if(r!==re&&ae(r,t))return o[t]=2,r[t];if((u=e.propsOptions[0])&&ae(u,t))return o[t]=3,i[t];if(n!==re&&ae(n,t))return o[t]=4,n[t];to&&(o[t]=0)}}const c=vs[t];let f,d;if(c)return t==="$attrs"&&Fe(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==re&&ae(n,t))return o[t]=4,n[t];if(d=a.config.globalProperties,ae(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Vi(r,t)?(r[t]=n,!0):s!==re&&ae(s,t)?(s[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==re&&ae(e,o)||Vi(t,o)||(l=i[0])&&ae(l,o)||ae(s,o)||ae(vs,o)||ae(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},e0=ie({},eo,{get(e,t){if(t!==Symbol.unscopables)return eo.get(e,t,e)},has(e,t){return t[0]!=="_"&&!lp(t)}});function t0(){return null}function n0(){return null}function s0(e){}function r0(e){}function i0(){return null}function o0(){}function l0(e,t){return null}function a0(){return Eu().slots}function c0(){return Eu().attrs}function Eu(){const e=Re();return e.setupContext||(e.setupContext=lf(e))}function Ms(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function u0(e,t){const n=Ms(e);for(const s in t){if(s.startsWith("__skip"))continue;let r=n[s];r?H(r)||G(r)?r=n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(r=n[s]={default:t[s]}),r&&t[`__skip_${s}`]&&(r.skipFactory=!0)}return n}function f0(e,t){return!e||!t?e||t:H(e)&&H(t)?e.concat(t):ie({},Ms(e),Ms(t))}function d0(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function p0(e){const t=Re();let n=e();return lo(),Oo(n)&&(n=n.catch(s=>{throw En(t),s})),[n,()=>En(t)]}let to=!0;function h0(e){const t=Go(e),n=e.proxy,s=e.ctx;to=!1,t.beforeCreate&&Zl(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:v,activated:m,deactivated:A,beforeDestroy:E,beforeUnmount:x,destroyed:h,unmounted:y,render:S,renderTracked:O,renderTriggered:F,errorCaptured:M,serverPrefetch:b,expose:C,inheritAttrs:L,components:T,directives:k,filters:z}=t;if(u&&g0(u,s,null),o)for(const X in o){const j=o[X];G(j)&&(s[X]=j.bind(n))}if(r){const X=r.call(n,n);ce(X)&&(e.data=Ks(X))}if(to=!0,i)for(const X in i){const j=i[X],be=G(j)?j.bind(n,n):G(j.get)?j.get.bind(n,n):Pe,Ge=!G(j)&&G(j.set)?j.set.bind(n):Pe,gt=pe({get:be,set:Ge});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>gt.value,set:bt=>gt.value=bt})}if(l)for(const X in l)xu(l[X],s,n,X);if(a){const X=G(a)?a.call(n):a;Reflect.ownKeys(X).forEach(j=>{Yo(j,X[j])})}c&&Zl(c,e,"c");function U(X,j){H(j)?j.forEach(be=>X(be.bind(n))):j&&X(j.bind(n))}if(U(yu,f),U(Ln,d),U(jo,p),U(gi,v),U(gu,m),U(mu,A),U(wu,M),U(Su,O),U(bu,F),U(mi,x),U(_i,y),U(vu,b),H(C))if(C.length){const X=e.exposed||(e.exposed={});C.forEach(j=>{Object.defineProperty(X,j,{get:()=>n[j],set:be=>n[j]=be})})}else e.exposed||(e.exposed={});S&&e.render===Pe&&(e.render=S),L!=null&&(e.inheritAttrs=L),T&&(e.components=T),k&&(e.directives=k),b&&Uo(e)}function g0(e,t,n=Pe){H(e)&&(e=no(e));for(const s in e){const r=e[s];let i;ce(r)?"default"in r?i=ot(r.from||s,r.default,!0):i=ot(r.from||s):i=ot(r),Ce(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Zl(e,t,n){pt(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xu(e,t,n,s){let r=s.includes(".")?Wu(n,s):()=>n[s];if(q(e)){const i=t[e];G(i)&&Et(r,i)}else if(G(e))Et(r,e.bind(n));else if(ce(e))if(H(e))e.forEach(i=>xu(i,t,n,s));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&Et(r,i,e)}}function Go(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(u=>Lr(a,u,o,!0)),Lr(a,t,o)),ce(t)&&i.set(t,a),a}function Lr(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Lr(e,i,n,!0),r&&r.forEach(o=>Lr(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=m0[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const m0={data:Ql,props:Xl,emits:Xl,methods:gs,computed:gs,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:gs,directives:gs,watch:y0,provide:Ql,inject:_0};function Ql(e,t){return t?e?function(){return ie(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function _0(e,t){return gs(no(e),no(t))}function no(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function gs(e,t){return e?ie(Object.create(null),e,t):t}function Xl(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:ie(Object.create(null),Ms(e),Ms(t!=null?t:{})):t}function y0(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=ze(e[s],t[s]);return n}function Au(){return{app:null,config:{isNativeTag:ds,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let v0=0;function b0(e,t){return function(s,r=null){G(s)||(s=ie({},s)),r!=null&&!ce(r)&&(r=null);const i=Au(),o=new WeakSet,l=[];let a=!1;const u=i.app={_uid:v0++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:uf,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&G(c.install)?(o.add(c),c.install(u,...f)):G(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!a){const p=u._ceVNode||he(s,r);return p.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,c):e(p,c,d),a=!0,u._container=c,c.__vue_app__=u,Ys(p.component)}},onUnmount(c){l.push(c)},unmount(){a&&(pt(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=vn;vn=u;try{return c()}finally{vn=f}}};return u}}let vn=null;function Yo(e,t){if(Ne){let n=Ne.provides;const s=Ne.parent&&Ne.parent.provides;s===n&&(n=Ne.provides=Object.create(s)),n[e]=t}}function ot(e,t,n=!1){const s=Ne||Me;if(s||vn){const r=vn?vn._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&G(t)?t.call(s&&s.proxy):t}}function S0(){return!!(Ne||Me||vn)}const Iu={},Ou=()=>Object.create(Iu),Nu=e=>Object.getPrototypeOf(e)===Iu;function w0(e,t,n,s=!1){const r={},i=Ou();e.propsDefaults=Object.create(null),Mu(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:qc(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function C0(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=se(r),[a]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(yi(e.emitsOptions,d))continue;const p=t[d];if(a)if(ae(i,d))p!==i[d]&&(i[d]=p,u=!0);else{const v=_e(d);r[v]=so(a,l,v,p,e,!1)}else p!==i[d]&&(i[d]=p,u=!0)}}}else{Mu(e,t,r,i)&&(u=!0);let c;for(const f in l)(!t||!ae(t,f)&&((c=He(f))===f||!ae(t,c)))&&(a?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=so(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ae(t,f)&&!0)&&(delete i[f],u=!0)}u&&Mt(e.attrs,"set","")}function Mu(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Yt(a))continue;const u=t[a];let c;r&&ae(r,c=_e(a))?!i||!i.includes(c)?n[c]=u:(l||(l={}))[c]=u:yi(e.emitsOptions,a)||(!(a in s)||u!==s[a])&&(s[a]=u,o=!0)}if(i){const a=se(n),u=l||re;for(let c=0;c<i.length;c++){const f=i[c];n[f]=so(r,a,f,u[f],e,!ae(u,f))}}return o}function so(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=ae(o,"default");if(l&&s===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&G(a)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=En(r);s=u[n]=a.call(null,t),c()}}else s=a;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===He(n))&&(s=!0))}return s}const T0=new WeakMap;function Pu(e,t,n=!1){const s=n?T0:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let a=!1;if(!G(e)){const c=f=>{a=!0;const[d,p]=Pu(f,t,!0);ie(o,d),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return ce(e)&&s.set(e,Bn),Bn;if(H(i))for(let c=0;c<i.length;c++){const f=_e(i[c]);ea(f)&&(o[f]=re)}else if(i)for(const c in i){const f=_e(c);if(ea(f)){const d=i[c],p=o[f]=H(d)||G(d)?{type:d}:ie({},d),v=p.type;let m=!1,A=!0;if(H(v))for(let E=0;E<v.length;++E){const x=v[E],h=G(x)&&x.name;if(h==="Boolean"){m=!0;break}else h==="String"&&(A=!1)}else m=G(v)&&v.name==="Boolean";p[0]=m,p[1]=A,(m||ae(p,"default"))&&l.push(f)}}const u=[o,l];return ce(e)&&s.set(e,u),u}function ea(e){return e[0]!=="$"&&!Yt(e)}const Ru=e=>e[0]==="_"||e==="$stable",Jo=e=>H(e)?e.map(Ze):[Ze(e)],E0=(e,t,n)=>{if(t._n)return t;const s=yn((...r)=>Jo(t(...r)),n);return s._c=!1,s},Lu=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ru(r))continue;const i=e[r];if(G(i))t[r]=E0(r,i,s);else if(i!=null){const o=Jo(i);t[r]=()=>o}}},ku=(e,t)=>{const n=Jo(t);e.slots.default=()=>n},Du=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},x0=(e,t,n)=>{const s=e.slots=Ou();if(e.vnode.shapeFlag&32){const r=t._;r?(Du(s,t,n),n&&xc(s,"_",r,!0)):Lu(t,s)}else t&&ku(e,t)},A0=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=re;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Du(r,t,n):(i=!t.$stable,Lu(t,r)),o=t}else t&&(ku(e,t),o={default:1});if(i)for(const l in r)!Ru(l)&&o[l]==null&&delete r[l]};function I0(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(zs().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ie=Ju;function $u(e){return Vu(e)}function Fu(e){return Vu(e,Ph)}function Vu(e,t){I0();const n=zs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Pe,insertStaticContent:v}=e,m=(g,_,w,P=null,I=null,N=null,V=void 0,$=null,D=!!_.dynamicChildren)=>{if(g===_)return;g&&!_t(g,_)&&(P=er(g),bt(g,I,N,!0),g=null),_.patchFlag===-2&&(D=!1,_.dynamicChildren=null);const{type:R,ref:Z,shapeFlag:B}=_;switch(R){case Qt:A(g,_,w,P);break;case Ae:E(g,_,w,P);break;case bn:g==null&&x(_,w,P,V);break;case xe:T(g,_,w,P,I,N,V,$,D);break;default:B&1?S(g,_,w,P,I,N,V,$,D):B&6?k(g,_,w,P,I,N,V,$,D):(B&64||B&128)&&R.process(g,_,w,P,I,N,V,$,D,Dn)}Z!=null&&I&&Ns(Z,g&&g.ref,N,_||g,!_)},A=(g,_,w,P)=>{if(g==null)s(_.el=l(_.children),w,P);else{const I=_.el=g.el;_.children!==g.children&&u(I,_.children)}},E=(g,_,w,P)=>{g==null?s(_.el=a(_.children||""),w,P):_.el=g.el},x=(g,_,w,P)=>{[g.el,g.anchor]=v(g.children,_,w,P,g.el,g.anchor)},h=({el:g,anchor:_},w,P)=>{let I;for(;g&&g!==_;)I=d(g),s(g,w,P),g=I;s(_,w,P)},y=({el:g,anchor:_})=>{let w;for(;g&&g!==_;)w=d(g),r(g),g=w;r(_)},S=(g,_,w,P,I,N,V,$,D)=>{_.type==="svg"?V="svg":_.type==="math"&&(V="mathml"),g==null?O(_,w,P,I,N,V,$,D):b(g,_,I,N,V,$,D)},O=(g,_,w,P,I,N,V,$)=>{let D,R;const{props:Z,shapeFlag:B,transition:W,dirs:ee}=g;if(D=g.el=o(g.type,N,Z&&Z.is,Z),B&8?c(D,g.children):B&16&&M(g.children,D,null,P,I,Hi(g,N),V,$),ee&&Tt(g,null,P,"created"),F(D,g,g.scopeId,V,P),Z){for(const ge in Z)ge!=="value"&&!Yt(ge)&&i(D,ge,null,Z[ge],N,P);"value"in Z&&i(D,"value",null,Z.value,N),(R=Z.onVnodeBeforeMount)&&Je(R,P,g)}ee&&Tt(g,null,P,"beforeMount");const oe=Hu(I,W);oe&&W.beforeEnter(D),s(D,_,w),((R=Z&&Z.onVnodeMounted)||oe||ee)&&Ie(()=>{R&&Je(R,P,g),oe&&W.enter(D),ee&&Tt(g,null,P,"mounted")},I)},F=(g,_,w,P,I)=>{if(w&&p(g,w),P)for(let N=0;N<P.length;N++)p(g,P[N]);if(I){let N=I.subTree;if(_===N||Dr(N.type)&&(N.ssContent===_||N.ssFallback===_)){const V=I.vnode;F(g,V,V.scopeId,V.slotScopeIds,I.parent)}}},M=(g,_,w,P,I,N,V,$,D=0)=>{for(let R=D;R<g.length;R++){const Z=g[R]=$?Wt(g[R]):Ze(g[R]);m(null,Z,_,w,P,I,N,V,$)}},b=(g,_,w,P,I,N,V)=>{const $=_.el=g.el;let{patchFlag:D,dynamicChildren:R,dirs:Z}=_;D|=g.patchFlag&16;const B=g.props||re,W=_.props||re;let ee;if(w&&ln(w,!1),(ee=W.onVnodeBeforeUpdate)&&Je(ee,w,_,g),Z&&Tt(_,g,w,"beforeUpdate"),w&&ln(w,!0),(B.innerHTML&&W.innerHTML==null||B.textContent&&W.textContent==null)&&c($,""),R?C(g.dynamicChildren,R,$,w,P,Hi(_,I),N):V||j(g,_,$,null,w,P,Hi(_,I),N,!1),D>0){if(D&16)L($,B,W,w,I);else if(D&2&&B.class!==W.class&&i($,"class",null,W.class,I),D&4&&i($,"style",B.style,W.style,I),D&8){const oe=_.dynamicProps;for(let ge=0;ge<oe.length;ge++){const de=oe[ge],et=B[de],ke=W[de];(ke!==et||de==="value")&&i($,de,et,ke,I,w)}}D&1&&g.children!==_.children&&c($,_.children)}else!V&&R==null&&L($,B,W,w,I);((ee=W.onVnodeUpdated)||Z)&&Ie(()=>{ee&&Je(ee,w,_,g),Z&&Tt(_,g,w,"updated")},P)},C=(g,_,w,P,I,N,V)=>{for(let $=0;$<_.length;$++){const D=g[$],R=_[$],Z=D.el&&(D.type===xe||!_t(D,R)||D.shapeFlag&70)?f(D.el):w;m(D,R,Z,null,P,I,N,V,!0)}},L=(g,_,w,P,I)=>{if(_!==w){if(_!==re)for(const N in _)!Yt(N)&&!(N in w)&&i(g,N,_[N],null,I,P);for(const N in w){if(Yt(N))continue;const V=w[N],$=_[N];V!==$&&N!=="value"&&i(g,N,$,V,I,P)}"value"in w&&i(g,"value",_.value,w.value,I)}},T=(g,_,w,P,I,N,V,$,D)=>{const R=_.el=g?g.el:l(""),Z=_.anchor=g?g.anchor:l("");let{patchFlag:B,dynamicChildren:W,slotScopeIds:ee}=_;ee&&($=$?$.concat(ee):ee),g==null?(s(R,w,P),s(Z,w,P),M(_.children||[],w,Z,I,N,V,$,D)):B>0&&B&64&&W&&g.dynamicChildren?(C(g.dynamicChildren,W,w,I,N,V,$),(_.key!=null||I&&_===I.subTree)&&Zo(g,_,!0)):j(g,_,w,Z,I,N,V,$,D)},k=(g,_,w,P,I,N,V,$,D)=>{_.slotScopeIds=$,g==null?_.shapeFlag&512?I.ctx.activate(_,w,P,V,D):z(_,w,P,I,N,V,D):J(g,_,D)},z=(g,_,w,P,I,N,V)=>{const $=g.component=tf(g,P,I);if(qs(g)&&($.ctx.renderer=Dn),sf($,!1,V),$.asyncDep){if(I&&I.registerDep($,U,V),!g.el){const D=$.subTree=he(Ae);E(null,D,_,w)}}else U($,g,_,w,I,N,V)},J=(g,_,w)=>{const P=_.component=g.component;if($0(g,_,w))if(P.asyncDep&&!P.asyncResolved){X(P,_,w);return}else P.next=_,P.update();else _.el=g.el,P.vnode=_},U=(g,_,w,P,I,N,V)=>{const $=()=>{if(g.isMounted){let{next:B,bu:W,u:ee,parent:oe,vnode:ge}=g;{const tt=Bu(g);if(tt){B&&(B.el=ge.el,X(g,B,V)),tt.asyncDep.then(()=>{g.isUnmounted||$()});return}}let de=B,et;ln(g,!1),B?(B.el=ge.el,X(g,B,V)):B=ge,W&&zn(W),(et=B.props&&B.props.onVnodeBeforeUpdate)&&Je(et,oe,B,ge),ln(g,!0);const ke=mr(g),mt=g.subTree;g.subTree=ke,m(mt,ke,f(mt.el),er(mt),g,I,N),B.el=ke.el,de===null&&vi(g,ke.el),ee&&Ie(ee,I),(et=B.props&&B.props.onVnodeUpdated)&&Ie(()=>Je(et,oe,B,ge),I)}else{let B;const{el:W,props:ee}=_,{bm:oe,m:ge,parent:de,root:et,type:ke}=g,mt=Zt(_);if(ln(g,!1),oe&&zn(oe),!mt&&(B=ee&&ee.onVnodeBeforeMount)&&Je(B,de,_),ln(g,!0),W&&Ni){const tt=()=>{g.subTree=mr(g),Ni(W,g.subTree,g,I,null)};mt&&ke.__asyncHydrate?ke.__asyncHydrate(W,g,tt):tt()}else{et.ce&&et.ce._injectChildStyle(ke);const tt=g.subTree=mr(g);m(null,tt,w,P,g,I,N),_.el=tt.el}if(ge&&Ie(ge,I),!mt&&(B=ee&&ee.onVnodeMounted)){const tt=_;Ie(()=>Je(B,de,tt),I)}(_.shapeFlag&256||de&&Zt(de.vnode)&&de.vnode.shapeFlag&256)&&g.a&&Ie(g.a,I),g.isMounted=!0,_=w=P=null}};g.scope.on();const D=g.effect=new Ts($);g.scope.off();const R=g.update=D.run.bind(D),Z=g.job=D.runIfDirty.bind(D);Z.i=g,Z.id=g.uid,D.scheduler=()=>Vo(Z),ln(g,!0),R()},X=(g,_,w)=>{_.component=g;const P=g.vnode.props;g.vnode=_,g.next=null,C0(g,_.props,P,w),A0(g,_.children,w),Dt(),Bl(g),$t()},j=(g,_,w,P,I,N,V,$,D=!1)=>{const R=g&&g.children,Z=g?g.shapeFlag:0,B=_.children,{patchFlag:W,shapeFlag:ee}=_;if(W>0){if(W&128){Ge(R,B,w,P,I,N,V,$,D);return}else if(W&256){be(R,B,w,P,I,N,V,$,D);return}}ee&8?(Z&16&&is(R,I,N),B!==R&&c(w,B)):Z&16?ee&16?Ge(R,B,w,P,I,N,V,$,D):is(R,I,N,!0):(Z&8&&c(w,""),ee&16&&M(B,w,P,I,N,V,$,D))},be=(g,_,w,P,I,N,V,$,D)=>{g=g||Bn,_=_||Bn;const R=g.length,Z=_.length,B=Math.min(R,Z);let W;for(W=0;W<B;W++){const ee=_[W]=D?Wt(_[W]):Ze(_[W]);m(g[W],ee,w,null,I,N,V,$,D)}R>Z?is(g,I,N,!0,!1,B):M(_,w,P,I,N,V,$,D,B)},Ge=(g,_,w,P,I,N,V,$,D)=>{let R=0;const Z=_.length;let B=g.length-1,W=Z-1;for(;R<=B&&R<=W;){const ee=g[R],oe=_[R]=D?Wt(_[R]):Ze(_[R]);if(_t(ee,oe))m(ee,oe,w,null,I,N,V,$,D);else break;R++}for(;R<=B&&R<=W;){const ee=g[B],oe=_[W]=D?Wt(_[W]):Ze(_[W]);if(_t(ee,oe))m(ee,oe,w,null,I,N,V,$,D);else break;B--,W--}if(R>B){if(R<=W){const ee=W+1,oe=ee<Z?_[ee].el:P;for(;R<=W;)m(null,_[R]=D?Wt(_[R]):Ze(_[R]),w,oe,I,N,V,$,D),R++}}else if(R>W)for(;R<=B;)bt(g[R],I,N,!0),R++;else{const ee=R,oe=R,ge=new Map;for(R=oe;R<=W;R++){const nt=_[R]=D?Wt(_[R]):Ze(_[R]);nt.key!=null&&ge.set(nt.key,R)}let de,et=0;const ke=W-oe+1;let mt=!1,tt=0;const os=new Array(ke);for(R=0;R<ke;R++)os[R]=0;for(R=ee;R<=B;R++){const nt=g[R];if(et>=ke){bt(nt,I,N,!0);continue}let St;if(nt.key!=null)St=ge.get(nt.key);else for(de=oe;de<=W;de++)if(os[de-oe]===0&&_t(nt,_[de])){St=de;break}St===void 0?bt(nt,I,N,!0):(os[St-oe]=R+1,St>=tt?tt=St:mt=!0,m(nt,_[St],w,null,I,N,V,$,D),et++)}const Ll=mt?O0(os):Bn;for(de=Ll.length-1,R=ke-1;R>=0;R--){const nt=oe+R,St=_[nt],kl=nt+1<Z?_[nt+1].el:P;os[R]===0?m(null,St,w,kl,I,N,V,$,D):mt&&(de<0||R!==Ll[de]?gt(St,w,kl,2):de--)}}},gt=(g,_,w,P,I=null)=>{const{el:N,type:V,transition:$,children:D,shapeFlag:R}=g;if(R&6){gt(g.component.subTree,_,w,P);return}if(R&128){g.suspense.move(_,w,P);return}if(R&64){V.move(g,_,w,Dn);return}if(V===xe){s(N,_,w);for(let B=0;B<D.length;B++)gt(D[B],_,w,P);s(g.anchor,_,w);return}if(V===bn){h(g,_,w);return}if(P!==2&&R&1&&$)if(P===0)$.beforeEnter(N),s(N,_,w),Ie(()=>$.enter(N),I);else{const{leave:B,delayLeave:W,afterLeave:ee}=$,oe=()=>s(N,_,w),ge=()=>{B(N,()=>{oe(),ee&&ee()})};W?W(N,oe,ge):ge()}else s(N,_,w)},bt=(g,_,w,P=!1,I=!1)=>{const{type:N,props:V,ref:$,children:D,dynamicChildren:R,shapeFlag:Z,patchFlag:B,dirs:W,cacheIndex:ee}=g;if(B===-2&&(I=!1),$!=null&&Ns($,null,w,g,!0),ee!=null&&(_.renderCache[ee]=void 0),Z&256){_.ctx.deactivate(g);return}const oe=Z&1&&W,ge=!Zt(g);let de;if(ge&&(de=V&&V.onVnodeBeforeUnmount)&&Je(de,_,g),Z&6)Qd(g.component,w,P);else{if(Z&128){g.suspense.unmount(w,P);return}oe&&Tt(g,null,_,"beforeUnmount"),Z&64?g.type.remove(g,_,w,Dn,P):R&&!R.hasOnce&&(N!==xe||B>0&&B&64)?is(R,_,w,!1,!0):(N===xe&&B&384||!I&&Z&16)&&is(D,_,w),P&&Pl(g)}(ge&&(de=V&&V.onVnodeUnmounted)||oe)&&Ie(()=>{de&&Je(de,_,g),oe&&Tt(g,null,_,"unmounted")},w)},Pl=g=>{const{type:_,el:w,anchor:P,transition:I}=g;if(_===xe){Zd(w,P);return}if(_===bn){y(g);return}const N=()=>{r(w),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(g.shapeFlag&1&&I&&!I.persisted){const{leave:V,delayLeave:$}=I,D=()=>V(w,N);$?$(g.el,N,D):D()}else N()},Zd=(g,_)=>{let w;for(;g!==_;)w=d(g),r(g),g=w;r(_)},Qd=(g,_,w)=>{const{bum:P,scope:I,job:N,subTree:V,um:$,m:D,a:R}=g;kr(D),kr(R),P&&zn(P),I.stop(),N&&(N.flags|=8,bt(V,g,_,w)),$&&Ie($,_),Ie(()=>{g.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},is=(g,_,w,P=!1,I=!1,N=0)=>{for(let V=N;V<g.length;V++)bt(g[V],_,w,P,I)},er=g=>{if(g.shapeFlag&6)return er(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const _=d(g.anchor||g.el),w=_&&_[iu];return w?d(w):_};let Ii=!1;const Rl=(g,_,w)=>{g==null?_._vnode&&bt(_._vnode,null,null,!0):m(_._vnode||null,g,_,null,null,null,w),_._vnode=g,Ii||(Ii=!0,Bl(),Pr(),Ii=!1)},Dn={p:m,um:bt,m:gt,r:Pl,mt:z,mc:M,pc:j,pbc:C,n:er,o:e};let Oi,Ni;return t&&([Oi,Ni]=t(Dn)),{render:Rl,hydrate:Oi,createApp:b0(Rl,Oi)}}function Hi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zo(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Wt(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Zo(o,l)),l.type===Qt&&(l.el=o.el)}}function O0(e){const t=e.slice(),n=[0];let s,r,i,o,l;const a=e.length;for(s=0;s<a;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<u?i=l+1:o=l;u<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Bu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bu(t)}function kr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Uu=Symbol.for("v-scx"),ju=()=>ot(Uu);function zu(e,t){return Gs(e,null,t)}function N0(e,t){return Gs(e,null,{flush:"post"})}function Ku(e,t){return Gs(e,null,{flush:"sync"})}function Et(e,t,n){return Gs(e,t,n)}function Gs(e,t,n=re){const{immediate:s,deep:r,flush:i,once:o}=n,l=ie({},n),a=t&&s||!t&&i!=="post";let u;if(Gn){if(i==="sync"){const p=ju();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!a){const p=()=>{};return p.stop=Pe,p.resume=Pe,p.pause=Pe,p}}const c=Ne;l.call=(p,v,m)=>pt(p,c,v,m);let f=!1;i==="post"?l.scheduler=p=>{Ie(p,c&&c.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(p,v)=>{v?p():Vo(p)}),l.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=uh(e,t,l);return Gn&&(u?u.push(d):a&&d()),d}function M0(e,t,n){const s=this.proxy,r=q(e)?e.includes(".")?Wu(s,e):()=>s[e]:e.bind(s,s);let i;G(t)?i=t:(i=t.handler,n=t);const o=En(this),l=Gs(r,i.bind(s),n);return o(),l}function Wu(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function P0(e,t,n=re){const s=Re(),r=_e(t),i=He(t),o=qu(e,r),l=Jc((a,u)=>{let c,f=re,d;return Ku(()=>{const p=e[r];We(c,p)&&(c=p,u())}),{get(){return a(),n.get?n.get(c):c},set(p){const v=n.set?n.set(p):p;if(!We(v,c)&&!(f!==re&&We(p,f)))return;const m=s.vnode.props;m&&(t in m||r in m||i in m)&&(`onUpdate:${t}`in m||`onUpdate:${r}`in m||`onUpdate:${i}`in m)||(c=p,u()),s.emit(`update:${t}`,v),We(p,v)&&We(p,f)&&!We(v,d)&&u(),f=p,d=v}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?o||re:l,done:!1}:{done:!0}}}},l}const qu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_e(t)}Modifiers`]||e[`${He(t)}Modifiers`];function R0(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||re;let r=n;const i=t.startsWith("update:"),o=i&&qu(s,t.slice(7));o&&(o.trim&&(r=n.map(c=>q(c)?c.trim():c)),o.number&&(r=n.map(xr)));let l,a=s[l=jn(t)]||s[l=jn(_e(t))];!a&&i&&(a=s[l=jn(He(t))]),a&&pt(a,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,pt(u,e,6,r)}}function Gu(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!G(e)){const a=u=>{const c=Gu(u,t,!0);c&&(l=!0,ie(o,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ce(e)&&s.set(e,null),null):(H(i)?i.forEach(a=>o[a]=null):ie(o,i),ce(e)&&s.set(e,o),o)}function yi(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,He(t))||ae(e,t))}function mr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:a,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:v,inheritAttrs:m}=e,A=Os(e);let E,x;try{if(n.shapeFlag&4){const y=r||s,S=y;E=Ze(u.call(S,y,c,f,p,d,v)),x=l}else{const y=t;E=Ze(y.length>1?y(f,{attrs:l,slots:o,emit:a}):y(f,null)),x=t.props?l:k0(l)}}catch(y){bs.length=0,Pn(y,e,1),E=he(Ae)}let h=E;if(x&&m!==!1){const y=Object.keys(x),{shapeFlag:S}=h;y.length&&S&7&&(i&&y.some(Ao)&&(x=D0(x,i)),h=xt(h,x,!1,!0))}return n.dirs&&(h=xt(h,null,!1,!0),h.dirs=h.dirs?h.dirs.concat(n.dirs):n.dirs),n.transition&&kt(h,n.transition),E=h,Os(A),E}function L0(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(ht(r)){if(r.type!==Ae||r.children==="v-if"){if(n)return;n=r}}else return}return n}const k0=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},D0=(e,t)=>{const n={};for(const s in e)(!Ao(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function $0(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?ta(s,o,u):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==s[d]&&!yi(u,d))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?ta(s,o,u):!0:!!o;return!1}function ta(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!yi(n,i))return!0}return!1}function vi({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Dr=e=>e.__isSuspense;let ro=0;const F0={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,a,u){if(e==null)H0(t,n,s,r,i,o,l,a,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}B0(e,t,n,s,r,o,l,a,u)}},hydrate:U0,normalize:j0},V0=F0;function Ps(e,t){const n=e.props&&e.props[t];G(n)&&n()}function H0(e,t,n,s,r,i,o,l,a){const{p:u,o:{createElement:c}}=a,f=c("div"),d=e.suspense=Yu(e,r,s,t,f,n,i,o,l,a);u(null,d.pendingBranch=e.ssContent,f,null,s,d,i,o),d.deps>0?(Ps(e,"onPending"),Ps(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,i,o),Wn(d,e.ssFallback)):d.resolve(!1,!0)}function B0(e,t,n,s,r,i,o,l,{p:a,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:A,isHydrating:E}=f;if(m)f.pendingBranch=d,_t(d,m)?(a(m,d,f.hiddenContainer,null,r,f,i,o,l),f.deps<=0?f.resolve():A&&(E||(a(v,p,n,s,r,null,i,o,l),Wn(f,p)))):(f.pendingId=ro++,E?(f.isHydrating=!1,f.activeBranch=m):u(m,r,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),A?(a(null,d,f.hiddenContainer,null,r,f,i,o,l),f.deps<=0?f.resolve():(a(v,p,n,s,r,null,i,o,l),Wn(f,p))):v&&_t(d,v)?(a(v,d,n,s,r,f,i,o,l),f.resolve(!0)):(a(null,d,f.hiddenContainer,null,r,f,i,o,l),f.deps<=0&&f.resolve()));else if(v&&_t(d,v))a(v,d,n,s,r,f,i,o,l),Wn(f,d);else if(Ps(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=ro++,a(null,d,f.hiddenContainer,null,r,f,i,o,l),f.deps<=0)f.resolve();else{const{timeout:x,pendingId:h}=f;x>0?setTimeout(()=>{f.pendingId===h&&f.fallback(p)},x):x===0&&f.fallback(p)}}function Yu(e,t,n,s,r,i,o,l,a,u,c=!1){const{p:f,m:d,um:p,n:v,o:{parentNode:m,remove:A}}=u;let E;const x=z0(e);x&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const h=e.props?Ar(e.props.timeout):void 0,y=i,S={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:r,deps:0,pendingId:ro++,timeout:typeof h=="number"?h:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(O=!1,F=!1){const{vnode:M,activeBranch:b,pendingBranch:C,pendingId:L,effects:T,parentComponent:k,container:z}=S;let J=!1;S.isHydrating?S.isHydrating=!1:O||(J=b&&C.transition&&C.transition.mode==="out-in",J&&(b.transition.afterLeave=()=>{L===S.pendingId&&(d(C,z,i===y?v(b):i,0),As(T))}),b&&(m(b.el)===z&&(i=v(b)),p(b,k,S,!0)),J||d(C,z,i,0)),Wn(S,C),S.pendingBranch=null,S.isInFallback=!1;let U=S.parent,X=!1;for(;U;){if(U.pendingBranch){U.effects.push(...T),X=!0;break}U=U.parent}!X&&!J&&As(T),S.effects=[],x&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),Ps(M,"onResolve")},fallback(O){if(!S.pendingBranch)return;const{vnode:F,activeBranch:M,parentComponent:b,container:C,namespace:L}=S;Ps(F,"onFallback");const T=v(M),k=()=>{!S.isInFallback||(f(null,O,C,T,b,null,L,l,a),Wn(S,O))},z=O.transition&&O.transition.mode==="out-in";z&&(M.transition.afterLeave=k),S.isInFallback=!0,p(M,b,null,!0),z||k()},move(O,F,M){S.activeBranch&&d(S.activeBranch,O,F,M),S.container=O},next(){return S.activeBranch&&v(S.activeBranch)},registerDep(O,F,M){const b=!!S.pendingBranch;b&&S.deps++;const C=O.vnode.el;O.asyncDep.catch(L=>{Pn(L,O,0)}).then(L=>{if(O.isUnmounted||S.isUnmounted||S.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:T}=O;ao(O,L,!1),C&&(T.el=C);const k=!C&&O.subTree.el;F(O,T,m(C||O.subTree.el),C?null:v(O.subTree),S,o,M),k&&A(k),vi(O,T.el),b&&--S.deps===0&&S.resolve()})},unmount(O,F){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,O,F),S.pendingBranch&&p(S.pendingBranch,n,O,F)}};return S}function U0(e,t,n,s,r,i,o,l,a){const u=t.suspense=Yu(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),c=a(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function j0(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=na(s?n.default:n),e.ssFallback=s?na(n.fallback):he(Ae)}function na(e){let t;if(G(e)){const n=Tn&&e._c;n&&(e._d=!1,Y()),e=e(),n&&(e._d=!0,t=Be,Zu())}return H(e)&&(e=L0(e)),e=Ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Ju(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):As(e)}function Wn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,vi(s,r))}function z0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const xe=Symbol.for("v-fgt"),Qt=Symbol.for("v-txt"),Ae=Symbol.for("v-cmt"),bn=Symbol.for("v-stc"),bs=[];let Be=null;function Y(e=!1){bs.push(Be=e?null:[])}function Zu(){bs.pop(),Be=bs[bs.length-1]||null}let Tn=1;function io(e,t=!1){Tn+=e,e<0&&Be&&t&&(Be.hasOnce=!0)}function Qu(e){return e.dynamicChildren=Tn>0?Be||Bn:null,Zu(),Tn>0&&Be&&Be.push(e),e}function te(e,t,n,s,r,i){return Qu(K(e,t,n,s,r,i,!0))}function Gt(e,t,n,s,r){return Qu(he(e,t,n,s,r,!0))}function ht(e){return e?e.__v_isVNode===!0:!1}function _t(e,t){return e.type===t.type&&e.key===t.key}function K0(e){}const Xu=({key:e})=>e!=null?e:null,_r=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?q(e)||Ce(e)||G(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,s=0,r=null,i=e===xe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xu(t),ref:t&&_r(t),scopeId:di,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Me};return l?(Xo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=q(n)?8:16),Tn>0&&!o&&Be&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Be.push(a),a}const he=W0;function W0(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Cu)&&(e=Ae),ht(e)){const l=xt(e,t,!0);return n&&Xo(l,n),Tn>0&&!i&&Be&&(l.shapeFlag&6?Be[Be.indexOf(e)]=l:Be.push(l)),l.patchFlag=-2,l}if(t2(e)&&(e=e.__vccOpts),t){t=ef(t);let{class:l,style:a}=t;l&&!q(l)&&(t.class=ct(l)),ce(a)&&(fi(a)&&!H(a)&&(a=ie({},a)),t.style=en(a))}const o=q(e)?1:Dr(e)?128:ou(e)?64:ce(e)?4:G(e)?2:0;return K(e,t,n,s,r,o,i,!0)}function ef(e){return e?fi(e)||Nu(e)?ie({},e):e:null}function xt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:a}=e,u=t?el(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Xu(u),ref:t&&t.ref?n&&i?H(i)?i.concat(_r(t)):[i,_r(t)]:_r(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&kt(c,a.clone(c)),c}function Qo(e=" ",t=0){return he(Qt,null,e,t)}function q0(e,t){const n=he(bn,null,e);return n.staticCount=t,n}function yr(e="",t=!1){return t?(Y(),Gt(Ae,null,e)):he(Ae,null,e)}function Ze(e){return e==null||typeof e=="boolean"?he(Ae):H(e)?he(xe,null,e.slice()):ht(e)?Wt(e):he(Qt,null,String(e))}function Wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Xo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Nu(t)?t._ctx=Me:r===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),s&64?(n=16,t=[Qo(t)]):n=8);e.children=t,e.shapeFlag|=n}function el(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ct([t.class,s.class]));else if(r==="style")t.style=en([t.style,s.style]);else if(In(r)){const i=t[r],o=s[r];o&&i!==o&&!(H(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function Je(e,t,n,s=null){pt(e,t,7,[n,s])}const G0=Au();let Y0=0;function tf(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||G0,i={uid:Y0++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Po(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pu(s,r),emitsOptions:Gu(s,r),emit:null,emitted:null,propsDefaults:re,inheritAttrs:s.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=R0.bind(null,i),e.ce&&e.ce(i),i}let Ne=null;const Re=()=>Ne||Me;let $r,oo;{const e=zs(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};$r=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),oo=t("__VUE_SSR_SETTERS__",n=>Gn=n)}const En=e=>{const t=Ne;return $r(e),e.scope.on(),()=>{e.scope.off(),$r(t)}},lo=()=>{Ne&&Ne.scope.off(),$r(null)};function nf(e){return e.vnode.shapeFlag&4}let Gn=!1;function sf(e,t=!1,n=!1){t&&oo(t);const{props:s,children:r}=e.vnode,i=nf(e);w0(e,s,i,t),x0(e,r,n);const o=i?J0(e,t):void 0;return t&&oo(!1),o}function J0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,eo);const{setup:s}=n;if(s){Dt();const r=e.setupContext=s.length>1?lf(e):null,i=En(e),o=Mn(s,e,0,[e.props,r]),l=Oo(o);if($t(),i(),(l||e.sp)&&!Zt(e)&&Uo(e),l){if(o.then(lo,lo),t)return o.then(a=>{ao(e,a,t)}).catch(a=>{Pn(a,e,0)});e.asyncDep=o}else ao(e,o,t)}else of(e,t)}function ao(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Fo(t)),of(e,n)}let Fr,co;function rf(e){Fr=e,co=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,e0))}}const Z0=()=>!Fr;function of(e,t,n){const s=e.type;if(!e.render){if(!t&&Fr&&!s.render){const r=s.template||Go(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,u=ie(ie({isCustomElement:i,delimiters:l},o),a);s.render=Fr(r,u)}}e.render=s.render||Pe,co&&co(e)}{const r=En(e);Dt();try{h0(e)}finally{$t(),r()}}}const Q0={get(e,t){return Fe(e,"get",""),e[t]}};function lf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Q0),slots:e.slots,emit:e.emit,expose:t}}function Ys(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fo(Gc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vs)return vs[n](e)},has(t,n){return n in t||n in vs}})):e.proxy}const X0=/(?:^|[-_])(\w)/g,e2=e=>e.replace(X0,t=>t.toUpperCase()).replace(/[-_]/g,"");function Vr(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function af(e,t,n=!1){let s=Vr(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?e2(s):n?"App":"Anonymous"}function t2(e){return G(e)&&"__vccOpts"in e}const pe=(e,t)=>oh(e,t,Gn);function dn(e,t,n){const s=arguments.length;return s===2?ce(t)&&!H(t)?ht(t)?he(e,null,[t]):he(e,t):he(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ht(n)&&(n=[n]),he(e,t,n))}function n2(){}function s2(e,t,n,s){const r=n[s];if(r&&cf(r,e))return r;const i=t();return i.memo=e.slice(),i.cacheIndex=s,n[s]=i}function cf(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(We(n[s],t[s]))return!1;return Tn>0&&Be&&Be.push(e),!0}const uf="3.5.13",ff=Pe,r2=vh,i2=Hn,o2=ru,l2={createComponentInstance:tf,setupComponent:sf,renderComponentRoot:mr,setCurrentRenderingInstance:Os,isVNode:ht,normalizeVNode:Ze,getComponentPublicInstance:Ys,ensureValidVNode:qo,pushWarningContext:fh,popWarningContext:dh},a2=l2,c2=null,u2=null,f2=null;/**
     30* @vue/runtime-dom v3.5.13
     31* (c) 2018-present Yuxi (Evan) You and Vue contributors
     32* @license MIT
     33**/let uo;const sa=typeof window<"u"&&window.trustedTypes;if(sa)try{uo=sa.createPolicy("vue",{createHTML:e=>e})}catch{}const df=uo?e=>uo.createHTML(e):e=>e,d2="http://www.w3.org/2000/svg",p2="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,ra=Nt&&Nt.createElement("template"),h2={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Nt.createElementNS(d2,e):t==="mathml"?Nt.createElementNS(p2,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{ra.innerHTML=df(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=ra.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Vt="transition",as="animation",Yn=Symbol("_vtc"),pf={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},hf=ie({},Bo,pf),g2=e=>(e.displayName="Transition",e.props=hf,e),tl=g2((e,{slots:t})=>dn(fu,gf(e),t)),an=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},ia=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function gf(e){const t={};for(const T in e)T in pf||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=o,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=m2(r),m=v&&v[0],A=v&&v[1],{onBeforeEnter:E,onEnter:x,onEnterCancelled:h,onLeave:y,onLeaveCancelled:S,onBeforeAppear:O=E,onAppear:F=x,onAppearCancelled:M=h}=t,b=(T,k,z,J)=>{T._enterCancelled=J,Ut(T,k?c:l),Ut(T,k?u:o),z&&z()},C=(T,k)=>{T._isLeaving=!1,Ut(T,f),Ut(T,p),Ut(T,d),k&&k()},L=T=>(k,z)=>{const J=T?F:x,U=()=>b(k,T,z);an(J,[k,U]),oa(()=>{Ut(k,T?a:i),wt(k,T?c:l),ia(J)||la(k,s,m,U)})};return ie(t,{onBeforeEnter(T){an(E,[T]),wt(T,i),wt(T,o)},onBeforeAppear(T){an(O,[T]),wt(T,a),wt(T,u)},onEnter:L(!1),onAppear:L(!0),onLeave(T,k){T._isLeaving=!0;const z=()=>C(T,k);wt(T,f),T._enterCancelled?(wt(T,d),fo()):(fo(),wt(T,d)),oa(()=>{!T._isLeaving||(Ut(T,f),wt(T,p),ia(y)||la(T,s,A,z))}),an(y,[T,z])},onEnterCancelled(T){b(T,!1,void 0,!0),an(h,[T])},onAppearCancelled(T){b(T,!0,void 0,!0),an(M,[T])},onLeaveCancelled(T){C(T),an(S,[T])}})}function m2(e){if(e==null)return null;if(ce(e))return[Bi(e.enter),Bi(e.leave)];{const t=Bi(e);return[t,t]}}function Bi(e){return Ar(e)}function wt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Yn]||(e[Yn]=new Set)).add(t)}function Ut(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Yn];n&&(n.delete(t),n.size||(e[Yn]=void 0))}function oa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let _2=0;function la(e,t,n,s){const r=e._endId=++_2,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:a}=mf(e,t);if(!o)return s();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=p=>{p.target===e&&++c>=a&&f()};setTimeout(()=>{c<a&&f()},l+1),e.addEventListener(u,d)}function mf(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),r=s(`${Vt}Delay`),i=s(`${Vt}Duration`),o=aa(r,i),l=s(`${as}Delay`),a=s(`${as}Duration`),u=aa(l,a);let c=null,f=0,d=0;t===Vt?o>0&&(c=Vt,f=o,d=i.length):t===as?u>0&&(c=as,f=u,d=a.length):(f=Math.max(o,u),c=f>0?o>u?Vt:as:null,d=c?c===Vt?i.length:a.length:0);const p=c===Vt&&/\b(transform|all)(,|$)/.test(s(`${Vt}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function aa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>ca(n)+ca(e[s])))}function ca(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fo(){return document.body.offsetHeight}function y2(e,t,n){const s=e[Yn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Hr=Symbol("_vod"),_f=Symbol("_vsh"),Rs={beforeMount(e,{value:t},{transition:n}){e[Hr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):cs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),cs(e,!0),s.enter(e)):s.leave(e,()=>{cs(e,!1)}):cs(e,t))},beforeUnmount(e,{value:t}){cs(e,t)}};function cs(e,t){e.style.display=t?e[Hr]:"none",e[_f]=!t}function v2(){Rs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const yf=Symbol("");function b2(e){const t=Re();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Br(i,r))},s=()=>{const r=e(t.proxy);t.ce?Br(t.ce,r):po(t.subTree,r),n(r)};jo(()=>{As(s)}),Ln(()=>{Et(s,Pe,{flush:"post"});const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),_i(()=>r.disconnect())})}function po(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{po(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Br(e.el,t);else if(e.type===xe)e.children.forEach(n=>po(n,t));else if(e.type===bn){let{el:n,anchor:s}=e;for(;n&&(Br(n,t),n!==s);)n=n.nextSibling}}function Br(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[yf]=s}}const S2=/(^|;)\s*display\s*:/;function w2(e,t,n){const s=e.style,r=q(n);let i=!1;if(n&&!r){if(t)if(q(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&vr(s,l,"")}else for(const o in t)n[o]==null&&vr(s,o,"");for(const o in n)o==="display"&&(i=!0),vr(s,o,n[o])}else if(r){if(t!==n){const o=s[yf];o&&(n+=";"+o),s.cssText=n,i=S2.test(n)}}else t&&e.removeAttribute("style");Hr in e&&(e[Hr]=i?s.display:"",e[_f]&&(s.display="none"))}const ua=/\s*!important$/;function vr(e,t,n){if(H(n))n.forEach(s=>vr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=C2(e,t);ua.test(n)?e.setProperty(He(s),n.replace(ua,""),"important"):e[s]=n}}const fa=["Webkit","Moz","ms"],Ui={};function C2(e,t){const n=Ui[t];if(n)return n;let s=_e(t);if(s!=="filter"&&s in e)return Ui[t]=s;s=Nn(s);for(let r=0;r<fa.length;r++){const i=fa[r]+s;if(i in e)return Ui[t]=i}return t}const da="http://www.w3.org/1999/xlink";function pa(e,t,n,s,r,i=Sp(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(da,t.slice(6,t.length)):e.setAttributeNS(da,t,n):n==null||i&&!Mo(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Xe(n)?String(n):n)}function ha(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?df(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Mo(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function Rt(e,t,n,s){e.addEventListener(t,n,s)}function T2(e,t,n,s){e.removeEventListener(t,n,s)}const ga=Symbol("_vei");function E2(e,t,n,s,r=null){const i=e[ga]||(e[ga]={}),o=i[t];if(s&&o)o.value=s;else{const[l,a]=x2(t);if(s){const u=i[t]=O2(s,r);Rt(e,l,u,a)}else o&&(T2(e,l,o,a),i[t]=void 0)}}const ma=/(?:Once|Passive|Capture)$/;function x2(e){let t;if(ma.test(e)){t={};let s;for(;s=e.match(ma);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):He(e.slice(2)),t]}let ji=0;const A2=Promise.resolve(),I2=()=>ji||(A2.then(()=>ji=0),ji=Date.now());function O2(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;pt(N2(s,n.value),t,5,[s])};return n.value=e,n.attached=I2(),n}function N2(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const _a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,M2=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?y2(e,s,o):t==="style"?w2(e,n,s):In(t)?Ao(t)||E2(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):P2(e,t,s,o))?(ha(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&pa(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!q(s))?ha(e,_e(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),pa(e,t,s,o))};function P2(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&_a(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return _a(t)&&q(n)?!1:t in e}const ya={};/*! #__NO_SIDE_EFFECTS__ */function vf(e,t,n){const s=Q(e,t);ri(s)&&ie(s,t);class r extends bi{constructor(o){super(s,o,n)}}return r.def=s,r}/*! #__NO_SIDE_EFFECTS__ */const R2=(e,t)=>vf(e,t,Mf),L2=typeof HTMLElement<"u"?HTMLElement:class{};class bi extends L2{constructor(t,n={},s=Ls){super(),this._def=t,this._props=n,this._createApp=s,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&&s!==Ls?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof bi){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Rn(()=>{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 s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const r of s)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=s;let l;if(i&&!H(i))for(const a in i){const u=i[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=Ar(this._props[a])),(l||(l=Object.create(null)))[_e(a)]=!0)}this._numberProps=l,r&&this._resolveProps(s),this.shadowRoot&&this._applyStyles(o),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>t(this._def=s,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(!!n)for(const s in n)ae(this,s)||Object.defineProperty(this,s,{get:()=>fe(n[s])})}_resolveProps(t){const{props:n}=t,s=H(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r]);for(const r of s.map(_e))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let s=n?this.getAttribute(t):ya;const r=_e(t);n&&this._numberProps&&this._numberProps[r]&&(s=Ar(s)),this._setProp(r,s,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!1){if(n!==this._props[t]&&(n===ya?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),r&&this._instance&&this._update(),s)){const i=this._ob;i&&i.disconnect(),n===!0?this.setAttribute(He(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(He(t),n+""):n||this.removeAttribute(He(t)),i&&i.observe(this,{attributes:!0})}}_update(){zr(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=he(this._def,ie(t,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,ri(o[0])?ie({detail:o},o[0]):{detail:o}))};s.emit=(i,...o)=>{r(i,o),He(i)!==i&&r(He(i),o)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const s=this._nonce;for(let r=t.length-1;r>=0;r--){const i=document.createElement("style");s&&i.setAttribute("nonce",s),i.textContent=t[r],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(t[s]||(t[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let s=0;s<t.length;s++){const r=t[s],i=r.getAttribute("name")||"default",o=this._slots[i],l=r.parentNode;if(o)for(const a of o){if(n&&a.nodeType===1){const u=n+"-s",c=document.createTreeWalker(a,1);a.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}l.insertBefore(a,r)}else for(;r.firstChild;)l.insertBefore(r.firstChild,r);l.removeChild(r)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function bf(e){const t=Re(),n=t&&t.ce;return n||null}function k2(){const e=bf();return e&&e.shadowRoot}function D2(e="$style"){{const t=Re();if(!t)return re;const n=t.type.__cssModules;if(!n)return re;const s=n[e];return s||re}}const Sf=new WeakMap,wf=new WeakMap,Ur=Symbol("_moveCb"),va=Symbol("_enterCb"),$2=e=>(delete e.props.mode,e),F2=$2({name:"TransitionGroup",props:ie({},hf,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Re(),s=Ho();let r,i;return gi(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!j2(r[0].el,n.vnode.el,o))return;r.forEach(H2),r.forEach(B2);const l=r.filter(U2);fo(),l.forEach(a=>{const u=a.el,c=u.style;wt(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Ur]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[Ur]=null,Ut(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=se(e),l=gf(o);let a=o.tag||xe;if(r=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(r.push(c),kt(c,qn(c,l,s,n)),Sf.set(c,c.el.getBoundingClientRect()))}i=t.default?pi(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&kt(c,qn(c,l,s,n))}return he(a,null,i)}}}),V2=F2;function H2(e){const t=e.el;t[Ur]&&t[Ur](),t[va]&&t[va]()}function B2(e){wf.set(e,e.el.getBoundingClientRect())}function U2(e){const t=Sf.get(e),n=wf.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function j2(e,t,n){const s=e.cloneNode(),r=e[Yn];r&&r.forEach(l=>{l.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=mf(s);return i.removeChild(s),o}const sn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>zn(t,n):t};function z2(e){e.target.composing=!0}function ba(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dt=Symbol("_assign"),jr={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[dt]=sn(r);const i=s||r.props&&r.props.type==="number";Rt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=xr(l)),e[dt](l)}),n&&Rt(e,"change",()=>{e.value=e.value.trim()}),t||(Rt(e,"compositionstart",z2),Rt(e,"compositionend",ba),Rt(e,"change",ba))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[dt]=sn(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?xr(e.value):e.value,a=t==null?"":t;l!==a&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a))}},nl={deep:!0,created(e,t,n){e[dt]=sn(n),Rt(e,"change",()=>{const s=e._modelValue,r=Jn(e),i=e.checked,o=e[dt];if(H(s)){const l=oi(s,r),a=l!==-1;if(i&&!a)o(s.concat(r));else if(!i&&a){const u=[...s];u.splice(l,1),o(u)}}else if(On(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(Tf(e,i))})},mounted:Sa,beforeUpdate(e,t,n){e[dt]=sn(n),Sa(e,t,n)}};function Sa(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(H(t))r=oi(t,s.props.value)>-1;else if(On(t))r=t.has(s.props.value);else{if(t===n)return;r=tn(t,Tf(e,!0))}e.checked!==r&&(e.checked=r)}const sl={created(e,{value:t},n){e.checked=tn(t,n.props.value),e[dt]=sn(n),Rt(e,"change",()=>{e[dt](Jn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[dt]=sn(s),t!==n&&(e.checked=tn(t,s.props.value))}},Cf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=On(t);Rt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?xr(Jn(o)):Jn(o));e[dt](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,Rn(()=>{e._assigning=!1})}),e[dt]=sn(s)},mounted(e,{value:t}){wa(e,t)},beforeUpdate(e,t,n){e[dt]=sn(n)},updated(e,{value:t}){e._assigning||wa(e,t)}};function wa(e,t){const n=e.multiple,s=H(t);if(!(n&&!s&&!On(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=Jn(o);if(n)if(s){const a=typeof l;a==="string"||a==="number"?o.selected=t.some(u=>String(u)===String(l)):o.selected=oi(t,l)>-1}else o.selected=t.has(l);else if(tn(Jn(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jn(e){return"_value"in e?e._value:e.value}function Tf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ef={created(e,t,n){cr(e,t,n,null,"created")},mounted(e,t,n){cr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){cr(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){cr(e,t,n,s,"updated")}};function xf(e,t){switch(e){case"SELECT":return Cf;case"TEXTAREA":return jr;default:switch(t){case"checkbox":return nl;case"radio":return sl;default:return jr}}}function cr(e,t,n,s,r){const o=xf(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function K2(){jr.getSSRProps=({value:e})=>({value:e}),sl.getSSRProps=({value:e},t)=>{if(t.props&&tn(t.props.value,e))return{checked:!0}},nl.getSSRProps=({value:e},t)=>{if(H(e)){if(t.props&&oi(e,t.props.value)>-1)return{checked:!0}}else if(On(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Ef.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=xf(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const W2=["ctrl","shift","alt","meta"],q2={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>W2.some(n=>e[`${n}Key`]&&!t.includes(n))},Af=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=q2[t[o]];if(l&&l(r,t))return}return e(r,...i)})},G2={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Y2=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=He(r.key);if(t.some(o=>o===i||G2[o]===i))return e(r)})},If=ie({patchProp:M2},h2);let Ss,Ca=!1;function Of(){return Ss||(Ss=$u(If))}function Nf(){return Ss=Ca?Ss:Fu(If),Ca=!0,Ss}const zr=(...e)=>{Of().render(...e)},J2=(...e)=>{Nf().hydrate(...e)},Ls=(...e)=>{const t=Of().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Rf(s);if(!r)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Pf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},Mf=(...e)=>{const t=Nf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Rf(s);if(r)return n(r,!0,Pf(r))},t};function Pf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Rf(e){return q(e)?document.querySelector(e):e}let Ta=!1;const Z2=()=>{Ta||(Ta=!0,K2(),v2())},Q2=Object.freeze(Object.defineProperty({__proto__:null,Transition:tl,TransitionGroup:V2,VueElement:bi,createApp:Ls,createSSRApp:Mf,defineCustomElement:vf,defineSSRCustomElement:R2,hydrate:J2,initDirectivesForSSR:Z2,render:zr,useCssModule:D2,useCssVars:b2,useHost:bf,useShadowRoot:k2,vModelCheckbox:nl,vModelDynamic:Ef,vModelRadio:sl,vModelSelect:Cf,vModelText:jr,vShow:Rs,withKeys:Y2,withModifiers:Af,EffectScope:Po,ReactiveEffect:Ts,TrackOpTypes:lh,TriggerOpTypes:ah,customRef:Jc,effect:Np,effectScope:Ip,getCurrentScope:Ro,getCurrentWatcher:ch,isProxy:fi,isReactive:Jt,isReadonly:nn,isRef:Ce,isShallow:it,markRaw:Gc,onScopeDispose:Mc,onWatcherCleanup:Xc,proxyRefs:Fo,reactive:Ks,readonly:Ws,ref:Se,shallowReactive:qc,shallowReadonly:Jp,shallowRef:$o,stop:Mp,toRaw:se,toRef:rh,toRefs:Zc,toValue:Xp,triggerRef:Qp,unref:fe,camelize:_e,capitalize:Nn,normalizeClass:ct,normalizeProps:dp,normalizeStyle:en,toDisplayString:Ir,toHandlerKey:jn,BaseTransition:fu,BaseTransitionPropsValidators:Bo,Comment:Ae,DeprecationTypes:f2,ErrorCodes:yh,ErrorTypeStrings:r2,Fragment:xe,KeepAlive:Wh,Static:bn,Suspense:V0,Teleport:xh,Text:Qt,assertNumber:_h,callWithAsyncErrorHandling:pt,callWithErrorHandling:Mn,cloneVNode:xt,compatUtils:u2,computed:pe,createBlock:Gt,createCommentVNode:yr,createElementBlock:te,createElementVNode:K,createHydrationRenderer:Fu,createPropsRestProxy:d0,createRenderer:$u,createSlots:Qh,createStaticVNode:q0,createTextVNode:Qo,createVNode:he,defineAsyncComponent:zh,defineComponent:Q,defineEmits:n0,defineExpose:s0,defineModel:o0,defineOptions:r0,defineProps:t0,defineSlots:i0,devtools:i2,getCurrentInstance:Re,getTransitionRawChildren:pi,guardReactiveProps:ef,h:dn,handleError:Pn,hasInjectionContext:S0,hydrateOnIdle:Fh,hydrateOnInteraction:Uh,hydrateOnMediaQuery:Bh,hydrateOnVisible:Hh,initCustomFormatter:n2,inject:ot,isMemoSame:cf,isRuntimeOnly:Z0,isVNode:ht,mergeDefaults:u0,mergeModels:f0,mergeProps:el,nextTick:Rn,onActivated:gu,onBeforeMount:yu,onBeforeUnmount:mi,onBeforeUpdate:jo,onDeactivated:mu,onErrorCaptured:wu,onMounted:Ln,onRenderTracked:Su,onRenderTriggered:bu,onServerPrefetch:vu,onUnmounted:_i,onUpdated:gi,openBlock:Y,popScopeId:Ch,provide:Yo,pushScopeId:wh,queuePostFlushCb:As,registerRuntimeCompiler:rf,renderList:Zh,renderSlot:Wo,resolveComponent:Yh,resolveDirective:Jh,resolveDynamicComponent:Tu,resolveFilter:c2,resolveTransitionHooks:qn,setBlockTracking:io,setDevtoolsHook:o2,setTransitionHooks:kt,ssrContextKey:Uu,ssrUtils:a2,toHandlers:Xh,transformVNodeArgs:K0,useAttrs:c0,useId:Ih,useModel:P0,useSSRContext:ju,useSlots:a0,useTemplateRef:Oh,useTransitionState:Ho,version:uf,warn:ff,watch:Et,watchEffect:zu,watchPostEffect:N0,watchSyncEffect:Ku,withAsyncContext:p0,withCtx:yn,withDefaults:l0,withDirectives:Rr,withMemo:s2,withScopeId:Th},Symbol.toStringTag,{value:"Module"}));/**
     34* @vue/compiler-core v3.5.13
     35* (c) 2018-present Yuxi (Evan) You and Vue contributors
     36* @license MIT
     37**/const ks=Symbol(""),ws=Symbol(""),rl=Symbol(""),Kr=Symbol(""),Lf=Symbol(""),xn=Symbol(""),kf=Symbol(""),Df=Symbol(""),il=Symbol(""),ol=Symbol(""),Js=Symbol(""),ll=Symbol(""),$f=Symbol(""),al=Symbol(""),cl=Symbol(""),ul=Symbol(""),fl=Symbol(""),dl=Symbol(""),pl=Symbol(""),Ff=Symbol(""),Vf=Symbol(""),Si=Symbol(""),Wr=Symbol(""),hl=Symbol(""),gl=Symbol(""),Ds=Symbol(""),Zs=Symbol(""),ml=Symbol(""),ho=Symbol(""),X2=Symbol(""),go=Symbol(""),qr=Symbol(""),e1=Symbol(""),t1=Symbol(""),_l=Symbol(""),n1=Symbol(""),s1=Symbol(""),yl=Symbol(""),Hf=Symbol(""),Zn={[ks]:"Fragment",[ws]:"Teleport",[rl]:"Suspense",[Kr]:"KeepAlive",[Lf]:"BaseTransition",[xn]:"openBlock",[kf]:"createBlock",[Df]:"createElementBlock",[il]:"createVNode",[ol]:"createElementVNode",[Js]:"createCommentVNode",[ll]:"createTextVNode",[$f]:"createStaticVNode",[al]:"resolveComponent",[cl]:"resolveDynamicComponent",[ul]:"resolveDirective",[fl]:"resolveFilter",[dl]:"withDirectives",[pl]:"renderList",[Ff]:"renderSlot",[Vf]:"createSlots",[Si]:"toDisplayString",[Wr]:"mergeProps",[hl]:"normalizeClass",[gl]:"normalizeStyle",[Ds]:"normalizeProps",[Zs]:"guardReactiveProps",[ml]:"toHandlers",[ho]:"camelize",[X2]:"capitalize",[go]:"toHandlerKey",[qr]:"setBlockTracking",[e1]:"pushScopeId",[t1]:"popScopeId",[_l]:"withCtx",[n1]:"unref",[s1]:"isRef",[yl]:"withMemo",[Hf]:"isMemoSame"};function r1(e){Object.getOwnPropertySymbols(e).forEach(t=>{Zn[t]=e[t]})}const lt={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function i1(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:lt}}function $s(e,t,n,s,r,i,o,l=!1,a=!1,u=!1,c=lt){return e&&(l?(e.helper(xn),e.helper(es(e.inSSR,u))):e.helper(Xn(e.inSSR,u)),o&&e.helper(dl)),{type:13,tag:t,props:n,children:s,patchFlag:r,dynamicProps:i,directives:o,isBlock:l,disableTracking:a,isComponent:u,loc:c}}function Sn(e,t=lt){return{type:17,loc:t,elements:e}}function ft(e,t=lt){return{type:15,loc:t,properties:e}}function Ee(e,t){return{type:16,loc:lt,key:q(e)?ne(e,!0):e,value:t}}function ne(e,t=!1,n=lt,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function vt(e,t=lt){return{type:8,loc:t,children:e}}function Oe(e,t=[],n=lt){return{type:14,loc:n,callee:e,arguments:t}}function Qn(e,t=void 0,n=!1,s=!1,r=lt){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:r}}function mo(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:lt}}function o1(e,t,n=!1,s=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:s,needArraySpread:!1,loc:lt}}function l1(e){return{type:21,body:e,loc:lt}}function Xn(e,t){return e||t?il:ol}function es(e,t){return e||t?kf:Df}function vl(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(Xn(s,e.isComponent)),t(xn),t(es(s,e.isComponent)))}const Ea=new Uint8Array([123,123]),xa=new Uint8Array([125,125]);function Aa(e){return e>=97&&e<=122||e>=65&&e<=90}function st(e){return e===32||e===10||e===9||e===12||e===13}function Ht(e){return e===47||e===62||st(e)}function Gr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const De={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class a1{constructor(t,n){this.stack=t,this.cbs=n,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=Ea,this.delimiterClose=xa,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}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=Ea,this.delimiterClose=xa}getPos(t){let n=1,s=t+1;for(let r=this.newlines.length-1;r>=0;r--){const i=this.newlines[r];if(t>i){n=r+2,s=t-i;break}}return{column:s,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===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(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Ht(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||st(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const s=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=s}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===De.TitleEnd||this.currentSequence===De.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===60)}stateCDATASequence(t){t===De.Cdata[this.sequenceIndex]?++this.sequenceIndex===De.Cdata.length&&(this.state=28,this.currentSequence=De.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===De.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Aa(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Ht(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Ht(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Gr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){st(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Aa(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||st(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):st(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):st(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Ht(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Ht(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Ht(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Ht(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Ht(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):st(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):st(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){st(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=De.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===De.ScriptEnd[3]?this.startSpecial(De.ScriptEnd,4):t===De.StyleEnd[3]?this.startSpecial(De.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===De.TitleEnd[3]?this.startSpecial(De.TitleEnd,4):t===De.TextareaEnd[3]?this.startSpecial(De.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===De.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===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.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}function Ia(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function wn(e,t){const n=Ia("MODE",t),s=Ia(e,t);return n===3?s===!0:s!==!1}function Fs(e,t,n,...s){return wn(e,t)}function bl(e){throw e}function Bf(e){}function ve(e,t,n,s){const r=`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(r));return i.code=e,i.loc=t,i}const Qe=e=>e.type===4&&e.isStatic;function Uf(e){switch(e){case"Teleport":case"teleport":return ws;case"Suspense":case"suspense":return rl;case"KeepAlive":case"keep-alive":return Kr;case"BaseTransition":case"base-transition":return Lf}}const c1=/^\d|[^\$\w\xA0-\uFFFF]/,Sl=e=>!c1.test(e),u1=/[A-Za-z_$\xA0-\uFFFF]/,f1=/[\.\?\w$\xA0-\uFFFF]/,d1=/\s+[.[]\s*|\s*[.[]\s+/g,jf=e=>e.type===4?e.content:e.loc.source,p1=e=>{const t=jf(e).trim().replace(d1,l=>l.trim());let n=0,s=[],r=0,i=0,o=null;for(let l=0;l<t.length;l++){const a=t.charAt(l);switch(n){case 0:if(a==="[")s.push(n),n=1,r++;else if(a==="(")s.push(n),n=2,i++;else if(!(l===0?u1:f1).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(s.push(n),n=3,o=a):a==="["?r++:a==="]"&&(--r||(n=s.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")s.push(n),n=3,o=a;else if(a==="(")i++;else if(a===")"){if(l===t.length-1)return!1;--i||(n=s.pop())}break;case 3:a===o&&(n=s.pop(),o=null);break}}return!r&&!i},zf=p1,h1=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,g1=e=>h1.test(jf(e)),m1=g1;function ut(e,t,n=!1){for(let s=0;s<e.props.length;s++){const r=e.props[s];if(r.type===7&&(n||r.exp)&&(q(t)?r.name===t:t.test(r.name)))return r}}function wi(e,t,n=!1,s=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===6){if(n)continue;if(i.name===t&&(i.value||s))return i}else if(i.name==="bind"&&(i.exp||s)&&pn(i.arg,t))return i}}function pn(e,t){return!!(e&&Qe(e)&&e.content===t)}function _1(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function zi(e){return e.type===5||e.type===2}function y1(e){return e.type===7&&e.name==="slot"}function Yr(e){return e.type===1&&e.tagType===3}function Jr(e){return e.type===1&&e.tagType===2}const v1=new Set([Ds,Zs]);function Kf(e,t=[]){if(e&&!q(e)&&e.type===14){const n=e.callee;if(!q(n)&&v1.has(n))return Kf(e.arguments[0],t.concat(e))}return[e,t]}function Zr(e,t,n){let s,r=e.type===13?e.props:e.arguments[2],i=[],o;if(r&&!q(r)&&r.type===14){const l=Kf(r);r=l[0],i=l[1],o=i[i.length-1]}if(r==null||q(r))s=ft([t]);else if(r.type===14){const l=r.arguments[0];!q(l)&&l.type===15?Oa(t,l)||l.properties.unshift(t):r.callee===ml?s=Oe(n.helper(Wr),[ft([t]),r]):r.arguments.unshift(ft([t])),!s&&(s=r)}else r.type===15?(Oa(t,r)||r.properties.unshift(t),s=r):(s=Oe(n.helper(Wr),[ft([t]),r]),o&&o.callee===Zs&&(o=i[i.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function Oa(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(r=>r.key.type===4&&r.key.content===s)}return n}function Vs(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function b1(e){return e.type===14&&e.callee===yl?e.arguments[1].returns:e}const S1=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Wf={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ds,isPreTag:ds,isIgnoreNewlineTag:ds,isCustomElement:ds,onError:bl,onWarn:Bf,comments:!1,prefixIdentifiers:!1};let ue=Wf,Hs=null,Lt="",$e=null,le=null,Ye="",Ot=-1,un=-1,wl=0,qt=!1,_o=null;const ye=[],we=new a1(ye,{onerr:It,ontext(e,t){ur(Le(e,t),e,t)},ontextentity(e,t,n){ur(e,t,n)},oninterpolation(e,t){if(qt)return ur(Le(e,t),e,t);let n=e+we.delimiterOpen.length,s=t-we.delimiterClose.length;for(;st(Lt.charCodeAt(n));)n++;for(;st(Lt.charCodeAt(s-1));)s--;let r=Le(n,s);r.includes("&")&&(r=ue.decodeEntities(r,!1)),yo({type:5,content:Sr(r,!1,Te(n,s)),loc:Te(e,t)})},onopentagname(e,t){const n=Le(e,t);$e={type:1,tag:n,ns:ue.getNamespace(n,ye[0],ue.ns),tagType:0,props:[],children:[],loc:Te(e-1,t),codegenNode:void 0}},onopentagend(e){Ma(e)},onclosetag(e,t){const n=Le(e,t);if(!ue.isVoidTag(n)){let s=!1;for(let r=0;r<ye.length;r++)if(ye[r].tag.toLowerCase()===n.toLowerCase()){s=!0,r>0&&It(24,ye[0].loc.start.offset);for(let o=0;o<=r;o++){const l=ye.shift();br(l,t,o<r)}break}s||It(23,qf(e,60))}},onselfclosingtag(e){const t=$e.tag;$e.isSelfClosing=!0,Ma(e),ye[0]&&ye[0].tag===t&&br(ye.shift(),e)},onattribname(e,t){le={type:6,name:Le(e,t),nameLoc:Te(e,t),value:void 0,loc:Te(e)}},ondirname(e,t){const n=Le(e,t),s=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!qt&&s===""&&It(26,e),qt||s==="")le={type:6,name:n,nameLoc:Te(e,t),value:void 0,loc:Te(e)};else if(le={type:7,name:s,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[ne("prop")]:[],loc:Te(e)},s==="pre"){qt=we.inVPre=!0,_o=$e;const r=$e.props;for(let i=0;i<r.length;i++)r[i].type===7&&(r[i]=P1(r[i]))}},ondirarg(e,t){if(e===t)return;const n=Le(e,t);if(qt)le.name+=n,hn(le.nameLoc,t);else{const s=n[0]!=="[";le.arg=Sr(s?n:n.slice(1,-1),s,Te(e,t),s?3:0)}},ondirmodifier(e,t){const n=Le(e,t);if(qt)le.name+="."+n,hn(le.nameLoc,t);else if(le.name==="slot"){const s=le.arg;s&&(s.content+="."+n,hn(s.loc,t))}else{const s=ne(n,!0,Te(e,t));le.modifiers.push(s)}},onattribdata(e,t){Ye+=Le(e,t),Ot<0&&(Ot=e),un=t},onattribentity(e,t,n){Ye+=e,Ot<0&&(Ot=t),un=n},onattribnameend(e){const t=le.loc.start.offset,n=Le(t,e);le.type===7&&(le.rawName=n),$e.props.some(s=>(s.type===7?s.rawName:s.name)===n)&&It(2,t)},onattribend(e,t){if($e&&le){if(hn(le.loc,t),e!==0)if(Ye.includes("&")&&(Ye=ue.decodeEntities(Ye,!0)),le.type===6)le.name==="class"&&(Ye=Yf(Ye).trim()),e===1&&!Ye&&It(13,t),le.value={type:2,content:Ye,loc:e===1?Te(Ot,un):Te(Ot-1,un+1)},we.inSFCRoot&&$e.tag==="template"&&le.name==="lang"&&Ye&&Ye!=="html"&&we.enterRCDATA(Gr("</template"),0);else{let n=0;le.exp=Sr(Ye,!1,Te(Ot,un),0,n),le.name==="for"&&(le.forParseResult=C1(le.exp));let s=-1;le.name==="bind"&&(s=le.modifiers.findIndex(r=>r.content==="sync"))>-1&&Fs("COMPILER_V_BIND_SYNC",ue,le.loc,le.rawName)&&(le.name="model",le.modifiers.splice(s,1))}(le.type!==7||le.name!=="pre")&&$e.props.push(le)}Ye="",Ot=un=-1},oncomment(e,t){ue.comments&&yo({type:3,content:Le(e,t),loc:Te(e-4,t+3)})},onend(){const e=Lt.length;for(let t=0;t<ye.length;t++)br(ye[t],e-1),It(24,ye[t].loc.start.offset)},oncdata(e,t){ye[0].ns!==0?ur(Le(e,t),e,t):It(1,e-9)},onprocessinginstruction(e){(ye[0]?ye[0].ns:ue.ns)===0&&It(21,e-1)}}),Na=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,w1=/^\(|\)$/g;function C1(e){const t=e.loc,n=e.content,s=n.match(S1);if(!s)return;const[,r,i]=s,o=(f,d,p=!1)=>{const v=t.start.offset+d,m=v+f.length;return Sr(f,!1,Te(v,m),0,p?1:0)},l={source:o(i.trim(),n.indexOf(i,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let a=r.trim().replace(w1,"").trim();const u=r.indexOf(a),c=a.match(Na);if(c){a=a.replace(Na,"").trim();const f=c[1].trim();let d;if(f&&(d=n.indexOf(f,u+a.length),l.key=o(f,d,!0)),c[2]){const p=c[2].trim();p&&(l.index=o(p,n.indexOf(p,l.key?d+f.length:u+a.length),!0))}}return a&&(l.value=o(a,u,!0)),l}function Le(e,t){return Lt.slice(e,t)}function Ma(e){we.inSFCRoot&&($e.innerLoc=Te(e+1,e+1)),yo($e);const{tag:t,ns:n}=$e;n===0&&ue.isPreTag(t)&&wl++,ue.isVoidTag(t)?br($e,e):(ye.unshift($e),(n===1||n===2)&&(we.inXML=!0)),$e=null}function ur(e,t,n){{const i=ye[0]&&ye[0].tag;i!=="script"&&i!=="style"&&e.includes("&")&&(e=ue.decodeEntities(e,!1))}const s=ye[0]||Hs,r=s.children[s.children.length-1];r&&r.type===2?(r.content+=e,hn(r.loc,n)):s.children.push({type:2,content:e,loc:Te(t,n)})}function br(e,t,n=!1){n?hn(e.loc,qf(t,60)):hn(e.loc,T1(t,62)+1),we.inSFCRoot&&(e.children.length?e.innerLoc.end=ie({},e.children[e.children.length-1].loc.end):e.innerLoc.end=ie({},e.innerLoc.start),e.innerLoc.source=Le(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:s,ns:r,children:i}=e;if(qt||(s==="slot"?e.tagType=2:Pa(e)?e.tagType=3:x1(e)&&(e.tagType=1)),we.inRCDATA||(e.children=Gf(i)),r===0&&ue.isIgnoreNewlineTag(s)){const o=i[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}r===0&&ue.isPreTag(s)&&wl--,_o===e&&(qt=we.inVPre=!1,_o=null),we.inXML&&(ye[0]?ye[0].ns:ue.ns)===0&&(we.inXML=!1);{const o=e.props;if(!we.inSFCRoot&&wn("COMPILER_NATIVE_TEMPLATE",ue)&&e.tag==="template"&&!Pa(e)){const a=ye[0]||Hs,u=a.children.indexOf(e);a.children.splice(u,1,...e.children)}const l=o.find(a=>a.type===6&&a.name==="inline-template");l&&Fs("COMPILER_INLINE_TEMPLATE",ue,l.loc)&&e.children.length&&(l.value={type:2,content:Le(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:l.loc})}}function T1(e,t){let n=e;for(;Lt.charCodeAt(n)!==t&&n<Lt.length-1;)n++;return n}function qf(e,t){let n=e;for(;Lt.charCodeAt(n)!==t&&n>=0;)n--;return n}const E1=new Set(["if","else","else-if","for","slot"]);function Pa({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&E1.has(t[n].name))return!0}return!1}function x1({tag:e,props:t}){if(ue.isCustomElement(e))return!1;if(e==="component"||A1(e.charCodeAt(0))||Uf(e)||ue.isBuiltInComponent&&ue.isBuiltInComponent(e)||ue.isNativeTag&&!ue.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const s=t[n];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(Fs("COMPILER_IS_ON_ELEMENT",ue,s.loc))return!0}}else if(s.name==="bind"&&pn(s.arg,"is")&&Fs("COMPILER_IS_ON_ELEMENT",ue,s.loc))return!0}return!1}function A1(e){return e>64&&e<91}const I1=/\r\n/g;function Gf(e,t){const n=ue.whitespace!=="preserve";let s=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===2)if(wl)i.content=i.content.replace(I1,`
     38`);else if(O1(i.content)){const o=e[r-1]&&e[r-1].type,l=e[r+1]&&e[r+1].type;!o||!l||n&&(o===3&&(l===3||l===1)||o===1&&(l===3||l===1&&N1(i.content)))?(s=!0,e[r]=null):i.content=" "}else n&&(i.content=Yf(i.content))}return s?e.filter(Boolean):e}function O1(e){for(let t=0;t<e.length;t++)if(!st(e.charCodeAt(t)))return!1;return!0}function N1(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Yf(e){let t="",n=!1;for(let s=0;s<e.length;s++)st(e.charCodeAt(s))?n||(t+=" ",n=!0):(t+=e[s],n=!1);return t}function yo(e){(ye[0]||Hs).children.push(e)}function Te(e,t){return{start:we.getPos(e),end:t==null?t:we.getPos(t),source:t==null?t:Le(e,t)}}function M1(e){return Te(e.start.offset,e.end.offset)}function hn(e,t){e.end=we.getPos(t),e.source=Le(e.start.offset,t)}function P1(e){const t={type:6,name:e.rawName,nameLoc:Te(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Sr(e,t=!1,n,s=0,r=0){return ne(e,t,n,s)}function It(e,t,n){ue.onError(ve(e,Te(t,t)))}function R1(){we.reset(),$e=null,le=null,Ye="",Ot=-1,un=-1,ye.length=0}function L1(e,t){if(R1(),Lt=e,ue=ie({},Wf),t){let r;for(r in t)t[r]!=null&&(ue[r]=t[r])}we.mode=ue.parseMode==="html"?1:ue.parseMode==="sfc"?2:0,we.inXML=ue.ns===1||ue.ns===2;const n=t&&t.delimiters;n&&(we.delimiterOpen=Gr(n[0]),we.delimiterClose=Gr(n[1]));const s=Hs=i1([],e);return we.parse(Lt),s.loc=Te(0,e.length),s.children=Gf(s.children),Hs=null,s}function k1(e,t){wr(e,void 0,t,Jf(e,e.children[0]))}function Jf(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Jr(t)}function wr(e,t,n,s=!1,r=!1){const{children:i}=e,o=[];for(let c=0;c<i.length;c++){const f=i[c];if(f.type===1&&f.tagType===0){const d=s?0:rt(f,n);if(d>0){if(d>=2){f.codegenNode.patchFlag=-1,o.push(f);continue}}else{const p=f.codegenNode;if(p.type===13){const v=p.patchFlag;if((v===void 0||v===512||v===1)&&Qf(f,n)>=2){const m=Xf(f);m&&(p.props=n.hoist(m))}p.dynamicProps&&(p.dynamicProps=n.hoist(p.dynamicProps))}}}else if(f.type===12&&(s?0:rt(f,n))>=2){o.push(f);continue}if(f.type===1){const d=f.tagType===1;d&&n.scopes.vSlot++,wr(f,e,n,!1,r),d&&n.scopes.vSlot--}else if(f.type===11)wr(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let d=0;d<f.branches.length;d++)wr(f.branches[d],e,n,f.branches[d].children.length===1,r)}let l=!1;if(o.length===i.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&H(e.codegenNode.children))e.codegenNode.children=a(Sn(e.codegenNode.children)),l=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!H(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=a(Sn(c.returns)),l=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!H(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=ut(e,"slot",!0),f=c&&c.arg&&u(t.codegenNode,c.arg);f&&(f.returns=a(Sn(f.returns)),l=!0)}}if(!l)for(const c of o)c.codegenNode=n.cache(c.codegenNode);function a(c){const f=n.cache(c);return r&&n.hmr&&(f.needArraySpread=!0),f}function u(c,f){if(c.children&&!H(c.children)&&c.children.type===15){const d=c.children.properties.find(p=>p.key===f||p.key.content===f);return d&&d.value}}o.length&&n.transformHoist&&n.transformHoist(i,n,e)}function rt(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const s=n.get(e);if(s!==void 0)return s;const r=e.codegenNode;if(r.type!==13||r.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(r.patchFlag===void 0){let o=3;const l=Qf(e,t);if(l===0)return n.set(e,0),0;l<o&&(o=l);for(let a=0;a<e.children.length;a++){const u=rt(e.children[a],t);if(u===0)return n.set(e,0),0;u<o&&(o=u)}if(o>1)for(let a=0;a<e.props.length;a++){const u=e.props[a];if(u.type===7&&u.name==="bind"&&u.exp){const c=rt(u.exp,t);if(c===0)return n.set(e,0),0;c<o&&(o=c)}}if(r.isBlock){for(let a=0;a<e.props.length;a++)if(e.props[a].type===7)return n.set(e,0),0;t.removeHelper(xn),t.removeHelper(es(t.inSSR,r.isComponent)),r.isBlock=!1,t.helper(Xn(t.inSSR,r.isComponent))}return n.set(e,o),o}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return rt(e.content,t);case 4:return e.constType;case 8:let i=3;for(let o=0;o<e.children.length;o++){const l=e.children[o];if(q(l)||Xe(l))continue;const a=rt(l,t);if(a===0)return 0;a<i&&(i=a)}return i;case 20:return 2;default:return 0}}const D1=new Set([hl,gl,Ds,Zs]);function Zf(e,t){if(e.type===14&&!q(e.callee)&&D1.has(e.callee)){const n=e.arguments[0];if(n.type===4)return rt(n,t);if(n.type===14)return Zf(n,t)}return 0}function Qf(e,t){let n=3;const s=Xf(e);if(s&&s.type===15){const{properties:r}=s;for(let i=0;i<r.length;i++){const{key:o,value:l}=r[i],a=rt(o,t);if(a===0)return a;a<n&&(n=a);let u;if(l.type===4?u=rt(l,t):l.type===14?u=Zf(l,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function Xf(e){const t=e.codegenNode;if(t.type===13)return t.props}function $1(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:s=!1,hmr:r=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:u=Pe,isCustomElement:c=Pe,expressionPlugins:f=[],scopeId:d=null,slotted:p=!0,ssr:v=!1,inSSR:m=!1,ssrCssVars:A="",bindingMetadata:E=re,inline:x=!1,isTS:h=!1,onError:y=bl,onWarn:S=Bf,compatConfig:O}){const F=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),M={filename:t,selfName:F&&Nn(_e(F[1])),prefixIdentifiers:n,hoistStatic:s,hmr:r,cacheHandlers:i,nodeTransforms:o,directiveTransforms:l,transformHoist:a,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:f,scopeId:d,slotted:p,ssr:v,inSSR:m,ssrCssVars:A,bindingMetadata:E,inline:x,isTS:h,onError:y,onWarn:S,compatConfig:O,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(b){const C=M.helpers.get(b)||0;return M.helpers.set(b,C+1),b},removeHelper(b){const C=M.helpers.get(b);if(C){const L=C-1;L?M.helpers.set(b,L):M.helpers.delete(b)}},helperString(b){return`_${Zn[M.helper(b)]}`},replaceNode(b){M.parent.children[M.childIndex]=M.currentNode=b},removeNode(b){const C=M.parent.children,L=b?C.indexOf(b):M.currentNode?M.childIndex:-1;!b||b===M.currentNode?(M.currentNode=null,M.onNodeRemoved()):M.childIndex>L&&(M.childIndex--,M.onNodeRemoved()),M.parent.children.splice(L,1)},onNodeRemoved:Pe,addIdentifiers(b){},removeIdentifiers(b){},hoist(b){q(b)&&(b=ne(b)),M.hoists.push(b);const C=ne(`_hoisted_${M.hoists.length}`,!1,b.loc,2);return C.hoisted=b,C},cache(b,C=!1,L=!1){const T=o1(M.cached.length,b,C,L);return M.cached.push(T),T}};return M.filters=new Set,M}function F1(e,t){const n=$1(e,t);Ci(e,n),t.hoistStatic&&k1(e,n),t.ssr||V1(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 V1(e,t){const{helper:n}=t,{children:s}=e;if(s.length===1){const r=s[0];if(Jf(e,r)&&r.codegenNode){const i=r.codegenNode;i.type===13&&vl(i,t),e.codegenNode=i}else e.codegenNode=r}else if(s.length>1){let r=64;e.codegenNode=$s(t,n(ks),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}function H1(e,t){let n=0;const s=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];q(r)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=s,Ci(r,t))}}function Ci(e,t){t.currentNode=e;const{nodeTransforms:n}=t,s=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(H(o)?s.push(...o):s.push(o)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Js);break;case 5:t.ssr||t.helper(Si);break;case 9:for(let i=0;i<e.branches.length;i++)Ci(e.branches[i],t);break;case 10:case 11:case 1:case 0:H1(e,t);break}t.currentNode=e;let r=s.length;for(;r--;)s[r]()}function ed(e,t){const n=q(e)?s=>s===e:s=>e.test(s);return(s,r)=>{if(s.type===1){const{props:i}=s;if(s.tagType===3&&i.some(y1))return;const o=[];for(let l=0;l<i.length;l++){const a=i[l];if(a.type===7&&n(a.name)){i.splice(l,1),l--;const u=t(s,a,r);u&&o.push(u)}}return o}}}const Ti="/*@__PURE__*/",td=e=>`${Zn[e]}: _${Zn[e]}`;function B1(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:s=!1,filename:r="template.vue.html",scopeId:i=null,optimizeImports:o=!1,runtimeGlobalName:l="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:s,filename:r,scopeId:i,optimizeImports:o,runtimeGlobalName:l,runtimeModuleName:a,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${Zn[m]}`},push(m,A=-2,E){p.code+=m},indent(){v(++p.indentLevel)},deindent(m=!1){m?--p.indentLevel:v(--p.indentLevel)},newline(){v(p.indentLevel)}};function v(m){p.push(`
     39`+"  ".repeat(m),0)}return p}function U1(e,t={}){const n=B1(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:s,push:r,prefixIdentifiers:i,indent:o,deindent:l,newline:a,scopeId:u,ssr:c}=n,f=Array.from(e.helpers),d=f.length>0,p=!i&&s!=="module";j1(e,n);const m=c?"ssrRender":"render",E=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${m}(${E}) {`),o(),p&&(r("with (_ctx) {"),o(),d&&(r(`const { ${f.map(td).join(", ")} } = _Vue
     40`,-1),a())),e.components.length&&(Ki(e.components,"component",n),(e.directives.length||e.temps>0)&&a()),e.directives.length&&(Ki(e.directives,"directive",n),e.temps>0&&a()),e.filters&&e.filters.length&&(a(),Ki(e.filters,"filter",n),a()),e.temps>0){r("let ");for(let x=0;x<e.temps;x++)r(`${x>0?", ":""}_temp${x}`)}return(e.components.length||e.directives.length||e.temps)&&(r(`
     41`,0),a()),c||r("return "),e.codegenNode?Ue(e.codegenNode,n):r("null"),p&&(l(),r("}")),l(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function j1(e,t){const{ssr:n,prefixIdentifiers:s,push:r,newline:i,runtimeModuleName:o,runtimeGlobalName:l,ssrRuntimeModuleName:a}=t,u=l,c=Array.from(e.helpers);if(c.length>0&&(r(`const _Vue = ${u}
     42`,-1),e.hoists.length)){const f=[il,ol,Js,ll,$f].filter(d=>c.includes(d)).map(td).join(", ");r(`const { ${f} } = _Vue
     43`,-1)}z1(e.hoists,t),i(),r("return ")}function Ki(e,t,{helper:n,push:s,newline:r,isTS:i}){const o=n(t==="filter"?fl:t==="component"?al:ul);for(let l=0;l<e.length;l++){let a=e[l];const u=a.endsWith("__self");u&&(a=a.slice(0,-6)),s(`const ${Vs(a,t)} = ${o}(${JSON.stringify(a)}${u?", true":""})${i?"!":""}`),l<e.length-1&&r()}}function z1(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:s}=t;s();for(let r=0;r<e.length;r++){const i=e[r];i&&(n(`const _hoisted_${r+1} = `),Ue(i,t),s())}t.pure=!1}function Cl(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Qs(e,t,n),n&&t.deindent(),t.push("]")}function Qs(e,t,n=!1,s=!0){const{push:r,newline:i}=t;for(let o=0;o<e.length;o++){const l=e[o];q(l)?r(l,-3):H(l)?Cl(l,t):Ue(l,t),o<e.length-1&&(n?(s&&r(","),i()):s&&r(", "))}}function Ue(e,t){if(q(e)){t.push(e,-3);return}if(Xe(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Ue(e.codegenNode,t);break;case 2:K1(e,t);break;case 4:nd(e,t);break;case 5:W1(e,t);break;case 12:Ue(e.codegenNode,t);break;case 8:sd(e,t);break;case 3:G1(e,t);break;case 13:Y1(e,t);break;case 14:Z1(e,t);break;case 15:Q1(e,t);break;case 17:X1(e,t);break;case 18:eg(e,t);break;case 19:tg(e,t);break;case 20:ng(e,t);break;case 21:Qs(e.body,t,!0,!1);break}}function K1(e,t){t.push(JSON.stringify(e.content),-3,e)}function nd(e,t){const{content:n,isStatic:s}=e;t.push(s?JSON.stringify(n):n,-3,e)}function W1(e,t){const{push:n,helper:s,pure:r}=t;r&&n(Ti),n(`${s(Si)}(`),Ue(e.content,t),n(")")}function sd(e,t){for(let n=0;n<e.children.length;n++){const s=e.children[n];q(s)?t.push(s,-3):Ue(s,t)}}function q1(e,t){const{push:n}=t;if(e.type===8)n("["),sd(e,t),n("]");else if(e.isStatic){const s=Sl(e.content)?e.content:JSON.stringify(e.content);n(s,-2,e)}else n(`[${e.content}]`,-3,e)}function G1(e,t){const{push:n,helper:s,pure:r}=t;r&&n(Ti),n(`${s(Js)}(${JSON.stringify(e.content)})`,-3,e)}function Y1(e,t){const{push:n,helper:s,pure:r}=t,{tag:i,props:o,children:l,patchFlag:a,dynamicProps:u,directives:c,isBlock:f,disableTracking:d,isComponent:p}=e;let v;a&&(v=String(a)),c&&n(s(dl)+"("),f&&n(`(${s(xn)}(${d?"true":""}), `),r&&n(Ti);const m=f?es(t.inSSR,p):Xn(t.inSSR,p);n(s(m)+"(",-2,e),Qs(J1([i,o,l,v,u]),t),n(")"),f&&n(")"),c&&(n(", "),Ue(c,t),n(")"))}function J1(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Z1(e,t){const{push:n,helper:s,pure:r}=t,i=q(e.callee)?e.callee:s(e.callee);r&&n(Ti),n(i+"(",-2,e),Qs(e.arguments,t),n(")")}function Q1(e,t){const{push:n,indent:s,deindent:r,newline:i}=t,{properties:o}=e;if(!o.length){n("{}",-2,e);return}const l=o.length>1||!1;n(l?"{":"{ "),l&&s();for(let a=0;a<o.length;a++){const{key:u,value:c}=o[a];q1(u,t),n(": "),Ue(c,t),a<o.length-1&&(n(","),i())}l&&r(),n(l?"}":" }")}function X1(e,t){Cl(e.elements,t)}function eg(e,t){const{push:n,indent:s,deindent:r}=t,{params:i,returns:o,body:l,newline:a,isSlot:u}=e;u&&n(`_${Zn[_l]}(`),n("(",-2,e),H(i)?Qs(i,t):i&&Ue(i,t),n(") => "),(a||l)&&(n("{"),s()),o?(a&&n("return "),H(o)?Cl(o,t):Ue(o,t)):l&&Ue(l,t),(a||l)&&(r(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function tg(e,t){const{test:n,consequent:s,alternate:r,newline:i}=e,{push:o,indent:l,deindent:a,newline:u}=t;if(n.type===4){const f=!Sl(n.content);f&&o("("),nd(n,t),f&&o(")")}else o("("),Ue(n,t),o(")");i&&l(),t.indentLevel++,i||o(" "),o("? "),Ue(s,t),t.indentLevel--,i&&u(),i||o(" "),o(": ");const c=r.type===19;c||t.indentLevel++,Ue(r,t),c||t.indentLevel--,i&&a(!0)}function ng(e,t){const{push:n,helper:s,indent:r,deindent:i,newline:o}=t,{needPauseTracking:l,needArraySpread:a}=e;a&&n("[...("),n(`_cache[${e.index}] || (`),l&&(r(),n(`${s(qr)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),Ue(e.value,t),l&&(n(`).cacheIndex = ${e.index},`),o(),n(`${s(qr)}(1),`),o(),n(`_cache[${e.index}]`),i()),n(")"),a&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const sg=ed(/^(if|else|else-if)$/,(e,t,n)=>rg(e,t,n,(s,r,i)=>{const o=n.parent.children;let l=o.indexOf(s),a=0;for(;l-->=0;){const u=o[l];u&&u.type===9&&(a+=u.branches.length)}return()=>{if(i)s.codegenNode=La(r,a,n);else{const u=ig(s.codegenNode);u.alternate=La(r,a+s.branches.length-1,n)}}}));function rg(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(ve(28,t.loc)),t.exp=ne("true",!1,r)}if(t.name==="if"){const r=Ra(e,t),i={type:9,loc:M1(e.loc),branches:[r]};if(n.replaceNode(i),s)return s(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-->=-1;){const o=r[i];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(ve(30,e.loc)),n.removeNode();const l=Ra(e,t);o.branches.push(l);const a=s&&s(o,l,!1);Ci(l,n),a&&a(),n.currentNode=null}else n.onError(ve(30,e.loc));break}}}function Ra(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!ut(e,"for")?e.children:[e],userKey:wi(e,"key"),isTemplateIf:n}}function La(e,t,n){return e.condition?mo(e.condition,ka(e,t,n),Oe(n.helper(Js),['""',"true"])):ka(e,t,n)}function ka(e,t,n){const{helper:s}=n,r=Ee("key",ne(`${t}`,!1,lt,2)),{children:i}=e,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const a=o.codegenNode;return Zr(a,r,n),a}else{let a=64;return $s(n,s(ks),ft([r]),i,a,void 0,void 0,!0,!1,!1,e.loc)}else{const a=o.codegenNode,u=b1(a);return u.type===13&&vl(u,n),Zr(u,r,n),a}}function ig(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const og=(e,t,n)=>{const{modifiers:s,loc:r}=e,i=e.arg;let{exp:o}=e;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(i.type!==4||!i.isStatic)return n.onError(ve(52,i.loc)),{props:[Ee(i,ne("",!0,r))]};rd(e),o=e.exp}return i.type!==4?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),s.some(l=>l.content==="camel")&&(i.type===4?i.isStatic?i.content=_e(i.content):i.content=`${n.helperString(ho)}(${i.content})`:(i.children.unshift(`${n.helperString(ho)}(`),i.children.push(")"))),n.inSSR||(s.some(l=>l.content==="prop")&&Da(i,"."),s.some(l=>l.content==="attr")&&Da(i,"^")),{props:[Ee(i,o)]}},rd=(e,t)=>{const n=e.arg,s=_e(n.content);e.exp=ne(s,!1,n.loc)},Da=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},lg=ed("for",(e,t,n)=>{const{helper:s,removeHelper:r}=n;return ag(e,t,n,i=>{const o=Oe(s(pl),[i.source]),l=Yr(e),a=ut(e,"memo"),u=wi(e,"key",!1,!0);u&&u.type===7&&!u.exp&&rd(u);let f=u&&(u.type===6?u.value?ne(u.value.content,!0):void 0:u.exp);const d=u&&f?Ee("key",f):null,p=i.source.type===4&&i.source.constType>0,v=p?64:u?128:256;return i.codegenNode=$s(n,s(ks),void 0,o,v,void 0,void 0,!0,!p,!1,e.loc),()=>{let m;const{children:A}=i,E=A.length!==1||A[0].type!==1,x=Jr(e)?e:l&&e.children.length===1&&Jr(e.children[0])?e.children[0]:null;if(x?(m=x.codegenNode,l&&d&&Zr(m,d,n)):E?m=$s(n,s(ks),d?ft([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(m=A[0].codegenNode,l&&d&&Zr(m,d,n),m.isBlock!==!p&&(m.isBlock?(r(xn),r(es(n.inSSR,m.isComponent))):r(Xn(n.inSSR,m.isComponent))),m.isBlock=!p,m.isBlock?(s(xn),s(es(n.inSSR,m.isComponent))):s(Xn(n.inSSR,m.isComponent))),a){const h=Qn(vo(i.parseResult,[ne("_cached")]));h.body=l1([vt(["const _memo = (",a.exp,")"]),vt(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Hf)}(_cached, _memo)) return _cached`]),vt(["const _item = ",m]),ne("_item.memo = _memo"),ne("return _item")]),o.arguments.push(h,ne("_cache"),ne(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(Qn(vo(i.parseResult),m,!0))}})});function ag(e,t,n,s){if(!t.exp){n.onError(ve(31,t.loc));return}const r=t.forParseResult;if(!r){n.onError(ve(32,t.loc));return}id(r);const{addIdentifiers:i,removeIdentifiers:o,scopes:l}=n,{source:a,value:u,key:c,index:f}=r,d={type:11,loc:t.loc,source:a,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:r,children:Yr(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const p=s&&s(d);return()=>{l.vFor--,p&&p()}}function id(e,t){e.finalized||(e.finalized=!0)}function vo({value:e,key:t,index:n},s=[]){return cg([e,t,n,...s])}function cg(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||ne("_".repeat(s+1),!1))}const $a=ne("undefined",!1),ug=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=ut(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},fg=(e,t,n,s)=>Qn(e,n,!1,!0,n.length?n[0].loc:s);function dg(e,t,n=fg){t.helper(_l);const{children:s,loc:r}=e,i=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const a=ut(e,"slot",!0);if(a){const{arg:A,exp:E}=a;A&&!Qe(A)&&(l=!0),i.push(Ee(A||ne("default",!0),n(E,void 0,s,r)))}let u=!1,c=!1;const f=[],d=new Set;let p=0;for(let A=0;A<s.length;A++){const E=s[A];let x;if(!Yr(E)||!(x=ut(E,"slot",!0))){E.type!==3&&f.push(E);continue}if(a){t.onError(ve(37,x.loc));break}u=!0;const{children:h,loc:y}=E,{arg:S=ne("default",!0),exp:O,loc:F}=x;let M;Qe(S)?M=S?S.content:"default":l=!0;const b=ut(E,"for"),C=n(O,b,h,y);let L,T;if(L=ut(E,"if"))l=!0,o.push(mo(L.exp,fr(S,C,p++),$a));else if(T=ut(E,/^else(-if)?$/,!0)){let k=A,z;for(;k--&&(z=s[k],z.type===3););if(z&&Yr(z)&&ut(z,/^(else-)?if$/)){let J=o[o.length-1];for(;J.alternate.type===19;)J=J.alternate;J.alternate=T.exp?mo(T.exp,fr(S,C,p++),$a):fr(S,C,p++)}else t.onError(ve(30,T.loc))}else if(b){l=!0;const k=b.forParseResult;k?(id(k),o.push(Oe(t.helper(pl),[k.source,Qn(vo(k),fr(S,C),!0)]))):t.onError(ve(32,b.loc))}else{if(M){if(d.has(M)){t.onError(ve(38,F));continue}d.add(M),M==="default"&&(c=!0)}i.push(Ee(S,C))}}if(!a){const A=(E,x)=>{const h=n(E,void 0,x,r);return t.compatConfig&&(h.isNonScopedSlot=!0),Ee("default",h)};u?f.length&&f.some(E=>od(E))&&(c?t.onError(ve(39,f[0].loc)):i.push(A(void 0,f))):i.push(A(void 0,s))}const v=l?2:Cr(e.children)?3:1;let m=ft(i.concat(Ee("_",ne(v+"",!1))),r);return o.length&&(m=Oe(t.helper(Vf),[m,Sn(o)])),{slots:m,hasDynamicSlots:l}}function fr(e,t,n){const s=[Ee("name",e),Ee("fn",t)];return n!=null&&s.push(Ee("key",ne(String(n),!0))),ft(s)}function Cr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Cr(n.children))return!0;break;case 9:if(Cr(n.branches))return!0;break;case 10:case 11:if(Cr(n.children))return!0;break}}return!1}function od(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():od(e.content)}const ld=new WeakMap,pg=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:r}=e,i=e.tagType===1;let o=i?hg(e,t):`"${s}"`;const l=ce(o)&&o.callee===cl;let a,u,c=0,f,d,p,v=l||o===ws||o===rl||!i&&(s==="svg"||s==="foreignObject"||s==="math");if(r.length>0){const m=ad(e,t,void 0,i,l);a=m.props,c=m.patchFlag,d=m.dynamicPropNames;const A=m.directives;p=A&&A.length?Sn(A.map(E=>mg(E,t))):void 0,m.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(o===Kr&&(v=!0,c|=1024),i&&o!==ws&&o!==Kr){const{slots:A,hasDynamicSlots:E}=dg(e,t);u=A,E&&(c|=1024)}else if(e.children.length===1&&o!==ws){const A=e.children[0],E=A.type,x=E===5||E===8;x&&rt(A,t)===0&&(c|=1),x||E===2?u=A:u=e.children}else u=e.children;d&&d.length&&(f=_g(d)),e.codegenNode=$s(t,o,a,u,c===0?void 0:c,f,p,!!v,!1,i,e.loc)};function hg(e,t,n=!1){let{tag:s}=e;const r=bo(s),i=wi(e,"is",!1,!0);if(i)if(r||wn("COMPILER_IS_ON_ELEMENT",t)){let l;if(i.type===6?l=i.value&&ne(i.value.content,!0):(l=i.exp,l||(l=ne("is",!1,i.arg.loc))),l)return Oe(t.helper(cl),[l])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const o=Uf(s)||t.isBuiltInComponent(s);return o?(n||t.helper(o),o):(t.helper(al),t.components.add(s),Vs(s,"component"))}function ad(e,t,n=e.props,s,r,i=!1){const{tag:o,loc:l,children:a}=e;let u=[];const c=[],f=[],d=a.length>0;let p=!1,v=0,m=!1,A=!1,E=!1,x=!1,h=!1,y=!1;const S=[],O=C=>{u.length&&(c.push(ft(Fa(u),l)),u=[]),C&&c.push(C)},F=()=>{t.scopes.vFor>0&&u.push(Ee(ne("ref_for",!0),ne("true")))},M=({key:C,value:L})=>{if(Qe(C)){const T=C.content,k=In(T);if(k&&(!s||r)&&T.toLowerCase()!=="onclick"&&T!=="onUpdate:modelValue"&&!Yt(T)&&(x=!0),k&&Yt(T)&&(y=!0),k&&L.type===14&&(L=L.arguments[0]),L.type===20||(L.type===4||L.type===8)&&rt(L,t)>0)return;T==="ref"?m=!0:T==="class"?A=!0:T==="style"?E=!0:T!=="key"&&!S.includes(T)&&S.push(T),s&&(T==="class"||T==="style")&&!S.includes(T)&&S.push(T)}else h=!0};for(let C=0;C<n.length;C++){const L=n[C];if(L.type===6){const{loc:T,name:k,nameLoc:z,value:J}=L;let U=!0;if(k==="ref"&&(m=!0,F()),k==="is"&&(bo(o)||J&&J.content.startsWith("vue:")||wn("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Ee(ne(k,!0,z),ne(J?J.content:"",U,J?J.loc:T)))}else{const{name:T,arg:k,exp:z,loc:J,modifiers:U}=L,X=T==="bind",j=T==="on";if(T==="slot"){s||t.onError(ve(40,J));continue}if(T==="once"||T==="memo"||T==="is"||X&&pn(k,"is")&&(bo(o)||wn("COMPILER_IS_ON_ELEMENT",t))||j&&i)continue;if((X&&pn(k,"key")||j&&d&&pn(k,"vue:before-update"))&&(p=!0),X&&pn(k,"ref")&&F(),!k&&(X||j)){if(h=!0,z)if(X){if(F(),O(),wn("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(z);continue}c.push(z)}else O({type:14,loc:J,callee:t.helper(ml),arguments:s?[z]:[z,"true"]});else t.onError(ve(X?34:35,J));continue}X&&U.some(Ge=>Ge.content==="prop")&&(v|=32);const be=t.directiveTransforms[T];if(be){const{props:Ge,needRuntime:gt}=be(L,e,t);!i&&Ge.forEach(M),j&&k&&!Qe(k)?O(ft(Ge,l)):u.push(...Ge),gt&&(f.push(L),Xe(gt)&&ld.set(L,gt))}else np(T)||(f.push(L),d&&(p=!0))}}let b;if(c.length?(O(),c.length>1?b=Oe(t.helper(Wr),c,l):b=c[0]):u.length&&(b=ft(Fa(u),l)),h?v|=16:(A&&!s&&(v|=2),E&&!s&&(v|=4),S.length&&(v|=8),x&&(v|=32)),!p&&(v===0||v===32)&&(m||y||f.length>0)&&(v|=512),!t.inSSR&&b)switch(b.type){case 15:let C=-1,L=-1,T=!1;for(let J=0;J<b.properties.length;J++){const U=b.properties[J].key;Qe(U)?U.content==="class"?C=J:U.content==="style"&&(L=J):U.isHandlerKey||(T=!0)}const k=b.properties[C],z=b.properties[L];T?b=Oe(t.helper(Ds),[b]):(k&&!Qe(k.value)&&(k.value=Oe(t.helper(hl),[k.value])),z&&(E||z.value.type===4&&z.value.content.trim()[0]==="["||z.value.type===17)&&(z.value=Oe(t.helper(gl),[z.value])));break;case 14:break;default:b=Oe(t.helper(Ds),[Oe(t.helper(Zs),[b])]);break}return{props:b,directives:f,patchFlag:v,dynamicPropNames:S,shouldUseBlock:p}}function Fa(e){const t=new Map,n=[];for(let s=0;s<e.length;s++){const r=e[s];if(r.key.type===8||!r.key.isStatic){n.push(r);continue}const i=r.key.content,o=t.get(i);o?(i==="style"||i==="class"||In(i))&&gg(o,r):(t.set(i,r),n.push(r))}return n}function gg(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Sn([e.value,t.value],e.loc)}function mg(e,t){const n=[],s=ld.get(e);s?n.push(t.helperString(s)):(t.helper(ul),t.directives.add(e.name),n.push(Vs(e.name,"directive")));const{loc:r}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const i=ne("true",!1,r);n.push(ft(e.modifiers.map(o=>Ee(o,i)),r))}return Sn(n,e.loc)}function _g(e){let t="[";for(let n=0,s=e.length;n<s;n++)t+=JSON.stringify(e[n]),n<s-1&&(t+=", ");return t+"]"}function bo(e){return e==="component"||e==="Component"}const yg=(e,t)=>{if(Jr(e)){const{children:n,loc:s}=e,{slotName:r,slotProps:i}=vg(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(o[2]=i,l=3),n.length&&(o[3]=Qn([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=Oe(t.helper(Ff),o,s)}};function vg(e,t){let n='"default"',s;const r=[];for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6)o.value&&(o.name==="name"?n=JSON.stringify(o.value.content):(o.name=_e(o.name),r.push(o)));else if(o.name==="bind"&&pn(o.arg,"name")){if(o.exp)n=o.exp;else if(o.arg&&o.arg.type===4){const l=_e(o.arg.content);n=o.exp=ne(l,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&Qe(o.arg)&&(o.arg.content=_e(o.arg.content)),r.push(o)}if(r.length>0){const{props:i,directives:o}=ad(e,t,r,!1,!1);s=i,o.length&&t.onError(ve(36,o[0].loc))}return{slotName:n,slotProps:s}}const cd=(e,t,n,s)=>{const{loc:r,modifiers:i,arg:o}=e;!e.exp&&!i.length&&n.onError(ve(35,r));let l;if(o.type===4)if(o.isStatic){let f=o.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const d=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?jn(_e(f)):`on:${f}`;l=ne(d,!0,o.loc)}else l=vt([`${n.helperString(go)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(go)}(`),l.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let u=n.cacheHandlers&&!a&&!n.inVOnce;if(a){const f=zf(a),d=!(f||m1(a)),p=a.content.includes(";");(d||u&&f)&&(a=vt([`${d?"$event":"(...args)"} => ${p?"{":"("}`,a,p?"}":")"]))}let c={props:[Ee(l,a||ne("() => {}",!1,r))]};return s&&(c=s(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},bg=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,r=!1;for(let i=0;i<n.length;i++){const o=n[i];if(zi(o)){r=!0;for(let l=i+1;l<n.length;l++){const a=n[l];if(zi(a))s||(s=n[i]=vt([o],o.loc)),s.children.push(" + ",a),n.splice(l,1),l--;else{s=void 0;break}}}}if(!(!r||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(i=>i.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i<n.length;i++){const o=n[i];if(zi(o)||o.type===8){const l=[];(o.type!==2||o.content!==" ")&&l.push(o),!t.ssr&&rt(o,t)===0&&l.push(1+""),n[i]={type:12,content:o,loc:o.loc,codegenNode:Oe(t.helper(ll),l)}}}}},Va=new WeakSet,Sg=(e,t)=>{if(e.type===1&&ut(e,"once",!0))return Va.has(e)||t.inVOnce||t.inSSR?void 0:(Va.add(e),t.inVOnce=!0,t.helper(qr),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},ud=(e,t,n)=>{const{exp:s,arg:r}=e;if(!s)return n.onError(ve(41,e.loc)),dr();const i=s.loc.source.trim(),o=s.type===4?s.content:i,l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased")return n.onError(ve(44,s.loc)),dr();const a=!1;if(!o.trim()||!zf(s)&&!a)return n.onError(ve(42,s.loc)),dr();const u=r||ne("modelValue",!0),c=r?Qe(r)?`onUpdate:${_e(r.content)}`:vt(['"onUpdate:" + ',r]):"onUpdate:modelValue";let f;const d=n.isTS?"($event: any)":"$event";f=vt([`${d} => ((`,s,") = $event)"]);const p=[Ee(u,e.exp),Ee(c,f)];if(e.modifiers.length&&t.tagType===1){const v=e.modifiers.map(A=>A.content).map(A=>(Sl(A)?A:JSON.stringify(A))+": true").join(", "),m=r?Qe(r)?`${r.content}Modifiers`:vt([r,' + "Modifiers"']):"modelModifiers";p.push(Ee(m,ne(`{ ${v} }`,!1,e.loc,2)))}return dr(p)};function dr(e=[]){return{props:e}}const wg=/[\w).+\-_$\]]/,Cg=(e,t)=>{!wn("COMPILER_FILTERS",t)||(e.type===5?Qr(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Qr(n.exp,t)}))};function Qr(e,t){if(e.type===4)Ha(e,t);else for(let n=0;n<e.children.length;n++){const s=e.children[n];typeof s=="object"&&(s.type===4?Ha(s,t):s.type===8?Qr(e,t):s.type===5&&Qr(s.content,t))}}function Ha(e,t){const n=e.content;let s=!1,r=!1,i=!1,o=!1,l=0,a=0,u=0,c=0,f,d,p,v,m=[];for(p=0;p<n.length;p++)if(d=f,f=n.charCodeAt(p),s)f===39&&d!==92&&(s=!1);else if(r)f===34&&d!==92&&(r=!1);else if(i)f===96&&d!==92&&(i=!1);else if(o)f===47&&d!==92&&(o=!1);else if(f===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!l&&!a&&!u)v===void 0?(c=p+1,v=n.slice(0,p).trim()):A();else{switch(f){case 34:r=!0;break;case 39:s=!0;break;case 96:i=!0;break;case 40:u++;break;case 41:u--;break;case 91:a++;break;case 93:a--;break;case 123:l++;break;case 125:l--;break}if(f===47){let E=p-1,x;for(;E>=0&&(x=n.charAt(E),x===" ");E--);(!x||!wg.test(x))&&(o=!0)}}v===void 0?v=n.slice(0,p).trim():c!==0&&A();function A(){m.push(n.slice(c,p).trim()),c=p+1}if(m.length){for(p=0;p<m.length;p++)v=Tg(v,m[p],t);e.content=v,e.ast=void 0}}function Tg(e,t,n){n.helper(fl);const s=t.indexOf("(");if(s<0)return n.filters.add(t),`${Vs(t,"filter")}(${e})`;{const r=t.slice(0,s),i=t.slice(s+1);return n.filters.add(r),`${Vs(r,"filter")}(${e}${i!==")"?","+i:i}`}}const Ba=new WeakSet,Eg=(e,t)=>{if(e.type===1){const n=ut(e,"memo");return!n||Ba.has(e)?void 0:(Ba.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&vl(s,t),e.codegenNode=Oe(t.helper(yl),[n.exp,Qn(void 0,s),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function xg(e){return[[Sg,sg,Eg,lg,Cg,yg,pg,ug,bg],{on:cd,bind:og,model:ud}]}function Ag(e,t={}){const n=t.onError||bl,s=t.mode==="module";t.prefixIdentifiers===!0?n(ve(47)):s&&n(ve(48));const r=!1;t.cacheHandlers&&n(ve(49)),t.scopeId&&!s&&n(ve(50));const i=ie({},t,{prefixIdentifiers:r}),o=q(e)?L1(e,i):e,[l,a]=xg();return F1(o,ie({},i,{nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:ie({},a,t.directiveTransforms||{})})),U1(o,i)}const Ig=()=>({props:[]});/**
     44* @vue/compiler-dom v3.5.13
     45* (c) 2018-present Yuxi (Evan) You and Vue contributors
     46* @license MIT
     47**/const fd=Symbol(""),dd=Symbol(""),pd=Symbol(""),hd=Symbol(""),So=Symbol(""),gd=Symbol(""),md=Symbol(""),_d=Symbol(""),yd=Symbol(""),vd=Symbol("");r1({[fd]:"vModelRadio",[dd]:"vModelCheckbox",[pd]:"vModelText",[hd]:"vModelSelect",[So]:"vModelDynamic",[gd]:"withModifiers",[md]:"withKeys",[_d]:"vShow",[yd]:"Transition",[vd]:"TransitionGroup"});let Fn;function Og(e,t=!1){return Fn||(Fn=document.createElement("div")),t?(Fn.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Fn.children[0].getAttribute("foo")):(Fn.innerHTML=e,Fn.textContent)}const Ng={parseMode:"html",isVoidTag:bp,isNativeTag:e=>_p(e)||yp(e)||vp(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Og,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return yd;if(e==="TransitionGroup"||e==="transition-group")return vd},getNamespace(e,t,n){let s=t?t.ns:n;if(t&&s===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(s=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(s=0);else t&&s===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(s=0);if(s===0){if(e==="svg")return 1;if(e==="math")return 2}return s}},Mg=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ne("style",!0,t.loc),exp:Pg(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Pg=(e,t)=>{const n=Ac(e);return ne(JSON.stringify(n),!1,t,3)};function Xt(e,t){return ve(e,t)}const Rg=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(Xt(53,r)),t.children.length&&(n.onError(Xt(54,r)),t.children.length=0),{props:[Ee(ne("innerHTML",!0,r),s||ne("",!0))]}},Lg=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(Xt(55,r)),t.children.length&&(n.onError(Xt(56,r)),t.children.length=0),{props:[Ee(ne("textContent",!0),s?rt(s,n)>0?s:Oe(n.helperString(Si),[s],r):ne("",!0))]}},kg=(e,t,n)=>{const s=ud(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(Xt(58,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||i){let o=pd,l=!1;if(r==="input"||i){const a=wi(t,"type");if(a){if(a.type===7)o=So;else if(a.value)switch(a.value.content){case"radio":o=fd;break;case"checkbox":o=dd;break;case"file":l=!0,n.onError(Xt(59,e.loc));break}}else _1(t)&&(o=So)}else r==="select"&&(o=hd);l||(s.needRuntime=n.helper(o))}else n.onError(Xt(57,e.loc));return s.props=s.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),s},Dg=je("passive,once,capture"),$g=je("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Fg=je("left,right"),bd=je("onkeyup,onkeydown,onkeypress"),Vg=(e,t,n,s)=>{const r=[],i=[],o=[];for(let l=0;l<t.length;l++){const a=t[l].content;a==="native"&&Fs("COMPILER_V_ON_NATIVE",n)||Dg(a)?o.push(a):Fg(a)?Qe(e)?bd(e.content.toLowerCase())?r.push(a):i.push(a):(r.push(a),i.push(a)):$g(a)?i.push(a):r.push(a)}return{keyModifiers:r,nonKeyModifiers:i,eventOptionModifiers:o}},Ua=(e,t)=>Qe(e)&&e.content.toLowerCase()==="onclick"?ne(t,!0):e.type!==4?vt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Hg=(e,t,n)=>cd(e,t,n,s=>{const{modifiers:r}=e;if(!r.length)return s;let{key:i,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:a,eventOptionModifiers:u}=Vg(i,r,n,e.loc);if(a.includes("right")&&(i=Ua(i,"onContextmenu")),a.includes("middle")&&(i=Ua(i,"onMouseup")),a.length&&(o=Oe(n.helper(gd),[o,JSON.stringify(a)])),l.length&&(!Qe(i)||bd(i.content.toLowerCase()))&&(o=Oe(n.helper(md),[o,JSON.stringify(l)])),u.length){const c=u.map(Nn).join("");i=Qe(i)?ne(`${i.content}${c}`,!0):vt(["(",i,`) + "${c}"`])}return{props:[Ee(i,o)]}}),Bg=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(Xt(61,r)),{props:[],needRuntime:n.helper(_d)}},Ug=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},jg=[Mg],zg={cloak:Ig,html:Rg,text:Lg,model:kg,on:Hg,show:Bg};function Kg(e,t={}){return Ag(e,ie({},Ng,t,{nodeTransforms:[Ug,...jg,...t.nodeTransforms||[]],directiveTransforms:ie({},zg,t.directiveTransforms||{}),transformHoist:null}))}/**
     48* vue v3.5.13
     49* (c) 2018-present Yuxi (Evan) You and Vue contributors
     50* @license MIT
     51**/const ja=Object.create(null);function Wg(e,t){if(!q(e))if(e.nodeType)e=e.innerHTML;else return Pe;const n=ip(e,t),s=ja[n];if(s)return s;if(e[0]==="#"){const l=document.querySelector(e);e=l?l.innerHTML:""}const r=ie({hoistStatic:!0,onError:void 0,onWarn:Pe},t);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=l=>!!customElements.get(l));const{code:i}=Kg(e,r),o=new Function("Vue",i)(Q2);return o._rc=!0,ja[n]=o}rf(Wg);var qg=Object.defineProperty,Gg=Object.defineProperties,Yg=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,Jg=Object.prototype.hasOwnProperty,Zg=Object.prototype.propertyIsEnumerable,Ka=(e,t,n)=>t in e?qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qg=(e,t)=>{for(var n in t||(t={}))Jg.call(t,n)&&Ka(e,n,t[n]);if(za)for(var n of za(t))Zg.call(t,n)&&Ka(e,n,t[n]);return e},Xg=(e,t)=>Gg(e,Yg(t));function jy(e,t){var n;const s=$o();return zu(()=>{s.value=e()},Xg(Qg({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Ws(s)}var Wa;const rn=typeof window<"u",em=e=>typeof e=="string",Xr=()=>{},tm=rn&&((Wa=window==null?void 0:window.navigator)==null?void 0:Wa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Bs(e){return typeof e=="function"?e():fe(e)}function nm(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}function sm(e,t={}){let n,s,r=Xr;const i=l=>{clearTimeout(l),r(),r=Xr};return l=>{const a=Bs(e),u=Bs(t.maxWait);return n&&i(n),a<=0||u!==void 0&&u<=0?(s&&(i(s),s=null),Promise.resolve(l())):new Promise((c,f)=>{r=t.rejectOnCancel?f:c,u&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,c(l())},u)),n=setTimeout(()=>{s&&i(s),s=null,c(l())},a)})}}function rm(e){return e}function Ei(e){return Ro()?(Mc(e),!0):!1}function im(e,t=200,n={}){return nm(sm(t,n),e)}function zy(e,t=200,n={}){const s=Se(e.value),r=im(()=>{s.value=e.value},t,n);return Et(e,()=>r()),s}function om(e,t=!0){Re()?Ln(e):t?e():Rn(e)}function lm(e,t,n={}){const{immediate:s=!0}=n,r=Se(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function l(){r.value=!1,o()}function a(...u){o(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...u)},Bs(t))}return s&&(r.value=!0,rn&&a()),Ei(l),{isPending:Ws(r),start:a,stop:l}}function gn(e){var t;const n=Bs(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Xs=rn?window:void 0,am=rn?window.document:void 0;function Cn(...e){let t,n,s,r;if(em(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=Xs):[t,n,s,r]=e,!t)return Xr;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},l=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),a=Et(()=>[gn(t),Bs(r)],([c,f])=>{o(),c&&i.push(...n.flatMap(d=>s.map(p=>l(c,d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{a(),o()};return Ei(u),u}let qa=!1;function Ky(e,t,n={}){const{window:s=Xs,ignore:r=[],capture:i=!0,detectIframe:o=!1}=n;if(!s)return;tm&&!qa&&(qa=!0,Array.from(s.document.body.children).forEach(d=>d.addEventListener("click",Xr)));let l=!0;const a=d=>r.some(p=>{if(typeof p=="string")return Array.from(s.document.querySelectorAll(p)).some(v=>v===d.target||d.composedPath().includes(v));{const v=gn(p);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[Cn(s,"click",d=>{const p=gn(e);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(l=!a(d)),!l){l=!0;return}t(d)}},{passive:!0,capture:i}),Cn(s,"pointerdown",d=>{const p=gn(e);p&&(l=!d.composedPath().includes(p)&&!a(d))},{passive:!0}),o&&Cn(s,"blur",d=>{var p;const v=gn(e);((p=s.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function Sd(e,t=!1){const n=Se(),s=()=>n.value=Boolean(e());return s(),om(s,t),n}const wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Co="__vueuse_ssr_handlers__";wo[Co]=wo[Co]||{};wo[Co];function Wy({document:e=am}={}){if(!e)return Se("visible");const t=Se(e.visibilityState);return Cn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ga=Object.getOwnPropertySymbols,cm=Object.prototype.hasOwnProperty,um=Object.prototype.propertyIsEnumerable,fm=(e,t)=>{var n={};for(var s in e)cm.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&Ga)for(var s of Ga(e))t.indexOf(s)<0&&um.call(e,s)&&(n[s]=e[s]);return n};function qy(e,t,n={}){const s=n,{window:r=Xs}=s,i=fm(s,["window"]);let o;const l=Sd(()=>r&&"ResizeObserver"in r),a=()=>{o&&(o.disconnect(),o=void 0)},u=Et(()=>gn(e),f=>{a(),l.value&&r&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{a(),u()};return Ei(c),{isSupported:l,stop:c}}var Ya=Object.getOwnPropertySymbols,dm=Object.prototype.hasOwnProperty,pm=Object.prototype.propertyIsEnumerable,hm=(e,t)=>{var n={};for(var s in e)dm.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&Ya)for(var s of Ya(e))t.indexOf(s)<0&&pm.call(e,s)&&(n[s]=e[s]);return n};function Gy(e,t,n={}){const s=n,{window:r=Xs}=s,i=hm(s,["window"]);let o;const l=Sd(()=>r&&"MutationObserver"in r),a=()=>{o&&(o.disconnect(),o=void 0)},u=Et(()=>gn(e),f=>{a(),l.value&&r&&f&&(o=new MutationObserver(t),o.observe(f,i))},{immediate:!0}),c=()=>{a(),u()};return Ei(c),{isSupported:l,stop:c}}var Ja;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ja||(Ja={}));var gm=Object.defineProperty,Za=Object.getOwnPropertySymbols,mm=Object.prototype.hasOwnProperty,_m=Object.prototype.propertyIsEnumerable,Qa=(e,t,n)=>t in e?gm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ym=(e,t)=>{for(var n in t||(t={}))mm.call(t,n)&&Qa(e,n,t[n]);if(Za)for(var n of Za(t))_m.call(t,n)&&Qa(e,n,t[n]);return e};const vm={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ym({linear:rm},vm);function Yy({window:e=Xs}={}){if(!e)return Se(!1);const t=Se(e.document.hasFocus());return Cn(e,"blur",()=>{t.value=!1}),Cn(e,"focus",()=>{t.value=!0}),t}var bm=typeof global=="object"&&global&&global.Object===Object&&global;const Sm=bm;var wm=typeof self=="object"&&self&&self.Object===Object&&self,Cm=Sm||wm||Function("return this")();const Tl=Cm;var Tm=Tl.Symbol;const ts=Tm;var wd=Object.prototype,Em=wd.hasOwnProperty,xm=wd.toString,us=ts?ts.toStringTag:void 0;function Am(e){var t=Em.call(e,us),n=e[us];try{e[us]=void 0;var s=!0}catch{}var r=xm.call(e);return s&&(t?e[us]=n:delete e[us]),r}var Im=Object.prototype,Om=Im.toString;function Nm(e){return Om.call(e)}var Mm="[object Null]",Pm="[object Undefined]",Xa=ts?ts.toStringTag:void 0;function Cd(e){return e==null?e===void 0?Pm:Mm:Xa&&Xa in Object(e)?Am(e):Nm(e)}function Rm(e){return e!=null&&typeof e=="object"}var Lm="[object Symbol]";function El(e){return typeof e=="symbol"||Rm(e)&&Cd(e)==Lm}function km(e,t){for(var n=-1,s=e==null?0:e.length,r=Array(s);++n<s;)r[n]=t(e[n],n,e);return r}var Dm=Array.isArray;const xl=Dm;var $m=1/0,ec=ts?ts.prototype:void 0,tc=ec?ec.toString:void 0;function Td(e){if(typeof e=="string")return e;if(xl(e))return km(e,Td)+"";if(El(e))return tc?tc.call(e):"";var t=e+"";return t=="0"&&1/e==-$m?"-0":t}function ei(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Fm="[object AsyncFunction]",Vm="[object Function]",Hm="[object GeneratorFunction]",Bm="[object Proxy]";function Um(e){if(!ei(e))return!1;var t=Cd(e);return t==Vm||t==Hm||t==Fm||t==Bm}var jm=Tl["__core-js_shared__"];const Wi=jm;var nc=function(){var e=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zm(e){return!!nc&&nc in e}var Km=Function.prototype,Wm=Km.toString;function qm(e){if(e!=null){try{return Wm.call(e)}catch{}try{return e+""}catch{}}return""}var Gm=/[\\^$.*+?()[\]{}|]/g,Ym=/^\[object .+?Constructor\]$/,Jm=Function.prototype,Zm=Object.prototype,Qm=Jm.toString,Xm=Zm.hasOwnProperty,e_=RegExp("^"+Qm.call(Xm).replace(Gm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t_(e){if(!ei(e)||zm(e))return!1;var t=Um(e)?e_:Ym;return t.test(qm(e))}function n_(e,t){return e==null?void 0:e[t]}function Al(e,t){var n=n_(e,t);return t_(n)?n:void 0}var s_=function(){try{var e=Al(Object,"defineProperty");return e({},"",{}),e}catch{}}();const sc=s_;var r_=9007199254740991,i_=/^(?:0|[1-9]\d*)$/;function o_(e,t){var n=typeof e;return t=t==null?r_:t,!!t&&(n=="number"||n!="symbol"&&i_.test(e))&&e>-1&&e%1==0&&e<t}function l_(e,t,n){t=="__proto__"&&sc?sc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ed(e,t){return e===t||e!==e&&t!==t}var a_=Object.prototype,c_=a_.hasOwnProperty;function u_(e,t,n){var s=e[t];(!(c_.call(e,t)&&Ed(s,n))||n===void 0&&!(t in e))&&l_(e,t,n)}var f_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d_=/^\w*$/;function p_(e,t){if(xl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||El(e)?!0:d_.test(e)||!f_.test(e)||t!=null&&e in Object(t)}var h_=Al(Object,"create");const Us=h_;function g_(){this.__data__=Us?Us(null):{},this.size=0}function m_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var __="__lodash_hash_undefined__",y_=Object.prototype,v_=y_.hasOwnProperty;function b_(e){var t=this.__data__;if(Us){var n=t[e];return n===__?void 0:n}return v_.call(t,e)?t[e]:void 0}var S_=Object.prototype,w_=S_.hasOwnProperty;function C_(e){var t=this.__data__;return Us?t[e]!==void 0:w_.call(t,e)}var T_="__lodash_hash_undefined__";function E_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Us&&t===void 0?T_:t,this}function An(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}An.prototype.clear=g_;An.prototype.delete=m_;An.prototype.get=b_;An.prototype.has=C_;An.prototype.set=E_;function x_(){this.__data__=[],this.size=0}function xi(e,t){for(var n=e.length;n--;)if(Ed(e[n][0],t))return n;return-1}var A_=Array.prototype,I_=A_.splice;function O_(e){var t=this.__data__,n=xi(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():I_.call(t,n,1),--this.size,!0}function N_(e){var t=this.__data__,n=xi(t,e);return n<0?void 0:t[n][1]}function M_(e){return xi(this.__data__,e)>-1}function P_(e,t){var n=this.__data__,s=xi(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function rs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}rs.prototype.clear=x_;rs.prototype.delete=O_;rs.prototype.get=N_;rs.prototype.has=M_;rs.prototype.set=P_;var R_=Al(Tl,"Map");const L_=R_;function k_(){this.size=0,this.__data__={hash:new An,map:new(L_||rs),string:new An}}function D_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ai(e,t){var n=e.__data__;return D_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function $_(e){var t=Ai(this,e).delete(e);return this.size-=t?1:0,t}function F_(e){return Ai(this,e).get(e)}function V_(e){return Ai(this,e).has(e)}function H_(e,t){var n=Ai(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}kn.prototype.clear=k_;kn.prototype.delete=$_;kn.prototype.get=F_;kn.prototype.has=V_;kn.prototype.set=H_;var B_="Expected a function";function Il(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(B_);var n=function(){var s=arguments,r=t?t.apply(this,s):s[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,s);return n.cache=i.set(r,o)||i,o};return n.cache=new(Il.Cache||kn),n}Il.Cache=kn;var U_=500;function j_(e){var t=Il(e,function(s){return n.size===U_&&n.clear(),s}),n=t.cache;return t}var z_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K_=/\\(\\)?/g,W_=j_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(z_,function(n,s,r,i){t.push(r?i.replace(K_,"$1"):s||n)}),t});const q_=W_;function G_(e){return e==null?"":Td(e)}function xd(e,t){return xl(e)?e:p_(e,t)?[e]:q_(G_(e))}var Y_=1/0;function Ad(e){if(typeof e=="string"||El(e))return e;var t=e+"";return t=="0"&&1/e==-Y_?"-0":t}function J_(e,t){t=xd(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[Ad(t[n++])];return n&&n==s?e:void 0}function Id(e,t,n){var s=e==null?void 0:J_(e,t);return s===void 0?n:s}function Z_(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var r=e[t];s[r[0]]=r[1]}return s}function Q_(e){return e==null}function X_(e,t,n,s){if(!ei(e))return e;t=xd(t,e);for(var r=-1,i=t.length,o=i-1,l=e;l!=null&&++r<i;){var a=Ad(t[r]),u=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(r!=o){var c=l[a];u=s?s(c,a,l):void 0,u===void 0&&(u=ei(c)?c:o_(t[r+1])?[]:{})}u_(l,a,u),l=l[a]}return e}function e4(e,t,n){return e==null?e:X_(e,t,n)}const t4=e=>e===void 0,Jy=e=>typeof e=="boolean",Od=e=>typeof e=="number",rc=e=>typeof Element>"u"?!1:e instanceof Element,Zy=e=>Q_(e),n4=e=>q(e)?!Number.isNaN(Number(e)):!1,ic=e=>Object.keys(e),Qy=(e,t,n)=>({get value(){return Id(e,t,n)},set value(s){e4(e,t,s)}}),Nd=(e="")=>e.split(" ").filter(t=>!!t.trim()),Xy=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},oc=(e,t)=>{!e||!t.trim()||e.classList.add(...Nd(t))},ti=(e,t)=>{!e||!t.trim()||e.classList.remove(...Nd(t))},fs=(e,t)=>{var n;if(!rn||!e||!t)return"";let s=_e(t);s==="float"&&(s="cssFloat");try{const r=e.style[s];if(r)return r;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[s]:""}catch{return e.style[s]}};function s4(e,t="px"){if(!e)return"";if(Od(e)||n4(e))return`${e}${t}`;if(q(e))return e}/*! Element Plus Icons Vue v2.3.1 */var r4=Q({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),ev=r4,i4=Q({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),tv=i4,o4=Q({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),nv=o4,l4=Q({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),sv=l4,a4=Q({name:"Back",__name:"back",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),K("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),c4=a4,u4=Q({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),f4=u4,d4=Q({name:"Check",__name:"check",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),rv=d4,p4=Q({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),K("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),Md=p4,h4=Q({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Pd=h4,g4=Q({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),K("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),m4=g4,_4=Q({name:"Close",__name:"close",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Rd=_4,y4=Q({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.128 256.128 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),v4=y4,b4=Q({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64h493.184m-548.16 128H820.48l-10.688-64H214.208l-10.688 64h6.784m68.736 64 36.544 512H708.16l36.544-512z"})]))}}),iv=b4,S4=Q({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),ov=S4,w4=Q({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),lv=w4,C4=Q({name:"Delete",__name:"delete",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),T4=C4,E4=Q({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),av=E4,x4=Q({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64h-448z"})]))}}),cv=x4,A4=Q({name:"Edit",__name:"edit",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),K("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),I4=A4,O4=Q({name:"Help",__name:"help",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.912 254.912 0 0 1 512 768a254.912 254.912 0 0 1-156.992-53.76l-90.944 91.008A382.464 382.464 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.464 382.464 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512c0 59.136-20.096 113.6-53.76 156.992l91.008 90.944zm-45.312-541.184A382.464 382.464 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.912 254.912 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76l90.944-91.008zm-541.184 45.312A382.464 382.464 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.912 254.912 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.56 194.56 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.232 191.232 0 0 0-67.968-146.56A191.296 191.296 0 0 0 512 320a191.232 191.232 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.232 191.232 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),uv=O4,N4=Q({name:"Hide",__name:"hide",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),K("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),fv=N4,M4=Q({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ld=M4,P4=Q({name:"Link",__name:"link",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),dv=P4,R4=Q({name:"Loading",__name:"loading",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),L4=R4,k4=Q({name:"Message",__name:"message",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),K("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}}),pv=k4,D4=Q({name:"Money",__name:"money",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),K("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.056 29.056 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.056 29.056 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.056 29.056 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.056 29.056 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),K("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),hv=D4,$4=Q({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),gv=$4,F4=Q({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),mv=F4,V4=Q({name:"Plus",__name:"plus",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),H4=V4,B4=Q({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),_v=B4,U4=Q({name:"Setting",__name:"setting",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),yv=U4,j4=Q({name:"Share",__name:"share",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.808 127.808 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),vv=j4,z4=Q({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ol=z4,K4=Q({name:"Tools",__name:"tools",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),W4=K4,q4=Q({name:"Top",__name:"top",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),G4=q4,Y4=Q({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),bv=Y4,J4=Q({name:"Upload",__name:"upload",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),Z4=J4,Q4=Q({name:"User",__name:"user",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Sv=Q4,X4=Q({name:"View",__name:"view",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),ey=X4,ty=Q({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),kd=ty,ny=Q({name:"Warning",__name:"warning",setup(e){return(t,n)=>(Y(),te("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[K("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),wv=ny;const Dd="__epPropKey",Cs=e=>e,sy=e=>ce(e)&&!!e[Dd],$d=(e,t)=>{if(!ce(e)||sy(e))return e;const{values:n,required:s,default:r,type:i,validator:o}=e,a={type:i,required:!!s,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),ae(e,"default")&&f.push(r),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");ff(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[Dd]:!0};return ae(e,"default")&&(a.default=r),a},Nl=e=>Z_(Object.entries(e).map(([t,n])=>[t,$d(n,t)])),ry=Cs([String,Object,Function]),iy={Close:Rd},Cv={Close:Rd,SuccessFilled:Ol,InfoFilled:Ld,WarningFilled:kd,CircleCloseFilled:Pd},lc={success:Ol,warning:kd,error:Pd,info:Ld},Tv={validating:L4,success:Md,error:m4},oy=(e,t)=>{if(e.install=n=>{for(const s of[e,...Object.values(t!=null?t:{})])n.component(s.name,s)},t)for(const[n,s]of Object.entries(t))e[n]=s;return e},ly=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Ev=(e,t)=>(e.install=n=>{n.directive(t,e)},e),xv=e=>(e.install=Pe,e),qi={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ay=["","default","small","large"];var cy={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const uy=e=>(t,n)=>fy(t,n,fe(e)),fy=(e,t,n)=>Id(n,e,e).replace(/\{(\w+)\}/g,(s,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),dy=e=>{const t=pe(()=>fe(e).name),n=Ce(e)?e:Se(e);return{lang:t,locale:n,t:uy(e)}},Fd=Symbol("localeContextKey"),py=e=>{const t=e||ot(Fd,Se());return dy(pe(()=>t.value||cy))},Tr="el",hy="is-",cn=(e,t,n,s,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),s&&(i+=`__${s}`),r&&(i+=`--${r}`),i},Vd=Symbol("namespaceContextKey"),gy=e=>{const t=e||(Re()?ot(Vd,Se(Tr)):Se(Tr));return pe(()=>fe(t)||Tr)},Hd=(e,t)=>{const n=gy(t);return{namespace:n,b:(m="")=>cn(n.value,e,m,"",""),e:m=>m?cn(n.value,e,"",m,""):"",m:m=>m?cn(n.value,e,"","",m):"",be:(m,A)=>m&&A?cn(n.value,e,m,A,""):"",em:(m,A)=>m&&A?cn(n.value,e,"",m,A):"",bm:(m,A)=>m&&A?cn(n.value,e,m,"",A):"",bem:(m,A,E)=>m&&A&&E?cn(n.value,e,m,A,E):"",is:(m,...A)=>{const E=A.length>=1?A[0]:!0;return m&&E?`${hy}${m}`:""},cssVar:m=>{const A={};for(const E in m)m[E]&&(A[`--${n.value}-${E}`]=m[E]);return A},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const A={};for(const E in m)m[E]&&(A[`--${n.value}-${e}-${E}`]=m[E]);return A},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},ac={current:0},cc=Se(0),Bd=2e3,uc=Symbol("elZIndexContextKey"),Ud=Symbol("zIndexContextKey"),my=e=>{const t=Re()?ot(uc,ac):ac,n=e||(Re()?ot(Ud,void 0):void 0),s=pe(()=>{const o=fe(n);return Od(o)?o:Bd}),r=pe(()=>s.value+cc.value),i=()=>(t.current++,cc.value=t.current,r.value);return!rn&&ot(uc),{initialZIndex:s,currentZIndex:r,nextZIndex:i}},Av=$d({type:String,values:ay,required:!1}),jd=Symbol("size"),Iv=()=>{const e=ot(jd,{});return pe(()=>fe(e.size)||"")},zd=Symbol("emptyValuesContextKey"),_y=["",void 0,null],yy=void 0,Ov=Nl({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>G(e)?!e():!e}}),Nv=(e,t)=>{const n=Re()?ot(zd,Se({})):Se({}),s=pe(()=>e.emptyValues||n.value.emptyValues||_y),r=pe(()=>G(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:G(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:yy),i=o=>s.value.includes(o);return s.value.includes(r.value),{emptyValues:s,valueOnClear:r,isEmptyValue:i}},Kd=Symbol(),ni=Se();function Wd(e,t=void 0){const n=Re()?ot(Kd,ni):ni;return e?pe(()=>{var s,r;return(r=(s=n.value)==null?void 0:s[e])!=null?r:t}):n}function qd(e,t){const n=Wd(),s=Hd(e,pe(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Tr})),r=py(pe(()=>{var l;return(l=n.value)==null?void 0:l.locale})),i=my(pe(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||Bd})),o=pe(()=>{var l;return fe(t)||((l=n.value)==null?void 0:l.size)||""});return vy(pe(()=>fe(n)||{})),{ns:s,locale:r,zIndex:i,size:o}}const vy=(e,t,n=!1)=>{var s;const r=!!Re(),i=r?Wd():void 0,o=(s=t==null?void 0:t.provide)!=null?s:r?Yo:void 0;if(!o)return;const l=pe(()=>{const a=fe(e);return i!=null&&i.value?by(i.value,a):a});return o(Kd,l),o(Fd,pe(()=>l.value.locale)),o(Vd,pe(()=>l.value.namespace)),o(Ud,pe(()=>l.value.zIndex)),o(jd,{size:pe(()=>l.value.size||"")}),o(zd,pe(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!ni.value)&&(ni.value=l.value),l},by=(e,t)=>{const n=[...new Set([...ic(e),...ic(t)])],s={};for(const r of n)s[r]=t[r]!==void 0?t[r]:e[r];return s};var Gd=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const Sy=Nl({size:{type:Cs([Number,String])},color:{type:String}}),wy=Q({name:"ElIcon",inheritAttrs:!1}),Cy=Q({...wy,props:Sy,setup(e){const t=e,n=Hd("icon"),s=pe(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:t4(r)?void 0:s4(r),"--color":i}});return(r,i)=>(Y(),te("i",el({class:fe(n).b(),style:fe(s)},r.$attrs),[Wo(r.$slots,"default")],16))}});var Ty=Gd(Cy,[["__file","icon.vue"]]);const To=oy(Ty);function Ey(e){let t;const n=Se(!1),s=Ks({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(d){s.text=d}function i(){const d=s.parent,p=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(ti(d,p.bm("parent","relative")),d.removeAttribute("loading-number")),ti(d,p.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,p;(p=(d=f.$el)==null?void 0:d.parentNode)==null||p.removeChild(f.$el)}function l(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(a,400),s.visible=!1,(d=e.closed)==null||d.call(e))}function a(){if(!n.value)return;const d=s.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=Q({name:"ElLoading",setup(d,{expose:p}){const{ns:v,zIndex:m}=qd("loading");return p({ns:v,zIndex:m}),()=>{const A=s.spinner||s.svg,E=dn("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...A?{innerHTML:A}:{}},[dn("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=s.text?dn("p",{class:v.b("text")},[s.text]):void 0;return dn(tl,{name:v.b("fade"),onAfterLeave:a},{default:yn(()=>[Rr(he("div",{style:{backgroundColor:s.background||""},class:[v.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[dn("div",{class:v.b("spinner")},[E,x])]),[[Rs,s.visible]])])})}}}),c=Ls(u),f=c.mount(document.createElement("div"));return{...Zc(s),setText:r,removeElLoadingChild:o,close:l,handleAfterLeave:a,vm:f,get $el(){return f.$el}}}let pr;const Eo=function(e={}){if(!rn)return;const t=xy(e);if(t.fullscreen&&pr)return pr;const n=Ey({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(pr=void 0)}});Ay(t,t.parent,n),fc(t,t.parent,n),t.parent.vLoadingAddClassList=()=>fc(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),Rn(()=>n.visible.value=t.visible),t.fullscreen&&(pr=n),n},xy=e=>{var t,n,s,r;let i;return q(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},Ay=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=fs(document.body,"position"),n.originalOverflow.value=fs(document.body,"overflow"),r.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=fs(document.body,"position"),await Rn();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(fs(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=fs(t,"position");for(const[i,o]of Object.entries(r))n.$el.style[i]=o},fc=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ti(t,s.bm("parent","relative")):oc(t,s.bm("parent","relative")),e.fullscreen&&e.lock?oc(t,s.bm("parent","hidden")):ti(t,s.bm("parent","hidden"))},Er=Symbol("ElLoading"),dc=(e,t)=>{var n,s,r,i;const o=t.instance,l=d=>ce(t.value)?t.value[d]:void 0,a=d=>{const p=q(d)&&(o==null?void 0:o[d])||d;return p&&Se(p)},u=d=>a(l(d)||e.getAttribute(`element-loading-${He(d)}`)),c=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(s=l("target"))!=null?s:c?void 0:e,body:(r=l("body"))!=null?r:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[Er]={options:f,instance:Eo(f)}},Iy=(e,t)=>{for(const n of Object.keys(t))Ce(t[n])&&(t[n].value=e[n])},pc={mounted(e,t){t.value&&dc(e,t)},updated(e,t){const n=e[Er];t.oldValue!==t.value&&(t.value&&!t.oldValue?dc(e,t):t.value&&t.oldValue?ce(t.value)&&Iy(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Er])==null||t.instance.close(),e[Er]=null}},Oy={install(e){e.directive("loading",pc),e.config.globalProperties.$loading=Eo},directive:pc,service:Eo},Yd=["success","info","warning","error"],Ny=Nl({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:ry},id:{type:String,default:""},message:{type:Cs([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Cs(Function),default:()=>{}},onClose:{type:Cs(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Yd,""],default:""},zIndex:Number}),My={destroy:()=>!0},Py=Q({name:"ElNotification"}),Ry=Q({...Py,props:Ny,emits:My,setup(e,{expose:t}){const n=e,{ns:s,zIndex:r}=qd("notification"),{nextZIndex:i,currentZIndex:o}=r,{Close:l}=iy,a=Se(!1);let u;const c=pe(()=>{const h=n.type;return h&&lc[n.type]?s.m(h):""}),f=pe(()=>n.type&&lc[n.type]||n.icon),d=pe(()=>n.position.endsWith("right")?"right":"left"),p=pe(()=>n.position.startsWith("top")?"top":"bottom"),v=pe(()=>{var h;return{[p.value]:`${n.offset}px`,zIndex:(h=n.zIndex)!=null?h:o.value}});function m(){n.duration>0&&({stop:u}=lm(()=>{a.value&&E()},n.duration))}function A(){u==null||u()}function E(){a.value=!1}function x({code:h}){h===qi.delete||h===qi.backspace?A():h===qi.esc?a.value&&E():m()}return Ln(()=>{m(),i(),a.value=!0}),Cn(document,"keydown",x),t({visible:a,close:E}),(h,y)=>(Y(),Gt(tl,{name:fe(s).b("fade"),onBeforeLeave:h.onClose,onAfterLeave:S=>h.$emit("destroy"),persisted:""},{default:yn(()=>[Rr(K("div",{id:h.id,class:ct([fe(s).b(),h.customClass,fe(d)]),style:en(fe(v)),role:"alert",onMouseenter:A,onMouseleave:m,onClick:h.onClick},[fe(f)?(Y(),Gt(fe(To),{key:0,class:ct([fe(s).e("icon"),fe(c)])},{default:yn(()=>[(Y(),Gt(Tu(fe(f))))]),_:1},8,["class"])):yr("v-if",!0),K("div",{class:ct(fe(s).e("group"))},[K("h2",{class:ct(fe(s).e("title")),textContent:Ir(h.title)},null,10,["textContent"]),Rr(K("div",{class:ct(fe(s).e("content")),style:en(h.title?void 0:{margin:0})},[Wo(h.$slots,"default",{},()=>[h.dangerouslyUseHTMLString?(Y(),te(xe,{key:1},[yr(" Caution here, message could've been compromised, never use user's input as message "),K("p",{innerHTML:h.message},null,8,["innerHTML"])],2112)):(Y(),te("p",{key:0},Ir(h.message),1))])],6),[[Rs,h.message]]),h.showClose?(Y(),Gt(fe(To),{key:0,class:ct(fe(s).e("closeBtn")),onClick:Af(E,["stop"])},{default:yn(()=>[he(fe(l))]),_:1},8,["class","onClick"])):yr("v-if",!0)],2)],46,["id","onClick"]),[[Rs,a.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Ly=Gd(Ry,[["__file","notification.vue"]]);const si={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},xo=16;let ky=1;const ns=function(e={},t=null){if(!rn)return{close:()=>{}};(q(e)||ht(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;si[n].forEach(({vm:c})=>{var f;s+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+xo}),s+=xo;const r=`notification_${ky++}`,i=e.onClose,o={...e,offset:s,id:r,onClose:()=>{Dy(r,n,i)}};let l=document.body;rc(e.appendTo)?l=e.appendTo:q(e.appendTo)&&(l=document.querySelector(e.appendTo)),rc(l)||(l=document.body);const a=document.createElement("div"),u=he(Ly,o,ht(o.message)?{default:()=>o.message}:null);return u.appContext=t!=null?t:ns._context,u.props.onDestroy=()=>{zr(null,a)},zr(u,a),si[n].push({vm:u}),l.appendChild(a.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};Yd.forEach(e=>{ns[e]=(t={})=>((q(t)||ht(t))&&(t={message:t}),ns({...t,type:e}))});function Dy(e,t,n){const s=si[t],r=s.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(r===-1)return;const{vm:i}=s[r];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,l=t.split("-")[0];s.splice(r,1);const a=s.length;if(!(a<1))for(let u=r;u<a;u++){const{el:c,component:f}=s[u].vm,d=Number.parseInt(c.style[l],10)-o-xo;f.props.offset=d}}function $y(){for(const e of Object.values(si))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}ns.closeAll=$y;ns._context=null;const Fy=ly(ns,"$notify");const Vy=[G4,f4,I4,ey,T4,W4,c4,Z4,H4,Md,Ol,v4],js=Ls({});js.use(Oy);js.use(To);Vy.forEach(e=>{js.component(e.name,e)});function Jd(e){return typeof e!="string"||e===""?(console.error("The namespace must be a non-empty string."),!1):/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)?!0:(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}function Ml(e){return typeof e!="string"||e===""?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)?!0:(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}function hc(e,t){return function(s,r,i,o=10){const l=e[t];if(!Ml(s)||!Jd(r))return;if(typeof i!="function"){console.error("The hook callback must be a function.");return}if(typeof o!="number"){console.error("If specified, the hook priority must be a number.");return}const a={callback:i,priority:o,namespace:r};if(l[s]){const u=l[s].handlers;let c;for(c=u.length;c>0&&!(o>=u[c-1].priority);c--);c===u.length?u[c]=a:u.splice(c,0,a),l.__current.forEach(f=>{f.name===s&&f.currentIndex>=c&&f.currentIndex++})}else l[s]={handlers:[a],runs:0};s!=="hookAdded"&&e.doAction("hookAdded",s,r,i,o)}}function hr(e,t,n=!1){return function(r,i){const o=e[t];if(!Ml(r)||!n&&!Jd(i))return;if(!o[r])return 0;let l=0;if(n)l=o[r].handlers.length,o[r]={runs:o[r].runs,handlers:[]};else{const a=o[r].handlers;for(let u=a.length-1;u>=0;u--)a[u].namespace===i&&(a.splice(u,1),l++,o.__current.forEach(c=>{c.name===r&&c.currentIndex>=u&&c.currentIndex--}))}return r!=="hookRemoved"&&e.doAction("hookRemoved",r,i),l}}function gc(e,t){return function(s,r){const i=e[t];return typeof r<"u"?s in i&&i[s].handlers.some(o=>o.namespace===r):s in i}}function mc(e,t,n=!1){return function(r,...i){const o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;const l=o[r].handlers;if(!l||!l.length)return n?i[0]:void 0;const a={name:r,currentIndex:0};for(o.__current.push(a);a.currentIndex<l.length;){const c=l[a.currentIndex].callback.apply(null,i);n&&(i[0]=c),a.currentIndex++}if(o.__current.pop(),n)return i[0]}}function _c(e,t){return function(){var i;var s;const r=e[t];return(s=(i=r.__current[r.__current.length-1])==null?void 0:i.name)!==null&&s!==void 0?s:null}}function yc(e,t){return function(s){const r=e[t];return typeof s>"u"?typeof r.__current[0]<"u":r.__current[0]?s===r.__current[0].name:!1}}function vc(e,t){return function(s){const r=e[t];if(!!Ml(s))return r[s]&&r[s].runs?r[s].runs:0}}class Hy{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=hc(this,"actions"),this.addFilter=hc(this,"filters"),this.removeAction=hr(this,"actions"),this.removeFilter=hr(this,"filters"),this.hasAction=gc(this,"actions"),this.hasFilter=gc(this,"filters"),this.removeAllActions=hr(this,"actions",!0),this.removeAllFilters=hr(this,"filters",!0),this.doAction=mc(this,"actions"),this.applyFilters=mc(this,"filters",!0),this.currentAction=_c(this,"actions"),this.currentFilter=_c(this,"filters"),this.doingAction=yc(this,"actions"),this.doingFilter=yc(this,"filters"),this.didAction=vc(this,"actions"),this.didFilter=vc(this,"filters")}}function By(){return new Hy}const Uy=By(),{addAction:bc,addFilter:Sc,removeAction:Mv,removeFilter:Pv,hasAction:Rv,hasFilter:Lv,removeAllActions:wc,removeAllFilters:kv,doAction:Cc,applyFilters:Tc,currentAction:Dv,currentFilter:$v,doingAction:Fv,doingFilter:Vv,didAction:Hv,didFilter:Bv,actions:Uv,filters:jv}=Uy;class zv{constructor(){this.doAction=Cc,this.addFilter=Sc,this.addAction=bc,this.applyFilters=Tc,this.removeAllActions=wc,this.appVars=window.BuyMeCoffeeAdmin,this.app=this.extendVueConstructor()}extendVueConstructor(){const t=this;return js.mixin({methods:{addFilter:Sc,applyFilters:Tc,doAction:Cc,addAction:bc,removeAllActions:wc,ucFirst:t.ucFirst,ucWords:t.ucWords,slugify:t.slugify,$get:t.$get,$post:t.$post,$adminGet:t.$adminGet,$adminPost:t.$adminPost,$handleSuccess:t.handleSuccess,$handleError:t.handleError,$saveData:t.saveData,$getData:t.getData,convertToText:t.convertToText,$setTitle(n){document.title=n}}}),js}registerBlock(t,n,s){this.addFilter(t,this.appVars.slug,function(r){return r[n]=s,r})}registerTopMenu(t,n){!t||!n.name||!n.path||!n.component||(this.addFilter("buy_me_coffee_top_menus",this.appVars.slug,function(s){return s=s.filter(r=>r.route!==n.name),s.push({route:n.name,title:t}),s}),this.addFilter("buy_me_coffee_global_routes",this.appVars.slug,function(s){return s=s.filter(r=>r.name!==n.name),s.push(n),s}))}$publicAssets(t){return window.BuyMeCoffeeAdmin.assets_url+t}$get(t){return window.jQuery.get(window.BuyMeCoffeeAdmin.ajaxurl,t)}$adminGet(t){return t.action="buy-me-coffee_admin_ajax",window.jQuery.get(window.BuyMeCoffeeAdmin.ajaxurl,t)}$post(t){return window.jQuery.post(window.BuyMeCoffeeAdmin.ajaxurl,t)}$adminPost(t){return t.action="buy-me-coffee_admin_ajax",window.jQuery.post(window.BuyMeCoffeeAdmin.ajaxurl,t)}$getJSON(t){return window.jQuery.getJSON(window.BuyMeCoffeeAdmin.ajaxurl,t)}saveData(t,n){let s=window.localStorage.getItem("__buymecoffee_data");s?s=JSON.parse(s):s={},s[t]=n,window.localStorage.setItem("__buymecoffee_data",JSON.stringify(s))}getData(t,n=!1){let s=window.localStorage.getItem("__buymecoffee_data");return s=JSON.parse(s),s&&s[t]?s[t]:n}longLocalDateTime(t){return this.dateTimeFormat(t,"ddd, DD MMM, YYYY hh:mm:ssa")}ucFirst(t){return t[0].toUpperCase()+t.slice(1).toLowerCase()}ucWords(t){return(t+"").replace(/^(.)|\s+(.)/g,function(n){return n.toUpperCase()})}slugify(t){return t.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\\-]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}handleSuccess(t){Fy({type:"success",title:"Success",message:t,offset:32,dangerouslyUseHTMLString:!0})}handleError(t){t.responseJSON&&(t=t.responseJSON);let n="";typeof t=="string"?n=t:t&&t.message?n=t.message:n=this.convertToText(t),n||(n="Something is wrong!"),this.$notify({type:"error",title:"Error",message:n,offset:32,dangerouslyUseHTMLString:!0})}convertToText(t){const n=[];if(typeof t=="object"&&t.join===void 0)for(const s in t)n.push(this.convertToText(t[s]));else if(typeof t=="object"&&t.join!==void 0)for(const s in t)n.push(this.convertToText(t[s]));else typeof t=="function"||typeof t=="string"&&n.push(t);return n.join("<br />")}}export{Se as $,ay as A,zv as B,H as C,ht as D,pe as E,Z_ as F,Re as G,Et as H,fe as I,Ln as J,zu as K,rs as L,L_ as M,mi as N,s4 as O,Ce as P,Hd as Q,Xy as R,ts as S,fs as T,oc as U,Mc as V,ti as W,$d as X,Cs as Y,Jy as Z,$o as _,El as a,Ae as a$,Pe as a0,ce as a1,Od as a2,t4 as a3,Ei as a4,gy as a5,jy as a6,ot as a7,qi as a8,yu as a9,Gt as aA,Tu as aB,en as aC,Qo as aD,Ir as aE,yr as aF,K as aG,V2 as aH,Qy as aI,oy as aJ,xv as aK,ry as aL,c0 as aM,To as aN,el as aO,m4 as aP,Af as aQ,Tv as aR,ey as aS,fv as aT,Q_ as aU,Rr as aV,Rs as aW,tl as aX,gu as aY,xt as aZ,Qt as a_,Nl as aa,Yo as ab,Cn as ac,Rn as ad,Av as ae,Ov as af,Q as ag,vy as ah,Wo as ai,Iv as aj,rh as ak,_i as al,q as am,Ks as an,Zc as ao,Y as ap,te as aq,ct as ar,Gd as as,gi as at,qy as au,he as av,xe as aw,a0 as ax,zy as ay,yn as az,ei as b,dv as b$,gn as b0,rc as b1,my as b2,xh as b3,Ky as b4,Ws as b5,mu as b6,Wd as b7,L4 as b8,Zy as b9,nv as bA,_v as bB,Ev as bC,mv as bD,dp as bE,rv as bF,Oo as bG,zr as bH,sv as bI,Wy as bJ,Yy as bK,H4 as bL,qc as bM,qd as bN,lc as bO,Cv as bP,ly as bQ,Gc as bR,iv as bS,Sv as bT,hv as bU,uv as bV,yv as bW,bv as bX,pv as bY,wv as bZ,cv as b_,se as ba,nl as bb,sl as bc,Rd as bd,py as be,ae as bf,Zh as bg,Y2 as bh,ev as bi,dn as bj,iy as bk,Tr as bl,lm as bm,Qh as bn,Nv as bo,tm as bp,ri as bq,Yh as br,Jh as bs,jr as bt,jn as bu,Gy as bv,ov as bw,gv as bx,lv as by,tv as bz,l_ as c,vv as c0,Ld as c1,av as c2,sc as d,u_ as e,Um as f,Al as g,o_ as h,rn as i,Ed as j,Rm as k,Cd as l,Sm as m,xl as n,kn as o,xd as p,Ad as q,Tl as r,p_ as s,qm as t,Id as u,J_ as v,km as w,X_ as x,Nn as y,G as z};
  • buy-me-coffee/trunk/buy-me-coffee.php

    r3141609 r3200288  
    33/*
    44Plugin Name: Buy Me a Coffee button & widgets - Fundraise with Stripe and PayPal
    5 Plugin URI: http://www.wpminers.com/
     5Plugin URI: https://wpminers.com/buymecoffee/
    66Description: Easy way to collect donations like "buy me a coffee" directly your own Stripe and PayPal for free
    7 Version: 1.0.3
     7Version: 1.0.4
    88Author: wpminers
    99Author URI: http://www.wpminers.com/
     
    3535if (!defined('BUYMECOFFEE_VERSION')) {
    3636    define('BUYMECOFFEE_VERSION_LITE', true);
    37     define('BUYMECOFFEE_VERSION', '1.0.3');
     37    define('BUYMECOFFEE_VERSION', '1.0.4');
    3838    define('BUYMECOFFEE_MAIN_FILE', __FILE__);
    3939    define('BUYMECOFFEE_URL', plugin_dir_url(__FILE__));
  • buy-me-coffee/trunk/includes/Builder/Methods/BaseMethods.php

    r3044362 r3200288  
    3333
    3434        add_action('wp_ajax_nopriv_buymecoffee_payment_confirmation_'. $this->method, array($this, 'paymentConfirmation'));
     35
    3536        add_action('wp_ajax_buymecoffee_payment_confirmation_' . $this->method, array($this, 'paymentConfirmation'));
     37
     38        add_filter('buymecoffee/payment/get_transaction_url_' . $this->method, array($this, 'getTransactionUrl'), 10, 2);
    3639    }
    3740
     
    5457
    5558    abstract public function isEnabled();
     59
     60    abstract public function getTransactionUrl($url, $transaction);
    5661
    5762    public function getMode()
  • buy-me-coffee/trunk/includes/Builder/Methods/PayPal/PayPal.php

    r3046504 r3200288  
    212212    }
    213213
     214    public function getTransactionUrl($url, $transaction)
     215    {
     216        if ($transaction->payment_mode === 'test') {
     217            return 'https://www.sandbox.paypal.com/activity/payment/' . $transaction->charge_id;
     218        }
     219        return 'https://www.paypal.com/activity/payment/' . $transaction->charge_id;
     220    }
     221
    214222    public function updateStatus($data, $payment_id)
    215223    {
     
    333341        }
    334342
    335         $transaction = array(
    336             'charge_id' => $chargeId,
    337             'status' => 'paid-initially',
     343        $payment_intent = (new API())->verifyTransaction($chargeId);
     344
     345        if (!isset($payment_intent['status']) || $payment_intent['status'] != 'COMPLETED') {
     346            return;
     347        }
     348
     349        $purchaseUnit = ArrayHelper::get($payment_intent, 'purchase_units.0');
     350        $vendorChargeId = ArrayHelper::get($purchaseUnit, 'payments.captures.0.id', '');
     351        $amount = 100 * floatval(ArrayHelper::get($purchaseUnit, 'amount.value', 0));
     352        $mode = $this->getSettings('payment_mode');
     353
     354        $updateData = array(
     355            'charge_id' => sanitize_text_field($vendorChargeId),
     356            'payment_mode' => sanitize_text_field($mode),
     357            'payment_total' => $amount,
     358            'payment_note' => wp_json_encode($payment_intent),
     359            'status' => 'paid',
    338360            'updated_at' => current_time('mysql'),
    339361        );
    340362
    341363        $transactionId = buyMeCoffeeQuery()->table('buymecoffee_transactions')
    342             ->where('entry_hash', $hash)
    343             ->update($transaction);
     364            ->where('entry_hash', $hash)->update($updateData);
    344365
    345366        buyMeCoffeeQuery()->table('buymecoffee_supporters')
    346367            ->where('entry_hash', $hash)
    347             ->update(['payment_status' => 'paid-initially']);
     368            ->update([
     369                    'payment_total' => $amount,
     370                    'payment_status' => 'paid',
     371                    'payment_mode' => sanitize_text_field($mode),
     372                    'updated_at' => current_time('mysql')
     373            ]);
    348374
    349375        wp_send_json_success(array(
  • buy-me-coffee/trunk/includes/Builder/Methods/PayPal/PayPalSettings.php

    r3046504 r3200288  
    2727    }
    2828
     29    public static function getMode()
     30    {
     31        return static::get('payment_mode');
     32    }
     33
    2934    public static function getKeys($key = null)
    3035    {
    31         $settings = self::get();
     36        $settings = static::get();
    3237
    3338        if ($settings['payment_mode'] == 'test') {
  • buy-me-coffee/trunk/includes/Builder/Methods/Stripe/Stripe.php

    r3044362 r3200288  
    55use BuyMeCoffee\Builder\Methods\BaseMethods;
    66use BuyMeCoffee\Classes\Vite;
     7use BuyMeCoffee\Helpers\ArrayHelper;
    78use BuyMeCoffee\Helpers\PaymentHelper;
    89use BuyMeCoffee\Models\Supporters;
     
    3334        $supportersModel = new Supporters();
    3435        $supporter = $supportersModel->find($entryId);
     36        if (!$transaction || !$supporter) {
     37            wp_send_json_error([
     38                'status' => 'failed',
     39                'message' => __('Sorry no transaction created!', 'buy-me-coffee')
     40            ], 423);
     41        }
     42
    3543        $hash = $transaction->entry_hash;
    3644
     
    130138            'payment_method' => 'stripe'
    131139        ), home_url());
     140    }
     141
     142    public function getTransactionUrl($url, $transaction)
     143    {
     144        return 'https://dashboard.stripe.com/' . $transaction->payment_mode . '/payments/' . $transaction->charge_id;
    132145    }
    133146
  • buy-me-coffee/trunk/includes/Classes/AdminAjaxHandler.php

    r3048519 r3200288  
    5656            'get_supporter' => 'getSupporter',
    5757            'delete_supporter' => 'deleteSupporter',
    58             'update_payment_status' => 'updatePaymentStatus'
     58            'update_payment_status' => 'updatePaymentStatus',
     59            'status_report' => 'statusReport',
    5960
    6061        );
     62
    6163        if (isset($validRoutes[$route])) {
    6264            do_action('buy-me-coffee/doing_ajax_forms_' . $route);
     
    7375    }
    7476
     77    public function statusReport()
     78    {
     79        $report = (new Supporters())->statusReport();
     80        wp_send_json_success($report, 200);
     81    }
     82
    7583    public function updatePaymentStatus($request)
    7684    {
    7785        $id = intval($request['id']);
    7886        $status = sanitize_text_field($request['status']);
    79         $supporter = buyMeCoffeeQuery()->table('buymecoffee_supporters')->where('id', $id)->update(['payment_status' => $status]);
    80         if ($supporter) {
    81             wp_send_json_success($supporter, 200);
    82         }
     87        $supporter = (new Supporters())->getQuery()->where('id', $id)->update(['payment_status' => $status]);
     88        (new Transactions())->getQuery()->where('entry_id', $id)->update(['status' => $status]);
     89        wp_send_json_success($supporter, 200);
    8390    }
    8491
  • buy-me-coffee/trunk/includes/Classes/Menu.php

    r3044362 r3200288  
    5656            'admin.php?page=buy-me-coffee.php#/stripe',
    5757        );
     58//        $submenu['buy-me-coffee.php']['notifications'] = array(
     59//            __('Notifications', 'buy-me-coffee'),
     60//            $menuPermission,
     61//            'admin.php?page=buy-me-coffee.php#/notifications',
     62//        );
    5863    }
    5964
  • buy-me-coffee/trunk/includes/Classes/Vite.php

    r3044362 r3200288  
    1212    private string $viteHostProtocol = 'http://';
    1313    private string $viteHost = 'localhost';
    14     private string $vitePort = '2222';
     14    private string $vitePort = '3000';
    1515    private string $resourceDirectory = 'src/';
    1616    private array $moduleScripts = [];
  • buy-me-coffee/trunk/includes/Controllers/SubmissionHandler.php

    r3044362 r3200288  
    55use BuyMeCoffee\Helpers\ArrayHelper;
    66use BuyMeCoffee\Helpers\PaymentHelper;
     7use BuyMeCoffee\Models\Transactions;
    78
    89if (!defined('ABSPATH')) exit; // Exit if accessed directly
     
    7879        );
    7980
    80          $transactionTable = buyMeCoffeeQuery()->table('buymecoffee_transactions');
     81         $transactionTable = (new Transactions())->getQuery();
    8182         $transactionTable->insert($transaction);
    8283
  • buy-me-coffee/trunk/includes/Helpers/PaymentHelper.php

    r3044362 r3200288  
    2323    public function getByHash($hash)
    2424    {
    25         return Supporters::getByHash($hash);
     25        return (new Supporters())->getByHash($hash);
    2626    }
    2727
     
    4848
    4949        $status = Arr::get($response, 'status') === 'succeeded' ? 'paid' : 'pending';
    50 
     50        $card = Arr::get($response, 'charges.data.0.payment_method_details.card');
     51        $last4 = Arr::get($card, 'last4');
     52        $cardBand = Arr::get($card, 'brand');
    5153        $updateData = [
    5254            'status' => sanitize_text_field($status),
    5355            'charge_id' => sanitize_text_field($intentId),
    54             'payment_mode' => Arr::get($response, 'livemode') ? 'live' : 'test'
     56            'payment_mode' => Arr::get($response, 'livemode') ? 'live' : 'test',
     57            'payment_note' => json_encode($response),
     58            'card_last_4' => sanitize_text_field($last4),
     59            'card_brand' => sanitize_text_field($cardBand)
    5560        ];
    5661
  • buy-me-coffee/trunk/includes/Models/Supporters.php

    r3044362 r3200288  
    44
    55use BuyMeCoffee\Helpers\PaymentHelper;
     6use WpFluent\Exception;
     7use WpFluent\QueryBuilder\Transaction;
    68
    79if (!defined('ABSPATH')) exit; // Exit if accessed directly
    810
    9 class Supporters
     11class Supporters extends Model
    1012{
     13    protected $table = "buymecoffee_supporters";
    1114    public function index($args)
    1215    {
    1316        $offset = intval($args['page'] * $args['posts_per_page']);
    1417
    15         $query = buyMeCoffeeQuery()->table('buymecoffee_supporters')
     18        $query = $this->getQuery()
    1619            ->offset($offset)
    1720            ->limit($args['posts_per_page']);
    1821
    19         $total = $query->count();
    20         $lastPage = ceil($total / $args['posts_per_page']);
    21 
    22         // if top supporter filters add
    2322        if (isset($args['filter_top'])) {
    2423            $query->where('payment_status', 'paid')
     
    2625                ->orderBy('payment_total', 'DESC');
    2726
    28             $currencyTotalPending = buyMeCoffeeQuery()->table('buymecoffee_supporters')
     27            $currencyTotalPending = $this->getQuery()
    2928                ->groupBy('currency')
    3029                ->where('payment_status', 'pending')
    31                 ->select(buyMeCoffeeQuery()->raw('SUM(payment_total) as total_amount, currency'))
     30                ->select($this->raw('SUM(payment_total) as total_amount, currency'))
    3231                ->get();
    3332
     
    3938        }
    4039
     40        if (isset($args['filter_status']) && $args['filter_status'] !== 'all') {
     41            $query->where('payment_status', $args['filter_status']);
     42        }
     43
     44        if (!empty($args['search'])) {
     45            $query->where('supporters_name', 'LIKE', '%' . $args['search'] . '%')
     46                ->orWhere('supporters_email', 'LIKE', '%' . $args['search'] . '%')
     47                ->Where('payment_status', $args['filter_status']);
     48        }
     49
    4150        $supporters = $query->get();
    4251
     
    4554        }
    4655
    47         $count = buyMeCoffeeQuery()->table('buymecoffee_supporters')
    48             ->select(buyMeCoffeeQuery()->raw('SUM(coffee_count) as total_coffee'))
     56        $count = $this->getQuery()
     57            ->select($this->raw('SUM(coffee_count) as total_coffee'))
    4958            ->first();
    5059
    51         $currencyTotal = buyMeCoffeeQuery()->table('buymecoffee_supporters')
     60        $currencyTotal = $this->getQuery()
    5261            ->groupBy('currency')
    5362            ->where('payment_status', 'paid')
    5463            ->orWhere('payment_status', 'paid-initially')
    55             ->select(buyMeCoffeeQuery()->raw('SUM(payment_total) as total_amount, currency'))
     64            ->select($this->raw('SUM(payment_total) as total_amount, currency'))
    5665            ->get();
    5766
     
    5968            $currency->formatted_total = PaymentHelper::getFormattedAmount($currency->total_amount, $currency->currency);
    6069        }
     70        $total = $query->count();
     71        $lastPage = ceil($total / $args['posts_per_page']);
    6172
    6273        wp_send_json_success(
     
    7687    }
    7788
     89    public function statusReport()
     90    {
     91        $total = $this->getQuery()->count();
     92        $totalPaid = $this->getQuery()->where('payment_status', 'paid')->count();
     93        $totalPending = $this->getQuery()->where('payment_status', 'pending')->count();
     94        $totalFailed = $this->getQuery()->where('payment_status', 'failed')->count();
     95        $totalRefunded = $this->getQuery()->where('payment_status', 'refunded')->count();
     96
     97        wp_send_json_success(
     98            array(
     99                'total' => $total,
     100                'total_paid' => $totalPaid,
     101                'total_pending' => $totalPending,
     102                'total_refunded' => $totalRefunded,
     103                'total_failed' => $totalFailed,
     104            ),
     105            200
     106        );
     107    }
     108
    78109    public function updateData($entryId, $data)
    79110    {
    80         $supporters = buyMeCoffeeQuery()->table('buymecoffee_supporters')->where('id', $entryId)->update($data);
     111        $supporters = $this->getQuery()->where('id', $entryId)->update($data);
    81112        return $supporters;
    82113    }
     
    84115    public function find($id)
    85116    {
    86         $supporter = buyMeCoffeeQuery()->table('buymecoffee_supporters')
     117        $supporter = $this->getQuery()
    87118            ->where('buymecoffee_supporters.id', $id)
    88119            ->first();
    89120
    90         $transaction = buyMeCoffeeQuery()->table('buymecoffee_transactions')
    91             ->where('entry_id', $id)
    92             ->first();
    93 
    94         if ($supporter) {
    95             $supporter->transaction = $transaction;
    96         }
    97          return $supporter;
    98     }
    99 
    100     public static function getByHash($hash)
    101     {
    102         $supporter = buyMeCoffeeQuery()->table('buymecoffee_supporters')
     121        if (!$supporter) {
     122            throw new Exception(__('No supporters found!', 'buy-me-coffee'));
     123        }
     124
     125        //get transaction
     126        $supporter->transaction = (new Transactions())->getQuery()->where('entry_id', $supporter->id)->first();
     127
     128        if ($supporter->transaction) {
     129            $supporter->transaction->transaction_url = apply_filters('buymecoffee/payment/get_transaction_url_' . $supporter->transaction->payment_method, '',  $supporter->transaction);
     130        };
     131
     132        if (!empty($supporter->supporters_email)) {
     133            $otherDonations = $this->getQuery()
     134                ->where('supporters_email', $supporter->supporters_email)
     135                ->get();
     136        } else {
     137            $otherDonations = $this->getQuery()
     138                ->where('buymecoffee_supporters.id', $id)->get();
     139        }
     140
     141        $supporter->other_donations = $otherDonations;
     142
     143        $totalAmountPaid = 0;
     144        $totalAmountPending = 0;
     145        $totalCoffee = 0;
     146        foreach ($otherDonations as $value) {
     147            if (!$value) {
     148                continue;
     149            }
     150            if ($value->payment_status === 'paid') {
     151                $totalAmountPaid += floatval($value->payment_total);
     152            }else {
     153                $totalAmountPending += floatval($value->payment_total);
     154            }
     155            $totalCoffee +=  floatval($value->coffee_count);
     156        }
     157
     158        $supporter->all_time_total_paid = PaymentHelper::currencySymbol($supporter->currency) .' '. ($totalAmountPaid / 100);
     159        $supporter->all_time_total_pending = PaymentHelper::currencySymbol($supporter->currency) .' '. ($totalAmountPending / 100);
     160        $supporter->all_time_total_coffee = $totalCoffee;
     161
     162        return $supporter;
     163    }
     164
     165    public function getByHash($hash)
     166    {
     167        $supporter = $this->getQuery()
    103168            ->where('entry_hash', $hash)
    104169            ->first();
    105170
    106171        if ($supporter) {
    107             $transaction = buyMeCoffeeQuery()->table('buymecoffee_transactions')
     172            $transaction = (new Transactions())->getQuery()
    108173                ->where('entry_id', $supporter->id)
    109174                ->where('entry_hash', $hash)
     
    116181    public function getWeeklyRevenue()
    117182    {
    118         $revenue = buyMeCoffeeQuery()->table('buymecoffee_supporters')->select(
     183        $revenue = $this->getQuery()->select(
    119184            'currency',
    120185            'payment_status',
    121             buyMeCoffeeQuery()->raw('Date(created_at) as date'),
    122             buyMeCoffeeQuery()->raw("SUM(round(payment_total / 100, 2)) as total_paid"),
    123             buyMeCoffeeQuery()->raw("COUNT(*) as submissions")
     186            $this->raw('Date(created_at) as date'),
     187            $this->raw("SUM(round(payment_total / 100, 2)) as total_paid"),
     188            $this->raw("COUNT(*) as submissions")
    124189        )->whereIn('payment_status', ['paid'])
    125190            ->where('payment_total', '>', 0)
    126             ->groupBy([buyMeCoffeeQuery()->raw('Date(created_at)'), 'currency'])
     191            ->groupBy([$this->raw('Date(created_at)'), 'currency'])
    127192            ->orderBy('id', 'desc')
    128193            ->limit(50)
     
    164229    public function delete($id)
    165230    {
    166         $supporter = buyMeCoffeeQuery()->table('buymecoffee_supporters')->where('id', $id)->delete();
    167 
    168         return $supporter;
     231        return $this->getQuery()->where('id', $id)->delete();
    169232    }
    170233
  • buy-me-coffee/trunk/includes/Models/Transactions.php

    r3044362 r3200288  
    55if (!defined('ABSPATH')) exit; // Exit if accessed directly
    66
    7 class Transactions
     7class Transactions extends Model
    88{
     9    protected $table = "buymecoffee_transactions";
    910    public function updateData($id, $data)
    1011    {
    11         $supporters = buyMeCoffeeQuery()->table('buymecoffee_transactions')->where('id', $id)->update($data);
    12         return $supporters;
     12        return $this->getQuery()->where('id', $id)->update($data);
    1313    }
    1414
    1515    public function find($id, $column='id')
    1616    {
    17         $supporter = buyMeCoffeeQuery()->table('buymecoffee_transactions');
    18         if ($id) {
    19             $supporter = $supporter->where($column, $id);
    20         }
    21         return $supporter->first();
     17        return $this->getQuery()->where($column, $id)->first();
    2218    }
    2319
    2420    public function delete($id, $column='id')
    2521    {
    26         return buyMeCoffeeQuery()->table('buymecoffee_transactions')->where('entry_id', $id)->delete();
     22        return $this->getQuery()->where('entry_id', $id)->delete();
    2723    }
    2824
    2925    public function getByPaymentId($chargeId, $method = 'paypal')
    3026    {
    31         $payment = buyMeCoffeeQuery()->table('buymecoffee_transactions')
     27        $payment = $this->getQuery()
    3228            ->where('charge_id', $chargeId)
    3329            ->where('payment_method', $method)
  • buy-me-coffee/trunk/includes/views/templates/FormTemplate.php

    r3048531 r3200288  
    2929        if (isset($_REQUEST['buymecoffee_success']) && isset($_REQUEST['hash'])) {
    3030            $hash = sanitize_text_field($_REQUEST['hash']);
    31             $paymentData = \BuyMeCoffee\Models\Supporters::getByHash($hash);
     31            $paymentData = (new \BuyMeCoffee\Models\Supporters())->getByHash($hash);
    3232            include BUYMECOFFEE_DIR . 'includes/views/templates/Confirmation.php';
    3333        } else {
  • buy-me-coffee/trunk/readme.txt

    r3191903 r3200288  
    1 === Buy Me a Coffee donation button & widgets - Fundraise with Stripe and PayPal ===
     1=== Buy Me a Coffee button & widgets - Fundraise with Stripe and PayPal ===
    22Contributors: wpminers, hasanuzzamanshamim
    3 Tags: buy me a coffee, donations, payments, stripe payments, fundraise
     3Tags: buy me a coffee, donation, payments, stripe payments, fundraising
    44Requires at least: 4.5
    5 Tested up to: 6.7
    6 Stable tag: 1.0.3
     5Tested up to: 6.7.1
     6Stable tag: 1.0.4
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    2626You can accept donations from your visitors using a Stripe and PayPal donation button, Form, or template. Accept donations from your visitors using a shortcode or a widget.
    2727It Will be available using a popup or a page.
     28
     29What is the purpose for "Buy Me a Coffee" Plugin?
     30It's a Fundraising plugin with the most easy and flexible way for WordPress.
     31In the age of digital content creation, monetizing your efforts has never been more important. Whether you're a blogger, artist, musician, or other form of content creation, the ability to take donations can dramatically improve your financial stability and allow you to continue producing high-quality content. The Buy Me a Coffee Donation Button & Widgets plugin for WordPress makes it simple to convert visitors into supporters by easily receiving donations using PayPal Pro and Stripe gateway.
     32
     33The Buy Me a Coffee donation button and widgets plugin is a strong fundraising tool that enables authors to collect monetary donations from their audience without any charge.
     34
     35To include a contribution button on the WordPress website or blog, asking fans to show their appreciation for efforts with donations. This method is particularly effective at motivating tiny, generous contributions that can accumulate to a significant income over time.
     36
     37Key Features
     381. Seamless Integration with Stripe and PayPal
     39   One of the plugin's major features is its ability to interface with two of the most popular payment gateways: PayPal and Stripe. This provides your visitors with secure and familiar payment choices, resulting in a smooth transaction procedure.
     40
     41   PayPal Pro: Accept credit and debit card payments directly on your website, without redirecting people to another site, which improves the user experience.
     42
     43   Stripe: Stripe is always recommended for security and ease of use. It accepts multiple payment methods, making it simple for fans to donate using their favourite method.
     44
     452. Customizable Donation Buttons.
     46   Personalize your contribution button, and form easily even pages to match your requirements. You may easily change the colour, size, and create your own button to link it your own donation page.
     47
     483. Flexible Donation Options
     49   The Buy Me a Coffee plugin provides versatility by allowing you to select specified donation amounts or let users enter their own. This versatility is critical; some supporters may want to contribute more than the normal amount, while others may choose to offer a specified amount.
     50
     514. Widget Support
     52   There are some widgets to show buttons, forms and pages easily on your WordPress site using Gutenberg editor. Also, you may use shortcode for the old editors
     53
     545. Reporting and Analytics
     55   To get a clear report about recent donations and support no need to calculate manually. It is directly available on the dashboard.
     56
     57Why Take Donations Like Buy Me a Coffee?
     58To establish a stronger bond with the audience by promoting donations, supporters can feel more connected when they can donate financially.
     59
     60Buy Me a Coffee button & widgets plugin is easy to set up plugin for WordPress websites. Set it up and encourage people to support your work by letting them know about the donation option via blog posts, newsletters, or social media sharing the link to your own site.
     61
     62To make an effective fundraising with PayPal Pro and Stripe seamlessly and personalise donation experiences Buy Me a Coffee is the quickest solution ever.
     63
     64In addition to improving audience engagement, adding a contribution button to your website creates a steady stream of revenue that lets you keep doing what you love. Use the Buy Me a Coffee donation button and widgets to begin fundraising right now, and change the way you connect with your supporters without spending a single penny.
    2865
    2966You can accept donations from your visitors using custom amounts.
     
    761134. Buy me a coffee Preview
    771145. Stripe Payment settings
     1156. Customizer for default template
     1167. Filterable Donors/Supporters page
     1178. Donor/Supporters Profile page
    78118
    79119## Changelog
     120= 1.0.4 December 01, 2024=
     121- Adds PayPal Standard Payment on site confirmation
     122- Adds New Supporters/Donor profile page
     123- Adds Supporters table filter and search
     124- Fixes Styling issues
     125
    80126= 1.0.3 August 26, 2024=
    81 - Fixes styling issue
    82 - Fixes customizer module issue
    83 - Fixes checkout button issue
     127- Fixes Styling issue
     128- Fixes Customizer module issue
     129- Fixes Checkout button issue
    84130
    85131= 1.0.2 March 10, 2024=
    86132- Adds Realtime theme customizer
    87133
    88 = 1.0.1 March 7, 2024=
     134= 1.0.1 March 07, 2024=
    89135- Adds PayPal Pro Payment Gateway
    90136
    91 = 1.0.0 March 3, 2024=
     137= 1.0.0 March 03, 2024=
    92138- Initial release
    93139
Note: See TracChangeset for help on using the changeset viewer.