1import{H as E,b0 as P,d as O,b1 as j,ac as f,p as z,A as R,h as G,b2 as H,T as q,b3 as D,r as B,b4 as y,b5 as F,G as I,an as S,b6 as g,b7 as L,b8 as T,Q as K,b9 as M}from"./DbRu4O8w.js";function Q(e,s){let t;const o=B(!1),n=E({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(a){n.text=a}function c(){const a=n.parent,x=v.ns;if(!a.vLoadingAddClassList){let i=a.getAttribute("loading-number");i=Number.parseInt(i)-1,i?a.setAttribute("loading-number",i.toString()):(y(a,x.bm("parent","relative")),a.removeAttribute("loading-number")),y(a,x.bm("parent","hidden"))}d(),C.unmount()}function d(){v.$el?.parentNode?.removeChild(v.$el)}function m(){e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(l,400),n.visible=!1,e.closed?.())}function l(){if(!o.value)return;const a=n.parent;o.value=!1,a.vLoadingAddClassList=void 0,c()}const C=P(O({name:"ElLoading",setup(a,{expose:x}){const{ns:i,zIndex:N}=j("loading");return x({ns:i,zIndex:N}),()=>{const k=n.spinner||n.svg,_=f("svg",{class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"0 0 50 50",...k?{innerHTML:k}:{}},[f("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),V=n.text?f("p",{class:i.b("text")},[n.text]):void 0;return f(q,{name:i.b("fade"),onAfterLeave:l},{default:z(()=>[R(G("div",{style:{backgroundColor:n.background||""},class:[i.b("mask"),n.customClass,i.is("fullscreen",n.fullscreen)]},[f("div",{class:i.b("spinner")},[_,V])]),[[H,n.visible]])])})}}}));Object.assign(C._context,s??{});const v=C.mount(document.createElement("div"));return{...D(n),setText:r,removeElLoadingChild:d,close:m,handleAfterLeave:l,vm:v,get $el(){return v.$el}}}let p;const A=function(e={},s){if(!F)return;const t=Y(e);if(t.fullscreen&&p)return p;const o=Q({...t,closed:()=>{t.closed?.(),t.fullscreen&&(p=void 0)}},s??A._context);Z(t,t.parent,o),h(t,t.parent,o),t.parent.vLoadingAddClassList=()=>h(t,t.parent,o);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(o.$el),I(()=>o.visible.value=t.visible),t.fullscreen&&(p=o),o},Y=e=>{let s;return S(e.target)?s=document.querySelector(e.target)??document.body:s=e.target||document.body,{parent:s===document.body||e.body?document.body:s,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:s===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:s}},Z=async(e,s,t)=>{const{nextZIndex:o}=t.vm.zIndex||t.vm._.exposed.zIndex,n={};if(e.fullscreen)t.originalPosition.value=g(document.body,"position"),t.originalOverflow.value=g(document.body,"overflow"),n.zIndex=o();else if(e.parent===document.body){t.originalPosition.value=g(document.body,"position"),await I();for(const r of["top","left"]){const c=r==="top"?"scrollTop":"scrollLeft";n[r]=`${e.target.getBoundingClientRect()[r]+document.body[c]+document.documentElement[c]-Number.parseInt(g(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])n[r]=`${e.target.getBoundingClientRect()[r]}px`}else t.originalPosition.value=g(s,"position");for(const[r,c]of Object.entries(n))t.$el.style[r]=c},h=(e,s,t)=>{const o=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?y(s,o.bm("parent","relative")):L(s,o.bm("parent","relative")),e.fullscreen&&e.lock?L(s,o.bm("parent","hidden")):y(s,o.bm("parent","hidden"))};A._context=null;const b=Symbol("ElLoading"),u=e=>`element-loading-${M(e)}`,w=(e,s)=>{const t=s.instance,o=l=>T(s.value)?s.value[l]:void 0,n=l=>B(S(l)&&t?.[l]||l),r=l=>n(o(l)||e.getAttribute(u(l))),c=o("fullscreen")??s.modifiers.fullscreen,d={text:r("text"),svg:r("svg"),svgViewBox:r("svgViewBox"),spinner:r("spinner"),background:r("background"),customClass:r("customClass"),fullscreen:c,target:o("target")??(c?void 0:e),body:o("body")??s.modifiers.body,lock:o("lock")??s.modifiers.lock},m=A(d);m._context=$._context,e[b]={options:d,instance:m}},J=(e,s)=>{for(const t of Object.keys(e))K(e[t])&&(e[t].value=s[t])},$={mounted(e,s){s.value&&w(e,s)},updated(e,s){const t=e[b];if(!s.value){t?.instance.close(),e[b]=null;return}t?J(t.options,T(s.value)?s.value:{text:e.getAttribute(u("text")),svg:e.getAttribute(u("svg")),svgViewBox:e.getAttribute(u("svgViewBox")),spinner:e.getAttribute(u("spinner")),background:e.getAttribute(u("background")),customClass:e.getAttribute(u("customClass"))}):w(e,s)},unmounted(e){e[b]?.instance.close(),e[b]=null}};$._context=null;export{$ as v};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.