Files
kefu/deploy/knowledge-20260916-100045/payload/admin-web/apps/web-antd/dist/js/runtime-dom.esm-bundler-CirRHyjC.js
T
2026-09-21 10:34:06 +08:00

2 lines
24 KiB
JavaScript

import{An as e,B as t,Bn as n,C as r,Cn as i,D as a,Fn as o,Gn as s,Hn as c,Ht as l,In as u,Jn as d,Kn as f,L as p,Ln as m,Mn as ee,Nn as h,On as te,Ot as g,Pn as ne,Qn as _,R as v,Rn as y,Tt as b,Un as re,Vn as ie,Wn as x,Xn as S,Yn as C,at as ae,c as oe,ct as se,ft as ce,jn as w,k as le,kn as ue,n as de,o as fe,p as pe,pt as me,qn as he,rr as T,t as ge,tt as _e,vt as ve,x as ye,zn as be,zt as xe}from"./runtime-core.esm-bundler-DkysjgTd.js";var E=void 0,Se=typeof window<`u`&&window.trustedTypes;if(Se)try{E=Se.createPolicy(`vue`,{createHTML:e=>e})}catch(e){}var Ce=E?e=>E.createHTML(e):e=>e,we=`http://www.w3.org/2000/svg`,Te=`http://www.w3.org/1998/Math/MathML`,D=typeof document<`u`?document:null,Ee=D&&D.createElement(`template`),De={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?D.createElementNS(we,e):t===`mathml`?D.createElementNS(Te,e):n?D.createElement(e,{is:n}):D.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>D.createTextNode(e),createComment:e=>D.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>D.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Ee.innerHTML=Ce(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ee.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},O=`transition`,k=`animation`,A=Symbol(`_vtc`),Oe={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},ke=h({},de,Oe),Ae=(e=>(e.displayName=`Transition`,e.props=ke,e))((e,{slots:n})=>t(ge,Me(e),n)),j=(e,t=[])=>{y(e)?e.forEach(e=>e(...t)):e&&e(...t)},je=e=>e?y(e)?e.some(e=>e.length>1):e.length>1:!1;function Me(e){let t={};for(let n in e)n in Oe||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ne(i),ee=m&&m[0],te=m&&m[1],{onBeforeEnter:g,onEnter:ne,onEnterCancelled:_,onLeave:v,onLeaveCancelled:y,onBeforeAppear:b=g,onAppear:re=ne,onAppearCancelled:ie=_}=t,x=(e,t,n,r)=>{e._enterCancelled=r,N(e,t?u:s),N(e,t?l:o),n&&n()},S=(e,t)=>{e._isLeaving=!1,N(e,d),N(e,p),N(e,f),t&&t()},C=e=>(t,n)=>{let i=e?re:ne,o=()=>x(t,e,n);j(i,[t,o]),Fe(()=>{N(t,e?c:a),M(t,e?u:s),je(i)||Le(t,r,ee,o)})};return h(t,{onBeforeEnter(e){j(g,[e]),M(e,a),M(e,o)},onBeforeAppear(e){j(b,[e]),M(e,c),M(e,l)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>S(e,t);M(e,d),e._enterCancelled?(M(e,f),P(e)):(P(e),M(e,f)),Fe(()=>{e._isLeaving&&(N(e,d),M(e,p),je(v)||Le(e,r,te,n))}),j(v,[e,n])},onEnterCancelled(e){x(e,!1,void 0,!0),j(_,[e])},onAppearCancelled(e){x(e,!0,void 0,!0),j(ie,[e])},onLeaveCancelled(e){S(e),j(y,[e])}})}function Ne(e){if(e==null)return null;if(ie(e))return[Pe(e.enter),Pe(e.leave)];{let t=Pe(e);return[t,t]}}function Pe(e){return T(e)}function M(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[A]||(e[A]=new Set)).add(t)}function N(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[A];n&&(n.delete(t),n.size||(e[A]=void 0))}function Fe(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ie=0;function Le(e,t,n,r){let i=e._endId=++Ie,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Re(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Re(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${O}Delay`),a=r(`${O}Duration`),o=ze(i,a),s=r(`${k}Delay`),c=r(`${k}Duration`),l=ze(s,c),u=null,d=0,f=0;t===O?o>0&&(u=O,d=o,f=a.length):t===k?l>0&&(u=k,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?O:k:null,f=u?u===O?a.length:c.length:0);let p=u===O&&/\b(?:transform|all)(?:,|$)/.test(r(`${O}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function ze(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Be(t)+Be(e[n])))}function Be(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function P(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ve(e,t,n){let r=e[A];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var F=Symbol(`_vod`),I=Symbol(`_vsh`),He={name:`show`,beforeMount(e,{value:t},{transition:n}){e[F]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):L(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),L(e,!0),r.enter(e)):r.leave(e,()=>{L(e,!1)}):L(e,t))},beforeUnmount(e,{value:t}){L(e,t)}};function L(e,t){e.style.display=t?e[F]:`none`,e[I]=!t}function Ue(){He.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var We=Symbol(``);function Ge(t){let n=p();if(!n)return;let r=n.ut=(e=t(n.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${n.uid}"]`)).forEach(t=>z(t,e))},i=()=>{let e=t(n.proxy);n.ce?z(n.ce,e):R(n.subTree,e),r(e)};ae(()=>{ve(i)}),se(()=>{l(i,e,{flush:`post`});let t=new MutationObserver(i);t.observe(n.subTree.el.parentNode,{childList:!0}),ce(()=>t.disconnect())})}function R(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{R(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)z(e.el,t);else if(e.type===fe)e.children.forEach(e=>R(e,t));else if(e.type===oe){let{el:n,anchor:r}=e;for(;n&&(z(n,t),n!==r);)n=n.nextSibling}}function z(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=_(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[We]=r}}var Ke=/(?:^|;)\s*display\s*:/;function qe(e,t,n){let r=e.style,i=f(n),a=!1;if(n&&!i){if(t){if(f(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]==null&&B(r,t,``)}else for(let e in t)n[e]==null&&B(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?B(r,i,``):Qe(e,i,!f(t)&&t?t[i]:void 0,o)||B(r,i,o)}}else if(i){if(t!==n){let e=r[We];e&&(n+=`;`+e),r.cssText=n,a=Ke.test(n)}}else t&&e.removeAttribute(`style`);F in e&&(e[F]=a?r.display:``,e[I]&&(r.display=`none`))}var Je=/\s*!important$/;function B(e,t,n){if(y(n))n.forEach(n=>B(e,t,n));else if(n==null&&(n=``),t.startsWith(`--`))e.setProperty(t,n);else{let r=Ze(e,t);Je.test(n)?e.setProperty(o(r),n.replace(Je,``),`important`):e[r]=n}}var Ye=[`Webkit`,`Moz`,`ms`],Xe={};function Ze(e,t){let n=Xe[t];if(n)return n;let r=w(t);if(r!==`filter`&&r in e)return Xe[t]=r;r=ee(r);for(let n=0;n<Ye.length;n++){let i=Ye[n]+r;if(i in e)return Xe[t]=i}return t}function Qe(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&f(r)&&n===r}var $e=`http://www.w3.org/1999/xlink`;function et(e,t,n,r,i,a=s(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS($e,t.slice(6,t.length)):e.setAttributeNS($e,t,n):n==null||a&&!u(n)?e.removeAttribute(t):e.setAttribute(t,a?``:he(n)?String(n):n)}function tt(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ce(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=u(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(i||t)}function V(e,t,n,r){e.addEventListener(t,n,r)}function nt(e,t,n,r){e.removeEventListener(t,n,r)}var rt=Symbol(`_vei`);function it(e,t,n,r,i=null){let a=e[rt]||(e[rt]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=st(t);r?V(e,n,a[t]=ut(r,i),s):o&&(nt(e,n,o,s),a[t]=void 0)}}var at=/(Once|Passive|Capture)$/,ot=/^on:?(?:Once|Passive|Capture)$/;function st(e){let t,n;for(;(n=e.match(at))&&!ot.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):o(e.slice(2)),t]}var H=0,ct=Promise.resolve(),lt=()=>H||(ct.then(()=>H=0),H=Date.now());function ut(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(y(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&pe(e,t,5,a)}}else pe(r,t,5,[e])};return n.value=e,n.attached=lt(),n}var dt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ft=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?Ve(e,i,s):t===`style`?qe(e,r,i):c(t)?n(t)||it(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):pt(e,t,i,s))?(tt(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&et(e,t,i,s,o,t!==`value`)):e._isVueCE&&(mt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!f(i)))?tt(e,w(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),et(e,t,i,s))};function pt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&dt(t)&&be(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return dt(t)&&f(n)?!1:t in e}function mt(e,t){let n=e._def.props;if(!n)return!1;let r=w(t);return Array.isArray(n)?n.some(e=>w(e)===r):Object.keys(n).some(e=>w(e)===r)}var ht={};function gt(e,t,n){let r=le(e,t);re(r)&&(r=h({},r,t));class i extends yt{constructor(e){super(r,e,n)}}return i.def=r,i}var _t=((e,t)=>gt(e,t,$t)),vt=typeof HTMLElement<`u`?HTMLElement:class{},yt=class e extends vt{constructor(e,t={},n=Qt){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Qt?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(h({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,_e(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!y(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=T(this._props[e])),(i||(i=Object.create(null)))[w(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)ne(this,e)||Object.defineProperty(this,e,{get:()=>te(t[e])})}_resolveProps(e){let{props:t}=e,n=y(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(w))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):ht,r=w(e);t&&this._numberProps&&this._numberProps[r]&&(n=T(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ht?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(o(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(o(e),t+``):t||this.removeAttribute(o(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Xt(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=a(this._def,h(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,re(t[0])?h({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),o(e)!==e&&t(o(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function bt(e){let t=p();return t&&t.ce||null}function xt(){let e=bt();return e&&e.shadowRoot}function St(e=`$style`){{let t=p();if(!t)return ue;let n=t.type.__cssModules;return n&&n[e]||ue}}var Ct=new WeakMap,wt=new WeakMap,U=Symbol(`_moveCb`),Tt=Symbol(`_enterCb`),Et=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:h({},ke,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=p(),r=xe(),o,s;return me(()=>{if(!o.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!jt(o[0].el,n.vnode.el,t)){o=[];return}o.forEach(Dt),o.forEach(Ot);let r=o.filter(kt);P(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;M(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[U]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[U]=null,N(n,t))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let c=i(e),l=Me(c),u=c.tag||fe;if(o=[],s)for(let e=0;e<s.length;e++){let t=s[e];t.el&&t.el instanceof Element&&!t.el[I]&&(o.push(t),g(t,b(t,l,r,n)),Ct.set(t,At(t.el)))}s=t.default?v(t.default()):[];for(let e=0;e<s.length;e++){let t=s[e];t.key!=null&&g(t,b(t,l,r,n))}return a(u,null,s)}}});function Dt(e){let t=e.el;t[U]&&t[U](),t[Tt]&&t[Tt]()}function Ot(e){wt.set(e,At(e.el))}function kt(e){let t=Ct.get(e),n=wt.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function At(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function jt(e,t,n){let r=e.cloneNode(),i=e[A];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Re(r);return a.removeChild(r),o}var W=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return y(t)?e=>m(t,e):t};function Mt(e){e.target.composing=!0}function Nt(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var G=Symbol(`_assign`),K=Symbol(`_initialValue`);function q(e,t,n){return t&&(e=e.trim()),n&&(e=S(e)),e}var J={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[K]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[K]=e.defaultValue.replace(/\r\n?/g,`
`))),e[G]=W(i);let a=r||i.props&&i.props.type===`number`;V(e,t?`change`:`input`,t=>{t.target.composing||e[G](q(e.value,n,a))}),(n||a)&&V(e,`change`,()=>{e.value=q(e.value,n,a)}),t||(V(e,`compositionstart`,Mt),V(e,`compositionend`,Nt),V(e,`change`,Nt))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t==null?``:t,a=e[K];delete e[K],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[G](q(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[G]=W(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?S(e.value):e.value,c=t==null?``:t;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Y={deep:!0,created(e,t,n){e[G]=W(n),V(e,`change`,()=>{let t=e._modelValue,n=Z(e),r=e.checked,i=e[G];if(y(t)){let e=C(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(x(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Lt(e,r))})},mounted:Pt,beforeUpdate(e,t,n){e[G]=W(n),Pt(e,t,n)}};function Pt(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(y(t))i=C(t,r.props.value)>-1;else if(x(t))i=t.has(r.props.value);else{if(t===n)return;i=d(t,Lt(e,!0))}e.checked!==i&&(e.checked=i)}var X={created(e,{value:t},n){e.checked=d(t,n.props.value),e[G]=W(n),V(e,`change`,()=>{e[G](Z(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[G]=W(r),t!==n&&(e.checked=d(t,r.props.value))}},Ft={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,V(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?S(Z(e)):Z(e));e[G](e.multiple?x(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,_e(()=>{e._assigning=!1})}),e[G]=W(r)},mounted(e,{value:t}){It(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[G]=W(n)},updated(e,{value:t}){e._assigning||It(e,t)}};function It(e,t){let n=e.multiple,r=y(t);if(!(n&&!r&&!x(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Z(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):C(t,o)>-1}else a.selected=t.has(o)}else if(d(Z(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Z(e){return`_value`in e?e._value:e.value}function Lt(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Rt={created(e,t,n){Q(e,t,n,null,`created`)},mounted(e,t,n){Q(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Q(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Q(e,t,n,r,`updated`)}};function zt(e,t){switch(e){case`SELECT`:return Ft;case`TEXTAREA`:return J;default:switch(t){case`checkbox`:return Y;case`radio`:return X;default:return J}}}function Q(e,t,n,r,i){let a=zt(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Bt(){J.getSSRProps=({value:e})=>({value:e}),X.getSSRProps=({value:e},t)=>{if(t.props&&d(t.props.value,e))return{checked:!0}},Y.getSSRProps=({value:e},t)=>{if(y(e)){if(t.props&&C(e,t.props.value)>-1)return{checked:!0}}else if(x(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Rt.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=zt(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Vt=[`ctrl`,`shift`,`alt`,`meta`],Ht={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)=>Vt.some(n=>e[`${n}Key`]&&!t.includes(n))},Ut=(e,t)=>{if(!e)return e;let n=e._withMods||(e._withMods={}),r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ht[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Wt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Gt=(e,t)=>{let n=e._withKeys||(e._withKeys={}),r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=o(n.key);if(t.some(e=>e===r||Wt[e]===r))return e(n)}))},Kt=h({patchProp:ft},De),$,qt=!1;function Jt(){return $||($=r(Kt))}function Yt(){return $=qt?$:ye(Kt),qt=!0,$}var Xt=((...e)=>{Jt().render(...e)}),Zt=((...e)=>{Yt().hydrate(...e)}),Qt=((...e)=>{let t=Jt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=tn(e);if(!r)return;let i=t._component;!be(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,en(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),$t=((...e)=>{let t=Yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=tn(e);if(t)return n(t,!0,en(t))},t});function en(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function tn(e){return f(e)?document.querySelector(e):e}var nn=!1,rn=()=>{nn||(nn=!0,Bt(),Ue())};export{Gt as C,He as S,Y as _,$t as a,Ft as b,Zt as c,ft as d,Xt as f,xt as g,bt as h,Qt as i,rn as l,Ge as m,Et as n,gt as o,St as p,yt as r,_t as s,Ae as t,De as u,Rt as v,Ut as w,J as x,X as y};