centaline-data-driven-v3 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  `).forEach(function(s){l=s.indexOf(":"),a=s.substring(0,l).trim().toLowerCase(),r=s.substring(l+1).trim(),!(!a||o[a]&&ignoreDuplicateOf[a])&&(a==="set-cookie"?o[a]?o[a].push(r):o[a]=[r]:o[a]=o[a]?o[a]+", "+r:r)}),o},$internals=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return t===!1||t==null?t:utils$1.isArray(t)?t.map(normalizeValue):String(t)}function parseTokens(t){const o=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(t);)o[r[1]]=r[2];return o}const isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,o,a,r,l){if(utils$1.isFunction(r))return r.call(this,o,a);if(l&&(o=a),!!utils$1.isString(o)){if(utils$1.isString(r))return o.indexOf(r)!==-1;if(utils$1.isRegExp(r))return r.test(o)}}function formatHeader(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,a,r)=>a.toUpperCase()+r)}function buildAccessors(t,o){const a=utils$1.toCamelCase(" "+o);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+a,{value:function(l,u,s){return this[r].call(this,o,l,u,s)},configurable:!0})})}class AxiosHeaders{constructor(o){o&&this.set(o)}set(o,a,r){const l=this;function u(p,h,e){const m=normalizeHeader(h);if(!m)throw new Error("header name must be a non-empty string");const v=utils$1.findKey(l,m);(!v||l[v]===void 0||e===!0||e===void 0&&l[v]!==!1)&&(l[v||h]=normalizeValue(p))}const s=(p,h)=>utils$1.forEach(p,(e,m)=>u(e,m,h));return utils$1.isPlainObject(o)||o instanceof this.constructor?s(o,a):utils$1.isString(o)&&(o=o.trim())&&!isValidHeaderName(o)?s(parseHeaders(o),a):o!=null&&u(a,o,r),this}get(o,a){if(o=normalizeHeader(o),o){const r=utils$1.findKey(this,o);if(r){const l=this[r];if(!a)return l;if(a===!0)return parseTokens(l);if(utils$1.isFunction(a))return a.call(this,l,r);if(utils$1.isRegExp(a))return a.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,a){if(o=normalizeHeader(o),o){const r=utils$1.findKey(this,o);return!!(r&&this[r]!==void 0&&(!a||matchHeaderValue(this,this[r],r,a)))}return!1}delete(o,a){const r=this;let l=!1;function u(s){if(s=normalizeHeader(s),s){const p=utils$1.findKey(r,s);p&&(!a||matchHeaderValue(r,r[p],p,a))&&(delete r[p],l=!0)}}return utils$1.isArray(o)?o.forEach(u):u(o),l}clear(o){const a=Object.keys(this);let r=a.length,l=!1;for(;r--;){const u=a[r];(!o||matchHeaderValue(this,this[u],u,o,!0))&&(delete this[u],l=!0)}return l}normalize(o){const a=this,r={};return utils$1.forEach(this,(l,u)=>{const s=utils$1.findKey(r,u);if(s){a[s]=normalizeValue(l),delete a[u];return}const p=o?formatHeader(u):String(u).trim();p!==u&&delete a[u],a[p]=normalizeValue(l),r[p]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const a=Object.create(null);return utils$1.forEach(this,(r,l)=>{r!=null&&r!==!1&&(a[l]=o&&utils$1.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,a])=>o+": "+a).join(`
4
4
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...a){const r=new this(o);return a.forEach(l=>r.set(l)),r}static accessor(o){const r=(this[$internals]=this[$internals]={accessors:{}}).accessors,l=this.prototype;function u(s){const p=normalizeHeader(s);r[p]||(buildAccessors(l,s),r[p]=!0)}return utils$1.isArray(o)?o.forEach(u):u(o),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(r){this[a]=r}}}),utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(t,o){const a=this||defaults$4,r=o||a,l=AxiosHeaders$1.from(r.headers);let u=r.data;return utils$1.forEach(t,function(p){u=p.call(a,u,l.normalize(),o?o.status:void 0)}),l.normalize(),u}function isCancel(t){return!!(t&&t.__CANCEL__)}function CanceledError(t,o,a){AxiosError.call(this,t??"canceled",AxiosError.ERR_CANCELED,o,a),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(t,o,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?t(a):o(new AxiosError("Request failed with status code "+a.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}const cookies=platform.hasStandardBrowserEnv?{write(t,o,a,r,l,u){const s=[t+"="+encodeURIComponent(o)];utils$1.isNumber(a)&&s.push("expires="+new Date(a).toGMTString()),utils$1.isString(r)&&s.push("path="+r),utils$1.isString(l)&&s.push("domain="+l),u===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function combineURLs(t,o){return o?t.replace(/\/+$/,"")+"/"+o.replace(/^\/+/,""):t}function buildFullPath(t,o){return t&&!isAbsoluteURL(o)?combineURLs(t,o):o}const isURLSameOrigin=platform.hasStandardBrowserEnv?function t(){const o=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function l(u){let s=u;return o&&(a.setAttribute("href",s),s=a.href),a.setAttribute("href",s),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=l(window.location.href),function(s){const p=utils$1.isString(s)?l(s):s;return p.protocol===r.protocol&&p.host===r.host}}():function t(){return function(){return!0}}();function parseProtocol(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function speedometer(t,o){t=t||10;const a=new Array(t),r=new Array(t);let l=0,u=0,s;return o=o!==void 0?o:1e3,function(h){const e=Date.now(),m=r[u];s||(s=e),a[l]=h,r[l]=e;let v=u,R=0;for(;v!==l;)R+=a[v++],v=v%t;if(l=(l+1)%t,l===u&&(u=(u+1)%t),e-s<o)return;const C=m&&e-m;return C?Math.round(R*1e3/C):void 0}}function progressEventReducer(t,o){let a=0;const r=speedometer(50,250);return l=>{const u=l.loaded,s=l.lengthComputable?l.total:void 0,p=u-a,h=r(p),e=u<=s;a=u;const m={loaded:u,total:s,progress:s?u/s:void 0,bytes:p,rate:h||void 0,estimated:h&&s&&e?(s-u)/h:void 0,event:l};m[o?"download":"upload"]=!0,t(m)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(t){return new Promise(function(a,r){let l=t.data;const u=AxiosHeaders$1.from(t.headers).normalize();let{responseType:s,withXSRFToken:p}=t,h;function e(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}let m;if(utils$1.isFormData(l)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((m=u.getContentType())!==!1){const[d,...H]=m?m.split(";").map(j=>j.trim()).filter(Boolean):[];u.setContentType([d||"multipart/form-data",...H].join("; "))}}let v=new XMLHttpRequest;if(t.auth){const d=t.auth.username||"",H=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.set("Authorization","Basic "+btoa(d+":"+H))}const R=buildFullPath(t.baseURL,t.url);v.open(t.method.toUpperCase(),buildURL(R,t.params,t.paramsSerializer),!0),v.timeout=t.timeout;function C(){if(!v)return;const d=AxiosHeaders$1.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),j={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:d,config:t,request:v};settle(function(re){a(re),e()},function(re){r(re),e()},j),v=null}if("onloadend"in v?v.onloadend=C:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(C)},v.onabort=function(){v&&(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,t,v)),v=null)},v.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,v)),v=null},v.ontimeout=function(){let H=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const j=t.transitional||transitionalDefaults;t.timeoutErrorMessage&&(H=t.timeoutErrorMessage),r(new AxiosError(H,j.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,t,v)),v=null},platform.hasStandardBrowserEnv&&(p&&utils$1.isFunction(p)&&(p=p(t)),p||p!==!1&&isURLSameOrigin(R))){const d=t.xsrfHeaderName&&t.xsrfCookieName&&cookies.read(t.xsrfCookieName);d&&u.set(t.xsrfHeaderName,d)}l===void 0&&u.setContentType(null),"setRequestHeader"in v&&utils$1.forEach(u.toJSON(),function(H,j){v.setRequestHeader(j,H)}),utils$1.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),s&&s!=="json"&&(v.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&v.addEventListener("progress",progressEventReducer(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&v.upload&&v.upload.addEventListener("progress",progressEventReducer(t.onUploadProgress)),(t.cancelToken||t.signal)&&(h=d=>{v&&(r(!d||d.type?new CanceledError(null,t,v):d),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h)));const g=parseProtocol(R);if(g&&platform.protocols.indexOf(g)===-1){r(new AxiosError("Unsupported protocol "+g+":",AxiosError.ERR_BAD_REQUEST,t));return}v.send(l||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const renderReason=t=>`- ${t}`,isResolvedHandle=t=>utils$1.isFunction(t)||t===null||t===!1,adapters={getAdapter:t=>{t=utils$1.isArray(t)?t:[t];const{length:o}=t;let a,r;const l={};for(let u=0;u<o;u++){a=t[u];let s;if(r=a,!isResolvedHandle(a)&&(r=knownAdapters[(s=String(a)).toLowerCase()],r===void 0))throw new AxiosError(`Unknown adapter '${s}'`);if(r)break;l[s||"#"+u]=r}if(!r){const u=Object.entries(l).map(([p,h])=>`adapter ${p} `+(h===!1?"is not supported by the environment":"is not available in the build"));let s=o?u.length>1?`since :
5
5
  `+u.map(renderReason).join(`
6
- `):" "+renderReason(u[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:knownAdapters};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError(null,t)}function dispatchRequest(t){return throwIfCancellationRequested(t),t.headers=AxiosHeaders$1.from(t.headers),t.data=transformData.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(t.adapter||defaults$4.adapter)(t).then(function(r){return throwIfCancellationRequested(t),r.data=transformData.call(t,t.transformResponse,r),r.headers=AxiosHeaders$1.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(t),r&&r.response&&(r.response.data=transformData.call(t,t.transformResponse,r.response),r.response.headers=AxiosHeaders$1.from(r.response.headers))),Promise.reject(r)})}const headersToObject=t=>t instanceof AxiosHeaders$1?t.toJSON():t;function mergeConfig(t,o){o=o||{};const a={};function r(e,m,v){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(m)?utils$1.merge.call({caseless:v},e,m):utils$1.isPlainObject(m)?utils$1.merge({},m):utils$1.isArray(m)?m.slice():m}function l(e,m,v){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(e))return r(void 0,e,v)}else return r(e,m,v)}function u(e,m){if(!utils$1.isUndefined(m))return r(void 0,m)}function s(e,m){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(e))return r(void 0,e)}else return r(void 0,m)}function p(e,m,v){if(v in o)return r(e,m);if(v in t)return r(void 0,e)}const h={url:u,method:u,data:u,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:p,headers:(e,m)=>l(headersToObject(e),headersToObject(m),!0)};return utils$1.forEach(Object.keys(Object.assign({},t,o)),function(m){const v=h[m]||l,R=v(t[m],o[m],m);utils$1.isUndefined(R)&&v!==p||(a[m]=R)}),a}const VERSION="1.6.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{validators$1[t]=function(r){return typeof r===t||"a"+(o<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function t(o,a,r){function l(u,s){return"[Axios v"+VERSION+"] Transitional option '"+u+"'"+s+(r?". "+r:"")}return(u,s,p)=>{if(o===!1)throw new AxiosError(l(s," has been removed"+(a?" in "+a:"")),AxiosError.ERR_DEPRECATED);return a&&!deprecatedWarnings[s]&&(deprecatedWarnings[s]=!0,console.warn(l(s," has been deprecated since v"+a+" and will be removed in the near future"))),o?o(u,s,p):!0}};function assertOptions(t,o,a){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let l=r.length;for(;l-- >0;){const u=r[l],s=o[u];if(s){const p=t[u],h=p===void 0||s(p,u,t);if(h!==!0)throw new AxiosError("option "+u+" must be "+h,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new AxiosError("Unknown option "+u,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(o){this.defaults=o,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(o,a){typeof o=="string"?(a=a||{},a.url=o):a=o||{},a=mergeConfig(this.defaults,a);const{transitional:r,paramsSerializer:l,headers:u}=a;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),l!=null&&(utils$1.isFunction(l)?a.paramsSerializer={serialize:l}:validator.assertOptions(l,{encode:validators.function,serialize:validators.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=u&&utils$1.merge(u.common,u[a.method]);u&&utils$1.forEach(["delete","get","head","post","put","patch","common"],g=>{delete u[g]}),a.headers=AxiosHeaders$1.concat(s,u);const p=[];let h=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(a)===!1||(h=h&&d.synchronous,p.unshift(d.fulfilled,d.rejected))});const e=[];this.interceptors.response.forEach(function(d){e.push(d.fulfilled,d.rejected)});let m,v=0,R;if(!h){const g=[dispatchRequest.bind(this),void 0];for(g.unshift.apply(g,p),g.push.apply(g,e),R=g.length,m=Promise.resolve(a);v<R;)m=m.then(g[v++],g[v++]);return m}R=p.length;let C=a;for(v=0;v<R;){const g=p[v++],d=p[v++];try{C=g(C)}catch(H){d.call(this,H);break}}try{m=dispatchRequest.call(this,C)}catch(g){return Promise.reject(g)}for(v=0,R=e.length;v<R;)m=m.then(e[v++],e[v++]);return m}getUri(o){o=mergeConfig(this.defaults,o);const a=buildFullPath(o.baseURL,o.url);return buildURL(a,o.params,o.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function t(o){Axios$1.prototype[o]=function(a,r){return this.request(mergeConfig(r||{},{method:o,url:a,data:(r||{}).data}))}}),utils$1.forEach(["post","put","patch"],function t(o){function a(r){return function(u,s,p){return this.request(mergeConfig(p||{},{method:o,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:s}))}}Axios$1.prototype[o]=a(),Axios$1.prototype[o+"Form"]=a(!0)});const Axios$2=Axios$1;class CancelToken{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(u){a=u});const r=this;this.promise.then(l=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](l);r._listeners=null}),this.promise.then=l=>{let u;const s=new Promise(p=>{r.subscribe(p),u=p}).then(l);return s.cancel=function(){r.unsubscribe(u)},s},o(function(u,s,p){r.reason||(r.reason=new CanceledError(u,s,p),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}static source(){let o;return{token:new CancelToken(function(l){o=l}),cancel:o}}}const CancelToken$1=CancelToken;function spread(t){return function(a){return t.apply(null,a)}}function isAxiosError(t){return utils$1.isObject(t)&&t.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([t,o])=>{HttpStatusCode[o]=t});const HttpStatusCode$1=HttpStatusCode;function createInstance(t){const o=new Axios$2(t),a=bind(Axios$2.prototype.request,o);return utils$1.extend(a,Axios$2.prototype,o,{allOwnKeys:!0}),utils$1.extend(a,o,null,{allOwnKeys:!0}),a.create=function(l){return createInstance(mergeConfig(t,l))},a}const axios=createInstance(defaults$4);axios.Axios=Axios$2,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function t(o){return Promise.all(o)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=t=>formDataToJSON(utils$1.isHTMLForm(t)?new FormData(t):t),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const Axios=axios;Axios.defaults.headers.post["Content-Type"]="application/json",Axios.defaults.maxContentLength=4e5;const request={get(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.get(t,o,{headers:{headers:common.getDataDrivenOpts().handler.getRequestHeaders()}}).then(function(r){a(r.data)})},post(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:{headers:common.getDataDrivenOpts().handler.getRequestHeaders()}}).then(function(r){a(r.data)})},postThenHandler:function(t,o){common.flagApp()&&vant.closeToast();var a=t.data;if(typeof common.getDataDrivenOpts().handler.requestComplete=="function"&&common.getDataDrivenOpts().handler.requestComplete(t),a.clientActionType===Enum.ClientActionType.ExcuteScript&&a.content&&common.excute.call(o,a.content),(a.notification===Enum.ActionType.CloseTab||a.notification===Enum.ActionType.CloseTabThenDelete||a.notification===Enum.ActionType.CloseTabThenNew||a.notification===Enum.ActionType.CloseTabThenUpdate)&&common.getDataDrivenOpts().handler.closeTab,a.rtnCode===Enum.ReturnCode.Successful){if(a.rtnMsg&&common.getDataDrivenOpts().showRequestSuccessMessage&&(a.MsgAlertStyle&&a.MsgAlertStyle==Enum.MessageAlertStyle.Dialog?common.confirm(a.rtnMsg,"信息",{confirmButtonText:"确定",flagShowcCancelButton:"0"}):common.message(t.data.rtnMsg,"success")),a.notification===Enum.ActionType.Export&&a.content){var r={title:"导出",content:[{component:"ct-progress",width:"350px",height:"165px",attrs:{progressAction:a.content.action,progressKey:a.content.key,progressType:"export",flagNotification:"1",onFinished(l){common.closeDialog(r)},onError(l){common.closeDialog(r),common.message(l.rtnMsg,"info")}}}]};common.openDialog(r)}}else if(a.rtnCode!==Enum.ReturnCode.ConfirmAlert)return t.data.rtnMsg&&common.getDataDrivenOpts().showRequestErrorMessage&&(a.MsgAlertStyle&&a.MsgAlertStyle==Enum.MessageAlertStyle.Dialog?common.confirm(a.rtnMsg,"信息",{confirmButtonText:"确定",flagShowcCancelButton:"0"}):common.message(t.data.rtnMsg,"error")),Promise.reject(t);return Promise.resolve(t.data,t.headers)},postHandler(t,o,a){return console.log("postHandler-----",o),o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),console.log("-----",o),Axios.post(t,o,{headers:common.getDataDrivenOpts().handler.getRequestHeaders()}).then(r=>this.postThenHandler(r,a)).catch(r=>(r.message?common.message(r.message,"error"):typeof r.data=="string"&&common.message(r.data,"error"),Promise.resolve(r.data?r.data:r)))},postBlobHandler(t,o,a){return o.action&&o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:common.getDataDrivenOpts().handler.getRequestHeaders(),responseType:"blob"}).then(r=>this.postThenHandler(r,a)).catch(r=>(r.message?common.message(r.message,"error"):typeof r.data=="string"&&common.message(r.data,"error"),Promise.resolve(r)))},postTokenHandler(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:common.getDataDrivenOpts().handler.getRequestHeaders(),cancelToken:a.token}).then(r=>this.postThenHandler(r)).catch(r=>(Axios.isCancel(r)||(r.message?common.message(r.message,"error"):typeof r.data=="string"&&common.message(r.data,"error")),Promise.resolve(r.data?r.data:r)))}};request.install=function(t){t.config.globalProperties.$request=request};function loadFromModel$3(t,o,a,r,l,u){var s=function(p){let h={disableUpload:!1,qrcodeVisible:!1,isQrCode:!1,SSID:"",qrtimer:null,qrCodeImg:"",scanStatusDesc:"",FlagbtnScan:!1,QRCodeRefTop:"",QRCodeRefLeft:"",QRCodeRefJiaoTop:16,QRFileList:[],QRCodeStatusAction:"",fileSourceList:o,optionApi:r,mediaLabe:{mediaLabelID:"",mediaLabelName:""},moreActionRouter:u,get action(){return a&&a.action?a.action:""},get QRCodeAction(){return a&&a.actionForSearchRightPageKey?a.actionForSearchRightPageKey:""},get videoPlayIconUrl(){return l},set action(e){a.action=e},get uploadData(){return{}},get mediaViewPageType(){return p.mediaViewPageType},get rightDefault(){return p.rightDefault},get isComplexClassify(){return!!t.paramAction1},optionModel:{options:[],isInit:!1,optionAttrs:{value:"code",label:"name"}},_fileList:[],get fileList(){return h._fileList.length!==0||h.fileSourceList.forEach((e,m)=>{e.flagDeleted!==0&&h._fileList.push(getFileData$2(e))}),h._fileList},jsSetFile(e,m){var v=JSON.parse(e);v.forEach(R=>{if(m.fileSourceList.length<parseInt(h.max||999)){R.videoCoverFileName=R.videoCoverFileName||null,R.thumbnailUrl=R.thumbnailUrl||"",R.mediaSourceTypeID=R.mediaSourceTypeID||null,R.mediaSourceID=R.mediaSourceID||null,R.mediaPrintDesc=R.mediaPrintDesc||null,R.mediaID=R.mediaID||null,R.mediaFormData=R.mediaFormData||null,R.mediaDescEN=R.mediaDescEN||null,R.mediaDescCN=R.mediaDescCN||null,R.mediaDataBase64=R.mediaDataBase64||null,R.mediaCode=R.mediaCode||null,R.groupID=R.groupID||null,AddSourceList(m,R);var C=getFileData$2(R);C.width=R.width,C.height=R.height,h.fileList.push(C)}})},getFormObj(){var e={};return Object.defineProperty(e,t.fieldName1,{get:function(){return h.fileSourceList},enumerable:!0,configurable:!0}),e}};return h=loader.copy(p,h),h=loader.copy(h,valid.Init(h)),h};return s(t)}function getfileListLength$2(t){return t.fileSourceList?t.fileSourceList.filter(a=>a.flagDeleted!=!0).length:0}function getfileDefault$1(t){return t.fileSourceList?t.fileSourceList.filter(a=>a.flagDeleted!=!0&&a.flagDefault==!0&&a.mediaTypeID==2).length:0}function getFileData$2(t){return{progressFlag:!1,loadProgress:0,get source(){return t},get fileAccept(){return t.fileAccept1||""},get fileName(){return t.fileName},get savedFileName(){return t.savedFileName},get originalSavedFileName(){return t.originalSavedFileName},get mediaDate(){return t.mediaDate},get originalMediaDate(){return t.originalMediaDate},get mediaUrl(){return t.mediaUrl},get url(){return t.thumbnailUrl},get actionType(){return t.actionType},get mediaTypeID(){return t.mediaTypeID},get flagDeleted(){return t.flagDeleted},get flagDefault(){return t.flagDefault},get rightDel(){return t.rightDel},set rightDel(a){t.rightDel=a},get rightCrop(){return t.rightCrop},set rightCrop(a){t.rightCrop=a},get rightDownload(){return t.rightDownload},get rightDownloadWithNoWaterMask(){return t.rightDownloadWithNoWaterMask},get rightEdit(){return t.rightEdit},set rightEdit(a){t.rightEdit=a},get rightMediaTypeID(){return t.rightMediaTypeID},get mediaLabelName(){return t.mediaLabelName},set mediaLabelName(a){return t.mediaLabelName=a},get mediaLabelID(){return t.mediaLabelID},set mediaLabelID(a){return t.mediaLabelID=a},get mediaFormData(){return t.mediaFormData},set mediaFormData(a){return t.mediaFormData=a},get fileExtension(){return t.fileExtension},get videoPlayIconUrl(){return t.videoPlayIconUrl}}}function getQRCode$1(t,o){if(!t.QRCodeAction)return!1;var a={action:t.QRCodeAction,para:{fileAccept:t.fileAccept||""}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&(t.QRCodeStatusAction=r.content.actionForStatus,o&&o(r.content))})}function getQRCodeStatus$1(t,o){if(!t.QRCodeStatusAction)return!1;var a={action:t.QRCodeStatusAction,para:{ssid:t.SSID}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&o&&o(r.content)})}function AddSourceList(t,o){t.fileSourceList.push(o)}function getOptions$1(t,o){if(!t.paramName1)return!1;var a={action:t.optionApi,para:{paramName:t.paramName1,parentValue:null}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&(t.optionModel.options=r.content,t.optionModel.isInit=!0,o&&o(r.content))})}function updateClassify(t,o,a){var r={title:"Add",pane:common.getParentPane(o),content:[{component:"ct-form",attrs:{api:o.paramAction1,showTitle:!1,apiParam:t.mediaFormData,width:router.pageWidth+"px",height:router.pageHeight+"px"},on:{submit:function(l){t.mediaFormData=l.formData.getFormObj(),common.closeDialog(r.dialog);var u=t.mediaFormData.mediaLabelID;if(typeof u<"u"){var s=l.formData.fieldsDic.mediaLabelID;s.is==="ct-seg"?(t.mediaLabelID=u,s.segmentValue.forEach(p=>{p[o.optionModel.optionAttrs.value]===u&&(t.mediaLabelName=p[o.optionModel.optionAttrs.label])})):(s.is==="ct-so"||s.is==="ct-sos")&&(t.mediaLabelID=s.value,t.mediaLabelName=s.text)}},loaded:function(l){r.title=l.title}}}]};common.openDialog(r)}function setPublicClassify(t,o){o.mediaLabe.mediaLabelName=t.option[o.optionModel.optionAttrs.label],o.mediaLabe.mediaLabelID=t.option[o.optionModel.optionAttrs.value]}function setClassify(t,o){t.file.mediaLabelName=t.option[o.optionModel.optionAttrs.label],t.file.mediaLabelID=t.option[o.optionModel.optionAttrs.value],t.file.source.mediaLabelName=t.option[o.optionModel.optionAttrs.label],t.file.source.mediaLabelID=t.option[o.optionModel.optionAttrs.value]}function handleAvatarSuccess$1(t,o,a,r){if(t.rtnCode===Enum.ReturnCode.Successful){var l=t.content[0];l.mediaLabelID=o.mediaLabelID||r.mediaLabe.mediaLabelID,l.mediaLabelName=o.mediaLabelName||r.mediaLabe.mediaLabelName,r.fileSourceList.push(l);var u=getFileData$2(l);u.progressFlag=!1,u.loadProgress=100;let s=r.fileList.findIndex(p=>p.uid===o.uid);s===-1&&(t.content[0].uid=o.uid,r.fileList.push(t.content[0]),s=r.fileList.findIndex(p=>p.uid===o.uid)),u.uid=o.uid,r.fileList[s]=u}else{for(let s=0;s<r.fileList.length;s++)r.fileList[s].uid===o.uid&&r.fileList.splice(s,1);common.message(t.rtnMsg,"error")}}function setByPieces$1(t,o,a,r){if(t.rtnCode===Enum.ReturnCode.Successful){var l={mediaLabelID:a.mediaLabelID||r.mediaLabe.mediaLabelID||"",mediaLabelName:a.mediaLabelName||r.mediaLabe.mediaLabelName||""},u,s;if(t.content.finished==1){var p=t.content.media||t.content.Media;if(p.mediaLabelID=a.mediaLabelID||r.mediaLabe.mediaLabelID,p.mediaLabelName=a.mediaLabelName||r.mediaLabe.mediaLabelName,r.fileSourceList.push(p),l=getFileData$2(p),l.progressFlag=!1,l.loadProgress=100,a.type.indexOf("image")>-1){let e=new Image;e.src=URL.createObjectURL(a),e.onload=function(){u=e.width,s=e.height,a={...a,width:u,height:s};let m=r.fileList.findIndex(v=>v.uid===a.uid);m!==-1&&(r.fileList[m].width=u,r.fileList[m].height=s)}}}else l.progressFlag=!0,l.loadProgress=o;let h=r.fileList.findIndex(e=>e.uid===a.uid);if(h===-1)return;r.fileList[h]={...l,width:u,height:s,uid:a.uid,mediaLabelID:l.mediaLabelID||r.mediaLabe.mediaLabelID,mediaLabelName:l.mediaLabelName||r.mediaLabe.mediaLabelName}}}function changeFile(t,o,a){let r=t.fileList.findIndex(u=>u.uid===o.uid),l=t.fileList.findIndex(u=>u.uid===a.uid);t.fileList[r]=t.fileList.splice(l,1,t.fileList[r])[0],r=t.fileSourceList.findIndex(u=>u===o.source),l=t.fileSourceList.findIndex(u=>u===a.source),t.fileSourceList[r]=t.fileSourceList.splice(l,1,t.fileSourceList[r])[0]}function deleteFile$1(t,o,a){for(let r=0;r<a.fileList.length;r++)if(a.fileList[r].uid===t.uid){if(a.fileList.splice(r,1),t.source.actionType===Enum.ActionType.New){for(let l=0;l<a.fileSourceList.length;l++)if(t.source===a.fileSourceList[l]){a.fileSourceList.splice(l,1);break}}else for(let l=0;l<a.fileSourceList.length;l++)if(t.source===a.fileSourceList[l]){a.fileSourceList[l].flagDeleted=!0;break}break}}function updateFile$1(t,o){for(let a=0;a<o.fileList.length;a++){if(o.fileList[a].uid===t.uid){for(let r=0;r<o.fileSourceList.length;r++)if(t.source===o.fileSourceList[r]){o.fileSourceList[r].mediaUrl=t.mediaUrl,o.fileSourceList[r].savedFileName=t.savedFileName,o.fileSourceList[r].mediaDate=t.mediaDate,o.fileSourceList[r].mediaCode=t.mediaCode;break}}break}}function setDefault(t,o){for(let a=0;a<o.fileList.length;a++)if(o.fileList[a].uid===t.uid){o.fileList[a].flagDefault=!0;for(let r=0;r<o.fileSourceList.length;r++)o.fileList[a].source===o.fileSourceList[r]?o.fileSourceList[r].flagDefault=!0:o.fileSourceList[r].flagDefault=!1}else o.fileList[a].flagDefault=!1}function uploadguid$1(){return S4$1()+S4$1()+"-"+S4$1()+"-"+S4$1()+"-"+S4$1()+"-"+S4$1()+S4$1()+S4$1()}function S4$1(){return((1+Math.random())*65536|0).toString(16).substring(1)}function viewerfile$1(t,o){let a=[{albumName:o.controlLabel||"媒体",medias:[]}];o.fileList.filter(u=>u.flagDeleted!==!0).forEach(u=>{a[0].medias.push(u)});var l=a[0].medias.findIndex(u=>u===t);if(o.moreActionRouter){let u={};u=o.form.$vue.getFileData(o.moreActionRouter),u.index=l,u=o.moreActionRouter.getActionPara(u).para,o.$vue.emit("tableButtonClick",o.moreActionRouter,u)}else common.viewerfile(o.controlLabel||"预览媒体",a,0,l,o.mediaViewPageType)}function selfValidExcute$3(t,o){if(o.maxValue1&&o.maxValue1>0&&(File$3.getfileListLength(o)>=o.maxValue1?o.disableUpload=!0:o.disableUpload=!1),o.required&&File$3.getfileListLength(o)===0)return o.validMessage=common.LocalizedString("必须上传附件","必須上傳附件"),o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(o.minValue1&&File$3.getfileListLength(o)<o.minValue1)return t=="change"&&File$3.getfileListLength(o)>0||t=="valid"?(o.validMessage="附件数量还差"+(parseInt(o.minValue1)-File$3.getfileListLength(o))+"张",o.valid=!1):t=="remove"&&(o.valid=!0),o.displayValidMessage=o.validMessage,!1;if(o.rightDefault&&o.rightDefault==1&&t=="valid"&&File$3.getfileDefault(o)<=0)return o.validMessage="请设置默认封面",o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(t=="valid"&&!validFileClass(o))return o.validMessage="请选择附件分类",o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(typeof o.minValue2<"u"||typeof o.maxValue2<"u"){var a=!0;if(o.validMessage="",o.fileList.forEach((r,l)=>{var u=!0,s=!0;typeof o.minValue2<"u"&&typeof r.width<"u"&&r.width<parseInt(o.minValue2)&&(a=!1,u=!1),typeof o.maxValue2<"u"&&typeof r.height<"u"&&r.height<parseInt(o.maxValue2)&&(a=!1,s=!1),(!u||!s)&&(o.validMessage=o.validMessage+"第"+(l+1)+"张图片",!u&&!s?o.validMessage=o.validMessage+"宽高不符合标准":u?s||(o.validMessage=o.validMessage+"高度不符合标准"):o.validMessage=o.validMessage+"宽度不符合标准",o.validMessage=o.validMessage+",上传图片",typeof o.minValue2<"u"&&(o.validMessage=o.validMessage+"宽度不小于"+o.minValue2+"px "),typeof o.maxValue2<"u"&&(o.validMessage=o.validMessage+"高度不小于"+o.maxValue2+"px "),o.validMessage=o.validMessage+`\r
6
+ `):" "+renderReason(u[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:knownAdapters};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError(null,t)}function dispatchRequest(t){return throwIfCancellationRequested(t),t.headers=AxiosHeaders$1.from(t.headers),t.data=transformData.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(t.adapter||defaults$4.adapter)(t).then(function(r){return throwIfCancellationRequested(t),r.data=transformData.call(t,t.transformResponse,r),r.headers=AxiosHeaders$1.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(t),r&&r.response&&(r.response.data=transformData.call(t,t.transformResponse,r.response),r.response.headers=AxiosHeaders$1.from(r.response.headers))),Promise.reject(r)})}const headersToObject=t=>t instanceof AxiosHeaders$1?t.toJSON():t;function mergeConfig(t,o){o=o||{};const a={};function r(e,m,v){return utils$1.isPlainObject(e)&&utils$1.isPlainObject(m)?utils$1.merge.call({caseless:v},e,m):utils$1.isPlainObject(m)?utils$1.merge({},m):utils$1.isArray(m)?m.slice():m}function l(e,m,v){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(e))return r(void 0,e,v)}else return r(e,m,v)}function u(e,m){if(!utils$1.isUndefined(m))return r(void 0,m)}function s(e,m){if(utils$1.isUndefined(m)){if(!utils$1.isUndefined(e))return r(void 0,e)}else return r(void 0,m)}function p(e,m,v){if(v in o)return r(e,m);if(v in t)return r(void 0,e)}const h={url:u,method:u,data:u,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:p,headers:(e,m)=>l(headersToObject(e),headersToObject(m),!0)};return utils$1.forEach(Object.keys(Object.assign({},t,o)),function(m){const v=h[m]||l,R=v(t[m],o[m],m);utils$1.isUndefined(R)&&v!==p||(a[m]=R)}),a}const VERSION="1.6.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{validators$1[t]=function(r){return typeof r===t||"a"+(o<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function t(o,a,r){function l(u,s){return"[Axios v"+VERSION+"] Transitional option '"+u+"'"+s+(r?". "+r:"")}return(u,s,p)=>{if(o===!1)throw new AxiosError(l(s," has been removed"+(a?" in "+a:"")),AxiosError.ERR_DEPRECATED);return a&&!deprecatedWarnings[s]&&(deprecatedWarnings[s]=!0,console.warn(l(s," has been deprecated since v"+a+" and will be removed in the near future"))),o?o(u,s,p):!0}};function assertOptions(t,o,a){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let l=r.length;for(;l-- >0;){const u=r[l],s=o[u];if(s){const p=t[u],h=p===void 0||s(p,u,t);if(h!==!0)throw new AxiosError("option "+u+" must be "+h,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new AxiosError("Unknown option "+u,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(o){this.defaults=o,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(o,a){typeof o=="string"?(a=a||{},a.url=o):a=o||{},a=mergeConfig(this.defaults,a);const{transitional:r,paramsSerializer:l,headers:u}=a;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),l!=null&&(utils$1.isFunction(l)?a.paramsSerializer={serialize:l}:validator.assertOptions(l,{encode:validators.function,serialize:validators.function},!0)),a.method=(a.method||this.defaults.method||"get").toLowerCase();let s=u&&utils$1.merge(u.common,u[a.method]);u&&utils$1.forEach(["delete","get","head","post","put","patch","common"],g=>{delete u[g]}),a.headers=AxiosHeaders$1.concat(s,u);const p=[];let h=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(a)===!1||(h=h&&d.synchronous,p.unshift(d.fulfilled,d.rejected))});const e=[];this.interceptors.response.forEach(function(d){e.push(d.fulfilled,d.rejected)});let m,v=0,R;if(!h){const g=[dispatchRequest.bind(this),void 0];for(g.unshift.apply(g,p),g.push.apply(g,e),R=g.length,m=Promise.resolve(a);v<R;)m=m.then(g[v++],g[v++]);return m}R=p.length;let C=a;for(v=0;v<R;){const g=p[v++],d=p[v++];try{C=g(C)}catch(H){d.call(this,H);break}}try{m=dispatchRequest.call(this,C)}catch(g){return Promise.reject(g)}for(v=0,R=e.length;v<R;)m=m.then(e[v++],e[v++]);return m}getUri(o){o=mergeConfig(this.defaults,o);const a=buildFullPath(o.baseURL,o.url);return buildURL(a,o.params,o.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function t(o){Axios$1.prototype[o]=function(a,r){return this.request(mergeConfig(r||{},{method:o,url:a,data:(r||{}).data}))}}),utils$1.forEach(["post","put","patch"],function t(o){function a(r){return function(u,s,p){return this.request(mergeConfig(p||{},{method:o,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:s}))}}Axios$1.prototype[o]=a(),Axios$1.prototype[o+"Form"]=a(!0)});const Axios$2=Axios$1;class CancelToken{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(u){a=u});const r=this;this.promise.then(l=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](l);r._listeners=null}),this.promise.then=l=>{let u;const s=new Promise(p=>{r.subscribe(p),u=p}).then(l);return s.cancel=function(){r.unsubscribe(u)},s},o(function(u,s,p){r.reason||(r.reason=new CanceledError(u,s,p),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}static source(){let o;return{token:new CancelToken(function(l){o=l}),cancel:o}}}const CancelToken$1=CancelToken;function spread(t){return function(a){return t.apply(null,a)}}function isAxiosError(t){return utils$1.isObject(t)&&t.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([t,o])=>{HttpStatusCode[o]=t});const HttpStatusCode$1=HttpStatusCode;function createInstance(t){const o=new Axios$2(t),a=bind(Axios$2.prototype.request,o);return utils$1.extend(a,Axios$2.prototype,o,{allOwnKeys:!0}),utils$1.extend(a,o,null,{allOwnKeys:!0}),a.create=function(l){return createInstance(mergeConfig(t,l))},a}const axios=createInstance(defaults$4);axios.Axios=Axios$2,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function t(o){return Promise.all(o)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.mergeConfig=mergeConfig,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=t=>formDataToJSON(utils$1.isHTMLForm(t)?new FormData(t):t),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const Axios=axios;Axios.defaults.headers.post["Content-Type"]="application/json",Axios.defaults.maxContentLength=4e5;const request={get(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.get(t,o,{headers:{headers:common.getDataDrivenOpts().handler.getRequestHeaders()}}).then(function(r){a(r.data)})},post(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:{headers:common.getDataDrivenOpts().handler.getRequestHeaders()}}).then(function(r){a(r.data)})},postThenHandler:function(t,o){common.flagApp()&&vant.closeToast();var a=t.data;if(typeof common.getDataDrivenOpts().handler.requestComplete=="function"&&common.getDataDrivenOpts().handler.requestComplete(t),a.clientActionType===Enum.ClientActionType.ExcuteScript&&a.content&&common.excute.call(o,a.content),(a.notification===Enum.ActionType.CloseTab||a.notification===Enum.ActionType.CloseTabThenDelete||a.notification===Enum.ActionType.CloseTabThenNew||a.notification===Enum.ActionType.CloseTabThenUpdate)&&common.getDataDrivenOpts().handler.closeTab,a.rtnCode===Enum.ReturnCode.Successful){if(a.rtnMsg&&common.getDataDrivenOpts().showRequestSuccessMessage&&(a.MsgAlertStyle&&a.MsgAlertStyle==Enum.MessageAlertStyle.Dialog?common.confirm(a.rtnMsg,"信息",{confirmButtonText:"确定",flagShowcCancelButton:"0"}):common.message(t.data.rtnMsg,"success")),a.notification===Enum.ActionType.Export&&a.content){var r={title:"导出",content:[{component:"ct-progress",width:"350px",height:"165px",attrs:{progressAction:a.content.action,progressKey:a.content.key,progressType:"export",flagNotification:"1",onFinished(l){common.closeDialog(r)},onError(l){common.closeDialog(r),common.message(l.rtnMsg,"info")}}}]};common.openDialog(r)}}else if(a.rtnCode!==Enum.ReturnCode.ConfirmAlert)return t.data.rtnMsg&&common.getDataDrivenOpts().showRequestErrorMessage&&(a.MsgAlertStyle&&a.MsgAlertStyle==Enum.MessageAlertStyle.Dialog?common.confirm(a.rtnMsg,"信息",{confirmButtonText:"确定",flagShowcCancelButton:"0"}):common.message(t.data.rtnMsg,"error")),Promise.reject(t);return Promise.resolve(t.data,t.headers)},postHandler(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:common.getDataDrivenOpts().handler.getRequestHeaders()}).then(r=>this.postThenHandler(r,a)).catch(r=>(r.message?common.message(r.message,"error"):typeof r.data=="string"&&common.message(r.data,"error"),Promise.resolve(r.data?r.data:r)))},postBlobHandler(t,o,a){return o.action&&o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:common.getDataDrivenOpts().handler.getRequestHeaders(),responseType:"blob"}).then(r=>this.postThenHandler(r,a)).catch(r=>(r.message?common.message(r.message,"error"):typeof r.data=="string"&&common.message(r.data,"error"),Promise.resolve(r)))},postTokenHandler(t,o,a){return o.action.indexOf("http://")>-1||o.action.indexOf("https://")>-1?(t=o.action,o=o.para):common.flagRouterSelf()&&(t=t+(t==""||t.substr(-1)=="/"?"":"/")+(o.action.charAt(0)=="/"?o.action.substr(1):o.action),o=o.para),Axios.post(t,o,{headers:common.getDataDrivenOpts().handler.getRequestHeaders(),cancelToken:a.token}).then(r=>this.postThenHandler(r)).catch(r=>(Axios.isCancel(r)||(r.message?common.message(r.message,"error"):typeof r.data=="string"&&common.message(r.data,"error")),Promise.resolve(r.data?r.data:r)))}};request.install=function(t){t.config.globalProperties.$request=request};function loadFromModel$3(t,o,a,r,l,u){var s=function(p){let h={disableUpload:!1,qrcodeVisible:!1,isQrCode:!1,SSID:"",qrtimer:null,qrCodeImg:"",scanStatusDesc:"",FlagbtnScan:!1,QRCodeRefTop:"",QRCodeRefLeft:"",QRCodeRefJiaoTop:16,QRFileList:[],QRCodeStatusAction:"",fileSourceList:o,optionApi:r,mediaLabe:{mediaLabelID:"",mediaLabelName:""},moreActionRouter:u,get action(){return a&&a.action?a.action:""},get QRCodeAction(){return a&&a.actionForSearchRightPageKey?a.actionForSearchRightPageKey:""},get videoPlayIconUrl(){return l},set action(e){a.action=e},get uploadData(){return{}},get mediaViewPageType(){return p.mediaViewPageType},get rightDefault(){return p.rightDefault},get isComplexClassify(){return!!t.paramAction1},optionModel:{options:[],isInit:!1,optionAttrs:{value:"code",label:"name"}},_fileList:[],get fileList(){return h._fileList.length!==0||h.fileSourceList.forEach((e,m)=>{e.flagDeleted!==0&&h._fileList.push(getFileData$2(e))}),h._fileList},jsSetFile(e,m){var v=JSON.parse(e);v.forEach(R=>{if(m.fileSourceList.length<parseInt(h.max||999)){R.videoCoverFileName=R.videoCoverFileName||null,R.thumbnailUrl=R.thumbnailUrl||"",R.mediaSourceTypeID=R.mediaSourceTypeID||null,R.mediaSourceID=R.mediaSourceID||null,R.mediaPrintDesc=R.mediaPrintDesc||null,R.mediaID=R.mediaID||null,R.mediaFormData=R.mediaFormData||null,R.mediaDescEN=R.mediaDescEN||null,R.mediaDescCN=R.mediaDescCN||null,R.mediaDataBase64=R.mediaDataBase64||null,R.mediaCode=R.mediaCode||null,R.groupID=R.groupID||null,AddSourceList(m,R);var C=getFileData$2(R);C.width=R.width,C.height=R.height,h.fileList.push(C)}})},getFormObj(){var e={};return Object.defineProperty(e,t.fieldName1,{get:function(){return h.fileSourceList},enumerable:!0,configurable:!0}),e}};return h=loader.copy(p,h),h=loader.copy(h,valid.Init(h)),h};return s(t)}function getfileListLength$2(t){return t.fileSourceList?t.fileSourceList.filter(a=>a.flagDeleted!=!0).length:0}function getfileDefault$1(t){return t.fileSourceList?t.fileSourceList.filter(a=>a.flagDeleted!=!0&&a.flagDefault==!0&&a.mediaTypeID==2).length:0}function getFileData$2(t){return{progressFlag:!1,loadProgress:0,get source(){return t},get fileAccept(){return t.fileAccept1||""},get fileName(){return t.fileName},get savedFileName(){return t.savedFileName},get originalSavedFileName(){return t.originalSavedFileName},get mediaDate(){return t.mediaDate},get originalMediaDate(){return t.originalMediaDate},get mediaUrl(){return t.mediaUrl},get url(){return t.thumbnailUrl},get actionType(){return t.actionType},get mediaTypeID(){return t.mediaTypeID},get flagDeleted(){return t.flagDeleted},get flagDefault(){return t.flagDefault},get rightDel(){return t.rightDel},set rightDel(a){t.rightDel=a},get rightCrop(){return t.rightCrop},set rightCrop(a){t.rightCrop=a},get rightDownload(){return t.rightDownload},get rightDownloadWithNoWaterMask(){return t.rightDownloadWithNoWaterMask},get rightEdit(){return t.rightEdit},set rightEdit(a){t.rightEdit=a},get rightMediaTypeID(){return t.rightMediaTypeID},get mediaLabelName(){return t.mediaLabelName},set mediaLabelName(a){return t.mediaLabelName=a},get mediaLabelID(){return t.mediaLabelID},set mediaLabelID(a){return t.mediaLabelID=a},get mediaFormData(){return t.mediaFormData},set mediaFormData(a){return t.mediaFormData=a},get fileExtension(){return t.fileExtension},get videoPlayIconUrl(){return t.videoPlayIconUrl}}}function getQRCode$1(t,o){if(!t.QRCodeAction)return!1;var a={action:t.QRCodeAction,para:{fileAccept:t.fileAccept||""}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&(t.QRCodeStatusAction=r.content.actionForStatus,o&&o(r.content))})}function getQRCodeStatus$1(t,o){if(!t.QRCodeStatusAction)return!1;var a={action:t.QRCodeStatusAction,para:{ssid:t.SSID}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&o&&o(r.content)})}function AddSourceList(t,o){t.fileSourceList.push(o)}function getOptions$1(t,o){if(!t.paramName1)return!1;var a={action:t.optionApi,para:{paramName:t.paramName1,parentValue:null}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&(t.optionModel.options=r.content,t.optionModel.isInit=!0,o&&o(r.content))})}function updateClassify(t,o,a){var r={title:"Add",pane:common.getParentPane(o),content:[{component:"ct-form",attrs:{api:o.paramAction1,showTitle:!1,apiParam:t.mediaFormData,width:router.pageWidth+"px",height:router.pageHeight+"px"},on:{submit:function(l){t.mediaFormData=l.formData.getFormObj(),common.closeDialog(r.dialog);var u=t.mediaFormData.mediaLabelID;if(typeof u<"u"){var s=l.formData.fieldsDic.mediaLabelID;s.is==="ct-seg"?(t.mediaLabelID=u,s.segmentValue.forEach(p=>{p[o.optionModel.optionAttrs.value]===u&&(t.mediaLabelName=p[o.optionModel.optionAttrs.label])})):(s.is==="ct-so"||s.is==="ct-sos")&&(t.mediaLabelID=s.value,t.mediaLabelName=s.text)}},loaded:function(l){r.title=l.title}}}]};common.openDialog(r)}function setPublicClassify(t,o){o.mediaLabe.mediaLabelName=t.option[o.optionModel.optionAttrs.label],o.mediaLabe.mediaLabelID=t.option[o.optionModel.optionAttrs.value]}function setClassify(t,o){t.file.mediaLabelName=t.option[o.optionModel.optionAttrs.label],t.file.mediaLabelID=t.option[o.optionModel.optionAttrs.value],t.file.source.mediaLabelName=t.option[o.optionModel.optionAttrs.label],t.file.source.mediaLabelID=t.option[o.optionModel.optionAttrs.value]}function handleAvatarSuccess$1(t,o,a,r){if(t.rtnCode===Enum.ReturnCode.Successful){var l=t.content[0];l.mediaLabelID=o.mediaLabelID||r.mediaLabe.mediaLabelID,l.mediaLabelName=o.mediaLabelName||r.mediaLabe.mediaLabelName,r.fileSourceList.push(l);var u=getFileData$2(l);u.progressFlag=!1,u.loadProgress=100;let s=r.fileList.findIndex(p=>p.uid===o.uid);s===-1&&(t.content[0].uid=o.uid,r.fileList.push(t.content[0]),s=r.fileList.findIndex(p=>p.uid===o.uid)),u.uid=o.uid,r.fileList[s]=u}else{for(let s=0;s<r.fileList.length;s++)r.fileList[s].uid===o.uid&&r.fileList.splice(s,1);common.message(t.rtnMsg,"error")}}function setByPieces$1(t,o,a,r){if(t.rtnCode===Enum.ReturnCode.Successful){var l={mediaLabelID:a.mediaLabelID||r.mediaLabe.mediaLabelID||"",mediaLabelName:a.mediaLabelName||r.mediaLabe.mediaLabelName||""},u,s;if(t.content.finished==1){var p=t.content.media||t.content.Media;if(p.mediaLabelID=a.mediaLabelID||r.mediaLabe.mediaLabelID,p.mediaLabelName=a.mediaLabelName||r.mediaLabe.mediaLabelName,r.fileSourceList.push(p),l=getFileData$2(p),l.progressFlag=!1,l.loadProgress=100,a.type.indexOf("image")>-1){let e=new Image;e.src=URL.createObjectURL(a),e.onload=function(){u=e.width,s=e.height,a={...a,width:u,height:s};let m=r.fileList.findIndex(v=>v.uid===a.uid);m!==-1&&(r.fileList[m].width=u,r.fileList[m].height=s)}}}else l.progressFlag=!0,l.loadProgress=o;let h=r.fileList.findIndex(e=>e.uid===a.uid);if(h===-1)return;r.fileList[h]={...l,width:u,height:s,uid:a.uid,mediaLabelID:l.mediaLabelID||r.mediaLabe.mediaLabelID,mediaLabelName:l.mediaLabelName||r.mediaLabe.mediaLabelName}}}function changeFile(t,o,a){let r=t.fileList.findIndex(u=>u.uid===o.uid),l=t.fileList.findIndex(u=>u.uid===a.uid);t.fileList[r]=t.fileList.splice(l,1,t.fileList[r])[0],r=t.fileSourceList.findIndex(u=>u===o.source),l=t.fileSourceList.findIndex(u=>u===a.source),t.fileSourceList[r]=t.fileSourceList.splice(l,1,t.fileSourceList[r])[0]}function deleteFile$1(t,o,a){for(let r=0;r<a.fileList.length;r++)if(a.fileList[r].uid===t.uid){if(a.fileList.splice(r,1),t.source.actionType===Enum.ActionType.New){for(let l=0;l<a.fileSourceList.length;l++)if(t.source===a.fileSourceList[l]){a.fileSourceList.splice(l,1);break}}else for(let l=0;l<a.fileSourceList.length;l++)if(t.source===a.fileSourceList[l]){a.fileSourceList[l].flagDeleted=!0;break}break}}function updateFile$1(t,o){for(let a=0;a<o.fileList.length;a++){if(o.fileList[a].uid===t.uid){for(let r=0;r<o.fileSourceList.length;r++)if(t.source===o.fileSourceList[r]){o.fileSourceList[r].mediaUrl=t.mediaUrl,o.fileSourceList[r].savedFileName=t.savedFileName,o.fileSourceList[r].mediaDate=t.mediaDate,o.fileSourceList[r].mediaCode=t.mediaCode;break}}break}}function setDefault(t,o){for(let a=0;a<o.fileList.length;a++)if(o.fileList[a].uid===t.uid){o.fileList[a].flagDefault=!0;for(let r=0;r<o.fileSourceList.length;r++)o.fileList[a].source===o.fileSourceList[r]?o.fileSourceList[r].flagDefault=!0:o.fileSourceList[r].flagDefault=!1}else o.fileList[a].flagDefault=!1}function uploadguid$1(){return S4$1()+S4$1()+"-"+S4$1()+"-"+S4$1()+"-"+S4$1()+"-"+S4$1()+S4$1()+S4$1()}function S4$1(){return((1+Math.random())*65536|0).toString(16).substring(1)}function viewerfile$1(t,o){let a=[{albumName:o.controlLabel||"媒体",medias:[]}];o.fileList.filter(u=>u.flagDeleted!==!0).forEach(u=>{a[0].medias.push(u)});var l=a[0].medias.findIndex(u=>u===t);if(o.moreActionRouter){let u={};u=o.form.$vue.getFileData(o.moreActionRouter),u.index=l,u=o.moreActionRouter.getActionPara(u).para,o.$vue.emit("tableButtonClick",o.moreActionRouter,u)}else common.viewerfile(o.controlLabel||"预览媒体",a,0,l,o.mediaViewPageType)}function selfValidExcute$3(t,o){if(o.maxValue1&&o.maxValue1>0&&(File$3.getfileListLength(o)>=o.maxValue1?o.disableUpload=!0:o.disableUpload=!1),o.required&&File$3.getfileListLength(o)===0)return o.validMessage=common.LocalizedString("必须上传附件","必須上傳附件"),o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(o.minValue1&&File$3.getfileListLength(o)<o.minValue1)return t=="change"&&File$3.getfileListLength(o)>0||t=="valid"?(o.validMessage="附件数量还差"+(parseInt(o.minValue1)-File$3.getfileListLength(o))+"张",o.valid=!1):t=="remove"&&(o.valid=!0),o.displayValidMessage=o.validMessage,!1;if(o.rightDefault&&o.rightDefault==1&&t=="valid"&&File$3.getfileDefault(o)<=0)return o.validMessage="请设置默认封面",o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(t=="valid"&&!validFileClass(o))return o.validMessage="请选择附件分类",o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(typeof o.minValue2<"u"||typeof o.maxValue2<"u"){var a=!0;if(o.validMessage="",o.fileList.forEach((r,l)=>{var u=!0,s=!0;typeof o.minValue2<"u"&&typeof r.width<"u"&&r.width<parseInt(o.minValue2)&&(a=!1,u=!1),typeof o.maxValue2<"u"&&typeof r.height<"u"&&r.height<parseInt(o.maxValue2)&&(a=!1,s=!1),(!u||!s)&&(o.validMessage=o.validMessage+"第"+(l+1)+"张图片",!u&&!s?o.validMessage=o.validMessage+"宽高不符合标准":u?s||(o.validMessage=o.validMessage+"高度不符合标准"):o.validMessage=o.validMessage+"宽度不符合标准",o.validMessage=o.validMessage+",上传图片",typeof o.minValue2<"u"&&(o.validMessage=o.validMessage+"宽度不小于"+o.minValue2+"px "),typeof o.maxValue2<"u"&&(o.validMessage=o.validMessage+"高度不小于"+o.maxValue2+"px "),o.validMessage=o.validMessage+`\r
7
7
  `,refupload.value&&(refupload.value.$el.children[0].children[l].style.border="1px solid #ff0000"))}),o.displayValidMessage=o.validMessage,!a)return o.valid=!1,!1}return o.valid=!0,o.valid}function validFileClass(t){return!(t.paramName1&&t.fileList&&t.fileList.length>0&&t.fileList.filter(a=>(a.mediaLabelID==null||a.mediaLabelID=="")&&a.flagDeleted!==!0).length>0)}const File$3={loadFromModel:loadFromModel$3,getfileListLength:getfileListLength$2,getfileDefault:getfileDefault$1,getOptions:getOptions$1,getQRCode:getQRCode$1,getQRCodeStatus:getQRCodeStatus$1,AddSourceList,updateClassify,setClassify,handleAvatarSuccess:handleAvatarSuccess$1,setByPieces:setByPieces$1,changeFile,deleteFile:deleteFile$1,updateFile:updateFile$1,setDefault,getFileData:getFileData$2,uploadguid:uploadguid$1,viewerfile:viewerfile$1,selfValidExcute:selfValidExcute$3,validFileClass,setPublicClassify};function loadFromModel$2(t,o,a,r,l){var u=function(s){let p={disableUpload:!1,qrcodeVisible:!1,isQrCode:!1,SSID:"",qrtimer:null,qrCodeImg:"",scanStatusDesc:"",FlagbtnScan:!1,QRCodeRefTop:"",QRCodeRefLeft:"",QRCodeRefJiaoTop:16,QRFileList:[],QRCodeStatusAction:"",fileSource:o,valid:!0,validMessage:"",uploadFiles:[],get QRCodeAction(){return a&&a.actionForSearchRightPageKey?a.actionForSearchRightPageKey:""},get videoPlayIconUrl(){return l},get action(){return a&&a.action?a.action:""},set action(h){a.action=h},get uploadData(){return{}},get mediaViewPageType(){return s.mediaViewPageType},get rightDefault(){return s.rightDefault},_fileList:[],get fileList(){return p._fileList.length!==0||p.fileSource.forEach((h,e)=>{h.flagDeleted!==0&&p._fileList.push(getFileData$1(h))}),p._fileList},get file(){return this.uploadFiles},set file(h){var e;((e=this.uploadFiles)==null?void 0:e.length)>0?this.uploadFiles[0]=h:(this.uploadFiles=[],this.uploadFiles.push(h))},jsClearFile(h){h.fileList=[]},jsSetFile(h,e){h=JSON.parse(h),h.forEach(m=>{m.videoCoverFileName=m.videoCoverFileName||null,m.thumbnailUrl=m.thumbnailUrl||"",m.mediaSourceTypeID=m.mediaSourceTypeID||null,m.mediaSourceID=m.mediaSourceID||null,m.mediaPrintDesc=m.mediaPrintDesc||null,m.mediaID=m.mediaID||null,m.mediaFormData=m.mediaFormData||null,m.mediaDescEN=m.mediaDescEN||null,m.mediaDescCN=m.mediaDescCN||null,m.mediaDataBase64=m.mediaDataBase64||null,m.mediaCode=m.mediaCode||null,m.groupID=m.groupID||null,SetSourceList(e,m);var v=getFileData$1(m);v.width=m.width,v.height=m.height,p.fileList[0]=v})},jsAddFile(h,e){e.file=h},getFormObj(){var h={},e=this;return Object.defineProperty(h,t.fieldName1,{get:function(){return e.fileSource},enumerable:!0,configurable:!0}),h}};return p=loader.copy(s,p),p=loader.copy(p,valid.Init(p)),p};return u(t)}function getfileListLength$1(t){return t.fileSource?t.fileSource.length:0}function getFileData$1(t){return{progressFlag:!1,loadProgress:0,get source(){return t},get fileAccept(){return t.fileAccept1||""},get fileName(){return t.fileName},get savedFileName(){return t.savedFileName},get originalSavedFileName(){return t.originalSavedFileName},get mediaDate(){return t.mediaDate},get originalMediaDate(){return t.originalMediaDate},get mediaUrl(){return t.mediaUrl},get url(){return t.thumbnailUrl},get actionType(){return t.actionType},get mediaTypeID(){return t.mediaTypeID},get flagDeleted(){return t.flagDeleted},get rightBrowse(){return!0},set rightBrowse(a){t.rightBrowse=a},get rightDel(){return t.rightDel},set rightDel(a){t.rightDel=a},get rightCrop(){return t.rightCrop},set rightCrop(a){t.rightCrop=a},get rightDownload(){return t.rightDownload},get rightDownloadWithNoWaterMask(){return t.rightDownloadWithNoWaterMask},get rightEdit(){return t.rightEdit},set rightEdit(a){t.rightEdit=a},get rightMediaTypeID(){return t.rightMediaTypeID},get mediaLabelName(){return t.mediaLabelName},set mediaLabelName(a){return t.mediaLabelName=a},get mediaLabelID(){return t.mediaLabelID},set mediaLabelID(a){return t.mediaLabelID=a},get mediaFormData(){return t.mediaFormData},set mediaFormData(a){return t.mediaFormData=a},get fileExtension(){return t.fileExtension},get videoPlayIconUrl(){return t.videoPlayIconUrl}}}function getQRCode(t,o){if(!t.QRCodeAction)return!1;var a={action:t.QRCodeAction,para:{fileAccept:t.fileAccept||""}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&(t.QRCodeStatusAction=r.content.actionForStatus,o&&o(r.content))})}function getQRCodeStatus(t,o){if(!t.QRCodeStatusAction)return!1;var a={action:t.QRCodeStatusAction,para:{ssid:t.SSID}};request.postHandler(common.globalUri(),a).then(r=>{r.rtnCode===200&&o&&o(r.content)})}function SetSourceList(t,o){t.fileSource[0]=o}function handleAvatarSuccess(t,o,a,r){if(t.rtnCode===Enum.ReturnCode.Successful){SetSourceList(r,t.content[0]);var l=getFileData$1(t.content[0]);l.progressFlag=!1,l.loadProgress=100,r.fileList[0]={...r.fileList[0],data:l}}else r.fileList[0]=getFileData$1(r.fileSource),common.message(t.rtnMsg,"error")}function setByPieces(t,o,a,r){if(t.rtnCode===Enum.ReturnCode.Successful){var l={},u,s;if(t.content.finished==1){var p=t.content.media||t.content.Media;if(SetSourceList(r,p),l=getFileData$1(p),l.progressFlag=!1,l.loadProgress=100,a.type.indexOf("image")>-1){let h=new Image;h.src=URL.createObjectURL(a),h.onload=function(){u=h.width,s=h.height,r.fileList[0].width=u,r.fileList[0].height=s}}}else l.progressFlag=!0,l.loadProgress=o;r.fileList[0]={...l,width:u,height:s,uid:a.uid}}}function deleteFile(t,o,a){a.fileSource=[],a.fileList=[]}function updateFile(t,o){o.fileSource[0].mediaUrl=t.mediaUrl,o.fileSource[0].savedFileName=t.savedFileName,o.fileSource[0].mediaDate=t.mediaDate,o.fileSource[0].mediaCode=t.mediaCode}function uploadguid(){return S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4()}function S4(){return((1+Math.random())*65536|0).toString(16).substring(1)}function viewerfile(t,o){let a=[{albumName:o.controlLabel||"媒体",medias:[]}];o.fileList.forEach(l=>{a[0].medias.push(l)});var r=a[0].medias.findIndex(l=>l===t);common.viewerfile(o.controlLabel||"预览媒体",a,0,r,o.mediaViewPageType)}function selfValidExcute$2(t,o){if(o.required){if(Photo$1.getfileListLength(o)===0)return o.validMessage=common.LocalizedString("必须上传附件","必須上傳附件"),o.valid=!1,o.displayValidMessage=o.validMessage,!1;o.valid=!0,o.validMessage=""}if(o.displayValidMessage=o.validMessage,typeof o.minValue2<"u"||typeof o.maxValue2<"u"){var a=!0;if(o.validMessage="",o.fileList.forEach((r,l)=>{var u=!0,s=!0;typeof o.minValue2<"u"&&typeof r.width<"u"&&r.width<parseInt(o.minValue2)&&(a=!1,u=!1),typeof o.maxValue2<"u"&&typeof r.height<"u"&&r.height<parseInt(o.maxValue2)&&(a=!1,s=!1),(!u||!s)&&(o.validMessage=o.validMessage+"第"+(l+1)+"张图片",!u&&!s?o.validMessage=o.validMessage+"宽高不符合标准":u?s||(o.validMessage=o.validMessage+"高度不符合标准"):o.validMessage=o.validMessage+"宽度不符合标准",o.validMessage=o.validMessage+",上传图片",typeof o.minValue2<"u"&&(o.validMessage=o.validMessage+"宽度不小于"+o.minValue2+"px "),typeof o.maxValue2<"u"&&(o.validMessage=o.validMessage+"高度不小于"+o.maxValue2+"px "),o.validMessage=o.validMessage+`\r
8
8
  `,refupload.value&&(refupload.value.$el.children[0].children[l].style.border="1px solid #ff0000"))}),o.displayValidMessage=o.validMessage,!a)return o.valid=!1,!1}return o.valid=!0,o.valid}const Photo$1={loadFromModel:loadFromModel$2,getfileListLength:getfileListLength$1,getQRCode,getQRCodeStatus,SetSourceList,handleAvatarSuccess,setByPieces,deleteFile,updateFile,getFileData:getFileData$1,uploadguid,viewerfile,selfValidExcute:selfValidExcute$2},loadModel$2=function(t,o,a,r,l){let u={get action(){return r||""},get router(){return a},set action(s){t.action=s},fileSourceList:o,sourceList:l,_fileList:[],get fileList(){return u._fileList.length!==0||u.fileSourceList.forEach((s,p)=>{s.flagDeleted!==0&&u._fileList.push(s)}),u._fileList},jsSetFile(s,p){var h=JSON.parse(s);h.forEach(e=>{p.fileSourceList.length<parseInt(p.maxValue1||999)&&p.fileList.push(e)}),PhotoSelect$2.setSelectfileSourceList(p.fileList,p)},getFormObj(){var s={},p=this;return Object.defineProperty(s,t.fieldName1,{get:function(){return p.fileSourceList},enumerable:!0,configurable:!0}),s}};return u=loader.copy(t,u),u=loader.copy(u,valid.Init(u)),u};function getfileDefault(t){return t.fileSourceList?t.fileSourceList.filter(a=>a.flagDeleted!=!0&&a.flagDefault==!0&&a.mediaTypeID==2).length:0}function getfileListLength(t){return t.fileSourceList?t.fileSourceList.filter(a=>a.flagDeleted!=!0).length:0}function setfileSourceList(t,o){let a=[],r=o.fileSourceList.filter(l=>l.flagDeleted==!0);a=common.deepClone(r);for(let l=0;l<r.length;l++)for(let u=0;u<t.length;u++)if(t[u].mediaID==r[l].mediaID){a.splice(l,1);break}o.fileSourceList=[...t,...a]}function setSelectfileSourceList(t,o){let a=[];for(let r=0;r<o.fileSourceList.length;r++)t.find(u=>u.mediaID===o.fileSourceList[r].mediaID)||(o.fileSourceList[r].flagDefault=!1,o.fileSourceList[r].flagDeleted=!0,a.push(o.fileSourceList[r]));o.fileSourceList=[...t,...a]}function deletePhoto(t,o){let a=null,r=o.sourceList.findIndex(u=>u.mediaID===t.mediaID),l=o.fileSourceList.findIndex(u=>u.mediaID===t.mediaID);r===-1?o.fileSourceList.splice(l,1):(o.fileSourceList[l].flagDefault=!1,o.fileSourceList[l].flagDeleted=!0,a=o.fileSourceList[l],o.fileSourceList.splice(l,1),o.fileSourceList.push(a))}function selfValidExcute$1(t,o){if(!o.locked){if(o.required&&PhotoSelect$2.getfileListLength(o)===0)return o.validMessage="必须选择"+o.controlLabel,o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(o.maxValue1&&PhotoSelect$2.getfileListLength(o)>o.maxValue1)return o.validMessage=o.controlLabel+"最多"+o.maxValue1+"个",o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(o.minValue1&&PhotoSelect$2.getfileListLength(o)<o.minValue1)return o.validMessage=o.controlLabel+"最少"+o.minValue1+"个",o.valid=!1,o.displayValidMessage=o.validMessage,!1;if(o.rightDefault&&o.rightDefault==1&&t=="valid"&&PhotoSelect$2.getfileDefault(o)<=0)return o.validMessage="请设置默认封面",o.valid=!1,o.displayValidMessage=o.validMessage,!1}return o.valid=!0,o.valid}const PhotoSelect$2={loadModel:loadModel$2,getfileListLength,getfileDefault,setfileSourceList,setSelectfileSourceList,deletePhoto,selfValidExcute:selfValidExcute$1},actions={required(t,o){return!!t.code1},requiredArray(t,o){return!(!t.code1||t.code1.length===0)},requiredArea(t,o){if(t.isList){if(!t.code1&&!t.code2)return!1}else if(!t.code1||!t.code2)return!1;return!0},requiredMulti(t,o){if(!t.code1)return!1;let a=[];if(Array.isArray(t.code1)?a=t.code1:a=JSON.parse(t.code1),!a||a.length===0)return!1;var r=a.filter(l=>!l.flagDeleted);return r.length!==0},number(t,o){var a="";let r=t.decimals1;return r?(r===-1&&(r=12),a=new RegExp("^(\\-)?\\d*[.]{0,1}(\\d{1,"+r+"})?$")):a=/^(\-)?\d*$/,t.code1===""||a.test(t.code1)?!0:t.code1?(t.code1=o,!0):!1},numberArea(t,o,a){var r="";let l=t.decimals1;return l?(l===-1&&(l=12),r=new RegExp("^(\\-)?\\d*[.]{0,1}(\\d{1,"+l+"})?$")):r=/^(\-)?\d*$/,t.code1===""&&t.code2===""||(!t.code1||r.test(t.code1))&&(!t.code2||r.test(t.code2))||(t.code1=o,t.code2=a),!0},requiredFile(t,o){return!(File$3.getfileListLength(t)<=0)},requiredPhoto(t,o){return!(Photo$1.getfileListLength(t)<=0)},requiredPhotoSelect(t,o){return!(PhotoSelect$2.getfileListLength(t)<=0)},validateLen(t){return!(t.code1&&t.code1.length>t.maxValue1)},validateLenMin(t){return!(t.code1&&t.code1.length<t.minValue1)},requiredMultiComboBoxWithTextBox(t){return!(!t.code1||!t.code2&&t.fieldName2||!t.code3&&t.fieldName3||!t.code4&&t.fieldName4)}},valid={install:function(t){},required:{action:actions.required,message:"必填"},requiredArray:{action:actions.requiredArray,message:"必填"},requiredArea:{action:actions.requiredArea,message:"必填"},requiredMulti:{action:actions.requiredMulti,message:"必填"},requiredMultiComboBoxWithTextBox:{action:actions.requiredMultiComboBoxWithTextBox,message:"必填"},number:{action:actions.number,message:"值必须是数字"},requiredFile:{action:actions.requiredFile,message:"必须上传附件"},requiredSelectPhoto:{action:actions.requiredPhotoSelect,message:"必须选择图片"},requiredPhoto:{action:actions.requiredPhoto,message:"必须上传附件"},numberArea:{action:actions.numberArea,message:"值必须是数字"},validateLen:{action:actions.validateLen,message:"输入文字不能超过最大长度"},validateLenMin:{action:actions.validateLenMin,message:"validateLenMin",type:"validateLenMin"},Init(t){return{validating(o,a){var r=[];switch(t.controlType){case Enum.ControlType.NumericTextBox:r.push(valid.number);break;case Enum.ControlType.NumericRange:r.push(valid.numberArea);break;case Enum.ControlType.TextBox:case Enum.ControlType.MultiLineText:t.maxValue1&&r.push(valid.validateLen),t.minValue1&&t.minValue1>0&&r.push(valid.validateLenMin);break}if(t.required)switch(t.controlType){case Enum.ControlType.CheckBoxList:case Enum.ControlType.MultiSelectNoSearch:case Enum.ControlType.MultiSelectWithSearch:r.push(valid.requiredMulti);break;case Enum.ControlType.NumericRange:case Enum.ControlType.DateRange:case Enum.ControlType.MonthRange:case Enum.ControlType.DateTimeRange:case Enum.ControlType.ComboBoxWithTextBox:case Enum.ControlType.PhoneNumberText:case Enum.ControlType.PhoneNumberText:case Enum.ControlType.Location:r.push(valid.requiredArea);break;case Enum.ControlType.File:case Enum.ControlType.SliceUpload:r.push(valid.requiredFile);break;case Enum.ControlType.Photo:r.push(valid.requiredPhoto);break;case Enum.ControlType.PhotoSelect:r.push(valid.requiredPhotoSelect);break;case Enum.ControlType.MultiComboBoxWithTextBox:r.push(valid.requiredMultiComboBoxWithTextBox);break;default:r.push(valid.required);break}let l=r;for(let u in l)if(r[u].valid=r[u].action(this,o,a),!r[u].valid)return r[u];return{valid:!0}}}}};function loadFromModel$1(t,o,a){var r=function(l){let u={get placeholder(){return t.placeholder1||"输入你的消息..."},messages:o,get action(){return a&&a.action?a.action:""},set action(s){a.action=s},getFormObj(){var s={},p=this;return Object.defineProperty(s,t.fieldName1,{get:function(){return p.fileSource},enumerable:!0,configurable:!0}),s}};return u=loader.copy(l,u),u=loader.copy(u,valid.Init(u)),u};return r(t)}function selfValidExcute(t,o){return o.required,o.valid=!0,o.valid}function AIModel(t){let o=null;if(t.field){let r=t.field;var a=[];Array.isArray(r.code1)?a=r.code1:a=r.code1&&r.code1!="[]"?JSON.parse(r.code1):[],o=loadFromModel$1(r,a,t.router)}return o}const AI={loadFromModel:loadFromModel$1,selfValidExcute,AIModel};function _getDefaults(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let _defaults=_getDefaults();function changeDefaults(t){_defaults=t}const noopTest={exec:()=>null};function edit(t,o=""){let a=typeof t=="string"?t:t.source;const r={replace:(l,u)=>{let s=typeof u=="string"?u:u.source;return s=s.replace(other.caret,"$1"),a=a.replace(l,s),r},getRegex:()=>new RegExp(a,o)};return r}const other={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},newline=/^(?:[ \t]*(?:\n|$))+/,blockCode=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fences=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bullet=/(?:[*+-]|\d{1,9}[.)])/,lheadingCore=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,lheading=edit(lheadingCore).replace(/bull/g,bullet).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),lheadingGfm=edit(lheadingCore).replace(/bull/g,bullet).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_paragraph=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,blockText=/^[^\n]+/,_blockLabel=/(?!\s*\])(?:\\.|[^\[\]\\])+/,def=edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_blockLabel).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),list=edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bullet).getRegex(),_tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_comment=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,html$2=edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",_comment).replace("tag",_tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),paragraph=edit(_paragraph).replace("hr",hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag).getRegex(),blockquote=edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",paragraph).getRegex(),blockNormal={blockquote,code:blockCode,def,fences,heading,hr,html:html$2,lheading,list,newline,paragraph,table:noopTest,text:blockText},gfmTable=edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag).getRegex(),blockGfm={...blockNormal,lheading:lheadingGfm,table:gfmTable,paragraph:edit(_paragraph).replace("hr",hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gfmTable).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag).getRegex()},blockPedantic={...blockNormal,html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(_paragraph).replace("hr",hr).replace("heading",` *#{1,6} *[^
9
9
  ]`).replace("lheading",lheading).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br=/^( {2,}|\\)\n(?!\s*$)/,inlineText=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,_punctuation=/[\p{P}\p{S}]/u,_punctuationOrSpace=/[\s\p{P}\p{S}]/u,_notPunctuationOrSpace=/[^\s\p{P}\p{S}]/u,punctuation=edit(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_punctuationOrSpace).getRegex(),_punctuationGfmStrongEm=/(?!~)[\p{P}\p{S}]/u,_punctuationOrSpaceGfmStrongEm=/(?!~)[\s\p{P}\p{S}]/u,_notPunctuationOrSpaceGfmStrongEm=/(?:[^\s\p{P}\p{S}]|~)/u,blockSkip=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,emStrongLDelimCore=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,emStrongLDelim=edit(emStrongLDelimCore,"u").replace(/punct/g,_punctuation).getRegex(),emStrongLDelimGfm=edit(emStrongLDelimCore,"u").replace(/punct/g,_punctuationGfmStrongEm).getRegex(),emStrongRDelimAstCore="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",emStrongRDelimAst=edit(emStrongRDelimAstCore,"gu").replace(/notPunctSpace/g,_notPunctuationOrSpace).replace(/punctSpace/g,_punctuationOrSpace).replace(/punct/g,_punctuation).getRegex(),emStrongRDelimAstGfm=edit(emStrongRDelimAstCore,"gu").replace(/notPunctSpace/g,_notPunctuationOrSpaceGfmStrongEm).replace(/punctSpace/g,_punctuationOrSpaceGfmStrongEm).replace(/punct/g,_punctuationGfmStrongEm).getRegex(),emStrongRDelimUnd=edit("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,_notPunctuationOrSpace).replace(/punctSpace/g,_punctuationOrSpace).replace(/punct/g,_punctuation).getRegex(),anyPunctuation=edit(/\\(punct)/,"gu").replace(/punct/g,_punctuation).getRegex(),autolink=edit(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment=edit(_comment).replace("(?:-->|$)","-->").getRegex(),tag=edit("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",_inlineComment).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link=edit(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink=edit(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel).replace("ref",_blockLabel).getRegex(),nolink=edit(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel).getRegex(),reflinkSearch=edit("reflink|nolink(?!\\()","g").replace("reflink",reflink).replace("nolink",nolink).getRegex(),inlineNormal={_backpedal:noopTest,anyPunctuation,autolink,blockSkip,br,code:inlineCode,del:noopTest,emStrongLDelim,emStrongRDelimAst,emStrongRDelimUnd,escape:escape$1,link,nolink,punctuation,reflink,reflinkSearch,tag,text:inlineText,url:noopTest},inlinePedantic={...inlineNormal,link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel).getRegex()},inlineGfm={...inlineNormal,emStrongRDelimAst:emStrongRDelimAstGfm,emStrongLDelim:emStrongLDelimGfm,url:edit(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},inlineBreaks={...inlineGfm,br:edit(br).replace("{2,}","*").getRegex(),text:edit(inlineGfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},block={normal:blockNormal,gfm:blockGfm,pedantic:blockPedantic},inline={normal:inlineNormal,gfm:inlineGfm,breaks:inlineBreaks,pedantic:inlinePedantic},escapeReplacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},getEscapeReplacement=t=>escapeReplacements[t];function escape$2(t,o){if(o){if(other.escapeTest.test(t))return t.replace(other.escapeReplace,getEscapeReplacement)}else if(other.escapeTestNoEncode.test(t))return t.replace(other.escapeReplaceNoEncode,getEscapeReplacement);return t}function cleanUrl(t){try{t=encodeURI(t).replace(other.percentDecode,"%")}catch{return null}return t}function splitCells(t,o){var u;const a=t.replace(other.findPipe,(s,p,h)=>{let e=!1,m=p;for(;--m>=0&&h[m]==="\\";)e=!e;return e?"|":" |"}),r=a.split(other.splitPipe);let l=0;if(r[0].trim()||r.shift(),r.length>0&&!((u=r.at(-1))!=null&&u.trim())&&r.pop(),o)if(r.length>o)r.splice(o);else for(;r.length<o;)r.push("");for(;l<r.length;l++)r[l]=r[l].trim().replace(other.slashPipe,"|");return r}function rtrim(t,o,a){const r=t.length;if(r===0)return"";let l=0;for(;l<r&&t.charAt(r-l-1)===o;)l++;return t.slice(0,r-l)}function findClosingBracket(t,o){if(t.indexOf(o[1])===-1)return-1;let a=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===o[0])a++;else if(t[r]===o[1]&&(a--,a<0))return r;return-1}function outputLink(t,o,a,r,l){const u=o.href,s=o.title||null,p=t[1].replace(l.other.outputLinkReplace,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const h={type:"link",raw:a,href:u,title:s,text:p,tokens:r.inlineTokens(p)};return r.state.inLink=!1,h}return{type:"image",raw:a,href:u,title:s,text:p}}function indentCodeCompensation(t,o,a){const r=t.match(a.other.indentCodeCompensation);if(r===null)return o;const l=r[1];return o.split(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven-v3",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -128,7 +128,6 @@ const request = {
128
128
  return Promise.resolve(response.data, response.headers);
129
129
  },
130
130
  postHandler(url, params, scripts) {
131
- console.log("postHandler-----",params);
132
131
  if (params.action.indexOf('http://') > -1 || params.action.indexOf('https://') > -1) {
133
132
  url = params.action;
134
133
  params = params.para;
@@ -137,7 +136,6 @@ const request = {
137
136
  url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + (params.action.charAt(0) == '/' ? params.action.substr(1) : params.action);
138
137
  params = params.para;
139
138
  }
140
- console.log("-----",params);
141
139
  return Axios.post(url, params, {
142
140
  headers: common.getDataDrivenOpts().handler.getRequestHeaders(),
143
141
  }).then((response) => {