IOTConnect-Web/node_modules/vue/dist/vue.esm-browser.prod.js

12 lines
147 KiB
JavaScript
Raw Permalink Normal View History

2024-05-09 01:49:52 +00:00
/**
* vue v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const t={},n=[],s=()=>{},o=()=>!1,r=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),l=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},a=Object.prototype.hasOwnProperty,u=(e,t)=>a.call(e,t),d=Array.isArray,p=e=>"[object Map]"===S(e),h=e=>"[object Set]"===S(e),f=e=>"[object Date]"===S(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,v=e=>"symbol"==typeof e,y=e=>null!==e&&"object"==typeof e,b=e=>(y(e)||m(e))&&m(e.then)&&m(e.catch),_=Object.prototype.toString,S=e=>_.call(e),x=e=>S(e).slice(8,-1),C=e=>"[object Object]"===S(e),k=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),w=e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),E=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},N=/-(\w)/g,A=E((e=>e.replace(N,((e,t)=>t?t.toUpperCase():"")))),I=/\B([A-Z])/g,R=E((e=>e.replace(I,"-$1").toLowerCase())),O=E((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=E((e=>e?`on${O(e)}`:"")),F=(e,t)=>!Object.is(e,t),M=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},P=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$=e=>{const t=parseFloat(e);return isNaN(t)?e:t},B=e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const D=()=>V||(V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),U=e("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");function j(e){if(d(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=g(s)?z(s):j(s);if(o)for(const e in o)t[e]=o[e]}return t}if(g(e)||y(e))return e}const H=/;(?![^(]*\))/g,q=/:([^]+)/,W=/\/\*[^]*?\*\//g;function z(e){const t={};return e.replace(W,"").split(H).forEach((e=>{if(e){const n=e.split(q);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function K(e){let t="";if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){const s=K(e[n]);s&&(t+=s+" ")}else if(y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function G(e){if(!e)return null;let{class:t,style:n}=e;return t&&!g(t)&&(e.class=K(t)),n&&(e.style=j(n)),e}const J=e("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"),X=e("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"),Q=e("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
/*! #__NO_SIDE_EFFECTS__ */function ws(e,t){return m(e)?(()=>l({name:e.name},t,{setup:e}))():e}const Es=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function Ns(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,timeout:r,suspensible:i=!0,onError:l}=e;let c,a=null,u=0;const d=()=>{let e;return a||(e=a=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,a=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==a&&a?a:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return ws({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=ni;if(c)return()=>As(c,e);const t=t=>{a=null,rn(t,e,13,!s)};if(i&&e.suspense)return d().then((t=>()=>As(t,e))).catch((e=>(t(e),()=>s?Hr(s,{error:e}):null)));const l=$t(!1),u=$t(),p=$t(!!o);return o&&setTimeout((()=>{p.value=!1}),o),null!=r&&setTimeout((()=>{if(!l.value&&!u.value){const e=new Error(`Async component timed out after ${r}ms.`);t(e),u.value=e}}),r),d().then((()=>{l.value=!0,e.parent&&Is(e.parent.vnode)&&(e.parent.effect.dirty=!0,vn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>l.value&&c?As(c,e):u.value&&s?Hr(s,{error:u.value}):n&&!p.value?Hr(n):void 0}})}function As(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,i=Hr(e,s,o);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const Is=e=>e.type.__isKeepAlive,Rs={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=si(),s=n.ctx,o=new Map,r=new Set;let i=null;const l=n.suspense,{renderer:{p:c,m:a,um:u,o:{createElement:d}}}=s,p=d("div");function h(e){$s(e),u(e,n,l,!0)}function f(e){o.forEach(((t,n)=>{const s=yi(t.type);!s||e&&e(s)||m(n)}))}function m(e){const t=o.get(e);i&&$r(t,i)?i&&$s(i):h(t),o.delete(e),r.delete(e)}s.activate=(e,t,n,s,o)=>{const r=e.component;a(e,t,n,0,l),c(r.vnode,e,t,n,r,l,s,e.slotScopeIds,o),lr((()=>{r.isDeactivated=!1,r.a&&M(r.a);const t=e.props&&e.props.onVnodeMounted;t&&Yr(t,r.parent,e)}),l)},s.deactivate=e=>{const t=e.component;a(e,p,null,1,l),lr((()=>{t.da&&M(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Yr(n,t.parent,e),t.isDeactivated=!0}),l)},ls((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>Os(e,t))),t&&f((e=>!Os(t,e)))}),{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&o.set(g,Bs(n.subTree))};return js(v),qs(v),Ws((()=>{o.forEach((e=>{const{subTree:t,suspense:s}=n,o=Bs(t);if(e.type!==o.type||e.key!==o.key)h(e);else{$s(o);const e=o.component.da;e&&lr(e,s)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),s=n[0];if(n.length>1)return i=null,n;if(!(Pr(s)&&(4&s.shapeFlag||128&s.shapeFlag)))return i=null,s;let l=Bs(s);const c=l.type,a=yi(Es(l)?l.type.__asyncResolved||{}:c),{include:u,exclude:d,max:p}=e;if(u&&(!a||!Os(u,a))||d&&a&&Os(d,a))return i=l,s;const h=null==l.key?c:l.key,f=o.get(h);return l.el&&(l=Wr(l),128&s.shapeFlag&&(s.ssContent=l)),g=h,f?(l.el=f.el,l.component=f.component,l.transition&&ks(l,l.transition),l.shapeFlag|=512,r.delete(h),r.add(h)):(r.add(h),p&&r.size>parseInt(p,10)&&m(r.values().next().value)),l.shapeFlag|=256,i=l,Kn(s.type)?s:l}}};function Os(e,t){return d(e)?e.some((e=>Os(e,t))):g(e)?e.split(",").includes(t):"[object RegExp]"===S(e)&&e.test(t)}function Ls(e,t){Ms(e,"a",t)}function Fs(e,t){Ms(e,"da",t)}function Ms(e,t,n=ni){const s=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Vs(t,s,n),n){let e=n.parent;for(;e&&e.parent;)Is(e.parent.vnode)&&Ps(s,t,n,e),e=e.parent}}function Ps(e,t,n,s){const o=Vs(t,e,s,!0);zs((()=>{c(s[t],o)}),n)}function $s(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Bs(e){return 128&e.shapeFlag?e.ssContent:e}function Vs(e,t,n=ni,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Ce();const o=ii(n),r=on(t,n,e,s);return o(),ke(),r});return s?o.unshift(r):o.push(r),r}}const Ds=e=>(t,n=ni)=>(!di||"sp"===e)&&Vs(e,((...e)=>t(...e)),n),Us=Ds("bm"),js=Ds("m"),Hs=Ds("bu"),qs=Ds("u"),Ws=Ds("bum"),zs=Ds("um"),Ks=Ds("sp"),Gs=Ds("rtg"),Js=Ds("rtc");function Xs(e,t=ni){Vs("ec",e,t)}function Qs(e,t,n,s){let o;const r=n&&n[s];if(d(e)|
/*! #__NO_SIDE_EFFECTS__ */
function kl(e,t){const n=ws(e);class s extends El{constructor(e){super(n,e,t)}}return s.def=n,s}
/*! #__NO_SIDE_EFFECTS__ */const Tl=e=>kl(e,ac),wl="undefined"!=typeof HTMLElement?HTMLElement:class{};class El extends wl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(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,this._ob&&(this._ob.disconnect(),this._ob=null),gn((()=>{this._connected||(cc(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:s}=e;let o;if(n&&!d(n))for(const r in n){const e=n[r];(e===Number||e&&e.type===Number)&&(r in this._props&&(this._props[r]=B(this._props[r])),(o||(o=Object.create(null)))[A(r)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(s),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=d(t)?t:Object.keys(t||{});for(const s of Object.keys(this))"_"!==s[0]&&n.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of n.map(A))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(e){this._setProp(s,e)}})}_setAttr(e){let t=this.getAttribute(e);const n=A(e);this._numberProps&&this._numberProps[n]&&(t=B(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,s=!0){t!==this._props[e]&&(this._props[e]=t,s&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){cc(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Hr(this._def,l({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof El){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Nl(e="$style"){{const n=si();if(!n)return t;const s=n.type.__cssModules;if(!s)return t;const o=s[e];return o||t}}const Al=new WeakMap,Il=new WeakMap,Rl=Symbol("_moveCb"),Ol=Symbol("_enterCb"),Ll={name:"TransitionGroup",props:l({},ji,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=si(),s=gs();let o,r;return qs((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const s=e.cloneNode(),o=e[Vi];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&s.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&s.classList.add(e))),s.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Zi(s);return r.removeChild(s),i}(o[0].el,n.vnode.el,t))return;o.forEach(Ml),o.forEach(Pl);const s=o.filter($l);tl(),s.forEach((e=>{const n=e.el,s=n.style;Ki(n,t),s.transform=s.webkitTransform=s.transitionDuration="";const o=n[Rl]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[Rl]=null,Gi(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const i=At(e),l=Wi(i);let c=i.tag||Cr;o=r,r=t.default?Ts(t.default()):[];for(let e=0;e<r.length;e++){const t=r[e];null!=t.key&&ks(t,Ss(t,l,s,n))}if(o)for(let e=0;e<o.length;e++){const t=o[e];ks(t,Ss(t,l,s,n)),Al.set(t,t.el.getBoundingClientRect())}return Hr(c,null,r)}}},Fl=Ll;function Ml(e){const t=e.el;t[Rl]&&t[Rl](),t[Ol]&&t[Ol]()}function Pl(e){Il.set(e,e.el.getBoundingClientRect())}function $l(e){const t=Al.get(e),n=Il.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const t=e.el.style;return t.transform=t.webkitTransform=`