@vyr/cli 0.0.1 → 0.0.2
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/.entry/app.js +363 -363
- package/README.zh-CN.md +0 -33
- package/build/css/1111.86597cc5.css +1 -0
- package/build/css/2546.a9c3029e.css +1 -0
- package/build/css/3085.43d5665d.css +1 -0
- package/build/css/{2505.39376622.css → 3745.5e7a01f4.css} +1 -1
- package/build/css/{8093.21e188eb.css → 3864.d7e761ea.css} +1 -1
- package/build/css/{9157.971090af.css → 3964.4c4113a3.css} +1 -1
- package/build/css/login.3b035eb6.css +1 -0
- package/build/deps/socket.js +3 -3
- package/build/fonts/{iconfont.2e5056cd.woff → iconfont.892a2301.woff} +0 -0
- package/build/fonts/{iconfont.01dfbc15.ttf → iconfont.ba63119b.ttf} +0 -0
- package/build/index.html +1 -1
- package/build/js/1111.d7fb9219.js +1 -0
- package/build/js/{8743.2cffd0be.js → 1124.74dc01cf.js} +1 -1
- package/build/js/2546.9d7d58e4.js +1 -0
- package/build/js/3085.5ce399d8.js +1 -0
- package/build/js/3745.cd0df446.js +1 -0
- package/build/js/3864.d5d8003c.js +3 -0
- package/build/js/3964.66f0c619.js +1 -0
- package/build/js/{4263.870a448a.js → 4263.4fee7680.js} +1 -1
- package/build/js/4530.f37bf7ff.js +1 -0
- package/build/js/4587.04343c23.js +1 -0
- package/build/js/6234.efa90525.js +1 -0
- package/build/js/677.c536501d.js +1 -0
- package/build/js/6881.110a38eb.js +1 -0
- package/build/js/6968.d6e90089.js +1 -0
- package/build/js/7195.e454ee38.js +1 -0
- package/build/js/7692.0a1cdf62.js +1 -0
- package/build/js/8657.8fef2180.js +1 -0
- package/build/js/{1124.4cf01e6d.js → 8743.ae6b01fb.js} +1 -1
- package/build/js/931.8edc5ac8.js +1 -0
- package/build/js/index.715638f0.js +1 -0
- package/build/js/login.1a6bff2e.js +1 -0
- package/build/js/preview.6ee9a584.js +1 -0
- package/build/login.html +1 -1
- package/build/preview.html +1 -1
- package/pack/auto-provider-plugin/package.json +1 -8
- package/pack/class-wrapper-plugin/package.json +1 -8
- package/pack/rollup-config-plugin/package.json +1 -8
- package/pack/var-rename-plugin/package.json +1 -8
- package/package.json +2 -2
- package/build/css/1060.a79f9d80.css +0 -1
- package/build/css/1111.7f5086f2.css +0 -1
- package/build/css/6827.7d5b54a4.css +0 -1
- package/build/css/login.de13ff0c.css +0 -1
- package/build/js/1060.331f9a15.js +0 -1
- package/build/js/1111.8555bd5c.js +0 -1
- package/build/js/2505.b43421df.js +0 -1
- package/build/js/4530.60b7c78d.js +0 -1
- package/build/js/4587.9701b203.js +0 -1
- package/build/js/6234.8760a038.js +0 -1
- package/build/js/677.618fc137.js +0 -1
- package/build/js/6827.62f794a0.js +0 -1
- package/build/js/6881.e7455ee6.js +0 -1
- package/build/js/6968.07bbc3cd.js +0 -1
- package/build/js/7195.7a9c1589.js +0 -1
- package/build/js/7692.217959b6.js +0 -1
- package/build/js/8093.b4466960.js +0 -3
- package/build/js/8657.d3a8799b.js +0 -1
- package/build/js/9157.58a8fa2d.js +0 -1
- package/build/js/931.88800e05.js +0 -1
- package/build/js/index.b935de87.js +0 -1
- package/build/js/login.1488a09a.js +0 -1
- package/build/js/preview.6c550af7.js +0 -1
- /package/build/js/{1018.094a4eaf.js → 1018.841102d5.js} +0 -0
- /package/build/js/{1349.8c9198a0.js → 1349.8c628175.js} +0 -0
- /package/build/js/{1402.4e06e186.js → 1402.a2b31799.js} +0 -0
- /package/build/js/{150.0eb50ff3.js → 150.e0b6ce77.js} +0 -0
- /package/build/js/{1583.e8f36a93.js → 1583.ebe181e2.js} +0 -0
- /package/build/js/{1877.41a30a46.js → 1877.1ae78e83.js} +0 -0
- /package/build/js/{250.369da5c4.js → 250.86810c99.js} +0 -0
- /package/build/js/{4296.634b3fe2.js → 4296.4744698e.js} +0 -0
- /package/build/js/{4582.a686fadd.js → 4582.a70df995.js} +0 -0
- /package/build/js/{530.b4e0e136.js → 530.4b2961fe.js} +0 -0
- /package/build/js/{5639.7661231d.js → 5639.f2d2e21b.js} +0 -0
- /package/build/js/{6357.1354eb2c.js → 6357.264f8155.js} +0 -0
- /package/build/js/{7769.15f4d355.js → 7769.81492015.js} +0 -0
- /package/build/js/{8637.20577619.js → 8637.a22cc644.js} +0 -0
- /package/build/js/{9044.73639ece.js → 9044.70484b04.js} +0 -0
- /package/build/js/{9339.d75f7c2e.js → 9339.e3438ab8.js} +0 -0
- /package/build/js/{9620.e7e75a12.js → 9620.ee62a8bc.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var e={95284:function(e,t,r){var s={};r.r(s),r.d(s,{Method:function(){return cf},NoticeMessage:function(){return hf}});var n={};r.r(n),r.d(n,{Method:function(){return vf},NoticeMessage:function(){return mf},RequestMessage:function(){return yf}});var a={};r.r(a),r.d(a,{Method:function(){return wf},NoticeMessage:function(){return Cf},RequestMessage:function(){return kf}});var i={};r.r(i),r.d(i,{Method:function(){return Rf},NoticeMessage:function(){return _f}});var l={};r.r(l),r.d(l,{Method:function(){return Ef},NoticeMessage:function(){return Df}});var o={};r.r(o),r.d(o,{Method:function(){return Tf},RequestMessage:function(){return If}});var u={};r.r(u),r.d(u,{Method:function(){return Uf},RequestMessage:function(){return Xf}});var c={};r.r(c),r.d(c,{Method:function(){return Qf},NoticeMessage:function(){return Gf}});var h={};r.r(h),r.d(h,{confirm:function(){return c},connection:function(){return i},disconnect:function(){return l},getUser:function(){return a},login:function(){return n},logout:function(){return s},redo:function(){return u},undo:function(){return o}});var d={};r.r(d),r.d(d,{Method:function(){return Zf},NoticeMessage:function(){return ev},RequestMessage:function(){return Jf}});var p={};r.r(p),r.d(p,{switch:function(){return d}});var f={};r.r(f),r.d(f,{Method:function(){return nv},NoticeMessage:function(){return iv},RequestMessage:function(){return av}});var v={};r.r(v),r.d(v,{Method:function(){return cv},NoticeMessage:function(){return dv},RequestMessage:function(){return hv}});var y={};r.r(y),r.d(y,{Method:function(){return yv},NoticeMessage:function(){return gv},RequestMessage:function(){return mv}});var m={};r.r(m),r.d(m,{Method:function(){return kv},NoticeMessage:function(){return Mv},RequestMessage:function(){return Cv}});var g={};r.r(g),r.d(g,{Method:function(){return _v},NoticeMessage:function(){return zv},RequestMessage:function(){return jv}});var b={};r.r(b),r.d(b,{Method:function(){return Vv},RequestMessage:function(){return Av}});var x={};r.r(x),r.d(x,{Method:function(){return Wv},RequestMessage:function(){return Lv}});var w={};r.r(w),r.d(w,{Method:function(){return Nv},NoticeMessage:function(){return Bv},RequestMessage:function(){return qv}});var k={};r.r(k),r.d(k,{Method:function(){return Yv},NoticeMessage:function(){return Zv},RequestMessage:function(){return Hv}});var C={};r.r(C),r.d(C,{Method:function(){return ry},RequestMessage:function(){return sy}});var M={};r.r(M),r.d(M,{Method:function(){return ly},RequestMessage:function(){return oy}});var O={};r.r(O),r.d(O,{Method:function(){return dy},NoticeMessage:function(){return fy},RequestMessage:function(){return py}});var P={};r.r(P),r.d(P,{Method:function(){return gy},NoticeMessage:function(){return xy},RequestMessage:function(){return by}});var R={};r.r(R),r.d(R,{add:function(){return m},close:function(){return k},copy:function(){return C},create:function(){return v},cut:function(){return M},delete:function(){return y},dragdrap:function(){return P},initialize:function(){return f},open:function(){return w},remove:function(){return g},rename:function(){return b},select:function(){return x},update:function(){return O}});var _={};r.r(_),r.d(_,{Method:function(){return My},NoticeMessage:function(){return Py},RequestMessage:function(){return Oy}});var j={};r.r(j),r.d(j,{Method:function(){return zy},NoticeMessage:function(){return Sy}});var z={};r.r(z),r.d(z,{Method:function(){return Ay},NoticeMessage:function(){return Ty},RequestMessage:function(){return $y}});var S={};r.r(S),r.d(S,{Method:function(){return Fy},NoticeMessage:function(){return Xy},RequestMessage:function(){return Uy}});var E={};r.r(E),r.d(E,{Method:function(){return Qy},NoticeMessage:function(){return Ky},RequestMessage:function(){return Gy}});var D={};r.r(D),r.d(D,{Method:function(){return Jy},NoticeMessage:function(){return tm},RequestMessage:function(){return em}});var V={};r.r(V),r.d(V,{Method:function(){return am},NoticeMessage:function(){return lm},RequestMessage:function(){return im}});var A={};r.r(A),r.d(A,{Method:function(){return hm},NoticeMessage:function(){return pm},RequestMessage:function(){return dm}});var $={};r.r($),r.d($,{Method:function(){return mm},NoticeMessage:function(){return bm},RequestMessage:function(){return gm}});var T={};r.r(T),r.d(T,{Method:function(){return Cm},RequestMessage:function(){return Mm}});var I={};r.r(I),r.d(I,{add:function(){return z},create:function(){return D},delete:function(){return V},download:function(){return T},dragdrap:function(){return $},initialize:function(){return _},record:function(){return j},remove:function(){return S},switch:function(){return E},update:function(){return A}});var W={};r.r(W),r.d(W,{Method:function(){return _m},NoticeMessage:function(){return jm}});var L={};r.r(L),r.d(L,{Method:function(){return Dm},NoticeMessage:function(){return Vm}});var F={};r.r(F),r.d(F,{Method:function(){return Im},NoticeMessage:function(){return Wm}});var U={};r.r(U),r.d(U,{Method:function(){return Xm},NoticeMessage:function(){return Nm}});var X={};r.r(X),r.d(X,{Method:function(){return Gm},NoticeMessage:function(){return Km}});var N={};r.r(N),r.d(N,{add:function(){return U},create:function(){return W},delete:function(){return F},remove:function(){return X},update:function(){return L}});const q={id:"zh_CN",name:"@vyr/cli","login.systemName":"数据可视化构建工具","login.account":"账号","login.password":"密码","login.submit":"登 陆","login.registerAccount":"注册账号","login.forgotPassword ":"忘记密码","login.enterpriseEdition":"企业版","login.collaboration":"协作","login.efficiency":"高效","login.professionalism":"专业","login.form.rules.name":"请输入账号!","login.form.rules.password":"请输入密码!","body.sidebar.notFound":"未找到导航: {{key}}","footer.search.placeholder":"请输入资产名称!","header.menus.file.label":"文件","header.menus.scene.label":"场景","sidebar.interaction.button.close":"关 闭","sidebar.interaction.button.save":"保 存","inspector.notSelect":"未选择节点","inspector.Dataset":"数据集","inspector.Interaction":"交互"};var B=window["__VYR_RUNTIME_@vyr/locale"];B.Locale.register(q);const Q=B.Locale.getLanguage(q.name);var G=r(77409),K=r(67227),Y=r(89035),H=r(14291),Z=Object.defineProperty,J=(e,t,r)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ee=(e,t,r)=>J(e,"symbol"!==typeof t?t+"":t,r);const te=(e,t,r)=>{const s=e.split(t),n=[];for(const a of s)n.push(a.replace(r,"$1-").toLowerCase());return"--vyr-"+n.join("-")};class re{static update(e){const t=Object.keys(e),r=document.documentElement.style,s=/(?=[A-Z])/,n=/(.)(?=[A-Z])/g;for(const a of t){const t=e[a],i="object"===typeof t?t.value+t.unit:t,l=te(a,s,n);r.setProperty(l,i)}Object.assign(this.config,e)}}ee(re,"config",(0,H.Kh)({whiteColor:"rgba(255, 255, 255, 1)",blackColor:"rgba(0, 0, 0, 1)",blueColor:"rgba(27, 143, 223, 1)",greenColor:"rgba(106, 210, 54, 1)",yellowColor:"rgba(230, 162, 60, 1)",redColor:"rgba(245, 108, 108, 1)",successColor:"rgba(106, 210, 54, 1)",warningColor:"rgba(230, 162, 60, 1)",dangerColor:"rgba(245, 108, 108, 1)",topicColor:"rgba(30, 30, 30, 1)",activeTopicColor:"rgba(27, 143, 223, 0.8)",fontColor:"rgba(255, 255, 255, 1)",titleColor:"rgba(255, 255, 255, 1)",borderColor:"rgba(46, 46, 46, 1)",helperColor:"rgba(113, 113, 113, 1)",disabledColor:"rgba(175, 175, 175, 1)",draggableColor:"rgba(27, 143, 223, 0.3)",flashingDraggableColor:"rgba(27, 143, 223, 0.8)",fontSize:{unit:"px",value:12},titleSize:{unit:"px",value:14},borderSize:{unit:"px",value:1},radiusSize:{unit:"px",value:2},zIndex:999,animationTime:{unit:"ms",value:500},scrollBarColor:"rgba(46, 46, 46, 1)",inputFontSize:{unit:"px",value:12},inputHeight:{unit:"px",value:30},inputRadius:{unit:"px",value:2},inputLRPadding:{unit:"px",value:10},inputIconSize:{unit:"px",value:20},inputBorderSize:{unit:"px",value:1},inputFontColor:"rgba(255, 255, 255, 1)",inputBorderColor:"rgba(77, 77, 77, 1)",inputPlaceholderColor:"rgba(113, 113, 113, 1)",inputBackgroundColor:"rgba(42, 42, 42, 1)",optionMargin:{unit:"px",value:2},optionArrowSize:{unit:"px",value:18},optionBackgroundColor:"rgba(30, 30, 30, 1)",optionHoverBackgroundColor:"rgba(55, 55, 61, 1)",optionExpandBackgroundColor:"rgba(55, 55, 61, 1)",optionDisabledBackgroundColor:"rgba(77, 77, 77, 1)",optionsScrollMargin:{unit:"px",value:6},optionsBorderColor:"rgba(77, 77, 77, 1)",optionsBackgroundColor:"rgba(30, 30, 30, 1)",dialogHeaderBackgroundColor:"rgba(30, 30, 30, 0.9)",popoverBackgroundColor:"rgba(30, 30, 30, 1)",notifyZIndex:2e3})),re.update(re.config);const se=e=>{let t=null;const r={mounted(r){e("slotChange",r,t),t=r},beforeUnmount(){e("slotChange",null,t),t=null}};return r},ne=e=>{for(const t of e)if(t.type!==Comment)return t;return null},ae=e=>e.type!==K.FK||!1===Array.isArray(e.children)?0:e.children.length,ie=e=>"string"===typeof e.children?e.children:"",le=(e,t,r)=>{if(null!==e){let s=null,n=e;const a=ae(e);if(a>0)while(n.type===K.FK){if(s=ne(n.children),null===s)break;if(n=s,0===ae(s))break;s=n}if(null!==s){let e;if(s.type===K.EY){const r=ie(s);e=(0,K.h)("span",t,r)}else e=(0,K.h)(s,t);const a=(0,K.bo)(e,[[r]]);return n.children={default:()=>[a]},a}}const s=(0,K.h)("span",t);return(0,K.bo)(s,[[r]])};class oe{static insert(e,t){const r=e.indexOf(t);-1===r&&e.push(t)}static remove(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}static auto(e,t){const r=e.indexOf(t);-1===r?e.push(t):e.splice(r,1)}static insertByKey(e,t,r){const s=e.length;for(let n=0;n<s;n++)if(e[n][t]===r[t])return;e.push(r)}static removeByKey(e,t,r){const s=e.length;for(let n=0;n<s;n++){const s=e[n];if(s[t]===r)return void e.splice(n,1)}}}var ue=r(78366);const ce=ue.A;var he=Object.defineProperty,de=(e,t,r)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>de(e,"symbol"!==typeof t?t+"":t,r);class fe{constructor(){pe(this,"registrys",{})}listen(e,t,r={}){var s;let n=this.registrys[e];void 0===n&&(n=[],this.registrys[e]=n);const a=void 0===r.insertIndex?n.length:r.insertIndex,i=n.find(e=>e.callback===t);i||n.splice(a,0,{once:null!=(s=r.once)&&s,callback:t});const l=()=>this.unlisten(e,t);return l}unlisten(e,t){let r=this.registrys[e];if(void 0!==r)for(let s=0;s<r.length;s++)if(r[s].callback===t)return r.splice(s,1),void(0===r.length&&delete this.registrys[e])}trigger(e,...t){let r=this.registrys[e];if(void 0!==r&&0!==r.length){r=[...this.registrys[e]];for(let s=0;s<r.length;s++)r[s].callback(...t),!0===r[s].once&&this.unlisten(e,r[s].callback)}}}let ve=1;const ye=(0,H.KR)({queue:[],active:-1}),me=()=>ve++,ge=e=>{oe.insert(ye.value.queue,e)},be=e=>{oe.remove(ye.value.queue,e)},xe=e=>{be(e),ge(e),ye.value.active=e},we=e=>ye.value.active===e,ke=(e,t=!1)=>{const r=ye.value.queue.indexOf(e);if(-1===r)return r;const s=t?ye.value.queue.length:r;return 2*s+1e3};var Ce=Object.defineProperty,Me=(e,t,r)=>t in e?Ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Oe=(e,t,r)=>Me(e,"symbol"!==typeof t?t+"":t,r);const Pe=class e{constructor(t,r="danger",s=3e3,n=()=>{}){Oe(this,"type"),Oe(this,"message"),Oe(this,"duration"),Oe(this,"icon"),Oe(this,"close"),Oe(this,"visible",!1),this.type=r,this.message=t,this.duration=s,this.icon=e.map[r],this.close=n}};Oe(Pe,"map",{success:"success",warning:"warning",danger:"shanchu"}),Oe(Pe,"collection",(0,H.KR)([])),Oe(Pe,"offset",0);let Re=Pe;const _e={id:"zh_CN",name:"@vyr/design","input.placeholder":"请输入内容","select.placeholder":"请选择","notify.send.notMessage":"消息已被忽略,缺少提示信息!","confirm.state.notFound":"未初始化确认框的状态","confirm.button.submit":"确 认","confirm.button.cancel":"取 消","dialog.state.notFound":"未初始化确认框的状态","dialog.button.submit":"确 认","dialog.button.cancel":"取 消","options.tips.notData":"暂无数据","options.tips.notFound":"无匹配数据","scroll.listen.error":"无法计算滚动属性!"};B.Locale.register(_e);const je=B.Locale.getLanguage(_e.name),ze=Symbol("vyr-confirm"),Se=()=>{const e=(0,K.WQ)(ze,()=>{throw je.get("confirm.state.notFound")});return e};Object.defineProperty;var Ee=r(23404),De=r(31565),Ve=r(70808),Ae=r(7323),$e=r(66148),Te=r(37406),Ie=r(43646),We=r(55928);const Le=(0,Ee.UD)({defaultModifiers:[...De.oB,$e.A,Te.A,Ae.A,Ve.A,We.A,Ie.A]}),Fe=(e,t,r)=>({name:"offset",options:{offset:[0,e?t:0]},enabled:r}),Ue=(e,t=!1)=>{const r=[{name:"arrow",options:{padding:e.arrow?5:0},enabled:t},{name:"preventOverflow",options:{padding:0},enabled:t}];return{placement:e.placement,modifiers:[Fe(e.arrow,e.offset,t),...r,{name:"eventListeners",enabled:t},{name:"applyStyles",enabled:t}]}},Xe=(e,t)=>{if(void 0===e)return!1;for(const r of t)if(r.contains(e))return!0;return!1},Ne={wrapper:document.createElement("div"),setup(){this.wrapper.setAttribute("class","tooltip"),this.wrapper.setAttribute("id","tooltip"),this.wrapper.style.display="contents",document.body.appendChild(this.wrapper)}};Ne.setup();const qe=/^[-+]?(?:(?=\d|\.\d)(?:\d+\.?\d*|\.\d+)|Infinity)?$/,Be=document.body,Qe=()=>{const e={width:Be.clientWidth,height:Be.clientHeight};return e},Ge=e=>{let t=e.indexOf("%");if(t>-1){const r=Qe(),s=parseFloat(e.slice(0,t));return Math.floor(r.height*s/100)}let r=e;t=e.indexOf("px"),t>-1&&(r=e.slice(0,t));const s=parseFloat(r);return isNaN(s)?0:s},Ke=e=>{const t=getComputedStyle(e).height;if(!t)return 0;const r=parseInt(t.split("px")[0]);return isNaN(r)?0:r},Ye=Symbol("vyr-dialog"),He=()=>{const e=(0,K.WQ)(Ye,()=>{throw je.get("dialog.state.notFound")});return e},Ze=(e,t,r)=>{for(const s of t){if(r.value(s)===e)return r.label(s);const t=r.children(s);if(0===t.length)continue;const n=Ze(e,t,r);if(n)return r.label(s)+" / "+n}return""},Je=(e,t,r,s=[])=>{for(const n of e){if(r.value(n)===t)return s.push(n),s;const e=r.children(n);if(e.length>0&&Je(e,t,r,s),s.length>0)return s.push(n),s}return s},et=(e,t,r)=>{const s=[];for(const n of t){const t=r.children(n);if(t.length>0)s.push(...et(e,t,r));else{if(!0===r.disabled(n))continue;r.label(n).indexOf(e)>-1&&s.push(n)}}return s};var tt=Object.defineProperty,rt=(e,t,r)=>t in e?tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,st=(e,t,r)=>rt(e,"symbol"!==typeof t?t+"":t,r);class nt{constructor(){st(this,"registry",new WeakMap),st(this,"debounce",!1),st(this,"observer"),st(this,"handler",e=>{!0!==this.debounce&&(this.debounce=!0,setTimeout(()=>this.callback(e),0))}),st(this,"callback",e=>{this.debounce=!1;for(const t of e)this.trigger(t.target)}),this.observer=new ResizeObserver(this.handler)}trigger(e){const t=this.registry.get(e);if(void 0===t)return;const r={rect:e.getBoundingClientRect(),target:e};t(r)}listen(e,t){return this.registry.set(e,t),this.observer.observe(e),()=>this.trigger(e)}unlisten(e){this.registry.delete(e),this.observer.unobserve(e)}dispose(){this.observer.disconnect()}}const at=new nt;var it=(0,K.pM)({__name:"Slot",emits:["slotChange"],setup(e,{emit:t}){const r=(0,K.OA)(),s=t,n=(0,K.Ht)(),a=se(s),i=()=>{var e,t;const s=null!=(t=null==(e=n.default)?void 0:e.call(n))?t:[],i=ne(s),l=le(i,r,a);return l};return(e,t)=>((0,K.uX)(),(0,K.Wv)(i))}});const lt=it;var ot=lt,ut=(0,K.pM)({__name:"Button",props:{width:{default:"auto"}},emits:["click"],setup(e,{emit:t}){const r=e,s=(0,K.EW)(()=>{let e="";return e+="auto"===r.width?"":"width:100%;text-align:center;",e}),n=t;return(e,t)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-button",style:(0,Y.Tr)(s.value),onClick:t[0]||(t[0]=e=>n("click",e))},[(0,K.RG)(e.$slots,"default")],4))}}),ct=r(45904);const ht=(0,ct.A)(ut,[["__scopeId","data-v-1c3f00f6"]]);var dt=ht;var pt=Object.defineProperty,ft=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,bt=(e,t,r)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&&bt(e,r,t[r]);if(yt)for(var r of yt(t))gt.call(t,r)&&bt(e,r,t[r]);return e},wt=(e,t)=>ft(e,vt(t));const kt=Symbol(),Ct=(0,H.KR)({clearable:!1,readonly:!1,readonlyClearable:!1,disabled:!1,input:{width:"100%",draggable:!1,dragkey:""},label:{width:60,align:"left"},row:{gutter:10,margin:"0,0,24,0"},card:{margin:"0,0,0,0"}}),Mt=()=>(0,K.WQ)(kt,Ct),Ot=(e,t)=>{const r=xt({},e),s=Object.keys(t);for(const n of s){let s=t[n];null!==s&&void 0!==s&&(r[n]="object"===typeof s?Ot(e[n],s):s)}return r},Pt=e=>{const t=(0,K.WQ)(kt,Ct),r=(0,K.EW)(()=>Ot(t.value,e.value));(0,K.Gt)(kt,r)},Rt=Symbol(),_t=((0,H.KR)({gutter:10,count:0}),e=>(0,K.Gt)(Rt,e)),jt=Symbol(),zt=e=>(0,K.Gt)(jt,e),St=()=>(0,K.WQ)(jt,null),Et=Symbol(),Dt=(0,H.KR)({getPopoverLayout(e){},getInputValue(e,t,r){for(const s of t)if(r.value(s)===e)return r.label(s);return e},searchOptions:[],getSearchOptions(e,t,r){const s=[];for(const n of t)!0!==r.disabled(n)&&-1!==r.label(n).indexOf(e)&&s.push(n);return s}}),Vt=e=>(0,K.Gt)(Et,e),At=()=>(0,K.WQ)(Et,(0,H.KR)(wt(xt({},Dt.value),{searchOptions:[]}))),$t=Symbol(),Tt=(0,H.KR)({handleClick(e,t){},handleModify(e,t){},handleRightClick(e,t){},handleChange(){},handleExpand(e){},getAdjacencies(e,t,r){return 0}}),It=e=>(0,K.Gt)($t,e),Wt=()=>(0,K.WQ)($t,Tt),Lt=Symbol(),Ft=(0,H.KR)({autoClose:!0,useFlexLayout:!1,appendToTooltip:!0}),Ut=e=>(0,K.Gt)(Lt,e),Xt=()=>(0,K.WQ)(Lt,Ft),Nt=Symbol(),qt=e=>(0,K.Gt)(Nt,e),Bt=()=>(0,K.WQ)(Nt,null),Qt=Symbol(),Gt=(0,H.KR)({options:{tips:!0,icon:!0},rules:[],validateCollection:{},addRule(e){},removeRule(e){},validateItem(e,t){}}),Kt=e=>(0,K.Gt)(Qt,e),Yt=()=>(0,K.WQ)(Qt,Gt),Ht=Symbol(),Zt=(0,H.KR)({validate(e){}}),Jt=e=>(0,K.Gt)(Ht,e),er=()=>(0,K.WQ)(Ht,Zt);var tr=Object.defineProperty,rr=Object.defineProperties,sr=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,lr=(e,t,r)=>t in e?tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,or=(e,t)=>{for(var r in t||(t={}))ar.call(t,r)&&lr(e,r,t[r]);if(nr)for(var r of nr(t))ir.call(t,r)&&lr(e,r,t[r]);return e},ur=(e,t)=>rr(e,sr(t));const cr={getter:{default:()=>({})}},hr={modelValue:{default:!1},value:{default:!0}},dr={clearable:{default:null},readonly:{default:null},readonlyClearable:{default:null}},pr={gutter:{default:null},margin:{default:null}},fr={width:{default:null},align:{default:null}},vr={width:{default:null},draggable:{default:!1},dragkey:{default:""}},yr={modelValue:{default:""},placeholder:{default:je.get("input.placeholder")}},mr={modelValue:{default:""},placeholder:{default:je.get("select.placeholder")}},gr={data:{default(){return[]}},modify:{default:"close"},modifyValue:{default:""},draggable:{default:!1},visible:{default(){return e=>!0}},warning:{default(){return e=>!1}},multiple:{default:!1}},br={margin:{default:0},padding:{default:0}},xr={mask:{default:!0},visible:{default:!1}},wr={mask:{default:!1},header:{default:60},footer:{default:55},width:{default:"860px"},height:{default:"auto"},maxHeight:{default:"60%"},margin:{default:10},padding:{default:10}},kr={placement:{default:"bottom"},popoverClass:{default:""},arrow:{default:!0},offset:{default:6}},Cr=ur(or({},dr),{input:{default:null},label:{default:null},row:{default:null}}),Mr=(e,t,r,s)=>void 0!==s&&null!==s&&""!==s&&((!1===t||!!r)&&e),Or=e=>{const t=Mt(),r=(0,K.EW)(()=>null===e.readonly?t.value.readonly:e.readonly),s=(0,K.EW)(()=>null===e.clearable?t.value.clearable:e.clearable),n=(0,K.EW)(()=>null===e.readonlyClearable?t.value.readonlyClearable:e.readonlyClearable);return{curReadonly:r,curClearable:s,curReadonlyClearable:n,showClear:Mr}},Pr=e=>{const t=Mt(),r=(0,H.KR)({mouseInInput:!1}),s=()=>r.value.mouseInInput=!0,n=()=>r.value.mouseInInput=!1,a=(0,K.EW)(()=>null===e.readonly?t.value.readonly:e.readonly),i=(0,K.EW)(()=>!1!==r.value.mouseInInput&&(null===e.clearable?t.value.clearable:e.clearable)),l=(0,K.EW)(()=>null===e.readonlyClearable?t.value.readonlyClearable:e.readonlyClearable);return{curReadonly:a,curClearable:i,curReadonlyClearable:l,enterInput:s,leaveInput:n,showClear:Mr}},Rr=e=>{const t=Mt(),r=(0,K.EW)(()=>null===e.width?t.value.input.width:e.width);return{curInputWidth:r}},_r=e=>{const t=e.split(","),r=[];for(const s of t){const e=parseInt(s);isNaN(e)||r.push(e)}if(0===r.length)return[0,0,0,0];if(1===r.length){const e=r[0];return[e,e,e,e]}if(2===r.length){const e=r[0],t=r[1];return[e,t,e,t]}if(3===r.length){const e=r[1];return[r[0],e,r[2],e]}return[r[0],r[1],r[2],r[3]]},jr=(e,t="padding")=>`${t}:${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px;`,zr=e=>"string"===typeof e?_r(e):[e,e,e,e],Sr=e=>{const t=(0,K.EW)(()=>jr(zr(e.margin))),r=(0,K.EW)(()=>jr(zr(e.padding)));return{marginStyle:t,paddingStyle:r}},Er=(e,t)=>{const r={tick:0,count:0,stopWheel:!1},s=(0,H.KR)(0),n=()=>{r.tick=requestAnimationFrame(n),e()},a=()=>{cancelAnimationFrame(r.tick),r.tick=0},i=()=>{r.count--,r.count>0||a()},l=e=>{!0===r.stopWheel&&e.preventDefault(),0===r.tick&&n(),r.count++,setTimeout(i,300)},o=()=>{s.value=.75},u=()=>{a(),s.value=0};return{opacity:s,layout:l,move:o,leave:u}};var Dr=(0,K.pM)({__name:"Scroll",props:br,emits:["resize"],setup(e,{emit:t}){const r=e,{marginStyle:s,paddingStyle:n}=Sr(r),a=t,i=(0,K.rk)("refWrapper"),l=(0,K.rk)("refBody"),o=(0,H.KR)({hide:!0,top:0,height:0}),u={wrapper:0,body:0},c=()=>{i.value&&(o.value.top=i.value.scrollTop/u.body*100)},h=()=>{var e,t,r,s;u.wrapper=Math.floor(null!=(t=null==(e=i.value)?void 0:e.getBoundingClientRect().height)?t:0),u.body=null!=(s=null==(r=l.value)?void 0:r.scrollHeight)?s:0,o.value.height=u.wrapper/u.body*100,o.value.hide=!(u.body-u.wrapper>1),c(),a("resize")},d=()=>{if(!l.value||!i.value)throw je.get("scroll.listen.error");at.listen(i.value,h),at.listen(l.value,h)},p=()=>{at.unlisten(i.value),at.unlisten(l.value)};(0,K.sV)(d),(0,K.xo)(p);const{opacity:f,layout:v,move:y,leave:m}=Er(c,i);return(e,t)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-scroll",style:(0,Y.Tr)(`${(0,H.R1)(s)}`),onWheelPassive:t[0]||(t[0]=(...e)=>(0,H.R1)(v)&&(0,H.R1)(v)(...e)),onMousemove:t[1]||(t[1]=(...e)=>(0,H.R1)(y)&&(0,H.R1)(y)(...e)),onMouseleave:t[2]||(t[2]=(...e)=>(0,H.R1)(m)&&(0,H.R1)(m)(...e))},[(0,K.Lk)("div",{class:"scroll-wrapper scrollbar",ref_key:"refWrapper",ref:i},[(0,K.Lk)("div",{class:"scroll-body",style:(0,Y.Tr)(`${(0,H.R1)(n)}`),ref_key:"refBody",ref:l},[(0,K.RG)(e.$slots,"default")],4)],512),(0,K.Lk)("div",{class:"scroll-bar",style:(0,Y.Tr)(`display:${o.value.hide?"none":"display"};opacity:${(0,H.R1)(f)};top:${o.value.top}%;height:${o.value.height}%;`)},null,4)],36))}});const Vr=(0,ct.A)(Dr,[["__scopeId","data-v-1583daa3"]]);var Ar=Vr;const $r=(e,t,...r)=>window.setTimeout(e,t,...r),Tr={searchable:{default:!1}},Ir=(e,t,r)=>{const s=(0,H.KR)({status:0,timeout:0,forcedPrompt:!1,count:0,content:""}),n=()=>{clearTimeout(s.value.timeout),s.value.status=1,t.value.searchOptions=[]},a=()=>{if(s.value.count--,!(s.value.count>0||!1===e.searchable))if(s.value.forcedPrompt=!1,""===s.value.content)s.value.status=1,t.value.searchOptions=[];else{s.value.status=3;const n=!0===e.searchable?t.value.getSearchOptions(s.value.content,e.data,r):e.searchable(s.value.content,e.data);0===n.length&&(s.value.forcedPrompt=!0,n.push({label:"",value:"",disabled:!0})),t.value.searchOptions=n}},i=e=>{s.value.count++,s.value.status=2,s.value.content=e,s.value.timeout=$r(a,200)},l=()=>{s.value.status=0,s.value.content="",s.value.forcedPrompt=!1,t.value.searchOptions=[]},o=()=>{clearTimeout(s.value.timeout),s.value.status=4,s.value.timeout=$r(l,re.config.animationTime.value)};return{searchState:s,startSearch:n,updateSearch:i,clearSearch:o}},Wr={label(e){return e.label},value(e){return e.value},disabled(e){return e.disabled},children(e){var t;return null!=(t=e.children)?t:[]},arrow(e){return!0}},Lr=e=>void 0===e?Wr:Object.assign({},Wr,e.getter),Fr=new nt,Ur=(e,t)=>{const r=At(),s=(0,H.KR)({visible:!1,width:"auto"}),n=(0,K.EW)(()=>"auto"===e.popoverWidth?s.value.width:e.popoverWidth),a=a=>{t.value&&("auto"===e.popoverWidth&&(s.value.width=a.rect.width+"px"),t.value.update().then(()=>{var e,s;const a=null!=(s=null==(e=t.value)?void 0:e.position())?s:["bottom","start"];r.value.getPopoverLayout({position:a,width:n.value})}))};return{state:s,slotWidth:n,cascaderProvider:r,resize:a}};var Xr=Object.defineProperty,Nr=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Kr=(e,t,r)=>t in e?Xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))Qr.call(t,r)&&Kr(e,r,t[r]);if(Br)for(var r of Br(t))Gr.call(t,r)&&Kr(e,r,t[r]);return e},Hr=(e,t)=>Nr(e,qr(t));const Zr="data-vyr-popper-hidden";var Jr=(0,K.pM)({__name:"Popover",props:Hr(Yr({},kr),{popoverCard:{default:!0},popoverWidth:{default:"auto"},modelValue:{default:!1},trigger:{default:"click"},disabled:{default:!1}}),emits:["update:modelValue","show","close","triggerChange"],setup(e,{expose:t,emit:r}){const s=e;let n=null;const a=r,i=(0,K.rk)("refPopover"),l=(e,t)=>{e&&o(e),a("triggerChange",e,t)},o=e=>{n&&n.destroy(),i.value&&(n=Le(e,i.value,Ue(s)))},u=()=>{f(),n.destroy()};(0,K.xo)(u);const c=e=>{!0!==x.value.visible&&e.target===i.value&&"opacity"===e.propertyName&&n.setOptions(Ue(s,!1))},h=()=>n.update(),d=e=>{!1!==x.value.visible&&!1!==m.value.autoClose&&(e.target instanceof Node&&Xe(e.target,[i.value,n.state.elements.reference])||y(!1))},p=e=>{"Escape"===e.code&&d(e)},f=()=>{window.removeEventListener("click",d),window.removeEventListener("keyup",p),null!==g&&g.listener.unlisten("move",h)},v=()=>{window.addEventListener("click",d),window.addEventListener("keyup",p),null!==g&&g.listener.listen("move",h)},y=e=>{var t,r;if(x.value.visible===e)return;a("update:modelValue",e),x.value.visible=e;const l=Ue(s,e);e?(v(),n.setOptions(l),null==(t=i.value)||t.removeAttribute(Zr),a("show")):(f(),null==(r=i.value)||r.setAttribute(Zr,""),a("close"))},m=Xt(),g=Bt(),b=(0,K.EW)(()=>{var e;const t=999;return null===g?t:(null!=(e=g.layer.value)?e:0)+1}),x=(0,H.KR)({visible:!1,needClose:!1,delayCount:0,needOpen:!1}),w=()=>{!0!==s.disabled&&"click"===s.trigger&&y(!x.value.visible)},k=()=>{!0!==x.value.needClose&&y(!0)},C=()=>{x.value.delayCount--,0===x.value.delayCount&&!0===x.value.needOpen&&k()},M=()=>{!0!==s.disabled&&"hover"===s.trigger&&!1!==x.value.needOpen&&(x.value.delayCount++,setTimeout(C,200))},O=()=>{!0!==s.disabled&&"hover"===s.trigger&&(x.value.needOpen=!0,M())},P=()=>{!1!==x.value.needClose&&(x.value.needClose=!1,y(!1))},R=()=>{!0!==s.disabled&&"hover"===s.trigger&&(x.value.needOpen=!1,!0!==x.value.needClose&&(x.value.needClose=!0,setTimeout(P,300)))},_=()=>{x.value.needOpen=!1,R()};(0,K.wB)(()=>s.modelValue,y),(0,K.wB)(()=>[s.placement,s.arrow],()=>n.setOptions(Ue(s)));const j={update:()=>n.update(),position:()=>n.state.placement.split("-")};return t(j),(t,r)=>((0,K.uX)(),(0,K.CE)(K.FK,null,["click"===e.trigger?((0,K.uX)(),(0,K.Wv)(ot,{key:0,onSlotChange:l,onClick:w,onContextmenu:_},{default:(0,K.k6)(()=>[(0,K.RG)(t.$slots,"trigger")]),_:3})):((0,K.uX)(),(0,K.Wv)(ot,{key:1,onSlotChange:l,onMouseenter:O,onMouseleave:R,onMousemove:M},{default:(0,K.k6)(()=>[(0,K.RG)(t.$slots,"trigger")]),_:3})),((0,K.uX)(),(0,K.Wv)(K.Im,{to:(0,H.R1)(Ne).wrapper,disabled:!1===(0,H.R1)(m).appendToTooltip},[(0,K.Lk)("div",{class:(0,Y.C4)(["vyr-popover",{card:e.popoverCard,[t.popoverClass]:!0}]),ref_key:"refPopover",ref:i,"data-vyr-popper-hidden":"",style:(0,Y.Tr)({width:e.popoverWidth,zIndex:b.value}),onMouseenter:r[0]||(r[0]=e=>x.value.needClose=!1),onMouseleave:R,onContextmenu:r[1]||(r[1]=(0,G.D$)(()=>{},["prevent","stop"])),onTransitionend:c},[(0,K.Lk)("div",{class:"popover-arrow","data-popper-arrow":"",style:(0,Y.Tr)("opacity:"+(t.arrow?1:0))},null,4),(0,K.Lk)("div",{class:(0,Y.C4)(["popover-wrapper",{flex:(0,H.R1)(m).useFlexLayout}])},[(0,K.RG)(t.$slots,"default")],2)],38)],8,["to","disabled"]))],64))}});const es=(0,ct.A)(Jr,[["__scopeId","data-v-3763114c"]]);var ts=es;const rs=["title"],ss={class:"option-arrow"},ns={key:0,class:"vyrfont vyr-right-arrow"},as=["title"];var is=(0,K.pM)({__name:"Option",props:{label:{default:""},value:{default:""},left:{default:!0},arrow:{default:!1},checked:{default:!1},expand:{default:!1},disabled:{default:!1},warning:{default:!1}},emits:["click","mousedown","mouseup","rightClick","mouseenter","mouseleave"],setup(e,{emit:t}){const r=e,s=t,n=(e,t)=>{if(!1===r.disabled)return s(e,t);t.stopPropagation(),t.preventDefault()};return(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:(0,Y.C4)(["vyr-option",{active:e.checked,expand:e.expand,justify:!1===e.left,warning:e.warning,disabled:e.disabled}]),onClick:r[0]||(r[0]=e=>n("click",e)),onMousedown:r[1]||(r[1]=e=>n("mousedown",e)),onMouseup:r[2]||(r[2]=e=>n("mouseup",e)),onMouseenter:r[3]||(r[3]=e=>n("mouseenter",e)),onMouseleave:r[4]||(r[4]=e=>n("mouseleave",e)),onContextmenu:r[5]||(r[5]=e=>n("rightClick",e))},[e.left?(0,K.RG)(t.$slots,"default",{key:0},()=>[(0,K.Lk)("div",{class:"option-label",title:e.label},[(0,K.RG)(t.$slots,"label",{},()=>[(0,K.eW)((0,Y.v_)(e.label),1)])],8,rs)]):(0,K.Q3)("",!0),(0,K.Lk)("div",ss,[(0,K.RG)(t.$slots,"icon",{},()=>[e.arrow?((0,K.uX)(),(0,K.CE)("i",ns)):(0,K.Q3)("",!0)])]),!1===e.left?(0,K.RG)(t.$slots,"default",{key:1},()=>[(0,K.Lk)("div",{class:"option-label",title:e.label},[(0,K.RG)(t.$slots,"label",{},()=>[(0,K.eW)((0,Y.v_)(e.label),1)])],8,as)]):(0,K.Q3)("",!0)],34))}});const ls=(0,ct.A)(is,[["__scopeId","data-v-b3e095fa"]]);var os=ls,us=(0,K.pM)({__name:"Draggable",setup(e,{expose:t}){const r=(0,H.KR)({visible:!1,label:"",x:0,y:0}),s=(e,t)=>{r.value.x=e,r.value.y=t},n=e=>{document.body.classList.add("vyr-drag-mouse"),r.value.visible=!0,r.value.label=e},a=()=>{document.body.classList.remove("vyr-drag-mouse"),r.value.visible=!1,r.value.label=""};return t({show:n,hide:a,update:s}),(e,t)=>r.value.visible?((0,K.uX)(),(0,K.CE)("div",{key:0,class:"vyr-drag",style:(0,Y.Tr)(`left:${r.value.x}px;top:${r.value.y}px;`)},[(0,K.bF)(os,{label:r.value.label,arrow:!1},null,8,["label"])],4)):(0,K.Q3)("",!0)}});const cs=(0,ct.A)(us,[["__scopeId","data-v-98075b9c"]]);var hs=cs,ds=Object.defineProperty,ps=(e,t,r)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fs=(e,t,r)=>ps(e,"symbol"!==typeof t?t+"":t,r);const vs=(0,G.Ef)(hs),ys=vs.mount(document.createElement("div"));document.body.appendChild(ys.$el);const ms=class{};fs(ms,"label",""),fs(ms,"id",""),fs(ms,"needMove",!1),fs(ms,"enabled",!1),fs(ms,"executed",!1),fs(ms,"dragData",null),fs(ms,"viewer",ys),fs(ms,"mouse",{x:0,y:0}),fs(ms,"mouseStartDistance",2),fs(ms,"tick"),fs(ms,"start",(e,t,r,s)=>{!1!==t.starter(e)&&(window.addEventListener("mousemove",ms.move),window.addEventListener("mouseup",ms.cancel),ms.needMove=!0,ms.mouse.x=s.clientX,ms.mouse.y=s.clientY,ms.dragData=e,ms.label=r,ms.id=t.id)}),fs(ms,"enter",(e,t,r,s)=>!1!==ms.enabled&&null!==ms.dragData&&(void 0!==r&&(ms.tick=r,void 0!==s&&r(s)),t.validator({id:ms.id,data:ms.dragData},{id:t.id,data:e}))),fs(ms,"leave",(e,t)=>{!1!==ms.enabled&&null!==ms.dragData&&(ms.tick=void 0)}),fs(ms,"move",e=>{if(!0!==ms.executed){if(ms.executed=!0,requestAnimationFrame(()=>ms.executed=!1),!0===ms.needMove){const t=Math.abs(e.clientX-ms.mouse.x),r=Math.abs(e.clientY-ms.mouse.y),s=Math.min(t,r,ms.mouseStartDistance);if(s<ms.mouseStartDistance)return;ms.needMove=!1,ms.enabled=!0,ms.viewer.show(ms.label)}void 0!==ms.tick&&ms.tick(e),ms.viewer.update(e.clientX,e.clientY)}}),fs(ms,"end",(e,t,r="insert")=>{if(!0===ms.enabled&&null!==ms.dragData){const s={id:ms.id,data:ms.dragData},n={id:t.id,data:e};!0===t.validator(s,n)&&t.finished(s,n,r)}ms.cancel()}),fs(ms,"limit",(e,t,r="insert")=>{if(!0===ms.enabled&&null!==ms.dragData){const s={id:ms.id,data:ms.dragData},n={id:t.id,data:e};return t.limit(s,n,r)}return r}),fs(ms,"cancel",()=>{window.removeEventListener("mouseup",ms.cancel),window.removeEventListener("mousemove",ms.move),ms.id="",ms.needMove=!1,ms.enabled=!1,ms.executed=!1,ms.dragData=null,ms.tick=void 0,ms.viewer.hide()});let gs=ms;var bs=Object.defineProperty,xs=Object.defineProperties,ws=Object.getOwnPropertyDescriptors,ks=Object.getOwnPropertySymbols,Cs=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Os=(e,t,r)=>t in e?bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ps=(e,t)=>{for(var r in t||(t={}))Cs.call(t,r)&&Os(e,r,t[r]);if(ks)for(var r of ks(t))Ms.call(t,r)&&Os(e,r,t[r]);return e},Rs=(e,t)=>xs(e,ws(t));const _s=["type","placeholder","value","readonly"],js={class:"icon-wrapper"};var zs=(0,K.pM)({__name:"Input",props:Rs(Ps(Ps(Ps({},dr),vr),yr),{type:{default:"text"},trigger:{default:"input"},autofocus:{default:!1}}),emits:["update:modelValue","focus","blur","click","clear"],setup(e,{expose:t,emit:r}){const s=e,n={mounted(e,t){!0===t.value&&e.focus()}},a=(0,H.KR)(""),i=()=>a.value=s.modelValue;(0,K.wB)(()=>s.modelValue,i,{immediate:!0});const l=(0,K.rk)("refInput"),o=r,{curReadonly:u,curClearable:c,curReadonlyClearable:h,enterInput:d,leaveInput:p,showClear:f}=Pr(s),{curInputWidth:v}=Rr(s),y=(0,H.KR)(!1),m=(0,H.KR)(!1),g=e=>{"Escape"===e.code&&z.blur()},b=()=>{y.value=!0},x=e=>{!1!==y.value&&(y.value=!1,k())},w=()=>{!0!==u.value&&(o("focus"),window.addEventListener("keydown",g),m.value=!0)},k=()=>{var e,t;!0!==y.value&&(a.value=null!=(t=null==(e=l.value)?void 0:e.value)?t:"","input"===s.trigger&&o("update:modelValue",a.value))},C=er(),M=()=>{var e,t;y.value=!1,!0!==u.value&&(a.value=null!=(t=null==(e=l.value)?void 0:e.value)?t:"","blur"===s.trigger&&o("update:modelValue",a.value),o("blur",a.value),C.value.validate(a.value),m.value=!1,window.removeEventListener("keydown",g))},O=e=>{o("update:modelValue",""),o("clear",e),!1===m.value&&C.value.validate("")},P=(0,H.Kh)({enabled:!1,draggable:!1}),R=e=>{!0!==y.value&&(d(),!0!==u.value&&(P.enabled=gs.enabled,!1!==gs.enabled&&!1!==s.draggable&&(P.draggable=gs.enter({key:s.dragkey,value:a.value},s.draggable))))},_=e=>{!0!==y.value&&(p(),P.enabled=!1,!1!==gs.enabled&&!1!==s.draggable&&(P.draggable=!1))},j=e=>{!0!==u.value&&(P.enabled=!1,!1!==gs.enabled&&!1!==s.draggable&&(gs.end({key:s.dragkey,value:a.value},s.draggable,"insert"),P.draggable=!1))},z={isFocus:m,focus(){l.value&&l.value.focus()},blur(){l.value&&l.value.blur()},setValue(e){l.value&&(l.value.value=e,a.value=e)}};return t(z),(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:(0,Y.C4)(["vyr-input",{clearable:(0,H.R1)(c),icon:t.$slots.icon}]),style:(0,Y.Tr)(`width:${(0,H.R1)(v)};`),onClick:r[0]||(r[0]=e=>o("click",e)),onMouseenter:R,onMouseleave:_,onMouseup:j},[(0,K.bo)((0,K.Lk)("input",{ref_key:"refInput",ref:l,class:(0,Y.C4)(["input-wrapper",{readonly:(0,H.R1)(u),icon:(0,H.R1)(c),draggable:P.draggable}]),tabindex:"-1",type:e.type,placeholder:t.placeholder,value:a.value,readonly:(0,H.R1)(u),onInput:k,onFocus:w,onBlur:M,onCompositionstart:b,onCompositionend:x},null,42,_s),[[n,!(0,H.R1)(u)&&e.autofocus]]),(0,K.Lk)("div",js,[(0,K.RG)(t.$slots,"icon",{clearable:(0,H.R1)(c)},()=>[(0,K.bF)(G.eB,{name:"vyr-transition"},{default:(0,K.k6)(()=>[(0,H.R1)(f)((0,H.R1)(c),(0,H.R1)(u),(0,H.R1)(h),a.value)&&!1===P.enabled?((0,K.uX)(),(0,K.CE)("i",{key:0,class:"vyrfont vyr-shanchu vyr-input-icon",onClick:(0,G.D$)(O,["stop"])})):(0,K.Q3)("",!0)]),_:1})])])],38))}});const Ss=(0,ct.A)(zs,[["__scopeId","data-v-9c681fda"]]);var Es=Ss;const Ds=["onClick"],Vs=["onClick"];var As=(0,K.pM)({__name:"Options",props:{width:{default:""},left:{default:!0},arrow:{default:!0},maxCount:{default:5},minCount:{default:0},data:{default(){return[]}},getter:{default(){return Wr}},checked:{default(){return[]}},expand:{default(){return[]}},visible:{default(){return e=>!0}},forcedPrompt:{default:!1},addable:{default:!1},removable:{default:!1},editable:{default:!1}},emits:["click","mouseenter","mouseleave","add","remove","edit"],setup(e,{emit:t}){const r=e,s=t,n=(0,H.KR)({currentEditIndex:-1,currentEditValue:""}),a=(0,K.EW)(()=>{const e=[];for(const t of r.data)!0===r.visible(t)&&e.push(t);return e}),i=(0,K.EW)(()=>{let e=r.width?`width:${r.width};`:"";const t=2*re.config.optionsScrollMargin.value+2*re.config.borderSize.value-re.config.optionMargin.value,s=re.config.optionMargin.value+re.config.inputHeight.value;return e+=`min-height:${r.minCount*s+t}px;`,r.data.length>r.maxCount&&(e+=`height:${r.maxCount*s+t}px;`),e}),l=e=>{if(!1===r.arrow)return!1;const t=r.getter.children(e);return t.length>0},o=(e,t)=>{n.value.currentEditIndex=e,n.value.currentEditValue=r.getter.label(t)},u=()=>{n.value.currentEditIndex=-1,n.value.currentEditValue=""},c=()=>{s("edit",n.value.currentEditIndex,n.value.currentEditValue),u()};return(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-options",style:(0,Y.Tr)(i.value)},[(0,K.bF)(Ar,{margin:(0,H.R1)(re).config.optionsScrollMargin.value},{default:(0,K.k6)(()=>[0!==a.value.length&&!e.forcedPrompt||!1!==e.addable?((0,K.uX)(),(0,K.CE)(K.FK,{key:1},[((0,K.uX)(!0),(0,K.CE)(K.FK,null,(0,K.pI)(a.value,(a,i)=>(0,K.RG)(t.$slots,"default",{key:i,option:a,index:i,left:e.left,emit:s},()=>[i===n.value.currentEditIndex?((0,K.uX)(),(0,K.Wv)(os,{key:0,class:"custom-option"},{icon:(0,K.k6)(()=>[(0,K.Lk)("div",{class:"custom-wrapper",onClick:r[1]||(r[1]=(0,G.D$)(()=>{},["stop"]))},[(0,K.Lk)("i",{class:"vyrfont vyr-queren",onClick:c}),(0,K.Lk)("i",{class:"vyrfont vyr-quxiao",onClick:u})])]),default:(0,K.k6)(()=>[(0,K.bF)(Es,{modelValue:n.value.currentEditValue,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value.currentEditValue=e),autofocus:!0},null,8,["modelValue"])]),_:1})):((0,K.uX)(),(0,K.Wv)(os,{key:1,label:e.getter.label(a),value:e.getter.value(a),left:e.left,arrow:l(a),checked:e.checked.includes(e.getter.value(a)),expand:e.expand.includes(e.getter.value(a)),disabled:e.getter.disabled(a),onClick:e=>s("click",a,e),onMouseenter:e=>s("mouseenter",a),onMouseleave:e=>s("mouseleave",a)},(0,K.eX)({_:2},[e.editable||e.removable?{name:"icon",fn:(0,K.k6)(()=>[(0,K.Lk)("div",{class:"custom-wrapper",onClick:r[2]||(r[2]=(0,G.D$)(()=>{},["stop"]))},[e.editable?((0,K.uX)(),(0,K.CE)("i",{key:0,class:"vyrfont vyr-bianji",onClick:e=>o(i,a)},null,8,Ds)):(0,K.Q3)("",!0),e.removable?((0,K.uX)(),(0,K.CE)("i",{key:1,class:"vyrfont vyr-remove",onClick:e=>s("remove",i)},null,8,Vs)):(0,K.Q3)("",!0)])]),key:"0"}:void 0]),1032,["label","value","left","arrow","checked","expand","disabled","onClick","onMouseenter","onMouseleave"]))])),128)),e.addable?((0,K.uX)(),(0,K.Wv)(os,{key:0,value:-1,left:e.left},{default:(0,K.k6)(()=>[(0,K.Lk)("div",{class:"custom-add",onClick:r[3]||(r[3]=(0,G.D$)(e=>s("add"),["stop"]))},[...r[4]||(r[4]=[(0,K.Lk)("i",{class:"vyrfont vyr-add"},null,-1)])])]),_:1},8,["left"])):(0,K.Q3)("",!0)],64)):((0,K.uX)(),(0,K.Wv)(os,{key:0,label:`${(0,H.R1)(je).get(e.forcedPrompt?"options.tips.notFound":"options.tips.notData")}`,value:"",disabled:!0},null,8,["label"]))]),_:3},8,["margin"])],4))}});const $s=(0,ct.A)(As,[["__scopeId","data-v-2948f956"]]);var Ts=$s,Is=Object.defineProperty,Ws=Object.defineProperties,Ls=Object.getOwnPropertyDescriptors,Fs=Object.getOwnPropertySymbols,Us=Object.prototype.hasOwnProperty,Xs=Object.prototype.propertyIsEnumerable,Ns=(e,t,r)=>t in e?Is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qs=(e,t)=>{for(var r in t||(t={}))Us.call(t,r)&&Ns(e,r,t[r]);if(Fs)for(var r of Fs(t))Xs.call(t,r)&&Ns(e,r,t[r]);return e},Bs=(e,t)=>Ws(e,Ls(t));const Qs={class:"select-wrapper"};var Gs=(0,K.pM)({__name:"Select",props:Bs(qs(qs(qs(qs(qs(qs({},dr),mr),kr),vr),Tr),cr),{addable:{default:!1},removable:{default:!1},editable:{default:!1},popoverCard:{default:!1},popoverWidth:{default:"auto"},data:{default(){return[]}}}),emits:["update:modelValue","change","show","close","clear","add","remove","edit"],setup(e,{expose:t,emit:r}){const s=er();Jt((0,H.KR)({validate(){}}));const n=(0,K.rk)("refPopover"),a=r,i=e,l=Lr(i),{curInputWidth:o}=Rr(i),{state:u,slotWidth:c,resize:h,cascaderProvider:d}=Ur(i,n),{curReadonly:p,curClearable:f,curReadonlyClearable:v,showClear:y}=Or(i),{searchState:m,startSearch:g,updateSearch:b,clearSearch:x}=Ir(i,d,l),w={bind:!1,cur:null,triggerResize:()=>{}},k=e=>{w.bind?(M(),w.cur=e,C()):w.cur=e},C=()=>{w.bind=!0,w.cur&&(w.triggerResize=Fr.listen(w.cur,h))},M=()=>{w.bind=!1,w.cur&&Fr.unlisten(w.cur),w.triggerResize=()=>{}},O=e=>{u.value.visible=e,e?(a("show"),C()):(M(),a("close")),s.value.validate(i.modelValue)},P=e=>{!0===u.value.visible&&e.stopPropagation()},R=(0,K.EW)(()=>d.value.getInputValue(i.modelValue,i.data,l)),_=(0,K.EW)(()=>!1===i.searchable||0===d.value.searchOptions.length?i.data:d.value.searchOptions),j=(0,K.EW)(()=>!1===i.searchable||[0].includes(m.value.status)?R.value:m.value.content),z=(0,K.EW)(()=>!1===i.searchable||0===m.value.status||""===R.value?i.placeholder:R.value),S=(...e)=>{a("add",...e)},E=(...e)=>{a("edit",...e)},D=(...e)=>{a("remove",...e)},V=()=>{if(!0===p.value)return u.value.visible=!1;u.value.visible=!0},A=()=>{u.value.visible=!1},$=(e,t)=>{const r=l.value(e);i.modelValue!==r&&(a("update:modelValue",r),a("change",r,e)),t.stopPropagation(),A()},T=()=>{a("update:modelValue",""),a("change",""),a("clear",""),A(),!1===u.value.visible&&s.value.validate("")};return t({show:V,close:A,resize:()=>w.triggerResize()}),(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-select",style:(0,Y.Tr)(`width:${(0,H.R1)(o)};`)},[(0,K.bF)(ts,{ref_key:"refPopover",ref:n,"model-value":(0,H.R1)(u).visible,placement:t.placement,"popover-class":`vyr-select-popover ${t.popoverClass}`,disabled:(0,H.R1)(p),"popover-card":e.popoverCard,arrow:t.arrow,offset:t.offset,"onUpdate:modelValue":O,onTriggerChange:k},{trigger:(0,K.k6)(()=>[(0,K.RG)(t.$slots,"trigger",{},()=>[(0,K.Lk)("div",Qs,[(0,K.bF)(Es,{"model-value":j.value,readonly:(0,H.R1)(p),clearable:(0,H.R1)(f),"readonly-clearable":(0,H.R1)(v),placeholder:z.value,width:"100%",draggable:t.draggable,dragkey:t.dragkey,onFocus:(0,H.R1)(g),onBlur:(0,H.R1)(x),"onUpdate:modelValue":(0,H.R1)(b),onClick:P,onClear:(0,G.D$)(T,["stop"])},{icon:(0,K.k6)(e=>[(0,H.R1)(y)(e.clearable,(0,H.R1)(p),(0,H.R1)(v),j.value)?((0,K.uX)(),(0,K.CE)("i",{key:0,class:"vyrfont vyr-shanchu vyr-input-icon",onClick:(0,G.D$)(T,["stop"])})):((0,K.uX)(),(0,K.CE)("i",{key:1,class:(0,Y.C4)(["vyrfont vyr-arrow-down-bold vyr-input-icon",{active:(0,H.R1)(u).visible}])},null,2))]),_:1},8,["model-value","readonly","clearable","readonly-clearable","placeholder","draggable","dragkey","onFocus","onBlur","onUpdate:modelValue"])])])]),default:(0,K.k6)(()=>[(0,K.RG)(t.$slots,"default",{width:(0,H.R1)(c),forcedPrompt:(0,H.R1)(m).forcedPrompt},()=>[(0,K.bF)(Ts,{data:_.value,getter:(0,H.R1)(l),addable:e.addable,removable:e.removable,editable:e.editable,"forced-prompt":(0,H.R1)(m).forcedPrompt,checked:[t.modelValue],width:(0,H.R1)(c),onClick:$,onAdd:S,onRemove:D,onEdit:E},null,8,["data","getter","addable","removable","editable","forced-prompt","checked","width"])])]),_:3},8,["model-value","placement","popover-class","disabled","popover-card","arrow","offset"])],4))}});const Ks=(0,ct.A)(Gs,[["__scopeId","data-v-8606c5fe"]]);var Ys=Ks,Hs=Object.defineProperty,Zs=Object.defineProperties,Js=Object.getOwnPropertyDescriptors,en=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,sn=(e,t,r)=>t in e?Hs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nn=(e,t)=>{for(var r in t||(t={}))tn.call(t,r)&&sn(e,r,t[r]);if(en)for(var r of en(t))rn.call(t,r)&&sn(e,r,t[r]);return e},an=(e,t)=>Zs(e,Js(t)),ln=(0,K.pM)({__name:"Cascader",props:an(nn(nn(nn(nn(nn(nn({},dr),kr),Tr),vr),mr),cr),{popoverWidth:{default:"auto"},maxCount:{default:5},minCount:{default:1},data:{default(){return[]}},visible:{default(){return e=>!0}}}),emits:["update:modelValue","change","show","close"],setup(e,{expose:t,emit:r}){const s=e=>{c.value.left="end"!==e.position[1]},n=(0,H.KR)({getInputValue:Ze,getPopoverLayout:s,getSearchOptions:et,searchOptions:[]});Vt(n);const a=Xt();Ut((0,H.KR)(an(nn({},a.value),{useFlexLayout:!0})));const i=e,l=Lr(i),o=(0,K.rk)("refSelector"),u=r,c=(0,H.KR)({renderOption:"",checkedOption:"",left:!0}),{curReadonly:h,curClearable:d,curReadonlyClearable:p}=Or(i),{curInputWidth:f}=Rr(i),v=(0,K.EW)(()=>{const e=[],t=Je(i.data,c.value.checkedOption,l);for(const r of t)e.push(l.value(r));return e}),y=(0,K.EW)(()=>{const e=[],t=Je(i.data,c.value.renderOption,l);for(const r of t){const t=l.children(r);0!==t.length&&e.push(t)}return e.push(i.data),e}),m=(0,K.EW)(()=>{const e=[...y.value];return c.value.left?e.reverse():e}),g=(0,K.EW)(()=>0===n.value.searchOptions.length?m.value:[n.value.searchOptions]),b=(0,K.EW)(()=>{let e=i.minCount;for(const t of g.value)e=Math.max(t.length,e);return Math.min(e,i.maxCount)});(0,K.wB)(g,()=>{var e;return null==(e=o.value)?void 0:e.resize()});const x=()=>{c.value.renderOption=i.modelValue,c.value.checkedOption=i.modelValue,u("show")},w=(e,t)=>{t.stopPropagation();const r=l.children(e),s=0===r.length;s?C(e,t):k(e,t)},k=(e,t)=>{const r=l.value(e);c.value.renderOption=r,c.value.checkedOption=r},C=(e,t)=>{var r;if(i.readonly)return;null==(r=o.value)||r.close();const s=l.value(e);i.modelValue!==s&&(u("update:modelValue",s),u("change",e,t))},M={show:()=>{var e;return null==(e=o.value)?void 0:e.show()},close:()=>{var e;return null==(e=o.value)?void 0:e.close()}};return t(M),(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-cascader",style:(0,Y.Tr)(`width:${(0,H.R1)(f)};`)},[(0,K.bF)(Ys,{ref_key:"refSelector",ref:o,"popover-class":"vyr-cascader-popover","popover-card":!1,placement:t.placement,"model-value":t.modelValue,placeholder:t.placeholder,data:e.data,getter:(0,H.R1)(l),arrow:t.arrow,offset:t.offset,readonly:(0,H.R1)(h),clearable:(0,H.R1)(d),"readonly-clearable":(0,H.R1)(p),searchable:t.searchable,width:"100%","popover-width":e.popoverWidth,onShow:x,onClose:r[0]||(r[0]=e=>u("close")),onClear:r[1]||(r[1]=e=>u("update:modelValue",""))},{trigger:(0,K.k6)(()=>[(0,K.RG)(t.$slots,"trigger")]),default:(0,K.k6)(t=>[((0,K.uX)(!0),(0,K.CE)(K.FK,null,(0,K.pI)(g.value,(r,s)=>((0,K.uX)(),(0,K.Wv)(Ts,{key:s,data:r,getter:(0,H.R1)(l),"forced-prompt":t.forcedPrompt,width:t.width,"max-count":e.maxCount,"min-count":b.value,checked:v.value,left:c.value.left,visible:e.visible,onClick:w},null,8,["data","getter","forced-prompt","width","max-count","min-count","checked","left","visible"]))),128))]),_:3},8,["placement","model-value","placeholder","data","getter","arrow","offset","readonly","clearable","readonly-clearable","searchable","popover-width"])],4))}});const on=(0,ct.A)(ln,[["__scopeId","data-v-62045c9e"]]);var un=on,cn=Object.defineProperty,hn=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,yn=(e,t,r)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mn=(e,t)=>{for(var r in t||(t={}))fn.call(t,r)&&yn(e,r,t[r]);if(pn)for(var r of pn(t))vn.call(t,r)&&yn(e,r,t[r]);return e},gn=(e,t)=>hn(e,dn(t));const bn={class:"checked-box"},xn={key:0,class:"vyrfont vyr-checked-multiple"},wn={key:0,class:"vyrfont vyr-checked-all"},kn={key:0,class:"checked-body"};var Cn=(0,K.pM)({__name:"Checked",props:gn(mn({},hr),{readonly:{default:null},disabled:{default:!1},multiple:{default:!1}}),emits:["update:modelValue","change"],setup(e,{emit:t}){const r=e,s=t,n=Mt(),a=(0,K.EW)(()=>null===r.readonly?n.value.readonly:r.readonly),i=St(),l=(0,K.EW)(()=>null===i?r.modelValue===r.value:i.value.checked(r.value)),o=()=>{if(!0!==a.value){if(null===i){const e=!r.modelValue;return s("update:modelValue",e),void s("change",e)}i.value.change(r.value)}};return(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:(0,Y.C4)(["vyr-checked",{disabled:e.disabled}]),onClick:o},[(0,K.Lk)("div",bn,[(0,K.Lk)("i",{class:(0,Y.C4)(["vyrfont vyr-checked-no",{active:e.multiple||l.value}])},null,2),e.multiple?((0,K.uX)(),(0,K.CE)("i",xn)):((0,K.uX)(),(0,K.CE)(K.FK,{key:1},[l.value?((0,K.uX)(),(0,K.CE)("i",wn)):(0,K.Q3)("",!0)],64))]),t.$slots.default?((0,K.uX)(),(0,K.CE)("div",kn,[(0,K.RG)(t.$slots,"default")])):(0,K.Q3)("",!0)],2))}});const Mn=(0,ct.A)(Cn,[["__scopeId","data-v-9a057b0c"]]);var On=Mn;const Pn={class:"vyr-checked-group"};var Rn=(0,K.pM)({__name:"CheckedGroup",props:{modelValue:{default:[]},data:{default(){return[]}},multiple:{default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,s=t,n=e=>{let t;r.multiple?(t=[...r.modelValue],oe.auto(t,e)):t=e,s("update:modelValue",t)},a=e=>r.multiple?r.modelValue.includes(e):r.modelValue===e;return zt((0,H.KR)({change:n,checked:a})),(t,r)=>((0,K.uX)(),(0,K.CE)("div",Pn,[(0,K.RG)(t.$slots,"default",{},()=>[((0,K.uX)(!0),(0,K.CE)(K.FK,null,(0,K.pI)(e.data,(e,t)=>((0,K.uX)(),(0,K.Wv)(On,{key:t,value:e.value},{default:(0,K.k6)(()=>[(0,K.eW)((0,Y.v_)(e.label),1)]),_:2},1032,["value"]))),128))])]))}});const _n=(0,ct.A)(Rn,[["__scopeId","data-v-5a615ef9"]]);var jn=_n;var zn=Object.defineProperty,Sn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,$n=(e,t,r)=>t in e?zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tn=(e,t)=>{for(var r in t||(t={}))Vn.call(t,r)&&$n(e,r,t[r]);if(Dn)for(var r of Dn(t))An.call(t,r)&&$n(e,r,t[r]);return e},In=(e,t)=>Sn(e,En(t));const Wn={class:"vyr-picker-border"},Ln={class:"color-picker"};var Fn=(0,K.pM)(In(Tn({},{inheritAttrs:!1}),{__name:"ColorPicker",props:{modelValue:{default:""},readonly:{default:null},width:{default:"auto"},opacity:{default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,s=Mt(),n=(0,K.EW)(()=>null===r.readonly?s.value.readonly:r.readonly),a=t,i=(0,H.KR)({color:"",event:new MouseEvent(""),width:280,height:180,panel:{top:0,left:0,saturation:0,value:0,started:!1,xStart:0,xEnd:0,yStart:0,yEnd:0},hue:{left:0,value:0,started:!1,start:0,end:0},opacity:1,next:!1}),l=()=>{if(!r.modelValue||r.modelValue===i.value.color)return;i.value.color=r.modelValue;const e=new ce(r.modelValue).toHsv();i.value.hue.left=Math.round(e.h/360*i.value.width),i.value.hue.value=e.h,i.value.panel.saturation=e.s,i.value.panel.left=Math.round(e.s*i.value.width),i.value.panel.value=e.v,i.value.panel.top=Math.round((1-e.v)*i.value.height)};(0,K.wB)(()=>r.modelValue,l,{immediate:!0});const o=()=>{const e=new ce({h:i.value.hue.value,s:i.value.panel.saturation,v:i.value.panel.value}).toHexString();i.value.color=e,a("update:modelValue",e)},u=e=>{!0!==n.value&&(c(e),h(e))},c=e=>{if(!0===n.value)return;i.value.hue.started=!1,i.value.panel.started=!0;const t=e.target.parentElement,r=null==t?void 0:t.getBoundingClientRect();i.value.panel.xStart=r.left,i.value.panel.xEnd=r.right,i.value.panel.yStart=r.top,i.value.panel.yEnd=r.bottom},h=e=>{let t=Math.min(e.clientX,i.value.panel.xEnd);t=Math.max(i.value.panel.xStart,t),i.value.panel.left=t-i.value.panel.xStart;let r=Math.min(e.clientY,i.value.panel.yEnd);r=Math.max(i.value.panel.yStart,r),i.value.panel.top=r-i.value.panel.yStart,d()},d=()=>{i.value.panel.saturation=i.value.panel.left/i.value.width,i.value.panel.value=1-i.value.panel.top/i.value.height,o()},p=e=>{!0!==n.value&&(f(e),v(e))},f=e=>{if(!0===n.value)return;i.value.panel.started=!1,i.value.hue.started=!0;const t=e.target.parentElement,r=null==t?void 0:t.getBoundingClientRect();i.value.hue.start=r.left,i.value.hue.end=r.right},v=e=>{let t=Math.min(e.clientX,i.value.hue.end);t=Math.max(i.value.hue.start,t),i.value.hue.left=t-i.value.hue.start,y()},y=()=>{i.value.hue.value=Math.round(i.value.hue.left/i.value.width*360),o()},m=e=>{i.value.panel.started=!1,i.value.hue.started=!1},g=e=>{i.value.event=e,!0!==i.value.next&&(i.value.next=!0,requestAnimationFrame(()=>{!0===i.value.hue.started&&v(i.value.event),!0===i.value.panel.started&&h(i.value.event),i.value.next=!1}))};window.addEventListener("mousemove",g),window.addEventListener("mouseup",m),window.addEventListener("mouseleave",m);const b=()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",m),window.removeEventListener("mouseleave",m)};return(0,K.xo)(b),(t,r)=>((0,K.uX)(),(0,K.Wv)(ts,{"popover-class":"color-picker-popover",trigger:"click",disabled:n.value},{trigger:(0,K.k6)(()=>[(0,K.Lk)("div",(0,K.v6)({class:["vyr-color-picker",[e.width]]},t.$attrs),[(0,K.Lk)("div",Wn,[(0,K.Lk)("div",{class:"color-value",style:(0,Y.Tr)(i.value.color?`background:${i.value.color};`:"")},null,4)])],16)]),default:(0,K.k6)(()=>[(0,K.Lk)("div",Ln,[(0,K.Lk)("div",{class:"picker-wrapper",style:(0,Y.Tr)(`width:${i.value.width}px;`)},[(0,K.Lk)("div",{class:(0,Y.C4)(["picker-panel",{active:i.value.panel.started}]),style:(0,Y.Tr)(`height:${i.value.height}px;background:hsl(${i.value.hue.value},100%,50%);`),onMousedown:(0,G.D$)(u,["prevent"])},[r[0]||(r[0]=(0,K.Lk)("div",{class:"picker-panel-white"},null,-1)),r[1]||(r[1]=(0,K.Lk)("div",{class:"picker-panel-black"},null,-1)),(0,K.Lk)("div",{class:"picker-cursor",style:(0,Y.Tr)(`top:${i.value.panel.top}px;left:${i.value.panel.left}px;`),onMousedown:c},null,36)],38),(0,K.Lk)("div",{class:(0,Y.C4)(["picker-bar",{active:i.value.hue.started}]),onMousedown:(0,G.D$)(p,["prevent"])},[(0,K.Lk)("div",{class:"picker-hue",style:(0,Y.Tr)(`left:${i.value.hue.left}px;`),onMousedown:f},null,36)],34)],4)])]),_:1},8,["disabled"]))}}));const Un=(0,ct.A)(Fn,[["__scopeId","data-v-7fed5fd6"]]);var Xn=Un,Nn=Object.defineProperty,qn=Object.defineProperties,Bn=Object.getOwnPropertyDescriptors,Qn=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Yn=(e,t,r)=>t in e?Nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hn=(e,t)=>{for(var r in t||(t={}))Gn.call(t,r)&&Yn(e,r,t[r]);if(Qn)for(var r of Qn(t))Kn.call(t,r)&&Yn(e,r,t[r]);return e},Zn=(e,t)=>qn(e,Bn(t));const Jn={class:"vyr-dropdown"},ea={key:1,class:"vyr-dropdown-trigger"},ta={class:"trigger-label"},ra={key:0,class:"trigger-arrow"};Zn(Hn(Hn(Hn(Hn(Hn({},dr),mr),kr),vr),cr),{disabled:{default:!1},popoverCard:{default:!1},popoverWidth:{default:"auto"},custom:{default:!1},removable:{default:!1},data:{default(){return[]}}});var sa=Object.defineProperty,na=Object.getOwnPropertySymbols,aa=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,la=(e,t,r)=>t in e?sa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oa=(e,t)=>{for(var r in t||(t={}))aa.call(t,r)&&la(e,r,t[r]);if(na)for(var r of na(t))ia.call(t,r)&&la(e,r,t[r]);return e},ua=(0,K.pM)({__name:"Mask",props:oa({maskId:{},layer:{default:-1}},xr),emits:["close"],setup(e,{emit:t}){const r=e,s=(0,K.EW)(()=>-1===r.layer?"":`z-index:${r.layer};`),n=t,a=()=>{be(r.maskId),n("close")};return(t,r)=>((0,K.uX)(),(0,K.Wv)(K.Im,{to:"body"},[(0,K.bF)(G.eB,{name:"vyr-transition",onBeforeEnter:r[1]||(r[1]=t=>(0,H.R1)(ge)(e.maskId)),onAfterLeave:a},{default:(0,K.k6)(()=>[t.visible?((0,K.uX)(),(0,K.CE)(K.FK,{key:0},[t.mask?((0,K.uX)(),(0,K.CE)("div",{key:0,class:"vyr-mask",style:(0,Y.Tr)(s.value),onContextmenu:r[0]||(r[0]=(0,G.D$)(()=>{},["prevent","stop"]))},[(0,K.RG)(t.$slots,"default",{layer:s.value})],36)):(0,K.RG)(t.$slots,"default",{key:1,layer:s.value})],64)):(0,K.Q3)("",!0)]),_:3})]))}});const ca=(0,ct.A)(ua,[["__scopeId","data-v-1253957e"]]);var ha=ca,da=Object.defineProperty,pa=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable,ga=(e,t,r)=>t in e?da(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ba=(e,t)=>{for(var r in t||(t={}))ya.call(t,r)&&ga(e,r,t[r]);if(va)for(var r of va(t))ma.call(t,r)&&ga(e,r,t[r]);return e},xa=(e,t)=>pa(e,fa(t));const wa={class:"header-title"};var ka=(0,K.pM)(xa(ba({},{inheritAttrs:!1}),{__name:"Dialog",props:ba({modelValue:{default:!1},title:{default:""},draggable:{default:!0},closeable:{default:!0},position:{default(){return{left:"50%",top:"50%"}}}},wr),emits:["update:modelValue","active","close"],setup(e,{emit:t}){const r=e,s=t,n=(0,K.rk)("refDialog"),a=()=>{i.value.position=`left:${r.position.left};top:${r.position.top};`},i=(0,H.KR)({id:me(),activeDialog:!1,offset:{x:0,y:0},height:r.height,position:"",moving:!1}),l=(0,K.EW)(()=>we(i.value.id)),o=(0,K.EW)(()=>ke(i.value.id,l.value)),u=(0,K.EW)(()=>{const e=`\n width:${r.width};\n height:${i.value.height};\n max-height:${r.maxHeight};\n ${i.value.position};\n `;return e}),c={listener:new fe,layer:o};qt(c);const h=()=>{s("update:modelValue",!1)},d=()=>{xe(i.value.id),s("active")},p=e=>{if(!1===r.draggable)return;if(!n.value)return;const t=n.value.getBoundingClientRect();i.value.offset.x=e.clientX-t.left-t.width/2,i.value.offset.y=e.clientY-t.top-t.height/2,i.value.activeDialog=!0},f=e=>{!1!==i.value.activeDialog&&!0!==i.value.moving&&(i.value.moving=!0,requestAnimationFrame(()=>{const t=e.clientX-i.value.offset.x,r=e.clientY-i.value.offset.y;i.value.position=`left:${t}px;top:${r}px;`,i.value.moving=!1,c.listener.trigger("move",{})}))},v=()=>{i.value.activeDialog=!1},y=e=>{"Escape"===e.code&&h()},m=()=>{!0===r.modelValue?(Be.addEventListener("mousemove",f),Be.addEventListener("mouseup",v,!1),Be.addEventListener("mouseleave",v),window.addEventListener("keydown",y),""===i.value.position&&(0,K.dY)(a),d()):(Be.removeEventListener("mousemove",f),Be.removeEventListener("mouseup",v),Be.removeEventListener("mouseleave",v),window.removeEventListener("keydown",y))};(0,K.wB)(()=>r.modelValue,m,{immediate:!0});const g=(0,K.EW)(()=>Ge(r.maxHeight)),b=()=>{if(!n.value)return;const e=Ke(n.value);i.value.height=e>=g.value?g.value+"px":r.height};return(t,r)=>((0,K.uX)(),(0,K.Wv)(ha,{"mask-id":i.value.id,layer:o.value,visible:e.modelValue,mask:t.mask,onClose:r[2]||(r[2]=e=>s("close"))},{default:(0,K.k6)(({layer:s})=>[(0,K.Lk)("div",{ref_key:"refDialog",ref:n,class:"vyr-dialog",style:(0,Y.Tr)(`${u.value};${s}`),onContextmenu:r[1]||(r[1]=(0,G.D$)(()=>{},["prevent","stop"])),onMousedown:d},[(0,K.Lk)("div",{class:"dialog-header",style:(0,Y.Tr)(`height:${t.header}px;`),onMousedown:p},[(0,K.Lk)("div",wa,[(0,K.RG)(t.$slots,"title",{},()=>[(0,K.eW)((0,Y.v_)(e.title),1)])]),e.closeable?((0,K.uX)(),(0,K.CE)("i",{key:0,class:"vyrfont vyr-close header-close",onClick:h,onMousedown:r[0]||(r[0]=(0,G.D$)(()=>{},["stop"]))},null,32)):(0,K.Q3)("",!0)],36),(0,K.Lk)("div",{class:"dialog-body",style:(0,Y.Tr)(`height:calc(100% - ${t.$slots.footer?t.header+t.footer:t.header}px);`)},[(0,K.RG)(t.$slots,"scroll",{},()=>[(0,K.bF)(Ar,{margin:t.margin,padding:t.padding,onResize:b},{default:(0,K.k6)(()=>[(0,K.RG)(t.$slots,"default")]),_:3},8,["margin","padding"])])],4),t.$slots.footer?((0,K.uX)(),(0,K.CE)("div",{key:0,class:"dialog-footer",style:(0,Y.Tr)(`height:${t.footer}px;`)},[(0,K.RG)(t.$slots,"footer")],4)):(0,K.Q3)("",!0),(0,K.RG)(t.$slots,"dialog")],36)]),_:3},8,["mask-id","layer","visible","mask"]))}}));const Ca=(0,ct.A)(ka,[["__scopeId","data-v-9c5dd522"]]);var Ma=Ca;var Oa=r(96408),Pa=Object.defineProperty,Ra=Object.getOwnPropertySymbols,_a=Object.prototype.hasOwnProperty,ja=Object.prototype.propertyIsEnumerable,za=(e,t,r)=>t in e?Pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sa=(e,t)=>{for(var r in t||(t={}))_a.call(t,r)&&za(e,r,t[r]);if(Ra)for(var r of Ra(t))ja.call(t,r)&&za(e,r,t[r]);return e},Ea=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Da={class:"vyr-form"};var Va=(0,K.pM)({__name:"Form",props:{data:{default(){return{}}},rules:{default(){return[]}},rulesOptions:{default(){return{tips:!0,icon:!0}}}},setup(e,{expose:t}){const r=e,s=e=>{oe.insert(l.value.rules,e)},n=e=>{oe.remove(l.value.rules,e)},a=(e,...t)=>Ea(null,[e,...t],function*(e,t=r.data,s){let n=!0;const a=new Oa.A(e);return yield a.validate(t,s).catch(({fields:e})=>{o(e),n=!1}),n}),i=(e,t)=>Ea(null,null,function*(){const s={[e]:r.rules[e]||{}},n={[e]:t},i=yield a(s,n);return!0===i&&delete l.value.validateCollection[e],i}),l=(0,H.KR)({rules:[],validateCollection:{},options:Sa(Sa({},{tips:!0,icon:!0}),r.rulesOptions),addRule:s,removeRule:n,validateItem:i});Kt(l);const o=e=>{for(const t of Object.keys(e))l.value.validateCollection[t]=e[t][0].message},u=e=>Ea(null,null,function*(){let t=0;const s={};for(const e of l.value.rules){const n=r.rules[e]||{};void 0!==e&&(s[e]=n,t++)}if(0===t)return!0;const n=yield a(s,r.data,e);return!0===n&&(l.value.validateCollection={}),n}),c=()=>l.value.validateCollection={};return t({validator:u,reset:c}),(e,t)=>((0,K.uX)(),(0,K.CE)("div",Da,[(0,K.RG)(e.$slots,"default")]))}});const Aa=(0,ct.A)(Va,[["__scopeId","data-v-146ecc23"]]);var $a=Aa,Ta=Object.defineProperty,Ia=Object.defineProperties,Wa=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,Xa=(e,t,r)=>t in e?Ta(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Na=(e,t)=>{for(var r in t||(t={}))Fa.call(t,r)&&Xa(e,r,t[r]);if(La)for(var r of La(t))Ua.call(t,r)&&Xa(e,r,t[r]);return e},qa=(e,t)=>Ia(e,Wa(t)),Ba=(0,K.pM)({__name:"InputNumber",props:qa(Na(Na(Na({},dr),vr),yr),{autofocus:{default:!1},step:{default:"auto"},min:{default:null},max:{default:null},allowNull:{default:!0},defaultValue:{default:0}}),emits:["update:modelValue","blur"],setup(e,{emit:t}){const r=e,s=(0,K.rk)("refInput"),n=(0,H.KR)({input:""}),a=t,{curReadonly:i,curClearable:l}=Or(r),{curInputWidth:o}=Rr(r),u=e=>{const t=e.match(qe);return null===t?"":t[0]},c=e=>{const t=parseFloat(e);return isNaN(t)?0:t},h=()=>{var e;if(""===r.modelValue)n.value.input="";else{const t=null!=(e=r.modelValue)?e:"";n.value.input=c(u(t.toString())),a("update:modelValue",n.value.input)}};(0,K.wB)(()=>r.modelValue,h,{immediate:!0});const d=e=>{var t;const r=u(e);null==(t=s.value)||t.setValue(r),n.value.input=r},p=e=>{a("update:modelValue",e),a("blur",e)},f=()=>{var e;if(""===n.value.input){if(!0===r.allowNull)return p("");n.value.input=r.defaultValue}let t=c(n.value.input.toString());if("auto"!==r.step){const e=Math.round(t/r.step);t=e*r.step}null!==r.max&&(t=Math.min(r.max,t)),null!==r.min&&(t=Math.max(r.min,t)),null==(e=s.value)||e.setValue(t.toString()),p(t)},v=()=>{a("update:modelValue","")};return(t,r)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-input-number",style:(0,Y.Tr)(`width:${(0,H.R1)(o)};`)},[(0,K.bF)(Es,{ref_key:"refInput",ref:s,"model-value":n.value.input,placeholder:t.placeholder,autofocus:e.autofocus,readonly:(0,H.R1)(i),clearable:(0,H.R1)(l),width:(0,H.R1)(o),"onUpdate:modelValue":d,onBlur:f,onClear:v},null,8,["model-value","placeholder","autofocus","readonly","clearable","width"])],4))}});const Qa=(0,ct.A)(Ba,[["__scopeId","data-v-b77213b2"]]);var Ga=Qa,Ka=Object.defineProperty,Ya=Object.defineProperties,Ha=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ti=(e,t,r)=>t in e?Ka(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ri=(e,t)=>{for(var r in t||(t={}))Ja.call(t,r)&&ti(e,r,t[r]);if(Za)for(var r of Za(t))ei.call(t,r)&&ti(e,r,t[r]);return e},si=(e,t)=>Ya(e,Ha(t));const ni={class:"vyr-label"},ai={key:0,class:"label-error"};var ii=(0,K.pM)({__name:"Label",props:si(ri({},fr),{label:{default:""},rule:{default:""},verticalAlign:{default:""}}),setup(e){const t=e,r=Mt(),s=(0,K.EW)(()=>{const e=null===t.width?r.value.label.width:t.width;return e>1?`${e}px`:100*e+"%"}),n=(0,K.EW)(()=>null===t.align?r.value.label.align:t.align),a=Yt(),i=(e,t)=>{void 0!==t&&a.value.removeRule(t),""!==e&&a.value.addRule(e)};(0,K.wB)(()=>t.rule,i,{immediate:!0});const l=(0,K.EW)(()=>{const e=a.value.validateCollection[t.rule];return void 0!==e&&e}),o=(0,K.EW)(()=>!1!==l.value),u=e=>{""!==t.rule&&a.value.validateItem(t.rule,e)};return Jt((0,H.KR)({validate:u})),(t,r)=>((0,K.uX)(),(0,K.CE)("div",ni,["0%"!==s.value?((0,K.uX)(),(0,K.CE)("div",{key:0,class:(0,Y.C4)(["label-header",n.value]),style:(0,Y.Tr)(`width:${s.value};`)},[(0,H.R1)(a).rules.length&&(0,H.R1)(a).options.icon?((0,K.uX)(),(0,K.CE)("i",{key:0,class:"vyrfont vyr-bitian",style:(0,Y.Tr)("opacity:"+(e.rule&&(0,H.R1)(a).options.icon?"1":"0"))},null,4)):(0,K.Q3)("",!0),(0,K.eW)(" "+(0,Y.v_)(e.label),1)],6)):(0,K.Q3)("",!0),(0,K.Lk)("div",{class:(0,Y.C4)(["label-body",{error:o.value}]),style:(0,Y.Tr)(`width:calc(100% - ${s.value});${"center"===e.verticalAlign?"display:flex;":""}`)},[(0,K.RG)(t.$slots,"default"),(0,K.bF)(G.eB,{name:"vyr-transition"},{default:(0,K.k6)(()=>[o.value&&(0,H.R1)(a).options.tips?((0,K.uX)(),(0,K.CE)("div",ai,(0,Y.v_)(l.value),1)):(0,K.Q3)("",!0)]),_:1})],6)]))}});const li=(0,ct.A)(ii,[["__scopeId","data-v-7b486850"]]);var oi=li,ui=(0,K.pM)({__name:"Provider",props:Cr,setup(e){const t=e;return Pt((0,K.EW)(()=>t)),(e,t)=>(0,K.RG)(e.$slots,"default")}});const ci=ui;var hi=ci,di=(0,K.pM)({__name:"Row",props:pr,setup(e){const t=e,r=Mt(),s=(0,K.EW)(()=>null===t.gutter?r.value.row.gutter:t.gutter),n=(0,H.KR)({gutter:s,count:0});_t(n);const a=(0,K.EW)(()=>{const e=null===t.margin?r.value.row.margin:t.margin,a=zr(e),i=0===n.value.count?0:-s.value;return a[1]=i,a[3]=i,jr(a,"margin")});return(e,t)=>((0,K.uX)(),(0,K.CE)("div",{class:"vyr-row",style:(0,Y.Tr)(a.value)},[(0,K.RG)(e.$slots,"default")],4))}});const pi=(0,ct.A)(di,[["__scopeId","data-v-8b1b0898"]]);var fi=pi;const vi=(e,t)=>{const r=(0,H.KR)({id:0,value:"",type:"insert"}),s=()=>{r.value.value="",r.value.type="insert"},n=(t,r)=>{!1!==e.draggable&&0===r.button&&gs.start(t,e.draggable,e.getter.label(t),r)},a=(t,n)=>{!1!==gs.enabled&&!1!==e.draggable&&(clearTimeout(r.value.id),gs.end(t,e.draggable,r.value.type),s())},i=(s,n)=>{if(!1===gs.enabled||!1===e.draggable)return;r.value.id=$r(()=>t.value.handleExpand(s),1e3);const a=e.draggable,i=e=>{var i;if(!(n.target instanceof Element)||!gs.dragData)return;const l=n.target.getBoundingClientRect(),o=e.clientY-l.top,u=o/l.height,c=null!=(i=t.value.getAdjacencies(gs.dragData,s))?i:0;r.value.type=u<.3?1===c?"insert":"insertBefore":u>.7?-1===c?"insert":"insertAfter":"insert",r.value.type=gs.limit(s,a,r.value.type)};r.value.value=gs.enter(s,a,i,n)?e.getter.value(s):""},l=(t,n)=>{!1!==gs.enabled&&!1!==e.draggable&&(clearTimeout(r.value.id),gs.leave(t,e.draggable),s())};return{drag:r,mousedown:n,mouseup:a,mouseenter:i,mouseleave:l}};var yi=Object.defineProperty,mi=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable,xi=(e,t,r)=>t in e?yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wi=(e,t)=>{for(var r in t||(t={}))gi.call(t,r)&&xi(e,r,t[r]);if(mi)for(var r of mi(t))bi.call(t,r)&&xi(e,r,t[r]);return e};const ki={key:0,class:"tree-label"},Ci={key:1,class:"tree-label"},Mi={class:"label-text"},Oi={class:"tree-label"};var Pi=(0,K.pM)({__name:"SubTree",props:wi({layer:{default:0},line:{default:!1},expand:{default(){return[]}},checked:{default(){return[]}},icon:{default:"vyr-arrow-down-bold"},getter:{default:()=>Wr}},gr),setup(e){const t=Wt(),r=e,s=(0,K.EW)(()=>{const e=[];for(const t of r.data)r.visible(t)&&e.push(t);return e}),{drag:n,mousedown:a,mouseup:i,mouseenter:l,mouseleave:o}=vi(r,t),u=e=>{const t={"modify-tree-item":h(e),draggable:n.value.value===r.getter.value(e),"after-draggable":"insertAfter"===n.value.type,"before-draggable":"insertBefore"===n.value.type};return t},c=e=>!1!==r.visible(e)&&("close"!==r.modify&&r.modifyValue===r.getter.value(e)||!!(r.expand.includes(r.getter.value(e))&&r.getter.children(e).length>0)),h=e=>"edit"===r.modify&&r.modifyValue===r.getter.value(e),d=e=>"add"===r.modify&&r.modifyValue===r.getter.value(e),p=(e,n)=>{if(!0===r.multiple&&!0===n.shiftKey&&r.checked.length>0){const n=r.checked[0];let a=s.value.find(e=>r.getter.value(e)===n);if(a){const r=s.value.indexOf(a),n=s.value.indexOf(e),i=Math.min(r,n),l=Math.max(r,n),o=[];for(let e=i;e<=l;e++)o.push(s.value[e]);return void t.value.handleChange(o)}}t.value.handleClick(e,n)};return(r,n)=>{const f=(0,K.g2)("sub-tree",!0);return(0,K.uX)(!0),(0,K.CE)(K.FK,null,(0,K.pI)(s.value,(s,n)=>((0,K.uX)(),(0,K.CE)("div",{key:n,class:"vyr-sub-tree"},[s?((0,K.uX)(),(0,K.Wv)(os,{key:0,"data-vyr-tree":e.getter.value(s),class:(0,Y.C4)(u(s)),label:e.getter.label(s),value:e.getter.value(s),disabled:e.getter.disabled(s),warning:r.warning(s),checked:e.checked.includes(e.getter.value(s)),onClick:e=>p(s,e),onMousedown:e=>(0,H.R1)(a)(s,e),onMouseup:e=>(0,H.R1)(i)(s,e),onMouseenter:e=>(0,H.R1)(l)(s,e),onMouseleave:e=>(0,H.R1)(o)(s,e),onRightClick:e=>(0,H.R1)(t).handleRightClick(s,e)},{default:(0,K.k6)(()=>[(0,K.Lk)("div",{class:"sub-tree-item",style:(0,Y.Tr)(`padding-left:${10*e.layer}px;`)},[(0,K.Lk)("div",{class:(0,Y.C4)(["tree-arrow",{active:e.expand.includes(e.getter.value(s))}])},[e.getter.arrow(s)?((0,K.uX)(),(0,K.CE)("i",{key:0,class:(0,Y.C4)(["vyrfont",`${e.icon}`])},null,2)):(0,K.Q3)("",!0)],2),h(s)?((0,K.uX)(),(0,K.CE)("div",ki,[(0,K.bF)(Es,{class:"modify","model-value":e.getter.label(s),autofocus:!0,onBlur:e=>(0,H.R1)(t).handleModify(e,s)},null,8,["model-value","onBlur"])])):((0,K.uX)(),(0,K.CE)("div",Ci,[(0,K.RG)(r.$slots,"default",{item:s,active:e.expand.includes(e.getter.value(s))},()=>[(0,K.Lk)("div",Mi,(0,Y.v_)(e.getter.label(s)),1)])]))],4)]),_:2},1032,["data-vyr-tree","class","label","value","disabled","warning","checked","onClick","onMousedown","onMouseup","onMouseenter","onMouseleave","onRightClick"])):(0,K.Q3)("",!0),d(s)?((0,K.uX)(),(0,K.Wv)(os,{key:1,class:"modify-tree-item","data-vyr-tree":e.getter.value(s)},{default:(0,K.k6)(()=>[(0,K.Lk)("div",{class:"sub-tree-item",style:(0,Y.Tr)(`padding-left:${10*(e.layer+1)}px;`)},[(0,K.Lk)("div",{class:(0,Y.C4)(["tree-arrow",{active:e.expand.includes(e.getter.value(s))}])},null,2),(0,K.Lk)("div",Oi,[(0,K.bF)(Es,{class:"modify",autofocus:!0,onBlur:e=>(0,H.R1)(t).handleModify(e,s)},null,8,["onBlur"])])],4)]),_:2},1032,["data-vyr-tree"])):(0,K.Q3)("",!0),c(s)?((0,K.uX)(),(0,K.Wv)(f,{key:2,data:e.getter.children(s),multiple:r.multiple,getter:e.getter,layer:e.layer+1,expand:e.expand,draggable:r.draggable,modify:r.modify,"modify-value":r.modifyValue,checked:e.checked,line:e.checked.includes(e.getter.value(s)),visible:r.visible,warning:r.warning},{default:(0,K.k6)(({item:e,active:t})=>[(0,K.RG)(r.$slots,"default",{item:e,active:t})]),_:2},1032,["data","multiple","getter","layer","expand","draggable","modify","modify-value","checked","line","visible","warning"])):(0,K.Q3)("",!0)]))),128)}}});const Ri=Pi;var _i=Ri,ji=Object.defineProperty,zi=Object.defineProperties,Si=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,Ai=(e,t,r)=>t in e?ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$i=(e,t)=>{for(var r in t||(t={}))Di.call(t,r)&&Ai(e,r,t[r]);if(Ei)for(var r of Ei(t))Vi.call(t,r)&&Ai(e,r,t[r]);return e},Ti=(e,t)=>zi(e,Si(t));Ti($i({},gr),{getter:{default:()=>Wr},defaultChecked:{default:()=>[]}});Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const Ii={class:"loading"},Wi={class:"loading-inspector"},Li={class:"loading-inspector-line"};var Fi=(0,K.pM)({__name:"Loading",setup(e,{expose:t}){const r=(0,H.KR)({visible:!1,duration:500,opacityMax:.2,opacity:0,playing:!1,step:0,runId:0}),s=e=>{r.value.visible=e};t({setVisible:s});const n=()=>{const e=r.value.duration/1e3*60;r.value.step=r.value.opacityMax/e},a=()=>{r.value.runId=requestAnimationFrame(a),r.value.opacity+=r.value.step},i=()=>{r.value.runId=requestAnimationFrame(i),r.value.opacity-=r.value.step},l=()=>{cancelAnimationFrame(r.value.runId)},o=()=>{!1===r.value.playing&&(r.value.opacity=0),n()},u=()=>{r.value.playing=!0,a()},c=()=>{r.value.playing=!1,l()},h=()=>{l()},d=()=>{!1===r.value.playing&&(r.value.opacity=r.value.opacityMax),n()},p=()=>{r.value.playing=!0,i()},f=()=>{r.value.playing=!1,l()},v=()=>{l()};return(e,t)=>((0,K.uX)(),(0,K.Wv)(K.Im,{to:"body"},[(0,K.bF)(G.eB,{duration:r.value.duration,onBeforeEnter:o,onEnter:u,onAfterEnter:c,onEnterCancelled:h,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:v},{default:(0,K.k6)(()=>[(0,K.bo)((0,K.Lk)("div",{class:"vyr-loading",style:(0,Y.Tr)(`opacity:${r.value.opacity};`)},[(0,K.Lk)("div",Ii,[(0,K.Lk)("div",Wi,[(0,K.Lk)("div",Li,[((0,K.uX)(),(0,K.CE)(K.FK,null,(0,K.pI)(10,e=>(0,K.Lk)("span",{key:e,style:(0,Y.Tr)("animation-delay:"+.1*e+"s;")},null,4)),64))])]),t[0]||(t[0]=(0,K.Lk)("div",{class:"loading-text"},"Loading...",-1))])],4),[[G.aG,r.value.visible]])]),_:1},8,["duration"])]))}});const Ui=(0,ct.A)(Fi,[["__scopeId","data-v-2a4a069c"]]);var Xi=Ui,Ni=Object.defineProperty,qi=(e,t,r)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bi=(e,t,r)=>qi(e,"symbol"!==typeof t?t+"":t,r);class Qi{constructor(){Bi(this,"count",0),Bi(this,"vm");const e=(0,G.Ef)(Xi);this.vm=e.mount(document.createElement("div"))}static show(){}static close(){}show(){0===this.count&&(this.vm.setVisible(!0),Qi.show()),this.count++}close(){this.count--,this.count>0||(this.vm.setVisible(!1),this.count=0,Qi.close())}}new Qi;const Gi={class:"notify-icon"},Ki={class:"notify-body"};var Yi=(0,K.pM)({__name:"Notify",setup(e,{expose:t}){const r=(0,H.KR)(new Re("")),s=(0,K.EW)(()=>{const e=Re.collection.value.indexOf(r.value);return-1===e?0:e}),n=()=>{oe.remove(Re.collection.value,r.value)},a=()=>{setTimeout(n,re.config.animationTime.value),r.value.visible=!1},i=e=>{Re.collection.value.push(e),r.value=e,r.value.visible=!0,e.duration!==1/0&&setTimeout(a,e.duration)};return t({show:i}),(e,t)=>((0,K.uX)(),(0,K.Wv)(K.Im,{to:"body"},[(0,K.bF)(G.eB,{name:"vyr-notify-transform",onAfterLeave:r.value.close},{default:(0,K.k6)(()=>[r.value.visible?((0,K.uX)(),(0,K.CE)("div",{key:0,class:(0,Y.C4)(["vyr-notify",`${r.value.type}`]),style:(0,Y.Tr)(`top:${20+(0,H.R1)(Re).offset+50*s.value}px;`)},[(0,K.Lk)("div",Gi,[(0,K.Lk)("i",{class:(0,Y.C4)(["vyrfont",`vyr-${r.value.icon}`])},null,2)]),(0,K.Lk)("div",Ki,(0,Y.v_)(r.value.message),1)],6)):(0,K.Q3)("",!0)]),_:1},8,["onAfterLeave"])]))}});const Hi=(0,ct.A)(Yi,[["__scopeId","data-v-227ca706"]]);var Zi=Hi;class Ji{send(e,t,r){const s="string"===typeof e?{message:e}:e;if(""===s.message)return console.warn(je.get("notify.send.notMessage"));const n=(0,G.Ef)(Zi),a=n.mount(document.createElement("div"));let i;"string"===typeof t?i=t:r=t;const l=()=>n.unmount(),o=new Re(e,i,r,l);a.show(o)}setOffset(e){Re.offset=e}}new Ji;var el=Object.defineProperty,tl=Object.defineProperties,rl=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,nl=Object.prototype.hasOwnProperty,al=Object.prototype.propertyIsEnumerable,il=(e,t,r)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ll=(e,t)=>{for(var r in t||(t={}))nl.call(t,r)&&il(e,r,t[r]);if(sl)for(var r of sl(t))al.call(t,r)&&il(e,r,t[r]);return e},ol=(e,t)=>tl(e,rl(t));const ul={key:0,class:"vyrfont vyr-warning tips-type"},cl={key:0,class:"message"},hl={key:1,class:"content"},dl={key:0,class:"content"},pl={key:1,class:"content"},fl={key:2,class:"content"};ol(ll({},{inheritAttrs:!1}),{__name:"Confirm",setup(e){var t;const r=Se(),s=(0,H.KR)({checked:null!=(t=r.value.value)?t:"",flag:!1}),n=()=>{s.value.flag=!0,r.value.visible=!1},a=()=>{s.value.flag=!1,r.value.visible=!1},i=()=>{var e;r.value.value=null!=(e=s.value.checked)?e:"",r.value.close(s.value.flag)};return(e,t)=>((0,K.uX)(),(0,K.Wv)(Ma,{modelValue:(0,H.R1)(r).visible,"onUpdate:modelValue":t[3]||(t[3]=e=>(0,H.R1)(r).visible=e),mask:!0,draggable:!1,width:"450px",maxHeight:"240px",onClose:i},{title:(0,K.k6)(()=>["warning"===(0,H.R1)(r).type?((0,K.uX)(),(0,K.CE)("i",ul)):(0,K.Q3)("",!0),(0,K.eW)((0,Y.v_)((0,H.R1)(r).title),1)]),footer:(0,K.k6)(()=>[(0,K.bF)(dt,{onClick:n},{default:(0,K.k6)(()=>[(0,K.eW)((0,Y.v_)((0,H.R1)(je).get("confirm.button.submit")),1)]),_:1}),(0,K.bF)(dt,{onClick:a},{default:(0,K.k6)(()=>[(0,K.eW)((0,Y.v_)((0,H.R1)(je).get("confirm.button.cancel")),1)]),_:1})]),default:(0,K.k6)(()=>[(0,H.R1)(r).message?((0,K.uX)(),(0,K.CE)("div",cl,(0,Y.v_)((0,H.R1)(r).message),1)):(0,K.Q3)("",!0),"input"===(0,H.R1)(r).mode?((0,K.uX)(),(0,K.CE)("div",hl,[(0,K.bF)(Es,{modelValue:s.value.checked,"onUpdate:modelValue":t[0]||(t[0]=e=>s.value.checked=e),clearable:!0},null,8,["modelValue"])])):(0,K.Q3)("",!0),(0,H.R1)(r).options.length?((0,K.uX)(),(0,K.CE)(K.FK,{key:2},[(0,H.R1)(r).mode?(0,K.Q3)("",!0):((0,K.uX)(),(0,K.CE)("div",dl,[(0,K.bF)(jn,{modelValue:s.value.checked,"onUpdate:modelValue":t[1]||(t[1]=e=>s.value.checked=e),data:(0,H.R1)(r).options,multiple:!1},null,8,["modelValue","data"])])),"list"===(0,H.R1)(r).mode?((0,K.uX)(),(0,K.CE)("div",pl,[((0,K.uX)(!0),(0,K.CE)(K.FK,null,(0,K.pI)((0,H.R1)(r).options,(e,t)=>((0,K.uX)(),(0,K.CE)("div",{class:"li",key:t},(0,Y.v_)(e.label),1))),128))])):(0,K.Q3)("",!0),"select"===(0,H.R1)(r).mode?((0,K.uX)(),(0,K.CE)("div",fl,[(0,K.bF)(Ys,{modelValue:s.value.checked,"onUpdate:modelValue":t[2]||(t[2]=e=>s.value.checked=e),data:(0,H.R1)(r).options,searchable:!0,placeholder:(0,H.R1)(r).placeholder},null,8,["modelValue","data","placeholder"])])):(0,K.Q3)("",!0)],64)):(0,K.Q3)("",!0)]),_:1},8,["modelValue"]))}});var vl=Object.defineProperty,yl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,bl=Object.prototype.hasOwnProperty,xl=Object.prototype.propertyIsEnumerable,wl=(e,t,r)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kl=(e,t)=>{for(var r in t||(t={}))bl.call(t,r)&&wl(e,r,t[r]);if(gl)for(var r of gl(t))xl.call(t,r)&&wl(e,r,t[r]);return e},Cl=(e,t)=>yl(e,ml(t));const Ml={key:0,class:"vyrfont vyr-warning tips-type"},Ol={class:"item-label"};Cl(kl({},{inheritAttrs:!1}),{__name:"DynamicDialog",setup(e){var t;const r=He(),s=(0,H.KR)({data:null!=(t=r.value.value)?t:{},flag:!1}),n=e=>void 0===e.componentData?[]:Array.isArray(e.componentData)?e.componentData:e.componentData(s.value.data),a=()=>{s.value.flag=!0,r.value.visible=!1},i=()=>{s.value.flag=!1,r.value.visible=!1},l=()=>{var e;r.value.value=null!=(e=s.value.data)?e:{},r.value.close(s.value.flag)};return(e,t)=>((0,K.uX)(),(0,K.Wv)(Ma,{modelValue:(0,H.R1)(r).visible,"onUpdate:modelValue":t[0]||(t[0]=e=>(0,H.R1)(r).visible=e),mask:!1,draggable:!0,width:"720px",maxHeight:"70%",onClose:l},{title:(0,K.k6)(()=>["warning"===(0,H.R1)(r).type?((0,K.uX)(),(0,K.CE)("i",Ml)):(0,K.Q3)("",!0),(0,K.eW)((0,Y.v_)((0,H.R1)(r).title),1)]),footer:(0,K.k6)(()=>[(0,K.bF)(dt,{onClick:a},{default:(0,K.k6)(()=>[(0,K.eW)((0,Y.v_)((0,H.R1)(je).get("dialog.button.submit")),1)]),_:1}),(0,K.bF)(dt,{onClick:i},{default:(0,K.k6)(()=>[(0,K.eW)((0,Y.v_)((0,H.R1)(je).get("dialog.button.cancel")),1)]),_:1})]),default:(0,K.k6)(()=>[(0,K.bF)($a,null,{default:(0,K.k6)(()=>[((0,K.uX)(!0),(0,K.CE)(K.FK,null,(0,K.pI)((0,H.R1)(r).options,(e,t)=>((0,K.uX)(),(0,K.CE)("div",{class:"dynamic-item",key:t},[(0,K.Lk)("div",Ol,(0,Y.v_)(e.label),1),"image"===e.componentType?((0,K.uX)(),(0,K.CE)("img",(0,K.v6)({key:0,class:"image"},{ref_for:!0},e.componentProps),null,16)):(0,K.Q3)("",!0),"input"===e.componentType?((0,K.uX)(),(0,K.Wv)(Es,(0,K.v6)({key:1,modelValue:s.value.data[e.name],"onUpdate:modelValue":t=>s.value.data[e.name]=t},{ref_for:!0},e.componentProps),null,16,["modelValue","onUpdate:modelValue"])):(0,K.Q3)("",!0),"number"===e.componentType?((0,K.uX)(),(0,K.Wv)(Ga,(0,K.v6)({key:2,modelValue:s.value.data[e.name],"onUpdate:modelValue":t=>s.value.data[e.name]=t},{ref_for:!0},e.componentProps,{data:n(e)}),null,16,["modelValue","onUpdate:modelValue","data"])):(0,K.Q3)("",!0),"select"===e.componentType?((0,K.uX)(),(0,K.Wv)(Ys,(0,K.v6)({key:3,modelValue:s.value.data[e.name],"onUpdate:modelValue":t=>s.value.data[e.name]=t},{ref_for:!0},e.componentProps,{data:n(e),searchable:!0}),null,16,["modelValue","onUpdate:modelValue","data"])):(0,K.Q3)("",!0),"cascader"===e.componentType?((0,K.uX)(),(0,K.Wv)(un,(0,K.v6)({key:4,modelValue:s.value.data[e.name],"onUpdate:modelValue":t=>s.value.data[e.name]=t},{ref_for:!0},e.componentProps,{data:n(e),searchable:!0}),null,16,["modelValue","onUpdate:modelValue","data"])):(0,K.Q3)("",!0),"color"===e.componentType?((0,K.uX)(),(0,K.Wv)(Xn,(0,K.v6)({key:5,modelValue:s.value.data[e.name],"onUpdate:modelValue":t=>s.value.data[e.name]=t},{ref_for:!0},e.componentProps),null,16,["modelValue","onUpdate:modelValue"])):(0,K.Q3)("",!0)]))),128))]),_:1})]),_:1},8,["modelValue"]))}});const Pl={id:"zh_CN",name:"@vyr/engine","asyncTask.task.was.cancelled":"任务已取消","asset.load.fail":"资产加载失败:未注册 {{category}} 类别的工厂方法","asset.already.exists":"已存在同名资产,覆盖可能导致异常","asset.provider.notFound":"未找到资源提供方:{{url}}","descriptor.notRegister":"未注册描述器:{{type}}","descriptor.insert.uuid.notFound":"节点不存在:${uuid}","descriptor.insert.target.notFound":"目标节点不存在:${target}","descriptor.syncWith.fail":"只能从同类型实例同步属性","interpreter.new.fail":"请使用静态 create 方法创建实例","graphics.interpreter.notRegister":"未注册解释器:{{type}}","graphics.unit.notFound":"单元不存在:{{uuid}}","engine.run.container.notFound":"挂载节点不存在","/virtual:/preset/net/http.ts":"网络请求","/virtual:/preset/dataset/update.ts":"更新数据集","/virtual:/preset/dataset/compile.ts":"组合数据集","/virtual:/preset/scheduler/switch.ts":"切换场景","/virtual:/preset/graphics/invoke.ts":"调用交互"};B.Locale.register(Pl);const Rl=B.Locale.getLanguage(Pl.name);function _l(e,t,r){return Math.max(t,Math.min(r,e))}var jl=Object.defineProperty,zl=(e,t,r)=>t in e?jl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sl=(e,t,r)=>zl(e,"symbol"!==typeof t?t+"":t,r);class El{constructor(e=0,t=0){Sl(this,"x"),Sl(this,"y"),this.x=e,this.y=t}static create(e,t){return void 0===e?new El:"number"===typeof e?new El(e,t):new El(e.x,e.y)}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=_l(this.x,e.x,t.x),this.y=_l(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=_l(this.x,e,t),this.y=_l(this.y,e,t),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(_l(r,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){const e=Math.atan2(-this.y,-this.x)+Math.PI;return e}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(_l(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}rotateAround(e,t){const r=Math.cos(t),s=Math.sin(t),n=this.x-e.x,a=this.y-e.y;return this.x=n*r-a*s+e.x,this.y=n*s+a*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}var Dl=Object.defineProperty,Vl=(e,t,r)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Al=(e,t,r)=>Vl(e,"symbol"!==typeof t?t+"":t,r);class $l{constructor(e=0,t=0,r=0,s=1){Al(this,"x"),Al(this,"y"),Al(this,"z"),Al(this,"w"),this.x=e,this.y=t,this.z=r,this.w=s}static slerpFlat(e,t,r,s,n,a,i){let l=r[s+0],o=r[s+1],u=r[s+2],c=r[s+3];const h=n[a+0],d=n[a+1],p=n[a+2],f=n[a+3];if(0===i)return e[t+0]=l,e[t+1]=o,e[t+2]=u,void(e[t+3]=c);if(1===i)return e[t+0]=h,e[t+1]=d,e[t+2]=p,void(e[t+3]=f);if(c!==f||l!==h||o!==d||u!==p){let e=1-i;const t=l*h+o*d+u*p+c*f,r=t>=0?1:-1,s=1-t*t;if(s>Number.EPSILON){const n=Math.sqrt(s),a=Math.atan2(n,t*r);e=Math.sin(e*a)/n,i=Math.sin(i*a)/n}const n=i*r;if(l=l*e+h*n,o=o*e+d*n,u=u*e+p*n,c=c*e+f*n,e===1-i){const e=1/Math.sqrt(l*l+o*o+u*u+c*c);l*=e,o*=e,u*=e,c*=e}}e[t]=l,e[t+1]=o,e[t+2]=u,e[t+3]=c}static multiplyQuaternionsFlat(e,t,r,s,n,a){const i=r[s],l=r[s+1],o=r[s+2],u=r[s+3],c=n[a],h=n[a+1],d=n[a+2],p=n[a+3];return e[t]=i*p+u*c+l*d-o*h,e[t+1]=l*p+u*h+o*c-i*d,e[t+2]=o*p+u*d+i*h-l*c,e[t+3]=u*p-i*c-l*h-o*d,e}set(e,t,r,s){return this.x=e,this.y=t,this.z=r,this.w=s,this}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w,this}setFromEuler(e){const t=e.x,r=e.y,s=e.z,n=e.order,a=Math.cos,i=Math.sin,l=a(t/2),o=a(r/2),u=a(s/2),c=i(t/2),h=i(r/2),d=i(s/2);switch(n){case"XYZ":this.x=c*o*u+l*h*d,this.y=l*h*u-c*o*d,this.z=l*o*d+c*h*u,this.w=l*o*u-c*h*d;break;case"YXZ":this.x=c*o*u+l*h*d,this.y=l*h*u-c*o*d,this.z=l*o*d-c*h*u,this.w=l*o*u+c*h*d;break;case"ZXY":this.x=c*o*u-l*h*d,this.y=l*h*u+c*o*d,this.z=l*o*d+c*h*u,this.w=l*o*u-c*h*d;break;case"ZYX":this.x=c*o*u-l*h*d,this.y=l*h*u+c*o*d,this.z=l*o*d-c*h*u,this.w=l*o*u+c*h*d;break;case"YZX":this.x=c*o*u+l*h*d,this.y=l*h*u+c*o*d,this.z=l*o*d-c*h*u,this.w=l*o*u-c*h*d;break;case"XZY":this.x=c*o*u-l*h*d,this.y=l*h*u-c*o*d,this.z=l*o*d+c*h*u,this.w=l*o*u+c*h*d;break;default:console.warn("Quaternion: .setFromEuler() encountered an unknown order: "+n)}return this}setFromAxisAngle(e,t){const r=t/2,s=Math.sin(r);return this.x=e.x*s,this.y=e.y*s,this.z=e.z*s,this.w=Math.cos(r),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],s=t[4],n=t[8],a=t[1],i=t[5],l=t[9],o=t[2],u=t[6],c=t[10],h=r+i+c;if(h>0){const e=.5/Math.sqrt(h+1);this.w=.25/e,this.x=(u-l)*e,this.y=(n-o)*e,this.z=(a-s)*e}else if(r>i&&r>c){const e=2*Math.sqrt(1+r-i-c);this.w=(u-l)/e,this.x=.25*e,this.y=(s+a)/e,this.z=(n+o)/e}else if(i>c){const e=2*Math.sqrt(1+i-r-c);this.w=(n-o)/e,this.x=(s+a)/e,this.y=.25*e,this.z=(l+u)/e}else{const e=2*Math.sqrt(1+c-r-i);this.w=(a-s)/e,this.x=(n+o)/e,this.y=(l+u)/e,this.z=.25*e}return this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return r<Number.EPSILON?(r=0,Math.abs(e.x)>Math.abs(e.z)?(this.x=-e.y,this.y=e.x,this.z=0,this.w=r):(this.x=0,this.y=-e.z,this.z=e.y,this.w=r)):(this.x=e.y*t.z-e.z*t.y,this.y=e.z*t.x-e.x*t.z,this.z=e.x*t.y-e.y*t.x,this.w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(_l(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(0===r)return this;const s=Math.min(1,t/r);return this.slerp(e,s),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this.x*=-1,this.y*=-1,this.z*=-1,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}normalize(){let e=this.length();return 0===e?(this.x=0,this.y=0,this.z=0,this.w=1):(e=1/e,this.x=this.x*e,this.y=this.y*e,this.z=this.z*e,this.w=this.w*e),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e.x,s=e.y,n=e.z,a=e.w,i=t.x,l=t.y,o=t.z,u=t.w;return this.x=r*u+a*i+s*o-n*l,this.y=s*u+a*l+n*i-r*o,this.z=n*u+a*o+r*l-s*i,this.w=a*u-r*i-s*l-n*o,this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const r=this.x,s=this.y,n=this.z,a=this.w;let i=a*e.w+r*e.x+s*e.y+n*e.z;if(i<0?(this.w=-e.w,this.x=-e.x,this.y=-e.y,this.z=-e.z,i=-i):this.copy(e),i>=1)return this.w=a,this.x=r,this.y=s,this.z=n,this;const l=1-i*i;if(l<=Number.EPSILON){const e=1-t;return this.w=e*a+t*this.w,this.x=e*r+t*this.x,this.y=e*s+t*this.y,this.z=e*n+t*this.z,this.normalize(),this}const o=Math.sqrt(l),u=Math.atan2(o,i),c=Math.sin((1-t)*u)/o,h=Math.sin(t*u)/o;return this.w=a*c+this.w*h,this.x=r*c+this.x*h,this.y=s*c+this.y*h,this.z=n*c+this.z*h,this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),r=Math.random(),s=Math.sqrt(1-r),n=Math.sqrt(r);return this.set(s*Math.sin(e),s*Math.cos(e),n*Math.sin(t),n*Math.cos(t))}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}toJSON(){return this.toArray()}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}var Tl=Object.defineProperty,Il=(e,t,r)=>t in e?Tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wl=(e,t,r)=>Il(e,"symbol"!==typeof t?t+"":t,r);class Ll{constructor(e=0,t=0,r=0){Wl(this,"x"),Wl(this,"y"),Wl(this,"z"),this.x=e,this.y=t,this.z=r}static create(e,t,r){return void 0===e?new Ll:"number"===typeof e?new Ll(e,t,r):new Ll(e.x,e.y,e.z)}set(e,t,r){return void 0===r&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Ul.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Ul.setFromAxisAngle(e,t))}applyMatrix4(e){const t=this.x,r=this.y,s=this.z,n=e.elements,a=1/(n[3]*t+n[7]*r+n[11]*s+n[15]);return this.x=(n[0]*t+n[4]*r+n[8]*s+n[12])*a,this.y=(n[1]*t+n[5]*r+n[9]*s+n[13])*a,this.z=(n[2]*t+n[6]*r+n[10]*s+n[14])*a,this}applyQuaternion(e){const t=this.x,r=this.y,s=this.z,n=e.x,a=e.y,i=e.z,l=e.w,o=2*(a*s-i*r),u=2*(i*t-n*s),c=2*(n*r-a*t);return this.x=t+l*o+a*c-i*u,this.y=r+l*u+i*o-n*c,this.z=s+l*c+n*u-a*o,this}project(e,t){return this.applyMatrix4(e).applyMatrix4(t)}unproject(e,t){return this.applyMatrix4(e).applyMatrix4(t)}transformDirection(e){const t=this.x,r=this.y,s=this.z,n=e.elements;return this.x=n[0]*t+n[4]*r+n[8]*s,this.y=n[1]*t+n[5]*r+n[9]*s,this.z=n[2]*t+n[6]*r+n[10]*s,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=_l(this.x,e.x,t.x),this.y=_l(this.y,e.y,t.y),this.z=_l(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=_l(this.x,e,t),this.y=_l(this.y,e,t),this.z=_l(this.z,e,t),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(_l(r,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,s=e.y,n=e.z,a=t.x,i=t.y,l=t.z;return this.x=s*l-n*i,this.y=n*a-r*l,this.z=r*i-s*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return Fl.copy(this).projectOnVector(e),this.sub(Fl)}reflect(e){return this.sub(Fl.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(_l(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,s=this.z-e.z;return t*t+r*r+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const s=Math.sin(t)*e;return this.x=s*Math.sin(r),this.y=Math.cos(t)*e,this.z=s*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),s=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=s,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromEuler(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}setFromColor(e){const t=e.toRgb();return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,r=Math.sqrt(1-t*t);return this.x=r*Math.cos(e),this.y=t,this.z=r*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Fl=new Ll,Ul=new $l;var Xl=Object.defineProperty,Nl=(e,t,r)=>t in e?Xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ql=(e,t,r)=>Nl(e,"symbol"!==typeof t?t+"":t,r);const Bl=1,Ql=2;class Gl{constructor(e,t,r,s,n,a,i,l,o,u,c,h,d,p,f,v){ql(this,"elements"),this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,r,s,n,a,i,l,o,u,c,h,d,p,f,v)}set(e,t,r,s,n,a,i,l,o,u,c,h,d,p,f,v){const y=this.elements;return y[0]=e,y[4]=t,y[8]=r,y[12]=s,y[1]=n,y[5]=a,y[9]=i,y[13]=l,y[2]=o,y[6]=u,y[10]=c,y[14]=h,y[3]=d,y[7]=p,y[11]=f,y[15]=v,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Gl).fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,s=1/Kl.setFromMatrixColumn(e,0).length(),n=1/Kl.setFromMatrixColumn(e,1).length(),a=1/Kl.setFromMatrixColumn(e,2).length();return t[0]=r[0]*s,t[1]=r[1]*s,t[2]=r[2]*s,t[3]=0,t[4]=r[4]*n,t[5]=r[5]*n,t[6]=r[6]*n,t[7]=0,t[8]=r[8]*a,t[9]=r[9]*a,t[10]=r[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,s=e.y,n=e.z,a=Math.cos(r),i=Math.sin(r),l=Math.cos(s),o=Math.sin(s),u=Math.cos(n),c=Math.sin(n);if("XYZ"===e.order){const e=a*u,r=a*c,s=i*u,n=i*c;t[0]=l*u,t[4]=-l*c,t[8]=o,t[1]=r+s*o,t[5]=e-n*o,t[9]=-i*l,t[2]=n-e*o,t[6]=s+r*o,t[10]=a*l}else if("YXZ"===e.order){const e=l*u,r=l*c,s=o*u,n=o*c;t[0]=e+n*i,t[4]=s*i-r,t[8]=a*o,t[1]=a*c,t[5]=a*u,t[9]=-i,t[2]=r*i-s,t[6]=n+e*i,t[10]=a*l}else if("ZXY"===e.order){const e=l*u,r=l*c,s=o*u,n=o*c;t[0]=e-n*i,t[4]=-a*c,t[8]=s+r*i,t[1]=r+s*i,t[5]=a*u,t[9]=n-e*i,t[2]=-a*o,t[6]=i,t[10]=a*l}else if("ZYX"===e.order){const e=a*u,r=a*c,s=i*u,n=i*c;t[0]=l*u,t[4]=s*o-r,t[8]=e*o+n,t[1]=l*c,t[5]=n*o+e,t[9]=r*o-s,t[2]=-o,t[6]=i*l,t[10]=a*l}else if("YZX"===e.order){const e=a*l,r=a*o,s=i*l,n=i*o;t[0]=l*u,t[4]=n-e*c,t[8]=s*c+r,t[1]=c,t[5]=a*u,t[9]=-i*u,t[2]=-o*u,t[6]=r*c+s,t[10]=e-n*c}else if("XZY"===e.order){const e=a*l,r=a*o,s=i*l,n=i*o;t[0]=l*u,t[4]=-c,t[8]=o*u,t[1]=e*c+n,t[5]=a*u,t[9]=r*c-s,t[2]=s*c-r,t[6]=i*u,t[10]=n*c+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Hl,e,Zl)}lookAt(e,t,r){const s=this.elements;return to.subVectors(e,t),0===to.lengthSq()&&(to.z=1),to.normalize(),Jl.crossVectors(r,to),0===Jl.lengthSq()&&(1===Math.abs(r.z)?to.x+=1e-4:to.z+=1e-4,to.normalize(),Jl.crossVectors(r,to)),Jl.normalize(),eo.crossVectors(to,Jl),s[0]=Jl.x,s[4]=eo.x,s[8]=to.x,s[1]=Jl.y,s[5]=eo.y,s[9]=to.y,s[2]=Jl.z,s[6]=eo.z,s[10]=to.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,s=t.elements,n=this.elements,a=r[0],i=r[4],l=r[8],o=r[12],u=r[1],c=r[5],h=r[9],d=r[13],p=r[2],f=r[6],v=r[10],y=r[14],m=r[3],g=r[7],b=r[11],x=r[15],w=s[0],k=s[4],C=s[8],M=s[12],O=s[1],P=s[5],R=s[9],_=s[13],j=s[2],z=s[6],S=s[10],E=s[14],D=s[3],V=s[7],A=s[11],$=s[15];return n[0]=a*w+i*O+l*j+o*D,n[4]=a*k+i*P+l*z+o*V,n[8]=a*C+i*R+l*S+o*A,n[12]=a*M+i*_+l*E+o*$,n[1]=u*w+c*O+h*j+d*D,n[5]=u*k+c*P+h*z+d*V,n[9]=u*C+c*R+h*S+d*A,n[13]=u*M+c*_+h*E+d*$,n[2]=p*w+f*O+v*j+y*D,n[6]=p*k+f*P+v*z+y*V,n[10]=p*C+f*R+v*S+y*A,n[14]=p*M+f*_+v*E+y*$,n[3]=m*w+g*O+b*j+x*D,n[7]=m*k+g*P+b*z+x*V,n[11]=m*C+g*R+b*S+x*A,n[15]=m*M+g*_+b*E+x*$,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],s=e[8],n=e[12],a=e[1],i=e[5],l=e[9],o=e[13],u=e[2],c=e[6],h=e[10],d=e[14],p=e[3],f=e[7],v=e[11],y=e[15];return p*(+n*l*c-s*o*c-n*i*h+r*o*h+s*i*d-r*l*d)+f*(+t*l*d-t*o*h+n*a*h-s*a*d+s*o*u-n*l*u)+v*(+t*o*c-t*i*d-n*a*c+r*a*d+n*i*u-r*o*u)+y*(-s*i*u-t*l*c+t*i*h+s*a*c-r*a*h+r*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const s=this.elements;return"number"===typeof e?(s[12]=e,s[13]=t,s[14]=r):(s[12]=e.x,s[13]=e.y,s[14]=e.z),this}invert(){const e=this.elements,t=e[0],r=e[1],s=e[2],n=e[3],a=e[4],i=e[5],l=e[6],o=e[7],u=e[8],c=e[9],h=e[10],d=e[11],p=e[12],f=e[13],v=e[14],y=e[15],m=c*v*o-f*h*o+f*l*d-i*v*d-c*l*y+i*h*y,g=p*h*o-u*v*o-p*l*d+a*v*d+u*l*y-a*h*y,b=u*f*o-p*c*o+p*i*d-a*f*d-u*i*y+a*c*y,x=p*c*l-u*f*l-p*i*h+a*f*h+u*i*v-a*c*v,w=t*m+r*g+s*b+n*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const k=1/w;return e[0]=m*k,e[1]=(f*h*n-c*v*n-f*s*d+r*v*d+c*s*y-r*h*y)*k,e[2]=(i*v*n-f*l*n+f*s*o-r*v*o-i*s*y+r*l*y)*k,e[3]=(c*l*n-i*h*n-c*s*o+r*h*o+i*s*d-r*l*d)*k,e[4]=g*k,e[5]=(u*v*n-p*h*n+p*s*d-t*v*d-u*s*y+t*h*y)*k,e[6]=(p*l*n-a*v*n-p*s*o+t*v*o+a*s*y-t*l*y)*k,e[7]=(a*h*n-u*l*n+u*s*o-t*h*o-a*s*d+t*l*d)*k,e[8]=b*k,e[9]=(p*c*n-u*f*n-p*r*d+t*f*d+u*r*y-t*c*y)*k,e[10]=(a*f*n-p*i*n+p*r*o-t*f*o-a*r*y+t*i*y)*k,e[11]=(u*i*n-a*c*n-u*r*o+t*c*o+a*r*d-t*i*d)*k,e[12]=x*k,e[13]=(u*f*s-p*c*s+p*r*h-t*f*h-u*r*v+t*c*v)*k,e[14]=(p*i*s-a*f*s-p*r*l+t*f*l+a*r*v-t*i*v)*k,e[15]=(a*c*s-u*i*s+u*r*l-t*c*l-a*r*h+t*i*h)*k,this}scale(e){const t=this.elements,r=e.x,s=e.y,n=e.z;return t[0]*=r,t[4]*=s,t[8]*=n,t[1]*=r,t[5]*=s,t[9]*=n,t[2]*=r,t[6]*=s,t[10]*=n,t[3]*=r,t[7]*=s,t[11]*=n,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],s=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,s))}makeTranslation(e,t,r){return"number"===typeof e?this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1):this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),s=Math.sin(t),n=1-r,a=e.x,i=e.y,l=e.z,o=n*a,u=n*i;return this.set(o*a+r,o*i-s*l,o*l+s*i,0,o*i+s*l,u*i+r,u*l-s*a,0,o*l-s*i,u*l+s*a,n*l*l+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,s,n,a){return this.set(1,r,n,0,e,1,a,0,t,s,1,0,0,0,0,1),this}compose(e,t,r){const s=this.elements,n=t.x,a=t.y,i=t.z,l=t.w,o=n+n,u=a+a,c=i+i,h=n*o,d=n*u,p=n*c,f=a*u,v=a*c,y=i*c,m=l*o,g=l*u,b=l*c,x=r.x,w=r.y,k=r.z;return s[0]=(1-(f+y))*x,s[1]=(d+b)*x,s[2]=(p-g)*x,s[3]=0,s[4]=(d-b)*w,s[5]=(1-(h+y))*w,s[6]=(v+m)*w,s[7]=0,s[8]=(p+g)*k,s[9]=(v-m)*k,s[10]=(1-(h+f))*k,s[11]=0,s[12]=e.x,s[13]=e.y,s[14]=e.z,s[15]=1,this}decompose(e,t,r){const s=this.elements;let n=Kl.set(s[0],s[1],s[2]).length();const a=Kl.set(s[4],s[5],s[6]).length(),i=Kl.set(s[8],s[9],s[10]).length(),l=this.determinant();l<0&&(n=-n),e.x=s[12],e.y=s[13],e.z=s[14],Yl.copy(this);const o=1/n,u=1/a,c=1/i;return Yl.elements[0]*=o,Yl.elements[1]*=o,Yl.elements[2]*=o,Yl.elements[4]*=u,Yl.elements[5]*=u,Yl.elements[6]*=u,Yl.elements[8]*=c,Yl.elements[9]*=c,Yl.elements[10]*=c,t.setFromRotationMatrix(Yl),r.x=n,r.y=a,r.z=i,this}makePerspective(e,t,r,s,n,a,i=Bl){const l=this.elements,o=2*n/(t-e),u=2*n/(r-s),c=(t+e)/(t-e),h=(r+s)/(r-s);let d,p;if(i===Bl)d=-(a+n)/(a-n),p=-2*a*n/(a-n);else{if(i!==Ql)throw new Error("Matrix4.makePerspective(): Invalid coordinate system: "+i);d=-a/(a-n),p=-a*n/(a-n)}return l[0]=o,l[4]=0,l[8]=c,l[12]=0,l[1]=0,l[5]=u,l[9]=h,l[13]=0,l[2]=0,l[6]=0,l[10]=d,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,r,s,n,a,i=Bl){const l=this.elements,o=1/(t-e),u=1/(r-s),c=1/(a-n),h=(t+e)*o,d=(r+s)*u;let p,f;if(i===Bl)p=(a+n)*c,f=-2*c;else{if(i!==Ql)throw new Error("Matrix4.makeOrthographic(): Invalid coordinate system: "+i);p=n*c,f=-1*c}return l[0]=2*o,l[4]=0,l[8]=0,l[12]=-h,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-d,l[2]=0,l[6]=0,l[10]=f,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let s=0;s<16;s++)if(t[s]!==r[s])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const Kl=new Ll,Yl=new Gl,Hl=new Ll(0,0,0),Zl=new Ll(1,1,1),Jl=new Ll,eo=new Ll,to=new Ll;var ro=Object.defineProperty,so=(e,t,r)=>t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,no=(e,t,r)=>so(e,"symbol"!==typeof t?t+"":t,r);const ao=new Gl,io=new $l,lo=class e{constructor(t=0,r=0,s=0,n=e.DEFAULT_ORDER){no(this,"x"),no(this,"y"),no(this,"z"),no(this,"order"),this.x=t,this.y=r,this.z=s,this.order=n}static create(t,r,s,n){return void 0===t?new e:"number"===typeof t?new e(t,r,s,n):new e(t.x,t.y,t.z,t.order)}set(e,t,r,s=this.order){return this.x=e,this.y=t,this.z=r,this.order=s,this}clone(){return new this.constructor(this.x,this.y,this.z,this.order)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.order=e.order,this}setFromRotationMatrix(e,t=this.order){const r=e.elements,s=r[0],n=r[4],a=r[8],i=r[1],l=r[5],o=r[9],u=r[2],c=r[6],h=r[10];switch(t){case"XYZ":this.y=Math.asin(_l(a,-1,1)),Math.abs(a)<.9999999?(this.x=Math.atan2(-o,h),this.z=Math.atan2(-n,s)):(this.x=Math.atan2(c,l),this.z=0);break;case"YXZ":this.x=Math.asin(-_l(o,-1,1)),Math.abs(o)<.9999999?(this.y=Math.atan2(a,h),this.z=Math.atan2(i,l)):(this.y=Math.atan2(-u,s),this.z=0);break;case"ZXY":this.x=Math.asin(_l(c,-1,1)),Math.abs(c)<.9999999?(this.y=Math.atan2(-u,h),this.z=Math.atan2(-n,l)):(this.y=0,this.z=Math.atan2(i,s));break;case"ZYX":this.y=Math.asin(-_l(u,-1,1)),Math.abs(u)<.9999999?(this.x=Math.atan2(c,h),this.z=Math.atan2(i,s)):(this.x=0,this.z=Math.atan2(-n,l));break;case"YZX":this.z=Math.asin(_l(i,-1,1)),Math.abs(i)<.9999999?(this.x=Math.atan2(-o,l),this.y=Math.atan2(-u,s)):(this.x=0,this.y=Math.atan2(a,h));break;case"XZY":this.z=Math.asin(-_l(n,-1,1)),Math.abs(n)<.9999999?(this.x=Math.atan2(c,l),this.y=Math.atan2(a,s)):(this.x=Math.atan2(-o,h),this.y=0);break;default:console.warn("Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this.order=t,this}setFromQuaternion(e,t){return ao.makeRotationFromQuaternion(e),this.setFromRotationMatrix(ao,t)}setFromVector3(e,t=this.order){return this.set(e.x,e.y,e.z,t)}reorder(e){return io.setFromEuler(this),this.setFromQuaternion(io,e)}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.order===this.order}fromArray(e){return this.x=e[0],this.y=e[1],this.z=e[2],void 0!==e[3]&&(this.order=e[3]),this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.order,e}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.order}};no(lo,"DEFAULT_ORDER","XYZ");let oo=lo;const uo=[{parse:1/0,stringify:"__vyr_infinity+__"},{parse:-1/0,stringify:"__vyr_infinity-__"}],co=(e,t)=>{for(const r of uo)if(r.parse===t)return r.stringify;return t},ho=(e,t)=>{for(const r of uo)if(r.stringify===t)return r.parse;return t};class po{static stringify(e){return JSON.stringify(e,co)}static parse(e){return JSON.parse(e,ho)}static deepClone(e){return this.parse(this.stringify(e))}}var fo=Object.defineProperty,vo=(e,t,r)=>t in e?fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yo=(e,t,r)=>vo(e,"symbol"!==typeof t?t+"":t,r);class mo extends ue.A{}class go{constructor(){yo(this,"type"),this.type=this.constructor.type}static create(e){switch(e.type){case"linear":return new xo(e);case"radial":return new wo(e);default:return new bo(e)}}static getColor(e){return"rgba(0,0,0,0)"}getColor(){return this.constructor.getColor(this)}}yo(go,"type","basic");class bo extends go{constructor(e={}){var t,r;super(),yo(this,"value"),yo(this,"opacity"),this.value=null!=(t=e.value)?t:"#ffffff",this.opacity=null!=(r=e.opacity)?r:1}static getColor(e){return new mo(e.value).setAlpha(e.opacity).toRgbString()}}yo(bo,"type","default");class xo extends go{constructor(e={}){var t;super(),yo(this,"angle"),yo(this,"value"),this.angle=null!=(t=e.angle)?t:0,this.value=e.value?po.deepClone(e.value):[{value:"#ffffff",opacity:1,ratio:0},{value:"#ffffff",opacity:1,ratio:1}]}static getColor(e){let t="";for(const r of e.value)t+=`, ${new mo(r.value).setAlpha(r.opacity).toRgbString()} ${100*r.ratio}%`;return`linear-gradient(${e.angle}deg ${t})`}}yo(xo,"type","linear");class wo extends go{constructor(e={}){var t;super(),yo(this,"center"),yo(this,"radius"),yo(this,"value"),this.center=e.center?po.deepClone(e.center):{x:.5,y:.5},this.radius=null!=(t=e.radius)?t:-1,this.value=e.value?po.deepClone(e.value):[{value:"#ffffff",opacity:1,ratio:0},{value:"#ffffff",opacity:1,ratio:1}]}static getColor(e){let t="";t=e.radius<0?"farthest-corner":`${e.radius}px`;let r="";r=`${100*e.center.x}% ${100*e.center.y}%`;let s="";for(const n of e.value)s+=`, ${new mo(n.value).setAlpha(n.opacity).toRgbString()} ${100*n.ratio}%`;return`radial-gradient(circle ${t} at ${r} ${s})`}}yo(wo,"type","radial");var ko=Object.defineProperty,Co=(e,t,r)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t,r)=>Co(e,"symbol"!==typeof t?t+"":t,r);const Oo=class e{static getCategory(e){return e===this.tsSuffix?this.ts:e===this.prefabSuffix?this.prefab:e===this.datasetSuffix?this.dataset:e===this.styleSuffix?this.style:e===this.fontSuffix?this.font:e===this.interactionSuffix?this.interaction:e===this.textureSuffix?this.texture:e===this.materialSuffix?this.material:e===this.geometrySuffix?this.geometry:e===this.sceneSuffix?this.scene:this.jsonSuffixs.includes(e)?this.json:this.imageSuffixs.includes(e)?this.image:this.audioSuffixs.includes(e)?this.audio:this.videoSuffixs.includes(e)?this.video:this.modelSuffixs.includes(e)?this.model:this.other}static parseName(e){var t;const r={name:"",suffix:"",category:"other"};if(void 0===e||""===e)return r;const s=e.split(".");r.name=null!=(t=s[0])?t:"";for(let n=1;n<s.length;n++)r.suffix+=`.${s[n]}`;return r.category=this.getCategory(r.suffix),r}static isDescriptor(t,r="suffix"){const s="suffix"===r?e.descriptorSuffixs:e.descriptorCategorys;return s.includes(t)}};Mo(Oo,"ts","ts"),Mo(Oo,"prefab","prefab"),Mo(Oo,"dataset","dataset"),Mo(Oo,"style","style"),Mo(Oo,"font","font"),Mo(Oo,"interaction","interaction"),Mo(Oo,"texture","texture"),Mo(Oo,"material","material"),Mo(Oo,"geometry","geometry"),Mo(Oo,"scene","scene"),Mo(Oo,"json","json"),Mo(Oo,"image","image"),Mo(Oo,"audio","audio"),Mo(Oo,"video","video"),Mo(Oo,"model","model"),Mo(Oo,"other","other"),Mo(Oo,"tsSuffix",`.${Oo.ts}`),Mo(Oo,"prefabSuffix",`.${Oo.prefab}.json`),Mo(Oo,"datasetSuffix",`.${Oo.dataset}.json`),Mo(Oo,"styleSuffix",`.${Oo.style}.json`),Mo(Oo,"fontSuffix",`.${Oo.font}.json`),Mo(Oo,"interactionSuffix",`.${Oo.interaction}.json`),Mo(Oo,"textureSuffix",`.${Oo.texture}.json`),Mo(Oo,"materialSuffix",`.${Oo.material}.json`),Mo(Oo,"geometrySuffix",`.${Oo.geometry}.json`),Mo(Oo,"sceneSuffix",`.${Oo.scene}.json`),Mo(Oo,"manifestSuffix",".manifest.json"),Mo(Oo,"jsonSuffixs",[".json"]),Mo(Oo,"imageSuffixs",[".png",".jpg",".jpeg",".bmp",".gif"]),Mo(Oo,"audioSuffixs",[".mp3",".wav",".wmv"]),Mo(Oo,"videoSuffixs",[".mp4",".m2v",".mkv",".rmvb",".wmv",".avi",".flv",".mov",".m4v"]),Mo(Oo,"modelSuffixs",[".glb",".gltf"]),Mo(Oo,"descriptorSuffixs",[Oo.prefabSuffix,Oo.datasetSuffix,Oo.styleSuffix,Oo.interactionSuffix,Oo.textureSuffix,Oo.materialSuffix,Oo.geometrySuffix,Oo.sceneSuffix]),Mo(Oo,"descriptorCategorys",[Oo.prefab,Oo.dataset,Oo.style,Oo.interaction,Oo.texture,Oo.material,Oo.geometry,Oo.scene]);let Po=Oo;class Ro{static equals(e,t,r=[]){const s=Object.keys(e),n=Object.keys(t);if(s.length!==n.length)return!1;const a=new Set(n);for(const i of s){if(!1===a.has(i))return!1;if(r.includes(i))continue;const s=e[i],n=typeof s;if(("string"===n||"boolean"===n||"number"===n||"bigint"===n||"undefined"===n||"symbol"===n||null===n)&&s!==t[i])return!1;if(Array.isArray(s)){if(0==_o.equals(s,t[i],r))return!1}else if("object"!==n);else if(!1===Ro.equals(s,t[i],r))return!1}return!0}static parseKey(e){return e.split(".").filter(e=>""!==e)}static getValueByKey(e,t){if(!e)return;const r=this.parseKey(t);for(const s of r)if(e=e[s],void 0===e)return;return e}}class _o{static insert(e,t){const r=e.indexOf(t);-1===r&&e.push(t)}static remove(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}static auto(e,t){const r=e.indexOf(t);-1===r?e.push(t):e.splice(r,1)}static insertByKey(e,t,r){const s=e.length;for(let n=0;n<s;n++)if(e[n][t]===r[t])return;e.push(r)}static removeByKey(e,t,r){const s=e.length;for(let n=0;n<s;n++){const s=e[n];if(s[t]===r)return void e.splice(n,1)}}static equals(e,t,r=[]){if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++){const n=e[s],a=typeof n;if(("string"===a||"boolean"===a||"number"===a||"bigint"===a||"undefined"===a||"symbol"===a||null===a)&&n!==t[s])return!1;if(Array.isArray(n)){if(0==_o.equals(n,t[s],r))return!1}else if("object"!==a);else if(!1===Ro.equals(n,t[s],r))return!1}return!0}}let jo=1;const zo=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];class So{static id(){return jo++}static uuid(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,r=4294967295*Math.random()|0,s=4294967295*Math.random()|0,n=zo[255&e]+zo[e>>8&255]+zo[e>>16&255]+zo[e>>24&255]+"-"+zo[255&t]+zo[t>>8&255]+"-"+zo[t>>16&15|64]+zo[t>>24&255]+"-"+zo[63&r|128]+zo[r>>8&255]+"-"+zo[r>>16&255]+zo[r>>24&255]+zo[255&s]+zo[s>>8&255]+zo[s>>16&255]+zo[s>>24&255];return n.toLowerCase()}static delayExecute(e){const t={args:[],execute:!1},r=(...r)=>{t.args=r,!0!==t.execute&&(t.execute=!0,requestAnimationFrame(()=>{e(...t.args),t.execute=!1}))};return r}}var Eo=Object.defineProperty,Do=(e,t,r)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vo=(e,t,r)=>Do(e,"symbol"!==typeof t?t+"":t,r);class Ao{constructor(){Vo(this,"registrys",{})}listen(e,t,r={}){var s;let n=this.registrys[e];void 0===n&&(n=[],this.registrys[e]=n);const a=void 0===r.insertIndex?n.length:r.insertIndex,i=n.find(e=>e.callback===t);i||n.splice(a,0,{once:null!=(s=r.once)&&s,callback:t});const l=()=>this.unlisten(e,t);return l}unlisten(e,t){let r=this.registrys[e];if(void 0!==r)for(let s=0;s<r.length;s++)if(r[s].callback===t)return r.splice(s,1),void(0===r.length&&delete this.registrys[e])}trigger(e,...t){let r=this.registrys[e];if(void 0!==r&&0!==r.length){r=[...this.registrys[e]];for(let s=0;s<r.length;s++)r[s].callback(...t),!0===r[s].once&&this.unlisten(e,r[s].callback)}}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var $o=Object.defineProperty,To=(e,t,r)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Io=(e,t,r)=>To(e,"symbol"!==typeof t?t+"":t,r);const Wo={instances:new Map,freeWatcher:[],monitoring:()=>{let e=0;const t=()=>{setTimeout(t,5e3);const r=[...Wo.instances.keys()],s=r.length;e>=s&&(e=0);let n=0,a=e;const i=performance.now();while(n<500&&performance.now()-i<5){if(a>=s)break;n++;const t=r[a++];null===Xo.get(t)?Uo(t):e++}};t()}},Lo=e=>"editor"===window["__VYR_RUNTIME_MODE"]?(0,H.Kh)(e):e,Fo=(e,t)=>{switch(e){case"free":Wo.freeWatcher.push(t);break;default:break}},Uo=e=>{const t=Wo.instances.get(e);if(void 0!==t){for(const t of Wo.freeWatcher)t(e);Wo.instances.delete(e)}};class Xo{constructor(e=So.uuid()){Io(this,"uuid");const t=Xo.get(e);if(null!==t)return t.beenInstantiated(t),t;this.uuid=e,Wo.instances.set(e,new WeakRef(this))}static get(e){var t;const r=Wo.instances.get(e);return void 0===r?null:null!=(t=Lo(r.deref()))?t:null}beenInstantiated(e){}}Wo.monitoring();var No=Object.defineProperty,qo=(e,t,r)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bo=(e,t,r)=>qo(e,"symbol"!==typeof t?t+"":t,r),Qo=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});class Go{constructor(e){Bo(this,"_task"),Bo(this,"_status"),Bo(this,"_promise"),Bo(this,"_resolve"),Bo(this,"_reject"),this._task=null!=e?e:()=>Qo(this,null,function*(){}),this._status=1,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}run(){return 1!==this._status||(this._status=2,Promise.resolve(this._task()).then(e=>{2===this._status&&(this._status=3,this._resolve(e))}).catch(e=>{2===this._status&&(this._status=4,this._reject(e))})),this._promise}cancel(){return(1===this._status||2===this._status)&&(this._status=5,this._reject&&this._reject(new Error(Rl.get("asyncTask.task.was.cancelled"))),!0)}done(){return this._promise}}var Ko=Object.defineProperty,Yo=(e,t,r)=>t in e?Ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ho=(e,t,r)=>Yo(e,"symbol"!==typeof t?t+"":t,r),Zo=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});class Jo{constructor(e){Ho(this,"uuid"),this.uuid=e}get url(){return this.uuid}ready(){return Zo(this,null,function*(){})}execute(e,t){}}class eu{static pre(e,t,r=null){const s=[{parent:r,des:e}];while(s.length>0){const e=s.pop();t(e.des,e.parent);for(let t=e.des.children.length-1;t>=0;t--)s.push({parent:e.des,des:e.des.children[t]})}}static preTerminated(e,t,r=null){const s=[{parent:r,des:e}];while(s.length>0){const e=s.pop();if(!0!==t(e.des,e.parent))for(let t=e.des.children.length-1;t>=0;t--)s.push({parent:e.des,des:e.des.children[t]})}}}const tu=new Ao;var ru=Object.defineProperty,su=Object.defineProperties,nu=Object.getOwnPropertyDescriptors,au=Object.getOwnPropertySymbols,iu=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable,ou=(e,t,r)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uu=(e,t)=>{for(var r in t||(t={}))iu.call(t,r)&&ou(e,r,t[r]);if(au)for(var r of au(t))lu.call(t,r)&&ou(e,r,t[r]);return e},cu=(e,t)=>su(e,nu(t)),hu=(e,t,r)=>ou(e,"symbol"!==typeof t?t+"":t,r);const du=e=>"editor"===window["__VYR_RUNTIME_MODE"]?(0,H.Kh)(e):e,pu={classCollection:new Map,prefabToInstanceCollection:new Map,instanceToPrefabCollection:new Map,refGraph:new Map,getParent:e=>{const t=pu.refGraph.get(e);return void 0===t?null:vu.get(t)},setPrefabInstance(e){if(!1===e.prefab)return;let t=this.prefabToInstanceCollection.get(e.prefab.uuid);void 0===t&&(t=[],this.prefabToInstanceCollection.set(e.prefab.uuid,t)),_o.insert(t,e.uuid),this.instanceToPrefabCollection.set(e.uuid,e.prefab.uuid)},markclone:(e,t,r,s)=>{const n=e.clone(!1);r.set(e.uuid,n),n.interactions.length>0&&s.push(n),!1===n.prefab&&(n.prefab={root:t,uuid:e.uuid});for(const a of e.children){const e=pu.markclone(a,t,r,s);n.add(e)}return n}},fu=class e extends Xo{constructor(t={}){var r,s,n;if(super(t.uuid),hu(this,"type"),hu(this,"children"),hu(this,"generatedBy",""),hu(this,"name"),hu(this,"dataset"),hu(this,"variables"),hu(this,"interactions"),hu(this,"selectable"),hu(this,"prefab"),this.type=this.constructor.type,this.name=null!=(r=t.name)?r:"",this.dataset=null!=(s=t.dataset)?s:"",this.variables=t.variables?e.deepClone(t.variables):{},this.interactions=t.interactions?e.deepClone(t.interactions):[],this.selectable=null==(n=t.selectable)||n,this.prefab=!!t.prefab&&e.deepClone(t.prefab),this.children=[],pu.setPrefabInstance(this),Array.isArray(t.children)&&t.children.length>0)for(const a of t.children)du(this).add(e.create(a));return du(this)}static register(e){pu.classCollection.set(e.type,e)}static getClass(e){var t;return null!=(t=pu.classCollection.get(e))?t:null}static create(t){var r;const s=this.getClass(null!=(r=t.type)?r:e.type);if(null===s)throw Rl.get("descriptor.notRegister",{type:t.type});return new s(t)}static serialization(e){return po.stringify(e)}static deserialization(e){return po.parse(e)}static deepClone(e){return po.deepClone(e)}static fixReferences(e,t){for(const r of e)for(const e of r.interactions){const r=Object.keys(e.inputs);for(const s of r){const r=e.inputs[s],n=Object.keys(r);for(const e of n){const s=r[e],n=t.get(s.value);void 0!==n&&(s.value=n.uuid)}}}}static cloneAndFixReferences(e){const t=new Map,r=[],s=pu.markclone(e,e.uuid,t,r);return this.fixReferences(r,t),s}static getPrefab(e){var t;return null!=(t=pu.instanceToPrefabCollection.get(e))?t:null}static getInstanceCollection(e){var t;return null!=(t=pu.prefabToInstanceCollection.get(e))?t:null}beenInstantiated(e){du(e).clear()}add(...e){for(const t of e){if(this.children.indexOf(t)>-1)continue;const e=t.traceAncestor(!1);null!==e.parent&&e.parent.remove(t),this.children.push(t),pu.refGraph.set(t.uuid,this.uuid),tu.trigger("add",{self:t.uuid,puid:this.uuid})}}remove(...e){for(const t of e)for(let e=0;e<this.children.length;e++)if(this.children[e].uuid===t.uuid){tu.trigger("remove",{self:t.uuid,puid:this.uuid}),this.children.splice(e,1),pu.refGraph.delete(t.uuid);break}}traceAncestor(e=!0,t=1/0){let r=pu.getParent(this.uuid);const s={parent:r,uuids:[],collection:[]};if(null===r)return s;if(s.collection.push(r),s.uuids.push(r.uuid),!0===e){let e=1;r=pu.getParent(r.uuid);while(r&&e<t)e++,s.collection.push(r),s.uuids.push(r.uuid),r=pu.getParent(r.uuid)}return s}insert(t,r){const s=e.get(t);if(null===s)return console.warn(Rl.get("descriptor.insert.uuid.notFound",{uuid:t}));const n=e.get(r);if(null===n)return console.warn(Rl.get("descriptor.insert.target.notFound",{target:r}));const a=s.traceAncestor(!1);a.parent&&a.parent.remove(s),n.add(s)}insertBefore(t,r,s=0){const n=e.get(t);if(null===n)return console.warn(Rl.get("descriptor.insert.uuid.notFound",{uuid:t}));const a=e.get(r);if(null===a)return console.warn(Rl.get("descriptor.insert.target.notFound",{target:r}));const i=a.traceAncestor(!1);if(null===i.parent)return;const l=i.parent,o=n.traceAncestor(!1);null!==o.parent&&o.parent.remove(n);let u=-1;for(let e=0;e<l.children.length;e++){const t=l.children[e];t===a&&(u=e+s),tu.trigger("remove",{self:t.uuid,puid:l.uuid})}l.children.splice(u,0,n),pu.refGraph.set(n.uuid,l.uuid);for(const e of l.children)tu.trigger("add",{self:e.uuid,puid:l.uuid})}insertAfter(e,t){return this.insertBefore(e,t,1)}getAdjacent(){const e={parent:"",prev:"",next:""},t=this.traceAncestor(!1);if(null===t.parent)return e;e.parent=t.parent.uuid;const r=t.parent.children.indexOf(this);return r>0&&(e.prev=t.parent.children[r-1].uuid),r<t.parent.children.length-1&&(e.next=t.parent.children[r+1].uuid),e}clone(t=!0){const r=So.uuid(),s=e.create(cu(uu({},this),{uuid:r,children:void 0}));if(!1===t)return s;for(const e of this.children)s.add(e.clone(t));return s}syncWith(t,r=[]){if(this.type!==t.type)return console.warn(Rl.get("descriptor.syncWith.fail"));const s=e.create(cu(uu({},t),{type:this.type,uuid:void 0,children:void 0}));delete s["uuid"],delete s["type"],delete s["children"],delete s["prefab"],delete s["generatedBy"];for(const e of r)delete s[e];Object.assign(this,s)}traverse(e,t=!1,r=null){t?eu.preTerminated(this,e,r):eu.pre(this,e,r)}clear(){this.remove(...this.children)}serialization(){return e.serialization(this)}equals(e,t=["children"]){return Ro.equals(this,e,t)}setNeedsUpdate(){tu.trigger("update",{self:this.uuid})}};hu(fu,"type","Descriptor");let vu=fu;vu.register(vu),Fo("free",e=>{tu.trigger("free",{self:e}),pu.refGraph.delete(e);const t=pu.instanceToPrefabCollection.get(e);if(void 0===t)return;pu.instanceToPrefabCollection.delete(e);const r=pu.prefabToInstanceCollection.get(e);void 0!==r&&_o.remove(r,e)});var yu=Object.defineProperty,mu=(e,t,r)=>t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gu=(e,t,r)=>mu(e,"symbol"!==typeof t?t+"":t,r);const bu={providerCollection:new Map};class xu{constructor(){gu(this,"all",[]),gu(this,"descriptor",[]),gu(this,"interaction",[]),gu(this,"prefab",[]),gu(this,"dataset",[]),gu(this,"style",[]),gu(this,"texture",[]),gu(this,"material",[]),gu(this,"geometry",[])}add(e,t){const r=this[e];if(void 0===r)return console.warn(e,t);r.push(t),this.descriptor.push(t)}forEachForGraphics(e){for(const t of this.dataset)e(t);for(const t of this.style)e(t);for(const t of this.texture)e(t);for(const t of this.material)e(t);for(const t of this.geometry)e(t)}clear(){this.all.length=0,this.descriptor.length=0,this.prefab.length=0,this.dataset.length=0,this.style.length=0,this.interaction.length=0,this.texture.length=0,this.material.length=0,this.geometry.length=0}}class wu{constructor(){gu(this,"_dependencideCollection",new Map),gu(this,"_dependentCollection",new Map)}static build(e,t){let r=e.constructor;while(r.prototype instanceof Xo){const s=bu.providerCollection.get(r.type);r=Object.getPrototypeOf(r),void 0!==s&&s(e,t)}}static register(e,t){bu.providerCollection.set(e,t)}static get(e,t=[]){const r={descriptor:e.uuid,edges:[]};return this.build(e,r),r.edges.length>0&&t.push(r),t}getDescriptor(e){return _u.get(e)}compiler(e){const t={url:e,uuid:"",ports:[]},r=this.getDescriptor(e);return r instanceof vu&&(t.uuid=r.uuid,this.build(r,t.ports)),t}setCell(e,t){let r=this._dependentCollection.get(e);void 0===r?(r=[t],this._dependentCollection.set(e,r)):_o.insert(r,t)}deleteCell(e,t){let r=this._dependentCollection.get(e);void 0!==r&&_o.remove(r,t)}collection(e,t,r,s){const n=t.all.indexOf(e);n>-1||(t.all.push(e),r&&t.add(s,e),this.getDependencide(e,t))}get(e){var t;return null!=(t=this._dependencideCollection.get(e))?t:null}create(e){this.delete(e);const t=this.compiler(e);this._dependencideCollection.set(e,t);for(const r of t.ports)for(const e of r.edges)this.setCell(e.asset,t)}build(e,t=[]){return e.traverse(e=>{wu.get(e,t)}),t}update(e){this.delete(e),this.create(e)}delete(e){const t=this._dependencideCollection.get(e);if(void 0!==t){this._dependencideCollection.delete(e);for(const e of t.ports)for(const r of e.edges)this.deleteCell(r.asset,t)}}getDependencidesByPorts(e,t=new xu){if(0===e.length)return t;for(const r of e)for(const e of r.edges){const r=Po.isDescriptor(e.category,"category");this.collection(e.asset,t,r,e.category)}return t}getDependencide(e,t=new xu){const r=this._dependencideCollection.get(e);return void 0===r||this.getDependencidesByPorts(r.ports,t),t}getDependents(e){var t;return null!=(t=this._dependentCollection.get(e))?t:[]}getUrlCells(e,t=[]){for(const r of e){const e=this.getDependents(r);e.length>0&&t.push({url:r,cells:e})}return t}forEdge(e,t){for(const r of e.ports)for(const e of r.edges)t(r,e)}hasAssetReference(e,t){for(const r of e.edges)if(Array.isArray(r.asset)){for(const e of r.asset)if(e===t)return!0}else if(r.asset===t)return!0;return!1}}var ku=Object.defineProperty,Cu=(e,t,r)=>t in e?ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mu=(e,t,r)=>Cu(e,"symbol"!==typeof t?t+"":t,r),Ou=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Pu={requestpPrefix:["http://","https://"],assetCache:new Map,idToUrlCache:new Map,providerCollection:new Map,assetFactoryCollection:new Map,taskCollection:new Map,activeAssets:[],parseStatus(e){const t=e.split("/"),r=t[t.length-1];return void 0===r?null:Po.parseName(r.split("?")[0])}},Ru=class e{static fetch(e,t){return new Promise((r,s)=>Ou(null,null,function*(){const n=yield fetch(e,t);n.ok?r(n):s(e)}))}static dumpCache(){return[...Pu.assetCache.entries()]}static createVirtualUrl(e){return`/virtual:/${e}`}static provider(e,t){Pu.providerCollection.set(e,t)}static hasProvider(e){return Pu.providerCollection.has(e)}static register(e,t){Pu.assetFactoryCollection.set(e,t)}static joinUrl(t){for(const e of Pu.requestpPrefix)if(t.indexOf(e)>-1)return t;return`${e.baseUrl}${t}`}static load(e,t=!1){return Ou(this,null,function*(){const r=Array.isArray(e)?e:[e],s=[];for(const e of r){if(!e)continue;const r=this.get(e);if(!1===t&&null!==r)continue;const a=Pu.taskCollection.get(e);if(a){s.push(a.done());continue}const i=Pu.parseStatus(e);if(null===i)continue;let l=Pu.assetFactoryCollection.get(i.category);if(void 0===l)throw Rl.get("asset.load.fail",{category:i.category});const o=new Go(()=>Ou(this,null,function*(){const r=yield l(e,t);this.set(e,r)}));Pu.taskCollection.set(e,o),s.push(o.run());try{yield o.done()}catch(n){console.log(n)}finally{Pu.taskCollection.delete(e)}}return Promise.all(s)})}static unload(e){const t=this.get(e);null!==t&&Pu.assetCache.delete(e)}static readly(){const e=Pu.taskCollection.values(),t=[];for(const r of e)t.push(r.done());return Promise.all(t)}static get(e){var t;return null!=(t=Pu.assetCache.get(e))?t:null}static set(e,t){Pu.assetCache.has(e)&&console.log(e,Rl.get("asset.already.exists")),Pu.assetCache.set(e,t),t instanceof vu&&(Pu.idToUrlCache.set(t.uuid,e),this.graph.create(e))}static getTask(e){var t;return null!=(t=Pu.taskCollection.get(e))?t:null}static getUrlByUuid(e){var t;return null!=(t=Pu.idToUrlCache.get(e))?t:""}static activate(...e){Pu.activeAssets.push(...e)}static free(){Pu.activeAssets.length=0}static loadAll(t){return Ou(this,arguments,function*(t,r=!1,s=[]){yield e.load(t,r),e.graph.create(t),s.push(t);const n=e.graph.getDependencide(t),a=[];for(const i of n.all){if(s.includes(i))continue;const t=!e.get(i);a.push(this.loadAll(i,t,s))}yield Promise.all(a)})}};Mu(Ru,"baseUrl",""),Mu(Ru,"graph",new wu);let _u=Ru;const ju=e=>Ou(null,null,function*(){const t=Pu.providerCollection.get(e);return void 0===t?null:yield t()}),zu=e=>Ou(null,null,function*(){const t=yield ju(e);if(null!==t)return t;const r=yield _u.fetch(_u.joinUrl(e)),s=yield r.text(),n=vu.create(vu.deserialization(s));return n});_u.register(Po.style,zu),_u.register(Po.material,zu),_u.register(Po.geometry,zu),_u.register(Po.texture,zu),_u.register(Po.prefab,zu),_u.register(Po.interaction,zu),_u.register(Po.scene,zu);const Su=e=>Ou(null,null,function*(){const t=yield zu(e);return t});_u.register(Po.dataset,Su);const Eu=e=>Ou(null,null,function*(){const t=yield _u.fetch(_u.joinUrl(e)),r=yield t.text();return vu.deserialization(r)});_u.register(Po.json,Eu);const Du=e=>new Promise((t,r)=>Ou(null,null,function*(){try{const s=yield ju(e);if(null===s)return r(Rl.get("asset.provider.notFound",{url:e}));const n=new s.default(e);yield n.ready(),t(n)}catch(s){r(s)}}));_u.register(Po.ts,Du);const Vu=e=>Ou(null,null,function*(){const t=yield _u.fetch(_u.joinUrl(e));return yield t.arrayBuffer()});_u.register(Po.other,Vu);var Au=Object.defineProperty,$u=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,Wu=(e,t,r)=>t in e?Au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lu=(e,t)=>{var r={};for(var s in e)Tu.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&$u)for(var s of $u(e))t.indexOf(s)<0&&Iu.call(e,s)&&(r[s]=e[s]);return r},Fu=(e,t,r)=>Wu(e,"symbol"!==typeof t?t+"":t,r);const Uu=class e extends vu{constructor(e={}){super(e),Fu(this,"_data"),Fu(this,"_extraData",{}),Fu(this,"dataConfigs"),Fu(this,"defaultData"),this.dataConfigs=void 0===e.dataConfigs?[]:vu.deepClone(e.dataConfigs),this.defaultData=void 0===e.defaultData?{}:vu.deepClone(e.defaultData),this._updateData(this.defaultData)}static getData(t){const r=_u.get(t);return r instanceof e?r.getData():null}static getCollection(e){const t=this.getData(e);return t?Array.isArray(t)?t:[t]:[]}_updateData(e){this._data=e}getData(){var e;return null!=(e=this._data)?e:null}setData(e){this._updateData(e),tu.trigger("updateDeps",{self:this.uuid})}setExtraData(e){this._extraData=e}getExtraData(){return this._extraData}toJSON(){const e=this,{_data:t,_extraData:r}=e,s=Lu(e,["_data","_extraData"]);return s}setNeedsUpdate(){}};Fu(Uu,"type","Dataset");let Xu=Uu;vu.register(Xu);var Nu=Object.defineProperty,qu=(e,t,r)=>t in e?Nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bu=(e,t,r)=>qu(e,"symbol"!==typeof t?t+"":t,r);class Qu{constructor(e={}){var t,r,s,n,a,i;Bu(this,"type"),Bu(this,"color"),Bu(this,"inset"),Bu(this,"offsetX"),Bu(this,"offsetY"),Bu(this,"blur"),Bu(this,"spread"),this.type=null!=(t=e.type)?t:0,this.color=new bo(e.color),this.inset=null!=(r=e.inset)&&r,this.offsetX=null!=(s=e.offsetX)?s:0,this.offsetY=null!=(n=e.offsetY)?n:0,this.blur=null!=(a=e.blur)?a:0,this.spread=null!=(i=e.spread)?i:0}getStyleValue(e="px"){if(0===this.type){const t=this.inset?"inset":"";return`${t} ${this.offsetX}${e} ${this.offsetY}${e} ${this.blur}${e} ${this.spread}${e} ${this.color.getColor()}`}return` ${this.offsetX}${e} ${this.offsetY}${e} ${this.spread}${e} ${this.color.getColor()}`}}class Gu{constructor(e={}){var t,r,s,n;Bu(this,"left"),Bu(this,"top"),Bu(this,"right"),Bu(this,"bottom"),this.left=null!=(t=e.left)?t:0,this.top=null!=(r=e.top)?r:0,this.right=null!=(s=e.right)?s:0,this.bottom=null!=(n=e.bottom)?n:0}getStyleValue(e="px"){return`${this.top}${e} ${this.right}${e} ${this.bottom}${e} ${this.left}${e}`}}class Ku{constructor(e,t,r=!1,s=""){Bu(this,"name"),Bu(this,"value"),Bu(this,"inherit"),Bu(this,"unit"),this.name=e,this.value=t,this.inherit=r,this.unit=s}static clone(e){let t;return t=["box-shadow","text-shadow"].includes(e.name)?new Qu(e.value):["background","border-color","color"].includes(e.name)?go.create(e.value):["border-width","padding","margin"].includes(e.name)?new Gu(e.value):e.value,new Ku(e.name,t,e.inherit,e.unit)}getValue(){return this.value instanceof go?this.value.getColor():this.value instanceof Qu||this.value instanceof Gu?this.value.getStyleValue(this.unit):"transition"===this.name?`all ${this.value}s`:this.value+this.unit}}let Yu=null;const Hu=class e extends vu{constructor(t={}){var r;if(super(t),Bu(this,"inherit"),Bu(this,"rules"),Bu(this,"hoverRules"),Bu(this,"activeRules"),this.inherit=null!=(r=t.inherit)?r:"",Array.isArray(t.rules)){this.rules=[];for(const e of t.rules)this.addRule(Ku.clone(e),this.rules)}else this.rules=e.generateRule(!0);if(Array.isArray(t.hoverRules)){this.hoverRules=[];for(const e of t.hoverRules)this.addRule(Ku.clone(e),this.hoverRules)}else this.hoverRules=e.generateRule(!0);if(Array.isArray(t.activeRules)){this.activeRules=[];for(const e of t.activeRules)this.addRule(Ku.clone(e),this.activeRules)}else this.activeRules=e.generateRule(!0)}static get basicStyle(){if(null===Yu){Yu=new e({name:"basic",rules:[]});const t=e.generateRule(!1);for(const e of t)Yu.addRule(e)}return Yu}addRule(e,t=this.rules){for(const r of t)if(e.name===r.name)return;t.push(e)}removeRule(e,t=this.rules){for(let r=0;r<t.length;r++){const s=this.rules[r];if(e.name===s.name)return void t.splice(r,1)}}clearRule(e=this.rules){e.length=0}};Bu(Hu,"type","Style"),Bu(Hu,"basicName","vyr_basic_style"),Bu(Hu,"activeName","vyr_active_style"),Bu(Hu,"generateRule",(e=!0)=>{const t=[];return t.push(new Ku("cursor","default",e)),t.push(new Ku("padding",new Gu,e,"px")),t.push(new Ku("box-sizing","border-box",e)),t.push(new Ku("overflow-x","visible",e)),t.push(new Ku("overflow-y","visible",e)),t.push(new Ku("vertical-align","baseline",e)),t.push(new Ku("transition",.5,e)),t.push(new Ku("background",new bo({opacity:0}),e)),t.push(new Ku("background-blend-mode","normal",e)),t.push(new Ku("background-clip","border-box",e)),t.push(new Ku("box-shadow",new Qu({type:0}),e,"px")),t.push(new Ku("text-shadow",new Qu({type:1}),e,"px")),t.push(new Ku("border-style","solid",e)),t.push(new Ku("border-color",new bo,e)),t.push(new Ku("border-width",new Gu,e,"px")),t.push(new Ku("color",new bo({value:"#000000"}),e)),t.push(new Ku("font-size",16,e,"px")),t.push(new Ku("text-align","left",e)),t.push(new Ku("font-weight","normal",e)),t.push(new Ku("line-height",1.2,e)),t.push(new Ku("font-style","normal",e)),t.push(new Ku("text-decoration","none",e)),t.push(new Ku("letter-spacing",0,e,"px")),t.push(new Ku("white-space","normal",e)),t.push(new Ku("font-family","unset",e)),t});let Zu=Hu;vu.register(Zu);var Ju=Object.defineProperty,ec=(e,t,r)=>t in e?Ju(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tc=(e,t,r)=>ec(e,"symbol"!==typeof t?t+"":t,r);class rc extends vu{constructor(e={}){var t;super(e),tc(this,"category"),this.category=null!=(t=e.category)?t:"html"}static add(e,t){e.add(t);const r=this.getInstanceCollection(e.uuid);if(null!==r)for(const s of r){const e=this.get(s);e.add(t.clone(!0))}}static remove(e,t){e.remove(t);const r=this.getInstanceCollection(t.uuid);if(null!==r)for(const s of r){const e=this.get(s),t=e.traceAncestor(!1);null!==t.parent&&t.parent.remove(e)}}static update(e){e.setNeedsUpdate();const t=this.getInstanceCollection(e.uuid);if(null!==t)for(const r of t){const t=this.get(r);t.syncWith(e),t.setNeedsUpdate()}}}tc(rc,"type","Prefab"),vu.register(rc);var sc=Object.defineProperty,nc=(e,t,r)=>t in e?sc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ac=(e,t,r)=>nc(e,"symbol"!==typeof t?t+"":t,r);const ic=class e extends vu{constructor(e={}){var t;super(e),ac(this,"url"),this.url=null!=(t=e.url)?t:""}static fromPrefab(t,r){const s=vu.cloneAndFixReferences(r),n=new e({name:s.name?`${s.name}-prefab`:"prefab",interactions:s.interactions,prefab:s.prefab,url:t});return n.add(...s.children),n}};ac(ic,"type","PrefabInstance");let lc=ic;vu.register(lc);var oc=Object.defineProperty,uc=(e,t,r)=>t in e?oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cc=(e,t,r)=>uc(e,"symbol"!==typeof t?t+"":t,r);class hc extends vu{constructor(e={}){var t,r,s;super(e),cc(this,"url"),cc(this,"dataConfig"),cc(this,"dataPath"),this.url=null!=(t=e.url)?t:"",this.dataConfig=null!=(r=e.dataConfig)?r:1,this.dataPath=null!=(s=e.dataPath)?s:""}}cc(hc,"type","Dynamic"),vu.register(hc);var dc=Object.defineProperty,pc=(e,t,r)=>t in e?dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fc=(e,t,r)=>pc(e,"symbol"!==typeof t?t+"":t,r);class vc extends vu{constructor(e={}){var t,r,s,n,a,i,l,o,u,c,h,d,p,f,v,y,m,g,b,x,w,k,C;super(e),fc(this,"visible"),fc(this,"active"),fc(this,"style"),fc(this,"display"),fc(this,"flexWrap"),fc(this,"flexDirection"),fc(this,"justifyContent"),fc(this,"alignItems"),fc(this,"alignContent"),fc(this,"margin"),fc(this,"flexGrow"),fc(this,"width"),fc(this,"wUnit"),fc(this,"calcWidth"),fc(this,"height"),fc(this,"hUnit"),fc(this,"calcHeight"),fc(this,"position"),fc(this,"location"),fc(this,"xAxis"),fc(this,"xUnit"),fc(this,"yAxis"),fc(this,"yUnit"),fc(this,"translate"),fc(this,"opacity"),fc(this,"zIndex"),this.visible=null==(t=e.visible)||t,this.active=null!=(r=e.active)&&r,this.style=null!=(s=e.style)?s:"",this.display=null!=(n=e.display)?n:"block",this.flexWrap=null!=(a=e.flexWrap)?a:"nowrap",this.flexDirection=null!=(i=e.flexDirection)?i:"row",this.justifyContent=null!=(l=e.justifyContent)?l:"flex-start",this.alignItems=null!=(o=e.alignItems)?o:"stretch",this.alignContent=null!=(u=e.alignContent)?u:"stretch",this.flexGrow=null!=(c=e.flexGrow)?c:0,this.margin=new Gu(e.margin),this.width=null!=(h=e.width)?h:100,this.wUnit=null!=(d=e.wUnit)?d:"px",this.calcWidth=null!=(p=e.calcWidth)?p:0,this.calcHeight=null!=(f=e.calcHeight)?f:0,this.height=null!=(v=e.height)?v:100,this.hUnit=null!=(y=e.hUnit)?y:"px",this.position=null!=(m=e.position)?m:"static",this.location=El.create(e.location),this.xAxis=null!=(g=e.xAxis)?g:"left",this.xUnit=null!=(b=e.xUnit)?b:"px",this.yAxis=null!=(x=e.yAxis)?x:"top",this.yUnit=null!=(w=e.yUnit)?w:"px",this.translate=El.create(e.translate),this.opacity=null!=(k=e.opacity)?k:1,this.zIndex=null!=(C=e.zIndex)?C:"auto"}}fc(vc,"type","HTML");var yc=Object.defineProperty,mc=(e,t,r)=>t in e?yc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gc=(e,t,r)=>mc(e,"symbol"!==typeof t?t+"":t,r);class bc extends vc{constructor(e={}){var t,r;super(e),gc(this,"text"),gc(this,"backroundIamge"),this.text=null!=(t=e.text)?t:"",this.backroundIamge=null!=(r=e.backroundIamge)?r:""}}gc(bc,"type","Div"),vc.register(bc);var xc=Object.defineProperty,wc=(e,t,r)=>t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kc=(e,t,r)=>wc(e,"symbol"!==typeof t?t+"":t,r);class Cc extends vu{constructor(e={}){var t,r,s,n,a;super(e),kc(this,"scale"),kc(this,"position"),kc(this,"rotation"),kc(this,"layer",0),kc(this,"visible",!0),kc(this,"renderOrder",0),kc(this,"castShadow",!1),kc(this,"receiveShadow",!1),this.scale=e.scale?Ll.create(e.scale):Ll.create(1,1,1),this.position=Ll.create(e.position),this.rotation=oo.create(e.rotation),this.layer=null!=(t=e.layer)?t:0,this.visible=null==(r=e.visible)||r,this.renderOrder=null!=(s=e.renderOrder)?s:0,this.castShadow=null!=(n=e.castShadow)&&n,this.receiveShadow=null!=(a=e.receiveShadow)&&a}}kc(Cc,"type","Node"),vu.register(Cc);var Mc=Object.defineProperty,Oc=(e,t,r)=>t in e?Mc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pc=(e,t,r)=>Oc(e,"symbol"!==typeof t?t+"":t,r);class Rc extends Cc{constructor(e={}){super(e)}}Pc(Rc,"type","Camera");var _c=Object.defineProperty,jc=(e,t,r)=>t in e?_c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zc=(e,t,r)=>jc(e,"symbol"!==typeof t?t+"":t,r);class Sc extends vu{constructor(e={}){var t,r,s,n,a,i;super(e),zc(this,"play"),zc(this,"duration"),zc(this,"count"),zc(this,"mode"),zc(this,"startTime"),zc(this,"path"),zc(this,"frameData"),this.play=null!=(t=e.play)&&t,this.duration=null!=(r=e.duration)?r:0,this.count=null!=(s=e.count)?s:1/0,this.mode=null!=(n=e.mode)?n:1,this.startTime=null!=(a=e.startTime)?a:0,this.path=null!=(i=e.path)?i:"",this.frameData=e.frameData?vu.deepClone(e.frameData):{type:"vector2",startValue:[],endValue:[]}}}zc(Sc,"type","AnimationUnit"),vu.register(Sc);var Ec=Object.defineProperty,Dc=(e,t,r)=>t in e?Ec(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vc=(e,t,r)=>Dc(e,"symbol"!==typeof t?t+"":t,r);class Ac extends vu{constructor(e={}){var t;super(e),Vc(this,"enabled"),this.enabled=null!=(t=e.enabled)&&t}}Vc(Ac,"type","Controller");var $c=Object.defineProperty,Tc=(e,t,r)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ic=(e,t,r)=>Tc(e,"symbol"!==typeof t?t+"":t,r);class Wc extends Ac{constructor(e={}){var t,r,s,n;super(e),Ic(this,"camera"),Ic(this,"mode"),Ic(this,"target"),Ic(this,"event"),this.camera=null!=(t=e.camera)?t:"",this.mode=null!=(r=e.mode)?r:"",this.target=null!=(s=e.target)?s:"",this.event=null!=(n=e.event)?n:""}}Ic(Wc,"type","HTMLTransformController"),Ac.register(Wc);var Lc=Object.defineProperty,Fc=(e,t,r)=>t in e?Lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Uc=(e,t,r)=>Fc(e,"symbol"!==typeof t?t+"":t,r);const Xc=class e extends vc{constructor(e={}){super(e),Uc(this,"backgroundColor"),this.backgroundColor=e.backgroundColor?bo.create(e.backgroundColor):new bo({opacity:0})}static traceService(t){if(null===t)return null;if(t instanceof e)return t instanceof e?t:null;{const e=t.traceAncestor(!1);return this.traceService(e.parent)}}};Uc(Xc,"type","Service");let Nc=Xc;var qc=Object.defineProperty,Bc=(e,t,r)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qc=(e,t,r)=>Bc(e,"symbol"!==typeof t?t+"":t,r);class Gc extends Nc{constructor(e={}){var t,r,s,n,a;super(e),this.width=null!=(t=e.width)?t:100,this.wUnit=null!=(r=e.wUnit)?r:"%",this.height=null!=(s=e.height)?s:100,this.hUnit=null!=(n=e.hUnit)?n:"%",this.position=null!=(a=e.position)?a:"absolute"}}Qc(Gc,"type","HTMLService"),Nc.register(Gc);var Kc=Object.defineProperty,Yc=(e,t,r)=>t in e?Kc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hc=(e,t,r)=>Yc(e,"symbol"!==typeof t?t+"":t,r);class Zc extends vu{constructor(e={}){var t;super(e),Hc(this,"camera"),this.camera=null!=(t=e.camera)?t:""}}Hc(Zc,"type","ServiceScheduler"),vu.register(Zc);var Jc=Object.defineProperty,eh=(e,t,r)=>t in e?Jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,th=(e,t,r)=>eh(e,"symbol"!==typeof t?t+"":t,r),rh=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});class sh{constructor(){th(this,"collection",new Map),th(this,"linkCollection",new Map)}update(e){this.collection.clear(),this.linkCollection.clear();for(const t of e.nodes)this.collection.set(t.id,t);for(const t of e.mappers){let e=this.linkCollection.get(t.source);void 0===e&&(e=[],this.linkCollection.set(t.source,e)),e.push(t.target)}}doBranch(e,t,r,s,n,a,i,l){return rh(this,null,function*(){yield this.doExecute(e,t,r,s,n,a,i,l)})}doCondition(e,t,r,s,n,a,i,l){return rh(this,null,function*(){const o=a.get(t),u=a.get(e);o===(null==u?void 0:u.condition.value)&&(yield this.doExecute(e,t,r,s,n,a,i,l))})}doExecute(e,t,r,s,n,a,i,l){return rh(this,null,function*(){const t=this.linkCollection.get(e);if(void 0!==t)for(const o of t)yield this.doNext(o,e,r,s,n,a,i,l)})}doNext(e,t,r,s,n,a,i,l){return rh(this,null,function*(){var o;const u=this.collection.get(e);if(void 0===u)return;const c=null!=(o=r[e])?o:{},h=_u.get(u.url);if(h){const r={input:{previous:t,default:u.input,user:c},result:a,trigger:i};l&&Object.assign(r,l);const s=yield h.execute(n,r);a.set(e,s)}"Branch"===u.interaction?yield this.doBranch(e,t,r,s,n,a,i,l):"Condition"===u.interaction?(!1===a.has(e)&&a.set(e,u.input),yield this.doCondition(e,t,r,s,n,a,i,l)):yield this.doExecute(e,t,r,s,n,a,i,l)})}execute(e,t,r,s,n){return rh(this,null,function*(){for(const a of t.roots){const i=new Map;yield this.doNext(a,"",e,t,r,i,s,n)}})}}var nh=Object.defineProperty,ah=(e,t,r)=>t in e?nh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ih=(e,t,r)=>ah(e,"symbol"!==typeof t?t+"":t,r),lh=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const oh={executorPool:new WeakMap};class uh extends vu{constructor(e={}){super(e),ih(this,"roots"),ih(this,"nodes"),ih(this,"mappers"),this.roots=e.roots?po.deepClone(e.roots):[],this.nodes=e.nodes?po.deepClone(e.nodes):[],this.mappers=e.mappers?po.deepClone(e.mappers):[]}addNode(e){const t=e.length,r=t-1;for(let s=0;s<t;s++){const t=e[s];this.nodes.push(t),s<r&&this.mappers.push({source:t.id,target:e[s+1].id})}}execute(e,t,r,s){return lh(this,null,function*(){let n=oh.executorPool.get(this);void 0===n&&(n=new sh,n.update(this),oh.executorPool.set(this,n)),yield n.execute(e,this,t,r,s)})}setNeedsUpdate(){const e=oh.executorPool.get(this);void 0!==e&&e.update(this)}}ih(uh,"type","Interaction"),vu.register(uh);var ch=Object.defineProperty,hh=(e,t,r)=>t in e?ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dh=(e,t,r)=>hh(e,"symbol"!==typeof t?t+"":t,r);const ph={idBuilder:0,collection:new Map};class fh{constructor(){dh(this,"id",ph.idBuilder++),dh(this,"object")}static seGraphics(e,t){ph.collection.set(e.id,t)}static getGraphics(e){var t;return null!=(t=ph.collection.get(e.id))?t:null}static deleteGraphics(e){ph.collection.delete(e.id)}add(e){}remove(e){}}var vh=Object.defineProperty,yh=(e,t,r)=>t in e?vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mh=(e,t,r)=>yh(e,"symbol"!==typeof t?t+"":t,r);class gh extends fh{constructor(){super(...arguments),mh(this,"_styleCollection",new Map),mh(this,"_className",[])}getStyleValue(){const e=[],t=this._styleCollection.entries();for(const[r,s]of t){const t=[];if(t.push(`${r}{`),0===s.length)t.push("/* 如果需要样式,在这里添加 */");else for(const e of s)t.push(`${e.name}:${e.value};`);t.push("}"),e.push(t.join("\n"))}return e}getClassName(){return[...this._className]}updateRule(e){let t=0;for(const r of e.cssRules)if(r instanceof CSSStyleRule){const e=this._styleCollection.get(r.selectorText);if(void 0===e)continue;t++,r.style.cssText="";for(const t of e)r.style.setProperty(t.name,t.value);if(2===t)return!0}return!1}update(e,t){this._className.length=0,this._styleCollection.clear();let r=_u.get(e.inherit);if(r){const e=fh.getGraphics(this),t=e.getInterpreter(r);this._className.push(t.className)}this._className.push(t);const s=[];for(const i of e.rules){if(!0===i.inherit)continue;const e=i.getValue();s.push({name:i.name,value:e})}this._styleCollection.set(`.${t}`,s);const n=[];for(const i of e.hoverRules){if(!0===i.inherit)continue;const e=i.getValue();n.push({name:i.name,value:e})}this._styleCollection.set(`.${t}:hover`,n);const a=[];for(const i of e.activeRules){if(!0===i.inherit)continue;const e=i.getValue();a.push({name:i.name,value:e})}this._styleCollection.set(`.${t}.${Zu.activeName}`,a)}}var bh=Object.defineProperty,xh=(e,t,r)=>t in e?bh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wh=(e,t,r)=>xh(e,"symbol"!==typeof t?t+"":t,r);class kh extends fh{constructor(e){super(),wh(this,"play"),wh(this,"startTime"),wh(this,"duration"),wh(this,"mode"),wh(this,"path"),wh(this,"keys"),wh(this,"count"),wh(this,"uptime"),wh(this,"unlisten"),wh(this,"target"),wh(this,"rawValue"),wh(this,"update",e=>{if(!1===kd.enabled)return;if(!1===this.play)return;const t=this.uptime+e.delta,r=(this.uptime-this.startTime)/this.duration;if(r>this.count)return void(this.uptime=t);const s=t-this.startTime;if(s<0)return void(this.uptime=t);const n=s/this.duration;let a;a=n>this.count?2===this.mode?this.count%2===1?1:0:1:this.getRadio(n%1,Math.floor(n)),this.setValue(a),this.uptime=t}),this.play=e.play,this.startTime=e.startTime,this.duration=e.duration,this.mode=e.mode,this.path=e.path,this.keys=Ro.parseKey(e.path),this.count=e.count,this.uptime=0}static parse(e){switch(e.frameData.type){case"number":return new Ch(e,e.frameData.startValue,e.frameData.endValue);case"vector2":return new Oh(e,new El(...e.frameData.startValue),new El(...e.frameData.endValue));case"vector3":return new Rh(e,new Ll(...e.frameData.startValue),new Ll(...e.frameData.endValue));case"euler":return new Sh(e,new oo(...e.frameData.startValue),new oo(...e.frameData.endValue));case"boolean":return new Eh(e,e.frameData.startValue,e.frameData.endValue);case"color":return new Dh(e,new mo(e.frameData.startValue),new mo(e.frameData.endValue))}}listen(e){e.engine.listen("afterRender",this.update),this.unlisten=()=>{e.engine.unlisten("afterRender",this.update),this.reset()}}setTarget(e){this.target=e;let t=e;for(const r of this.keys)if(t=t[r],void 0===t)return;this.rawValue=vu.deepClone(t)}getRadio(e,t){return 2===this.mode&&(e=t%2===1?1-e:e),e}traverseWithTailCallback(e){let t=this.target;const r=this.keys.length-1;for(let s=0;s<=r;s++)if(s===r){const r=this.keys[s];if(void 0===t[r])return;e(t,r),this.target.setNeedsUpdate()}else if(t=t[this.keys[s]],!t)return}reset(e=0){this.uptime=0,this.traverseWithTailCallback((e,t)=>{e[t]=vu.deepClone(this.rawValue)}),this.update({delta:e})}}class Ch extends kh{constructor(e,t,r){super(e),wh(this,"startValue"),wh(this,"distance"),this.startValue=t,this.distance=r-t}setValue(e){const t=this.startValue+this.distance*e;this.traverseWithTailCallback((e,r)=>{e[r]=t})}}let Mh=null;class Oh extends kh{constructor(e,t,r){super(e),wh(this,"startValue"),wh(this,"endValue"),this.startValue=t,this.endValue=r}static get vector(){return null===Mh&&(Mh=new El),Mh}setValue(e){this.traverseWithTailCallback((t,r)=>{Oh.vector.lerpVectors(this.startValue,this.endValue,e),t[r].x=Oh.vector.x,t[r].y=Oh.vector.y})}}let Ph=null;class Rh extends kh{static get vector(){return null===Ph&&(Ph=new Ll),Ph}constructor(e,t,r){super(e),this.startValue=t,this.endValue=r}setValue(e){this.traverseWithTailCallback((t,r)=>{Rh.vector.lerpVectors(this.startValue,this.endValue,e),t[r].x=Rh.vector.x,t[r].y=Rh.vector.y,t[r].z=Rh.vector.z})}}let _h=null,jh=null,zh=null;class Sh extends kh{static get euler(){return null===_h&&(_h=new oo),_h}static get startQuat(){return null===jh&&(jh=new $l),jh}static get endQuat(){return null===zh&&(zh=new $l),zh}constructor(e,t,r){super(e),this.startValue=t,this.endValue=r}setValue(e){this.traverseWithTailCallback((t,r)=>{Sh.startQuat.setFromEuler(this.startValue),Sh.endQuat.setFromEuler(this.endValue),Sh.startQuat.slerp(Sh.endQuat,e),Sh.euler.setFromQuaternion(Sh.startQuat),t[r].x=Sh.euler.x,t[r].y=Sh.euler.y,t[r].y=Sh.euler.y,t[r].order=Sh.euler.order})}}class Eh extends kh{constructor(e,t,r){super(e),this.startValue=t,this.endValue=r}setValue(e){switch(e){case 0:this.traverseWithTailCallback((e,t)=>{e[t]=this.startValue});break;case 1:this.traverseWithTailCallback((e,t)=>{e[t]=this.endValue});break}}}class Dh extends kh{constructor(e,t,r){super(e),this.startValue=t,this.endValue=r}setValue(e){this.traverseWithTailCallback((t,r)=>{const s=mo.mix(this.startValue,this.endValue,e);t[r]=s.toHexString()})}}var Vh=Object.defineProperty,Ah=(e,t,r)=>t in e?Vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$h=(e,t,r)=>Ah(e,"symbol"!==typeof t?t+"":t,r);class Th extends fh{constructor(){super(...arguments),$h(this,"_parent",""),$h(this,"collection",[])}bind(e){this._parent=e}unbind(){if(""===this._parent)return;const e=fh.getGraphics(this),t=vu.get(this._parent);if(t instanceof vu){const r=e.getActor(t);if(null!==r)for(const e of this.collection)r.remove(e)}this.collection.length=0,this._parent=""}add(e){if(e instanceof Th)return;const t=fh.getGraphics(this),r=vu.get(this._parent);if(r instanceof vu){const s=t.getActor(r);null!==s&&s.add(e)}_o.insert(this.collection,e)}remove(e){if(e instanceof Th)return;const t=fh.getGraphics(this),r=vu.get(this._parent);if(r instanceof vu){const s=t.getActor(r);null!==s&&s.remove(e)}_o.remove(this.collection,e)}}var Ih=Object.defineProperty,Wh=(e,t,r)=>t in e?Ih(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lh=(e,t,r)=>Wh(e,"symbol"!==typeof t?t+"":t,r);const Fh=class e extends fh{constructor(e){super(),Lh(this,"uuid"),Lh(this,"unlisteners",[]),Lh(this,"className"),this.uuid=e}static isTrigger(t,r){return t.getAttribute(e.uuidKey)===r}createDOM(){const t=document.createElement("div");return t.setAttribute(e.uuidKey,this.uuid),t.style.width="100%",t.style.height="100%",t.style.position="relative",t.style.backgroundSize="100% 100%",t.style.backgroundRepeat="no-repeat",t.style.backgroundPosition="0% 0%",t}getWrapperStyle(e){const t={pointerEvents:"auto"};t.flexGrow=e.flexGrow+"",!1===e.visible?t.display="none":t.display=e.display;const r=e.width;t.width=r<0?"auto":`calc(${r+e.wUnit} + ${e.calcWidth}px)`;const s=e.height;t.height=s<0?"auto":`calc(${s+e.hUnit} + ${e.calcHeight}px)`,t.position=e.position,t.transform="",0!==e.translate.x&&(t.transform+=`translateX(${e.translate.x}%) `),0!==e.translate.y&&(t.transform+=`translateY(${e.translate.y}%) `);const n=e.location.x+e.xUnit;"left"===e.xAxis?(t.left=n,t.right=""):(t.right=n,t.left="");const a=e.location.y+e.yUnit;return"top"===e.yAxis?(t.top=a,t.bottom=""):(t.bottom=a,t.top=""),t.marginLeft=e.margin.left+"px",t.marginTop=e.margin.top+"px",t.marginRight=e.margin.right+"px",t.marginBottom=e.margin.bottom+"px",t}getLayoutStyle(e){const t={};return t.display=e.display,t.flexWrap=e.flexWrap,t.flexDirection=e.flexDirection,t.justifyContent=e.justifyContent,t.alignItems=e.alignItems,t.alignContent=e.alignContent,t.opacity=e.opacity+"",t.zIndex=e.zIndex,t}setHTMLStyle(e,t){Object.assign(e.style,t)}getStyleClass(e){const t=_u.get(e.style);if(null===t)return[];const r=fh.getGraphics(this),s=r.getInterpreter(t).getActor(e);return s.getClassName()}setStyleClass(e,t){this.clearStyleClass(e),this.className=t,e.classList.add(...t)}clearStyleClass(e){void 0!==this.className&&(e.classList.remove(...this.className),delete this.className)}bindInteraction(t,r,s,n){const a=_u.get(r.url),i=t=>{e.isTrigger(t.target,this.uuid)&&(t.stopPropagation(),a.execute(r.inputs,n,s))},l=n.engine.inputSystem.listen(r.type,i,{target:t});this.unlisteners.push(()=>n.engine.inputSystem.unlisten(l))}cleanInteraction(){for(const e of this.unlisteners)e();this.unlisteners.length=0}setHTMLInteraction(t,r){this.cleanInteraction();const s=e.getGraphics(this);for(const e of r.interactions)e.url&&this.bindInteraction(t,e,r,s)}};Lh(Fh,"className","vyr-html-wrapper"),Lh(Fh,"uuidKey","data-vyr-uuid");let Uh=Fh;var Xh=Object.defineProperty,Nh=(e,t,r)=>t in e?Xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qh=(e,t,r)=>Nh(e,"symbol"!==typeof t?t+"":t,r);class Bh extends Uh{constructor(e){super(e),qh(this,"_text",null),qh(this,"_wrapper",null),qh(this,"DOM"),this.DOM=this.createDOM();const t=this.getWrapper();t.appendChild(this.DOM)}get text(){return null===this._text&&(this._text=document.createTextNode("")),this._text}createWrapper(){const e=document.createElement("div");return e.setAttribute("class",Uh.className),e.setAttribute(Uh.uuidKey,this.uuid),e}getWrapper(){return null===this._wrapper&&(this._wrapper=this.createWrapper()),this._wrapper}add(e){if(e instanceof Uh){const t=e.getWrapper();if(null===t)return;if(this.DOM.contains(t))return;this.DOM.appendChild(t)}}remove(e){if(e instanceof Uh){const t=e.getWrapper();if(null===t)return;this.DOM.contains(t)&&this.DOM.removeChild(t)}}update(e){const t=this.getWrapper(),r=this.getWrapperStyle(e);this.setHTMLStyle(t,r),this.setHTMLInteraction(t,e),this.setHTMLStyle(this.DOM,this.getLayoutStyle(e));const s=[...this.getStyleClass(e)];e.active&&s.push(Zu.activeName),this.setStyleClass(this.DOM,s),this.DOM.style.backgroundImage=e.backroundIamge?`url(${e.backroundIamge})`:"",this.text.textContent=e.text,!1===this.DOM.contains(this.text)&&this.DOM.appendChild(this.text)}}var Qh=Object.defineProperty,Gh=(e,t,r)=>t in e?Qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kh=(e,t,r)=>Gh(e,"symbol"!==typeof t?t+"":t,r);class Yh extends Uh{constructor(e){super(e),Kh(this,"_wrapper",null),Kh(this,"DOM"),this.DOM=this.createDOM();const t=this.getWrapper();t.appendChild(this.DOM)}createWrapper(){const e=document.createElement("div");return e.setAttribute("class",Uh.className),e.setAttribute(Uh.uuidKey,this.uuid),e}getWrapper(){return null===this._wrapper&&(this._wrapper=this.createWrapper()),this._wrapper}add(e){if(e instanceof Uh){const t=e.getWrapper();if(null===t)return;if(this.DOM.contains(t))return;this.DOM.appendChild(t)}}remove(e){if(e instanceof Uh){const t=e.getWrapper();if(null===t)return;this.DOM.contains(t)&&this.DOM.removeChild(t)}}update(e){const t=this.getWrapper();this.setHTMLStyle(t,this.getWrapperStyle(e));const r=[...this.getStyleClass(e)];e.active&&r.push(Zu.activeName),this.setStyleClass(this.DOM,r)}}var Hh=Object.defineProperty,Zh=(e,t,r)=>t in e?Hh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jh=(e,t,r)=>Zh(e,"symbol"!==typeof t?t+"":t,r);class ed{constructor(){Jh(this,"isDragging",!1),Jh(this,"isResizing",!1),Jh(this,"offset",new El),Jh(this,"resizeData",{direction:"",startWidth:0,startHeight:0,calcHeight:0,calcWidth:0,startX:0,startY:0}),Jh(this,"target",{element:document.createElement("div"),parent:null,initialRect:new DOMRect})}}class td extends fh{constructor(){super(),Jh(this,"state",new ed),Jh(this,"offset",new El),Jh(this,"events",[]),Jh(this,"element"),Jh(this,"circles"),Jh(this,"target"),Jh(this,"descriptor"),Jh(this,"change",(e="change")=>{const t=_u.get(this.descriptor.event);if(null===t)return;const r=fh.getGraphics(this),s={event:{type:e,target:this.descriptor.target},trigger:this.descriptor,input:void 0,result:void 0};t.execute(r,s)}),Jh(this,"selectTargetElement",e=>{this.state.target.element=e,this.state.target.parent=e.parentElement,this.state.target.initialRect=e.getBoundingClientRect(),this.updateOffset(this.state.target.initialRect),this.updateDraggableElement(),this.element.style.display="block"}),Jh(this,"updateDraggableElement",()=>{if(!this.state.target.element)return;const e=this.state.target.element.getBoundingClientRect();this.element.style.left=`${e.left}px`,this.element.style.top=`${e.top}px`,this.element.style.width=`${e.width}px`,this.element.style.height=`${e.height}px`}),Jh(this,"syncTargetPosition",(e=!0)=>{if(!this.state.target.element)return;if(!this.state.target.parent)return;const t=this.element.getBoundingClientRect(),r=this.state.target.parent.getBoundingClientRect();e&&(this.setDimension("width",t.width-this.state.resizeData.calcWidth,r.width,this.target.wUnit),this.setDimension("height",t.height-this.state.resizeData.calcHeight,r.height,this.target.hUnit)),"fixed"===this.target.position?this.setFixedPosition(t):this.setRelativePosition(t,r),this.target.setNeedsUpdate()}),Jh(this,"setDimension",(e,t,r,s)=>{this.target[e]="%"===s?t/r*100:t}),Jh(this,"setFixedPosition",e=>{if("left"===this.target.xAxis){const t=e.left-this.offset.x;this.target.location.x="%"===this.target.xUnit?t/window.innerWidth*100:t}else{const t=window.innerWidth-e.right+this.offset.x;this.target.location.x="%"===this.target.xUnit?t/window.innerWidth*100:t}if("top"===this.target.yAxis){const t=e.top-this.offset.y;this.target.location.y="%"===this.target.yUnit?t/window.innerHeight*100:t}else{const t=window.innerHeight-e.bottom+this.offset.y;this.target.location.y="%"===this.target.yUnit?t/window.innerHeight*100:t}}),Jh(this,"setRelativePosition",(e,t)=>{if("left"===this.target.xAxis){const r=e.left-t.left-this.offset.x;this.target.location.x="%"===this.target.xUnit?r/t.width*100:r}else{const r=t.right-e.right+this.offset.x;this.target.location.x="%"===this.target.xUnit?r/t.width*100:r}if("top"===this.target.yAxis){const r=e.top-t.top-this.offset.y;this.target.location.y="%"===this.target.yUnit?r/t.height*100:r}else{const r=t.bottom-e.bottom+this.offset.y;this.target.location.y="%"===this.target.yUnit?r/t.height*100:r}}),Jh(this,"handleDragStart",e=>{if(!1!==this.descriptor.enabled&&this.state.target.element&&"static"!==this.target.position&&"relative"!==this.target.position&&e.target instanceof HTMLElement&&!1===e.target.classList.contains("resize-handle")){this.state.isDragging=!0;const t=this.element.getBoundingClientRect();this.state.offset=new El(e.clientX-t.left,e.clientY-t.top),this.state.target.element.style.transition="none",e.preventDefault(),this.change("mousedown")}}),Jh(this,"handleResizeStart",e=>{if(!1!==this.descriptor.enabled&&this.state.target.element&&"static"!==this.target.position&&"relative"!==this.target.position&&e.target instanceof HTMLElement){this.state.isResizing=!0,this.state.resizeData.direction=e.target.classList[1];const t=this.element.getBoundingClientRect();this.state.resizeData.calcWidth=this.target.calcWidth,this.state.resizeData.calcHeight=this.target.calcHeight,this.state.resizeData.startWidth=t.width,this.state.resizeData.startHeight=t.height,this.state.resizeData.startX=t.left,this.state.resizeData.startY=t.top,this.state.offset=new El(e.clientX,e.clientY),this.state.target.element.style.transition="none",e.preventDefault(),this.change("mousedown")}}),Jh(this,"handleMouseMove",e=>{this.state.target.element&&(this.state.isDragging?(this.element.style.left=e.clientX-this.state.offset.x+"px",this.element.style.top=e.clientY-this.state.offset.y+"px",this.syncTargetPosition(!1),this.change()):this.state.isResizing&&(this.handleResizing(e),this.change()))}),Jh(this,"handleResizing",e=>{const t=e.clientX-this.state.offset.x,r=e.clientY-this.state.offset.y,{direction:s,startWidth:n,startHeight:a,startX:i,startY:l}=this.state.resizeData;let o=n,u=a,c=i,h=l;switch(s){case"0":o=Math.max(20,n-t),u=Math.max(20,a-r),c=i+(n-o),h=l+(a-u);break;case"1":o=Math.max(20,n+t),u=Math.max(20,a-r),h=l+(a-u);break;case"3":o=Math.max(20,n-t),u=Math.max(20,a+r),c=i+(n-o);break;case"2":o=Math.max(20,n+t),u=Math.max(20,a+r);break}this.element.style.width=`${o}px`,this.element.style.height=`${u}px`,this.element.style.left=`${c}px`,this.element.style.top=`${h}px`,this.updateOffset(this.element.getBoundingClientRect()),this.syncTargetPosition()}),Jh(this,"handleMouseEnd",()=>{this.state.target.element&&(this.state.isDragging?this.state.isDragging=!1:this.state.isResizing&&(this.state.isResizing=!1),this.change("mouseup"))}),this.element=this.createElement(),this.circles=this.createCircle();for(const e of this.circles)this.element.appendChild(e);document.body.appendChild(this.element)}createElement(){const e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.zIndex="2147483647",e.style.userSelect="none",e.addEventListener("contextmenu",e=>{e.stopPropagation(),e.preventDefault(),this.change("contextmenu")});const t=document.createElement("div");return t.style.position="absolute",t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%,-50%)",t.style.width="100%",t.style.height="100%",t.style.border="6px double #1b8fdfcc",t.style.boxSizing="content-box",t.style.pointerEvents="none",e.appendChild(t),e}createCircle(){const e=[],t=[[0,0],[100,0],[100,100],[0,100]];for(let r=0;r<t.length;r++){const s=document.createElement("div");this.setCircleStyle(s,r,t[r]),e.push(s)}return e}setCircleStyle(e,t,r){e.classList.add("resize-handle",t.toString()),e.style.borderRadius="50%",e.style.width="12px",e.style.height="12px",e.style.position="absolute",e.style.left=r[0]+"%",e.style.top=r[1]+"%",e.style.transform="translate(-50%,-50%)",e.style.border="2px double #1b8fdfcc",e.style.background="#ffffff",e.style.boxShadow="0 0 4px #1b8fdfcc",e.style.zIndex="99999",e.style.cursor=[1,3].includes(t)?"nesw-resize":"nwse-resize"}listen(e){this.reset();const t=fh.getGraphics(this),r=t.variableProxy.get(e.target,t);if(r instanceof vc){const s=t.getActor(r);if(null===s)return;const n=s.getWrapper();if(null===n)return;this.descriptor=e,this.target=r,this.selectTargetElement(n),this.events.push(t.engine.inputSystem.listen("mousedown",this.handleDragStart,{target:this.element}));for(const e of this.circles)this.events.push(t.engine.inputSystem.listen("mousedown",this.handleResizeStart,{target:e}));this.events.push(t.engine.inputSystem.listen("mousemove",this.handleMouseMove,{target:document})),this.events.push(t.engine.inputSystem.listen("mouseup",this.handleMouseEnd,{target:document}))}}unlisten(){this.reset()}update(e){this.listen(e)}reset(){const e=fh.getGraphics(this);for(const t of this.events)e.engine.inputSystem.unlisten(t);this.events.length=0,this.element.style.display="none",this.state.target.element=document.createElement("div"),this.state.target.parent=null,this.target=void 0}dispose(){this.reset(),this.element.remove()}updateOffset(e=this.state.target.initialRect){this.offset.set(e.width*(this.target.translate.x/100),e.height*(this.target.translate.y/100))}}var rd=Object.defineProperty,sd=(e,t,r)=>t in e?rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nd=(e,t,r)=>sd(e,"symbol"!==typeof t?t+"":t,r);const ad={factory:!1,classCollection:new Map,actorCollection:new Map};class id{constructor(e,t){if(nd(this,"unit"),nd(this,"graphics"),!1===ad.factory)throw Rl.get("interpreter.new.fail");this.unit=e,this.graphics=t}static register(e){ad.classCollection.set(e.type,e)}static getClass(e){var t;return null!=(t=ad.classCollection.get(e))?t:null}createActor(e){return new fh}getActor(e){let t=ad.actorCollection.get(this);return void 0!==t||(t=this.createActor(e),fh.seGraphics(t,this.graphics),ad.actorCollection.set(this,t)),t}update(e){}mount(e,t,r){}unmount(e,t,r){}free(e){const t=ad.actorCollection.get(this);void 0!==t&&(fh.seGraphics(t,this.graphics),ad.actorCollection.delete(this))}pickup(e,t){}}nd(id,"type","Interpreter");var ld=Object.defineProperty,od=(e,t,r)=>t in e?ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ud=(e,t,r)=>od(e,"symbol"!==typeof t?t+"":t,r);class cd extends id{}ud(cd,"type",Xu.type),id.register(cd);var hd=Object.defineProperty,dd=(e,t,r)=>t in e?hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pd=(e,t,r)=>dd(e,"symbol"!==typeof t?t+"":t,r);let fd=null;const vd=class e extends id{constructor(e,t){super(e,t),pd(this,"className"),this.className=`vyr_${e.uuid}`}static get sheet(){if(null===fd){const e=document.createElement("style");e.setAttribute("type","text/css"),document.head.appendChild(e),fd=e.sheet}return fd}static insertRule(t){for(const r of t)this.sheet.insertRule(r,e.sheet.cssRules.length)}createActor(e){return new gh}update(t){super.update(t);const r=this.getActor(t);if(r.update(t,this.className),!0===r.updateRule(e.sheet))return;const s=r.getStyleValue();e.insertRule(s)}free(t){const r=[`.${this.className}`,`.${this.className}:hover`];for(let s=e.sheet.cssRules.length-1;s>=0;s--){const t=e.sheet.cssRules[s];if(t instanceof CSSStyleRule){const s=r.indexOf(t.selectorText);if(s>-1&&(e.sheet.deleteRule(s),r.splice(s,1),0===r.length))return}}super.free(t)}};pd(vd,"type",Zu.type);let yd=vd;id.register(yd);var md=Object.defineProperty,gd=(e,t,r)=>t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bd=(e,t,r)=>gd(e,"symbol"!==typeof t?t+"":t,r);const xd={collection:[]},wd=class e extends id{constructor(){super(...arguments),bd(this,"animationUnit",null)}static reset(t=0){const r=e.enabled;e.enabled=!0;for(const e of xd.collection)e.reset(t);e.enabled=r}freeUnit(){null!==this.animationUnit&&(_o.remove(xd.collection,this.animationUnit),this.animationUnit.unlisten(),this.animationUnit=null)}update(e){super.update(e),this.freeUnit();const t=Sc.get(this.unit.parent);null!==t&&(this.animationUnit=kh.parse(e),_o.insert(xd.collection,this.animationUnit),this.animationUnit.setTarget(t),this.animationUnit.listen(this.graphics))}unmount(e,t,r){this.freeUnit(),super.unmount(e,t,r)}};bd(wd,"type",Sc.type),bd(wd,"enabled",!0);let kd=wd;id.register(kd);var Cd=Object.defineProperty,Md=(e,t,r)=>t in e?Cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Od=(e,t,r)=>Md(e,"symbol"!==typeof t?t+"":t,r);class Pd extends id{createActor(e){return new Th}mount(e,t,r){super.mount(e,t,r);const s=this.getActor(e);s.bind(r.uuid)}unmount(e,t,r){super.unmount(e,t,r)}free(e){const t=this.getActor(e);t.unbind(),super.free(e)}}Od(Pd,"type",vu.type),id.register(Pd);var Rd=Object.defineProperty,_d=(e,t,r)=>t in e?Rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jd=(e,t,r)=>_d(e,"symbol"!==typeof t?t+"":t,r);const zd=class e{constructor(e){jd(this,"url"),jd(this,"operationCollection",[]),jd(this,"updateCollection",[]),this.url=e}iterator(t,r){let s;switch(r){case e.Update:s=[...this.updateCollection],this.updateCollection.length=0;break;default:s=[...this.operationCollection],this.operationCollection.length=0;break}for(const e of s)t(e);return s}clear(t){let r;switch(t){case e.Update:r=this.updateCollection;break;default:r=this.operationCollection;break}r.length=0}};jd(zd,"Add",1),jd(zd,"Remove",2),jd(zd,"Update",3);Object.defineProperty;Object.defineProperty;Object.defineProperty;Object.defineProperty;var Sd=Object.defineProperty,Ed=(e,t,r)=>t in e?Sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dd=(e,t,r)=>Ed(e,"symbol"!==typeof t?t+"":t,r);class Vd extends Pd{constructor(){super(...arguments),Dd(this,"_currentDepth",0),Dd(this,"_datasetCloneCollection",new Map),Dd(this,"_rawToCloneCollection",new Map),Dd(this,"_cloneCollection",new Map),Dd(this,"_onAdd",e=>{const t=this._rawToCloneCollection.get(e.puid);if(void 0===t)return;const r=t.length,s=vu.get(e.self);for(let n=0;n<r;n++){const e=t[n],r=new Map,a=[],i=this._markAndClone(s,e.dataset,e.generatedBy,r,a);vu.fixReferences(a,r),e.add(i)}}),Dd(this,"_onRemove",e=>{const t=this._rawToCloneCollection.get(e.self);if(void 0===t)return;while(t.length>0){const e=t.pop();if(void 0===e)continue;const r=this.graphics.getParent(e.uuid);null!==r&&(r.remove(e),_o.remove(t,e))}const r=vu.get(e.self);r.traverse(e=>{this._rawToCloneCollection.delete(e.uuid)})}),Dd(this,"_onUpdate",e=>{const t=this._rawToCloneCollection.get(e.self);if(void 0===t)return;const r=vu.get(e.self);if(r instanceof hc){const t=r.traceAncestor();if(null===t.parent)return;const s={self:e.self,puid:t.parent.uuid};this._onRemove(s),this._onAdd(s)}else for(const s of t)s.syncWith(r),s.setNeedsUpdate()}),Dd(this,"_clearByOnUpdate",e=>{if(e.self!==this.unit.uuid)return;this._rawToCloneCollection.clear(),this._datasetCloneCollection.clear();const t=this._cloneCollection.values();for(const r of t)tu.trigger("remove",{self:r.uuid,puid:this.unit.uuid});this._cloneCollection.clear()})}_getDataset(e,t,r){const s=_u.createVirtualUrl(`dynamic/dataset/${e.uuid}-${r}-${this._currentDepth}${Po.datasetSuffix}`);if(this._datasetCloneCollection.has(s))return s;const n=t[r],a=new Xu;return a.setExtraData({index:r}),a.setData(n),_u.set(s,a),this._datasetCloneCollection.set(s,a),s}_getDataByDataset(e){var t;const r=this._datasetCloneCollection.get(e);return null!=(t=null==r?void 0:r.getData())?t:null}_setCache(e,t){let r=this._rawToCloneCollection.get(e.uuid);void 0===r&&(r=[],this._rawToCloneCollection.set(e.uuid,r)),r.push(t)}_markSubDynamic(e,t,r,s,n){if(this._currentDepth>3e3)return void tu.trigger("__VYR_RUNTIME@remote",{type:"Dynamic",uuid:this.unit.uuid});this._currentDepth+=1;const a=_u.get(e.url);if(2===e.dataConfig){const i=this._getDataByDataset(t.dataset);if(null===i||"object"!==typeof i)return;const l=i[e.dataPath];if(!1===Array.isArray(l)||0===l.length)return;for(let o=0;o<l.length;o++){const i=this._getDataset(e,l,o),u=this._markAndClone(a,i,r,s,n);t.add(u)}}else{const i=this._getDataByDataset(e.dataset);if(!1===Array.isArray(i)||0===i.length)return;for(let l=0;l<i.length;l++){const o=this._getDataset(e,i,l),u=this._markAndClone(a,o,r,s,n);t.add(u)}}}_markAndClone(e,t,r,s,n){let a;e instanceof hc?(a=new vu({dataset:t}),e.url&&this._markSubDynamic(e,a,r,s,n)):e instanceof rc?a=new vu({dataset:t}):(a=e.clone(!1),a.dataset=t,s.set(e.uuid,a),a.interactions.length>0&&n.push(a)),a.generatedBy=r;for(const i of e.children){const e=this._markAndClone(i,t,r,s,n);a.add(e)}return this._setCache(e,a),a}mount(e,t,r){super.mount(e,t,r),tu.listen("update",this._clearByOnUpdate)}unmount(e,t,r){tu.unlisten("update",this._clearByOnUpdate),super.unmount(e,t,r)}update(e){if(super.update(e),tu.unlisten("add",this._onAdd),tu.unlisten("remove",this._onRemove),tu.unlisten("update",this._onUpdate),e.dataset&&e.url){const t=Xu.getCollection(e.dataset);if(t.length>0){const r=_u.get(e.url);for(let s=0;s<t.length;s++){this._currentDepth=0;const n=this._getDataset(e,t,s),a=new Map,i=[],l=this._markAndClone(r,n,e.uuid,a,i);vu.fixReferences(i,a),this._cloneCollection.set(s,l),tu.trigger("add",{self:l.uuid,puid:e.uuid})}}}tu.listen("add",this._onAdd),tu.listen("remove",this._onRemove),tu.listen("update",this._onUpdate)}free(e){tu.unlisten("add",this._onAdd),tu.unlisten("remove",this._onRemove),tu.unlisten("update",this._onUpdate),super.free(e)}}Dd(Vd,"type",hc.type),Pd.register(Vd);var Ad=Object.defineProperty,$d=(e,t,r)=>t in e?Ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Td=(e,t,r)=>$d(e,"symbol"!==typeof t?t+"":t,r);class Id extends Pd{}Td(Id,"type",rc.type),Pd.register(Id);var Wd=Object.defineProperty,Ld=(e,t,r)=>t in e?Wd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fd=(e,t,r)=>Ld(e,"symbol"!==typeof t?t+"":t,r);class Ud extends Pd{}Fd(Ud,"type",lc.type),Pd.register(Ud);var Xd=Object.defineProperty,Nd=(e,t,r)=>t in e?Xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qd=(e,t,r)=>Nd(e,"symbol"!==typeof t?t+"":t,r);class Bd extends id{createActor(e){return new Bh(e.uuid)}update(e){super.update(e);const t=this.getActor(e);t.update(e)}mount(e,t,r){super.mount(e,t,r);const s=this.getActor(e),n=t.getActor(r);n.add(s)}unmount(e,t,r){const s=this.getActor(e);s.clearStyleClass(s.DOM),s.cleanInteraction();const n=t.getActor(r);n.remove(s),super.unmount(e,t,r)}pickup(e,t){t.push({uuid:e.uuid,generatedBy:e.generatedBy})}}qd(Bd,"type",bc.type),id.register(Bd);var Qd=Object.defineProperty,Gd=(e,t,r)=>t in e?Qd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kd=(e,t,r)=>Gd(e,"symbol"!==typeof t?t+"":t,r);class Yd extends id{createActor(e){const t=new td;return t}update(e){super.update(e);const t=this.getActor(e);t.update(e)}mount(e,t,r){super.mount(e,t,r),this.getActor(e)}unmount(e,t,r){const s=this.getActor(e);s.unlisten(),super.unmount(e,t,r)}free(e){const t=this.getActor(e);t.dispose(),super.free(e)}}Kd(Yd,"type",Wc.type),id.register(Yd);var Hd=Object.defineProperty,Zd=(e,t,r)=>t in e?Hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jd=(e,t,r)=>Zd(e,"symbol"!==typeof t?t+"":t,r);class ep extends id{clear(e){}beforeRender(e){}render(e){}afterRender(e){}beforePickup(e,t){}orderBy(e){}}Jd(ep,"type",Nc.type),id.register(ep);var tp=Object.defineProperty,rp=(e,t,r)=>t in e?tp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sp=(e,t,r)=>rp(e,"symbol"!==typeof t?t+"":t,r);class np extends ep{createActor(e){const t=new Yh(e.uuid);return t.DOM.addEventListener("pointerdown",e=>e.stopPropagation()),t}update(e){super.update(e);const t=this.getActor(e);t.update(e)}mount(e,t,r){super.mount(e,t,r);const s=this.getActor(e),n=t.getActor(r);n.add(s)}unmount(e,t,r){const s=this.getActor(e);s.clearStyleClass(s.DOM),s.cleanInteraction();const n=t.getActor(r);n.remove(s),super.unmount(e,t,r)}pickup(e,t){t.push({uuid:e.uuid,generatedBy:e.generatedBy})}}sp(np,"type",Gc.type),ep.register(np);var ap=Object.defineProperty,ip=(e,t,r)=>t in e?ap(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lp=(e,t,r)=>ip(e,"symbol"!==typeof t?t+"":t,r);class op extends id{constructor(){super(...arguments),lp(this,"resize",()=>{}),lp(this,"unresize",()=>{})}createActor(e){const t=new Bh(e.uuid);return t}install(e){const t=this.getActor(e),r=t.getWrapper();this.graphics.engine.DOM.appendChild(r),this.resize=()=>{r.style.width=this.graphics.engine.DOM.clientWidth+"px",r.style.height=this.graphics.engine.DOM.clientHeight+"px",t.DOM.style.width="100%",t.DOM.style.height="100%"};const s=this.graphics.engine.inputSystem.listen("resize",this.resize,{target:window});this.unresize=()=>this.graphics.engine.inputSystem.unlisten(s),this.resize()}uninstall(e){this.unresize();const t=this.getActor(e),r=t.getWrapper();r.remove()}}lp(op,"type",Zc.type),id.register(op);var up=(e=>(e["GET"]="GET",e["POST"]="POST",e["PUT"]="PUT",e["DELETE"]="DELETE",e))(up||{});const cp=(e,t,r)=>{const s=Object.keys(e.inputs);for(const n of s){const s=e.inputs[n],a=Object.keys(s);for(const e of a){const a=s[e];void 0!==a.type&&!1!==Po.isDescriptor(a.type,"category")&&(a.value&&r.edges.push({key:`${t}.inputs.${n}.${e}.value`,category:a.type,asset:a.value}))}}},hp=(e,t,r)=>{const s=Object.keys(e.input);for(const n of s){const s=e.input[n];void 0!==s.type&&!1!==Po.isDescriptor(s.type,"category")&&(s.value&&r.edges.push({key:`${t}.input.${n}.value`,category:s.type,asset:s.value}))}},dp=(e,t)=>{if(e.interactions.length>0)for(let r=0;r<e.interactions.length;r++){const s=e.interactions[r];s.url&&(cp(s,`interactions[${r}]`,t),t.edges.push({key:`interactions[${r}].url`,category:Po.interaction,asset:s.url}))}e.dataset&&t.edges.push({key:"dataset",category:Po.dataset,asset:e.dataset})},pp=(e,t)=>{e.inherit&&t.edges.push({key:"inherit",category:Po.style,asset:e.inherit})},fp=(e,t)=>{if(e.nodes.length>0)for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];s.url&&(hp(s,`nodes[${r}]`,t),t.edges.push({key:`nodes[${r}].url`,category:Po.ts,asset:s.url}))}},vp=(e,t)=>{e.style&&t.edges.push({key:"style",category:Po.style,asset:e.style})},yp=(e,t)=>{e.url&&t.edges.push({key:"url",category:Po.prefab,asset:e.url})},mp=(e,t)=>{e.url&&t.edges.push({key:"url",category:Po.prefab,asset:e.url})};wu.register(vu.type,dp),wu.register(Zu.type,pp),wu.register(uh.type,fp),wu.register(vc.type,vp),wu.register(hc.type,yp),wu.register(lc.type,mp);var gp=Object.defineProperty,bp=Object.defineProperties,xp=Object.getOwnPropertyDescriptors,wp=Object.getOwnPropertySymbols,kp=Object.prototype.hasOwnProperty,Cp=Object.prototype.propertyIsEnumerable,Mp=(e,t,r)=>t in e?gp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Op=(e,t)=>{for(var r in t||(t={}))kp.call(t,r)&&Mp(e,r,t[r]);if(wp)for(var r of wp(t))Cp.call(t,r)&&Mp(e,r,t[r]);return e},Pp=(e,t)=>bp(e,xp(t)),Rp=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const _p=_u.createVirtualUrl("preset/net/http.ts");class jp extends Jo{joinUrl(e,t){const r=new URL(e);return Object.entries(t).forEach(([e,t])=>{null!==t&&void 0!==t&&r.searchParams.set(e,String(t))}),r.toString()}execute(e,t){return Rp(this,null,function*(){var e,r,s,n,a,i;const{input:l,result:o}=t;let u=null!=(r=null==(e=null==l?void 0:l.user)?void 0:e.url.value)?r:l.default.url.value;const c=null!=(n=null==(s=null==l?void 0:l.user)?void 0:s.type.value)?n:l.default.type.value,h=null!=(i=null==(a=null==l?void 0:l.user)?void 0:a.data.value)?i:l.default.data.value,d={},p=[];0===h.trim().length?p.push(...o.keys()):p.push(...h.split(","));for(const t of p){const e=o.get(t);Object.assign(d,null!=e?e:{})}u=u.replace(/\${(\w+)}/g,(e,t)=>d.hasOwnProperty(t)?d[t]:e);const f={method:c,headers:{"Content-Type":"application/json"}};let v;v=c===up.GET?yield fetch(this.joinUrl(u,d),f):yield fetch(u,Pp(Op({},f),{body:JSON.stringify(d)}));const y=yield v.json();return y})}}_u.provider(_p,()=>Rp(null,null,function*(){return{default:jp}}));var zp=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Sp=_u.createVirtualUrl("preset/dataset/update.ts");class Ep extends Jo{execute(e,t){return zp(this,null,function*(){var e,r;const{input:s,result:n}=t,a=null!=(r=null==(e=null==s?void 0:s.user)?void 0:e.dataset.value)?r:s.default.dataset.value,i=n.get(s.previous),l=_u.get(a);return l instanceof Xu&&i&&l.setData(i),{}})}}_u.provider(Sp,()=>zp(null,null,function*(){return{default:Ep}}));var Dp=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Vp=_u.createVirtualUrl("preset/dataset/compile.ts");class Ap extends Jo{execute(e,t){return Dp(this,null,function*(){return console.log(t),{}})}}_u.provider(Vp,()=>Dp(null,null,function*(){return{default:Ap}}));var $p=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Tp=_u.createVirtualUrl("preset/scheduler/switch.ts");class Ip extends Jo{execute(e,t){return $p(this,null,function*(){var r,s;const n=null==(s=null==(r=t.input)?void 0:r.user)?void 0:s.scene.value;if(!n)return;yield _u.loadAll(n);const a=_u.get(n);e.engine.switch(a)})}}_u.provider(Tp,()=>$p(null,null,function*(){return{default:Ip}}));const Wp=(e={})=>{var t;const r={scene:{value:null!=(t=e.scene)?t:""}};return r},Lp=e=>{var t,r,s,n;const a={id:e.id,label:Rl.get(Tp),position:{x:null!=(r=null==(t=null==e?void 0:e.position)?void 0:t.x)?r:20,y:null!=(n=null==(s=null==e?void 0:e.position)?void 0:s.y)?n:20},interaction:"Execute",url:Tp,input:Wp(e.input)};return a};var Fp=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Up=_u.createVirtualUrl("preset/graphics/invoke.ts");class Xp extends Jo{execute(e,t){return Fp(this,null,function*(){var r,s,n,a;const{input:i}=t,l=null!=(s=null==(r=null==i?void 0:i.user)?void 0:r.interaction.value)?s:i.default.interaction.value,o=null!=(a=null==(n=null==i?void 0:i.user)?void 0:n.target.value)?a:i.default.target.value,u=vu.get(o);l&&u&&e.invoke(l,u)})}}_u.provider(Up,()=>Fp(null,null,function*(){return{default:Xp}}));const Np=(e={})=>{var t,r;const s={target:{value:null!=(t=e.target)?t:""},interaction:{value:null!=(r=e.interaction)?r:""}};return s},qp=e=>{var t,r,s,n;const a={id:e.id,label:Rl.get(Up),position:{x:null!=(r=null==(t=null==e?void 0:e.position)?void 0:t.x)?r:20,y:null!=(n=null==(s=null==e?void 0:e.position)?void 0:s.y)?n:20},interaction:"Execute",url:Up,input:Np(e.input)};return a};var Bp=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Qp=_u.createVirtualUrl("preset/scheduler/switch.interaction.json"),Gp={switch:"switch"};let Kp=null;const Yp=()=>Bp(null,null,function*(){if(null===Kp){Kp=new uh;const e=Lp({id:Gp.switch});Kp.nodes.push(e),Kp.roots.push(e.id)}return Kp});_u.provider(Qp,Yp);var Hp=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Zp=_u.createVirtualUrl("preset/graphics/invoke.interaction.json"),Jp={invoke:"invoke"};let ef=null;const tf=()=>Hp(null,null,function*(){if(null===ef){ef=new uh;const e=qp({id:Jp.invoke});ef.nodes.push(e),ef.roots.push(e.id)}return ef});_u.provider(Zp,tf);Object.defineProperty;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var rf=Object.defineProperty,sf=(e,t,r)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nf=(e,t,r)=>sf(e,"symbol"!==typeof t?t+"":t,r);class af{constructor(e){nf(this,"message"),nf(this,"method"),nf(this,"params"),this.message=e}}var lf=Object.defineProperty,of=(e,t,r)=>t in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uf=(e,t,r)=>of(e,"symbol"!==typeof t?t+"":t,r);const cf="/cli/rpc.logout";class hf extends af{constructor(e){super(),uf(this,"method",cf),uf(this,"params"),this.params=e}}var df=Object.defineProperty,pf=(e,t,r)=>t in e?df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ff=(e,t,r)=>pf(e,"symbol"!==typeof t?t+"":t,r);const vf="/cli/rpc.login";class yf extends af{constructor(e,t){super(),ff(this,"method",vf),ff(this,"params"),this.params={name:e,password:t}}}class mf extends af{constructor(e){super(),ff(this,"method",vf),ff(this,"params"),this.params={token:e}}}var gf=Object.defineProperty,bf=(e,t,r)=>t in e?gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xf=(e,t,r)=>bf(e,"symbol"!==typeof t?t+"":t,r);const wf="/cli/rpc.getUser";class kf extends af{constructor(){super(),xf(this,"method",wf),xf(this,"params"),this.params={}}}class Cf extends af{constructor(e){super(),xf(this,"method",wf),xf(this,"params"),this.params={user:e}}}var Mf=Object.defineProperty,Of=(e,t,r)=>t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pf=(e,t,r)=>Of(e,"symbol"!==typeof t?t+"":t,r);const Rf="/cli/rpc.connection";class _f extends af{constructor(e){super(),Pf(this,"method",Rf),Pf(this,"params"),this.params={client:e}}}var jf=Object.defineProperty,zf=(e,t,r)=>t in e?jf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sf=(e,t,r)=>zf(e,"symbol"!==typeof t?t+"":t,r);const Ef="/cli/rpc.disconnect";class Df extends af{constructor(e){super(),Sf(this,"method",Ef),Sf(this,"params"),this.params={client:e}}}var Vf=Object.defineProperty,Af=(e,t,r)=>t in e?Vf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$f=(e,t,r)=>Af(e,"symbol"!==typeof t?t+"":t,r);const Tf="/cli/rpc.undo";class If extends af{constructor(){super(),$f(this,"method",Tf),$f(this,"params"),this.params={}}}var Wf=Object.defineProperty,Lf=(e,t,r)=>t in e?Wf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ff=(e,t,r)=>Lf(e,"symbol"!==typeof t?t+"":t,r);const Uf="/cli/rpc.redo";class Xf extends af{constructor(){super(),Ff(this,"method",Uf),Ff(this,"params"),this.params={}}}var Nf=Object.defineProperty,qf=(e,t,r)=>t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bf=(e,t,r)=>qf(e,"symbol"!==typeof t?t+"":t,r);const Qf="/cli/rpc.confirm";class Gf extends af{constructor(e){super(),Bf(this,"method",Qf),Bf(this,"uuid",So.uuid()),Bf(this,"params"),this.params={config:e}}}var Kf=Object.defineProperty,Yf=(e,t,r)=>t in e?Kf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hf=(e,t,r)=>Yf(e,"symbol"!==typeof t?t+"":t,r);const Zf="/cli/sidebar.switch";class Jf extends af{constructor(e,t,r){super(),Hf(this,"method",Zf),Hf(this,"params"),this.params={old:e,active:t,data:r}}}class ev extends af{constructor(e,t,r){super(),Hf(this,"method",Zf),Hf(this,"params"),this.params={old:e,active:t,data:r}}}var tv=Object.defineProperty,rv=(e,t,r)=>t in e?tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sv=(e,t,r)=>rv(e,"symbol"!==typeof t?t+"":t,r);const nv="/cli/asset.initialize";class av extends af{constructor(){super(),sv(this,"method",nv)}}class iv extends af{constructor(e){super(),sv(this,"method",nv),sv(this,"params"),this.params={root:e}}}var lv=Object.defineProperty,ov=(e,t,r)=>t in e?lv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uv=(e,t,r)=>ov(e,"symbol"!==typeof t?t+"":t,r);const cv="/cli/asset.create";class hv extends af{constructor(e,t,r,s,n){super(),uv(this,"method",cv),uv(this,"params"),this.params={fileType:e,name:t,suffix:r,parent:s,content:n}}}class dv extends af{constructor(e,t){super(),uv(this,"method",cv),uv(this,"params"),this.params={node:e,parent:t}}}var pv=Object.defineProperty,fv=(e,t,r)=>t in e?pv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vv=(e,t,r)=>fv(e,"symbol"!==typeof t?t+"":t,r);const yv="/cli/asset.delete";class mv extends af{constructor(e){super(),vv(this,"method",yv),vv(this,"params"),this.params={urls:e}}}class gv extends af{constructor(e){super(),vv(this,"method",yv),vv(this,"params"),this.params={urls:e}}}var bv=Object.defineProperty,xv=(e,t,r)=>t in e?bv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wv=(e,t,r)=>xv(e,"symbol"!==typeof t?t+"":t,r);const kv="/cli/asset.add";class Cv extends af{constructor(e,t,r,s=""){super(),wv(this,"method",kv),wv(this,"params"),this.params={url:e,parent:t,node:r,next:s}}}class Mv extends af{constructor(e,t,r,s=""){super(),wv(this,"method",kv),wv(this,"params"),this.params={url:e,parent:t,node:r,next:s}}}var Ov=Object.defineProperty,Pv=(e,t,r)=>t in e?Ov(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rv=(e,t,r)=>Pv(e,"symbol"!==typeof t?t+"":t,r);const _v="/cli/asset.remove";class jv extends af{constructor(e,t){super(),Rv(this,"method",_v),Rv(this,"params"),this.params={url:e,uuids:t}}}class zv extends af{constructor(e,t){super(),Rv(this,"method",_v),Rv(this,"params"),this.params={url:e,uuids:t}}}var Sv=Object.defineProperty,Ev=(e,t,r)=>t in e?Sv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dv=(e,t,r)=>Ev(e,"symbol"!==typeof t?t+"":t,r);const Vv="/cli/asset.rename";class Av extends af{constructor(e,t){super(),Dv(this,"method",Vv),Dv(this,"params"),this.params={newName:e,url:t}}}var $v=Object.defineProperty,Tv=(e,t,r)=>t in e?$v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Iv=(e,t,r)=>Tv(e,"symbol"!==typeof t?t+"":t,r);const Wv="/cli/asset.select";class Lv extends af{constructor(e){super(),Iv(this,"method",Wv),Iv(this,"params"),this.params={url:e}}}var Fv=Object.defineProperty,Uv=(e,t,r)=>t in e?Fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xv=(e,t,r)=>Uv(e,"symbol"!==typeof t?t+"":t,r);const Nv="/cli/asset.open";class qv extends af{constructor(e){super(),Xv(this,"method",Nv),Xv(this,"params"),this.params={url:e}}}class Bv extends af{constructor(e,t){super(),Xv(this,"method",Nv),Xv(this,"params"),this.params={url:e,client:t}}}var Qv=Object.defineProperty,Gv=(e,t,r)=>t in e?Qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kv=(e,t,r)=>Gv(e,"symbol"!==typeof t?t+"":t,r);const Yv="/cli/asset.close";class Hv extends af{constructor(e){super(),Kv(this,"method",Yv),Kv(this,"params"),this.params={url:e}}}class Zv extends af{constructor(e,t){super(),Kv(this,"method",Yv),Kv(this,"params"),this.params={url:e,client:t}}}var Jv=Object.defineProperty,ey=(e,t,r)=>t in e?Jv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ty=(e,t,r)=>ey(e,"symbol"!==typeof t?t+"":t,r);const ry="/cli/asset.copy";class sy extends af{constructor(e,t){super(),ty(this,"method",ry),ty(this,"params"),this.params={urls:e,target:t}}}var ny=Object.defineProperty,ay=(e,t,r)=>t in e?ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iy=(e,t,r)=>ay(e,"symbol"!==typeof t?t+"":t,r);const ly="/cli/asset.cut";class oy extends af{constructor(e,t){super(),iy(this,"method",ly),iy(this,"params"),this.params={urls:e,target:t}}}var uy=Object.defineProperty,cy=(e,t,r)=>t in e?uy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hy=(e,t,r)=>cy(e,"symbol"!==typeof t?t+"":t,r);const dy="/cli/asset.update";class py extends af{constructor(e,t){super(),hy(this,"method",dy),hy(this,"params"),this.params={url:e,content:t}}}class fy extends af{constructor(e,t,r,s){super(),hy(this,"method",dy),hy(this,"params"),this.params={url:e,scheme:t,client:r,content:s}}}var vy=Object.defineProperty,yy=(e,t,r)=>t in e?vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,my=(e,t,r)=>yy(e,"symbol"!==typeof t?t+"":t,r);const gy="/cli/asset.dragdrap";class by extends af{constructor(e,t,r,s){super(),my(this,"method",gy),my(this,"params"),this.params={url:e,type:t,dragData:r,targetData:s}}}class xy extends af{constructor(e,t,r,s,n=""){super(),my(this,"method",gy),my(this,"params"),this.params={url:e,type:t,dragData:r,targetData:s,next:n}}}var wy=Object.defineProperty,ky=(e,t,r)=>t in e?wy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cy=(e,t,r)=>ky(e,"symbol"!==typeof t?t+"":t,r);const My="/cli/scene.initialize";class Oy extends af{constructor(e){super(),Cy(this,"method",My),Cy(this,"params"),this.params={url:e}}}class Py extends af{constructor(e,t,r){super(),Cy(this,"method",My),Cy(this,"params"),this.params={url:e,serialization:t,scenes:r}}}var Ry=Object.defineProperty,_y=(e,t,r)=>t in e?Ry(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jy=(e,t,r)=>_y(e,"symbol"!==typeof t?t+"":t,r);const zy="/cli/scene.record";class Sy extends af{constructor(e,t){super(),jy(this,"method",zy),jy(this,"params"),this.params={url:e,useRecord:t}}}var Ey=Object.defineProperty,Dy=(e,t,r)=>t in e?Ey(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vy=(e,t,r)=>Dy(e,"symbol"!==typeof t?t+"":t,r);const Ay="/cli/scene.add";class $y extends af{constructor(e,t){super(),Vy(this,"method",Ay),Vy(this,"params"),this.params={node:e,parent:t}}}class Ty extends af{constructor(e,t,r=""){super(),Vy(this,"method",Ay),Vy(this,"params"),this.params={node:e,parent:t,next:r}}}var Iy=Object.defineProperty,Wy=(e,t,r)=>t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ly=(e,t,r)=>Wy(e,"symbol"!==typeof t?t+"":t,r);const Fy="/cli/scene.remove";class Uy extends af{constructor(e){super(),Ly(this,"method",Fy),Ly(this,"params"),this.params={uuids:e}}}class Xy extends af{constructor(e){super(),Ly(this,"method",Fy),Ly(this,"params"),this.params={uuids:e}}}var Ny=Object.defineProperty,qy=(e,t,r)=>t in e?Ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,By=(e,t,r)=>qy(e,"symbol"!==typeof t?t+"":t,r);const Qy="/cli/scene.switch";class Gy extends af{constructor(e){super(),By(this,"method",Qy),By(this,"params"),this.params={url:e}}}class Ky extends af{constructor(e,t,r){super(),By(this,"method",Qy),By(this,"params"),this.params={client:e,url:t,serialization:r}}}var Yy=Object.defineProperty,Hy=(e,t,r)=>t in e?Yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zy=(e,t,r)=>Hy(e,"symbol"!==typeof t?t+"":t,r);const Jy="/cli/scene.create";class em extends af{constructor(e){super(),Zy(this,"method",Jy),Zy(this,"params"),this.params={url:e}}}class tm extends af{constructor(e){super(),Zy(this,"method",Jy),Zy(this,"params"),this.params={url:e}}}var rm=Object.defineProperty,sm=(e,t,r)=>t in e?rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nm=(e,t,r)=>sm(e,"symbol"!==typeof t?t+"":t,r);const am="/cli/scene.delete";class im extends af{constructor(e){super(),nm(this,"method",am),nm(this,"params"),this.params={url:e}}}class lm extends af{constructor(e){super(),nm(this,"method",am),nm(this,"params"),this.params={url:e}}}var om=Object.defineProperty,um=(e,t,r)=>t in e?om(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cm=(e,t,r)=>um(e,"symbol"!==typeof t?t+"":t,r);const hm="/cli/scene.update";class dm extends af{constructor(e){super(),cm(this,"method",hm),cm(this,"params"),this.params={content:e}}}class pm extends af{constructor(e,t){super(),cm(this,"method",hm),cm(this,"params"),this.params={client:e,content:t}}}var fm=Object.defineProperty,vm=(e,t,r)=>t in e?fm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ym=(e,t,r)=>vm(e,"symbol"!==typeof t?t+"":t,r);const mm="/cli/scene.dragdrap";class gm extends af{constructor(e,t,r){super(),ym(this,"method",mm),ym(this,"params"),this.params={type:e,dragData:t,targetData:r}}}class bm extends af{constructor(e,t,r,s=""){super(),ym(this,"method",mm),ym(this,"params"),this.params={type:e,dragData:t,targetData:r,next:s}}}var xm=Object.defineProperty,wm=(e,t,r)=>t in e?xm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,km=(e,t,r)=>wm(e,"symbol"!==typeof t?t+"":t,r);const Cm="/cli/scene.downalod";class Mm extends af{constructor(e){super(),km(this,"method",Cm),km(this,"params"),this.params={url:e}}}var Om=Object.defineProperty,Pm=(e,t,r)=>t in e?Om(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rm=(e,t,r)=>Pm(e,"symbol"!==typeof t?t+"":t,r);const _m="/cli/dep.create";class jm extends af{constructor(e,t){super(),Rm(this,"method",_m),Rm(this,"params"),this.params={origin:e,url:t}}}var zm=Object.defineProperty,Sm=(e,t,r)=>t in e?zm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Em=(e,t,r)=>Sm(e,"symbol"!==typeof t?t+"":t,r);const Dm="/cli/dep.update";class Vm extends af{constructor(e,t){super(),Em(this,"method",Dm),Em(this,"params"),this.params={origin:e,url:t}}}var Am=Object.defineProperty,$m=(e,t,r)=>t in e?Am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tm=(e,t,r)=>$m(e,"symbol"!==typeof t?t+"":t,r);const Im="/cli/dep.delete";class Wm extends af{constructor(e,t){super(),Tm(this,"method",Im),Tm(this,"params"),this.params={origin:e,url:t}}}var Lm=Object.defineProperty,Fm=(e,t,r)=>t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Um=(e,t,r)=>Fm(e,"symbol"!==typeof t?t+"":t,r);const Xm="/cli/dep.add";class Nm extends af{constructor(e,t){super(),Um(this,"method",Xm),Um(this,"params"),this.params={origin:e,url:t}}}var qm=Object.defineProperty,Bm=(e,t,r)=>t in e?qm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qm=(e,t,r)=>Bm(e,"symbol"!==typeof t?t+"":t,r);const Gm="/cli/dep.remove";class Km extends af{constructor(e,t){super(),Qm(this,"method",Gm),Qm(this,"params"),this.params={origin:e,url:t}}}var Ym=Object.defineProperty,Hm=(e,t,r)=>t in e?Ym(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zm=(e,t,r)=>Hm(e,"symbol"!==typeof t?t+"":t,r);class Jm extends af{}Zm(Jm,"rpc",h),Zm(Jm,"sidebar",p),Zm(Jm,"asset",R),Zm(Jm,"scene",I),Zm(Jm,"dep",N);var eg=Object.defineProperty,tg=Object.defineProperties,rg=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,ng=Object.prototype.hasOwnProperty,ag=Object.prototype.propertyIsEnumerable,ig=(e,t,r)=>t in e?eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lg=(e,t)=>{for(var r in t||(t={}))ng.call(t,r)&&ig(e,r,t[r]);if(sg)for(var r of sg(t))ag.call(t,r)&&ig(e,r,t[r]);return e},og=(e,t)=>tg(e,rg(t)),ug=(e,t,r)=>ig(e,"symbol"!==typeof t?t+"":t,r);class cg extends vu{constructor(e){var t,r,s,n,a,i,l,o;super(og(lg({},e),{children:e.children})),ug(this,"fileType"),ug(this,"scheme"),ug(this,"visible"),ug(this,"url"),ug(this,"parent"),ug(this,"userQueue"),ug(this,"suffix"),ug(this,"category"),this.fileType=null!=(t=e.fileType)&&t,this.scheme=null!=(r=e.scheme)?r:"",this.visible=null==(s=e.visible)||s,this.url=null!=(n=e.url)?n:this.uuid,this.parent=null!=(a=e.parent)?a:"",this.userQueue=null!=(i=e.userQueue)?i:[],this.suffix=null!=(l=e.suffix)?l:"",this.category=null!=(o=e.category)?o:""}sort(){const e=[],t=[];for(const r of this.children)r.fileType?t.push(r):e.push(r);e.sort((e,t)=>e.url.localeCompare(t.url)),t.sort((e,t)=>e.url.localeCompare(t.url)),this.clear(),this.add(...e,...t)}addUser(e){_o.insert(this.userQueue,e)}removeUser(e){_o.remove(this.userQueue,e)}hasUser(e){return this.userQueue.indexOf(e)>-1}clearUser(e){this.traverse(t=>t.removeUser(e))}getUserCount(){let e=0;return this.traverse(t=>{e+=t.userQueue.length}),e}getUniqueName(e,t){let r=0,s=e;const n=[...this.children];while(n.length){const a=n.pop();if(a.suffix!==t)continue;const i=a.name.indexOf(s);0===i&&(r++,s=e+r,n.length=0,n.push(...this.children))}return s}isEditable(e){return 0===this.userQueue.length||0===this.userQueue.indexOf(e)}}ug(cg,"type","VirtualNode"),vu.register(cg);Object.defineProperty;Object.defineProperty;const hg="/rpc.io",dg="/service",pg="@vyr/key",fg={id:"zh_CN",name:"@vyr/service-rpc"};B.Locale.register(fg);B.Locale.getLanguage(fg.name);var vg=r(89168);const yg={id:"zh_CN",name:"@vyr/service"};B.Locale.register(yg);B.Locale.getLanguage(yg.name);var mg=Object.defineProperty,gg=(e,t,r)=>t in e?mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bg=(e,t,r)=>gg(e,"symbol"!==typeof t?t+"":t,r),xg=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});class wg{constructor(e){bg(this,"name"),this.name=e}get(...e){}set(...e){}setup(){return xg(this,null,function*(){})}ready(){return xg(this,null,function*(){})}start(){return xg(this,null,function*(){})}}var kg=Object.defineProperty,Cg=(e,t,r)=>t in e?kg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mg=(e,t,r)=>Cg(e,"symbol"!==typeof t?t+"":t,r),Og=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const Pg=()=>{window.localStorage.removeItem(pg);const e=new URL(window.location.href);e.pathname="/login.html",window.location.href=e.href};class Rg extends wg{constructor(e,t){super(e),Mg(this,"_listener",new Ao),Mg(this,"confirm"),Mg(this,"socket"),Mg(this,"needTrigger",!1),Mg(this,"msgQueue",[]),Mg(this,"_onConfirm",e=>Og(this,null,function*(){const t=yield this.confirm(e.params.config);e.params.config.value=t.value,e.params.config.success=t.success,this.send(e)})),this.confirm=t.confirm;const r={path:hg,extraHeaders:{authorization:"Bearer "+t.token},autoConnect:!1};this.socket=new window.io(location.href,r),this.socket.on(dg,e=>{const r=vu.deserialization(e);if(void 0!==r.message)return t.notify(r.message);this._delayTrigger(r)}),this.socket.on("disconnect",()=>{this.trigger(Jm.rpc.disconnect.Method,new Jm.rpc.disconnect.NoticeMessage(this.client))}),this.listen(Jm.rpc.confirm.Method,this._onConfirm)}static login(e,t){return Og(this,null,function*(){const r=new Jm.rpc.login.RequestMessage(e,t),s=yield vg.A.post(Jm.rpc.login.Method,r);window.localStorage.setItem(pg,s.data.params.token);const n=new URL(window.location.href);n.pathname="/",window.location.href=n.href})}static getUser(){return Og(this,null,function*(){const e=new Jm.rpc.getUser.RequestMessage,t=yield vg.A.get(Jm.rpc.getUser.Method,e);return t.data.params.user})}static getToken(){var e;return null!=(e=window.localStorage.getItem(pg))?e:""}static setToken(e){window.localStorage.setItem(pg,e)}_delayTrigger(e){this.msgQueue.push(e),!0!==this.needTrigger&&(this.needTrigger=!0,setTimeout(()=>this._executeMsgQueue(),160))}_executeMsgQueue(){this.needTrigger=!1;for(const e of this.msgQueue)this.trigger(e.method,e);this.msgQueue.length=0}get client(){return this.socket.id}get url(){return this.socket.uri}ready(){return Og(this,null,function*(){this.listen(Jm.rpc.logout.Method,Pg)})}start(){return Og(this,null,function*(){yield this.socket.connect()})}trigger(e,t){this._listener.trigger(e,t)}listen(e,t){this._listener.listen(e,t)}unlisten(e,t){this._listener.unlisten(e,t)}send(e){this.socket.emit(dg,vu.serialization(e))}}var _g=(e,t,r)=>new Promise((s,n)=>{var a=e=>{try{l(r.next(e))}catch(t){n(t)}},i=e=>{try{l(r.throw(e))}catch(t){n(t)}},l=e=>e.done?s(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(e,t)).next())});const jg={class:"vyr-login"},zg={class:"form"},Sg={class:"vyr-meta"},Eg={class:"text"},Dg={class:"label"},Vg={class:"label"},Ag={class:"login-helper"},$g={class:"link"},Tg={class:"copyright"};var Ig=(0,K.pM)({__name:"App",setup(e){const t=(0,H.KR)({name:"",password:"",rules:{name:[{required:!0,message:Q.get("login.form.rules.name")}],password:[{required:!0,message:Q.get("login.form.rules.password")}]}}),r=(0,H.KR)(),s=()=>_g(null,null,function*(){const e=yield r.value.validator();!1!==e&&Rg.login(t.value.name,t.value.password)}),n=()=>_g(null,null,function*(){const e=Rg.getToken();if(!e||!(yield Rg.getUser()))return;const t=new URL(window.location.href);t.pathname="/",window.location.href=t.href});return n(),t.value.name="admin",t.value.password="123456",Rg.login(t.value.name,t.value.password),(e,n)=>((0,K.uX)(),(0,K.CE)("div",jg,[(0,K.Lk)("div",zg,[(0,K.Lk)("div",Sg,[n[2]||(n[2]=(0,K.Lk)("img",{class:"logo",src:"/logo/透明背景LOGO.png",alt:"logo"},null,-1)),(0,K.Lk)("div",Eg,(0,Y.v_)((0,H.R1)(Q).get("login.systemName")),1)]),(0,K.bF)((0,H.R1)(hi),{label:{width:0},row:{margin:"0,0,24,0"}},{default:(0,K.k6)(()=>[(0,K.bF)((0,H.R1)($a),{ref_key:"refForm",ref:r,data:t.value,rules:t.value.rules,"rules-options":{icon:!1,tips:!0}},{default:(0,K.k6)(()=>[(0,K.Lk)("div",Dg,(0,Y.v_)((0,H.R1)(Q).get("login.account")),1),(0,K.bF)((0,H.R1)(fi),null,{default:(0,K.k6)(()=>[(0,K.bF)((0,H.R1)(oi),{rule:"name"},{default:(0,K.k6)(()=>[(0,K.bF)((0,H.R1)(Es),{modelValue:t.value.name,"onUpdate:modelValue":n[0]||(n[0]=e=>t.value.name=e)},null,8,["modelValue"])]),_:1})]),_:1}),(0,K.Lk)("div",Vg,(0,Y.v_)((0,H.R1)(Q).get("login.password")),1),(0,K.bF)((0,H.R1)(fi),null,{default:(0,K.k6)(()=>[(0,K.bF)((0,H.R1)(oi),{rule:"password"},{default:(0,K.k6)(()=>[(0,K.bF)((0,H.R1)(Es),{type:"password",modelValue:t.value.password,"onUpdate:modelValue":n[1]||(n[1]=e=>t.value.password=e)},null,8,["modelValue"])]),_:1})]),_:1}),(0,K.Lk)("div",{class:"login-button",onClick:s},(0,Y.v_)((0,H.R1)(Q).get("login.submit")),1),(0,K.Lk)("div",Ag,[(0,K.Lk)("div",$g,[(0,K.Lk)("span",null,(0,Y.v_)((0,H.R1)(Q).get("login.registerAccount")),1),(0,K.Lk)("span",null,(0,Y.v_)((0,H.R1)(Q).get("login.forgotPassword ")),1),(0,K.Lk)("span",null,(0,Y.v_)((0,H.R1)(Q).get("login.enterpriseEdition")),1)]),(0,K.Lk)("div",Tg,"© 2023 vyr | "+(0,Y.v_)((0,H.R1)(Q).get("login.collaboration"))+"· "+(0,Y.v_)((0,H.R1)(Q).get("login.efficiency"))+"· "+(0,Y.v_)((0,H.R1)(Q).get("login.professionalism"))+" ",1)])]),_:1},8,["data","rules"])]),_:1})])]))}});const Wg=Ig;var Lg=Wg;const Fg=(0,G.Ef)(Lg);Fg.mount("#app")}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,r),a.exports}r.m=e,function(){var e=[];r.O=function(t,s,n,a){if(!s){var i=1/0;for(c=0;c<e.length;c++){s=e[c][0],n=e[c][1],a=e[c][2];for(var l=!0,o=0;o<s.length;o++)(!1&a||i>=a)&&Object.keys(r.O).every(function(e){return r.O[e](s[o])})?s.splice(o--,1):(l=!1,a<i&&(i=a));if(l){e.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[s,n,a]}}(),function(){r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,{a:t}),t}}(),function(){r.d=function(e,t){for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){r.j=6966}(),function(){var e={6966:0};r.O.j=function(t){return 0===e[t]};var t=function(t,s){var n,a,i=s[0],l=s[1],o=s[2],u=0;if(i.some(function(t){return 0!==e[t]})){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(o)var c=o(r)}for(t&&t(s);u<i.length;u++)a=i[u],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(c)},s=self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var s=r.O(void 0,[504],function(){return r(95284)});s=r.O(s)})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var e={75133:function(e){e.exports=window["__VYR_RUNTIME_@vyr/locale"]},75745:function(e,n,t){var r=t(46269),o=t(89168),a=t(75133),i=(e,n,t)=>new Promise((r,o)=>{var a=e=>{try{u(t.next(e))}catch(n){o(n)}},i=e=>{try{u(t.throw(e))}catch(n){o(n)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,i);u((t=t.apply(e,n)).next())});const u=[{name:"__VYR_RUNTIME_@vyr/runtime",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(94)]).then(t.bind(t,81336))})},{name:"__VYR_RUNTIME_vue",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(7227),t.e(7409),t.e(7390)]).then(t.bind(t,57390))})},{name:"__VYR_RUNTIME_three",load:()=>i(null,null,function*(){return Promise.all([t.e(1696),t.e(6315)]).then(t.bind(t,96315))})},{name:"__VYR_RUNTIME_three/examples/jsm/renderers/CSS3DRenderer.js",load:()=>i(null,null,function*(){return Promise.all([t.e(1696),t.e(2521)]).then(t.bind(t,62521))})},{name:"__VYR_RUNTIME_postprocessing",load:()=>i(null,null,function*(){return Promise.all([t.e(1696),t.e(7692)]).then(t.bind(t,67692))})},{name:"__VYR_RUNTIME_@vyr/engine",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931)]).then(t.bind(t,50931))})},{name:"__VYR_RUNTIME_@vyr/design",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(7227),t.e(7409),t.e(1111),t.e(9751)]).then(t.bind(t,32132))})},{name:"__VYR_RUNTIME_@vyr/builtin",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(7409),t.e(1111),t.e(3864),t.e(4587)]).then(t.bind(t,21275))})},{name:"__VYR_RUNTIME_@vyr/service",load:()=>i(null,null,function*(){return t.e(7167).then(t.bind(t,87167))})},{name:"__VYR_RUNTIME_@vyr/remote",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(4530),t.e(9947)]).then(t.bind(t,92328))})},{name:"__VYR_RUNTIME_@vyr/service-rpc",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(4582),t.e(6166)]).then(t.bind(t,93785))})},{name:"__VYR_RUNTIME_@vyr/service-asset",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(8637)]).then(t.bind(t,34753))})},{name:"__VYR_RUNTIME_@vyr/service-scene",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(4582),t.e(6234),t.e(7769)]).then(t.bind(t,92601))})},{name:"__VYR_RUNTIME_@vyr/service-graph",load:()=>i(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4263),t.e(8743)]).then(t.bind(t,89974))})}],c=()=>i(null,null,function*(){const e=yield o.A.get("/cli/getConfig");return e.data}),f=()=>i(null,null,function*(){const e=yield c();for(const t of e.languageProviders)a.Locale.register(t);a.Locale.use(e.language);const n=[];for(const t of u){const e=t.load().then(e=>window[t.name]=e);n.push(e)}return yield Promise.all(n),e}),l=()=>i(null,null,function*(){yield f();(0,r.Ts)({name:"editor",remotes:[{name:"preview",entry:"/preview/js/entry.js"}]});const{setup:e}=yield(0,r.dh)("preview");yield e();const{main:n}=yield Promise.all([t.e(4291),t.e(8366),t.e(931),t.e(7227),t.e(4530),t.e(7409),t.e(6881)]).then(t.bind(t,86881));n()});l()}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={exports:{}};return e[r].call(a.exports,a,a.exports,t),a.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,a){if(!r){var i=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],a=e[l][2];for(var u=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(t.O).every(function(e){return t.O[e](r[c])})?r.splice(c--,1):(u=!1,a<i&&(i=a));if(u){e.splice(l--,1);var f=o();void 0!==f&&(n=f)}}return n}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[r,o,a]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){var e,n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};t.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);t.r(a);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&o&&r;("object"==typeof u||"function"==typeof u)&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return r[e]}});return i["default"]=function(){return r},t.d(a,i),a}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce(function(n,r){return t.f[r](e,n),n},[]))}}(),function(){t.u=function(e){return"js/"+e+"."+{88:"4db81116",94:"59ed492b",112:"43f83ad0",220:"332f13be",250:"86810c99",530:"4b2961fe",677:"c536501d",800:"7696b6c7",931:"8edc5ac8",1008:"1212a92b",1048:"959d2b15",1111:"d7fb9219",1176:"03ce189a",1320:"11b1f843",1346:"07f056a0",1349:"8c628175",1376:"c78b811b",1384:"330a9809",1402:"a2b31799",1583:"ebe181e2",1592:"2007c851",1696:"67999338",1704:"a712bcfe",1877:"1ae78e83",1978:"d78b7ff2",2024:"61ad4ff8",2264:"74826096",2320:"01b45f7e",2424:"1b901127",2472:"fd550726",2521:"64e8a1c3",2576:"af7b57dd",2674:"a0fefa3b",2808:"2a6f1a99",2868:"2c921d66",2958:"148f2f28",3084:"f01b8161",3085:"5ce399d8",3124:"865bbeea",3160:"ad6a00b2",3328:"0e752372",3416:"59bed435",3454:"fc17644a",3507:"aafa886d",3792:"c95b5a4d",3864:"d5d8003c",3944:"0eafa506",4040:"bd29cbd3",4124:"1c353188",4171:"ecaed70c",4196:"1ecc5bb3",4230:"d1f2577c",4263:"4fee7680",4288:"cfaa98a7",4291:"cea6a8d5",4296:"4744698e",4416:"8faeee6a",4490:"afacfe53",4530:"f37bf7ff",4570:"312d27c5",4582:"a70df995",4587:"04343c23",4744:"fb66347f",4764:"df45c000",4786:"89599e34",4816:"cd55469f",4872:"0bafb3d5",4900:"cdee80ca",5354:"9e7d2a59",5388:"ba7b29bd",5620:"4ebcd1ef",5639:"f2d2e21b",5694:"4e720480",5696:"1ec004f6",5768:"ff6d1da1",5788:"fb009553",5804:"a7530102",5888:"e88a2170",5918:"fd8226fe",6136:"a7604e8a",6166:"c3ca51e8",6234:"efa90525",6248:"d7c77c1a",6308:"358e0a94",6315:"81f5e202",6357:"264f8155",6476:"133083f0",6488:"a1bb6380",6552:"af7ecaa3",6600:"66570635",6720:"7e4d97d6",6881:"110a38eb",6937:"53af487b",7128:"bddbefa5",7132:"784f034a",7167:"ba37f9e6",7195:"e454ee38",7227:"9320ac5b",7380:"378a750c",7390:"cb73108e",7409:"871dc004",7494:"0fecaf55",7692:"0a1cdf62",7769:"81492015",7820:"84cbe06d",7960:"6e25b569",7980:"816096c5",8004:"80b538a1",8030:"70f27b26",8328:"d2170039",8344:"e4b1e024",8366:"2854dcb7",8438:"72c0fcbf",8550:"69a717cc",8554:"1dbe7424",8632:"da334e90",8637:"a22cc644",8657:"8fef2180",8743:"ae6b01fb",8856:"9f70af00",9020:"b3a4d09b",9044:"70484b04",9256:"85fca918",9339:"e3438ab8",9384:"adddd8c7",9620:"ee62a8bc",9751:"8b76fab5",9842:"d1ed9070",9947:"e172d61d"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{530:"e132216c",1111:"86597cc5",1583:"69c975fc",3085:"43d5665d",3864:"d7e761ea",4296:"963f15af",6357:"7bd0168e",6881:"972ad8f8",8743:"b91daf98",9339:"e14b8c45"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="@vyr/cli:";t.l=function(r,o,a,i){if(e[r])e[r].push(o);else{var u,c;if(void 0!==a)for(var f=document.getElementsByTagName("script"),l=0;l<f.length;l++){var d=f[l];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+a){u=d;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",t.nc&&u.setAttribute("nonce",t.nc),u.setAttribute("data-webpack",n+a),u.src=r),e[r]=[o];var s=function(n,t){u.onerror=u.onload=null,clearTimeout(b);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach(function(e){return e(t)}),n)return n(t)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=s.bind(null,u.onerror),u.onload=s.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){t.j=7685}(),function(){t.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,n,r,o,a){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",t.nc&&(i.nonce=t.nc);var u=function(t){if(i.onerror=i.onload=null,"load"===t.type)o();else{var r=t&&t.type,u=t&&t.target&&t.target.href||n,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+u+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=r,c.request=u,i.parentNode&&i.parentNode.removeChild(i),a(c)}};return i.onerror=i.onload=u,i.href=n,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},n=function(e,n){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++){var o=t[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===n))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){o=i[r],a=o.getAttribute("data-href");if(a===e||a===n)return o}},r=function(r){return new Promise(function(o,a){var i=t.miniCssF(r),u=t.p+i;if(n(i,u))return o();e(r,u,null,o,a)})},o={7685:0};t.f.miniCss=function(e,n){var t={530:1,1111:1,1583:1,3085:1,3864:1,4296:1,6357:1,6881:1,8743:1,9339:1};o[e]?n.push(o[e]):0!==o[e]&&t[e]&&n.push(o[e]=r(e).then(function(){o[e]=0},function(n){throw delete o[e],n}))}}}(),function(){var e={7685:0};t.f.j=function(n,r){var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(function(t,r){o=e[n]=[t,r]});r.push(o[2]=a);var i=t.p+t.u(n),u=new Error,c=function(r){if(t.o(e,n)&&(o=e[n],0!==o&&(e[n]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;u.message="Loading chunk "+n+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,o[1](u)}};t.l(i,c,"chunk-"+n,n)}},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,a,i=r[0],u=r[1],c=r[2],f=0;if(i.some(function(n){return 0!==e[n]})){for(o in u)t.o(u,o)&&(t.m[o]=u[o]);if(c)var l=c(t)}for(n&&n(r);f<i.length;f++)a=i[f],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(l)},r=self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var r=t.O(void 0,[504],function(){return t(75745)});r=t.O(r)})();
|