')},onLoadSuccess:e=>{e&&$(e).find(".loading-wrap").remove()},onLoadFailure:e=>{e&&($(e).find(".loading-wrap svg").remove(),$(e).find(".loading-wrap").append(''),$(e).find(".loading-wrap").addClass("error"))},request:(e,t,r,s)=>{let i=3;utils.onLoading(e),function n(){return new Promise((a,o)=>{let l=0,d=setTimeout(()=>{0===l&&(l=2,d=null,o("请求超时"),0==i&&s())},5e3);fetch(t).then((function(e){if(2!==l&&(clearTimeout(d),a(e),d=null,l=1),e.ok)return e;throw new Error("Network response was not ok.")})).then((function(t){i=0,utils.onLoadSuccess(e),r(t)})).catch((function(t){i>0?(i-=1,setTimeout(()=>{n()},5e3)):(utils.onLoadFailure(e),s())}))})}()},requestAnimationFrame:e=>{window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame),window.requestAnimationFrame(e)},dark:{}};utils.dark.method={toggle:new RunItem},utils.dark=Object.assign(utils.dark,{push:utils.dark.method.toggle.push})