gtsoft-snail-job-server/frontend/public/lib/assets/index-1AimXB8J.js

9 lines
105 KiB
JavaScript
Raw Normal View History

import{d as e,l as t,Y as a,Z as n,u as l,f as o,w as i,o as s,j as u,_ as d,k as r,$ as c,a0 as p,F as g,a1 as m,a2 as v,a3 as f,a4 as y,a5 as h,a6 as b,n as C,a7 as k,a8 as _,a9 as w,G as N,O as x,aa as S,B as V,ab as T,r as I,c as O,S as E}from"./vue-bxn8_kqU.js";import{d as U,s as j,c as M,a as $}from"./pinia-COyKmBZl.js";import{m as R,W as D,C as P,a as A,b as L,S as B,M as F,I as Y,L as z,_ as W,c as q,d as K,R as J,D as G,e as H,f as X,g as Z,B as Q,h as ee,i as te,j as ae,T as ne,k as le,P as oe,U as ie,l as se,n as ue,o as de,p as re,q as ce,r as pe,s as ge,t as me,u as ve,F as fe,v as ye,w as he,x as be,y as Ce,z as ke,A as _e,E as we,G as Ne,H as xe,J as Se,K as Ve,N as Te,O as Ie,Q as Oe,V as Ee,X as Ue,Y as je,Z as Me,$ as $e}from"./antdv-1G1sMcXM.js";import{o as Re,j as De,a as Pe}from"./codemirror-j6hpFMgw.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const a of e)if("childList"===a.type)for(const e of a.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Ae=U("main",{state:()=>({id:"",type:0,mode:"development",token:"",nameSpaceId:"",groupName:"",jobList:[]}),persist:!0,getters:{ID:e=>e.id,TYPE:e=>e.type,TOKEN:e=>e.token,NAME_SPACE_ID:e=>e.nameSpaceId,GROUP_NAME:e=>e.groupName,JOB_LIST:e=>e.jobList},actions:{clear(){this.id="",this.type=0,this.mode="development",this.token="",this.nameSpaceId="",this.groupName="",this.jobList=[]},setId(e){this.id=e},setType(e){this.type=e},setMode(e){this.mode=e},setToken(e){e&&(this.token=e.replace(/"|\\/g,""))},setNameSpaceId(e){e&&(this.nameSpaceId=e.replace(/"|\\/g,""))},setGroupName(e){this.groupName=e},setJobList(e){this.jobList=e}}}),Le=(e,t="get",a,n)=>{const l=Ae(),{token:o,nameSpaceId:i,mode:s}=j(l);return new Promise(((l,u)=>{fetch(("production"===s.value?"/snail-job":"/api")+e,{signal:n,method:t,headers:{"Content-Type":"application/json","snail-job-AUTH":o.value,"snail-job-NAMESPACE-ID":i.value},body:a?JSON.stringify(a):null}).then((e=>e.json())).then((e=>{1===e.status?(e.page&&l(e),l(e.data)):(R.error(e.message||"未知错误,请联系管理员"),u())})).catch((()=>{u()}))}))};
2024-03-10 12:54:54 +08:00
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function Be(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Fe.apply(this,arguments)}function Ye(e,t){if(null==e)return{};var a,n,l={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(a=o[n])>=0||(l[a]=e[a]);return l}const ze={silent:!1,logLevel:"warn"},We=["validator"],qe=Object.prototype,Ke=qe.toString,Je=qe.hasOwnProperty,Ge=/^\s*function (\w+)/;function He(e){var t;const a=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(a){const e=a.toString().match(Ge);return e?e[1]:""}return""}const Xe=function(e){var t,a;return!1!==Be(e)&&(void 0===(t=e.constructor)||!1!==Be(a=t.prototype)&&!1!==a.hasOwnProperty("isPrototypeOf"))};let Ze=e=>e;const Qe=(e,t)=>Je.call(e,t),et=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},tt=Array.isArray||function(e){return"[object Array]"===Ke.call(e)},at=e=>"[object Function]"===Ke.call(e),nt=(e,t)=>Xe(e)&&Qe(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),lt=e=>Xe(e)&&(Qe(e,"type")||["_vueTypes_name","validator","default","required"].some((t=>Qe(e,t))));function ot(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function it(e,t,a=!1){let n,l=!0,o="";n=Xe(e)?e:{type:e};const i=nt(n)?n._vueTypes_name+" - ":"";if(lt(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return l;if(!n.required&&null==t)return l;tt(n.type)?(l=n.type.some((e=>!0===it(e,t,!0))),o=n.type.map((e=>He(e))).join(" or ")):(o=He(n),l="Array"===o?tt(t):"Object"===o?Xe(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return"";const t=e.constructor.toString().match(Ge);return t?t[1].replace(/^Async/,""):""}(t)===o:t instanceof n.type)}if(!l){const e=`${i}value "${t}" should be of type "${o}"`;return!1===a?(Ze(e),!1):e}if(Qe(n,"validator")&&at(n.validator)){const e=Ze,o=[];if(Ze=e=>{o.push(e)},l=n.validator(t),Ze=e,!l){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===a?(Ze(e),l):e}}return l}function st(e,t){const a=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(Qe(this,"default")&&delete this.default,this):at(e)||!0===it(this,e,!0)?(this.default=tt(e)?()=>[...e]:Xe(e)?()=>Object.assign({},e):e,this):(Ze(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=a;return at(n)&&(a.validator=ot(n,a)),a}function ut(e,t){const a=st(e,t);return Object.defineProperty(a,"validate",{value(e){return at(this.validator)&&Ze(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=ot(e,this),this}})}function dt(e,t,a){const n=function(e){const t={};return Object.getOwnPropertyNames(e).forEach((a=>{t[a]=Object.getOwnPropertyDescriptor(e,a)})),Object.defineProperties({},t)}(t);if(n._vueTypes_name=e,!Xe(a))return n;const{validator:l}=a,o=Ye(a,We);if(at(l)){let{validator:e}=n;e&&(e=null!==(s=(i=e).__original)&&void 0!==s?s:i),n.validator=ot(e?function(t){return e.call(this,t)&&l.call(this,t)}:l,n)}var i,s;return Object.assign(n,o)}function rt(e){return e.replace(/^(?!\s*$)/gm," ")}const ct=()=>ut("any",{}),pt=()=>ut("boolean",{type:Boolean}),gt=()=>ut("string",{type:String}),mt=()=>ut("number",{type:Number}),vt=()=>ut("array",{type:Array}),ft=()=>ut("object",{type:Object});function yt(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return st(e.name||"<<anonymous function>>",{type:null,validator(a){const n=e(a);return n||Ze(`${this._vueTypes_name} - ${t}`),n}})}function ht(e){if(!tt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.