layui/example/dist/assets/vendor.e7911ee1.js

7 lines
164 KiB
JavaScript
Raw Normal View History

function xr(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]}const ss="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",us=xr(ss);function Do(e){return!!e||e===""}function _t(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Fe(r)?fs(r):_t(r);if(o)for(const i in o)t[i]=o[i]}return t}else{if(Fe(e))return e;if(ze(e))return e}}const cs=/;(?![^(]*\))/g,as=/:(.+)/;function fs(e){const t={};return e.split(cs).forEach(n=>{if(n){const r=n.split(as);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qe(e){let t="";if(Fe(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=Qe(e[n]);r&&(t+=r+" ")}else if(ze(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ps(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=In(e[r],t[r]);return n}function In(e,t){if(e===t)return!0;let n=Ho(e),r=Ho(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=G(e),r=G(t),n||r)return n&&r?ps(e,t):!1;if(n=ze(e),r=ze(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const s=e.hasOwnProperty(l),u=t.hasOwnProperty(l);if(s&&!u||!s&&u||!In(e[l],t[l]))return!1}}return String(e)===String(t)}function ds(e,t){return e.findIndex(n=>In(n,t))}const On=e=>e==null?"":G(e)||ze(e)&&(e.toString===No||!oe(e.toString))?JSON.stringify(e,ko,2):String(e),ko=(e,t)=>t&&t.__v_isRef?ko(e,t.value):Rt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Pn(t)?{[`Set(${t.size})`]:[...t.values()]}:ze(t)&&!G(t)&&!jo(t)?String(t):t,_e={},Tt=[],Xe=()=>{},hs=()=>!1,_s=/^on[^a-z]/,Gt=e=>_s.test(e),Er=e=>e.startsWith("onUpdate:"),Oe=Object.assign,$r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ms=Object.prototype.hasOwnProperty,ae=(e,t)=>ms.call(e,t),G=Array.isArray,Rt=e=>Tn(e)==="[object Map]",Pn=e=>Tn(e)==="[object Set]",Ho=e=>e instanceof Date,oe=e=>typeof e=="function",Fe=e=>typeof e=="string",wr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Lo=e=>ze(e)&&oe(e.then)&&oe(e.catch),No=Object.prototype.toString,Tn=e=>No.call(e),ys=e=>Tn(e).slice(8,-1),jo=e=>Tn(e)==="[object Object]",Cr=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=xr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vs=/-(\w)/g,Ge=Rn(e=>e.replace(vs,(t,n)=>n?n.toUpperCase():"")),gs=/\B([A-Z])/g,St=Rn(e=>e.replace(gs,"-$1").toLowerCase()),Sn=Rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ar=Rn(e=>e?`on${Sn(e)}`:""),tn=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Mn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},nn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qo;const zs=()=>qo||(qo=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let mt;const Dn=[];class bs{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&mt&&(this.parent=mt,this.index=(mt.scopes||(mt.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Dn.push(this),mt=this)}off(){this.active&&(Dn.pop(),mt=Dn[Dn.length-1])}stop(t){if(this.active){if(this.effects.forEach(n=>n.stop()),this.cleanups.forEach(n=>n()),this.scopes&&this.scopes.forEach(n=>n.stop(!0)),this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function xs(e,t){t=t||mt,t&&t.active&&t.effects.push(e)}const Fr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Uo=e=>(e.w&it)>0,Ko=e=>(e.n&it)>0,Es=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},$s=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Uo(o)&&!Ko(o)?o.delete(e):t[n++]=o,o.w&=~it,o.n&=~it}t.length=n}},Ir=new WeakMap;let rn=0,it=1;const Or=30,on=[];let yt;const vt=
* vue-router v4.0.12
* (c) 2021 Eduardo San Martin Morote
* @license MIT
*/const El=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ut=e=>El?Symbol(e):"_vr_"+e,Hc=Ut("rvlm"),$l=Ut("rvd"),dr=Ut("r"),vo=Ut("rl"),go=Ut("rvl"),Kt=typeof window!="undefined";function Lc(e){return e.__esModule||El&&e[Symbol.toStringTag]==="Module"}const me=Object.assign;function zo(e,t){const n={};for(const r in t){const o=t[r];n[r]=Array.isArray(o)?o.map(e):e(o)}return n}const zn=()=>{},Nc=/\/$/,jc=e=>e.replace(Nc,"");function bo(e,t,n="/"){let r,o={},i="",l="";const s=t.indexOf("?"),u=t.indexOf("#",s>-1?s:0);return s>-1&&(r=t.slice(0,s),i=t.slice(s+1,u>-1?u:t.length),o=e(i)),u>-1&&(r=r||t.slice(0,u),l=t.slice(u,t.length)),r=Wc(r!=null?r:t,n),{fullPath:r+(i&&"?")+i+l,path:r,query:o,hash:l}}function qc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function wl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Uc(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Wt(t.matched[r],n.matched[o])&&Cl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Kc(e[n],t[n]))return!1;return!0}function Kc(e,t){return Array.isArray(e)?Al(e,t):Array.isArray(t)?Al(t,e):e===t}function Al(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Wc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],!(o===1||l==="."))if(l==="..")o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var bn;(function(e){e.pop="pop",e.push="push"})(bn||(bn={}));var xn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(xn||(xn={}));function Vc(e){if(!e)if(Kt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),jc(e)}const Yc=/^[^#]+#/;function Qc(e,t){return e.replace(Yc,"#")+t}function Xc(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 hr=()=>({left:window.pageXOffset,top:window.pageYOffset});function Jc(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=Xc(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 Fl(e,t){return(history.state?history.state.position-t:-1)+e}const xo=new Map;function Zc(e,t){xo.set(e,t)}function Gc(e){const t=xo.get(e);return xo.delete(e),t}let ea=()=>location.protocol+"//"+location.host;function Il(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let s=o.includes(e.slice(i))?e.slice(i).length:1,u=o.slice(s);return u[0]!=="/"&&(u="/"+u),wl(u,"")}return wl(n,e)+r+o}function ta(e,t,n,r){let o=[],i=[],l=null;const s=({state:h})=>{const $=Il(e,location),I=n.value,F=t.value;let x=0;if(h){if(n.value=$,t.value=h,l&&l===I){l=null;return}x=F?h.position-F.position:0}else r($);o.forEach(v=>{v(n.value,I,{delta:x,type:bn.pop,direction:x?x>0?xn.forward:xn.back:xn.unknown})})};function u(){l=n.value}function f(h){o.push(h);const $=()=>{const I=o.indexOf(h);I>-1&&o.splice(I,1)};return i.push($),$}function a(){const{history:h}=window;!h.state||h.replaceState(me({},h.state,{scroll:hr()}),"")}function d(){for(const h of i)h();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",a),{pauseListeners:u,listen:f,destroy:d}}function Ol(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?hr():null}}function na(e){const{history:t,locat
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yl(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(Math.random()*16),1);e[14]="4",e[19]=t.substr(e[19]&3|8,1),e[8]=e[13]=e[18]=e[23]="-";var r=e.join("");return r}var Ql=999999;function yr(){return Ql=Ql+2}function Va(e){return e==="auto"?[]:typeof e=="string"?[e]:ja(e)}function Xl(e,t){var n=["t","r","b","l","lt","lb","rt","rb"],r=e[0],o=e[1];return n.indexOf(e)>-1&&(r="50%",o="50%"),(n.indexOf(e)!=-1||r.indexOf("%")>-1)&&(r="calc("+r+" - ("+(t==="auto"?"100px":t[1])+"/2 ))"),(n.indexOf(e)!=-1||o.indexOf("%")>-1)&&(o="calc("+o+" - ("+(t==="auto"?"100px":t[0])+"/2 ))"),e==="t"?r="0px":e==="r"?o="calc(100% - "+t[0]+")":e==="b"?r="calc(100% - "+t[1]+")":e==="l"?o="0px":e==="lt"?(r="0px",o="0px"):e==="lb"?(r="calc(100% - "+t[1]+")",o="0px"):e==="rt"?(r="0px",o="calc(100% - "+t[0]+")"):e==="rb"&&(r="calc(100% - "+t[1]+")",o="calc(100% - "+t[0]+")"),[r,o]}function Ya(e){return e==="dialog"||e===0||e==="0"?0:e==="component"||e===1||e==="1"?1:e==="iframe"||e===2||e==="2"?2:e==="loading"||e===3||e==="3"?3:0}function $n(e,t,n){if(t&&t.length>0||n===0){if(n===0)return"calc("+e+" - 142px)";if(n===1||n===2)return"calc("+e+" - 102px)"}else{if(n===0)return"calc("+e+" - 91px)";if(n===1||n===2)return"calc("+e+" - 51px)"}}function Jl(){return{w:"100%",h:"100%"}}function Zl(){return{t:"0px",l:"0px"}}function Qt(e){return{x:e==null?void 0:e.style.left,y:e==null?void 0:e.style.top}}function vr(e){var t=getComputedStyle(e,null).width,n=getComputedStyle(e,null).height;return[t,n]}var Xt=[];function Qa(e,t){var n=0;if(t){var r=Xt.findIndex(function(o){return o===void 0});r===-1?(Xt.push(e),n=Xt.length-1):(Xt[r]=e,n=r)}else delete Xt[Xt.findIndex(function(o){return o==e})],n=-1;return n}var Xa=function(t,n){t.style.position="fixed";var r,o,i,l,s,u,f={versions:function(){var $=navigator.userAgent;return{mobile:!!$.match(/AppleWebKit.*Mobile.*/)}}()};if(!f.versions.mobile)t!=null&&t.addEventListener("mousedown",function($){if($.path[0].className==="layui-layer-title"&&$.button==0&&t!=null){var I=getComputedStyle(t);r=$.pageX-t.offsetLeft+parseInt(I["margin-left"]),o=$.pageY-t.offsetTop+parseInt(I["margin-right"]);var F=function(q){if(t!=null){var E=q.pageX-r,C=q.pageY-o;E<0?E=0:E>document.documentElement.clientWidth-t.offsetWidth&&(E=document.documentElement.clientWidth-t.offsetWidth),C<0?C=0:C>document.documentElement.clientHeight-t.offsetHeight&&(C=document.documentElement.clientHeight-t.offsetHeight),t.style.left=E+"px",t.style.top=C+"px",n(t.style.width,t.style.height,E,C)}return!1};document.addEventListener("mousemove",F);var x=function N(){document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",N)};document.addEventListener("mouseup",x)}if($.path[0].className==="layui-layer-resize"&&$.button==0&&t!=null){var v=t.offsetLeft,P=t.offsetTop,M=function(q){if(t!=null){var E=q.clientX,C=q.clientY,S=E-v,K=C-P;S<260&&(S=260),K<115&&(K=115),t.style.width=S+"px",t.style.height=K+"px",n(t.style.width,t.style.height,v,P)}return!1};document.addEventListener("mousemove",M);var H=function N(){document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",N)};document.addEventListener("mouseup",H)}return!1});else if(t!=null){var a=document.body.clientWidth-t.offsetWidth,d=document.body.clientHeight-t.offsetHeight,h=function(I){I.preventDefault()};t.addEventListener("touchstart",function($){var I=$||window.event,F=I.targetTouches[0];i=F.clientX-t.offsetLeft,l=F.clientY-t.offsetTop,document.addEventListener("touchmove",h,!1),t.addEventListener("touchmove",function(x){var v=x||window.event,P=v.targetTouches[0];s=P.clientX-i,u=P.clientY-l,s<0?s=0:s>=a&&(s=a),u<0?u=0:u>=d&&(u=d),t.style.left=s+"px",t.style.top=u+"px"}),t.addEventListener("touchend",function(){document.removeEventListener("touchmove",h)})})}},Ja=["id"],Za={key:0,class:"layui-layer-title",style:{cursor:"move"}},Ga=["innerHTML"],ef=["src"],tf={key:1,class:"layui-layer-setwin"},nf={key:0},rf=["onClick"],of={key:3,class:"layui-layer-re