var i=(t=>(t.DOM="dom",t.FULL="full",t.MINI="mini",t))(i||{}),s=(t=>(t.GEAR="Gear",t.RING="Ring",t.ZOOM="Zoom",t.PATTERN="Pattern",t.CLOCK="Clock",t.BEAN="Bean",t.ROLL="Roll",t.Circular="Circular",t.IMG="Img",t.SKELETON="Skeleton",t))(s||{});function n(){return{custom:null,html:"",type:"dom",miniClass:"mini",model:"Gear",text:"加载中...",textGap:8,fontSize:12,fontFamily:"Microsoft YaHei",delay:65,delayInto:520,optimization:!1,zIndex:"2001",themeColor:"rgba(64,158,255,1)",bgColor:"rgba(0, 0, 0, 0.8)",shadowColor:"rgba(64,158,255,0.6)",shadowOffsetX:2,shadowOffsetY:2,shadowBlur:5,pointerEvents:!1,toast:!0}}var c=(t=>(t.BEFORE_COLSE="beforeColse",t.COLSED="colsed",t))(c||{});class m{static info(r){this.call(r,1)}static warn(r){this.call(r,2)}static error(r){this.call(r,3)}static call(r,e=1,o={color:n().themeColor,bgColor:n().bgColor}){let a=o.bgColor;e===2&&(a="#fffbe5"),e===3&&(a="#fff0f0");const l=`
      background:${a};
      font-size:14px;
      color:${o.color};
      padding: 4px;
      border: 1px solid;`;console.log(`%c web-loading:${r} `,l)}}function p(t){switch(d(t)){case"object":return Object.keys(t).length>0;case"array":return t.length>0;case"undefined":return t!==void 0;case"null":return t!==null;default:return t!==void 0}}function h(t){window.requestAnimationFrame?window.cancelAnimationFrame(t):window.clearInterval(t)}function d(t){try{return Object.prototype.toString.call(t).split(" ")[1].split("]")[0].toLowerCase()}catch{return"not-type"}}function b(){let t=String(Date.now());return window.crypto&&window.crypto.randomUUID&&(t=window.crypto.randomUUID()),"wl_"+t.replace(/-/g,"")}var f=(t=>(t.SCALE="scale",t.WAVE="wave",t.HEIGHT="height",t))(f||{}),u=(t=>(t.RECT="rect",t.ARC="arc",t.TRIANGLE="triangle",t.HEART="heart",t.POLYGON="polygon",t))(u||{}),g=(t=>(t.RECT="rect",t.WHEEL="wheel",t.WINDMILL="windmill",t))(g||{}),w=(t=>(t.COLLISION="collision",t.ROTATE="rotate",t))(w||{});export{m as $,w as C,c as H,i as L,s as M,u as P,g as R,f as Z,b as a,h as c,n as g,p as i,d as t};
