hongshu-view 0.4.2 → 0.4.3
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.
package/dist/hongshu-view.mjs
CHANGED
|
@@ -20391,7 +20391,7 @@ function q3e(o, a = !0, c) {
|
|
|
20391
20391
|
a && B2({
|
|
20392
20392
|
type: "error",
|
|
20393
20393
|
grouping: !0,
|
|
20394
|
-
message: C.message
|
|
20394
|
+
message: C.message || C.msg
|
|
20395
20395
|
});
|
|
20396
20396
|
}
|
|
20397
20397
|
} else {
|
|
@@ -20757,7 +20757,7 @@ const JP = Gg("methods.Ajax"), Hz = {
|
|
|
20757
20757
|
param: a,
|
|
20758
20758
|
option: c
|
|
20759
20759
|
};
|
|
20760
|
-
return yield q3e(E, c.errorMsg, _);
|
|
20760
|
+
return yield q3e(E, c.errorMsg, _), E;
|
|
20761
20761
|
} else
|
|
20762
20762
|
throw console.warn("ajax出现错误,并忽略错误处理"), console.error(E), E;
|
|
20763
20763
|
}
|
|
@@ -22824,7 +22824,7 @@ const c4 = Gg("components.FileList"), gPe = c4("previewText"), hPe = c4("downloa
|
|
|
22824
22824
|
const c = o, d = Xi("zy-filelist"), h = Ye(!1), { downloadPath: y, moduleId: C, mark: E } = c, _ = Tc(c, "auth"), $ = gf(), N = Ye(!1);
|
|
22825
22825
|
(c.tip || $.tip) && (N.value = !0);
|
|
22826
22826
|
const L = Me(() => c.opt ? c.limit < 0 ? !0 : c.limit > c.list.length : !1), Z = (J) => {
|
|
22827
|
-
let Ne = /((\.docx?)$)|((\.xlsx)$)|((\.xls)$)|((\.pdf)$)|((\.txt)$)|((\.bmp)$)|((\.pptx?)$)|((\.gif)$)|((\.png)$)|((\.jpe?g)$)|((\.mp4)$)|((\.json)$)/;
|
|
22827
|
+
let Ne = /((\.docx?)$)|((\.xlsx)$)|((\.xls)$)|((\.pdf)$)|((\.txt)$)|((\.bmp)$)|((\.pptx?)$)|((\.gif)$)|((\.png)$)|((\.jpe?g)$)|((\.mp4)$)|((\.json)$)|((\.zip)$)/;
|
|
22828
22828
|
return J ? !!Ne.test(J) : !1;
|
|
22829
22829
|
}, q = (J) => {
|
|
22830
22830
|
if (!Z(J.filename)) {
|
package/dist/hongshu-view.umd.js
CHANGED
|
@@ -52,7 +52,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
52
52
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...u){const m=new this(l);return u.forEach(b=>m.set(b)),m}static accessor(l){const m=(this[eae]=this[eae]={accessors:{}}).accessors,b=this.prototype;function w(S){const k=h4(S);m[k]||(G_e(b,S),m[k]=!0)}return nn.isArray(l)?l.forEach(w):w(l),this}}kP.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nn.freezeMethods(kP.prototype),nn.freezeMethods(kP);const B1=kP;function L9(o,l){const u=this||I9,m=l||u,b=B1.from(m.headers);let w=m.data;return nn.forEach(o,function(k){w=k.call(u,w,b.normalize(),l?l.status:void 0)}),b.normalize(),w}function tae(o){return!!(o&&o.__CANCEL__)}function g4(o,l,u){na.call(this,o==null?"canceled":o,na.ERR_CANCELED,l,u),this.name="CanceledError"}nn.inherits(g4,na,{__CANCEL__:!0});function K_e(o,l,u){const m=u.config.validateStatus;!u.status||!m||m(u.status)?o(u):l(new na("Request failed with status code "+u.status,[na.ERR_BAD_REQUEST,na.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}const Y_e=$g.isStandardBrowserEnv?function(){return{write:function(u,m,b,w,S,k){const _=[];_.push(u+"="+encodeURIComponent(m)),nn.isNumber(b)&&_.push("expires="+new Date(b).toGMTString()),nn.isString(w)&&_.push("path="+w),nn.isString(S)&&_.push("domain="+S),k===!0&&_.push("secure"),document.cookie=_.join("; ")},read:function(u){const m=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return m?decodeURIComponent(m[3]):null},remove:function(u){this.write(u,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function X_e(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function J_e(o,l){return l?o.replace(/\/+$/,"")+"/"+l.replace(/^\/+/,""):o}function nae(o,l){return o&&!X_e(l)?J_e(o,l):l}const Q_e=$g.isStandardBrowserEnv?function(){const l=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a");let m;function b(w){let S=w;return l&&(u.setAttribute("href",S),S=u.href),u.setAttribute("href",S),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:u.pathname.charAt(0)==="/"?u.pathname:"/"+u.pathname}}return m=b(window.location.href),function(S){const k=nn.isString(S)?b(S):S;return k.protocol===m.protocol&&k.host===m.host}}():function(){return function(){return!0}}();function eOe(o){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return l&&l[1]||""}function tOe(o,l){o=o||10;const u=new Array(o),m=new Array(o);let b=0,w=0,S;return l=l!==void 0?l:1e3,function(_){const B=Date.now(),P=m[w];S||(S=B),u[b]=_,m[b]=B;let L=w,Z=0;for(;L!==b;)Z+=u[L++],L=L%o;if(b=(b+1)%o,b===w&&(w=(w+1)%o),B-S<l)return;const q=P&&B-P;return q?Math.round(Z*1e3/q):void 0}}function oae(o,l){let u=0;const m=tOe(50,250);return b=>{const w=b.loaded,S=b.lengthComputable?b.total:void 0,k=w-u,_=m(k),B=w<=S;u=w;const P={loaded:w,total:S,progress:S?w/S:void 0,bytes:k,rate:_||void 0,estimated:_&&S&&B?(S-w)/_:void 0,event:b};P[l?"download":"upload"]=!0,o(P)}}const TP={http:O_e,xhr:typeof XMLHttpRequest!="undefined"&&function(o){return new Promise(function(u,m){let b=o.data;const w=B1.from(o.headers).normalize(),S=o.responseType;let k;function _(){o.cancelToken&&o.cancelToken.unsubscribe(k),o.signal&&o.signal.removeEventListener("abort",k)}nn.isFormData(b)&&($g.isStandardBrowserEnv||$g.isStandardBrowserWebWorkerEnv?w.setContentType(!1):w.setContentType("multipart/form-data;",!1));let B=new XMLHttpRequest;if(o.auth){const q=o.auth.username||"",G=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";w.set("Authorization","Basic "+btoa(q+":"+G))}const P=nae(o.baseURL,o.url);B.open(o.method.toUpperCase(),Yre(P,o.params,o.paramsSerializer),!0),B.timeout=o.timeout;function L(){if(!B)return;const q=B1.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),U={data:!S||S==="text"||S==="json"?B.responseText:B.response,status:B.status,statusText:B.statusText,headers:q,config:o,request:B};K_e(function(ee){u(ee),_()},function(ee){m(ee),_()},U),B=null}if("onloadend"in B?B.onloadend=L:B.onreadystatechange=function(){!B||B.readyState!==4||B.status===0&&!(B.responseURL&&B.responseURL.indexOf("file:")===0)||setTimeout(L)},B.onabort=function(){B&&(m(new na("Request aborted",na.ECONNABORTED,o,B)),B=null)},B.onerror=function(){m(new na("Network Error",na.ERR_NETWORK,o,B)),B=null},B.ontimeout=function(){let G=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const U=o.transitional||Jre;o.timeoutErrorMessage&&(G=o.timeoutErrorMessage),m(new na(G,U.clarifyTimeoutError?na.ETIMEDOUT:na.ECONNABORTED,o,B)),B=null},$g.isStandardBrowserEnv){const q=(o.withCredentials||Q_e(P))&&o.xsrfCookieName&&Y_e.read(o.xsrfCookieName);q&&w.set(o.xsrfHeaderName,q)}b===void 0&&w.setContentType(null),"setRequestHeader"in B&&nn.forEach(w.toJSON(),function(G,U){B.setRequestHeader(U,G)}),nn.isUndefined(o.withCredentials)||(B.withCredentials=!!o.withCredentials),S&&S!=="json"&&(B.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&B.addEventListener("progress",oae(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&B.upload&&B.upload.addEventListener("progress",oae(o.onUploadProgress)),(o.cancelToken||o.signal)&&(k=q=>{B&&(m(!q||q.type?new g4(null,o,B):q),B.abort(),B=null)},o.cancelToken&&o.cancelToken.subscribe(k),o.signal&&(o.signal.aborted?k():o.signal.addEventListener("abort",k)));const Z=eOe(P);if(Z&&$g.protocols.indexOf(Z)===-1){m(new na("Unsupported protocol "+Z+":",na.ERR_BAD_REQUEST,o));return}B.send(b||null)})}};nn.forEach(TP,(o,l)=>{if(o){try{Object.defineProperty(o,"name",{value:l})}catch(u){}Object.defineProperty(o,"adapterName",{value:l})}});const nOe={getAdapter:o=>{o=nn.isArray(o)?o:[o];const{length:l}=o;let u,m;for(let b=0;b<l&&(u=o[b],!(m=nn.isString(u)?TP[u.toLowerCase()]:u));b++);if(!m)throw m===!1?new na(`Adapter ${u} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(nn.hasOwnProp(TP,u)?`Adapter '${u}' is not available in the build`:`Unknown adapter '${u}'`);if(!nn.isFunction(m))throw new TypeError("adapter is not a function");return m},adapters:TP};function z9(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new g4(null,o)}function sae(o){return z9(o),o.headers=B1.from(o.headers),o.data=L9.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),nOe.getAdapter(o.adapter||I9.adapter)(o).then(function(m){return z9(o),m.data=L9.call(o,o.transformResponse,m),m.headers=B1.from(m.headers),m},function(m){return tae(m)||(z9(o),m&&m.response&&(m.response.data=L9.call(o,o.transformResponse,m.response),m.response.headers=B1.from(m.response.headers))),Promise.reject(m)})}const rae=o=>o instanceof B1?o.toJSON():o;function xE(o,l){l=l||{};const u={};function m(B,P,L){return nn.isPlainObject(B)&&nn.isPlainObject(P)?nn.merge.call({caseless:L},B,P):nn.isPlainObject(P)?nn.merge({},P):nn.isArray(P)?P.slice():P}function b(B,P,L){if(nn.isUndefined(P)){if(!nn.isUndefined(B))return m(void 0,B,L)}else return m(B,P,L)}function w(B,P){if(!nn.isUndefined(P))return m(void 0,P)}function S(B,P){if(nn.isUndefined(P)){if(!nn.isUndefined(B))return m(void 0,B)}else return m(void 0,P)}function k(B,P,L){if(L in l)return m(B,P);if(L in o)return m(void 0,B)}const _={url:w,method:w,data:w,baseURL:S,transformRequest:S,transformResponse:S,paramsSerializer:S,timeout:S,timeoutMessage:S,withCredentials: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:k,headers:(B,P)=>b(rae(B),rae(P),!0)};return nn.forEach(Object.keys(Object.assign({},o,l)),function(P){const L=_[P]||b,Z=L(o[P],l[P],P);nn.isUndefined(Z)&&L!==k||(u[P]=Z)}),u}const aae="1.4.0",V9={};["object","boolean","number","function","string","symbol"].forEach((o,l)=>{V9[o]=function(m){return typeof m===o||"a"+(l<1?"n ":" ")+o}});const lae={};V9.transitional=function(l,u,m){function b(w,S){return"[Axios v"+aae+"] Transitional option '"+w+"'"+S+(m?". "+m:"")}return(w,S,k)=>{if(l===!1)throw new na(b(S," has been removed"+(u?" in "+u:"")),na.ERR_DEPRECATED);return u&&!lae[S]&&(lae[S]=!0,console.warn(b(S," has been deprecated since v"+u+" and will be removed in the near future"))),l?l(w,S,k):!0}};function oOe(o,l,u){if(typeof o!="object")throw new na("options must be an object",na.ERR_BAD_OPTION_VALUE);const m=Object.keys(o);let b=m.length;for(;b-- >0;){const w=m[b],S=l[w];if(S){const k=o[w],_=k===void 0||S(k,w,o);if(_!==!0)throw new na("option "+w+" must be "+_,na.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new na("Unknown option "+w,na.ERR_BAD_OPTION)}}const H9={assertOptions:oOe,validators:V9},V0=H9.validators;class _P{constructor(l){this.defaults=l,this.interceptors={request:new Xre,response:new Xre}}request(l,u){typeof l=="string"?(u=u||{},u.url=l):u=l||{},u=xE(this.defaults,u);const{transitional:m,paramsSerializer:b,headers:w}=u;m!==void 0&&H9.assertOptions(m,{silentJSONParsing:V0.transitional(V0.boolean),forcedJSONParsing:V0.transitional(V0.boolean),clarifyTimeoutError:V0.transitional(V0.boolean)},!1),b!=null&&(nn.isFunction(b)?u.paramsSerializer={serialize:b}:H9.assertOptions(b,{encode:V0.function,serialize:V0.function},!0)),u.method=(u.method||this.defaults.method||"get").toLowerCase();let S;S=w&&nn.merge(w.common,w[u.method]),S&&nn.forEach(["delete","get","head","post","put","patch","common"],G=>{delete w[G]}),u.headers=B1.concat(S,w);const k=[];let _=!0;this.interceptors.request.forEach(function(U){typeof U.runWhen=="function"&&U.runWhen(u)===!1||(_=_&&U.synchronous,k.unshift(U.fulfilled,U.rejected))});const B=[];this.interceptors.response.forEach(function(U){B.push(U.fulfilled,U.rejected)});let P,L=0,Z;if(!_){const G=[sae.bind(this),void 0];for(G.unshift.apply(G,k),G.push.apply(G,B),Z=G.length,P=Promise.resolve(u);L<Z;)P=P.then(G[L++],G[L++]);return P}Z=k.length;let q=u;for(L=0;L<Z;){const G=k[L++],U=k[L++];try{q=G(q)}catch(X){U.call(this,X);break}}try{P=sae.call(this,q)}catch(G){return Promise.reject(G)}for(L=0,Z=B.length;L<Z;)P=P.then(B[L++],B[L++]);return P}getUri(l){l=xE(this.defaults,l);const u=nae(l.baseURL,l.url);return Yre(u,l.params,l.paramsSerializer)}}nn.forEach(["delete","get","head","options"],function(l){_P.prototype[l]=function(u,m){return this.request(xE(m||{},{method:l,url:u,data:(m||{}).data}))}}),nn.forEach(["post","put","patch"],function(l){function u(m){return function(w,S,k){return this.request(xE(k||{},{method:l,headers:m?{"Content-Type":"multipart/form-data"}:{},url:w,data:S}))}}_P.prototype[l]=u(),_P.prototype[l+"Form"]=u(!0)});const OP=_P;class U9{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(w){u=w});const m=this;this.promise.then(b=>{if(!m._listeners)return;let w=m._listeners.length;for(;w-- >0;)m._listeners[w](b);m._listeners=null}),this.promise.then=b=>{let w;const S=new Promise(k=>{m.subscribe(k),w=k}).then(b);return S.cancel=function(){m.unsubscribe(w)},S},l(function(w,S,k){m.reason||(m.reason=new g4(w,S,k),u(m.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const u=this._listeners.indexOf(l);u!==-1&&this._listeners.splice(u,1)}static source(){let l;return{token:new U9(function(b){l=b}),cancel:l}}}const sOe=U9;function rOe(o){return function(u){return o.apply(null,u)}}function aOe(o){return nn.isObject(o)&&o.isAxiosError===!0}const W9={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(W9).forEach(([o,l])=>{W9[l]=o});const lOe=W9;function iae(o){const l=new OP(o),u=Rre(OP.prototype.request,l);return nn.extend(u,OP.prototype,l,{allOwnKeys:!0}),nn.extend(u,l,null,{allOwnKeys:!0}),u.create=function(b){return iae(xE(o,b))},u}const Rc=iae(I9);Rc.Axios=OP,Rc.CanceledError=g4,Rc.CancelToken=sOe,Rc.isCancel=tae,Rc.VERSION=aae,Rc.toFormData=SP,Rc.AxiosError=na,Rc.Cancel=Rc.CanceledError,Rc.all=function(l){return Promise.all(l)},Rc.spread=rOe,Rc.isAxiosError=aOe,Rc.mergeConfig=xE,Rc.AxiosHeaders=B1,Rc.formToJSON=o=>Qre(nn.isHTMLForm(o)?new FormData(o):o),Rc.HttpStatusCode=lOe,Rc.default=Rc;const cae=Rc;var iOe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var l={},u=Symbol("test"),m=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(m)!=="[object Symbol]")return!1;var b=42;l[u]=b;for(u in l)return!1;if(typeof Object.keys=="function"&&Object.keys(l).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(l).length!==0)return!1;var w=Object.getOwnPropertySymbols(l);if(w.length!==1||w[0]!==u||!Object.prototype.propertyIsEnumerable.call(l,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(l,u);if(S.value!==b||S.enumerable!==!0)return!1}return!0},uae=typeof Symbol!="undefined"&&Symbol,cOe=iOe,uOe=function(){return typeof uae!="function"||typeof Symbol!="function"||typeof uae("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cOe()},dae={foo:{}},dOe=Object,fOe=function(){return{__proto__:dae}.foo===dae.foo&&!({__proto__:null}instanceof dOe)},mOe="Function.prototype.bind called on incompatible ",j9=Array.prototype.slice,pOe=Object.prototype.toString,hOe="[object Function]",gOe=function(l){var u=this;if(typeof u!="function"||pOe.call(u)!==hOe)throw new TypeError(mOe+u);for(var m=j9.call(arguments,1),b,w=function(){if(this instanceof b){var P=u.apply(this,m.concat(j9.call(arguments)));return Object(P)===P?P:this}else return u.apply(l,m.concat(j9.call(arguments)))},S=Math.max(0,u.length-m.length),k=[],_=0;_<S;_++)k.push("$"+_);if(b=Function("binder","return function ("+k.join(",")+"){ return binder.apply(this,arguments); }")(w),u.prototype){var B=function(){};B.prototype=u.prototype,b.prototype=new B,B.prototype=null}return b},bOe=gOe,Z9=Function.prototype.bind||bOe,yOe=Z9,vOe=yOe.call(Function.call,Object.prototype.hasOwnProperty),Ur,EE=SyntaxError,fae=Function,kE=TypeError,q9=function(o){try{return fae('"use strict"; return ('+o+").constructor;")()}catch(l){}},BC=Object.getOwnPropertyDescriptor;if(BC)try{BC({},"")}catch(o){BC=null}var G9=function(){throw new kE},wOe=BC?function(){try{return arguments.callee,G9}catch(o){try{return BC(arguments,"callee").get}catch(l){return G9}}}():G9,TE=uOe(),COe=fOe(),nu=Object.getPrototypeOf||(COe?function(o){return o.__proto__}:null),_E={},SOe=typeof Uint8Array=="undefined"||!nu?Ur:nu(Uint8Array),$C={"%AggregateError%":typeof AggregateError=="undefined"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":TE&&nu?nu([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":_E,"%AsyncGenerator%":_E,"%AsyncGeneratorFunction%":_E,"%AsyncIteratorPrototype%":_E,"%Atomics%":typeof Atomics=="undefined"?Ur:Atomics,"%BigInt%":typeof BigInt=="undefined"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?Ur:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Ur:FinalizationRegistry,"%Function%":fae,"%GeneratorFunction%":_E,"%Int8Array%":typeof Int8Array=="undefined"?Ur:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Ur:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":TE&&nu?nu(nu([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map=="undefined"?Ur:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!TE||!nu?Ur:nu(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Ur:Promise,"%Proxy%":typeof Proxy=="undefined"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Ur:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!TE||!nu?Ur:nu(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":TE&&nu?nu(""[Symbol.iterator]()):Ur,"%Symbol%":TE?Symbol:Ur,"%SyntaxError%":EE,"%ThrowTypeError%":wOe,"%TypedArray%":SOe,"%TypeError%":kE,"%Uint8Array%":typeof Uint8Array=="undefined"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?Ur:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Ur:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Ur:WeakSet};if(nu)try{null.error}catch(o){var xOe=nu(nu(o));$C["%Error.prototype%"]=xOe}var EOe=function o(l){var u;if(l==="%AsyncFunction%")u=q9("async function () {}");else if(l==="%GeneratorFunction%")u=q9("function* () {}");else if(l==="%AsyncGeneratorFunction%")u=q9("async function* () {}");else if(l==="%AsyncGenerator%"){var m=o("%AsyncGeneratorFunction%");m&&(u=m.prototype)}else if(l==="%AsyncIteratorPrototype%"){var b=o("%AsyncGenerator%");b&&nu&&(u=nu(b.prototype))}return $C[l]=u,u},mae={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b4=Z9,AP=vOe,kOe=b4.call(Function.call,Array.prototype.concat),TOe=b4.call(Function.apply,Array.prototype.splice),pae=b4.call(Function.call,String.prototype.replace),NP=b4.call(Function.call,String.prototype.slice),_Oe=b4.call(Function.call,RegExp.prototype.exec),OOe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,AOe=/\\(\\)?/g,NOe=function(l){var u=NP(l,0,1),m=NP(l,-1);if(u==="%"&&m!=="%")throw new EE("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&u!=="%")throw new EE("invalid intrinsic syntax, expected opening `%`");var b=[];return pae(l,OOe,function(w,S,k,_){b[b.length]=k?pae(_,AOe,"$1"):S||w}),b},BOe=function(l,u){var m=l,b;if(AP(mae,m)&&(b=mae[m],m="%"+b[0]+"%"),AP($C,m)){var w=$C[m];if(w===_E&&(w=EOe(m)),typeof w=="undefined"&&!u)throw new kE("intrinsic "+l+" exists, but is not available. Please file an issue!");return{alias:b,name:m,value:w}}throw new EE("intrinsic "+l+" does not exist!")},K9=function(l,u){if(typeof l!="string"||l.length===0)throw new kE("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof u!="boolean")throw new kE('"allowMissing" argument must be a boolean');if(_Oe(/^%?[^%]*%?$/,l)===null)throw new EE("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=NOe(l),b=m.length>0?m[0]:"",w=BOe("%"+b+"%",u),S=w.name,k=w.value,_=!1,B=w.alias;B&&(b=B[0],TOe(m,kOe([0,1],B)));for(var P=1,L=!0;P<m.length;P+=1){var Z=m[P],q=NP(Z,0,1),G=NP(Z,-1);if((q==='"'||q==="'"||q==="`"||G==='"'||G==="'"||G==="`")&&q!==G)throw new EE("property names with quotes must have matching quotes");if((Z==="constructor"||!L)&&(_=!0),b+="."+Z,S="%"+b+"%",AP($C,S))k=$C[S];else if(k!=null){if(!(Z in k)){if(!u)throw new kE("base intrinsic for "+l+" exists, but the property is not available.");return}if(BC&&P+1>=m.length){var U=BC(k,Z);L=!!U,L&&"get"in U&&!("originalValue"in U.get)?k=U.get:k=k[Z]}else L=AP(k,Z),k=k[Z];L&&!_&&($C[S]=k)}}return k},hae={exports:{}};(function(o){var l=Z9,u=K9,m=u("%Function.prototype.apply%"),b=u("%Function.prototype.call%"),w=u("%Reflect.apply%",!0)||l.call(b,m),S=u("%Object.getOwnPropertyDescriptor%",!0),k=u("%Object.defineProperty%",!0),_=u("%Math.max%");if(k)try{k({},"a",{value:1})}catch(P){k=null}o.exports=function(L){var Z=w(l,b,arguments);if(S&&k){var q=S(Z,"length");q.configurable&&k(Z,"length",{value:1+_(0,L.length-(arguments.length-1))})}return Z};var B=function(){return w(l,m,arguments)};k?k(o.exports,"apply",{value:B}):o.exports.apply=B})(hae);var $Oe=hae.exports,gae=K9,bae=$Oe,DOe=bae(gae("String.prototype.indexOf")),ROe=function(l,u){var m=gae(l,!!u);return typeof m=="function"&&DOe(l,".prototype.")>-1?bae(m):m};const MOe=$Ce(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Y9=typeof Map=="function"&&Map.prototype,X9=Object.getOwnPropertyDescriptor&&Y9?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,BP=Y9&&X9&&typeof X9.get=="function"?X9.get:null,yae=Y9&&Map.prototype.forEach,J9=typeof Set=="function"&&Set.prototype,Q9=Object.getOwnPropertyDescriptor&&J9?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$P=J9&&Q9&&typeof Q9.get=="function"?Q9.get:null,vae=J9&&Set.prototype.forEach,POe=typeof WeakMap=="function"&&WeakMap.prototype,y4=POe?WeakMap.prototype.has:null,IOe=typeof WeakSet=="function"&&WeakSet.prototype,v4=IOe?WeakSet.prototype.has:null,FOe=typeof WeakRef=="function"&&WeakRef.prototype,wae=FOe?WeakRef.prototype.deref:null,LOe=Boolean.prototype.valueOf,zOe=Object.prototype.toString,VOe=Function.prototype.toString,HOe=String.prototype.match,eU=String.prototype.slice,H0=String.prototype.replace,UOe=String.prototype.toUpperCase,Cae=String.prototype.toLowerCase,Sae=RegExp.prototype.test,xae=Array.prototype.concat,Dg=Array.prototype.join,WOe=Array.prototype.slice,Eae=Math.floor,tU=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nU=Object.getOwnPropertySymbols,oU=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,OE=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ed=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===OE||"symbol")?Symbol.toStringTag:null,kae=Object.prototype.propertyIsEnumerable,Tae=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(o){return o.__proto__}:null);function _ae(o,l){if(o===1/0||o===-1/0||o!==o||o&&o>-1e3&&o<1e3||Sae.call(/e/,l))return l;var u=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof o=="number"){var m=o<0?-Eae(-o):Eae(o);if(m!==o){var b=String(m),w=eU.call(l,b.length+1);return H0.call(b,u,"$&_")+"."+H0.call(H0.call(w,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H0.call(l,u,"$&_")}var sU=MOe,Oae=sU.custom,Aae=$ae(Oae)?Oae:null,jOe=function o(l,u,m,b){var w=u||{};if(U0(w,"quoteStyle")&&w.quoteStyle!=="single"&&w.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U0(w,"maxStringLength")&&(typeof w.maxStringLength=="number"?w.maxStringLength<0&&w.maxStringLength!==1/0:w.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=U0(w,"customInspect")?w.customInspect:!0;if(typeof S!="boolean"&&S!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U0(w,"indent")&&w.indent!==null&&w.indent!==" "&&!(parseInt(w.indent,10)===w.indent&&w.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U0(w,"numericSeparator")&&typeof w.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var k=w.numericSeparator;if(typeof l=="undefined")return"undefined";if(l===null)return"null";if(typeof l=="boolean")return l?"true":"false";if(typeof l=="string")return Rae(l,w);if(typeof l=="number"){if(l===0)return 1/0/l>0?"0":"-0";var _=String(l);return k?_ae(l,_):_}if(typeof l=="bigint"){var B=String(l)+"n";return k?_ae(l,B):B}var P=typeof w.depth=="undefined"?5:w.depth;if(typeof m=="undefined"&&(m=0),m>=P&&P>0&&typeof l=="object")return rU(l)?"[Array]":"[Object]";var L=cAe(w,m);if(typeof b=="undefined")b=[];else if(Dae(b,l)>=0)return"[Circular]";function Z(bt,At,Qe){if(At&&(b=WOe.call(b),b.push(At)),Qe){var M={depth:w.depth};return U0(w,"quoteStyle")&&(M.quoteStyle=w.quoteStyle),o(bt,M,m+1,b)}return o(bt,w,m+1,b)}if(typeof l=="function"&&!Bae(l)){var q=eAe(l),G=DP(l,Z);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(G.length>0?" { "+Dg.call(G,", ")+" }":"")}if($ae(l)){var U=OE?H0.call(String(l),/^(Symbol\(.*\))_[^)]*$/,"$1"):oU.call(l);return typeof l=="object"&&!OE?w4(U):U}if(aAe(l)){for(var X="<"+Cae.call(String(l.nodeName)),ee=l.attributes||[],se=0;se<ee.length;se++)X+=" "+ee[se].name+"="+Nae(ZOe(ee[se].value),"double",w);return X+=">",l.childNodes&&l.childNodes.length&&(X+="..."),X+="</"+Cae.call(String(l.nodeName))+">",X}if(rU(l)){if(l.length===0)return"[]";var H=DP(l,Z);return L&&!iAe(H)?"["+lU(H,L)+"]":"[ "+Dg.call(H,", ")+" ]"}if(GOe(l)){var J=DP(l,Z);return!("cause"in Error.prototype)&&"cause"in l&&!kae.call(l,"cause")?"{ ["+String(l)+"] "+Dg.call(xae.call("[cause]: "+Z(l.cause),J),", ")+" }":J.length===0?"["+String(l)+"]":"{ ["+String(l)+"] "+Dg.call(J,", ")+" }"}if(typeof l=="object"&&S){if(Aae&&typeof l[Aae]=="function"&&sU)return sU(l,{depth:P-m});if(S!=="symbol"&&typeof l.inspect=="function")return l.inspect()}if(tAe(l)){var De=[];return yae&&yae.call(l,function(bt,At){De.push(Z(At,l,!0)+" => "+Z(bt,l))}),Mae("Map",BP.call(l),De,L)}if(sAe(l)){var pe=[];return vae&&vae.call(l,function(bt){pe.push(Z(bt,l))}),Mae("Set",$P.call(l),pe,L)}if(nAe(l))return aU("WeakMap");if(rAe(l))return aU("WeakSet");if(oAe(l))return aU("WeakRef");if(YOe(l))return w4(Z(Number(l)));if(JOe(l))return w4(Z(tU.call(l)));if(XOe(l))return w4(LOe.call(l));if(KOe(l))return w4(Z(String(l)));if(!qOe(l)&&!Bae(l)){var W=DP(l,Z),Se=Tae?Tae(l)===Object.prototype:l instanceof Object||l.constructor===Object,Ke=l instanceof Object?"":"null prototype",Me=!Se&&ed&&Object(l)===l&&ed in l?eU.call(W0(l),8,-1):Ke?"Object":"",Ee=Se||typeof l.constructor!="function"?"":l.constructor.name?l.constructor.name+" ":"",de=Ee+(Me||Ke?"["+Dg.call(xae.call([],Me||[],Ke||[]),": ")+"] ":"");return W.length===0?de+"{}":L?de+"{"+lU(W,L)+"}":de+"{ "+Dg.call(W,", ")+" }"}return String(l)};function Nae(o,l,u){var m=(u.quoteStyle||l)==="double"?'"':"'";return m+o+m}function ZOe(o){return H0.call(String(o),/"/g,""")}function rU(o){return W0(o)==="[object Array]"&&(!ed||!(typeof o=="object"&&ed in o))}function qOe(o){return W0(o)==="[object Date]"&&(!ed||!(typeof o=="object"&&ed in o))}function Bae(o){return W0(o)==="[object RegExp]"&&(!ed||!(typeof o=="object"&&ed in o))}function GOe(o){return W0(o)==="[object Error]"&&(!ed||!(typeof o=="object"&&ed in o))}function KOe(o){return W0(o)==="[object String]"&&(!ed||!(typeof o=="object"&&ed in o))}function YOe(o){return W0(o)==="[object Number]"&&(!ed||!(typeof o=="object"&&ed in o))}function XOe(o){return W0(o)==="[object Boolean]"&&(!ed||!(typeof o=="object"&&ed in o))}function $ae(o){if(OE)return o&&typeof o=="object"&&o instanceof Symbol;if(typeof o=="symbol")return!0;if(!o||typeof o!="object"||!oU)return!1;try{return oU.call(o),!0}catch(l){}return!1}function JOe(o){if(!o||typeof o!="object"||!tU)return!1;try{return tU.call(o),!0}catch(l){}return!1}var QOe=Object.prototype.hasOwnProperty||function(o){return o in this};function U0(o,l){return QOe.call(o,l)}function W0(o){return zOe.call(o)}function eAe(o){if(o.name)return o.name;var l=HOe.call(VOe.call(o),/^function\s*([\w$]+)/);return l?l[1]:null}function Dae(o,l){if(o.indexOf)return o.indexOf(l);for(var u=0,m=o.length;u<m;u++)if(o[u]===l)return u;return-1}function tAe(o){if(!BP||!o||typeof o!="object")return!1;try{BP.call(o);try{$P.call(o)}catch(l){return!0}return o instanceof Map}catch(l){}return!1}function nAe(o){if(!y4||!o||typeof o!="object")return!1;try{y4.call(o,y4);try{v4.call(o,v4)}catch(l){return!0}return o instanceof WeakMap}catch(l){}return!1}function oAe(o){if(!wae||!o||typeof o!="object")return!1;try{return wae.call(o),!0}catch(l){}return!1}function sAe(o){if(!$P||!o||typeof o!="object")return!1;try{$P.call(o);try{BP.call(o)}catch(l){return!0}return o instanceof Set}catch(l){}return!1}function rAe(o){if(!v4||!o||typeof o!="object")return!1;try{v4.call(o,v4);try{y4.call(o,y4)}catch(l){return!0}return o instanceof WeakSet}catch(l){}return!1}function aAe(o){return!o||typeof o!="object"?!1:typeof HTMLElement!="undefined"&&o instanceof HTMLElement?!0:typeof o.nodeName=="string"&&typeof o.getAttribute=="function"}function Rae(o,l){if(o.length>l.maxStringLength){var u=o.length-l.maxStringLength,m="... "+u+" more character"+(u>1?"s":"");return Rae(eU.call(o,0,l.maxStringLength),l)+m}var b=H0.call(H0.call(o,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lAe);return Nae(b,"single",l)}function lAe(o){var l=o.charCodeAt(0),u={8:"b",9:"t",10:"n",12:"f",13:"r"}[l];return u?"\\"+u:"\\x"+(l<16?"0":"")+UOe.call(l.toString(16))}function w4(o){return"Object("+o+")"}function aU(o){return o+" { ? }"}function Mae(o,l,u,m){var b=m?lU(u,m):Dg.call(u,", ");return o+" ("+l+") {"+b+"}"}function iAe(o){for(var l=0;l<o.length;l++)if(Dae(o[l],`
|
|
53
53
|
`)>=0)return!1;return!0}function cAe(o,l){var u;if(o.indent===" ")u=" ";else if(typeof o.indent=="number"&&o.indent>0)u=Dg.call(Array(o.indent+1)," ");else return null;return{base:u,prev:Dg.call(Array(l+1),u)}}function lU(o,l){if(o.length===0)return"";var u=`
|
|
54
54
|
`+l.prev+l.base;return u+Dg.call(o,","+u)+`
|
|
55
|
-
`+l.prev}function DP(o,l){var u=rU(o),m=[];if(u){m.length=o.length;for(var b=0;b<o.length;b++)m[b]=U0(o,b)?l(o[b],o):""}var w=typeof nU=="function"?nU(o):[],S;if(OE){S={};for(var k=0;k<w.length;k++)S["$"+w[k]]=w[k]}for(var _ in o)U0(o,_)&&(u&&String(Number(_))===_&&_<o.length||OE&&S["$"+_]instanceof Symbol||(Sae.call(/[^\w$]/,_)?m.push(l(_,o)+": "+l(o[_],o)):m.push(_+": "+l(o[_],o))));if(typeof nU=="function")for(var B=0;B<w.length;B++)kae.call(o,w[B])&&m.push("["+l(w[B])+"]: "+l(o[w[B]],o));return m}var iU=K9,AE=ROe,uAe=jOe,dAe=iU("%TypeError%"),RP=iU("%WeakMap%",!0),MP=iU("%Map%",!0),fAe=AE("WeakMap.prototype.get",!0),mAe=AE("WeakMap.prototype.set",!0),pAe=AE("WeakMap.prototype.has",!0),hAe=AE("Map.prototype.get",!0),gAe=AE("Map.prototype.set",!0),bAe=AE("Map.prototype.has",!0),cU=function(o,l){for(var u=o,m;(m=u.next)!==null;u=m)if(m.key===l)return u.next=m.next,m.next=o.next,o.next=m,m},yAe=function(o,l){var u=cU(o,l);return u&&u.value},vAe=function(o,l,u){var m=cU(o,l);m?m.value=u:o.next={key:l,next:o.next,value:u}},wAe=function(o,l){return!!cU(o,l)},CAe=function(){var l,u,m,b={assert:function(w){if(!b.has(w))throw new dAe("Side channel does not contain "+uAe(w))},get:function(w){if(RP&&w&&(typeof w=="object"||typeof w=="function")){if(l)return fAe(l,w)}else if(MP){if(u)return hAe(u,w)}else if(m)return yAe(m,w)},has:function(w){if(RP&&w&&(typeof w=="object"||typeof w=="function")){if(l)return pAe(l,w)}else if(MP){if(u)return bAe(u,w)}else if(m)return wAe(m,w);return!1},set:function(w,S){RP&&w&&(typeof w=="object"||typeof w=="function")?(l||(l=new RP),mAe(l,w,S)):MP?(u||(u=new MP),gAe(u,w,S)):(m||(m={key:{},next:null}),vAe(m,w,S))}};return b},SAe=String.prototype.replace,xAe=/%20/g,uU={RFC1738:"RFC1738",RFC3986:"RFC3986"},dU={default:uU.RFC3986,formatters:{RFC1738:function(o){return SAe.call(o,xAe,"+")},RFC3986:function(o){return String(o)}},RFC1738:uU.RFC1738,RFC3986:uU.RFC3986},EAe=dU,fU=Object.prototype.hasOwnProperty,DC=Array.isArray,Rg=function(){for(var o=[],l=0;l<256;++l)o.push("%"+((l<16?"0":"")+l.toString(16)).toUpperCase());return o}(),kAe=function(l){for(;l.length>1;){var u=l.pop(),m=u.obj[u.prop];if(DC(m)){for(var b=[],w=0;w<m.length;++w)typeof m[w]!="undefined"&&b.push(m[w]);u.obj[u.prop]=b}}},Pae=function(l,u){for(var m=u&&u.plainObjects?Object.create(null):{},b=0;b<l.length;++b)typeof l[b]!="undefined"&&(m[b]=l[b]);return m},TAe=function o(l,u,m){if(!u)return l;if(typeof u!="object"){if(DC(l))l.push(u);else if(l&&typeof l=="object")(m&&(m.plainObjects||m.allowPrototypes)||!fU.call(Object.prototype,u))&&(l[u]=!0);else return[l,u];return l}if(!l||typeof l!="object")return[l].concat(u);var b=l;return DC(l)&&!DC(u)&&(b=Pae(l,m)),DC(l)&&DC(u)?(u.forEach(function(w,S){if(fU.call(l,S)){var k=l[S];k&&typeof k=="object"&&w&&typeof w=="object"?l[S]=o(k,w,m):l.push(w)}else l[S]=w}),l):Object.keys(u).reduce(function(w,S){var k=u[S];return fU.call(w,S)?w[S]=o(w[S],k,m):w[S]=k,w},b)},_Ae=function(l,u){return Object.keys(u).reduce(function(m,b){return m[b]=u[b],m},l)},OAe=function(o,l,u){var m=o.replace(/\+/g," ");if(u==="iso-8859-1")return m.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(m)}catch(b){return m}},AAe=function(l,u,m,b,w){if(l.length===0)return l;var S=l;if(typeof l=="symbol"?S=Symbol.prototype.toString.call(l):typeof l!="string"&&(S=String(l)),m==="iso-8859-1")return escape(S).replace(/%u[0-9a-f]{4}/gi,function(P){return"%26%23"+parseInt(P.slice(2),16)+"%3B"});for(var k="",_=0;_<S.length;++_){var B=S.charCodeAt(_);if(B===45||B===46||B===95||B===126||B>=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122||w===EAe.RFC1738&&(B===40||B===41)){k+=S.charAt(_);continue}if(B<128){k=k+Rg[B];continue}if(B<2048){k=k+(Rg[192|B>>6]+Rg[128|B&63]);continue}if(B<55296||B>=57344){k=k+(Rg[224|B>>12]+Rg[128|B>>6&63]+Rg[128|B&63]);continue}_+=1,B=65536+((B&1023)<<10|S.charCodeAt(_)&1023),k+=Rg[240|B>>18]+Rg[128|B>>12&63]+Rg[128|B>>6&63]+Rg[128|B&63]}return k},NAe=function(l){for(var u=[{obj:{o:l},prop:"o"}],m=[],b=0;b<u.length;++b)for(var w=u[b],S=w.obj[w.prop],k=Object.keys(S),_=0;_<k.length;++_){var B=k[_],P=S[B];typeof P=="object"&&P!==null&&m.indexOf(P)===-1&&(u.push({obj:S,prop:B}),m.push(P))}return kAe(u),l},BAe=function(l){return Object.prototype.toString.call(l)==="[object RegExp]"},$Ae=function(l){return!l||typeof l!="object"?!1:!!(l.constructor&&l.constructor.isBuffer&&l.constructor.isBuffer(l))},DAe=function(l,u){return[].concat(l,u)},RAe=function(l,u){if(DC(l)){for(var m=[],b=0;b<l.length;b+=1)m.push(u(l[b]));return m}return u(l)},Iae={arrayToObject:Pae,assign:_Ae,combine:DAe,compact:NAe,decode:OAe,encode:AAe,isBuffer:$Ae,isRegExp:BAe,maybeMap:RAe,merge:TAe},Fae=CAe,PP=Iae,C4=dU,MAe=Object.prototype.hasOwnProperty,Lae={brackets:function(l){return l+"[]"},comma:"comma",indices:function(l,u){return l+"["+u+"]"},repeat:function(l){return l}},$1=Array.isArray,PAe=Array.prototype.push,zae=function(o,l){PAe.apply(o,$1(l)?l:[l])},IAe=Date.prototype.toISOString,Vae=C4.default,td={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:PP.encode,encodeValuesOnly:!1,format:Vae,formatter:C4.formatters[Vae],indices:!1,serializeDate:function(l){return IAe.call(l)},skipNulls:!1,strictNullHandling:!1},FAe=function(l){return typeof l=="string"||typeof l=="number"||typeof l=="boolean"||typeof l=="symbol"||typeof l=="bigint"},mU={},LAe=function o(l,u,m,b,w,S,k,_,B,P,L,Z,q,G,U,X){for(var ee=l,se=X,H=0,J=!1;(se=se.get(mU))!==void 0&&!J;){var De=se.get(l);if(H+=1,typeof De!="undefined"){if(De===H)throw new RangeError("Cyclic object value");J=!0}typeof se.get(mU)=="undefined"&&(H=0)}if(typeof _=="function"?ee=_(u,ee):ee instanceof Date?ee=L(ee):m==="comma"&&$1(ee)&&(ee=PP.maybeMap(ee,function(M){return M instanceof Date?L(M):M})),ee===null){if(w)return k&&!G?k(u,td.encoder,U,"key",Z):u;ee=""}if(FAe(ee)||PP.isBuffer(ee)){if(k){var pe=G?u:k(u,td.encoder,U,"key",Z);return[q(pe)+"="+q(k(ee,td.encoder,U,"value",Z))]}return[q(u)+"="+q(String(ee))]}var W=[];if(typeof ee=="undefined")return W;var Se;if(m==="comma"&&$1(ee))G&&k&&(ee=PP.maybeMap(ee,k)),Se=[{value:ee.length>0?ee.join(",")||null:void 0}];else if($1(_))Se=_;else{var Ke=Object.keys(ee);Se=B?Ke.sort(B):Ke}for(var Me=b&&$1(ee)&&ee.length===1?u+"[]":u,Ee=0;Ee<Se.length;++Ee){var de=Se[Ee],bt=typeof de=="object"&&typeof de.value!="undefined"?de.value:ee[de];if(!(S&&bt===null)){var At=$1(ee)?typeof m=="function"?m(Me,de):Me:Me+(P?"."+de:"["+de+"]");X.set(l,H);var Qe=Fae();Qe.set(mU,X),zae(W,o(bt,At,m,b,w,S,m==="comma"&&G&&$1(ee)?null:k,_,B,P,L,Z,q,G,U,Qe))}}return W},zAe=function(l){if(!l)return td;if(l.encoder!==null&&typeof l.encoder!="undefined"&&typeof l.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=l.charset||td.charset;if(typeof l.charset!="undefined"&&l.charset!=="utf-8"&&l.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=C4.default;if(typeof l.format!="undefined"){if(!MAe.call(C4.formatters,l.format))throw new TypeError("Unknown format option provided.");m=l.format}var b=C4.formatters[m],w=td.filter;return(typeof l.filter=="function"||$1(l.filter))&&(w=l.filter),{addQueryPrefix:typeof l.addQueryPrefix=="boolean"?l.addQueryPrefix:td.addQueryPrefix,allowDots:typeof l.allowDots=="undefined"?td.allowDots:!!l.allowDots,charset:u,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:td.charsetSentinel,delimiter:typeof l.delimiter=="undefined"?td.delimiter:l.delimiter,encode:typeof l.encode=="boolean"?l.encode:td.encode,encoder:typeof l.encoder=="function"?l.encoder:td.encoder,encodeValuesOnly:typeof l.encodeValuesOnly=="boolean"?l.encodeValuesOnly:td.encodeValuesOnly,filter:w,format:m,formatter:b,serializeDate:typeof l.serializeDate=="function"?l.serializeDate:td.serializeDate,skipNulls:typeof l.skipNulls=="boolean"?l.skipNulls:td.skipNulls,sort:typeof l.sort=="function"?l.sort:null,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:td.strictNullHandling}},VAe=function(o,l){var u=o,m=zAe(l),b,w;typeof m.filter=="function"?(w=m.filter,u=w("",u)):$1(m.filter)&&(w=m.filter,b=w);var S=[];if(typeof u!="object"||u===null)return"";var k;l&&l.arrayFormat in Lae?k=l.arrayFormat:l&&"indices"in l?k=l.indices?"indices":"repeat":k="indices";var _=Lae[k];if(l&&"commaRoundTrip"in l&&typeof l.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=_==="comma"&&l&&l.commaRoundTrip;b||(b=Object.keys(u)),m.sort&&b.sort(m.sort);for(var P=Fae(),L=0;L<b.length;++L){var Z=b[L];m.skipNulls&&u[Z]===null||zae(S,LAe(u[Z],Z,_,B,m.strictNullHandling,m.skipNulls,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,P))}var q=S.join(m.delimiter),G=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),q.length>0?G+q:""},NE=Iae,pU=Object.prototype.hasOwnProperty,HAe=Array.isArray,ou={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:NE.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},UAe=function(o){return o.replace(/&#(\d+);/g,function(l,u){return String.fromCharCode(parseInt(u,10))})},Hae=function(o,l){return o&&typeof o=="string"&&l.comma&&o.indexOf(",")>-1?o.split(","):o},WAe="utf8=%26%2310003%3B",jAe="utf8=%E2%9C%93",ZAe=function(l,u){var m={},b=u.ignoreQueryPrefix?l.replace(/^\?/,""):l,w=u.parameterLimit===1/0?void 0:u.parameterLimit,S=b.split(u.delimiter,w),k=-1,_,B=u.charset;if(u.charsetSentinel)for(_=0;_<S.length;++_)S[_].indexOf("utf8=")===0&&(S[_]===jAe?B="utf-8":S[_]===WAe&&(B="iso-8859-1"),k=_,_=S.length);for(_=0;_<S.length;++_)if(_!==k){var P=S[_],L=P.indexOf("]="),Z=L===-1?P.indexOf("="):L+1,q,G;Z===-1?(q=u.decoder(P,ou.decoder,B,"key"),G=u.strictNullHandling?null:""):(q=u.decoder(P.slice(0,Z),ou.decoder,B,"key"),G=NE.maybeMap(Hae(P.slice(Z+1),u),function(U){return u.decoder(U,ou.decoder,B,"value")})),G&&u.interpretNumericEntities&&B==="iso-8859-1"&&(G=UAe(G)),P.indexOf("[]=")>-1&&(G=HAe(G)?[G]:G),pU.call(m,q)?m[q]=NE.combine(m[q],G):m[q]=G}return m},qAe=function(o,l,u,m){for(var b=m?l:Hae(l,u),w=o.length-1;w>=0;--w){var S,k=o[w];if(k==="[]"&&u.parseArrays)S=[].concat(b);else{S=u.plainObjects?Object.create(null):{};var _=k.charAt(0)==="["&&k.charAt(k.length-1)==="]"?k.slice(1,-1):k,B=parseInt(_,10);!u.parseArrays&&_===""?S={0:b}:!isNaN(B)&&k!==_&&String(B)===_&&B>=0&&u.parseArrays&&B<=u.arrayLimit?(S=[],S[B]=b):_!=="__proto__"&&(S[_]=b)}b=S}return b},GAe=function(l,u,m,b){if(l){var w=m.allowDots?l.replace(/\.([^.[]+)/g,"[$1]"):l,S=/(\[[^[\]]*])/,k=/(\[[^[\]]*])/g,_=m.depth>0&&S.exec(w),B=_?w.slice(0,_.index):w,P=[];if(B){if(!m.plainObjects&&pU.call(Object.prototype,B)&&!m.allowPrototypes)return;P.push(B)}for(var L=0;m.depth>0&&(_=k.exec(w))!==null&&L<m.depth;){if(L+=1,!m.plainObjects&&pU.call(Object.prototype,_[1].slice(1,-1))&&!m.allowPrototypes)return;P.push(_[1])}return _&&P.push("["+w.slice(_.index)+"]"),qAe(P,u,m,b)}},KAe=function(l){if(!l)return ou;if(l.decoder!==null&&l.decoder!==void 0&&typeof l.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof l.charset!="undefined"&&l.charset!=="utf-8"&&l.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=typeof l.charset=="undefined"?ou.charset:l.charset;return{allowDots:typeof l.allowDots=="undefined"?ou.allowDots:!!l.allowDots,allowPrototypes:typeof l.allowPrototypes=="boolean"?l.allowPrototypes:ou.allowPrototypes,allowSparse:typeof l.allowSparse=="boolean"?l.allowSparse:ou.allowSparse,arrayLimit:typeof l.arrayLimit=="number"?l.arrayLimit:ou.arrayLimit,charset:u,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:ou.charsetSentinel,comma:typeof l.comma=="boolean"?l.comma:ou.comma,decoder:typeof l.decoder=="function"?l.decoder:ou.decoder,delimiter:typeof l.delimiter=="string"||NE.isRegExp(l.delimiter)?l.delimiter:ou.delimiter,depth:typeof l.depth=="number"||l.depth===!1?+l.depth:ou.depth,ignoreQueryPrefix:l.ignoreQueryPrefix===!0,interpretNumericEntities:typeof l.interpretNumericEntities=="boolean"?l.interpretNumericEntities:ou.interpretNumericEntities,parameterLimit:typeof l.parameterLimit=="number"?l.parameterLimit:ou.parameterLimit,parseArrays:l.parseArrays!==!1,plainObjects:typeof l.plainObjects=="boolean"?l.plainObjects:ou.plainObjects,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:ou.strictNullHandling}},YAe=function(o,l){var u=KAe(l);if(o===""||o===null||typeof o=="undefined")return u.plainObjects?Object.create(null):{};for(var m=typeof o=="string"?ZAe(o,u):o,b=u.plainObjects?Object.create(null):{},w=Object.keys(m),S=0;S<w.length;++S){var k=w[S],_=GAe(k,m[k],u,typeof o=="string");b=NE.merge(b,_,u)}return u.allowSparse===!0?b:NE.compact(b)},XAe=VAe,JAe=YAe,QAe=dU,e4e={formats:QAe,parse:JAe,stringify:XAe};const Uae=gse(e4e);let j0=window.sessionStorage,RC={get:function(o){if(!j0){this.noSupport();return}try{let l=j0.getItem(o);return l==null?null:JSON.parse(l)}catch(l){return console.error(l),null}},set:function(o,l){if(!j0){this.noSupport();return}if(!(o==null||l==null))try{j0.setItem(o,JSON.stringify(l)),window.localStorage.setItem(o,JSON.stringify(l))}catch(u){console.error(u)}},remove:function(o){if(!j0){this.noSupport();return}j0.removeItem(o),window.localStorage.removeItem(o)},clearAll:function(){if(!j0){this.noSupport();return}j0.clear(),window.localStorage.clear()},noSupport:function(){alert("浏览器太旧,不支持storage,请安装新版本浏览器")}};function t4e(o,l=!0,u){return Ha(this,null,function*(){let{url:m,param:b,option:w}=u;if(o.name=="AxiosError"&&(o.code=="ERR_BAD_REQUEST"||o.code=="ERR_BAD_RESPONSE"))if(o.response){let{data:S,status:k}=o.response;if(k==401)if(w.withRefresh&&w.appendToken){w=We(ue({},w),{withRefresh:!1,fd:!1,antiShake:!1,confirmMsg:""});try{return yield n4e(m),yield E4(m,b,w)}catch(_){hU()}}else hU();else{if(!w.handleError)return;l&&F0({type:"error",grouping:!0,message:S.message})}}else{if(!w.handleError)return;l&&F0({type:"error",grouping:!0,message:o.message||"服务器发生错误"})}else{if(!w.handleError)return;l&&F0({type:"error",grouping:!0,message:o.message})}})}function n4e(o){return Ha(this,null,function*(){let l="",u=RC.get("logininfo");if(u)l=u.refreshUrl;else throw new Error("未发现logininfo");l||(l=new URL(o).origin+"/system/login/refReshToken");let m=u.refresh_token;if(!m)throw new Error("logininfo中未发现refresh_token");let b=yield E4(l,{refReshToken:m},{appendToken:!1,withRefresh:!1,handleError:!1,antiShake:!1,fd:!0}),{data:w}=b;if(w.code=="200"){let S=w.val;u.refresh_token=S.refresh_token,u.token="bearer "+S.access_token,RC.set("logininfo",u)}else throw new Error("刷新token失败")})}function hU(){window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo");let o="/login.html",l=window.localStorage.getItem("loginPage");if(l)try{o=JSON.parse(l)}catch(u){}location.href=o}const _Me="",gU=(o,l)=>{const u=o.__vccOpts||o;for(const[m,b]of l)u[m]=b;return u},o4e={name:"SyncLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,height:this.size,width:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-syncStretchDelay",animationDuration:"0.6s",animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.07s"},spinnerDelay2:{animationDelay:"0.14s"},spinnerDelay3:{animationDelay:"0.21s"}}}},s4e={class:"v-spinner"};function r4e(o,l,u,m,b,w){return a.withDirectives((a.openBlock(),a.createElementBlock("div",s4e,[a.createElementVNode("div",{class:"v-sync v-sync1",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay1])},null,4),a.createElementVNode("div",{class:"v-sync v-sync2",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay2])},null,4),a.createElementVNode("div",{class:"v-sync v-sync3",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay3])},null,4)],512)),[[a.vShow,u.loading]])}const a4e=gU(o4e,[["render",r4e]]),l4e={class:"zy-loading-con"},i4e=a.defineComponent({name:"LoadingPlay"}),c4e=a.defineComponent(We(ue({},i4e),{props:{cont:{type:a.ref},options:{type:Object}},setup(o){const{cont:l,options:u}=o,m=a.computed(()=>({left:u.left+"px",top:u.top+"px",right:u.right+"px",bottom:u.bottom+"px"})),b=a.computed(()=>l&&l.value?["show"]:null);return(w,S)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["zy-loading-wrapper",b.value]),style:a.normalizeStyle(m.value)},[a.createElementVNode("div",l4e,[a.createVNode(a4e,{color:"#ffffff",width:"8px",height:"40px"})])],6))}})),Wae=1440,bU=216,u4e=56,IP={left:0,top:0,bottom:0,right:0};class d4e{constructor(){this.loadingCont=a.ref(!1),this.options=a.reactive(ue({},IP)),this.createLoadingApp()}createLoadingApp(){let l=document.createElement("div");document.body.appendChild(l),this.loadingApp=a.createApp({name:"LoadingApp",render:()=>a.h(c4e,{cont:this.loadingCont,options:this.options})}),this.loadingApp.mount(l)}ShowLoading(l){l=l?ue(ue({},IP),l):ue({},IP),l.LoadingType=="business"?(l=ue(ue({},l),f4e()),delete l.LoadingType):l.LoadingType=="forceFullscreen"&&(l=ue({},IP),delete l.LoadingType),c4(this.options,l),this.loadingCont.value=!0}HidenLoading(){this.loadingCont.value=!1}}function f4e(){let o=document.documentElement.clientWidth||document.body.clientWidth,l=0,u=0,m=0,b=0,w=document.querySelector(".zy-applayout-base");return w&&(l=u4e),o<=1480?w&&(u=bU+12):w&&(w.classList.contains("fullscreen")?u=bU+24:(u=Math.round((o-Wae)/2)+bU,m=Math.round((o-Wae)/2))),{left:u,top:l,bottom:b,right:m}}const FP=new d4e;function jae(){let o=RC.get("logininfo");if(!o)throw new Error("logininfo未发现");return o.token}function m4e(o){let l=p4e(),u=l.checkApi(o);return u&&l.storeApi(o),u}function p4e(){return S4.instance||(S4.instance=new S4),S4.instance}class S4{constructor(){this.apiList=[]}checkApi(l){let u=this.apiList.findIndex(w=>w.api==l);if(u<0)return!0;let m=this.apiList[u];return new Date().getTime()-m.time<=1e3?!1:(this.apiList.splice(u,1),!0)}storeApi(l){let u=this.apiList.findIndex(m=>m.api==l);u<0?this.apiList.push({api:l,time:new Date().getTime()}):this.apiList[u].time=new Date().getTime()}}S4.instance=null;const x4=pp("methods.Ajax"),LP={method:"post",loading:!0,appendToken:!0,fullscreen:!1,forceFullscreen:!1,errorMsg:!0,handleError:!0,fd:!1,successMsg:!1,successTip:x4("successTipText"),confirmMsg:"",antiShake:!0,withRefresh:!0,responseType:"json"},E4=(o,l,u)=>Ha(this,null,function*(){const m=o;u=u?ue(ue({},LP),u):ue({},LP),u.confirmMsg&&(yield A9.confirm(u.confirmMsg,x4("confirmMsgText"),{confirmButtonText:x4("confirmButtonText"),cancelButtonText:x4("cancelButtonText"),type:"warning"})),u.method=u.method.toLowerCase();let b=l;if((u.method=="get"||u.method=="delete")&&l&&wE(l)&&Object.keys(l).length>0&&(o=o+(o.indexOf("?")>-1?"&"+Uae.stringify(l):"?"+Uae.stringify(l))),u.antiShake&&!m4e(o))throw console.warn(`${o}在1s内连续发起请求,判定为抖动`),new Error(x4("shakeText"));(u.method=="post"||u.method=="put")&&u.fd&&(b=Dre(l));let w,S=u.fd?"multipart/form-data":"application/json;charset=UTF-8";if(u.appendToken){let k;try{k=jae()}catch(_){if(u.handleError){hU();return}else console.error(_)}w=cae.create({headers:{Authorization:k,"Content-Type":S,"Accept-Language":CE()}})}else w=cae.create({headers:{"Content-Type":S,"Accept-Language":CE()}});try{if(u.loading){let _=null;u.fullscreen||(_={LoadingType:"business"}),u.forceFullscreen&&(_={LoadingType:"forceFullscreen"}),FP.ShowLoading(_)}let k=yield w.request({method:u.method,url:o,withCredentials:!1,data:b,responseType:u.responseType});return u.loading&&FP.HidenLoading(),k}catch(k){if(u.loading&&FP.HidenLoading(),u.handleError||u.withRefresh){let _={url:m,param:l,option:u};return yield t4e(k,u.errorMsg,_)}else throw console.warn("ajax出现错误,并忽略错误处理"),console.error(k),k}}),h4e=pp("methods.Ajax"),MC=(o,l,u)=>Ha(this,null,function*(){!!(u!=null&&u.successTip)&&(u.successMsg=!0),u=u?ue(ue({},LP),u):ue({},LP),u.method=u.method.toLowerCase();let b=!1;u.hasOwnProperty("pageInfo")&&u.pageInfo!=null&&(b=!0,u.hasOwnProperty("page")&&!u.page&&(b=!1),l=ue(ue({},a.unref(u.pageInfo)),l));try{const w=yield E4(o,l,u);if(!w||!w.data)throw new Error(h4e("responseNoData"));let S=w.data;if(S.code!=200)throw u.errorMsg&&F0({type:"error",grouping:!0,message:S.msg}),new Error(`请求:${o}出现错误,错误码:${S.code},错误信息:${S.msg}`);{u.successMsg&&F0({type:"success",grouping:!0,message:u.successTip});let k=S.val||S.list,_=a.unref(u.pageInfo),B={total:0,pageSize:0,pageIndex:0};return b&&u.hasOwnProperty("pageInfo")&&(B.pageIndex=_.pageIndex,B.pageSize=_.pageSize,S.hasOwnProperty("pageInfo")?B=ue({},S.pageInfo):B.total=S.total||0,_.total=B.total),{data:k,code:S.code,msg:S.msg,pageInfo:B}}}catch(w){throw console.warn(w),w}}),k4=(o="./login.html")=>{let l=window.localStorage.getItem("loginPage");if(l){try{l=JSON.parse(l)}catch(u){console.warn(u)}o=l}window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo"),window.location.href=o},yU=(o="./index.html")=>{let l=window.localStorage.getItem("homePage");if(l){try{l=JSON.parse(l)}catch(u){console.warn(u)}o=l}window.location.href=o};/*!
|
|
55
|
+
`+l.prev}function DP(o,l){var u=rU(o),m=[];if(u){m.length=o.length;for(var b=0;b<o.length;b++)m[b]=U0(o,b)?l(o[b],o):""}var w=typeof nU=="function"?nU(o):[],S;if(OE){S={};for(var k=0;k<w.length;k++)S["$"+w[k]]=w[k]}for(var _ in o)U0(o,_)&&(u&&String(Number(_))===_&&_<o.length||OE&&S["$"+_]instanceof Symbol||(Sae.call(/[^\w$]/,_)?m.push(l(_,o)+": "+l(o[_],o)):m.push(_+": "+l(o[_],o))));if(typeof nU=="function")for(var B=0;B<w.length;B++)kae.call(o,w[B])&&m.push("["+l(w[B])+"]: "+l(o[w[B]],o));return m}var iU=K9,AE=ROe,uAe=jOe,dAe=iU("%TypeError%"),RP=iU("%WeakMap%",!0),MP=iU("%Map%",!0),fAe=AE("WeakMap.prototype.get",!0),mAe=AE("WeakMap.prototype.set",!0),pAe=AE("WeakMap.prototype.has",!0),hAe=AE("Map.prototype.get",!0),gAe=AE("Map.prototype.set",!0),bAe=AE("Map.prototype.has",!0),cU=function(o,l){for(var u=o,m;(m=u.next)!==null;u=m)if(m.key===l)return u.next=m.next,m.next=o.next,o.next=m,m},yAe=function(o,l){var u=cU(o,l);return u&&u.value},vAe=function(o,l,u){var m=cU(o,l);m?m.value=u:o.next={key:l,next:o.next,value:u}},wAe=function(o,l){return!!cU(o,l)},CAe=function(){var l,u,m,b={assert:function(w){if(!b.has(w))throw new dAe("Side channel does not contain "+uAe(w))},get:function(w){if(RP&&w&&(typeof w=="object"||typeof w=="function")){if(l)return fAe(l,w)}else if(MP){if(u)return hAe(u,w)}else if(m)return yAe(m,w)},has:function(w){if(RP&&w&&(typeof w=="object"||typeof w=="function")){if(l)return pAe(l,w)}else if(MP){if(u)return bAe(u,w)}else if(m)return wAe(m,w);return!1},set:function(w,S){RP&&w&&(typeof w=="object"||typeof w=="function")?(l||(l=new RP),mAe(l,w,S)):MP?(u||(u=new MP),gAe(u,w,S)):(m||(m={key:{},next:null}),vAe(m,w,S))}};return b},SAe=String.prototype.replace,xAe=/%20/g,uU={RFC1738:"RFC1738",RFC3986:"RFC3986"},dU={default:uU.RFC3986,formatters:{RFC1738:function(o){return SAe.call(o,xAe,"+")},RFC3986:function(o){return String(o)}},RFC1738:uU.RFC1738,RFC3986:uU.RFC3986},EAe=dU,fU=Object.prototype.hasOwnProperty,DC=Array.isArray,Rg=function(){for(var o=[],l=0;l<256;++l)o.push("%"+((l<16?"0":"")+l.toString(16)).toUpperCase());return o}(),kAe=function(l){for(;l.length>1;){var u=l.pop(),m=u.obj[u.prop];if(DC(m)){for(var b=[],w=0;w<m.length;++w)typeof m[w]!="undefined"&&b.push(m[w]);u.obj[u.prop]=b}}},Pae=function(l,u){for(var m=u&&u.plainObjects?Object.create(null):{},b=0;b<l.length;++b)typeof l[b]!="undefined"&&(m[b]=l[b]);return m},TAe=function o(l,u,m){if(!u)return l;if(typeof u!="object"){if(DC(l))l.push(u);else if(l&&typeof l=="object")(m&&(m.plainObjects||m.allowPrototypes)||!fU.call(Object.prototype,u))&&(l[u]=!0);else return[l,u];return l}if(!l||typeof l!="object")return[l].concat(u);var b=l;return DC(l)&&!DC(u)&&(b=Pae(l,m)),DC(l)&&DC(u)?(u.forEach(function(w,S){if(fU.call(l,S)){var k=l[S];k&&typeof k=="object"&&w&&typeof w=="object"?l[S]=o(k,w,m):l.push(w)}else l[S]=w}),l):Object.keys(u).reduce(function(w,S){var k=u[S];return fU.call(w,S)?w[S]=o(w[S],k,m):w[S]=k,w},b)},_Ae=function(l,u){return Object.keys(u).reduce(function(m,b){return m[b]=u[b],m},l)},OAe=function(o,l,u){var m=o.replace(/\+/g," ");if(u==="iso-8859-1")return m.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(m)}catch(b){return m}},AAe=function(l,u,m,b,w){if(l.length===0)return l;var S=l;if(typeof l=="symbol"?S=Symbol.prototype.toString.call(l):typeof l!="string"&&(S=String(l)),m==="iso-8859-1")return escape(S).replace(/%u[0-9a-f]{4}/gi,function(P){return"%26%23"+parseInt(P.slice(2),16)+"%3B"});for(var k="",_=0;_<S.length;++_){var B=S.charCodeAt(_);if(B===45||B===46||B===95||B===126||B>=48&&B<=57||B>=65&&B<=90||B>=97&&B<=122||w===EAe.RFC1738&&(B===40||B===41)){k+=S.charAt(_);continue}if(B<128){k=k+Rg[B];continue}if(B<2048){k=k+(Rg[192|B>>6]+Rg[128|B&63]);continue}if(B<55296||B>=57344){k=k+(Rg[224|B>>12]+Rg[128|B>>6&63]+Rg[128|B&63]);continue}_+=1,B=65536+((B&1023)<<10|S.charCodeAt(_)&1023),k+=Rg[240|B>>18]+Rg[128|B>>12&63]+Rg[128|B>>6&63]+Rg[128|B&63]}return k},NAe=function(l){for(var u=[{obj:{o:l},prop:"o"}],m=[],b=0;b<u.length;++b)for(var w=u[b],S=w.obj[w.prop],k=Object.keys(S),_=0;_<k.length;++_){var B=k[_],P=S[B];typeof P=="object"&&P!==null&&m.indexOf(P)===-1&&(u.push({obj:S,prop:B}),m.push(P))}return kAe(u),l},BAe=function(l){return Object.prototype.toString.call(l)==="[object RegExp]"},$Ae=function(l){return!l||typeof l!="object"?!1:!!(l.constructor&&l.constructor.isBuffer&&l.constructor.isBuffer(l))},DAe=function(l,u){return[].concat(l,u)},RAe=function(l,u){if(DC(l)){for(var m=[],b=0;b<l.length;b+=1)m.push(u(l[b]));return m}return u(l)},Iae={arrayToObject:Pae,assign:_Ae,combine:DAe,compact:NAe,decode:OAe,encode:AAe,isBuffer:$Ae,isRegExp:BAe,maybeMap:RAe,merge:TAe},Fae=CAe,PP=Iae,C4=dU,MAe=Object.prototype.hasOwnProperty,Lae={brackets:function(l){return l+"[]"},comma:"comma",indices:function(l,u){return l+"["+u+"]"},repeat:function(l){return l}},$1=Array.isArray,PAe=Array.prototype.push,zae=function(o,l){PAe.apply(o,$1(l)?l:[l])},IAe=Date.prototype.toISOString,Vae=C4.default,td={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:PP.encode,encodeValuesOnly:!1,format:Vae,formatter:C4.formatters[Vae],indices:!1,serializeDate:function(l){return IAe.call(l)},skipNulls:!1,strictNullHandling:!1},FAe=function(l){return typeof l=="string"||typeof l=="number"||typeof l=="boolean"||typeof l=="symbol"||typeof l=="bigint"},mU={},LAe=function o(l,u,m,b,w,S,k,_,B,P,L,Z,q,G,U,X){for(var ee=l,se=X,H=0,J=!1;(se=se.get(mU))!==void 0&&!J;){var De=se.get(l);if(H+=1,typeof De!="undefined"){if(De===H)throw new RangeError("Cyclic object value");J=!0}typeof se.get(mU)=="undefined"&&(H=0)}if(typeof _=="function"?ee=_(u,ee):ee instanceof Date?ee=L(ee):m==="comma"&&$1(ee)&&(ee=PP.maybeMap(ee,function(M){return M instanceof Date?L(M):M})),ee===null){if(w)return k&&!G?k(u,td.encoder,U,"key",Z):u;ee=""}if(FAe(ee)||PP.isBuffer(ee)){if(k){var pe=G?u:k(u,td.encoder,U,"key",Z);return[q(pe)+"="+q(k(ee,td.encoder,U,"value",Z))]}return[q(u)+"="+q(String(ee))]}var W=[];if(typeof ee=="undefined")return W;var Se;if(m==="comma"&&$1(ee))G&&k&&(ee=PP.maybeMap(ee,k)),Se=[{value:ee.length>0?ee.join(",")||null:void 0}];else if($1(_))Se=_;else{var Ke=Object.keys(ee);Se=B?Ke.sort(B):Ke}for(var Me=b&&$1(ee)&&ee.length===1?u+"[]":u,Ee=0;Ee<Se.length;++Ee){var de=Se[Ee],bt=typeof de=="object"&&typeof de.value!="undefined"?de.value:ee[de];if(!(S&&bt===null)){var At=$1(ee)?typeof m=="function"?m(Me,de):Me:Me+(P?"."+de:"["+de+"]");X.set(l,H);var Qe=Fae();Qe.set(mU,X),zae(W,o(bt,At,m,b,w,S,m==="comma"&&G&&$1(ee)?null:k,_,B,P,L,Z,q,G,U,Qe))}}return W},zAe=function(l){if(!l)return td;if(l.encoder!==null&&typeof l.encoder!="undefined"&&typeof l.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=l.charset||td.charset;if(typeof l.charset!="undefined"&&l.charset!=="utf-8"&&l.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var m=C4.default;if(typeof l.format!="undefined"){if(!MAe.call(C4.formatters,l.format))throw new TypeError("Unknown format option provided.");m=l.format}var b=C4.formatters[m],w=td.filter;return(typeof l.filter=="function"||$1(l.filter))&&(w=l.filter),{addQueryPrefix:typeof l.addQueryPrefix=="boolean"?l.addQueryPrefix:td.addQueryPrefix,allowDots:typeof l.allowDots=="undefined"?td.allowDots:!!l.allowDots,charset:u,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:td.charsetSentinel,delimiter:typeof l.delimiter=="undefined"?td.delimiter:l.delimiter,encode:typeof l.encode=="boolean"?l.encode:td.encode,encoder:typeof l.encoder=="function"?l.encoder:td.encoder,encodeValuesOnly:typeof l.encodeValuesOnly=="boolean"?l.encodeValuesOnly:td.encodeValuesOnly,filter:w,format:m,formatter:b,serializeDate:typeof l.serializeDate=="function"?l.serializeDate:td.serializeDate,skipNulls:typeof l.skipNulls=="boolean"?l.skipNulls:td.skipNulls,sort:typeof l.sort=="function"?l.sort:null,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:td.strictNullHandling}},VAe=function(o,l){var u=o,m=zAe(l),b,w;typeof m.filter=="function"?(w=m.filter,u=w("",u)):$1(m.filter)&&(w=m.filter,b=w);var S=[];if(typeof u!="object"||u===null)return"";var k;l&&l.arrayFormat in Lae?k=l.arrayFormat:l&&"indices"in l?k=l.indices?"indices":"repeat":k="indices";var _=Lae[k];if(l&&"commaRoundTrip"in l&&typeof l.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var B=_==="comma"&&l&&l.commaRoundTrip;b||(b=Object.keys(u)),m.sort&&b.sort(m.sort);for(var P=Fae(),L=0;L<b.length;++L){var Z=b[L];m.skipNulls&&u[Z]===null||zae(S,LAe(u[Z],Z,_,B,m.strictNullHandling,m.skipNulls,m.encode?m.encoder:null,m.filter,m.sort,m.allowDots,m.serializeDate,m.format,m.formatter,m.encodeValuesOnly,m.charset,P))}var q=S.join(m.delimiter),G=m.addQueryPrefix===!0?"?":"";return m.charsetSentinel&&(m.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),q.length>0?G+q:""},NE=Iae,pU=Object.prototype.hasOwnProperty,HAe=Array.isArray,ou={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:NE.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},UAe=function(o){return o.replace(/&#(\d+);/g,function(l,u){return String.fromCharCode(parseInt(u,10))})},Hae=function(o,l){return o&&typeof o=="string"&&l.comma&&o.indexOf(",")>-1?o.split(","):o},WAe="utf8=%26%2310003%3B",jAe="utf8=%E2%9C%93",ZAe=function(l,u){var m={},b=u.ignoreQueryPrefix?l.replace(/^\?/,""):l,w=u.parameterLimit===1/0?void 0:u.parameterLimit,S=b.split(u.delimiter,w),k=-1,_,B=u.charset;if(u.charsetSentinel)for(_=0;_<S.length;++_)S[_].indexOf("utf8=")===0&&(S[_]===jAe?B="utf-8":S[_]===WAe&&(B="iso-8859-1"),k=_,_=S.length);for(_=0;_<S.length;++_)if(_!==k){var P=S[_],L=P.indexOf("]="),Z=L===-1?P.indexOf("="):L+1,q,G;Z===-1?(q=u.decoder(P,ou.decoder,B,"key"),G=u.strictNullHandling?null:""):(q=u.decoder(P.slice(0,Z),ou.decoder,B,"key"),G=NE.maybeMap(Hae(P.slice(Z+1),u),function(U){return u.decoder(U,ou.decoder,B,"value")})),G&&u.interpretNumericEntities&&B==="iso-8859-1"&&(G=UAe(G)),P.indexOf("[]=")>-1&&(G=HAe(G)?[G]:G),pU.call(m,q)?m[q]=NE.combine(m[q],G):m[q]=G}return m},qAe=function(o,l,u,m){for(var b=m?l:Hae(l,u),w=o.length-1;w>=0;--w){var S,k=o[w];if(k==="[]"&&u.parseArrays)S=[].concat(b);else{S=u.plainObjects?Object.create(null):{};var _=k.charAt(0)==="["&&k.charAt(k.length-1)==="]"?k.slice(1,-1):k,B=parseInt(_,10);!u.parseArrays&&_===""?S={0:b}:!isNaN(B)&&k!==_&&String(B)===_&&B>=0&&u.parseArrays&&B<=u.arrayLimit?(S=[],S[B]=b):_!=="__proto__"&&(S[_]=b)}b=S}return b},GAe=function(l,u,m,b){if(l){var w=m.allowDots?l.replace(/\.([^.[]+)/g,"[$1]"):l,S=/(\[[^[\]]*])/,k=/(\[[^[\]]*])/g,_=m.depth>0&&S.exec(w),B=_?w.slice(0,_.index):w,P=[];if(B){if(!m.plainObjects&&pU.call(Object.prototype,B)&&!m.allowPrototypes)return;P.push(B)}for(var L=0;m.depth>0&&(_=k.exec(w))!==null&&L<m.depth;){if(L+=1,!m.plainObjects&&pU.call(Object.prototype,_[1].slice(1,-1))&&!m.allowPrototypes)return;P.push(_[1])}return _&&P.push("["+w.slice(_.index)+"]"),qAe(P,u,m,b)}},KAe=function(l){if(!l)return ou;if(l.decoder!==null&&l.decoder!==void 0&&typeof l.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof l.charset!="undefined"&&l.charset!=="utf-8"&&l.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=typeof l.charset=="undefined"?ou.charset:l.charset;return{allowDots:typeof l.allowDots=="undefined"?ou.allowDots:!!l.allowDots,allowPrototypes:typeof l.allowPrototypes=="boolean"?l.allowPrototypes:ou.allowPrototypes,allowSparse:typeof l.allowSparse=="boolean"?l.allowSparse:ou.allowSparse,arrayLimit:typeof l.arrayLimit=="number"?l.arrayLimit:ou.arrayLimit,charset:u,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:ou.charsetSentinel,comma:typeof l.comma=="boolean"?l.comma:ou.comma,decoder:typeof l.decoder=="function"?l.decoder:ou.decoder,delimiter:typeof l.delimiter=="string"||NE.isRegExp(l.delimiter)?l.delimiter:ou.delimiter,depth:typeof l.depth=="number"||l.depth===!1?+l.depth:ou.depth,ignoreQueryPrefix:l.ignoreQueryPrefix===!0,interpretNumericEntities:typeof l.interpretNumericEntities=="boolean"?l.interpretNumericEntities:ou.interpretNumericEntities,parameterLimit:typeof l.parameterLimit=="number"?l.parameterLimit:ou.parameterLimit,parseArrays:l.parseArrays!==!1,plainObjects:typeof l.plainObjects=="boolean"?l.plainObjects:ou.plainObjects,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:ou.strictNullHandling}},YAe=function(o,l){var u=KAe(l);if(o===""||o===null||typeof o=="undefined")return u.plainObjects?Object.create(null):{};for(var m=typeof o=="string"?ZAe(o,u):o,b=u.plainObjects?Object.create(null):{},w=Object.keys(m),S=0;S<w.length;++S){var k=w[S],_=GAe(k,m[k],u,typeof o=="string");b=NE.merge(b,_,u)}return u.allowSparse===!0?b:NE.compact(b)},XAe=VAe,JAe=YAe,QAe=dU,e4e={formats:QAe,parse:JAe,stringify:XAe};const Uae=gse(e4e);let j0=window.sessionStorage,RC={get:function(o){if(!j0){this.noSupport();return}try{let l=j0.getItem(o);return l==null?null:JSON.parse(l)}catch(l){return console.error(l),null}},set:function(o,l){if(!j0){this.noSupport();return}if(!(o==null||l==null))try{j0.setItem(o,JSON.stringify(l)),window.localStorage.setItem(o,JSON.stringify(l))}catch(u){console.error(u)}},remove:function(o){if(!j0){this.noSupport();return}j0.removeItem(o),window.localStorage.removeItem(o)},clearAll:function(){if(!j0){this.noSupport();return}j0.clear(),window.localStorage.clear()},noSupport:function(){alert("浏览器太旧,不支持storage,请安装新版本浏览器")}};function t4e(o,l=!0,u){return Ha(this,null,function*(){let{url:m,param:b,option:w}=u;if(o.name=="AxiosError"&&(o.code=="ERR_BAD_REQUEST"||o.code=="ERR_BAD_RESPONSE"))if(o.response){let{data:S,status:k}=o.response;if(k==401)if(w.withRefresh&&w.appendToken){w=We(ue({},w),{withRefresh:!1,fd:!1,antiShake:!1,confirmMsg:""});try{return yield n4e(m),yield E4(m,b,w)}catch(_){hU()}}else hU();else{if(!w.handleError)return;l&&F0({type:"error",grouping:!0,message:S.message||S.msg})}}else{if(!w.handleError)return;l&&F0({type:"error",grouping:!0,message:o.message||"服务器发生错误"})}else{if(!w.handleError)return;l&&F0({type:"error",grouping:!0,message:o.message})}})}function n4e(o){return Ha(this,null,function*(){let l="",u=RC.get("logininfo");if(u)l=u.refreshUrl;else throw new Error("未发现logininfo");l||(l=new URL(o).origin+"/system/login/refReshToken");let m=u.refresh_token;if(!m)throw new Error("logininfo中未发现refresh_token");let b=yield E4(l,{refReshToken:m},{appendToken:!1,withRefresh:!1,handleError:!1,antiShake:!1,fd:!0}),{data:w}=b;if(w.code=="200"){let S=w.val;u.refresh_token=S.refresh_token,u.token="bearer "+S.access_token,RC.set("logininfo",u)}else throw new Error("刷新token失败")})}function hU(){window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo");let o="/login.html",l=window.localStorage.getItem("loginPage");if(l)try{o=JSON.parse(l)}catch(u){}location.href=o}const _Me="",gU=(o,l)=>{const u=o.__vccOpts||o;for(const[m,b]of l)u[m]=b;return u},o4e={name:"SyncLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,height:this.size,width:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-syncStretchDelay",animationDuration:"0.6s",animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.07s"},spinnerDelay2:{animationDelay:"0.14s"},spinnerDelay3:{animationDelay:"0.21s"}}}},s4e={class:"v-spinner"};function r4e(o,l,u,m,b,w){return a.withDirectives((a.openBlock(),a.createElementBlock("div",s4e,[a.createElementVNode("div",{class:"v-sync v-sync1",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay1])},null,4),a.createElementVNode("div",{class:"v-sync v-sync2",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay2])},null,4),a.createElementVNode("div",{class:"v-sync v-sync3",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay3])},null,4)],512)),[[a.vShow,u.loading]])}const a4e=gU(o4e,[["render",r4e]]),l4e={class:"zy-loading-con"},i4e=a.defineComponent({name:"LoadingPlay"}),c4e=a.defineComponent(We(ue({},i4e),{props:{cont:{type:a.ref},options:{type:Object}},setup(o){const{cont:l,options:u}=o,m=a.computed(()=>({left:u.left+"px",top:u.top+"px",right:u.right+"px",bottom:u.bottom+"px"})),b=a.computed(()=>l&&l.value?["show"]:null);return(w,S)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["zy-loading-wrapper",b.value]),style:a.normalizeStyle(m.value)},[a.createElementVNode("div",l4e,[a.createVNode(a4e,{color:"#ffffff",width:"8px",height:"40px"})])],6))}})),Wae=1440,bU=216,u4e=56,IP={left:0,top:0,bottom:0,right:0};class d4e{constructor(){this.loadingCont=a.ref(!1),this.options=a.reactive(ue({},IP)),this.createLoadingApp()}createLoadingApp(){let l=document.createElement("div");document.body.appendChild(l),this.loadingApp=a.createApp({name:"LoadingApp",render:()=>a.h(c4e,{cont:this.loadingCont,options:this.options})}),this.loadingApp.mount(l)}ShowLoading(l){l=l?ue(ue({},IP),l):ue({},IP),l.LoadingType=="business"?(l=ue(ue({},l),f4e()),delete l.LoadingType):l.LoadingType=="forceFullscreen"&&(l=ue({},IP),delete l.LoadingType),c4(this.options,l),this.loadingCont.value=!0}HidenLoading(){this.loadingCont.value=!1}}function f4e(){let o=document.documentElement.clientWidth||document.body.clientWidth,l=0,u=0,m=0,b=0,w=document.querySelector(".zy-applayout-base");return w&&(l=u4e),o<=1480?w&&(u=bU+12):w&&(w.classList.contains("fullscreen")?u=bU+24:(u=Math.round((o-Wae)/2)+bU,m=Math.round((o-Wae)/2))),{left:u,top:l,bottom:b,right:m}}const FP=new d4e;function jae(){let o=RC.get("logininfo");if(!o)throw new Error("logininfo未发现");return o.token}function m4e(o){let l=p4e(),u=l.checkApi(o);return u&&l.storeApi(o),u}function p4e(){return S4.instance||(S4.instance=new S4),S4.instance}class S4{constructor(){this.apiList=[]}checkApi(l){let u=this.apiList.findIndex(w=>w.api==l);if(u<0)return!0;let m=this.apiList[u];return new Date().getTime()-m.time<=1e3?!1:(this.apiList.splice(u,1),!0)}storeApi(l){let u=this.apiList.findIndex(m=>m.api==l);u<0?this.apiList.push({api:l,time:new Date().getTime()}):this.apiList[u].time=new Date().getTime()}}S4.instance=null;const x4=pp("methods.Ajax"),LP={method:"post",loading:!0,appendToken:!0,fullscreen:!1,forceFullscreen:!1,errorMsg:!0,handleError:!0,fd:!1,successMsg:!1,successTip:x4("successTipText"),confirmMsg:"",antiShake:!0,withRefresh:!0,responseType:"json"},E4=(o,l,u)=>Ha(this,null,function*(){const m=o;u=u?ue(ue({},LP),u):ue({},LP),u.confirmMsg&&(yield A9.confirm(u.confirmMsg,x4("confirmMsgText"),{confirmButtonText:x4("confirmButtonText"),cancelButtonText:x4("cancelButtonText"),type:"warning"})),u.method=u.method.toLowerCase();let b=l;if((u.method=="get"||u.method=="delete")&&l&&wE(l)&&Object.keys(l).length>0&&(o=o+(o.indexOf("?")>-1?"&"+Uae.stringify(l):"?"+Uae.stringify(l))),u.antiShake&&!m4e(o))throw console.warn(`${o}在1s内连续发起请求,判定为抖动`),new Error(x4("shakeText"));(u.method=="post"||u.method=="put")&&u.fd&&(b=Dre(l));let w,S=u.fd?"multipart/form-data":"application/json;charset=UTF-8";if(u.appendToken){let k;try{k=jae()}catch(_){if(u.handleError){hU();return}else console.error(_)}w=cae.create({headers:{Authorization:k,"Content-Type":S,"Accept-Language":CE()}})}else w=cae.create({headers:{"Content-Type":S,"Accept-Language":CE()}});try{if(u.loading){let _=null;u.fullscreen||(_={LoadingType:"business"}),u.forceFullscreen&&(_={LoadingType:"forceFullscreen"}),FP.ShowLoading(_)}let k=yield w.request({method:u.method,url:o,withCredentials:!1,data:b,responseType:u.responseType});return u.loading&&FP.HidenLoading(),k}catch(k){if(u.loading&&FP.HidenLoading(),u.handleError||u.withRefresh){let _={url:m,param:l,option:u};return yield t4e(k,u.errorMsg,_),k}else throw console.warn("ajax出现错误,并忽略错误处理"),console.error(k),k}}),h4e=pp("methods.Ajax"),MC=(o,l,u)=>Ha(this,null,function*(){!!(u!=null&&u.successTip)&&(u.successMsg=!0),u=u?ue(ue({},LP),u):ue({},LP),u.method=u.method.toLowerCase();let b=!1;u.hasOwnProperty("pageInfo")&&u.pageInfo!=null&&(b=!0,u.hasOwnProperty("page")&&!u.page&&(b=!1),l=ue(ue({},a.unref(u.pageInfo)),l));try{const w=yield E4(o,l,u);if(!w||!w.data)throw new Error(h4e("responseNoData"));let S=w.data;if(S.code!=200)throw u.errorMsg&&F0({type:"error",grouping:!0,message:S.msg}),new Error(`请求:${o}出现错误,错误码:${S.code},错误信息:${S.msg}`);{u.successMsg&&F0({type:"success",grouping:!0,message:u.successTip});let k=S.val||S.list,_=a.unref(u.pageInfo),B={total:0,pageSize:0,pageIndex:0};return b&&u.hasOwnProperty("pageInfo")&&(B.pageIndex=_.pageIndex,B.pageSize=_.pageSize,S.hasOwnProperty("pageInfo")?B=ue({},S.pageInfo):B.total=S.total||0,_.total=B.total),{data:k,code:S.code,msg:S.msg,pageInfo:B}}}catch(w){throw console.warn(w),w}}),k4=(o="./login.html")=>{let l=window.localStorage.getItem("loginPage");if(l){try{l=JSON.parse(l)}catch(u){console.warn(u)}o=l}window.sessionStorage.removeItem("logininfo"),window.localStorage.removeItem("logininfo"),window.location.href=o},yU=(o="./index.html")=>{let l=window.localStorage.getItem("homePage");if(l){try{l=JSON.parse(l)}catch(u){console.warn(u)}o=l}window.location.href=o};/*!
|
|
56
56
|
* Viewer.js v1.11.3
|
|
57
57
|
* https://fengyuanchen.github.io/viewerjs
|
|
58
58
|
*
|
|
@@ -68,7 +68,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
68
68
|
* Released under the MIT license
|
|
69
69
|
*
|
|
70
70
|
* Date: 2022-10-25T08:49:33.301Z
|
|
71
|
-
*/var KP=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Z4e(o){return o}var kle=Z4e;function q4e(o,l,u){switch(u.length){case 0:return o.call(l);case 1:return o.call(l,u[0]);case 2:return o.call(l,u[0],u[1]);case 3:return o.call(l,u[0],u[1],u[2])}return o.apply(l,u)}var G4e=q4e,K4e=G4e,Tle=Math.max;function Y4e(o,l,u){return l=Tle(l===void 0?o.length-1:l,0),function(){for(var m=arguments,b=-1,w=Tle(m.length-l,0),S=Array(w);++b<w;)S[b]=m[l+b];b=-1;for(var k=Array(l+1);++b<l;)k[b]=m[b];return k[l]=u(S),K4e(o,this,k)}}var X4e=Y4e;function J4e(o){return function(){return o}}var Q4e=J4e,e3e=typeof KP=="object"&&KP&&KP.Object===Object&&KP,_le=e3e,t3e=_le,n3e=typeof self=="object"&&self&&self.Object===Object&&self,o3e=t3e||n3e||Function("return this")(),AU=o3e,s3e=AU,r3e=s3e.Symbol,Ole=r3e,Ale=Ole,Nle=Object.prototype,a3e=Nle.hasOwnProperty,l3e=Nle.toString,B4=Ale?Ale.toStringTag:void 0;function i3e(o){var l=a3e.call(o,B4),u=o[B4];try{o[B4]=void 0;var m=!0}catch(w){}var b=l3e.call(o);return m&&(l?o[B4]=u:delete o[B4]),b}var c3e=i3e,u3e=Object.prototype,d3e=u3e.toString;function f3e(o){return d3e.call(o)}var m3e=f3e,Ble=Ole,p3e=c3e,h3e=m3e,g3e="[object Null]",b3e="[object Undefined]",$le=Ble?Ble.toStringTag:void 0;function y3e(o){return o==null?o===void 0?b3e:g3e:$le&&$le in Object(o)?p3e(o):h3e(o)}var NU=y3e;function v3e(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}var YP=v3e,w3e=NU,C3e=YP,S3e="[object AsyncFunction]",x3e="[object Function]",E3e="[object GeneratorFunction]",k3e="[object Proxy]";function T3e(o){if(!C3e(o))return!1;var l=w3e(o);return l==x3e||l==E3e||l==S3e||l==k3e}var Dle=T3e,_3e=AU,O3e=_3e["__core-js_shared__"],A3e=O3e,BU=A3e,Rle=function(){var o=/[^.]+$/.exec(BU&&BU.keys&&BU.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function N3e(o){return!!Rle&&Rle in o}var B3e=N3e,$3e=Function.prototype,D3e=$3e.toString;function R3e(o){if(o!=null){try{return D3e.call(o)}catch(l){}try{return o+""}catch(l){}}return""}var M3e=R3e,P3e=Dle,I3e=B3e,F3e=YP,L3e=M3e,z3e=/[\\^$.*+?()[\]{}|]/g,V3e=/^\[object .+?Constructor\]$/,H3e=Function.prototype,U3e=Object.prototype,W3e=H3e.toString,j3e=U3e.hasOwnProperty,Z3e=RegExp("^"+W3e.call(j3e).replace(z3e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q3e(o){if(!F3e(o)||I3e(o))return!1;var l=P3e(o)?Z3e:V3e;return l.test(L3e(o))}var G3e=q3e;function K3e(o,l){return o==null?void 0:o[l]}var Y3e=K3e,X3e=G3e,J3e=Y3e;function Q3e(o,l){var u=J3e(o,l);return X3e(u)?u:void 0}var eNe=Q3e,tNe=eNe,nNe=function(){try{var o=tNe(Object,"defineProperty");return o({},"",{}),o}catch(l){}}(),oNe=nNe,sNe=Q4e,Mle=oNe,rNe=kle,aNe=Mle?function(o,l){return Mle(o,"toString",{configurable:!0,enumerable:!1,value:sNe(l),writable:!0})}:rNe,lNe=aNe,iNe=800,cNe=16,uNe=Date.now;function dNe(o){var l=0,u=0;return function(){var m=uNe(),b=cNe-(m-u);if(u=m,b>0){if(++l>=iNe)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}var fNe=dNe,mNe=lNe,pNe=fNe,hNe=pNe(mNe),gNe=hNe,bNe=kle,yNe=X4e,vNe=gNe;function wNe(o,l){return vNe(yNe(o,l,bNe),o+"")}var CNe=wNe;function SNe(o,l){return o===l||o!==o&&l!==l}var Ple=SNe,xNe=9007199254740991;function ENe(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=xNe}var Ile=ENe,kNe=Dle,TNe=Ile;function _Ne(o){return o!=null&&TNe(o.length)&&!kNe(o)}var Fle=_Ne,ONe=9007199254740991,ANe=/^(?:0|[1-9]\d*)$/;function NNe(o,l){var u=typeof o;return l=l==null?ONe:l,!!l&&(u=="number"||u!="symbol"&&ANe.test(o))&&o>-1&&o%1==0&&o<l}var Lle=NNe,BNe=Ple,$Ne=Fle,DNe=Lle,RNe=YP;function MNe(o,l,u){if(!RNe(u))return!1;var m=typeof l;return(m=="number"?$Ne(u)&&DNe(l,u.length):m=="string"&&l in u)?BNe(u[l],o):!1}var PNe=MNe;function INe(o,l){for(var u=-1,m=Array(o);++u<o;)m[u]=l(u);return m}var FNe=INe;function LNe(o){return o!=null&&typeof o=="object"}var $U=LNe,zNe=NU,VNe=$U,HNe="[object Arguments]";function UNe(o){return VNe(o)&&zNe(o)==HNe}var WNe=UNe,zle=WNe,jNe=$U,Vle=Object.prototype,ZNe=Vle.hasOwnProperty,qNe=Vle.propertyIsEnumerable,GNe=zle(function(){return arguments}())?zle:function(o){return jNe(o)&&ZNe.call(o,"callee")&&!qNe.call(o,"callee")},KNe=GNe,YNe=Array.isArray,XNe=YNe,DU={exports:{}};function JNe(){return!1}var QNe=JNe;(function(o,l){var u=AU,m=QNe,b=l&&!l.nodeType&&l,w=b&&!0&&o&&!o.nodeType&&o,S=w&&w.exports===b,k=S?u.Buffer:void 0,_=k?k.isBuffer:void 0,B=_||m;o.exports=B})(DU,DU.exports);var eBe=NU,tBe=Ile,nBe=$U,oBe="[object Arguments]",sBe="[object Array]",rBe="[object Boolean]",aBe="[object Date]",lBe="[object Error]",iBe="[object Function]",cBe="[object Map]",uBe="[object Number]",dBe="[object Object]",fBe="[object RegExp]",mBe="[object Set]",pBe="[object String]",hBe="[object WeakMap]",gBe="[object ArrayBuffer]",bBe="[object DataView]",yBe="[object Float32Array]",vBe="[object Float64Array]",wBe="[object Int8Array]",CBe="[object Int16Array]",SBe="[object Int32Array]",xBe="[object Uint8Array]",EBe="[object Uint8ClampedArray]",kBe="[object Uint16Array]",TBe="[object Uint32Array]",Ul={};Ul[yBe]=Ul[vBe]=Ul[wBe]=Ul[CBe]=Ul[SBe]=Ul[xBe]=Ul[EBe]=Ul[kBe]=Ul[TBe]=!0,Ul[oBe]=Ul[sBe]=Ul[gBe]=Ul[rBe]=Ul[bBe]=Ul[aBe]=Ul[lBe]=Ul[iBe]=Ul[cBe]=Ul[uBe]=Ul[dBe]=Ul[fBe]=Ul[mBe]=Ul[pBe]=Ul[hBe]=!1;function _Be(o){return nBe(o)&&tBe(o.length)&&!!Ul[eBe(o)]}var OBe=_Be;function ABe(o){return function(l){return o(l)}}var NBe=ABe,RU={exports:{}};(function(o,l){var u=_le,m=l&&!l.nodeType&&l,b=m&&!0&&o&&!o.nodeType&&o,w=b&&b.exports===m,S=w&&u.process,k=function(){try{var _=b&&b.require&&b.require("util").types;return _||S&&S.binding&&S.binding("util")}catch(B){}}();o.exports=k})(RU,RU.exports);var BBe=OBe,$Be=NBe,Hle=RU.exports,Ule=Hle&&Hle.isTypedArray,DBe=Ule?$Be(Ule):BBe,RBe=DBe,MBe=FNe,PBe=KNe,IBe=XNe,FBe=DU.exports,LBe=Lle,zBe=RBe,VBe=Object.prototype,HBe=VBe.hasOwnProperty;function UBe(o,l){var u=IBe(o),m=!u&&PBe(o),b=!u&&!m&&FBe(o),w=!u&&!m&&!b&&zBe(o),S=u||m||b||w,k=S?MBe(o.length,String):[],_=k.length;for(var B in o)(l||HBe.call(o,B))&&!(S&&(B=="length"||b&&(B=="offset"||B=="parent")||w&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||LBe(B,_)))&&k.push(B);return k}var WBe=UBe,jBe=Object.prototype;function ZBe(o){var l=o&&o.constructor,u=typeof l=="function"&&l.prototype||jBe;return o===u}var qBe=ZBe;function GBe(o){var l=[];if(o!=null)for(var u in Object(o))l.push(u);return l}var KBe=GBe,YBe=YP,XBe=qBe,JBe=KBe,QBe=Object.prototype,e$e=QBe.hasOwnProperty;function t$e(o){if(!YBe(o))return JBe(o);var l=XBe(o),u=[];for(var m in o)m=="constructor"&&(l||!e$e.call(o,m))||u.push(m);return u}var n$e=t$e,o$e=WBe,s$e=n$e,r$e=Fle;function a$e(o){return r$e(o)?o$e(o,!0):s$e(o)}var l$e=a$e,i$e=CNe,c$e=Ple,u$e=PNe,d$e=l$e,Wle=Object.prototype,f$e=Wle.hasOwnProperty;i$e(function(o,l){o=Object(o);var u=-1,m=l.length,b=m>2?l[2]:void 0;for(b&&u$e(l[0],l[1],b)&&(m=1);++u<m;)for(var w=l[u],S=d$e(w),k=-1,_=S.length;++k<_;){var B=S[k],P=o[B];(P===void 0||c$e(P,Wle[B])&&!f$e.call(o,B))&&(o[B]=w[B])}return o});const m$e=typeof window!="undefined"&&window!==null;b$e();const p$e=Object.prototype.propertyIsEnumerable,jle=Object.getOwnPropertySymbols;function XP(o){return typeof o=="function"||toString.call(o)==="[object Object]"}function h$e(o){return typeof o=="object"?o===null:typeof o!="function"}function g$e(o){return o!=="__proto__"&&o!=="constructor"&&o!=="prototype"}function b$e(){return m$e&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function y$e(o,...l){if(!XP(o))throw new TypeError("expected the first argument to be an object");if(l.length===0||typeof Symbol!="function"||typeof jle!="function")return o;for(const u of l){const m=jle(u);for(const b of m)p$e.call(u,b)&&(o[b]=u[b])}return o}function Zle(o,...l){let u=0;for(h$e(o)&&(o=l[u++]),o||(o={});u<l.length;u++)if(XP(l[u])){for(const m of Object.keys(l[u]))g$e(m)&&(XP(o[m])&&XP(l[u][m])?Zle(o[m],l[u][m]):o[m]=l[u][m]);y$e(o,l[u])}return o}const qle=({images:o=[],options:l})=>{l=Zle(l,{inline:!1});const u=document.createElement("div"),m=a.h("div",{style:{display:"none"},class:["__viewer-token"]},o.map(k=>a.h("img",typeof k=="string"?{src:k}:k)));a.render(m,u);const b=u.firstElementChild;document.body.appendChild(b);const w=new OU(b,l),S=w.destroy.bind(w);return w.destroy=function(){return S(),a.render(null,u),w},w.show(),b.addEventListener("hidden",function(){this.viewer===w&&w.destroy()}),w};a.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(o,{emit:l}){let u;const m=a.ref();function b(){u=new OU(m.value,o.options),l("inited",u)}function w(){u&&u.destroy()}function S(){w(),b()}function k(){u?(u.update(),l("inited",u)):b()}function _(){o.rebuild?S():k()}const B={deep:!0};return a.watch(()=>o.images,()=>a.nextTick(()=>_()),B),a.watch(()=>o.trigger,()=>a.nextTick(()=>_()),B),a.watch(()=>o.options,()=>a.nextTick(()=>S()),B),a.onMounted(()=>b()),a.onUnmounted(()=>w()),{root:m,createViewer:b,rebuildViewer:S,updateViewer:k,destroyViewer:w}}});const $4={default:"https://source.cimos.cn/hongshu/images/icon/ftype_default.png",excel:"https://source.cimos.cn/hongshu/images/icon/ftype_excel.png",pdf:"https://source.cimos.cn/hongshu/images/icon/ftype_fdf.png",ppt:"https://source.cimos.cn/hongshu/images/icon/ftype_ppt.png",word:"https://source.cimos.cn/hongshu/images/icon/ftype_word.png"};function v$e(o){if(!o)return"";let l=o.split(".");return l.length<2?"":l[l.length-1]}function w$e(o){let l=v$e(o),u=$4.default;return"docx".includes(l)?u=$4.word:l=="xlsx"||l=="xls"?u=$4.excel:l=="pdf"?u=$4.pdf:l=="ppt"&&(u=$4.ppt),u}const zE=pp("components.FileList"),C$e=zE("previewText"),S$e=zE("downloadText"),x$e=zE("deleteText"),E$e=zE("selectTitle"),k$e=zE("emptyText"),T$e=zE("noPreviewText"),_$e=["src"],O$e=["title","onClick"],A$e=["title","onClick"],N$e=["title","onClick"],B$e={key:0,class:"none-file"},$$e=a.createElementVNode("i",{class:"zy-font",style:{"margin-left":"2px"}},"",-1),D$e={class:"el-upload__tip"},R$e={key:1},M$e=a.defineComponent({name:"FileList"}),JP=a.defineComponent(We(ue({},M$e),{props:{list:{type:Array,default(){return[]}},uploadPath:{type:String,required:!0},limit:{type:Number,default:-1},opt:{type:Boolean,default:!1},accept:{type:String},title:{type:String,default:E$e},emptyText:{type:String,default:k$e},tip:{type:String},param:{type:Object,default(){return{}}},auth:{type:Boolean,default:!1},previewPath:{type:String},downloadPath:{type:String},moduleId:{type:String},mark:{type:String}},emits:["update:list","on-error","upload-success","upload-start"],setup(o,{emit:l}){const u=o,m=gl("zy-filelist"),b=a.ref(!1),{downloadPath:w,moduleId:S,mark:k}=u,_=a.toRef(u,"auth"),B=a.useSlots(),P=a.ref(!1);(u.tip||B.tip)&&(P.value=!0);const L=a.computed(()=>u.opt?u.limit<0?!0:u.limit>u.list.length:!1),Z=J=>{let De=/((\.docx?)$)|((\.xlsx)$)|((\.xls)$)|((\.pdf)$)|((\.txt)$)|((\.bmp)$)|((\.pptx?)$)|((\.gif)$)|((\.png)$)|((\.jpe?g)$)|((\.mp4)$)|((\.json)$)/;return J?!!De.test(J):!1},q=J=>{if(!Z(J.filename)){F0({type:"warning",grouping:!0,message:T$e});return}MC(u.previewPath,{requestPath:J.requestPath},{fullscreen:!0,fd:!0}).then(({data:De})=>{window.open(De,"_blank")})},G=()=>{},U=J=>{let De=[...u.list];De.splice(J,1),l("update:list",De)},X=J=>{let De=!!_.value;E4(J.requestPath,{},{method:"get",handleError:!1,antiShake:!1,responseType:"arraybuffer",loading:!1,appendToken:De}).then(({data:pe})=>{var W=new Blob([pe]),Se=document.createElement("a");Se.href=window.URL.createObjectURL(W),Se.download=J.filename,Se.click()})},ee=J=>{if(_.value&&!S&&!k){console.error(new Error("内部文件moduleId和mark必须只能传一个"));return}b.value=!0;let De={file:J.file};_.value&&(S&&(De.moduleId=S),k&&(De.mark=k)),MC(u.uploadPath,De,{fd:!0,loading:!1,appendToken:_.value}).then(({data:pe})=>{b.value=!1;let W={};_.value?W=H(pe):W=se(pe),l("update:list",[...u.list,W]),l("upload-success",W)}).catch(pe=>{b.value=!1,console.warn("上传文件出错"),console.warn(pe),l("on-error",pe)})};function se(J){var pe;return console.log(J),We(ue({},J),{path:(pe=J.path)!=null?pe:J.url})}function H(J){return ue({},J)}return(J,De)=>{const pe=TC,W=_re;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(m)())},[a.createElementVNode("ul",{class:a.normalizeClass(a.unref(m)("list"))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.list,(Se,Ke)=>(a.openBlock(),a.createElementBlock("li",{key:Se.path},[a.createElementVNode("img",{src:a.unref(w$e)(Se.filename),alt:"",class:a.normalizeClass(a.unref(m)("ftype-icon"))},null,10,_$e),a.createElementVNode("span",{class:a.normalizeClass(a.unref(m)("file-name"))},a.toDisplayString(Se.filename),3),a.createElementVNode("i",{class:"zy-font",title:a.unref(C$e),onClick:Me=>q(Se)},"",8,O$e),a.createElementVNode("i",{class:"zy-font",title:a.unref(S$e),onClick:Me=>X(Se)},"",8,A$e),o.opt?(a.openBlock(),a.createElementBlock("i",{key:0,class:"zy-font",title:a.unref(x$e),onClick:Me=>U(Ke)},"",8,N$e)):a.createCommentVNode("v-if",!0),a.createCommentVNode(' <i class="zy-font" title="分享" v-if="auth"></i> ')]))),128)),!o.opt&&o.list.length==0?(a.openBlock(),a.createElementBlock("li",B$e,a.toDisplayString(o.emptyText),1)):a.createCommentVNode("v-if",!0)],2),L.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(m)("upload"))},[a.createVNode(W,{"auto-upload":!0,"on-exceed":G,accept:o.accept,name:"file",multiple:!1,"http-request":ee,"show-file-list":!1,style:{display:"inline-block"},disabled:b.value},a.createSlots({default:a.withCtx(()=>[a.createVNode(pe,{type:"primary",loading:b.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.title),1),$$e]),_:1},8,["loading"])]),_:2},[P.value?{name:"tip",fn:a.withCtx(()=>[a.createElementVNode("div",D$e,[a.unref(B).tip?a.renderSlot(J.$slots,"tip",{key:0}):(a.openBlock(),a.createElementBlock("span",R$e,a.toDisplayString(o.tip),1))])]),key:"0"}:void 0]),1032,["accept","disabled"])],2)):a.createCommentVNode("v-if",!0)],2)}}}));JP.install=o=>{o.component(JP.name,JP)};const OMe="",AMe="",NMe="",BMe="",$Me="",DMe="",P$e={class:"zy-page-con"},I$e=a.defineComponent({name:"ZyPage"}),QP=a.defineComponent(We(ue({},I$e),{props:{pageInfo:{required:!0,type:Object},loadMehod:{type:Function}},emits:["current-change","size-change"],setup(o,{expose:l,emit:u}){const{pageInfo:m,loadMehod:b}=o,w=_=>{b&&b(),u("current-change",_)},S=_=>{b&&b(),u("size-change",_)};return l({ResetPage:_=>{_?c4(m,_):(m.pageIndex=1,m.total=0),b&&b()}}),(_,B)=>{const P=w9;return a.openBlock(),a.createElementBlock("div",P$e,[a.createVNode(P,{layout:"prev, pager, next,sizes,total",background:"","page-size":o.pageInfo.pageSize,"onUpdate:pageSize":B[0]||(B[0]=L=>o.pageInfo.pageSize=L),"page-sizes":[10,20,30,40,50],total:o.pageInfo.total,onCurrentChange:w,onSizeChange:S,"current-page":o.pageInfo.pageIndex,"onUpdate:currentPage":B[1]||(B[1]=L=>o.pageInfo.pageIndex=L)},null,8,["page-size","total","current-page"])])}}}));QP.install=o=>{o.component(QP.name,QP)};const F$e=a.defineComponent({name:"BaseAppLayout"}),D4=a.defineComponent(We(ue({},F$e),{props:{fullscreen:{type:Boolean,default:!1}},setup(o,{expose:l}){const u=o,m=a.useSlots(),b=a.computed(()=>{if(!m.menu)return{paddingLeft:0}}),w=a.computed(()=>u.fullscreen?"fullscreen":""),S=gl("zy-applayout-base-head"),k=gl("zy-applayout-base-body"),_=gl("zy-applayout-base-menu"),B=a.ref(!1),P=L=>{B.value=L};return a.getCurrentInstance().slots.navigator?B.value=!0:B.value=!1,l({SetNavigatorStatus:P}),(L,Z)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["zy-applayout zy-applayout-base",w.value])},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)())},[a.renderSlot(L.$slots,"header")],2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)())},[a.unref(m).menu?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(_)())},[a.renderSlot(L.$slots,"menu")],2)):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("ctx"))},[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("navigator"))},[a.renderSlot(L.$slots,"navigator")],2),[[a.vShow,B.value]]),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("body")),style:a.normalizeStyle(b.value)},[a.renderSlot(L.$slots,"default")],6)],2)],2)],2))}})),L$e=a.defineComponent({name:"AppLayout"}),eI=Object.assign(L$e,{setup(o){return(l,u)=>(a.openBlock(),a.createBlock(D4,null,{menu:a.withCtx(()=>[a.renderSlot(l.$slots,"menu")]),header:a.withCtx(()=>[a.renderSlot(l.$slots,"header")]),default:a.withCtx(()=>[a.renderSlot(l.$slots,"default")]),_:3}))}});eI.install=o=>{o.component(eI.name,eI)},D4.install=o=>{o.component(D4.name,D4)};const RMe="",MMe="",PMe="",IMe="",z$e={key:0,class:"cur_index"},V$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],H$e={key:0,class:"cur_index"},U$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],W$e={key:0,class:"cur_index"},j$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],Z$e={key:0,class:"cur_index"},q$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],G$e=a.defineComponent({name:"FunctionList"}),K$e=a.defineComponent(We(ue({},G$e),{props:{curIndex:{type:String}},emits:["toggle-item"],setup(o,{emit:l}){const u=o,m=pp("header.function"),b=gl("zy-appheader-function"),w=k=>{l("toggle-item",k)},S=k=>!!(u.curIndex&&u.curIndex.indexOf(k)>-1);return(k,_)=>(a.openBlock(),a.createElementBlock("ul",{class:a.normalizeClass(a.unref(b)())},[a.createElementVNode("li",{onClick:_[0]||(_[0]=B=>w("home"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("home")),1),S("home")?(a.openBlock(),a.createElementBlock("div",z$e,V$e)):a.createCommentVNode("v-if",!0)]),a.createElementVNode("li",{onClick:_[1]||(_[1]=B=>w("message"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("message")),1),S("chat")?(a.openBlock(),a.createElementBlock("div",H$e,U$e)):a.createCommentVNode("v-if",!0)]),a.createElementVNode("li",{onClick:_[2]||(_[2]=B=>w("book"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("book")),1),S("book")?(a.openBlock(),a.createElementBlock("div",W$e,j$e)):a.createCommentVNode("v-if",!0)]),a.createCommentVNode(` <li @click="tapFunctionItem('wait')">\r
|
|
71
|
+
*/var KP=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Z4e(o){return o}var kle=Z4e;function q4e(o,l,u){switch(u.length){case 0:return o.call(l);case 1:return o.call(l,u[0]);case 2:return o.call(l,u[0],u[1]);case 3:return o.call(l,u[0],u[1],u[2])}return o.apply(l,u)}var G4e=q4e,K4e=G4e,Tle=Math.max;function Y4e(o,l,u){return l=Tle(l===void 0?o.length-1:l,0),function(){for(var m=arguments,b=-1,w=Tle(m.length-l,0),S=Array(w);++b<w;)S[b]=m[l+b];b=-1;for(var k=Array(l+1);++b<l;)k[b]=m[b];return k[l]=u(S),K4e(o,this,k)}}var X4e=Y4e;function J4e(o){return function(){return o}}var Q4e=J4e,e3e=typeof KP=="object"&&KP&&KP.Object===Object&&KP,_le=e3e,t3e=_le,n3e=typeof self=="object"&&self&&self.Object===Object&&self,o3e=t3e||n3e||Function("return this")(),AU=o3e,s3e=AU,r3e=s3e.Symbol,Ole=r3e,Ale=Ole,Nle=Object.prototype,a3e=Nle.hasOwnProperty,l3e=Nle.toString,B4=Ale?Ale.toStringTag:void 0;function i3e(o){var l=a3e.call(o,B4),u=o[B4];try{o[B4]=void 0;var m=!0}catch(w){}var b=l3e.call(o);return m&&(l?o[B4]=u:delete o[B4]),b}var c3e=i3e,u3e=Object.prototype,d3e=u3e.toString;function f3e(o){return d3e.call(o)}var m3e=f3e,Ble=Ole,p3e=c3e,h3e=m3e,g3e="[object Null]",b3e="[object Undefined]",$le=Ble?Ble.toStringTag:void 0;function y3e(o){return o==null?o===void 0?b3e:g3e:$le&&$le in Object(o)?p3e(o):h3e(o)}var NU=y3e;function v3e(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}var YP=v3e,w3e=NU,C3e=YP,S3e="[object AsyncFunction]",x3e="[object Function]",E3e="[object GeneratorFunction]",k3e="[object Proxy]";function T3e(o){if(!C3e(o))return!1;var l=w3e(o);return l==x3e||l==E3e||l==S3e||l==k3e}var Dle=T3e,_3e=AU,O3e=_3e["__core-js_shared__"],A3e=O3e,BU=A3e,Rle=function(){var o=/[^.]+$/.exec(BU&&BU.keys&&BU.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function N3e(o){return!!Rle&&Rle in o}var B3e=N3e,$3e=Function.prototype,D3e=$3e.toString;function R3e(o){if(o!=null){try{return D3e.call(o)}catch(l){}try{return o+""}catch(l){}}return""}var M3e=R3e,P3e=Dle,I3e=B3e,F3e=YP,L3e=M3e,z3e=/[\\^$.*+?()[\]{}|]/g,V3e=/^\[object .+?Constructor\]$/,H3e=Function.prototype,U3e=Object.prototype,W3e=H3e.toString,j3e=U3e.hasOwnProperty,Z3e=RegExp("^"+W3e.call(j3e).replace(z3e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q3e(o){if(!F3e(o)||I3e(o))return!1;var l=P3e(o)?Z3e:V3e;return l.test(L3e(o))}var G3e=q3e;function K3e(o,l){return o==null?void 0:o[l]}var Y3e=K3e,X3e=G3e,J3e=Y3e;function Q3e(o,l){var u=J3e(o,l);return X3e(u)?u:void 0}var eNe=Q3e,tNe=eNe,nNe=function(){try{var o=tNe(Object,"defineProperty");return o({},"",{}),o}catch(l){}}(),oNe=nNe,sNe=Q4e,Mle=oNe,rNe=kle,aNe=Mle?function(o,l){return Mle(o,"toString",{configurable:!0,enumerable:!1,value:sNe(l),writable:!0})}:rNe,lNe=aNe,iNe=800,cNe=16,uNe=Date.now;function dNe(o){var l=0,u=0;return function(){var m=uNe(),b=cNe-(m-u);if(u=m,b>0){if(++l>=iNe)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}var fNe=dNe,mNe=lNe,pNe=fNe,hNe=pNe(mNe),gNe=hNe,bNe=kle,yNe=X4e,vNe=gNe;function wNe(o,l){return vNe(yNe(o,l,bNe),o+"")}var CNe=wNe;function SNe(o,l){return o===l||o!==o&&l!==l}var Ple=SNe,xNe=9007199254740991;function ENe(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=xNe}var Ile=ENe,kNe=Dle,TNe=Ile;function _Ne(o){return o!=null&&TNe(o.length)&&!kNe(o)}var Fle=_Ne,ONe=9007199254740991,ANe=/^(?:0|[1-9]\d*)$/;function NNe(o,l){var u=typeof o;return l=l==null?ONe:l,!!l&&(u=="number"||u!="symbol"&&ANe.test(o))&&o>-1&&o%1==0&&o<l}var Lle=NNe,BNe=Ple,$Ne=Fle,DNe=Lle,RNe=YP;function MNe(o,l,u){if(!RNe(u))return!1;var m=typeof l;return(m=="number"?$Ne(u)&&DNe(l,u.length):m=="string"&&l in u)?BNe(u[l],o):!1}var PNe=MNe;function INe(o,l){for(var u=-1,m=Array(o);++u<o;)m[u]=l(u);return m}var FNe=INe;function LNe(o){return o!=null&&typeof o=="object"}var $U=LNe,zNe=NU,VNe=$U,HNe="[object Arguments]";function UNe(o){return VNe(o)&&zNe(o)==HNe}var WNe=UNe,zle=WNe,jNe=$U,Vle=Object.prototype,ZNe=Vle.hasOwnProperty,qNe=Vle.propertyIsEnumerable,GNe=zle(function(){return arguments}())?zle:function(o){return jNe(o)&&ZNe.call(o,"callee")&&!qNe.call(o,"callee")},KNe=GNe,YNe=Array.isArray,XNe=YNe,DU={exports:{}};function JNe(){return!1}var QNe=JNe;(function(o,l){var u=AU,m=QNe,b=l&&!l.nodeType&&l,w=b&&!0&&o&&!o.nodeType&&o,S=w&&w.exports===b,k=S?u.Buffer:void 0,_=k?k.isBuffer:void 0,B=_||m;o.exports=B})(DU,DU.exports);var eBe=NU,tBe=Ile,nBe=$U,oBe="[object Arguments]",sBe="[object Array]",rBe="[object Boolean]",aBe="[object Date]",lBe="[object Error]",iBe="[object Function]",cBe="[object Map]",uBe="[object Number]",dBe="[object Object]",fBe="[object RegExp]",mBe="[object Set]",pBe="[object String]",hBe="[object WeakMap]",gBe="[object ArrayBuffer]",bBe="[object DataView]",yBe="[object Float32Array]",vBe="[object Float64Array]",wBe="[object Int8Array]",CBe="[object Int16Array]",SBe="[object Int32Array]",xBe="[object Uint8Array]",EBe="[object Uint8ClampedArray]",kBe="[object Uint16Array]",TBe="[object Uint32Array]",Ul={};Ul[yBe]=Ul[vBe]=Ul[wBe]=Ul[CBe]=Ul[SBe]=Ul[xBe]=Ul[EBe]=Ul[kBe]=Ul[TBe]=!0,Ul[oBe]=Ul[sBe]=Ul[gBe]=Ul[rBe]=Ul[bBe]=Ul[aBe]=Ul[lBe]=Ul[iBe]=Ul[cBe]=Ul[uBe]=Ul[dBe]=Ul[fBe]=Ul[mBe]=Ul[pBe]=Ul[hBe]=!1;function _Be(o){return nBe(o)&&tBe(o.length)&&!!Ul[eBe(o)]}var OBe=_Be;function ABe(o){return function(l){return o(l)}}var NBe=ABe,RU={exports:{}};(function(o,l){var u=_le,m=l&&!l.nodeType&&l,b=m&&!0&&o&&!o.nodeType&&o,w=b&&b.exports===m,S=w&&u.process,k=function(){try{var _=b&&b.require&&b.require("util").types;return _||S&&S.binding&&S.binding("util")}catch(B){}}();o.exports=k})(RU,RU.exports);var BBe=OBe,$Be=NBe,Hle=RU.exports,Ule=Hle&&Hle.isTypedArray,DBe=Ule?$Be(Ule):BBe,RBe=DBe,MBe=FNe,PBe=KNe,IBe=XNe,FBe=DU.exports,LBe=Lle,zBe=RBe,VBe=Object.prototype,HBe=VBe.hasOwnProperty;function UBe(o,l){var u=IBe(o),m=!u&&PBe(o),b=!u&&!m&&FBe(o),w=!u&&!m&&!b&&zBe(o),S=u||m||b||w,k=S?MBe(o.length,String):[],_=k.length;for(var B in o)(l||HBe.call(o,B))&&!(S&&(B=="length"||b&&(B=="offset"||B=="parent")||w&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||LBe(B,_)))&&k.push(B);return k}var WBe=UBe,jBe=Object.prototype;function ZBe(o){var l=o&&o.constructor,u=typeof l=="function"&&l.prototype||jBe;return o===u}var qBe=ZBe;function GBe(o){var l=[];if(o!=null)for(var u in Object(o))l.push(u);return l}var KBe=GBe,YBe=YP,XBe=qBe,JBe=KBe,QBe=Object.prototype,e$e=QBe.hasOwnProperty;function t$e(o){if(!YBe(o))return JBe(o);var l=XBe(o),u=[];for(var m in o)m=="constructor"&&(l||!e$e.call(o,m))||u.push(m);return u}var n$e=t$e,o$e=WBe,s$e=n$e,r$e=Fle;function a$e(o){return r$e(o)?o$e(o,!0):s$e(o)}var l$e=a$e,i$e=CNe,c$e=Ple,u$e=PNe,d$e=l$e,Wle=Object.prototype,f$e=Wle.hasOwnProperty;i$e(function(o,l){o=Object(o);var u=-1,m=l.length,b=m>2?l[2]:void 0;for(b&&u$e(l[0],l[1],b)&&(m=1);++u<m;)for(var w=l[u],S=d$e(w),k=-1,_=S.length;++k<_;){var B=S[k],P=o[B];(P===void 0||c$e(P,Wle[B])&&!f$e.call(o,B))&&(o[B]=w[B])}return o});const m$e=typeof window!="undefined"&&window!==null;b$e();const p$e=Object.prototype.propertyIsEnumerable,jle=Object.getOwnPropertySymbols;function XP(o){return typeof o=="function"||toString.call(o)==="[object Object]"}function h$e(o){return typeof o=="object"?o===null:typeof o!="function"}function g$e(o){return o!=="__proto__"&&o!=="constructor"&&o!=="prototype"}function b$e(){return m$e&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function y$e(o,...l){if(!XP(o))throw new TypeError("expected the first argument to be an object");if(l.length===0||typeof Symbol!="function"||typeof jle!="function")return o;for(const u of l){const m=jle(u);for(const b of m)p$e.call(u,b)&&(o[b]=u[b])}return o}function Zle(o,...l){let u=0;for(h$e(o)&&(o=l[u++]),o||(o={});u<l.length;u++)if(XP(l[u])){for(const m of Object.keys(l[u]))g$e(m)&&(XP(o[m])&&XP(l[u][m])?Zle(o[m],l[u][m]):o[m]=l[u][m]);y$e(o,l[u])}return o}const qle=({images:o=[],options:l})=>{l=Zle(l,{inline:!1});const u=document.createElement("div"),m=a.h("div",{style:{display:"none"},class:["__viewer-token"]},o.map(k=>a.h("img",typeof k=="string"?{src:k}:k)));a.render(m,u);const b=u.firstElementChild;document.body.appendChild(b);const w=new OU(b,l),S=w.destroy.bind(w);return w.destroy=function(){return S(),a.render(null,u),w},w.show(),b.addEventListener("hidden",function(){this.viewer===w&&w.destroy()}),w};a.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(o,{emit:l}){let u;const m=a.ref();function b(){u=new OU(m.value,o.options),l("inited",u)}function w(){u&&u.destroy()}function S(){w(),b()}function k(){u?(u.update(),l("inited",u)):b()}function _(){o.rebuild?S():k()}const B={deep:!0};return a.watch(()=>o.images,()=>a.nextTick(()=>_()),B),a.watch(()=>o.trigger,()=>a.nextTick(()=>_()),B),a.watch(()=>o.options,()=>a.nextTick(()=>S()),B),a.onMounted(()=>b()),a.onUnmounted(()=>w()),{root:m,createViewer:b,rebuildViewer:S,updateViewer:k,destroyViewer:w}}});const $4={default:"https://source.cimos.cn/hongshu/images/icon/ftype_default.png",excel:"https://source.cimos.cn/hongshu/images/icon/ftype_excel.png",pdf:"https://source.cimos.cn/hongshu/images/icon/ftype_fdf.png",ppt:"https://source.cimos.cn/hongshu/images/icon/ftype_ppt.png",word:"https://source.cimos.cn/hongshu/images/icon/ftype_word.png"};function v$e(o){if(!o)return"";let l=o.split(".");return l.length<2?"":l[l.length-1]}function w$e(o){let l=v$e(o),u=$4.default;return"docx".includes(l)?u=$4.word:l=="xlsx"||l=="xls"?u=$4.excel:l=="pdf"?u=$4.pdf:l=="ppt"&&(u=$4.ppt),u}const zE=pp("components.FileList"),C$e=zE("previewText"),S$e=zE("downloadText"),x$e=zE("deleteText"),E$e=zE("selectTitle"),k$e=zE("emptyText"),T$e=zE("noPreviewText"),_$e=["src"],O$e=["title","onClick"],A$e=["title","onClick"],N$e=["title","onClick"],B$e={key:0,class:"none-file"},$$e=a.createElementVNode("i",{class:"zy-font",style:{"margin-left":"2px"}},"",-1),D$e={class:"el-upload__tip"},R$e={key:1},M$e=a.defineComponent({name:"FileList"}),JP=a.defineComponent(We(ue({},M$e),{props:{list:{type:Array,default(){return[]}},uploadPath:{type:String,required:!0},limit:{type:Number,default:-1},opt:{type:Boolean,default:!1},accept:{type:String},title:{type:String,default:E$e},emptyText:{type:String,default:k$e},tip:{type:String},param:{type:Object,default(){return{}}},auth:{type:Boolean,default:!1},previewPath:{type:String},downloadPath:{type:String},moduleId:{type:String},mark:{type:String}},emits:["update:list","on-error","upload-success","upload-start"],setup(o,{emit:l}){const u=o,m=gl("zy-filelist"),b=a.ref(!1),{downloadPath:w,moduleId:S,mark:k}=u,_=a.toRef(u,"auth"),B=a.useSlots(),P=a.ref(!1);(u.tip||B.tip)&&(P.value=!0);const L=a.computed(()=>u.opt?u.limit<0?!0:u.limit>u.list.length:!1),Z=J=>{let De=/((\.docx?)$)|((\.xlsx)$)|((\.xls)$)|((\.pdf)$)|((\.txt)$)|((\.bmp)$)|((\.pptx?)$)|((\.gif)$)|((\.png)$)|((\.jpe?g)$)|((\.mp4)$)|((\.json)$)|((\.zip)$)/;return J?!!De.test(J):!1},q=J=>{if(!Z(J.filename)){F0({type:"warning",grouping:!0,message:T$e});return}MC(u.previewPath,{requestPath:J.requestPath},{fullscreen:!0,fd:!0}).then(({data:De})=>{window.open(De,"_blank")})},G=()=>{},U=J=>{let De=[...u.list];De.splice(J,1),l("update:list",De)},X=J=>{let De=!!_.value;E4(J.requestPath,{},{method:"get",handleError:!1,antiShake:!1,responseType:"arraybuffer",loading:!1,appendToken:De}).then(({data:pe})=>{var W=new Blob([pe]),Se=document.createElement("a");Se.href=window.URL.createObjectURL(W),Se.download=J.filename,Se.click()})},ee=J=>{if(_.value&&!S&&!k){console.error(new Error("内部文件moduleId和mark必须只能传一个"));return}b.value=!0;let De={file:J.file};_.value&&(S&&(De.moduleId=S),k&&(De.mark=k)),MC(u.uploadPath,De,{fd:!0,loading:!1,appendToken:_.value}).then(({data:pe})=>{b.value=!1;let W={};_.value?W=H(pe):W=se(pe),l("update:list",[...u.list,W]),l("upload-success",W)}).catch(pe=>{b.value=!1,console.warn("上传文件出错"),console.warn(pe),l("on-error",pe)})};function se(J){var pe;return console.log(J),We(ue({},J),{path:(pe=J.path)!=null?pe:J.url})}function H(J){return ue({},J)}return(J,De)=>{const pe=TC,W=_re;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(m)())},[a.createElementVNode("ul",{class:a.normalizeClass(a.unref(m)("list"))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.list,(Se,Ke)=>(a.openBlock(),a.createElementBlock("li",{key:Se.path},[a.createElementVNode("img",{src:a.unref(w$e)(Se.filename),alt:"",class:a.normalizeClass(a.unref(m)("ftype-icon"))},null,10,_$e),a.createElementVNode("span",{class:a.normalizeClass(a.unref(m)("file-name"))},a.toDisplayString(Se.filename),3),a.createElementVNode("i",{class:"zy-font",title:a.unref(C$e),onClick:Me=>q(Se)},"",8,O$e),a.createElementVNode("i",{class:"zy-font",title:a.unref(S$e),onClick:Me=>X(Se)},"",8,A$e),o.opt?(a.openBlock(),a.createElementBlock("i",{key:0,class:"zy-font",title:a.unref(x$e),onClick:Me=>U(Ke)},"",8,N$e)):a.createCommentVNode("v-if",!0),a.createCommentVNode(' <i class="zy-font" title="分享" v-if="auth"></i> ')]))),128)),!o.opt&&o.list.length==0?(a.openBlock(),a.createElementBlock("li",B$e,a.toDisplayString(o.emptyText),1)):a.createCommentVNode("v-if",!0)],2),L.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(m)("upload"))},[a.createVNode(W,{"auto-upload":!0,"on-exceed":G,accept:o.accept,name:"file",multiple:!1,"http-request":ee,"show-file-list":!1,style:{display:"inline-block"},disabled:b.value},a.createSlots({default:a.withCtx(()=>[a.createVNode(pe,{type:"primary",loading:b.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.title),1),$$e]),_:1},8,["loading"])]),_:2},[P.value?{name:"tip",fn:a.withCtx(()=>[a.createElementVNode("div",D$e,[a.unref(B).tip?a.renderSlot(J.$slots,"tip",{key:0}):(a.openBlock(),a.createElementBlock("span",R$e,a.toDisplayString(o.tip),1))])]),key:"0"}:void 0]),1032,["accept","disabled"])],2)):a.createCommentVNode("v-if",!0)],2)}}}));JP.install=o=>{o.component(JP.name,JP)};const OMe="",AMe="",NMe="",BMe="",$Me="",DMe="",P$e={class:"zy-page-con"},I$e=a.defineComponent({name:"ZyPage"}),QP=a.defineComponent(We(ue({},I$e),{props:{pageInfo:{required:!0,type:Object},loadMehod:{type:Function}},emits:["current-change","size-change"],setup(o,{expose:l,emit:u}){const{pageInfo:m,loadMehod:b}=o,w=_=>{b&&b(),u("current-change",_)},S=_=>{b&&b(),u("size-change",_)};return l({ResetPage:_=>{_?c4(m,_):(m.pageIndex=1,m.total=0),b&&b()}}),(_,B)=>{const P=w9;return a.openBlock(),a.createElementBlock("div",P$e,[a.createVNode(P,{layout:"prev, pager, next,sizes,total",background:"","page-size":o.pageInfo.pageSize,"onUpdate:pageSize":B[0]||(B[0]=L=>o.pageInfo.pageSize=L),"page-sizes":[10,20,30,40,50],total:o.pageInfo.total,onCurrentChange:w,onSizeChange:S,"current-page":o.pageInfo.pageIndex,"onUpdate:currentPage":B[1]||(B[1]=L=>o.pageInfo.pageIndex=L)},null,8,["page-size","total","current-page"])])}}}));QP.install=o=>{o.component(QP.name,QP)};const F$e=a.defineComponent({name:"BaseAppLayout"}),D4=a.defineComponent(We(ue({},F$e),{props:{fullscreen:{type:Boolean,default:!1}},setup(o,{expose:l}){const u=o,m=a.useSlots(),b=a.computed(()=>{if(!m.menu)return{paddingLeft:0}}),w=a.computed(()=>u.fullscreen?"fullscreen":""),S=gl("zy-applayout-base-head"),k=gl("zy-applayout-base-body"),_=gl("zy-applayout-base-menu"),B=a.ref(!1),P=L=>{B.value=L};return a.getCurrentInstance().slots.navigator?B.value=!0:B.value=!1,l({SetNavigatorStatus:P}),(L,Z)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["zy-applayout zy-applayout-base",w.value])},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)())},[a.renderSlot(L.$slots,"header")],2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)())},[a.unref(m).menu?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(_)())},[a.renderSlot(L.$slots,"menu")],2)):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("ctx"))},[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("navigator"))},[a.renderSlot(L.$slots,"navigator")],2),[[a.vShow,B.value]]),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("body")),style:a.normalizeStyle(b.value)},[a.renderSlot(L.$slots,"default")],6)],2)],2)],2))}})),L$e=a.defineComponent({name:"AppLayout"}),eI=Object.assign(L$e,{setup(o){return(l,u)=>(a.openBlock(),a.createBlock(D4,null,{menu:a.withCtx(()=>[a.renderSlot(l.$slots,"menu")]),header:a.withCtx(()=>[a.renderSlot(l.$slots,"header")]),default:a.withCtx(()=>[a.renderSlot(l.$slots,"default")]),_:3}))}});eI.install=o=>{o.component(eI.name,eI)},D4.install=o=>{o.component(D4.name,D4)};const RMe="",MMe="",PMe="",IMe="",z$e={key:0,class:"cur_index"},V$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],H$e={key:0,class:"cur_index"},U$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],W$e={key:0,class:"cur_index"},j$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],Z$e={key:0,class:"cur_index"},q$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/home/wave_icon.png",alt:"",srcset:""},null,-1)],G$e=a.defineComponent({name:"FunctionList"}),K$e=a.defineComponent(We(ue({},G$e),{props:{curIndex:{type:String}},emits:["toggle-item"],setup(o,{emit:l}){const u=o,m=pp("header.function"),b=gl("zy-appheader-function"),w=k=>{l("toggle-item",k)},S=k=>!!(u.curIndex&&u.curIndex.indexOf(k)>-1);return(k,_)=>(a.openBlock(),a.createElementBlock("ul",{class:a.normalizeClass(a.unref(b)())},[a.createElementVNode("li",{onClick:_[0]||(_[0]=B=>w("home"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("home")),1),S("home")?(a.openBlock(),a.createElementBlock("div",z$e,V$e)):a.createCommentVNode("v-if",!0)]),a.createElementVNode("li",{onClick:_[1]||(_[1]=B=>w("message"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("message")),1),S("chat")?(a.openBlock(),a.createElementBlock("div",H$e,U$e)):a.createCommentVNode("v-if",!0)]),a.createElementVNode("li",{onClick:_[2]||(_[2]=B=>w("book"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("book")),1),S("book")?(a.openBlock(),a.createElementBlock("div",W$e,j$e)):a.createCommentVNode("v-if",!0)]),a.createCommentVNode(` <li @click="tapFunctionItem('wait')">\r
|
|
72
72
|
<span>待办</span>\r
|
|
73
73
|
</li> `),a.createElementVNode("li",{onClick:_[3]||(_[3]=B=>w("application"))},[a.createElementVNode("span",null,a.toDisplayString(a.unref(m)("application")),1),S("application")?(a.openBlock(),a.createElementBlock("div",Z$e,q$e)):a.createCommentVNode("v-if",!0)])],2))}})),Y$e=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/icon/hs_logo.png"},null,-1)],X$e={class:"opt-dropdown-link"},J$e=["src"],Q$e=[a.createElementVNode("i",{class:"zy-font action-icon"},"",-1)],eDe=a.defineComponent({name:"AppHeader"}),tI=a.defineComponent(We(ue({},eDe),{props:{homePage:{type:String},loginPage:{type:String},curIndex:{type:String}},emits:["exit","toggle-item"],setup(o,{expose:l,emit:u}){const{homePage:m,loginPage:b}=o,w=pp("header.person"),S="https://source.cimos.cn/hongshu/images/icon/default_avatar.png",k=gl("zy-appheader"),_=gl("zy-appheader-user"),B=X=>{u("toggle-item",X)},P=a.reactive({tenantName:"",tenantId:"",realname:"",nickname:"",username:"",imgpath:""}),L=()=>{let X=RC.get("logininfo");X&&c4(P,X)},Z=()=>{yU(m)},q=()=>{window.sessionStorage.setItem("curModuleName",w("setting")),location.href="./myInformation.html"},G=()=>{A9.confirm(w("existsConfirmMessage"),w("existsTitle"),{confirmButtonText:w("existsConfirmButton"),cancelButtonText:w("existsCancelButton"),center:!0,showClose:!0,confirmButtonClass:"confirm-exit-btn"}).then(()=>Ha(this,null,function*(){let X=RC.get("logininfo");if(X&&X.LogOutApi)try{yield MC(X.LogOutApi,{},{method:"get",fullscreen:!0,withRefresh:!1,handleError:!1}),u("exit"),k4(b)}catch(ee){u("exit"),k4(b)}else u("exit"),k4(b)})).catch(()=>{})},U=()=>{let X=CE();X=="zh-CN"?X="en-US":X="zh-CN",WTe(X),location.reload()};return a.onMounted(()=>{L()}),l({}),(X,ee)=>{const se=m9,H=p9,J=f9;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(k)())},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("mname"))},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("mname-logo")),onClick:Z},Y$e,2)],2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("function"))},[a.createVNode(K$e,{onToggleItem:B,curIndex:o.curIndex},null,8,["curIndex"])],2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("user"))},[a.createVNode(J,{trigger:"click"},{dropdown:a.withCtx(()=>[a.createVNode(H,{class:a.normalizeClass(a.unref(_)("userinfo-drop"))},{default:a.withCtx(()=>[a.createVNode(se,null,{default:a.withCtx(()=>[a.createElementVNode("span",{onClick:q},a.toDisplayString(a.unref(w)("setting")),1)]),_:1}),a.createVNode(se,{onClick:U},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(w)("langText")),1)]),_:1}),a.createVNode(se,{divided:"",class:a.normalizeClass(a.unref(_)("exit-item")),onClick:G},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(w)("exists")),1)]),_:1},8,["class"])]),_:1},8,["class"])]),default:a.withCtx(()=>[a.createElementVNode("div",X$e,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(_)("uavator"))},[a.createElementVNode("img",{src:P.imgpath||S},null,8,J$e)],2),a.createElementVNode("span",{class:a.normalizeClass(a.unref(_)("uname"))},a.toDisplayString(P.realname||P.nickname||P.username),3),a.createElementVNode("span",{class:a.normalizeClass(a.unref(_)("action"))},Q$e,2)])]),_:1})],2)],2)}}})),tDe=[a.createElementVNode("img",{src:"https://source.cimos.cn/hongshu/images/icon/hs_logo.png"},null,-1)],nDe={class:"opt-dropdown-link"},oDe=["src"],sDe=[a.createElementVNode("i",{class:"zy-font action-icon"},"",-1)],rDe=a.defineComponent({name:"AdminAppHeader"}),nI=a.defineComponent(We(ue({},rDe),{props:{homePage:{type:String},loginPage:{type:String},ImBaseApi:{type:String},avatar:{type:String,default:"https://source.cimos.cn/hongshu/images/icon/default_avatar.png"}},emits:["exit"],setup(o,{expose:l,emit:u}){const{homePage:m,loginPage:b}=o,w=pp("header.person"),S=gl("zy-appheader"),k=gl("zy-appheader-user"),_=a.reactive({tenantName:"",tenantId:"",realname:"",nickname:"",username:""}),B=()=>{let q=RC.get("logininfo");q&&c4(_,q)},P=()=>{yU(m)},L=()=>{window.sessionStorage.setItem("curModuleName",w("setting")),location.href="./myInformation.html"},Z=()=>{A9.confirm(w("existsConfirmMessage"),w("existsTitle"),{confirmButtonText:w("existsConfirmButton"),cancelButtonText:w("existsCancelButton"),center:!0,showClose:!0,confirmButtonClass:"confirm-exit-btn"}).then(()=>{u("exit"),k4(b)}).catch(()=>{})};return a.onMounted(()=>{B()}),l({}),(q,G)=>{const U=m9,X=p9,ee=f9;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(S)())},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)("mname"))},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)("mname-logo")),onClick:P},tDe,2)],2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)("function"))},null,2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)("home"))},[a.createElementVNode("i",{class:"zy-font",onClick:P},"")],2),a.createElementVNode("div",{class:a.normalizeClass(a.unref(S)("user"))},[a.createVNode(ee,{trigger:"click"},{dropdown:a.withCtx(()=>[a.createVNode(X,{class:a.normalizeClass(a.unref(k)("userinfo-drop"))},{default:a.withCtx(()=>[a.createVNode(U,null,{default:a.withCtx(()=>[a.createElementVNode("span",{onClick:L},a.toDisplayString(a.unref(w)("setting")),1)]),_:1}),a.createVNode(U,{divided:"",class:a.normalizeClass(a.unref(k)("exit-item")),onClick:Z},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(w)("exists")),1)]),_:1},8,["class"])]),_:1},8,["class"])]),default:a.withCtx(()=>[a.createElementVNode("div",nDe,[a.createElementVNode("span",{class:a.normalizeClass(a.unref(k)("uavator"))},[a.createElementVNode("img",{src:o.avatar},null,8,oDe)],2),a.createElementVNode("span",{class:a.normalizeClass(a.unref(k)("uname"))},a.toDisplayString(_.realname||_.nickname||_.username),3),a.createElementVNode("span",{class:a.normalizeClass(a.unref(k)("action"))},sDe,2)])]),_:1})],2)],2)}}}));tI.install=o=>{o.component(tI.name,tI)},nI.install=o=>{o.component(nI.name,nI)};const aDe={key:1},lDe=a.defineComponent({name:"NavSplit"}),iDe=a.defineComponent(We(ue({},lDe),{props:{curIndex:{type:Number,default:0},size:{type:Number,default:0}},setup(o){const l=gl("zy-navigator-split");return(u,m)=>o.curIndex<o.size-1?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(l)())}," / ",2)):(a.openBlock(),a.createElementBlock("span",aDe))}})),cDe=[a.createElementVNode("i",{class:"zy-font"},"",-1)],uDe=a.defineComponent({name:"ZyNavigator"}),oI=a.defineComponent(We(ue({},uDe),{props:{cur:{type:Object,default(){return{name:"",path:""}}},list:{type:Array,default(){return[]}},showBack:{type:Boolean,default:!0}},emits:["back"],setup(o,{emit:l}){const u=gl("zy-navigator"),m=()=>{l("back")};return(b,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(u)())},[o.showBack&&o.list.length>1?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(u)("back")),onClick:m},cDe,2)):a.createCommentVNode("v-if",!0),o.cur.name?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(a.unref(u)("title"))},[a.createElementVNode("span",null,a.toDisplayString(o.cur.name),1)],2)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:2},a.renderList(o.list,(S,k)=>(a.openBlock(),a.createElementBlock("div",{key:S.path,class:a.normalizeClass(a.unref(u)("tlist"))},[a.createElementVNode("span",{class:a.normalizeClass(a.unref(u)("ltitle"))},a.toDisplayString(S.name),3),a.createVNode(iDe,{curIndex:k,size:o.list.length},null,8,["curIndex","size"])],2))),128))],2))}}));oI.install=o=>{o.component(oI.name,oI)};const qMe="",GMe="",KMe="",dDe={name:"ScaleLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},height:{type:String,default:"35px"},width:{type:String,default:"4px"},margin:{type:String,default:"2px"},radius:{type:String,default:"2px"}},data(){return{spinnerStyle:{backgroundColor:this.color,height:this.height,width:this.width,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-scaleStretchDelay",animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.1s"},spinnerDelay2:{animationDelay:"0.2s"},spinnerDelay3:{animationDelay:"0.3s"},spinnerDelay4:{animationDelay:"0.4s"},spinnerDelay5:{animationDelay:"0.5s"}}}},fDe={class:"v-spinner"};function mDe(o,l,u,m,b,w){return a.withDirectives((a.openBlock(),a.createElementBlock("div",fDe,[a.createElementVNode("div",{class:"v-scale v-scale1",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay1])},null,4),a.createElementVNode("div",{class:"v-scale v-scale2",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay2])},null,4),a.createElementVNode("div",{class:"v-scale v-scale3",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay3])},null,4),a.createElementVNode("div",{class:"v-scale v-scale4",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay4])},null,4),a.createElementVNode("div",{class:"v-scale v-scale5",style:a.normalizeStyle([b.spinnerStyle,b.spinnerDelay5])},null,4)],512)),[[a.vShow,u.loading]])}const pDe=gU(dDe,[["render",mDe]]),sI=pp("components.ImageList"),hDe=sI("uploadingTip"),gDe=sI("selectTitle"),bDe=sI("emptyText"),yDe=sI("forbidTip"),vDe=["onClick"],wDe=["onClick"],CDe=a.createElementVNode("div",null,[a.createElementVNode("i",{class:"zy-font"},"")],-1),SDe={class:"el-upload__tip"},xDe={key:1},EDe=a.defineComponent({name:"ImageList"}),rI=a.defineComponent(We(ue({},EDe),{props:{list:{type:Array,default(){return[]}},uploadPath:{type:String,required:!1},limit:{type:Number,default:-1},opt:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},title:{type:String,default:gDe},emptyText:{type:String,default:bDe},tip:{type:String},param:{type:Object,default(){return{}}},appendToken:{type:Boolean,default:!1},shape:{type:String,default:"square"},size:{type:Number,defualt:100}},emits:["update:list","on-error","upload-success","on-remove"],setup(o,{expose:l,emit:u}){const m=o,b=gl("zy-imagelist"),w=gl("zy-imagelist-view"),S=a.ref(null),k=a.useSlots(),_=a.ref(!1),B=a.ref(!1);(m.tip||k.tip)&&(B.value=!0);const P=a.computed(()=>{let H=[b()];return H.push(m.shape),H}),L=a.computed(()=>({width:m.size+"px",height:m.size+"px"})),Z=a.computed(()=>m.list.map(H=>H.requestPath)),q=a.computed(()=>m.opt?m.limit<0?!0:m.limit>m.list.length:!1),G=H=>{qle({images:a.unref(Z),options:{initialViewIndex:H}})},U=H=>{let J=[...m.list];J.splice(H,1),u("update:list",J),u("on-remove",J)},X=()=>{},ee=H=>{_.value=!0,MC(m.uploadPath,{file:H.file},{fd:!0,loading:!1,appendToken:m.appendToken}).then(({data:J})=>{_.value=!1,u("update:list",[...m.list,ue({},J)]),u("upload-success",ue({},J))}).catch(J=>{_.value=!1,console.warn("上传图片出错"),console.warn(J),u("on-error",J)})};return l({emitSelect:()=>{if(!q.value){F0({type:"warning",grouping:!0,message:yDe});return}S==null||S.value.click()}}),(H,J)=>{const De=P2e,pe=_re;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(P.value)},[a.createElementVNode("ul",{class:a.normalizeClass(a.unref(w)())},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.list,(W,Se)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(a.unref(w)("item")),style:a.normalizeStyle(L.value)},[a.createVNode(De,{class:"el-img",src:W.requestPath,fit:"fill"},null,8,["src"]),a.createElementVNode("div",{class:a.normalizeClass(a.unref(w)("mask"))},[a.createElementVNode("i",{class:"zy-font",onClick:Ke=>G(Se)},"",8,vDe),o.opt?(a.openBlock(),a.createElementBlock("i",{key:0,class:"zy-font",onClick:Ke=>U(Se)},"",8,wDe)):a.createCommentVNode("v-if",!0)],2)],6))),256)),!o.opt&&o.list.length==0?(a.openBlock(),a.createElementBlock("li",{key:0,class:a.normalizeClass(a.unref(w)("none-image"))},a.toDisplayString(o.emptyText),3)):a.createCommentVNode("v-if",!0),q.value?(a.openBlock(),a.createBlock(pe,{key:1,"auto-upload":!0,"on-exceed":X,accept:o.accept,name:"file",multiple:!1,"http-request":ee,"show-file-list":!1,style:{display:"inline-block","vertical-align":"top"},disabled:_.value},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(a.unref(b)("upload-btn")),style:a.normalizeStyle(L.value),ref_key:"uploadHolder",ref:S},[_.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(b)("upload-btn-loading"))},[a.createVNode(pDe,{color:"#AAAEB7",width:"4px",height:"24px"}),a.createElementVNode("div",null,a.toDisplayString(a.unref(hDe)),1)],2)):a.createCommentVNode("v-if",!0),_.value?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[CDe,o.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(b)("upload-btn-title"))},a.toDisplayString(o.title),3)):a.createCommentVNode("v-if",!0)],64))],6)]),_:2},[B.value?{name:"tip",fn:a.withCtx(()=>[a.createElementVNode("div",SDe,[a.unref(k).tip?a.renderSlot(H.$slots,"tip",{key:0}):(a.openBlock(),a.createElementBlock("span",xDe,a.toDisplayString(o.tip),1))])]),key:"0"}:void 0]),1032,["accept","disabled"])):a.createCommentVNode("v-if",!0)],2)],2)}}}));rI.install=o=>{o.component(rI.name,rI)};const kDe=a.defineComponent({name:"PageLayout"}),aI=a.defineComponent(We(ue({},kDe),{props:{type:{type:String,default:"list",validator(o){return["list","detail","opt"].includes(o)}},width:{type:[Number,String],default:""}},setup(o){const l=o,u=1040,m=1040,b=gl("zy-pagelayout"),{type:w,width:S}=a.toRefs(l),k=a.useSlots(),_=a.computed(()=>{let L={};return k.head&&(L.marginTop="12px"),k.footer&&(L.marginBottom="8px"),L}),B=a.computed(()=>{let L={};return S.value?L.width=N9(S)?S+"px":S:w.value=="detail"?L.width=m+"px":w.value=="opt"&&(L.width=u+"px"),L}),P=a.computed(()=>{let L=[b()];return L.push(w.value),L});return(L,Z)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(P.value),style:a.normalizeStyle(B.value)},[a.unref(k).head?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(b)("head"))},[a.renderSlot(L.$slots,"head")],2)):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{class:a.normalizeClass(a.unref(b)("body")),style:a.normalizeStyle(_.value)},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(b)("body-inner"))},[a.renderSlot(L.$slots,"default")],2)],6),a.unref(k).footer?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(a.unref(b)("footer"))},[a.renderSlot(L.$slots,"footer")],2)):a.createCommentVNode("v-if",!0)],6))}}));aI.install=o=>{o.component(aI.name,aI)};const YMe="";/*! Element Plus v2.3.4 */var TDe={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const _De=a.ref(CE()),ODe=gl("zy-wrapperpagination"),ADe={setup(o,l){return{zhCn:TDe,lang:_De}},name:"WrapperPage",inheritAttrs:!1,methods:{pageCls:ODe}};function NDe(o,l,u,m,b,w){const S=w9,k=H0e;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(w.pageCls())},[a.createVNode(k,{locale:m.lang=="en-US"?null:m.zhCn},{default:a.withCtx(()=>[a.createVNode(S,a.mergeProps({"pager-count":4,layout:"prev, pager, next,sizes,total",background:""},o.$attrs),null,16)]),_:1},8,["locale"])],2)}const lI=gU(ADe,[["render",NDe]]);lI.install=o=>{o.component(lI.name,lI)};const BDe=o=>o?a.defineComponent({setup(l,u){const m=a.ref(null);let[b]=o();return u.expose({slotRef:m}),()=>a.h(b,{ref:m})}}):null,MU=pp("components.WrapperSearch"),Gle=MU("searchText"),Kle=MU("superSearchText"),Yle=MU("resetText"),$De=a.createElementVNode("i",{class:"zy-font"},"",-1),DDe=a.defineComponent({name:"WrapperSearch"}),iI=a.defineComponent(We(ue({},DDe),{props:{searchText:{type:String,default:Gle},superSearchText:{type:String,default:Kle},resetText:{type:String,default:Yle},autoClose:{type:Boolean,default:!1}},emits:["search","reset","super-search"],setup(o,{expose:l,emit:u}){const m=o,b=pp("components.WrapperSearch"),w=a.useSlots(),S=gl("zy-supersearch"),k=gl("zy-supersearch-super-con"),_=a.ref(null),B=a.ref(!1),P=BDe(w.super),L=a.ref(null),Z=a.ref(document.querySelector(".zy-pagelayout-head"));a.onMounted(()=>{Z.value=document.querySelector(".zy-pagelayout-head")});const q=a.toRef(m,"autoClose"),G=J=>{B.value=J},U=a.computed(()=>!!w.super),X=()=>{G(!B.value)},ee=()=>{w.super?L.value.slotRef.getSearchInfo?u("super-search",L.value.slotRef.getSearchInfo()):(console.warn("插槽super组件没有expose getSearchInfo方法"),u("search",{})):u("super-search",{}),q.value&&G(!1)},se=()=>{u("search"),q.value&&G(!1)},H=()=>{w.super&&(L.value.slotRef.resetSerachInfo?L.value.slotRef.resetSerachInfo():console.warn("插槽super组件没有expose resetSerachInfo方法")),u("reset"),q.value&&G(!1)};return l({setSuperStatus:G,tapSearch:se,tapReset:H,tapSuperSearch:ee}),(J,De)=>{const pe=TC;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(S)()),ref_key:"wrapperHolder",ref:_},[a.renderSlot(J.$slots,"default"),a.createElementVNode("span",{class:a.normalizeClass(a.unref(S)("search-btn")),onClick:se},[$De,a.createTextVNode(" "+a.toDisplayString(a.unref(Gle)),1)],2),U.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(S)("super-btn")),onClick:X,title:"条件搜索"},[a.createElementVNode("i",{class:a.normalizeClass(["zy-font",B.value?a.unref(k)("condition-icon"):""])},"",2)],2)):a.createCommentVNode("v-if",!0),Z.value?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:Z.value},[a.withDirectives(a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)())},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("tip"))},a.toDisplayString(a.unref(b)("superTip"))+": ",3),a.createElementVNode("div",{class:a.normalizeClass(a.unref(k)("search-ctx"))},[a.createVNode(a.unref(P),{ref_key:"SuperRef",ref:L},null,512),a.createVNode(pe,{type:"primary",class:a.normalizeClass(a.unref(k)("opt-btn")),onClick:ee},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(Kle)),1)]),_:1},8,["class"]),a.createVNode(pe,{class:a.normalizeClass(a.unref(k)("opt-btn")),onClick:H},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(Yle)),1)]),_:1},8,["class"])],2)],2),[[a.vShow,B.value]])],8,["to"])):a.createCommentVNode("v-if",!0)],2)}}}));iI.install=o=>{o.component(iI.name,iI)};const RDe={name:"FormItem",props:{col:{type:[String,Number],default:"1"},label:{type:String},tip:{type:String},tipType:{type:String,default:"hover"},warning:{type:String},warningType:{default:"alway"}},setup(o,{slots:l}){let{col:u,label:m,warning:b,warningType:w,tip:S,tipType:k}=o,_="zy-formitem-"+u;return()=>a.h(Fve,{class:["zy-formitem",_]},We(ue({},l),{label:()=>{if(b){if(w=="hover")return a.h("div",{class:["zy-formitem-label"]},[a.h("span",m),a.h(D0,{placement:"right",effect:"light"},{default:()=>a.h("i",{class:["zy-font","warning-icon"],innerHTML:""}),content:()=>a.h("span",{class:["zy-formitem-warning"]},b)})]);if(w=="alway")return a.h("div",{class:["zy-formitem-label"]},[a.h("span",m),a.h("i",{class:["zy-font","warning-icon"],innerHTML:""}),a.h("span",{class:["zy-formitem-warning"]},b)]);console.warn("FormItem的warning只能为hover或alway")}else if(S){if(k=="hover")return a.h("div",{class:["zy-formitem-label"]},[a.h("span",m),a.h(D0,{placement:"right",effect:"light"},{default:()=>a.h("i",{class:["zy-font","tip-icon"],innerHTML:""}),content:()=>a.h("span",{class:["zy-formitem-tip"]},S)})]);if(k=="alway")return a.h("div",{class:["zy-formitem-label"]},[a.h("span",m),a.h("i",{class:["zy-font","tip-icon"],innerHTML:""}),a.h("span",{class:["zy-formitem-tip"]},S)]);console.warn("FormItem的tip只能为hover或alway")}else return a.h("span",m)}}))}},MDe=a.defineComponent({name:"FormTitle"}),R4=a.defineComponent(We(ue({},MDe),{props:{color:{type:String}},setup(o){const{color:l}=o,u=gl("zy-formtitle"),m=a.computed(()=>{let b={};return l&&(b.color=l),b});return(b,w)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(u)())},[a.createElementVNode("div",{class:a.normalizeClass(a.unref(u)("ctx")),style:a.normalizeStyle(m.value)},[a.renderSlot(b.$slots,"default")],6)],2))}}));R4.install=o=>{o.component(R4.name,R4)};const PDe=a.defineComponent({name:"FieldList"}),cI=a.defineComponent(We(ue({},PDe),{props:{model:{type:Object},labelPosition:{type:String,default:"top"},labelWidth:{type:[String,Number],default:100},col:{type:[String,Number],default:"1"},colon:{type:Boolean,default:!1},title:{type:String}},setup(o,{expose:l}){const{labelPosition:u,labelWidth:m,col:b,colon:w,model:S}=o,k=gl("zy-fieldlist"),_=a.ref([]),B=a.computed(()=>{if(u=="top")return{marginBottom:"-8px",marginTop:"12px"};if(u=="left")return{marginBottom:"-6px",marginTop:"12px"}}),P=q=>{pP(_,q,"uid")},L=q=>{d4(_,q,"uid")},Z=()=>{_.value.forEach(q=>{q.exposed.OnFieldsChange&&q.exposed.OnFieldsChange.call(q)})};return a.watch(S,q=>{Z()}),a.provide("labelPosition",u),a.provide("labelWidth",m),a.provide("col",u=="top"?1:2),a.provide("colon",w),a.provide("RegistryItem",P),a.provide("CancelItem",L),l({ForceUpdateContent:Z}),(q,G)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(k)())},[o.title?(a.openBlock(),a.createBlock(a.unref(R4),{key:0,style:a.normalizeStyle(B.value)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.title),1)]),_:1},8,["style"])):a.createCommentVNode("v-if",!0),a.renderSlot(q.$slots,"default")],2))}})),IDe=o=>o?o==1?"是":o==2?"否":o:"",FDe=(o,l)=>{if(!o||!l)return"";let u=a.unref(o),m=a.unref(l);return wE(m)?m.hasOwnProperty(u)?m[u]:"":(console.warn("getMapStr中的参数:map不是对象"),"")},LDe=(o,l,u,m="id")=>{if(!o||!l)return"";let b=a.unref(l);if(!B9(b))return console.warn("getListStr中的参数:list不是数组"),"";let w=b.find((S,k)=>wE(S)?S[m]==o:!1);return w?w[u]:""},zDe={key:0},VDe={key:1},HDe={key:2},UDe=a.defineComponent({name:"FieldItem"}),uI=a.defineComponent(We(ue({},UDe),{props:{label:{type:String},labelPosition:{type:String},labelWidth:{type:[String,Number]},col:{type:[String,Number]},colon:{type:Boolean,default:!1},blankBackground:{type:Boolean,default:!1},isBoolean:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1},filterNameKey:{type:String,default:"name"},filterKey:{type:String,default:"id"},filterList:{type:Array,default(){return[]}},isMap:{type:Boolean,default:!1},mapObj:{type:Object,default(){return{}}}},setup(o,{expose:l}){const u=o,m=gl("zy-fielditem"),b=a.inject("labelPosition"),w=a.inject("labelWidth"),S=a.inject("col"),k=a.inject("colon"),_=a.inject("RegistryItem"),B=a.inject("CancelItem"),{label:P,labelPosition:L,labelWidth:Z,col:q,colon:G,isBoolean:U,isFilter:X,isMap:ee,blankBackground:se}=u,H=a.getCurrentInstance();a.onMounted(()=>{_(H)}),a.onBeforeUnmount(()=>{B(H)});const J=a.ref(""),De=()=>{let Qe=[m("filed")];return se||Qe.push(m("filed-withbg")),Qe},pe=a.useSlots(),W=()=>{let Qe=pe.default();if(U&&pe.default){if(Qe.length>0){let M=Qe[0].children;M&&(J.value=IDe(M))}}else if(X){let{filterList:M,filterNameKey:qe,filterKey:Pe}=u;if(Qe.length>0){let at=Qe[0].children;at&&(J.value=LDe(at,M,qe,Pe))}}else if(ee){let{mapObj:M}=u;if(Qe.length>0){let qe=Qe[0].children;qe&&(J.value=FDe(qe,M))}}};a.watch(u,W),W();const Se=a.computed(()=>L!=null?L:b),Ke=a.computed(()=>Z!=null?Z:w),Me=a.computed(()=>q!=null?q:S),Ee=a.computed(()=>G!=null?G:k),de=a.computed(()=>{let Qe=[m()];return Qe.push(Qe[0]+"-"+Me.value),Se.value=="top"&&Qe.push(Qe[0]+"-tb"),Qe}),bt=a.computed(()=>{if(Se.value=="left")return{width:Ke.value+"px"}}),At=a.computed(()=>{let Qe=[m("label")];return Se.value=="top"&&Qe.push(m("label-online")),Qe});return l({OnFieldsChange:W}),(Qe,M)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(de.value)},[a.createElementVNode("div",{class:a.normalizeClass(At.value),style:a.normalizeStyle(bt.value)},a.toDisplayString(a.unref(P))+a.toDisplayString(Ee.value?":":""),7),a.createElementVNode("div",{class:a.normalizeClass(a.unref(m)("ctx"))},[a.createElementVNode("div",{class:a.normalizeClass(De())},[a.unref(U)?(a.openBlock(),a.createElementBlock("span",zDe,a.toDisplayString(J.value),1)):a.unref(X)?(a.openBlock(),a.createElementBlock("span",VDe,a.toDisplayString(J.value),1)):a.unref(ee)?(a.openBlock(),a.createElementBlock("span",HDe,a.toDisplayString(J.value),1)):a.renderSlot(Qe.$slots,"default",{key:3})],2)],2)],2))}}));cI.install=o=>{o.component(cI.name,cI)},uI.install=o=>{o.component(uI.name,uI)};const WDe=a.createElementVNode("i",{class:"zy-font"},"",-1),jDe=a.defineComponent({name:"TableBtns"}),dI=a.defineComponent(We(ue({},jDe),{props:{maxCount:{type:Number,default:3}},setup(o){const{maxCount:l}=o,u=gl("zy-tablebtns"),m=a.ref(!1),b=a.useSlots(),w=a.ref(0),S=a.ref(0);let k=b.default();return k.length>l&&(m.value=!0,w.value=l,S.value=k.length-l+1),(_,B)=>{const P=m9,L=p9,Z=f9;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(u)())},[m.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value-1,q=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(k)[q-1]),{class:"with-border"}))),256)),a.createVNode(Z,{class:a.normalizeClass(a.unref(u)("drop")),trigger:"click"},{dropdown:a.withCtx(()=>[a.createVNode(L,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,q=>(a.openBlock(),a.createBlock(P,null,{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(k)[q+o.maxCount-2]),{key:q}))]),_:2},1024))),256))]),_:1})]),default:a.withCtx(()=>[a.createElementVNode("span",{class:a.normalizeClass(a.unref(u)("more-btn"))},[a.createTextVNode(a.toDisplayString(a.unref(gP)("components.TableBtns.moreText")),1),WDe],2)]),_:1},8,["class"])],64)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(a.unref(k).length,q=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[q<a.unref(k).length-1?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(k)[q-1]),{key:0,class:"with-border"})):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(k)[q-1]),{key:1}))],64))),256))],2)}}})),ZDe=a.defineComponent({name:"TableBtn"}),fI=a.defineComponent(We(ue({},ZDe),{props:{disabled:{type:Boolean,default:!1},color:{type:String,default:""},type:{type:String,default:"primary"},tip:{type:String}},emits:["click"],setup(o,{emit:l}){const{disabled:u,type:m,tip:b,color:w}=o,S=["primary","success","warning","danger","gray"],k=gl("zy-tablebtns-btn"),_=a.computed(()=>{let L={};return w&&(L.color=w),L}),B=()=>{let L=[k()];return u?L.push("disabled"):S.includes(m)&&L.push(m),L},P=()=>{u||l("click")};return(L,Z)=>{const q=D0;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(B()),onClick:P,style:a.normalizeStyle(_.value)},[o.tip?(a.openBlock(),a.createBlock(q,{key:1,effect:"dark",content:o.tip,placement:"bottom"},{default:a.withCtx(()=>[a.renderSlot(L.$slots,"default")]),_:3},8,["content"])):a.renderSlot(L.$slots,"default",{key:0})],6)}}}));dI.install=o=>{o.component(dI.name,dI)},fI.install=o=>{o.component(fI.name,fI)};const XMe="",JMe="",QMe="",ePe="",tPe="",Mg=pp("components.UserSelectDialog"),qDe=Mg("serarchText"),GDe=Mg("emptyText"),KDe=Mg("table.realname"),YDe=Mg("table.telephone"),XDe=Mg("table.optText"),JDe=Mg("table.singleSelectText"),QDe=Mg("confirmText"),eRe=Mg("titleText"),tRe=Mg("searchHoloderText"),nRe=Mg("userSelectPlaceholder"),oRe={key:1,class:"zy-wrapperpagination",style:{"margin-top":"12px"}},sRe=a.defineComponent({name:"UserSelectDialog"}),M4=a.defineComponent(We(ue({},sRe),{props:{title:{type:String,default:eRe},multiple:{type:Boolean,default:!0},modelValue:{type:Array,default(){return[]}},loadDataApi:{type:String,required:!0},size:{type:String,default:"default"},optColumnWidth:{type:Number,default:100},appendColumns:{type:Array,default:[]},defaultColumns:{type:Boolean,default:!0},dialogWidth:{type:Number,default:750},withFooter:{type:Boolean,default:!1},searchHoloder:{type:String,default:tRe},canSearch:{type:Boolean,default:!0},showTag:{type:Boolean,default:!1},tagNameKey:{type:String,default:"realname"},tagNameClosable:{type:Boolean,default:!0},searchKeyFlag:{type:String,default:"keyword"}},emits:["update:modelValue","check-item","cancel-item","select-item","close","open"],setup(o,{expose:l,emit:u}){const m=o,b=gl("zy-userdialog"),w=a.ref(!1),S=a.ref(""),k=a.reactive({pageIndex:1,pageSize:10,total:0}),_=a.ref([]);let{loadDataApi:B,modelValue:P,canSearch:L,searchKeyFlag:Z}=m;a.watch(m,()=>{q.value=m.modelValue.map(Me=>ue({},Me))});const q=a.ref(P),G=a.useSlots(),U=a.computed(()=>_.value.filter(Me=>u4(q,Me))),X=a.computed(()=>_.value.length==0?!1:U.value.length==_.value.length),ee=()=>{_.value.length!=0&&(U.value.length==_.value.length?(_.value.forEach(Me=>{d4(q,Me)}),u("update:modelValue",q.value)):(_.value.forEach(Me=>{pP(q,Me)}),u("update:modelValue",q.value)))},se=()=>{if(!B){console.error("未配置loadDataApi");return}MC(B,{[Z]:S.value},{pageInfo:L?k:null,loading:!1,method:"get"}).then(({data:Me})=>{_.value=Me.map(Ee=>ue({},Ee))})},H=Me=>!!u4(q,{id:Me}),J=Me=>{u4(q,Me)?(d4(q,Me),u("update:modelValue",q.value),u("check-item",Me)):(pP(q,Me),u("update:modelValue",q.value),u("cancel-item",Me))},De=Me=>{u("select-item",Me)},pe=()=>{se()},W=()=>{k.pageIndex=1,k.total=0,se()},Se=()=>{k.pageIndex=1,k.total=0,S.value="",se(),w.value=!0},Ke=()=>{w.value=!1};return a.watchPostEffect(()=>{w.value?u("open"):u("close")}),l({open:Se,close:Ke}),(Me,Ee)=>{const de=i9,bt=TC,At=s4,Qe=I0,M=Oke,qe=_ke,Pe=w9,at=NSe;return a.openBlock(),a.createBlock(at,{modelValue:w.value,"onUpdate:modelValue":Ee[2]||(Ee[2]=st=>w.value=st),title:o.title,width:o.dialogWidth,"close-on-click-modal":!1},a.createSlots({default:a.withCtx(()=>[o.showTag?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(b)("select-list"))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(q.value,st=>(a.openBlock(),a.createBlock(de,{key:st.id,class:a.normalizeClass(a.unref(b)("select-tag")),closable:o.tagNameClosable,onClose:Ye=>J(st)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(st[o.tagNameKey]),1)]),_:2},1032,["class","closable","onClose"]))),128))],2)):a.createCommentVNode("v-if",!0),a.createElementVNode("div",{class:a.normalizeClass(a.unref(b)("searh-con"))},[a.unref(L)?(a.openBlock(),a.createBlock(At,{key:0,modelValue:S.value,"onUpdate:modelValue":Ee[0]||(Ee[0]=st=>S.value=st),style:{width:"300px"},clearable:!0,onClear:W,placeholder:o.searchHoloder},{append:a.withCtx(()=>[a.createVNode(bt,{onClick:W},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(qDe)),1)]),_:1})]),_:1},8,["modelValue","placeholder"])):a.createCommentVNode("v-if",!0)],2),a.createVNode(qe,{data:_.value,style:{width:"100%"},size:o.size,"row-key":"id","empty-text":a.unref(GDe),"header-cell-class-name":"zy-userdialog-table-head","cell-class-name":a.unref(b)("table-cell")},{default:a.withCtx(()=>[o.multiple?(a.openBlock(),a.createBlock(M,{key:0,width:"75"},{default:a.withCtx(({row:st})=>[a.createVNode(Qe,{"model-value":H(st.id),onClick:a.withModifiers(Ye=>J(st),["stop","prevent"])},null,8,["model-value","onClick"])]),header:a.withCtx(()=>[a.createVNode(Qe,{onClick:a.withModifiers(ee,["stop","prevent"]),"model-value":X.value,indeterminate:U.value.length!=0&&U.value.length<_.value.length},null,8,["onClick","model-value","indeterminate"])]),_:1})):a.createCommentVNode("v-if",!0),o.defaultColumns?(a.openBlock(),a.createBlock(M,{key:1,prop:"realname",label:a.unref(KDe)},null,8,["label"])):a.createCommentVNode("v-if",!0),o.defaultColumns?(a.openBlock(),a.createBlock(M,{key:2,prop:"telephone",label:a.unref(YDe)},null,8,["label"])):a.createCommentVNode("v-if",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.appendColumns,st=>(a.openBlock(),a.createBlock(M,{label:st.label,formatter:st.formatter},null,8,["label","formatter"]))),256)),o.multiple?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock(M,{key:3,label:a.unref(XDe),width:o.optColumnWidth},{default:a.withCtx(st=>[a.unref(G)["opt-column"]?a.renderSlot(Me.$slots,"opt-column",a.normalizeProps(a.mergeProps({key:0},st))):(a.openBlock(),a.createBlock(bt,{key:1,type:"primary",size:"small",onClick:Ye=>De(st.row)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(JDe)),1)]),_:2},1032,["onClick"]))]),_:3},8,["label","width"]))]),_:3},8,["data","size","empty-text","cell-class-name"]),a.unref(L)?(a.openBlock(),a.createElementBlock("div",oRe,[a.createVNode(Pe,{"page-size":k.pageSize,onCurrentChange:pe,"current-page":k.pageIndex,"onUpdate:currentPage":Ee[1]||(Ee[1]=st=>k.pageIndex=st),background:"",layout:"prev, pager, next",total:k.total},null,8,["page-size","current-page","total"])])):a.createCommentVNode("v-if",!0)]),_:2},[a.unref(G).footer?{name:"footer",fn:a.withCtx(()=>[a.renderSlot(Me.$slots,"footer")]),key:"0"}:void 0,!a.unref(G).footer&&o.withFooter?{name:"footer",fn:a.withCtx(()=>[a.createVNode(bt,{type:"primary",onClick:Ke},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(QDe)),1)]),_:1})]),key:"1"}:void 0]),1032,["modelValue","title","width"])}}})),rRe={class:"el-input__inner"},aRe=a.createElementVNode("div",{class:"el-input__suffix"},[a.createElementVNode("i",{class:"zy-font el-select__arrow"},"")],-1),lRe=a.defineComponent({name:"UserSelect"}),mI=a.defineComponent(We(ue({},lRe),{props:{modelValue:{type:Array,default(){return[]}},placeholder:{type:String,default:nRe},tagNameKey:{type:String,default:"realname"}},emits:["check-item","cancel-item","select-item","update:modelValue"],setup(o,{emit:l}){const u=o,m=a.ref(null),b=gl("zy-userdialog"),{modelValue:w}=u,S=a.ref(w);a.watch(u,()=>{S.value=u.modelValue.map(Z=>ue({},Z))});const k=Z=>{l("check-item",Z)},_=Z=>{l("cancel-item",Z)},B=Z=>{l("select-item",Z)},P=()=>{m==null||m.value.open()},L=Z=>{d4(S,Z),l("update:modelValue",S),_(Z)};return(Z,q)=>{const G=i9;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:"el-input",onClick:P},[a.createElementVNode("div",{class:a.normalizeClass(["el-input__wrapper",a.unref(b)("select")])},[a.createElementVNode("div",rRe,[a.withDirectives(a.createElementVNode("span",{class:a.normalizeClass(a.unref(b)("select-placeholder"))},a.toDisplayString(o.placeholder),3),[[a.vShow,S.value.length==0]]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(S.value,U=>(a.openBlock(),a.createBlock(G,{key:U.id,class:a.normalizeClass(a.unref(b)("select-tag")),closable:"",onClose:X=>L(U)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(U[o.tagNameKey]),1)]),_:2},1032,["class","onClose"]))),128))]),aRe],2)]),a.createVNode(M4,a.mergeProps({ref_key:"dialogRef",ref:m},Z.$attrs,{modelValue:S.value,tagNameKey:o.tagNameKey,"onUpdate:modelValue":q[0]||(q[0]=U=>l("update:modelValue",U)),onSelectItem:B,onCancelItem:_,onCheckItem:k}),null,16,["modelValue","tagNameKey"])],64)}}}));M4.install=o=>{o.component(M4.name,M4)},mI.install=o=>{o.component(mI.name,mI)};const Xle=pp("components.MultiTip"),iRe=Xle("emptyOptMessage"),cRe=Xle("optText"),uRe=a.defineComponent({name:"MultiTip"}),dRe=a.defineComponent(We(ue({},uRe),{props:{count:{type:Number,default:0},showZero:{type:Boolean,default:!0},showOptBtn:{type:Boolean,default:!0},emptyOptMessage:{type:String,default:iRe},optText:{type:String,default:cRe}},emits:["removeAll","tapOpt"],setup(o,{emit:l}){const u=o,m=a.ref(CE()),b=pp("components.MultiTip"),w=gl("zy-multi"),S=a.useSlots(),{showZero:k,count:_}=a.toRefs(u),B=a.computed(()=>!!(k.value||_.value>0)),P=a.computed(()=>_.value>0),L=()=>{if(_.value==0){F0({type:"warning",message:u.emptyOptMessage});return}l("tapOpt")},Z=()=>{u.count>0&&l("removeAll")};return(q,G)=>{const U=I0,X=TC;return a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(a.unref(w)())},[a.createVNode(U,{class:a.normalizeClass(a.unref(w)("check")),indeterminate:P.value,modelValue:!1,onClick:a.withModifiers(Z,["stop","prevent"])},null,8,["class","indeterminate","onClick"]),m.value=="en-US"?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(a.unref(w)("msg"))},[a.createElementVNode("i",null,a.toDisplayString(u.count),1),a.createTextVNode(a.toDisplayString(a.unref(b)("selectTip")),1)],2)):(a.openBlock(),a.createElementBlock("span",{key:1,class:a.normalizeClass(a.unref(w)("msg"))},[a.createTextVNode(" 已选中"),a.createElementVNode("i",null,a.toDisplayString(u.count),1),a.createTextVNode("条记录")],2)),a.unref(S).opt?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(a.unref(w)("opt"))},[a.renderSlot(q.$slots,"opt")],2)):a.createCommentVNode("v-if",!0),!a.unref(S).opt&&o.showOptBtn?(a.openBlock(),a.createBlock(X,{key:3,plain:"",type:"primary",class:a.normalizeClass(a.unref(w)("opt")),onClick:L},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.optText),1)]),_:1},8,["class"])):a.createCommentVNode("v-if",!0)],2)),[[a.vShow,B.value]])}}}));var fRe={exports:{}};(function(o){(function(){var l=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},u=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},m=function(e,n){var s=Array.prototype.slice.call(e);return s.sort(n)},b=function(e,n){return w(function(s,i){return e.eq(n(s),n(i))})},w=function(e){return{eq:e}},S=w(function(e,n){return e===n}),k=S,_=function(e){return w(function(n,s){if(n.length!==s.length)return!1;for(var i=n.length,d=0;d<i;d++)if(!e.eq(n[d],s[d]))return!1;return!0})},B=function(e,n){return b(_(e),function(s){return m(s,n)})},P=function(e){return w(function(n,s){var i=Object.keys(n),d=Object.keys(s);if(!B(k).eq(i,d))return!1;for(var h=i.length,v=0;v<h;v++){var T=i[v];if(!e.eq(n[T],s[T]))return!1}return!0})},L=w(function(e,n){if(e===n)return!0;var s=l(e),i=l(n);return s!==i?!1:u(s)?e===n:s==="array"?_(L).eq(e,n):s==="object"?P(L).eq(e,n):!1});const Z=Object.getPrototypeOf,q=(e,n,s)=>{var i;return s(e,n.prototype)?!0:((i=e.constructor)===null||i===void 0?void 0:i.name)===n.name},G=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&q(e,String,(s,i)=>i.isPrototypeOf(s))?"string":n},U=e=>n=>G(n)===e,X=e=>n=>typeof n===e,ee=e=>n=>e===n,se=(e,n)=>J(e)&&q(e,n,(s,i)=>Z(s)===i),H=U("string"),J=U("object"),De=e=>se(e,Object),pe=U("array"),W=ee(null),Se=X("boolean"),Ke=ee(void 0),Me=e=>e==null,Ee=e=>!Me(e),de=X("function"),bt=X("number"),At=(e,n)=>{if(pe(e)){for(let s=0,i=e.length;s<i;++s)if(!n(e[s]))return!1;return!0}return!1},Qe=()=>{},M=(e,n)=>(...s)=>e(n.apply(null,s)),qe=(e,n)=>s=>e(n(s)),Pe=e=>()=>e,at=e=>e,st=(e,n)=>e===n;function Ye(e,...n){return(...s)=>{const i=n.concat(s);return e.apply(null,i)}}const on=e=>n=>!e(n),Kn=e=>()=>{throw new Error(e)},pn=e=>e(),lo=e=>{e()},lt=Pe(!1),it=Pe(!0);class oe{constructor(n,s){this.tag=n,this.value=s}static some(n){return new oe(!0,n)}static none(){return oe.singletonNone}fold(n,s){return this.tag?s(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?oe.some(n(this.value)):oe.none()}bind(n){return this.tag?n(this.value):oe.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:oe.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n!=null?n:"Called getOrDie on None")}static from(n){return Ee(n)?oe.some(n):oe.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}oe.singletonNone=new oe(!1);const wo=Array.prototype.slice,Sn=Array.prototype.indexOf,io=Array.prototype.push,Pn=(e,n)=>Sn.call(e,n),Rs=(e,n)=>{const s=Pn(e,n);return s===-1?oe.none():oe.some(s)},An=(e,n)=>Pn(e,n)>-1,Mo=(e,n)=>{for(let s=0,i=e.length;s<i;s++){const d=e[s];if(n(d,s))return!0}return!1},yn=(e,n)=>{const s=e.length,i=new Array(s);for(let d=0;d<s;d++){const h=e[d];i[d]=n(h,d)}return i},mt=(e,n)=>{for(let s=0,i=e.length;s<i;s++){const d=e[s];n(d,s)}},cr=(e,n)=>{for(let s=e.length-1;s>=0;s--){const i=e[s];n(i,s)}},vs=(e,n)=>{const s=[],i=[];for(let d=0,h=e.length;d<h;d++){const v=e[d];(n(v,d)?s:i).push(v)}return{pass:s,fail:i}},mn=(e,n)=>{const s=[];for(let i=0,d=e.length;i<d;i++){const h=e[i];n(h,i)&&s.push(h)}return s},Er=(e,n,s)=>(cr(e,(i,d)=>{s=n(s,i,d)}),s),Jo=(e,n,s)=>(mt(e,(i,d)=>{s=n(s,i,d)}),s),sr=(e,n,s)=>{for(let i=0,d=e.length;i<d;i++){const h=e[i];if(n(h,i))return oe.some(h);if(s(h,i))break}return oe.none()},zt=(e,n)=>sr(e,n,lt),fo=(e,n)=>{for(let s=0,i=e.length;s<i;s++){const d=e[s];if(n(d,s))return oe.some(s)}return oe.none()},Ms=e=>{const n=[];for(let s=0,i=e.length;s<i;++s){if(!pe(e[s]))throw new Error("Arr.flatten item "+s+" was not an array, input: "+e);io.apply(n,e[s])}return n},Ps=(e,n)=>Ms(yn(e,n)),ns=(e,n)=>{for(let s=0,i=e.length;s<i;++s){const d=e[s];if(n(d,s)!==!0)return!1}return!0},gs=e=>{const n=wo.call(e,0);return n.reverse(),n},Vn=(e,n)=>mn(e,s=>!An(n,s)),Tn=(e,n)=>{const s={};for(let i=0,d=e.length;i<d;i++){const h=e[i];s[String(h)]=n(h,i)}return s},$n=(e,n)=>{const s=wo.call(e,0);return s.sort(n),s},Bo=(e,n)=>n>=0&&n<e.length?oe.some(e[n]):oe.none(),hn=e=>Bo(e,0),_o=e=>Bo(e,e.length-1),is=de(Array.from)?Array.from:e=>wo.call(e),Et=(e,n)=>{for(let s=0;s<e.length;s++){const i=n(e[s],s);if(i.isSome())return i}return oe.none()},Gt=(e,n)=>{const s=[],i=de(n)?d=>Mo(s,h=>n(h,d)):d=>An(s,d);for(let d=0,h=e.length;d<h;d++){const v=e[d];i(v)||s.push(v)}return s},fn=Object.keys,Ro=Object.hasOwnProperty,Nt=(e,n)=>{const s=fn(e);for(let i=0,d=s.length;i<d;i++){const h=s[i],v=e[h];n(v,h)}},qn=(e,n)=>Gs(e,(s,i)=>({k:i,v:n(s,i)})),Gs=(e,n)=>{const s={};return Nt(e,(i,d)=>{const h=n(i,d);s[h.k]=h.v}),s},rr=e=>(n,s)=>{e[s]=n},Sr=(e,n,s,i)=>{Nt(e,(d,h)=>{(n(d,h)?s:i)(d,h)})},Ca=(e,n)=>{const s={},i={};return Sr(e,n,rr(s),rr(i)),{t:s,f:i}},Fo=(e,n)=>{const s={};return Sr(e,n,rr(s),Qe),s},oa=(e,n)=>{const s=[];return Nt(e,(i,d)=>{s.push(n(i,d))}),s},fa=e=>oa(e,at),ws=(e,n)=>Gn(e,n)?oe.from(e[n]):oe.none(),Gn=(e,n)=>Ro.call(e,n),Xr=(e,n)=>Gn(e,n)&&e[n]!==void 0&&e[n]!==null,tl=(e,n,s=L)=>P(s).eq(e,n),Wl=e=>{const n={};return mt(e,s=>{n[s]={}}),fn(n)},ii=e=>e.length!==void 0,Ks=Array.isArray,Wr=e=>{if(Ks(e))return e;{const n=[];for(let s=0,i=e.length;s<i;s++)n[s]=e[s];return n}},Ys=(e,n,s)=>{if(!e)return!1;if(s=s||e,ii(e)){for(let i=0,d=e.length;i<d;i++)if(n.call(s,e[i],i,e)===!1)return!1}else for(const i in e)if(Gn(e,i)&&n.call(s,e[i],i,e)===!1)return!1;return!0},jr=(e,n)=>{const s=[];return Ys(e,(i,d)=>{s.push(n(i,d,e))}),s},Nl=(e,n)=>{const s=[];return Ys(e,(i,d)=>{(!n||n(i,d,e))&&s.push(i)}),s},Xs=(e,n)=>{if(e){for(let s=0,i=e.length;s<i;s++)if(e[s]===n)return s}return-1},Aa=(e,n,s,i)=>{let d=Ke(s)?e[0]:s;for(let h=0;h<e.length;h++)d=n.call(i,d,e[h],h);return d},Oe=(e,n,s)=>{for(let i=0,d=e.length;i<d;i++)if(n.call(s,e[i],i,e))return i;return-1},Ae=e=>e[e.length-1],pt=e=>{let n=!1,s;return(...i)=>(n||(n=!0,s=e.apply(null,i)),s)},wt=(e,n,s,i)=>{const d=e.isiOS()&&/ipad/i.test(s)===!0,h=e.isiOS()&&!d,v=e.isiOS()||e.isAndroid(),T=v||i("(pointer:coarse)"),A=d||!h&&v&&i("(min-device-width:768px)"),F=h||v&&!A,ne=n.isSafari()&&e.isiOS()&&/safari/i.test(s)===!1,Y=!F&&!A&&!ne;return{isiPad:Pe(d),isiPhone:Pe(h),isTablet:Pe(A),isPhone:Pe(F),isTouch:Pe(T),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:Pe(ne),isDesktop:Pe(Y)}},gn=(e,n)=>{for(let s=0;s<e.length;s++){const i=e[s];if(i.test(n))return i}},Fn=(e,n)=>{const s=gn(e,n);if(!s)return{major:0,minor:0};const i=d=>Number(n.replace(s,"$"+d));return To(i(1),i(2))},$o=(e,n)=>{const s=String(n).toLowerCase();return e.length===0?je():Fn(e,s)},je=()=>To(0,0),To=(e,n)=>({major:e,minor:n}),Co={nu:To,detect:$o,unknown:je},xs=(e,n)=>Et(n.brands,s=>{const i=s.brand.toLowerCase();return zt(e,d=>{var h;return i===((h=d.brand)===null||h===void 0?void 0:h.toLowerCase())}).map(d=>({current:d.name,version:Co.nu(parseInt(s.version,10),0)}))}),kr=(e,n)=>{const s=String(n).toLowerCase();return zt(e,i=>i.search(s))},Wo=(e,n)=>kr(e,n).map(s=>{const i=Co.detect(s.versionRegexes,n);return{current:s.name,version:i}}),$i=(e,n)=>kr(e,n).map(s=>{const i=Co.detect(s.versionRegexes,n);return{current:s.name,version:i}}),tc=(e,n)=>e.substring(n),Rr=(e,n,s)=>n===""||e.length>=n.length&&e.substr(s,s+n.length)===n,jl=(e,n)=>Lo(e,n)?tc(e,n.length):e,Vo=(e,n,s=0,i)=>{const d=e.indexOf(n,s);return d!==-1?Ke(i)?!0:d+n.length<=i:!1},Lo=(e,n)=>Rr(e,n,0),ma=(e,n)=>Rr(e,n,e.length-n.length),pa=e=>n=>n.replace(e,""),vl=pa(/^\s+|\s+$/g),Ci=pa(/^\s+/g),Si=pa(/\s+$/g),ms=e=>e.length>0,Na=e=>!ms(e),ci=(e,n)=>n<=0?"":new Array(n+1).join(e),Di=(e,n=10)=>{const s=parseInt(e,n);return isNaN(s)?oe.none():oe.some(s)},wl=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Tr=e=>n=>Vo(n,e),tr=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>Vo(e,"edge/")&&Vo(e,"chrome")&&Vo(e,"safari")&&Vo(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,wl],search:e=>Vo(e,"chrome")&&!Vo(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>Vo(e,"msie")||Vo(e,"trident")},{name:"Opera",versionRegexes:[wl,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Tr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Tr("firefox")},{name:"Safari",versionRegexes:[wl,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(Vo(e,"safari")||Vo(e,"mobile/"))&&Vo(e,"applewebkit")}],Ld=[{name:"Windows",search:Tr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>Vo(e,"iphone")||Vo(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Tr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Tr("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Tr("linux"),versionRegexes:[]},{name:"Solaris",search:Tr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Tr("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Tr("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],gc={browsers:Pe(tr),oses:Pe(Ld)},Os="Edge",Sa="Chromium",Ua="IE",_r="Opera",Mc="Firefox",Cl="Safari",Wa=()=>ja({current:void 0,version:Co.unknown()}),ja=e=>{const n=e.current,s=e.version,i=d=>()=>n===d;return{current:n,version:s,isEdge:i(Os),isChromium:i(Sa),isIE:i(Ua),isOpera:i(_r),isFirefox:i(Mc),isSafari:i(Cl)}},nd={unknown:Wa,nu:ja,edge:Pe(Os),chromium:Pe(Sa),ie:Pe(Ua),opera:Pe(_r),firefox:Pe(Mc),safari:Pe(Cl)},bc="Windows",yc="iOS",nl="Android",Zl="Linux",Eu="macOS",ql="Solaris",vc="FreeBSD",su="ChromeOS",ge=()=>Fe({current:void 0,version:Co.unknown()}),Fe=e=>{const n=e.current,s=e.version,i=d=>()=>n===d;return{current:n,version:s,isWindows:i(bc),isiOS:i(yc),isAndroid:i(nl),isMacOS:i(Eu),isLinux:i(Zl),isSolaris:i(ql),isFreeBSD:i(vc),isChromeOS:i(su)}},Ze={unknown:ge,nu:Fe,windows:Pe(bc),ios:Pe(yc),android:Pe(nl),linux:Pe(Zl),macos:Pe(Eu),solaris:Pe(ql),freebsd:Pe(vc),chromeos:Pe(su)},Ht={detect:(e,n,s)=>{const i=gc.browsers(),d=gc.oses(),h=n.bind(A=>xs(i,A)).orThunk(()=>Wo(i,e)).fold(nd.unknown,nd.nu),v=$i(d,e).fold(Ze.unknown,Ze.nu),T=wt(v,h,e,s);return{browser:h,os:v,deviceType:T}}},Ln=e=>window.matchMedia(e).matches;let As=pt(()=>Ht.detect(navigator.userAgent,oe.from(navigator.userAgentData),Ln));const js=()=>As(),Es=navigator.userAgent,bs=js(),ss=bs.browser,Ba=bs.os,xi=bs.deviceType,so=Es.indexOf("Windows Phone")!==-1,Qo={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:ss.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!ss.isIE(),windowsPhone:so,browser:{current:ss.current,version:ss.version,isChromium:ss.isChromium,isEdge:ss.isEdge,isFirefox:ss.isFirefox,isIE:ss.isIE,isOpera:ss.isOpera,isSafari:ss.isSafari},os:{current:Ba.current,version:Ba.version,isAndroid:Ba.isAndroid,isChromeOS:Ba.isChromeOS,isFreeBSD:Ba.isFreeBSD,isiOS:Ba.isiOS,isLinux:Ba.isLinux,isMacOS:Ba.isMacOS,isSolaris:Ba.isSolaris,isWindows:Ba.isWindows},deviceType:{isDesktop:xi.isDesktop,isiPad:xi.isiPad,isiPhone:xi.isiPhone,isPhone:xi.isPhone,isTablet:xi.isTablet,isTouch:xi.isTouch,isWebView:xi.isWebView}},xa=/^\s*|\s*$/g,Mr=e=>Me(e)?"":(""+e).replace(xa,""),re=(e,n)=>n?n==="array"&&Ks(e)?!0:typeof e===n:e!==void 0,be=(e,n,s={})=>{const i=H(e)?e.split(n||","):e||[];let d=i.length;for(;d--;)s[i[d]]={};return s},Re=Gn,ct=(e,...n)=>{for(let s=0;s<n.length;s++){const i=n[s];for(const d in i)if(Gn(i,d)){const h=i[d];h!==void 0&&(e[d]=h)}}return e},sn=function(e,n,s,i){i=i||this,e&&(s&&(e=e[s]),Ys(e,(d,h)=>n.call(i,d,h,s)===!1?!1:(sn(d,n,s,i),!0)))},$t={trim:Mr,isArray:Ks,is:re,toArray:Wr,makeMap:be,each:Ys,map:jr,grep:Nl,inArray:Xs,hasOwn:Re,extend:ct,walk:sn,resolve:(e,n=window)=>{const s=e.split(".");for(let i=0,d=s.length;i<d&&(n=n[s[i]],!!n);i++);return n},explode:(e,n)=>pe(e)?e:e===""?[]:jr(e.split(n||","),Mr),_addCacheSuffix:e=>{const n=Qo.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},$a=(e,n,s=st)=>e.exists(i=>s(i,n)),Js=e=>{const n=[],s=i=>{n.push(i)};for(let i=0;i<e.length;i++)e[i].each(s);return n},ta=(e,n,s)=>e.isSome()&&n.isSome()?oe.some(s(e.getOrDie(),n.getOrDie())):oe.none(),od=(e,n,s,i)=>e.isSome()&&n.isSome()&&s.isSome()?oe.some(i(e.getOrDie(),n.getOrDie(),s.getOrDie())):oe.none(),qo=(e,n)=>e?oe.some(n):oe.none(),Ce=typeof window!="undefined"?window:Function("return this;")(),Be=(e,n)=>{let s=n!=null?n:Ce;for(let i=0;i<e.length&&s!==void 0&&s!==null;++i)s=s[e[i]];return s},tt=(e,n)=>{const s=e.split(".");return Be(s,n)},gt=(e,n)=>tt(e,n),vn=(e,n)=>{const s=gt(e,n);if(s==null)throw new Error(e+" not available on this browser");return s},rs=Object.getPrototypeOf,hr=e=>vn("HTMLElement",e),es=e=>{const n=tt("ownerDocument.defaultView",e);return J(e)&&(hr(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(rs(e).constructor.name))},ha=8,Pr=9,nr=11,Bl=1,Sl=3,or=e=>e.dom.nodeName.toLowerCase(),sa=e=>e.dom.nodeType,Zr=e=>n=>sa(n)===e,wc=e=>sa(e)===ha||or(e)==="#comment",nc=e=>ur(e)&&es(e.dom),ur=Zr(Bl),Za=Zr(Sl),Pc=Zr(Pr),xf=Zr(nr),ku=e=>n=>ur(n)&&or(n)===e,Ic=(e,n,s)=>{if(H(s)||Se(s)||bt(s))e.setAttribute(n,s+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",s,":: Element ",e),new Error("Attribute value was not simple")},ra=(e,n,s)=>{Ic(e.dom,n,s)},Gl=(e,n)=>{const s=e.dom;Nt(n,(i,d)=>{Ic(s,d,i)})},ol=(e,n)=>{const s=e.dom.getAttribute(n);return s===null?void 0:s},Fc=(e,n)=>oe.from(ol(e,n)),sd=(e,n)=>{const s=e.dom;return s&&s.hasAttribute?s.hasAttribute(n):!1},Is=(e,n)=>{e.dom.removeAttribute(n)},oc=e=>{const n=e.dom.attributes;return n==null||n.length===0},Am=e=>Jo(e.dom.attributes,(n,s)=>(n[s.name]=s.value,n),{}),Tu=(e,n)=>{const s=ol(e,n);return s===void 0||s===""?[]:s.split(" ")},Ef=(e,n,s)=>{const d=Tu(e,n).concat([s]);return ra(e,n,d.join(" ")),!0},yp=(e,n,s)=>{const i=mn(Tu(e,n),d=>d!==s);return i.length>0?ra(e,n,i.join(" ")):Is(e,n),!1},_u=e=>e.dom.classList!==void 0,Ri=e=>Tu(e,"class"),zd=(e,n)=>Ef(e,"class",n),ui=(e,n)=>yp(e,"class",n),Ou=(e,n)=>An(Ri(e),n)?ui(e,n):zd(e,n),ru=(e,n)=>{_u(e)?e.dom.classList.add(n):zd(e,n)},vp=e=>{(_u(e)?e.dom.classList:Ri(e)).length===0&&Is(e,"class")},Lc=(e,n)=>{_u(e)?e.dom.classList.remove(n):ui(e,n),vp(e)},wp=(e,n)=>{const s=_u(e)?e.dom.classList.toggle(n):Ou(e,n);return vp(e),s},Nm=(e,n)=>_u(e)&&e.dom.classList.contains(n),rd=(e,n)=>{const i=(n||document).createElement("div");if(i.innerHTML=e,!i.hasChildNodes()||i.childNodes.length>1){const d="HTML does not have a single root node";throw console.error(d,e),new Error(d)}return Vd(i.childNodes[0])},Cp=(e,n)=>{const i=(n||document).createElement(e);return Vd(i)},Sp=(e,n)=>{const i=(n||document).createTextNode(e);return Vd(i)},Vd=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},Ne={fromHtml:rd,fromTag:Cp,fromText:Sp,fromDom:Vd,fromPoint:(e,n,s)=>oe.from(e.dom.elementFromPoint(n,s)).map(Vd)},xp=(e,n)=>{const s=[],i=h=>(s.push(h),n(h));let d=n(e);do d=d.bind(i);while(d.isSome());return s},di=(e,n)=>{const s=e.dom;if(s.nodeType!==Bl)return!1;{const i=s;if(i.matches!==void 0)return i.matches(n);if(i.msMatchesSelector!==void 0)return i.msMatchesSelector(n);if(i.webkitMatchesSelector!==void 0)return i.webkitMatchesSelector(n);if(i.mozMatchesSelector!==void 0)return i.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},Eh=e=>e.nodeType!==Bl&&e.nodeType!==Pr&&e.nodeType!==nr||e.childElementCount===0,R1=(e,n)=>{const s=n===void 0?document:n.dom;return Eh(s)?[]:yn(s.querySelectorAll(e),Ne.fromDom)},M1=(e,n)=>{const s=n===void 0?document:n.dom;return Eh(s)?oe.none():oe.from(s.querySelector(e)).map(Ne.fromDom)},Vs=(e,n)=>e.dom===n.dom,sc=(e,n)=>{const s=e.dom,i=n.dom;return s===i?!1:s.contains(i)},xl=e=>Ne.fromDom(e.dom.ownerDocument),Au=e=>Pc(e)?e:xl(e),ad=e=>Ne.fromDom(Au(e).dom.documentElement),kf=e=>Ne.fromDom(Au(e).dom.defaultView),Ei=e=>oe.from(e.dom.parentNode).map(Ne.fromDom),Ep=e=>oe.from(e.dom.parentElement).map(Ne.fromDom),Bm=(e,n)=>{const s=de(n)?n:lt;let i=e.dom;const d=[];for(;i.parentNode!==null&&i.parentNode!==void 0;){const h=i.parentNode,v=Ne.fromDom(h);if(d.push(v),s(v)===!0)break;i=h}return d},kp=e=>{const n=s=>mn(s,i=>!Vs(e,i));return Ei(e).map(sl).map(n).getOr([])},zc=e=>oe.from(e.dom.previousSibling).map(Ne.fromDom),Hd=e=>oe.from(e.dom.nextSibling).map(Ne.fromDom),Ig=e=>gs(xp(e,zc)),Mi=e=>xp(e,Hd),sl=e=>yn(e.dom.childNodes,Ne.fromDom),ld=(e,n)=>{const s=e.dom.childNodes;return oe.from(s[n]).map(Ne.fromDom)},Tf=e=>ld(e,0),Pi=e=>ld(e,e.dom.childNodes.length-1),fi=e=>e.dom.childNodes.length,kh=e=>e.dom.hasChildNodes(),Fg=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return Ne.fromDom(n)},_f=e=>xf(e)&&Ee(e.dom.host),$m=de(Element.prototype.attachShadow)&&de(Node.prototype.getRootNode),Th=Pe($m),au=$m?e=>Ne.fromDom(e.dom.getRootNode()):Au,Tp=e=>_f(e)?e:Fg(Au(e)),zC=e=>_f(e)?e:Ne.fromDom(Au(e).dom.body),P1=e=>{const n=au(e);return _f(n)?oe.some(n):oe.none()},_h=e=>Ne.fromDom(e.dom.host),Of=e=>{if(Th()&&Ee(e.target)){const n=Ne.fromDom(e.target);if(ur(n)&&Lg(n)&&e.composed&&e.composedPath){const s=e.composedPath();if(s)return hn(s)}}return oe.from(e.target)},Lg=e=>Ee(e.dom.shadowRoot),Nu=e=>{const n=Za(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const s=n.ownerDocument;return P1(Ne.fromDom(n)).fold(()=>s.body.contains(n),qe(Nu,_h))};var V=(e,n,s,i,d)=>e(s,i)?oe.some(s):de(d)&&d(s)?oe.none():n(s,i,d);const Q=(e,n,s)=>{let i=e.dom;const d=de(s)?s:lt;for(;i.parentNode;){i=i.parentNode;const h=Ne.fromDom(i);if(n(h))return oe.some(h);if(d(h))break}return oe.none()},me=(e,n,s)=>V((d,h)=>h(d),Q,e,n,s),Le=(e,n)=>{const s=e.dom;return s.parentNode?Ve(Ne.fromDom(s.parentNode),i=>!Vs(e,i)&&n(i)):oe.none()},Ve=(e,n)=>{const s=d=>n(Ne.fromDom(d));return zt(e.dom.childNodes,s).map(Ne.fromDom)},Ft=(e,n)=>{const s=i=>{for(let d=0;d<i.childNodes.length;d++){const h=Ne.fromDom(i.childNodes[d]);if(n(h))return oe.some(h);const v=s(i.childNodes[d]);if(v.isSome())return v}return oe.none()};return s(e.dom)},to=(e,n,s)=>Q(e,i=>di(i,n),s),So=(e,n)=>M1(n,e),xo=(e,n,s)=>V((d,h)=>di(d,h),to,e,n,s),mo=e=>xo(e,"[contenteditable]"),Nn=(e,n=!1)=>Nu(e)?e.dom.isContentEditable:mo(e).fold(Pe(n),s=>qr(s)==="true"),qr=e=>e.dom.contentEditable,rl=e=>e.style!==void 0&&de(e.style.getPropertyValue),I1=(e,n,s)=>{if(!H(s))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",s,":: Element ",e),new Error("CSS value must be a string: "+s);rl(e)&&e.style.setProperty(n,s)},Oh=(e,n)=>{rl(e)&&e.style.removeProperty(n)},zg=(e,n,s)=>{const i=e.dom;I1(i,n,s)},Vg=(e,n)=>{const s=e.dom;Nt(n,(i,d)=>{I1(s,d,i)})},qa=(e,n)=>{const s=e.dom,d=window.getComputedStyle(s).getPropertyValue(n);return d===""&&!Nu(e)?mi(s,n):d},mi=(e,n)=>rl(e)?e.style.getPropertyValue(n):"",Ii=(e,n)=>{const s=e.dom,i=mi(s,n);return oe.from(i).filter(d=>d.length>0)},Kl=e=>{const n={},s=e.dom;if(rl(s))for(let i=0;i<s.style.length;i++){const d=s.style.item(i);n[d]=s.style[d]}return n},Hg=(e,n)=>{const s=e.dom;Oh(s,n),$a(Fc(e,"style").map(vl),"")&&Is(e,"style")},Jr=e=>e.dom.offsetWidth,Fi=(e,n)=>{Ei(e).each(i=>{i.dom.insertBefore(n.dom,e.dom)})},Cc=(e,n)=>{Hd(e).fold(()=>{Ei(e).each(d=>{ga(d,n)})},i=>{Fi(i,n)})},_p=(e,n)=>{Tf(e).fold(()=>{ga(e,n)},i=>{e.dom.insertBefore(n.dom,i.dom)})},ga=(e,n)=>{e.dom.appendChild(n.dom)},Z0=(e,n)=>{Fi(e,n),ga(n,e)},F1=(e,n)=>{mt(n,(s,i)=>{const d=i===0?e:n[i-1];Cc(d,s)})},gr=(e,n)=>{mt(n,s=>{ga(e,s)})},id=e=>{e.dom.textContent="",mt(sl(e),n=>{Ns(n)})},Ns=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},ki=e=>{const n=sl(e);n.length>0&&F1(e,n),Ns(e)},Af=(e,n)=>{const i=(n||document).createElement("div");return i.innerHTML=e,sl(Ne.fromDom(i))},Nf=e=>yn(e,Ne.fromDom),Dm=e=>e.dom.innerHTML,Ho=(e,n)=>{const i=xl(e).dom,d=Ne.fromDom(i.createDocumentFragment()),h=Af(n,i);gr(d,h),id(e),ga(e,d)},Ug=e=>{const n=Ne.fromTag("div"),s=Ne.fromDom(e.dom.cloneNode(!0));return ga(n,s),Dm(n)},Wg=(e,n,s,i,d,h,v)=>({target:e,x:n,y:s,stop:i,prevent:d,kill:h,raw:v}),VC=e=>{const n=Ne.fromDom(Of(e).getOr(e.target)),s=()=>e.stopPropagation(),i=()=>e.preventDefault(),d=M(i,s);return Wg(n,e.clientX,e.clientY,s,i,d,e)},VE=(e,n)=>s=>{e(s)&&n(VC(s))},jg=(e,n,s,i,d)=>{const h=VE(s,i);return e.dom.addEventListener(n,h,d),{unbind:Ye(HC,e,n,h,d)}},Ah=(e,n,s,i)=>jg(e,n,s,i,!1),HC=(e,n,s,i)=>{e.dom.removeEventListener(n,s,i)},cd=(e,n)=>({left:e,top:n,translate:(i,d)=>cd(e+i,n+d)}),Rm=cd,UC=e=>{const n=e.getBoundingClientRect();return Rm(n.left,n.top)},Nh=(e,n)=>e!==void 0?e:n!==void 0?n:0,Ud=e=>{const n=e.dom.ownerDocument,s=n.body,i=n.defaultView,d=n.documentElement;if(s===e.dom)return Rm(s.offsetLeft,s.offsetTop);const h=Nh(i==null?void 0:i.pageYOffset,d.scrollTop),v=Nh(i==null?void 0:i.pageXOffset,d.scrollLeft),T=Nh(d.clientTop,s.clientTop),A=Nh(d.clientLeft,s.clientLeft);return L1(e).translate(v-A,h-T)},L1=e=>{const n=e.dom,i=n.ownerDocument.body;return i===n?Rm(i.offsetLeft,i.offsetTop):Nu(e)?UC(n):Rm(0,0)},Bu=e=>{const n=e!==void 0?e.dom:document,s=n.body.scrollLeft||n.documentElement.scrollLeft,i=n.body.scrollTop||n.documentElement.scrollTop;return Rm(s,i)},Bf=(e,n)=>{js().browser.isSafari()&&de(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},WC=e=>{const n=e===void 0?window:e;return js().browser.isFirefox()?oe.none():oe.from(n.visualViewport)},Zg=(e,n,s,i)=>({x:e,y:n,width:s,height:i,right:e+s,bottom:n+i}),z1=e=>{const n=e===void 0?window:e,s=n.document,i=Bu(Ne.fromDom(s));return WC(n).fold(()=>{const d=n.document.documentElement,h=d.clientWidth,v=d.clientHeight;return Zg(i.left,i.top,h,v)},d=>Zg(Math.max(d.pageLeft,i.left),Math.max(d.pageTop,i.top),d.width,d.height))},V1=(e,n)=>mn(sl(e),n),H1=(e,n)=>{let s=[];return mt(sl(e),i=>{n(i)&&(s=s.concat([i])),s=s.concat(H1(i,n))}),s},$l=(e,n)=>R1(n,e),qg=(e,n,s)=>to(e,n,s).isSome();class Da{constructor(n,s){this.node=n,this.rootNode=s,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,s,i,d){if(n){if(!d&&n[s])return n[s];if(n!==this.rootNode){let h=n[i];if(h)return h;for(let v=n.parentNode;v&&v!==this.rootNode;v=v.parentNode)if(h=v[i],h)return h}}}findPreviousNode(n,s){if(n){const i=n.previousSibling;if(this.rootNode&&i===this.rootNode)return;if(i){if(!s){for(let h=i.lastChild;h;h=h.lastChild)if(!h.lastChild)return h}return i}const d=n.parentNode;if(d&&d!==this.rootNode)return d}}}const Yl=e=>n=>!!n&&n.nodeType===e,Un=e=>!!e&&!Object.getPrototypeOf(e),cn=Yl(1),Op=e=>{const n=e.toLowerCase();return s=>Ee(s)&&s.nodeName.toLowerCase()===n},Vc=e=>{const n=e.map(s=>s.toLowerCase());return s=>{if(s&&s.nodeName){const i=s.nodeName.toLowerCase();return An(n,i)}return!1}},Ap=(e,n)=>{const s=n.toLowerCase().split(" ");return i=>{if(cn(i)){const d=i.ownerDocument.defaultView;if(d)for(let h=0;h<s.length;h++){const v=d.getComputedStyle(i,null);if((v?v.getPropertyValue(e):null)===s[h])return!0}}return!1}},Bh=e=>n=>cn(n)&&n.hasAttribute(e),Sc=(e,n)=>s=>cn(s)&&s.getAttribute(e)===n,xc=e=>cn(e)&&e.hasAttribute("data-mce-bogus"),Np=e=>cn(e)&&e.getAttribute("data-mce-bogus")==="all",Qr=e=>cn(e)&&e.tagName==="TABLE",Bp=e=>n=>!!(cn(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),$h=Vc(["textarea","input"]),Vt=Yl(3),jC=Yl(4),ZC=Yl(7),rc=Yl(8),$p=Yl(9),$f=Yl(11),Gr=Op("br"),q0=Op("img"),Qs=Bp("true"),Fs=Bp("false"),Xl=Vc(["td","th"]),Dp=Vc(["td","th","caption"]),Ea=Vc(["video","audio","object","embed"]),Mm=Op("li"),al=Op("details"),Ti=Op("summary"),Wd="\uFEFF",St=" ",Li=e=>e===Wd,G0=e=>e.replace(/\uFEFF/g,""),lu=((e,n)=>{const s=h=>{if(!e(h))throw new Error("Can only get "+n+" value of a "+n+" node");return i(h).getOr("")},i=h=>e(h)?oe.from(h.dom.nodeValue):oe.none();return{get:s,getOption:i,set:(h,v)=>{if(!e(h))throw new Error("Can only set raw "+n+" value of a "+n+" node");h.dom.nodeValue=v}}})(Za,"text"),Gg=e=>lu.get(e),Ec=e=>lu.getOption(e),qC=(e,n)=>lu.set(e,n),Df=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],U1=["td","th"],kc=["thead","tbody","tfoot"],Bs=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ud=["h1","h2","h3","h4","h5","h6"],Dh=["li","dd","dt"],Jl=["ul","ol","dl"],Kg=["pre","script","textarea","style"],Rf=["pre"].concat(ud),jd=e=>{let n;return s=>(n=n||Tn(e,it),Gn(n,or(s)))},ba=jd(Df),Yg=e=>or(e)==="table",ot=e=>ur(e)&&!ba(e),Ql=e=>ur(e)&&or(e)==="br",Rh=jd(Bs),_i=jd(Jl),pi=jd(Dh),El=jd(kc),aa=jd(U1),Xg=jd(Kg),Mf=jd(Rf),Pf=e=>Mf(e)||ot(e),Xn=e=>{const n=[];let s=e.dom;for(;s;)n.push(Ne.fromDom(s)),s=s.lastChild;return n},HE=e=>{const n=$l(e,"br"),s=mn(Xn(e).slice(-1),Ql);n.length===s.length&&mt(s,Ns)},$=()=>{const e=Ne.fromTag("br");return ra(e,"data-mce-bogus","1"),e},I=e=>{id(e),ga(e,$())},ie=e=>{Pi(e).each(n=>{zc(n).each(s=>{ba(e)&&Ql(n)&&ba(s)&&Ns(n)})})},ye=Wd,ze=Li,Ct=G0,Lt=cn,an=Vt,Qn=e=>(an(e)&&(e=e.parentNode),Lt(e)&&e.hasAttribute("data-mce-caret")),ro=e=>an(e)&&ze(e.data),Hs=e=>Qn(e)||ro(e),ks=e=>e.firstChild!==e.lastChild||!Gr(e.firstChild),Ir=(e,n)=>{var s;const d=((s=e.ownerDocument)!==null&&s!==void 0?s:document).createTextNode(ye),h=e.parentNode;if(n){const v=e.previousSibling;if(an(v)){if(Hs(v))return v;if(Pm(v))return v.splitText(v.data.length-1)}h==null||h.insertBefore(d,e)}else{const v=e.nextSibling;if(an(v)){if(Hs(v))return v;if(zi(v))return v.splitText(1),v}e.nextSibling?h==null||h.insertBefore(d,e.nextSibling):h==null||h.appendChild(d)}return d},ei=e=>{const n=e.container();return Vt(n)?n.data.charAt(e.offset())===ye||e.isAtStart()&&ro(n.previousSibling):!1},Hc=e=>{const n=e.container();return Vt(n)?n.data.charAt(e.offset()-1)===ye||e.isAtEnd()&&ro(n.nextSibling):!1},Zd=(e,n,s)=>{var i;const h=((i=n.ownerDocument)!==null&&i!==void 0?i:document).createElement(e);h.setAttribute("data-mce-caret",s?"before":"after"),h.setAttribute("data-mce-bogus","all"),h.appendChild($().dom);const v=n.parentNode;return s?v==null||v.insertBefore(h,n):n.nextSibling?v==null||v.insertBefore(h,n.nextSibling):v==null||v.appendChild(h),h},zi=e=>an(e)&&e.data[0]===ye,Pm=e=>an(e)&&e.data[e.data.length-1]===ye,Jg=e=>{var n;const s=e.getElementsByTagName("br"),i=s[s.length-1];xc(i)&&((n=i.parentNode)===null||n===void 0||n.removeChild(i))},Im=e=>e&&e.hasAttribute("data-mce-caret")?(Jg(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,If=e=>Qn(e.startContainer),ka=Qs,Uc=Fs,qd=Gr,Fm=Vt,K0=Vc(["script","style","textarea"]),zo=Vc(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Fr=Vc(["table"]),Dl=Hs,la=e=>Dl(e)?!1:Fm(e)?!K0(e.parentNode):zo(e)||qd(e)||Fr(e)||dd(e),Gd=e=>cn(e)&&e.getAttribute("unselectable")==="true",dd=e=>!Gd(e)&&Uc(e),$u=(e,n)=>{for(let s=e.parentNode;s&&s!==n;s=s.parentNode){if(dd(s))return!1;if(ka(s))return!0}return!0},ac=e=>dd(e)?!Jo(is(e.getElementsByTagName("*")),(n,s)=>n||ka(s),!1):!1,UE=e=>zo(e)||ac(e),Rp=(e,n)=>la(e)&&$u(e,n),Qg=/^[ \t\r\n]*$/,Du=e=>Qg.test(e),WE=e=>{for(const n of e)if(!Li(n))return!1;return!0},W1=e=>" \f \v".indexOf(e)!==-1,GC=e=>e===`
|
|
74
74
|
`||e==="\r",KC=(e,n)=>n<e.length&&n>=0?GC(e[n]):!1,ya=(e,n=4,s=!0,i=!0)=>{const d=ci(" ",n),h=e.replace(/\t/g,d);return Jo(h,(T,A)=>W1(A)||A===St?T.pcIsSpace||T.str===""&&s||T.str.length===h.length-1&&i||KC(h,T.str.length+1)?{pcIsSpace:!1,str:T.str+St}:{pcIsSpace:!0,str:T.str+" "}:{pcIsSpace:GC(A),str:T.str+A},{pcIsSpace:!1,str:""}).str},jE=(e,n)=>{const s=Ne.fromDom(n),i=Ne.fromDom(e);return qg(i,"pre,code",Ye(Vs,s))},Ff=(e,n)=>Vt(e)&&Du(e.data)&&!jE(e,n),eb=e=>cn(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),Kd=(e,n)=>la(e)&&!Ff(e,n)||eb(e)||Yd(e),Yd=Bh("data-mce-bookmark"),iu=Bh("data-mce-bogus"),tb=Sc("data-mce-bogus","all"),j1=(e,n)=>{let s=0;if(Kd(e,e))return!1;{let i=e.firstChild;if(!i)return!0;const d=new Da(i,e);do{if(n){if(tb(i)){i=d.next(!0);continue}if(iu(i)){i=d.next();continue}}if(Gr(i)){s++,i=d.next();continue}if(Kd(i,e))return!1;i=d.next()}while(i);return s<=1}},ll=(e,n=!0)=>j1(e.dom,n),Mp="data-mce-block",YC=e=>mn(fn(e),n=>!/[A-Z]/.test(n)),Mh=e=>YC(e).join(","),nb=(e,n)=>Ee(n.querySelector(e))?(n.setAttribute(Mp,"true"),n.getAttribute("data-mce-selected")==="inline-boundary"&&n.removeAttribute("data-mce-selected"),!0):(n.removeAttribute(Mp),!1),XC=(e,n)=>{const s=Mh(e.getTransparentElements()),i=Mh(e.getBlockElements());return mn(n.querySelectorAll(s),d=>nb(i,d))},Ph=(e,n)=>{var s;const i=n?"lastChild":"firstChild";for(let d=e[i];d;d=d[i])if(ll(Ne.fromDom(d))){(s=d.parentNode)===null||s===void 0||s.removeChild(d);return}},Lm=(e,n)=>{const s=document.createRange(),i=e.parentNode;if(i){s.setStartBefore(e),s.setEndBefore(n);const d=s.extractContents();Ph(d,!0),s.setStartAfter(n),s.setEndAfter(e);const h=s.extractContents();Ph(h,!1),ll(Ne.fromDom(d))||i.insertBefore(d,e),ll(Ne.fromDom(n))||i.insertBefore(n,e),ll(Ne.fromDom(h))||i.insertBefore(h,e),i.removeChild(e)}},Tc=(e,n,s)=>{const i=e.getBlockElements(),d=Ne.fromDom(n),h=T=>or(T)in i,v=T=>Vs(T,d);mt(Nf(s),T=>{Q(T,h,v).each(A=>{const F=V1(T,ne=>h(ne)&&!e.isValidChild(or(A),or(ne)));if(F.length>0){const ne=Ep(A);mt(F,Y=>{Q(Y,h,v).each(ce=>{Lm(ce.dom,Y.dom)})}),ne.each(Y=>XC(e,Y.dom))}})})},zm=(e,n,s)=>{mt([...s,...Pp(e,n)?[n]:[]],i=>mt($l(Ne.fromDom(i),i.nodeName.toLowerCase()),d=>{qE(e,d.dom)&&ki(d)}))},Lf=(e,n)=>{const s=XC(e,n);Tc(e,n,s),zm(e,n,s)},JC=(e,n)=>{if(ob(e,n)){const s=Mh(e.getBlockElements());nb(s,n)}},ZE=(e,n,s)=>{const i=h=>Vs(h,Ne.fromDom(n)),d=Bm(Ne.fromDom(s),i);Bo(d,d.length-2).filter(ur).fold(()=>Lf(e,n),h=>Lf(e,h.dom))},Z1=e=>e.hasAttribute(Mp),q1=(e,n)=>Gn(e.getTransparentElements(),n),ob=(e,n)=>cn(n)&&q1(e,n.nodeName),Pp=(e,n)=>ob(e,n)&&Z1(n),qE=(e,n)=>ob(e,n)&&!Z1(n),Y0=(e,n)=>n.type===1&&q1(e,n.name)&&H(n.attr(Mp)),$s=(e,n)=>n.type===1&&q1(e,n.name)&&Ke(n.attr(Mp)),zn=js().browser,Ip=e=>zt(e,ur),QC=e=>zn.isFirefox()&&or(e)==="table"?Ip(sl(e)).filter(n=>or(n)==="caption").bind(n=>Ip(Mi(n)).map(s=>{const i=s.dom.offsetTop,d=n.dom.offsetTop,h=n.dom.offsetHeight;return i<=d?-h:0})).getOr(0):0,G1=(e,n)=>e.children&&An(e.children,n),GE=(e,n,s)=>{let i=0,d=0;const h=e.ownerDocument;if(s=s||e,n){if(s===e&&n.getBoundingClientRect&&qa(Ne.fromDom(e),"position")==="static"){const T=n.getBoundingClientRect();return i=T.left+(h.documentElement.scrollLeft||e.scrollLeft)-h.documentElement.clientLeft,d=T.top+(h.documentElement.scrollTop||e.scrollTop)-h.documentElement.clientTop,{x:i,y:d}}let v=n;for(;v&&v!==s&&v.nodeType&&!G1(v,s);){const T=v;i+=T.offsetLeft||0,d+=T.offsetTop||0,v=T.offsetParent}for(v=n.parentNode;v&&v!==s&&v.nodeType&&!G1(v,s);)i-=v.scrollLeft||0,d-=v.scrollTop||0,v=v.parentNode;d+=QC(Ne.fromDom(n))}return{x:i,y:d}},eS=(e,n={})=>{let s=0;const i={},d=Ne.fromDom(e),h=Au(d),v=ve=>{n.referrerPolicy=ve},T=ve=>{n.contentCssCors=ve},A=ve=>{ga(Tp(d),ve)},F=ve=>{const Te=Tp(d);So(Te,"#"+ve).each(Ns)},ne=ve=>ws(i,ve).getOrThunk(()=>({id:"mce-u"+s++,passed:[],failed:[],count:0})),Y=ve=>new Promise((Te,Ue)=>{let Xe;const Je=$t._addCacheSuffix(ve),rt=ne(Je);i[Je]=rt,rt.count++;const Bt=(Tt,Jt)=>{mt(Tt,lo),rt.status=Jt,rt.passed=[],rt.failed=[],Xe&&(Xe.onload=null,Xe.onerror=null,Xe=null)},Dn=()=>Bt(rt.passed,2),Pt=()=>Bt(rt.failed,3);if(Te&&rt.passed.push(Te),Ue&&rt.failed.push(Ue),rt.status===1)return;if(rt.status===2){Dn();return}if(rt.status===3){Pt();return}rt.status=1;const yt=Ne.fromTag("link",h.dom);Gl(yt,{rel:"stylesheet",type:"text/css",id:rt.id}),n.contentCssCors&&ra(yt,"crossOrigin","anonymous"),n.referrerPolicy&&ra(yt,"referrerpolicy",n.referrerPolicy),Xe=yt.dom,Xe.onload=Dn,Xe.onerror=Pt,A(yt),ra(yt,"href",Je)}),ce=ve=>Promise.allSettled(yn(ve,Ue=>Y(Ue).then(Pe(Ue)))).then(Ue=>{const Xe=vs(Ue,Je=>Je.status==="fulfilled");return Xe.fail.length>0?Promise.reject(yn(Xe.fail,Je=>Je.reason)):yn(Xe.pass,Je=>Je.value)}),ke=ve=>{const Te=$t._addCacheSuffix(ve);ws(i,Te).each(Ue=>{--Ue.count===0&&(delete i[Te],F(Ue.id))})};return{load:Y,loadAll:ce,unload:ke,unloadAll:ve=>{mt(ve,Te=>{ke(Te)})},_setReferrerPolicy:v,_setContentCssCors:T}},K1=(()=>{const e=new WeakMap;return{forElement:(s,i)=>{const h=au(s).dom;return oe.from(e.get(h)).getOrThunk(()=>{const v=eS(h,i);return e.set(h,v),v})}}})(),P4=e=>e.nodeName.toLowerCase()==="span",sb=(e,n)=>Ee(e)&&(Kd(e,n)||ot(Ne.fromDom(e))),Dt=(e,n)=>{const s=new Da(e,n).prev(!1),i=new Da(e,n).next(!1),d=Ke(s)||sb(s,n),h=Ke(i)||sb(i,n);return d&&h},Ih=e=>P4(e)&&e.getAttribute("data-mce-type")==="bookmark",I4=(e,n)=>Vt(e)&&e.data.length>0&&Dt(e,n),X0=e=>cn(e)?e.childNodes.length>0:!1,F4=e=>$f(e)||$p(e),Fp=(e,n,s)=>{var i;const d=s||n;if(cn(n)&&Ih(n))return n;const h=n.childNodes;for(let v=h.length-1;v>=0;v--)Fp(e,h[v],d);if(cn(n)){const v=n.childNodes;v.length===1&&Ih(v[0])&&((i=n.parentNode)===null||i===void 0||i.insertBefore(v[0],n))}return!F4(n)&&!Kd(n,d)&&!X0(n)&&!I4(n,d)&&e.remove(n),n},tS=$t.makeMap,zf=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,J0=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rb=/[<>&\"\']/g,zr=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,fd={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Fh={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Xd={"<":"<",">":">","&":"&",""":'"',"'":"'"},Q0=e=>{const n=Ne.fromTag("div").dom;return n.innerHTML=e,n.textContent||n.innerText||e},ab=(e,n)=>{const s={};if(e){const i=e.split(",");n=n||10;for(let d=0;d<i.length;d+=2){const h=String.fromCharCode(parseInt(i[d],n));if(!Fh[h]){const v="&"+i[d+1]+";";s[h]=v,s[v]=h}}return s}else return},Lp=ab("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),nS=(e,n)=>e.replace(n?zf:J0,s=>Fh[s]||s),L4=e=>(""+e).replace(rb,n=>Fh[n]||n),KE=(e,n)=>e.replace(n?zf:J0,s=>s.length>1?"&#"+((s.charCodeAt(0)-55296)*1024+(s.charCodeAt(1)-56320)+65536)+";":Fh[s]||"&#"+s.charCodeAt(0)+";"),ev=(e,n,s)=>{const i=s||Lp;return e.replace(n?zf:J0,d=>Fh[d]||i[d]||d)},zp={encodeRaw:nS,encodeAllRaw:L4,encodeNumeric:KE,encodeNamed:ev,getEncodeFunc:(e,n)=>{const s=ab(n)||Lp,i=(v,T)=>v.replace(T?zf:J0,A=>Fh[A]!==void 0?Fh[A]:s[A]!==void 0?s[A]:A.length>1?"&#"+((A.charCodeAt(0)-55296)*1024+(A.charCodeAt(1)-56320)+65536)+";":"&#"+A.charCodeAt(0)+";"),d=(v,T)=>ev(v,T,s),h=tS(e.replace(/\+/g,","));return h.named&&h.numeric?i:h.named?n?d:ev:h.numeric?KE:nS},decode:e=>e.replace(zr,(n,s)=>s?(s.charAt(0).toLowerCase()==="x"?s=parseInt(s.substr(1),16):s=parseInt(s,10),s>65535?(s-=65536,String.fromCharCode(55296+(s>>10),56320+(s&1023))):fd[s]||String.fromCharCode(s)):Xd[n]||Lp[n]||Q0(n))},tv={},Vp={},xn={},lb=$t.makeMap,hi=$t.each,oS=$t.extend,Y1=$t.explode,V4=$t.inArray,ti=(e,n)=>(e=$t.trim(e),e?e.split(n||" "):[]),md=(e,n={})=>{const s=lb(e," ",lb(e.toUpperCase()," "));return oS(s,n)},Vf=e=>md("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),H4=e=>{const n={};let s,i,d,h;const v=(A,F="",ne="")=>{const Y=ti(ne),ce=ti(A);let ke=ce.length;for(;ke--;){const _e=ti([s,F].join(" "));n[ce[ke]]={attributes:Tn(_e,()=>({})),attributesOrder:_e,children:Tn(Y,Pe(xn))}}},T=(A,F)=>{const ne=ti(A),Y=ti(F);let ce=ne.length;for(;ce--;){const ke=n[ne[ce]];for(let _e=0,ve=Y.length;_e<ve;_e++)ke.attributes[Y[_e]]={},ke.attributesOrder.push(Y[_e])}};if(tv[e])return tv[e];if(s="id accesskey class dir lang style tabindex title role",i="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",d="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",e!=="html4"){const A="a ins del canvas map";s+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",i+=" article aside details dialog figure main header footer hgroup section nav "+A,d+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"}if(e!=="html5-strict"){s+=" xml:lang";const A="acronym applet basefont big font strike tt";d=[d,A].join(" "),hi(ti(A),ne=>{v(ne,"",d)});const F="center dir isindex noframes";i=[i,F].join(" "),h=[i,d].join(" "),hi(ti(F),ne=>{v(ne,"",h)})}return h=h||[i,d].join(" "),v("html","manifest","head body"),v("head","","base command link meta noscript script style title"),v("title hr noscript br"),v("base","href target"),v("link","href rel media hreflang type sizes hreflang"),v("meta","name http-equiv content charset"),v("style","media type scoped"),v("script","src async defer type charset"),v("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",h),v("dd div","",h),v("address dt caption","",e==="html4"?d:h),v("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",d),v("blockquote","cite",h),v("ol","reversed start type","li"),v("ul","","li"),v("li","value",h),v("dl","","dt dd"),v("a","href target rel media hreflang type",e==="html4"?d:h),v("q","cite",d),v("ins del","cite datetime",h),v("img","src sizes srcset alt usemap ismap width height"),v("iframe","src name width height",h),v("embed","src type width height"),v("object","data type typemustmatch name usemap form width height",[h,"param"].join(" ")),v("param","name value"),v("map","name",[h,"area"].join(" ")),v("area","alt coords shape href target rel media hreflang type"),v("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),v("colgroup","span","col"),v("col","span"),v("tbody thead tfoot","","tr"),v("tr","","td th"),v("td","colspan rowspan headers",h),v("th","colspan rowspan headers scope abbr",h),v("form","accept-charset action autocomplete enctype method name novalidate target",h),v("fieldset","disabled form name",[h,"legend"].join(" ")),v("label","form for",d),v("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),v("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?h:d),v("select","disabled form multiple name required size","option optgroup"),v("optgroup","disabled label","option"),v("option","disabled label selected value"),v("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),v("menu","type label",[h,"li"].join(" ")),v("noscript","",h),e!=="html4"&&(v("wbr"),v("ruby","",[d,"rt rp"].join(" ")),v("figcaption","",h),v("mark rt rp summary bdi","",d),v("canvas","width height",h),v("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[h,"track source"].join(" ")),v("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[h,"track source"].join(" ")),v("picture","","img source"),v("source","src srcset type media sizes"),v("track","kind src srclang label default"),v("datalist","",[d,"option"].join(" ")),v("article section nav aside main header footer","",h),v("hgroup","","h1 h2 h3 h4 h5 h6"),v("figure","",[h,"figcaption"].join(" ")),v("time","datetime",d),v("dialog","open",h),v("command","type label icon disabled checked radiogroup command"),v("output","for form name",d),v("progress","value max",d),v("meter","value min max low high optimum",d),v("details","open",[h,"summary"].join(" ")),v("keygen","autofocus challenge disabled form keytype name")),e!=="html5-strict"&&(T("script","language xml:space"),T("style","xml:space"),T("object","declare classid code codebase codetype archive standby align border hspace vspace"),T("embed","align name hspace vspace"),T("param","valuetype type"),T("a","charset name rev shape coords"),T("br","clear"),T("applet","codebase archive code object alt name width height align hspace vspace"),T("img","name longdesc align border hspace vspace"),T("iframe","longdesc frameborder marginwidth marginheight scrolling align"),T("font basefont","size color face"),T("input","usemap align"),T("select"),T("textarea"),T("h1 h2 h3 h4 h5 h6 div p legend caption","align"),T("ul","type compact"),T("li","type"),T("ol dl menu dir","compact"),T("pre","width xml:space"),T("hr","align noshade size width"),T("isindex","prompt"),T("table","summary width frame rules cellspacing cellpadding align bgcolor"),T("col","width align char charoff valign"),T("colgroup","width align char charoff valign"),T("thead","align char charoff valign"),T("tr","align char charoff valign bgcolor"),T("th","axis align char charoff valign nowrap bgcolor width height"),T("form","accept"),T("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),T("tfoot","align char charoff valign"),T("tbody","align char charoff valign"),T("area","nohref"),T("body","background bgcolor text link vlink alink")),e!=="html4"&&(T("input button select textarea","autofocus"),T("input textarea","placeholder"),T("a","download"),T("link script img","crossorigin"),T("img","loading"),T("iframe","sandbox seamless allow allowfullscreen loading")),e!=="html4"&&mt([n.video,n.audio],A=>{delete A.children.audio,delete A.children.video}),hi(ti("a form meter progress dfn"),A=>{n[A]&&delete n[A].children[A]}),delete n.caption.children.table,delete n.script,tv[e]=n,n},ib=(e,n)=>{if(e){const s={};return H(e)&&(e={"*":e}),hi(e,(i,d)=>{s[d]=s[d.toUpperCase()]=n==="map"?lb(i,/[, ]/):Y1(i,/[, ]/)}),s}else return},Hp=(e={})=>{var n;const s={},i={};let d=[];const h={},v={},T=(bo,Go,Qa)=>{const oo=e[bo];if(oo)return lb(oo,/[, ]/,lb(oo.toUpperCase(),/[, ]/));{let $r=Vp[bo];return $r||($r=md(Go,Qa),Vp[bo]=$r),$r}},A=(n=e.schema)!==null&&n!==void 0?n:"html5",F=H4(A);e.verify_html===!1&&(e.valid_elements="*[*]");const ne=ib(e.valid_styles),Y=ib(e.invalid_styles,"map"),ce=ib(e.valid_classes,"map"),ke=T("whitespace_elements","pre script noscript style textarea video audio iframe object code"),_e=T("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),ve=T("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),Te=T("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),Ue="td th iframe video audio object script code",Xe=T("non_empty_elements",Ue+" pre",ve),Je=T("move_caret_before_on_enter_elements",Ue+" table",ve),rt=T("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),Bt=T("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",rt),Dn=T("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),Pt=T("transparent_elements","a ins del canvas map");hi("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),bo=>{v[bo]=new RegExp("</"+bo+"[^>]*>","gi")});const yt=bo=>new RegExp("^"+bo.replace(/([?+*])/g,".$1")+"$"),Tt=bo=>{const Go=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,Qa=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,oo=/[*?+]/;if(bo){const $r=ti(bo,",");let da,Kr;s["@"]&&(da=s["@"].attributes,Kr=s["@"].attributesOrder);for(let za=0,Ku=$r.length;za<Ku;za++){let Yi=Go.exec($r[za]);if(Yi){const df=Yi[1],Dd=Yi[2],f1=Yi[3],m1=Yi[5],ff={},mf=[],Va={attributes:ff,attributesOrder:mf};if(df==="#"&&(Va.paddEmpty=!0),df==="-"&&(Va.removeEmpty=!0),Yi[4]==="!"&&(Va.removeEmptyAttrs=!0),da&&(Nt(da,(pf,lp)=>{ff[lp]=pf}),Kr&&mf.push(...Kr)),m1){const pf=ti(m1,"|");for(let lp=0,hf=pf.length;lp<hf;lp++)if(Yi=Qa.exec(pf[lp]),Yi){const gf={},mh=Yi[1],mc=Yi[2].replace(/[\\:]:/g,":"),xg=Yi[3],ph=Yi[4];if(mh==="!"&&(Va.attributesRequired=Va.attributesRequired||[],Va.attributesRequired.push(mc),gf.required=!0),mh==="-"){delete ff[mc],mf.splice(V4(mf,mc),1);continue}if(xg&&(xg==="="&&(Va.attributesDefault=Va.attributesDefault||[],Va.attributesDefault.push({name:mc,value:ph}),gf.defaultValue=ph),xg==="~"&&(Va.attributesForced=Va.attributesForced||[],Va.attributesForced.push({name:mc,value:ph}),gf.forcedValue=ph),xg==="<"&&(gf.validValues=lb(ph,"?"))),oo.test(mc)){const Cm=gf;Va.attributePatterns=Va.attributePatterns||[],Cm.pattern=yt(mc),Va.attributePatterns.push(Cm)}else ff[mc]||mf.push(mc),ff[mc]=gf}}if(!da&&Dd==="@"&&(da=ff,Kr=mf),f1&&(Va.outputName=Dd,s[f1]=Va),oo.test(Dd)){const pf=Va;pf.pattern=yt(Dd),d.push(pf)}else s[Dd]=Va}}}},Jt=bo=>{d=[],mt(fn(s),Go=>{delete s[Go]}),Tt(bo),hi(F,(Go,Qa)=>{i[Qa]=Go.children})},tn=bo=>{const Go=/^(~)?(.+)$/;bo&&(delete Vp.text_block_elements,delete Vp.block_elements,hi(ti(bo,","),Qa=>{const oo=Go.exec(Qa);if(oo){const $r=oo[1]==="~",da=$r?"span":"div",Kr=oo[2];if(i[Kr]=i[da],h[Kr]=da,Xe[Kr.toUpperCase()]={},Xe[Kr]={},$r||(Bt[Kr.toUpperCase()]={},Bt[Kr]={}),!s[Kr]){let za=s[da];za=oS({},za),delete za.removeEmptyAttrs,delete za.removeEmpty,s[Kr]=za}hi(i,(za,Ku)=>{za[da]&&(i[Ku]=za=oS({},i[Ku]),za[Kr]=za[da])})}}))},Cn=bo=>{const Go=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;delete tv[A],bo&&hi(ti(bo,","),Qa=>{const oo=Go.exec(Qa);if(oo){const $r=oo[1];let da;$r?da=i[oo[2]]:da=i[oo[2]]={"#comment":{}},da=i[oo[2]],hi(ti(oo[3],"|"),Kr=>{$r==="-"?delete da[Kr]:da[Kr]={}})}})},go=bo=>{const Go=s[bo];if(Go)return Go;let Qa=d.length;for(;Qa--;){const oo=d[Qa];if(oo.pattern.test(bo))return oo}};e.valid_elements?Jt(e.valid_elements):(hi(F,(bo,Go)=>{s[Go]={attributes:bo.attributes,attributesOrder:bo.attributesOrder},i[Go]=bo.children}),hi(ti("strong/b em/i"),bo=>{const Go=ti(bo,"/");s[Go[1]].outputName=Go[0]}),hi(Dn,(bo,Go)=>{s[Go]&&(e.padd_empty_block_inline_children&&(s[Go].paddInEmptyBlock=!0),s[Go].removeEmpty=!0)}),hi(ti("ol ul blockquote a table tbody"),bo=>{s[bo]&&(s[bo].removeEmpty=!0)}),hi(ti("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),bo=>{s[bo]&&(s[bo].paddEmpty=!0)}),hi(ti("span"),bo=>{s[bo].removeEmptyAttrs=!0})),tn(e.custom_elements),Cn(e.valid_children),Tt(e.extended_valid_elements),Cn("+ol[ul|ol],+ul[ul|ol]"),hi({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(bo,Go)=>{s[Go]&&(s[Go].parentsRequired=ti(bo))}),e.invalid_elements&&hi(Y1(e.invalid_elements),bo=>{s[bo]&&delete s[bo]}),go("span")||Tt("span[!data-mce-type|*]");const ao=Pe(ne),ys=Pe(Y),Zo=Pe(ce),wr=Pe(Te),Ki=Pe(Bt),_l=Pe(rt),Zt=Pe(Dn),_n=Pe(Object.seal(ve)),Cs=Pe(_e),hs=Pe(Xe),kn=Pe(Je),Bn=Pe(ke),qt=Pe(Pt),Jn=Pe(Object.seal(v)),us=(bo,Go)=>{const Qa=i[bo.toLowerCase()];return!!(Qa&&Qa[Go.toLowerCase()])},ir=(bo,Go)=>{const Qa=go(bo);if(Qa)if(Go){if(Qa.attributes[Go])return!0;const oo=Qa.attributePatterns;if(oo){let $r=oo.length;for(;$r--;)if(oo[$r].pattern.test(Go))return!0}}else return!0;return!1},Ss=Pe(h);return{type:A,children:i,elements:s,getValidStyles:ao,getValidClasses:Zo,getBlockElements:Ki,getInvalidStyles:ys,getVoidElements:_n,getTextBlockElements:_l,getTextInlineElements:Zt,getBoolAttrs:wr,getElementRule:go,getSelfClosingElements:Cs,getNonEmptyElements:hs,getMoveCaretBeforeOnEnterElements:kn,getWhitespaceElements:Bn,getTransparentElements:qt,getSpecialElements:Jn,isValidChild:us,isValid:ir,getCustomElements:Ss,addValidElements:Tt,setValidElements:Jt,addCustomElements:tn,addValidChildren:Cn}},nv=(e={},n)=>{const s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,i=/\s*([^:]+):\s*([^;]+);?/g,d=/\s+$/,h={};let v,T;const A=Wd;n&&(v=n.getValidStyles(),T=n.getInvalidStyles());const F=(`\\" \\' \\; \\: ; : `+A).split(" ");for(let Y=0;Y<F.length;Y++)h[F[Y]]=A+Y,h[A+Y]=F[Y];const ne={parse:Y=>{const ce={};let ke=!1;const _e=e.url_converter,ve=e.url_converter_scope||ne,Te=(yt,Tt,Jt)=>{const tn=ce[yt+"-top"+Tt];if(!tn)return;const Cn=ce[yt+"-right"+Tt];if(!Cn)return;const go=ce[yt+"-bottom"+Tt];if(!go)return;const ao=ce[yt+"-left"+Tt];if(!ao)return;const ys=[tn,Cn,go,ao];let Zo=ys.length-1;for(;Zo--&&ys[Zo]===ys[Zo+1];);Zo>-1&&Jt||(ce[yt+Tt]=Zo===-1?ys[0]:ys.join(" "),delete ce[yt+"-top"+Tt],delete ce[yt+"-right"+Tt],delete ce[yt+"-bottom"+Tt],delete ce[yt+"-left"+Tt])},Ue=yt=>{const Tt=ce[yt];if(!Tt)return;const Jt=Tt.split(" ");let tn=Jt.length;for(;tn--;)if(Jt[tn]!==Jt[0])return!1;return ce[yt]=Jt[0],!0},Xe=(yt,Tt,Jt,tn)=>{Ue(Tt)&&Ue(Jt)&&Ue(tn)&&(ce[yt]=ce[Tt]+" "+ce[Jt]+" "+ce[tn],delete ce[Tt],delete ce[Jt],delete ce[tn])},Je=yt=>(ke=!0,h[yt]),rt=(yt,Tt)=>(ke&&(yt=yt.replace(/\uFEFF[0-9]/g,Jt=>h[Jt])),Tt||(yt=yt.replace(/\\([\'\";:])/g,"$1")),yt),Bt=yt=>String.fromCharCode(parseInt(yt.slice(1),16)),Dn=yt=>yt.replace(/\\[0-9a-f]+/gi,Bt),Pt=(yt,Tt,Jt,tn,Cn,go)=>{if(Cn=Cn||go,Cn)return Cn=rt(Cn),"'"+Cn.replace(/\'/g,"\\'")+"'";if(Tt=rt(Tt||Jt||tn||""),!e.allow_script_urls){const ao=Tt.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ao)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(ao))return""}return _e&&(Tt=_e.call(ve,Tt,"style")),"url('"+Tt.replace(/\'/g,"\\'")+"')"};if(Y){Y=Y.replace(/[\u0000-\u001F]/g,""),Y=Y.replace(/\\[\"\';:\uFEFF]/g,Je).replace(/\"[^\"]+\"|\'[^\']+\'/g,Tt=>Tt.replace(/[;:]/g,Je));let yt;for(;yt=i.exec(Y);){i.lastIndex=yt.index+yt[0].length;let Tt=yt[1].replace(d,"").toLowerCase(),Jt=yt[2].replace(d,"");if(Tt&&Jt){if(Tt=Dn(Tt),Jt=Dn(Jt),Tt.indexOf(A)!==-1||Tt.indexOf('"')!==-1||!e.allow_script_urls&&(Tt==="behavior"||/expression\s*\(|\/\*|\*\//.test(Jt)))continue;Tt==="font-weight"&&Jt==="700"?Jt="bold":(Tt==="color"||Tt==="background-color")&&(Jt=Jt.toLowerCase()),Jt=Jt.replace(s,Pt),ce[Tt]=ke?rt(Jt,!0):Jt}}Te("border","",!0),Te("border","-width"),Te("border","-color"),Te("border","-style"),Te("padding",""),Te("margin",""),Xe("border","border-width","border-style","border-color"),ce.border==="medium none"&&delete ce.border,ce["border-image"]==="none"&&delete ce["border-image"]}return ce},serialize:(Y,ce)=>{let ke="";const _e=(Te,Ue)=>{const Xe=Ue[Te];if(Xe)for(let Je=0,rt=Xe.length;Je<rt;Je++){const Bt=Xe[Je],Dn=Y[Bt];Dn&&(ke+=(ke.length>0?" ":"")+Bt+": "+Dn+";")}},ve=(Te,Ue)=>{if(!T||!Ue)return!0;let Xe=T["*"];return Xe&&Xe[Te]?!1:(Xe=T[Ue],!(Xe&&Xe[Te]))};return ce&&v?(_e("*",v),_e(ce,v)):Nt(Y,(Te,Ue)=>{Te&&ve(Ue,ce)&&(ke+=(ke.length>0?" ":"")+Ue+": "+Te+";")}),ke}};return ne},sS={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},X1=e=>e instanceof Event||de(e.initEvent),Hf=e=>e.isDefaultPrevented===it||e.isDefaultPrevented===lt,ov=e=>Me(e.preventDefault)||X1(e),rS=(e,n)=>{const s=n!=null?n:{};for(const i in e)Gn(sS,i)||(s[i]=e[i]);return Ee(e.composedPath)&&(s.composedPath=()=>e.composedPath()),s},aS=(e,n,s,i)=>{var d;const h=rS(n,i);return h.type=e,Me(h.target)&&(h.target=(d=h.srcElement)!==null&&d!==void 0?d:s),ov(n)&&(h.preventDefault=()=>{h.defaultPrevented=!0,h.isDefaultPrevented=it,de(n.preventDefault)&&n.preventDefault()},h.stopPropagation=()=>{h.cancelBubble=!0,h.isPropagationStopped=it,de(n.stopPropagation)&&n.stopPropagation()},h.stopImmediatePropagation=()=>{h.isImmediatePropagationStopped=it,h.stopPropagation()},Hf(h)||(h.isDefaultPrevented=h.defaultPrevented===!0?it:lt,h.isPropagationStopped=h.cancelBubble===!0?it:lt,h.isImmediatePropagationStopped=lt)),h},YE="mce-data-",sv=/^(?:mouse|contextmenu)|click/,lc=(e,n,s,i)=>{e.addEventListener(n,s,i||!1)},Vi=(e,n,s,i)=>{e.removeEventListener(n,s,i||!1)},XE=e=>Ee(e)&&sv.test(e.type),cb=(e,n)=>{const s=aS(e.type,e,document,n);if(XE(e)&&Ke(e.pageX)&&!Ke(e.clientX)){const i=s.target.ownerDocument||document,d=i.documentElement,h=i.body,v=s;v.pageX=e.clientX+(d&&d.scrollLeft||h&&h.scrollLeft||0)-(d&&d.clientLeft||h&&h.clientLeft||0),v.pageY=e.clientY+(d&&d.scrollTop||h&&h.scrollTop||0)-(d&&d.clientTop||h&&h.clientTop||0)}return s},U4=(e,n,s)=>{const i=e.document,d={type:"ready"};if(s.domLoaded){n(d);return}const h=()=>i.readyState==="complete"||i.readyState==="interactive"&&i.body,v=()=>{Vi(e,"DOMContentLoaded",v),Vi(e,"load",v),s.domLoaded||(s.domLoaded=!0,n(d)),e=null};h()?v():lc(e,"DOMContentLoaded",v),s.domLoaded||lc(e,"load",v)};class Up{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=YE+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(n,s,i,d){const h=this;let v;const T=window,A=ce=>{h.executeHandlers(cb(ce||T.event),F)};if(!n||Vt(n)||rc(n))return i;let F;n[h.expando]?F=n[h.expando]:(F=h.count++,n[h.expando]=F,h.events[F]={}),d=d||n;const ne=s.split(" ");let Y=ne.length;for(;Y--;){let ce=ne[Y],ke=A,_e=!1,ve=!1;if(ce==="DOMContentLoaded"&&(ce="ready"),h.domLoaded&&ce==="ready"&&n.readyState==="complete"){i.call(d,cb({type:ce}));continue}!h.hasFocusIn&&(ce==="focusin"||ce==="focusout")&&(_e=!0,ve=ce==="focusin"?"focus":"blur",ke=Te=>{const Ue=cb(Te||T.event);Ue.type=Ue.type==="focus"?"focusin":"focusout",h.executeHandlers(Ue,F)}),v=h.events[F][ce],v?ce==="ready"&&h.domLoaded?i(cb({type:ce})):v.push({func:i,scope:d}):(h.events[F][ce]=v=[{func:i,scope:d}],v.fakeName=ve,v.capture=_e,v.nativeHandler=ke,ce==="ready"?U4(n,ke,h):lc(n,ve||ce,ke,_e))}return n=v=null,i}unbind(n,s,i){if(!n||Vt(n)||rc(n))return this;const d=n[this.expando];if(d){let h=this.events[d];if(s){const v=s.split(" ");let T=v.length;for(;T--;){const A=v[T],F=h[A];if(F){if(i){let ne=F.length;for(;ne--;)if(F[ne].func===i){const Y=F.nativeHandler,ce=F.fakeName,ke=F.capture,_e=F.slice(0,ne).concat(F.slice(ne+1));_e.nativeHandler=Y,_e.fakeName=ce,_e.capture=ke,h[A]=_e}}(!i||F.length===0)&&(delete h[A],Vi(n,F.fakeName||A,F.nativeHandler,F.capture))}}}else Nt(h,(v,T)=>{Vi(n,v.fakeName||T,v.nativeHandler,v.capture)}),h={};for(const v in h)if(Gn(h,v))return this;delete this.events[d];try{delete n[this.expando]}catch(v){n[this.expando]=null}}return this}fire(n,s,i){return this.dispatch(n,s,i)}dispatch(n,s,i){if(!n||Vt(n)||rc(n))return this;const d=cb({type:s,target:n},i);do{const h=n[this.expando];h&&this.executeHandlers(d,h),n=n.parentNode||n.ownerDocument||n.defaultView||n.parentWindow}while(n&&!d.isPropagationStopped());return this}clean(n){if(!n||Vt(n)||rc(n))return this;if(n[this.expando]&&this.unbind(n),n.getElementsByTagName||(n=n.document),n&&n.getElementsByTagName){this.unbind(n);const s=n.getElementsByTagName("*");let i=s.length;for(;i--;)n=s[i],n[this.expando]&&this.unbind(n)}return this}destroy(){this.events={}}cancel(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}executeHandlers(n,s){const i=this.events[s],d=i&&i[n.type];if(d)for(let h=0,v=d.length;h<v;h++){const T=d[h];if(T&&T.func.call(T.scope,n)===!1&&n.preventDefault(),n.isImmediatePropagationStopped())return}}}Up.Event=new Up;const cu=$t.each,W4=$t.grep,ub="data-mce-style",JE=$t.makeMap("fill-opacity font-weight line-height opacity orphans widows z-index zoom"," "),db=(e,n,s)=>{Me(s)||s===""?Is(e,n):ra(e,n,s)},J1=e=>e.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),fb=(e,n)=>{let s=0;if(e)for(let i=e.nodeType,d=e.previousSibling;d;d=d.previousSibling){const h=d.nodeType;n&&Vt(d)&&(h===i||!d.data.length)||(s++,i=h)}return s},Q1=(e,n)=>{const s=ol(n,"style"),i=e.serialize(e.parse(s),or(n));db(n,ub,i)},lS=(e,n)=>bt(e)?Gn(JE,n)?e+"":e+"px":e,rv=(e,n,s)=>{const i=J1(n);Me(s)||s===""?Hg(e,i):zg(e,i,lS(s,i))},av=(e,n,s)=>{const i=n.keep_values,d={set:(v,T,A)=>{const F=Ne.fromDom(v);de(n.url_converter)&&Ee(T)&&(T=n.url_converter.call(n.url_converter_scope||s(),String(T),A,v));const ne="data-mce-"+A;db(F,ne,T),db(F,A,T)},get:(v,T)=>{const A=Ne.fromDom(v);return ol(A,"data-mce-"+T)||ol(A,T)}},h={style:{set:(v,T)=>{const A=Ne.fromDom(v);i&&db(A,ub,T),Is(A,"style"),H(T)&&Vg(A,e.parse(T))},get:v=>{const T=Ne.fromDom(v),A=ol(T,ub)||ol(T,"style");return e.serialize(e.parse(A),or(T))}}};return i&&(h.href=h.src=d),h},dr=(e,n={})=>{const s={},i=window,d={};let h=0;const v=!0,T=!0,A=K1.forElement(Ne.fromDom(e),{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),F=[],ne=n.schema?n.schema:Hp({}),Y=nv({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope},n.schema),ce=n.ownEvents?new Up:Up.Event,ke=ne.getBlockElements(),_e=ut=>H(ut)?Gn(ke,ut):cn(ut)&&(Gn(ke,ut.nodeName)||Pp(ne,ut)),ve=ut=>ut&&e&&H(ut)?e.getElementById(ut):ut,Te=ut=>{const dt=ve(ut);return Ee(dt)?Ne.fromDom(dt):null},Ue=(ut,dt,Kt="")=>{let Ut;const jn=Te(ut);if(Ee(jn)&&ur(jn)){const ds=S0[dt];ds&&ds.get?Ut=ds.get(jn.dom,dt):Ut=ol(jn,dt)}return Ee(Ut)?Ut:Kt},Xe=ut=>{const dt=ve(ut);return Me(dt)?[]:dt.attributes},Je=(ut,dt,Kt)=>{_n(ut,Ut=>{if(cn(Ut)){const jn=Ne.fromDom(Ut),ds=Kt===""?null:Kt,Yr=ol(jn,dt),yi=S0[dt];yi&&yi.set?yi.set(jn.dom,ds,dt):db(jn,dt,ds),Yr!==ds&&n.onSetAttrib&&n.onSetAttrib({attrElm:jn.dom,attrName:dt,attrValue:ds})}})},rt=(ut,dt)=>ut.cloneNode(dt),Bt=()=>n.root_element||e.body,Dn=ut=>{const dt=z1(ut);return{x:dt.x,y:dt.y,w:dt.width,h:dt.height}},Pt=(ut,dt)=>GE(e.body,ve(ut),dt),yt=(ut,dt,Kt)=>{_n(ut,Ut=>{const jn=Ne.fromDom(Ut);rv(jn,dt,Kt),n.update_styles&&Q1(Y,jn)})},Tt=(ut,dt)=>{_n(ut,Kt=>{const Ut=Ne.fromDom(Kt);Nt(dt,(jn,ds)=>{rv(Ut,ds,jn)}),n.update_styles&&Q1(Y,Ut)})},Jt=(ut,dt,Kt)=>{const Ut=ve(ut);if(!(Me(Ut)||!cn(Ut)))return Kt?qa(Ne.fromDom(Ut),J1(dt)):(dt=dt.replace(/-(\D)/g,(jn,ds)=>ds.toUpperCase()),dt==="float"&&(dt="cssFloat"),Ut.style?Ut.style[dt]:void 0)},tn=ut=>{const dt=ve(ut);if(!dt)return{w:0,h:0};let Kt=Jt(dt,"width"),Ut=Jt(dt,"height");return(!Kt||Kt.indexOf("px")===-1)&&(Kt="0"),(!Ut||Ut.indexOf("px")===-1)&&(Ut="0"),{w:parseInt(Kt,10)||dt.offsetWidth||dt.clientWidth,h:parseInt(Ut,10)||dt.offsetHeight||dt.clientHeight}},Cn=ut=>{const dt=ve(ut),Kt=Pt(dt),Ut=tn(dt);return{x:Kt.x,y:Kt.y,w:Ut.w,h:Ut.h}},go=(ut,dt)=>{if(!ut)return!1;const Kt=pe(ut)?ut:[ut];return Mo(Kt,Ut=>di(Ne.fromDom(Ut),dt))},ao=(ut,dt,Kt,Ut)=>{const jn=[];let ds=ve(ut);Ut=Ut===void 0;const Yr=Kt||(Bt().nodeName!=="BODY"?Bt().parentNode:null);if(H(dt))if(dt==="*")dt=cn;else{const yi=dt;dt=vi=>go(vi,yi)}for(;ds&&!(ds===Yr||Me(ds.nodeType)||$p(ds)||$f(ds));){if(!dt||dt(ds))if(Ut)jn.push(ds);else return[ds];ds=ds.parentNode}return Ut?jn:null},ys=(ut,dt,Kt)=>{const Ut=ao(ut,dt,Kt,!1);return Ut&&Ut.length>0?Ut[0]:null},Zo=(ut,dt,Kt)=>{let Ut=dt;if(ut){H(dt)&&(Ut=jn=>go(jn,dt));for(let jn=ut[Kt];jn;jn=jn[Kt])if(de(Ut)&&Ut(jn))return jn}return null},wr=(ut,dt)=>Zo(ut,dt,"nextSibling"),Ki=(ut,dt)=>Zo(ut,dt,"previousSibling"),_l=ut=>de(ut.querySelectorAll),Zt=(ut,dt)=>{var Kt,Ut;const jn=(Ut=(Kt=ve(dt))!==null&&Kt!==void 0?Kt:n.root_element)!==null&&Ut!==void 0?Ut:e;return _l(jn)?is(jn.querySelectorAll(ut)):[]},_n=function(ut,dt,Kt){const Ut=Kt!=null?Kt:this;if(pe(ut)){const jn=[];return cu(ut,(ds,Yr)=>{const yi=ve(ds);yi&&jn.push(dt.call(Ut,yi,Yr))}),jn}else{const jn=ve(ut);return jn?dt.call(Ut,jn):!1}},Cs=(ut,dt)=>{_n(ut,Kt=>{Nt(dt,(Ut,jn)=>{Je(Kt,jn,Ut)})})},hs=(ut,dt)=>{_n(ut,Kt=>{const Ut=Ne.fromDom(Kt);Ho(Ut,dt)})},kn=(ut,dt,Kt,Ut,jn)=>_n(ut,ds=>{const Yr=H(dt)?e.createElement(dt):dt;return Ee(Kt)&&Cs(Yr,Kt),Ut&&(!H(Ut)&&Ut.nodeType?Yr.appendChild(Ut):H(Ut)&&hs(Yr,Ut)),jn?Yr:ds.appendChild(Yr)}),Bn=(ut,dt,Kt)=>kn(e.createElement(ut),ut,dt,Kt,!0),qt=zp.decode,Jn=zp.encodeAllRaw,us=(ut,dt,Kt="")=>{let Ut="<"+ut;for(const jn in dt)Xr(dt,jn)&&(Ut+=" "+jn+'="'+Jn(dt[jn])+'"');return Na(Kt)&&Gn(ne.getVoidElements(),ut)?Ut+" />":Ut+">"+Kt+"</"+ut+">"},ir=ut=>{const dt=e.createElement("div"),Kt=e.createDocumentFragment();Kt.appendChild(dt),ut&&(dt.innerHTML=ut);let Ut;for(;Ut=dt.firstChild;)Kt.appendChild(Ut);return Kt.removeChild(dt),Kt},Ss=(ut,dt)=>_n(ut,Kt=>{const Ut=Ne.fromDom(Kt);return dt&&mt(sl(Ut),jn=>{Za(jn)&&jn.dom.length===0?Ns(jn):Fi(Ut,jn)}),Ns(Ut),Ut.dom}),bo=ut=>_n(ut,dt=>{const Kt=dt.attributes;for(let Ut=Kt.length-1;Ut>=0;Ut--)dt.removeAttributeNode(Kt.item(Ut))}),Go=ut=>Y.parse(ut),Qa=(ut,dt)=>Y.serialize(ut,dt),oo=ut=>{if(Sm!==dr.DOM&&e===document){if(s[ut])return;s[ut]=!0}let dt=e.getElementById("mceDefaultStyles");if(!dt){dt=e.createElement("style"),dt.id="mceDefaultStyles",dt.type="text/css";const Kt=e.head;Kt.firstChild?Kt.insertBefore(dt,Kt.firstChild):Kt.appendChild(dt)}dt.styleSheet?dt.styleSheet.cssText+=ut:dt.appendChild(e.createTextNode(ut))},$r=ut=>{ut||(ut=""),mt(ut.split(","),dt=>{d[dt]=!0,A.load(dt).catch(Qe)})},da=(ut,dt,Kt)=>{_n(ut,Ut=>{if(cn(Ut)){const jn=Ne.fromDom(Ut),ds=dt.split(" ");mt(ds,Yr=>{Ee(Kt)?(Kt?ru:Lc)(jn,Yr):wp(jn,Yr)})}})},Kr=(ut,dt)=>{da(ut,dt,!0)},za=(ut,dt)=>{da(ut,dt,!1)},Ku=(ut,dt)=>{const Kt=Te(ut),Ut=dt.split(" ");return Ee(Kt)&&ns(Ut,jn=>Nm(Kt,jn))},Yi=ut=>{_n(ut,dt=>Hg(Ne.fromDom(dt),"display"))},df=ut=>{_n(ut,dt=>zg(Ne.fromDom(dt),"display","none"))},Dd=ut=>{const dt=Te(ut);return Ee(dt)&&$a(Ii(dt,"display"),"none")},f1=ut=>(ut||"mce_")+h++,m1=ut=>{const dt=Te(ut);return Ee(dt)?cn(dt.dom)?dt.dom.outerHTML:Ug(dt):""},ff=(ut,dt)=>{_n(ut,Kt=>{cn(Kt)&&(Kt.outerHTML=dt)})},mf=(ut,dt)=>{const Kt=ve(dt);return _n(ut,Ut=>{const jn=Kt==null?void 0:Kt.parentNode,ds=Kt==null?void 0:Kt.nextSibling;return jn&&(ds?jn.insertBefore(Ut,ds):jn.appendChild(Ut)),Ut})},Va=(ut,dt,Kt)=>_n(dt,Ut=>{var jn;const ds=pe(dt)?ut.cloneNode(!0):ut;return Kt&&cu(W4(Ut.childNodes),Yr=>{ds.appendChild(Yr)}),(jn=Ut.parentNode)===null||jn===void 0||jn.replaceChild(ds,Ut),Ut}),pf=(ut,dt)=>{if(ut.nodeName!==dt.toUpperCase()){const Kt=Bn(dt);return cu(Xe(ut),Ut=>{Je(Kt,Ut.nodeName,Ue(ut,Ut.nodeName))}),Va(Kt,ut,!0),Kt}else return ut},lp=(ut,dt)=>{let Kt=ut;for(;Kt;){let Ut=dt;for(;Ut&&Kt!==Ut;)Ut=Ut.parentNode;if(Kt===Ut)break;Kt=Kt.parentNode}return!Kt&&ut.ownerDocument?ut.ownerDocument.documentElement:Kt},hf=ut=>{if(cn(ut)){const dt=ut.nodeName.toLowerCase()==="a"&&!Ue(ut,"href")&&Ue(ut,"id");if(Ue(ut,"name")||Ue(ut,"data-mce-bookmark")||dt)return!0}return!1},gf=(ut,dt,Kt)=>{let Ut=0;if(hf(ut))return!1;const jn=ut.firstChild;if(jn){const ds=new Da(jn,ut),Yr=ne?ne.getWhitespaceElements():{},yi=dt||(ne?ne.getNonEmptyElements():null);let vi=jn;do{if(cn(vi)){const aC=vi.getAttribute("data-mce-bogus");if(aC){vi=ds.next(aC==="all");continue}const lC=vi.nodeName.toLowerCase();if(yi&&yi[lC]){if(lC==="br"){Ut++,vi=ds.next();continue}return!1}if(hf(vi))return!1}if(rc(vi)||Vt(vi)&&!Du(vi.data)&&(!(Kt!=null&&Kt.includeZwsp)||!WE(vi.data))||Vt(vi)&&vi.parentNode&&Yr[vi.parentNode.nodeName]&&Du(vi.data))return!1;vi=ds.next()}while(vi)}return Ut<=1},mh=()=>e.createRange(),mc=(ut,dt,Kt)=>{let Ut=mh(),jn,ds;if(ut&&dt&&ut.parentNode&&dt.parentNode){const Yr=ut.parentNode;return Ut.setStart(Yr,fb(ut)),Ut.setEnd(dt.parentNode,fb(dt)),jn=Ut.extractContents(),Ut=mh(),Ut.setStart(dt.parentNode,fb(dt)+1),Ut.setEnd(Yr,fb(ut)+1),ds=Ut.extractContents(),Yr.insertBefore(Fp(Sm,jn),ut),Kt?Yr.insertBefore(Kt,ut):Yr.insertBefore(dt,ut),Yr.insertBefore(Fp(Sm,ds),ut),Ss(ut),Kt||dt}else return},xg=(ut,dt,Kt,Ut)=>{if(pe(ut)){let jn=ut.length;const ds=[];for(;jn--;)ds[jn]=xg(ut[jn],dt,Kt,Ut);return ds}else return n.collect&&(ut===e||ut===i)&&F.push([ut,dt,Kt,Ut]),ce.bind(ut,dt,Kt,Ut||Sm)},ph=(ut,dt,Kt)=>{if(pe(ut)){let Ut=ut.length;const jn=[];for(;Ut--;)jn[Ut]=ph(ut[Ut],dt,Kt);return jn}else{if(F.length>0&&(ut===e||ut===i)){let Ut=F.length;for(;Ut--;){const[jn,ds,Yr]=F[Ut];ut===jn&&(!dt||dt===ds)&&(!Kt||Kt===Yr)&&ce.unbind(jn,ds,Yr)}}return ce.unbind(ut,dt,Kt)}},Cm=(ut,dt,Kt)=>ce.dispatch(ut,dt,Kt),p1=(ut,dt,Kt)=>ce.dispatch(ut,dt,Kt),Kx=ut=>{if(ut&&cn(ut)){const dt=ut.getAttribute("data-mce-contenteditable");return dt&&dt!=="inherit"?dt:ut.contentEditable!=="inherit"?ut.contentEditable:null}else return null},Sm={doc:e,settings:n,win:i,files:d,stdMode:v,boxModel:T,styleSheetLoader:A,boundEvents:F,styles:Y,schema:ne,events:ce,isBlock:_e,root:null,clone:rt,getRoot:Bt,getViewPort:Dn,getRect:Cn,getSize:tn,getParent:ys,getParents:ao,get:ve,getNext:wr,getPrev:Ki,select:Zt,is:go,add:kn,create:Bn,createHTML:us,createFragment:ir,remove:Ss,setStyle:yt,getStyle:Jt,setStyles:Tt,removeAllAttribs:bo,setAttrib:Je,setAttribs:Cs,getAttrib:Ue,getPos:Pt,parseStyle:Go,serializeStyle:Qa,addStyle:oo,loadCSS:$r,addClass:Kr,removeClass:za,hasClass:Ku,toggleClass:da,show:Yi,hide:df,isHidden:Dd,uniqueId:f1,setHTML:hs,getOuterHTML:m1,setOuterHTML:ff,decode:qt,encode:Jn,insertAfter:mf,replace:Va,rename:pf,findCommonAncestor:lp,run:_n,getAttribs:Xe,isEmpty:gf,createRng:mh,nodeIndex:fb,split:mc,bind:xg,unbind:ph,fire:p1,dispatch:Cm,getContentEditable:Kx,getContentEditableParent:ut=>{const dt=Bt();let Kt=null;for(let Ut=ut;Ut&&Ut!==dt&&(Kt=Kx(Ut),Kt===null);Ut=Ut.parentNode);return Kt},isEditable:ut=>{if(Ee(ut)){const dt=cn(ut)?ut:ut.parentElement;return Ee(dt)&&Nn(Ne.fromDom(dt))}else return!1},destroy:()=>{if(F.length>0){let ut=F.length;for(;ut--;){const[dt,Kt,Ut]=F[ut];ce.unbind(dt,Kt,Ut)}}Nt(d,(ut,dt)=>{A.unload(dt),delete d[dt]})},isChildOf:(ut,dt)=>ut===dt||dt.contains(ut),dumpRng:ut=>"startContainer: "+ut.startContainer.nodeName+", startOffset: "+ut.startOffset+", endContainer: "+ut.endContainer.nodeName+", endOffset: "+ut.endOffset},S0=av(Y,n,Pe(Sm));return Sm};dr.DOM=dr(document),dr.nodeIndex=fb;const j4=dr.DOM,QE=0,iS=1,lv=2,Wp=3;class Jd{constructor(n={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=n}_setReferrerPolicy(n){this.settings.referrerPolicy=n}loadScript(n){return new Promise((s,i)=>{const d=j4;let h;const v=()=>{d.remove(F),h&&(h.onerror=h.onload=h=null)},T=()=>{v(),s()},A=()=>{v(),i("Failed to load script: "+n)},F=d.uniqueId();h=document.createElement("script"),h.id=F,h.type="text/javascript",h.src=$t._addCacheSuffix(n),this.settings.referrerPolicy&&d.setAttrib(h,"referrerpolicy",this.settings.referrerPolicy),h.onload=T,h.onerror=A,(document.getElementsByTagName("head")[0]||document.body).appendChild(h)})}isDone(n){return this.states[n]===lv}markDone(n){this.states[n]=lv}add(n){const s=this;return s.queue.push(n),s.states[n]===void 0&&(s.states[n]=QE),new Promise((d,h)=>{s.scriptLoadedCallbacks[n]||(s.scriptLoadedCallbacks[n]=[]),s.scriptLoadedCallbacks[n].push({resolve:d,reject:h})})}load(n){return this.add(n)}remove(n){delete this.states[n],delete this.scriptLoadedCallbacks[n]}loadQueue(){const n=this.queue;return this.queue=[],this.loadScripts(n)}loadScripts(n){const s=this,i=(A,F)=>{ws(s.scriptLoadedCallbacks,F).each(ne=>{mt(ne,Y=>Y[A](F))}),delete s.scriptLoadedCallbacks[F]},d=A=>{const F=mn(A,ne=>ne.status==="rejected");return F.length>0?Promise.reject(Ps(F,({reason:ne})=>pe(ne)?ne:[ne])):Promise.resolve()},h=A=>Promise.allSettled(yn(A,F=>s.states[F]===lv?(i("resolve",F),Promise.resolve()):s.states[F]===Wp?(i("reject",F),Promise.reject(F)):(s.states[F]=iS,s.loadScript(F).then(()=>{s.states[F]=lv,i("resolve",F);const ne=s.queue;return ne.length>0?(s.queue=[],h(ne).then(d)):Promise.resolve()},()=>(s.states[F]=Wp,i("reject",F),Promise.reject(F)))))),v=A=>(s.loading=!0,h(A).then(F=>{s.loading=!1;const ne=s.queueLoadedCallbacks.shift();return oe.from(ne).each(lo),d(F)})),T=Wl(n);return s.loading?new Promise((A,F)=>{s.queueLoadedCallbacks.push(()=>{v(T).then(A,F)})}):v(T)}}Jd.ScriptLoader=new Jd;const kl=e=>{let n=e;return{get:()=>n,set:d=>{n=d}}},ek=e=>J(e)&&Gn(e,"raw"),tk=e=>pe(e)&&e.length>1,mb={},iv=kl("en"),Z4=()=>ws(mb,iv.get()),ar={getData:()=>qn(mb,e=>ue({},e)),setCode:e=>{e&&iv.set(e)},getCode:()=>iv.get(),add:(e,n)=>{let s=mb[e];s||(mb[e]=s={}),Nt(n,(i,d)=>{s[d.toLowerCase()]=i})},translate:e=>{const n=Z4().getOr({}),s=v=>de(v)?Object.prototype.toString.call(v):i(v)?"":""+v,i=v=>v===""||v===null||v===void 0,d=v=>{const T=s(v);return ws(n,T.toLowerCase()).map(s).getOr(T)},h=v=>v.replace(/{context:\w+}$/,"");if(i(e))return"";if(ek(e))return s(e.raw);if(tk(e)){const v=e.slice(1),T=d(e[0]).replace(/\{([0-9]+)\}/g,(A,F)=>Gn(v,F)?s(v[F]):A);return h(T)}return h(d(e))},isRtl:()=>Z4().bind(e=>ws(e,"_dir")).exists(e=>e==="rtl"),hasCode:e=>Gn(mb,e)},Vr=()=>{const e=[],n={},s={},i=[],d=(ve,Te)=>{const Ue=mn(i,Xe=>Xe.name===ve&&Xe.state===Te);mt(Ue,Xe=>Xe.resolve())},h=ve=>Gn(n,ve),v=ve=>Gn(s,ve),T=ve=>{if(s[ve])return s[ve].instance},A=(ve,Te)=>{const Ue=ar.getCode(),Xe=","+(Te||"")+",";!Ue||Te&&Xe.indexOf(","+Ue+",")===-1||Jd.ScriptLoader.add(n[ve]+"/langs/"+Ue+".js")},F=(ve,Te)=>{Vr.languageLoad!==!1&&(h(ve)?A(ve,Te):_e(ve,"loaded").then(()=>A(ve,Te)))},ne=(ve,Te)=>(e.push(Te),s[ve]={instance:Te},d(ve,"added"),Te),Y=ve=>{delete n[ve],delete s[ve]},ce=(ve,Te)=>H(Te)?H(ve)?{prefix:"",resource:Te,suffix:""}:{prefix:ve.prefix,resource:Te,suffix:ve.suffix}:Te,ke=(ve,Te)=>{if(n[ve])return Promise.resolve();let Ue=H(Te)?Te:Te.prefix+Te.resource+Te.suffix;Ue.indexOf("/")!==0&&Ue.indexOf("://")===-1&&(Ue=Vr.baseURL+"/"+Ue),n[ve]=Ue.substring(0,Ue.lastIndexOf("/"));const Xe=()=>(d(ve,"loaded"),Promise.resolve());return s[ve]?Xe():Jd.ScriptLoader.add(Ue).then(Xe)},_e=(ve,Te="added")=>Te==="added"&&v(ve)||Te==="loaded"&&h(ve)?Promise.resolve():new Promise(Ue=>{i.push({name:ve,state:Te,resolve:Ue})});return{items:e,urls:n,lookup:s,get:T,requireLangPack:F,add:ne,remove:Y,createUrl:ce,load:ke,waitFor:_e}};Vr.languageLoad=!0,Vr.baseURL="",Vr.PluginManager=Vr(),Vr.ThemeManager=Vr(),Vr.ModelManager=Vr();const Uf=e=>{const n=kl(oe.none()),s=()=>n.get().each(e);return{clear:()=>{s(),n.set(oe.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:T=>{s(),n.set(oe.some(T))}}},uu=e=>{const n=kl(oe.none()),s=()=>n.get().each(T=>clearInterval(T));return{clear:()=>{s(),n.set(oe.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:T=>{s(),n.set(oe.some(setInterval(T,e)))}}},Ru=()=>{const e=Uf(Qe),n=s=>e.get().each(s);return We(ue({},e),{on:n})},uv=(e,n)=>{let s=null;return{cancel:()=>{W(s)||(clearTimeout(s),s=null)},throttle:(...h)=>{W(s)&&(s=setTimeout(()=>{s=null,e.apply(null,h)},n))}}},pb=(e,n)=>{let s=null;const i=()=>{W(s)||(clearTimeout(s),s=null)};return{cancel:i,throttle:(...h)=>{i(),s=setTimeout(()=>{s=null,e.apply(null,h)},n)}}},_c=Pe("mce-annotation"),Oc=Pe("data-mce-annotation"),Ka=Pe("data-mce-annotation-uid"),hb=Pe("data-mce-annotation-active"),Zp=Pe("data-mce-annotation-classes"),gb=Pe("data-mce-annotation-attrs"),ok=e=>n=>Vs(n,e),Wf=(e,n)=>{const s=e.selection.getRng(),i=Ne.fromDom(s.startContainer),d=Ne.fromDom(e.getBody()),h=n.fold(()=>"."+_c(),A=>`[${Oc()}="${A}"]`),v=ld(i,s.startOffset).getOr(i);return xo(v,h,ok(d)).bind(A=>Fc(A,`${Ka()}`).bind(F=>Fc(A,`${Oc()}`).map(ne=>{const Y=cS(e,F);return{uid:F,name:ne,elements:Y}})))},jf=e=>ur(e)&&Nm(e,_c()),sk=(e,n)=>sd(e,"data-mce-bogus")||qg(e,'[data-mce-bogus="all"]',ok(n)),cS=(e,n)=>{const s=Ne.fromDom(e.getBody()),i=$l(s,`[${Ka()}="${n}"]`);return mn(i,d=>!sk(d,s))},rk=(e,n)=>{const s=Ne.fromDom(e.getBody()),i=$l(s,`[${Oc()}="${n}"]`),d={};return mt(i,h=>{if(!sk(h,s)){const v=ol(h,Ka()),T=ws(d,v).getOr([]);d[v]=T.concat([h])}}),d},q4=(e,n)=>{const s=kl({}),i=()=>({listeners:[],previous:Ru()}),d=(Y,ce)=>{h(Y,ke=>(ce(ke),ke))},h=(Y,ce)=>{const ke=s.get(),_e=ws(ke,Y).getOrThunk(i),ve=ce(_e);ke[Y]=ve,s.set(ke)},v=(Y,ce,ke)=>{d(Y,_e=>{mt(_e.listeners,ve=>ve(!0,Y,{uid:ce,nodes:yn(ke,Te=>Te.dom)}))})},T=Y=>{d(Y,ce=>{mt(ce.listeners,ke=>ke(!1,Y))})},A=(Y,ce)=>{mt(cS(e,Y),ke=>{ce?ra(ke,hb(),"true"):Is(ke,hb())})},F=pb(()=>{const Y=$n(n.getNames());mt(Y,ce=>{h(ce,ke=>{const _e=ke.previous.get();return Wf(e,oe.some(ce)).fold(()=>{_e.each(ve=>{T(ce),ke.previous.clear(),A(ve,!1)})},({uid:ve,name:Te,elements:Ue})=>{$a(_e,ve)||(_e.each(Xe=>A(Xe,!1)),v(Te,ve,Ue),ke.previous.set(ve),A(ve,!0))}),{previous:ke.previous,listeners:ke.listeners}})})},30);return e.on("remove",()=>{F.cancel()}),e.on("NodeChange",()=>{F.throttle()}),{addListener:(Y,ce)=>{h(Y,ke=>({previous:ke.previous,listeners:ke.listeners.concat([ce])}))}}},G4=(e,n)=>{const s=Oc(),i=h=>oe.from(h.attr(s)).bind(n.lookup),d=h=>{var v,T;h.attr(Ka(),null),h.attr(Oc(),null),h.attr(hb(),null);const A=oe.from(h.attr(gb())).map(ce=>ce.split(",")).getOr([]),F=oe.from(h.attr(Zp())).map(ce=>ce.split(",")).getOr([]);mt(A,ce=>h.attr(ce,null));const ne=(T=(v=h.attr("class"))===null||v===void 0?void 0:v.split(" "))!==null&&T!==void 0?T:[],Y=Vn(ne,[_c()].concat(F));h.attr("class",Y.length>0?Y.join(" "):null),h.attr(Zp(),null),h.attr(gb(),null)};e.serializer.addTempAttr(hb()),e.serializer.addAttributeFilter(s,h=>{for(const v of h)i(v).each(T=>{T.persistent===!1&&(v.name==="span"?v.unwrap():d(v))})})},ak=()=>{const e={};return{register:(d,h)=>{e[d]={name:d,settings:h}},lookup:d=>ws(e,d).map(h=>h.settings),getNames:()=>fn(e)}};let lk=0;const ey=e=>{const s=new Date().getTime(),i=Math.floor(Math.random()*1e9);return lk++,e+"_"+i+lk+String(s)},K4=(e,n)=>{mt(n,s=>{ru(e,s)})},ik=(e,n)=>{mt(n,s=>{Lc(e,s)})},uS=(e,n)=>Ne.fromDom(e.dom.cloneNode(n)),bb=e=>uS(e,!1),ty=e=>uS(e,!0),Ra=(e,n)=>{const s=Ne.fromTag(n),i=Am(e);return Gl(s,i),s},dv=(e,n)=>{const s=Ra(e,n);Cc(e,s);const i=sl(e);return gr(s,i),Ns(e),s},dS=(e,n,s=lt)=>{const i=new Da(e,n),d=h=>{let v;do v=i[h]();while(v&&!Vt(v)&&!s(v));return oe.from(v).filter(Vt)};return{current:()=>oe.from(i.current()).filter(Vt),next:()=>d("next"),prev:()=>d("prev"),prev2:()=>d("prev2")}},Vm=(e,n)=>{const s=n||(v=>e.isBlock(v)||Gr(v)||Fs(v)),i=(v,T,A,F)=>{if(Vt(v)){const ne=F(v,T,v.data);if(ne!==-1)return oe.some({container:v,offset:ne})}return A().bind(ne=>i(ne.container,ne.offset,A,F))};return{backwards:(v,T,A,F)=>{const ne=dS(v,F!=null?F:e.getRoot(),s);return i(v,T,()=>ne.prev().map(Y=>({container:Y,offset:Y.length})),A).getOrNull()},forwards:(v,T,A,F)=>{const ne=dS(v,F!=null?F:e.getRoot(),s);return i(v,T,()=>ne.next().map(Y=>({container:Y,offset:0})),A).getOrNull()}}},qp=Math.round,Ya=e=>e?{left:qp(e.left),top:qp(e.top),bottom:qp(e.bottom),right:qp(e.right),width:qp(e.width),height:qp(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},du=(e,n)=>(e=Ya(e),n||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),yb=(e,n)=>e.left===n.left&&e.top===n.top&&e.bottom===n.bottom&&e.right===n.right,fS=(e,n,s)=>e>=0&&e<=Math.min(n.height,s.height)/2,vb=(e,n)=>{const s=Math.min(n.height/2,e.height/2);return e.bottom-s<n.top?!0:e.top>n.bottom?!1:fS(n.top-e.bottom,e,n)},ny=(e,n)=>e.top>n.bottom?!0:e.bottom<n.top?!1:fS(n.bottom-e.top,e,n),ck=(e,n,s)=>n>=e.left&&n<=e.right&&s>=e.top&&s<=e.bottom,uk=e=>Jo(e,(n,s)=>n.fold(()=>oe.some(s),i=>{const d=Math.min(s.left,i.left),h=Math.min(s.top,i.top),v=Math.max(s.right,i.right),T=Math.max(s.bottom,i.bottom);return oe.some({top:h,right:v,bottom:T,left:d,width:v-d,height:T-h})}),oe.none()),Zf=(e,n,s)=>{const i=Math.max(Math.min(n,e.left+e.width),e.left),d=Math.max(Math.min(s,e.top+e.height),e.top);return Math.sqrt((n-i)*(n-i)+(s-d)*(s-d))},fv=(e,n)=>Math.max(0,Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)),Ma=(e,n,s)=>Math.min(Math.max(e,n),s),Wc=e=>{const n=e.startContainer,s=e.startOffset;return n===e.endContainer&&n.hasChildNodes()&&e.endOffset===s+1?n.childNodes[s]:null},pd=(e,n)=>{if(cn(e)&&e.hasChildNodes()){const s=e.childNodes,i=Ma(n,0,s.length-1);return s[i]}else return e},dk=(e,n)=>{if(!(n<0&&cn(e)&&e.hasChildNodes()))return pd(e,n)},fk=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿-⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),mk=e=>H(e)&&e.charCodeAt(0)>=768&&fk.test(e),zh=(...e)=>n=>{for(let s=0;s<e.length;s++)if(e[s](n))return!0;return!1},pk=(...e)=>n=>{for(let s=0;s<e.length;s++)if(!e[s](n))return!1;return!0},Gp=cn,mS=la,hk=Ap("display","block table"),gk=Ap("float","left right"),oy=pk(Gp,mS,on(gk)),Y4=on(Ap("white-space","pre pre-line pre-wrap")),wb=Vt,Vh=Gr,pS=dr.nodeIndex,sy=dk,Cb=e=>e?e.createRange():dr.DOM.createRng(),hS=e=>H(e)&&/[\r\n\t ]/.test(e),gS=e=>!!e.setStart&&!!e.setEnd,bk=e=>{const n=e.startContainer,s=e.startOffset;if(hS(e.toString())&&Y4(n.parentNode)&&Vt(n)){const i=n.data;if(hS(i[s-1])||hS(i[s+1]))return!0}return!1},qf=e=>{const n=e.ownerDocument,s=Cb(n),i=n.createTextNode(St),d=e.parentNode;d.insertBefore(i,e),s.setStart(i,0),s.setEnd(i,1);const h=Ya(s.getBoundingClientRect());return d.removeChild(i),h},Hh=e=>{const n=e.startContainer,s=e.endContainer,i=e.startOffset,d=e.endOffset;if(n===s&&Vt(s)&&i===0&&d===1){const h=e.cloneRange();return h.setEndAfter(s),jo(h)}else return null},Gf=e=>e.left===0&&e.right===0&&e.top===0&&e.bottom===0,jo=e=>{var n;let s;const i=e.getClientRects();return i.length>0?s=Ya(i[0]):s=Ya(e.getBoundingClientRect()),!gS(e)&&Vh(e)&&Gf(s)?qf(e):Gf(s)&&gS(e)&&(n=Hh(e))!==null&&n!==void 0?n:s},ni=(e,n)=>{const s=du(e,n);return s.width=1,s.right=s.left+1,s},Kp=e=>{const n=[],s=v=>{v.height!==0&&(n.length>0&&yb(v,n[n.length-1])||n.push(v))},i=(v,T)=>{const A=Cb(v.ownerDocument);if(T<v.data.length){if(mk(v.data[T]))return;if(mk(v.data[T-1])&&(A.setStart(v,T),A.setEnd(v,T+1),!bk(A))){s(ni(jo(A),!1));return}}T>0&&(A.setStart(v,T-1),A.setEnd(v,T),bk(A)||s(ni(jo(A),!1))),T<v.data.length&&(A.setStart(v,T),A.setEnd(v,T+1),bk(A)||s(ni(jo(A),!0)))},d=e.container(),h=e.offset();if(wb(d))return i(d,h),n;if(Gp(d))if(e.isAtEnd()){const v=sy(d,h);wb(v)&&i(v,v.data.length),oy(v)&&!Vh(v)&&s(ni(jo(v),!1))}else{const v=sy(d,h);if(wb(v)&&i(v,0),oy(v)&&e.isAtEnd())return s(ni(jo(v),!1)),n;const T=sy(e.container(),e.offset()-1);oy(T)&&!Vh(T)&&(hk(T)||hk(v)||!oy(v))&&s(ni(jo(T),!1)),oy(v)&&s(ni(jo(v),!0))}return n},xt=(e,n,s)=>{const i=()=>(wb(e),n===0),d=()=>wb(e)?n>=e.data.length:n>=e.childNodes.length,h=()=>{const ne=Cb(e.ownerDocument);return ne.setStart(e,n),ne.setEnd(e,n),ne},v=()=>(s||(s=Kp(xt(e,n))),s),T=()=>v().length>0,A=ne=>ne&&e===ne.container()&&n===ne.offset(),F=ne=>sy(e,ne?n-1:n);return{container:Pe(e),offset:Pe(n),toRange:h,getClientRects:v,isVisible:T,isAtStart:i,isAtEnd:d,isEqual:A,getNode:F}};xt.fromRangeStart=e=>xt(e.startContainer,e.startOffset),xt.fromRangeEnd=e=>xt(e.endContainer,e.endOffset),xt.after=e=>xt(e.parentNode,pS(e)+1),xt.before=e=>xt(e.parentNode,pS(e)),xt.isAbove=(e,n)=>ta(hn(n.getClientRects()),_o(e.getClientRects()),vb).getOr(!1),xt.isBelow=(e,n)=>ta(_o(n.getClientRects()),hn(e.getClientRects()),ny).getOr(!1),xt.isAtStart=e=>e?e.isAtStart():!1,xt.isAtEnd=e=>e?e.isAtEnd():!1,xt.isTextPosition=e=>e?Vt(e.container()):!1,xt.isElementPosition=e=>!xt.isTextPosition(e);const br=(e,n)=>{Vt(n)&&n.data.length===0&&e.remove(n)},yk=(e,n,s)=>{n.insertNode(s),br(e,s.previousSibling),br(e,s.nextSibling)},vk=(e,n,s)=>{const i=oe.from(s.firstChild),d=oe.from(s.lastChild);n.insertNode(s),i.each(h=>br(e,h.previousSibling)),d.each(h=>br(e,h.nextSibling))},Rl=(e,n,s)=>{$f(s)?vk(e,n,s):yk(e,n,s)},Hi=Vt,mv=xc,bS=dr.nodeIndex,wk=e=>{const n=e.parentNode;return mv(n)?wk(n):n},Sb=e=>e?Aa(e.childNodes,(n,s)=>(mv(s)&&s.nodeName!=="BR"?n=n.concat(Sb(s)):n.push(s),n),[]):[],yS=(e,n)=>{let s=e;for(;(s=s.previousSibling)&&Hi(s);)n+=s.data.length;return n},Hm=e=>n=>e===n,pv=e=>{let n,s;n=Sb(wk(e)),s=Oe(n,Hm(e),e),n=n.slice(0,s+1);const i=Aa(n,(d,h,v)=>(Hi(h)&&Hi(n[v-1])&&d++,d),0);return n=Nl(n,Vc([e.nodeName])),s=Oe(n,Hm(e),e),s-i},hv=e=>(Hi(e)?"text()":e.nodeName.toLowerCase())+"["+pv(e)+"]",vS=(e,n,s)=>{const i=[];for(let d=n.parentNode;d&&d!==e&&!(s&&s(d));d=d.parentNode)i.push(d);return i},wS=(e,n)=>{let s=[],i=n.container(),d=n.offset(),h;if(Hi(i))h=yS(i,d);else{const T=i.childNodes;d>=T.length?(h="after",d=T.length-1):h="before",i=T[d]}s.push(hv(i));let v=vS(e,i);return v=Nl(v,on(xc)),s=s.concat(jr(v,T=>hv(T))),s.reverse().join("/")+","+h},Ck=(e,n,s)=>{let i=Sb(e);return i=Nl(i,(d,h)=>!Hi(d)||!Hi(i[h-1])),i=Nl(i,Vc([n])),i[s]},xb=(e,n)=>{let s=e,i=0;for(;Hi(s);){const d=s.data.length;if(n>=i&&n<=i+d){e=s,n=n-i;break}if(!Hi(s.nextSibling)){e=s,n=d;break}i+=d,s=s.nextSibling}return Hi(e)&&n>e.data.length&&(n=e.data.length),xt(e,n)},Ac=(e,n)=>{if(!n)return null;const s=n.split(","),i=s[0].split("/"),d=s.length>1?s[1]:"before",h=Aa(i,(v,T)=>{const A=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(T);return A?(A[1]==="text()"&&(A[1]="#text"),Ck(v,A[1],parseInt(A[2],10))):null},e);if(!h)return null;if(!Hi(h)&&h.parentNode){let v;return d==="after"?v=bS(h)+1:v=bS(h),xt(h.parentNode,v)}return xb(h,parseInt(d,10))},CS=Fs,Ar=(e,n,s)=>{let i=e(n.data.slice(0,s)).length;for(let d=n.previousSibling;d&&Vt(d);d=d.previousSibling)i+=e(d.data).length;return i},Sk=(e,n,s,i,d)=>{const h=d?i.startContainer:i.endContainer;let v=d?i.startOffset:i.endOffset;const T=[],A=e.getRoot();if(Vt(h))T.push(s?Ar(n,h,v):v);else{let F=0;const ne=h.childNodes;v>=ne.length&&ne.length&&(F=1,v=Math.max(0,ne.length-1)),T.push(e.nodeIndex(ne[v],s)+F)}for(let F=h;F&&F!==A;F=F.parentNode)T.push(e.nodeIndex(F,s));return T},Yp=(e,n,s,i)=>{const d=n.dom,h=Sk(d,e,s,i,!0),v=n.isForward(),T=If(i)?{isFakeCaret:!0}:{};if(n.isCollapsed())return ue({start:h,forward:v},T);{const A=Sk(d,e,s,i,!1);return ue({start:h,end:A,forward:v},T)}},gv=(e,n,s)=>{let i=0;return $t.each(e.select(n),d=>{if(d.getAttribute("data-mce-bogus")!=="all"){if(d===s)return!1;i++;return}}),i},SS=(e,n)=>{let s=n?e.startContainer:e.endContainer,i=n?e.startOffset:e.endOffset;if(cn(s)&&s.nodeName==="TR"){const d=s.childNodes;s=d[Math.min(n?i:i-1,d.length-1)],s&&(i=n?0:s.childNodes.length,n?e.setStart(s,i):e.setEnd(s,i))}},ry=e=>(SS(e,!0),SS(e,!1),e),Eb=(e,n)=>{if(cn(e)&&(e=pd(e,n),CS(e)))return e;if(Hs(e)){Vt(e)&&Qn(e)&&(e=e.parentNode);let s=e.previousSibling;if(CS(s)||(s=e.nextSibling,CS(s)))return s}},xS=e=>Eb(e.startContainer,e.startOffset)||Eb(e.endContainer,e.endOffset),ES=(e,n,s)=>{const i=s.getNode(),d=s.getRng();if(i.nodeName==="IMG"||CS(i)){const v=i.nodeName;return{name:v,index:gv(s.dom,v,i)}}const h=xS(d);if(h){const v=h.tagName;return{name:v,index:gv(s.dom,v,h)}}return Yp(e,s,n,d)},X4=e=>{const n=e.getRng();return{start:wS(e.dom.getRoot(),xt.fromRangeStart(n)),end:wS(e.dom.getRoot(),xt.fromRangeEnd(n)),forward:e.isForward()}},xk=e=>({rng:e.getRng(),forward:e.isForward()}),Ml=(e,n,s)=>{const i={"data-mce-type":"bookmark",id:n,style:"overflow:hidden;line-height:0px"};return s?e.create("span",i,""):e.create("span",i)},cl=(e,n)=>{const s=e.dom;let i=e.getRng();const d=s.uniqueId(),h=e.isCollapsed(),v=e.getNode(),T=v.nodeName,A=e.isForward();if(T==="IMG")return{name:T,index:gv(s,T,v)};const F=ry(i.cloneRange());if(!h){F.collapse(!1);const Y=Ml(s,d+"_end",n);Rl(s,F,Y)}i=ry(i),i.collapse(!0);const ne=Ml(s,d+"_start",n);return Rl(s,i,ne),e.moveToBookmark({id:d,keep:!0,forward:A}),{id:d,forward:A}},Nc=(e,n,s=!1)=>n===2?ES(Ct,s,e):n===3?X4(e):n?xk(e):cl(e,!1),Ui=Ye(ES,at,!0),Nr=e=>{const n=h=>h(e),s=Pe(e),i=()=>d,d={tag:!0,inner:e,fold:(h,v)=>v(e),isValue:it,isError:lt,map:h=>Wi.value(h(e)),mapError:i,bind:n,exists:n,forall:n,getOr:s,or:i,getOrThunk:s,orThunk:i,getOrDie:s,each:h=>{h(e)},toOptional:()=>oe.some(e)};return d},Pa=e=>{const n=()=>s,s={tag:!1,inner:e,fold:(i,d)=>i(e),isValue:lt,isError:it,map:n,mapError:i=>Wi.error(i(e)),bind:n,exists:lt,forall:it,getOr:at,or:at,getOrThunk:pn,orThunk:pn,getOrDie:Kn(String(e)),each:Qe,toOptional:oe.none};return s},Wi={value:Nr,error:Pa,fromOption:(e,n)=>e.fold(()=>Pa(n),Nr)},Qd={generate:e=>{if(!pe(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const n=[],s={};return mt(e,(i,d)=>{const h=fn(i);if(h.length!==1)throw new Error("one and only one name per case");const v=h[0],T=i[v];if(s[v]!==void 0)throw new Error("duplicate key detected:"+v);if(v==="cata")throw new Error("cannot have a case named cata (sorry)");if(!pe(T))throw new Error("case arguments must be an array");n.push(v),s[v]=(...A)=>{const F=A.length;if(F!==T.length)throw new Error("Wrong number of arguments to case "+v+". Expected "+T.length+" ("+T+"), got "+F);return{fold:(...Y)=>{if(Y.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+Y.length);return Y[d].apply(null,A)},match:Y=>{const ce=fn(Y);if(n.length!==ce.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+`
|