使用PHP开发的简约导航/书签管理系统。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
239 KiB

2 years ago
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function ei(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function $t(e){if(ue(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ce(r)?Wf(r):$t(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(Ce(e))return e;if(ke(e))return e}}const Uf=/;(?![^(]*\))/g,Kf=/:([^]+)/,Vf=/\/\*.*?\*\//gs;function Wf(e){const t={};return e.replace(Vf,"").split(Uf).forEach(n=>{if(n){const r=n.split(Kf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ce(e){let t="";if(Ce(e))t=e;else if(ue(e))for(let n=0;n<e.length;n++){const r=ce(e[n]);r&&(t+=r+" ")}else if(ke(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const qf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Jf=ei(qf);function ql(e){return!!e||e===""}const Ve=e=>Ce(e)?e:e==null?"":ue(e)||ke(e)&&(e.toString===Yl||!fe(e.toString))?JSON.stringify(e,Jl,2):String(e),Jl=(e,t)=>t&&t.__v_isRef?Jl(e,t.value):Qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Ql(t)?{[`Set(${t.size})`]:[...t.values()]}:ke(t)&&!ue(t)&&!Gl(t)?String(t):t,Ie={},Jn=[],tt=()=>{},Qf=()=>!1,Zf=/^on[^a-z]/,Po=e=>Zf.test(e),ti=e=>e.startsWith("onUpdate:"),Ye=Object.assign,ni=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Yf=Object.prototype.hasOwnProperty,xe=(e,t)=>Yf.call(e,t),ue=Array.isArray,Qn=e=>Ro(e)==="[object Map]",Ql=e=>Ro(e)==="[object Set]",fe=e=>typeof e=="function",Ce=e=>typeof e=="string",ri=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Zl=e=>ke(e)&&fe(e.then)&&fe(e.catch),Yl=Object.prototype.toString,Ro=e=>Yl.call(e),Gf=e=>Ro(e).slice(8,-1),Gl=e=>Ro(e)==="[object Object]",oi=e=>Ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,co=ei(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ao=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xf=/-(\w)/g,zt=Ao(e=>e.replace(Xf,(t,n)=>n?n.toUpperCase():"")),ed=/\B([A-Z])/g,Fn=Ao(e=>e.replace(ed,"-$1").toLowerCase()),$o=Ao(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Ao(e=>e?`on${$o(e)}`:""),$r=(e,t)=>!Object.is(e,t),ts=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},_o=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},si=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let oa;const td=()=>oa||(oa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let dt;class Xl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=dt,!t&&dt&&(this.index=(dt.scopes||(dt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=dt;try{return dt=this,t()}finally{dt=n}}}on(){dt=this}off(){dt=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 o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this.active=!1}}}function ec(e){return new Xl(e)}function nd(e,t=dt){t&&t.active&&t.effects.push(e)}function rd(){return dt}function od(e){dt&&dt.cleanups.push(e)}const ii=e=>{const t=new Set(e);return t.w=0,t.n=0,t},tc=e=>(e.w&bn
* pinia v2.0.23
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/let Xc;const Do=e=>Xc=e,eu=Symbol();function Ls(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Tr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Tr||(Tr={}));function bh(){const e=ec(!0),t=e.run(()=>ee({}));let n=[],r=[];const o=Gn({install(s){Do(o),o._a=s,s.provide(eu,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!yh?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const tu=()=>{};function ja(e,t,n,r=tu){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ct()&&Fo(o),o}function zn(e,...t){e.slice().forEach(n=>{n(...t)})}function Fs(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ls(o)&&Ls(r)&&e.hasOwnProperty(n)&&!De(r)&&!vn(r)?e[n]=Fs(o,r):e[n]=r}return e}const _h=Symbol();function wh(e){return!Ls(e)||!e.hasOwnProperty(_h)}const{assign:fn}=Object;function Eh(e){return!!(De(e)&&e.effect)}function xh(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const u=vc(n.state.value[e]);return fn(u,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gn(L(()=>{Do(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=nu(e,c,t,n,r,!0),l.$reset=function(){const f=o?o():{};this.$patch(d=>{fn(d,f)})},l}function nu(e,t,n={},r,o,s){let i;const a=fn({actions:{}},n),l={deep:!0};let c,u,f=Gn([]),d=Gn([]),h;const p=r.state.value[e];!s&&!p&&(r.state.value[e]={}),ee({});let g;function w(A){let R;c=u=!1,typeof A=="function"?(A(r.state.value[e]),R={type:Tr.patchFunction,storeId:e,events:h}):(Fs(r.state.value[e],A),R={type:Tr.patchObject,payload:A,storeId:e,events:h});const V=g=Symbol();yt().then(()=>{g===V&&(c=!0)}),u=!0,zn(f,R,r.state.value[e])}const y=tu;function x(){i.stop(),f=[],d=[],r._s.delete(e)}function T(A,R){return function(){Do(r);const V=Array.from(arguments),I=[],F=[];function S(G){I.push(G)}function B(G){F.push(G)}zn(d,{args:V,name:A,store:j,after:S,onError:B});let U;try{U=R.apply(this&&this.$id===e?this:j,V)}catch(G){throw zn(F,G),G}return U instanceof Promise?U.then(G=>(zn(I,G),G)).catch(G=>(zn(F,G),Promise.reject(G))):(zn(I,U),U)}}const E={_p:r,$id:e,$onAction:ja.bind(null,d),$patch:w,$reset:y,$subscribe(A,R={}){const V=ja(f,A,R.detached,()=>I()),I=i.run(()=>ye(()=>r.state.value[e],F=>{(R.flush==="sync"?u:c)&&A({storeId:e,type:Tr.direct,events:h},F)},fn({},l,R)));return V},$dispose:x},j=Kt(E);r._s.set(e,j);const H=r._e.run(()=>(i=ec(),i.run(()=>t())));for(const A in H){const R=H[A];if(De(R)&&!Eh(R)||vn(R))s||(p&&wh(R)&&(De(R)?R.value=p[A]:Fs(R,p[A])),r.state.value[e][A]=R);else if(typeof R=="function"){const V=T(A,R);H[A]=V,a.actions[A]=R}}return fn(j,H),fn(Te(j),H),Object.defineProperty(j,"$state",{get:()=>r.state.value[e],set:A=>{w(R=>{fn(R,A)})}}),r._p.forEach(A=>{fn(j,i.run(()=>A({store:j,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(j.$state,p),c=!0,u=!0,j}function ru(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function i(a,l){const c=ct();return a=a||c&&Se(eu),a&&Do(a),a=Xc,a._s.has(r)||(s?nu(r,t,o,a):xh(r,o,a)),a._s.get(r)}return i.$id=r,i}function ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:su}=Object.prototype,{getPrototypeOf:xi}=Object,Ci=(e=>t=>{const n=su.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tn=e=>(e=e.toLowerCase(),t=>Ci(t)===e),zo=e=>t=>typeof t===e,{isArray:Kr}=Array,js=zo("undefined");function Ch(e){return e!==null&&!js(e)&&e.constructor!==null&&!js(e.constructor)&&dr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iu=tn("ArrayBuffer");function Sh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iu(e.buffer),t}const Oh=zo("string"),dr=zo("function"),au=zo("number"),lu=e=>e!==null&&typeof e=="object",T
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&mm[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ka=Symbol("internals"),yu=Symbol("defaults");function wr(e){return e&&String(e).trim().toLowerCase()}function mo(e){return e===!1||e==null?e:$.isArray(e)?e.map(mo):String(e)}function vm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function Va(e,t,n,r){if($.isFunction(r))return r.call(this,t,n);if(!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function ym(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bm(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}function vr(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}function _t(e,t){e&&this.set(e),this[yu]=t||null}Object.assign(_t.prototype,{set:function(e,t,n){const r=this;function o(s,i,a){const l=wr(i);if(!l)throw new Error("header name must be a non-empty string");const c=vr(r,l);c&&a!==!0&&(r[c]===!1||a===!1)||(r[c||i]=mo(s))}return $.isPlainObject(e)?$.forEach(e,(s,i)=>{o(s,i,t)}):o(t,e,n),this},get:function(e,t){if(e=wr(e),!e)return;const n=vr(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return vm(r);if($.isFunction(t))return t.call(this,r,n);if($.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=wr(e),e){const n=vr(this,e);return!!(n&&(!t||Va(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function o(s){if(s=wr(s),s){const i=vr(n,s);i&&(!t||Va(n,n[i],i,t))&&(delete n[i],r=!0)}}return $.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return $.forEach(this,(r,o)=>{const s=vr(n,o);if(s){t[s]=mo(r),delete t[o];return}const i=e?ym(o):String(o).trim();i!==o&&delete t[o],t[i]=mo(r),n[i]=!0}),this},toJSON:function(e){const t=Object.create(null);return $.forEach(Object.assign({},this[yu]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&$.isArray(n)?n.join(", "):n)}),t}});Object.assign(_t,{from:function(e){return $.isString(e)?new this(gm(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[Ka]=this[Ka]={accessors:{}}).accessors,r=this.prototype;function o(s){const i=wr(s);n[i]||(bm(r,s),n[i]=!0)}return $.isArray(e)?e.forEach(o):o(e),this}});_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);$.freezeMethods(_t.prototype);$.freezeMethods(_t);function _m(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function Wa(e,t){let n=0;const r=_m(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),c=s<=i;n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-s)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function qa(e){return new Promise(function(n,r){let o=e.data;const s=_t.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(o)&&Zt.isStandardBrowserEnv&&s.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(h+":"+p))}const u=vu(e.baseURL,e.url);c.open(e.method.toUpperCase(),hu(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const h=_t.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={
2 years ago
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
2 years ago
*/const Vn=typeof window<"u";function Rm(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const $e=Object.assign;function fs(e,t){const n={};for(const r in t){const o=t[r];n[r]=At(o)?o.map(e):e(o)}return n}const kr=()=>{},At=Array.isArray,Am=/\/$/,$m=e=>e.replace(Am,"");function ds(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Bm(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Mm(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ga(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Im(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&er(t.matched[r],n.matched[o])&&xu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function er(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Nm(e[n],t[n]))return!1;return!0}function Nm(e,t){return At(e)?Xa(e,t):At(t)?Xa(t,e):e===t}function Xa(e,t){return At(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Bm(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s<r.length;s++)if(i=r[s],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var jr;(function(e){e.pop="pop",e.push="push"})(jr||(jr={}));var Pr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pr||(Pr={}));function Lm(e){if(!e)if(Vn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$m(e)}const Fm=/^[^#]+#/;function jm(e,t){return e.replace(Fm,"#")+t}function Hm(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Wo=()=>({left:window.pageXOffset,top:window.pageYOffset});function Dm(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Hm(o,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 el(e,t){return(history.state?history.state.position-t:-1)+e}const Us=new Map;function zm(e,t){Us.set(e,t)}function Um(e){const t=Us.get(e);return Us.delete(e),t}let Km=()=>location.protocol+"//"+location.host;function Cu(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Ga(l,"")}return Ga(n,e)+r+o}function Vm(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=Cu(e,location),p=n.value,g=t.value;let w=0;if(d){if(n.value=h,t.value=d,i&&i===p){i=null;return}w=g?d.position-g.position:0}else r(h);o.forEach(y=>{y(n.value,p,{delta:w,type:jr.pop,direction:w?w>0?Pr.forward:Pr.back:Pr.unknown})})};function l(){i=n.value}function c(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return s.push(h),h}function u(){const{history:d}=window;!d.state||d.replaceState($e({},d.state,{scroll:Wo()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:f}}function tl(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Wo():null}}function Wm(e){const{history:t,location:n}=window,r={value:Cu(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.ind
2 years ago
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
2 years ago
`,Cy=["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 Sy(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Cy.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function Cl(e,t=1,n){var r;St||(St=document.createElement("textarea"),document.body.appendChild(St));const{paddingSize:o,borderSize:s,boxSizing:i,contextStyle:a}=Sy(e);St.setAttribute("style",`${a};${xy}`),St.value=e.value||e.placeholder||"";let l=St.scrollHeight;const c={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-o),St.value="";const u=St.scrollHeight-o;if(wn(t)){let f=u*t;i==="border-box"&&(f=f+o+s),l=Math.max(f,l),c.minHeight=`${f}px`}if(wn(n)){let f=u*n;i==="border-box"&&(f=f+o+s),l=Math.min(f,l)}return c.height=`${l}px`,(r=St.parentNode)==null||r.removeChild(St),St=void 0,c}const Oy=Be({id:{type:String,default:void 0},size:Bi,disabled:Boolean,modelValue:{type:he([String,Number,Object]),default:""},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:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Rt},prefixIcon:{type:Rt},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:he([Object,Array,String]),default:()=>pn({})}}),Ty={[Qs]:e=>Ce(e),input:e=>Ce(e),change:e=>Ce(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},ky=["role"],Py=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Ry=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Ay=ae({name:"ElInput",inheritAttrs:!1}),$y=ae({...Ay,props:Oy,emits:Ty,setup(e,{expose:t,emit:n}){const r=e,o=jp(),s=Jc(),i=L(()=>{const _={};return r.containerRole==="combobox"&&(_["aria-haspopup"]=o["aria-haspopup"],_["aria-owns"]=o["aria-owns"],_["aria-expanded"]=o["aria-expanded"]),_}),a=G0({excludeKeys:L(()=>Object.keys(i.value))}),{form:l,formItem:c}=tf(),{inputId:u}=sy(r,{formItemContext:c}),f=Xu(),d=Li(),h=Re("input"),p=Re("textarea"),g=fo(),w=fo(),y=ee(!1),x=ee(!1),T=ee(!1),E=ee(!1),j=ee(),H=fo(r.inputStyle),A=L(()=>g.value||w.value),R=L(()=>{var _;return(_=l==null?void 0:l.statusIcon)!=null?_:!1}),V=L(()=>(c==null?void 0:c.validateState)||""),I=L(()=>V.value&&V0[V.value]),F=L(()=>E.value?L0:Hv),S=L(()=>[o.style,r.inputStyle]),B=L(()=>[r.inputStyle,H.value,{resize:r.resize}]),U=L(()=>Jo(r.modelValue)?"":String(r.modelValue)),G=L(()=>r.clearable&&!d.value&&!r.readonly&&!!U.value&&(y.value||x.value)),X=L(()=>r.showPassword&&!d.value&&!r.readonly&&!!U.value&&(!!U.value||y.value)),J=L(()=>r.showWordLimit&&!!a.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!d.value&&!r.readonly&&!r.showPassword),ie=L(()=>Array.from(U.value).length),le=L(()=>!!J.value&&ie.value>Number(a.value.maxlength)),Ee=L(()=>!!s.suffix||!!r.suffixIcon||G.value||r.showPassword||J.value||!!V.value&&R.value),[_e,Fe]=yy(g);$i(w,_=>{if(!J.value||r.resize!=="both")return;const O=_[0],{width:re}=O.contentRect;j.va