@vtj/pro 0.8.7 → 0.8.9
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/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +32 -32
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +15 -15
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +4 -4
- package/dist/assets/{@element-plus-hb5PCPZy.js → @element-plus-D6n2RTX_.js} +1 -1
- package/dist/assets/@floating-ui-CYeB_Mhp.js +1 -0
- package/dist/assets/@vue-pheekl12.js +25 -0
- package/dist/assets/@vueuse-4_NYtZCP.js +1 -0
- package/dist/assets/{Editor-BKlikwSl-BjFYNt7y.js → Editor-BKlikwSl-SVzFnpo8.js} +2 -2
- package/dist/assets/{codicon-BA2IlpFX.ttf → codicon-DWH9l-dS.ttf} +0 -0
- package/dist/assets/{css.worker-Cj_nKzFJ.js → css.worker-CilUBJBN.js} +24 -24
- package/dist/assets/editor.worker-BJZ5cnST.js +11 -0
- package/dist/assets/element-plus-DdvN1jqD.js +20 -0
- package/dist/assets/element-plus-Dj7XYlV7.css +1 -0
- package/dist/assets/{html.worker-Dbbe6jGy.js → html.worker-CNHktepm.js} +25 -25
- package/dist/assets/index-D9EpXQVL.css +1 -0
- package/dist/assets/{index-BuE0oaDP.js → index-DBWV64ks.js} +2 -2
- package/dist/assets/index-DEA9g1Ih.js +1 -0
- package/dist/assets/index-DmZaHsx9.css +1 -0
- package/dist/assets/index-TXS29-Ip.js +199 -0
- package/dist/assets/json.worker-CV0MTB3L.js +42 -0
- package/dist/assets/lodash-es-D0J8aJCM.js +1 -0
- package/dist/assets/monaco-editor-BgBQhOSF.css +1 -0
- package/dist/assets/monaco-editor-C8KYOXSh.js +1469 -0
- package/dist/assets/preview-aLWd6TgM.js +2 -0
- package/dist/assets/{ts.worker-BomFZlTR.js → ts.worker-mZI20X7J.js} +83 -83
- package/dist/assets/{vue-CYXSepfi.js → vue-CjubWy22.js} +3 -3
- package/dist/assets/{vue-router-Cl6Ao8EQ.js → vue-router-D533GGmG.js} +1 -1
- package/dist/extension/index.umd.js +1 -0
- package/dist/extension/style.css +1 -0
- package/dist/index.html +11 -11
- package/package.json +11 -10
- package/src/extension.ts +46 -0
- package/src/index.ts +1 -0
- package/dist/assets/@floating-ui-o_LpjUj1.js +0 -1
- package/dist/assets/@vue-D7cHi7PH.js +0 -25
- package/dist/assets/@vueuse-cyfiBh8g.js +0 -1
- package/dist/assets/editor.worker-CxQ7p1mj.js +0 -11
- package/dist/assets/element-plus-5SPWBdo3.css +0 -1
- package/dist/assets/element-plus-DR3xbW0j.js +0 -20
- package/dist/assets/index-DMqsymig.css +0 -1
- package/dist/assets/index-DTlb1fkZ.js +0 -199
- package/dist/assets/index-DWzxOdcl.css +0 -1
- package/dist/assets/index-DjBrAr1p.js +0 -1
- package/dist/assets/json.worker-BiEozgVN.js +0 -42
- package/dist/assets/lodash-es-DKmLY3Gz.js +0 -1
- package/dist/assets/monaco-editor-BoaUnmrp.css +0 -1
- package/dist/assets/monaco-editor-DdPna5vs.js +0 -1469
- package/dist/assets/preview-B5Kl-_Ie.js +0 -2
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
const __vite__fileDeps=["./Editor-BKlikwSl-BjFYNt7y.js","./monaco-editor-DdPna5vs.js","./monaco-editor-BoaUnmrp.css","./@vue-D7cHi7PH.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
|
-
import{_ as p2}from"./monaco-editor-DdPna5vs.js";import{an as Pt,d as I,_,a4 as Oa,k as z,o as y,S as V,U as j,M as de,O as ce,P as Rt,W as Ge,G as Mt,r as D,f as oe,ab as Kt,u as d,c as M,Q as pe,Z as te,a as P,X as R,Y as le,a1 as Zt,L as Wi,af as Dt,aa as Jn,a5 as hn,F as ne,a9 as ae,J as Re,R as h2,t as Fr,i as sr,ad as Cn,ae as $n,ao as kl,w as jl,n as dt,V as mt,T as m2,D as f2,j as Ia,I as Ra,ar as No,aU as Ji,m as qi,at as Vl,av as v2,bD as Et,$ as Xt,bB as Gi,s as Yi,aC as Cl}from"./@vue-D7cHi7PH.js";import{f as g2,a as Xr,b as Ma,c as xe,d as qe,e as y2,g as b2,h as Hn,i as Qr,v as w2,j as $l,k as x2,l as _2,m as Pa,n as Hr,o as Na,p as Ye,q as El,r as Fo,s as S2,t as Fa,u as k2,w as Al,x as j2,y as Ha,A as La,B as yn,C as Zr,D as V2,F as C2,G as $2,H as qn,I as E2,J as Ua,K as en,L as Tl,M as A2,N as Wa,O as Ki,P as Xi,Q as ze,R as T2,S as B2,T as z2,U as D2,V as O2,W as Ho,X as Lo,Y as I2,Z as R2,z as M2,E as P2,_ as N2,$ as Bl,a0 as zl,a1 as F2}from"./element-plus-DR3xbW0j.js";import{Q as H2,w as L2,u as U2,R as W2,P as Dl,B as Ol,n as Il,S as Rl,D as J2,k as Ml,j as q2,T as G2,M as Pl,U as Y2,E as Ja,d as K2,V as X2}from"./@element-plus-hb5PCPZy.js";import{p as Q2,q as Uo,s as bn,v as Z2,w as ed,x as td,y as nd}from"./@vueuse-cyfiBh8g.js";import{k as ei}from"./vue-CYXSepfi.js";import{useRoute as rd}from"./vue-router-Cl6Ao8EQ.js";import{m as Xn}from"./mockjs-c-NHcvHM.js";var id={ENV_TYPE:"live",NODE_ENV:"production"},ad=typeof global=="object"&&global&&global.Object===Object&&global;const Nl=ad;var od=typeof self=="object"&&self&&self.Object===Object&&self,sd=Nl||od||Function("return this")();const lt=sd;var ld=lt.Symbol;const ft=ld;var Fl=Object.prototype,cd=Fl.hasOwnProperty,ud=Fl.toString,Mn=ft?ft.toStringTag:void 0;function dd(n){var e=cd.call(n,Mn),t=n[Mn];try{n[Mn]=void 0;var r=!0}catch{}var i=ud.call(n);return r&&(e?n[Mn]=t:delete n[Mn]),i}var pd=Object.prototype,hd=pd.toString;function md(n){return hd.call(n)}var fd="[object Null]",vd="[object Undefined]",Wo=ft?ft.toStringTag:void 0;function kt(n){return n==null?n===void 0?vd:fd:Wo&&Wo in Object(n)?dd(n):md(n)}function rt(n){return n!=null&&typeof n=="object"}var gd="[object Symbol]";function ti(n){return typeof n=="symbol"||rt(n)&&kt(n)==gd}function Hl(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var yd=Array.isArray;const st=yd;var bd=1/0,Jo=ft?ft.prototype:void 0,qo=Jo?Jo.toString:void 0;function Ll(n){if(typeof n=="string")return n;if(st(n))return Hl(n,Ll)+"";if(ti(n))return qo?qo.call(n):"";var e=n+"";return e=="0"&&1/n==-bd?"-0":e}var wd=/\s/;function xd(n){for(var e=n.length;e--&&wd.test(n.charAt(e)););return e}var _d=/^\s+/;function Sd(n){return n&&n.slice(0,xd(n)+1).replace(_d,"")}function Oe(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Go=NaN,kd=/^[-+]0x[0-9a-f]+$/i,jd=/^0b[01]+$/i,Vd=/^0o[0-7]+$/i,Cd=parseInt;function Yo(n){if(typeof n=="number")return n;if(ti(n))return Go;if(Oe(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Oe(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Sd(n);var t=jd.test(n);return t||Vd.test(n)?Cd(n.slice(2),t?2:8):kd.test(n)?Go:+n}function Ul(n){return n}var $d="[object AsyncFunction]",Ed="[object Function]",Ad="[object GeneratorFunction]",Td="[object Proxy]";function Qn(n){if(!Oe(n))return!1;var e=kt(n);return e==Ed||e==Ad||e==$d||e==Td}var Bd=lt["__core-js_shared__"];const yi=Bd;var Ko=function(){var n=/[^.]+$/.exec(yi&&yi.keys&&yi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function zd(n){return!!Ko&&Ko in n}var Dd=Function.prototype,Od=Dd.toString;function tn(n){if(n!=null){try{return Od.call(n)}catch{}try{return n+""}catch{}}return""}var Id=/[\\^$.*+?()[\]{}|]/g,Rd=/^\[object .+?Constructor\]$/,Md=Function.prototype,Pd=Object.prototype,Nd=Md.toString,Fd=Pd.hasOwnProperty,Hd=RegExp("^"+Nd.call(Fd).replace(Id,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ld(n){if(!Oe(n)||zd(n))return!1;var e=Qn(n)?Hd:Rd;return e.test(tn(n))}function Ud(n,e){return n?.[e]}function nn(n,e){var t=Ud(n,e);return Ld(t)?t:void 0}var Wd=nn(lt,"WeakMap");const Qi=Wd;var Xo=Object.create,Jd=function(){function n(){}return function(e){if(!Oe(e))return{};if(Xo)return Xo(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const qd=Jd;function Wl(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Jl(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Gd=800,Yd=16,Kd=Date.now;function Xd(n){var e=0,t=0;return function(){var r=Kd(),i=Yd-(r-t);if(t=r,i>0){if(++e>=Gd)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Qd(n){return function(){return n}}var Zd=function(){try{var n=nn(Object,"defineProperty");return n({},"",{}),n}catch{}}();const Lr=Zd;var e1=Lr?function(n,e){return Lr(n,"toString",{configurable:!0,enumerable:!1,value:Qd(e),writable:!0})}:Ul;const t1=e1;var n1=Xd(t1);const r1=n1;function i1(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var a1=9007199254740991,o1=/^(?:0|[1-9]\d*)$/;function qa(n,e){var t=typeof n;return e=e??a1,!!e&&(t=="number"||t!="symbol"&&o1.test(n))&&n>-1&&n%1==0&&n<e}function Ga(n,e,t){e=="__proto__"&&Lr?Lr(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function En(n,e){return n===e||n!==n&&e!==e}var s1=Object.prototype,l1=s1.hasOwnProperty;function Ya(n,e,t){var r=n[e];(!(l1.call(n,e)&&En(r,t))||t===void 0&&!(e in n))&&Ga(n,e,t)}function An(n,e,t,r){var i=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=r?r(t[s],n[s],s,t,n):void 0;l===void 0&&(l=n[s]),i?Ga(t,s,l):Ya(t,s,l)}return t}var Qo=Math.max;function c1(n,e,t){return e=Qo(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,a=Qo(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=t(o),Wl(n,this,s)}}function ql(n,e){return r1(c1(n,e,Ul),n+"")}var u1=9007199254740991;function Gl(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=u1}function ni(n){return n!=null&&Gl(n.length)&&!Qn(n)}function Yl(n,e,t){if(!Oe(t))return!1;var r=typeof e;return(r=="number"?ni(t)&&qa(e,t.length):r=="string"&&e in t)?En(t[e],n):!1}function Kl(n){return ql(function(e,t){var r=-1,i=t.length,a=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&Yl(t[0],t[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=t[r];s&&n(e,s,r,a)}return e})}var d1=Object.prototype;function Ka(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||d1;return n===t}function p1(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var h1="[object Arguments]";function Zo(n){return rt(n)&&kt(n)==h1}var Xl=Object.prototype,m1=Xl.hasOwnProperty,f1=Xl.propertyIsEnumerable,v1=Zo(function(){return arguments}())?Zo:function(n){return rt(n)&&m1.call(n,"callee")&&!f1.call(n,"callee")};const Zi=v1;function g1(){return!1}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,es=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,y1=es&&es.exports===Ql,ts=y1?lt.Buffer:void 0,b1=ts?ts.isBuffer:void 0,w1=b1||g1;const Zn=w1;var x1="[object Arguments]",_1="[object Array]",S1="[object Boolean]",k1="[object Date]",j1="[object Error]",V1="[object Function]",C1="[object Map]",$1="[object Number]",E1="[object Object]",A1="[object RegExp]",T1="[object Set]",B1="[object String]",z1="[object WeakMap]",D1="[object ArrayBuffer]",O1="[object DataView]",I1="[object Float32Array]",R1="[object Float64Array]",M1="[object Int8Array]",P1="[object Int16Array]",N1="[object Int32Array]",F1="[object Uint8Array]",H1="[object Uint8ClampedArray]",L1="[object Uint16Array]",U1="[object Uint32Array]",we={};we[I1]=we[R1]=we[M1]=we[P1]=we[N1]=we[F1]=we[H1]=we[L1]=we[U1]=!0,we[x1]=we[_1]=we[D1]=we[S1]=we[O1]=we[k1]=we[j1]=we[V1]=we[C1]=we[$1]=we[E1]=we[A1]=we[T1]=we[B1]=we[z1]=!1;function W1(n){return rt(n)&&Gl(n.length)&&!!we[kt(n)]}function Xa(n){return function(e){return n(e)}}var Zl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gn=Zl&&typeof module=="object"&&module&&!module.nodeType&&module,J1=Gn&&Gn.exports===Zl,bi=J1&&Nl.process,q1=function(){try{var n=Gn&&Gn.require&&Gn.require("util").types;return n||bi&&bi.binding&&bi.binding("util")}catch{}}();const vt=q1;var ns=vt&&vt.isTypedArray,G1=ns?Xa(ns):W1;const Qa=G1;var Y1=Object.prototype,K1=Y1.hasOwnProperty;function ec(n,e){var t=st(n),r=!t&&Zi(n),i=!t&&!r&&Zn(n),a=!t&&!r&&!i&&Qa(n),o=t||r||i||a,s=o?p1(n.length,String):[],l=s.length;for(var c in n)(e||K1.call(n,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qa(c,l)))&&s.push(c);return s}function tc(n,e){return function(t){return n(e(t))}}var X1=tc(Object.keys,Object);const Q1=X1;var Z1=Object.prototype,ep=Z1.hasOwnProperty;function tp(n){if(!Ka(n))return Q1(n);var e=[];for(var t in Object(n))ep.call(n,t)&&t!="constructor"&&e.push(t);return e}function ri(n){return ni(n)?ec(n):tp(n)}function np(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var rp=Object.prototype,ip=rp.hasOwnProperty;function ap(n){if(!Oe(n))return np(n);var e=Ka(n),t=[];for(var r in n)r=="constructor"&&(e||!ip.call(n,r))||t.push(r);return t}function Tn(n){return ni(n)?ec(n,!0):ap(n)}var op=Kl(function(n,e,t,r){An(e,Tn(e),n,r)});const rs=op;var sp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lp=/^\w*$/;function cp(n,e){if(st(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||ti(n)?!0:lp.test(n)||!sp.test(n)||e!=null&&n in Object(e)}var up=nn(Object,"create");const er=up;function dp(){this.__data__=er?er(null):{},this.size=0}function pp(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var hp="__lodash_hash_undefined__",mp=Object.prototype,fp=mp.hasOwnProperty;function vp(n){var e=this.__data__;if(er){var t=e[n];return t===hp?void 0:t}return fp.call(e,n)?e[n]:void 0}var gp=Object.prototype,yp=gp.hasOwnProperty;function bp(n){var e=this.__data__;return er?e[n]!==void 0:yp.call(e,n)}var wp="__lodash_hash_undefined__";function xp(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=er&&e===void 0?wp:e,this}function Yt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Yt.prototype.clear=dp,Yt.prototype.delete=pp,Yt.prototype.get=vp,Yt.prototype.has=bp,Yt.prototype.set=xp;function _p(){this.__data__=[],this.size=0}function ii(n,e){for(var t=n.length;t--;)if(En(n[t][0],e))return t;return-1}var Sp=Array.prototype,kp=Sp.splice;function jp(n){var e=this.__data__,t=ii(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():kp.call(e,t,1),--this.size,!0}function Vp(n){var e=this.__data__,t=ii(e,n);return t<0?void 0:e[t][1]}function Cp(n){return ii(this.__data__,n)>-1}function $p(n,e){var t=this.__data__,r=ii(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function xt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}xt.prototype.clear=_p,xt.prototype.delete=jp,xt.prototype.get=Vp,xt.prototype.has=Cp,xt.prototype.set=$p;var Ep=nn(lt,"Map");const tr=Ep;function Ap(){this.size=0,this.__data__={hash:new Yt,map:new(tr||xt),string:new Yt}}function Tp(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function ai(n,e){var t=n.__data__;return Tp(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Bp(n){var e=ai(this,n).delete(n);return this.size-=e?1:0,e}function zp(n){return ai(this,n).get(n)}function Dp(n){return ai(this,n).has(n)}function Op(n,e){var t=ai(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function _t(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}_t.prototype.clear=Ap,_t.prototype.delete=Bp,_t.prototype.get=zp,_t.prototype.has=Dp,_t.prototype.set=Op;var Ip="Expected a function";function Za(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Ip);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=t.cache;if(a.has(i))return a.get(i);var o=n.apply(this,r);return t.cache=a.set(i,o)||a,o};return t.cache=new(Za.Cache||_t),t}Za.Cache=_t;var Rp=500;function Mp(n){var e=Za(n,function(r){return t.size===Rp&&t.clear(),r}),t=e.cache;return e}var Pp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Np=/\\(\\)?/g,Fp=Mp(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Pp,function(t,r,i,a){e.push(i?a.replace(Np,"$1"):r||t)}),e});const Hp=Fp;function rn(n){return n==null?"":Ll(n)}function nc(n,e){return st(n)?n:cp(n,e)?[n]:Hp(rn(n))}var Lp=1/0;function rc(n){if(typeof n=="string"||ti(n))return n;var e=n+"";return e=="0"&&1/n==-Lp?"-0":e}function Up(n,e){e=nc(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[rc(e[t++])];return t&&t==r?n:void 0}function Ar(n,e,t){var r=n==null?void 0:Up(n,e);return r===void 0?t:r}function ic(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var Wp=tc(Object.getPrototypeOf,Object);const eo=Wp;var Jp="[object Object]",qp=Function.prototype,Gp=Object.prototype,ac=qp.toString,Yp=Gp.hasOwnProperty,Kp=ac.call(Object);function to(n){if(!rt(n)||kt(n)!=Jp)return!1;var e=eo(n);if(e===null)return!0;var t=Yp.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&ac.call(t)==Kp}var Xp="[object DOMException]",Qp="[object Error]";function oc(n){if(!rt(n))return!1;var e=kt(n);return e==Qp||e==Xp||typeof n.message=="string"&&typeof n.name=="string"&&!to(n)}var Zp=ql(function(n,e){try{return Wl(n,void 0,e)}catch(t){return oc(t)?t:new Error(t)}});const eh=Zp;function th(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=n[r+e];return a}function nh(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:th(n,e,t)}var rh="\\ud800-\\udfff",ih="\\u0300-\\u036f",ah="\\ufe20-\\ufe2f",oh="\\u20d0-\\u20ff",sh=ih+ah+oh,lh="\\ufe0e\\ufe0f",ch="\\u200d",uh=RegExp("["+ch+rh+sh+lh+"]");function sc(n){return uh.test(n)}function dh(n){return n.split("")}var lc="\\ud800-\\udfff",ph="\\u0300-\\u036f",hh="\\ufe20-\\ufe2f",mh="\\u20d0-\\u20ff",fh=ph+hh+mh,vh="\\ufe0e\\ufe0f",gh="["+lc+"]",ea="["+fh+"]",ta="\\ud83c[\\udffb-\\udfff]",yh="(?:"+ea+"|"+ta+")",cc="[^"+lc+"]",uc="(?:\\ud83c[\\udde6-\\uddff]){2}",dc="[\\ud800-\\udbff][\\udc00-\\udfff]",bh="\\u200d",pc=yh+"?",hc="["+vh+"]?",wh="(?:"+bh+"(?:"+[cc,uc,dc].join("|")+")"+hc+pc+")*",xh=hc+pc+wh,_h="(?:"+[cc+ea+"?",ea,uc,dc,gh].join("|")+")",Sh=RegExp(ta+"(?="+ta+")|"+_h+xh,"g");function kh(n){return n.match(Sh)||[]}function jh(n){return sc(n)?kh(n):dh(n)}function Vh(n){return function(e){e=rn(e);var t=sc(e)?jh(e):void 0,r=t?t[0]:e.charAt(0),i=t?nh(t,1).join(""):e.slice(1);return r[n]()+i}}var Ch=Vh("toUpperCase");const no=Ch;function $h(n){return no(rn(n).toLowerCase())}function Eh(n,e,t,r){var i=-1,a=n==null?0:n.length;for(r&&a&&(t=n[++i]);++i<a;)t=e(t,n[i],i,n);return t}function mc(n){return function(e){return n?.[e]}}var Ah={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Th=mc(Ah);const Bh=Th;var zh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dh="\\u0300-\\u036f",Oh="\\ufe20-\\ufe2f",Ih="\\u20d0-\\u20ff",Rh=Dh+Oh+Ih,Mh="["+Rh+"]",Ph=RegExp(Mh,"g");function Nh(n){return n=rn(n),n&&n.replace(zh,Bh).replace(Ph,"")}var Fh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Hh(n){return n.match(Fh)||[]}var Lh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Uh(n){return Lh.test(n)}var fc="\\ud800-\\udfff",Wh="\\u0300-\\u036f",Jh="\\ufe20-\\ufe2f",qh="\\u20d0-\\u20ff",Gh=Wh+Jh+qh,vc="\\u2700-\\u27bf",gc="a-z\\xdf-\\xf6\\xf8-\\xff",Yh="\\xac\\xb1\\xd7\\xf7",Kh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Xh="\\u2000-\\u206f",Qh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",Zh="\\ufe0e\\ufe0f",bc=Yh+Kh+Xh+Qh,wc="['’]",is="["+bc+"]",em="["+Gh+"]",xc="\\d+",tm="["+vc+"]",_c="["+gc+"]",Sc="[^"+fc+bc+xc+vc+gc+yc+"]",nm="\\ud83c[\\udffb-\\udfff]",rm="(?:"+em+"|"+nm+")",im="[^"+fc+"]",kc="(?:\\ud83c[\\udde6-\\uddff]){2}",jc="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+yc+"]",am="\\u200d",as="(?:"+_c+"|"+Sc+")",om="(?:"+un+"|"+Sc+")",os="(?:"+wc+"(?:d|ll|m|re|s|t|ve))?",ss="(?:"+wc+"(?:D|LL|M|RE|S|T|VE))?",Vc=rm+"?",Cc="["+Zh+"]?",sm="(?:"+am+"(?:"+[im,kc,jc].join("|")+")"+Cc+Vc+")*",lm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",um=Cc+Vc+sm,dm="(?:"+[tm,kc,jc].join("|")+")"+um,pm=RegExp([un+"?"+_c+"+"+os+"(?="+[is,un,"$"].join("|")+")",om+"+"+ss+"(?="+[is,un+as,"$"].join("|")+")",un+"?"+as+"+"+os,un+"+"+ss,cm,lm,xc,dm].join("|"),"g");function hm(n){return n.match(pm)||[]}function mm(n,e,t){return n=rn(n),e=t?void 0:e,e===void 0?Uh(n)?hm(n):Hh(n):n.match(e)||[]}var fm="['’]",vm=RegExp(fm,"g");function gm(n){return function(e){return Eh(mm(Nh(e).replace(vm,"")),n,"")}}var ym=gm(function(n,e,t){return e=e.toLowerCase(),n+(t?$h(e):e)});const qt=ym;function bm(){this.__data__=new xt,this.size=0}function wm(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function xm(n){return this.__data__.get(n)}function _m(n){return this.__data__.has(n)}var Sm=200;function km(n,e){var t=this.__data__;if(t instanceof xt){var r=t.__data__;if(!tr||r.length<Sm-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new _t(r)}return t.set(n,e),this.size=t.size,this}function ct(n){var e=this.__data__=new xt(n);this.size=e.size}ct.prototype.clear=bm,ct.prototype.delete=wm,ct.prototype.get=xm,ct.prototype.has=_m,ct.prototype.set=km;function jm(n,e){return n&&An(e,ri(e),n)}function Vm(n,e){return n&&An(e,Tn(e),n)}var $c=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ls=$c&&typeof module=="object"&&module&&!module.nodeType&&module,Cm=ls&&ls.exports===$c,cs=Cm?lt.Buffer:void 0,us=cs?cs.allocUnsafe:void 0;function Ec(n,e){if(e)return n.slice();var t=n.length,r=us?us(t):new n.constructor(t);return n.copy(r),r}function $m(n,e){for(var t=-1,r=n==null?0:n.length,i=0,a=[];++t<r;){var o=n[t];e(o,t,n)&&(a[i++]=o)}return a}function Ac(){return[]}var Em=Object.prototype,Am=Em.propertyIsEnumerable,ds=Object.getOwnPropertySymbols,Tm=ds?function(n){return n==null?[]:(n=Object(n),$m(ds(n),function(e){return Am.call(n,e)}))}:Ac;const ro=Tm;function Bm(n,e){return An(n,ro(n),e)}var zm=Object.getOwnPropertySymbols,Dm=zm?function(n){for(var e=[];n;)ic(e,ro(n)),n=eo(n);return e}:Ac;const Tc=Dm;function Om(n,e){return An(n,Tc(n),e)}function Bc(n,e,t){var r=e(n);return st(n)?r:ic(r,t(n))}function na(n){return Bc(n,ri,ro)}function Im(n){return Bc(n,Tn,Tc)}var Rm=nn(lt,"DataView");const ra=Rm;var Mm=nn(lt,"Promise");const ia=Mm;var Pm=nn(lt,"Set");const aa=Pm;var ps="[object Map]",Nm="[object Object]",hs="[object Promise]",ms="[object Set]",fs="[object WeakMap]",vs="[object DataView]",Fm=tn(ra),Hm=tn(tr),Lm=tn(ia),Um=tn(aa),Wm=tn(Qi),Gt=kt;(ra&&Gt(new ra(new ArrayBuffer(1)))!=vs||tr&&Gt(new tr)!=ps||ia&&Gt(ia.resolve())!=hs||aa&&Gt(new aa)!=ms||Qi&&Gt(new Qi)!=fs)&&(Gt=function(n){var e=kt(n),t=e==Nm?n.constructor:void 0,r=t?tn(t):"";if(r)switch(r){case Fm:return vs;case Hm:return ps;case Lm:return hs;case Um:return ms;case Wm:return fs}return e});const nr=Gt;var Jm=Object.prototype,qm=Jm.hasOwnProperty;function Gm(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&qm.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Ym=lt.Uint8Array;const Ur=Ym;function io(n){var e=new n.constructor(n.byteLength);return new Ur(e).set(new Ur(n)),e}function Km(n,e){var t=e?io(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var Xm=/\w*$/;function Qm(n){var e=new n.constructor(n.source,Xm.exec(n));return e.lastIndex=n.lastIndex,e}var gs=ft?ft.prototype:void 0,ys=gs?gs.valueOf:void 0;function Zm(n){return ys?Object(ys.call(n)):{}}function zc(n,e){var t=e?io(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var ef="[object Boolean]",tf="[object Date]",nf="[object Map]",rf="[object Number]",af="[object RegExp]",of="[object Set]",sf="[object String]",lf="[object Symbol]",cf="[object ArrayBuffer]",uf="[object DataView]",df="[object Float32Array]",pf="[object Float64Array]",hf="[object Int8Array]",mf="[object Int16Array]",ff="[object Int32Array]",vf="[object Uint8Array]",gf="[object Uint8ClampedArray]",yf="[object Uint16Array]",bf="[object Uint32Array]";function wf(n,e,t){var r=n.constructor;switch(e){case cf:return io(n);case ef:case tf:return new r(+n);case uf:return Km(n,t);case df:case pf:case hf:case mf:case ff:case vf:case gf:case yf:case bf:return zc(n,t);case nf:return new r;case rf:case sf:return new r(n);case af:return Qm(n);case of:return new r;case lf:return Zm(n)}}function Dc(n){return typeof n.constructor=="function"&&!Ka(n)?qd(eo(n)):{}}var xf="[object Map]";function _f(n){return rt(n)&&nr(n)==xf}var bs=vt&&vt.isMap,Sf=bs?Xa(bs):_f;const kf=Sf;var jf="[object Set]";function Vf(n){return rt(n)&&nr(n)==jf}var ws=vt&&vt.isSet,Cf=ws?Xa(ws):Vf;const $f=Cf;var Ef=1,Af=2,Tf=4,Oc="[object Arguments]",Bf="[object Array]",zf="[object Boolean]",Df="[object Date]",Of="[object Error]",Ic="[object Function]",If="[object GeneratorFunction]",Rf="[object Map]",Mf="[object Number]",Rc="[object Object]",Pf="[object RegExp]",Nf="[object Set]",Ff="[object String]",Hf="[object Symbol]",Lf="[object WeakMap]",Uf="[object ArrayBuffer]",Wf="[object DataView]",Jf="[object Float32Array]",qf="[object Float64Array]",Gf="[object Int8Array]",Yf="[object Int16Array]",Kf="[object Int32Array]",Xf="[object Uint8Array]",Qf="[object Uint8ClampedArray]",Zf="[object Uint16Array]",ev="[object Uint32Array]",be={};be[Oc]=be[Bf]=be[Uf]=be[Wf]=be[zf]=be[Df]=be[Jf]=be[qf]=be[Gf]=be[Yf]=be[Kf]=be[Rf]=be[Mf]=be[Rc]=be[Pf]=be[Nf]=be[Ff]=be[Hf]=be[Xf]=be[Qf]=be[Zf]=be[ev]=!0,be[Of]=be[Ic]=be[Lf]=!1;function Tr(n,e,t,r,i,a){var o,s=e&Ef,l=e&Af,c=e&Tf;if(t&&(o=i?t(n,r,i,a):t(n)),o!==void 0)return o;if(!Oe(n))return n;var u=st(n);if(u){if(o=Gm(n),!s)return Jl(n,o)}else{var p=nr(n),m=p==Ic||p==If;if(Zn(n))return Ec(n,s);if(p==Rc||p==Oc||m&&!i){if(o=l||m?{}:Dc(n),!s)return l?Om(n,Vm(o,n)):Bm(n,jm(o,n))}else{if(!be[p])return i?n:{};o=wf(n,p,s)}}a||(a=new ct);var h=a.get(n);if(h)return h;a.set(n,o),$f(n)?n.forEach(function(g){o.add(Tr(g,e,t,g,n,a))}):kf(n)&&n.forEach(function(g,k){o.set(k,Tr(g,e,t,k,n,a))});var f=c?l?Im:na:l?Tn:ri,v=u?void 0:f(n);return i1(v||n,function(g,k){v&&(k=g,g=n[k]),Ya(o,k,Tr(g,e,t,k,n,a))}),o}var tv=1,nv=4;function Qt(n){return Tr(n,tv|nv)}var rv="__lodash_hash_undefined__";function iv(n){return this.__data__.set(n,rv),this}function av(n){return this.__data__.has(n)}function Br(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new _t;++e<t;)this.add(n[e])}Br.prototype.add=Br.prototype.push=iv,Br.prototype.has=av;function ov(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function sv(n,e){return n.has(e)}var lv=1,cv=2;function Mc(n,e,t,r,i,a){var o=t&lv,s=n.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(n),u=a.get(e);if(c&&u)return c==e&&u==n;var p=-1,m=!0,h=t&cv?new Br:void 0;for(a.set(n,e),a.set(e,n);++p<s;){var f=n[p],v=e[p];if(r)var g=o?r(v,f,p,e,n,a):r(f,v,p,n,e,a);if(g!==void 0){if(g)continue;m=!1;break}if(h){if(!ov(e,function(k,b){if(!sv(h,b)&&(f===k||i(f,k,t,r,a)))return h.push(b)})){m=!1;break}}else if(!(f===v||i(f,v,t,r,a))){m=!1;break}}return a.delete(n),a.delete(e),m}function uv(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function dv(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var pv=1,hv=2,mv="[object Boolean]",fv="[object Date]",vv="[object Error]",gv="[object Map]",yv="[object Number]",bv="[object RegExp]",wv="[object Set]",xv="[object String]",_v="[object Symbol]",Sv="[object ArrayBuffer]",kv="[object DataView]",xs=ft?ft.prototype:void 0,wi=xs?xs.valueOf:void 0;function jv(n,e,t,r,i,a,o){switch(t){case kv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Sv:return!(n.byteLength!=e.byteLength||!a(new Ur(n),new Ur(e)));case mv:case fv:case yv:return En(+n,+e);case vv:return n.name==e.name&&n.message==e.message;case bv:case xv:return n==e+"";case gv:var s=uv;case wv:var l=r&pv;if(s||(s=dv),n.size!=e.size&&!l)return!1;var c=o.get(n);if(c)return c==e;r|=hv,o.set(n,e);var u=Mc(s(n),s(e),r,i,a,o);return o.delete(n),u;case _v:if(wi)return wi.call(n)==wi.call(e)}return!1}var Vv=1,Cv=Object.prototype,$v=Cv.hasOwnProperty;function Ev(n,e,t,r,i,a){var o=t&Vv,s=na(n),l=s.length,c=na(e),u=c.length;if(l!=u&&!o)return!1;for(var p=l;p--;){var m=s[p];if(!(o?m in e:$v.call(e,m)))return!1}var h=a.get(n),f=a.get(e);if(h&&f)return h==e&&f==n;var v=!0;a.set(n,e),a.set(e,n);for(var g=o;++p<l;){m=s[p];var k=n[m],b=e[m];if(r)var w=o?r(b,k,m,e,n,a):r(k,b,m,n,e,a);if(!(w===void 0?k===b||i(k,b,t,r,a):w)){v=!1;break}g||(g=m=="constructor")}if(v&&!g){var S=n.constructor,C=e.constructor;S!=C&&"constructor"in n&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(v=!1)}return a.delete(n),a.delete(e),v}var Av=1,_s="[object Arguments]",Ss="[object Array]",vr="[object Object]",Tv=Object.prototype,ks=Tv.hasOwnProperty;function Bv(n,e,t,r,i,a){var o=st(n),s=st(e),l=o?Ss:nr(n),c=s?Ss:nr(e);l=l==_s?vr:l,c=c==_s?vr:c;var u=l==vr,p=c==vr,m=l==c;if(m&&Zn(n)){if(!Zn(e))return!1;o=!0,u=!1}if(m&&!u)return a||(a=new ct),o||Qa(n)?Mc(n,e,t,r,i,a):jv(n,e,l,t,r,i,a);if(!(t&Av)){var h=u&&ks.call(n,"__wrapped__"),f=p&&ks.call(e,"__wrapped__");if(h||f){var v=h?n.value():n,g=f?e.value():e;return a||(a=new ct),i(v,g,t,r,a)}}return m?(a||(a=new ct),Ev(n,e,t,r,i,a)):!1}function Pc(n,e,t,r,i){return n===e?!0:n==null||e==null||!rt(n)&&!rt(e)?n!==n&&e!==e:Bv(n,e,t,r,Pc,i)}function zv(n){return function(e,t,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var l=o[n?s:++i];if(t(a[l],l,a)===!1)break}return e}}var Dv=zv();const Ov=Dv;var Iv=function(){return lt.Date.now()};const xi=Iv;var Rv="Expected a function",Mv=Math.max,Pv=Math.min;function Nc(n,e,t){var r,i,a,o,s,l,c=0,u=!1,p=!1,m=!0;if(typeof n!="function")throw new TypeError(Rv);e=Yo(e)||0,Oe(t)&&(u=!!t.leading,p="maxWait"in t,a=p?Mv(Yo(t.maxWait)||0,e):a,m="trailing"in t?!!t.trailing:m);function h(x){var $=r,E=i;return r=i=void 0,c=x,o=n.apply(E,$),o}function f(x){return c=x,s=setTimeout(k,e),u?h(x):o}function v(x){var $=x-l,E=x-c,U=e-$;return p?Pv(U,a-E):U}function g(x){var $=x-l,E=x-c;return l===void 0||$>=e||$<0||p&&E>=a}function k(){var x=xi();if(g(x))return b(x);s=setTimeout(k,v(x))}function b(x){return s=void 0,m&&r?h(x):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function S(){return s===void 0?o:b(xi())}function C(){var x=xi(),$=g(x);if(r=arguments,i=this,l=x,$){if(s===void 0)return f(l);if(p)return clearTimeout(s),s=setTimeout(k,e),h(l)}return s===void 0&&(s=setTimeout(k,e)),o}return C.cancel=w,C.flush=S,C}function oa(n,e,t){(t!==void 0&&!En(n[e],t)||t===void 0&&!(e in n))&&Ga(n,e,t)}function Nv(n){return rt(n)&&ni(n)}function sa(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Fv(n){return An(n,Tn(n))}function Hv(n,e,t,r,i,a,o){var s=sa(n,t),l=sa(e,t),c=o.get(l);if(c){oa(n,t,c);return}var u=a?a(s,l,t+"",n,e,o):void 0,p=u===void 0;if(p){var m=st(l),h=!m&&Zn(l),f=!m&&!h&&Qa(l);u=l,m||h||f?st(s)?u=s:Nv(s)?u=Jl(s):h?(p=!1,u=Ec(l,!0)):f?(p=!1,u=zc(l,!0)):u=[]:to(l)||Zi(l)?(u=s,Zi(s)?u=Fv(s):(!Oe(s)||Qn(s))&&(u=Dc(l))):p=!1}p&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),oa(n,t,u)}function Fc(n,e,t,r,i){n!==e&&Ov(e,function(a,o){if(i||(i=new ct),Oe(a))Hv(n,e,o,t,Fc,r,i);else{var s=r?r(sa(n,o),a,o+"",n,e,i):void 0;s===void 0&&(s=a),oa(n,o,s)}},Tn)}var Lv={"&":"&","<":"<",">":">",'"':""","'":"'"},Uv=mc(Lv);const Wv=Uv;var Hc=/[&<>"']/g,Jv=RegExp(Hc.source);function qv(n){return n=rn(n),n&&Jv.test(n)?n.replace(Hc,Wv):n}var Gv="[object String]";function Bn(n){return typeof n=="string"||!st(n)&&rt(n)&&kt(n)==Gv}function Yv(n,e){return Hl(e,function(t){return n[t]})}vt&&vt.isArrayBuffer;vt&&vt.isDate;function ao(n,e){return Pc(n,e)}var Kv=Kl(function(n,e,t){Fc(n,e,t)});const pt=Kv;function Xv(n,e,t,r){if(!Oe(n))return n;e=nc(e,n);for(var i=-1,a=e.length,o=a-1,s=n;s!=null&&++i<a;){var l=rc(e[i]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return n;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=Oe(u)?u:qa(e[i+1])?[]:{})}Ya(s,l,c),s=s[l]}return n}function _i(n,e,t){return n==null?n:Xv(n,e,t)}var Lc=Object.prototype,Qv=Lc.hasOwnProperty;function js(n,e,t,r){return n===void 0||En(n,Lc[t])&&!Qv.call(r,t)?e:n}var Zv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function e3(n){return"\\"+Zv[n]}var t3=/<%=([\s\S]+?)%>/g;const Uc=t3;var n3=/<%-([\s\S]+?)%>/g;const r3=n3;var i3=/<%([\s\S]+?)%>/g;const a3=i3;var o3={escape:r3,evaluate:a3,interpolate:Uc,variable:"",imports:{_:{escape:qv}}};const Vs=o3;var s3="Invalid `variable` option passed into `_.template`",l3=/\b__p \+= '';/g,c3=/\b(__p \+=) '' \+/g,u3=/(__e\(.*?\)|\b__t\)) \+\n'';/g,d3=/[()=,{}\[\]\/\s]/,p3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/($^)/,h3=/['\n\r\u2028\u2029\\]/g,m3=Object.prototype,Cs=m3.hasOwnProperty;function Wc(n,e,t){var r=Vs.imports._.templateSettings||Vs;t&&Yl(n,e,t)&&(e=void 0),n=rn(n),e=rs({},e,r,js);var i=rs({},e.imports,r.imports,js),a=ri(i),o=Yv(i,a),s,l,c=0,u=e.interpolate||gr,p="__p += '",m=RegExp((e.escape||gr).source+"|"+u.source+"|"+(u===Uc?p3:gr).source+"|"+(e.evaluate||gr).source+"|$","g"),h=Cs.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
-
`:"";n.replace(m,function(g,k,b,w,S,C){return b||(b=w),p+=n.slice(c,C).replace(h3,e3),k&&(s=!0,p+=`' +
|
|
4
|
-
__e(`+k+`) +
|
|
5
|
-
'`),S&&(l=!0,p+=`';
|
|
6
|
-
`+S+`;
|
|
7
|
-
__p += '`),b&&(p+=`' +
|
|
8
|
-
((__t = (`+b+`)) == null ? '' : __t) +
|
|
9
|
-
'`),c=C+g.length,g}),p+=`';
|
|
10
|
-
`;var f=Cs.call(e,"variable")&&e.variable;if(!f)p=`with (obj) {
|
|
11
|
-
`+p+`
|
|
12
|
-
}
|
|
13
|
-
`;else if(d3.test(f))throw new Error(s3);p=(l?p.replace(l3,""):p).replace(c3,"$1").replace(u3,"$1;"),p="function("+(f||"obj")+`) {
|
|
14
|
-
`+(f?"":`obj || (obj = {});
|
|
15
|
-
`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?`, __j = Array.prototype.join;
|
|
16
|
-
function print() { __p += __j.call(arguments, '') }
|
|
17
|
-
`:`;
|
|
18
|
-
`)+p+`return __p
|
|
19
|
-
}`;var v=eh(function(){return Function(a,h+"return "+p).apply(void 0,o)});if(v.source=p,oc(v))throw v;return v}var f3="Expected a function";function v3(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(f3);return Oe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),Nc(n,e,{leading:r,maxWait:e,trailing:i})}function Wr(n){return no(qt(n))}var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Jc={exports:{}};function g3(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $s={exports:{}},Es;function Nt(){return Es||(Es=1,function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=t||function(r,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof He<"u"&&He.crypto&&(a=He.crypto),!a&&typeof g3=="function")try{a=require("crypto")}catch{}var o=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function b(){}return function(w){var S;return b.prototype=w,S=new b,b.prototype=null,S}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(b){var w=s(this);return b&&w.mixIn(b),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var w in b)b.hasOwnProperty(w)&&(this[w]=b[w]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),p=c.WordArray=u.extend({init:function(b,w){b=this.words=b||[],w!=i?this.sigBytes=w:this.sigBytes=b.length*4},toString:function(b){return(b||h).stringify(this)},concat:function(b){var w=this.words,S=b.words,C=this.sigBytes,x=b.sigBytes;if(this.clamp(),C%4)for(var $=0;$<x;$++){var E=S[$>>>2]>>>24-$%4*8&255;w[C+$>>>2]|=E<<24-(C+$)%4*8}else for(var U=0;U<x;U+=4)w[C+U>>>2]=S[U>>>2];return this.sigBytes+=x,this},clamp:function(){var b=this.words,w=this.sigBytes;b[w>>>2]&=4294967295<<32-w%4*8,b.length=r.ceil(w/4)},clone:function(){var b=u.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var w=[],S=0;S<b;S+=4)w.push(o());return new p.init(w,b)}}),m=l.enc={},h=m.Hex={stringify:function(b){for(var w=b.words,S=b.sigBytes,C=[],x=0;x<S;x++){var $=w[x>>>2]>>>24-x%4*8&255;C.push(($>>>4).toString(16)),C.push(($&15).toString(16))}return C.join("")},parse:function(b){for(var w=b.length,S=[],C=0;C<w;C+=2)S[C>>>3]|=parseInt(b.substr(C,2),16)<<24-C%8*4;return new p.init(S,w/2)}},f=m.Latin1={stringify:function(b){for(var w=b.words,S=b.sigBytes,C=[],x=0;x<S;x++){var $=w[x>>>2]>>>24-x%4*8&255;C.push(String.fromCharCode($))}return C.join("")},parse:function(b){for(var w=b.length,S=[],C=0;C<w;C++)S[C>>>2]|=(b.charCodeAt(C)&255)<<24-C%4*8;return new p.init(S,w)}},v=m.Utf8={stringify:function(b){try{return decodeURIComponent(escape(f.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return f.parse(unescape(encodeURIComponent(b)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=v.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var w,S=this._data,C=S.words,x=S.sigBytes,$=this.blockSize,E=$*4,U=x/E;b?U=r.ceil(U):U=r.max((U|0)-this._minBufferSize,0);var T=U*$,B=r.min(T*4,x);if(T){for(var F=0;F<T;F+=$)this._doProcessBlock(C,F);w=C.splice(0,T),S.sigBytes-=B}return new p.init(w,B)},clone:function(){var b=u.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});c.Hasher=g.extend({cfg:u.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(b){return function(w,S){return new b.init(S).finalize(w)}},_createHmacHelper:function(b){return function(w,S){return new k.HMAC.init(b,S).finalize(w)}}});var k=l.algo={};return l}(Math);return t})}($s)),$s.exports}(function(n,e){(function(t,r){n.exports=r(Nt())})(He,function(t){return function(r){var i=t,a=i.lib,o=a.WordArray,s=a.Hasher,l=i.algo,c=[];(function(){for(var v=0;v<64;v++)c[v]=r.abs(r.sin(v+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(v,g){for(var k=0;k<16;k++){var b=g+k,w=v[b];v[b]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var S=this._hash.words,C=v[g+0],x=v[g+1],$=v[g+2],E=v[g+3],U=v[g+4],T=v[g+5],B=v[g+6],F=v[g+7],A=v[g+8],N=v[g+9],O=v[g+10],W=v[g+11],Z=v[g+12],Q=v[g+13],re=v[g+14],ie=v[g+15],L=S[0],q=S[1],Y=S[2],K=S[3];L=p(L,q,Y,K,C,7,c[0]),K=p(K,L,q,Y,x,12,c[1]),Y=p(Y,K,L,q,$,17,c[2]),q=p(q,Y,K,L,E,22,c[3]),L=p(L,q,Y,K,U,7,c[4]),K=p(K,L,q,Y,T,12,c[5]),Y=p(Y,K,L,q,B,17,c[6]),q=p(q,Y,K,L,F,22,c[7]),L=p(L,q,Y,K,A,7,c[8]),K=p(K,L,q,Y,N,12,c[9]),Y=p(Y,K,L,q,O,17,c[10]),q=p(q,Y,K,L,W,22,c[11]),L=p(L,q,Y,K,Z,7,c[12]),K=p(K,L,q,Y,Q,12,c[13]),Y=p(Y,K,L,q,re,17,c[14]),q=p(q,Y,K,L,ie,22,c[15]),L=m(L,q,Y,K,x,5,c[16]),K=m(K,L,q,Y,B,9,c[17]),Y=m(Y,K,L,q,W,14,c[18]),q=m(q,Y,K,L,C,20,c[19]),L=m(L,q,Y,K,T,5,c[20]),K=m(K,L,q,Y,O,9,c[21]),Y=m(Y,K,L,q,ie,14,c[22]),q=m(q,Y,K,L,U,20,c[23]),L=m(L,q,Y,K,N,5,c[24]),K=m(K,L,q,Y,re,9,c[25]),Y=m(Y,K,L,q,E,14,c[26]),q=m(q,Y,K,L,A,20,c[27]),L=m(L,q,Y,K,Q,5,c[28]),K=m(K,L,q,Y,$,9,c[29]),Y=m(Y,K,L,q,F,14,c[30]),q=m(q,Y,K,L,Z,20,c[31]),L=h(L,q,Y,K,T,4,c[32]),K=h(K,L,q,Y,A,11,c[33]),Y=h(Y,K,L,q,W,16,c[34]),q=h(q,Y,K,L,re,23,c[35]),L=h(L,q,Y,K,x,4,c[36]),K=h(K,L,q,Y,U,11,c[37]),Y=h(Y,K,L,q,F,16,c[38]),q=h(q,Y,K,L,O,23,c[39]),L=h(L,q,Y,K,Q,4,c[40]),K=h(K,L,q,Y,C,11,c[41]),Y=h(Y,K,L,q,E,16,c[42]),q=h(q,Y,K,L,B,23,c[43]),L=h(L,q,Y,K,N,4,c[44]),K=h(K,L,q,Y,Z,11,c[45]),Y=h(Y,K,L,q,ie,16,c[46]),q=h(q,Y,K,L,$,23,c[47]),L=f(L,q,Y,K,C,6,c[48]),K=f(K,L,q,Y,F,10,c[49]),Y=f(Y,K,L,q,re,15,c[50]),q=f(q,Y,K,L,T,21,c[51]),L=f(L,q,Y,K,Z,6,c[52]),K=f(K,L,q,Y,E,10,c[53]),Y=f(Y,K,L,q,O,15,c[54]),q=f(q,Y,K,L,x,21,c[55]),L=f(L,q,Y,K,A,6,c[56]),K=f(K,L,q,Y,ie,10,c[57]),Y=f(Y,K,L,q,B,15,c[58]),q=f(q,Y,K,L,Q,21,c[59]),L=f(L,q,Y,K,U,6,c[60]),K=f(K,L,q,Y,W,10,c[61]),Y=f(Y,K,L,q,$,15,c[62]),q=f(q,Y,K,L,N,21,c[63]),S[0]=S[0]+L|0,S[1]=S[1]+q|0,S[2]=S[2]+Y|0,S[3]=S[3]+K|0},_doFinalize:function(){var v=this._data,g=v.words,k=this._nDataBytes*8,b=v.sigBytes*8;g[b>>>5]|=128<<24-b%32;var w=r.floor(k/4294967296),S=k;g[(b+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,g[(b+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.sigBytes=(g.length+1)*4,this._process();for(var C=this._hash,x=C.words,$=0;$<4;$++){var E=x[$];x[$]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return C},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,g,k,b,w,S,C){var x=v+(g&k|~g&b)+w+C;return(x<<S|x>>>32-S)+g}function m(v,g,k,b,w,S,C){var x=v+(g&b|k&~b)+w+C;return(x<<S|x>>>32-S)+g}function h(v,g,k,b,w,S,C){var x=v+(g^k^b)+w+C;return(x<<S|x>>>32-S)+g}function f(v,g,k,b,w,S,C){var x=v+(k^(g|~b))+w+C;return(x<<S|x>>>32-S)+g}i.MD5=s._createHelper(u),i.HmacMD5=s._createHmacHelper(u)}(Math),t.MD5})})(Jc);var qc=Jc.exports;zn(qc);var Gc={exports:{}};(function(n,e){(function(t,r){n.exports=r(Nt())})(He,function(t){return function(){var r=t,i=r.lib,a=i.WordArray,o=r.enc;o.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,p=this._map;l.clamp();for(var m=[],h=0;h<u;h+=3)for(var f=c[h>>>2]>>>24-h%4*8&255,v=c[h+1>>>2]>>>24-(h+1)%4*8&255,g=c[h+2>>>2]>>>24-(h+2)%4*8&255,k=f<<16|v<<8|g,b=0;b<4&&h+b*.75<u;b++)m.push(p.charAt(k>>>6*(3-b)&63));var w=p.charAt(64);if(w)for(;m.length%4;)m.push(w);return m.join("")},parse:function(l){var c=l.length,u=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m<u.length;m++)p[u.charCodeAt(m)]=m}var h=u.charAt(64);if(h){var f=l.indexOf(h);f!==-1&&(c=f)}return s(l,c,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var p=[],m=0,h=0;h<c;h++)if(h%4){var f=u[l.charCodeAt(h-1)]<<h%4*2,v=u[l.charCodeAt(h)]>>>6-h%4*2,g=f|v;p[m>>>2]|=g<<24-m%4*8,m++}return a.create(p,m)}}(),t.enc.Base64})})(Gc);var Yc=Gc.exports;zn(Yc);var Kc={exports:{}};(function(n,e){(function(t,r){n.exports=r(Nt())})(He,function(t){return t.enc.Utf8})})(Kc);var y3=Kc.exports;zn(y3);var Xc={exports:{}},As={exports:{}},Ts={exports:{}},Bs;function b3(){return Bs||(Bs=1,function(n,e){(function(t,r){n.exports=r(Nt())})(He,function(t){return function(){var r=t,i=r.lib,a=i.WordArray,o=i.Hasher,s=r.algo,l=[],c=s.SHA1=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,p){for(var m=this._hash.words,h=m[0],f=m[1],v=m[2],g=m[3],k=m[4],b=0;b<80;b++){if(b<16)l[b]=u[p+b]|0;else{var w=l[b-3]^l[b-8]^l[b-14]^l[b-16];l[b]=w<<1|w>>>31}var S=(h<<5|h>>>27)+k+l[b];b<20?S+=(f&v|~f&g)+1518500249:b<40?S+=(f^v^g)+1859775393:b<60?S+=(f&v|f&g|v&g)-1894007588:S+=(f^v^g)-899497514,k=g,g=v,v=f<<30|f>>>2,f=h,h=S}m[0]=m[0]+h|0,m[1]=m[1]+f|0,m[2]=m[2]+v|0,m[3]=m[3]+g|0,m[4]=m[4]+k|0},_doFinalize:function(){var u=this._data,p=u.words,m=this._nDataBytes*8,h=u.sigBytes*8;return p[h>>>5]|=128<<24-h%32,p[(h+64>>>9<<4)+14]=Math.floor(m/4294967296),p[(h+64>>>9<<4)+15]=m,u.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});r.SHA1=o._createHelper(c),r.HmacSHA1=o._createHmacHelper(c)}(),t.SHA1})}(Ts)),Ts.exports}var zs={exports:{}},Ds;function w3(){return Ds||(Ds=1,function(n,e){(function(t,r){n.exports=r(Nt())})(He,function(t){(function(){var r=t,i=r.lib,a=i.Base,o=r.enc,s=o.Utf8,l=r.algo;l.HMAC=a.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=s.parse(u));var p=c.blockSize,m=p*4;u.sigBytes>m&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),f=this._iKey=u.clone(),v=h.words,g=f.words,k=0;k<p;k++)v[k]^=1549556828,g[k]^=909522486;h.sigBytes=f.sigBytes=m,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,p=u.finalize(c);u.reset();var m=u.finalize(this._oKey.clone().concat(p));return m}})})()})}(zs)),zs.exports}var Os;function Qc(){return Os||(Os=1,function(n,e){(function(t,r,i){n.exports=r(Nt(),b3(),w3())})(He,function(t){return function(){var r=t,i=r.lib,a=i.Base,o=i.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,p){for(var m,h=this.cfg,f=h.hasher.create(),v=o.create(),g=v.words,k=h.keySize,b=h.iterations;g.length<k;){m&&f.update(m),m=f.update(u).finalize(p),f.reset();for(var w=1;w<b;w++)m=f.finalize(m),f.reset();v.concat(m)}return v.sigBytes=k*4,v}});r.EvpKDF=function(u,p,m){return c.create(m).compute(u,p)}}(),t.EvpKDF})}(As)),As.exports}var Is={exports:{}},Rs;function x3(){return Rs||(Rs=1,function(n,e){(function(t,r,i){n.exports=r(Nt(),Qc())})(He,function(t){t.lib.Cipher||function(r){var i=t,a=i.lib,o=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var u=c.Base64,p=i.algo,m=p.EvpKDF,h=a.Cipher=l.extend({cfg:o.extend(),createEncryptor:function(T,B){return this.create(this._ENC_XFORM_MODE,T,B)},createDecryptor:function(T,B){return this.create(this._DEC_XFORM_MODE,T,B)},init:function(T,B,F){this.cfg=this.cfg.extend(F),this._xformMode=T,this._key=B,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(B){return typeof B=="string"?U:x}return function(B){return{encrypt:function(F,A,N){return T(A).encrypt(B,F,A,N)},decrypt:function(F,A,N){return T(A).decrypt(B,F,A,N)}}}}()});a.StreamCipher=h.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var f=i.mode={},v=a.BlockCipherMode=o.extend({createEncryptor:function(T,B){return this.Encryptor.create(T,B)},createDecryptor:function(T,B){return this.Decryptor.create(T,B)},init:function(T,B){this._cipher=T,this._iv=B}}),g=f.CBC=function(){var T=v.extend();T.Encryptor=T.extend({processBlock:function(F,A){var N=this._cipher,O=N.blockSize;B.call(this,F,A,O),N.encryptBlock(F,A),this._prevBlock=F.slice(A,A+O)}}),T.Decryptor=T.extend({processBlock:function(F,A){var N=this._cipher,O=N.blockSize,W=F.slice(A,A+O);N.decryptBlock(F,A),B.call(this,F,A,O),this._prevBlock=W}});function B(F,A,N){var O,W=this._iv;W?(O=W,this._iv=r):O=this._prevBlock;for(var Z=0;Z<N;Z++)F[A+Z]^=O[Z]}return T}(),k=i.pad={},b=k.Pkcs7={pad:function(T,B){for(var F=B*4,A=F-T.sigBytes%F,N=A<<24|A<<16|A<<8|A,O=[],W=0;W<A;W+=4)O.push(N);var Z=s.create(O,A);T.concat(Z)},unpad:function(T){var B=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=B}};a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:b}),reset:function(){var T;h.reset.call(this);var B=this.cfg,F=B.iv,A=B.mode;this._xformMode==this._ENC_XFORM_MODE?T=A.createEncryptor:(T=A.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,F&&F.words):(this._mode=T.call(A,this,F&&F.words),this._mode.__creator=T)},_doProcessBlock:function(T,B){this._mode.processBlock(T,B)},_doFinalize:function(){var T,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),B.unpad(T)),T},blockSize:128/32});var w=a.CipherParams=o.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),S=i.format={},C=S.OpenSSL={stringify:function(T){var B,F=T.ciphertext,A=T.salt;return A?B=s.create([1398893684,1701076831]).concat(A).concat(F):B=F,B.toString(u)},parse:function(T){var B,F=u.parse(T),A=F.words;return A[0]==1398893684&&A[1]==1701076831&&(B=s.create(A.slice(2,4)),A.splice(0,4),F.sigBytes-=16),w.create({ciphertext:F,salt:B})}},x=a.SerializableCipher=o.extend({cfg:o.extend({format:C}),encrypt:function(T,B,F,A){A=this.cfg.extend(A);var N=T.createEncryptor(F,A),O=N.finalize(B),W=N.cfg;return w.create({ciphertext:O,key:F,iv:W.iv,algorithm:T,mode:W.mode,padding:W.padding,blockSize:T.blockSize,formatter:A.format})},decrypt:function(T,B,F,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var N=T.createDecryptor(F,A).finalize(B.ciphertext);return N},_parse:function(T,B){return typeof T=="string"?B.parse(T,this):T}}),$=i.kdf={},E=$.OpenSSL={execute:function(T,B,F,A,N){if(A||(A=s.random(64/8)),N)var O=m.create({keySize:B+F,hasher:N}).compute(T,A);else var O=m.create({keySize:B+F}).compute(T,A);var W=s.create(O.words.slice(B),F*4);return O.sigBytes=B*4,w.create({key:O,iv:W,salt:A})}},U=a.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:E}),encrypt:function(T,B,F,A){A=this.cfg.extend(A);var N=A.kdf.execute(F,T.keySize,T.ivSize,A.salt,A.hasher);A.iv=N.iv;var O=x.encrypt.call(this,T,B,N.key,A);return O.mixIn(N),O},decrypt:function(T,B,F,A){A=this.cfg.extend(A),B=this._parse(B,A.format);var N=A.kdf.execute(F,T.keySize,T.ivSize,B.salt,A.hasher);A.iv=N.iv;var O=x.decrypt.call(this,T,B,N.key,A);return O}})}()})}(Is)),Is.exports}(function(n,e){(function(t,r,i){n.exports=r(Nt(),Yc,qc,Qc(),x3())})(He,function(t){return function(){var r=t,i=r.lib,a=i.BlockCipher,o=r.algo,s=[],l=[],c=[],u=[],p=[],m=[],h=[],f=[],v=[],g=[];(function(){for(var w=[],S=0;S<256;S++)S<128?w[S]=S<<1:w[S]=S<<1^283;for(var C=0,x=0,S=0;S<256;S++){var $=x^x<<1^x<<2^x<<3^x<<4;$=$>>>8^$&255^99,s[C]=$,l[$]=C;var E=w[C],U=w[E],T=w[U],B=w[$]*257^$*16843008;c[C]=B<<24|B>>>8,u[C]=B<<16|B>>>16,p[C]=B<<8|B>>>24,m[C]=B;var B=T*16843009^U*65537^E*257^C*16843008;h[$]=B<<24|B>>>8,f[$]=B<<16|B>>>16,v[$]=B<<8|B>>>24,g[$]=B,C?(C=E^w[w[w[T^E]]],x^=w[w[x]]):C=x=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],b=o.AES=a.extend({_doReset:function(){var w;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,C=S.words,x=S.sigBytes/4,$=this._nRounds=x+6,E=($+1)*4,U=this._keySchedule=[],T=0;T<E;T++)T<x?U[T]=C[T]:(w=U[T-1],T%x?x>6&&T%x==4&&(w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255]):(w=w<<8|w>>>24,w=s[w>>>24]<<24|s[w>>>16&255]<<16|s[w>>>8&255]<<8|s[w&255],w^=k[T/x|0]<<24),U[T]=U[T-x]^w);for(var B=this._invKeySchedule=[],F=0;F<E;F++){var T=E-F;if(F%4)var w=U[T];else var w=U[T-4];F<4||T<=4?B[F]=w:B[F]=h[s[w>>>24]]^f[s[w>>>16&255]]^v[s[w>>>8&255]]^g[s[w&255]]}}},encryptBlock:function(w,S){this._doCryptBlock(w,S,this._keySchedule,c,u,p,m,s)},decryptBlock:function(w,S){var C=w[S+1];w[S+1]=w[S+3],w[S+3]=C,this._doCryptBlock(w,S,this._invKeySchedule,h,f,v,g,l);var C=w[S+1];w[S+1]=w[S+3],w[S+3]=C},_doCryptBlock:function(w,S,C,x,$,E,U,T){for(var B=this._nRounds,F=w[S]^C[0],A=w[S+1]^C[1],N=w[S+2]^C[2],O=w[S+3]^C[3],W=4,Z=1;Z<B;Z++){var Q=x[F>>>24]^$[A>>>16&255]^E[N>>>8&255]^U[O&255]^C[W++],re=x[A>>>24]^$[N>>>16&255]^E[O>>>8&255]^U[F&255]^C[W++],ie=x[N>>>24]^$[O>>>16&255]^E[F>>>8&255]^U[A&255]^C[W++],L=x[O>>>24]^$[F>>>16&255]^E[A>>>8&255]^U[N&255]^C[W++];F=Q,A=re,N=ie,O=L}var Q=(T[F>>>24]<<24|T[A>>>16&255]<<16|T[N>>>8&255]<<8|T[O&255])^C[W++],re=(T[A>>>24]<<24|T[N>>>16&255]<<16|T[O>>>8&255]<<8|T[F&255])^C[W++],ie=(T[N>>>24]<<24|T[O>>>16&255]<<16|T[F>>>8&255]<<8|T[A&255])^C[W++],L=(T[O>>>24]<<24|T[F>>>16&255]<<16|T[A>>>8&255]<<8|T[N&255])^C[W++];w[S]=Q,w[S+1]=re,w[S+2]=ie,w[S+3]=L},keySize:256/32});r.AES=a._createHelper(b)}(),t.AES})})(Xc);var _3=Xc.exports;zn(_3);var S3="0123456789abcdefghijklmnopqrstuvwxyz";function Ms(n){return S3.charAt(n)}function k3(n,e){return n&e}function yr(n,e){return n|e}function Ps(n,e){return n^e}function Ns(n,e){return n&~e}function j3(n){if(n==0)return-1;var e=0;return n&65535||(n>>=16,e+=16),n&255||(n>>=8,e+=8),n&15||(n>>=4,e+=4),n&3||(n>>=2,e+=2),n&1||++e,e}function V3(n){for(var e=0;n!=0;)n&=n-1,++e;return e}var Pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",C3="=";function Fs(n){var e,t,r="";for(e=0;e+3<=n.length;e+=3)t=parseInt(n.substring(e,e+3),16),r+=Pn.charAt(t>>6)+Pn.charAt(t&63);for(e+1==n.length?(t=parseInt(n.substring(e,e+1),16),r+=Pn.charAt(t<<2)):e+2==n.length&&(t=parseInt(n.substring(e,e+2),16),r+=Pn.charAt(t>>2)+Pn.charAt((t&3)<<4));(r.length&3)>0;)r+=C3;return r}var sn,$3={decode:function(n){var e;if(sn===void 0){var t="0123456789ABCDEF",r=` \f
|
|
20
|
-
\r \u2028\u2029`;for(sn={},e=0;e<16;++e)sn[t.charAt(e)]=e;for(t=t.toLowerCase(),e=10;e<16;++e)sn[t.charAt(e)]=e;for(e=0;e<r.length;++e)sn[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=sn[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Jt,la={decode:function(n){var e;if(Jt===void 0){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
|
|
21
|
-
\r \u2028\u2029`;for(Jt=Object.create(null),e=0;e<64;++e)Jt[t.charAt(e)]=e;for(Jt["-"]=62,Jt._=63,e=0;e<r.length;++e)Jt[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<n.length;++e){var s=n.charAt(e);if(s=="=")break;if(s=Jt[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+e);a|=s,++o>=4?(i[i.length]=a>>16,i[i.length]=a>>8&255,i[i.length]=a&255,a=0,o=0):a<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=a>>10;break;case 3:i[i.length]=a>>16,i[i.length]=a>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var e=la.re.exec(n);if(e)if(e[1])n=e[1];else if(e[2])n=e[2];else throw new Error("RegExp out of sync");return la.decode(n)}},ln=1e13,Ln=function(){function n(e){this.buf=[+e||0]}return n.prototype.mulAdd=function(e,t){var r=this.buf,i=r.length,a,o;for(a=0;a<i;++a)o=r[a]*e+t,o<ln?t=0:(t=0|o/ln,o-=t*ln),r[a]=o;t>0&&(r[a]=t)},n.prototype.sub=function(e){var t=this.buf,r=t.length,i,a;for(i=0;i<r;++i)a=t[i]-e,a<0?(a+=ln,e=1):e=0,t[i]=a;for(;t[t.length-1]===0;)t.pop()},n.prototype.toString=function(e){if((e||10)!=10)throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),i=t.length-2;i>=0;--i)r+=(ln+t[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var e=this.buf,t=0,r=e.length-1;r>=0;--r)t=t*ln+e[r];return t},n.prototype.simplify=function(){var e=this.buf;return e.length==1?e[0]:this},n}(),Zc="…",E3=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,A3=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function mn(n,e){return n.length>e&&(n=n.substring(0,e)+Zc),n}var Si=function(){function n(e,t){this.hexDigits="0123456789ABCDEF",e instanceof n?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=t)}return n.prototype.get=function(e){if(e===void 0&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(e):this.enc[e]},n.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(e&15)},n.prototype.hexDump=function(e,t,r){for(var i="",a=e;a<t;++a)if(i+=this.hexByte(this.get(a)),r!==!0)switch(a&15){case 7:i+=" ";break;case 15:i+=`
|
|
22
|
-
`;break;default:i+=" "}return i},n.prototype.isASCII=function(e,t){for(var r=e;r<t;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(e,t){for(var r="",i=e;i<t;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(e,t){for(var r="",i=e;i<t;){var a=this.get(i++);a<128?r+=String.fromCharCode(a):a>191&&a<224?r+=String.fromCharCode((a&31)<<6|this.get(i++)&63):r+=String.fromCharCode((a&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(e,t){for(var r="",i,a,o=e;o<t;)i=this.get(o++),a=this.get(o++),r+=String.fromCharCode(i<<8|a);return r},n.prototype.parseTime=function(e,t,r){var i=this.parseStringISO(e,t),a=(r?E3:A3).exec(i);return a?(r&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),i=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(i+=":"+a[5],a[6]&&(i+=":"+a[6],a[7]&&(i+="."+a[7]))),a[8]&&(i+=" UTC",a[8]!="Z"&&(i+=a[8],a[9]&&(i+=":"+a[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(e,t){for(var r=this.get(e),i=r>127,a=i?255:0,o,s="";r==a&&++e<t;)r=this.get(e);if(o=t-e,o===0)return i?-1:0;if(o>4){for(s=r,o<<=3;!((+s^a)&128);)s=+s<<1,--o;s="("+o+` bit)
|
|
23
|
-
`}i&&(r=r-256);for(var l=new Ln(r),c=e+1;c<t;++c)l.mulAdd(256,this.get(c));return s+l.toString()},n.prototype.parseBitString=function(e,t,r){for(var i=this.get(e),a=(t-e-1<<3)-i,o="("+a+` bit)
|
|
24
|
-
`,s="",l=e+1;l<t;++l){for(var c=this.get(l),u=l==t-1?i:0,p=7;p>=u;--p)s+=c>>p&1?"1":"0";if(s.length>r)return o+mn(s,r)}return o+s},n.prototype.parseOctetString=function(e,t,r){if(this.isASCII(e,t))return mn(this.parseStringISO(e,t),r);var i=t-e,a="("+i+` byte)
|
|
25
|
-
`;r/=2,i>r&&(t=e+r);for(var o=e;o<t;++o)a+=this.hexByte(this.get(o));return i>r&&(a+=Zc),a},n.prototype.parseOID=function(e,t,r){for(var i="",a=new Ln,o=0,s=e;s<t;++s){var l=this.get(s);if(a.mulAdd(128,l&127),o+=7,!(l&128)){if(i==="")if(a=a.simplify(),a instanceof Ln)a.sub(80),i="2."+a.toString();else{var c=a<80?a<40?0:1:2;i=c+"."+(a-c*40)}else i+="."+a.toString();if(i.length>r)return mn(i,r);a=new Ln,o=0}}return o>0&&(i+=".incomplete"),i},n}(),T3=function(){function n(e,t,r,i,a){if(!(i instanceof Hs))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=i,this.sub=a}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(e){if(this.tag===void 0)return null;e===void 0&&(e=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);switch(this.tag.tagNumber){case 1:return this.stream.get(t)===0?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);case 6:return this.stream.parseOID(t,t+r,e);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return mn(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return mn(this.stream.parseStringISO(t,t+r),e);case 30:return mn(this.stream.parseStringBMP(t,t+r),e);case 23:case 24:return this.stream.parseTime(t,t+r,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(e){e===void 0&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(t+=" (encapsulates)"),t+=`
|
|
26
|
-
`,this.sub!==null){e+=" ";for(var r=0,i=this.sub.length;r<i;++r)t+=this.sub[r].toPrettyString(e)}return t},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(e){var t=e.get(),r=t&127;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(r===0)return null;t=0;for(var i=0;i<r;++i)t=t*256+e.get();return t},n.prototype.getHexStringValue=function(){var e=this.toHexString(),t=this.header*2,r=this.length*2;return e.substr(t,r)},n.decode=function(e){var t;e instanceof Si?t=e:t=new Si(e,0);var r=new Si(t),i=new Hs(t),a=n.decodeLength(t),o=t.pos,s=o-r.pos,l=null,c=function(){var p=[];if(a!==null){for(var m=o+a;t.pos<m;)p[p.length]=n.decode(t);if(t.pos!=m)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=n.decode(t);if(h.tag.isEOC())break;p[p.length]=h}a=o-t.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&t.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(a===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);t.pos=o+Math.abs(a)}return new n(r,s,a,i,l)},n}(),Hs=function(){function n(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=(t&32)!==0,this.tagNumber=t&31,this.tagNumber==31){var r=new Ln;do t=e.get(),r.mulAdd(128,t&127);while(t&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n}(),Bt,B3=0xdeadbeefcafe,Ls=(B3&16777215)==15715070,Fe=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],z3=(1<<26)/Fe[Fe.length-1],ue=function(){function n(e,t,r){e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}return n.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,i,a=!1,o="",s=this.t,l=this.DB-s*this.DB%t;if(s-- >0)for(l<this.DB&&(i=this[s]>>l)>0&&(a=!0,o=Ms(i));s>=0;)l<t?(i=(this[s]&(1<<l)-1)<<t-l,i|=this[--s]>>(l+=this.DB-t)):(i=this[s]>>(l-=t)&r,l<=0&&(l+=this.DB,--s)),i>0&&(a=!0),a&&(o+=Ms(i));return a?o:"0"},n.prototype.negate=function(){var e=he();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+br(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(e){var t=he();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(n.ZERO)>0&&e.subTo(t,t),t},n.prototype.modPowInt=function(e,t){var r;return e<256||t.isEven()?r=new Us(t):r=new Ws(t),this.exp(e,r)},n.prototype.clone=function(){var e=he();return this.copyTo(e),e},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r=this.DB-e*this.DB%8,i,a=0;if(e-- >0)for(r<this.DB&&(i=this[e]>>r)!=(this.s&this.DM)>>r&&(t[a++]=i|this.s<<this.DB-r);e>=0;)r<8?(i=(this[e]&(1<<r)-1)<<8-r,i|=this[--e]>>(r+=this.DB-8)):(i=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),i&128&&(i|=-256),a==0&&(this.s&128)!=(i&128)&&++a,(a>0||i!=this.s)&&(t[a++]=i);return t},n.prototype.equals=function(e){return this.compareTo(e)==0},n.prototype.min=function(e){return this.compareTo(e)<0?this:e},n.prototype.max=function(e){return this.compareTo(e)>0?this:e},n.prototype.and=function(e){var t=he();return this.bitwiseTo(e,k3,t),t},n.prototype.or=function(e){var t=he();return this.bitwiseTo(e,yr,t),t},n.prototype.xor=function(e){var t=he();return this.bitwiseTo(e,Ps,t),t},n.prototype.andNot=function(e){var t=he();return this.bitwiseTo(e,Ns,t),t},n.prototype.not=function(){for(var e=he(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},n.prototype.shiftLeft=function(e){var t=he();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},n.prototype.shiftRight=function(e){var t=he();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},n.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(this[e]!=0)return e*this.DB+j3(this[e]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=V3(this[r]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this[t]&1<<e%this.DB)!=0},n.prototype.setBit=function(e){return this.changeBit(e,yr)},n.prototype.clearBit=function(e){return this.changeBit(e,Ns)},n.prototype.flipBit=function(e){return this.changeBit(e,Ps)},n.prototype.add=function(e){var t=he();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=he();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=he();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=he();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=he();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=he(),r=he();return this.divRemTo(e,t,r),[t,r]},n.prototype.modPow=function(e,t){var r=e.bitLength(),i,a=zt(1),o;if(r<=0)return a;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?o=new Us(t):t.isEven()?o=new O3(t):o=new Ws(t);var s=[],l=3,c=i-1,u=(1<<i)-1;if(s[1]=o.convert(this),i>1){var p=he();for(o.sqrTo(s[1],p);l<=u;)s[l]=he(),o.mulTo(p,s[l-2],s[l]),l+=2}var m=e.t-1,h,f=!0,v=he(),g;for(r=br(e[m])-1;m>=0;){for(r>=c?h=e[m]>>r-c&u:(h=(e[m]&(1<<r+1)-1)<<c-r,m>0&&(h|=e[m-1]>>this.DB+r-c)),l=i;!(h&1);)h>>=1,--l;if((r-=l)<0&&(r+=this.DB,--m),f)s[h].copyTo(a),f=!1;else{for(;l>1;)o.sqrTo(a,v),o.sqrTo(v,a),l-=2;l>0?o.sqrTo(a,v):(g=a,a=v,v=g),o.mulTo(v,s[h],a)}for(;m>=0&&!(e[m]&1<<r);)o.sqrTo(a,v),g=a,a=v,v=g,--r<0&&(r=this.DB-1,--m)}return o.revert(a)},n.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return n.ZERO;for(var r=e.clone(),i=this.clone(),a=zt(1),o=zt(0),s=zt(0),l=zt(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),t?((!s.isEven()||!l.isEven())&&(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&a.subTo(s,a),o.subTo(l,o)):(i.subTo(r,i),t&&s.subTo(a,s),l.subTo(o,l))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(l.compareTo(e)>=0)return l.subtract(e);if(l.signum()<0)l.addTo(e,l);else return l;return l.signum()<0?l.add(e):l},n.prototype.pow=function(e){return this.exp(e,new D3)},n.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var a=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(a<o&&(o=a),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},n.prototype.isProbablePrime=function(e){var t,r=this.abs();if(r.t==1&&r[0]<=Fe[Fe.length-1]){for(t=0;t<Fe.length;++t)if(r[0]==Fe[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Fe.length;){for(var i=Fe[t],a=t+1;a<Fe.length&&i<z3;)i*=Fe[a++];for(i=r.modInt(i);t<a;)if(i%Fe[t++]==0)return!1}return r.millerRabin(e)},n.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},n.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},n.prototype.fromString=function(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var i=e.length,a=!1,o=0;--i>=0;){var s=r==8?+e[i]&255:qs(e,i);if(s<0){e.charAt(i)=="-"&&(a=!0);continue}a=!1,o==0?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,o+=r,o>=this.DB&&(o-=this.DB)}r==8&&+e[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),a&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},n.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},n.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM,l=this.t-1;l>=0;--l)t[l+o+1]=this[l]>>i|s,s=(this[l]&a)<<r;for(var l=o-1;l>=0;--l)t[l]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()},n.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var i=e%this.DB,a=this.DB-i,o=(1<<i)-1;t[0]=this[r]>>i;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<a,t[s-r]=this[s]>>i;i>0&&(t[this.t-r-1]|=(this.s&o)<<a),t.t=this.t-r,t.clamp()},n.prototype.subTo=function(e,t){for(var r=0,i=0,a=Math.min(e.t,this.t);r<a;)i+=this[r]-e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i-=e[r],t[r++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=this.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),a=r.t;for(t.t=a+i.t;--a>=0;)t[a]=0;for(a=0;a<i.t;++a)t[a+r.t]=r.am(0,i[a],t,a,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},n.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},n.prototype.divRemTo=function(e,t,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=he());var o=he(),s=this.s,l=e.s,c=this.DB-br(i[i.t-1]);c>0?(i.lShiftTo(c,o),a.lShiftTo(c,r)):(i.copyTo(o),a.copyTo(r));var u=o.t,p=o[u-1];if(p!=0){var m=p*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),h=this.FV/m,f=(1<<this.F1)/m,v=1<<this.F2,g=r.t,k=g-u,b=t??he();for(o.dlShiftTo(k,b),r.compareTo(b)>=0&&(r[r.t++]=1,r.subTo(b,r)),n.ONE.dlShiftTo(u,b),b.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--k>=0;){var w=r[--g]==p?this.DM:Math.floor(r[g]*h+(r[g-1]+v)*f);if((r[g]+=o.am(0,w,r,k,0,u))<w)for(o.dlShiftTo(k,b),r.subTo(b,r);r[g]<--w;)r.subTo(b,r)}t!=null&&(r.drShiftTo(u,t),s!=l&&n.ZERO.subTo(t,t)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),s<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var r=he(),i=he(),a=t.convert(this),o=br(e)-1;for(a.copyTo(r);--o>=0;)if(t.sqrTo(r,i),(e&1<<o)>0)t.mulTo(i,a,r);else{var s=r;r=i,i=s}return t.revert(r)},n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=function(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=zt(r),a=he(),o=he(),s="";for(this.divRemTo(i,a,o);a.signum()>0;)s=(r+o.intValue()).toString(e).substr(1)+s,a.divRemTo(i,a,o);return o.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),a=!1,o=0,s=0,l=0;l<e.length;++l){var c=qs(e,l);if(c<0){e.charAt(l)=="-"&&this.signum()==0&&(a=!0);continue}s=t*s+c,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0)}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(s,0)),a&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),yr,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(n.ONE.shiftLeft(e-1),this);else{var i=[],a=e&7;i.length=(e>>3)+1,t.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,r){var i,a,o=Math.min(e.t,this.t);for(i=0;i<o;++i)r[i]=t(this[i],e[i]);if(e.t<this.t){for(a=e.s&this.DM,i=o;i<this.t;++i)r[i]=t(this[i],a);r.t=this.t}else{for(a=this.s&this.DM,i=o;i<e.t;++i)r[i]=t(a,e[i]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},n.prototype.changeBit=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=function(e,t){for(var r=0,i=0,a=Math.min(e.t,this.t);r<a;)i+=this[r]+e[r],t[r++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<e.t;)i+=e[r],t[r++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=this.DV+i),t.t=r,t.clamp()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},n.prototype.multiplyLowerTo=function(e,t,r){var i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var a=r.t-this.t;i<a;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(var a=Math.min(e.t,t);i<a;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},n.prototype.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var i=this.t-1;i>=0;--i)r=(t*r+this[i])%e;return r},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);e=e+1>>1,e>Fe.length&&(e=Fe.length);for(var a=he(),o=0;o<e;++o){a.fromInt(Fe[Math.floor(Math.random()*Fe.length)]);var s=a.modPow(i,this);if(s.compareTo(n.ONE)!=0&&s.compareTo(t)!=0){for(var l=1;l++<r&&s.compareTo(t)!=0;)if(s=s.modPowInt(2,this),s.compareTo(n.ONE)==0)return!1;if(s.compareTo(t)!=0)return!1}}return!0},n.prototype.square=function(){var e=he();return this.squareTo(e),e},n.prototype.gcda=function(e,t){var r=this.s<0?this.negate():this.clone(),i=e.s<0?e.negate():e.clone();if(r.compareTo(i)<0){var a=r;r=i,i=a}var o=r.getLowestSetBit(),s=i.getLowestSetBit();if(s<0){t(r);return}o<s&&(s=o),s>0&&(r.rShiftTo(s,r),i.rShiftTo(s,i));var l=function(){(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(l,0):(s>0&&i.lShiftTo(s,i),setTimeout(function(){t(i)},0))};setTimeout(l,10)},n.prototype.fromNumberAsync=function(e,t,r,i){if(typeof t=="number")if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),yr,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(n.ONE.shiftLeft(e-1),a),a.isProbablePrime(t)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],l=e&7;s.length=(e>>3)+1,t.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},n}(),D3=function(){function n(){}return n.prototype.convert=function(e){return e},n.prototype.revert=function(e){return e},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},n.prototype.sqrTo=function(e,t){e.squareTo(t)},n}(),Us=function(){function n(e){this.m=e}return n.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),Ws=function(){function n(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return n.prototype.convert=function(e){var t=he();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(ue.ZERO)>0&&this.m.subTo(t,t),t},n.prototype.revert=function(e){var t=he();return e.copyTo(t),this.reduce(t),t},n.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e[t]&32767,i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}(),O3=function(){function n(e){this.m=e,this.r2=he(),this.q3=he(),ue.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return n.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=he();return e.copyTo(t),this.reduce(t),t},n.prototype.revert=function(e){return e},n.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},n.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},n.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},n}();function he(){return new ue(null)}function Ve(n,e){return new ue(n,e)}var Js=typeof navigator<"u";Js&&Ls&&navigator.appName=="Microsoft Internet Explorer"?(ue.prototype.am=function(n,e,t,r,i,a){for(var o=e&32767,s=e>>15;--a>=0;){var l=this[n]&32767,c=this[n++]>>15,u=s*l+c*o;l=o*l+((u&32767)<<15)+t[r]+(i&1073741823),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),t[r++]=l&1073741823}return i},Bt=30):Js&&Ls&&navigator.appName!="Netscape"?(ue.prototype.am=function(n,e,t,r,i,a){for(;--a>=0;){var o=e*this[n++]+t[r]+i;i=Math.floor(o/67108864),t[r++]=o&67108863}return i},Bt=26):(ue.prototype.am=function(n,e,t,r,i,a){for(var o=e&16383,s=e>>14;--a>=0;){var l=this[n]&16383,c=this[n++]>>14,u=s*l+c*o;l=o*l+((u&16383)<<14)+t[r]+i,i=(l>>28)+(u>>14)+s*c,t[r++]=l&268435455}return i},Bt=28),ue.prototype.DB=Bt,ue.prototype.DM=(1<<Bt)-1,ue.prototype.DV=1<<Bt;var ki=52;ue.prototype.FV=Math.pow(2,ki),ue.prototype.F1=ki-Bt,ue.prototype.F2=2*Bt-ki;var oi=[],wn,tt;for(wn=48,tt=0;tt<=9;++tt)oi[wn++]=tt;for(wn=97,tt=10;tt<36;++tt)oi[wn++]=tt;for(wn=65,tt=10;tt<36;++tt)oi[wn++]=tt;function qs(n,e){var t=oi[n.charCodeAt(e)];return t??-1}function zt(n){var e=he();return e.fromInt(n),e}function br(n){var e=1,t;return(t=n>>>16)!=0&&(n=t,e+=16),(t=n>>8)!=0&&(n=t,e+=8),(t=n>>4)!=0&&(n=t,e+=4),(t=n>>2)!=0&&(n=t,e+=2),(t=n>>1)!=0&&(n=t,e+=1),e}ue.ZERO=zt(0),ue.ONE=zt(1);var I3=function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(e){var t,r,i;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},n}();function R3(){return new I3}var eu=256,wr,Ot=null,ot;if(Ot==null){Ot=[],ot=0;var xr=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ji=new Uint32Array(256);for(window.crypto.getRandomValues(ji),xr=0;xr<ji.length;++xr)Ot[ot++]=ji[xr]&255}var _r=0,Sr=function(n){if(_r=_r||0,_r>=256||ot>=eu){window.removeEventListener?window.removeEventListener("mousemove",Sr,!1):window.detachEvent&&window.detachEvent("onmousemove",Sr);return}try{var e=n.x+n.y;Ot[ot++]=e&255,_r+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Sr,!1):window.attachEvent&&window.attachEvent("onmousemove",Sr))}function M3(){if(wr==null){for(wr=R3();ot<eu;){var n=Math.floor(65536*Math.random());Ot[ot++]=n&255}for(wr.init(Ot),ot=0;ot<Ot.length;++ot)Ot[ot]=0;ot=0}return wr.next()}var ca=function(){function n(){}return n.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=M3()},n}();function P3(n,e){if(e<n.length+22)return console.error("Message too long for RSA"),null;for(var t=e-n.length-6,r="",i=0;i<t;i+=2)r+="ff";var a="0001"+r+"00"+n;return Ve(a,16)}function N3(n,e){if(e<n.length+11)return console.error("Message too long for RSA"),null;for(var t=[],r=n.length-1;r>=0&&e>0;){var i=n.charCodeAt(r--);i<128?t[--e]=i:i>127&&i<2048?(t[--e]=i&63|128,t[--e]=i>>6|192):(t[--e]=i&63|128,t[--e]=i>>6&63|128,t[--e]=i>>12|224)}t[--e]=0;for(var a=new ca,o=[];e>2;){for(o[0]=0;o[0]==0;)a.nextBytes(o);t[--e]=o[0]}return t[--e]=2,t[--e]=0,new ue(t)}var F3=function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ve(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,r=N3(e,t);if(r==null)return null;var i=this.doPublic(r);if(i==null)return null;for(var a=i.toString(16),o=a.length,s=0;s<t*2-o;s++)a="0"+a;return a},n.prototype.setPrivate=function(e,t,r){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ve(e,16),this.e=parseInt(t,16),this.d=Ve(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(e,t,r,i,a,o,s,l){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=Ve(e,16),this.e=parseInt(t,16),this.d=Ve(r,16),this.p=Ve(i,16),this.q=Ve(a,16),this.dmp1=Ve(o,16),this.dmq1=Ve(s,16),this.coeff=Ve(l,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(e,t){var r=new ca,i=e>>1;this.e=parseInt(t,16);for(var a=new ue(t,16);;){for(;this.p=new ue(e-i,1,r),!(this.p.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new ue(i,1,r),!(this.q.subtract(ue.ONE).gcd(a).compareTo(ue.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var s=this.p.subtract(ue.ONE),l=this.q.subtract(ue.ONE),c=s.multiply(l);if(c.gcd(a).compareTo(ue.ONE)==0){this.n=this.p.multiply(this.q),this.d=a.modInverse(c),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(e){var t=Ve(e,16),r=this.doPrivate(t);return r==null?null:H3(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(e,t,r){var i=new ca,a=e>>1;this.e=parseInt(t,16);var o=new ue(t,16),s=this,l=function(){var c=function(){if(s.p.compareTo(s.q)<=0){var m=s.p;s.p=s.q,s.q=m}var h=s.p.subtract(ue.ONE),f=s.q.subtract(ue.ONE),v=h.multiply(f);v.gcd(o).compareTo(ue.ONE)==0?(s.n=s.p.multiply(s.q),s.d=o.modInverse(v),s.dmp1=s.d.mod(h),s.dmq1=s.d.mod(f),s.coeff=s.q.modInverse(s.p),setTimeout(function(){r()},0)):setTimeout(l,0)},u=function(){s.q=he(),s.q.fromNumberAsync(a,1,i,function(){s.q.subtract(ue.ONE).gcda(o,function(m){m.compareTo(ue.ONE)==0&&s.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(u,0)})})},p=function(){s.p=he(),s.p.fromNumberAsync(e-a,1,i,function(){s.p.subtract(ue.ONE).gcda(o,function(m){m.compareTo(ue.ONE)==0&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},n.prototype.sign=function(e,t,r){var i=L3(r),a=i+t(e).toString(),o=P3(a,this.n.bitLength()/4);if(o==null)return null;var s=this.doPrivate(o);if(s==null)return null;var l=s.toString(16);return l.length&1?"0"+l:l},n.prototype.verify=function(e,t,r){var i=Ve(t,16),a=this.doPublic(i);if(a==null)return null;var o=a.toString(16).replace(/^1f+00/,""),s=U3(o);return s==r(e).toString()},n}();function H3(n,e){for(var t=n.toByteArray(),r=0;r<t.length&&t[r]==0;)++r;if(t.length-r!=e-1||t[r]!=2)return null;for(++r;t[r]!=0;)if(++r>=t.length)return null;for(var i="";++r<t.length;){var a=t[r]&255;a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((a&31)<<6|t[r+1]&63),++r):(i+=String.fromCharCode((a&15)<<12|(t[r+1]&63)<<6|t[r+2]&63),r+=2)}return i}var zr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function L3(n){return zr[n]||""}function U3(n){for(var e in zr)if(zr.hasOwnProperty(e)){var t=zr[e],r=t.length;if(n.substr(0,r)==t)return n.substr(r)}return n}/*!
|
|
27
|
-
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
28
|
-
Code licensed under the BSD License:
|
|
29
|
-
http://developer.yahoo.com/yui/license.html
|
|
30
|
-
version: 2.9.0
|
|
31
|
-
*/var $e={};$e.lang={extend:function(n,e,t){if(!e||!n)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),t){var i;for(i in t)n.prototype[i]=t[i];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(s,l){for(i=0;i<o.length;i=i+1){var c=o[i],u=l[c];typeof u=="function"&&u!=Object.prototype[c]&&(s[c]=u)}})}catch{}a(n.prototype,t)}}};/**
|
|
32
|
-
* @fileOverview
|
|
33
|
-
* @name asn1-1.0.js
|
|
34
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
35
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
36
|
-
* @since jsrsasign 2.1
|
|
37
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
38
|
-
*/var J={};(typeof J.asn1>"u"||!J.asn1)&&(J.asn1={}),J.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var e=n.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(n){var e=n.toString(16);if(e.substr(0,1)!="-")e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var t=e.substr(1),r=t.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var i="",a=0;a<r;a++)i+="f";var o=new ue(i,16),s=o.xor(n).add(ue.ONE);e=s.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(n,e){return hextopem(n,e)},this.newObject=function(n){var e=J,t=e.asn1,r=t.DERBoolean,i=t.DERInteger,a=t.DERBitString,o=t.DEROctetString,s=t.DERNull,l=t.DERObjectIdentifier,c=t.DEREnumerated,u=t.DERUTF8String,p=t.DERNumericString,m=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,v=t.DERUTCTime,g=t.DERGeneralizedTime,k=t.DERSequence,b=t.DERSet,w=t.DERTaggedObject,S=t.ASN1Util.newObject,C=Object.keys(n);if(C.length!=1)throw"key of param shall be only one.";var x=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+x+":")==-1)throw"undefined key: "+x;if(x=="bool")return new r(n[x]);if(x=="int")return new i(n[x]);if(x=="bitstr")return new a(n[x]);if(x=="octstr")return new o(n[x]);if(x=="null")return new s(n[x]);if(x=="oid")return new l(n[x]);if(x=="enum")return new c(n[x]);if(x=="utf8str")return new u(n[x]);if(x=="numstr")return new p(n[x]);if(x=="prnstr")return new m(n[x]);if(x=="telstr")return new h(n[x]);if(x=="ia5str")return new f(n[x]);if(x=="utctime")return new v(n[x]);if(x=="gentime")return new g(n[x]);if(x=="seq"){for(var $=n[x],E=[],U=0;U<$.length;U++){var T=S($[U]);E.push(T)}return new k({array:E})}if(x=="set"){for(var $=n[x],E=[],U=0;U<$.length;U++){var T=S($[U]);E.push(T)}return new b({array:E})}if(x=="tag"){var B=n[x];if(Object.prototype.toString.call(B)==="[object Array]"&&B.length==3){var F=S(B[2]);return new w({tag:B[0],explicit:B[1],obj:F})}else{var A={};if(B.explicit!==void 0&&(A.explicit=B.explicit),B.tag!==void 0&&(A.tag=B.tag),B.obj===void 0)throw"obj shall be specified for 'tag'.";return A.obj=S(B.obj),new w(A)}}},this.jsonToASN1HEX=function(n){var e=this.newObject(n);return e.getEncodedHex()}},J.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",e=parseInt(n.substr(0,2),16),t=Math.floor(e/40),r=e%40,i=t+"."+r,a="",o=2;o<n.length;o+=2){var s=parseInt(n.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a=a+l.substr(1,7),l.substr(0,1)=="0"){var c=new ue(a,2);i=i+"."+c.toString(10),a=""}}return i},J.asn1.ASN1Util.oidIntToHex=function(n){var e=function(s){var l=s.toString(16);return l.length==1&&(l="0"+l),l},t=function(s){var l="",c=new ue(s,10),u=c.toString(2),p=7-u.length%7;p==7&&(p=0);for(var m="",h=0;h<p;h++)m+="0";u=m+u;for(var h=0;h<u.length-1;h+=7){var f=u.substr(h,7);h!=u.length-7&&(f="1"+f),l+=e(parseInt(f,2))}return l};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),a=parseInt(i[0])*40+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=t(i[o]);return r},J.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var r=t.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var i=128+r;return i.toString(16)+t},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},J.asn1.DERAbstractString=function(n){J.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},$e.lang.extend(J.asn1.DERAbstractString,J.asn1.ASN1Object),J.asn1.DERAbstractTime=function(n){J.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){utc=e.getTime()+e.getTimezoneOffset()*6e4;var t=new Date(utc);return t},this.formatDate=function(e,t,r){var i=this.zeroPadding,a=this.localDateToUTC(e),o=String(a.getFullYear());t=="utc"&&(o=o.substr(2,2));var s=i(String(a.getMonth()+1),2),l=i(String(a.getDate()),2),c=i(String(a.getHours()),2),u=i(String(a.getMinutes()),2),p=i(String(a.getSeconds()),2),m=o+s+l+c+u+p;if(r===!0){var h=a.getMilliseconds();if(h!=0){var f=i(String(h),3);f=f.replace(/[0]+$/,""),m=m+"."+f}}return m+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,r,i,a,o){var s=new Date(Date.UTC(e,t-1,r,i,a,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},$e.lang.extend(J.asn1.DERAbstractTime,J.asn1.ASN1Object),J.asn1.DERAbstractStructured=function(n){J.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},$e.lang.extend(J.asn1.DERAbstractStructured,J.asn1.ASN1Object),J.asn1.DERBoolean=function(){J.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},$e.lang.extend(J.asn1.DERBoolean,J.asn1.ASN1Object),J.asn1.DERInteger=function(n){J.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=J.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},$e.lang.extend(J.asn1.DERInteger,J.asn1.ASN1Object),J.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=J.asn1.ASN1Util.newObject(n.obj);n.hex="00"+e.getEncodedHex()}J.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,r){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var r=8-t.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)t+="0";for(var a="",i=0;i<t.length-1;i+=8){var o=t.substr(i,8),s=parseInt(o,2).toString(16);s.length==1&&(s="0"+s),a+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+r+a},this.setByBooleanArray=function(t){for(var r="",i=0;i<t.length;i++)t[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},$e.lang.extend(J.asn1.DERBitString,J.asn1.ASN1Object),J.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var e=J.asn1.ASN1Util.newObject(n.obj);n.hex=e.getEncodedHex()}J.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},$e.lang.extend(J.asn1.DEROctetString,J.asn1.DERAbstractString),J.asn1.DERNull=function(){J.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},$e.lang.extend(J.asn1.DERNull,J.asn1.ASN1Object),J.asn1.DERObjectIdentifier=function(n){var e=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},t=function(r){var i="",a=new ue(r,10),o=a.toString(2),s=7-o.length%7;s==7&&(s=0);for(var l="",c=0;c<s;c++)l+="0";o=l+o;for(var c=0;c<o.length-1;c+=7){var u=o.substr(c,7);c!=o.length-7&&(u="1"+u),i+=e(parseInt(u,2))}return i};J.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",a=r.split("."),o=parseInt(a[0])*40+parseInt(a[1]);i+=e(o),a.splice(0,2);for(var s=0;s<a.length;s++)i+=t(a[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=J.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},$e.lang.extend(J.asn1.DERObjectIdentifier,J.asn1.ASN1Object),J.asn1.DEREnumerated=function(n){J.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=J.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new ue(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},$e.lang.extend(J.asn1.DEREnumerated,J.asn1.ASN1Object),J.asn1.DERUTF8String=function(n){J.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},$e.lang.extend(J.asn1.DERUTF8String,J.asn1.DERAbstractString),J.asn1.DERNumericString=function(n){J.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},$e.lang.extend(J.asn1.DERNumericString,J.asn1.DERAbstractString),J.asn1.DERPrintableString=function(n){J.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},$e.lang.extend(J.asn1.DERPrintableString,J.asn1.DERAbstractString),J.asn1.DERTeletexString=function(n){J.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},$e.lang.extend(J.asn1.DERTeletexString,J.asn1.DERAbstractString),J.asn1.DERIA5String=function(n){J.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},$e.lang.extend(J.asn1.DERIA5String,J.asn1.DERAbstractString),J.asn1.DERUTCTime=function(n){J.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},$e.lang.extend(J.asn1.DERUTCTime,J.asn1.DERAbstractTime),J.asn1.DERGeneralizedTime=function(n){J.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},$e.lang.extend(J.asn1.DERGeneralizedTime,J.asn1.DERAbstractTime),J.asn1.DERSequence=function(n){J.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e+=r.getEncodedHex()}return this.hV=e,this.hV}},$e.lang.extend(J.asn1.DERSequence,J.asn1.DERAbstractStructured),J.asn1.DERSet=function(n){J.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var r=this.asn1Array[t];e.push(r.getEncodedHex())}return this.sortFlag==!0&&e.sort(),this.hV=e.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},$e.lang.extend(J.asn1.DERSet,J.asn1.DERAbstractStructured),J.asn1.DERTaggedObject=function(n){J.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,r){this.hT=t,this.isExplicit=e,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},$e.lang.extend(J.asn1.DERTaggedObject,J.asn1.ASN1Object);var W3=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();(function(n){W3(e,n);function e(t){var r=n.call(this)||this;return t&&(typeof t=="string"?r.parseKey(t):(e.hasPrivateKeyProperty(t)||e.hasPublicKeyProperty(t))&&r.parsePropertiesFrom(t)),r}return e.prototype.parseKey=function(t){try{var r=0,i=0,a=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=a.test(t)?$3.decode(t):la.unarmor(t),s=T3.decode(o);if(s.sub.length===3&&(s=s.sub[2].sub[0]),s.sub.length===9){r=s.sub[1].getHexStringValue(),this.n=Ve(r,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var l=s.sub[3].getHexStringValue();this.d=Ve(l,16);var c=s.sub[4].getHexStringValue();this.p=Ve(c,16);var u=s.sub[5].getHexStringValue();this.q=Ve(u,16);var p=s.sub[6].getHexStringValue();this.dmp1=Ve(p,16);var m=s.sub[7].getHexStringValue();this.dmq1=Ve(m,16);var h=s.sub[8].getHexStringValue();this.coeff=Ve(h,16)}else if(s.sub.length===2)if(s.sub[0].sub){var f=s.sub[1],v=f.sub[0];r=v.sub[0].getHexStringValue(),this.n=Ve(r,16),i=v.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=s.sub[0].getHexStringValue(),this.n=Ve(r,16),i=s.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new J.asn1.DERInteger({int:0}),new J.asn1.DERInteger({bigint:this.n}),new J.asn1.DERInteger({int:this.e}),new J.asn1.DERInteger({bigint:this.d}),new J.asn1.DERInteger({bigint:this.p}),new J.asn1.DERInteger({bigint:this.q}),new J.asn1.DERInteger({bigint:this.dmp1}),new J.asn1.DERInteger({bigint:this.dmq1}),new J.asn1.DERInteger({bigint:this.coeff})]},r=new J.asn1.DERSequence(t);return r.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Fs(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new J.asn1.DERSequence({array:[new J.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new J.asn1.DERNull]}),r=new J.asn1.DERSequence({array:[new J.asn1.DERInteger({bigint:this.n}),new J.asn1.DERInteger({int:this.e})]}),i=new J.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),a=new J.asn1.DERSequence({array:[t,i]});return a.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Fs(this.getPublicBaseKey())},e.wordwrap=function(t,r){if(r=r||64,!t)return t;var i="(.{1,"+r+`})( +|$
|
|
39
|
-
?)|(.{1,`+r+"})";return t.match(RegExp(i,"g")).join(`
|
|
40
|
-
`)},e.prototype.getPrivateKey=function(){var t=`-----BEGIN RSA PRIVATE KEY-----
|
|
41
|
-
`;return t+=e.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
42
|
-
`,t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
43
|
-
`;return t+=e.wordwrap(this.getPublicBaseKeyB64())+`
|
|
44
|
-
`,t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e})(F3);var Vi;typeof process<"u"&&((Vi=id)===null||Vi===void 0||Vi.npm_package_version);const tu=/^(http|https):\/\/[\w.:\-@]*/;function J3(n){return tu.test(n)}var nu={exports:{}};/*! @preserve
|
|
45
|
-
* numeral.js
|
|
46
|
-
* version : 2.0.6
|
|
47
|
-
* author : Adam Draper
|
|
48
|
-
* license : MIT
|
|
49
|
-
* http://adamwdraper.github.com/Numeral-js/
|
|
50
|
-
*/(function(n){(function(e,t){n.exports?n.exports=t():e.numeral=t()})(He,function(){var e,t,r="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function l(c,u){this._input=c,this._value=u}return e=function(c){var u,p,m,h;if(e.isNumeral(c))u=c.value();else if(c===0||typeof c>"u")u=0;else if(c===null||t.isNaN(c))u=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)u=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)u=null;else{for(p in i)if(h=typeof i[p].regexps.unformat=="function"?i[p].regexps.unformat():i[p].regexps.unformat,h&&c.match(h)){m=i[p].unformat;break}m=m||e._.stringToNumber,u=m(c)}else u=Number(c)||null;return new l(c,u)},e.version=r,e.isNumeral=function(c){return c instanceof l},e._=t={numberToFormat:function(c,u,p){var m=a[e.options.currentLocale],h=!1,f=!1,v=0,g="",k=1e12,b=1e9,w=1e6,S=1e3,C="",x=!1,$,E,U,T,B,F,A;if(c=c||0,E=Math.abs(c),e._.includes(u,"(")?(h=!0,u=u.replace(/[\(|\)]/g,"")):(e._.includes(u,"+")||e._.includes(u,"-"))&&(B=e._.includes(u,"+")?u.indexOf("+"):c<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),e._.includes(u,"a")&&($=u.match(/a(k|m|b|t)?/),$=$?$[1]:!1,e._.includes(u," a")&&(g=" "),u=u.replace(new RegExp(g+"a[kmbt]?"),""),E>=k&&!$||$==="t"?(g+=m.abbreviations.trillion,c=c/k):E<k&&E>=b&&!$||$==="b"?(g+=m.abbreviations.billion,c=c/b):E<b&&E>=w&&!$||$==="m"?(g+=m.abbreviations.million,c=c/w):(E<w&&E>=S&&!$||$==="k")&&(g+=m.abbreviations.thousand,c=c/S)),e._.includes(u,"[.]")&&(f=!0,u=u.replace("[.]",".")),U=c.toString().split(".")[0],T=u.split(".")[1],F=u.indexOf(","),v=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(e._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),C=e._.toFixed(c,T[0].length+T[1].length,p,T[1].length)):C=e._.toFixed(c,T.length,p),U=C.split(".")[0],e._.includes(C,".")?C=m.delimiters.decimal+C.split(".")[1]:C="",f&&Number(C.slice(1))===0&&(C="")):U=e._.toFixed(c,0,p),g&&!$&&Number(U)>=1e3&&g!==m.abbreviations.trillion)switch(U=String(Number(U)/1e3),g){case m.abbreviations.thousand:g=m.abbreviations.million;break;case m.abbreviations.million:g=m.abbreviations.billion;break;case m.abbreviations.billion:g=m.abbreviations.trillion;break}if(e._.includes(U,"-")&&(U=U.slice(1),x=!0),U.length<v)for(var N=v-U.length;N>0;N--)U="0"+U;return F>-1&&(U=U.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),u.indexOf(".")===0&&(U=""),A=U+C+(g||""),h?A=(h&&x?"(":"")+A+(h&&x?")":""):B>=0?A=B===0?(x?"-":"+")+A:A+(x?"-":"+"):x&&(A="-"+A),A},stringToNumber:function(c){var u=a[s.currentLocale],p=c,m={thousand:3,million:6,billion:9,trillion:12},h,f,v;if(s.zeroFormat&&c===s.zeroFormat)f=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)f=null;else{f=1,u.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(h in m)if(v=new RegExp("[^a-zA-Z]"+u.abbreviations[h]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),p.match(v)){f*=Math.pow(10,m[h]);break}f*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),f*=Number(c)}return f},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,u){return c.indexOf(u)!==-1},insert:function(c,u,p){return c.slice(0,p)+u+c.slice(p)},reduce:function(c,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var p=Object(c),m=p.length>>>0,h=0,f;if(arguments.length===3)f=arguments[2];else{for(;h<m&&!(h in p);)h++;if(h>=m)throw new TypeError("Reduce of empty array with no initial value");f=p[h++]}for(;h<m;h++)h in p&&(f=u(f,p[h],h,p));return f},multiplier:function(c){var u=c.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(u,p){var m=t.multiplier(p);return u>m?u:m},1)},toFixed:function(c,u,p,m){var h=c.toString().split("."),f=u-(m||0),v,g,k,b;return h.length===2?v=Math.min(Math.max(h[1].length,f),u):v=f,k=Math.pow(10,v),b=(p(c+"e+"+v)/k).toFixed(v),m>u-v&&(g=new RegExp("\\.?0{1,"+(m-(u-v))+"}$"),b=b.replace(g,"")),b}},e.options=s,e.formats=i,e.locales=a,e.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},e.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},e.reset=function(){for(var c in o)s[c]=o[c]},e.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},e.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},e.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},e.register=function(c,u,p){if(u=u.toLowerCase(),this[c+"s"][u])throw new TypeError(u+" "+c+" already registered.");return this[c+"s"][u]=p,p},e.validate=function(c,u){var p,m,h,f,v,g,k,b;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{k=e.localeData(u)}catch{k=e.localeData(e.locale())}return h=k.currency.symbol,v=k.abbreviations,p=k.delimiters.decimal,k.delimiters.thousands==="."?m="\\.":m=k.delimiters.thousands,b=c.match(/^[^\d]+/),b!==null&&(c=c.substr(1),b[0]!==h)||(b=c.match(/[^\d]+$/),b!==null&&(c=c.slice(0,-1),b[0]!==v.thousand&&b[0]!==v.million&&b[0]!==v.billion&&b[0]!==v.trillion))?!1:(g=new RegExp(m+"{2}"),c.match(/[^\d.,]/g)?!1:(f=c.split(p),f.length>2?!1:f.length<2?!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g):f[0].length===1?!!f[0].match(/^\d+$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/):!!f[0].match(/^\d+.*\d$/)&&!f[0].match(g)&&!!f[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(c,u){var p=this._value,m=c||s.defaultFormat,h,f,v;if(u=u||Math.round,p===0&&s.zeroFormat!==null)f=s.zeroFormat;else if(p===null&&s.nullFormat!==null)f=s.nullFormat;else{for(h in i)if(m.match(i[h].regexps.format)){v=i[h].format;break}v=v||e._.numberToFormat,f=v(p,m,u)}return f},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var u=t.correctionFactor.call(null,this._value,c);function p(m,h,f,v){return m+Math.round(u*h)}return this._value=t.reduce([this._value,c],p,0)/u,this},subtract:function(c){var u=t.correctionFactor.call(null,this._value,c);function p(m,h,f,v){return m-Math.round(u*h)}return this._value=t.reduce([c],p,Math.round(this._value*u))/u,this},multiply:function(c){function u(p,m,h,f){var v=t.correctionFactor(p,m);return Math.round(p*v)*Math.round(m*v)/Math.round(v*v)}return this._value=t.reduce([this._value,c],u,1),this},divide:function(c){function u(p,m,h,f){var v=t.correctionFactor(p,m);return Math.round(p*v)/Math.round(m*v)}return this._value=t.reduce([this._value,c],u),this},difference:function(c){return Math.abs(e(this._value).subtract(c).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var u=c%10;return~~(c%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,u,p){var m=e._.includes(u," BPS")?" ":"",h;return c=c*1e4,u=u.replace(/\s?BPS/,""),h=e._.numberToFormat(c,u,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"BPS"),h=h.join("")):h=h+m+"BPS",h},unformat:function(c){return+(e._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=c.suffixes.concat(u.suffixes.filter(function(h){return c.suffixes.indexOf(h)<0})),m=p.join("|");m="("+m.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(m)},format:function(h,f,v){var g,k=e._.includes(f,"ib")?u:c,b=e._.includes(f," b")||e._.includes(f," ib")?" ":"",w,S,C;for(f=f.replace(/\s?i?b/,""),w=0;w<=k.suffixes.length;w++)if(S=Math.pow(k.base,w),C=Math.pow(k.base,w+1),h===null||h===0||h>=S&&h<C){b+=k.suffixes[w],S>0&&(h=h/S);break}return g=e._.numberToFormat(h,f,v),g+b},unformat:function(h){var f=e._.stringToNumber(h),v,g;if(f){for(v=c.suffixes.length-1;v>=0;v--){if(e._.includes(h,c.suffixes[v])){g=Math.pow(c.base,v);break}if(e._.includes(h,u.suffixes[v])){g=Math.pow(u.base,v);break}}f*=g||1}return f}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(c,u,p){var m=e.locales[e.options.currentLocale],h={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},f,v,g;for(u=u.replace(/\s?\$\s?/,""),f=e._.numberToFormat(c,u,p),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<0&&!e._.includes(h.before,"-")&&!e._.includes(h.before,"(")&&(h.before="-"+h.before),g=0;g<h.before.length;g++)switch(v=h.before[g],v){case"$":f=e._.insert(f,m.currency.symbol,g);break;case" ":f=e._.insert(f," ",g+m.currency.symbol.length-1);break}for(g=h.after.length-1;g>=0;g--)switch(v=h.after[g],v){case"$":f=g===h.after.length-1?f+m.currency.symbol:e._.insert(f,m.currency.symbol,-(h.after.length-(1+g)));break;case" ":f=g===h.after.length-1?f+" ":e._.insert(f," ",-(h.after.length-(1+g)+m.currency.symbol.length-1));break}return f}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,u,p){var m,h=typeof c=="number"&&!e._.isNaN(c)?c.toExponential():"0e+0",f=h.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),m=e._.numberToFormat(Number(f[0]),u,p),m+"e"+f[1]},unformat:function(c){var u=e._.includes(c,"e+")?c.split("e+"):c.split("e-"),p=Number(u[0]),m=Number(u[1]);m=e._.includes(c,"e-")?m*=-1:m;function h(f,v,g,k){var b=e._.correctionFactor(f,v),w=f*b*(v*b)/(b*b);return w}return e._.reduce([p,Math.pow(10,m)],h,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,u,p){var m=e.locales[e.options.currentLocale],h,f=e._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),f+=m.ordinal(c),h=e._.numberToFormat(c,u,p),h+f}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,u,p){var m=e._.includes(u," %")?" ":"",h;return e.options.scalePercentBy100&&(c=c*100),u=u.replace(/\s?\%/,""),h=e._.numberToFormat(c,u,p),e._.includes(h,")")?(h=h.split(""),h.splice(-1,0,m+"%"),h=h.join("")):h=h+m+"%",h},unformat:function(c){var u=e._.stringToNumber(c);return e.options.scalePercentBy100?u*.01:u}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,u,p){var m=Math.floor(c/60/60),h=Math.floor((c-m*60*60)/60),f=Math.round(c-m*60*60-h*60);return m+":"+(h<10?"0"+h:h)+":"+(f<10?"0"+f:f)},unformat:function(c){var u=c.split(":"),p=0;return u.length===3?(p=p+Number(u[0])*60*60,p=p+Number(u[1])*60,p=p+Number(u[2])):u.length===2&&(p=p+Number(u[0])*60,p=p+Number(u[1])),Number(p)}})}(),e})})(nu);var q3=nu.exports;const G3=zn(q3);function Y3(n,e="0.00"){return G3(n).format(e)}var ru={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(He,function(){var t=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",c="day",u="week",p="month",m="quarter",h="year",f="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var O=["th","st","nd","rd"],W=N%100;return"["+N+(O[(W-20)%10]||O[W]||O[0])+"]"}},w=function(N,O,W){var Z=String(N);return!Z||Z.length>=O?N:""+Array(O+1-Z.length).join(W)+N},S={s:w,z:function(N){var O=-N.utcOffset(),W=Math.abs(O),Z=Math.floor(W/60),Q=W%60;return(O<=0?"+":"-")+w(Z,2,"0")+":"+w(Q,2,"0")},m:function N(O,W){if(O.date()<W.date())return-N(W,O);var Z=12*(W.year()-O.year())+(W.month()-O.month()),Q=O.clone().add(Z,p),re=W-Q<0,ie=O.clone().add(Z+(re?-1:1),p);return+(-(Z+(W-Q)/(re?Q-ie:ie-Q))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:p,y:h,w:u,d:c,D:f,h:l,m:s,s:o,ms:a,Q:m}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},C="en",x={};x[C]=b;var $="$isDayjsObject",E=function(N){return N instanceof F||!(!N||!N[$])},U=function N(O,W,Z){var Q;if(!O)return C;if(typeof O=="string"){var re=O.toLowerCase();x[re]&&(Q=re),W&&(x[re]=W,Q=re);var ie=O.split("-");if(!Q&&ie.length>1)return N(ie[0])}else{var L=O.name;x[L]=O,Q=L}return!Z&&Q&&(C=Q),Q||!Z&&C},T=function(N,O){if(E(N))return N.clone();var W=typeof O=="object"?O:{};return W.date=N,W.args=arguments,new F(W)},B=S;B.l=U,B.i=E,B.w=function(N,O){return T(N,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var F=function(){function N(W){this.$L=U(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[$]=!0}var O=N.prototype;return O.parse=function(W){this.$d=function(Z){var Q=Z.date,re=Z.utc;if(Q===null)return new Date(NaN);if(B.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var ie=Q.match(g);if(ie){var L=ie[2]-1||0,q=(ie[7]||"0").substring(0,3);return re?new Date(Date.UTC(ie[1],L,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,q)):new Date(ie[1],L,ie[3]||1,ie[4]||0,ie[5]||0,ie[6]||0,q)}}return new Date(Q)}(W),this.init()},O.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},O.$utils=function(){return B},O.isValid=function(){return this.$d.toString()!==v},O.isSame=function(W,Z){var Q=T(W);return this.startOf(Z)<=Q&&Q<=this.endOf(Z)},O.isAfter=function(W,Z){return T(W)<this.startOf(Z)},O.isBefore=function(W,Z){return this.endOf(Z)<T(W)},O.$g=function(W,Z,Q){return B.u(W)?this[Z]:this.set(Q,W)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(W,Z){var Q=this,re=!!B.u(Z)||Z,ie=B.p(W),L=function(Wt,Ue){var $t=B.w(Q.$u?Date.UTC(Q.$y,Ue,Wt):new Date(Q.$y,Ue,Wt),Q);return re?$t:$t.endOf(c)},q=function(Wt,Ue){return B.w(Q.toDate()[Wt].apply(Q.toDate("s"),(re?[0,0,0,0]:[23,59,59,999]).slice(Ue)),Q)},Y=this.$W,K=this.$M,Qe=this.$D,on="set"+(this.$u?"UTC":"");switch(ie){case h:return re?L(1,0):L(31,11);case p:return re?L(1,K):L(0,K+1);case u:var Ut=this.$locale().weekStart||0,In=(Y<Ut?Y+7:Y)-Ut;return L(re?Qe-In:Qe+(6-In),K);case c:case f:return q(on+"Hours",0);case l:return q(on+"Minutes",1);case s:return q(on+"Seconds",2);case o:return q(on+"Milliseconds",3);default:return this.clone()}},O.endOf=function(W){return this.startOf(W,!1)},O.$set=function(W,Z){var Q,re=B.p(W),ie="set"+(this.$u?"UTC":""),L=(Q={},Q[c]=ie+"Date",Q[f]=ie+"Date",Q[p]=ie+"Month",Q[h]=ie+"FullYear",Q[l]=ie+"Hours",Q[s]=ie+"Minutes",Q[o]=ie+"Seconds",Q[a]=ie+"Milliseconds",Q)[re],q=re===c?this.$D+(Z-this.$W):Z;if(re===p||re===h){var Y=this.clone().set(f,1);Y.$d[L](q),Y.init(),this.$d=Y.set(f,Math.min(this.$D,Y.daysInMonth())).$d}else L&&this.$d[L](q);return this.init(),this},O.set=function(W,Z){return this.clone().$set(W,Z)},O.get=function(W){return this[B.p(W)]()},O.add=function(W,Z){var Q,re=this;W=Number(W);var ie=B.p(Z),L=function(K){var Qe=T(re);return B.w(Qe.date(Qe.date()+Math.round(K*W)),re)};if(ie===p)return this.set(p,this.$M+W);if(ie===h)return this.set(h,this.$y+W);if(ie===c)return L(1);if(ie===u)return L(7);var q=(Q={},Q[s]=r,Q[l]=i,Q[o]=t,Q)[ie]||1,Y=this.$d.getTime()+W*q;return B.w(Y,this)},O.subtract=function(W,Z){return this.add(-1*W,Z)},O.format=function(W){var Z=this,Q=this.$locale();if(!this.isValid())return Q.invalidDate||v;var re=W||"YYYY-MM-DDTHH:mm:ssZ",ie=B.z(this),L=this.$H,q=this.$m,Y=this.$M,K=Q.weekdays,Qe=Q.months,on=Q.meridiem,Ut=function(Ue,$t,Rn,fr){return Ue&&(Ue[$t]||Ue(Z,re))||Rn[$t].slice(0,fr)},In=function(Ue){return B.s(L%12||12,Ue,"0")},Wt=on||function(Ue,$t,Rn){var fr=Ue<12?"AM":"PM";return Rn?fr.toLowerCase():fr};return re.replace(k,function(Ue,$t){return $t||function(Rn){switch(Rn){case"YY":return String(Z.$y).slice(-2);case"YYYY":return B.s(Z.$y,4,"0");case"M":return Y+1;case"MM":return B.s(Y+1,2,"0");case"MMM":return Ut(Q.monthsShort,Y,Qe,3);case"MMMM":return Ut(Qe,Y);case"D":return Z.$D;case"DD":return B.s(Z.$D,2,"0");case"d":return String(Z.$W);case"dd":return Ut(Q.weekdaysMin,Z.$W,K,2);case"ddd":return Ut(Q.weekdaysShort,Z.$W,K,3);case"dddd":return K[Z.$W];case"H":return String(L);case"HH":return B.s(L,2,"0");case"h":return In(1);case"hh":return In(2);case"a":return Wt(L,q,!0);case"A":return Wt(L,q,!1);case"m":return String(q);case"mm":return B.s(q,2,"0");case"s":return String(Z.$s);case"ss":return B.s(Z.$s,2,"0");case"SSS":return B.s(Z.$ms,3,"0");case"Z":return ie}return null}(Ue)||ie.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(W,Z,Q){var re,ie=this,L=B.p(Z),q=T(W),Y=(q.utcOffset()-this.utcOffset())*r,K=this-q,Qe=function(){return B.m(ie,q)};switch(L){case h:re=Qe()/12;break;case p:re=Qe();break;case m:re=Qe()/3;break;case u:re=(K-Y)/6048e5;break;case c:re=(K-Y)/864e5;break;case l:re=K/i;break;case s:re=K/r;break;case o:re=K/t;break;default:re=K}return Q?re:B.a(re)},O.daysInMonth=function(){return this.endOf(p).$D},O.$locale=function(){return x[this.$L]},O.locale=function(W,Z){if(!W)return this.$L;var Q=this.clone(),re=U(W,Z,!0);return re&&(Q.$L=re),Q},O.clone=function(){return B.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},N}(),A=F.prototype;return T.prototype=A,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",c],["$M",p],["$y",h],["$D",f]].forEach(function(N){A[N[1]]=function(O){return this.$g(O,N[0],N[1])}}),T.extend=function(N,O){return N.$i||(N(O,F,T),N.$i=!0),T},T.locale=U,T.isDayjs=E,T.unix=function(N){return T(1e3*N)},T.en=x[C],T.Ls=x,T.p={},T})})(ru);var iu=ru.exports;const K3=zn(iu);var X3={exports:{}};(function(n,e){(function(t,r){n.exports=r(iu)})(He,function(t){function r(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=r(t),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,s){return s==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a})})(X3),K3.locale("zh-cn");const Q3=n=>Object.prototype.toString.call(n),Ci=n=>Q3(n).slice(8,-1),au=()=>+Date.now();function ut(){return Number(Math.random().toString().substring(2,5)+Date.now()).toString(36)}function Z3(n=!0){const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)});return n?e.toLowerCase():e.replace(/-/gi,"")}async function ou(n=0){return new Promise(e=>{setTimeout(e,n)})}function su(n,e){return n.reduce((t,r)=>{const i=r[e];return t.set(i,r),t},new Map)}function eg(n){return[...n.entries()].reduce((e,[t,r])=>(e[t]=r,e),{})}function lu(n,e){if(e){const t=su(n,e);return Array.from(t.values())}else return Array.from(new Set(n))}function oo(n){return n?[].concat(n):[]}function $i(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)||(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,a])=>{r(i,a)||(t[i]=a)})}return t}function tg(n,e){const t={};if(Array.isArray(e))Object.keys(n).forEach(r=>{e.includes(r)&&(t[r]=n[r])});else{const r=e;Object.entries(n).forEach(([i,a])=>{r(i,a)&&(t[i]=a)})}return t}var ua={exports:{}};ua.exports,function(n){var e=function(){var t=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function o(l,c){if(!a[l]){a[l]={};for(var u=0;u<l.length;u++)a[l][l.charAt(u)]=u}return a[l][c]}var s={compressToBase64:function(l){if(l==null)return"";var c=s._compress(l,6,function(u){return r.charAt(u)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:s._decompress(l.length,32,function(c){return o(r,l.charAt(c))})},compressToUTF16:function(l){return l==null?"":s._compress(l,15,function(c){return t(c+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:s._decompress(l.length,16384,function(c){return l.charCodeAt(c)-32})},compressToUint8Array:function(l){for(var c=s.compress(l),u=new Uint8Array(c.length*2),p=0,m=c.length;p<m;p++){var h=c.charCodeAt(p);u[p*2]=h>>>8,u[p*2+1]=h%256}return u},decompressFromUint8Array:function(l){if(l==null)return s.decompress(l);for(var c=new Array(l.length/2),u=0,p=c.length;u<p;u++)c[u]=l[u*2]*256+l[u*2+1];var m=[];return c.forEach(function(h){m.push(t(h))}),s.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":s._compress(l,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),s._decompress(l.length,32,function(c){return o(i,l.charAt(c))}))},compress:function(l){return s._compress(l,16,function(c){return t(c)})},_compress:function(l,c,u){if(l==null)return"";var p,m,h={},f={},v="",g="",k="",b=2,w=3,S=2,C=[],x=0,$=0,E;for(E=0;E<l.length;E+=1)if(v=l.charAt(E),Object.prototype.hasOwnProperty.call(h,v)||(h[v]=w++,f[v]=!0),g=k+v,Object.prototype.hasOwnProperty.call(h,g))k=g;else{if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<S;p++)x=x<<1,$==c-1?($=0,C.push(u(x)),x=0):$++;for(m=k.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1}else{for(m=1,p=0;p<S;p++)x=x<<1|m,$==c-1?($=0,C.push(u(x)),x=0):$++,m=0;for(m=k.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1}b--,b==0&&(b=Math.pow(2,S),S++),delete f[k]}else for(m=h[k],p=0;p<S;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1;b--,b==0&&(b=Math.pow(2,S),S++),h[g]=w++,k=String(v)}if(k!==""){if(Object.prototype.hasOwnProperty.call(f,k)){if(k.charCodeAt(0)<256){for(p=0;p<S;p++)x=x<<1,$==c-1?($=0,C.push(u(x)),x=0):$++;for(m=k.charCodeAt(0),p=0;p<8;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1}else{for(m=1,p=0;p<S;p++)x=x<<1|m,$==c-1?($=0,C.push(u(x)),x=0):$++,m=0;for(m=k.charCodeAt(0),p=0;p<16;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1}b--,b==0&&(b=Math.pow(2,S),S++),delete f[k]}else for(m=h[k],p=0;p<S;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1;b--,b==0&&(b=Math.pow(2,S),S++)}for(m=2,p=0;p<S;p++)x=x<<1|m&1,$==c-1?($=0,C.push(u(x)),x=0):$++,m=m>>1;for(;;)if(x=x<<1,$==c-1){C.push(u(x));break}else $++;return C.join("")},decompress:function(l){return l==null?"":l==""?null:s._decompress(l.length,32768,function(c){return l.charCodeAt(c)})},_decompress:function(l,c,u){var p=[],m=4,h=4,f=3,v="",g=[],k,b,w,S,C,x,$,E={val:u(0),position:c,index:1};for(k=0;k<3;k+=1)p[k]=k;for(w=0,C=Math.pow(2,2),x=1;x!=C;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),w|=(S>0?1:0)*x,x<<=1;switch(w){case 0:for(w=0,C=Math.pow(2,8),x=1;x!=C;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),w|=(S>0?1:0)*x,x<<=1;$=t(w);break;case 1:for(w=0,C=Math.pow(2,16),x=1;x!=C;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),w|=(S>0?1:0)*x,x<<=1;$=t(w);break;case 2:return""}for(p[3]=$,b=$,g.push($);;){if(E.index>l)return"";for(w=0,C=Math.pow(2,f),x=1;x!=C;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),w|=(S>0?1:0)*x,x<<=1;switch($=w){case 0:for(w=0,C=Math.pow(2,8),x=1;x!=C;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),w|=(S>0?1:0)*x,x<<=1;p[h++]=t(w),$=h-1,m--;break;case 1:for(w=0,C=Math.pow(2,16),x=1;x!=C;)S=E.val&E.position,E.position>>=1,E.position==0&&(E.position=c,E.val=u(E.index++)),w|=(S>0?1:0)*x,x<<=1;p[h++]=t(w),$=h-1,m--;break;case 2:return g.join("")}if(m==0&&(m=Math.pow(2,f),f++),p[$])v=p[$];else if($===h)v=b+b.charAt(0);else return null;g.push(v),p[h++]=b+v.charAt(0),m--,b=v,m==0&&(m=Math.pow(2,f),f++)}}};return s}();n!=null?n.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(ua);var cu=ua.exports;function ng(n){return{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(i){i(t)}),(r=n.get("*"))&&r.slice().map(function(i){i(e,t)})}}}function rg(n){for(var e=[],t=0;t<n.length;){var r=n[t];if(r==="*"||r==="+"||r==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(r==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(r==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(r==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(r===":"){for(var i="",a=t+1;a<n.length;){var o=n.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var s=1,l="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<n.length;){if(n[a]==="\\"){l+=n[a++]+n[a++];continue}if(n[a]===")"){if(s--,s===0){a++;break}}else if(n[a]==="("&&(s++,n[a+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(a));l+=n[a++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(t));if(!l)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:l}),t=a;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function uu(n,e){e===void 0&&(e={});for(var t=rg(n),r=e.prefixes,i=r===void 0?"./":r,a="[^".concat(dn(e.delimiter||"/#?"),"]+?"),o=[],s=0,l=0,c="",u=function(x){if(l<t.length&&t[l].type===x)return t[l++].value},p=function(x){var $=u(x);if($!==void 0)return $;var E=t[l],U=E.type,T=E.index;throw new TypeError("Unexpected ".concat(U," at ").concat(T,", expected ").concat(x))},m=function(){for(var x="",$;$=u("CHAR")||u("ESCAPED_CHAR");)x+=$;return x};l<t.length;){var h=u("CHAR"),f=u("NAME"),v=u("PATTERN");if(f||v){var g=h||"";i.indexOf(g)===-1&&(c+=g,g=""),c&&(o.push(c),c=""),o.push({name:f||s++,prefix:g,suffix:"",pattern:v||a,modifier:u("MODIFIER")||""});continue}var k=h||u("ESCAPED_CHAR");if(k){c+=k;continue}c&&(o.push(c),c="");var b=u("OPEN");if(b){var g=m(),w=u("NAME")||"",S=u("PATTERN")||"",C=m();p("CLOSE"),o.push({name:w||(S?s++:""),pattern:w&&!S?a:S,prefix:g,suffix:C,modifier:u("MODIFIER")||""});continue}p("END")}return o}function ig(n,e){return ag(uu(n,e),e)}function ag(n,e){e===void 0&&(e={});var t=so(e),r=e.encode,i=r===void 0?function(l){return l}:r,a=e.validate,o=a===void 0?!0:a,s=n.map(function(l){if(typeof l=="object")return new RegExp("^(?:".concat(l.pattern,")$"),t)});return function(l){for(var c="",u=0;u<n.length;u++){var p=n[u];if(typeof p=="string"){c+=p;continue}var m=l?l[p.name]:void 0,h=p.modifier==="?"||p.modifier==="*",f=p.modifier==="*"||p.modifier==="+";if(Array.isArray(m)){if(!f)throw new TypeError('Expected "'.concat(p.name,'" to not repeat, but got an array'));if(m.length===0){if(h)continue;throw new TypeError('Expected "'.concat(p.name,'" to not be empty'))}for(var v=0;v<m.length;v++){var g=i(m[v],p);if(o&&!s[u].test(g))throw new TypeError('Expected all "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));c+=p.prefix+g+p.suffix}continue}if(typeof m=="string"||typeof m=="number"){var g=i(String(m),p);if(o&&!s[u].test(g))throw new TypeError('Expected "'.concat(p.name,'" to match "').concat(p.pattern,'", but got "').concat(g,'"'));c+=p.prefix+g+p.suffix;continue}if(!h){var k=f?"an array":"a string";throw new TypeError('Expected "'.concat(p.name,'" to be ').concat(k))}}return c}}function og(n,e){var t=[],r=lo(n,t,e);return sg(r,t,e)}function sg(n,e,t){t===void 0&&(t={});var r=t.decode,i=r===void 0?function(a){return a}:r;return function(a){var o=n.exec(a);if(!o)return!1;for(var s=o[0],l=o.index,c=Object.create(null),u=function(m){if(o[m]===void 0)return"continue";var h=e[m-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=o[m].split(h.prefix+h.suffix).map(function(f){return i(f,h)}):c[h.name]=i(o[m],h)},p=1;p<o.length;p++)u(p);return{path:s,index:l,params:c}}}function dn(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function so(n){return n&&n.sensitive?"":"i"}function lg(n,e){if(!e)return n;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,i=t.exec(n.source);i;)e.push({name:i[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),i=t.exec(n.source);return n}function cg(n,e,t){var r=n.map(function(i){return lo(i,e,t).source});return new RegExp("(?:".concat(r.join("|"),")"),so(t))}function ug(n,e,t){return dg(uu(n,t),e,t)}function dg(n,e,t){t===void 0&&(t={});for(var r=t.strict,i=r===void 0?!1:r,a=t.start,o=a===void 0?!0:a,s=t.end,l=s===void 0?!0:s,c=t.encode,u=c===void 0?function(T){return T}:c,p=t.delimiter,m=p===void 0?"/#?":p,h=t.endsWith,f=h===void 0?"":h,v="[".concat(dn(f),"]|$"),g="[".concat(dn(m),"]"),k=o?"^":"",b=0,w=n;b<w.length;b++){var S=w[b];if(typeof S=="string")k+=dn(u(S));else{var C=dn(u(S.prefix)),x=dn(u(S.suffix));if(S.pattern)if(e&&e.push(S),C||x)if(S.modifier==="+"||S.modifier==="*"){var $=S.modifier==="*"?"?":"";k+="(?:".concat(C,"((?:").concat(S.pattern,")(?:").concat(x).concat(C,"(?:").concat(S.pattern,"))*)").concat(x,")").concat($)}else k+="(?:".concat(C,"(").concat(S.pattern,")").concat(x,")").concat(S.modifier);else S.modifier==="+"||S.modifier==="*"?k+="((?:".concat(S.pattern,")").concat(S.modifier,")"):k+="(".concat(S.pattern,")").concat(S.modifier);else k+="(?:".concat(C).concat(x,")").concat(S.modifier)}}if(l)i||(k+="".concat(g,"?")),k+=t.endsWith?"(?=".concat(v,")"):"$";else{var E=n[n.length-1],U=typeof E=="string"?g.indexOf(E[E.length-1])>-1:E===void 0;i||(k+="(?:".concat(g,"(?=").concat(v,"))?")),U||(k+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(k,so(t))}function lo(n,e,t){return n instanceof RegExp?lg(n,e):Array.isArray(n)?cg(n,e,t):ug(n,e,t)}cu.compress;cu.decompress;/**!
|
|
51
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
52
|
-
* @name @vtj/core
|
|
53
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.8.7
|
|
55
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
|
-
*/const da="BuiltIn",du="VueMaterial",pu="VueRouterMaterial",pg={vue:"Vue","vue-router":"VueRouter"},hg={[du]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[pu]:["RouterView","RouterLink"]};let co=class{listeners=[];isReady=!1;triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}},Ei=class hu{constructor(e,t,r){this.name=e,this.value=t,this.defaultValue=r,this.setValue(t)}isUnset=!1;setValue(e){this.value=e,this.isUnset=this.value===this.defaultValue}getValue(){return this.value??this.defaultValue}static toDsl(e={}){return Object.entries(e).reduce((t,[r,i])=>(i.isUnset||(t[r]=i.getValue()),t),{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new hu(r,i),t),{})}},Ai=class mu{constructor(e){this.schema=e;const{name:t,handler:r}=this.schema;this.name=t,this.handler=r,this.update(e)}name;handler;modifiers={};update(e){Object.assign(this.schema,e);const{handler:t,modifiers:r={}}=this.schema;this.handler=t,this.modifiers=r}static toDsl(e){return Object.entries(e).reduce((t,[r,i])=>{const{handler:a,modifiers:o}=i;return t[r]={name:r,handler:a,modifiers:o},t},{})}static parse(e={}){return Object.entries(e).reduce((t,[r,i])=>(t[r]=new mu(i),t),{})}},pn=class fu{constructor(e){this.schema=e,this.id=e.id||ut(),this.update(e)}id;name="";arg;modifiers;value;iterator;update(e){Object.assign(this.schema,e);const{name:t,arg:r,modifiers:i,value:a,iterator:o}=this.schema;this.name=t,this.arg=r,this.modifiers=i,this.value=a,this.iterator=o}static parse(e=[]){return e.map(t=>new fu(t))}static toDsl(e=[]){return e.map(t=>{const{name:r,arg:i,modifiers:a,value:o,iterator:s,id:l}=t;return{id:l,name:r,arg:i,modifiers:a,value:o,iterator:s}})}};const ke="EVENT_NODE_CHANGE";let Jr=class Dr{constructor(e,t=null){this.parent=t;const{id:r=ut(),name:i,from:a=""}=e;this.id=r,this.name=i,this.from=a,this.update(e,!0),Dr.nodes[this.id]=this}__VTJ_NODE__=!0;locked=!1;static nodes={};id;name;from;invisible=!1;children="";slot;props={};events={};directives=[];disposed=!1;update(e,t=!1){const{invisible:r=!1,locked:i=!1,children:a=[],slot:o,props:s={},events:l={},directives:c=[]}=e;this.invisible=r,this.locked=i,this.setChildren(a,!0),this.setSlot(o,!0),this.props=Ei.parse(s),this.events=Ai.parse(l),this.directives=pn.parse(c),t||G.emit(ke,this)}setChildren(e="",t=!1){Array.isArray(e)?this.children=e.map(r=>new Dr(r,this)):this.children=e,t||G.emit(ke,this)}setSlot(e,t=!1){this.slot=typeof e=="string"?{name:e,params:[]}:e,t||G.emit(ke,this)}setProp(e,t,r,i=!1){const a=this.props[e];a?a.setValue(t):this.props[e]=new Ei(e,t,r),i||G.emit(ke,this)}removeProp(e,t=!1){delete this.props[e],t||G.emit(ke,this)}getPropValue(e){const t=this.props[e];if(t)return t.getValue()}setEvent(e,t=!1){const r=this.events[e.name];r?r.update(e):this.events[e.name]=new Ai(e),t||G.emit(ke,this)}removeEvent(e,t=!1){delete this.events[e],t||G.emit(ke,this)}setDirective(e,t=!1){const r=this.directives.findIndex(i=>i.id===e.id);r>=0?this.directives.splice(r,1,new pn(e)):this.directives.push(new pn(e)),t||G.emit(ke,this)}removeDirective(e,t=!1){const r=this.directives.findIndex(i=>i===e||i.id===e.id);r>=0&&this.directives.splice(r,1),t||G.emit(ke,this)}removeChild(e,t=!1){const{children:r,disposed:i}=this;if(i||!Array.isArray(r))return;const a=r.findIndex(o=>o===e);e.parent=null,r.splice(a,1),t||G.emit(ke,this)}appendChild(e,t=!1){const{children:r,disposed:i}=this;i||(e.parent=this,Array.isArray(r)?r.push(e):this.children=[e],t||G.emit(ke,this))}insertAfter(e,t=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){e.parent=this.parent;const i=r.indexOf(this);r.splice(i+1,0,e),t||G.emit(ke,this.parent)}}insertBefore(e,t=!1){if(!this.parent)return;const r=this.parent.children;if(Array.isArray(r)){e.parent=this.parent;const i=r.indexOf(this);r.splice(i,0,e),t||G.emit(ke,this.parent)}}movePrev(e=!1){const t=this.parent;if(!t)return;const r=t.children;if(Array.isArray(r)){const i=r.indexOf(this);i>0&&(r.splice(i,1),r.splice(i-1,0,this),e||G.emit(ke,t))}}moveNext(e=!1){const t=this.parent;if(!t)return;const r=t.children;if(Array.isArray(r)){const i=r.indexOf(this);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,this),e||G.emit(ke,t))}}toDsl(){const{id:e,name:t,from:r,invisible:i,locked:a,slot:o,children:s,props:l,directives:c,events:u}=this,p=Array.isArray(s)?s.map(m=>m.toDsl()):s;return{id:e,name:t,from:r,invisible:i,locked:a,slot:o,children:p,props:Ei.toDsl(l),directives:pn.toDsl(c),events:Ai.toDsl(u)}}dispose(e=!1){const{children:t,disposed:r}=this;r||(Array.isArray(t)&&t.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,e):e||G.emit(ke,this),this.parent=null,this.disposed=!0,delete Dr.nodes[this.id])}lock(e=!1){if(this.locked=!0,Array.isArray(this.children))for(const t of this.children)t.lock(!0);e||G.emit(ke,this)}unlock(e=!1){if(this.locked=!1,Array.isArray(this.children))for(const t of this.children)t.unlock(!0);e||G.emit(ke,this)}setVisible(e,t=!1){if(this.invisible=!e,Array.isArray(this.children))for(const r of this.children)r.setVisible(e,!0);t||G.emit(ke,this)}isChild(e){let t=!1;if(Array.isArray(this.children)){for(const r of this.children)if(e===r||e.id===r.id){t=!0;break}else if(t=r.isChild(e),t)break}return t}};const ge="EVENT_BLOCK_CHANGE";let fn=class pa{__VTJ_BLOCK__=!0;id;name="";inject=[];state={};lifeCycles={};methods={};computed={};watch=[];css="";props=[];emits=[];slots=[];dataSources={};nodes=[];locked=!1;disposed=!1;static normalAttrs=["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources"];constructor(e){const{id:t}=e;this.id=t||ut(),this.update(e,!0)}update(e,t=!1){for(const i of pa.normalAttrs){const a=e[i];a&&(this[i]=a)}const{nodes:r=[]}=e;r.length&&(this.nodes=r.map(i=>new Jr(i))),t||G.emit(ge,this)}toDsl(e){const{__VTJ_BLOCK__:t,id:r,nodes:i}=this;return{...pa.normalAttrs.reduce((a,o)=>(a[o]=this[o],a),{}),__VTJ_BLOCK__:t,__VERSION__:e||au().toString(),id:r,nodes:i.map(a=>a.toDsl())}}dispose(){this.nodes.map(e=>e.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(e,t,r,i=!1){this[e][t]=r,i||G.emit(ge,this)}removeFunction(e,t,r=!1){delete this[e][t],r||G.emit(ge,this)}setState(e,t,r=!1){this.state[e]=t,r||G.emit(ge,this)}removeState(e,t=!1){delete this.state[e],t||G.emit(ge,this)}setCss(e,t=!1){this.css=e,t||G.emit(ge,this)}setWatch(e,t=!1){e.id=e.id||ut();const r=this.watch.findIndex(i=>i.id&&i.id===e.id||i===e);r>-1?this.watch.splice(r,1,e):this.watch.push(e),t||G.emit(ge,this)}removeWatch(e,t=!1){const r=this.watch.findIndex(i=>i.id&&i.id===e.id||i===e);r>-1&&(this.watch.splice(r,1),t||G.emit(ge,this))}setProp(e,t=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===e.name:i.name===e.name);r>-1?this.props.splice(r,1,e):this.props.push(e),t||G.emit(ge,this)}removeProp(e,t=!1){const r=this.props.findIndex(i=>typeof i=="string"?i===e.name:i.name===e.name);r>-1&&(this.props.splice(r,1),t||G.emit(ge,this))}setEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1?this.emits.splice(r,1,e):this.emits.push(e),t||G.emit(ge,this)}removeEmit(e,t=!1){const r=this.emits.findIndex(i=>i===e);r>-1&&(this.emits.splice(r,1),t||G.emit(ge,this))}setSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1?this.slots.splice(r,1,e):this.slots.push(e),t||G.emit(ge,this)}removeSlot(e,t=!1){const r=this.slots.findIndex(i=>i===e);r>-1&&(this.slots.splice(r,1),t||G.emit(ge,this))}setInject(e,t=!1){const r=this.inject.findIndex(i=>i.name===e.name);r>-1?this.inject.splice(r,1,e):this.inject.push(e),t||G.emit(ge,this)}removeInject(e,t=!1){const r=this.inject.findIndex(i=>i.name===e.name);r>-1&&(this.inject.splice(r,1),t||G.emit(ge,this))}setDataSource(e,t=!1){this.dataSources[e.name]=e,t||G.emit(ge,this)}removeDataSource(e,t=!1){delete this.dataSources[e],t||G.emit(ge,this)}insertAfter(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i+1,0,e),r||G.emit(ge,this)}insertBefore(e,t,r=!1){e.parent=null;const i=this.nodes.indexOf(t);this.nodes.splice(i,0,e),r||G.emit(ge,this)}appendNode(e,t=!1){e.parent=null,this.nodes.push(e),t||G.emit(ge,this)}addNode(e,t,r="inner",i=!1){t?["left","top"].includes(r)?t.parent?t.insertAfter(e,i):this.insertBefore(e,t,i):["right","bottom"].includes(r)?t.parent?t.insertAfter(e,i):this.insertAfter(e,t,i):t.appendChild(e,i):this.appendNode(e,i)}__removeNode(e,t=!1){const r=this.nodes.findIndex(i=>i.id===e.id);r>-1&&(this.nodes.splice(r,1),t||G.emit(ge,this))}removeNode(e,t=!1){e.parent?e.dispose(t):(e.dispose(!0),this.__removeNode(e,t))}move(e,t,r="inner",i=!1){e.parent?e.parent.removeChild(e,!0):this.__removeNode(e,!0),this.addNode(e,t,r,i)}movePrev(e,t=!1){if(e.parent)e.movePrev(t);else{const r=this.nodes,i=r.indexOf(e);i>0&&(r.splice(i,1),r.splice(i-1,0,e),t||G.emit(ge,this))}}moveNext(e,t=!1){if(e.parent)e.moveNext(t);else{const r=this.nodes,i=r.indexOf(e);i>-1&&i<r.length-1&&(r.splice(i,1),r.splice(i+1,0,e),t||G.emit(ge,this))}}cloneNode(e,t=!1){const r=yu(e.toDsl()),i=new Jr(r);return this.addNode(i,e,"bottom",t),i}lock(e=!1){this.locked=!0;for(const t of this.nodes)t.lock(!0);e||G.emit(ge,this)}unlock(e=!1){this.locked=!1;for(const t of this.nodes)t.unlock(!0);e||G.emit(ge,this)}isChild(e){let t=!1;for(const r of this.nodes)if(e===r||e.id===r.id){t=!0;break}else if(t=r.isChild(e),t)break;return t}};const Ne="EVENT_PROJECT_CHANGE",rr="EVENT_PROJECT_ACTIVED",ha="EVENT_PROJECT_DEPS_CHANGE",Un="EVENT_PROJECT_PAGES_CHANGE",Or="EVENT_PROJECT_BLOCKS_CHANGE",Gs="EVENT_PROJECT_APIS_CHANGE",vu="EVENT_PROJECT_PUBLISH",gu="EVENT_PROJECT_FILE_PUBLISH";let mg=class ma{id="";name="";description="";homepage="";dependencies=[];pages=[];blocks=[];apis=[];currentFile=null;config={};static attrs=["name","homepage","description","dependencies","pages","blocks","apis","config"];constructor(e){const{id:t}=e;this.id=t||ut(),this.update(e,!0)}update(e,t=!1){for(const r of ma.attrs){const i=e[r];i&&(this[r]=i)}t||G.emit(Ne,{model:this,type:"update",data:e})}isPageFile(e){return e.type==="page"}toDsl(e){const{id:t}=this,r=ma.attrs.reduce((i,a)=>(i[a]=this[a],i),{});return r.pages&&(r.pages=r.pages.map(i=>(delete i.dsl,i))),r.blocks&&(r.blocks=r.blocks.map(i=>(delete i.dsl,i))),{__VTJ_PROJECT__:!0,__VERSION__:e||au().toString(),id:t,...r}}active(e,t=!1){this.currentFile=e,t||G.emit(rr,{model:this,type:"update",data:e})}deactivate(e=!1){this.currentFile=null,e||G.emit(rr,{model:this,type:"update",data:null})}setDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(o=>o.package===e.package);let a;if(i>-1?(a="update",r.splice(i,1,{...r[i],...e})):(a="create",r.push(e)),!t){const o={model:this,type:a,data:e};G.emit(ha,o),G.emit(Ne,o)}}removeDeps(e,t=!1){const r=this.dependencies,i=r.findIndex(a=>a.package===e.package);if(i>-1&&r.splice(i,1),!t){const a={model:this,type:"delete",data:e};G.emit(ha,a),G.emit(Ne,a)}}getPage(e){const t=(r,i=[])=>{for(const a of i){if(a.id===r)return a;if(a.children&&a.children.length){const o=t(r,a.children);if(o)return o}}};return t(e,this.pages)}getPages(){const e=(t=[])=>{let r=[];for(const i of t)i.dir?i.children&&i.children.length&&(r=r.concat(e(i.children))):r.push(i);return r};return e(this.pages)}createPage(e,t,r=!1){if(e.id=e.raw?e.name:e.id||ut(),e.type="page",e.dir?e.children=[]:e.dsl=e.dsl||new fn({id:e.id,name:Wr(e.name)}).toDsl(),t){const i=this.getPage(t);i?i.children?i.children.push(e):i.children=[e]:console.warn(`not found PageFile for id: ${t} `)}else this.pages.push(e);if(!this.currentFile&&!e.dir&&this.active(e,r),!r){const i={model:this,type:"create",data:e};G.emit(Un,i),G.emit(Ne,i)}}updatePage(e,t=!1){const r=this.getPage(e.id);if(r?Object.assign(r,e):console.warn(`not found PageFile for id: ${e.id} `),!t){const i={model:this,type:"update",data:e};G.emit(Un,i),G.emit(Ne,i)}}clonePage(e,t,r=!1){const i=ut(),a=`${e.name}Copy`,o=`${e.title}_副本`,s=new fn({id:i,name:a}).toDsl(),l=pt({},e,{id:i,name:a,title:o,dsl:s}),c=t?this.getPage(t)?.children||[]:this.pages,u=c.findIndex(p=>p.id===e.id);if(c.splice(u+1,0,l),!r){const p={model:this,type:"clone",data:{page:e,newPage:l}};G.emit(Un,p),G.emit(Ne,p)}}removePage(e,t=!1){const r=this.getPage(e),i=(a,o)=>{const s=o.findIndex(l=>l.id===a);if(s>=0){o.splice(s,1);return}for(const l of o)if(l.children&&l.children.length)return i(a,l.children)};if(i(e,this.pages),e===this.homepage&&(this.homepage=""),this.currentFile?.id===e&&this.deactivate(t),!t){const a={model:this,type:"delete",data:r};G.emit(Un,a),G.emit(Ne,a)}}getBlock(e){return this.blocks.find(t=>t.id===e)}createBlock(e,t=!1){const r=e.id||ut(),i=Wr(e.name);e.id=r,e.type="block",e.dsl=new fn({id:r,name:i}).toDsl(),this.blocks.push(e);const a=e.fromType||"Schema";if(!this.currentFile&&a==="Schema"&&this.active(e,t),!t){const o={model:this,type:"create",data:e};G.emit(Or,o),G.emit(Ne,o)}}updateBlock(e,t=!1){const r=this.getBlock(e.id);if(r?(Object.assign(r,e),r.dsl&&(r.dsl.name=e.name)):console.warn(`not found PageFile for id: ${e.id} `),!t){const i={model:this,type:"update",data:e};G.emit(Or,i),G.emit(Ne,i)}}removeBlock(e,t=!1){const r=this.getBlock(e),i=this.blocks,a=i.findIndex(o=>o.id===e);if(a>-1?(i.splice(a,1),this.currentFile?.id===e&&this.deactivate(t)):console.warn(`not found PageFile for id: ${e} `),!t){const o={model:this,type:"delete",data:r};G.emit(Or,o),G.emit(Ne,o)}}existBlockName(e,t=[]){return this.blocks.some(r=>r.name===e&&!t.includes(r.id))}existPageName(e,t=[]){return this.getPages().some(r=>r.name===e&&!t.includes(r.id))}setApi(e,t=!1){const r=this.apis.find(a=>a.name===e.name||a.id===e.id);let i;if(r?(i="update",Object.assign(r,e)):(i="create",e.id=ut(),this.apis.push(e)),!t){const a={model:this,type:i,data:e};G.emit(Gs,a),G.emit(Ne,a)}}removeApi(e,t=!1){const r=this.apis.findIndex(i=>i.name===e||i.id===e);if(r>-1?this.apis.splice(r,1):console.warn(`not found Api for name: ${e} `),!t){const i={model:this,type:"delete",data:e};G.emit(Gs,i),G.emit(Ne,i)}}existApiName(e,t=[]){return this.apis.some(r=>r.name===e&&!t.includes(r.id))}setHomepage(e,t=!1){if(this.homepage=e,!t){const r={model:this,type:"update",data:e};G.emit(Ne,r)}}setConfig(e,t=!1){if(this.config=Object.assign(this.config,e),!t){const r={model:this,type:"update",data:e};G.emit(Ne,r)}}publish(e){const t={model:this,type:"publish",data:e||this};e?G.emit(gu,t):G.emit(vu,t)}};const Wn="EVENT_HISTORY_CHANGE",Ir="EVENT_HISTORY_LOAD";let fg=class{options={max:50};index=-1;id;items;constructor(e,t={}){Object.assign(this.options,t);const{id:r,items:i=[]}=e;this.id=r,this.items=i}toDsl(){const{id:e,items:t}=this;return{id:e,items:t.map(r=>({id:r.id,label:r.label}))}}get(e){return this.items.find(t=>t.id===e)}add(e,t=!1){const{max:r}=this.options,i={id:ut(),label:new Date().toLocaleString(),dsl:Qt(e)};if(this.items.unshift(i),this.items.length>r){const a=this.items.splice(r);t||G.emit(Wn,{model:this,type:"delete",data:a.map(o=>o.id)})}this.index=-1,t||G.emit(Wn,{model:this,type:"create",data:i})}remove(e,t=!1){const r=this.items.findIndex(i=>i.id===e);r>-1?(this.items.splice(r,1),r===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${e} `),t||G.emit(Wn,{model:this,type:"delete",data:[e]})}forward(e=!1){const{index:t,items:r}=this;if(t<0)return;--this.index;const i=r[this.index];i&&!e&&G.emit(Ir,{model:this,type:"load",data:i})}backward(e=!1){const{index:t,items:r}=this;if(t>=r.length-1)return;t<0&&(this.index=0),++this.index;const i=r[this.index];i&&!e&&G.emit(Ir,{model:this,type:"load",data:i})}load(e,t=!1){const r=this.items.findIndex(i=>i.id===e);r>=0&&(this.index=r,t||G.emit(Ir,{model:this,type:"load",data:this.items[r]}))}clear(e=!1){this.index=-1;const t=this.items.map(r=>r.id);this.items=[],e||G.emit(Wn,{model:this,type:"clear",data:t})}};const G=ng();function Ce(n){return n instanceof fn}function yu(n){return delete n.id,Array.isArray(n.children)&&(n.children=n.children.map(e=>yu(e))),n}function vg(n){const e=n.fromType||"Schema";return e==="Schema"?{type:"Schema",id:n.id}:e==="UrlSchema"?{type:"UrlSchema",url:(n.urls||"").split(",")[0]||""}:e==="Plugin"?{type:"Plugin",urls:(n.urls||"").split(","),library:n.library}:""}/**!
|
|
57
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
58
|
-
* @name @vtj/icons
|
|
59
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.8.7
|
|
61
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const gg=I({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M298.666667 298.666667V85.333333h85.333333v298.666667H85.333333V298.666667h213.333334z m426.666666-213.333334v213.333334h213.333334v85.333333h-298.666667V85.333333h85.333333zM298.666667 938.666667v-213.333334H85.333333v-85.333333h298.666667v298.666667H298.666667z m426.666666 0h-85.333333v-298.666667h298.666667v85.333333h-213.333334v213.333334z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),yg=I({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M374.442667 486.229333l-81.237334 101.034667c-2.218667 4.352-2.218667 6.570667 0 8.789333 0 2.218667 2.218667 4.352 6.570667 4.352H719.36c4.352 0 6.570667-2.133333 6.570667-4.352 0-2.218667 2.218667-4.437333 0-8.789333l-81.237334-101.034667H374.442667z m362.922666 179.2H281.770667a66.56 66.56 0 0 1-57.173334-35.754666 67.242667 67.242667 0 0 1 7.082667-66.730667l104.96-128.853333h345.856l104.96 128.853333c14.250667 19.029333 19.029333 45.226667 7.168 66.730667a66.56 66.56 0 0 1-57.258667 35.84zM380.16 178.773333H639.146667L680.362667 76.544c2.218667-4.266667 0-6.485333 0-6.485333 0-2.218667-2.133333-4.352-6.485334-4.352H347.562667c-4.352 0-6.570667 2.133333-6.570667 4.266666 0 2.218667-2.133333 4.437333 0 6.570667l39.253333 102.229333z m307.114667 62.122667H331.861333l-57.173333-145.493333a61.269333 61.269333 0 0 1 7.082667-57.173334 63.317333 63.317333 0 0 1 52.48-26.282666h355.413333c21.418667 0 40.533333 9.557333 52.48 26.197333 11.946667 16.725333 14.250667 38.229333 7.082667 57.258667l-61.952 145.493333z",color:"#FFFFFF"},{path:"M386.901333 426.922667h245.248V245.76H386.901333v181.162667z m309.930667 59.733333H322.304V186.026667h372.053333v300.544h2.474667zM510.72 992.256c-19.029333-16.725333-28.586667-40.618667-30.976-66.816L458.24 636.842667h107.349333l-21.418666 288.597333a127.146667 127.146667 0 0 1-33.450667 66.816",color:"#FFFFFF"},{path:"M19.2 905.557333m52.48 0l878.08 0q52.48 0 52.48 52.48l0 0.085334q0 52.48-52.48 52.48l-878.08 0q-52.48 0-52.48-52.48l0-0.085334q0-52.48 52.48-52.48Z",color:"#FFFFFF"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),bg=I({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M170.666667 170.666667v213.333333H85.333333V85.333333h298.666667v85.333334H170.666667z m682.666666 213.333333V170.666667h-213.333333V85.333333h298.666667v298.666667h-85.333334zM170.666667 640v213.333333h213.333333v85.333334H85.333333v-298.666667h85.333334z m682.666666 0h85.333334v298.666667h-298.666667v-85.333334h213.333333v-213.333333z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),wg=I({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M891.0336 113.7664a32 32 0 0 1 0 45.2352l-104.6016 104.6016a380.1088 380.1088 0 0 1 81.408 65.024l4.5312 4.7104c2.6112 2.6368 5.4272 5.3504 8.704 8.3968l11.6224 10.4192 30.6176 26.624 12.9792 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 47.488-26.7776 79.744-100.3776 142.848l-17.8432 15.4368a471.04 471.04 0 0 0-15.5392 14.1312l-4.7104 4.6592-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-86.784 0-169.5744-18.9696-239.1808-53.3504l-135.5264 135.5008a32 32 0 1 1-45.2352-45.2352l123.8784-123.904a364.9536 364.9536 0 0 1-63.4368-56.192l-1.8176-2.048a249.0112 249.0112 0 0 0-21.4016-20.1728l-12.6976-10.7776-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-38.7072 19.3792-66.5088 70.8096-111.7952l12.4416-10.7776 27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936c-6.656 7.4752-13.2352 14.0032-22.9888 22.6816l-9.216 8.0384-42.8544 36.1728c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 17.4336 14.5152c17.8176 14.8224 28.416 24.0128 36.9664 32.5376l4.9664 5.0944 11.3408 12.3648a315.8272 315.8272 0 0 0 55.168 45.568l89.7536-89.8304a30.0544 30.0544 0 0 1 10.1632-10.1632l217.4976-217.472a146.4064 146.4064 0 0 0-200.1152 70.7328 146.4832 146.4832 0 0 0-12.288 69.632 30.0544 30.0544 0 0 1-60.0064 4.224 206.7712 206.7712 0 0 1 17.408-98.304c46.2592-103.936 168.448-150.8608 272.4096-104.576 9.3696 4.1728 18.2528 8.96 26.6496 14.2592l56.5248-56.5504c-50.5088-17.7408-106.88-27.3664-165.2736-27.3664-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664 75.3152 0 148.0704 14.4896 211.712 41.0368l119.552-119.5008a32 32 0 0 1 45.2352 0z m-148.5568 193.792l-71.0656 71.0912a206.592 206.592 0 0 1 29.824 215.808c-46.2848 103.9616-168.4992 150.8608-272.4608 104.576a205.7216 205.7216 0 0 1-48-29.7472l-60.1088 60.0832 10.112 4.2496c51.968 20.9664 110.7968 32.7168 170.88 34.2016l12.8768 0.1536c124.928 0 240.7168-44.1088 309.504-117.4272l6.656-6.8864c3.1744-3.1744 6.5536-6.4 10.4704-9.984l8.6528-7.7824 44.6976-38.8352c17.5872-15.6928 29.568-27.776 38.8864-39.68 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936c-11.1104-9.728-18.4832-16.4608-25.0112-22.9376l-13.312-13.7472a332.9792 332.9792 0 0 0-75.3408-55.808z m-113.8432 113.8688l-205.056 205.0816a146.4064 146.4064 0 0 0 222.72-56.5248 146.3552 146.3552 0 0 0-17.664-148.5568z",color:"#CCCCCC"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),xg=I({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8z m272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7c-2.9-3.7-8.5-3.7-11.3 0L713.6 306.3c-3.7 4.7-0.4 11.7 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.8-4.7 0.4-11.7-5.6-11.7z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),bu=I({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M926.45937303 97.54062697v828.2973677H97.54062697V97.54062697h828.91874606m4.97102697-77.6722963h-838.8608c-39.7682157 0-72.07989097 32.31167525-72.07989097 72.07989096v839.48217837c0 39.7682157 32.31167525 72.07989097 72.07989097 72.07989097h839.48217837c39.7682157 0 72.07989097-32.31167525 72.07989096-72.07989097v-838.8608c0-40.38959408-32.31167525-72.70126933-72.70126933-72.70126933 0.62137837 0 0 0 0 0z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),wu=I({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M65.23884 456.152041 958.760137 456.152041l0 111.695918L65.23884 567.847959 65.23884 456.152041z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),xu=I({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M959.72 0H294.216a63.96 63.96 0 0 0-63.96 63.96v127.92H64.28A63.96 63.96 0 0 0 0.32 255.84V959.4a63.96 63.96 0 0 0 63.96 63.96h703.56a63.96 63.96 0 0 0 63.96-63.96V792.465h127.92a63.96 63.96 0 0 0 63.96-63.96V63.96A63.96 63.96 0 0 0 959.72 0zM767.84 728.505V959.4H64.28V255.84h703.56z m189.322 0H831.8V255.84a63.96 63.96 0 0 0-63.96-63.96H294.216V63.96H959.72z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),_g=I({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M1024 866.459826V1024h-78.781217v-157.540174H1024z m-157.540174 0V1024H801.391304l-13.712695-13.712696v-143.827478h78.781217z m-78.758956-315.080348v157.540174h157.517913V551.401739H1024v236.321391H708.919652v-78.781217h-78.758956l-0.022261 143.805217-78.758957-78.758956v-222.586435h236.321392z m-315.080348 0l-0.022261 143.805218-143.782957-143.805218h143.805218zM1024 0v472.598261H551.379478V0H1024zM472.598261 0v472.598261h-222.564174l-78.758957-78.758957h222.564174V78.758957H78.758957v222.541913L0 222.564174V0h472.598261z m472.620522 78.758957H630.160696v315.080347H945.196522V78.758957zM315.080348 157.540174v157.540174H157.540174V157.540174h157.540174z m551.379478 0v157.540174h-157.540174V157.540174h157.540174z",color:"#26B8CF"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),_u=I({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M512 432.46249999L865.92499999 78.49999973a56.13749998 56.13749998 0 0 1 79.53750003-5e-8 56.17500029 56.17500029 0 0 1 0 79.53750002L591.49999971 512l353.925 353.92499999c21.97500029 21.97500029 22.12499972 57.4125003 0 79.53750003a56.17500029 56.17500029 0 0 1-79.53750004 0L512 591.49999971 158.07500001 945.50000027a56.13749998 56.13749998 0 0 1-79.53750003 5e-8 56.17500029 56.17500029 0 0 1 0-79.53750002L432.50000029 512 78.49999973 158.07500001a56.13749998 56.13749998 0 0 1-5e-8-79.53750003 56.17500029 56.17500029 0 0 1 79.53750002 0L512 432.50000029z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Sg=I({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M800.421 436.525h-63.661v-148.673c0-124.507-100.762-225.757-224.732-225.757-123.98 0-224.857 101.25-224.857 225.766v148.662h-63.593c-30.667 0-55.532 24.952-55.532 55.752v407.048c0 30.848 24.865 55.82 55.532 55.82h576.9c30.667 0 55.465-24.97 55.465-55.82v-407.048c0-30.802-24.855-55.752-55.532-55.752zM543.203 706.409v88.88c-0.016 4.026-3.264 7.287-7.282 7.325h-47.733c-4.039-0.022-7.307-3.287-7.334-7.322v-88.882c-22.423-11.518-37.953-34.602-37.953-61.659 0-38.288 30.945-69.425 69.070-69.425 38.183 0 69.138 31.136 69.138 69.415 0.057 27.067-15.473 50.152-37.905 61.659zM650.514 436.525h-276.989v-144.986c0-76.691 62.196-139.146 138.552-139.146 76.366 0 138.447 62.454 138.447 139.146v144.986z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),kg=I({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M796.444 446.009H343.61V320.853c0-86.47 70.542-157.013 157.013-157.013s157.014 70.542 157.014 157.013c0 25.031 20.48 45.511 45.51 45.511s45.512-20.48 45.512-45.51c0-136.534-111.502-248.036-248.036-248.036S252.587 184.32 252.587 320.853V446.01H204.8c-25.031 0-45.511 20.48-45.511 45.511v420.978c0 25.03 20.48 45.51 45.511 45.51h591.644c25.032 0 45.512-20.48 45.512-45.51V491.52c0-25.031-20.48-45.511-45.512-45.511zM537.031 737.28c-2.275 0-4.551 2.276-4.551 4.551v43.236c0 43.235-13.653 50.062-31.858 50.062s-31.858-4.551-31.858-50.062V739.556c0-2.276-2.275-4.552-4.55-4.552-13.654-9.102-22.756-25.03-22.756-45.51 0-31.858 27.306-59.165 59.164-59.165s59.165 25.031 59.165 59.164c2.275 20.48-9.103 36.41-22.756 47.787z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),jg=I({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M915.692308 275.692308h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538462v-59.076923C78.769231 171.323077 92.553846 157.538462 108.307692 157.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538462z m0 293.415384h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-13.784615 13.784615-27.569231 29.538461-27.569231h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076924c0 13.784615-13.784615 27.569231-29.538461 27.56923z m0 297.353846h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-15.753846 13.784615-29.538462 29.538461-29.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538462v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538461z"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Vg=I({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M910.74 338.74L756.8 195.33c-11.5-10.71-27.32-16.15-43.59-14.99-1.53-0.12-3.03-0.18-4.48-0.18h-82.01l-5.75 2.98c-30.39 15.75-69.15 24.42-109.16 24.42s-78.78-8.67-109.16-24.42l-5.75-2.98h-82.02c-20.91 0-39.71 10.63-49.43 27.51L113.29 349.43C102.78 359.21 97 372.22 97 386.06c0 13.84 5.78 26.84 16.29 36.63l111.17 103.58c9.31 8.66 21.33 13.87 34.27 14.95v250.3c0 28.84 25.19 52.31 56.14 52.31h393.85c30.96 0 56.14-23.47 56.14-52.31V530.57c13.1-1 25.28-6.23 34.68-14.98l111.18-103.58c21.7-20.19 21.7-53.07 0.02-73.27z m0 0"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Cg=I({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M301.824 455.509333l-168.021333 18.261334c-5.973333 2.048-8.021333 4.010667-8.021334 8.106666-2.048 1.962667-2.048 5.973333 1.962667 10.069334l386.730667 386.730666c4.010667 4.010667 8.021333 4.010667 10.069333 1.962667 2.048-1.962667 6.058667-1.962667 8.106667-8.021333l18.261333-168.106667-249.088-249.002667z m168.106667 467.626667L83.2 536.661333C62.976 516.266667 56.917333 485.802667 65.024 457.472a80.725333 80.725333 0 0 1 62.72-50.602667l198.4-20.224 293.546667 293.546667-20.224 198.4c-4.010667 28.330667-22.272 54.613333-50.602667 62.72-28.330667 8.106667-58.709333 2.048-78.933333-18.176z m93.098666-720.64l240.896 240.896 133.632-56.661333c6.058667-2.048 6.058667-6.058667 6.058667-6.058667 2.048-2.048 2.048-6.144-2.048-10.24L637.952 66.901333C633.856 62.805333 629.76 62.805333 627.797333 64.853333c-2.048 2.048-6.058667 2.048-6.058666 6.144l-58.709334 131.584z m224.682667 317.866667L486.058667 218.709333 560.981333 46.592a73.557333 73.557333 0 0 1 54.613334-42.496 76.032 76.032 0 0 1 66.901333 22.186667l301.653333 301.738666a75.946667 75.946667 0 0 1 22.186667 66.816 73.557333 73.557333 0 0 1-42.496 54.613334l-176.128 70.826666z",color:"#FFFFFF"},{path:"M360.618667 421.12l224.682666 224.682667 165.973334-165.973334L526.592 255.146667 360.618667 421.12z m226.730666 315.818667L269.482667 419.072l255.146666-255.061333 315.733334 315.818666-255.146667 255.146667 2.133333 1.962667z",color:"#FFFFFF"},{path:"M0.256 1008.213333c-2.048-30.378667 10.069333-58.709333 30.293333-83.029333L257.365333 662.016l91.050667 91.136L85.333333 979.882667a152.576 152.576 0 0 1-84.992 28.330666",color:"#FFFFFF"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),$g=I({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M943.081739 44.877913a79.09287 79.09287 0 0 1 79.805218 75.620174l0.111304 4.296348v511.510261a79.09287 79.09287 0 0 1-75.620174 79.805217l-4.296348 0.111304H685.612522v100.930783h178.799304v145.229913l-124.660869-0.022261-54.227479-54.227478h124.66087v-36.730435l-161.413565-0.022261-54.227479-54.227478h36.841739v-100.930783h-137.772521l-54.249739-54.249739h481.458087c26.000696 0 46.124522-18.988522 47.838608-44.432695l0.111305-3.494957V147.055304c0-27.158261-20.769391-47.949913-47.949913-47.949913H102.177391c-25.978435 0-46.124522 19.010783-47.838608 44.432696l-0.111305 3.517217v129.78087L0 222.608696V124.416l0.111304-3.917913A79.026087 79.026087 0 0 1 75.620174 44.966957l4.296348-0.111305h863.165217z m-38.244174 118.160696v435.021913l-529.408-0.022261L118.160696 340.769391V163.038609h786.676869z",color:"#26B8CF"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Eg=I({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>_("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M514.5344 192.2304c137.216 0 265.856 48.0768 346.7008 129.536l8.576 8.9344c5.888 6.144 12.288 12.16 22.8864 21.4528l30.592 26.624 13.0048 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 45.952-25.088 77.6448-93.4144 136.832l-24.832 21.4528c-9.0112 7.936-14.976 13.4656-20.224 18.7904l-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-141.7216 0-272.896-50.6112-353.2544-136.3456l-8.064-8.8576-4.2496-4.4544c-6.7072-6.784-15.3088-14.336-29.8496-26.5216l-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-41.6768 22.4768-70.7328 83.2512-122.5728l27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936l-5.76 6.2464c-6.8608 7.168-14.592 14.336-26.4448 24.4736L124.928 442.24c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 27.2896 22.784c15.1296 12.7488 24.064 20.8896 32.0768 29.3632l11.3408 12.3648c31.7696 33.28 74.496 61.3888 124.16 81.408 55.6544 22.4512 119.2192 34.3552 183.7312 34.3552 121.2672 0 233.9072-41.5488 303.3088-111.0272l12.8512-13.2864 6.7328-6.5024c3.584-3.4048 7.6032-7.04 12.3904-11.264l44.6976-38.8352 10.9312-9.984c11.8528-11.0848 20.7104-20.4288 27.9552-29.696 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936-12.4416-11.0592c-4.8384-4.3776-8.832-8.192-12.544-11.8784l-13.312-13.7472c-69.4272-69.4784-182.016-111.0272-303.3088-111.0272-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664z m-1.8176 111.9488c31.8976 0 62.5664 7.1168 91.008 21.12a30.08 30.08 0 0 1-26.5472 53.9392 146.4064 146.4064 0 0 0-210.688 131.3024 146.4064 146.4064 0 0 0 146.2272 146.2016 146.4064 146.4064 0 0 0 146.2272-146.2016c0-23.936-5.888-47.6672-17.0496-68.608a30.0544 30.0544 0 0 1 53.0688-28.2624 206.7712 206.7712 0 0 1 24.0896 96.8704c0 113.792-92.544 206.336-206.336 206.336s-206.336-92.544-206.336-206.336c0-113.8176 92.544-206.3616 206.336-206.3616z m97.2544 152.0128l3.2256 0.4864c16.2304 3.4048 26.6496 19.2512 23.296 35.4304-3.5072 17.4592-12.7488 42.9312-29.3888 67.4816-28.5184 42.0352-69.248 64.4352-117.504 64.4352-3.9936 0-7.9616-0.1536-12.0064-0.4608a30.0544 30.0544 0 1 1 4.4544-59.9552c29.5424 2.176 53.1456-8.448 71.424-32.384l3.3792-4.6336 2.6624-4.0704c5.888-9.3184 10.5984-19.3792 14.1568-29.4656l2.1504-6.4512a115.712 115.712 0 0 0 0.768-2.6368l1.8944-7.2192c4.352-13.3632 17.4848-21.9392 31.488-20.5568z",color:"#CCCCCC"}].map((e,t)=>_("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),Ag=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:gg,Fixed:yg,Fullscreen:bg,Invisible:wg,LineHeight:xg,Maximize:bu,Minimize:wu,Popup:xu,QrCodeLogin:_g,RawClose:_u,RawLock:Sg,RawUnLock:kg,Rows:jg,Skin:Vg,UnFixed:Cg,UserLogin:$g,Visible:Eg},Symbol.toStringTag,{value:"Module"}));function X(n,e){return Pt(I({name:n,render(){return _("i",{class:e})}}))}const Tg=X("VtjIconWindowMax","vtj-icon-window-max"),Bg=X("VtjIconWindowMin","vtj-icon-window-min"),zg=X("VtjIconWindowClose","vtj-icon-window-close"),Dg=X("VtjIconWindowNormal","vtj-icon-window-normal"),Og=X("VtjIconWindowDown","vtj-icon-window-down"),Ig=X("VtjIconWindowUp","vtj-icon-window-up"),Rg=X("VtjIconNpSave","vtj-icon-np-save"),Mg=X("VtjIconNpFile","vtj-icon-np-file"),Pg=X("VtjIconNpEdit","vtj-icon-np-edit"),Ng=X("VtjIconNpShare","vtj-icon-np-share"),Fg=X("VtjIconNpSearch","vtj-icon-np-search"),Hg=X("VtjIconNpExport","vtj-icon-np-export"),Lg=X("VtjIconNpImport","vtj-icon-np-import"),Ug=X("VtjIconNpList","vtj-icon-np-list"),Wg=X("VtjIconNpPrint","vtj-icon-np-print"),Jg=X("VtjIconNpCancel","vtj-icon-np-cancel"),qg=X("VtjIconNpConfirm","vtj-icon-np-confirm"),Gg=X("VtjIconNpReset","vtj-icon-np-reset"),Yg=X("VtjIconNpReturnAll","vtj-icon-np-return-all"),Kg=X("VtjIconNpReturn","vtj-icon-np-return"),Xg=X("VtjIconNpRemove","vtj-icon-np-remove"),Qg=X("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),Zg=X("VtjIconNpDelete","vtj-icon-np-delete"),e6=X("VtjIconNpExit","vtj-icon-np-exit"),t6=X("VtjIconNpRefresh","vtj-icon-np-refresh"),n6=X("VtjIconNpAdd","vtj-icon-np-add"),r6=X("VtjIconNpSelect","vtj-icon-np-select"),i6=X("VtjIconNpAddRow","vtj-icon-np-add-row"),a6=X("VtjIconNpExtend","vtj-icon-np-extend"),o6=X("VtjIconNpClose","vtj-icon-np-close"),s6=X("VtjIconNpSubmit","vtj-icon-np-submit"),l6=X("VtjIconDeps","vtj-icon-deps"),Su=X("VtjIconBack","vtj-icon-back"),ku=X("VtjIconHome","vtj-icon-home"),ju=X("VtjIconApi","vtj-icon-api"),c6=X("VtjIconExport","vtj-icon-export"),u6=X("VtjIconImport","vtj-icon-import"),d6=X("VtjIconGreater","vtj-icon-greater"),p6=X("VtjIconSmaller","vtj-icon-smaller"),uo=X("VtjIconCheck","vtj-icon-check"),Vu=X("VtjIconSwitch","vtj-icon-switch"),po=X("VtjIconCopy","vtj-icon-copy"),ho=X("VtjIconLock","vtj-icon-lock"),Cu=X("VtjIconUnlock","vtj-icon-unlock"),mo=X("VtjIconLayers","vtj-icon-layers"),h6=X("VtjIconConsole","vtj-icon-console"),m6=X("VtjIconTeam","vtj-icon-team"),f6=X("VtjIconPublish","vtj-icon-publish"),$u=X("VtjIconPreview","vtj-icon-preview"),Eu=X("VtjIconSave","vtj-icon-save"),Au=X("VtjIconPc","vtj-icon-pc"),Tu=X("VtjIconPhone","vtj-icon-phone"),Bu=X("VtjIconPad","vtj-icon-pad"),zu=X("VtjIconRedo","vtj-icon-redo"),Du=X("VtjIconRefresh","vtj-icon-refresh"),Ou=X("VtjIconUndo","vtj-icon-undo"),Iu=X("VtjIconCategory","vtj-icon-category"),v6=X("VtjIconProject","vtj-icon-project"),g6=X("VtjIconNotice","vtj-icon-notice"),y6=X("VtjIconFav","vtj-icon-fav"),b6=X("VtjIconBug","vtj-icon-bug"),w6=X("VtjIconFile","vtj-icon-file"),x6=X("VtjIconFolder","vtj-icon-folder"),_6=X("VtjIconUpload","vtj-icon-upload"),S6=X("VtjIconDownload","vtj-icon-download"),k6=X("VtjIconUser","vtj-icon-user"),fo=X("VtjIconSetting","vtj-icon-setting"),j6=X("VtjIconArrowRight","vtj-icon-arrow-right"),V6=X("VtjIconArrowLeft","vtj-icon-arrow-left"),Ru=X("VtjIconArrowDown","vtj-icon-arrow-down"),Mu=X("VtjIconArrowUp","vtj-icon-arrow-up"),C6=X("VtjIconShare","vtj-icon-share"),$6=X("VtjIconData","vtj-icon-data"),E6=X("VtjIconTemplate","vtj-icon-template"),A6=X("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),T6=X("VtjIconFullscreen","vtj-icon-fullscreen"),vo=X("VtjIconEdit","vtj-icon-edit"),lr=X("VtjIconRemove","vtj-icon-remove"),B6=X("VtjIconJs","vtj-icon-js"),z6=X("VtjIconDatabase","vtj-icon-database"),Pu=X("VtjIconInfo","vtj-icon-info"),go=X("VtjIconPlus","vtj-icon-plus"),D6=X("VtjIconMinus","vtj-icon-minus"),yo=X("VtjIconHelp","vtj-icon-help"),Nu=X("VtjIconVars","vtj-icon-vars"),Fu=X("VtjIconOutline","vtj-icon-outline"),Hu=X("VtjIconVisible","vtj-icon-visible"),bo=X("VtjIconInvisible","vtj-icon-invisible"),Lu=X("VtjIconDocument","vtj-icon-document"),Uu=X("VtjIconHistory","vtj-icon-history"),O6=X("VtjIconFixed","vtj-icon-fixed"),I6=X("VtjIconUnfixed","vtj-icon-unfixed"),Wu=X("VtjIconSearch","vtj-icon-search"),R6=X("VtjIconMore","vtj-icon-more"),M6=X("VtjIconClose","vtj-icon-close"),Ju=X("VtjIconComponents","vtj-icon-components"),qu=X("VtjIconBlock","vtj-icon-block"),P6=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:ju,VtjIconArrowDown:Ru,VtjIconArrowLeft:V6,VtjIconArrowRight:j6,VtjIconArrowUp:Mu,VtjIconBack:Su,VtjIconBlock:qu,VtjIconBug:b6,VtjIconCategory:Iu,VtjIconCheck:uo,VtjIconClose:M6,VtjIconComponents:Ju,VtjIconConsole:h6,VtjIconCopy:po,VtjIconData:$6,VtjIconDatabase:z6,VtjIconDeps:l6,VtjIconDocument:Lu,VtjIconDownload:S6,VtjIconEdit:vo,VtjIconExitFullscreen:A6,VtjIconExport:c6,VtjIconFav:y6,VtjIconFile:w6,VtjIconFixed:O6,VtjIconFolder:x6,VtjIconFullscreen:T6,VtjIconGreater:d6,VtjIconHelp:yo,VtjIconHistory:Uu,VtjIconHome:ku,VtjIconImport:u6,VtjIconInfo:Pu,VtjIconInvisible:bo,VtjIconJs:B6,VtjIconLayers:mo,VtjIconLock:ho,VtjIconMinus:D6,VtjIconMore:R6,VtjIconNotice:g6,VtjIconNpAdd:n6,VtjIconNpAddRow:i6,VtjIconNpCancel:Jg,VtjIconNpClose:o6,VtjIconNpConfirm:qg,VtjIconNpDelete:Zg,VtjIconNpEdit:Pg,VtjIconNpExit:e6,VtjIconNpExport:Hg,VtjIconNpExtend:a6,VtjIconNpFile:Mg,VtjIconNpImport:Lg,VtjIconNpList:Ug,VtjIconNpPrint:Wg,VtjIconNpRefresh:t6,VtjIconNpRemove:Xg,VtjIconNpRemoveRow:Qg,VtjIconNpReset:Gg,VtjIconNpReturn:Kg,VtjIconNpReturnAll:Yg,VtjIconNpSave:Rg,VtjIconNpSearch:Fg,VtjIconNpSelect:r6,VtjIconNpShare:Ng,VtjIconNpSubmit:s6,VtjIconOutline:Fu,VtjIconPad:Bu,VtjIconPc:Au,VtjIconPhone:Tu,VtjIconPlus:go,VtjIconPreview:$u,VtjIconProject:v6,VtjIconPublish:f6,VtjIconRedo:zu,VtjIconRefresh:Du,VtjIconRemove:lr,VtjIconSave:Eu,VtjIconSearch:Wu,VtjIconSetting:fo,VtjIconShare:C6,VtjIconSmaller:p6,VtjIconSwitch:Vu,VtjIconTeam:m6,VtjIconTemplate:E6,VtjIconUndo:Ou,VtjIconUnfixed:I6,VtjIconUnlock:Cu,VtjIconUpload:_6,VtjIconUser:k6,VtjIconVars:Nu,VtjIconVisible:Hu,VtjIconWindowClose:zg,VtjIconWindowDown:Og,VtjIconWindowMax:Tg,VtjIconWindowMin:Bg,VtjIconWindowNormal:Dg,VtjIconWindowUp:Ig},Symbol.toStringTag,{value:"Module"})),N6="data:image/svg+xml,%3csvg%20data-icon='BorderAll'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v12h12V2zm-2%202H4v8h8V4z'%3e%3c/path%3e%3c/svg%3e",F6="data:image/svg+xml,%3csvg%20data-icon='BorderBottom'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%2011V4h8v7h2V2H2v9h2z'%3e%3c/path%3e%3cpath%20d='M2%2014v-2h12v2z'%3e%3c/path%3e%3c/svg%3e",H6="data:image/svg+xml,%3csvg%20data-icon='BorderLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%204h7v8H5v2h9V2H5v2z'%3e%3c/path%3e%3cpath%20d='M2%202h2v12H2z'%3e%3c/path%3e%3c/svg%3e",L6="data:image/svg+xml,%3csvg%20data-icon='BorderRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11%204H4v8h7v2H2V2h9v2z'%3e%3c/path%3e%3cpath%20d='M14%202h-2v12h2z'%3e%3c/path%3e%3c/svg%3e",U6="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDashed'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M0%207h4v2H0zm6%200h4v2H6zm6%200h4v2h-4z'%3e%3c/path%3e%3c/svg%3e",W6="data:image/svg+xml,%3csvg%20data-icon='BorderStyleDotted'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h2v2H1zm4%200h2v2H5zm4%200h2v2H9zm4%200h2v2h-2z'%3e%3c/path%3e%3c/svg%3e",J6="data:image/svg+xml,%3csvg%20data-icon='BorderStyleSolid'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20d='M1%207h14v2H1z'%3e%3c/path%3e%3c/svg%3e",q6="data:image/svg+xml,%3csvg%20data-icon='BorderTop'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.4'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%205v7H4V5H2v9h12V5h-2z'%3e%3c/path%3e%3cpath%20d='M14%202v2H2V2z'%3e%3c/path%3e%3c/svg%3e",G6="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20width='16'%20height='16'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.4%2012l6.3-6.3c.4-.4.4-1%200-1.4-.4-.4-1-.4-1.4%200L12%2010.6%205.7%204.3c-.4-.4-1-.4-1.4%200-.4.4-.4%201%200%201.4l6.3%206.3-6.3%206.3c-.4.4-.4%201%200%201.4.2.2.4.3.7.3.3%200%20.5-.1.7-.3l6.3-6.3%206.3%206.3c.2.2.4.3.7.3s.5-.1.7-.3c.4-.4.4-1%200-1.4L13.4%2012z'%20%3e%3c/path%3e%3c/svg%3e",Gu="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e全局/关闭%3c/title%3e%3cg%20id='全局/关闭'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20stroke-linecap='round'%3e%3cg%20id='编组-56备份-2'%20transform='translate(2.000000,%202.000000)'%20stroke='currentColor'%20stroke-width='1.2'%3e%3cline%20x1='6'%20y1='1.65412684e-11'%20x2='6'%20y2='12'%20id='路径-4'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3cline%20x1='-4.71192529e-12'%20y1='6'%20x2='12'%20y2='6'%20id='路径-3'%20transform='translate(6.000000,%206.000000)%20rotate(-225.000000)%20translate(-6.000000,%20-6.000000)%20'%3e%3c/line%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Y6="data:image/svg+xml,%3csvg%20data-icon='CursorAuto'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2011%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M9.716%208.113L1%201v11.533l2.71-2.69%202.364%204.732%202.023-1.048L5.79%208.912z'%3e%3c/path%3e%3c/svg%3e",K6="data:image/svg+xml,%3csvg%20data-icon='CursorNone'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M13.716%208.113L10.734%205.68%205%2011.414v1.12l2.71-2.69%202.363%204.732%202.023-1.05L9.79%208.913l3.926-.8zm-2.14-6.537L8.938%204.214%205%201v7.15l-3.424%203.425.85.85%2010-10-.85-.85z'%3e%3c/path%3e%3c/svg%3e",X6="data:image/svg+xml,%3csvg%20data-icon='CursorNoDrop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%201C4.134%201%201%204.133%201%208s3.134%207%207%207%207-3.133%207-7-3.134-7-7-7zm5%207a4.97%204.97%200%2001-.832%202.75l-6.92-6.918A4.97%204.97%200%20018%203c2.757%200%205%202.243%205%205zM3%208c0-1.018.31-1.963.833-2.753l6.92%206.92A4.97%204.97%200%20018%2013c-2.757%200-5-2.243-5-5z'%3e%3c/path%3e%3c/svg%3e",Q6="data:image/svg+xml,%3csvg%20data-icon='CursorPointer'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2014%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M11.45%205.864h-.35v2.08h-.704V5.16a.703.703%200%2000-.703-.702H8.99V7.24h-.7V4.46a.703.703%200%2000-.703-.704h-.703V7.27H6.18V2a1.054%201.054%200%2000-2.108%200v7.378l-1.867-1.6A.843.843%200%2000.967%208.904S3.72%2013.594%204.775%2015H11.1l1.135-3.973c.18-.628.27-1.278.27-1.93v-2.18c0-.58-.473-1.053-1.055-1.053zM6%2012.5a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2zm2%200a.5.5%200%2001-1%200v-2a.5.5%200%20011%200v2z'%3e%3c/path%3e%3c/svg%3e",Z6="data:image/svg+xml,%3csvg%20data-icon='DisplayBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%204h12v8H2V4zm10%202H4v4h8V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%201h12v1H2V1zm0%2013h12v1H2v-1z'%3e%3c/path%3e%3c/svg%3e",e4="data:image/svg+xml,%3csvg%20data-icon='DisplayFlex'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%202h12v12H2V2zM1%201h14v14H1V1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7%204H4v8h3V4zm2%200h3v8H9V4z'%3e%3c/path%3e%3c/svg%3e",t4="data:image/svg+xml,%3csvg%20data-icon='DisplayInlineBlock'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%204h8v8H4V4zm6%202H6v4h4V6z'%3e%3c/path%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3c/svg%3e",n4="data:image/svg+xml,%3csvg%20data-icon='DisplayInline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1%202h1v12H1V2zm14%200h-1v12h1V2z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.25%203L3.5%2013h2l1-3h3l1%203h2L8.75%203h-1.5zm1.917%206L8%205.5%206.833%209h2.334z'%20%3e%3c/path%3e%3c/svg%3e",r4="data:image/svg+xml,%3csvg%20data-icon='EyeInvisible'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20opacity='.6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.842%203.33A5.537%205.537%200%20008%203C4.134%203%201%207.5%201%208c0%20.23.666%201.311%201.763%202.409l2.242-2.242a3%203%200%20013.162-3.162l1.675-1.676zm-2.009%207.665a3%203%200%20003.162-3.162l2.242-2.242C14.334%206.69%2015%207.77%2015%208c0%20.5-3.134%205-7%205a5.538%205.538%200%2001-1.842-.33l1.675-1.675z'%20%3e%3c/path%3e%3cpath%20d='M2%2014L14%202'%20stroke='currentColor'%20stroke-width='1.5'%3e%3c/path%3e%3c/svg%3e",i4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignbaselinerow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M864%200v480h160v64h-160v224H544v-224h-64v480H160V544H0v-64h160V256h320v224h64V0h320zM416%20320H224v160h192v-160z%20m384-256h-192v416h192V64z'%3e%3c/path%3e%3c/svg%3e",a4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Aligncenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%2064v416h64V64h320v416h160v64h-160v416H544V544h-64v416H160V544H0v-64h160V64h320z'%3e%3c/path%3e%3c/svg%3e",o4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20800V96H160v704h320z%20m384%200V96H544v704h320z%20m160%20128v-64H0v64h1024z'%3e%3c/path%3e%3c/svg%3e",s4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%20224v704H160V224h320z%20m384%200v704H544V224h320z%20m160-128v64H0V96h1024z'%3e%3c/path%3e%3c/svg%3e",l4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Alignstretchrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M1024%20960v64H0v-64h1024zM480%20128v768H160V128h320z%20m384%200v768H544V128h320z%20m160-128v64H0V0h1024z'%3e%3c/path%3e%3c/svg%3e",c4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20704H128v320h768V704z%20m0-320H128v256h768v-256z%20m-128-192l-256-192-256%20192%20192%200.032V320h128V192h192z'%3e%3c/path%3e%3c/svg%3e",u4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directioncolumn'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M896%20320H128V0h768v320z%20m0%20320H128v-256h768v256z%20m-128%20192l-256%20192-256-192%20192-0.032V704h128v128h192z'%3e%3c/path%3e%3c/svg%3e",d4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow-reverse'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M704%20128v768h320V128H704zM384%20128v768h256V128h-256zM192%20256l-192%20256%20192%20256%200.032-192H320v-128H192V256z'%3e%3c/path%3e%3c/svg%3e",p4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Directionrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20128v768H0V128h320z%20m320%200v768h-256V128h256z%20m192%20128l192%20256-192%20256-0.032-192H704v-128h128V256z'%3e%3c/path%3e%3c/svg%3e",h4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifycenterrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M480%201024V0h64v1024h-64z%20m128-64V64h320v896H608zM96%20960V64h320v896H96z'%3e%3c/path%3e%3c/svg%3e",m4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-endrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M416%20160H96v704h320V160z%20m384%200H480v704h320V160z%20m128-160h-64v1024h64V0z'%3e%3c/path%3e%3c/svg%3e",f4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyflex-startrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M608%20160h320v704H608V160zM224%20160h320v704H224V160zM96%200h64v1024H96V0z'%3e%3c/path%3e%3c/svg%3e",v4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-aroundrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M320%20864H192v160H128v-160H0V160h128V0h64v160h128v704z%20m704%200h-128v160h-64v-160h-128V160h128V0h64v160h128v704z'%3e%3c/path%3e%3c/svg%3e",g4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='icon-a-Justifyspace-betweenrow'%20viewBox='0%200%201024%201024'%3e%3cpath%20d='M64%201024H0V0h64v1024z%20m384-160H128V160h320v704z%20m448%200H576V160h320v704z%20m128%20160h-64V0h64v1024z'%3e%3c/path%3e%3c/svg%3e",y4="data:image/svg+xml,%3csvg%20data-icon='FontStyleItalic'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20stroke='currentColor'%20d='M7.5%203.5h5v1h-5zm-4%208h5v1h-5z'%3e%3c/path%3e%3cpath%20d='M5.5%2012l5-8'%20stroke='currentColor'%20stroke-width='2'%3e%3c/path%3e%3c/svg%3e",b4="data:image/svg+xml,%3csvg%20data-icon='FontStyleNone'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9%203h2v2H9v6h2v2H5v-2h2V5H5V3h4z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",w4="data:image/svg+xml,%3csvg%20data-icon='PositionAll'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='currentColor'%3e%3cpath%20d='M3%203h9v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",x4="data:image/svg+xml,%3csvg%20data-icon='PositionBottomLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",_4="data:image/svg+xml,%3csvg%20data-icon='PositionBottomRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%208h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",S4="data:image/svg+xml,%3csvg%20data-icon='PositionBottom'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%208h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",k4="data:image/svg+xml,%3csvg%20data-icon='PositionLeft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v9H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",j4="data:image/svg+xml,%3csvg%20data-icon='PositionRight'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v9H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",V4="data:image/svg+xml,%3csvg%20data-icon='PositionTopleft'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h4v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",C4="data:image/svg+xml,%3csvg%20data-icon='PositionTopright'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M8%203h4v4H8z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",$4="data:image/svg+xml,%3csvg%20data-icon='PositionTop'%20aria-hidden='true'%20focusable='false'%20viewBox='0%200%2015%2015'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='currentColor'%20d='M3%203h9v4H3z'%3e%3c/path%3e%3cpath%20opacity='.3'%20fill='currentColor'%20d='M2%2013V2h11v11H2M14%201H1v13h13V1'%3e%3c/path%3e%3c/svg%3e",E4="data:image/svg+xml,%3csvg%20data-icon='TextAlignCenter'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-2%203H4v2h8V5zm-8%206h8v2H4v-2zm10-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",A4="data:image/svg+xml,%3csvg%20data-icon='TextAlignJustify'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H2v2h12V5zM2%2011h12v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",T4="data:image/svg+xml,%3csvg%20data-icon='TextAlignLeft'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm-4%203H2v2h8V5zm-8%206h8v2H2v-2zm12-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",B4="data:image/svg+xml,%3csvg%20data-icon='TextAlignRight'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14%202H2v2h12V2zm0%203H6v2h8V5zm-8%206h8v2H6v-2zm8-3H2v2h12V8z'%20fill='currentColor'%20%3e%3c/path%3e%3c/svg%3e",z4="data:image/svg+xml,%3csvg%20data-icon='TextDecorationOverline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%201h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",D4="data:image/svg+xml,%3csvg%20data-icon='TextDecorationStrike'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%203h8v2H9v2H7V5H4V3zm3%206v4h2V9H7z'%20fill='currentColor'%20%3e%3c/path%3e%3cpath%20fill='currentColor'%20d='M1%208h14v1H1z'%3e%3c/path%3e%3c/svg%3e",O4="data:image/svg+xml,%3csvg%20data-icon='TextDecorationUnderline'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20style='display:%20block'%20%3e%3cpath%20fill='currentColor'%20d='M1%2014h14v1H1z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%203H4v2h3v8h2V5h3V3z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e",I4="data:image/svg+xml,%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileX'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",R4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileXY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M1%201h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%206h4v4H1zm5%200h4v4H6zm5%200h4v4h-4zM1%2011h4v4H1zm5%200h4v4H6zm5%200h4v4h-4z'%3e%3c/path%3e%3c/svg%3e",M4="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20data-icon='TileY'%20aria-hidden='true'%20focusable='false'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill='currentColor'%20d='M6%201h4v4H6zm0%205h4v4H6zm0%205h4v4H6z'%3e%3c/path%3e%3c/svg%3e",fa={...H2,...Ag,...P6};(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const n=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,r){typeof r!="boolean"&&(r=r||{},r.passive=!1),n.call(this,e,t,r)}})();const P4=n=>typeof n=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(P4));function Yu(n,e){return function(){return n.apply(e,arguments)}}const{toString:N4}=Object.prototype,{getPrototypeOf:wo}=Object,si=(n=>e=>{const t=N4.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),yt=n=>(n=n.toLowerCase(),e=>si(e)===n),li=n=>e=>typeof e===n,{isArray:Dn}=Array,ir=li("undefined");function F4(n){return n!==null&&!ir(n)&&n.constructor!==null&&!ir(n.constructor)&&nt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ku=yt("ArrayBuffer");function H4(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Ku(n.buffer),e}const L4=li("string"),nt=li("function"),Xu=li("number"),ci=n=>n!==null&&typeof n=="object",U4=n=>n===!0||n===!1,Rr=n=>{if(si(n)!=="object")return!1;const e=wo(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},W4=yt("Date"),J4=yt("File"),q4=yt("Blob"),G4=yt("FileList"),Y4=n=>ci(n)&&nt(n.pipe),K4=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||nt(n.append)&&((e=si(n))==="formdata"||e==="object"&&nt(n.toString)&&n.toString()==="[object FormData]"))},X4=yt("URLSearchParams"),Q4=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cr(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let r,i;if(typeof n!="object"&&(n=[n]),Dn(n))for(r=0,i=n.length;r<i;r++)e.call(null,n[r],r,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),o=a.length;let s;for(r=0;r<o;r++)s=a[r],e.call(null,n[s],s,n)}}function Qu(n,e){e=e.toLowerCase();const t=Object.keys(n);let r=t.length,i;for(;r-- >0;)if(i=t[r],e===i.toLowerCase())return i;return null}const Zu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,e0=n=>!ir(n)&&n!==Zu;function va(){const{caseless:n}=e0(this)&&this||{},e={},t=(r,i)=>{const a=n&&Qu(e,i)||i;Rr(e[a])&&Rr(r)?e[a]=va(e[a],r):Rr(r)?e[a]=va({},r):Dn(r)?e[a]=r.slice():e[a]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&cr(arguments[r],t);return e}const Z4=(n,e,t,{allOwnKeys:r}={})=>(cr(e,(i,a)=>{t&&nt(i)?n[a]=Yu(i,t):n[a]=i},{allOwnKeys:r}),n),e8=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),t8=(n,e,t,r)=>{n.prototype=Object.create(e.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},n8=(n,e,t,r)=>{let i,a,o;const s={};if(e=e||{},n==null)return e;do{for(i=Object.getOwnPropertyNames(n),a=i.length;a-- >0;)o=i[a],(!r||r(o,n,e))&&!s[o]&&(e[o]=n[o],s[o]=!0);n=t!==!1&&wo(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},r8=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const r=n.indexOf(e,t);return r!==-1&&r===t},i8=n=>{if(!n)return null;if(Dn(n))return n;let e=n.length;if(!Xu(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},a8=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&wo(Uint8Array)),o8=(n,e)=>{const t=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=t.next())&&!r.done;){const i=r.value;e.call(n,i[0],i[1])}},s8=(n,e)=>{let t;const r=[];for(;(t=n.exec(e))!==null;)r.push(t);return r},l8=yt("HTMLFormElement"),c8=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),Ys=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),u8=yt("RegExp"),t0=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),r={};cr(t,(i,a)=>{let o;(o=e(i,a,n))!==!1&&(r[a]=o||i)}),Object.defineProperties(n,r)},d8=n=>{t0(n,(e,t)=>{if(nt(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=n[t];if(nt(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},p8=(n,e)=>{const t={},r=i=>{i.forEach(a=>{t[a]=!0})};return Dn(n)?r(n):r(String(n).split(e)),t},h8=()=>{},m8=(n,e)=>(n=+n,Number.isFinite(n)?n:e),Ti="abcdefghijklmnopqrstuvwxyz",Ks="0123456789",n0={DIGIT:Ks,ALPHA:Ti,ALPHA_DIGIT:Ti+Ti.toUpperCase()+Ks},f8=(n=16,e=n0.ALPHA_DIGIT)=>{let t="";const{length:r}=e;for(;n--;)t+=e[Math.random()*r|0];return t};function v8(n){return!!(n&&nt(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const g8=n=>{const e=new Array(10),t=(r,i)=>{if(ci(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const a=Dn(r)?[]:{};return cr(r,(o,s)=>{const l=t(o,i+1);!ir(l)&&(a[s]=l)}),e[i]=void 0,a}}return r};return t(n,0)},y8=yt("AsyncFunction"),b8=n=>n&&(ci(n)||nt(n))&&nt(n.then)&&nt(n.catch),H={isArray:Dn,isArrayBuffer:Ku,isBuffer:F4,isFormData:K4,isArrayBufferView:H4,isString:L4,isNumber:Xu,isBoolean:U4,isObject:ci,isPlainObject:Rr,isUndefined:ir,isDate:W4,isFile:J4,isBlob:q4,isRegExp:u8,isFunction:nt,isStream:Y4,isURLSearchParams:X4,isTypedArray:a8,isFileList:G4,forEach:cr,merge:va,extend:Z4,trim:Q4,stripBOM:e8,inherits:t8,toFlatObject:n8,kindOf:si,kindOfTest:yt,endsWith:r8,toArray:i8,forEachEntry:o8,matchAll:s8,isHTMLForm:l8,hasOwnProperty:Ys,hasOwnProp:Ys,reduceDescriptors:t0,freezeMethods:d8,toObjectSet:p8,toCamelCase:c8,noop:h8,toFiniteNumber:m8,findKey:Qu,global:Zu,isContextDefined:e0,ALPHABET:n0,generateString:f8,isSpecCompliantForm:v8,toJSONObject:g8,isAsyncFn:y8,isThenable:b8};function ve(n,e,t,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),r&&(this.request=r),i&&(this.response=i)}H.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const r0=ve.prototype,i0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{i0[n]={value:n}});Object.defineProperties(ve,i0);Object.defineProperty(r0,"isAxiosError",{value:!0});ve.from=(n,e,t,r,i,a)=>{const o=Object.create(r0);return H.toFlatObject(n,o,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),ve.call(o,n.message,e,t,r,i),o.cause=n,o.name=n.name,a&&Object.assign(o,a),o};const w8=null;function ga(n){return H.isPlainObject(n)||H.isArray(n)}function a0(n){return H.endsWith(n,"[]")?n.slice(0,-2):n}function Xs(n,e,t){return n?n.concat(e).map(function(r,i){return r=a0(r),!t&&i?"["+r+"]":r}).join(t?".":""):e}function x8(n){return H.isArray(n)&&!n.some(ga)}const _8=H.toFlatObject(H,{},null,function(n){return/^is[A-Z]/.test(n)});function ui(n,e,t){if(!H.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,f){return!H.isUndefined(f[h])});const r=t.metaTokens,i=t.visitor||c,a=t.dots,o=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(H.isDate(h))return h.toISOString();if(!s&&H.isBlob(h))throw new ve("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(h)||H.isTypedArray(h)?s&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,f,v){let g=h;if(h&&!v&&typeof h=="object"){if(H.endsWith(f,"{}"))f=r?f:f.slice(0,-2),h=JSON.stringify(h);else if(H.isArray(h)&&x8(h)||(H.isFileList(h)||H.endsWith(f,"[]"))&&(g=H.toArray(h)))return f=a0(f),g.forEach(function(k,b){!(H.isUndefined(k)||k===null)&&e.append(o===!0?Xs([f],b,a):o===null?f:f+"[]",l(k))}),!1}return ga(h)?!0:(e.append(Xs(v,f,a),l(h)),!1)}const u=[],p=Object.assign(_8,{defaultVisitor:c,convertValue:l,isVisitable:ga});function m(h,f){if(!H.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));u.push(h),H.forEach(h,function(v,g){(!(H.isUndefined(v)||v===null)&&i.call(e,v,H.isString(g)?g.trim():g,f,p))===!0&&m(v,f?f.concat(g):[g])}),u.pop()}}if(!H.isObject(n))throw new TypeError("data must be an object");return m(n),e}function Qs(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function xo(n,e){this._pairs=[],n&&ui(n,this,e)}const o0=xo.prototype;o0.append=function(n,e){this._pairs.push([n,e])};o0.toString=function(n){const e=n?function(t){return n.call(this,t,Qs)}:Qs;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function S8(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s0(n,e,t){if(!e)return n;const r=t&&t.encode||S8,i=t&&t.serialize;let a;if(i?a=i(e,t):a=H.isURLSearchParams(e)?e.toString():new xo(e,t).toString(r),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}let Zs=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(t){t!==null&&e(t)})}};const l0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},k8=typeof URLSearchParams<"u"?URLSearchParams:xo,j8=typeof FormData<"u"?FormData:null,V8=typeof Blob<"u"?Blob:null,C8={isBrowser:!0,classes:{URLSearchParams:k8,FormData:j8,Blob:V8},protocols:["http","https","file","blob","url","data"]},c0=typeof window<"u"&&typeof document<"u",$8=(n=>c0&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),E8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",A8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:c0,hasStandardBrowserEnv:$8,hasStandardBrowserWebWorkerEnv:E8},Symbol.toStringTag,{value:"Module"})),ht={...A8,...C8};function T8(n,e){return ui(n,new ht.classes.URLSearchParams,Object.assign({visitor:function(t,r,i,a){return ht.isNode&&H.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function B8(n){return H.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function z8(n){const e={},t=Object.keys(n);let r;const i=t.length;let a;for(r=0;r<i;r++)a=t[r],e[a]=n[a];return e}function u0(n){function e(t,r,i,a){let o=t[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=t.length;return o=!o&&H.isArray(i)?i.length:o,l?(H.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!H.isObject(i[o]))&&(i[o]=[]),e(t,r,i[o],a)&&H.isArray(i[o])&&(i[o]=z8(i[o])),!s)}if(H.isFormData(n)&&H.isFunction(n.entries)){const t={};return H.forEachEntry(n,(r,i)=>{e(B8(r),i,t,0)}),t}return null}function D8(n,e,t){if(H.isString(n))try{return(e||JSON.parse)(n),H.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(n)}const _o={transitional:l0,adapter:["xhr","http"],transformRequest:[function(n,e){const t=e.getContentType()||"",r=t.indexOf("application/json")>-1,i=H.isObject(n);if(i&&H.isHTMLForm(n)&&(n=new FormData(n)),H.isFormData(n))return r?JSON.stringify(u0(n)):n;if(H.isArrayBuffer(n)||H.isBuffer(n)||H.isStream(n)||H.isFile(n)||H.isBlob(n))return n;if(H.isArrayBufferView(n))return n.buffer;if(H.isURLSearchParams(n))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let a;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return T8(n,this.formSerializer).toString();if((a=H.isFileList(n))||t.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return ui(a?{"files[]":n}:n,o&&new o,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),D8(n)):n}],transformResponse:[function(n){const e=this.transitional||_o.transitional,t=e&&e.forcedJSONParsing,r=this.responseType==="json";if(n&&H.isString(n)&&(t&&!this.responseType||r)){const i=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(a){if(i)throw a.name==="SyntaxError"?ve.from(a,ve.ERR_BAD_RESPONSE,this,null,this.response):a}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],n=>{_o.headers[n]={}});const So=_o,O8=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),I8=n=>{const e={};let t,r,i;return n&&n.split(`
|
|
63
|
-
`).forEach(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!t||e[t]&&O8[t])&&(t==="set-cookie"?e[t]?e[t].push(r):e[t]=[r]:e[t]=e[t]?e[t]+", "+r:r)}),e},el=Symbol("internals");function Nn(n){return n&&String(n).trim().toLowerCase()}function Mr(n){return n===!1||n==null?n:H.isArray(n)?n.map(Mr):String(n)}function R8(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(n);)e[r[1]]=r[2];return e}const M8=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Bi(n,e,t,r,i){if(H.isFunction(r))return r.call(this,e,t);if(i&&(e=t),!!H.isString(e)){if(H.isString(r))return e.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(e)}}function P8(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}function N8(n,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+t,{value:function(i,a,o){return this[r].call(this,e,i,a,o)},configurable:!0})})}class di{constructor(e){e&&this.set(e)}set(e,t,r){const i=this;function a(s,l,c){const u=Nn(l);if(!u)throw new Error("header name must be a non-empty string");const p=H.findKey(i,u);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||l]=Mr(s))}const o=(s,l)=>H.forEach(s,(c,u)=>a(c,u,l));return H.isPlainObject(e)||e instanceof this.constructor?o(e,t):H.isString(e)&&(e=e.trim())&&!M8(e)?o(I8(e),t):e!=null&&a(t,e,r),this}get(e,t){if(e=Nn(e),e){const r=H.findKey(this,e);if(r){const i=this[r];if(!t)return i;if(t===!0)return R8(i);if(H.isFunction(t))return t.call(this,i,r);if(H.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Nn(e),e){const r=H.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Bi(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let i=!1;function a(o){if(o=Nn(o),o){const s=H.findKey(r,o);s&&(!t||Bi(r,r[s],s,t))&&(delete r[s],i=!0)}}return H.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let r=t.length,i=!1;for(;r--;){const a=t[r];(!e||Bi(this,this[a],a,e,!0))&&(delete this[a],i=!0)}return i}normalize(e){const t=this,r={};return H.forEach(this,(i,a)=>{const o=H.findKey(r,a);if(o){t[o]=Mr(i),delete t[a];return}const s=e?P8(a):String(a).trim();s!==a&&delete t[a],t[s]=Mr(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(t[i]=e&&H.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
64
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(i=>r.set(i)),r}static accessor(e){const t=(this[el]=this[el]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=Nn(a);t[o]||(N8(r,a),t[o]=!0)}return H.isArray(e)?e.forEach(i):i(e),this}}di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(di.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(r){this[t]=r}}});H.freezeMethods(di);const St=di;function zi(n,e){const t=this||So,r=e||t,i=St.from(r.headers);let a=r.data;return H.forEach(n,function(o){a=o.call(t,a,i.normalize(),e?e.status:void 0)}),i.normalize(),a}function d0(n){return!!(n&&n.__CANCEL__)}function ur(n,e,t){ve.call(this,n??"canceled",ve.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(ur,ve,{__CANCEL__:!0});function F8(n,e,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?n(t):e(new ve("Request failed with status code "+t.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const H8=ht.hasStandardBrowserEnv?{write(n,e,t,r,i,a){const o=[n+"="+encodeURIComponent(e)];H.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),H.isString(r)&&o.push("path="+r),H.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function L8(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function U8(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function p0(n,e){return n&&!L8(e)?U8(n,e):e}const W8=ht.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let t;function r(i){let a=i;return n&&(e.setAttribute("href",a),a=e.href),e.setAttribute("href",a),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return t=r(window.location.href),function(i){const a=H.isString(i)?r(i):i;return a.protocol===t.protocol&&a.host===t.host}}():function(){return function(){return!0}}();function J8(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function q8(n,e){n=n||10;const t=new Array(n),r=new Array(n);let i=0,a=0,o;return e=e!==void 0?e:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),t[i]=s,r[i]=l;let u=a,p=0;for(;u!==i;)p+=t[u++],u=u%n;if(i=(i+1)%n,i===a&&(a=(a+1)%n),l-o<e)return;const m=c&&l-c;return m?Math.round(p*1e3/m):void 0}}function tl(n,e){let t=0;const r=q8(50,250);return i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,s=a-t,l=r(s),c=a<=o;t=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&c?(o-a)/l:void 0,event:i};u[e?"download":"upload"]=!0,n(u)}}const G8=typeof XMLHttpRequest<"u",Y8=G8&&function(n){return new Promise(function(e,t){let r=n.data;const i=St.from(n.headers).normalize();let{responseType:a,withXSRFToken:o}=n,s;function l(){n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let c;if(H.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[f,...v]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...v].join("; "))}}let u=new XMLHttpRequest;if(n.auth){const f=n.auth.username||"",v=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+v))}const p=p0(n.baseURL,n.url);u.open(n.method.toUpperCase(),s0(p,n.params,n.paramsSerializer),!0),u.timeout=n.timeout;function m(){if(!u)return;const f=St.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:f,config:n,request:u};F8(function(g){e(g),l()},function(g){t(g),l()},v),u=null}if("onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(t(new ve("Request aborted",ve.ECONNABORTED,n,u)),u=null)},u.onerror=function(){t(new ve("Network Error",ve.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let f=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||l0;n.timeoutErrorMessage&&(f=n.timeoutErrorMessage),t(new ve(f,v.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,n,u)),u=null},ht.hasStandardBrowserEnv&&(o&&H.isFunction(o)&&(o=o(n)),o||o!==!1&&W8(p))){const f=n.xsrfHeaderName&&n.xsrfCookieName&&H8.read(n.xsrfCookieName);f&&i.set(n.xsrfHeaderName,f)}r===void 0&&i.setContentType(null),"setRequestHeader"in u&&H.forEach(i.toJSON(),function(f,v){u.setRequestHeader(v,f)}),H.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),a&&a!=="json"&&(u.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&u.addEventListener("progress",tl(n.onDownloadProgress,!0)),typeof n.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",tl(n.onUploadProgress)),(n.cancelToken||n.signal)&&(s=f=>{u&&(t(!f||f.type?new ur(null,n,u):f),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const h=J8(p);if(h&&ht.protocols.indexOf(h)===-1){t(new ve("Unsupported protocol "+h+":",ve.ERR_BAD_REQUEST,n));return}u.send(r||null)})},ya={http:w8,xhr:Y8};H.forEach(ya,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const nl=n=>`- ${n}`,K8=n=>H.isFunction(n)||n===null||n===!1,h0={getAdapter:n=>{n=H.isArray(n)?n:[n];const{length:e}=n;let t,r;const i={};for(let a=0;a<e;a++){t=n[a];let o;if(r=t,!K8(t)&&(r=ya[(o=String(t)).toLowerCase()],r===void 0))throw new ve(`Unknown adapter '${o}'`);if(r)break;i[o||"#"+a]=r}if(!r){const a=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
|
|
65
|
-
`+a.map(nl).join(`
|
|
66
|
-
`):" "+nl(a[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:ya};function Di(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ur(null,n)}function rl(n){return Di(n),n.headers=St.from(n.headers),n.data=zi.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),h0.getAdapter(n.adapter||So.adapter)(n).then(function(e){return Di(n),e.data=zi.call(n,n.transformResponse,e),e.headers=St.from(e.headers),e},function(e){return d0(e)||(Di(n),e&&e.response&&(e.response.data=zi.call(n,n.transformResponse,e.response),e.response.headers=St.from(e.response.headers))),Promise.reject(e)})}const il=n=>n instanceof St?{...n}:n;function xn(n,e){e=e||{};const t={};function r(c,u,p){return H.isPlainObject(c)&&H.isPlainObject(u)?H.merge.call({caseless:p},c,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function i(c,u,p){if(H.isUndefined(u)){if(!H.isUndefined(c))return r(void 0,c,p)}else return r(c,u,p)}function a(c,u){if(!H.isUndefined(u))return r(void 0,u)}function o(c,u){if(H.isUndefined(u)){if(!H.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,p){if(p in e)return r(c,u);if(p in n)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(il(c),il(u),!0)};return H.forEach(Object.keys(Object.assign({},n,e)),function(c){const u=l[c]||i,p=u(n[c],e[c],c);H.isUndefined(p)&&u!==s||(t[c]=p)}),t}const m0="1.6.8",ko={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{ko[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});const al={};ko.transitional=function(n,e,t){function r(i,a){return"[Axios v"+m0+"] Transitional option '"+i+"'"+a+(t?". "+t:"")}return(i,a,o)=>{if(n===!1)throw new ve(r(a," has been removed"+(e?" in "+e:"")),ve.ERR_DEPRECATED);return e&&!al[a]&&(al[a]=!0,console.warn(r(a," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(i,a,o):!0}};function X8(n,e,t){if(typeof n!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let i=r.length;for(;i-- >0;){const a=r[i],o=e[a];if(o){const s=n[a],l=s===void 0||o(s,a,n);if(l!==!0)throw new ve("option "+a+" must be "+l,ve.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ve("Unknown option "+a,ve.ERR_BAD_OPTION)}}const ba={assertOptions:X8,validators:ko},At=ba.validators;let qr=class{constructor(e){this.defaults=e,this.interceptors={request:new Zs,response:new Zs}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
67
|
-
`+a):r.stack=a}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=xn(this.defaults,t);const{transitional:r,paramsSerializer:i,headers:a}=t;r!==void 0&&ba.assertOptions(r,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean)},!1),i!=null&&(H.isFunction(i)?t.paramsSerializer={serialize:i}:ba.assertOptions(i,{encode:At.function,serialize:At.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&H.merge(a.common,a[t.method]);a&&H.forEach(["delete","get","head","post","put","patch","common"],f=>{delete a[f]}),t.headers=St.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(t)===!1||(l=l&&f.synchronous,s.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,p=0,m;if(!l){const f=[rl.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),m=f.length,u=Promise.resolve(t);p<m;)u=u.then(f[p++],f[p++]);return u}m=s.length;let h=t;for(p=0;p<m;){const f=s[p++],v=s[p++];try{h=f(h)}catch(g){v.call(this,g);break}}try{u=rl.call(this,h)}catch(f){return Promise.reject(f)}for(p=0,m=c.length;p<m;)u=u.then(c[p++],c[p++]);return u}getUri(e){e=xn(this.defaults,e);const t=p0(e.baseURL,e.url);return s0(t,e.params,e.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(n){qr.prototype[n]=function(e,t){return this.request(xn(t||{},{method:n,url:e,data:(t||{}).data}))}});H.forEach(["post","put","patch"],function(n){function e(t){return function(r,i,a){return this.request(xn(a||{},{method:n,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}qr.prototype[n]=e(),qr.prototype[n+"Form"]=e(!0)});const Pr=qr;let Q8=class f0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},e(function(i,a,o){r.reason||(r.reason=new ur(i,a,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new f0(function(t){e=t}),cancel:e}}};const Z8=Q8;function e5(n){return function(e){return n.apply(null,e)}}function t5(n){return H.isObject(n)&&n.isAxiosError===!0}const wa={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(wa).forEach(([n,e])=>{wa[e]=n});const n5=wa;function v0(n){const e=new Pr(n),t=Yu(Pr.prototype.request,e);return H.extend(t,Pr.prototype,e,{allOwnKeys:!0}),H.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return v0(xn(n,r))},t}const Ee=v0(So);Ee.Axios=Pr;Ee.CanceledError=ur;Ee.CancelToken=Z8;Ee.isCancel=d0;Ee.VERSION=m0;Ee.toFormData=ui;Ee.AxiosError=ve;Ee.Cancel=Ee.CanceledError;Ee.all=function(n){return Promise.all(n)};Ee.spread=e5;Ee.isAxiosError=t5;Ee.mergeConfig=xn;Ee.AxiosHeaders=St;Ee.formToJSON=n=>u0(H.isHTMLForm(n)?new FormData(n):n);Ee.getAdapter=h0.getAdapter;Ee.HttpStatusCode=n5;Ee.default=Ee;const r5={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},i5=["put","post","patch"],ol="Local-Request-Id",a5=200,o5=500;let g0=class{axios;settings;records={};isLoading=!1;stopSkipWarn;showLoading;showError;constructor(e={}){this.settings=e.settings||{};const t=$i(e,["settings"]);this.axios=Ee.create(pt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Nc(this.openLoading.bind(this),a5),this.showError=v3(this._showError.bind(this),o5,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=pt(this.settings,e.settings||{});const t=$i(e,["settings"]);this.axios.defaults=pt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const i=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},a={"Content-Type":r5[t.type||"form"],...r.headers,...i};return t.skipWarn&&(a[ol]=e),a}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,a])=>{r.append(i,a)}),r}createSendData(e,t,r,i){const{type:a,skipWarn:o}=e,{name:s="skipWarn"}=o||{};let{data:l,params:c,method:u="get"}=t;const p=i?{[s]:!0}:{};return i5.includes(u.toLowerCase())?(l=Object.assign(l||{},p),l=a!=="json"||!this.isJsonType(r)?this.toFormData(l,a):l):c={...l,...c,...p},{data:l,params:c}}createUrl(e){let{url:t,query:r}=e;if(t){r&&(t=Wc(t)(r));try{return ig(t,{encode:encodeURIComponent})(r||{})}catch{console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const i=Object.keys(this.records);r&&i.length===0&&(this.isLoading=!1,r())}_showError(e,t){const{failMessage:r,showError:i}=e;if(r&&i){const a=t?.message||t?.msg||"未知错误";i(a,t)}}validResponse(e,t){const{validSuccess:r,validate:i}=e;return r&&i?!!i(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=pt({},this.settings,e.settings||{}),i=$i(e,["settings"]),a=Z3(!1),o=Ee.CancelToken.source();this.records[a]={settings:r,config:i,source:o};const s=this.createUrl(i),l=this.createHeaders(a,r,i),{data:c,params:u}=this.createSendData(r,i,l,t);return this.showLoading(r),new Promise((p,m)=>{this.axios({cancelToken:o.token,...i,url:s,headers:l,data:c,params:u}).then(h=>this.isSkipWarnResponse(h)?p(h.promise):this.validResponse(r,h)?p(r.originResponse?h:h.data?.data):(this.showError(r,h.data),m(h.data))).catch(h=>(this.showError(r,h),m(h))).finally(()=>{delete this.records[a],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}useRequest(e,t){const{request:r}=this.axios.interceptors,i=r.use(e,t);return()=>r.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:i,complete:a}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[ol],l=this.records[s];if(!l)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if(c?.code===t){i&&i(o);const u=new Promise(r).then(()=>this.send({...l.config,settings:l.settings},!0));u.catch(p=>p).finally(()=>{a&&a()}),o.promise=u}return o})}};function y0(n={}){const e=new g0(n),t=e.send.bind(e),r=e.cancel.bind(e),i=e.setConfig.bind(e),a=e.useRequest.bind(e),o=e.useResponse.bind(e);return Object.assign(t,{...e,instance:e,send:t,cancel:r,setConfig:i,useRequest:a,useResponse:o})}y0({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});const xa=typeof window<"u",s5=n=>new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=i=>{t(i)}});function l5(n){const e={};return n?(n.forEach((t,r)=>{e[r]=typeof t=="string"?decodeURIComponent(t):t}),e):{}}let b0=class{options={type:"cache",expired:0,prefix:"__VTJ_"};caches={};types;constructor(e={}){this.types={local:xa?window.localStorage:this.caches,session:xa?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,t,r={}){const{type:i,expired:a,prefix:o}={...this.options,...r},s=Date.now(),l=o+e,c=this.types[i]||this.caches,u={value:t,timestamp:s,expired:a};c===this.caches?c[l]=u:c.setItem(l,JSON.stringify(u))}get(e,t={}){const{type:r,prefix:i}={...this.options,...t},a=i+e,o=this.types[r]||this.caches;let s;if(o===this.caches)s=o[a];else{const p=o.getItem(a);p&&(s=JSON.parse(p))}if(!s)return null;const{value:l,timestamp:c,expired:u}=s;return u>0&&c+u<Date.now()?(this.remove(e,t),null):l}remove(e,t={}){const{type:r,prefix:i}={...this.options,...t},a=this.types[r]||this.caches,o=i+e;a===this.caches?delete a[o]:a.removeItem(o)}clear(e={}){const{type:t}={...this.options,...e},r=this.types[t]||this.caches;r===this.caches?this.caches={}:r.clear()}};new b0;var c5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function w0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _a={exports:{}};(function(n,e){(function(t,r){r(e,n)})(c5,function(t,r){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function a(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch{window[c]=void 0}}function s(c){var u=document.getElementById(c);u&&document.getElementsByTagName("head")[0].removeChild(u)}function l(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=c,m=u.timeout||i.timeout,h=u.jsonpCallback||i.jsonpCallback,f=void 0;return new Promise(function(v,g){var k=u.jsonpCallbackFunction||a(),b=h+"_"+k;window[k]=function(S){v({ok:!0,json:function(){return Promise.resolve(S)}}),f&&clearTimeout(f),s(b),o(k)},p+=p.indexOf("?")===-1?"?":"&";var w=document.createElement("script");w.setAttribute("src",""+p+h+"="+k),u.charset&&w.setAttribute("charset",u.charset),u.nonce&&w.setAttribute("nonce",u.nonce),u.referrerPolicy&&w.setAttribute("referrerPolicy",u.referrerPolicy),u.crossorigin&&w.setAttribute("crossorigin","true"),w.id=b,document.getElementsByTagName("head")[0].appendChild(w),f=setTimeout(function(){g(new Error("JSONP request to "+c+" timed out")),o(k),s(b),window[k]=function(){o(k)}},m),w.onerror=function(){g(new Error("JSONP request to "+c+" failed")),o(k),s(b),f&&clearTimeout(f)}})}r.exports=l})})(_a,_a.exports);var u5=_a.exports;const d5=w0(u5);function p5(n){if(xa){const{protocol:e,host:t,pathname:r}=location;return`${e}//${t}${n?r:""}`}else return null}function h5(n=""){const e=n.match(tu);return e?e[0]:""}function x0(n){const e=[];for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.push([t,encodeURIComponent(n[t])].join("="));return e.join("&")}function Sa(n,e,t){const r={};n=(n||location.search).replace(/^[^]*\?/,""),e=e||"&",t=t||"=";let i;const a=new RegExp("(?:^|\\"+e+")([^\\"+t+"\\"+e+"]+)(?:\\"+t+"([^\\"+e+"]*))?","g");for(;(i=a.exec(n))!==null;)i[1]!==n&&(r[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return r}function _0(n,e){e=typeof e=="string"?Sa(e):e;const t=n.split("?")[0],r=Sa(n),i=Object.assign({},r,e),a=x0(i);return a?[t,a].join("?"):n}const vn=Object.freeze(Object.defineProperty({__proto__:null,append:_0,getCurrentHost:p5,getHost:h5,parse:Sa,stringify:x0},Symbol.toStringTag,{value:"Module"}));async function m5(n,e={}){const{query:t={}}=e;n.includes("${")&&(n=Wc(n)(t||{}));const r=_0(n,t);return await(await d5(r,e)).json()}var f5=function(n,e,t){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof e=="function"&&(t=e,e={}),e=e||{},t=t||function(){},i.type=e.type||"text/javascript",i.charset=e.charset||"utf8",i.async="async"in e?!!e.async:!0,i.src=n,e.attrs&&v5(i,e.attrs),e.text&&(i.text=""+e.text);var a="onload"in i?sl:g5;a(i,t),i.onload||sl(i,t),r.appendChild(i)};function v5(n,e){for(var t in e)n.setAttribute(t,e[t])}function sl(n,e){n.onload=function(){this.onerror=this.onload=null,e(null,n)},n.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),n)}}function g5(n,e){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,e(null,n))}}const y5=w0(f5);function ll(n,e={}){return new Promise((t,r)=>{const{library:i}=e;y5(n,e,(a,o)=>{a?r(a):t(i?window[i]:void 0)})})}const cl={debug:-1,log:0,info:0,warn:1,error:2},b5=function(n,e,t,r){return function(...i){if(e&&cl[e]<=cl[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,w5(i,t))}};function w5(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]=`[${e}] ${n[0]}`:n=["["+e+"]"].concat(n)),n}function x5(n,e){if(!n)return{targetLevel:e.level,targetBizName:e.bizName};if(~n.indexOf(":")){const t=n.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:n,targetBizName:"*"}}const _5={level:"warn",bizName:"*"};let S5=class{config;options;constructor(e){this.options={..._5,...e};const t=typeof location<"u"?location:{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1];this.config=x5(r,e)}_log(e){const{targetLevel:t,targetBizName:r}=this.config,{bizName:i}=this.options;return b5(e,t,i,r)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}};function k5(n){return new S5(n)}const Ke=k5({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function kr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)n[r]=t[r]}return n}var j5={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ka(n,e){function t(i,a,o){if(!(typeof document>"u")){o=kr({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+n.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(o[u]=n.read(c,u),i===u)break}catch{}}return i?o[i]:o}}return Object.create({set:t,get:r,remove:function(i,a){t(i,"",kr({},a,{expires:-1}))},withAttributes:function(i){return ka(this.converter,kr({},this.attributes,i))},withConverter:function(i){return ka(kr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}ka(j5,{path:"/"});function ul(n,e=""){const t=document.createElement("a");t.download=e,t.href=n,t.target="_blank",t.click()}function V5(n,e=""){const t=new Blob([n]),r=document.createElement("a");r.download=e,r.style.display="none",r.href=URL.createObjectURL(t),r.click(),URL.revokeObjectURL(r.href)}async function C5(n,e=""){return fetch(n).then(async t=>{const r=await t.blob();return V5(r,e),r})}/**!
|
|
68
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
69
|
-
* @name @vtj/ui
|
|
70
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
71
|
-
* @version 0.8.7
|
|
72
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
73
|
-
*/const $5={default:14,small:12,large:18},E5={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String},background:{type:String},padding:{type:Number},radius:{type:Number}};function ar(n){return typeof n=="string"?n:`${n}px`}function jr(n=0,e){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const t=Number.parseInt(n);return Math.floor(e*t/100)}return Number.parseInt(n)}const A5=Symbol("ADAPTER_KEY");function T5(){return Mt(A5,{})}const B5=["src"],it=I({name:"XIcon",__name:"Icon",props:E5,setup(n){const e=n,t=Oa(),r=sr(),i=z(()=>{if(!e.icon)return null;const l=r?.appContext.app;return typeof e.icon=="object"?Pt(e.icon):l?.component(e.icon)||e.icon}),a=z(()=>{const l={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(l[e.icon]=!0),l}),o=z(()=>({"background-color":e.background,"border-radius":e.radius?ar(e.radius):void 0,padding:e.padding?ar(e.padding):void 0})),s=z(()=>typeof e.size=="number"?e.size:$5[e.size]??void 0);return(l,c)=>(y(),V(d(Hn),{class:ce(["x-icon",a.value]),color:e.color,size:s.value,style:Rt(o.value)},{default:j(()=>[de(l.$slots,"default",{},()=>[i.value?(y(),V(Ge(i.value),{key:0})):R("",!0),e.src?(y(),M("img",{key:1,src:e.src},null,8,B5)):R("",!0)])]),_:3},8,["class","color","size","style"]))}}),S0={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},draggable:{type:Boolean}};function z5(n){return z(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function D5(n){return z(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function O5(n){return z(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function I5(n){const e=sr();return z(()=>{const t=d(n);if(t)if(typeof t=="string"||t.setup||t.render||f2(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function jo(n){const e=I5(n);return e.value?Pt(I({render:()=>Re(it,e.value)})):void 0}function Vo(n,e){return z(()=>{const t=d(n);return typeof t=="function"?t(e):!!t})}const R5={key:0},M5=I({__name:"Trigger",props:S0,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=jo(Fr(t,"icon")),a=Vo(Fr(t,"disabled")),o=z(()=>({[`is-${t.mode}`]:!!t.mode,[`is-${t.type}`]:!!t.type,[`is-${t.size}`]:!!t.size&&t.size!=="default",[`is-background-${t.background}`]:t.mode==="icon"&&!!t.background,"is-disabled":!!t.disabled,"is-circle":!!t.circle})),s=l=>{if(l.preventDefault(),!a.value)return r("click"),!1};return(l,c)=>t.mode==="button"?(y(),V(d(xe),pe({key:0,icon:d(i),type:t.type,size:t.size,disabled:d(a)},t.button,{onClick:s}),{default:j(()=>[le(te(l.label),1)]),_:1},16,["icon","type","size","disabled"])):(y(),M("div",{key:1,class:ce(["x-action__inner",o.value]),onClick:s},[(y(),V(Ge(d(i)))),l.label?(y(),M("span",R5,te(l.label),1)):R("",!0)],2))}}),P5=["draggable"],Be=I({name:"XAction",__name:"Action",props:S0,emits:["click","command","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=h2(),i=e,a=z5(t),o=D5(t),s=O5(t),l=Vo(Fr(t,"disabled")),c=z(()=>!!t.draggable&&!l.value),u=z(()=>({[`x-action--${t.mode}`]:!!t.mode})),p=()=>{l.value||i("click",Dt(t))},m=w=>{if(l.value)return;const S=t.menus?.find(C=>C.command===w);S&&i("command",Dt(S))},h=w=>{c&&i("dragstart",Dt(t),w)},f=w=>{c&&i("dragend",Dt(t),w)},v=w=>Re(_2,o.value,()=>[].concat(w)),g=w=>Re(Na,{...s.value,disabled:l.value,onCommand:m},{default:()=>[w],dropdown:()=>[Re(Pa,()=>(t.menus||[]).map((S,C)=>Re(Hr,S,()=>r.item?r.item({item:S,index:C}):S.label)))]}),k=w=>Re(Xr,{...a.value,disabled:l.value},()=>[w]),b=z(()=>{let w=Re(Pt(M5),{...t,onClick:p});const S=r.default?.();return S&&S.length&&(w=S[0]),o.value&&(w=v(w)),s.value&&(w=g(w)),a.value&&(w=k(w)),w});return(w,S)=>(y(),M("div",{class:ce(["x-action",u.value]),draggable:c.value,onDragstart:h,onDragend:f},[(y(),V(Ge(b.value)))],42,P5))}}),N5={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},F5=I({name:"XActionBar",__name:"ActionBar",props:N5,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>(t.items||[]).map(s=>s==="|"?s:{...s,badge:s.badge?{...t.badge,...typeof s.badge=="object"?s.badge||{}:{value:s.badge}}:void 0,tooltip:s.tooltip?{...t.tooltip,...typeof s.tooltip=="object"?s.tooltip||{}:{content:s.tooltip}}:void 0})),a=s=>{r("click",s)},o=(s,l)=>{r("command",s,l)};return(s,l)=>(y(),V(d(se),{class:"x-action-bar",align:"center"},{default:j(()=>[(y(!0),M(ne,null,ae(i.value,c=>(y(),M(ne,null,[c==="|"?(y(),V(d(Qr),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(y(),V(d(Be),pe({key:1,mode:t.mode,size:t.size,type:t.type,circle:t.circle,background:t.background,button:t.button,dropdown:t.dropdown,disabled:d(Vo)(t.disabled,c).value,ref_for:!0},c,{onClick:a,onCommand:u=>o(c,u)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),H5={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1},gap:{type:Boolean},autoPointer:{type:Boolean}},se=I({name:"XContainer",__name:"Container",props:H5,setup(n){const e=n,t=Oa(),r=sr(),i=z(()=>{const s=r?.parent;if(!s)return!1;const l=s.proxy;return l.$options.name==="XContainer"||!!l.flex}),a=z(()=>({"is-fit":e.fit,"is-flex":e.flex&&!e.inline,"is-inline-flex":e.flex&&e.inline,[`is-direction-${e.direction}`]:e.flex&&e.direction!=="row",[`is-wrap-${e.wrap}`]:e.flex&&e.wrap!=="nowrap",[`is-justify-${e.justify}`]:e.flex&&e.justify!=="flex-start",[`is-align-${e.align}`]:e.flex&&e.align!=="flex-start",[`is-align-content-${e.alignContent}`]:e.flex&&e.alignContent!=="stretch","is-grow":e.grow??i.value,"is-shrink":e.shrink,[`is-align-self-${e.alignSelf}`]:i.value&&e.alignSelf!=="auto",[`is-overflow-${e.overflow}`]:!!e.overflow,"is-padding":!!e.padding,"is-pointer":e.autoPointer&&!!t.onClick,"is-gap":!!e.gap})),o=z(()=>{const{width:s,height:l,fit:c}=e;return c?null:{width:s?ar(s):void 0,height:l?ar(l):void 0}});return(s,l)=>(y(),V(Ge(e.tag),{class:ce(["x-container",a.value]),style:Rt(o.value)},{default:j(()=>[de(s.$slots,"default")]),_:3},8,["class","style"]))}}),L5={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},U5={class:"x-header__content"},W5={key:0,class:"x-header__actions"},J5=I({name:"XHeader",inheritAttrs:!1,__name:"Header",props:L5,setup(n){const e=n,t=jo(Fr(e,"icon")),r=Oa(),i=z(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(a,o)=>(y(),V(d(se),{class:ce(["x-header",i.value]),justify:"space-between",align:"center"},{default:j(()=>[_(d(se),{align:"center",class:ce(["x-header__wrapper",i.value]),grow:"",onClick:d(r).onClick},{default:j(()=>[d(t)?(y(),V(Ge(d(t)),{key:0,class:"x-header__icon",onClick:d(r).onClickIcon||d(r).onClick},null,8,["onClick"])):R("",!0),P("span",U5,[de(a.$slots,"default",{},()=>[le(te(e.content),1)])]),e.more?(y(),V(d(it),{key:1,class:"x-header__more",icon:d(Il)},null,8,["icon"])):R("",!0),e.subtitle||a.$slots.subtitle?(y(),M("span",{key:2,class:"x-header__subtitle",onClick:o[0]||(o[0]=(...s)=>d(r).onClick&&d(r).onClick(...s))},[de(a.$slots,"subtitle",{},()=>[le(te(e.subtitle),1)])])):R("",!0)]),_:3},8,["class","onClick"]),a.$slots.actions?(y(),M("div",W5,[de(a.$slots,"actions")])):R("",!0)]),_:3},8,["class"]))}}),q5={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},body:{type:Object},footer:{type:Object}},dr=I({name:"XPanel",__name:"Panel",props:q5,setup(n,{expose:e}){const t=n,r=D(),i=z(()=>({"x-panel--card":!!t.card,"x-panel--default":!t.card,[`is-${t.size}`]:!!t.size&&t.size!=="default","is-border":!!t.border,"is-radius":!!t.radius,[`is-shadow-${t.shadow}`]:!!t.shadow&&t.shadow!=="none"})),a=z(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),o=z(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(s,l)=>(y(),V(d(se),{class:ce(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:j(()=>[a.value?(y(),V(d(se),{key:0,flex:!1,class:"x-panel__header"},{default:j(()=>[de(s.$slots,"header",{},()=>[_(d(J5),Cn($n(a.value)),{default:j(()=>[de(s.$slots,"title")]),actions:j(()=>[de(s.$slots,"actions")]),_:3},16)])]),_:3})):R("",!0),_(d(se),pe({ref_key:"bodyRef",ref:r,flex:!1,overflow:o.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:j(()=>[de(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(y(),V(d(se),pe({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:j(()=>[de(s.$slots,"footer")]),_:3},16)):R("",!0)]),_:3},8,["class","fit","width","height"]))}}),dl="user-select-none";class pl{constructor(e,t={}){this.el=e,this.options=t,this.scope=kl(),this.scope.run(()=>{this.init()})}scope;dragging=!1;getHandle(){const{selector:e,handle:t}=this.options;return e?this.el.querySelector(e):t}getTarget(){const{target:e="body"}=this.options;return typeof e=="string"?document.querySelector(e):d(e)||document.body}init(){const{el:e,options:t}=this,{disabled:r,delay:i=150,onStart:a,onEnd:o}=t;if(r)return;let s=null;const l=this.getHandle(),c=this.getTarget();let u=e.getBoundingClientRect(),p=null;const{x:m,y:h}=Z2(e,{initialValue:{x:u.x,y:u.y},...t,handle:l,onStart:(f,v)=>{document.body.classList.add(dl),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,u=e.getBoundingClientRect(),p=c?.getBoundingClientRect(),a&&a(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(s),document.body.classList.remove(dl),this.dragging&&p){this.dragging=!1;const{x:g,y:k}=f,b=this.getPosition(p,u,g,k);o&&o(b,v),p=null}}});oe([m,h],()=>{if(this.dragging&&p){const f=this.getPosition(p,u,m.value,h.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:a=50}=this.options,o=-t.width+a,s=e.width-a,l=0,c=e.height-a,u=Math.min(s,Math.max(r,o)),p=Math.min(c,Math.max(i,l));return{x:u,y:p}}destory(){this.scope.stop()}}const G5={mounted(n,e){const t=e.value||{},r=new pl(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!ao(r.options,t)&&(r.destory(),n.__draggable__=new pl(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},Oi="user-select-none";class hl{constructor(e,t={}){this.el=e,this.options=t,this.scope=kl(),this.scope.run(()=>{this.init()})}scope;resizing=D(!1);direction=D("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:a}=t;if(r)return;this.MIE=Q2(e),this.cleanMousedown=Uo(document,"mousedown",()=>{this.direction?.value&&this.MIE&&(this.resizing.value=!0,e.classList.add("is-resizing",`is-${this.direction.value}-resizing`),i&&i(this.direction.value,this.MIE))}),this.cleanMouseup=Uo(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),a&&a(this.direction.value,this.MIE)),this.resizing.value=!1}),oe(this.direction,l=>{const c=document.body;c.style.cursor=l?`${l}-resize`:"",l?c.classList.add(Oi):c.classList.remove(Oi)});const{x:o,y:s}=this.MIE;oe([o,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:a}=this,o=t?.value||"";if(!e||!r.value||!o)return;const{x:s,y:l,elementX:c,elementY:u,elementHeight:p,elementWidth:m}=e,{onResizing:h}=i,{minWidth:f=0,minHeight:v=0,maxWidth:g=99999,maxHeight:k=99999}=i;if(o.includes("e")){const b=Math.min(Math.max(c.value,f),g);a.style.width=`${b}px`}if(o.includes("s")){const b=Math.min(Math.max(u.value,v),k);a.style.height=`${b}px`}if(o.includes("w")){const b=Math.min(Math.max(m.value-c.value,f),g);a.style.width=`${b}px`,a.style.left=`${s.value}px`}if(o.includes("n")){const b=Math.min(Math.max(p.value-u.value,v),k);this.el.style.height=`${b}px`,this.el.style.top=`${l.value}px`}h&&h(o,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:a}=this.MIE;if(a.value)return"";const{dirs:o=["n","s","w","e"],edge:s=5}=this.options;let l="";return o.includes("n")&&t.value<=s?l+="n":o.includes("s")&&t.value>r.value-s&&(l+="s"),o.includes("w")&&e.value<=s?l+="w":o.includes("e")&&e.value>i.value-s&&(l+="e"),l}destory(){const e=document.body;e.style.cursor="",e.classList.remove(Oi),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}}const ja={mounted(n,e){const t=e.value||{},r=new hl(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!ao(r.options,t)&&(r.destory(),n.__resizable__=new hl(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},Y5={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!1},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let gn=1e3;function K5(n,e){const{width:t,height:r}=bn(e),i=Zt({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++gn,dragging:!1,resizing:!1});return oe([t,r],([a,o])=>{i.wrapperWidth=a,i.wrapperHeight=o,i.width=jr(n.width,a),i.height=jr(n.height,o),i.left=n.left?jr(n.left,a)-i.width/2:Math.max(Math.floor((a-i.width)/2),0),i.top=n.top?jr(n.top,o):Math.max(Math.floor((o-i.height)/2),0)}),oe(i,a=>{gn=Math.max(a.zIndex,gn)}),{state:i,normal:z(()=>i.mode==="normal"),maximized:z(()=>i.mode==="maximized"),minimized:z(()=>i.mode==="minimized")}}function X5(n,e){const t=z(()=>{const{width:o,height:s,top:l,left:c,zIndex:u}=e;return{width:`${o}px`,height:`${s}px`,top:`${l}px`,left:`${c}px`,zIndex:u}}),r=z(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=z(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),a=z(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:a}}function Q5(n,e,t){const r=a=>{e.mode=a,["maximized","minimized","normal"].includes(a)&&t(a),t("modeChange",a)},i=async()=>{(!n.beforeClose||await n.beforeClose())&&(t("update:modelValue",!1),t("close"),t("destroy"))};return{close:i,changeMode:r,show:()=>r("normal"),hide:()=>r("minimized"),active:a=>{const o=a.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(o.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++gn))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function Z5(n,e,t,r){return z(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...Oe(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(a){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++gn),t("dragStart",a)},onMove(a){t("dragging",a)},onEnd(a){if(e.mode==="maximized")return;const{x:o,y:s}=a;e.left=o,e.top=s,e.dragging=!1,t("dragEnd",a)}}})}function ey(n,e,t){return z(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...Oe(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,a){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++gn),t("resizeStart",i,a)},onResizing(i,a){t("resizing",i,a)},onEnd(i,a){e.left=a.elementPositionX.value,e.top=a.elementPositionY.value,e.width=a.elementWidth.value,e.height=a.elementHeight.value,e.resizing=!1,t("resizeEnd",i,a)}}})}function ty(n,e){const t=n.componentInstance;if(!t)return;let r=null;return Ia(()=>{const i=d(e),a=d(i?.bodyRef);r=t.$el,a&&a.$el&&a.$el.appendChild(r)}),Ra(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const ny=["src"],jt=I({name:"XDialog",__name:"Dialog",props:Y5,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=sr(),o=D(),s=D(),{state:l,maximized:c,minimized:u,normal:p}=K5(r,o),{styles:m,classes:h,wrapperClass:f,modalStyle:v}=X5(r,l),{changeMode:g,active:k,close:b,show:w,hide:S,submit:C,cancel:x}=Q5(r,l,i),$=Z5(r,l,i,o),E=ey(r,l,i),U=ty(r,s);jl(async()=>{r.modelValue&&(await dt(),a&&i("open",a))});const T=z(()=>s.value?.$el);return e({$vtjEl:T,panelRef:s,state:l,maximized:c,minimized:u,changeMode:g,show:w,hide:S,submit:C,cancel:x,close:b,componentInstance:U}),(B,F)=>r.modelValue?(y(),V(m2,{key:0,to:"body"},[P("div",{ref_key:"wrapper",ref:o,class:ce(["x-dialog__wrapper",d(f)])},[r.modal?(y(),M("div",{key:0,class:"x-dialog__modal",style:Rt(d(v))},null,4)):R("",!0),mt((y(),V(d(dr),pe({ref_key:"panelRef",ref:s,class:["x-dialog",d(h)],card:"",shadow:"always",header:{icon:r.icon,subtitle:r.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:d(m),size:r.size,body:{padding:r.bodyPadding},onClick:d(k)},B.$attrs),Kt({title:j(()=>[le(te(r.title),1)]),actions:j(()=>[de(B.$slots,"actions"),r.minimizable?(y(),V(d(Be),{key:0,icon:d(wu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[0]||(F[0]=A=>d(g)("minimized"))},null,8,["icon","size"])):R("",!0),r.maximizable?(y(),M(ne,{key:1},[d(p)?(y(),V(d(Be),{key:1,icon:d(bu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[2]||(F[2]=A=>d(g)("maximized"))},null,8,["icon","size"])):(y(),V(d(Be),{key:0,icon:d(xu),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:F[1]||(F[1]=A=>d(g)("normal"))},null,8,["icon","size"]))],64)):R("",!0),r.closable?(y(),V(d(Be),{key:2,icon:d(_u),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:d(b)},null,8,["icon","size","onClick"])):R("",!0)]),default:j(()=>[de(B.$slots,"default",{},()=>[r.content?(y(),V(Ge(r.content),{key:0})):R("",!0),r.src?(y(),M("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,ny)):R("",!0)])]),_:2},[r.cancel||r.submit||B.$slots.footer||B.$slots.extra||B.$slots.handle?{name:"footer",fn:j(()=>[de(B.$slots,"footer",{},()=>[_(d(se),{align:"center"},{default:j(()=>[de(B.$slots,"extra")]),_:3}),_(d(se),{align:"center"},{default:j(()=>[de(B.$slots,"handle"),r.cancel?(y(),V(d(xe),{key:0,type:"default",size:r.size,onClick:d(x)},{default:j(()=>[le(te(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):R("",!0),r.submit?(y(),V(d(xe),{key:1,type:"primary",size:r.size,onClick:d(C)},{default:j(()=>[le(te(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):R("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[d(G5),d($)],[d(ja),d(E)]])],2)])):R("",!0)}});function k0(n,e){const t=document.createElement("div"),r=_(jt,n);r.appContext=e??k0._context,No(r,t);const i=()=>{No(null,t),t.parentNode?.removeChild(t)};return r.props.onDestroy=()=>{i()},document.body.appendChild(t),{vnode:r,destroy:i}}const ry=I({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(Ha),Cn($n(t.$attrs)),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,(i,a)=>(y(),V(d(La),pe({key:`item_${a}_${i.value}`,ref_for:!0},i),Kt({_:2},[t.$slots.option?{name:"default",fn:j(()=>[de(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),iy=I({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=z(()=>Pt(e.button?V2:C2));return(r,i)=>(y(),V(d($2),Cn($n(r.$attrs)),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,(a,o)=>(y(),V(Ge(t.value),pe({key:`item_${o}_${a.value}`,ref_for:!0},a),{default:j(()=>[le(te(a.label),1)]),_:2},1040))),128))]),_:1},16))}}),ay=I({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=z(()=>Pt(e.button?qn:E2));return(r,i)=>(y(),V(d(Ua),Cn($n(r.$attrs)),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,(a,o)=>(y(),V(Ge(t.value),pe({key:`item_${o}_${a.value}`,ref_for:!0},a),{default:j(()=>[le(te(a.label),1)]),_:2},1040))),128))]),_:1},16))}}),j0={none:{component:"div",props:{class:"x-field-none"}},text:{component:Ye,props:{clearable:!0},defaultValue:""},textarea:{component:Ye,props:{type:"textarea",rows:2},defaultValue:""},select:{component:ry,props:{clearable:!0}},checkbox:{component:iy,props:{},defaultValue:[]},radio:{component:ay,props:{}},number:{component:El,props:{}},date:{component:Fo,props:{}},time:{component:S2,props:{}},datetime:{component:Fo,props:{type:"datetime"}},switch:{component:Fa,props:{}},rate:{component:k2,props:{}},slider:{component:Al,props:{}},cascader:{component:j2,props:{}}},oy={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){return j0[n.editor]?.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]},error:{type:String},tip:{type:String},inline:{type:Boolean}};async function sy(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function ly(n,e,t,r,i){const a=D([]),o=z(()=>!r||!i?{}:oo(n.cascader).reduce((s,l)=>(s[l]=Ar(i,l),s),{}));return oe(o,async s=>{if(t.value){a.value=await sy(n,s);const l=r?.exposed?.reset;l&&n.name&&l(n.name)}},{immediate:!0}),{editor:z(()=>{const{editor:s="text",placeholder:l,label:c="...",disabled:u,readonly:p}=n,m={...n.props,placeholder:l||(l===null?void 0:`请输入${c}`),disabled:u,readonly:p,options:a.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},h=typeof s=="string"?j0[s]:{component:s,props:{}};return pt({},h,{props:m})})}}const cy={key:1,class:"el-form-item__error"},uy={key:0,class:"x-field__tip"},ee=I({name:"XField",__name:"Field",props:oy,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=Mt(V0,null),o=Mt(g2,null),s=Mt(C0,null),l=z(()=>!a?.proxy||!s?r.visible:typeof r.visible=="function"?r.visible(s):Oe(r.visible)?Object.entries(r.visible).every(([C,x])=>Ar(s,C)===x):r.visible),c=()=>a?.proxy&&s&&r.name?Ar(s,r.name)??r.modelValue:r.modelValue,u=D(c()),{editor:p}=ly(r,i,l,a,s),m=D(),h=D(),f=z(()=>r.size||o?.size||"default"),v=z(()=>Object.assign({},a?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),g=(C="")=>r.error?r.error:C.includes("is required")?`${r.label||r.name}是必填项!`:C,k=z(()=>{const C=a?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!C&&!!r.tooltipPosition}}),b=z(()=>{const C=a?.proxy;return{width:r.width?ar(r.width):C&&C.inline&&C.inlineColumns?`${100/C.inlineColumns}%`:null}}),w=z(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),S=z(()=>({...p.value.props,modelValue:u.value,"onUpdate:modelValue":C=>{u.value=C}}));return oe(u,(C,x)=>{l.value&&!ao(C,x)&&(i("update:modelValue",C),a?.proxy&&s&&r.name&&_i(s,r.name,C))}),oe(()=>!a?.proxy||!r.name||!s?r.modelValue:Ar(s,r.name)??r.modelValue,C=>{l.value&&(u.value=C)},{immediate:!0}),oe(l,C=>{a?.proxy&&s&&r.name&&(C?(u.value=c(),_i(s,r.name,u.value)):(u.value=void 0,_i(s,r.name,void 0)))},{immediate:!0}),e({fieldValue:u,itemRef:m,editorRef:h,focus:()=>{h.value?.focus&&h.value.focus()},blur:()=>{h.value?.foucs&&h.value.blur()}}),(C,x)=>l.value?(y(),V(d(Ma),pe({key:0,class:["x-field",k.value],ref_key:"itemRef",ref:m,prop:r.name,label:C.label,size:f.value,style:b.value},C.$attrs),Kt({error:j(({error:$})=>[de(C.$slots,"error",{error:$},()=>[d(a)?.props.tooltipMessage??r.tooltipMessage?(y(),M("div",{key:0,class:"x-field__info",style:Rt(w.value)},[_(d(Xr),pe({content:g($)},v.value),{default:j(()=>[_(d(it),{class:"x-field__trigger",icon:d(L2),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(y(),M("div",cy,te(g($)),1))])]),default:j(()=>[P("div",{class:ce(["x-field__editor_wrap",{"is-inline":r.inline}])},[de(C.$slots,"editor",{editor:S.value},()=>[d(p).component?(y(),V(Ge(d(p).component),pe({key:0,class:"x-field__editor",ref_key:"editorRef",ref:h,modelValue:u.value,"onUpdate:modelValue":x[0]||(x[0]=$=>u.value=$)},d(p).props),Kt({_:2},[C.$slots.option?{name:"option",fn:j(({option:$})=>[de(C.$slots,"option",{option:$})]),key:"0"}:void 0]),1040,["modelValue"])):R("",!0)]),r.tip||C.$slots.tip?(y(),M("div",uy,[de(C.$slots,"tip",{},()=>[le(te(r.tip),1)])])):R("",!0)],2),de(C.$slots,"default")]),_:2},[C.$slots.label?{name:"label",fn:j(()=>[de(C.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):R("",!0)}}),dy={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function},tooltipMessage:{type:[Object,Boolean],default:void 0}},V0=Symbol("formInstanceKey"),C0=Symbol("formModelKey"),pi=I({name:"XForm",__name:"Form",props:dy,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=sr(),o=D(),s=Zt(r.model||{}),l=D(!1);Wi(V0,a),Wi(C0,s),oe(()=>r.model,p=>{Object.assign(s,p)},{deep:!0}),oe(s,()=>{i("change",Dt(s))});const c=async()=>{await o.value.validate().catch(()=>!1)&&(i("submit",Dt(s)),r.submitMethod&&(l.value=!0,await r.submitMethod(Dt(s)),l.value=!1))},u=p=>{o.value.resetFields(p),i("reset")};return e({formRef:o,model:s,submit:c,reset:u}),(p,m)=>(y(),V(d(qe),pe({ref_key:"formRef",ref:o,class:"x-form",inline:r.inline,model:s,onKeyup:Jn(c,["enter"]),onSubmit:m[1]||(m[1]=hn(()=>{},["stop","prevent"]))},p.$attrs),{default:j(()=>[de(p.$slots,"default"),r.footer?(y(),V(d(ee),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:j(()=>[de(p.$slots,"footer",{},()=>[r.submitText?(y(),V(d(xe),{key:0,loading:l.value,type:"primary",onClick:c},{default:j(()=>[le(te(r.submitText),1)]),_:1},8,["loading"])):R("",!0),r.resetText?(y(),V(d(xe),{key:1,type:"default",onClick:m[0]||(m[0]=()=>u())},{default:j(()=>[le(te(r.resetText),1)]),_:1})):R("",!0),de(p.$slots,"action")])]),_:3})):R("",!0)]),_:3},16,["inline","model"]))}}),py={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},Vt=I({name:"XDialogForm",__name:"DialogForm",props:py,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=D(),o=D(),s=z(()=>o.value?.$vtjEl),l=()=>{a.value?.submit()},c=()=>{i("update:modelValue",!1),i("close")},u=async h=>{i("submit",h),r.submitMethod?await r.submitMethod(h)&&c():c()},p=z(()=>r.formProps?.disabled?!1:r.submit),m=z(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:s,formRef:a,dialogRef:o}),(h,f)=>(y(),V(d(jt),pe({ref_key:"dialogRef",ref:o,class:"x-dialog-form","model-value":r.modelValue,submit:p.value,cancel:m.value,size:r.size,onSubmit:l,onClose:c,minimizable:!1,maximizable:!1},h.$attrs),Kt({default:j(()=>[_(d(pi),pe({ref_key:"formRef",ref:a,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":u},r.formProps),{default:j(()=>[de(h.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[h.$slots.extra?{name:"extra",fn:j(()=>[de(h.$slots,"extra")]),key:"0"}:void 0,h.$slots.handle?{name:"handle",fn:j(()=>[de(h.$slots,"handle")]),key:"1"}:void 0,h.$slots.footer?{name:"footer",fn:j(()=>[de(h.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),hy={items:{type:Array,default(){return[]}},border:{type:Boolean},fit:{type:Boolean},align:{type:String}},my={class:"x-tabs__label-inner"},fy={key:0,class:"x-tabs__actions"},Co=I({name:"XTabs",__name:"Tabs",props:hy,emits:["actionClick","actionCommand"],setup(n,{emit:e}){const t=n,r=e,i=l=>{const{label:c,name:u,value:p,disabled:m,closable:h,lazy:f}=l;return{label:c,name:p??u,disabled:m,closable:h,lazy:f}},a=z(()=>({"is-no-border":!t.border,"is-fit":!!t.fit,[`is-align-${t.align}`]:!!t.align})),o=l=>{r("actionClick",l)},s=l=>{r("actionCommand",l)};return(l,c)=>(y(),V(d(b2),pe({class:["x-tabs",a.value]},l.$attrs),{default:j(()=>[(y(!0),M(ne,null,ae(t.items,u=>(y(),V(d(y2),pe({key:u.value??u.name,ref_for:!0},i(u)),{label:j(()=>[de(l.$slots,"label",pe({ref_for:!0},u),()=>[u.icon?(y(),V(Ge(d(jo)(u.icon)),{key:0,class:"x-tabs__icon"})):R("",!0),P("div",my,[le(te(u.label)+" ",1),u.actions&&[u.name,u.value].includes(l.$attrs.modelValue)?(y(),M("div",fy,[(y(!0),M(ne,null,ae(u.actions,p=>(y(),V(d(Be),pe({mode:"icon",type:"primary",size:"small",circle:"",ref_for:!0},p,{onClick:o,onCommand:s}),null,16))),256))])):R("",!0)])])]),default:j(()=>[de(l.$slots,"default",pe({ref_for:!0},u),()=>[u.component?(y(),V(Ge(u.component),pe({key:0,ref_for:!0},u.props),null,16)):R("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}}),vy={name:{type:String,default:"VTJ.PRO"},tagline:{type:String,default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{type:String,default:"开始设计"},actionLink:{type:String,default:"/@vtj/pro/"}},gy={class:"x-startup"},yy={class:"x-startup__wrapper"},by={class:"x-startup__name"},wy={class:"clip"},xy={class:"x-startup__tagline"},_y={class:"x-startup__actions"},Sy=I({__name:"Startup",props:vy,setup(n){const e=n,t=()=>{if(typeof window<"u"){let r=(window.__VTJ_LINK__||{}).href||window.location.pathname+"@vtj/pro/#/";window.location.href=r}};return(r,i)=>(y(),M("div",gy,[P("div",yy,[P("div",by,[P("span",wy,te(e.name),1)]),P("div",xy,te(e.tagline),1),P("div",_y,[_(d(xe),{type:"primary",size:"large",round:"",icon:d(Rl),onClick:t},{default:j(()=>[le(te(e.actionText),1)]),_:1},8,["icon"])])])]))}}),ky={units:{type:[String,Object,Array]},unit:{type:String},appendWidth:{type:Number,default:100},withUnit:{type:Boolean,default:!0},format:{type:String},modelValue:{type:[String,Number]},selectProps:{type:Object}},$0=I({name:"XInputUnit",__name:"InputUnit",props:ky,emits:["update:modelValue","update:unit","change","unit-change"],setup(n,{expose:e,emit:t}){const r=n,i=t,a=z(()=>oo(r.units).map(f=>typeof f=="string"?{label:f,value:f}:f)),o=z(()=>{const f=a.value.map(v=>v.value);return r.unit&&f.push(r.unit),lu(f)}),s=D(),l=D(),c=f=>r.format&&f?Y3(Number(f)||0,r.format):f,u=f=>{if(!r.withUnit||typeof f!="string")return{value:c(f),unit:r.unit};for(const v of o.value){const g=new RegExp(`${v}$`);if(g.test(f))return{value:c(f.toString().replace(g,"")),unit:v}}return{value:c(f),unit:r.unit}},p=()=>{const f=c(l.value),v=s.value;return r.withUnit&&f&&v?`${f}${v}`:f};oe(()=>r.modelValue,f=>{const{value:v,unit:g}=u(f);s.value=g,l.value=v},{immediate:!0}),oe(l,f=>{i("change",f)});const m=async()=>{const{value:f,unit:v}=u(p());l.value=f,s.value=v,i("update:modelValue",p())},h=()=>{i("unit-change",s.value),m()};return e({parser:u,formatValue:c}),(f,v)=>(y(),V(d(Ye),{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=g=>l.value=g),modelModifiers:{trim:!0},class:"x-input-unit",onChange:m},Kt({_:2},[a.value.length?{name:"append",fn:j(()=>[_(d(Ha),pe({class:"x-input-unit__unit",modelValue:s.value,"onUpdate:modelValue":v[0]||(v[0]=g=>s.value=g),size:f.$attrs.size,style:{width:`${r.appendWidth}px`}},f.$props.selectProps,{onChange:h}),{default:j(()=>[(y(!0),M(ne,null,ae(a.value,g=>(y(),V(d(La),{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","size","style"])]),key:"0"}:{name:"suffix",fn:j(()=>[s.value?(y(),M("div",{key:0,class:"x-input-unit__unit"},[P("span",null,te(s.value),1)])):R("",!0)]),key:"1"}]),1032,["modelValue"]))}});var jy=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},E0={},Xe={};let $o;const Vy=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Xe.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};Xe.getSymbolTotalCodewords=function(n){return Vy[n]};Xe.getBCHDigit=function(n){let e=0;for(;n!==0;)e++,n>>>=1;return e};Xe.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');$o=n};Xe.isKanjiModeEnabled=function(){return typeof $o<"u"};Xe.toSJIS=function(n){return $o(n)};var hi={};(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}n.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},n.from=function(t,r){if(n.isValid(t))return t;try{return e(t)}catch{return r}}})(hi);function A0(){this.buffer=[],this.length=0}A0.prototype={get:function(n){const e=Math.floor(n/8);return(this.buffer[e]>>>7-n%8&1)===1},put:function(n,e){for(let t=0;t<e;t++)this.putBit((n>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),n&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Cy=A0;function pr(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}pr.prototype.set=function(n,e,t,r){const i=n*this.size+e;this.data[i]=t,r&&(this.reservedBit[i]=!0)};pr.prototype.get=function(n,e){return this.data[n*this.size+e]};pr.prototype.xor=function(n,e,t){this.data[n*this.size+e]^=t};pr.prototype.isReserved=function(n,e){return this.reservedBit[n*this.size+e]};var $y=pr,T0={};(function(n){const e=Xe.getSymbolSize;n.getRowColCoords=function(t){if(t===1)return[];const r=Math.floor(t/7)+2,i=e(t),a=i===145?26:Math.ceil((i-13)/(2*r-2))*2,o=[i-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-a;return o.push(6),o.reverse()},n.getPositions=function(t){const r=[],i=n.getRowColCoords(t),a=i.length;for(let o=0;o<a;o++)for(let s=0;s<a;s++)o===0&&s===0||o===0&&s===a-1||o===a-1&&s===0||r.push([i[o],i[s]]);return r}})(T0);var B0={};const Ey=Xe.getSymbolSize,ml=7;B0.getPositions=function(n){const e=Ey(n);return[[0,0],[e-ml,0],[0,e-ml]]};var z0={};(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};n.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},n.from=function(r){return n.isValid(r)?parseInt(r,10):void 0},n.getPenaltyN1=function(r){const i=r.size;let a=0,o=0,s=0,l=null,c=null;for(let u=0;u<i;u++){o=s=0,l=c=null;for(let p=0;p<i;p++){let m=r.get(u,p);m===l?o++:(o>=5&&(a+=e.N1+(o-5)),l=m,o=1),m=r.get(p,u),m===c?s++:(s>=5&&(a+=e.N1+(s-5)),c=m,s=1)}o>=5&&(a+=e.N1+(o-5)),s>=5&&(a+=e.N1+(s-5))}return a},n.getPenaltyN2=function(r){const i=r.size;let a=0;for(let o=0;o<i-1;o++)for(let s=0;s<i-1;s++){const l=r.get(o,s)+r.get(o,s+1)+r.get(o+1,s)+r.get(o+1,s+1);(l===4||l===0)&&a++}return a*e.N2},n.getPenaltyN3=function(r){const i=r.size;let a=0,o=0,s=0;for(let l=0;l<i;l++){o=s=0;for(let c=0;c<i;c++)o=o<<1&2047|r.get(l,c),c>=10&&(o===1488||o===93)&&a++,s=s<<1&2047|r.get(c,l),c>=10&&(s===1488||s===93)&&a++}return a*e.N3},n.getPenaltyN4=function(r){let i=0;const a=r.data.length;for(let o=0;o<a;o++)i+=r.data[o];return Math.abs(Math.ceil(i*100/a/5)-10)*e.N4};function t(r,i,a){switch(r){case n.Patterns.PATTERN000:return(i+a)%2===0;case n.Patterns.PATTERN001:return i%2===0;case n.Patterns.PATTERN010:return a%3===0;case n.Patterns.PATTERN011:return(i+a)%3===0;case n.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case n.Patterns.PATTERN101:return i*a%2+i*a%3===0;case n.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case n.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}n.applyMask=function(r,i){const a=i.size;for(let o=0;o<a;o++)for(let s=0;s<a;s++)i.isReserved(s,o)||i.xor(s,o,t(r,s,o))},n.getBestMask=function(r,i){const a=Object.keys(n.Patterns).length;let o=0,s=1/0;for(let l=0;l<a;l++){i(l),n.applyMask(l,r);const c=n.getPenaltyN1(r)+n.getPenaltyN2(r)+n.getPenaltyN3(r)+n.getPenaltyN4(r);n.applyMask(l,r),c<s&&(s=c,o=l)}return o}})(z0);var mi={};const It=hi,Vr=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Cr=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];mi.getBlocksCount=function(n,e){switch(e){case It.L:return Vr[(n-1)*4+0];case It.M:return Vr[(n-1)*4+1];case It.Q:return Vr[(n-1)*4+2];case It.H:return Vr[(n-1)*4+3];default:return}};mi.getTotalCodewordsCount=function(n,e){switch(e){case It.L:return Cr[(n-1)*4+0];case It.M:return Cr[(n-1)*4+1];case It.Q:return Cr[(n-1)*4+2];case It.H:return Cr[(n-1)*4+3];default:return}};var D0={},fi={};const Yn=new Uint8Array(512),Gr=new Uint8Array(256);(function(){let n=1;for(let e=0;e<255;e++)Yn[e]=n,Gr[n]=e,n<<=1,n&256&&(n^=285);for(let e=255;e<512;e++)Yn[e]=Yn[e-255]})();fi.log=function(n){if(n<1)throw new Error("log("+n+")");return Gr[n]};fi.exp=function(n){return Yn[n]};fi.mul=function(n,e){return n===0||e===0?0:Yn[Gr[n]+Gr[e]]};(function(n){const e=fi;n.mul=function(t,r){const i=new Uint8Array(t.length+r.length-1);for(let a=0;a<t.length;a++)for(let o=0;o<r.length;o++)i[a+o]^=e.mul(t[a],r[o]);return i},n.mod=function(t,r){let i=new Uint8Array(t);for(;i.length-r.length>=0;){const a=i[0];for(let s=0;s<r.length;s++)i[s]^=e.mul(r[s],a);let o=0;for(;o<i.length&&i[o]===0;)o++;i=i.slice(o)}return i},n.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let i=0;i<t;i++)r=n.mul(r,new Uint8Array([1,e.exp(i)]));return r}})(D0);const O0=D0;function Eo(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}Eo.prototype.initialize=function(n){this.degree=n,this.genPoly=O0.generateECPolynomial(this.degree)};Eo.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(n.length+this.degree);e.set(n);const t=O0.mod(e,this.genPoly),r=this.degree-t.length;if(r>0){const i=new Uint8Array(this.degree);return i.set(t,r),i}return t};var Ay=Eo,I0={},Ft={},Ao={};Ao.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40};var bt={};const R0="[0-9]+",Ty="[A-Z $%*+\\-./:]+";let or="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";or=or.replace(/u/g,"\\u");const By="(?:(?![A-Z0-9 $%*+\\-./:]|"+or+`)(?:.|[\r
|
|
74
|
-
]))+`;bt.KANJI=new RegExp(or,"g");bt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");bt.BYTE=new RegExp(By,"g");bt.NUMERIC=new RegExp(R0,"g");bt.ALPHANUMERIC=new RegExp(Ty,"g");const zy=new RegExp("^"+or+"$"),Dy=new RegExp("^"+R0+"$"),Oy=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");bt.testKanji=function(n){return zy.test(n)};bt.testNumeric=function(n){return Dy.test(n)};bt.testAlphanumeric=function(n){return Oy.test(n)};(function(n){const e=Ao,t=bt;n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},n.getBestModeForData=function(i){return t.testNumeric(i)?n.NUMERIC:t.testAlphanumeric(i)?n.ALPHANUMERIC:t.testKanji(i)?n.KANJI:n.BYTE},n.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},n.isValid=function(i){return i&&i.bit&&i.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+i)}}n.from=function(i,a){if(n.isValid(i))return i;try{return r(i)}catch{return a}}})(Ft);(function(n){const e=Xe,t=mi,r=hi,i=Ft,a=Ao,o=7973,s=e.getBCHDigit(o);function l(m,h,f){for(let v=1;v<=40;v++)if(h<=n.getCapacity(v,f,m))return v}function c(m,h){return i.getCharCountIndicator(m,h)+4}function u(m,h){let f=0;return m.forEach(function(v){const g=c(v.mode,h);f+=g+v.getBitsLength()}),f}function p(m,h){for(let f=1;f<=40;f++)if(u(m,f)<=n.getCapacity(f,h,i.MIXED))return f}n.from=function(m,h){return a.isValid(m)?parseInt(m,10):h},n.getCapacity=function(m,h,f){if(!a.isValid(m))throw new Error("Invalid QR Code version");typeof f>"u"&&(f=i.BYTE);const v=e.getSymbolTotalCodewords(m),g=t.getTotalCodewordsCount(m,h),k=(v-g)*8;if(f===i.MIXED)return k;const b=k-c(f,m);switch(f){case i.NUMERIC:return Math.floor(b/10*3);case i.ALPHANUMERIC:return Math.floor(b/11*2);case i.KANJI:return Math.floor(b/13);case i.BYTE:default:return Math.floor(b/8)}},n.getBestVersionForData=function(m,h){let f;const v=r.from(h,r.M);if(Array.isArray(m)){if(m.length>1)return p(m,v);if(m.length===0)return 1;f=m[0]}else f=m;return l(f.mode,f.getLength(),v)},n.getEncodedBits=function(m){if(!a.isValid(m)||m<7)throw new Error("Invalid QR Code version");let h=m<<12;for(;e.getBCHDigit(h)-s>=0;)h^=o<<e.getBCHDigit(h)-s;return m<<12|h}})(I0);var M0={};const Va=Xe,P0=1335,Iy=21522,fl=Va.getBCHDigit(P0);M0.getEncodedBits=function(n,e){const t=n.bit<<3|e;let r=t<<10;for(;Va.getBCHDigit(r)-fl>=0;)r^=P0<<Va.getBCHDigit(r)-fl;return(t<<10|r)^Iy};var N0={};const Ry=Ft;function _n(n){this.mode=Ry.NUMERIC,this.data=n.toString()}_n.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};_n.prototype.getLength=function(){return this.data.length};_n.prototype.getBitsLength=function(){return _n.getBitsLength(this.data.length)};_n.prototype.write=function(n){let e,t,r;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),r=parseInt(t,10),n.put(r,10);const i=this.data.length-e;i>0&&(t=this.data.substr(e),r=parseInt(t,10),n.put(r,i*3+1))};var My=_n;const Py=Ft,Ii=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Sn(n){this.mode=Py.ALPHANUMERIC,this.data=n}Sn.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};Sn.prototype.getLength=function(){return this.data.length};Sn.prototype.getBitsLength=function(){return Sn.getBitsLength(this.data.length)};Sn.prototype.write=function(n){let e;for(e=0;e+2<=this.data.length;e+=2){let t=Ii.indexOf(this.data[e])*45;t+=Ii.indexOf(this.data[e+1]),n.put(t,11)}this.data.length%2&&n.put(Ii.indexOf(this.data[e]),6)};var Ny=Sn,Fy=function(n){for(var e=[],t=n.length,r=0;r<t;r++){var i=n.charCodeAt(r);if(i>=55296&&i<=56319&&t>r+1){var a=n.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){e.push(i);continue}if(i<2048){e.push(i>>6|192),e.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){e.push(i>>12|224),e.push(i>>6&63|128),e.push(i&63|128);continue}if(i>=65536&&i<=1114111){e.push(i>>18|240),e.push(i>>12&63|128),e.push(i>>6&63|128),e.push(i&63|128);continue}e.push(239,191,189)}return new Uint8Array(e).buffer};const Hy=Fy,Ly=Ft;function kn(n){this.mode=Ly.BYTE,typeof n=="string"&&(n=Hy(n)),this.data=new Uint8Array(n)}kn.getBitsLength=function(n){return n*8};kn.prototype.getLength=function(){return this.data.length};kn.prototype.getBitsLength=function(){return kn.getBitsLength(this.data.length)};kn.prototype.write=function(n){for(let e=0,t=this.data.length;e<t;e++)n.put(this.data[e],8)};var Uy=kn;const Wy=Ft,Jy=Xe;function jn(n){this.mode=Wy.KANJI,this.data=n}jn.getBitsLength=function(n){return n*13};jn.prototype.getLength=function(){return this.data.length};jn.prototype.getBitsLength=function(){return jn.getBitsLength(this.data.length)};jn.prototype.write=function(n){let e;for(e=0;e<this.data.length;e++){let t=Jy.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
75
|
-
Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),n.put(t,13)}};var qy=jn,F0={exports:{}};(function(n){var e={single_source_shortest_paths:function(t,r,i){var a={},o={};o[r]=0;var s=e.PriorityQueue.make();s.push(r,0);for(var l,c,u,p,m,h,f,v,g;!s.empty();){l=s.pop(),c=l.value,p=l.cost,m=t[c]||{};for(u in m)m.hasOwnProperty(u)&&(h=m[u],f=p+h,v=o[u],g=typeof o[u]>"u",(g||v>f)&&(o[u]=f,s.push(u,f),a[u]=c))}if(typeof i<"u"&&typeof o[i]>"u"){var k=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(k)}return a},extract_shortest_path_from_predecessor_list:function(t,r){for(var i=[],a=r;a;)i.push(a),t[a],a=t[a];return i.reverse(),i},find_path:function(t,r,i){var a=e.single_source_shortest_paths(t,r,i);return e.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(t){var r=e.PriorityQueue,i={},a;t=t||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var i={value:t,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=e})(F0);var Gy=F0.exports;(function(n){const e=Ft,t=My,r=Ny,i=Uy,a=qy,o=bt,s=Xe,l=Gy;function c(k){return unescape(encodeURIComponent(k)).length}function u(k,b,w){const S=[];let C;for(;(C=k.exec(w))!==null;)S.push({data:C[0],index:C.index,mode:b,length:C[0].length});return S}function p(k){const b=u(o.NUMERIC,e.NUMERIC,k),w=u(o.ALPHANUMERIC,e.ALPHANUMERIC,k);let S,C;return s.isKanjiModeEnabled()?(S=u(o.BYTE,e.BYTE,k),C=u(o.KANJI,e.KANJI,k)):(S=u(o.BYTE_KANJI,e.BYTE,k),C=[]),b.concat(w,S,C).sort(function(x,$){return x.index-$.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function m(k,b){switch(b){case e.NUMERIC:return t.getBitsLength(k);case e.ALPHANUMERIC:return r.getBitsLength(k);case e.KANJI:return a.getBitsLength(k);case e.BYTE:return i.getBitsLength(k)}}function h(k){return k.reduce(function(b,w){const S=b.length-1>=0?b[b.length-1]:null;return S&&S.mode===w.mode?(b[b.length-1].data+=w.data,b):(b.push(w),b)},[])}function f(k){const b=[];for(let w=0;w<k.length;w++){const S=k[w];switch(S.mode){case e.NUMERIC:b.push([S,{data:S.data,mode:e.ALPHANUMERIC,length:S.length},{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.ALPHANUMERIC:b.push([S,{data:S.data,mode:e.BYTE,length:S.length}]);break;case e.KANJI:b.push([S,{data:S.data,mode:e.BYTE,length:c(S.data)}]);break;case e.BYTE:b.push([{data:S.data,mode:e.BYTE,length:c(S.data)}])}}return b}function v(k,b){const w={},S={start:{}};let C=["start"];for(let x=0;x<k.length;x++){const $=k[x],E=[];for(let U=0;U<$.length;U++){const T=$[U],B=""+x+U;E.push(B),w[B]={node:T,lastCount:0},S[B]={};for(let F=0;F<C.length;F++){const A=C[F];w[A]&&w[A].node.mode===T.mode?(S[A][B]=m(w[A].lastCount+T.length,T.mode)-m(w[A].lastCount,T.mode),w[A].lastCount+=T.length):(w[A]&&(w[A].lastCount=T.length),S[A][B]=m(T.length,T.mode)+4+e.getCharCountIndicator(T.mode,b))}}C=E}for(let x=0;x<C.length;x++)S[C[x]].end=0;return{map:S,table:w}}function g(k,b){let w;const S=e.getBestModeForData(k);if(w=e.from(b,S),w!==e.BYTE&&w.bit<S.bit)throw new Error('"'+k+'" cannot be encoded with mode '+e.toString(w)+`.
|
|
76
|
-
Suggested mode is: `+e.toString(S));switch(w===e.KANJI&&!s.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new t(k);case e.ALPHANUMERIC:return new r(k);case e.KANJI:return new a(k);case e.BYTE:return new i(k)}}n.fromArray=function(k){return k.reduce(function(b,w){return typeof w=="string"?b.push(g(w,null)):w.data&&b.push(g(w.data,w.mode)),b},[])},n.fromString=function(k,b){const w=p(k,s.isKanjiModeEnabled()),S=f(w),C=v(S,b),x=l.find_path(C.map,"start","end"),$=[];for(let E=1;E<x.length-1;E++)$.push(C.table[x[E]].node);return n.fromArray(h($))},n.rawSplit=function(k){return n.fromArray(p(k,s.isKanjiModeEnabled()))}})(N0);const vi=Xe,Ri=hi,Yy=Cy,Ky=$y,Xy=T0,Qy=B0,Ca=z0,$a=mi,Zy=Ay,Yr=I0,eb=M0,tb=Ft,Mi=N0;function nb(n,e){const t=n.size,r=Qy.getPositions(e);for(let i=0;i<r.length;i++){const a=r[i][0],o=r[i][1];for(let s=-1;s<=7;s++)if(!(a+s<=-1||t<=a+s))for(let l=-1;l<=7;l++)o+l<=-1||t<=o+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?n.set(a+s,o+l,!0,!0):n.set(a+s,o+l,!1,!0))}}function rb(n){const e=n.size;for(let t=8;t<e-8;t++){const r=t%2===0;n.set(t,6,r,!0),n.set(6,t,r,!0)}}function ib(n,e){const t=Xy.getPositions(e);for(let r=0;r<t.length;r++){const i=t[r][0],a=t[r][1];for(let o=-2;o<=2;o++)for(let s=-2;s<=2;s++)o===-2||o===2||s===-2||s===2||o===0&&s===0?n.set(i+o,a+s,!0,!0):n.set(i+o,a+s,!1,!0)}}function ab(n,e){const t=n.size,r=Yr.getEncodedBits(e);let i,a,o;for(let s=0;s<18;s++)i=Math.floor(s/3),a=s%3+t-8-3,o=(r>>s&1)===1,n.set(i,a,o,!0),n.set(a,i,o,!0)}function Pi(n,e,t){const r=n.size,i=eb.getEncodedBits(e,t);let a,o;for(a=0;a<15;a++)o=(i>>a&1)===1,a<6?n.set(a,8,o,!0):a<8?n.set(a+1,8,o,!0):n.set(r-15+a,8,o,!0),a<8?n.set(8,r-a-1,o,!0):a<9?n.set(8,15-a-1+1,o,!0):n.set(8,15-a-1,o,!0);n.set(r-8,8,1,!0)}function ob(n,e){const t=n.size;let r=-1,i=t-1,a=7,o=0;for(let s=t-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!n.isReserved(i,s-l)){let c=!1;o<e.length&&(c=(e[o]>>>a&1)===1),n.set(i,s-l,c),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||t<=i){i-=r,r=-r;break}}}function sb(n,e,t){const r=new Yy;t.forEach(function(l){r.put(l.mode.bit,4),r.put(l.getLength(),tb.getCharCountIndicator(l.mode,n)),l.write(r)});const i=vi.getSymbolTotalCodewords(n),a=$a.getTotalCodewordsCount(n,e),o=(i-a)*8;for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(o-r.getLengthInBits())/8;for(let l=0;l<s;l++)r.put(l%2?17:236,8);return lb(r,n,e)}function lb(n,e,t){const r=vi.getSymbolTotalCodewords(e),i=$a.getTotalCodewordsCount(e,t),a=r-i,o=$a.getBlocksCount(e,t),s=r%o,l=o-s,c=Math.floor(r/o),u=Math.floor(a/o),p=u+1,m=c-u,h=new Zy(m);let f=0;const v=new Array(o),g=new Array(o);let k=0;const b=new Uint8Array(n.buffer);for(let $=0;$<o;$++){const E=$<l?u:p;v[$]=b.slice(f,f+E),g[$]=h.encode(v[$]),f+=E,k=Math.max(k,E)}const w=new Uint8Array(r);let S=0,C,x;for(C=0;C<k;C++)for(x=0;x<o;x++)C<v[x].length&&(w[S++]=v[x][C]);for(C=0;C<m;C++)for(x=0;x<o;x++)w[S++]=g[x][C];return w}function cb(n,e,t,r){let i;if(Array.isArray(n))i=Mi.fromArray(n);else if(typeof n=="string"){let c=e;if(!c){const u=Mi.rawSplit(n);c=Yr.getBestVersionForData(u,t)}i=Mi.fromString(n,c||40)}else throw new Error("Invalid data");const a=Yr.getBestVersionForData(i,t);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=a;else if(e<a)throw new Error(`
|
|
77
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
78
|
-
Minimum version required to store current data is: `+a+`.
|
|
79
|
-
`);const o=sb(e,t,i),s=vi.getSymbolSize(e),l=new Ky(s);return nb(l,e),rb(l),ib(l,e),Pi(l,t,0),e>=7&&ab(l,e),ob(l,o),isNaN(r)&&(r=Ca.getBestMask(l,Pi.bind(null,l,t))),Ca.applyMask(r,l),Pi(l,t,r),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:r,segments:i}}E0.create=function(n,e){if(typeof n>"u"||n==="")throw new Error("No input text");let t=Ri.M,r,i;return typeof e<"u"&&(t=Ri.from(e.errorCorrectionLevel,Ri.M),r=Yr.from(e.version),i=Ca.from(e.maskPattern),e.toSJISFunc&&vi.setToSJISFunction(e.toSJISFunc)),cb(n,r,t,i)};var H0={},To={};(function(n){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let r=t.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+t);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});const r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,a=t.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale},n.getImageWidth=function(t,r){const i=n.getScale(t,r);return Math.floor((t+r.margin*2)*i)},n.qrToImageData=function(t,r,i){const a=r.modules.size,o=r.modules.data,s=n.getScale(a,i),l=Math.floor((a+i.margin*2)*s),c=i.margin*s,u=[i.color.light,i.color.dark];for(let p=0;p<l;p++)for(let m=0;m<l;m++){let h=(p*l+m)*4,f=i.color.light;if(p>=c&&m>=c&&p<l-c&&m<l-c){const v=Math.floor((p-c)/s),g=Math.floor((m-c)/s);f=u[o[v*a+g]?1:0]}t[h++]=f.r,t[h++]=f.g,t[h++]=f.b,t[h]=f.a}}})(To);(function(n){const e=To;function t(i,a,o){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=o,a.width=o,a.style.height=o+"px",a.style.width=o+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(i,a,o){let s=o,l=a;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),a||(l=r()),s=e.getOptions(s);const c=e.getImageWidth(i.modules.size,s),u=l.getContext("2d"),p=u.createImageData(c,c);return e.qrToImageData(p.data,i,s),t(u,l,c),u.putImageData(p,0,0),l},n.renderToDataURL=function(i,a,o){let s=o;typeof s>"u"&&(!a||!a.getContext)&&(s=a,a=void 0),s||(s={});const l=n.render(i,a,s),c=s.type||"image/png",u=s.rendererOpts||{};return l.toDataURL(c,u.quality)}})(H0);var L0={};const ub=To;function vl(n,e){const t=n.a/255,r=e+'="'+n.hex+'"';return t<1?r+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':r}function Ni(n,e,t){let r=n+e;return typeof t<"u"&&(r+=" "+t),r}function db(n,e,t){let r="",i=0,a=!1,o=0;for(let s=0;s<n.length;s++){const l=Math.floor(s%e),c=Math.floor(s/e);!l&&!a&&(a=!0),n[s]?(o++,s>0&&l>0&&n[s-1]||(r+=a?Ni("M",l+t,.5+c+t):Ni("m",i,0),i=0,a=!1),l+1<e&&n[s+1]||(r+=Ni("h",o),o=0)):i++}return r}L0.render=function(n,e,t){const r=ub.getOptions(e),i=n.modules.size,a=n.modules.data,o=i+r.margin*2,s=r.color.light.a?"<path "+vl(r.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",l="<path "+vl(r.color.dark,"stroke")+' d="'+db(a,i,r.margin)+'"/>',c='viewBox="0 0 '+o+" "+o+'"',u='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+c+' shape-rendering="crispEdges">'+s+l+`</svg>
|
|
80
|
-
`;return typeof t=="function"&&t(null,u),u};const pb=jy,Ea=E0,U0=H0,hb=L0;function Bo(n,e,t,r,i){const a=[].slice.call(arguments,1),o=a.length,s=typeof a[o-1]=="function";if(!s&&!pb())throw new Error("Callback required as last argument");if(s){if(o<2)throw new Error("Too few arguments provided");o===2?(i=t,t=e,e=r=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=t,t=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(t=e,e=r=void 0):o===2&&!e.getContext&&(r=t,t=e,e=void 0),new Promise(function(l,c){try{const u=Ea.create(t,r);l(n(u,e,r))}catch(u){c(u)}})}try{const l=Ea.create(t,r);i(null,n(l,e,r))}catch(l){i(l)}}Ea.create;Bo.bind(null,U0.render);Bo.bind(null,U0.renderToDataURL);Bo.bind(null,function(n,e,t){return hb.render(n,t)});const mb={modelValue:{type:Array,default:()=>[]},selectValue:{type:[Object,Array]},uploader:{type:Function},multiple:{type:Boolean},limit:{type:Number},accept:{type:String,default:"image/*,audio/*,video/*,.zip,.svg,.pdf,.json,.docx,.xlsx,.pptx,.doc,.xls,.ppt"},disabled:{type:Boolean},size:{type:String,default:"default"},thumbnail:{type:Function},addable:{type:Boolean,default:!0},removable:{type:Boolean,default:!0},downloadable:{type:Boolean,default:!0},previewable:{type:Boolean,default:!0},selectable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},listType:{type:String,default:"card"}};function zo(n){if(n.type)return n.type;const e=n.name||n.url.split("?")[0],t=e.substring(e.lastIndexOf(".")+1).toLowerCase(),r=["jpg","png","gif","jpeg","bpm","webp","svg"],i=["js","mjs","cjs","ts","jsx","tsx"],a=["css","scss","sass","less"],o=["doc","docx"],s=["xls","xlsx"],l=["ppt","pptx"],c=["zip","rar"],u=["mp4","wmv"],p=["mp3","wma"],m=["pdf","json"];return r.includes(t)?"img":i.includes(t)?"js":a.includes(t)?"css":o.includes(t)?"word":s.includes(t)?"excel":l.includes(t)?"ppt":c.includes(t)?"zip":u.includes(t)?"video":p.includes(t)?"audio":m.includes(t)?t:"unknow"}function Fi(n){return zo(n)==="img"}function Fn(n){const{url:e,type:t,name:r}=n||{};return{url:e,type:t||zo(n),name:r}}const fb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229470455'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='22625'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M743.417191%200l280.583066%20283.157223v655.380264a85.204583%2085.204583%200%200%201-85.461998%2085.461998H213.398352A85.204583%2085.204583%200%200%201%20128.708601%20938.537487v-106.570082H42.731771A42.730999%2042.730999%200%200%201%200.000772%20789.236406V426.537744a41.701337%2041.701337%200%200%201%2012.613367-30.117632%2042.473583%2042.473583%200%200%201%2030.117632-12.355951H128.708601V85.204583A85.461998%2085.461998%200%200%201%20213.398352%200z%20m-25.741566%2064.096499H213.398352a21.108084%2021.108084%200%200%200-15.187524%206.177975%2021.622915%2021.622915%200%200%200-6.177975%2014.930109v298.859578h639.935324A42.730999%2042.730999%200%200%201%20875.214007%20426.537744v362.698662a42.730999%2042.730999%200%200%201-42.730999%2042.730999H192.032853v106.570082a21.108084%2021.108084%200%200%200%2021.365499%2021.365499h725.139907a21.108084%2021.108084%200%200%200%2021.3655-21.365499V308.898789l-10.039211-10.296626H823.730876a97.81795%2097.81795%200%200%201-97.81795-98.075366v-128.707829zM191.260606%20467.209418a120.470528%20120.470528%200%200%200-100.392107%2043.245831%20154.449394%20154.449394%200%200%200-30.117632%2099.362443%20154.449394%20154.449394%200%200%200%2029.08797%2099.105029%20121.50019%20121.50019%200%200%200%20102.966263%2042.988414%20116.866708%20116.866708%200%200%200%2077.224697-25.741565%20120.985359%20120.985359%200%200%200%2042.988415-75.165372h-43.760662a85.461998%2085.461998%200%200%201-27.543475%2046.592234%2078.769191%2078.769191%200%200%201-48.136728%2014.415276%2079.541438%2079.541438%200%200%201-66.41324-28.058306%20121.757606%20121.757606%200%200%201-19.56359-74.650541%20118.153787%20118.153787%200%200%201%2020.078421-73.620878%2074.393125%2074.393125%200%200%201%2062.809421-29.087969%2081.343348%2081.343348%200%200%201%2047.107065%2012.355951%2064.096499%2064.096499%200%200%201%2025.741566%2039.642012h43.760662a100.392106%20100.392106%200%200%200-36.038193-66.155824%20122.529853%20122.529853%200%200%200-79.798853-25.741566z%20m258.702735%200a123.559516%20123.559516%200%200%200-72.848631%2019.821006%2064.868746%2064.868746%200%200%200-30.889879%2057.146276%2060.750095%2060.750095%200%200%200%2031.662126%2055.344366%20439.151112%20439.151112%200%200%200%2062.809421%2023.167409%20446.616166%20446.616166%200%200%201%2053.542456%2018.019096%2039.12718%2039.12718%200%200%201%2025.741566%2034.493698%2031.147295%2031.147295%200%200%201-17.76168%2027.28606%2098.590197%2098.590197%200%200%201-47.621897%2010.039211%2085.719414%2085.719414%200%200%201-49.938637-12.098536%2063.324252%2063.324252%200%200%201-22.137747-44.532909h-44.790324a93.441884%2093.441884%200%200%200%2037.840101%2077.224697%20136.94513%20136.94513%200%200%200%2079.026607%2019.56359%20136.687714%20136.687714%200%200%200%2081.343348-21.108084%2068.472565%2068.472565%200%200%200%2028.830554-58.175938%2065.383577%2065.383577%200%200%200-35.780777-59.205601%20418.815275%20418.815275%200%200%200-71.818968-25.741566%20398.479438%20398.479438%200%200%201-46.84965-16.732018A31.40471%2031.40471%200%200%201%20391.272572%20540.572881a29.087969%2029.087969%200%200%201%2016.732017-28.315723%2082.887842%2082.887842%200%200%201%2039.642011-7.465054%2077.224697%2077.224697%200%200%201%2045.305156%2011.068873A61.007511%2061.007511%200%200%201%20514.832087%20553.443663h43.760662a88.036155%2088.036155%200%200%200-32.949204-66.413239%20125.361425%20125.361425%200%200%200-75.680204-19.821006z%20m265.138128%200a123.559516%20123.559516%200%200%200-72.848632%2019.821006%2064.868746%2064.868746%200%200%200-30.889878%2057.146276A60.750095%2060.750095%200%200%200%20643.539916%20599.521066a439.151112%20439.151112%200%200%200%2062.80942%2023.167409%20446.616166%20446.616166%200%200%201%2053.542457%2018.019096%2039.12718%2039.12718%200%200%201%2025.741566%2034.493698%2031.147295%2031.147295%200%200%201-17.761681%2027.28606%2098.590197%2098.590197%200%200%201-47.621896%2010.039211%2085.719414%2085.719414%200%200%201-50.9683-12.098536%2063.324252%2063.324252%200%200%201-22.137747-44.532909h-44.018077a92.412221%2092.412221%200%200%200%2037.582686%2077.224697%20136.94513%20136.94513%200%200%200%2079.026606%2019.56359%20136.687714%20136.687714%200%200%200%2081.343348-21.108084%2068.472565%2068.472565%200%200%200%2028.830554-58.175938%2065.383577%2065.383577%200%200%200-35.780777-59.205601%20418.815275%20418.815275%200%200%200-71.818968-25.741566%20398.479438%20398.479438%200%200%201-46.84965-16.732018A31.40471%2031.40471%200%200%201%20656.410699%20540.572881a29.087969%2029.087969%200%200%201%2016.732017-28.315723%2082.887842%2082.887842%200%200%201%2039.642012-7.465054%2077.224697%2077.224697%200%200%201%2045.305155%2011.068873%2061.007511%2061.007511%200%200%201%2021.108084%2036.553024H823.730876a87.263908%2087.263908%200%200%200-32.949204-66.41324%20125.361425%20125.361425%200%200%200-75.680203-19.821005z'%20fill='%23007BEA'%20p-id='22626'%3e%3c/path%3e%3c/svg%3e",vb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229259681'%20class='icon'%20viewBox='0%200%201082%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='13779'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='270.5'%20height='256'%3e%3cpath%20d='M1014.941308%20865.332934c-4.506568%2023.309835-32.633769%2023.869271-51.405956%2024.646266-116.673496%200.372957-233.47131-0.186479-350.238046%200v100.884967h-69.929506c-171.591468-31.017621-343.555892-59.735338-515.333838-89.634086V116.869663c172.834659-29.898749%20345.669317-59.362381%20518.379657-89.758406h66.883687v89.634087c112.726363%200%20225.452727%200.248638%20338.148011-0.310798%2019.020826%200.808074%2039.968598-0.559436%2056.53412%2010.753604%2011.592758%2016.627683%2010.225248%2037.668694%2011.002243%2056.65844-0.559436%20194.590505-0.310798%20389.056691-0.186479%20583.460717-0.590516%2032.57161%203.045818%2065.889134-3.853893%2098.025627z%20m-576.840724-547.283852c-25.547579%201.212111-51.126239%202.79718-76.580579%204.568727-18.989746%2046.029155-41.242869%2090.908358-56.067923%20138.522582-13.861582-44.910283-32.229732-88.204417-48.981734-132.026908-24.770585%201.336431-49.54117%202.79718-74.342835%204.25793%2026.138095%2057.404354%2053.954499%20113.969555%2079.3156%20171.684707-29.867669%2056.036844-57.808392%20112.819603-86.743667%20169.198325%2024.677346%201.025633%2049.323611%202.020186%2074.032036%202.393143%2017.528996-44.630565%2039.409162-87.551741%2054.669334-133.02146%2013.737263%2048.826335%2037.078178%2094.016336%2056.192243%20140.791405%2027.163728%201.864787%2054.172057%203.512015%2081.335785%205.128164-31.07978-62.781156-62.718997-125.096116-93.705538-187.877273a21887.624539%2021887.624539%200%200%200%2090.877278-183.619342z%20m546.786577-167.675416H613.297306v67.225565h90.131363v78.445366h-90.131363v44.848123h90.131363v78.445366h-90.131363v44.817043h90.131363v78.414286h-90.131363v44.879203h90.131363v78.445366h-90.131363v44.785963h90.131363v78.445366h-90.131363v67.225565h371.589855V150.373666z%20m-78.787244%20145.670931h-157.667726V217.599231h157.667726v78.445366z%20m0%20123.293489h-157.667726v-78.445366h157.667726v78.445366z%20m0%20123.293489h-157.667726V464.155129h157.667726v78.476446z%20m0%20123.262409h-157.667726v-78.445366h157.667726v78.445366z%20m0%20123.293489h-157.667726v-78.507526h157.667726v78.507526z'%20fill='%23207245'%20p-id='13780'%3e%3c/path%3e%3c/svg%3e",gb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229428492'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20525'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M896%20448H128v-384h541.866667v221.866667H896v162.133333z%20m-243.2%20251.733333c-4.266667-8.533333-12.8-12.8-21.333333-17.066666-12.8-4.266667-29.866667-8.533333-42.666667-12.8-17.066667-4.266667-34.133333-8.533333-46.933333-17.066667-12.8-4.266667-21.333333-12.8-25.6-21.333333-4.266667-8.533333-8.533333-21.333333-8.533334-29.866667%200-12.8%204.266667-25.6%2012.8-34.133333%208.533333-12.8%2017.066667-21.333333%2029.866667-25.6%2012.8-4.266667%2029.866667-8.533333%2046.933333-8.533334%2017.066667%200%2034.133333%204.266667%2051.2%208.533334%2012.8%204.266667%2025.6%2012.8%2034.133334%2025.6%208.533333%2012.8%2012.8%2025.6%2012.8%2038.4l-29.866667%204.266666c0-12.8-8.533333-25.6-17.066667-34.133333-12.8-8.533333-29.866667-12.8-42.666666-12.8-17.066667%200-29.866667%204.266667-42.666667%2012.8-8.533333%204.266667-12.8%2017.066667-12.8%2025.6%200%208.533333%204.266667%2017.066667%208.533333%2021.333333%2017.066667%208.533333%2034.133333%2017.066667%2051.2%2017.066667%2017.066667%204.266667%2038.4%208.533333%2055.466667%2017.066667%2012.8%204.266667%2025.6%2012.8%2034.133333%2025.6%208.533333%208.533333%208.533333%2021.333333%208.533334%2034.133333%200%2012.8-4.266667%2025.6-12.8%2038.4-8.533333%2012.8-21.333333%2021.333333-34.133334%2025.6-17.066667%208.533333-29.866667%208.533333-46.933333%208.533333-21.333333%200-38.4-4.266667-55.466667-8.533333-12.8-4.266667-25.6-17.066667-34.133333-29.866667-8.533333-12.8-12.8-29.866667-12.8-46.933333l29.866667-4.266667c0%2012.8%204.266667%2021.333333%208.533333%2029.866667%204.266667%208.533333%2017.066667%2017.066667%2025.6%2021.333333%2012.8%204.266667%2025.6%208.533333%2038.4%208.533334%2012.8%200%2021.333333%200%2034.133333-4.266667%208.533333-4.266667%2017.066667-8.533333%2021.333334-17.066667%204.266667-4.266667%208.533333-12.8%208.533333-21.333333-17.066667-4.266667-21.333333-12.8-25.6-17.066667z%20m-341.333333%2017.066667l29.866666-4.266667c0%2012.8%200%2029.866667%208.533334%2038.4%208.533333%208.533333%2017.066667%2012.8%2025.6%208.533334%208.533333%200%2017.066667%200%2021.333333-4.266667%204.266667-4.266667%208.533333-8.533333%2012.8-17.066667%204.266667-8.533333%204.266667-21.333333%204.266667-29.866666v-174.933334h34.133333v170.666667c0%2017.066667%200%2034.133333-8.533333%2046.933333-4.266667%2012.8-12.8%2021.333333-25.6%2025.6-12.8%204.266667-25.6%208.533333-38.4%208.533334-17.066667%200-38.4-4.266667-51.2-17.066667-8.533333-8.533333-17.066667-29.866667-12.8-51.2zM896%20960H128V896h768v64z%20m64-512V290.133333L669.866667%200H93.866667c-4.266667%200-12.8%204.266667-21.333334%208.533333-4.266667%208.533333-8.533333%2012.8-8.533333%2021.333334v418.133333H0V896h64v98.133333c0%208.533333%204.266667%2017.066667%208.533333%2021.333334%208.533333%204.266667%2012.8%208.533333%2021.333334%208.533333h832c8.533333%200%2017.066667-4.266667%2021.333333-8.533333%204.266667-4.266667%208.533333-12.8%208.533333-21.333334V896H1024V448h-64z'%20fill='%23129C00'%20p-id='20526'%3e%3c/path%3e%3c/svg%3e",yb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229451017'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='21591'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M1008%20464h-72a8%208%200%200%201-8-8v-141.44a64%2064%200%200%200-18.688-45.376L658.688%2018.688A63.808%2063.808%200%200%200%20613.504%200H144a48%2048%200%200%200-48%2048v408a8%208%200%200%201-8%208H16A16%2016%200%200%200%200%20480v400c0%208.768%207.232%2016%2016%2016H96c0%2035.328%2014.272%2067.328%2037.504%2090.496%2023.168%2023.232%2055.168%2037.504%2090.496%2037.504h656a48%2048%200%200%200%2048-48v-64a16%2016%200%200%201%2016-16h64a16%2016%200%200%200%2016-16V480a16%2016%200%200%200-16-16zM704%20154.496L773.504%20224h-65.536A4.032%204.032%200%200%201%20704%20219.968V154.56zM160%2072c0-4.416%203.584-8%208-8H576a64%2064%200%200%201%2064%2064v144c0%208.832%207.232%2016%2016%2016h144a64%2064%200%200%201%2064%2064v104a8%208%200%200%201-8%208H168a8%208%200%200%201-8-8v-384z%20m492.288%20603.52c0%2032.512-9.472%2058.88-28.416%2079.104-18.88%2020.288-43.648%2030.4-74.24%2030.4-29.952%200-54.208-9.792-72.96-29.44-18.496-19.584-27.904-44.864-27.904-75.776%200-32.704%209.536-59.328%2028.608-79.808%2019.136-20.48%2044.352-30.784%2075.648-30.784%2029.76%200%2053.76%209.856%2072%2029.76%2018.176%2019.84%2027.264%2045.44%2027.264%2076.544z%20m-365.888%2053.248c16.896%2013.952%2035.84%2020.928%2057.28%2020.928%2012.16%200%2021.248-2.112%2027.328-6.272%206.08-4.224%209.216-9.536%209.216-16.128a22.528%2022.528%200%200%200-7.296-16c-4.928-4.992-17.6-11.904-38.4-20.48-32.64-13.824-48.896-33.92-48.896-60.416%200-19.392%207.36-34.56%2022.144-45.184%2014.848-10.688%2034.304-16.128%2058.752-16.128%2020.352%200%2037.44%202.688%2051.264%207.936v41.792a85.504%2085.504%200%200%200-49.216-14.336%2050.176%2050.176%200%200%200-26.24%206.016c-6.656%204.032-9.856%209.408-9.856%2016.128%200%205.376%202.24%2010.368%206.72%2014.848%204.48%204.48%2015.616%2010.752%2033.28%2018.432%2020.736%208.896%2035.008%2018.304%2042.88%2028.16a55.168%2055.168%200%200%201%2011.648%2035.328c0%2020.032-7.104%2035.328-21.312%2045.824-14.208%2010.496-34.368%2015.808-60.48%2015.808-23.936%200-43.52-3.904-58.688-11.648l-0.128-44.608c0.128%200%200%200%200%200z%20m-139.584%208.96c7.68%205.76%2016.512%208.768%2026.368%208.768%2021.44%200%2032.128-16.192%2032.128-48.64V572.736h44.48v126.848h-0.064c0%2027.52-6.4%2048.64-19.136%2063.488-12.672%2014.592-30.912%2022.016-54.592%2022.016a77.44%2077.44%200%200%201-29.184-5.44v-41.856zM864%20952a8%208%200%200%201-8%208H224a64%2064%200%200%201-64-64h696c4.416%200%208%203.584%208%208v48z%20m9.216-170.624h-45.504L739.328%20646.4a162.048%20162.048%200%200%201-10.048-17.024h-0.64c0.768%207.232%201.152%2018.304%201.152%2033.28v118.72h-42.24V572.8h48.576l85.12%20131.2c5.632%208.64%209.024%2014.144%2010.368%2016.576h0.64a199.168%20199.168%200%200%201-1.28-28.8v-119.04h42.24v208.704z%20m-267.392-103.168c0%2020.864-4.8%2037.504-14.528%2049.792-9.728%2012.288-23.296%2018.56-40.704%2018.56a47.744%2047.744%200%200%201-40.32-19.328c-9.792-12.928-14.72-29.504-14.72-49.856%200-20.608%205.056-37.248%2015.04-50.176a49.536%2049.536%200%200%201%2041.216-19.392c17.216%200%2030.464%206.272%2039.872%2018.88%209.408%2012.608%2014.08%2029.824%2014.08%2051.52z'%20fill='%23A0D911'%20p-id='21592'%3e%3c/path%3e%3c/svg%3e",bb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229295544'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='14834'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M535.198324%200h69.53853v95.276816c124.175945%200.677323%20248.351891-1.354647%20373.205159%200.677324a40.6394%2040.6394%200%200%201%2045.154889%2045.154889c1.919083%20234.579649%200%20469.272186%201.128872%20703.851835-1.128872%2024.044979%202.257744%2050.686363-11.288722%2072.022049-17.045971%2012.417595-38.946092%2011.288722-58.814243%2011.288722H604.962628v95.276816h-72.925146C354.917429%20990.924044%20177.458715%20960.557381%200%20928.723184V95.502591C178.361812%2063.555507%20356.836512%2032.51152%20535.198324%200z'%20fill='%23A33639'%20p-id='14835'%3e%3c/path%3e%3cpath%20d='M604.736854%20130.949179h383.816558v762.101642h-383.816558v-95.276816h302.42487v-47.638408H604.736854v-59.491567h302.42487V643.457171H604.736854v-60.056002h302.42487v-47.638409H604.736854v-59.491566h302.42487V428.971447H604.736854v-59.830228h302.42487v-47.638408H604.736854V261.898357h302.42487v597.17341H604.736854z'%20fill='%23FFFFFF'%20p-id='14836'%3e%3c/path%3e%3cpath%20d='M645.489141%20529.66685h302.424871v47.638409H645.489141zM645.489141%20611.510087h302.424871v47.638408H645.489141zM645.489141%20693.353324h302.424871v47.638408H645.489141zM596.383199%20775.19656h351.530813v47.638409H596.383199z'%20fill='%23A33639'%20p-id='14837'%3e%3c/path%3e%3cpath%20d='M180.619557%20317.325984c59.265792%202.822181%20130.949179-24.044979%20180.619557%2021.335685%2046.961085%2058.475582%2034.54349%20165.831331-35.107927%20200.713483-24.722302%2012.982031-53.169882%2011.288722-80.037041%2010.272737v130.949179L180.619557%20675.065594c-0.903098-119.208908-1.128872-238.530702%200-357.73961z'%20fill='%23FFFFFF'%20p-id='14838'%3e%3c/path%3e%3cpath%20d='M245.642597%20377.720648c21.448572-1.015985%2048.089957-5.079925%2062.539522%2015.578437a82.407673%2082.407673%200%200%201%201.467534%2073.263808c-12.417595%2022.577445-40.526513%2020.771249-62.313747%2023.367655-2.257744-37.365671-2.03197-74.731342-1.693309-112.2099zM885.713152%20379.865505a83.988094%2083.988094%200%200%201-48.315732-19.642376%20460.57987%20460.57987%200%200%200-77.666409%2024.835189c-20.3197%2036.011024-39.171866%2054.411641-55.540514%2054.411641a17.384632%2017.384632%200%200%201-9.821188-2.596406%2019.416602%2019.416602%200%200%201-11.288723-17.723294c0-5.870136%201.354647-22.577445%2063.329733-49.105942a467.917539%20467.917539%200%200%200%2034.656377-81.278801c-7.902106-15.691324-24.835189-54.298754-13.094918-73.941131a20.658362%2020.658362%200%200%201%2020.206813-10.498511%2021.900121%2021.900121%200%200%201%2017.045971%208.466541c8.466542%2011.288722%207.789218%2036.688347-3.27373%2073.376695A196.988204%20196.988204%200%200%200%20842.70312%20338.661669a221.14607%20221.14607%200%200%201%2041.090949-4.515489c30.705325%200.677323%2035.333701%2015.014001%2034.656377%2023.59343%200%2022.577445-21.56146%2022.577445-32.624407%2022.577444z%20m-185.022159%2042.106935l2.257745-0.564436a45.154889%2045.154889%200%200%200%2023.932091-16.820197%2056.443612%2056.443612%200%200%200-26.189836%2017.384633z%20m93.357734-200.261934h-2.144858a4.402602%204.402602%200%200%200-2.82218%200.677323%2052.492559%2052.492559%200%200%200%204.176827%2033.866167%2053.282769%2053.282769%200%200%200%200.790211-34.54349zM790.210561%20317.551758v1.24176l-0.677323-0.677324c-5.418587%2014.336677-11.288722%2028.44758-18.061956%2042.332709l1.128872-0.677323V361.239114A346.338%20346.338%200%200%201%20812.788006%20348.595745l-0.677324-0.564436h1.806196a196.310881%20196.310881%200%200%201-23.706317-30.479551z%20m94.599493%2034.769265a66.151913%2066.151913%200%200%200-18.174843%201.693308%2050.686363%2050.686363%200%200%200%2020.997024%206.660347%2026.076949%2026.076949%200%200%200%2013.885128-1.580422c-0.451549-2.596406-3.273729-6.773233-17.158858-6.773233z'%20fill='%23A33639'%20p-id='14839'%3e%3c/path%3e%3c/svg%3e",wb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229322104'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16865'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M538.731891%200h65.98683v107.168391c124.387582%200.722484%20248.895579-1.324553%20373.28316%200a40.699906%2040.699906%200%200%201%2045.034808%2046.118533c2.047037%20222.404516%200%20444.929445%201.204139%20667.454374-1.204139%2024.082785%202.287865%2050.694262-11.198495%2072.248354-16.978363%2012.041392-39.014111%2010.957667-59.002822%2012.041392-116.319849-0.60207-232.639699%200-349.200376%200V1023.518344h-72.248354C355.100659%20990.886171%20177.490122%20960.662277%200%20928.752587V95.488241C179.537159%2063.698965%20359.074318%2031.30762%20538.731891%200z'%20fill='%23D24625'%20p-id='16866'%3e%3c/path%3e%3cpath%20d='M604.718721%20142.931326H988.598307v726.216369H604.718721v-95.247413h279.239887v-47.563499H604.718721v-60.206962h279.239887v-46.96143H604.839135v-69.960489c46.118532%2014.570085%2098.619003%2014.208843%20139.800564-14.088429%2044.553151-27.093133%2067.793039-78.630292%2071.646284-130.047036H663.119473c0-51.777987%200.60207-103.555974-0.963311-155.213547-19.145814%203.732832-38.171214%207.826905-57.196614%2012.041392z'%20fill='%23FFFFFF'%20p-id='16867'%3e%3c/path%3e%3cpath%20d='M686.35936%20224.69238a165.689558%20165.689558%200%200%201%20153.16651%20156.5381c-51.055503%200.60207-102.111007%200-153.286924%200%200.120414-52.380056%200.120414-104.278457%200.120414-156.5381z'%20fill='%23D24625'%20p-id='16868'%3e%3c/path%3e%3cpath%20d='M186.64158%20314.521167c63.21731%203.130762%20139.680151-25.527752%20192.662277%2022.878645%2050.092192%2062.374412%2036.84666%20176.888053-37.44873%20214.095955-26.370649%2013.847601-56.714958%2012.041392-85.373471%2010.957667v139.68015l-69.238006-5.900282c-1.806209-127.157103-2.047037-254.434619-0.60207-381.712135z'%20fill='%23FFFFFF'%20p-id='16869'%3e%3c/path%3e%3cpath%20d='M255.759172%20378.942615c22.878645-0.963311%2051.296331-5.298213%2066.709313%2016.737536a87.902164%2087.902164%200%200%201%201.565381%2078.148635c-13.245532%2024.082785-43.228598%2022.035748-66.468485%2024.925682-2.408278-39.857008-2.167451-79.714017-1.806209-119.811853z'%20fill='%23D24625'%20p-id='16870'%3e%3c/path%3e%3c/svg%3e",xb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229667944'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='29126'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M604.672%20142.848h384v726.528h-384V142.848z'%20fill='%23FFFFFF'%20p-id='29127'%3e%3c/path%3e%3cpath%20d='M1022.976%20154.112c2.56-22.528-12.8-42.496-35.328-45.568-3.072-0.512-6.656-0.512-9.728%200-123.904-2.048-248.832%200-373.248%200V0h-65.536C358.912%2031.232%20179.712%2063.488%200%2095.744v833.024c177.664%2031.744%20355.328%2061.952%20532.48%2094.72h72.192v-118.784h349.184c19.968-1.024%2041.984%200.512%2058.88-12.288%2013.312-21.504%2010.24-48.128%2011.264-72.192-1.536-221.184%201.024-443.904-1.024-666.112z%20m-34.304%20715.264h-384V142.848h384v726.528z'%20fill='%238199AF'%20p-id='29128'%3e%3c/path%3e%3cpath%20d='M252.928%20590.848c1.024-19.968%205.632-37.376%2013.824-52.736%208.192-15.36%2023.04-30.72%2044.544-46.592%2016.896-13.312%2028.672-23.04%2034.816-29.696%206.144-6.656%2011.264-13.824%2014.848-21.504%203.584-7.68%205.12-15.872%205.12-24.576%200-18.944-5.632-33.28-16.896-43.008-11.264-9.728-27.136-14.336-46.592-14.336s-35.328%205.632-47.616%2016.896c-12.288%2011.264-19.456%2028.16-20.992%2050.176l-73.728-2.56c4.608-37.888%2018.944-67.072%2044.032-87.04%2025.088-19.968%2057.856-30.208%2098.304-30.208%2043.008%200%2076.288%209.216%20100.352%2027.648%2024.064%2018.432%2035.84%2044.544%2035.84%2078.848%200%2018.944-4.608%2036.352-13.824%2052.224-9.216%2016.384-25.088%2033.28-48.64%2050.688l-20.48%2015.36c-24.576%2018.944-37.376%2038.912-37.888%2060.928H252.928z%20m-5.12%20114.688V640H327.68v66.048H247.808z'%20fill='%23FCFCFC'%20p-id='29129'%3e%3c/path%3e%3c/svg%3e",_b="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229195392'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8195'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M535.119473%200h69.599248v95.247413C729.226717%2096.331138%20853.614299%2093.92286%20977.881468%2096.331138a40.459078%2040.459078%200%200%201%2044.914393%2045.516463c2.047037%20234.566322%200%20469.614299%201.204139%20703.819379-1.204139%2024.082785%202.287865%2050.694262-11.318909%2072.248354-16.978363%2012.041392-38.893697%2010.837253-58.761994%2012.041392h-349.200376V1023.518344h-72.248354C354.980245%20990.886171%20177.490122%20960.541863%200%20928.752587V95.488241C178.33302%2063.578551%20356.786453%2032.511759%20535.119473%200z'%20fill='%232A5699'%20p-id='8196'%3e%3c/path%3e%3cpath%20d='M604.718721%20131.010348H988.598307v761.979304H604.718721v-95.247413h302.479774v-48.165569H604.718721v-59.002822h302.479774v-48.16557H604.718721v-59.002822h302.479774v-48.165569H604.718721v-60.206961h302.479774V428.673565H604.718721v-60.206961h302.479774v-46.96143H604.718721v-59.604892h302.479774V214.336783H604.718721zM240.827846%20341.373471c22.156162-1.324553%2044.19191-2.287865%2066.348071-3.492003%2015.533396%2080.4365%2031.30762%20160.632173%2048.165569%20240.827845%2013.125118-82.724365%2027.695202-165.087488%2041.783632-247.571025%2023.239887-0.842897%2046.479774-2.167451%2069.719661-3.612418-26.370649%20115.356538-49.369708%20231.796802-78.148636%20346.430856-19.386642%2010.355597-48.165569%200-71.52587%201.204139C301.034807%20596.169332%20283.093133%20517.779868%20269.245532%20438.667921c-13.606773%2076.944497-31.30762%20153.16651-46.841016%20229.508937-22.39699-1.204139-44.793979-2.528692-67.311383-4.094073-19.266228-104.760113-42.024459-208.918156-60.206962-313.919097%2019.868297-0.963311%2039.857008-1.806209%2060.206962-2.528693%2012.041392%2075.860771%2025.648166%20151.360301%2036.124177%20227.341487%2016.135466-77.907808%2032.873001-155.695202%2049.610536-233.603011z'%20fill='%23FFFFFF'%20p-id='8197'%3e%3c/path%3e%3c/svg%3e",Sb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713229493469'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23652'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M192.065027%20384.129533h640.128032a42.536025%2042.536025%200%200%201%2042.536025%2042.536025v362.730519a42.796982%2042.796982%200%200%201-42.536025%2042.796982H192.065027V939.446472a20.354662%2020.354662%200%200%200%206.262973%2015.135518%2021.659448%2021.659448%200%200%200%2015.135518%206.262973H939.446472a21.398491%2021.398491%200%200%200%2021.398491-21.398491V308.973857l-10.177331-10.177332h-127.347118a98.11991%2098.11991%200%200%201-97.858953-98.11991V72.546626l-8.611588-8.611588H213.463518a21.659448%2021.659448%200%200%200-15.135518%206.262973%2020.876577%2020.876577%200%200%200-6.262973%2015.135518zM128.130511%20832.193059H42.797504A42.796982%2042.796982%200%200%201%200.000522%20789.396077v-362.730519a41.753153%2041.753153%200%200%201%2012.525946-30.010079%2042.536025%2042.536025%200%200%201%2030.271036-12.525946h85.333007V85.333529A85.07205%2085.07205%200%200%201%20213.463518%200.000522h530.004091l280.528999%20282.355699V939.446472A84.550136%2084.550136%200%200%201%20939.446472%201023.996608H213.463518A84.550136%2084.550136%200%200%201%20128.130511%20939.446472z%20m32.619651-359.599033v38.36071h146.918909l-158.401026%20200.415136v35.229223h225.988943v-38.36071H208.766289l156.574325-199.893221v-35.751138z%20m251.040835%200v274.005069h44.88464v-274.005069z%20m98.641824%200v274.005069h45.145598v-104.382883h67.848874c66.805045%200%20100.207568-28.444336%20100.207568-84.811093s-33.402523-84.028221-99.424697-84.028221z%20m45.145598%2038.36071h65.239302a69.675575%2069.675575%200%200%201%2043.318896%2010.699245%2041.492196%2041.492196%200%200%201%2014.352647%2034.968266%2042.536025%2042.536025%200%200%201-13.830732%2035.751138%2073.589933%2073.589933%200%200%201-43.579854%2010.699245h-65.239302z'%20fill='%23007BEA'%20p-id='23653'%3e%3c/path%3e%3c/svg%3e",kb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713254049146'%20class='icon'%20viewBox='0%200%201718%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3440'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='429.5'%20height='256'%3e%3cpath%20d='M1137.358398%20222.43912v-44.412335h-44.412336V0H536.219192c-37.995823%200-66.807224%2028.937216-66.807225%2066.807224v314.534956h22.143261V66.807224c0-24.65954%2020.004423-44.663964%2044.663964-44.663963h534.206167v177.775156h44.663964v44.663964h178.026785v712.610395c0%2024.65954-20.004423%2044.663964-44.663964%2044.663963H536.219192c-24.65954%200-44.663964-20.004423-44.663964-44.663963V470.670107h-22.143261v486.522669c0%2037.995823%2028.937216%2066.807224%2066.807225%2066.807224h712.232952c37.995823%200%2066.807224-28.937216%2066.807224-66.807224v-734.753656H1137.358398z'%20fill='%239FA0A6'%20p-id='3441'%3e%3c/path%3e%3cpath%20d='M558.362452%20890.385551h667.946431v44.663964H558.362452v-44.663964z%20m0-111.21956h667.946431v44.663964H558.362452v-44.663964z%20m0-111.471188h667.946431v44.663963H558.362452v-44.663963z%20m0%200'%20fill='%239FA0A6'%20p-id='3442'%3e%3c/path%3e%3cpath%20d='M803.196461%20111.21956h-356.053569c-24.282099%200-44.412336%2020.004423-44.663963%2044.412336v356.431011c0%2024.65954%2020.004423%2044.663964%2044.663963%2044.663964h356.053569c24.65954%200%2044.663964-20.004423%2044.663964-44.663964v-356.053569c0.125814-24.785354-20.004423-44.789778-44.663964-44.789778zM656.497358%20429.403121c-24.911168%203.019536-44.663964-9.813491-44.663963-30.95024%200-20.381865%2020.381865-40.13466%2044.663963-43.154196%2016.73326-2.138838%2026.420936%203.648605%2026.420937%203.648606V280.690994c0-9.813491-10.694188-6.039071-10.694189-6.039071L580.254085%20304.595651s-10.694188%203.648605-10.694188%2012.833026v97.505836c0%2020.381865-18.243027%2040.13466-43.154196%2043.154196-24.911168%203.648605-44.663964-9.184421-44.663964-29.440472%200-20.381865%2019.752795-40.13466%2044.663964-43.783266%2016.73326-2.138838%2024.407913%203.019536%2024.407912%203.019536v-113.987468c0-12.833026%209.813491-26.420936%2022.772331-30.069542l104.299791-33.089077c12.833026-3.648605%2022.772331%203.648605%2022.772331%2017.362329v158.651432h0.62907l0.125814-0.251628c-0.251628%2020.004423-20.507679%2039.883032-44.915592%2042.902568z'%20fill='%23A40FA8'%20p-id='3443'%3e%3c/path%3e%3c/svg%3e",jb="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1713253996768'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2358'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='256'%20height='256'%3e%3cpath%20d='M1000.207102%20340.239099c0-59.250945-14.250227-116.376855-57.125911-161.252571-40.875652-42.875684-79.626269-87.751399-124.501985-122.501953C785.828684%2029.984153%20740.952969%205.483762%20702.202351%203.358729%20555.200007-2.766369%20408.197664%201.358697%20261.320322%201.358697c-40.875652%202.000032-71.50114%2026.500422-73.501171%2065.376042-2.000032%2051.000813%200%20104.12666%200%20155.127473h59.250944c0-42.875684%202.000032-83.751335%200-124.501985%200-24.500391%208.12513-34.750554%2034.750554-34.750554h410.256541c6.125098%200%2012.250195%202.000032%2022.500358%206.125098v224.503579h230.628677c0%20218.378481%200%20432.756899-4.125066%20645.010283%200%2028.625456-20.375325%2026.500422-38.750617%2026.500422H281.695647c-26.500422%200-40.875652-6.125098-38.750618-34.750554%202.000032-10.250163-2.000032-18.375293-2.000032-26.500422h-55.125878c-4.125066%2089.876433%2018.375293%20120.376919%2089.751431%20120.376919H912.455703c61.250976%200%2087.751399-26.500422%2087.751399-87.751399%200-197.878155%202.000032-397.881343%200-595.8845z%20m-226.628613-108.251726V101.360291l130.627082%20130.627082H773.578489z'%20fill='%23B85884'%20p-id='2359'%3e%3c/path%3e%3cpath%20d='M628.701179%20687.244631h234.753743v61.250977H628.701179zM634.826277%20411.615237h228.628645v65.376042H634.826277zM630.701211%20550.492451h234.753743v61.250977H630.701211zM22.441514%20311.613643v536.883559h538.883591V311.613643H22.441514z%20m94.251503%20499.382961H59.942112V754.245699h56.750905v56.750905z%20m0-135.127154H59.942112V619.243547h56.750905v56.625903z%20m0-135.002152H59.942112v-56.750905h56.750905v56.750905z%20m0-135.002153H59.942112v-56.750904h56.750905v56.750904z%20m299.629776%20201.128207l-184.877947%20106.751702c-20.750331%2012.000191-46.750745-3.000048-46.750745-27.000431V473.366222c0-24.000383%2026.000415-39.000622%2046.750745-27.000431l184.877947%20106.751702c20.750331%2012.000191%2020.750331%2041.875668%200%2053.875859z%20m107.501714%20204.003252h-56.750904V754.245699h56.750904v56.750905z%20m0-135.127154h-56.750904V619.243547h56.750904v56.625903z%20m0-135.002152h-56.750904v-56.750905h56.750904v56.750905z%20m0-135.002153h-56.750904v-56.750904h56.750904v56.750904z'%20fill='%23B85884'%20p-id='2360'%3e%3c/path%3e%3c/svg%3e",Vb={css:fb,excel:vb,js:gb,json:yb,pdf:bb,ppt:wb,unknow:xb,word:_b,zip:Sb,audio:kb,video:jb},Cb={class:"x-attachment__upload"},$b=["onClick"],Eb={class:"x-attachment__wrapper"},Ab=["src"],Tb=["title"],Bb={key:0,class:"x-attachment__item-name"},zb={class:"el-upload-list__item-url"},Db={key:0,class:"el-upload-list__item-actions"},Ob=["onClick"],Ib=["onClick"],Rb=["onClick"],Mb=I({name:"XAttachment",__name:"Attachment",props:mb,emits:["click","preview","remove","download","select","change","update:modelValue","update:selectValue"],setup(n,{expose:e,emit:t}){const r=T5(),i=n,a=t,o=D(!1),s=D(),l=D(Symbol()),c=D(!1),u=D(0),p=D([]),m=z(()=>({[`x-attachment--${i.listType}`]:!!i.listType,"is-disabled":!!i.disabled,"is-pointer":!!i.clickable||!!i.selectable,"is-not-add":!i.addable||i.limit===h.value.length,[`is-${i.size}`]:!!i.size})),h=D([]),f=z(()=>h.value.filter(A=>Fi(A)).map(A=>A.url)),v=z(()=>i.removable||i.previewable||i.downloadable),g=A=>{const N=zo(A.response||A);return N==="img"?i.thumbnail?i.thumbnail(A):A.url:Vb[N]},k=z(()=>({autoUpload:!0,limit:i.limit,disabled:o.value||i.disabled,multiple:i.multiple,accept:i.accept,listType:{card:"picture-card",list:"picture"}[i.listType]}));oe(()=>i.modelValue,A=>{h.value=Qt(A||[])},{immediate:!0}),oe(()=>i.selectValue,A=>{p.value=[].concat(Qt(A||[]))},{immediate:!0});const b=(A,N)=>{yn.warning({message:`您选择的文件数量超过了限制,只允许上传${i.limit}个文件。`})},w=async A=>{const N=i.uploader||r.uploader;if(N){o.value=!0;const O=A.file,W=await N(O).catch(()=>null);if(!W){const Z=h.value.findIndex(Q=>Q.uid===O.uid);Z>-1&&(h.value.splice(Z,1),yn.error({message:`文件${O.name}上传失败。`}))}return o.value=!1,typeof W=="string"?{url:W}:W}},S=A=>{const N=p.value.findIndex(O=>O.url===A.url);N>-1?i.multiple?p.value.splice(N,1):p.value=[]:i.multiple?p.value.push(Fn(A.response||A)):p.value=[Fn(A.response||A)],a("select",p.value),a("update:selectValue",i.multiple?p.value:p.value[0])},C=A=>{const N=p.value.findIndex(O=>O.url===A.url);N>-1&&p.value.splice(N,1)},x=A=>!!p.value.find(N=>N.url===A.url),$=A=>{i.clickable&&a("click",Fn(A.response||A)),i.selectable&&S(A)},E=async(A,N)=>{if(N.every(O=>O.status==="success")&&N.length===h.value.length){const O=h.value.map(W=>Fn(W.response||W));a("change",O),a("update:modelValue",O),l.value=Symbol()}},U=async A=>{if(!await Zr.confirm("确定删除文件?","提示",{type:"warning"}).catch(()=>!1))return;const N=h.value.filter(O=>O.uid!==A.uid||O.url!==A.url).map(O=>Fn(O.response||O));h.value=N,a("remove",A),a("change",N),a("update:modelValue",N),C(A),l.value=Symbol()},T=A=>{C5(A.url,A.name).catch(()=>{ul(A.url,A.name)}),a("download",A)},B=A=>{Fi(A)?(u.value=f.value.findIndex(N=>N===A.url),c.value=!0):ul(A.url,A.name),a("preview",A)},F=()=>{c.value=!1};return e({elUploadRef:s,remove:U,download:T,selections:p,fileList:h}),(A,N)=>(y(),M("div",{class:ce(["x-attachment",m.value])},[(y(),V(d($l),pe({ref_key:"elUploadRef",ref:s,key:l.value,"file-list":h.value,"onUpdate:fileList":N[0]||(N[0]=O=>h.value=O)},k.value,{"on-exceed":b,"on-change":E,"http-request":w}),{file:j(({file:O})=>[mt((y(),M("div",{class:ce(["x-attachment__item",{"is-selected":x(O.response||O)}]),onClick:W=>$(O.response||O)},[P("div",Eb,[P("img",{class:ce(["el-upload-list__item-thumbnail",{"is-icon":!d(Fi)(O.response||O)}]),src:g(O.response||O)},null,10,Ab),P("div",{class:"el-upload-list__item-name",title:(O.response||O).url},[O.name?(y(),M("span",Bb,te((O.response||O).name),1)):R("",!0),P("span",zb,te((O.response||O).url),1)],8,Tb)]),v.value?(y(),M("div",Db,[i.previewable?(y(),M("span",{key:0,onClick:W=>B(O.response||O),class:"el-upload-list__item-preview"},[_(d(Hn),null,{default:j(()=>[_(d(U2))]),_:1})],8,Ob)):R("",!0),i.downloadable?(y(),M("span",{key:1,onClick:W=>T(O.response||O),class:"el-upload-list__item-delete"},[_(d(Hn),null,{default:j(()=>[_(d(W2))]),_:1})],8,Ib)):R("",!0),i.removable&&!i.disabled?(y(),M("span",{key:2,onClick:W=>U(O),class:"el-upload-list__item-delete"},[_(d(Hn),null,{default:j(()=>[_(d(Dl))]),_:1})],8,Rb)):R("",!0)])):R("",!0)],10,$b)),[[d(w2),O.status==="ready"||O.status==="uploading"]])]),tip:j(()=>[de(A.$slots,"tip")]),default:j(()=>[P("div",Cb,[_(d(Hn),null,{default:j(()=>[_(d(Ol))]),_:1})])]),_:3},16,["file-list"])),i.previewable&&c.value?(y(),V(d(x2),{key:0,"hide-on-click-modal":"",teleported:"","url-list":f.value,"initial-index":u.value,onClose:F},null,8,["url-list","initial-index"])):R("",!0)],2))}});/**!
|
|
81
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
82
|
-
* @name @vtj/renderer
|
|
83
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
84
|
-
* @version 0.8.7
|
|
85
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
86
|
-
*/const Kn="0.8.7";var Je=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(Je||{});const gl=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Pb=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Nb=["vIf","vShow","vModel","vFor","vBind"],W0={String,Number,Boolean,Array,Object,Function,Date};function $r(n,e){return n.map(t=>J3(t)?t:`${e}${t}`)}function Do(n){return/\.css$/.test(n)}function Oo(n){return/\.js$/.test(n)}function Fb(n){return/\.json$/.test(n)}function yl(n){return n.map(e=>`<script src="${vn.append(e,{v:Kn})}"><\/script>`).join("")}function Hb(n=[]){return n.map(e=>`<link rel="stylesheet" href="${vn.append(e,{v:Kn})}" />`).join("")}function J0(n,e){const t=n.filter(p=>!!p.enabled),r=[],i=[],a=[],o=[],s={},l={},c=[],u={};return t.forEach(({urls:p,assetsUrl:m,library:h,assetsLibrary:f,localeLibrary:v})=>{p?.forEach(g=>{Oo(g)&&r.push(g),Do(g)&&i.push(g)}),h&&(o.push(h),s[h]=$r(p||[],e),v&&(l[h]=v)),m&&a.push(m),f&&c.push(f),h&&f&&(u[f]=h)}),{scripts:$r(r,e),css:$r(i,e),materials:$r(a,e),libraryExports:o,materialExports:lu(c),materialMapLibrary:u,libraryMap:s,libraryLocaleMap:l}}function Aa(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function q0(n){return Bn(n)?n:JSON.stringify(n)}function G0(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const a=n.document,o=a.adoptedStyleSheets,s=Array.from(o).filter(l=>l.id!==e);a.adoptedStyleSheets=[...s,i]}else{const i=n.document;let a=i.getElementById(e);a?a.innerHTML=t:(a=i.createElement("style"),a.id=e,a.innerHTML=t,i.head.appendChild(a))}}async function Lb(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&G0(window,n,t)}function Y0(n,e=window){const t=e.document,r=e.document.head;for(const i of n)if(!t.getElementById(i)){const a=t.createElement("link");a.rel="stylesheet",a.id=i,a.href=i,r.appendChild(a)}}async function Ub(n,e,t=window){const r=t.document,i=t.document.head;let a=t[e];return a?a.default||a:new Promise((o,s)=>{for(const l of n){const c=r.createElement("script");c.src=l,c.onload=()=>{a=t[e],a&&o(a.default||a)},c.onerror=u=>{s(u)},i.appendChild(c)}})}function Wb(n){return Qn(n)||Qn(n?.install)}function gt(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let a=(n.value||"").trim();a=a.replace(/this(\W|$)/g,(s,l)=>`__self${l}`),a=i.join(`
|
|
87
|
-
`)+a;const o=`with(${t?"{}":"$scope || {}"}) { ${a} }`;return new Function("$scope",o)(e)}catch(i){if(Ke.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function Ta(n,e,t=!1,r=!1){const i=gt(n,e,t,r);if(typeof i!="function"&&(Ke.error("parseFunction.error","not a function",n,e?.__self??e),r))throw new Error(`"${n.value}" not a function`);return i}function Pe(n){return n&&n.type==="JSExpression"}function hr(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function Jb(n){return Pe(n)||hr(n)}function Vn(n){return Jb(n)?n.value:JSON.stringify(n)}let cn=null;const qb=y0({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{en.error({message:n||"未知错误"})},showLoading:()=>{cn&&cn.close(),cn=Tl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{cn&&(cn.close(),cn=null)}}});function Gb(n,e){const{jsonp:t,request:r}=e;if(n.method==="jsonp")return(i={})=>t(n.url,{...n.jsonpOptions,query:i});{const i=n.headers?gt(n.headers,{},!0):void 0,a={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(o,s)=>r.send(pt(a,s||{},{data:o}))}}function K0(n=[],e){return n.reduce((t,r)=>(t[r.id]=Gb(r,e),t),{})}function X0(n=[]){Xn.setup({timeout:"50-500"}),Io(),n.forEach(e=>Yb(e))}function Yb(n){if(!n.mock)return;const{url:e,mockTemplate:t}=n;if(e&&t){const r=lo(`${e}(.*)`),i=og(e,{decode:decodeURIComponent}),a=gt(t,{},!0);Xn.mock(r,o=>{const s=vn.parse(o.url)||{},l=o.body instanceof FormData?l5(o.body):o.body,c=i(o.url)?.params;return Object.assign(o,{data:l,params:s,query:c}),Xn.mock(a(o))})}}function Io(){Xn._mocked={}}class Kb{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};props={};$props={};$refs={};$el=null;$emit=null;$nextTick=null;$parent=null;$root=null;$attrs=null;$slots=null;$watch=null;$options=null;$forceUpdate=null;$components={};$libs={};$apis={};__transform={};constructor(e){const{mode:t,dsl:r,attrs:i}=e;this.__mode=t,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(e,t=ei){const r=t.getCurrentInstance();if(!r)return;this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()})}__proxy(){this.__instance&&gl.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){gl.forEach(e=>{this[e]=null})}__parseFunction(e){if(e)if(this.__mode===Je.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return Ta({type:r,value:i},this)}else return Ta(e,this)}__parseExpression(e){if(e)if(this.__mode===Je.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return gt({type:r,value:i},this)}else return gt(e,this)}__ref(e=null,t){if(this.__mode!==Je.VNode)return e&&e!==this.__id&&(this.__contextRefs[e]=this),r=>{let i=r?.$vtjEl||r?.$el||r;if(!i){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}if(i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=e,Je.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const a=this.$refs[t];if(a){const o=new Set([].concat(a,r));this.$refs[t]=Array.from(o)}else this.$refs[t]=r}return r}}__clone(e={}){const t={...this.context,...e},r={...t,context:t};return r.context.__proto__=this.context,r.__proto__=this,r}}function Ba(n){const{Vue:e=ei,mode:t=Je.Runtime,components:r={},libs:i={},apis:a={},loader:o}=n,s=e.computed(()=>n.dsl),l={$components:r,$libs:i,$apis:a},c=new Kb({mode:t,dsl:s.value,attrs:l}),u=e.defineComponent({name:s.value.name,props:{...Xb(s.value.props??[],c)},setup(p){c.$props=p,c.props=p,s.value.id&&G0(n.window||window,s.value.id,s.value.css||""),c.state=Qb(e,s.value.state??{},c);const m=Zb(e,s.value.computed??{},c),h=e7(s.value.methods??{},c),f=t7(e,s.value.inject,c),v=n7(s.value.dataSources||{},c),g={...f,...m,...h,...v};return c.setup(g,e),r7(e,s.value.watch??[],c),{vtj:c}},emits:[...s.value.emits??[]],expose:["vtj"],render(){if(!s.value.nodes)return null;const p=s.value.nodes||[];return p.length===1?Kr(p[0],c,e,o):p.map(m=>Kr(m,c,e,o))},...i7(s.value.lifeCycles??{},c)});return{renderer:e.markRaw(u),context:c}}function Xb(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>W0[i]):void 0;return n.map(r=>Bn(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:Pe(r.default)?e.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:t(i.type),required:i.required,default:i.default},r),{})}function Qb(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let a=e[i];return Pe(a)?a=t.__parseExpression(a):hr(a)&&(a=t.__parseFunction(a)),r[i]=a,r},{}))}function Zb(n,e,t){return Object.entries(e??{}).reduce((r,[i,a])=>(r[i]=n.computed(t.__parseFunction(a)),r),{})}function e7(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function t7(n,e=[],t){return e.reduce((r,i)=>{const{name:a,from:o}=i||{};i.default;const s=Pe(o)?t.__parseExpression(o)||a:o??a,l=Pe(i.default)?t.__parseExpression(i.default):i.default??null;return r[a]=n.inject(s,l),r},{})}function n7(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],a=e.$apis[i.ref],o=hr(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...s)=>{const l=await a.apply(e,s);return o?o(l):l},t},{})}function r7(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function i7(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}let Hi=[];const a7=n=>n;async function Q0(n,e=window){const{urls:t=[],library:r}=n,i=t.filter(l=>Oo(l));if(i.length===0||!r)return null;const a=t.filter(l=>Do(l));let o;const s=await Ub(i,r,e).catch(()=>null);return s?.plugin&&(o=s.plugin),o?{component:o,css:a}:null}function za(n){const{getDsl:e,getDslByUrl:t,options:r}=n;return r.window&&(Hi.forEach(i=>{delete r.window[i]}),Hi=[]),(i,a,o=ei)=>!a||typeof a=="string"?i:a.type==="Schema"&&a.id?o.defineAsyncComponent(async()=>{const s=await e(a.id);return s&&(s.name=i),s?Ba({...r,Vue:o,dsl:s,mode:Je.Runtime,loader:za(n)}).renderer:null}):a.type==="UrlSchema"&&a.url?o.defineAsyncComponent(async()=>{const s=await t(a.url);return s&&(s.name=i),s?Ba({...r,Vue:o,dsl:s,mode:Je.Runtime,loader:za(n)}).renderer:null}):a.type==="Plugin"?(a.library&&Hi.push(a.library),o.defineAsyncComponent(async()=>{const s=await Q0(a,r.window);return s?(Y0(s.css,r.window),s.component):null})):i}function Kr(n,e,t=ei,r=a7){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:a=[]}=n,{vIf:o,vFor:s,vShow:l,vModels:c,vBind:u}=o7(a);if(o&&!s7(o,e))return null;const p=m=>{const h=m.$components,f=(()=>{if(n.name==="component")return l7(m,n.props?.is);if(n.name==="slot")return n.name;const b=r(n.name,n.from,t);return Bn(b)?h[b]??b:b})(),v=c7(i,n.props??{},m),g=u7(t,n.events??{},m);if(n.name==="slot")return d7(t,n,v,m,r);u&&Object.assign(v,m.__parseExpression(u.value)),l&&(v.style=Object.assign(v.style??{},h7(l,m))),c.forEach(b=>{Object.assign(v,m7(t,b,m))});const k=f7(t,n.children??[],m,r,n);return t.createVNode(f,{...v,...g},k)};return s?y7(s,p,e):p(e)}function o7(n=[]){const e=n.find(s=>qt(s.name)==="vIf"),t=n.find(s=>qt(s.name)==="vFor"),r=n.find(s=>qt(s.name)==="vShow"),i=n.find(s=>qt(s.name)==="vBind"),a=n.filter(s=>qt(s.name)==="vModel"),o=n.filter(s=>!Nb.includes(qt(s.name)));return{vIf:e,vFor:t,vShow:r,vModels:a,vBind:i,others:o}}function s7(n,e){return!!e.__parseExpression(n.value)}function l7(n,e){return e?Pe(e)?n.__parseExpression(e):e:"div"}function c7(n,e,t){const r=Object.keys(e||{}).reduce((i,a)=>{let o=e[a];return Pe(o)?o=t.__parseExpression(o):hr(o)&&(o=t.__parseFunction(o)),i[a]=o,i},{});return r.ref=t.__ref(n,r.ref),r}function u7(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((a,o)=>{const s=e[o],l=Z0(s.modifiers),c=l.find(m=>r.includes(m)),u="on"+no(o)+(c&&i[c]||""),p=t.__parseFunction(s.handler);return p&&(a[u]=n.withModifiers(p,l)),a},{})}function Z0(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function d7(n,e,t,r,i){const{children:a}=e,o=p7(e,r),s=r.$slots?.[o.name];return s?s(t):a?Bn(a)?n.createTextVNode(a):Pe(a)?n.createTextVNode(q0(r.__parseExpression(a))):Array.isArray(a)?a.map(l=>Kr(l,r,n,i)):null:null}function p7(n,e){const{props:t}=n,r=t?.name||"default";return{name:Pe(r)?e.__parseExpression(r):r,params:[]}}function h7(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function m7(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
|
|
88
|
-
${e.value.value} = v;
|
|
89
|
-
}`:"(v) => {}"},i=t.__parseFunction(r),a=Z0(e.modifiers),o=Pe(e.arg)?t.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:t.__parseExpression(e.value),[`onUpdate:${o}`]:a.length&&i?n.withModifiers(i,a):i}}function f7(n,e,t,r,i){if(!e)return null;if(Bn(e))return{default:()=>e};if(Pe(e))return{default:()=>q0(t.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const a=v7(e),o=s=>!s||!i?{}:i?.id&&Object.keys(s).length?{[`scope_${i.id}`]:s}:{};return Object.entries(a).reduce((s,[l,{nodes:c,params:u}])=>(s[l]=p=>{const m=u.length?tg(p??{},u):o(p);return c.map(h=>Kr(h,t.__clone(m),n,r))},s),{})}return null}function v7(n){const e={default:{params:[],nodes:[]}};for(const t of n){const r=g7(t.slot),i=r.name;e[i]?(e[i].nodes.push(t),e[i].params=e[i].params.concat(r.params)):e[i]={nodes:[t],params:r.params}}return e}function g7(n="default"){return Bn(n)?{name:n,params:[]}:{params:[],...n}}function y7(n,e,t){const{value:r,iterator:i}=n,{item:a="item",index:o="index"}=i||{};let s=t.__parseExpression(r)||[];return Number.isInteger(s)&&(s=new Array(s).fill(!0).map((l,c)=>c+1)),Array.isArray(s)?s.map((l,c)=>e(t.__clone({[a]:l,[o]:c}))):(console.warn("[vForRender]:",`${r?.value} is not a Arrary`),[])}const bl=I({name:"VtjPageContainer",async setup(){const n=w7(),e=rd(),t=e.params.id,r=t?n.getPage(t):n.getHomepage(),i=r?await n.getRenderComponent(r.id):null;return r&&ed(r.title||"VTJ"),{provider:n,component:i,file:r,query:e.query}},render(){return this.component?Re(this.component,this.query):Re("div","页面不存在")}}),b7=I({name:"VtjStartupContainer",render(){return Re(Sy)}}),e2=Symbol("Provider");class t2 extends co{mode;globals={};modules={};adapter={request:qb,jsonp:m5};apis={};dependencies={};materials={};library={};service;project=null;components={};nodeEnv="development";router=null;materialPath="./";urlDslCaches={};constructor(e){super();const{service:t,mode:r=Je.Raw,dependencies:i,materials:a,project:o={},adapter:s={},globals:l={},modules:c={},router:u=null,materialPath:p="./",nodeEnv:m="development"}=e;this.mode=r,this.modules=c,this.service=t,this.router=u,this.materialPath=p,this.nodeEnv=m,i&&(this.dependencies=i),a&&(this.materials=a),Object.assign(this.globals,l),Object.assign(this.adapter,s),r!==Je.Design&&this.load(o)}async load(e){const t=this.modules[`.vtj/projects/${e.id}.json`];if(this.project=t?await t():await this.service.init(e),!this.project)throw new Error("project is null");const{dependencies:r=[],apis:i}=this.project,{dependencies:a,library:o,components:s,materialPath:l}=this,{libraryExports:c,libraryMap:u,materials:p,materialExports:m,materialMapLibrary:h}=J0(r,l),f=window;f.CKEDITOR_VERSION=void 0;for(const g of c){const k=a[g],b=f[g];if(b)o[g]=b;else if(k)f[g]=o[g]=await k();else{const w=u[g]||[];for(const S of w)Do(S)&&await Lb(g,vn.append(S,{v:Kn})),Oo(S)&&await ll(vn.append(S,{v:Kn}));o[g]=f[g]}}for(const g of p)await ll(vn.append(g,{v:Kn}));const v=this.materials||{};for(const g of m){const k=f[h[g]],b=hg[g];if(b)k&&b.forEach(w=>{s[w]=k[w]});else{const w=v[g]?(await v[g]()).default:f[g];w&&k&&(w.components||[]).forEach(S=>{s[S.name]=Aa(S,k)})}}i&&(this.apis=K0(i,this.adapter),Io(),this.project.config?.mock&&X0(i)),this.initRouter(),this.triggerReady()}initRouter(){const{router:e,project:t}=this;e&&(e.addRoute({path:"/page/:id",name:"VtjPage",component:bl}),e.addRoute({path:"/",name:"VtjHomepage",component:t?.homepage?bl:b7}))}install(e){const t=e.config.globalProperties.installed||{};for(const[r,i]of Object.entries(this.library))!t[r]&&Wb(i)&&(e.use(i),t[r]=!0);e.provide(e2,this),e.config.globalProperties.installed=t}getFile(e){const{blocks:t=[]}=this.project||{};return this.getPage(e)||t.find(r=>r.id===e)||null}getPage(e){const{pages:t=[]}=this.project||{},r=(i,a=[])=>{for(const o of a){if(o.id===i)return o;if(o.children&&o.children.length){const s=r(i,o.children);if(s)return s}}};return r(e,t)||null}getHomepage(){const{homepage:e}=this.project||{};return e?this.getPage(e):null}async getDsl(e){const t=this.modules[`.vtj/files/${e}.json`];return t?await t():this.service.getFile(e).catch(()=>null)}async getDslByUrl(e){return this.urlDslCaches[e]||(this.urlDslCaches[e]=this.adapter.request.send({url:e,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(r=>r.data).catch(()=>null))}createDslRenderer(e,t={}){const{library:r,components:i,mode:a,apis:o}=this,s={mode:a,Vue:r.Vue,components:i,libs:r,apis:o,window,...t},l=za({getDsl:async c=>await this.getDsl(c)||null,getDslByUrl:async c=>await this.getDslByUrl(c)||null,options:s});return Ba({...s,dsl:e,loader:l})}async getRenderComponent(e){const t=this.getFile(e);if(!t)return Ke.warn(`Can not find file: ${e}`),null;const r=`.vtj/vue/${e}.vue`,i=this.modules[r];if(i)return(await i())?.default;const a=await this.getDsl(t.id);return a?this.createDslRenderer(a).renderer:(Ke.warn(`Can not find dsl: ${e}`),null)}defineUrlSchemaComponent(e,t){return Ji(async()=>{const r=await this.getDslByUrl(e);return r?(r.name=t||r.name,this.createDslRenderer(r).renderer):null})}definePluginComponent(e){return Ji(async()=>{const t=await Q0(e,window);return t?(Y0(t.css),t.component):null})}}function q_(n){const e=new t2(n);return{provider:e,onReady:t=>e.ready(t)}}function w7(n={}){const e=Mt(e2);if(!e)throw new Error("Can not find provider");if(e.mode===Je.Raw&&e.nodeEnv==="development"){const{id:t,version:r}=n;t&&r&&(async()=>{const i=await e.getDsl(t);i?.__VERSION__!==r&&en.warning({title:i?.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})()}return e}const Ro=new g0({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:n=>n.data?.code===0,showError:n=>{en.error({message:n||"未知错误"})}}}),x7=(n="/vtj/local/repository/${type}.json")=>(e,t)=>Ro.send({url:n,method:"post",query:{type:e},data:{type:e,data:t}}),_7=(n="/vtj/local/repository/uploader.json")=>async(e,t)=>await Ro.send({url:n,method:"post",data:{files:e,projectId:t},settings:{type:"data"}}).then(r=>r&&r[0]?r[0]:null).catch(()=>null);class S7{api;pluginCaches={};uploader;constructor(){this.api=x7(),this.uploader=_7()}async init(e){return console.log("BaseService.init",e),{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return console.log("BaseService.saveMaterials",e,t),!1}async saveFile(e){return console.log("BaseService.saveFile",e),!1}async getFile(e){return console.log("BaseService.getFile",e),{}}async removeFile(e){return console.log("BaseService.removeFile",e),!1}async saveHistory(e){return console.log("BaseService.saveHistory",e),!1}async removeHistory(e){return console.log("BaseService.removeHistory",e),!1}async getHistory(e){return console.log("BaseService.getHistory",e),{}}async getHistoryItem(e,t){return console.log("BaseService.getHistoryItem",e,t),{}}async saveHistoryItem(e,t){return console.log("BaseService.saveHistoryItem",e,t),!1}async removeHistoryItem(e,t){return console.log("BaseService.removeHistoryItem",e,t),!1}async publish(e){return!!await this.api("publish",e).catch(()=>!1)}async publishFile(e,t){return!!await this.api("publishFile",{project:e,file:t}).catch(()=>!1)}async genVueContent(e,t){return await this.api("genVueContent",{project:e,dsl:t}).catch(()=>"")}async createRawPage(e){return await this.api("createRawPage",e).catch(()=>"")}async removeRawPage(e){return await this.api("removeRawPage",e).catch(()=>"")}async uploadStaticFile(e,t){return await this.uploader(e,t).catch(()=>null)}async getStaticFiles(e){return await this.api("getStaticFiles",e).catch(()=>[])}async removeStaticFile(e,t){return await this.api("removeStaticFile",{name:e,projectId:t}).catch(()=>"")}async clearStaticFiles(e){return await this.api("clearStaticFiles",e).catch(()=>"")}async getPluginMaterial(e){const{urls:t=[]}=e,r=t.filter(a=>Fb(a))[0];return r?this.pluginCaches[r]||(this.pluginCaches[r]=Ro.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(a=>a.data).catch(()=>null)):null}}new b0({type:"local",expired:0,prefix:"__VTJ_"});class G_ extends S7{getFileCaches={};async init(e){return await this.api("init",e).catch(()=>null)||{}}async saveProject(e){return!!await this.api("saveProject",e).catch(()=>!1)}async saveMaterials(e,t){return!!await this.api("saveMaterials",{project:e,materials:eg(t)}).catch(()=>!1)}async saveFile(e){return!!await this.api("saveFile",e).catch(()=>!1)}async getFile(e){return this.getFileCaches[e]||(this.getFileCaches[e]=this.api("getFile",e).catch(()=>null)).finally(()=>{delete this.getFileCaches[e]})}async removeFile(e){return!!await this.api("removeFile",e).catch(()=>!1)}async saveHistory(e){return!!await this.api("saveHistory",e).catch(()=>!1)}async removeHistory(e){return!!await this.api("removeHistory",e).catch(()=>!1)}async getHistory(e){return await this.api("getHistory",e).catch(()=>null)||{}}async getHistoryItem(e,t){return await this.api("getHistoryItem",{fId:e,id:t}).catch(()=>null)||{}}async saveHistoryItem(e,t){return!!await this.api("saveHistoryItem",{fId:e,item:t}).catch(()=>!1)}async removeHistoryItem(e,t){return!!await this.api("removeHistoryItem",{fId:e,ids:t}).catch(()=>!1)}}/**!
|
|
90
|
-
* Copyright (c) 2024, VTJ.PRO All rights reserved.
|
|
91
|
-
* @name @vtj/designer
|
|
92
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
93
|
-
* @version 0.8.7
|
|
94
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
95
|
-
*/const k7="0.8.7",wl={width:390,height:844},xl={width:1180,height:820},Ct=/^[A-Za-z_$][\:\w_-]*$/,j7=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],V7=["keydown","keyup","keypress"],C7=["GET","POST","PUT","PATCH","DELETE","JSONP"],$7=["stop","prevent","capture","self","once","passive"];var at=(n=>(n.Block="block",n.Node="node",n))(at||{});function n2(){const n=Le(),e=z(()=>n.project.value?.dependencies??[]),t=z(()=>n.project.value?.apis??[]);return{engine:n,dependencies:e,apis:t}}function Ht(n,e){const t=z(()=>u2.getWidgets(d(n),d(e)).filter(i=>!i.invisible)),r=D();return{widgets:t,widgetsRef:r}}function r2(){const n=Le();return{span:z(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function E7(){const n=Le(),e=z(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const A7=(n=[])=>n.map(e=>e.name);function T7(){const n=Le(),{components:e,groups:t,componentMap:r}=n.assets,i=Zt({}),a=z(()=>{const p={};return t.value&&t.value.forEach(m=>{p[m.name]=m}),p}),o=z(()=>t.value?t.value.map(p=>({label:`${p.label} (${p.count})`,name:p.name,disabled:!p.children?.length})):[]),s=D(o.value[0]?.name),l=D(""),c=z(()=>a.value[s.value]);jl(()=>{const p=o.value.reduce((m,h)=>(m[h.name]=A7(a.value[h.name].children),m),{});Object.assign(i,p)}),oe(o,p=>{p.length&&!s.value&&(s.value=p[0].name)},{immediate:!0});const u=z(()=>{const p=l.value.toLowerCase();return!p||!e?[]:e.filter(m=>m.name.toLowerCase().includes(p)||m.label?.toLowerCase().includes(p))});return{components:e,groups:t,componentMap:r,groupMap:a,tabs:o,model:i,currentTab:s,currentGroup:c,searchKey:l,searchResult:u}}function Ie(){const n=Le(),e=z(()=>n.current.value),t=z(()=>n.simulator.renderer?.context??null),r=z(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function B7(n,e,t,r){const i=Le();i.simulator.init(n,e,t,r);const a=z(()=>i.simulator.designer.value),o=z(()=>Li("hover",a.value?.hover.value)),s=z(()=>Li("dropping",a.value?.dropping.value)),l=z(()=>Li("selected",a.value?.selected.value));return oe(i.changed,()=>{a.value?.updateRect()}),{designer:a,dropping:s,hover:o,selected:l}}function z7(n,e=!0){const{top:t,height:r,width:i,left:a}=n||{};if(r>100&&i>200)return"inner";let o,s;return s=t>30?"top":"bottom",o=e||a<300&&i<300?"left":"right",[o,s].join("-")}function D7(n){const{rect:e,type:t}=n,{left:r,width:i,top:a,height:o}=e,s={left:r,width:i,top:a,height:o};switch(t){case"left":s.left=0,s.width=0;break;case"right":s.left=s.left+s.width-4,s.width=0;break;case"bottom":s.top=s.top+s.height-4,s.height=0;break;case"top":s.height=0;break}return s}function Li(n,e){if(!e)return null;const{left:t,top:r,width:i,height:a}=n==="dropping"?D7(e):e.rect,o={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${a}px`,visibility:i||a?"visible":"hidden"};return{...e,style:o,position:z7(e.rect,n!=="selected")}}function wt(){const n=Le(),e=z(()=>n.simulator.designer.value),t=z(()=>e.value?.selected.value),r=z(()=>Ce(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function O7(n,e){const t=D(""),{selected:r,isSelectBlock:i}=wt(),a=z(()=>r.value?.model.id),o=z(()=>{const l=Gi(n),c=Gi(e),u=[];if(!l)return u;const p=c?.__contextRefs[a.value||""],m=c===p||i.value?[]:Object.keys(p?.context||{}).filter(S=>!["context","ref"].includes(S)).map(S=>`this.context.${S}`);m.length&&u.push({title:"上下文",items:m});const h=l.inject.map(S=>`this.${S.name}`);h.length&&u.push({title:"注入",items:h});const f=l.props.map(S=>typeof S=="string"?`this.props.${S}`:`this.props.${S.name}`);f.length&&u.push({title:"属性",items:f});const v=Object.keys(l.state).map(S=>`this.state.${S}`);v.length&&u.push({title:"状态",items:v});const g=Object.keys(l.computed).map(S=>`this.${S}.value`);g.length&&u.push({title:"计算属性",items:g});const k=Object.keys(l.methods).map(S=>`this.${S}`);k.length&&u.push({title:"方法",items:k});const b=Object.keys(l.dataSources).map(S=>`this.${S}`);b.length&&u.push({title:"数据源",items:b});const w=Object.keys(c?.$refs||{}).map(S=>`this.$refs.${S}`);return w.length&&u.push({title:"refs",items:w}),u}),s=z(()=>{if(!t.value)return o.value;const l=t.value.toLowerCase(),c=[];return o.value.forEach(u=>{const p=u.items.filter(m=>m.toLowerCase().includes(l));p.length&&c.push({title:u.title,items:p})}),c});return{keyword:t,options:o,searchResult:s}}const Er=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function I7(n){const e=Le(),t=z(()=>{const l=n.value?.model||null;return Ce(l)?null:l}),r=D();oe(t,async l=>{l?.from?r.value=await e.assets.getBlockMaterial(l.from)||void 0:r.value=void 0},{immediate:!0});const i=z(()=>t.value?[{name:"key",setters:Er,value:t.value.getPropValue("key")},{name:"ref",setters:Er,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:Er,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:Er,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),a=z(()=>{if(!t.value)return[];const l=r.value||e.assets.componentMap.get(t.value.name);return l?(l.props||[]).map(c=>({...c,value:t.value?.getPropValue(c.name)??c.defaultValue})):[]}),o=l=>i.value.some(c=>c.name===l)||a.value.some(c=>c.name===l)||l==="style",s=z(()=>t.value?Object.keys(t.value.props).filter(l=>!o(l)).map(l=>({name:l,setters:"InputSetter",value:t.value?.getPropValue(l)})):[]);return{commonProps:i,componentProps:a,customProps:s,node:t,change:(l,c)=>{t.value&&(l==="children"?t.value.setChildren(c):t.value.setProp(l,c))},addCustom:l=>{l&&t.value?.setProp(l,"")},removeCustom:l=>{t.value?.removeProp(l)},isExist:o}}function Ae(n,e="提示"){return en.warning({title:e,message:n})}async function On(n){return await Zr.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function We(n,e="success"){return yn({message:n,type:e})}function De(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?gt(n,e,t,!0):Ta(n,e,t,!0)}catch(i){r=!1,en.error({title:"代码错误",message:i.message})}return r}function i2(){const n=Le(),e=z(()=>n.simulator.designer.value),t=z(()=>n.current.value?n.history.value:null),r=z(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},a=()=>{t.value?.backward(),e.value?.cleanHelper()},o=c=>{e.value?.cleanHelper(),t.value?.load(c),We("已载入历史记录","success")},s=z(()=>r.value<=1?!0:(t.value?.index||-1)<=0),l=z(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:a,load:o,forwardDisabled:s,backwardDisabled:l}}function an(){const n=Le(),e=z(()=>n.project.value);return{engine:n,project:e}}function R7(n){const e=Le(),t=z(()=>{const s=n.value?.model||null;return!s||Ce(s)?null:s}),r=D();oe(t,async s=>{s?.from?r.value=await e.assets.getBlockMaterial(s.from)||void 0:r.value=void 0},{immediate:!0});const i=z(()=>{if(Ce(t.value))return[];const s=t.value?.events||{};return j7.map(l=>({name:l,event:s[l]}))}),a=z(()=>{if(Ce(t.value))return[];const s=t.value?.events||{};return V7.map(l=>({name:l,event:s[l]}))}),o=z(()=>{if(!t.value||Ce(t.value))return[];const s=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(l=>{const c=typeof l=="string"?l:l.name;return{name:c,event:s[c]}})});return{mouseEventList:i,keyboardEventList:a,componentEventList:o}}const M7=(n,e)=>new pn({name:n,value:void 0,iterator:e}),P7=(n="modelValue")=>new pn({name:"vModel",value:void 0,arg:n});function N7(n){if(!n)return[];const{props:e=[],events:t=[]}=n;if(e.length&&t.length){const r=t.filter(i=>(typeof i=="string"?i:i.name).startsWith("update:")).map(i=>i=typeof i=="string"?i:i.name);return r.length?e.filter(i=>r.some(a=>a.includes(i.name))):[]}return[]}function F7(n){const e=Le(),t=z(()=>{const p=n.value?.model||null;return Ce(p)?null:p}),r=p=>z(()=>t.value&&(t.value.directives||[]).find(m=>m.name===p)||M7(p)),i=()=>z(()=>{if(!t.value)return[];const p=e.assets.componentMap.get(t.value.name||"");return(p?N7(p):[]).map(m=>(t.value?.directives||[]).find(h=>h.name==="vModel"&&h.arg==m.name)||P7(m.name))}),a=r("vIf"),o=r("vShow"),s=r("vBind"),l=r("vFor"),c=i(),u={vIf:a,vShow:o,vBind:s,vFor:l};return{engine:e,node:t,vIf:a,vShow:o,vBind:s,vFor:l,vModels:c,onValueChange:(p,m)=>{const h=u[p];t.value&&(m?(h.value.value=m,t.value.setDirective(h.value)):(h.value.value=void 0,t.value.removeDirective(h.value)))},onForChange:(p,m)=>{if(t.value){if(p==="value"){m?(l.value.value=m,t.value.setDirective(l.value)):t.value.removeDirective(l.value);return}(p==="item"||p==="index")&&(l.value.iterator={...l.value.iterator,[p]:m||void 0},t.value.setDirective(l.value))}},onModelChange:(p,m)=>{if(!t.value)return;const h=parseInt(p),f=c.value[h];f&&(m?(f.value=m,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function H7(){const{engine:n,project:e}=an(),t=z(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const L7="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e",U7=["title","src"],W7={key:1},J7=I({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{},text:{default:"VTJ"},link:{}},setup(n){const{engine:e}=Ie(),t=n,r=z(()=>t.icon||e.project.value?.config?.logo||L7),i=()=>{t.link&&(location.href=t.link)};return(a,o)=>(y(),M("div",{class:"v-logo-widget",onClick:i},[r.value?(y(),M("img",{key:0,title:t.text,class:"v-logo-widget__icon",src:r.value},null,8,U7)):(y(),M("span",W7,te(t.text),1))]))}}),q7={class:"v-empty-widget"},G7=I({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",q7,"EmptyWidget"))}}),Y7={class:"v-switcher-widget"},K7={key:1},X7=I({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=Ie(),i=z(()=>r.project.value?.config?.title||r.project.value?.name),a=z(()=>r.project.value?.currentFile?.title),o=()=>{t("click",r.project.value)};return(s,l)=>(y(),M("div",Y7,[_(d(xe),{size:"small",round:"",onClick:o},{default:j(()=>[_(d(Su),{class:"v-switcher-widget__back"}),P("span",null,te(i.value),1),a.value?(y(),V(d(Qr),{key:0,direction:"vertical"})):R("",!0),a.value?(y(),M("span",K7,te(a.value),1)):R("",!0)]),_:1})]))}}),Q7={class:"v-toolbar-widget"},Z7=I({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:a,backwardDisabled:o}=i2(),s=D("pc");return e({mode:s}),(l,c)=>(y(),M("div",Q7,[_(d(Ua),{size:"small",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:j(()=>[_(d(qn),{label:"pc",value:"pc"},{default:j(()=>[_(d(Au))]),_:1}),_(d(qn),{label:"mobile",value:"mobile"},{default:j(()=>[_(d(Tu))]),_:1}),_(d(qn),{label:"pad",value:"pad"},{default:j(()=>[_(d(Bu))]),_:1})]),_:1},8,["modelValue"]),R("",!0),_(d(A2),null,{default:j(()=>[_(d(xe),{type:"default",size:"small",onClick:d(i),disabled:d(o)||!!t.preview},{default:j(()=>[_(d(Ou))]),_:1},8,["onClick","disabled"]),_(d(xe),{type:"default",size:"small",onClick:d(r),disabled:d(a)||!!t.preview},{default:j(()=>[_(d(zu))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),e9={class:"v-actions-widget"},t9=P("span",null,"发布",-1),n9=I({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=wt(),r=D(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),We("刷新完成","success")):We("请先打开文件","warning")},a=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await ou(1e3)),t.value?.setSelected(e.current.value)):We("请先打开文件","warning")},o=()=>{if(e.project.value)if(e.current.value){if(r.value){e.skeleton?.closePreview(),r.value=!1;return}e.skeleton?.openPreview(""),r.value=!0}else We("请先打开文件","warning")},s=()=>{const c=e.project.value;c&&(c.currentFile?c.publish(c.currentFile):We("请先打开文件","warning"))},l=c=>{const u=e.project.value;u&&(c==="current"?s():u.publish())};return(c,u)=>(y(),M("div",e9,[R("",!0),R("",!0),_(d(xe),{onClick:o,type:r.value?"warning":"default",size:"small",title:"预览"},{default:j(()=>[_(d($u))]),_:1},8,["type"]),_(d(xe),{onClick:i,type:"default",size:"small",title:"刷新"},{default:j(()=>[_(d(Du))]),_:1}),_(d(xe),{type:"default",size:"small",title:"页面设置",onClick:a},{default:j(()=>[_(d(fo))]),_:1}),_(d(Qr),{direction:"vertical"}),_(d(Na),{"split-button":"",type:"primary",size:"small",onClick:s,onCommand:l},{dropdown:j(()=>[_(d(Pa),null,{default:j(()=>[_(d(Hr),{command:"current"},{default:j(()=>[le("发布页面")]),_:1}),_(d(Hr),{command:"project"},{default:j(()=>[le("整站发布")]),_:1})]),_:1})]),default:j(()=>[t9]),_:1})]))}}),r9={class:"v-icon-setter"},i9={class:"v-icon-setter__content"},a9={class:"v-icon-setter__list"},a2=I({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D(!1),a=D(t.modelValue),o=D(""),s=z(()=>fa[t.modelValue]||t.modelValue),l=z(()=>{const h=Object.entries(fa);return o.value?h.filter(f=>f[0].toLowerCase().includes(o.value)):h}),c=h=>{a.value=h},u=()=>{r("change",a.value),r("update:modelValue",a.value),i.value=!1},p=()=>{a.value="",r("change",""),r("update:modelValue",""),i.value=!1},m=()=>{i.value=!0};return(h,f)=>(y(),M("div",r9,[_(d(Ye),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":d(Ml),onFocus:m},{prepend:j(()=>[_(d(it),{icon:s.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(y(),V(d(jt),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:u},{extra:j(()=>[_(d(xe),{size:"default",type:"warning",onClick:p},{default:j(()=>[le(" 清除绑定 ")]),_:1})]),default:j(()=>[P("div",i9,[_(d(Ye),{size:t.size,"prefix-icon":d(Pl),clearable:"",modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),P("div",a9,[(y(!0),M(ne,null,ae(l.value,v=>(y(),V(d(it),{icon:v[1],onClick:g=>c(v[0]),class:ce({"is-active":a.value===v[0]})},null,8,["icon","onClick","class"]))),256)),l.value.length===0?(y(),V(d(ze),{key:0})):R("",!0)])])]),_:1},8,["modelValue"])):R("",!0)]))}}),o9=I({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=an(),r=z(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!0,hidden:!1,raw:!1}),a=D(e.item||i()),o=[{label:"页面",value:!1},{label:"目录",value:!0}],s=c=>{a.value&&(a.value.name=Wr(c))},l=async c=>t.value?.existPageName(c.name,[c.id])?(Ae("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(c):t.value?.createPage(c,e.parentId),!0);return(c,u)=>(y(),V(d(Vt),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:a.value,"submit-method":l},{default:j(()=>[_(d(ee),{name:"dir",label:"类型",editor:"radio",options:o,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),_(d(ee),{name:"name",label:"名称",required:"",onChange:s,rules:{pattern:d(Ct),message:"名称格式不正确"}},null,8,["rules"]),_(d(ee),{name:"title",label:"标题",required:""}),_(d(ee),{name:"icon",label:"菜单图标",editor:"none"},{editor:j(()=>[_(a2,{modelValue:a.value.icon,"onUpdate:modelValue":u[0]||(u[0]=p=>a.value.icon=p),size:"default"},null,8,["modelValue"])]),_:1}),_(d(ee),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),_(d(ee),{name:"hidden",label:"隐藏菜单",editor:"switch"}),_(d(ee),{visible:{dir:!1},disabled:!!e.item,inline:"",name:"raw",label:"源码模式",editor:"switch",tip:"页面是非低代码开发,不能在线编辑"},null,8,["disabled"])]),_:1},8,["title","model"]))}}),_l=I({name:"VIcon",__name:"Icon",props:{icon:{},label:{},active:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>({"is-active":t.active,"is-open":t.open})),a=()=>{r("click")};return(o,s)=>(y(),V(d(Xr),{effect:"dark",placement:"right",content:o.label,"show-after":600},{default:j(()=>[P("div",{class:ce(["v-apps-region__icon",i.value]),onClick:a},[(y(),V(Ge(o.icon)))],2)]),_:1},8,["content"]))}}),fe=I({name:"VPanel",__name:"panel",props:{title:{},subtitle:{},plus:{type:Boolean},back:{type:Boolean},edit:{type:Boolean},remove:{type:Boolean},save:{type:Boolean},header:{type:Boolean,default:!0},collapsable:{type:Boolean}},emits:["plus","back","remove","save","edit"],setup(n,{emit:e}){const t=n,r=e,i=D(!1),a=z(()=>({"is-collapsed":!!i.value})),o=()=>{r("plus")},s=()=>{r("edit")},l=()=>{r("back")},c=()=>{r("remove")},u=()=>{r("save")},p=z(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?J2:void 0,onClickBack:t.back?l:void 0,onClick:t.collapsable?()=>{i.value=!i.value}:void 0}:null),m=h=>{i.value=h};return(h,f)=>(y(),V(d(dr),{class:ce(["v-panel",a.value]),border:!1,header:p.value,fit:""},Kt({actions:j(()=>[t.plus?(y(),V(d(Be),{key:0,size:h.$attrs.size,mode:"icon",icon:d(go),background:"hover",title:"新增",onClick:o},null,8,["size","icon"])):R("",!0),t.edit?(y(),V(d(Be),{key:1,size:h.$attrs.size,mode:"icon",icon:d(Rl),background:"hover",title:"编辑",onClick:s},null,8,["size","icon"])):R("",!0),t.remove?(y(),V(d(Be),{key:2,size:h.$attrs.size,mode:"icon",icon:d(Dl),background:"hover",title:"清除",onClick:c},null,8,["size","icon"])):R("",!0),t.save?(y(),V(d(Be),{key:3,size:h.$attrs.size,mode:"icon",icon:d(Eu),background:"hover",title:"保存",onClick:u},null,8,["size","icon"])):R("",!0),t.collapsable?mt((y(),V(d(Be),{key:4,size:h.$attrs.size,mode:"icon",icon:d(Ml),background:"hover",title:"展开",onClick:f[0]||(f[0]=v=>m(!1))},null,8,["size","icon"])),[[Xt,i.value]]):R("",!0),t.collapsable?mt((y(),V(d(Be),{key:5,size:h.$attrs.size,mode:"icon",icon:d(q2),background:"hover",title:"收起",onClick:f[1]||(f[1]=v=>m(!0))},null,8,["size","icon"])),[[Xt,!i.value]]):R("",!0),de(h.$slots,"actions")]),default:j(()=>[de(h.$slots,"default")]),_:2},[h.$slots.footer?{name:"footer",fn:j(()=>[de(h.$slots,"footer")]),key:"0"}:void 0]),1032,["class","header"]))}}),s9={class:"v-tabs__header"},l9={key:0,class:"v-tabs__actions"},gi=I({__name:"tabs",props:{items:{default:()=>[]},menus:{},modelValue:{},stretch:{type:Boolean},checkable:{type:Boolean}},emits:["update:modelValue","command","remove","action-click"],setup(n,{emit:e}){const t=n,r=e,i=D((t.modelValue||t.items[0]?.name)??"");oe(i,()=>{r("update:modelValue",i.value)}),oe(()=>t.modelValue,l=>{i.value=l});const a=l=>{r("command",l)},o=l=>{r("remove",l)},s=l=>{r("action-click",l)};return(l,c)=>(y(),V(d(dr),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:j(()=>[P("div",s9,[_(d(Co),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),onTabRemove:o,onActionClick:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(y(),M("div",l9,[t.menus&&t.menus.length?(y(),V(d(Be),{key:0,mode:"icon",size:"small",icon:d(Ja),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:a},{item:j(({item:u})=>[P("span",null,[t.checkable?(y(),V(d(uo),{key:0,class:ce({"v-tabs__checked":!0,"is-checked":u.checked})},null,8,["class"])):R("",!0),le(" "+te(u.label),1)])]),_:1},8,["icon","menus"])):R("",!0)])):R("",!0)])]),default:j(()=>[de(l.$slots,"default")]),_:3}))}}),c9={key:2,class:"v-item__index"},u9={class:"v-item__content"},d9={key:3,class:"v-item__subtitle"},Me=I({name:"VItem",__name:"item",props:{icon:{},index:{},tag:{},tagType:{},title:{},subtitle:{},actions:{default:()=>[]},background:{type:Boolean},border:{type:Boolean},switch:{type:Boolean},modelValue:{},active:{type:Boolean},hover:{type:Boolean},small:{type:Boolean}},emits:["click","action","update:modelValue","switch"],setup(n,{emit:e}){const t={add:{label:"创建",icon:go},copy:{label:"复制",icon:po},edit:{label:"编辑",icon:vo},remove:{label:"删除",icon:lr},lock:{label:"锁定",icon:ho},unlock:{label:"解锁",icon:Cu},invisible:{label:"隐藏",icon:bo},visible:{label:"显示",icon:Hu},home:{label:"主页",icon:ku}},r=n,i=e,a=D(!!r.modelValue),o=z(()=>r.actions.map(u=>{const p=t[u];return{name:u,...p}})),s=z(()=>({"is-background":r.background,"is-border":r.border,"is-active":r.active,"is-hover":r.hover,"is-small":r.small})),l=()=>{i("click",r.modelValue)},c=async u=>{u==="remove"?await Zr.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:u,modelValue:r.modelValue}):i("action",{name:u,modelValue:r.modelValue})};return oe(a,u=>{i("update:modelValue",u),i("switch",u)}),oe(()=>r.modelValue,u=>{a.value=!!u}),(u,p)=>(y(),V(d(se),{class:ce(["v-item",s.value]),justify:"space-between",align:"center",onClick:l},{default:j(()=>[_(d(se),{class:"v-item__title",align:"center"},{default:j(()=>[de(u.$slots,"default",{},()=>[u.icon?(y(),V(d(it),{key:0,icon:u.icon},null,8,["icon"])):R("",!0),r.tag?(y(),V(d(N2),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:j(()=>[le(te(r.tag),1)]),_:1},8,["type"])):R("",!0),u.index!==void 0?(y(),M("span",c9," # "+te(u.index),1)):R("",!0),P("span",u9,te(u.title),1),u.subtitle?(y(),M("span",d9,te(u.subtitle),1)):R("",!0)])]),_:3}),_(d(se),{class:"v-item__actions",onClick:p[1]||(p[1]=hn(()=>{},["stop"]))},{default:j(()=>[(y(!0),M(ne,null,ae(o.value,m=>(y(),V(d(Be),{name:m.name,title:m.label,mode:"icon",size:"small",background:"none",type:"info",icon:m.icon,onClick:h=>c(m.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(y(),V(d(Fa),{key:0,modelValue:a.value,"onUpdate:modelValue":p[0]||(p[0]=m=>a.value=m),class:"v-item__switch",size:"small"},null,8,["modelValue"])):R("",!0),de(u.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),p9=["draggable"],h9={class:"v-box__name"},m9={class:"v-box__label"},Da=I({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean},tag:{},tagType:{}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},a=async()=>{await Zr.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},o=z(()=>({"is-active":t.active,"is-draggable":t.draggable})),s=()=>{r("dragstart",t)},l=()=>{r("dragend",t)};return(c,u)=>(y(),M("div",{class:ce(["v-box",o.value]),draggable:c.draggable,onDragstart:s,onDragend:l},[_(d(se),{direction:"column",justify:"center",align:"center"},{default:j(()=>[P("span",h9,te(t.name),1),P("span",m9,te(t.title),1)]),_:1}),t.editable?(y(),V(d(se),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:j(()=>[_(d(it),{icon:d(vo),onClick:i},null,8,["icon"]),_(d(it),{icon:d(lr),onClick:a},null,8,["icon"])]),_:1})):R("",!0),t.tag?(y(),M("span",{key:1,class:ce(["v-box__tag",{[`is-${t.tagType}`]:!!t.tagType}])},te(t.tag),3)):R("",!0)],42,p9))}}),f9={class:"v-context-viewer"},v9=I({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],a=u=>{const p=u.value,m=Ci(p);return m==="Object"||m==="Module"?Object.keys(p||{}).length===0:m==="Array"?p.length===0:!0},o=(u,p="this")=>typeof u=="object"?Array.isArray(u)?u.map((m,h)=>{const f=`[${h}]`;return{label:f,value:m,type:Ci(m),path:`${p}${f}`}}):Object.entries(u).map(([m,h])=>({label:m,value:h,type:Ci(h),path:`${p}.${m}`})).filter(m=>!m.label.startsWith("__")&&!i.includes(m.label)):[],s=(u,p)=>{if(u.level===0)p(o(t.context));else{const m=Dt(u.data.value);p(o(m,u.data.path))}},l=u=>{r("copy",u.path)},c=u=>{r("pick",u.path)};return(u,p)=>(y(),M("div",f9,[u.context?(y(),V(d(Wa),{key:0,lazy:"",load:s,"expand-on-click-node":!1,props:{isLeaf:a}},{default:j(({data:m})=>[_(Me,{title:m.label,clickable:"",onClick:h=>c(m),background:"",actions:["copy"],onAction:h=>l(m),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):R("",!0)]))}}),Mo=I({__name:"binder",props:{title:{},context:{},block:{},model:{},rules:{},modelValue:{type:Boolean},submitMethod:{type:Function},unbindEnabled:{type:Boolean}},emits:["unbind","submit","cancel","pick","update:modelValue","close"],setup(n,{emit:e}){const t=n,r=e,{searchResult:i,keyword:a}=O7(t.block,t.context),{copy:o}=td({}),s=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],l=D("normal"),c=D(),u=async k=>{r("submit",k),t.submitMethod?await t.submitMethod(k)&&p():p()},p=()=>{r("update:modelValue",!1),r("close")},m=()=>{r("unbind")},h=()=>{p()},f=async()=>{c.value?.submit()},v=k=>{r("pick",k)},g=k=>{o(k),yn.success({message:"已经复制到粘贴板"})};return(k,b)=>(y(),V(d(jt),{"model-value":t.modelValue,class:"v-binder",title:k.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:p},{default:j(()=>[_(d(se),{fit:"",direction:"row",overflow:"hidden"},{default:j(()=>[_(d(se),{width:"30%",height:"100%"},{default:j(()=>[_(gi,{class:"v-binder__tabs",items:s,modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=w=>l.value=w)},{default:j(()=>[_(d(se),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:j(()=>[mt(P("div",null,[_(d(Ye),{modelValue:d(a),"onUpdate:modelValue":b[0]||(b[0]=w=>qi(a)?a.value=w:null),size:"small",clearable:"","prefix-icon":d(Pl),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(y(!0),M(ne,null,ae(d(i),w=>(y(),M("div",null,[_(d(Qr),{"border-style":"dotted"},{default:j(()=>[le(te(w.title),1)]),_:2},1024),(y(!0),M(ne,null,ae(w.items,S=>(y(),V(Me,{title:S,background:"",actions:["copy"],small:"",onClick:C=>v(S),onAction:C=>g(S)},null,8,["title","onClick","onAction"]))),256))]))),256)),d(i).length?R("",!0):(y(),V(d(ze),{key:0}))],512),[[Xt,l.value==="normal"]]),mt(_(v9,{context:t.context,onCopy:g,onPick:v},null,8,["context"]),[[Xt,l.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),_(d(dr),{grow:"",header:null,border:!1},{footer:j(()=>[_(d(se),{justify:"space-between"},{default:j(()=>[_(d(se),null,{default:j(()=>[k.unbindEnabled?(y(),V(d(xe),{key:0,type:"warning",size:"default",onClick:m},{default:j(()=>[le(" 移除绑定 ")]),_:1})):R("",!0)]),_:1}),_(d(se),null,{default:j(()=>[_(d(xe),{type:"default",size:"default",onClick:h},{default:j(()=>[le(" 取消 ")]),_:1}),_(d(xe),{type:"primary",size:"default",onClick:f},{default:j(()=>[le(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:j(()=>[_(d(pi),{ref_key:"formRef",ref:c,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":u},{default:j(()=>[de(k.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),g9={class:"v-slots-picker__sn"},y9=I({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D(),a=z(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),o=l=>{i.value=l},s=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Ae("请选择插槽")};return(l,c)=>(y(),V(d(jt),pe({class:"v-slots-picker",title:"选择插槽",width:"600px",height:a.value,submit:"",cancel:"",onSubmit:s},l.$attrs),{default:j(()=>[_(d(zl),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),_(d(se),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:j(()=>[(y(!0),M(ne,null,ae(t.slots,(u,p)=>(y(),V(d(se),{class:ce(["v-slots-picker__item",{"is-active":u.name===i.value?.name}]),grow:"",flex:!1,onClick:m=>o(u)},{default:j(()=>[P("span",g9,"#"+te(p+1),1),le(" "+te(u.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),o2=I({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=z(()=>[`is-${e.mode}`]),r=z(()=>{if(e.mode==="pc")return 1;const a=e.mode==="mobile"?wl:xl,{width:o,height:s}=a,l=o>0?(e.width||0)/o:1,c=s>0?(e.height||0)/s:1;return Math.min(l,c)}),i=z(()=>{if(e.mode==="pc")return{};const a=e.mode==="mobile"?wl:xl,{width:o,height:s}=a;return{width:`${o}px`,height:`${s}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(a,o)=>(y(),M("div",{class:ce(["v-viewport",t.value]),style:Rt(i.value)},[de(a.$slots,"default")],6))}}),b9=I({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=an(),r=z(()=>e.value?.pages||[]),{current:i}=Ie(),a=D(!1),o=D(),s=D(),l=()=>{s.value=void 0,o.value=void 0,a.value=!0},c=async h=>{const{name:f,modelValue:v}=h,{data:g,node:k}=v;if(f==="add"&&(o.value=void 0,s.value=g.id,a.value=!0),f==="edit"&&(o.value=Qt(g),s.value=void 0,a.value=!0),f==="remove"){if(g.dir){const b=e.value?.getPage(g.id);if(b&&b.children?.length){Ae("请先删除子页面");return}}e.value?.removePage(g.id)}if(f==="copy"){const b=k.parent?.data.id;e.value?.clonePage(g,b)}f==="home"&&(e.value?.setHomepage(g.id),We("设置主页成功","success"))},u=async h=>{h.raw&&We("这是源码模式页面,不能低代码设计","warning"),h.dir||h.raw?t.project.value?.deactivate():t.project.value?.active(h)},p=(h,f,v)=>v==="inner"?!!f.data.dir:!0,m=()=>{e.value?.update({pages:Gi(r)})};return(h,f)=>(y(),V(d(fe),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:l},{default:j(()=>[_(d(Wa),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":p,onNodeDrop:m},{default:j(({data:v,node:g})=>[_(d(Me),{class:"v-pages-widget__item",icon:d(fa)[v.icon],title:v.title,subtitle:v.name,"model-value":{data:v,node:g},actions:v.dir?["add","edit","remove"]:v.raw?["home","edit","remove"]:["home","copy","edit","remove"],onAction:c,onClick:k=>u(v),active:d(i)?.id===v.id,tag:d(e)?.homepage===v.id?"主页":void 0,"tag-type":"success",grow:"",small:"",background:"",hover:""},null,8,["icon","title","subtitle","model-value","actions","onClick","active","tag"])]),_:1},8,["data"]),a.value?(y(),V(o9,{key:0,modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=v=>a.value=v),item:o.value,"parent-id":s.value},null,8,["modelValue","item","parent-id"])):R("",!0)]),_:1}))}}),w9={class:"v-file-setter"},Po=I({name:"FileSetter",__name:"file",props:{modelValue:{},attachment:{}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,{engine:i,project:a}=an(),o=D([]),s=D(!1),l=b=>Array.isArray(b)?b.map(w=>({name:w.filename,url:w.filepath})):b?{name:b.filename,url:b.filepath}:null,c=async b=>{if(i&&a.value){const w=await i.service.uploadStaticFile(b,a.value.id);return l(w)}return null},u=b=>b?(b||"").split(",").map(w=>({url:w})):[],p=D(u(t.modelValue)),m=z(()=>Array.isArray(p.value)?p.value.map(b=>b.url).join(","):p.value?p.value.url:"");oe(()=>t.modelValue,b=>{p.value=u(b)}),oe(s,async b=>{if(b){const w=await i.service.getStaticFiles(a.value?.id).catch(()=>null);o.value=l(w)}});const h=()=>{if(!p.value||Array.isArray(p.value)&&p.value.length===0)return Ae("请选择文件"),!1;const b=(t.attachment?.accept||"").toLowerCase().split(",");return b.length>0?[].concat(p.value).every(w=>{const S=w.name||w.url.split("?")[0],C=S.substring(S.lastIndexOf(".")).toLowerCase();return b.includes(C)})?!0:(Ae(`只支持 ${b.join(",")} 文件`),!1):!0},f=()=>{h()&&(r("change",m.value),r("update:modelValue",m.value),s.value=!1)},v=()=>{p.value=[],r("change",void 0),r("update:modelValue",void 0),s.value=!1},g=()=>{s.value=!0},k=b=>{b.name&&a.value?.id&&i.service.removeStaticFile(b.name,a.value?.id)};return(b,w)=>(y(),M("div",w9,[_(d(Ye),pe({readonly:"",onFocus:g,"model-value":t.modelValue,"suffix-icon":d(G2)},b.$attrs),null,16,["model-value","suffix-icon"]),s.value?(y(),V(d(jt),{key:0,modelValue:s.value,"onUpdate:modelValue":w[1]||(w[1]=S=>s.value=S),title:"文件选择器",width:"600px",height:"400px",cancel:"",submit:"",onSubmit:f},{extra:j(()=>[_(d(xe),{type:"warning",size:"default",onClick:v},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Mb),pe({size:"small","list-type":"list",selectable:!0,uploader:c,"model-value":o.value,"select-value":p.value,"onUpdate:selectValue":w[0]||(w[0]=S=>p.value=S)},t.attachment,{onRemove:k}),null,16,["model-value","select-value"])]),_:1},8,["modelValue"])):R("",!0)]))}}),x9=I({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=r2(),{blocks:t,engine:r}=E7(),i=[{label:"设计",value:"Schema",border:!0},{label:"引用",value:"UrlSchema",border:!0},{label:"插件",value:"Plugin",border:!0}],a={Schema:{label:"设计",type:"primary"},UrlSchema:{label:"引用",type:"warning"},Plugin:{label:"插件",type:"danger"}},o=D(void 0),{current:s}=Ie(),l=D(!1),c=z(()=>o.value?.id?"编辑区块":"新增区块"),u=z(()=>`(共 ${t.value.length} 个)`),p=()=>({fromType:"Schema",name:"",title:"",urls:"",library:"",type:"block"}),m=z(()=>{if(o.value?.fromType==="UrlSchema")return".json";if(o.value?.fromType==="Plugin")return".js,.css,.json"}),h=z(()=>o.value?.fromType==="Plugin"),f=async x=>{const $=x,E=r.project.value;if(!E)return!1;if(x.id)if(!E.existBlockName($.name,[$.id]))E.updateBlock($);else return Ae(`名称【${$.name}】已经存在,请更换名称`),!1;else if(!E.existBlockName($.name))E.createBlock($);else return Ae(`名称【${$.name}】已经存在,请更换名称`),!1;return!0},v=()=>{o.value=p(),l.value=!0},g=x=>{o.value=Qt(x),l.value=!0},k=x=>{r.project.value?.removeBlock(x.id)},b=x=>{o.value&&(o.value.name=Wr(x))},w=async x=>{(!x.fromType||x.fromType==="Schema")&&r.project.value?.active(x)},S=async x=>{const $=vg(x),E=await r.assets.getBlockMaterial($,x.name),U=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;U&&E&&U.setDragging(E)},C=()=>{const x=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;x&&x.setDragging(null)};return(x,$)=>(y(),V(d(fe),{class:"v-blocks-widget",title:"区块管理",subtitle:u.value,plus:"",onPlus:v},{default:j(()=>[_(d(Xi),{wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),M(ne,null,ae(d(t),E=>(y(),V(d(Ki),{key:E.id,span:d(e)},{default:j(()=>[_(d(Da),{name:E.name,title:E.title,active:d(s)?.id===E.id,editable:"",tag:a[E.fromType||"Schema"]?.label,tagType:a[E.fromType||"Schema"]?.type,onEdit:U=>g(E),onRemove:U=>k(E),onClick:U=>w(E),draggable:d(s)?.id!==E.id,onDragstart:U=>S(E),onDragend:C},null,8,["name","title","active","tag","tagType","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(t).length?R("",!0):(y(),V(d(ze),{key:0})),_(d(Vt),{modelValue:l.value,"onUpdate:modelValue":$[0]||($[0]=E=>l.value=E),title:c.value,model:o.value,width:"600px",height:"400px","form-props":{tooltipMessage:!1},"submit-method":f},{default:j(()=>[_(d(ee),{name:"fromType",label:"类型",required:"",editor:"radio",disabled:!!o.value?.id,options:i},null,8,["disabled"]),_(d(ee),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:d(Ct)},onChange:b},null,8,["rules"]),_(d(ee),{name:"title",label:"标题",required:""}),o.value?.fromType==="Plugin"?(y(),V(d(ee),{key:0,name:"library",label:"插件名称",required:""})):R("",!0),["Plugin","UrlSchema"].includes(o.value?.fromType||"")?(y(),V(d(ee),{key:1,name:"urls",label:"资源文件",required:"",editor:Po,props:{attachment:{accept:m.value,multiple:h.value}}},null,8,["props"])):R("",!0)]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),_9={class:"v-components-widget__search"},S9={key:0,class:"v-components-widget__result"},k9={class:"v-components-widget__list"},j9=I({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=r2(),{tabs:r,currentTab:i,currentGroup:a,model:o,searchKey:s,searchResult:l}=T7(),c=p=>{const m=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;m&&m.setDragging(p)},u=()=>{const p=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;p&&p.setDragging(null)};return(p,m)=>(y(),V(d(fe),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:j(()=>[P("div",_9,[_(d(Ye),{modelValue:d(s),"onUpdate:modelValue":m[0]||(m[0]=h=>qi(s)?s.value=h:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:j(()=>[_(d(Wu))]),_:1},8,["modelValue"])]),d(s)?(y(),M("div",S9,[_(d(Xi),{wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),M(ne,null,ae(d(l),h=>(y(),V(d(Ki),{span:d(e),key:h.name},{default:j(()=>[_(d(Da),{name:h.name,title:h.label||h.name,draggable:"",onDragstart:f=>c(h),onDragend:u},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),d(l).length?R("",!0):(y(),V(d(ze),{key:0}))])):(y(),V(d(Co),{key:1,items:d(r),modelValue:d(i),"onUpdate:modelValue":m[2]||(m[2]=h=>qi(i)?i.value=h:null)},{default:j(()=>[P("div",k9,[d(a)?(y(),V(d(T2),{key:0,modelValue:d(o)[d(i)],"onUpdate:modelValue":m[1]||(m[1]=h=>d(o)[d(i)]=h)},{default:j(()=>[(y(!0),M(ne,null,ae(d(a).children,h=>(y(),V(d(B2),{key:h.name,name:h.name,title:`${h.label} (${h.count})`},{default:j(()=>[h.components?(y(),V(d(Xi),{key:0,wrap:"wrap",gutter:5},{default:j(()=>[(y(!0),M(ne,null,ae(h.components,f=>(y(),V(d(Ki),{span:d(e),key:f.name},{default:j(()=>[_(d(Da),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>c(f),onDragend:u},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):R("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):R("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),V9=I({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=wt(),{current:i}=Ie(),a=D([]),o=(x,$)=>{if($==="slot")return[];if(Ce(x))return x.locked?["unlock"]:["lock"];const E=x.parent;return E&&(E.locked||E.invisible)?[]:i.value?.locked?[]:x.locked?["unlock"]:x.invisible?["visible"]:["lock","invisible","copy","remove"]},s=(x,$)=>{const E={};if(!x.some(T=>T.slot))return l(x);for(const T of x){const B=T.slot?.name||"default";E[B]||(E[B]=[]),E[B].push(T)}const U=[];for(const[T,B]of Object.entries(E))U.push({id:`${$.id}-${T}`,label:`#${T}`,type:"slot",model:$,disabled:!0,children:l(B)});return U},l=x=>{const $=[];return x.forEach(E=>{const U={id:E.id,label:E.name,type:E.id,model:E};Array.isArray(E.children)&&(U.children=s(E.children,E)),$.push(U)}),$},c=()=>{if(!i.value)return[];const{id:x,name:$,nodes:E}=i.value;return[{id:x,label:$,type:x,model:i.value,children:l(E)}]},u=async()=>{a.value=c(),r.value?.model&&(await dt(),t.value?.setSelected(r.value.model))},p=z(()=>r.value?.model.id),m=x=>{const $=x.data;if($.type==="slot"||Ce($.model)||$.model.locked||$.model.name==="template")return!1;const E=e.assets.componentMap.get($.model.name);return E?(t.value?.setDragging(E),!0):!1},h=async(x,$,E)=>{const U=$.data,T={prev:"top",next:"bottom",inner:"inner"}[E];let B=!1;if(Ce(U.model))B=E==="inner",t.value?.setDropping(B?U.model:null,"inner");else{const F=U.model;B=!!await t.value?.allowDrop(F,T),t.value?.setDropping(B?F:null,"inner")}return B},f=x=>{const $=x?.model;if(!$||$.invisible||x.type==="slot"){t.value?.setSelected(null),t.value?.setHover(null);return}t.value?.setSelected($),t.value?.setHover(null)},v=async(x,$,E)=>{const U=x.data,T=$.data;if(Ce(T.model)){const N=U.model;delete N.slot,i.value?.move(N,void 0,"inner"),t.value?.setDropping(null),t.value?.setDragging(null);return}const B=T.model,F={before:"left",after:"right"}[E]||"inner";if(!await t.value?.allowDrop(B,F)){t.value?.setDropping(null),u(),yn.warning({message:`${U.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const A=await t.value?.getDropSlot(E==="inner"?B:B.parent);if(A!==null){const N=U.model;N.slot=A,i.value?.move(N,B,F)}else u();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},g=x=>{if(x.type==="slot"){t.value?.setHover(null);return}Ce(x.model)?t.value?.setHover(x.model):(t.value?.setHover(x.model),x.model.invisible&&t.value?.setHover(null),x.model.name==="slot"&&t.value?.setHover(null))},k=()=>{t.value?.setHover(null)},b=x=>{const $=x.data;$.dragging=!0;const E=e.assets.componentMap.get($.model.name);E&&t.value?.setDragging(E)},w=async x=>{const $=x.data;$.dragging=!1},S=(x,$)=>{x&&((x.id===$.id||!Ce(x)&&$.isChild(x))&&t.value?.setSelected(null),t.value?.setHover(null))},C=x=>{const{name:$,modelValue:E}=x,U=r.value?.model;switch($){case"lock":S(U,E),E.lock();break;case"unlock":S(U,E),E.unlock();break;case"invisible":S(U,E),E.setVisible(!1);break;case"visible":E.setVisible(!0);break;case"copy":const T=i.value?.cloneNode(E);T&&t.value?.setSelected(T);break;case"remove":S(U,E),i.value?.removeNode(E);break}};return oe(e.changed,u,{immediate:!0}),(x,$)=>(y(),V(d(fe),{class:"v-outline-widget",title:"大纲树"},{default:j(()=>[(y(),V(d(Wa),{key:d(e).changed.value,data:a.value,"node-key":"id","default-expand-all":"",draggable:"","empty-text":"请新建或打开文件","current-node-key":p.value,"highlight-current":!0,"expand-on-click-node":!1,"allow-drop":h,"allow-drag":m,onCurrentChange:f,onNodeDrop:v,onNodeDragStart:b,onNodeDragEnd:w},{default:j(({data:E,node:U})=>[_(d(Me),{class:ce(["v-outline-widget__item",{"is-locked":E.model.locked,"is-invisible":E.model.invisible,"is-dragging":E.dragging,"is-slot":E.type==="slot"}]),active:!E.model.invisible&&U.isCurrent&&E.type!=="slot",grow:"",small:"",background:"",hover:"","model-value":E.model,icon:E.model.locked?d(ho):E.model.invisible?d(bo):void 0,title:E.label,subtitle:E.type,actions:o(E.model,E.type),onAction:C,onMouseenter:T=>g(E),onMouseleave:k},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"]))]),_:1}))}}),C9=I({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=i2(),i=z(()=>`(共 ${r.value} 条)`),a=s=>{s.name==="remove"&&e.value?.remove(s.modelValue.id)},o=async()=>{await On("确定要清空历史记录吗?")&&e.value?.clear()};return(s,l)=>(y(),V(d(fe),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!d(r),onRemove:o},{default:j(()=>[d(r)===0?(y(),V(d(ze),{key:0,"image-size":50})):R("",!0),d(e)?(y(!0),M(ne,{key:1},ae(d(e).items,(c,u)=>(y(),V(d(Me),{index:u+1,title:c.label,"model-value":c,active:u==d(e).index,small:"",background:"",actions:["remove"],onAction:a,onClick:p=>d(t)(c.id)},null,8,["index","title","model-value","active","onClick"]))),256)):R("",!0)]),_:1},8,["subtitle","remove"]))}}),$9=I({__name:"base-info",setup(n){const e=C7.map(t=>({label:t,value:t.toLowerCase()}));return(t,r)=>(y(),M("div",null,[_(d(ee),{name:"method",label:"请求类型",required:"",editor:"radio",options:d(e)},null,8,["options"]),_(d(ee),{name:"name",label:"接口名称",required:"",rules:{pattern:d(Ct),message:"名称格式不正确"}},null,8,["rules"]),_(d(ee),{name:"label",label:"备注说明",required:""}),_(d(ee),{name:"url",label:"接口URL",required:""})]))}}),Te=Ji({loader:()=>p2(()=>import("./Editor-BKlikwSl-BjFYNt7y.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:I({render(){return Re("div","正在拼命加载...")}}),errorComponent:I({render(){return Re("div","组件加载失败!")}})}),E9=I({__name:"request-settings",setup(n){const e=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],t=Mt("currentModel",null);return(r,i)=>(y(),M("div",null,[_(d(se),{justify:"space-between"},{default:j(()=>[_(d(ee),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),_(d(ee),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),_(d(ee),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),_(d(ee),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),_(d(ee),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),_(d(ee),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:e,props:{button:!0}}),_(d(ee),{size:"small",name:"headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction"},{editor:j(()=>[_(d(Te),{dark:"",height:"260px",modelValue:d(t).headers.value,"onUpdate:modelValue":i[0]||(i[0]=a=>d(t).headers.value=a)},null,8,["modelValue"])]),_:1})]))}}),A9=I({__name:"jsonp-options",setup(n){return(e,t)=>(y(),M("div",null,[_(d(ee),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),_(d(ee),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),_(d(ee),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),_(d(ee),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]))}}),T9=P("span",null,"模拟数据模板",-1),B9=I({__name:"mock-template",setup(n){const e=Mt("currentModel",null),{project:t}=an(),r=z(()=>t.value?.config||{}),i=()=>{window.open("https://vtj.pro/help/mock.html")};return(a,o)=>(y(),M("div",null,[r.value.mock?R("",!0):(y(),V(d(zl),{key:0,type:"warning",title:"需要在项目配置中开启模拟数据",closable:!1,style:{"margin-bottom":"20px"}})),_(d(ee),{size:"small",name:"mock",label:"开启模拟数据",disabled:!r.value.mock,editor:"switch"},null,8,["disabled"]),_(d(se),{justify:"space-between"},{default:j(()=>[T9,_(d(Be),{icon:d(yo),mode:"text",label:"帮助",onClick:i},null,8,["icon"])]),_:1}),_(d(ee),{size:"small",name:"mockTemplate.value",label:" "},{editor:j(()=>[_(d(Te),{dark:"",height:r.value.mock?"330px":"280px",lang:"typescript",disabled:!r.value.mock,readonly:!r.value.mock,modelValue:d(e).mockTemplate.value,"onUpdate:modelValue":o[0]||(o[0]=s=>d(e).mockTemplate.value=s)},null,8,["height","disabled","readonly","modelValue"])]),_:1})]))}}),z9={key:0},D9=I({__name:"form",props:{model:{},project:{}},setup(n){const e=n,t=z(()=>e.model?"编辑API":"新增API"),r=D("base"),i=D(),a=D(),o=D(e.model||{}),s=D(!1),l=D(""),c=[{label:"基础信息",value:"base"},{label:"请求配置",value:"settings"},{label:"模拟数据",value:"mock"}];Wi("currentModel",o);const u=z(()=>o.value?.method==="jsonp");oe(()=>e.model,v=>{o.value=Object.assign({},v||{}),r.value="base"},{immediate:!0}),oe(r,async()=>{a.value?.formRef.validate(async v=>{v||(await dt(),r.value="base")})});const p=()=>{i.value?.cancel()},m=()=>{a.value?.submit()},h=async v=>e.project?.existApiName(o.value.name,e.model?[o.value.id]:[])?(Ae(`API名称 [ ${o.value.name} ] 已存在`),!1):o.value.headers&&!De(o.value.headers,window)||o.value.mockTemplate&&!De(o.value.mockTemplate,window)?!1:(e.project?.setApi(o.value),i.value?.close(),!0),f=()=>{if(o.value.mockTemplate){const v=gt(o.value.mockTemplate,{},!0),{url:g,method:k}=o.value,b=Xn.mock(v({url:g,type:k}));l.value=JSON.stringify(b,null,2),s.value=!0}};return(v,g)=>(y(),V(d(jt),{ref_key:"dialogRef",ref:i,title:t.value,width:"1000px",height:"600px"},{default:j(()=>[_(d(se),{fit:""},{default:j(()=>[_(d(se),{width:"100px",shrink:!1},{default:j(()=>[_(d(Co),{modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=k=>r.value=k),items:c,"tab-position":"left",border:"",fit:""},null,8,["modelValue"])]),_:1}),_(d(dr),{header:null,border:!1,overflow:"auto",grow:"",shrink:!0,fit:""},{footer:j(()=>[_(d(se),{justify:"space-between"},{default:j(()=>[P("div",null,[r.value==="mock"?(y(),V(d(xe),{key:0,disabled:!e.project?.config?.mock,type:"warning",onClick:f},{default:j(()=>[le(" 预览 ")]),_:1},8,["disabled"])):R("",!0)]),P("div",null,[_(d(xe),{onClick:p},{default:j(()=>[le("取消")]),_:1}),_(d(xe),{type:"primary",onClick:m},{default:j(()=>[le("保存")]),_:1})])]),_:1})]),default:j(()=>[_(d(pi),{ref_key:"formRef",ref:a,footer:!1,labelPosition:"top",tooltipMessage:!1,model:o.value,submitMethod:h},{default:j(()=>[mt(_($9,null,null,512),[[Xt,r.value==="base"]]),r.value==="settings"?(y(),M("div",z9,[u.value?(y(),V(A9,{key:0})):(y(),V(E9,{key:1}))])):R("",!0),r.value==="mock"?(y(),V(B9,{key:1})):R("",!0)]),_:1},8,["model"])]),_:1})]),_:1}),s.value?(y(),V(d(Bl),{key:0,class:"v-drawer",modelValue:s.value,"onUpdate:modelValue":g[1]||(g[1]=k=>s.value=k),title:"模拟数据结果",direction:"btt","append-to-body":"",size:"80%"},{default:j(()=>[_(d(Te),{"model-value":l.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):R("",!0)]),_:1},8,["title"]))}}),O9=I({name:"ApisWidget",__name:"index",setup(n){const e=D(!1),t=D(null),r=D(!1),i=z(()=>a.value?.apis||[]),{project:a}=an(),o=()=>({id:"",method:"get",name:"",label:"",url:"",settings:{loading:!0,failMessage:!0,validSuccess:!0,originResponse:!1,injectHeaders:!1,type:"form"},headers:{type:"JSExpression",value:"({})"},jsonpOptions:{},mock:!1,mockTemplate:{type:"JSFunction",value:`(req) => {
|
|
96
|
-
return {
|
|
97
|
-
code: 0,
|
|
98
|
-
data: null
|
|
99
|
-
}
|
|
100
|
-
}`}}),s=()=>{e.value=!0,r.value=!1,t.value=o()},l={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},c=p=>{p.name==="edit"&&u(p.modelValue),p.name==="remove"&&a.value?.removeApi(p.modelValue.name)},u=p=>{r.value=!0,t.value=Qt(p),e.value=!0};return(p,m)=>(y(),V(d(fe),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:s},{default:j(()=>[(y(!0),M(ne,null,ae(i.value,h=>(y(),V(d(Me),{key:h.id,small:"",title:h.name,subtitle:h.label,"model-value":h,tag:h.method?.toUpperCase(),"tag-type":l[h.method||"get"],background:"",actions:["edit","remove"],onClick:f=>u(h),onAction:c},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),i.value.length===0?(y(),V(d(ze),{key:0,"image-size":50})):R("",!0),_(D9,{modelValue:e.value,"onUpdate:modelValue":m[0]||(m[0]=h=>e.value=h),model:t.value,project:d(a)},null,8,["modelValue","model","project"])]),_:1}))}}),I9=I({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=n2(),r=D(!1),i=D(!1),a=D({}),o=z(()=>i.value?"查看依赖":a.value?"编辑依赖":"新增依赖"),s=f=>f.required||f.official?[]:["edit","remove"],l=f=>f.official&&!f.required,c=async f=>(f.urls=f.urls.split(`
|
|
101
|
-
`),t.project.value?.setDeps(f),!0),u=f=>{t.project.value?.setDeps(f)},p=()=>{i.value=!1,r.value=!0,a.value=null},m=f=>{i.value=!0,a.value={...f,urls:f.urls.join(`
|
|
102
|
-
`)},r.value=!0},h=(f,v)=>{v.name==="edit"&&(a.value={...f,urls:f.urls.join(`
|
|
103
|
-
`)},i.value=!1,r.value=!0),v.name==="remove"&&t.project.value?.removeDeps(f)};return(f,v)=>(y(),V(d(fe),{class:"v-deps-widget",title:"依赖管理",plus:"",onPlus:p},{default:j(()=>[(y(!0),M(ne,null,ae(d(e),g=>(y(),V(d(Me),{key:g.package,title:g.package,subtitle:g.version,actions:s(g),background:"",switch:l(g),modelValue:g.enabled,"onUpdate:modelValue":k=>g.enabled=k,onSwitch:k=>u(g),onClick:k=>m(g),onAction:k=>h(g,k)},null,8,["title","subtitle","actions","switch","modelValue","onUpdate:modelValue","onSwitch","onClick","onAction"]))),128)),_(d(Vt),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=g=>r.value=g),width:"600px",height:"500px",title:o.value,model:a.value,submitMethod:c,formProps:{disabled:i.value,tooltipMessage:!1}},{default:j(()=>[_(d(ee),{name:"package",label:"包名",required:"",disabled:!!a.value},null,8,["disabled"]),_(d(ee),{name:"version",label:"版本",required:""}),_(d(ee),{name:"library",label:"导出名称",required:""}),_(d(ee),{name:"urls",label:"资源文件",editor:"textarea",props:{rows:3},tip:"多个资源可以换行输入",required:""}),_(d(ee),{name:"assetsUrl",label:"物料URL"}),_(d(ee),{name:"assetsLibrary",label:"物料名称"})]),_:1},8,["modelValue","title","model","formProps"])]),_:1}))}}),R9=I({__name:"actions",props:{position:{},model:{},path:{default:()=>[]}},emits:["action","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>t.model.name),a=z(()=>!Ce(t.model)&&!t.model.locked),o=z(()=>t.path.map(u=>({command:u,label:u.name,onMouseenter:()=>{r("action",{type:"hover",model:u})}}))),s=[{name:"move",icon:Y2,title:"移动",draggable:!0,onDragstart:()=>{r("dragstart",t.model)},onDragend:()=>{r("dragend",t.model)}},{name:"prev",icon:Mu,title:"向前移动"},{name:"next",icon:Ru,title:"向后移动"},{name:"copy",icon:po,title:"复制"},{name:"remove",icon:lr,title:"删除"}],l=u=>{r("action",{type:"selected",model:u.command})},c=async u=>{u.name==="remove"?await On("确定删除?")&&r("action",{type:u.name,model:t.model}):r("action",{type:u.name,model:t.model})};return(u,p)=>(y(),M("div",{class:ce(["v-actions",[`is-${t.position}`]])},[_(d(Be),{mode:"icon",size:"small",icon:d(mo),label:i.value,menus:o.value,background:"none",onCommand:l},null,8,["icon","label","menus"]),_(d(F5),{disabled:!a.value,mode:"icon",size:"small",items:s,background:"none",onClick:c},null,8,["disabled"])],2))}}),M9={key:1,class:"v-designer__placeholder"},P9=I({name:"VDesigner",inheritAttrs:!1,__name:"index",setup(n,{expose:e}){const t=D(),r=D(),{width:i,height:a}=bn(t),{dependencies:o,engine:s,apis:l}=n2(),{current:c,isEmpty:u}=Ie(),p=z(()=>s.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc"),m=z(()=>s.project.value?.config||{}),{designer:h,hover:f,dropping:v,selected:g}=B7(r,o,l,m),k=S=>{const C=S.type,x=S.model;if(c.value)switch(C){case"remove":c.value.removeNode(x),h.value?.setSelected(null);break;case"copy":const $=c.value.cloneNode(x);h.value?.setSelected($);break;case"prev":c.value.movePrev(x),h.value?.setSelected(x);break;case"next":c.value.moveNext(x),h.value?.setSelected(x);break;case"hover":h.value?.setHover(x);break;case"selected":h.value?.setSelected(x);break}},b=S=>{if(S&&h.value){const C=s.assets.componentMap.get(S.name);C&&h.value.setDragging(C),h.value.setDraggingNode(S)}},w=()=>{h.value&&(h.value.setDraggingNode(null),h.value.setDragging(null))};return e({designer:h,mode:p}),(S,C)=>(y(),M("div",{ref_key:"container",ref:t,class:"v-designer"},[_(d(o2),{mode:p.value,width:d(i),height:d(a)},{default:j(()=>[P("iframe",{ref_key:"iframe",ref:r,frameborder:"0"},null,512),d(v)?(y(),M("div",{key:0,class:ce(["v-designer__dropping","is-inner"]),style:Rt(d(v).style)},null,4)):R("",!0),d(f)?(y(),M("div",{key:1,class:"v-designer__hover",style:Rt(d(f).style)},[P("span",{class:ce(`is-${d(f).position}`)},[le(te(d(f).model.name)+": ",1),P("i",null,te(d(f).model.id),1)],2)],4)):R("",!0),d(g)?(y(),M("div",{key:2,class:"v-designer__selected",style:Rt(d(g).style)},[_(R9,{position:d(g).position,model:d(g).model,path:d(g).path,onAction:k,onDragstart:b,onDragend:w},null,8,["position","model","path"])],4)):R("",!0)]),_:1},8,["mode","width","height"]),d(c)?R("",!0):(y(),V(d(ze),{key:0,description:"请新建或打开文件"})),d(c)&&d(u)?(y(),M("div",M9," 您可以拖拽组件放置到这里 ")):R("",!0)],512))}}),mr=I({__name:"group",props:{context:{},current:{},title:{},nameLabel:{},valueLabel:{},createEmpty:{},list:{},remove:{},submit:{},itemTitle:{type:Function,default:n=>n.name}},setup(n){const e=n,t=D(),r=D(),i=D(!1),a=D(e.createEmpty()),o=D(!1),s=z(()=>o.value?`编辑${e.title}`:`新增${e.title}`),l=()=>{o.value=!1,a.value=e.createEmpty(),i.value=!0},c=(f,v)=>{switch(v.name){case"edit":p(f);break;case"remove":e.remove(f);break}},u=f=>{a.value.value=f},p=f=>{o.value=!0,a.value={...f},i.value=!0},m=async f=>e.submit(f,o.value),h=()=>{r.value?.itemRef.validate()};return(f,v)=>(y(),V(d(fe),{title:e.title,class:"v-sub-panel",size:"small",fit:!1,plus:"",onPlus:l},{default:j(()=>[(y(!0),M(ne,null,ae(f.list,g=>(y(),V(d(Me),{title:e.itemTitle(g),border:"",actions:["edit","remove"],onAction:k=>c(g,k),onClick:k=>p(g)},null,8,["title","onAction","onClick"]))),256)),f.list.length?R("",!0):(y(),V(d(ze),{key:0,"image-size":40})),_(d(Mo),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=g=>i.value=g),title:s.value,"submit-method":m,model:a.value,block:f.current,context:f.context,onPick:u},{default:j(()=>[de(f.$slots,"fields",Cn($n({model:a.value,isEdit:o.value,nameLabel:f.nameLabel,valueLabel:f.valueLabel})),()=>[_(d(ee),{name:"name",label:f.nameLabel,required:"",disabled:o.value},null,8,["label","disabled"]),_(d(ee),{ref_key:"codeFieldRef",ref:r,name:"value",label:f.valueLabel,required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,dark:"",height:"350px",modelValue:a.value.value,"onUpdate:modelValue":v[0]||(v[0]=g=>a.value.value=g),onBlur:h},null,8,["modelValue"])]),_:1},8,["label"])])]),_:3},8,["modelValue","title","model","block","context"])]),_:3},8,["title"]))}}),N9=I({__name:"state",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.state||{}).map(([o,s])=>({name:o,value:Vn(s)}))),r=()=>({name:"",value:""}),i=o=>e.current?.removeState(o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.state[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSExpression",value:c};return De(u,e.context,!0)?(e.current?.setState(l,u),!0):!1};return(o,s)=>(y(),V(mr,{title:"状态数据",current:e.current,context:e.context,list:t.value,nameLabel:"状态数据名称",valueLabel:"状态初始值 [ JSExpression ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),F9=I({__name:"computed",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.computed||{}).map(([o,s])=>({name:o,value:Vn(s)}))),r=()=>({name:"",value:"() => { }"}),i=o=>e.current?.removeFunction("computed",o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.computed[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSFunction",value:c};return De(u,e.context,!0)?(e.current?.setFunction("computed",l,u),!0):!1};return(o,s)=>(y(),V(mr,{title:"计算属性",current:e.current,context:e.context,list:t.value,nameLabel:"计算属性名称",valueLabel:"计算函数 [ JSFunction ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),H9=I({__name:"methods",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Object.entries(e.current?.methods||{}).map(([o,s])=>({name:o,value:Vn(s)}))),r=()=>({name:"",value:"() => { }"}),i=o=>e.current?.removeFunction("methods",o.name),a=async(o,s)=>{const{name:l,value:c}=o;if(!s&&e.current?.methods[l])return Ae(`名称 ${l} 已存在,请更换!`),!1;const u={type:"JSFunction",value:c};return De(u,e.context,!0)?(e.current?.setFunction("methods",l,u),!0):!1};return(o,s)=>(y(),V(mr,{title:"组件方法",current:e.current,context:e.context,list:t.value,nameLabel:"方法名称",valueLabel:"方法函数 [ JSFunction ]",createEmpty:r,remove:i,submit:a},null,8,["current","context","list"]))}}),L9=I({__name:"lifeCycles",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>Pb.map(s=>({label:s,value:s}))),r=z(()=>Object.entries(e.current?.lifeCycles||{}).map(([s,l])=>({name:s,value:Vn(l)}))),i=()=>({name:"",value:"() => { }"}),a=s=>e.current?.removeFunction("lifeCycles",s.name),o=async(s,l)=>{const{name:c,value:u}=s;if(!l&&e.current?.lifeCycles[c])return Ae(`名称 ${c} 已存在,请更换!`),!1;const p={type:"JSFunction",value:u};return De(p,e.context,!0)?(e.current?.setFunction("lifeCycles",c,p),!0):!1};return(s,l)=>(y(),V(mr,{title:"生命周期",current:e.current,context:e.context,list:r.value,nameLabel:"名称",valueLabel:"函数 [ JSFunction ]",createEmpty:i,remove:a,submit:o},{fields:j(({model:c,nameLabel:u,isEdit:p,valueLabel:m})=>[_(d(ee),{name:"name",label:u,editor:"select",options:t.value,required:"",disabled:p},null,8,["label","options","disabled"]),_(d(ee),{name:"value",label:m,required:""},{editor:j(()=>[_(d(Te),{ref:"editorRef",dark:"",height:"350px",modelValue:c.value,"onUpdate:modelValue":h=>c.value=h},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),U9=I({__name:"watch",props:{context:{},current:{}},setup(n){const e=n,t=z(()=>(e.current?.watch||[]).map(s=>({...s,source:Vn(s.source),handler:Vn(s.handler)}))),r=()=>({source:"() => { }",deep:!1,immediate:!1,handler:"() => { }"}),i=s=>s.source,a=s=>e.current?.removeWatch(s),o=async(s,l)=>{const c={type:"JSFunction",value:s.source},u={type:"JSFunction",value:s.handler};if(!De(c,e.context,!0)||!De(u,e.context,!0))return!1;const p={...s,source:c,handler:u};return e.current?.setWatch(p),!0};return(s,l)=>(y(),V(mr,{title:"侦听器",current:e.current,context:e.context,list:t.value,nameLabel:"侦听源 [ JSFunction ]",valueLabel:"处理函数 [ JSFunction ]",createEmpty:r,remove:a,submit:o,itemTitle:i,grow:""},{fields:j(({model:c,nameLabel:u,valueLabel:p})=>[_(d(ee),{name:"source",label:u,required:""},{editor:j(()=>[_(d(Te),{dark:"",height:"100px",modelValue:c.source,"onUpdate:modelValue":m=>c.source=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]),_(d(ee),{name:"deep",modelValue:c.deep,"onUpdate:modelValue":m=>c.deep=m,label:"深度监听",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),_(d(ee),{name:"immediate",modelValue:c.immediate,"onUpdate:modelValue":m=>c.immediate=m,label:"立即执行",editor:"switch"},null,8,["modelValue","onUpdate:modelValue"]),_(d(ee),{name:"handler",label:p,required:""},{editor:j(()=>[_(d(Te),{dark:"",height:"130px",modelValue:c.handler,"onUpdate:modelValue":m=>c.handler=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"])]),_:1},8,["current","context","list"]))}}),W9=I({__name:"index",setup(n){const{current:e,context:t}=Ie();return(r,i)=>(y(),V(d(se),{class:"v-scripts-widget",direction:"column",fit:""},{default:j(()=>[_(N9,{current:d(e),context:d(t)},null,8,["current","context"]),_(F9,{current:d(e),context:d(t)},null,8,["current","context"]),_(H9,{current:d(e),context:d(t)},null,8,["current","context"]),_(L9,{current:d(e),context:d(t)},null,8,["current","context"]),_(U9,{current:d(e),context:d(t)},null,8,["current","context"])]),_:1}))}}),Ui=I({__name:"setters",props:{context:{},current:{},title:{},items:{},node:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=(o,s)=>{r("change",o,s)},a=o=>{r("remove",o)};return(o,s)=>(y(),V(d(fe),{title:t.title,class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[_(d(qe),{class:"v-properties-widget__form",size:"small","label-width":"90px",onKeydown:s[0]||(s[0]=Jn(hn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[(y(!0),M(ne,null,ae(t.items,l=>(y(),V(d(me),pe({ref_for:!0},l,{key:`${l.name}_${t.node.id}`,current:t.current,context:t.context,removable:t.removable,onChange:i,onRemove:a}),null,16,["current","context","removable"]))),128))]),_:1})]),_:1},8,["title"]))}}),J9=I({name:"PropertiesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=wt(),{node:i,commonProps:a,change:o,componentProps:s,customProps:l,addCustom:c,removeCustom:u,isExist:p}=I7(r),m=D(!1),h=D(),f=()=>{m.value=!0,h.value={name:""}},v=async k=>{const b=Object.keys(i.value?.props||{});return!p(k.name)&&!b.includes(k.name)?(c(k.name),!0):(Ae("已存在该属性名称"),!1)},g=async k=>{await On("确定删除?")&&u(k)};return(k,b)=>d(e)?(y(),V(d(se),{key:0,class:"v-properties-widget",direction:"column",fit:""},{default:j(()=>[d(i)?(y(),V(Ui,{key:0,title:"通用属性",current:d(e),context:d(t),node:d(i),items:d(a),onChange:d(o)},null,8,["current","context","node","items","onChange"])):R("",!0),d(i)&&d(s).length?(y(),V(Ui,{key:1,title:"组件属性",current:d(e),context:d(t),node:d(i),items:d(s),onChange:d(o)},null,8,["current","context","node","items","onChange"])):R("",!0),d(i)?(y(),V(Ui,{key:2,title:"自定义属性",current:d(e),context:d(t),node:d(i),items:d(l),onChange:d(o),removable:"",plus:"",grow:"",onPlus:f,onRemove:g},null,8,["current","context","node","items","onChange"])):R("",!0),_(d(Vt),{modelValue:m.value,"onUpdate:modelValue":b[0]||(b[0]=w=>m.value=w),title:"新增自定义属性",width:"400px",height:"150px","submit-method":v,formProps:{tooltipMessage:!1},model:h.value},{default:j(()=>[_(d(ee),{name:"name",label:"属性名称",required:"",rules:{message:"名称格式错误",pattern:d(Ct)}},null,8,["rules"])]),_:1},8,["modelValue","model"])]),_:1})):R("",!0)}}),q9=I({name:"VariableBinder",__name:"variable",props:{context:{},current:{},value:{}},setup(n){const e=n,t=D(),r=Zt({type:"JSExpression",value:e.value}),i=a=>{t.value.getEditor().setValue(a),r.value=a};return(a,o)=>(y(),V(d(Mo),{title:"绑定变量","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:i},{default:j(()=>[_(d(ee),{name:"value",label:"绑定内容 [ JSExpression ]",required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s),dark:"",height:"450px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),G9=I({name:"EventBinder",__name:"event",props:{context:{},current:{},name:{},event:{}},setup(n){const e=n,t=D(),r=Zt({name:e.name,...e.event,modifiers:Object.keys(e.event?.modifiers||{}),handler:{type:"JSFunction",value:e.event?.handler?.value||"() => {}"}}),i=$7.map(o=>({label:o,value:o})),a=o=>{t.value.getEditor().setValue(o),r.handler.value=o};return(o,s)=>(y(),V(d(Mo),{title:"绑定事件","unbind-enabled":"",block:e.current,context:e.context,model:r,onPick:a},{default:j(()=>[_(d(ee),{name:"modifiers",label:"事件修饰符",editor:"checkbox",options:d(i)},null,8,["options"]),_(d(ee),{name:"handler.value",label:"事件处理函数 [ JSFunction ]",required:""},{editor:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,modelValue:r.handler.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.handler.value=l),dark:"",height:"350px"},null,8,["modelValue"])]),_:1})]),_:1},8,["block","context","model"]))}}),Y9=I({name:"EventsWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=wt(),{mouseEventList:i,keyboardEventList:a,componentEventList:o}=R7(r),s=D({name:"",event:void 0}),l=D(!1),c=f=>{s.value=Qt(f),l.value=!0},u=async f=>{const v={...f,modifiers:f.modifiers.reduce((g,k)=>(g[k]=!0,g),{})};return De(v.handler,t.value,!0)?((r.value?.model).setEvent(v),!0):!1},p=async f=>{const v=r.value?.model;f.name&&(v.removeEvent(f.name),l.value=!1)},m=async()=>{s.value.name&&await On("确定要删除该事件吗?")&&p(s.value)},h=f=>{const{name:v,modelValue:g}=f;v==="edit"&&c(g),v==="remove"&&p(g)};return(f,v)=>(y(),V(d(se),{class:"v-events-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{title:"组件事件",class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[d(o).length?R("",!0):(y(),V(d(ze),{key:0,"image-size":50,description:"该组件无自带事件"})),(y(!0),M(ne,null,ae(d(o),g=>(y(),V(d(Me),{key:`component_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),_(d(fe),{title:"鼠标事件",class:"v-sub-panel",size:"small",fit:!1},{default:j(()=>[(y(!0),M(ne,null,ae(d(i),g=>(y(),V(d(Me),{key:`mouse_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),_(d(fe),{title:"键盘事件",class:"v-sub-panel",size:"small",grow:"",fit:!1},{default:j(()=>[(y(!0),M(ne,null,ae(d(a),g=>(y(),V(d(Me),{key:`keyboard_${g.name}`,title:g.name,"model-value":g,border:"",small:"",actions:g.event?["edit","remove"]:["edit"],active:!!g.event,onClick:k=>c(g),onAction:h},null,8,["title","model-value","actions","active","onClick"]))),128))]),_:1}),l.value?(y(),V(d(G9),{key:0,modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=g=>l.value=g),context:d(t),current:d(e),name:s.value.name,event:s.value.event,submitMethod:u,onUnbind:m},null,8,["modelValue","context","current","name","event"])):R("",!0)]),_:1}))}}),K9=I({name:"CssWidget",__name:"index",setup(n){const{current:e}=Ie(),t=D(),r=z(()=>e.value?.css||""),i=o=>{e.value?.setCss(o)},a=()=>{const o=(t.value?.getEditor()).getValue();i(o),We("保存成功")};return(o,s)=>(y(),V(d(fe),{class:"v-css-widget v-sub-panel",title:"lang:css scoped",size:"small",fit:"",save:"",onSave:a},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"css",dark:"",onBlur:i},null,8,["model-value"])]),_:1}))}}),X9=I({name:"DirectivesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),{selected:r}=wt(),{vIf:i,vShow:a,vBind:o,vFor:s,vModels:l,onValueChange:c,onForChange:u,onModelChange:p}=F7(r),m=h=>h.arg?typeof h.arg=="string"?h.arg:gt(h.arg,{}):"modelValue";return(h,f)=>(y(),V(d(se),{class:"v-directives-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{class:"v-sub-panel",title:"内置指令",size:"small",fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px",onKeydown:f[0]||(f[0]=Jn(hn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(me),{name:"vIf",label:"v-if",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(i).value,onChange:d(c)},null,8,["current","context","value","onChange"]),_(d(me),{name:"vShow",label:"v-show",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(a).value,onChange:d(c)},null,8,["current","context","value","onChange"]),_(d(me),{name:"vBind",label:"v-bind",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(o).value,onChange:d(c)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),_(d(fe),{class:"v-sub-panel",title:"循环",size:"small",fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px",onKeydown:f[1]||(f[1]=Jn(hn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(me),{name:"value",label:"循环数据",setters:"ExpressionSetter",current:d(e),context:d(t),value:d(s).value,onChange:d(u)},null,8,["current","context","value","onChange"]),_(d(me),{name:"item",label:"迭代变量名",setters:{name:"StringSetter",props:{placeholder:"item"}},current:d(e),context:d(t),value:d(s).iterator?.item,onChange:d(u)},null,8,["current","context","value","onChange"]),_(d(me),{name:"index",label:"索引变量名",setters:{name:"StringSetter",props:{placeholder:"index"}},current:d(e),context:d(t),value:d(s).iterator?.index,onChange:d(u)},null,8,["current","context","value","onChange"])]),_:1})]),_:1}),_(d(fe),{class:"v-sub-panel",title:"双向绑定",size:"small",fit:!1,grow:""},{default:j(()=>[(y(!0),M(ne,null,ae(d(l),(v,g)=>(y(),V(d(fe),{card:"",border:"",class:"v-sub-panel",size:"small",title:`v-model: ${m(v)}`,body:{grow:!1},fit:!1},{default:j(()=>[_(d(qe),{size:"small","label-width":"60px",onKeydown:f[2]||(f[2]=Jn(hn(()=>{},["prevent","stop"]),["enter"]))},{default:j(()=>[_(d(me),{name:g.toString(),label:"绑定变量",setters:"ExpressionSetter",current:d(e),context:d(t),value:v.value,onChange:d(p)},null,8,["name","current","context","value","onChange"])]),_:2},1024)]),_:2},1032,["title"]))),256)),d(l).length?R("",!0):(y(),V(d(ze),{key:0,description:"当前组件没有双向绑定属性","image-size":50}))]),_:1})]),_:1}))}}),Q9=I({name:"DefinedPropsDialog",__name:"props",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义属性":"新增定义属性"),r=D(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=Object.keys(W0).map(o=>({label:o,value:o})),a=async o=>{const s=o.default;return s&&!De(s,e.context,!0)?!1:(e.current.setProp(o),!0)};return(o,s)=>(y(),V(d(Vt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":a},{default:j(()=>[_(d(ee),{name:"name",label:"属性名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Ct)}},null,8,["disabled","rules"]),_(d(ee),{name:"type",label:"数据类型",editor:"checkbox",props:{button:!0,size:"small"},options:d(i),required:""},null,8,["options"]),_(d(ee),{name:"required",label:"必须",editor:"switch"}),_(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.default.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value.default.value=l),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),Z9=I({name:"DefinedEventsDialog",__name:"events",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义事件":"新增定义事件"),r=D({name:e.item}),i=async a=>(e.item&&e.current.removeEmit(e.item,!0),e.current.setEmit(a.name),!0);return(a,o)=>(y(),V(d(Vt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"事件名称",required:"",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Ct)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),ew=I({name:"DefinedSlotsDialog",__name:"slots",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑定义插槽":"新增定义插槽"),r=D({name:e.item}),i=async a=>(e.item&&e.current.removeSlot(e.item,!0),e.current.setSlot(a.name),!0);return(a,o)=>(y(),V(d(Vt),{title:t.value,width:"600px",height:"200px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"插槽名称",disabled:!!e.item,required:"",rules:{message:"名称格式错误",pattern:d(Ct)}},null,8,["disabled","rules"])]),_:1},8,["title","model"]))}}),tw=I({name:"DefinedInjectsDialog",__name:"injects",props:{item:{},current:{},context:{}},setup(n){const e=n,t=z(()=>e.item?"编辑注入":"新增注入"),r=D(Object.assign({default:{type:"JSExpression",value:""}},e.item)),i=async a=>{const o=a.default;return o&&!De(o,e.context,!0)?!1:(e.current.setInject(a),!0)};return(a,o)=>(y(),V(d(Vt),{title:t.value,width:"800px",height:"500px",model:r.value,"form-props":{tooltipMessage:!1},"submit-method":i},{default:j(()=>[_(d(ee),{name:"name",label:"注入名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Ct)}},null,8,["disabled","rules"]),_(d(ee),{name:"from",label:"来源名称",tip:"默认和注入名称一致"}),_(d(ee),{name:"default.value",label:"默认值",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.default.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value.default.value=s),height:"200px",dark:""},null,8,["modelValue"])]),_:1})]),_:1},8,["title","model"]))}}),nw=I({name:"DefinedWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=z(()=>(e.value?.props||[]).map(B=>typeof B=="string"?{name:B}:B)),i=z(()=>e.value?.emits||[]),a=z(()=>e.value?.slots||[]),o=z(()=>e.value?.inject||[]),s=D(!1),l=D(),c=D(!1),u=D(),p=D(!1),m=D(),h=D(!1),f=D(),v=()=>{l.value=void 0,s.value=!0},g=B=>{const{name:F,modelValue:A}=B;F==="edit"&&k(A),F==="remove"&&e.value?.removeProp(A)},k=B=>{l.value=B,s.value=!0},b=()=>{u.value=void 0,c.value=!0},w=B=>{u.value=B,c.value=!0},S=B=>{const{name:F,modelValue:A}=B;F==="edit"&&w(A),F==="remove"&&e.value?.removeEmit(A)},C=()=>{m.value=void 0,p.value=!0},x=B=>{m.value=B,p.value=!0},$=B=>{const{name:F,modelValue:A}=B;F==="edit"&&x(A),F==="remove"&&e.value?.removeSlot(A)},E=()=>{f.value=void 0,h.value=!0},U=B=>{f.value=B,h.value=!0},T=B=>{const{name:F,modelValue:A}=B;F==="edit"&&U(A),F==="remove"&&e.value?.removeInject(A)};return(B,F)=>d(e)&&d(t)?(y(),V(d(se),{key:0,class:"v-defined-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{class:"v-sub-panel",title:"定义属性",size:"small",plus:"",fit:!1,onPlus:v},{default:j(()=>[(y(!0),M(ne,null,ae(r.value,A=>(y(),V(d(Me),{"model-value":A,title:A.name,border:"",actions:["edit","remove"],onClick:N=>k(A),onAction:g},null,8,["model-value","title","onClick"]))),256)),r.value.length?R("",!0):(y(),V(d(ze),{key:0,"image-size":50})),s.value?(y(),V(Q9,{key:1,current:d(e),context:d(t),modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=A=>s.value=A),item:l.value},null,8,["current","context","modelValue","item"])):R("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"定义事件",size:"small",plus:"",fit:!1,onPlus:b},{default:j(()=>[(y(!0),M(ne,null,ae(i.value,A=>(y(),V(d(Me),{"model-value":A,title:A,border:"",actions:["remove"],onClick:N=>w(A),onAction:S},null,8,["model-value","title","onClick"]))),256)),i.value.length?R("",!0):(y(),V(d(ze),{key:0,"image-size":50})),c.value?(y(),V(Z9,{key:1,modelValue:c.value,"onUpdate:modelValue":F[1]||(F[1]=A=>c.value=A),current:d(e),context:d(t),item:u.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"定义插槽",size:"small",plus:"",fit:!1,onPlus:C},{default:j(()=>[(y(!0),M(ne,null,ae(a.value,A=>(y(),V(d(Me),{"model-value":A,title:A,border:"",actions:["remove"],onClick:N=>x(A),onAction:$},null,8,["model-value","title","onClick"]))),256)),a.value.length?R("",!0):(y(),V(d(ze),{key:0,"image-size":50})),p.value?(y(),V(ew,{key:1,modelValue:p.value,"onUpdate:modelValue":F[2]||(F[2]=A=>p.value=A),current:d(e),context:d(t),item:m.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1}),_(d(fe),{class:"v-sub-panel",title:"注入",size:"small",plus:"",fit:!1,grow:"",onPlus:E},{default:j(()=>[(y(!0),M(ne,null,ae(o.value,A=>(y(),V(d(Me),{"model-value":A,title:A.name,border:"",actions:["remove"],onClick:N=>U(A),onAction:T},null,8,["model-value","title","onClick"]))),256)),o.value.length?R("",!0):(y(),V(d(ze),{key:0,"image-size":50})),h.value?(y(),V(tw,{key:1,modelValue:h.value,"onUpdate:modelValue":F[3]||(F[3]=A=>h.value=A),current:d(e),context:d(t),item:f.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1})]),_:1})):R("",!0)}}),rw=I({name:"DataSourceDialogForm",__name:"form",props:{context:{},current:{},item:{}},setup(n){const e=n,{apis:t}=H7(),r=D(Object.assign({type:"api",ref:"",name:"",label:"",transform:{type:"JSFunction",value:`(res) => {
|
|
104
|
-
/* 在这里可对接口返回数据进行转换 */
|
|
105
|
-
return res;
|
|
106
|
-
}`},test:{type:"JSFunction",value:`() => this.runApi({
|
|
107
|
-
/* 在这里可输入接口参数 */
|
|
108
|
-
})`}},e.item)),i=D(!1),a=D(""),o=D(!1),s=z(()=>t.value.map(m=>({label:m.label||"",value:m.id,data:m}))),l=z(()=>e.item?"编辑数据源":"新增数据源"),c=m=>{const h=t.value.find(f=>f.id===m);h&&(r.value.name=h.name,r.value.label=h.label||"")},u=async m=>{const{transform:h,test:f,name:v}=m;if(!e.current)return!1;if(!e.item&&e.current.dataSources[v])return Ae(`名称【${v}】已经存在,请更换名称`),!1;if(h?.value){if(!De(h,e.context,!0))return!1}else m.transform=void 0;if(f?.value){if(!De(f,e.context,!0))return!1}else m.test=void 0;return e.current?.setDataSource(m),!0},p=async()=>{if(!e.context)return;if(!r.value.ref){Ae("请先选择API");return}if(!r.value.test?.value){Ae("请先填写测试用例");return}if(!De(r.value.test,e.context,!0))return;const m=async(...v)=>{const g=e.context?.$apis[r.value.ref];if(g)return await g.apply(g,v);Ke.warn(`API【${r.value.ref}】不存在`)},h=gt(r.value.test,{runApi:m}),f=r.value.transform?.value?gt(r.value.transform,{},!0):v=>v;i.value=!0;try{const v=await h();a.value=JSON.stringify(await f(v),null,2)}catch(v){Ke.error(v)}i.value=!1,o.value=!0};return(m,h)=>(y(),V(d(Vt),{width:"1000px",height:"600px",title:l.value,model:r.value,"form-props":{tooltipMessage:!1},"submit-method":u},{extra:j(()=>[_(d(xe),{loading:i.value,type:"warning",onClick:p},{default:j(()=>[le(" 运行测试用例 ")]),_:1},8,["loading"])]),default:j(()=>[_(d(ee),{name:"ref",label:"引用API",editor:"select",required:"",disabled:!!e.item,options:s.value,props:{filterable:!0},onChange:c},{option:j(({option:f})=>[le(te(f.data.label)+" ",1),P("i",null,"[ "+te(f.data.name)+" ]",1)]),_:1},8,["disabled","options"]),_(d(ee),{name:"name",label:"调用名称",required:"",tip:"名称为英文驼峰格式",disabled:!!e.item,rules:{message:"名称格式错误",pattern:d(Ct)}},null,8,["disabled","rules"]),_(d(ee),{name:"label",label:"备注说明",required:""}),_(d(ee),{name:"transform.value",label:"转换函数",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.transform.value,"onUpdate:modelValue":h[0]||(h[0]=f=>r.value.transform.value=f),height:"200px",dark:""},null,8,["modelValue"])]),_:1}),_(d(ee),{name:"test.value",label:"测试用例",editor:"none"},{default:j(()=>[_(d(Te),{modelValue:r.value.test.value,"onUpdate:modelValue":h[1]||(h[1]=f=>r.value.test.value=f),height:"100px",dark:""},null,8,["modelValue"])]),_:1}),o.value?(y(),V(d(Bl),{key:0,class:"v-drawer",modelValue:o.value,"onUpdate:modelValue":h[2]||(h[2]=f=>o.value=f),title:"测试用例运行结果",direction:"btt","append-to-body":"",size:"80%"},{default:j(()=>[_(d(Te),{"model-value":a.value,border:"",dark:"",height:"100%",lang:"json"},null,8,["model-value"])]),_:1},8,["modelValue"])):R("",!0)]),_:1},8,["title","model"]))}}),iw=I({name:"DataSourcesWidget",__name:"index",setup(n){const{current:e,context:t}=Ie(),r=D(!1),i=D(),a=z(()=>Object.values(e.value?.dataSources||{}).filter(c=>c.type==="api")),o=()=>{i.value=void 0,r.value=!0},s=c=>{i.value=c,r.value=!0},l=c=>{const{name:u,modelValue:p}=c;u==="edit"&&s(p),u==="remove"&&e.value?.removeDataSource(p.name)};return(c,u)=>(y(),V(d(se),{class:"v-data-sources-widget",direction:"column",fit:""},{default:j(()=>[_(d(fe),{title:"API",class:"v-sub-panel",size:"small",plus:"",onPlus:o},{default:j(()=>[(y(!0),M(ne,null,ae(a.value,p=>(y(),V(d(Me),{border:"",title:p.name,subtitle:p.label,"model-value":p,actions:["edit","remove"],onAction:l,onClick:m=>s(p)},null,8,["title","subtitle","model-value","onClick"]))),256)),a.value.length?R("",!0):(y(),V(d(ze),{key:0,"image-size":50}))]),_:1}),r.value?(y(),V(rw,{key:0,modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),current:d(e),context:d(t),item:i.value},null,8,["modelValue","current","context","item"])):R("",!0)]),_:1}))}}),aw=I({__name:"layout",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D();oe(()=>e.styleJson.display,c=>{t.value=c==="flex"},{immediate:!0});const r=[{label:"block-块级布局",value:"block",svg:Z6},{label:"flex-弹性布局",value:"flex",svg:e4},{label:"inline-block-行内块级布局",value:"inline-block",svg:t4},{label:"inline-行内布局",value:"inline",svg:n4},{label:"invisible-不可见",value:"none",svg:r4}],i=[{label:"row-水平",value:"row",svg:p4},{label:"row-reverse-水平",value:"row-reverse",svg:d4},{label:"column-垂直",value:"column",svg:u4},{label:"column-reverse-垂直",value:"column-reverse",svg:c4}],a=[{label:"flex-start",value:"flex-start",svg:f4},{label:"flex-end",value:"flex-end",svg:m4},{label:"center",value:"center",svg:h4},{label:"space-between",value:"space-between",svg:g4},{label:"space-around",value:"space-around",svg:v4}],o=[{label:"不换行",value:"nowrap"},{label:"正换行",value:"wrap"},{label:"逆换行",value:"wrap-reverse"}],s=[{label:"flex-start",value:"flex-start",svg:s4},{label:"flex-end",value:"flex-end",svg:o4},{label:"center",value:"center",svg:a4},{label:"baseline",value:"baseline",svg:i4},{label:"stretch",value:"stretch",svg:l4}],l=(c,u)=>{t.value=u==="flex",e.setStyle("display",u),t.value||(e.setStyle("flex-direction",void 0),e.setStyle("justify-content",void 0),e.setStyle("align-items",void 0),e.setStyle("flex-wrap",void 0))};return(c,u)=>(y(),V(d(fe),{title:"布局",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{size:"small","label-width":"80px"},{default:j(()=>[_(d(me),{name:"display",label:"排布",setters:{name:"TagSetter"},options:r,variable:!1,value:e.styleJson.display,onChange:l},null,8,["value"]),t.value?(y(),M(ne,{key:0},[_(d(me),{name:"flex-direction",label:"主轴方向",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson["flex-direction"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"justify-content",label:"主轴对齐",setters:{name:"TagSetter"},options:a,variable:!1,value:e.styleJson["justify-content"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"align-items",label:"辅轴对齐",setters:{name:"TagSetter"},options:s,variable:!1,value:e.styleJson["align-items"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"flex-wrap",label:"换行模式",setters:{name:"TagSetter"},options:o,variable:!1,value:e.styleJson["flex-wrap"],onChange:e.setStyle},null,8,["value","onChange"])],64)):R("",!0)]),_:1})]),_:1}))}}),ow=I({name:"StyleWidget",__name:"JsonMode",setup(n){const{selected:e}=wt(),t=D(),r=z(()=>{const s=e.value?.model||null;return Ce(s)?null:s}),i=z(()=>JSON.stringify(r.value?.getPropValue("style")||{},null,2)),a=s=>{try{const l=JSON.parse(s);r.value?.setProp("style",l)}catch{Ae("JSON格式错误")}},o=()=>{const s=(t.value?.getEditor()).getValue();a(s),We("保存成功")};return(s,l)=>(y(),V(d(fe),{class:"v-css-widget v-sub-panel",title:"JSON",size:"small",fit:"",save:"",onSave:o},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":i.value,height:"100%",lang:"json",dark:"",onBlur:a},null,8,["model-value"])]),_:1}))}}),sw={class:"v-spacing-input"},lw=P("div",{class:"v-spacing-input__modal"},null,-1),cw={class:"v-spacing-input__content"},uw=["onClick"],s2=I({__name:"spacing-input",props:{name:{},modelValue:{},auto:{type:Boolean}},emits:["close","update:modelValue","submit"],setup(n,{emit:e}){const t=[0,10,20,40,60,100,140,220],r=n,i=e,a=z(()=>r.auto||r.name.includes("margin")),o=D(),s=D(r.modelValue),l=D("px");nd(o,()=>{i("close")});const c=h=>{s.value=typeof h=="number"?`${h}px`:"auto",u(s.value)},u=h=>{l.value=h==="auto"?void 0:"px"},p=()=>{s.value?(i("update:modelValue",s.value),i("submit",r.name,s.value),i("close")):Ae("请输入有效值","提示")},m=()=>{s.value=void 0,i("update:modelValue",s.value),i("submit",r.name,void 0),i("close")};return(h,f)=>(y(),M("div",sw,[lw,P("div",cw,[_(d(se),{class:"v-spacing-input__body",ref_key:"bodyRef",ref:o,direction:"column"},{default:j(()=>[_(d(se),null,{default:j(()=>[_(d($0),{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=v=>s.value=v),size:"small","with-unit":!!l.value,unit:l.value,format:l.value?"0":void 0,onChange:u},null,8,["modelValue","with-unit","unit","format"])]),_:1}),_(d(se),null,{default:j(()=>[a.value?(y(),V(d(se),{key:0,class:"v-spacing-input__auto",width:"20%"},{default:j(()=>[P("span",{onClick:f[1]||(f[1]=v=>c("auto"))},"auto")]),_:1})):R("",!0),_(d(se),{grow:"",class:"v-spacing-input__values",align:"center",wrap:"wrap"},{default:j(()=>[(y(),M(ne,null,ae(t,v=>P("span",{onClick:g=>c(v)},te(v),9,uw)),64))]),_:1})]),_:1}),_(d(se),null,{default:j(()=>[_(d(xe),{size:"small",type:"primary",round:"",style:{width:"100%"},onClick:p},{default:j(()=>[le(" 确定 ")]),_:1}),_(d(xe),{size:"small",round:"",style:{width:"100%"},onClick:m},{default:j(()=>[le(" 重置 ")]),_:1})]),_:1})]),_:1},512)])]))}}),dw={class:"spacing-wrap"},pw={class:"spacing-max-icon"},hw=["width","height"],mw=["d"],fw=["d"],vw=["d"],gw=["d"],yw={id:"margin-outer"},bw=["width","height"],ww=["width","height"],xw={id:"margin-inner"},_w=["width","height"],Sw=["width","height"],kw=["width","height"],jw=["d"],Vw=["d"],Cw=["d"],$w=["d"],Ew={id:"padding-outer"},Aw=["width","height"],Tw=["width","height"],Bw={id:"padding-inner"},zw=["width","height"],Dw=["width","height"],Ow={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"3 / 3 / span 3 / span 3","pointer-events":"none"}},Iw=P("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," padding ",-1),Rw=[Iw],Mw={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",style:{"grid-area":"1 / 1 / -1 / -1","pointer-events":"none"}},Pw=P("text",{x:"6",y:"4",fill:"#a6a6a6","font-style":"italic","font-weight":"bold","font-size":"8","dominant-baseline":"hanging"}," margin ",-1),Nw=[Pw],_e=36,Se=24,Fw=I({__name:"spacing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D(),r=D(),{width:i,height:a}=bn(t),{width:o,height:s}=bn(r),l=D(!1),c=D(),u=D(),p=()=>{l.value=!1,c.value=void 0,u.value=void 0},m=h=>{c.value=h,u.value=e.styleJson[h],l.value=!0};return(h,f)=>(y(),V(d(fe),{title:"间距",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[P("div",{class:"v-style-widget__spacing",ref_key:"container",ref:t},[P("div",dw,[P("div",pw,[d(i)&&d(a)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(i),height:d(a),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
109
|
-
m1,1
|
|
110
|
-
h${d(i)-1}
|
|
111
|
-
l-${_e},${Se}
|
|
112
|
-
h-${d(i)-2*_e}
|
|
113
|
-
l-${_e},-${Se}z`,"data-automation-id":"margin-top-button","aria-label":"Margin top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>m("margin-top"))},null,8,mw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
114
|
-
m${d(i)-1},1
|
|
115
|
-
v${d(a)-1}
|
|
116
|
-
l-${_e},-${Se}
|
|
117
|
-
v-${d(a)-2*Se}
|
|
118
|
-
l${_e},-${Se}z`,"data-automation-id":"margin-right-button","aria-label":"Margin right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>m("margin-right"))},null,8,fw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
119
|
-
m1,${d(a)-1}
|
|
120
|
-
h${d(i)-1}
|
|
121
|
-
l-${_e},-${Se}
|
|
122
|
-
h-${d(i)-2*_e}
|
|
123
|
-
l-${_e},${Se}z`,"data-automation-id":"margin-bottom-button","aria-label":"Margin bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>m("margin-bottom"))},null,8,vw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
124
|
-
m1,1
|
|
125
|
-
v${d(a)-1}
|
|
126
|
-
l${_e},-${Se}
|
|
127
|
-
v-${d(a)-2*Se}
|
|
128
|
-
l-${_e},-${Se}z`,"data-automation-id":"margin-left-button","aria-label":"Margin left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>m("margin-left"))},null,8,gw)])]),P("clipPath",yw,[P("rect",{x:"0",y:"0",width:d(i),height:d(a),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,bw)]),P("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(i),height:d(a),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,ww),P("clipPath",xw,[P("rect",{x:"36",y:"24",width:d(i)-2*_e+1,height:d(a)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,_w)]),P("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(i)-2*_e+1,height:d(a)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Sw)],8,hw)):R("",!0),P("div",{class:ce(["spacing-edit margin-top",{"is-setting":e.styleJson["margin-top"]}]),onClick:f[4]||(f[4]=v=>m("margin-top"))},te(e.styleJson["margin-top"]||"-"),3),P("div",{class:ce(["spacing-edit margin-right",{"is-setting":e.styleJson["margin-right"]}]),onClick:f[5]||(f[5]=v=>m("margin-right"))},te(e.styleJson["margin-right"]||"-"),3),P("div",{class:ce(["spacing-edit margin-bottom",{"is-setting":e.styleJson["margin-bottom"]}]),onClick:f[6]||(f[6]=v=>m("margin-bottom"))},te(e.styleJson["margin-bottom"]||"-"),3),P("div",{class:ce(["spacing-edit margin-left",{"is-setting":e.styleJson["margin-left"]}]),onClick:f[7]||(f[7]=v=>m("margin-left"))},te(e.styleJson["margin-left"]||"-"),3)]),P("div",{ref_key:"inner",ref:r,class:"spacing-min-icon"},[d(i)&&d(a)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(o),height:d(s),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
129
|
-
m1,1
|
|
130
|
-
h${d(o)-1}
|
|
131
|
-
l-${_e},${Se}
|
|
132
|
-
h-${d(o)-2*_e}
|
|
133
|
-
l-${_e},-${Se}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[8]||(f[8]=v=>m("padding-top"))},null,8,jw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
134
|
-
m${d(o)-1},1
|
|
135
|
-
v${d(s)-1}
|
|
136
|
-
l-${_e},-${Se}
|
|
137
|
-
v-${d(s)-2*Se}
|
|
138
|
-
l${_e},-${Se}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[9]||(f[9]=v=>m("padding-right"))},null,8,Vw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
139
|
-
m1,${d(s)-1}
|
|
140
|
-
h${d(o)-1}
|
|
141
|
-
l-${_e},-${Se}
|
|
142
|
-
h-${d(o)-2*_e}
|
|
143
|
-
l-${_e},${Se}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[10]||(f[10]=v=>m("padding-bottom"))},null,8,Cw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
144
|
-
m1,1
|
|
145
|
-
v${d(s)-1}
|
|
146
|
-
l${_e},-${Se}
|
|
147
|
-
v-${d(s)-2*Se}
|
|
148
|
-
l-${_e},-${Se}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[11]||(f[11]=v=>m("padding-left"))},null,8,$w)])]),P("clipPath",Ew,[P("rect",{x:"0",y:"0",width:d(o),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Aw)]),P("rect",{class:"stroke","clip-path":"url(#padding-outer)",x:"0",y:"0",width:d(o),height:d(s),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Tw),P("clipPath",Bw,[P("rect",{x:"36",y:"24",width:d(o)-2*_e+1,height:d(s)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,zw)]),P("rect",{class:"stroke","clip-path":"url(#padding-inner)",x:"36",y:"24",width:d(o)-2*_e+1,height:d(s)-2*Se+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Dw)],8,kw)):R("",!0),P("div",{class:ce(["spacing-edit padding-top",{"is-setting":e.styleJson["padding-top"]}]),onClick:f[12]||(f[12]=v=>m("padding-top"))},te(e.styleJson["padding-top"]||"-"),3),P("div",{class:ce(["spacing-edit padding-right",{"is-setting":e.styleJson["padding-right"]}]),onClick:f[13]||(f[13]=v=>m("padding-right"))},te(e.styleJson["padding-right"]||"-"),3),P("div",{class:ce(["spacing-edit padding-bottom",{"is-setting":e.styleJson["padding-bottom"]}]),onClick:f[14]||(f[14]=v=>m("padding-bottom"))},te(e.styleJson["padding-bottom"]||"-"),3),P("div",{class:ce(["spacing-edit padding-left",{"is-setting":e.styleJson["padding-left"]}]),onClick:f[15]||(f[15]=v=>m("padding-left"))},te(e.styleJson["padding-left"]||"-"),3)],512),(y(),M("svg",Ow,Rw)),(y(),M("svg",Mw,Nw))]),l.value?(y(),V(s2,{key:0,name:c.value,modelValue:u.value,"onUpdate:modelValue":f[16]||(f[16]=v=>u.value=v),onClose:p,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):R("",!0)],512)]),_:1}))}}),Hw=I({__name:"sizing",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"width",label:"宽(W)",setter:"SizeSetter"},{name:"height",label:"高(H)",setter:"SizeSetter"},{name:"min-width",label:"最小宽",setter:"SizeSetter"},{name:"min-height",label:"最小高",setter:"SizeSetter"},{name:"max-width",label:"最大宽",setter:"SizeSetter"},{name:"max-height",label:"最大高",setter:"SizeSetter"},{name:"overflow",label:"溢出",setter:"SelectSetter",options:[{label:"自动",value:"auto"},{label:"隐藏",value:"hidden"},{label:"滚动",value:"scroll"},{label:"显示",value:"visible"}]},{name:"object-fit",label:"适应",setter:"SelectSetter",options:[{label:"填充",value:"fill"},{label:"适应",value:"contain"},{label:"覆盖",value:"cover"},{label:"拉伸",value:"scale-down"},{label:"原始",value:"none"}]}];return(r,i)=>(y(),V(d(fe),{title:"尺寸",class:"v-sub-panel v-",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{class:"v-style-widget__sizing",size:"small","label-width":"60px",inline:""},{default:j(()=>[(y(),M(ne,null,ae(t,a=>_(d(me),{name:a.name,label:a.label,setters:{name:a.setter},options:a.options,variable:!1,value:e.styleJson[a.name],onChange:r.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1})]),_:1}))}}),Lw={class:"v-style-widget__positioning"},Uw={class:"spacing-wrap"},Ww=["width","height"],Jw=["d"],qw=["d"],Gw=["d"],Yw=["d"],Kw={id:"margin-outer"},Xw=["width","height"],Qw=["width","height"],Zw={id:"margin-inner"},ex=["width","height"],tx=["width","height"],Ze=36,et=24,nx=I({__name:"positioning",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D(),{width:r,height:i}=bn(t),a=D(!1),o=D(),s=D(),l=[{label:"静态",value:"static"},{label:"相对",value:"relative"},{label:"绝对",value:"absolute"},{label:"固定",value:"fixed"},{label:"粘性",value:"sticky"}],c=[{label:"左上",svg:V4,value:"0% auto auto 0%"},{label:"右上",svg:C4,value:"0% 0% auto auto"},{label:"左下",svg:x4,value:"auto auto 0% 0%"},{label:"右下",svg:_4,value:"auto 0% 0% auto"},{label:"左",svg:k4,value:"0% auto 0% 0%"},{label:"右",svg:j4,value:"0% 0% 0% auto"},{label:"上",svg:$4,value:"auto 0% 0% 0%"},{label:"下",svg:S4,value:"0% 0% auto 0%"},{label:"填充",svg:w4,value:"0% 0% 0% 0%"}],u=z(()=>(e.styleJson.inset||"").split(" ")),p=h=>{o.value=h,s.value=e.styleJson[h],a.value=!0},m=()=>{a.value=!1,o.value=void 0,s.value=void 0};return(h,f)=>(y(),V(d(fe),{title:"定位",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[P("div",Lw,[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(me),{name:"position",label:"定位",setters:{name:"SelectSetter"},options:l,variable:!1,value:e.styleJson.position,onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"inset",label:" ",setters:{name:"TagSetter"},options:c,variable:!1,value:e.styleJson.inset,onChange:e.setStyle},null,8,["value","onChange"]),_(d(Ma),{label:" "},{default:j(()=>[P("div",Uw,[P("div",{ref_key:"inner",ref:t,class:"spacing-min-icon"},[d(r)&&d(r)?(y(),M("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:d(r),height:d(i),style:{"grid-area":"1 / 1 / -1 / -1"}},[P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
149
|
-
m1,1
|
|
150
|
-
h${d(r)-1}
|
|
151
|
-
l-${Ze},${et}
|
|
152
|
-
h-${d(r)-2*Ze}
|
|
153
|
-
l-${Ze},-${et}z`,"data-automation-id":"padding-top-button","aria-label":"Padding top button",class:"tb-path-color",onClick:f[0]||(f[0]=v=>p("top"))},null,8,Jw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
154
|
-
m${d(r)-1},1
|
|
155
|
-
v${d(i)-1}
|
|
156
|
-
l-${Ze},-${et}
|
|
157
|
-
v-${d(i)-2*et}
|
|
158
|
-
l${Ze},-${et}z`,"data-automation-id":"padding-right-button","aria-label":"Padding right button",class:"lr-path-color",onClick:f[1]||(f[1]=v=>p("right"))},null,8,qw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
159
|
-
m1,${d(i)-1}
|
|
160
|
-
h${d(r)-1}
|
|
161
|
-
l-${Ze},-${et}
|
|
162
|
-
h-${d(r)-2*Ze}
|
|
163
|
-
l-${Ze},${et}z`,"data-automation-id":"padding-bottom-button","aria-label":"Padding bottom button",class:"tb-path-color",onClick:f[2]||(f[2]=v=>p("bottom"))},null,8,Gw)])]),P("g",null,[P("g",null,[P("path",{mode:"delta",fill:"currentColor",d:`
|
|
164
|
-
m1,1
|
|
165
|
-
v${d(i)-1}
|
|
166
|
-
l${Ze},-${et}
|
|
167
|
-
v-${d(i)-2*et}
|
|
168
|
-
l-${Ze},-${et}z`,"data-automation-id":"padding-left-button","aria-label":"Padding left button",class:"lr-path-color",onClick:f[3]||(f[3]=v=>p("left"))},null,8,Yw)])]),P("clipPath",Kw,[P("rect",{x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,Xw)]),P("rect",{class:"stroke","clip-path":"url(#margin-outer)",x:"0",y:"0",width:d(r),height:d(i),fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,Qw),P("clipPath",Zw,[P("rect",{x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*et+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none"}},null,8,ex)]),P("rect",{class:"stroke","clip-path":"url(#margin-inner)",x:"36",y:"24",width:d(r)-2*Ze+1,height:d(i)-2*et+1,fill:"transparent",rx:"2",ry:"2",style:{"pointer-events":"none","stroke-width":"2px"}},null,8,tx)],8,Ww)):R("",!0),P("div",{class:ce(["spacing-edit padding-top",{"is-setting":e.styleJson.top}]),onClick:f[4]||(f[4]=v=>p("top"))},te(e.styleJson.top||u.value[0]||"-"),3),P("div",{class:ce(["spacing-edit padding-right",{"is-setting":e.styleJson.right}]),onClick:f[5]||(f[5]=v=>p("right"))},te(e.styleJson.right||u.value[1]||"-"),3),P("div",{class:ce(["spacing-edit padding-bottom",{"is-setting":e.styleJson.bottom}]),onClick:f[6]||(f[6]=v=>p("bottom"))},te(e.styleJson.bottom||u.value[2]||"-"),3),P("div",{class:ce(["spacing-edit padding-left",{"is-setting":e.styleJson.left}]),onClick:f[7]||(f[7]=v=>p("left"))},te(e.styleJson.left||u.value[3]||"-"),3)],512),a.value?(y(),V(s2,{key:0,auto:"",name:o.value,modelValue:s.value,"onUpdate:modelValue":f[8]||(f[8]=v=>s.value=v),onClose:m,onSubmit:e.setStyle},null,8,["name","modelValue","onSubmit"])):R("",!0)])]),_:1}),_(d(me),{name:"z-index",label:"层级",setters:{name:"NumberSetter"},variable:!1,value:e.styleJson["z-index"],onChange:e.setStyle},null,8,["value","onChange"])]),_:1})])]),_:1}))}}),rx=I({__name:"texting",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{name:"font-size",label:"字号",setter:"SizeSetter"},{name:"font-family",label:"字体",setter:"SelectSetter",options:["Arial","Verdana","Georgia",'"Times New Roman"','"Microsoft YaHei"',"SimSun","SimHei","KaiTi","FangSong","STSong","STKaiti","STFangsong","STCaiyun","STHupo","STLiti","STXingkai","STXinwei","STXinwei","STZhongsong"]},{name:"line-height",label:"行高",setter:"SizeSetter"},{name:"font-weight",label:"字重",setter:"SelectSetter",options:[{label:"正常",value:"normal"},{label:"粗体",value:"bold"},{label:"更粗",value:"bolder"},{label:"更细",value:"lighter"}]}],r=[{label:"左",value:"left",svg:T4},{label:"中",value:"center",svg:E4},{label:"右",value:"right",svg:B4},{label:"两端",value:"justify",svg:A4}],i=[{label:"正常",value:"normal",svg:b4},{label:"斜体",value:"italic",svg:y4}],a=[{label:"无",value:"none",svg:Gu},{label:"下划线",value:"underline",svg:O4},{label:"删除线",value:"line-through",svg:D4},{label:"上划线",value:"overline",svg:z4}];return(o,s)=>(y(),V(d(fe),{title:"文本",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{class:"v-style-widget__texting",size:"small","label-width":"60px",inline:""},{default:j(()=>[(y(),M(ne,null,ae(t,l=>_(d(me),{name:l.name,label:l.label,setters:{name:l.setter},options:l.options,variable:!1,value:e.styleJson[l.name],onChange:o.setStyle},null,8,["name","label","setters","options","value","onChange"])),64))]),_:1}),_(d(qe),{size:"small","label-width":"60px"},{default:j(()=>[_(d(me),{name:"color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson.color,onChange:o.setStyle},null,8,["value","onChange"]),_(d(me),{name:"text-align",label:"对齐",setters:{name:"TagSetter"},variable:!1,options:r,value:e.styleJson["text-align"],onChange:o.setStyle},null,8,["value","onChange"]),_(d(me),{name:"font-style",label:"风格",setters:{name:"TagSetter"},variable:!1,options:i,value:e.styleJson["font-style"],onChange:o.setStyle},null,8,["value","onChange"]),_(d(me),{name:"text-decoration",label:"修饰",setters:{name:"TagSetter"},variable:!1,options:a,value:e.styleJson["text-decoration"],onChange:o.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),ix=I({__name:"backgound",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=(l,c)=>{c?e.setStyle("background-image",`url(${c})`):e.setStyle("background-image",void 0)},r=l=>{const c=/^url\(([\w\W]+)\)$/;return l?.match(c)?.[1]},i=[{label:"重复",value:"repeat",svg:R4},{label:"水平重复",value:"repeat-x",svg:I4},{label:"垂直重复",value:"repeat-y",svg:M4},{label:"不重复",value:"no-repeat",svg:G6}],a=[{label:"固定",value:"fixed"},{label:"滚动",value:"scroll"}],o=[{label:"裁剪到填充",value:"padding-box"},{label:"裁剪到内容",value:"content-box"},{label:"裁剪到文字",value:"text"}],s=[{label:"自动",value:"auto"},{label:"长度",value:"length"},{label:"百分比",value:"percentage"},{label:"覆盖",value:"cover"},{label:"填充",value:"contain"}];return(l,c)=>(y(),V(d(fe),{title:"背景",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(me),{name:"background-image",label:"图片",setters:{name:"ImageSetter"},variable:!1,value:r(e.styleJson["background-image"]),onChange:t},null,8,["value"]),_(d(me),{name:"background-color",label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson["background-color"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"background-repeat",label:"重复",setters:{name:"TagSetter"},variable:!1,value:e.styleJson["background-repeat"],options:i,onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"background-attachment",label:"固定",setters:{name:"RadioSetter"},variable:!1,value:e.styleJson["background-attachment"],options:a,onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"background-position",label:"位置",setters:{name:"SectionSetter",props:{sections:2}},variable:!1,value:e.styleJson["background-position"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"background-size",label:"大小",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-size"],options:s,onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"background-clip",label:"裁剪",setters:{name:"SelectSetter"},variable:!1,value:e.styleJson["background-clip"],options:o,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),ax=I({__name:"border",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=D("border"),r=[{label:"全边框",svg:N6,value:"border"},{label:"左边框",svg:H6,value:"border-left"},{label:"上边框",svg:q6,value:"border-top"},{label:"下边框",svg:F6,value:"border-bottom"},{label:"右边框",svg:L6,value:"border-right"}],i=[{label:"无",value:"none",svg:Gu},{label:"实线",value:"solid",svg:J6},{label:"虚线",value:"dashed",svg:U6},{label:"点线",value:"dotted",svg:W6}],a=(o,s)=>{t.value=s};return(o,s)=>(y(),V(d(fe),{title:"边框",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(me),{name:"border-radius",label:"圆角",setters:{name:"SectionSetter",props:{sections:4}},variable:!1,value:e.styleJson["border-radius"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"borders",label:"边框",setters:{name:"TagSetter"},variable:!1,options:r,value:t.value,onChange:a},null,8,["value"]),t.value?(y(),M(ne,{key:0},[(y(),V(d(me),{name:`${t.value}-width`,key:`${t.value}-width`,label:"宽度",setters:{name:"SizeSetter"},variable:!1,value:e.styleJson[`${t.value}-width`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),V(d(me),{name:`${t.value}-style`,key:`${t.value}-style`,label:"样式",setters:{name:"TagSetter"},options:i,variable:!1,value:e.styleJson[`${t.value}-style`],onChange:e.setStyle},null,8,["name","value","onChange"])),(y(),V(d(me),{name:`${t.value}-color`,key:`${t.value}-color`,label:"颜色",setters:{name:"ColorSetter"},variable:!1,value:e.styleJson[`${t.value}-color`],onChange:e.setStyle},null,8,["name","value","onChange"]))],64)):R("",!0)]),_:1})]),_:1}))}}),ox=I({__name:"effect",props:{styleJson:{},setStyle:{type:Function}},setup(n){const e=n,t=[{label:"自动",value:"auto",svg:Y6},{label:"Pointer",value:"pointer",svg:Q6},{label:"NotAllowed",value:"not-allowed",svg:X6},{label:"无",value:"none",svg:K6}],r=[{label:"Basic",value:"var(--el-box-shadow)"},{label:"Light",value:"var(--el-box-shadow-light)"},{label:"Lighter",value:"var(--el-box-shadow-lighter)"},{label:"Dark",value:"var(--el-box-shadow-dark)"}],i=(o,s)=>{e.setStyle("opacity",s!==void 0?(Number(s)||0)/100:void 0)},a=()=>Number(e.styleJson.opactiy||0)*100;return(o,s)=>(y(),V(d(fe),{title:"效果",class:"v-sub-panel",size:"small",fit:!1,collapsable:""},{default:j(()=>[_(d(qe),{"label-width":"60px",size:"small"},{default:j(()=>[_(d(me),{name:"opacity",label:"透明度",setters:{name:"SliderSetter"},variable:!1,value:a(),onChange:i},null,8,["value"]),_(d(me),{name:"box-shadow",label:"阴影",setters:{name:"SelectSetter"},variable:!1,options:r,value:e.styleJson["box-shadow"],onChange:e.setStyle},null,8,["value","onChange"]),_(d(me),{name:"cursor",label:"光标",setters:{name:"TagSetter"},variable:!1,options:t,value:e.styleJson.cursor,onChange:e.setStyle},null,8,["value","onChange"])]),_:1})]),_:1}))}}),sx=I({name:"StyleWidget",__name:"index",props:{isStyleCodeMode:{type:Boolean}},setup(n){const e=n,{selected:t}=wt(),r=z(()=>{const o=t.value?.model||null;return Ce(o)?null:o}),i=z(()=>r.value?.getPropValue("style")||{}),a=(o,s)=>{const l=r.value?.getPropValue("style")||{};s!==void 0?l[o]=s:delete l[o],r.value?.setProp("style",l)};return(o,s)=>e.isStyleCodeMode?(y(),V(ow,{key:0})):(y(),V(d(se),{key:`widget-style-${r.value?.id}`,class:"v-style-widget",direction:"column",fit:""},{default:j(()=>[(y(),V(aw,{key:`Layout${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Fw,{key:`Spacing${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(Hw,{key:`Sizing${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(nx,{key:`Positioning${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(rx,{key:`Texting${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(ix,{key:`Backgound${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(ax,{key:`Border${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"])),(y(),V(ox,{key:`Effect${r.value?.id}`,"style-json":i.value,setStyle:a},null,8,["style-json"]))]),_:1}))}}),lx=["src"],cx=I({name:"PreviewerWidget",__name:"index",props:{path:{type:Function}},setup(n,{expose:e}){const t=n,r=D(),i=D(Symbol()),{current:a,engine:o}=Ie(),{width:s,height:l}=bn(r),c=z(()=>a.value&&t.path?t.path(a.value):null),u=z(()=>o.skeleton?.getWidget("Toolbar")?.widgetRef.mode??"pc");return e({refresh:()=>{i.value=Symbol()}}),(p,m)=>(y(),M("div",{ref_key:"container",ref:r,class:"v-previewer",key:i.value},[_(d(o2),{mode:u.value,width:d(s),height:d(l)},{default:j(()=>[c.value?(y(),M("iframe",{key:0,ref:"iframe",frameborder:"0",src:c.value},null,8,lx)):R("",!0)]),_:1},8,["mode","width","height"])]))}}),ux=I({name:"NodePathWidget",inheritAttrs:!1,__name:"index",setup(n){const{selected:e,designer:t}=wt(),r=z(()=>(e.value?.path||[]).slice(0).reverse()),i=o=>{t.value?.setSelected(o)},a=o=>{t.value?.setHover(o)};return(o,s)=>d(e)?(y(),V(d(D2),{key:0,class:"v-nodepath-widget","separator-icon":d(Il)},{default:j(()=>[(y(!0),M(ne,null,ae(r.value,l=>(y(),V(d(z2),{onClick:c=>i(l),onMouseover:c=>a(l)},{default:j(()=>[le(te(l.name),1)]),_:2},1032,["onClick","onMouseover"]))),256))]),_:1},8,["separator-icon"])):R("",!0)}}),dx=I({name:"SchemaWidget",__name:"index",setup(n){const{current:e}=Ie(),t=D(),r=z(()=>JSON.stringify(e.value?.toDsl()||{},null,2)),i=z(()=>e.value?e.value.name:""),a=async()=>{const o=(t.value?.getEditor()).getValue();if(o&&await On("手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"))try{const s=JSON.parse(o);e.value?.update(s),We("保存成功")}catch(s){Ae(s?.message)}};return(o,s)=>(y(),V(d(fe),{class:"v-schema-widget",title:i.value,subtitle:"手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",size:"small",fit:"",save:"",onSave:a},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:t,"model-value":r.value,height:"100%",lang:"json",dark:""},null,8,["model-value"])]),_:1},8,["title"]))}}),px=I({name:"SchemaWidget",__name:"index",setup(n){const{current:e,engine:t}=Ie(),r=D(),i=D(""),a=z(()=>e.value?`$vtj/vue/${e.value.id}.vue`:""),o=z(()=>e.value?e.value.name:"");return oe(e,async s=>{const l=t.project.value;l&&s?i.value=await t.service.genVueContent(l.toDsl(),s.toDsl()):i.value=""},{immediate:!0,deep:!0}),(s,l)=>(y(),V(d(fe),{class:"v-raw-widget",title:o.value,subtitle:a.value,size:"small",fit:""},{default:j(()=>[_(d(Te),{ref_key:"editorRef",ref:r,"model-value":i.value,height:"100%",lang:"html",dark:"",readonly:""},null,8,["model-value"])]),_:1},8,["title","subtitle"]))}}),hx=["src"],mx=I({name:"DocsWidget",__name:"index",props:{url:{default:"https://newgateway.gitee.io/vtj/help/index.html"}},setup(n){const e=n,t=D();let r=null;Ia(()=>{r||(r=Tl.service({target:t.value?.$el}))}),Ra(()=>{i(),r=null});const i=()=>{r?.close()};return(a,o)=>(y(),V(d(fe),{class:"v-docs-widget",size:"small",fit:"",body:{padding:!1},header:!1,ref_key:"panel",ref:t},{default:j(()=>[P("iframe",{ref:"frame",src:e.url,onLoad:i},null,40,hx)]),_:1},512))}}),l2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAEACAYAAADCyK/GAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfWmgXFWZ7Vq7bgKCYCvdiGmgAbEVxREEobsDoZFBBYJQdSohARQIIi0CIhigNWmRgKiAAyBDEAO5deo6MDWgoAR4NpOtgiL6WhRlVhsHJknu2eu9UzdIxnur6oy7zj5/s/f61re+fVfqDPvbhL+8Aq4qUNdkGPwbpf1BvB3AwwAeEngdgOsR8ieupuZ556MA8wnjo3gFUlbgvdqUk3ERpL3GQf4NyeusxXV47rHv4Jopz6bMwsM5roA3QMcLWEn6db2UBrcCemuP+X+78+vQ4kaM8Kc9zvXDB1ABb4ADWNRBT8k0o9Mlzk2Y5y8oXWeN+TYmYQkW8ZmEeH66gwp4A3SwaJWm3NQWlH6VsgZR/MxQ0LcAs8Q/O0xZ3RLDeQMscXE8tTUoEIy+jzALM9bmPoI3WEW34C+1JbiaT2Ucz8MXpIA3wIKE92H7U8AEukzQwf3N7mvWc2O/DrkEBrdgmPf2heInlVIBb4ClLIsntUYF6qrRdG5/NytQoR9SWmKNWYIIt2CEfyqQiw+dUAFvgAkF9NNzVKCxbHeydmOOEScKFZvfzZ1fh3bZLRiZ/KOJJvh/L5cC3gDLVQ/PZhwFTKDTBJ1SYpG+LvJctHhbiTl6aiso4A3QLwdnFGBgvwdg57ITFjQXYe2MsvP0/ABvgH4VuKFAXa+l0c/cIAsIPAQhv+oK36ry9AZY1cq7lnegIwld4A5t3qeQ27rDt5pMvQFWs+7OZW2CqCUwcIm4JnEKLudjLnGuGldvgFWruIv57qP1uJ5+CeCVLtEXo2loTVriEueqcfUGWLWKu5hvQ+8i9Z+uUfcGWP6KeQMsf40qz9A0orNEnuCaEN4Ay18xb4Dlr1HlGTKwdwPY3jEhnlVo1neMc+XoegOsXMkdS7iuN9LIvf23wtfUNnXH1K4cXW+AlSu5Ywk3omMY765w7BL4foS81DHalaPrDbByJXcrYTbsN0Ds7xZrQIabYJhPuMa7any9AVat4i7lO11/w3U63V/+xiXaIP5bLePaM0unJE6LrDfAtJT0OOkrUB/dn8Z8I33gbBEpftK2+fFso3j0NBTwBpiGih4jEwVMIzpX5DGZgGcIKnAnhLwjwxAeOiUFvAGmJKSHSV8BBjZ++/vG9JEzRfyDQvOKTCN48NQU8AaYmpQeKFUFZmo7Rvp+qpg5gBG6woa1WTmE8iFSUMAbYAoieogMFGjqBEpnZYCcKaRoD0JraHGmQTx4agp4A0xNSg+UpgIMbLz3911pYuaBpef5clzJP+YRy8dIroA3wOQaeoS0FZitjblUvwawbtrQGeP9l0LzTxnH8PApKuANMEUxPVRKCjQVUGqlhJYbjMBTEfJTuQX0gRIr4A0wsYQeIG0FTFPnS/pA2rhZ44l8G1r8YdZxPH56CngDTE9Lj5SSAgxsfPbHa1OCyweGeEwtMyWfYD5KWgp4A0xLSY+TjgJN7UwpPv3NqYvgJTbk4U6R9mT9qXB+DZRMgaZOpuTcczSBByCkc9v2Slb93On4X4C5S+4DjqcAA3sjgN1dU0n2kfUwstlzrvGuOl9vgFVfAWXKv6nNKP2mTJS65HKzQrNbl2P9sBIp4A2wRMWoPJWmZlNy7jBxSR9Fu/aZytfPQQG8ATpYtEGlbIJoocD3uZafLN+AEf7UNd6eL/xLEL8IyqMAAxs3P92iPIy6YvKgQrNlVyP9oNIp4H8Blq4kFSXU1K6UbnYte0Ln2bB2tGu8Pd8xBbwB+pVQCgVMEM0X3OuiLPI9aNG5Q9tLUfQSkPAGWIIieAoAA90CaKpjWliFHAIox3h7ussV8Abol0LxCgR6NaFfFE+kVwa8XiGda9nVa5aDPN4b4CBX15XcgtHDCXORK3Rf4CnwQwj5Rdd4e74vKuAN0K+GwhUwgS4XdFDhRHokICzdGuG6D/Q4zQ8vkQLeAEtUjEpSqWsyTaf56SaO5f9zheZ1jnH2dFdRwBugXxLFKtBYtidZu6FYEr1Hp3S2bdeO732mn1EmBbwBlqkaFeRiAi0Q9DHXUpf4TrR5k2u8Pd+VFfAG6FdEoQowsPEB4jsWSqL34M8qNOv3Ps3PKJsC3gDLVpEq8Qm0DSEX99BeqdDsX6VSDWqu3gAHtbIu5BXog4S+5ALVFTlKnIM2nftsxzWd8+DrDTAPlX2MNSrAhh0BcaBr8shyU4zwEdd4e76rK+AN0K+KYhSo66U0ehjAy4oh0HfUexSat/Q9208slQLeAEtVjgqRaWgfUle7ljHJBbbFk13j7fmuWQFvgL2sjLpeAYNdAUwB7BBo7kKEezHCp3uB8WMB04g+J/I417QQo6loTbqtFLz31QZYb3Q7WLMdgGdA8xgsbsMInywFPwdIeAPstkiBDiIwF9AbVpnyG4GnI+SXu4Xy4+LuLzY+QNy1W8k/KDSvKEX9Ah1JKP4luvnKfHifgAUIeUUpeJachDfALgpkGtGnxPFve0i1basWdAHnh9T1FhrFBujURSi0Ya1ZNGnTjEKJjfF4UDrdtmunFM217PG9AU5QIRNE5wj8cDeFJLnQtnhYN2MrPSbQsYTOdk0DwR6CcKjQQ5t6OTeF0Lk2rB3rms558vUGOI7aJoguEnh4LwUh9AUb1o7pZU7VxrJhrwKxr2t5y/DvMMzfF8XbBPq8oA/1Ep/QxTasHdHLnCqN9Qa4pmrXVTMGXxU0s5/F4N8UjqPa/tqIkxV/Q7dOP9oWNoe4Sy1T2Ja9JHumCS62IZ1rN5ZHrb0Brqry+7UBn9EiAPslKYCgUxHWPpUEYyDnNnQAqa+5lpvEeWhzfiG8G9GpJD+ZLDav0mQchEV8JhnOYM32BrhiPevahKZjfrunUWaBxyLkuWlgDQqGaURfFOncKWoCd0DIu3OvQ7rPS2+S5WyM8PHc8yhpQG+ALxQmPpdCWgRipzRrJfJwtHhJmpguYzHQ/YBcayT6uELzqtx1b+gIUhemGpe4XeJshPSdrP2xmMuX1gy9ibbzy+9NqS625WACZyBkKwtspzBnagdGutMpzvEfCXmZbfHQXHk3R2dSJqtv+e6V4WwM895ccyphMP8LsL5sJ5r40wZtnWF9JNn90B66JsMY5YduRidRPKP8RFdmKMMAw2znxrupfSldmfEPlAeW3w7fnlteJQxUbQNs6l8JLIKUx+3NU7LRdIxM+m4J10EulNjU9ZD2yiVYikH0HDfE1XwqRci1Q8Vrcsz8XppDvMc7t8MV7mxdXQOM/5e1uhzEBjkstBdCPC6OTkdrsnO3gYk1mqVXcZkeTYyTP8BtCk0+B7YHegehb+Z8QNSfBXswwqGr8pe2+IjVNMCGZpC6HIApoAS/kOF0DPO+AmIXFzLbZ1qZ5SVoLsJa9rftgbYlOr/8Xp1ZMmsHjkR7MFpDiwuIXWjI6hlgOQ7hvkfkdLT4YKHVzzG4aepCSc7tSJDhmzN/WVDXljQd88vkJVy3ZRZ4BEJe3O34QRhXLQMMog8TPKckhfueLPfHCH9XEj6Z0mBgY7P/h0yDpA/+oEKzZfqwKyDur405Gd8EtHOmcboEr9q3q9UxwIbmkjq9y3WQ0zB+S8/ivbiGz+YUsJgwzWX/QtVuLSZ4/1EJXWjD2pH9I0wwc47W4x91JYh3ZhajD2CRp6DFkv2t9JFIF1MqYYAm0GmCytoa6BsKzQFd1MrdIU39O6X/cC0BgdMRMrOXAwxs/MJjehl1qUo7rYE3QBPobEGlbglEaJENaweX8Q8hDU4M7M1Ap5O2S1ekl/EluJDLsiBtmlokaVYW2GlhVqGd1kAboGlGF0p04sE7pQtsu3ZUWou3NDjN57ag1vlVafh0S4S8US3u0e3wXsaZILpAYHa31r2QmWDsoLfTGkwDnCdj7reLBPbVzirF9dMTFKHP2rB2Qk+Tyj64qUMpXVp2mqvyE3gcwvRfmJkg+qzA413SY5DbaQ2eAe6rDfiS5O2silqgJOfbFucVFT/tuCaILhPo3O297NLXYWTdn6ephwk0X9DH08TMD4tXKWQpn1cm0WCwDLD+9CY066XWziqJsEnmCjwRIc9KglGKufP+/y7a+zu7P15ZCj7dk/i5QpNux5qGTiR1ZvcUSjnyJoWmVG+sk6o0OAY4U1txtLO1LdV2VkkF7ne+wKMR8rx+55di3ti+1ptKwaUHEqkfa9CIjib5xR4olHdo3E5rEt85KI1VB8MA63ojTWdrW6Ff0qe9aiUeijYvSxs3LzwTRKcJLOvnR2uVQYZ7Y5g3pKLTDB1Cq6+kglUekHs1iXvhcj5WHkr9MXHfAMc2kMfmV8Qeyv5U72FW1t+i9UCl56EMdDugd/Q8scgJwrNqm/VToRBov+X7e1OBKxnIAzJ8D4b5s5Lx6omO2wY4dosVm98mPWXt1GDeKYupGOFSp2gH+kdCqb5EyCn/axWafRLHqmsyDW4FVNhBSolzmBjA+e5G7hpgfXRfGhObX57trCZeEhmMkDQf7Zpbb4abmkPpyxnIkSmkwA8i5PmJgzSieSQ/kRin/AB/luGBGOaN5ae6OkM3DTBQk1DcLryIdla515nkRbbFObkHThDQBNGwwGYCiEKmqsYtsJi/ThrcBNF5Agfvw/Y1CxO302qiNeTcaX/uGWBTh1GqVMseCP+ptnlP0j/K3ObX9RIaxSePbZhbzHQC3avQvDkNKFcPf0+Su8jD0OLCJBh5z3XLAJs6hlLljpkkNWxbNXd2tQTam9B1eS/mpPEInmVDnpgUJ55vAl0qKN+DlNIgnhDDtXZa7hhgI5pLVqNFz6prUOTxaPHshGszt+kmiD4t8KO5BUwpkBTthvakuHFD8qupD1BK/iwxOZPcEVxqp+WEAbr6PVlKK+/3Aqch5E9SwsschoH9EYBUbiUzJ/tigCcVmo1SixfozUTnI/C/TQ3TISBX2mmV3gBNEJ3d+Vld0UuMdkdr0necSX/sbIsfO8P3RaJfV2gOTJV3c9muVC2dX5SpEssHzIV2WqU2QNOILhTdaGeVxZLK7UCeNMkH0YcIfj5NyDywJHsY2kPpP8BvLt2eGro7jxzKGKPs7bRKaoCiCezlrrWzSnMBCnYGwqFWmph5YJW5y/F4+cvyVRhh/OY6/Wt/bcTJ+n36wG4glrmdVvkMsK6XLt/Xu58b5U2fpcCdEPKO9JEzRqzrZTT6LYDJGUdKF564Sy2T+Y4NBjb+vnDzdMm7glbOdlrlMsAZemXnsHJgd1fKmjJPyXJKZr9EUia7GlxjdDpp4nMunLpInmZb/Pc8SLOpJZB2ySNWCWOUrp1WeQwwbmcVm58Go51Vz4tPeExtM6XneSWaYAKdI+jDJaLUFRUZ7oxh3t7V4BQGmWb0FYmHpADlHkTcTqtlSnEEaCxeOQyw/vwbaSZfDmig2ln1sDrvVGjc6pqyhuQY2LgzyGt7yLv4oUX9x9PQJ0i5tb87vWqltuMmKaXiDbCpHSktBrBV0mRcnE8otGHNuT2zq2ld13Y0+r5rNSB4hQ1ZzOlsjdFDSDNovQK7XQIPaDLfXHRj1WINcIZ2o+2Yn2st07st8rjjKJ5p2/xYKmBFgzT0EVKfKZpGr/EFOwvhUNxYo5iroamkbikmeOFRH9ckvq3IxqrFGWBD+5Ad83tp4WUogIDIo9DiBQWEziQkm7oe0l6ZgGcIqhpfgcX8Q4YhJoaua2sa/c/EAwdyRNxOa8eiGqsWY4Bj7axi8ysmfsHrSLDvQjh0fcE00gu/vzbmZD2RHmBuSLcpNFNzizZeoLFPiH5R0a1zkTj6T2hNvjPvWuRvQM3RwyhTrXZWL1bVCtwWIe/Pu9CZxmuoQSrMNEYG4JL+He3aaRlA9w3JwMa7RrbvG8DhiTLcI+/GqvkaYCM6hmTl2lktX5OPynJrjPA5h9foGqmbRnS+yA+4lpfA7RDyB2XjbQLbFlAvG688+Ii2nmdj1fwMsKG5pE7PQ8QSxviBQrNdCXmlQsnRHQ4PKjRbpiJABiAm0JmCUulNmAG9TCHzbKyaiwGaQKcJcu54xFSq7Fo3516TrmsnGv1Xr9OKHk9yoW3xsKJ5jBs/iI4iHD8buk+BRR2PVi3zHpiZG6AJdLagSrazInShDWtH9rkG3JjWjE6m+Ck3yL7IUuKBaPPrpefdHN2XMleVnmcGBCXOQ5vzM4D+K2SmBmiaulDSEVkmUFZsiSejzQVl5ZcWLzbsEhCu7W0dleWGzjyPHTv7OretemmtjTRwKJ5t2zw+Daw1YWRkgKJp2CtEzsiKeJlxJc5Em8Nl5pgKt4O0KUf1UCpY+YKUblP+hOkHevXyRrMvmXDsgA2gtNC2a5k8rkjfAON2VtQVIPYdsDp0k04kRlPRmuTcM7FuklttTHN0NmW+2tfcAid1Xi6EtbMKpNBf6IO0IUc7vwRf3x+Aw7PEr6nN1N+Mp2uAs7Uxl3Y+cP5Xh6Xul/ojIndAi4/2C+DaPBNElwp07uQzmWXbYnid+1zT+wW+bOpaSO92lX/fvIUb1TZ79D1/DRPTM8C6tqTpmJ/zXU16F5jfV8i39z7P7Rls2icgbOxYFj9TaLZxjPNqdE0j+qLIo13Po2f+KbfTSscAxw7Cic3vjT0n5P6EaxWafdxPo8cMZmgXWi3pcVbhwwmdb8PaBwsnkgaBpk6idEYaUI5hpNZOK7kBVridVdkPfMlyUZum5kn6RJYxssAWuA9CXpsFdiGYDb2f1CWFxC426AMKzdZJKSQzwAq3s6L4Sdvmx5MWwNX5DGx8Zknm52ikrM8z2oYbYh5tyrjFwjVG9yHN1cWSKCT64wrNq5JE7t8AK9zOStDRCGvnJRHe6bnx8QWRHnAwh8F9XDF2J+beQVrJF9GfNZlT+m2s2p8BjrWzGvzv3FYvzqjE/dDmdcnr5jBCU4dRcq6jj8BjEPILDis/PvXOf0z4DqAtBjbHNScWaRI366exau8G6OjiT7wghIcl7okR/jQxluMAJtCwIOfa+AvcGiFd/OXa/YrZVxvwJYpvh3ftftJgjJThNr02Vu3NAIPowwTPGQy5esmCd2sypvX7M7uXSKUfO0eT+KfOId8blp7rygTvUWje4hjnvumaQJcJOrhvAEcniqPv6KWxavcG2IhOJt3b9J5CHa9RaKq4q2XN0gXag9C3UtA1VwhC59iwdlyuQQsOZoLoMwI/UjCN3MP30li1KwM0jehTIk/OPZOCA1K6yLZrcwqmUarwJogWCO4d5CQb7YGRSTeWSsw8yDR0Iqkz8whVphjdNlad0ABNEJ0j0LnDrpMWg+B/2JDOfeeWNO+J5jOw9wBw7fzmJxWajSbKbWD/PdD7CC0c2PzWklg3jVXHNUATRBcJPLxywkEfRFg7v2p5T5hvoG0IufgS6OsKzYET5jfIA4LR9xDmmkFOcU25TdRYda0GaJrRYqly7ayWSWygzSurtlC6yjfQUYSc+/5R5JFo8cKuchzkQTO1AyPFu2D+bpDTXDW38Rqrrm6As7U+n8diUFV78P+QwAZCVvFj0q7+HhjY+D+G/boaXKJBGuJmuIIPl4hScVTGmpa0q3by3Noaq65sgJ12VlgMqFrtrMi7FOG9GOEjxa3MkkeO+zwaPQlgUsmZrkxPuEtt49qWvWwljn/kLEUb0LuyDVQu9DU1Vn3RAMf+Z4h3d1RrsQhXq22c+1WT+9IK9B5Czj1DIniGDTk3d70cCGia0VckHuIA1fQortJYdcwAm9qC6izubdOLVH4kgl+2oXvn2RahrAmiswU6d7iVyKlo8bYiNHMhpmlEZ4k8wQWuqXFcobFqxwBNoEsFOdfZN4kgJOfbFuclwajSXAb25wD+0bGcH1Vo/t4xzvnTDfRRQp/OP3BxESWdhHbt00Rz9FDKXFoclfwjSzoK7doF+Ud2NGKgNxP6kWvs4ya9Nqwd5BrvQvg2dSilivmAnUkT6KuCZhciev5Bly5/01vJc1b7ljuIjiWY+SHVffNby0TJHor20GVp4w4sXn303aRpg1hvYHNcITECI2RgfwWgCu1zfiOygRbvrEJx08yRgb0BwJ5pYuaBJcuNMcLf5RFrYGIEejvR+Uxm8D1BeNgb4MCs3IwSqesVNPrfjNCzhL1VoXHtwPYs9egOu64dln8n+A/dTXB4VGyA/hbY4QLmQb0xegBpvpZHqDRjkJpvWzX/kqsXUcc+dRoBsG4v01wd27kFRgU3SvuXIN0vWdPU+ZI+0P2McoyU5Y4Y4V3lYOMAiwo2Ohbt+5Z/BmPbAlI/db3MZfefwXRXHQb6NaDNuxtdmlG/Umi2Kg2bshOpYK9Pgl+xIccMML4Y2LjJZaqnrpe97v5D6AkqVF+6A82Qcy+NSC60LR5W9vVXBn4m0DmCqtbu7ici90GLD660F9g0o7DTDaVKl98Kt/ZqN6KTSDp38LbIJloMq7SM+8nVBNGwQOfOdukn1xXm3CnLGRhh/PULVusGYwJdIOjIhEHcmu6bIayxXgzsLQCmOlbMZVofG2Ehn3KLd45sD9ZGnWYI0m45Ri0+lPBdrcMZWMTf/vXOd02sTCM6Q+RJxTPOlYFvh7Wi3HVtQqPHcq1AGsFW2OeZBtzAYdT1ehrFb/W3Gbjcxk/oGk3umN8zKw5be0fopk6i5NztT8Ki+oaoLwjY0AxSixPqmft0SSejXVuQe2AXAjaWTSNr1wNYxwW6aXEkOWxbnLkmvPHPBAmiIwlWbs+sfEt8uNoqSeBbEDI+t8RfKyrQVECpVTVRCF5sQx6xtrwnPBQJDTVIVe6BctUPRWJg4+ckjrVO5/0K+fqq/ZFPmG8jOobkuROOG7ABBM+14fgt3CY2wFgUR8+CTVrPyh6LWdc/08i5HnqEzrdh7YNJ6z5I802g0wSdMkg5dZMLxdNtmxPm3Z0BjplgvEm6il/WV+9g9Eb0CdK9XokS9/cHWr1oD5U91ZE8BS2e3pVRdjPor2Nm6jWM9H97mjMQg3m3JmPaqm+QBiK1NSTBpr0Twg6O5fe0LDfCCJc6xjt9uodqXT6Hr1ftzI9YyE7X8rD72/3ufwG+UKamplCq3uFBwsMS98QIXTwXt/s/spn6B0Z6sPsJZRnJaxSyaicZri5+XZvT6NsAXluWyuTFQ+ARCHlxL/F6N8AYfaZezkjxQ/KhXoINwNhRifuhzesGIJc1pzBDh9DqK67lJ/J4tNxr2pqqzmOPqb7n3Ml9KYggcSbajA916+nqzwDjEHtrHW6IhwA59qawJ33WOFjQ0Qhrzh0Q3k3mJlBLUNDN2DKNkeXrMML43JJqXk29m+ocel616xmRM9Hi1f0k3r8BLo/GwMbPBF/TT3CX51D8pG3z4y7nsBr3eTK8X38EsIFjef1IoXmrY5zTo9vQ+0ldkh6gI0jCb2U65vedfhknNsA4MAMbvx1+e78kXJ1H6GIb1tb6kaVzec3QbrTqezEVlS/Js22LxxcVv9C4jWgu2d0bz0J5ph/8VwJnIuQdSaBTMcDlJli5dlrLhb9WodknSRHKMtcEWiDoY2Xh0y0Pwb4L4VC8xatSlwmiLwms4nePP5HlTIzwx0kLnpoBxkQq2U6rUwF+XyGd/wXMQPcAelPSRZXrfOF/1TZ/m2vMEgRjw14PYq8SUMmbwp2qcSYW85dpBE7VADsmWMV2WmOVeETkDmjx0TQKkzuGq994Cl9T21Snm/nYIVW3O3hIffIlTXy388JjmE8kBxtDSN0AOyZYzXZaceqRGE1Fa9J/pVWg3HAcbXwh8GiEHMg38qvVPtA2hO6t4OdnsRTXLL/tfTrNv4lMDLBDsJrttDqp9/tNUpqF7RWLDXsVCOc+JBa5ZdzavNd8nRs/Q7vQaolzvFMgTKhlQzMToFKAWwkiOwOMwzj6qyINkSWejDbd6EvX2TqluIOyax+236nQvCONepUao6IdmcZuUXWJDWuHZ1WfbA0wZl3t4l1ow1r5jxcIRvcmjHO7WwieYUPOzeqPoxS4TZ1A6axScMmZBKXP23Yt0wObsjfAWLT66LtpTBW/Uo93Z/+n2uY9Oa+dnsKZIDpHYKYLrSdCXQ6WuBvavLnL4c4NM4HOE3SUc8RTIExqgW3VTk4BalyIfAxw7JfgNFLfzTqhkuL/QKHZrqTc4g/ZHdzNw0cUctOyapqUFwPdAGjPpDguzhd0KsLap/Lgnp8Bxtk0tSOlRF9u5yFKRjEeleXWGOFzGeH3Bxs8vy0xKfEHpf0F738WoStsWJvVP0JJZ9Y1mUb3Adi6pAwzpSXoOIS1czINsgJ4vgYYB56hN9HGH9xW8rICt0XI+0uTfaAPE8ptwaWVt2gPR2tosPa/NrUZ1WlFZtLSySUcyc5Be+iiPDnnb4BxdnVtTaPYBFx765hKbcq0dYuBdXILo5ZxCr5B947tXNsKai7dnhq6O5UF5h6IRDsLraHcTyEsxgDHboenUPhRFdtpxemLPAqtgk/cqz/5Mpq/ibu/uHWRt6jFXd0iPQ7bhg4gO2f1VvF6WrCzEA5dVUTyxRlgnO1YY9U7q9hOK06f4pm2zeKaDwTaj9CVRSy8JDFJzbet2rwkGKWZG+ijhD5dGj75EnlCimahPemmfMO+GK1YA4x5dBqrdk4gc76ZQD9FJBTasNbsZ27SOa7u2xb5T2jRve2GqxTMBNEFAsv/nWjShbbm+b+UjWZhZFK8r7mwq3gDXJ66q8+iUqpcITsaGNjfANgspRzygvmlQvPqvIJlFYcN+20Q78wKv9y4/LHM0lkYXife11zoVRoDjFWobjutznFWj6ltpuS2GgK9jdB/5xYvpUAEL7EhM9salRLNcWEY2F8AcN7E+9OKdwjPz0K47gP9zU93VqkMsGOC1W2nFacvWU7BCB9Pt8xrQHO0WYXAWQh5Reb6ZBFg7Jn3/2bVhSkLyqliCt/t9PJLsZ1VUn6lM8COCVa3nVanngJ3Strqe6KFwUC3AJo60biS/fsy1fhKLOYfSsZrYjr1pdvRDH00GtgFAAAOa0lEQVR/4oEDOyKTdlZJ1SqlAXaSCqJTCJ6WNEFX5wt2BsKhVib86/o7ms6xpq5d31Zo3NseFozWCdN2Tey0+GbZziopx/IaYJxZU8dR+lzSJF2dL2guwtoZqfNvjgaUycZcUyf7IqDAuQiZvh4ZckYzOolyjHOKemTdziop1XIbYOeXoI4kdEHSRF2dL0a7ozUp1ZPaTBBdJvBg1zSR5fYYoTsvbpqaQ+nLrumcFt882lkl5Vp+A+yY4OjBhLksabKOzv+9wGkI+ZO0+DOwvwPg2kFC9ys0r09Lg8xxmkvfSg3dCuClmccqYQCSC2yLmbezSpq6GwY4djt8IKWRpAm7OF/k8Wjx7FS4B3oH0TlUx6mL4Hk25NHOkG7qA5TOd4ZvikQFnoqQubSzSkrbHQOMM61oY1VSw7ZVm5m02PF804zmSfxEGlh5Yoiso0Vn9suaQJcKOjRPjcoQS+BxCOlMdyG3DDCucBUbq6bYVZqBvcvBbYdP6Vlugmv4bBn+yLvh4OohU93ktrYxIuegxVzbWSXhG891zwDHbofjxqr/pyrttEheZFuck7TYqOvvafRwYpz8Aa5RaJw6sc4E0XkCq9LO3oqcjRZzb2eVdCm6aYBx1p3GqripCu20JM1HO4XuJw0dQuorSRdN3vNTfQaaF/lGNI9071FDH/I8JXA2QhbSzqoPvitNcdcAO88EO41V49PMXpNUiPLO552ymIoRLk3K0dW91jLcFsOM28S7c3Va2+NWQDu6Q7pnpk9InIU2C2tn1TPjVSa4bYBjt8NTqE5Pu4FspyVwelr/uzKw8dm/jn2WwR8q5NuSLvRC5jvab7FLrX4pw1kYpnNfFKyYn/sGGGcztsk83tmwR5fFc2KYxEPRZjrfP9a1C42WOJH4CiQpnW3bteNd4/1XvjN0CK17jx0m0PvHy82v8HZWSdfFYBhgrELcWHUDXQ7iwKSilGG+wKMR8ry0uJiGzhB1Ulp4eeFIdl+0h67JK14mcRrR0SS/mAl2/qB3LO/IU4p2VknTHxwDXK6ECXSZIOe2ea1YSIEnIuRZSYu70k/9wMb/W78xTcwcsH4vy00wwiiHWNmGaOhEUmdmGyRz9O/IclYu7doyT2UswMAZYJyUy63GSc63LaZ73sUB2opDcu5/bIIjNmQjp7+FzMOYQPMFfTzzQFkEEK7WXzgLVzN+jjww10AaYMcEG9HnRB7nUqUIfdaGtRNS5+xoQwlBRyOspfYYIHVd+wA0QfRZgU490yQ5bF+HWZhH20fKpZ4ysAY49ktQpwk6pdQVWE6O0gW2Xcvkw1k2dRUkpz4kjmWR5Wswwrh9/EBdLt2hELzYhjxioAqwQjIDbYCdPB1orEpokQ1r2Ty3nKNJ/JPiLWSuHUJ/h0Kz06D+4ZmmFkmaVeb8CJ5rQx5bZo5JuQ2+AcYKlbux6jcUmgOSFnKt8xvL9iRrN2SGnxGwK+2UkqTPwH4TwPQkGFnNJbXAtmqlb2eVNP9qGGDnl2AZG6vyW3oW781yk79pROeKPCbpQsl7vgz3wDBvzDturvHmaD3+UVeW7XhMQacirDnRzippvapjgB0TLFVj1e/Jcn+MMG5OmtnFwP4PgK0zC5AN8CMKzabZQJcMdX9tzMn4JqCdy8BM0HEIa860s0qqWbUMcOx2uAyNVe8ROR0tPpi0gOPOn6HX0er+TGNkAE7qctuqzc4AupyQdW1J09nO+aYiCUp2DtpDTrWzSqpX9QwwVmyssWq84Ip4MfALGU7PZXN/EB1LpNRJOulK62G+yMPQ4sIeprg/NNC2RMcEizgw3dl2VkkLX00DjFXrNFZFmHM7rcfF0eloTb4zaeG6mc+G/XbZni91w1vk5mjxoW7GDtSYseMK4hcjm+SYl9PtrJLqVF0DHLsdjhurXp7TM7KnZKPpGJn03aRF62r+bK3PpXq6q7FlGiTcorbZtUyUcuXS1L8u726UR9eexyXOdrmdVdLaVNsAY/U6jVW1KOPnL5Lsfrlu6ne0FZPEeWhzftKF7fT8pvZdboJZ/n0+IMPZrrezSlrnLAVOyi2/+WONVeNfgpk0rxQ4AyFzPYjcBNGXhRTa6OdXhU4kibugzfg4yWpfzdGZlLkiIxHuXW5+zrezSqqPN8AXFBxrrBqb4LSkoq44X+ThaPGSNDG7wWLDPgTCsU9J+IBCuvbJTjfl6G9MQ0eQurC/yWuZRdyuaOnBGFl34LYY9qOTN8AVVYsbq1osgvTufsRcdY7AYxHy3DSwesIYu62/p6c5JRhM6BIb1g4vAZXyUAh0LKF0zoQGb9IyHIxv8LHyJFgsE2+Aq+qfUmPVQr+mD/QxQguKXVq9R1/eaDOr277eCZVlRiM6leQnE9GJ21lN4mxcwT8nwhmwyd4A11LQJI1Vi97HysDGz9D+xbG1ulRLn9kM39zgt47xzoWuCbRA0Mf6CUZq2EZm9kA0lu1HgHHmeAMcR5x+2hYR+oINa8XtvR07H+XJlNdJDnD8lkLulUMgZ0OYQJ8X9KFeEiB0sQ1rA9vOqhct1jTWG+AECvbSWJXkQtviYUmLkmh+UwHVOSDKqUvQXIS1M5wiXQBZE0QLBb6vm9CEzrVhbaDbWXWjw3hjvAF2oWA3jVVJtW2rFnQBl+mQJLfumRKbAFzkO9BiLjtkiswzjdjdnO9M6XTbrjnRDDgNTfrF8AbYrXKBDiIwF9AbVpnyG4GnI+SXu4XKchwD/Q7Q32YZIwPsnyo0q+qaQZgBghxr7xb369t85ax4n4AFCOlfJnVRbm+AXYj01yF1vQIG8TatKYAdAs1diHAvRliOLWfNpTtSQ3f0klIZxpL8km3x38rAxSkO+2oDrDe6HazZDsAzoHkMFrdhhA4+Ay5GeW+AxeieSVQTRPMFOnfqmGjraA19LRNRPKhXYBwFvAEO0PJgYO8GsL1TKQlPaRI39d+nOVW1gSHrDXBQSlnXJjRy7wv/+APdttlvUMrg83BLAW+AbtVr7Wybo4dS5lLX0hF4HEJWpgW7a/UZdL7eAAekwiawbQF119KRHX0rRib/yDXenu9gKOANcDDqCAY2fhO9vmPp/FCheZtjnD3dAVLAG+AgFLOuXWi0xLVUCH7OhvyIa7w938FRwBvgANTSBNGZAk90LRWB+yDkta7x9nwHRwFvgANQSwb2xwC2dSyV3+nP3AzX83nHeHu6A6SAN0DXi1nX5jT6tWtpEBixoWm4xtvzHSwFvAG6Xs+mPkDpfNfSEPhBhHSOt2s6e77jK+AN0PEVwkBXA9rHtTRkuA2G+TPXeHu+g6WAN0Cn6yky0DIANafSIG9Xizs7xdmTHUgFvAG6XNaG9iR1g2spkFpgW7W4lZO/vAKFKuANsFD5kwU3TZ0rqbj2+33Sl+EeGOaNfU7307wCqSngDTA1KfMHYqD/AeTWObrCw2qbzfJXy0f0CqyugDdAV1dF/S+vpZns3EsEgotsyINdld3zHiwFvAG6Ws9GdBzJz7lGX7KHoT200DXenu9gKuAN0NG6MrDxM7TdXaMvy60wwl+5xtvzHUwFvAG6WNcPaR3+Vn9xkPoShWaag7w95QFVwBugi4VtjE4nzTddoy7wEwj5H67x9nwHVwFvgA7W1jSiC0Ue4Rp1KdoF7Um3usbb8x1cBbwBOlhbBvZhAH/vGPUHFBq3PtlxTGBPt3cFvAH2rlmxMwK9mZBzLeQJXWzDmnO/Wostto+etQLeALNWOG38huaSOj1t2KzxRB6EFhdnHcfjewV6UcAbYC9qlWAsm/Y2CP9cAiq9UHhefG4rtNZ/tJdJfqxXIGsFvAFmrXCa+AdpQ47qT2lC5oT1LYVmr5xi+TBega4V8AbYtVQlGBioSWi4BEx6oiDyY2jxzJ4m+cFegRwU8AaYg8hphTCBvipodlp4eeGoxh2xmHflFc/H8Qp0q4A3wG6VKsE4Nu3vIWxUAio9UOB9CunagU095OeHuqyAN0BXqtfUjpTucIXuCzwpfcm2a//mGm/PtxoKeAN0pM4m0HxBH3eE7l9pSjwQbX7dNd6ebzUU8AboSJ0Z6G5A2ztC9wWaf5bllhjhk47x9nQrooA3QBcKPePpV9Ku97gLVFfmyKsUcrp7vD3jqijgDdCFSgej7yOMc01EBR2HsHaOCxJ7jtVUwBugA3Vnw46AONABqitRFPgWhLzHNd6eb3UU8AboQK3ZsM+AWM8BqitS/IFCs51jnD3diingDbDsBW8u25Wq3Vx2mqvyI/hZG/IE13h7vtVSwBtg2evtqAEKdh+EQ9eWXV7Pr9oKeAMse/3dNMDfaTK3xCI+U3Z5Pb9qK+ANsOz1r2syTacDzLplp/oCP1Jt26oFrvD1PKurgDdAB2pvgugywZ3DxEUehRYvcEBaT7HiCngDdGEBOHYbLMNtMMyfuSCt51htBbwBulL/RvQRkp8pPV3hdrXNzqXn6Ql6BQB4A3RpGTT1L5Q+DOCAstKmdLpt104pKz/PyyuwogLeAF1cD3W9BbTTCLMroGkgNihLGhLfiTZvKgsfz8MrMJ4C3gBdXx8z9XKMYjcDO03krgDeUGBKD+kJboUlHC2Qgw/tFehaAW+AXUvlyMCmtofFbhz7ZRgbYm6fzxBaZMPawY4o5Wl6BfwzwIFeA3W9DCba26A2TbEhAq/JMl+B70fIS7OM4bG9Amkq4H8Bpqlm2bECvQ2wexNmWufZIWDSpCxyS7T4YJqYHssrkKUC3gCzVLfM2PtqA6wb7W3IvQTGZrhFErqkFthW7eQkGH6uVyBvBbwB5q14WeONvVnem4wPMNfU3mjyh7KYihE+3ds8P9orUKwC3gCL1b+c0WdrfTyPvQzt3gL3BjBl7UR5k4j3o8WHypmMZ+UVGGf1enG8AhMqMENvQhT/OuReADYDsCnImyVcDYtLMMKlE2L4AV6BEirw/wBT9ySzG22TjAAAAABJRU5ErkJggg==",fx={class:"v-about-widget"},vx={class:"v-about-widget__logo"},gx=["src"],yx=P("div",{class:"v-about-widget__name"},"VTJ.PRO",-1),bx={class:"v-about-widget__version"},wx=I({name:"AboutWidget",__name:"index",setup(n){return(e,t)=>(y(),M("div",fx,[P("div",vx,[P("img",{src:d(l2)},null,8,gx)]),yx,P("div",bx,"版本:"+te(d(k7)),1)]))}}),xx=I({name:"ProjectConfigWidget",__name:"index",setup(n){const{project:e}=an(),t=r=>{e.value?.setConfig(r)};return(r,i)=>(y(),V(d(fe),{class:"v-project-config-widget",title:"项目配置"},{default:j(()=>[d(e)?(y(),V(d(pi),{key:0,footer:!1,size:"small","label-position":"top",model:d(e).config,onChange:t},{default:j(()=>[_(d(ee),{label:"站点名称",name:"title"}),_(d(ee),{label:"Logo",name:"logo",editor:Po,props:{attachment:{accept:".png,.jpg,.jpeg"}}},null,8,["props"]),_(d(ee),{label:"主题切换",name:"themeSwitchable",editor:"switch"}),_(d(ee),{label:"模拟数据",name:"mock",editor:"switch"})]),_:1},8,["model"])):R("",!0)]),_:1}))}}),ye={Logo:J7,EmptyWidget:G7,Switcher:X7,Toolbar:Z7,Actions:n9,Pages:b9,Blocks:x9,Components:j9,Outline:V9,History:C9,Apis:O9,Deps:I9,Designer:P9,Scripts:W9,Properties:J9,Events:Y9,Css:K9,Directives:X9,Defined:nw,DataSources:iw,Style:sx,Previewer:cx,NodePath:ux,Schema:dx,Raw:px,Docs:mx,About:wx,ProjectConfig:xx},_x=[{name:"Logo",region:"Brand",component:ye.Logo},{name:"Switcher",region:"Brand",component:ye.Switcher},{name:"Toolbar",region:"Toolbar",component:ye.Toolbar},{name:"Actions",region:"Actions",component:ye.Actions},{name:"Pages",region:"Apps",component:ye.Pages,type:"app",openType:"panel",icon:Lu,label:"页面管理"},{name:"Blocks",region:"Apps",component:ye.Blocks,type:"app",openType:"panel",icon:Ju,label:"区块管理"},{name:"Components",region:"Apps",component:ye.Components,type:"app",openType:"panel",icon:qu,label:"组件库"},{name:"Outline",region:"Apps",component:ye.Outline,type:"app",openType:"panel",icon:Fu,label:"大纲树"},{name:"History",region:"Apps",component:ye.History,type:"app",openType:"panel",icon:Uu,label:"历史记录"},{name:"Apis",region:"Apps",component:ye.Apis,type:"app",openType:"panel",icon:ju,label:"API管理"},{name:"Deps",region:"Apps",component:ye.Deps,type:"app",openType:"panel",icon:Iu,label:"依赖管理"},{name:"ProjectConfig",region:"Apps",component:ye.ProjectConfig,type:"app",openType:"panel",icon:fo,label:"项目配置"},{name:"About",region:"Apps",component:ye.About,type:"app",openType:"dialog",icon:Pu,label:"关于",props:{width:500,height:300}},{name:"Designer",region:"Workspace",component:ye.Designer,type:"tab",closable:!1,label:"设计视图"},{name:"Previewer",region:"Preview",component:ye.Previewer,type:"tab",closable:!1,label:"预览视图"},{name:"Schema",region:"Workspace",component:ye.Schema,type:"tab",closable:!0,label:"DSL视图"},{name:"Raw",region:"Workspace",component:ye.Raw,type:"tab",closable:!0,label:"源码视图"},{name:"Docs",region:"Workspace",component:ye.Docs,type:"tab",closable:!0,label:"帮助中心"},{name:"Scripts",region:"Settings",component:ye.Scripts,type:"tab",group:at.Block,label:"设置"},{name:"Css",region:"Settings",component:ye.Css,type:"tab",group:at.Block,label:"CSS"},{name:"DataSources",region:"Settings",component:ye.DataSources,type:"tab",group:at.Block,label:"数据源"},{name:"Defined",region:"Settings",component:ye.Defined,type:"tab",group:at.Block,label:"定义"},{name:"Properties",region:"Settings",component:ye.Properties,type:"tab",group:at.Node,label:"属性"},{name:"Style",region:"Settings",component:ye.Style,type:"tab",group:at.Node,label:"样式"},{name:"Events",region:"Settings",component:ye.Events,type:"tab",group:at.Node,label:"事件"},{name:"Directives",region:"Settings",component:ye.Directives,type:"tab",group:at.Node,label:"指令"},{name:"NodePath",region:"Status",component:ye.NodePath}],Sx=[{package:"vue",version:"latest",library:"Vue",urls:["@vtj/materials/deps/vue/vue.global.prod.js"],assetsLibrary:du,required:!0,official:!0,enabled:!0},{package:"vue-router",version:"latest",library:"VueRouter",urls:["@vtj/materials/deps/vue-router/vue-router.global.prod.js"],assetsLibrary:pu,required:!0,official:!0,enabled:!0},{package:"@vtj/utils",version:"latest",library:"VtjUtils",urls:["@vtj/materials/deps/@vtj/utils/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"@vtj/icons",version:"latest",library:"VtjIcons",urls:["@vtj/materials/deps/@vtj/icons/style.css","@vtj/materials/deps/@vtj/icons/index.umd.js"],required:!0,official:!0,enabled:!0},{package:"@vueuse/core",version:"latest",library:"VueUse",urls:["@vtj/materials/deps/@vueuse/shared/index.iife.min.js","@vtj/materials/deps/@vueuse/core/index.iife.min.js"],required:!1,official:!0,enabled:!0},{package:"element-plus",version:"latest",library:"ElementPlus",localeLibrary:"ElementPlusLocaleZhCn",urls:["@vtj/materials/deps/element-plus/dark/css-vars.css","@vtj/materials/deps/element-plus/index.css","@vtj/materials/deps/element-plus/zh-cn.js","@vtj/materials/deps/element-plus/index.full.min.js"],assetsUrl:"@vtj/materials/assets/element/index.umd.js",assetsLibrary:"ElementPlusMaterial",required:!1,official:!0,enabled:!0},{package:"@vtj/ui",version:"latest",library:"VtjUI",urls:["@vtj/materials/deps/@vtj/ui/style.css","@vtj/materials/deps/@vtj/ui/index.umd.js"],assetsUrl:"@vtj/materials/assets/ui/index.umd.js",assetsLibrary:"VtjUIMaterial",required:!1,official:!0,enabled:!0},{package:"@vtj/charts",version:"latest",library:"VtjCharts",urls:["@vtj/materials/deps/echarts/echarts.min.js","@vtj/materials/deps/@vtj/charts/index.umd.js"],assetsUrl:"@vtj/materials/assets/charts/index.umd.js",assetsLibrary:"VtjChartsMaterial",required:!1,official:!0,enabled:!0},{package:"ant-design-vue",version:"latest",library:"antd",urls:["@vtj/materials/deps/ant-design-vue/reset.css","@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/localeData.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekOfYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekYear.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/advancedFormat.js","@vtj/materials/deps/ant-design-vue/dayjs/plugin/quarterOfYear.js","@vtj/materials/deps/ant-design-vue/antd.min.js"],assetsUrl:"@vtj/materials/assets/antdv/index.umd.js",assetsLibrary:"AntdvMaterial",required:!1,official:!0,enabled:!1}],kx=[{id:"html",category:"HTML"},{id:"elements",category:"特殊元素"},{id:"components",category:"内置组件"}],jx=[{name:"div",label:"容器",categoryId:"html",snippet:{children:"容器文本内容示例"}},{name:"span",label:"内联",categoryId:"html",snippet:{children:"内联容器文本内容示例"}},{name:"a",label:"链接",categoryId:"html",props:[{name:"href",label:"href",setters:"InputSetter"}],snippet:{children:"链接文本内容示例",props:{href:"#"}}},{name:"img",label:"图片",categoryId:"html",childIncludes:!1,props:[{name:"src",label:"src",setters:"InputSetter"},{name:"width",label:"width",setters:"InputSetter"},{name:"height",label:"height",setters:"InputSetter"}],snippet:{props:{src:l2,width:"200",height:"200"}}},{name:"h1",label:"大标题",categoryId:"html",snippet:{children:"标题"}},{name:"h2",label:"中标题",categoryId:"html",snippet:{children:"标题"}},{name:"h3",label:"小标题",categoryId:"html",snippet:{children:"标题"}},{name:"p",label:"段落",categoryId:"html",snippet:{children:"段落文本"}},{name:"component",label:"动态组件",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#component",props:[{name:"is",label:"组件名",setters:"InputSetter"}],snippet:{children:"组件文本内容示例",props:{is:"div"}}},{name:"slot",label:"插槽",categoryId:"elements",doc:"https://cn.vuejs.org/api/built-in-special-elements.html#slot",props:[{name:"name",label:"名称",defaultValue:"default",setters:"InputSetter"}],snippet:{children:"默认插槽内容"}}],Vx=[...jx,{name:"Transition",label:"过渡效果",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transition",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"mode",label:"时序",defaultValue:"default",title:"控制离开/进入过渡的时序。",setters:"SelectSetter",options:["in-out","out-in","default"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"Transition"}},{name:"TransitionGroup",label:"过渡效果组",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#transitiongroup",package:"vue",props:[{name:"name",label:"名称",defaultValue:"",title:"用于自动生成过渡 CSS class 名",setters:"InputSetter"},{name:"tag",label:"标签名",defaultValue:void 0,title:"如果未定义,则渲染为片段 (fragment)",setters:"InputSetter"},{name:"moveClass",label:"moveClass",defaultValue:void 0,title:"用于自定义过渡期间被应用的 CSS class。",setters:"InputSetter"},{name:"css",label:"应用CSS",defaultValue:!0,title:"是否应用 CSS 过渡 class",setters:"BooleanSetter"},{name:"type",label:"事件类型",defaultValue:void 0,title:"指定要等待的过渡事件类型来确定过渡结束的时间,默认情况下会自动检测持续时间较长的类型",setters:"SelectSetter",options:["transition","animation"]},{name:"duration",label:"持续时间",defaultValue:void 0,title:"显式指定过渡的持续时间",setters:["NumberSetter","JSONSetter"]},{name:"appear",label:"使用过渡",defaultValue:!1,title:"是否对初始渲染使用过渡",setters:"BooleanSetter"},{name:"enterFromClass",label:"enterFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterActiveClass",label:"enterActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"enterToClass",label:"enterToClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearFromClass",label:"appearFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearActiveClass",label:"appearActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"appearToClass",label:"appearToClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveFromClass",label:"leaveFromClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveActiveClass",label:"leaveActiveClass",defaultValue:void 0,setters:"InputSetter"},{name:"leaveToClass",label:"leaveToClass",defaultValue:void 0,setters:"InputSetter"}],events:["before-enter","before-leave","enter","leave","appear","after-enter","after-leave","after-appear","enter-cancelled","leave-cancelled","ppear-cancelled"],snippet:{children:"TransitionGroup"}},{name:"KeepAlive",label:"缓存切换组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#keepalive",package:"vue",props:[{name:"include",label:"匹配包含",title:"如果指定,则只有与 `include` 名称, 匹配的组件才会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"exclude",label:"匹配排除",title:"任何名称与 `exclude` 匹配的组件都不会被缓存。",setters:["InputSetter","JSONSetter"]},{name:"max",label:"最大缓存数",title:"最多可以缓存多少组件实例。",setters:["InputSetter"]}]},{name:"Teleport",label:"传送组件",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#teleport",package:"vue",props:[{name:"to",label:"目标容器",title:"指定目标容器,可以是选择器或实际元素",setters:["InputSetter"]},{name:"disabled",label:"禁用",title:"当值为 `true` 时,内容将保留在其原始位置, 而不是移动到目标容器中, 可以动态更改",setters:["BooleanSetter"]}]},{name:"Suspense",label:"异步依赖",categoryId:"components",doc:"https://cn.vuejs.org/api/built-in-components.html#suspense",package:"vue",props:[{name:"timeout",label:"timeout",setters:["InputSetter"]}]},{name:"RouterLink",label:"路由链接",categoryId:"components",doc:"https://router.vuejs.org/zh/api/interfaces/RouterLinkProps.html",package:"vue-router",props:[{name:"to",label:"to",setters:["InputSetter"]},{name:"replace",label:"replace",setters:["BooleanSetter"]}],snippet:{children:"RouterLink",props:{to:"/"}}}],Cx=[{name:da,version:"latest",label:"内置",library:da,order:0,categories:kx,components:Vx}],$x=I({name:"StringSetter",__name:"string",setup(n){return(e,t)=>(y(),V(d(Ye),pe({clearable:""},e.$attrs),null,16))}}),Ex=I({name:"BooleanSetter",__name:"boolean",setup(n){return(e,t)=>(y(),V(d(Fa),pe(e.$attrs,{"model-value":!!e.$attrs.modelValue}),null,16,["model-value"]))}}),Ax="{{",Tx="}}",Bx=I({name:"ExpressionSetter",__name:"expression",props:{modelValue:{},context:{}},emits:["change"],setup(n,{emit:e}){const t=(l="")=>({type:"JSExpression",value:Pe(l)?l.value:l}),r=n,i=e,a=l=>De(l,r.context,!0),o=D(t(r.modelValue).value);oe(()=>r.modelValue,l=>{o.value=t(l).value},{immediate:!0});const s=l=>{const c={type:"JSExpression",value:l};a(c)&&i("change",c)};return(l,c)=>(y(),V(d(Ye),{class:"v-expression-setter",modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),onChange:s},{prefix:j(()=>[le(te(Ax))]),suffix:j(()=>[le(te(Tx))]),_:1},8,["modelValue"]))}}),zx=I({name:"SelectSetter",__name:"select",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(Ha),pe({clearable:""},t.$attrs),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,i=>(y(),V(d(La),pe({key:i.label,ref_for:!0},i),null,16))),128))]),_:1},16))}}),Dx=I({name:"NumberSetter",__name:"number",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=z(()=>Pe(t.modelValue)?void 0:Number(t.modelValue||0)),a=o=>{r("change",o)};return(o,s)=>(y(),V(d(El),pe({class:"v-number-setter","controls-position":"right","model-value":i.value},o.$attrs,{onChange:a}),null,16,["model-value"]))}}),Ox=I({name:"ColorSetter",__name:"color",setup(n){return(e,t)=>(y(),V(d(F2),Cn($n(e.$attrs)),null,16))}}),Ix=I({name:"JsonSetter",__name:"json",props:{modelValue:{default:void 0},type:{default:"JSON"}},emits:["change"],setup(n,{emit:e}){const t=n,r=D(),i=D(typeof t.modelValue=="object"?JSON.stringify(t.modelValue,null,2):void 0),a=z(()=>!!i.value),o=D(!1),s=e,l=m=>{let h=!0;try{const f=JSON.parse(m);if(t.type==="Array"&&!Array.isArray(f))throw new Error(`"${m}" is not a Array`);if(t.type==="Object"&&!to(f))throw new Error(`"${m}" is not a PlainObject`);if(typeof f!="object")throw new Error(`"${m}" is not a ${t.type}`)}catch(f){h=!1,en.error({title:"代码错误",message:f?.message||f})}return h},c=()=>{const m=r.value?.getEditor();if(m){const h=m.getValue();l(h)&&(i.value=h,s("change",JSON.parse(h)),o.value=!1)}},u=()=>{i.value="",s("change",void 0),o.value=!1},p=()=>{o.value=!0};return(m,h)=>(y(),M("div",{class:ce(["v-json-setter",{"is-active":a.value}])},[_(d(Ye),pe({readonly:"",onFocus:p,"model-value":t.type,"suffix-icon":d(Ja)},m.$attrs),null,16,["model-value","suffix-icon"]),o.value?(y(),V(d(jt),{key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=f=>o.value=f),title:t.type,width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:c,onClear:u},{extra:j(()=>[_(d(xe),{type:"warning",onClick:u,size:"default"},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Te),{ref_key:"codeEditor",ref:r,height:"100%",lang:"json",dark:"","model-value":i.value},null,8,["model-value"])]),_:1},8,["modelValue","title"])):R("",!0)],2))}}),Rx=I({name:"FunctionSetter",__name:"function",props:{modelValue:{default:()=>({type:"JSFunction",value:""})}},emits:["change"],setup(n,{emit:e}){const t=n,r=D(),i=D(t.modelValue.value),a=D(!1),o=z(()=>!!i.value),s=e,l=()=>{const p=r.value?.getEditor();if(p){const m=p.getValue(),h={type:"JSFunction",value:m};De(h,{})&&(i.value=m,s("change",h),a.value=!1)}},c=()=>{i.value="",s("change",void 0),a.value=!1},u=()=>{a.value=!0};return(p,m)=>(y(),M("div",{class:ce(["v-function-setter",{"is-active":o.value}])},[_(d(Ye),pe({readonly:"",onFocus:u,"model-value":"JSFunction","suffix-icon":d(Ja)},p.$attrs),null,16,["suffix-icon"]),a.value?(y(),V(d(jt),{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=h=>a.value=h),title:"JSFunction",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",onSubmit:l,onClear:c},{extra:j(()=>[_(d(xe),{type:"warning",onClick:c,size:"default"},{default:j(()=>[le(" 清除 ")]),_:1})]),default:j(()=>[_(d(Te),{ref_key:"codeEditor",ref:r,height:"100%","model-value":i.value,dark:""},null,8,["model-value"])]),_:1},8,["modelValue"])):R("",!0)],2))}}),Mx=I({name:"RadioSetter",__name:"radio",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(y(),V(d(Ua),pe({class:"v-radio-setter",size:"small"},t.$attrs),{default:j(()=>[(y(!0),M(ne,null,ae(e.options,i=>(y(),V(d(qn),{label:i.label,value:i.value,title:i.label},{default:j(()=>[i.svg?(y(),V(d(it),{key:0,src:i.svg},null,8,["src"])):(y(),M(ne,{key:1},[le(te(i.label),1)],64))]),_:2},1032,["label","value","title"]))),256))]),_:1},16))}}),Px=["label","title","onClick"],Nx=I({name:"TagSetter",__name:"tag",props:{options:{default:()=>[]},modelValue:{}},emits:["update:modelValue","change"],setup(n,{emit:e}){const t=n,r=e,i=a=>{a.value===t.modelValue?(r("update:modelValue",void 0),r("change",void 0)):(r("update:modelValue",a.value),r("change",a.value))};return(a,o)=>(y(),M("div",pe({class:"v-tag-setter",size:"small"},a.$attrs),[(y(!0),M(ne,null,ae(t.options,s=>(y(),M("span",{label:s.value,title:s.label,class:ce({"is-active":t.modelValue===s.value}),onClick:l=>i(s)},[s.svg?(y(),V(d(it),{key:0,src:s.svg,size:16},null,8,["src"])):(y(),M(ne,{key:1},[le(te(s.label),1)],64))],10,Px))),256))],16))}}),c2=I({name:"SizeSetter",__name:"size",props:{modelValue:{}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=D(!0),a=z(()=>i.value?"px":void 0),o=D(t.modelValue),s=l=>{i.value=!!Number(l)};return oe(o,l=>{r("change",l)}),oe(()=>t.modelValue,l=>{l&&(i.value=l.endsWith("px"),o.value=l)},{immediate:!0}),(l,c)=>(y(),V(d($0),pe({clearable:"",unit:a.value,"with-unit":!!a.value,modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),onChange:s},l.$attrs),null,16,["unit","with-unit","modelValue"]))}}),Fx={class:"v-image-setter__plus"},Hx=I({name:"ImageSetter",__name:"image",props:{modelValue:{},limit:{default:1}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D([]),a=z(()=>i.value.length<t.limit),o=l=>l.type.includes("image")?(s5(l).then(c=>{i.value=[{name:l.name,url:c}]}),!1):(yn.error("只能上传图片"),!1),s=()=>{i.value=[]};return oe(()=>t.modelValue,l=>{i.value=l?[{name:"",url:l}]:[]},{immediate:!0}),oe(i,()=>{const l=i.value[0]?.url;r("change",l),r("update:modelValue",l)}),(l,c)=>(y(),V(d($l),pe({class:["v-image-setter",{"v-image-setter--addable":a.value}],"list-type":"picture-card",limit:1,action:"#","file-list":i.value,"onUpdate:fileList":c[0]||(c[0]=u=>i.value=u),"before-upload":o,"auto-upload":!0,"on-remove":s},l.$attrs),{default:j(()=>[P("span",Fx,[_(d(it),{icon:d(Ol)},null,8,["icon"])])]),_:1},16,["class","file-list"]))}}),Lx={class:"v-section-setter"},Ux=I({name:"SectionSetter",__name:"section",props:{modelValue:{},sections:{default:4}},emits:["change"],setup(n,{emit:e}){const t=n,r=e,i=D(new Array(t.sections).fill(""));oe(()=>t.modelValue,o=>{i.value=o?o.split(" "):new Array(t.sections).fill("")},{immediate:!0});const a=()=>{r("change",i.value.join(" ").trim())};return(o,s)=>(y(),M("div",Lx,[(y(!0),M(ne,null,ae(t.sections,l=>(y(),V(c2,{name:l-1,modelValue:i.value[l-1],"onUpdate:modelValue":c=>i.value[l-1]=c,onChange:a,class:"v-section-setter__item"},null,8,["name","modelValue","onUpdate:modelValue"]))),256))]))}}),Wx={class:"v-slider-setter"},Jx=I({name:"SliderSetter",__name:"slider",props:{modelValue:{default:void 0}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=D();oe(()=>t.modelValue,o=>{i.value=o},{immediate:!0}),oe(i,o=>{r("change",o),r("update:modelValue",o)});const a=()=>{i.value=void 0,r("change",void 0),r("update:modelValue",void 0)};return(o,s)=>(y(),M("div",Wx,[_(d(Al),pe({size:"small"},o.$attrs,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l)}),null,16,["modelValue"]),_(d(it),{onClick:a,class:"v-slider-setter__close",size:16,icon:d(K2)},null,8,["icon"])]))}}),je={StringSetter:$x,BooleanSetter:Ex,ExpressionSetter:Bx,SelectSetter:zx,NumberSetter:Dx,ColorSetter:Ox,IconSetter:a2,JsonSetter:Ix,FunctionSetter:Rx,RadioSetter:Mx,TagSetter:Nx,SizeSetter:c2,ImageSetter:Hx,SectionSetter:Ux,SliderSetter:Jx,FileSetter:Po},qx={name:"StringSetter",component:je.StringSetter,type:"String"},Gx=[{name:"InputSetter",component:je.StringSetter,type:"String"},{name:"StringSetter",component:je.StringSetter,type:"String"},{name:"BooleanSetter",component:je.BooleanSetter,type:"Boolean"},{name:"ExpressionSetter",component:je.ExpressionSetter,type:"Object"},{name:"SelectSetter",component:je.SelectSetter,type:"String"},{name:"NumberSetter",component:je.NumberSetter,type:"Number"},{name:"ColorSetter",component:je.ColorSetter,type:"String"},{name:"IconSetter",component:je.IconSetter,type:"String"},{name:"ObjectSetter",component:je.JsonSetter,type:"Object",props:{type:"Object"}},{name:"ArraySetter",component:je.JsonSetter,type:"Array",props:{type:"Array"}},{name:"JsonSetter",component:je.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"JSONSetter",component:je.JsonSetter,type:"Object",props:{type:"JSON"}},{name:"FunctionSetter",component:je.FunctionSetter,type:"Function"},{name:"RadioSetter",component:je.RadioSetter,type:"String"},{name:"TagSetter",component:je.TagSetter,type:"String"},{name:"SizeSetter",component:je.SizeSetter,type:"String"},{name:"ImageSetter",component:je.ImageSetter,type:"String"},{name:"SectionSetter",component:je.SectionSetter,type:"String"},{name:"SliderSetter",component:je.SliderSetter,type:"Number"},{name:"RangeSetter",component:je.SliderSetter,type:"Array",props:{range:!0}},{name:"FileSetter",component:je.FileSetter,type:"String",props:{multiple:!1}},{name:"FilesSetter",component:je.FileSetter,type:"String",props:{multiple:!0}}];class Yx{widgets={};constructor(){this.widgets=this.createWidgets()}createWidgets(){const e={};for(const t of _x)e[t.name]=t;return e}register(e){this.widgets[e.name]=e}get(e){return this.widgets[e]}set(e,t){const r=this.widgets[e];if(!r){Ke.warn(`widget '${e}' is not found`);return}pt(r,t),t.component&&(r.component=t.component)}getWidgets(e,t){const r=Object.values(this.widgets);return e?r.filter(i=>i.region===e&&(!t||t&&t===i.group)):r}}const u2=new Yx;class Kx{constructor(e=Sx){this.deps=e}get(){return this.deps}set(e){this.deps=e}add(e){const t=this.deps.find(r=>r.package===e.package);t?Object.assign(t,e):this.deps.push(e)}merge(e){const t=[];for(const r of this.deps){const i=e.find(a=>a.package===r.package);t.push(i?{...i,...r,enabled:i.enabled}:r)}for(const r of e)this.deps.find(i=>i.package===r.package)||t.push(r);return t}remove(e){const t=this.deps.findIndex(r=>r.package===e);t>-1&&this.deps.splice(t,1)}}const Xx=new Kx;class Qx{setters={};defaultSetter=qx;constructor(){this.setters=this.createSetters()}createSetters(){const e={};for(const t of Gx)e[t.name]=t;return e}register(e){this.setters[e.name]=e}get(e){return this.setters[e]}set(e,t){const r=this.setters[e];if(!r){Ke.warn(`setter '${e}' is not found`);return}pt(r,t),t.component&&(r.component=t.component)}getByType(e){return Object.values(this.setters).filter(t=>t.type===e).map(t=>t.name)}}const Nr=new Qx;function Zx(n){return new Promise((e,t)=>{const r=Vl(y9,{slots:n,onClose:()=>{r.unmount(),t(null)},onSubmit:i=>{r.unmount(),e(i)}});r.mount(document.createElement("div"))})}class e_{constructor(e,t,r){this.engine=e,this.contentWindow=t,this.dependencies=r,this.document=this.contentWindow.document,this.bindEvents(t,this.document)}proxied={};document=null;hover=Yi(null);dropping=Yi(null);selected=D(null);dragging=null;draggingNode=null;bind(e,t){let r=this.proxied[t];return r||(r=e.bind(this),this.proxied[t]=r),r}bindEvents(e,t){t.addEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.addEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.addEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.addEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.addEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.addEventListener("drop",this.bind(this.onDrop,"onDrop")),t.addEventListener("click",this.bind(this.onSelected,"onSelected")),G.on(rr,this.bind(this.onActiveChange,"onActiveChange")),G.on(ke,this.bind(this.onViewChange,"onViewChange"))}unbindEvents(e,t){t.removeEventListener("mouseover",this.bind(this.onMouseOver,"onMouseOver")),t.removeEventListener("scroll",this.bind(this.onViewChange,"onViewChange")),e.removeEventListener("resize",this.bind(this.onViewChange,"onViewChange")),t.removeEventListener("mouseleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragleave",this.bind(this.onLeave,"onLeave")),t.removeEventListener("dragover",this.bind(this.onDragOver,"onDragOver")),t.removeEventListener("drop",this.bind(this.onDrop,"onDrop")),t.removeEventListener("click",this.bind(this.onSelected,"onSelected")),G.off(rr,this.bind(this.onActiveChange,"onActiveChange")),G.off(ke,this.bind(this.onViewChange,"onViewChange"))}onMouseOver(e){const t=this.getHelper(e);t?.model.id!==this.selected.value?.model.id&&(this.hover.value=t)}onViewChange(){this.updateRect()}onLeave(e){this.hover.value=null,this.dropping.value=null}onActiveChange(){this.hover.value=null,this.dropping.value=null,this.selected.value=null}async getDropSlot(e){if(!e)return;const{engine:t}=this,r=t.assets,i=r.componentMap,a=await r.getBlockMaterial(e.from)||i.get(e.name);if(!a?.slots)return;const o=(a?.slots||["default"]).map(s=>typeof s=="string"?{name:s,params:[]}:{name:s.name,params:s.params||[]});return o.length===0?void 0:o.length===1?o[0]:await Zx(o).catch(()=>null)}async onDrop(e){e.preventDefault();const{engine:t,dragging:r,dropping:i,draggingNode:a}=this,o=t.current.value,s=this.getHelper(e);if(!o||!r||!i.value||!s)return;const l=s.model,c=i.value.type;if(!await this.allowDrop(l,c))return;let u;if(a)u=a;else{const p=this.createNodeDsl(r);u=new Jr(p)}if(Ce(l))a?(delete u.slot,o.move(u,void 0,"inner")):o.addNode(u,void 0,c);else{const p=await this.getDropSlot(c==="inner"?l:l.parent);if(p===null){this.dropping.value=null;return}u.slot=p,a?o.move(u,l,c):o.addNode(u,l,c)}this.dropping.value=null,t.simulator.refresh(),t.assets.clearCaches()}onSelected(e){this.setHover(null),this.selected.value=this.getHelper(e)}async onDragOver(e){const t=this.getHelper(e);if(!t)return;const{model:r,type:i}=t;r&&await this.allowDrop(r,i)?(e.preventDefault(),this.dropping.value=t):this.dropping.value=null}isVtjElement(e){return!!e.__vtj__&&!!e.__context__}findVtjElement(e){return e.find(t=>this.isVtjElement(t))}getNodeByElement(e){const t=e.__vtj__??"";return Jr.nodes[t]||null}getDropType(e,t,r){const{left:i,top:a,width:o,height:s}=e;return t>=i&&t<=i+o*.2?"left":t>=i+o*.8&&t<=i+o?"right":r>=a&&r<=a+s*.2?"top":r>=a+s*.8&&r<=a+s?"bottom":"inner"}getNodePath(e=[]){const t=e.filter(i=>this.isVtjElement(i)),r=this.engine.current.value;return[...t.map(i=>this.getNodeByElement(i)).filter(i=>!!i),r]}setDslFrom(e){const t=this.engine.assets.componentMap.get(e.name);if(e.from=e.from||t?.package,Array.isArray(e.children))for(const r of e.children)this.setDslFrom(r)}createNodeDsl(e){const{name:t,snippet:r={},from:i}=e,a={...r,name:t,from:i||e.package};return this.setDslFrom(a),a}getElmenetByModel(e){return!this.document||!e?null:Ce(e)?this.document.body:Array.from(this.document.querySelectorAll("*")).find(t=>t.__vtj__===e.id)}findPathByNode(e){const t=[e];let r=e;for(;r.parent&&r.parent!==r;)r=r.parent,r!==e&&t.unshift(r);const i=this.engine.current.value;return t.unshift(i),t.reverse()}getHelper(e){const t=e.composedPath()||[],r=this.findVtjElement(t)||this.document?.body;if(!r)return null;const i=this.getNodeByElement(r)||this.engine.current.value;if(!i)return null;const a=r.getBoundingClientRect(),o=this.getDropType(a,e.clientX,e.clientY),s=this.getNodePath(t);return{el:r,model:i,rect:a,type:o,path:s}}cleanHelper(){this.setSelected(null),this.setHover(null),this.setDragging(null),this.setDropping(null)}async updateRect(){await ou(100);const e=d(this.selected),t=d(this.hover);if(e){const r=e.el.getBoundingClientRect();this.selected.value={...e,rect:r}}if(t){const r=t.el.getBoundingClientRect();this.hover.value={...t,rect:r}}}setDragging(e){this.dragging=e}setDraggingNode(e){this.draggingNode=e}async setHover(e){if(await dt(),e){const t=this.getElmenetByModel(e);if(!t)return;const r=t.getBoundingClientRect(),i=Ce(e)?[]:this.findPathByNode(e);this.hover.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.hover.value=null}async setSelected(e){if(await dt(),e){const t=this.getElmenetByModel(e)||this.document?.createElement("span");if(!t)return;const r=t.getBoundingClientRect(),i=Ce(e)?[]:this.findPathByNode(e);this.selected.value={el:t,model:e,rect:r,type:"inner",path:i}}else this.selected.value=null}async setDropping(e,t="inner"){if(await dt(),e){const r=this.getElmenetByModel(e);if(!r)return;const i=r.getBoundingClientRect(),a=Ce(e)?[]:this.findPathByNode(e);this.dropping.value={el:r,model:e,rect:i,type:t,path:a}}else this.dropping.value=null}async allowDrop(e,t="inner"){const{dragging:r,engine:i,draggingNode:a}=this,o=i.current.value;if(!r||!o)return!1;if(Ce(e))return!0;if(a&&e.id===a.id||a&&a.isChild(e))return!1;const s=i.assets.componentMap,l=t!=="inner"&&e.parent||e,c=await i.assets.getBlockMaterial(l.from)||s.get(l.name);if(!c)return!1;const{parentIncludes:u=!0,name:p}=r,{childIncludes:m=!0}=c,h=u===!0||Array.isArray(u)&&u.includes(l.name),f=m===!0||Array.isArray(m)&&m.includes(p);return h&&f}dispose(){const{contentWindow:e,document:t}=this;this.setSelected(null),this.setHover(null),this.setDragging(null),e&&t&&this.unbindEvents(e,t),this.document=null}}class t_{constructor(e,t,r,i=null){this.env=e,this.service=t,this.provider=r,this.designer=i,this.nodeChange=this.__onNodeChange.bind(this),this.blockChange=this.__onBlockChange.bind(this)}app=null;dsl=null;nodeChange;blockChange;context=null;install(e){const{library:t,globals:r,VueRouter:i,locales:a}=this.env;if(i){const s=i.createRouter({history:i.createWebHashHistory(),routes:[]});e.use(s)}const o=Object.entries(t);Object.assign(e.config.globalProperties,r),e.config.errorHandler=(s,l,c)=>{const u=l?.$options.name,p=s?.message||s?.msg||"未知错误",m=`[ ${u} ] ${p}`;console.error({err:s,instance:l,info:c}),en.error({title:"运行错误",message:m})},o.forEach(([s,l])=>{if(typeof l=="function"||typeof l.install=="function"){let c={};const u=a[s];u&&(c.locale=u),e?.use(l,c)}})}render(e){const{window:t,container:r,library:i,Vue:a,components:o,apis:s}=this.env,l=t.document.createElement("div");l.id="app",r.appendChild(l),this.dsl=a.reactive(e.toDsl());const{renderer:c,context:u}=this.provider.createDslRenderer(this.dsl,{window:t,mode:Je.Design,Vue:a,components:o,apis:s,libs:i});this.app=a.createApp(c),this.install(this.app);try{this.app.mount(l)}catch(p){Ae(p.message||"未知错误","运行时错误"),console.error(p)}this.context=u,G.on(ke,this.nodeChange),G.on(ge,this.blockChange)}dispose(){if(this.app){this.app.unmount();const e=this.app._container;e&&e.parentNode&&(e.parentNode.removeChild(e),this.app._container=null),this.app=null}this.dsl=null,this.context=null,G.off(ke,this.nodeChange),G.off(ge,this.blockChange)}updateChild(e,t){const r=t.children||t.nodes||[];if(Array.isArray(r))for(let i=0;i<r.length;i++){const a=r[i];if(a.id===e.id){r.splice(i,1,e);return}else this.updateChild(e,a)}}__onNodeChange(e){this.dsl&&this.updateChild(e.toDsl(),this.dsl)}__onBlockChange(e){this.dispose(),this.render(e),this.designer?.selected.value&&this.designer.setSelected(e)}}class n_ extends co{contentWindow=null;renderer=null;designer=Yi(null);engine;materialPath;constructor(e){super();const{engine:t,materialPath:r}=e;this.engine=t,this.materialPath=r,oe(this.engine.current,()=>{this.refresh()})}init(e,t,r,i){oe([e,t,r,i],()=>{e.value&&t.value.length&&(this.resetReady(),this.renderer?.dispose(),this.renderer=null,this.setup(e.value,t.value),this.contentWindow&&(this.designer.value?.dispose(),this.designer.value=new e_(this.engine,this.contentWindow,t)))},{immediate:!0,deep:!0})}setup(e,t){const r=e.contentWindow;if(!r){Ke.warn("Simulator contentWindow is null");return}r.__simulator__=this;const i=r.document;this.contentWindow=r;const{scripts:a,css:o,materials:s,libraryExports:l,materialExports:c,materialMapLibrary:u,libraryLocaleMap:p}=J0(t,this.materialPath);i.open(),i.write(`
|
|
169
|
-
<!DOCTYPE html>
|
|
170
|
-
<html lang="zh-CN">
|
|
171
|
-
<head>
|
|
172
|
-
<meta charset="utf-8">
|
|
173
|
-
<meta name="viewport"
|
|
174
|
-
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover"/>
|
|
175
|
-
<style>
|
|
176
|
-
html, body, #app {
|
|
177
|
-
padding: 0;
|
|
178
|
-
margin: 0;
|
|
179
|
-
min-height: 100vh;
|
|
180
|
-
width: 100%;
|
|
181
|
-
height: 100%;
|
|
182
|
-
background: #fff;
|
|
183
|
-
}
|
|
184
|
-
</style>
|
|
185
|
-
${Hb(o)}
|
|
186
|
-
${yl(a)}
|
|
187
|
-
${yl(s)}
|
|
188
|
-
</head>
|
|
189
|
-
<body>
|
|
190
|
-
</body>
|
|
191
|
-
<script>
|
|
192
|
-
__simulator__.emitReady(${JSON.stringify(l)},
|
|
193
|
-
${JSON.stringify(c)},
|
|
194
|
-
${JSON.stringify(u)},
|
|
195
|
-
${JSON.stringify(p)}
|
|
196
|
-
);
|
|
197
|
-
<\/script>
|
|
198
|
-
</html>
|
|
199
|
-
`),i.close()}async emitReady(e=[],t=[],r={},i={}){this.renderer?.dispose(),this.renderer=null;const a=this.contentWindow,{assets:o,service:s,current:l,provider:c}=this.engine,u=c.materials||{},p=[];for(const h of t){const f=u[h]?(await u[h]()).default:a[h];p.push(f)}o.load(p);const m=this.createEnv(e,r,p,i);this.renderer=new t_(m,s,c,this.designer.value),l.value&&this.renderer.render(l.value),this.triggerReady()}createEnv(e=[],t={},r=[],i={}){const a=this.contentWindow,{engine:o}=this,{project:s,assets:l,provider:c}=o,u=e.reduce((b,w)=>(b[w]=a[w],b),{}),p={};Object.entries(i).forEach(([b,w])=>{p[b]=a[w]});const m={},{groups:h,componentMap:f}=l;for(const b of h.value){const w=b.names||[];if(b.name===da)w.forEach(S=>{const C=f.get(S),x=C?.package||"",$=pg[x],E=u[$];E&&C&&(m[S]=Aa(C,E))});else{const S=u[t[b.library||""]];S&&w.forEach(C=>{const x=f.get(C);x?m[C]=Aa(x,S):m[C]=S[C]})}}const{adapter:v,globals:g}=c,k=K0(s.value?.apis,v);return Io(),s.value?.config?.mock&&X0(s.value?.apis),{window:a,Vue:a.Vue,VueRouter:a.VueRouter,library:u,materials:r,components:m,container:a.document.body,apis:k,globals:g,libraryLocaleMap:i,locales:p}}refresh(){this.renderer?.dispose();const e=this.engine.current.value;e&&this.renderer?.render(e)}dispose(){this.renderer?.dispose(),this.designer.value?.dispose(),this.contentWindow=null,this.renderer=null,this.designer.value=null,this.resetReady()}}class r_{constructor(e,t){this.service=e,this.provider=t}components=[];componentMap=new Map;groups=D([]);caches={};getCateoryComponents(e,t){const r=t.filter(i=>i.categoryId===e.id&&i.hidden!==!0);return{name:e.id,label:e.category,count:r.length,components:r}}parseGroups(e){const t=[];for(let r of e){const{categories:i,components:a,label:o,name:s,library:l}=r;if(!i||!a)continue;const c=a.filter(h=>!!h.package).map(h=>h.name),u=i.map(h=>this.getCateoryComponents(h,a)),p=u.reduce((h,f)=>f.count+h,0),m={name:r.name,label:o||s,count:p,names:c,library:l,children:u};t.push(m)}return t}load(e){const t=[...Cx,...e].filter(r=>!!r);t.sort((r,i)=>r.order-i.order);for(let r of t)r.components&&(this.components=this.components.concat(r.components));this.groups.value=this.parseGroups(t),this.componentMap=su(this.components,"name")}async getBlockMaterial(e,t){if(!e||typeof e=="string")return null;let r;if(e.type==="Schema"&&e.id&&(r=this.caches[e.id]||await this.service.getFile(e.id),this.caches[e.id]=r),e.type==="UrlSchema"&&e.url&&(r=this.caches[e.url]||await this.provider.getDslByUrl(e.url),this.caches[e.url]=r),e.type==="Plugin"){const p=await this.service.getPluginMaterial(e);return p?(p.name=t||p.name,p.from=e,this.componentMap.set(p.name,p),p):null}if(!r)return null;r.name=t||r.name;const{id:i,name:a,slots:o,props:s,emits:l}=r,c=p=>{const m=Array.isArray(p)?p:[p];let h=[];for(const f of m)h=h.concat(Nr.getByType(f));return h},u={id:i,name:a,childIncludes:o?.length?void 0:!1,props:(s||[]).map(p=>typeof p=="string"?{name:p}:{name:p.name,type:p.type,setters:c(p.type)}),events:l,slots:o,from:e};return this.componentMap.set(a,u),u}clearCaches(){this.caches={}}}const d2=Symbol("VtjEngine");class Y_ extends co{app;skeleton;container;service;assets;simulator;emitter=G;project=D(null);current=D(null);context=D(null);isEmptyCurrent=D(!1);history=D(null);provider;changed=D(Symbol());constructor(e){super();const{container:t,service:r,project:i={},globals:a={},dependencies:o,materials:s,materialPath:l="./"}=e;this.container=t,this.service=r,this.provider=new t2({mode:Je.Design,globals:a,project:i,service:r,dependencies:o,materials:s,materialPath:l}),this.assets=new r_(this.service,this.provider),this.simulator=new n_({engine:this,materialPath:l}),this.bindEvents(),this.init(i),Ia(this.render.bind(this)),Ra(this.dispose.bind(this))}async init(e){const t=await this.service.init(e).catch(r=>(Ke.warn("VTJEngine service init fail.",r),null));t&&(t.dependencies=Xx.merge(t.dependencies||[]),this.project.value=new mg(t),this.saveMaterials(),this.triggerReady())}render(){const e=d(this.container);if(e){const t=Vl(i_);t.provide(d2,v2(this)),t.mount(e),this.app=t}else Ke.warn("VTJEngine constructor param [ container ] is undefined")}bindEvents(){G.on(Ne,e=>this.saveProject(e)),G.on(Or,e=>this.saveBlockFile(e)),G.on(Un,e=>this.saveBlockFile(e)),G.on(ha,()=>this.saveMaterials()),G.on(rr,e=>this.activeFile(e)),G.on(vu,()=>this.publish()),G.on(gu,()=>this.publishCurrent()),G.on(ge,e=>this.changeFile(e)),G.on(ke,()=>this.changeCurrentFile()),G.on(Wn,e=>this.saveHistory(e)),G.on(Ir,e=>this.loadHistory(e))}async activeFile(e){await dt();const t=e.model,r=e.model.currentFile;if(r){if(t.isPageFile(r)&&r.raw)return;const i=await this.service.getFile(r.id);i&&(r.dsl=i)}if(r?.dsl){const i=new fn(r.dsl);this.updateCurrent(i),this.initHistory(i)}else this.updateCurrent(null);Et(this.project)}async changeFile(e){await dt();const t=e.toDsl();this.service.saveFile(t),this.updateCurrent(e),this.history.value?.add(t),Et(this.history)}changeCurrentFile(){this.saveCurrentFile(),this.current.value&&(this.history.value?.add(this.current.value.toDsl()),Et(this.history))}async updateCurrent(e,t=!0){this.current.value=e,await dt(),this.context.value=this.simulator.renderer?.context||null,this.isEmptyCurrent.value=this.current.value?.nodes.length===0,this.changed.value=Symbol(),t&&Et(this.context)}async saveProject(e){const t=e.model.toDsl();await this.service.saveProject(t),Et(this.project)}async saveBlockFile(e){const t=e.type,r=e.model;if(t==="create"){const i=e.data;r.isPageFile(i)&&i.raw?(await this.service.createRawPage(i),We(`源码文件已经生成:/.vtj/vue/${i.id}.vue`,"success")):i.dsl&&await this.service.saveFile(i.dsl)}if(t==="update"){const i=e.data;if(r.isPageFile(i)&&(i.dir||i.raw))return;const a=await this.service.getFile(i.id);a&&(a.name=i.name,await this.service.saveFile(a))}if(t==="delete"){const i=e.data;i&&r.isPageFile(i)&&i.raw?await this.service.removeRawPage(i.id):i.dir||(await this.service.removeFile(i.id),await this.service.removeHistory(i.id))}if(t==="clone"){const{page:i,newPage:a}=e.data,o=await this.service.getFile(i.id);o&&(o.id=a.id,o.name=a.name,await this.service.saveFile(o))}Et(this.project)}async saveMaterials(){await dt(),this.simulator.ready(()=>{const e=this.project.value;if(e){const t=this.assets.componentMap;this.service.saveMaterials(e.toDsl(),t)}})}saveCurrentFile(){const e=this.current.value;e&&(this.updateCurrent(e),this.service.saveFile(e.toDsl()))}async initHistory(e){if(e){const t=await this.service.getHistory(e.id).catch(()=>null);this.history.value=new fg(Object.assign(t||{},{id:e.id}))}else this.history.value=null}async saveHistory(e){const t=e.type,r=e.model;t==="create"&&await this.service.saveHistoryItem(r.id,e.data),t==="delete"&&await this.service.removeHistoryItem(r.id,e.data),t==="clear"&&await this.service.removeHistoryItem(r.id,e.data);const i=r.toDsl();await this.service.saveHistory(i),Et(this.history)}async loadHistory(e){const t=e.model,r=e.data,i=await this.service.getHistoryItem(t.id,r.id);if(i&&i.dsl){const a=new fn(i.dsl);await this.updateCurrent(a),this.service.saveFile(i.dsl),Et(this.history)}}async publish(){const e=this.project.value;if(e){const t={...e.toDsl(),pages:e.getPages()};await this.service.publish(t)&&We("整站发布成功","success")}}async publishCurrent(){const e=this.project.value,t=e?.currentFile;if(e&&t){const r={...e.toDsl(),pages:e.getPages()};await this.service.publishFile(r,t)&&We("发布成功","success")}}dispose(){this.emitter.all.clear(),this.simulator.dispose(),this.app&&(this.app.unmount(),this.container=void 0)}async openFile(e){const t=this.project.value,r=this.skeleton?.getRegion("Apps"),i=e||t?.homepage;if(!t||!r||!i)return;const a=t.getPage(i);a&&!a.raw&&(r.regionRef?.setActive("Pages"),this.simulator.ready(()=>{t.active(a)}));const o=t.getBlock(i);o&&(r.regionRef?.setActive("Blocks"),this.simulator?.ready(()=>{t.active(o)}))}}function Le(){const n=Mt(d2,null);return n||Ke.error("VTJEngine is not exist"),n}const Tt=I({name:"RegionWrapper",props:{region:{type:String,required:!0}},setup(){return{regionRef:D()}},render(){const n=Sl[this.region]||Sl.EmptyRegion;return Re(n,{...this.$props,...this.$attrs,ref:"regionRef"})}}),Lt=I({name:"WidgetWrapper",props:{region:{type:String,required:!0},widget:{type:Object,required:!0}},setup(){return{widgetRef:D()}},render(){return Re(this.widget.component,{...this.widget.props,...this.$props,...this.$attrs,ref:"widgetRef"})}}),i_=I({name:"SkeletonWrapper",setup(){const n=D(),e=Le(),t=D({});return{skeletonRef:n,engine:e,widgets:t}},mounted(){this.engine.skeleton=this},render(){return Re(a_,{...this.$props,...this.$attrs,ref:"skeletonRef"})},methods:{getRegion(n){return this.skeletonRef[n.toLowerCase()]},toggleCollapse(n){if(this.skeletonRef){const e=this.skeletonRef.collapsed;this.skeletonRef.collapsed=n??!e}},settable(n){this.skeletonRef&&(this.skeletonRef.settable=n)},getWidgets(n){const e=this.getRegion(n);return e?oo(e.regionRef?.widgetsRef||[]):[]},getWidget(n){const e=u2.get(n);if(!e){Ke.warn(`widget [ ${n} ] is not exsit`);return}return this.getWidgets(e.region).find(t=>t.widget.name===n)},openPreview(n){this.skeletonRef&&(this.skeletonRef.isPreview=!0)},closePreview(){this.skeletonRef&&(this.skeletonRef.isPreview=!1)}}}),me=I({name:"SetterWrapper",props:{context:{type:Object,default:null},current:{type:Object,default:null},name:String,label:String,title:String,value:{type:[String,Object,Array,Number,Boolean],default:void 0},setters:{type:[String,Object,Array],required:!0,default(){return[]}},options:{type:Array,default(){return[]}},variable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1}},computed:{computedSetters(){return(Array.isArray(this.setters)?this.setters:[this.setters]).map(n=>{let e;if(typeof n=="string")return e=this.getSetter(n),{component:Pt(e.component),name:e.name,label:n,props:e.props||{}};{const t=n;return e=this.getSetter(t.name),{component:Pt(t.component||e.component),name:t.name,label:t.label||t.name,props:Object.assign(e.props||{},t.props)}}})},computedOptions(){return(this.options||[]).map(n=>typeof n=="string"?{label:n,value:n}:n)},defaultSetter(){const{value:n,computedSetters:e}=this;let t=typeof n;t==="Object"&&(Array.isArray(n)?t="Array":Pe(n)?t="Object":hr(n)&&(t="Function"));const r=Nr.getByType(t)||[];return r.length?(e.find(i=>r.includes(i.name))||e[0])?.name:e[0]?.name}},render(){const{context:n,current:e,name:t,label:r,title:i,value:a,computedSetters:o,computedOptions:s,variable:l,changeValue:c,defaultSetter:u,removable:p,onRemove:m}=this;return Re(p_,{context:n,current:e,name:t,label:r,title:i,setters:o,defaultSetter:u,variable:l,value:a,removable:p,options:s,onChange:c,onRemove:m})},emits:["change","remove"],methods:{getSetter(n){return typeof n=="string"?Nr.get(n)||Nr.defaultSetter:n},changeValue(n){this.$emit("change",this.name,n)},onRemove(n){this.$emit("remove",n)}}}),a_=I({name:"Skeletion",__name:"skeleton",props:{headerHeight:{default:"36px"},leftWidth:{default:"400px"},rightWidth:{default:"350px"},footerHeight:{default:"20px"}},setup(n,{expose:e}){const t=n,r=D(!1),i=D(parseInt(t.leftWidth)),a=D(parseInt(t.rightWidth)),o={dirs:["e"],maxWidth:600,minWidth:49,onResizing(b,w){i.value=w.elementWidth.value},onEnd(b,w){i.value=w.elementWidth.value}},s={dirs:["w"],maxWidth:600,minWidth:2,onResizing(b,w){a.value=w.elementWidth.value},onEnd(b,w){a.value=w.elementWidth.value}},l=D(),c=D(),u=D(),p=D(),m=D(),h=D(),f=D(),v=D(),g=D(!1),k=D(!1);return e({brand:l,toolbar:c,actions:u,apps:p,workspace:m,settings:h,status:f,collapsed:g,settable:k,leftWidth:i,rightWidth:a,preview:v,isPreview:r}),(b,w)=>(y(),V(d(P2),{locale:d(M2)},{default:j(()=>[_(d(Ho),{class:"v-skeleton"},{default:j(()=>[_(d(O2),{class:"v-skeleton__header",height:b.headerHeight},{default:j(()=>[_(d(Tt),{ref_key:"brand",ref:l,region:"Brand"},null,512),_(d(Tt),{ref_key:"toolbar",ref:c,region:"Toolbar",preview:r.value},null,8,["preview"]),_(d(Tt),{ref_key:"actions",ref:u,region:"Actions"},null,512)]),_:1},8,["height"]),_(d(Ho),{class:"v-skeleton__wrapper"},{default:j(()=>[r.value?R("",!0):mt((y(),V(d(Lo),{key:0,width:t.leftWidth,class:ce(["v-skeleton__left",{"is-collapsed":g.value}])},{default:j(()=>[_(d(Tt),{ref_key:"apps",ref:p,region:"Apps"},null,512)]),_:1},8,["width","class"])),[[d(ja),o]]),_(d(I2),{class:"v-skeleton__main"},{default:j(()=>[r.value?(y(),V(d(Tt),{key:0,ref_key:"preview",ref:v,region:"Preview",preview:r.value},null,8,["preview"])):R("",!0),mt(_(d(Tt),{ref_key:"workspace",ref:m,region:"Workspace"},null,512),[[Xt,!r.value]])]),_:1}),r.value?R("",!0):mt((y(),V(d(Lo),{key:1,width:t.rightWidth,class:"v-skeleton__right"},{default:j(()=>[_(d(Tt),{ref_key:"settings",ref:h,region:"Settings"},null,512)]),_:1},8,["width"])),[[Xt,k.value],[d(ja),s]])]),_:1}),r.value?R("",!0):(y(),V(d(R2),{key:0,class:"v-skeleton__footer",height:b.footerHeight},{default:j(()=>[_(d(Tt),{ref_key:"status",ref:f,region:"Status"},null,512)]),_:1},8,["height"]))]),_:1})]),_:1},8,["locale"]))}}),o_={key:1},s_={class:"v-setter__content"},l_={key:0,class:"v-setter__input"},c_={class:"v-setter__action"},u_="{{",d_="}}",p_=I({__name:"setter",props:{context:{},current:{},name:{},label:{default:""},title:{},setters:{},variable:{type:Boolean,default:!0},value:{},options:{default:()=>[]},defaultSetter:{},removable:{type:Boolean}},emits:["change","remove"],setup(n,{emit:e}){const t=n,r=e,i=D(!1),a=D(""),o=D(t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]),s=D(t.value),l=z(()=>!!Pe(s.value)),c={[o.value.name]:s.value},u=k=>{c[o.value.name]=s.value,o.value=k,s.value=c[k.name]??void 0,p(s.value)};oe(()=>t.value,()=>{s.value=t.value}),oe(()=>t.defaultSetter,()=>{o.value=t.setters.find(k=>k.name===t.defaultSetter)||t.setters[0]});const p=k=>{r("change",k)},m=()=>{r("remove",t.name)},h=()=>{i.value=!0,a.value=Pe(s.value)?s.value.value:""},f=()=>{i.value=!1,a.value=""},v=async k=>De(k,t.context,!0)?(c[o.value.name]=s.value,s.value=k,r("change",k),!0):!1,g=async()=>{await On("确定要解除绑定吗?")&&(f(),s.value=void 0,r("change",""))};return(k,b)=>(y(),V(d(Ma),{class:"v-setter",size:"small","label-positon":"left"},{label:j(()=>[t.title?(y(),V(d(Xr),{key:0,placement:"top-start",content:t.title},{default:j(()=>[le(te(t.label||t.name),1)]),_:1},8,["content"])):(y(),M("span",o_,te(t.label||t.name),1))]),default:j(()=>[P("div",s_,[o.value?(y(),M("div",l_,[l.value?R("",!0):(y(),V(Ge(o.value.component),pe({key:0,current:t.current,context:t.context},o.value.props,{options:t.options,modelValue:s.value,"onUpdate:modelValue":b[0]||(b[0]=w=>s.value=w),onChange:p,disabled:l.value}),null,16,["current","context","options","modelValue","disabled"])),l.value?(y(),V(d(Ye),{key:1,class:"v-expression-setter",disabled:"","model-value":"JSExpression"},{prefix:j(()=>[le(te(u_))]),suffix:j(()=>[le(te(d_))]),_:1})):R("",!0)])):R("",!0),P("div",c_,[t.variable?(y(),V(d(Nu),{key:0,onClick:h,class:ce(["v-icon-vars",{"is-active":l.value}]),title:"绑定变量"},null,8,["class"])):R("",!0),t.setters.length>1?(y(),V(d(Na),{key:1,disabled:l.value,size:"small","popper-class":"v-setter-switch",onCommand:u},{dropdown:j(()=>[_(d(Pa),null,{default:j(()=>[(y(!0),M(ne,null,ae(t.setters,w=>(y(),V(d(Hr),{command:w,key:w.name},{default:j(()=>[_(d(uo),{class:ce({"is-placeholder":w.name!==o.value.name})},null,8,["class"]),le(" "+te(w.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:j(()=>[_(d(Vu),{title:"切换设置器"})]),_:1},8,["disabled"])):R("",!0),t.removable?(y(),V(d(lr),{key:2,onClick:m,title:"删除"})):R("",!0)])]),i.value?(y(),V(d(q9),{key:0,current:t.current,context:t.context,value:a.value,modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=w=>i.value=w),submitMethod:v,onUnbind:g},null,8,["current","context","value","modelValue"])):R("",!0)]),_:1}))}}),h_={class:"v-empty-region"},m_=I({name:"EmptyRegion",__name:"empty",props:{region:{}},setup(n){return(e,t)=>(y(),M("div",h_,"找不到符合【"+te(e.region)+"】名称的区域组件",1))}}),f_={class:"v-brand-region"},v_=I({name:"BrandRegion",inheritAttrs:!1,__name:"brand",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ht(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",f_,[(y(!0),M(ne,null,ae(d(r),s=>(y(),V(d(Lt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),g_={class:"v-toolbar-region"},y_=I({name:"ToolbarRegion",__name:"toolbar",props:{region:{},preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ht(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",g_,[(y(!0),M(ne,null,ae(d(r),s=>(y(),V(d(Lt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s,preview:a.preview},null,8,["region","widget","preview"]))),256))]))}}),b_={class:"v-actions-region"},w_=I({name:"ActionsRegion",inheritAttrs:!1,__name:"actions",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ht(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",b_,[(y(!0),M(ne,null,ae(d(r),s=>(y(),V(d(Lt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),x_={class:"v-apps-region"},__={class:"v-apps-region__header"},S_={class:"v-apps-region__top"},k_={class:"v-apps-region__bottom"},j_={class:"v-apps-region__panels"},V_=I({name:"AppsRegion",inheritAttrs:!1,__name:"apps",props:{region:{},index:{default:0}},setup(n,{expose:e}){const t=n,r=Le(),{widgets:i,widgetsRef:a}=Ht(t.region),o=z(()=>i.value.filter(h=>h.openType==="panel")),s=z(()=>i.value.filter(h=>h.openType!=="panel")),l=o.value[t.index],c=D(l),u=D(l),p=h=>{c.value=h,u.value=u.value?.name===h.name?null:h},m=h=>{h.openType==="link"&&h.url&&window.open(h.url),h.openType==="dialog"&&k0({title:h.label,icon:h.icon,...h.props,content:h.component})};return oe(u,h=>{r.skeleton?.toggleCollapse(!h)}),e({widgets:i,widgetsRef:a,setActive:h=>{const f=o.value.find(v=>v.name===h);c.value=f,u.value=f}}),(h,f)=>(y(),M("div",x_,[P("div",__,[P("div",S_,[(y(!0),M(ne,null,ae(o.value,v=>(y(),V(d(_l),{key:`icon-${v.name}`,icon:v.icon,label:v.label,active:c.value?.name===v.name,open:u.value?.name===v.name,onClick:g=>p(v)},null,8,["icon","label","active","open","onClick"]))),128))]),P("div",k_,[(y(!0),M(ne,null,ae(s.value,v=>(y(),V(d(_l),{key:`icon-${v.name}`,icon:v.icon,label:v.label,onClick:g=>m(v)},null,8,["icon","label","onClick"]))),128))])]),P("div",j_,[(y(!0),M(ne,null,ae(o.value,v=>(y(),V(Cl,{key:v.name},[c.value?.name===v.name?(y(),V(d(Lt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:a,region:h.region,widget:v},null,8,["region","widget"])):R("",!0)],1024))),128))])]))}}),C_=I({name:"WorkspaceRegion",__name:"workspace",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ht(t.region),a=Zt(r.value.map(m=>({name:m.name,command:m.name,label:m.label,closable:!!m.closable,props:m.props||{},checked:!m.closable}))),o=z(()=>a.filter(m=>!m.closable||m.checked)),s=z(()=>a.map(m=>({...m,disabled:!m.closable}))),l=D(o.value[0]?.name),c=z(()=>a.find(m=>m.name===l.value)?.props||{}),u=m=>{const h=a.find(f=>f.name===m);h&&(h.checked=!1),l.value===m&&(l.value=o.value[0]?.name)},p=m=>{const h=a.find(f=>f.name===m.name);h&&h.closable&&(h.checked=!h.checked,h.checked&&(l.value=h.name),!h.checked&&l.value===h.name&&(l.value=o.value[0]?.name))};return e({currentTab:l,widgets:r,widgetsRef:i,openTab:(m,h={})=>{const f=a.find(v=>v.name===m);f&&(f.props=Object.assign({},f.props,h),f.checked=!0,l.value=f.name)}}),(m,h)=>(y(),V(d(gi),{class:"v-workspace-region",items:o.value,menus:s.value,modelValue:l.value,"onUpdate:modelValue":h[0]||(h[0]=f=>l.value=f),checkable:"",onRemove:u,onCommand:p},{default:j(()=>[(y(!0),M(ne,null,ae(d(r),f=>(y(),M(ne,{key:f.name},[l.value===f.name?(y(),V(d(Lt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:m.region,widget:{...f,props:c.value}},null,8,["region","widget"])):R("",!0)],64))),128))]),_:1},8,["items","menus","modelValue"]))}}),$_=I({name:"SettingsRegion",__name:"settings",props:{region:{}},setup(n,{expose:e}){const t=n,r=Le(),{current:i}=Ie(),{selected:a,isSelectBlock:o}=wt(),s=z(()=>o.value?at.Block:at.Node),{widgets:l,widgetsRef:c}=Ht(t.region,s),u=D(),p=D(!1),m=z(()=>l.value.map(g=>({name:g.name,label:g.label,actions:g.name==="Style"?[{name:"switch",icon:X2,background:"hover"}]:void 0}))),h=z(()=>{const g=a.value?.model;return g?r.assets.componentMap.get(g.name)?.doc:null});oe(i,g=>{r.skeleton?.settable(!!g)}),oe(s,()=>{u.value=m.value[0]?.name},{immediate:!0}),oe(u,()=>{p.value=!1});const f=()=>{if(h.value){const g=r.skeleton?.getRegion("Workspace");g&&g.regionRef.openTab("Docs",{url:h.value})}},v=g=>{g.name==="switch"&&(p.value=!p.value)};return e({widgets:l,widgetsRef:c}),(g,k)=>d(i)?(y(),V(d(se),{key:0,class:"v-settings-region",fit:"",direction:"column"},{default:j(()=>[d(a)?(y(),V(d(se),{key:0,flex:"",justify:"space-between",align:"center",class:"v-settings-region__header"},{default:j(()=>[_(d(se),{class:"v-settings-region__title"},{default:j(()=>[_(d(mo)),P("span",null,[le(te(d(a)?.model.name)+": ",1),P("i",null,te(d(a)?.model.id),1)])]),_:1}),h.value?(y(),V(d(se),{key:0},{default:j(()=>[_(d(Be),{onClick:f,icon:d(yo),mode:"text",label:"帮助"},null,8,["icon"])]),_:1})):R("",!0)]),_:1})):R("",!0),d(a)&&!d(a).model.locked?(y(),V(d(se),{key:1,grow:"",padding:!1},{default:j(()=>[_(d(gi),{items:m.value,modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=b=>u.value=b),stretch:"",body:{padding:!1},onActionClick:v},{default:j(()=>[(y(!0),M(ne,null,ae(d(l),b=>(y(),M(ne,{key:b.name},[u.value===b.name?(y(),V(d(Lt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:c,region:g.region,widget:d(pt)({props:{isStyleCodeMode:p.value}},b)},null,8,["region","widget"])):R("",!0)],64))),128))]),_:1},8,["items","modelValue"])]),_:1})):R("",!0),d(a)?R("",!0):(y(),V(d(ze),{key:2,description:"请在左侧画布选中节点"})),d(a)&&d(a).model.locked?(y(),V(d(ze),{key:3,"image-size":1,description:"节点已被锁定, 禁止编辑"})):R("",!0)]),_:1})):R("",!0)}}),E_={class:"v-status-region"},A_=I({name:"StatusRegion",inheritAttrs:!1,__name:"status",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ht(t.region);return e({widgets:r,widgetsRef:i}),(a,o)=>(y(),M("div",E_,[(y(!0),M(ne,null,ae(d(r),s=>(y(),V(d(Lt),{ref_for:!0,ref_key:"widgetsRef",ref:i,region:a.region,widget:s},null,8,["region","widget"]))),256))]))}}),T_=I({name:"PreviewRegion",__name:"preview",props:{region:{}},setup(n,{expose:e}){const t=n,{widgets:r,widgetsRef:i}=Ht(t.region),a=Zt(r.value.map(l=>({name:l.name,command:l.name,label:l.label,closable:!!l.closable,checked:!1}))),o=z(()=>a.filter(l=>!l.closable||l.checked)),s=D(o.value[0]?.name);return e({currentTab:s,widgets:r,widgetsRef:i}),(l,c)=>(y(),V(d(gi),{class:"v-workspace-region",items:o.value,modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:j(()=>[(y(!0),M(ne,null,ae(d(r),u=>(y(),V(Cl,{key:u.name},[s.value===u.name?(y(),V(d(Lt),{key:0,ref_for:!0,ref_key:"widgetsRef",ref:i,region:l.region,widget:u},null,8,["region","widget"])):R("",!0)],1024))),128))]),_:1},8,["items","modelValue"]))}}),Sl={EmptyRegion:m_,Brand:v_,Toolbar:y_,Actions:w_,Apps:V_,Workspace:C_,Settings:$_,Status:A_,Preview:T_};export{Y_ as B,G_ as M,Je as _,u2 as j,q_ as x};
|