@vyr/cli 0.0.25 → 0.0.26

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.
Files changed (203) hide show
  1. package/.bin/default/index.js +4 -0
  2. package/.bin/install/index.js +2 -0
  3. package/.entry/app.js +362 -362
  4. package/build/css/{9786.6bfee4ca.css → 2357.20584c43.css} +1 -1
  5. package/build/css/{6151.e4de2b69.css → 4011.fc069ae3.css} +1 -1
  6. package/build/css/{6881.972ad8f8.css → 6881.c7cb44c0.css} +1 -1
  7. package/build/css/768.6c925006.css +1 -0
  8. package/build/css/{3745.5e7a01f4.css → 9160.6a744205.css} +1 -1
  9. package/build/css/{4537.9b4ae552.css → 918.1da69a00.css} +2 -2
  10. package/build/css/login.c49ecb09.css +1 -0
  11. package/build/fonts/iconfont.0d8d5af4.woff +0 -0
  12. package/build/fonts/{iconfont.10345b2b.ttf → iconfont.49814d77.ttf} +0 -0
  13. package/build/index.html +1 -1
  14. package/build/js/1015.6b930e6b.js +1 -0
  15. package/build/js/1018.feb3213b.js +1 -0
  16. package/build/js/150.2368d63c.js +1 -0
  17. package/build/js/1508.ad60597c.js +1 -0
  18. package/build/js/{4582.71b3bbe1.js → 1541.ab4dcc45.js} +100 -100
  19. package/build/js/2132.d99fd402.js +1 -0
  20. package/build/js/215.0003a521.js +1 -0
  21. package/build/js/2357.990ebfbc.js +1 -0
  22. package/build/js/{2546.9fd3dc42.js → 2546.3383e2b7.js} +1 -1
  23. package/build/js/2596.6b885678.js +1 -0
  24. package/build/js/288.deb7db30.js +1 -0
  25. package/build/js/3312.be721fac.js +1 -0
  26. package/build/js/344.f9b8faec.js +1 -0
  27. package/build/js/3553.5a3a5f4c.js +1 -0
  28. package/build/js/4011.4f960789.js +1 -0
  29. package/build/js/4939.c2476b74.js +1 -0
  30. package/build/js/5547.b25a8b2e.js +1 -0
  31. package/build/js/677.fbdce394.js +1 -0
  32. package/build/js/6881.52ca7073.js +1 -0
  33. package/build/js/7320.9345566b.js +1 -0
  34. package/build/js/768.cf51599f.js +1 -0
  35. package/build/js/7769.95421d48.js +1 -0
  36. package/build/js/7907.8ff46377.js +1 -0
  37. package/build/js/7928.6c142786.js +1 -0
  38. package/build/js/7963.33f8605d.js +1 -0
  39. package/build/js/8637.348bcf40.js +1 -0
  40. package/build/js/9127.9dbc1ccb.js +1 -0
  41. package/build/js/9160.294ecd13.js +1 -0
  42. package/build/js/918.164497d1.js +3 -0
  43. package/build/js/931.f5b2dd0e.js +1 -0
  44. package/build/js/9751.1c059f35.js +1 -0
  45. package/build/js/chunk-vendors.94bb9e3c.js +300 -0
  46. package/build/js/index.49e6e2f0.js +1 -0
  47. package/build/js/login.0e6f1e5f.js +1 -0
  48. package/build/js/preview.c1d85328.js +1 -0
  49. package/build/login.html +1 -1
  50. package/build/preview.html +1 -1
  51. package/output/auto-provider-plugin/loader.js +2 -1
  52. package/output/auto-provider-plugin/package.json +1 -1
  53. package/output/builtin/build/component/CodeEditor.vue.d.ts +1 -0
  54. package/output/builtin/build/component/DatasetItem.vue.d.ts +2 -1
  55. package/output/builtin/build/component/HeaderSearch.vue.d.ts +13 -0
  56. package/output/builtin/build/component/index.d.ts +2 -1
  57. package/output/builtin/build/locale/LanguageProvider.d.ts +34 -32
  58. package/output/builtin/build/option/index.d.ts +9 -1
  59. package/output/builtin/build/service/footer/action/AddDirAction.d.ts +0 -1
  60. package/output/builtin/package.json +1 -1
  61. package/output/class-wrapper-plugin/package.json +1 -1
  62. package/output/declare/package.json +2 -2
  63. package/output/design/package.json +5 -3
  64. package/output/design/src/components/Dialog.vue +2 -2
  65. package/output/design/src/components/DynamicDialog.vue +35 -29
  66. package/output/design/src/components/Scroll.vue +1 -1
  67. package/output/design/src/components/Select.vue +9 -1
  68. package/output/design/src/components/composables/useSearch.ts +1 -0
  69. package/output/design/src/components/utils/Confirm.ts +1 -1
  70. package/output/design/src/components/utils/DynamicDialog.ts +12 -2
  71. package/output/design/src/font/demo_index.html +26 -3
  72. package/output/design/src/font/iconfont.css +7 -3
  73. package/output/design/src/font/iconfont.js +1 -1
  74. package/output/design/src/font/iconfont.json +7 -0
  75. package/output/design/src/font/iconfont.ttf +0 -0
  76. package/output/design/src/font/iconfont.woff +0 -0
  77. package/output/design/src/font/iconfont.woff2 +0 -0
  78. package/output/design/src/index.ts +6 -0
  79. package/output/design/src/theme/global.less +6 -0
  80. package/output/engine/package.json +2 -2
  81. package/output/engine/src/Engine.ts +2 -2
  82. package/output/engine/src/asset/Asset.ts +2 -2
  83. package/output/engine/src/descriptor/Descriptor.ts +1 -1
  84. package/output/engine/src/graphics/Graphics.ts +1 -1
  85. package/output/engine/src/interpreter/Interpreter.ts +1 -1
  86. package/output/engine/src/utils/http.ts +8 -1
  87. package/output/locale/package.json +1 -1
  88. package/output/remote/package.json +1 -1
  89. package/output/rollup-config-plugin/package.json +1 -1
  90. package/output/runtime/build/data/global.d.ts +6 -0
  91. package/output/runtime/build/data/header.d.ts +4 -0
  92. package/output/runtime/package.json +1 -1
  93. package/output/service/package.json +1 -1
  94. package/output/service-asset/package.json +1 -1
  95. package/output/service-asset/src/AssetService.ts +2 -3
  96. package/output/service-example/package.json +1 -1
  97. package/output/service-example/src/ExampleService.ts +3 -4
  98. package/output/service-graph/package.json +1 -1
  99. package/output/service-rpc/package.json +5 -3
  100. package/output/service-rpc/src/RpcService.ts +9 -9
  101. package/output/service-rpc/src/asset/add.ts +1 -1
  102. package/output/service-rpc/src/asset/close.ts +1 -1
  103. package/output/service-rpc/src/asset/copy.ts +1 -1
  104. package/output/service-rpc/src/asset/create.ts +1 -1
  105. package/output/service-rpc/src/asset/cut.ts +1 -1
  106. package/output/service-rpc/src/asset/delete.ts +1 -1
  107. package/output/service-rpc/src/asset/dragdrap.ts +1 -1
  108. package/output/service-rpc/src/asset/initialize.ts +1 -1
  109. package/output/service-rpc/src/asset/open.ts +1 -1
  110. package/output/service-rpc/src/asset/remove.ts +1 -1
  111. package/output/service-rpc/src/asset/rename.ts +1 -1
  112. package/output/service-rpc/src/asset/select.ts +1 -1
  113. package/output/service-rpc/src/asset/update.ts +1 -1
  114. package/output/service-rpc/src/dep/add.ts +1 -1
  115. package/output/service-rpc/src/dep/create.ts +1 -1
  116. package/output/service-rpc/src/dep/delete.ts +1 -1
  117. package/output/service-rpc/src/dep/remove.ts +1 -1
  118. package/output/service-rpc/src/dep/update.ts +1 -1
  119. package/output/service-rpc/src/domain/Entity.ts +7 -0
  120. package/output/service-rpc/src/example/apply.ts +1 -1
  121. package/output/service-rpc/src/example/create.ts +1 -1
  122. package/output/service-rpc/src/example/delete.ts +1 -1
  123. package/output/service-rpc/src/example/initialize.ts +1 -1
  124. package/output/service-rpc/src/example/list.ts +1 -1
  125. package/output/service-rpc/src/index.ts +1 -1
  126. package/output/service-rpc/src/locale/LanguageProvider.ts +5 -1
  127. package/output/service-rpc/src/request/index.ts +50 -0
  128. package/output/service-rpc/src/rpc/confirm.ts +1 -1
  129. package/output/service-rpc/src/rpc/connection.ts +1 -1
  130. package/output/service-rpc/src/rpc/disconnect.ts +1 -1
  131. package/output/service-rpc/src/rpc/getUser.ts +1 -1
  132. package/output/service-rpc/src/rpc/login.ts +1 -1
  133. package/output/service-rpc/src/rpc/logout.ts +1 -1
  134. package/output/service-rpc/src/rpc/redo.ts +1 -1
  135. package/output/service-rpc/src/rpc/undo.ts +1 -1
  136. package/output/service-rpc/src/scene/add.ts +1 -1
  137. package/output/service-rpc/src/scene/create.ts +1 -1
  138. package/output/service-rpc/src/scene/delete.ts +1 -1
  139. package/output/service-rpc/src/scene/download.ts +1 -1
  140. package/output/service-rpc/src/scene/dragdrap.ts +1 -1
  141. package/output/service-rpc/src/scene/initialize.ts +1 -1
  142. package/output/service-rpc/src/scene/record.ts +1 -1
  143. package/output/service-rpc/src/scene/remove.ts +1 -1
  144. package/output/service-rpc/src/scene/switch.ts +1 -1
  145. package/output/service-rpc/src/scene/update.ts +1 -1
  146. package/output/service-rpc/src/sidebar/switch.ts +1 -1
  147. package/output/service-scene/package.json +1 -1
  148. package/output/service-scene/src/SceneService.ts +2 -3
  149. package/output/var-rename-plugin/package.json +1 -1
  150. package/package.json +80 -1
  151. package/patches/knex+2.5.1.patch +26 -0
  152. package/build/css/1111.e408e6d4.css +0 -1
  153. package/build/css/login.b74658d1.css +0 -1
  154. package/build/fonts/iconfont.4a13a979.woff +0 -0
  155. package/build/js/1018.41064c0f.js +0 -1
  156. package/build/js/1111.be6e2c40.js +0 -1
  157. package/build/js/1124.74dc01cf.js +0 -1
  158. package/build/js/150.e7f9045d.js +0 -1
  159. package/build/js/1780.599a4f56.js +0 -1
  160. package/build/js/2132.0f13c789.js +0 -1
  161. package/build/js/2328.91f4fab2.js +0 -1
  162. package/build/js/3553.c58039ca.js +0 -1
  163. package/build/js/3745.4b658c7d.js +0 -1
  164. package/build/js/3785.0e5bac50.js +0 -1
  165. package/build/js/4537.0c0b1621.js +0 -3
  166. package/build/js/5547.e7e03105.js +0 -1
  167. package/build/js/6151.73bf0dca.js +0 -1
  168. package/build/js/6166.a11b6605.js +0 -1
  169. package/build/js/677.1be417ae.js +0 -1
  170. package/build/js/6881.110a38eb.js +0 -1
  171. package/build/js/7713.7dac62b2.js +0 -1
  172. package/build/js/7769.da192016.js +0 -1
  173. package/build/js/7928.00d662e4.js +0 -1
  174. package/build/js/8637.8a669454.js +0 -1
  175. package/build/js/8743.ae6b01fb.js +0 -1
  176. package/build/js/931.b906c8b3.js +0 -1
  177. package/build/js/9399.6f01e6fb.js +0 -1
  178. package/build/js/94.043c5ab1.js +0 -1
  179. package/build/js/9751.062a0ec7.js +0 -1
  180. package/build/js/9786.e8445259.js +0 -1
  181. package/build/js/9947.e172d61d.js +0 -1
  182. package/build/js/chunk-vendors.3148df9e.js +0 -300
  183. package/build/js/index.ab116b9c.js +0 -1
  184. package/build/js/login.2480f0b4.js +0 -1
  185. package/build/js/preview.191ab535.js +0 -1
  186. /package/build/css/{1124.b91daf98.css → 215.b91daf98.css} +0 -0
  187. /package/build/css/{8743.b91daf98.css → 2596.b91daf98.css} +0 -0
  188. /package/build/js/{110.e2819667.js → 110.132cb06d.js} +0 -0
  189. /package/build/js/{1349.5011b482.js → 1349.581acd13.js} +0 -0
  190. /package/build/js/{1402.e4936bfb.js → 1402.41e93cca.js} +0 -0
  191. /package/build/js/{1877.f14acfa1.js → 1877.f7dfcbbb.js} +0 -0
  192. /package/build/js/{2318.441a2db7.js → 2318.aa9ea4c9.js} +0 -0
  193. /package/build/js/{250.4513f7c1.js → 250.ee102b58.js} +0 -0
  194. /package/build/js/{3085.42a6da4f.js → 3085.89eae237.js} +0 -0
  195. /package/build/js/{4263.f1987228.js → 4263.33a52188.js} +0 -0
  196. /package/build/js/{4530.2a2c0560.js → 4530.46216301.js} +0 -0
  197. /package/build/js/{5639.a09657c9.js → 5639.fd7fc4f3.js} +0 -0
  198. /package/build/js/{6357.fc8796e2.js → 6357.92e3bda6.js} +0 -0
  199. /package/build/js/{7195.e082572c.js → 7195.20386308.js} +0 -0
  200. /package/build/js/{8657.f0bd7f1f.js → 8657.0480062d.js} +0 -0
  201. /package/build/js/{9044.f58e5368.js → 9044.a0d33e3e.js} +0 -0
  202. /package/build/js/{9170.4182d4a8.js → 9170.00c77288.js} +0 -0
  203. /package/build/js/{9620.ce105b9b.js → 9620.edd4c694.js} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[94,1780,2132,2328,3785,6166,7713,9399,9751,9786,9947],{10854:function(e,t,n){n.d(t,{t:function(){return r}});const r={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":"交互"}},11319:function(e,t,n){n.r(t),n.d(t,{AssetNavigator:function(){return i.w},action:function(){return r},draggable:function(){return o}});var r=n(76669),o=n(41606),i=n(95054)},21275:function(e,t,n){n.r(t),n.d(t,{BaseFragment:function(){return r.A},ErrorComponent:function(){return c.Ax},HTMLFragment:function(){return o.A},LoadingComponent:function(){return c.qH},RightMenu:function(){return l.y},VyrCodeEditor:function(){return c.oQ},VyrColorItem:function(){return c.co},VyrDatasetItem:function(){return c.DN},VyrDirectory:function(){return c.z1},VyrExampleDialog:function(){return c.GS},VyrGraph:function(){return c.Aq},VyrInputItem:function(){return c.rZ},VyrInteractionItem:function(){return c.Hz},VyrRuleItem:function(){return c.rQ},VyrTimeline:function(){return c.bb},VyrVariableItem:function(){return c.fH},VyrWindowSetting:function(){return c.gI},createExample:function(){return u.xo},doExecute:function(){return u.V$},footer:function(){return d.qr},global:function(){return d.Sf},header:function(){return d.wx},language:function(){return i.B},option:function(){return a},preset:function(){return s.I},providerDescriptor:function(){return u.nh},rightMenu:function(){return l.f},setup:function(){return d.mj},sidebar:function(){return d.pz},useDescriptor:function(){return u.bf},zhCnLanguageProvider:function(){return i.t}});var r=n(85196),o=n(84443),i=n(67476),a=n(30582),s=n(70423),u=n(12350),c=n(78593),l=n(46247),d=n(30288)},32132:function(e,t,n){n.r(t),n.d(t,{ArrayUtils:function(){return O.lv},Color:function(){return O.Q1},DraggableController:function(){return D.g},Listener:function(){return O.rZ},Loading:function(){return P.Rh},NotifySetting:function(){return F.G8},ResizeListener:function(){return I.T},RightMenuSetting:function(){return F.Eo},Theme:function(){return r.S},VyrButton:function(){return i.A},VyrCard:function(){return s.A},VyrCascader:function(){return u.A},VyrChecked:function(){return c.A},VyrCheckedGroup:function(){return l.A},VyrCol:function(){return d.A},VyrColorPicker:function(){return f.A},VyrDialog:function(){return g.A},VyrDivider:function(){return a.A},VyrDraggable:function(){return v.A},VyrDrapdown:function(){return p.A},VyrDynamicLayouter:function(){return m.A},VyrForm:function(){return y.A},VyrInput:function(){return b.A},VyrInputNumber:function(){return h.A},VyrLabel:function(){return k.A},VyrMask:function(){return w.A},VyrOption:function(){return M.A},VyrOptions:function(){return R.A},VyrPopover:function(){return C.A},VyrProvider:function(){return V.A},VyrRightMenu:function(){return x.A},VyrRow:function(){return S.A},VyrScroll:function(){return _.A},VyrSelect:function(){return A.A},VyrSlot:function(){return o.A},VyrTree:function(){return L.A},addFloatLayer:function(){return F.r4},computedFloatLayer:function(){return F.tg},confirm:function(){return P.lJ},confirmKey:function(){return F.GR},createPopper:function(){return F.n4},dialog:function(){return P.r3},dialogKey:function(){return F.SE},dialogPrivateWarp:function(){return F.g_},dynamicLayouterlisteners:function(){return F.CG},floatLayer:function(){return F.iF},generateFloatLayer:function(){return F.pi},getConfirmState:function(){return F.Wz},getDialogHeight:function(){return F.Ub},getDialogState:function(){return F.MX},getDialogWrapHeight:function(){return F.YZ},getDialogWrapRect:function(){return F.Tl},getDirective:function(){return F.e8},getFirstVNode:function(){return F.RB},getInputValue:function(){return F.y5},getOnlyNode:function(){return F.ZO},getOptions:function(){return F.$E},getSearchOptions:function(){return F.Ds},getSelectOptions:function(){return F.pN},inputNumberReExp:function(){return F.ap},isActiveLayer:function(){return F.mo},isContains:function(){return F.c5},language:function(){return E.B},loading:function(){return P.Lq},notify:function(){return P.me},observer:function(){return F.PA},removeFloatLayer:function(){return F.Cn},seActiveLayer:function(){return F.gV},tooltip:function(){return F.YL},useConfirmState:function(){return F.V2},useDialogState:function(){return F.pA},zhCnLanguageProvider:function(){return E.t}});var r=n(32946),o=n(7931),i=n(62687),a=n(41030),s=n(62517),u=n(67079),c=n(43554),l=n(33947),d=n(15687),f=n(38430),p=n(68676),g=n(8715),v=n(66384),m=n(91905),y=n(75465),b=n(18985),h=n(55522),k=n(91023),w=n(73923),M=n(81320),R=n(54963),C=n(67698),V=n(72756),S=n(98433),_=n(60460),A=n(62263),L=n(60651),x=n(78966),E=n(7135),D=n(57744),I=n(4615),P=n(1307),F=n(93623),O=n(29255)},39349:function(e,t,n){n.d(t,{B:function(){return r.B}});n(10854);var r=n(56171)},48082:function(e,t,n){n.r(t),n.d(t,{run:function(){return Ee}});var r=n(39349),o=n(14291),i=n(67227),a=n(77409),s=n(50931),u=n(81336),c=n(32132),l=n(21275),d=n(93785),f=n(89974),p=n(92601),g=n(34753),v=n(70172),m=n(54870),y=n(89035);const b={class:"header-menu"},h=["onContextmenu"];var k=(0,i.pM)({__name:"Header",setup(e){(0,a.$9)(e=>({v30a82d82:(0,o.R1)(m.O3).headerHeight+"px"}));const t=u.runtime.get("data"),n=u.runtime.get("shortcutkey"),s=n.get("header"),c=[{label:r.B.get("header.menus.file.label"),value:"file"},{label:r.B.get("header.menus.scene.label"),value:"scene"}],d=(e,n)=>{t.header.status.type=e,l.rightMenu.show(s,n.clientX,n.clientY).then().catch(()=>{})};return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-header",onMousedown:t[0]||(t[0]=e=>(0,o.R1)(n).active("header"))},[t[1]||(t[1]=(0,i.Lk)("div",{class:"header-logo"},[(0,i.Lk)("img",{src:"/logo/透明图标.png",alt:"logo"})],-1)),(0,i.Lk)("div",b,[((0,i.uX)(),(0,i.CE)(i.FK,null,(0,i.pI)(c,(e,t)=>(0,i.Lk)("div",{class:"menu-item",key:t,onContextmenu:t=>d(e.value,t)},(0,y.v_)(e.label),41,h)),64))]),t[2]||(t[2]=(0,i.Lk)("div",{class:"header-link"},null,-1))],32))}}),w=n(45904);const M=(0,w.A)(k,[["__scopeId","data-v-1902a614"]]);var R=M,C=n(92328);const V={class:"vyr-body-animation"},S={class:"controller"},_={class:"timeline"},A={class:"controller"};var L=(0,i.pM)({__name:"Animation",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("remote"),r=n.get("preview"),a=()=>{t.status.animation.enabled=!t.status.animation.enabled,t.status.animation.enabled&&(t.status.transform.mode="",t.status.transform.target="",r.bridge.send(new C.Job.invoke.transform.Task(t.status.transform))),r.bridge.send(new C.Job.invoke.animation.Task(t.status.animation))},s=(e=0)=>{t.status.animation.currentTime=e;const n=new C.Job.invoke.animation.Task(t.status.animation);n.reset=!0,r.bridge.send(n)};return(e,n)=>((0,i.uX)(),(0,i.CE)("div",V,[(0,i.Lk)("div",S,[(0,i.Lk)("i",{class:(0,y.C4)(["vyrfont",[(0,o.R1)(t).status.animation.enabled?"vyr-tingzhi":"vyr-yunhang"]]),onClick:a},null,2)]),(0,i.Lk)("div",_,[(0,i.bF)((0,o.R1)(l.VyrTimeline),{onUpdateTime:s})]),(0,i.Lk)("div",A,[(0,i.Lk)("i",{class:"vyrfont vyr-zhongzhi",onClick:n[0]||(n[0]=e=>s())})])]))}});const x=(0,w.A)(L,[["__scopeId","data-v-8262b0f2"]]);var E=x,D=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}),I=(0,i.pM)({__name:"CondRenderer",setup(e){const t=u.runtime.get("rpc"),r=u.runtime.get("asset"),a=(0,o.KR)(""),c=(0,o.KR)(null);(0,m.l)(c);const l=[{type:s.DatasetDescriptor.type,compoment:(0,i.$V)(()=>n.e(3745).then(n.bind(n,73745)))},{type:s.InteractionDescriptor.type,compoment:(0,i.$V)(()=>n.e(2546).then(n.bind(n,72546)))}],f=(0,i.EW)(()=>{const e=l.find(e=>{var t;return e.type===(null==(t=c.value)?void 0:t.type)});return void 0===e?null:e.compoment}),p=(0,i.EW)(()=>{if(!a.value)return!1;const e=d.VirtualNode.get(a.value);return!e.isEditable(t.client)}),g=e=>D(null,null,function*(){a.value=e.url;const t=yield r.read(e.url);if(""===a.value)return;const n=s.DatasetDescriptor.deserialization(t);c.value=n}),v=()=>{a.value="",c.value=null},y=e=>{if(e.params.client!==t.client)return;const n=d.VirtualNode.get(e.params.url);[s.Category.datasetSuffix,s.Category.interactionSuffix].includes(n.suffix)&&g(n)},b=e=>{if(e.params.client!==t.client)return;const n=d.VirtualNode.get(e.params.url);[s.Category.datasetSuffix,s.Category.interactionSuffix].includes(n.suffix)&&v()},h=e=>{if(null===c.value||e.params.content.uuid!==c.value.uuid)return;const t=d.VirtualNode.get(e.params.url);if([s.Category.datasetSuffix,s.Category.interactionSuffix].includes(t.suffix)){const t=e.params.content;c.value=t}};return t.listen(d.Message.asset.open.Method,y),t.listen(d.Message.asset.close.Method,b),t.listen(d.Message.asset.update.Method,h),(e,t)=>((0,i.uX)(),(0,i.Wv)((0,i.$y)(f.value),{url:a.value,readonly:p.value},null,8,["url","readonly"]))}});const P=(0,w.A)(I,[["__scopeId","data-v-0cc3fa52"]]);var F=P,O=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const z={class:"vyr-body"},T={class:"body-setting"},B={class:"body-animation"};var W=(0,i.pM)({__name:"Body",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("remote"),r=n.get("preview"),a=(0,o.KR)({disbaled:!1}),s=(0,i.rk)("refWrapper"),c=(0,i.rk)("refPreview"),d=()=>{const e=s.value.getBoundingClientRect(),n=e.width/t.body.width,r=e.height/t.body.height;t.body.scale=Math.min(n,r),t.body.position.x=e.width/2,t.body.position.y=e.height/2,t.body.left=e.left,t.body.top=e.top};(0,i.wB)(()=>[t.body.width,t.body.height],d);const f=e=>{a.value.disbaled=!0},p=()=>{a.value.disbaled=!1},g=(0,m.oY)();return(0,i.sV)(()=>O(null,null,function*(){(0,i.dY)(d),r.mount("refPreview"),window.addEventListener("mousedown",f),window.addEventListener("mouseup",p),window.addEventListener("mouseleave",p),window.addEventListener("resize",d)})),(0,i.xo)(()=>O(null,null,function*(){window.removeEventListener("mousedown",f),window.removeEventListener("mouseup",p),window.removeEventListener("mouseleave",p),window.removeEventListener("resize",d),g.then(e=>e())})),(e,n)=>((0,i.uX)(),(0,i.CE)("div",z,[(0,i.Lk)("div",T,[(0,i.bF)((0,o.R1)(l.VyrWindowSetting))]),(0,i.Lk)("div",{class:(0,y.C4)(["body-viewer",{disabeld:a.value.disbaled}]),ref_key:"refWrapper",ref:s},[(0,i.Lk)("div",{ref_key:"refPreview",ref:c,id:"refPreview",class:"preview",style:(0,y.Tr)(`width:${(0,o.R1)(t).body.width}px;\n height:${(0,o.R1)(t).body.height}px;\n left:${(0,o.R1)(t).body.position.x}px;\n top:${(0,o.R1)(t).body.position.y}px;\n background:${(0,o.R1)(t).body.background};\n transform:translate(-50%,-50%) scale(${(0,o.R1)(t).body.scale});`)},null,4)],2),(0,i.Lk)("div",B,[(0,i.bF)(E)]),(0,i.bF)(F)]))}});const X=(0,w.A)(W,[["__scopeId","data-v-36c85bf1"]]);var J=X,N=Object.defineProperty,U=Object.defineProperties,j=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,G=(e,t,n)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||(t={}))$.call(t,n)&&G(e,n,t[n]);if(K)for(var n of K(t))H.call(t,n)&&G(e,n,t[n]);return e},Y=(e,t)=>U(e,j(t)),Q=(0,i.pM)({__name:"Interaction",setup(e){const t=u.runtime.get("rpc"),n=u.runtime.get("data"),a=u.runtime.get("graph"),f=(0,i.EW)(()=>{const e=n.sidebar.get(n.sidebar.active);return null===e||e.ensureReadonlyWhereInteraction(t.client)}),v=(0,o.KR)(null),m=(e,t)=>{for(const n of e.nodes){const e=t[n.id];void 0!==e&&(n.input=s.InteractionDescriptor.deepClone(e))}},b=(e,t)=>{if(e){const t=s.InteractionDescriptor.deepClone(e);m(t,a.state.inputs),v.value=t}else v.value=null};(0,i.wB)(()=>a.state.interaction,b,{deep:!0,immediate:!0});let h=null;const k=e=>{h=e},w=()=>{h=null,a.state.reset()},M=(e,t)=>{const n={};for(const r of t.nodes)n[r.id]=r.input;for(const r of e.interactions)if(r.uuid===a.state.event){r.inputs=n;break}},R=()=>{if(null===h)return;const e=s.Descriptor.get(a.state.descriptor);if(null===e)return;const t=e.clone(!1);M(t,h);const r=n.sidebar.get(n.sidebar.active);null!==r&&r.saveWhereInteraction(Y(q({},t),{uuid:e.uuid}))},C=e=>{if(null===a.state.interaction)return;if(null===v.value)return;if(n.sidebar.active!==p.SceneService.key)return;if(a.state.descriptor!==e.params.content.uuid)return;const t=e.params.content;for(const n of t.interactions)if(a.state.event===n.uuid){const e=s.Descriptor.deepClone(v.value);e.uuid=v.value.uuid,0===Object.keys(n.inputs).length?e.nodes=s.Descriptor.deepClone(a.state.interaction.nodes):m(e,n.inputs),v.value=e;break}},V=e=>{if(null===a.state.interaction)return;if(null===v.value)return;if(n.sidebar.active!==g.AssetService.key)return;if(a.state.descriptor!==e.params.content.uuid)return;const t=e.params.content;for(const n of t.interactions)if(a.state.event===n.uuid){const e=s.Descriptor.deepClone(v.value);e.uuid=v.value.uuid,0===Object.keys(n.inputs).length?e.nodes=s.Descriptor.deepClone(a.state.interaction.nodes):m(e,n.inputs),v.value=e;break}};return t.listen(d.Message.scene.update.Method,C),t.listen(d.Message.asset.update.Method,V),(e,t)=>((0,i.uX)(),(0,i.Wv)((0,o.R1)(c.VyrDialog),{modelValue:(0,o.R1)(a).state.visible,"onUpdate:modelValue":t[1]||(t[1]=e=>(0,o.R1)(a).state.visible=e),width:(0,o.R1)(a).state.width,height:(0,o.R1)(a).state.height,onClose:w},(0,i.eX)({scroll:(0,i.k6)(()=>[v.value?((0,i.uX)(),(0,i.Wv)((0,o.R1)(l.VyrGraph),{key:0,interaction:v.value,readonly:!0,addable:!1,"input-readonly":f.value,onChange:k},null,8,["interaction","input-readonly"])):(0,i.Q3)("",!0)]),_:2},[!1===f.value?{name:"footer",fn:(0,i.k6)(()=>[(0,i.bF)((0,o.R1)(c.VyrButton),{onClick:t[0]||(t[0]=e=>(0,o.R1)(a).state.visible=!1)},{default:(0,i.k6)(()=>[(0,i.eW)((0,y.v_)((0,o.R1)(r.B).get("sidebar.interaction.button.close")),1)]),_:1}),(0,i.bF)((0,o.R1)(c.VyrButton),{onClick:R},{default:(0,i.k6)(()=>[(0,i.eW)((0,y.v_)((0,o.R1)(r.B).get("sidebar.interaction.button.save")),1)]),_:1})]),key:"0"}:void 0]),1032,["modelValue","width","height"]))}});const Z=Q;var ee=Z;const te={class:"vyr-tabs"},ne=["onClick"],re={class:"vyr-wrapper"};var oe=(0,i.pM)({__name:"Sidebar",setup(e){const t=u.runtime.get("data"),n=t.sidebar.get(g.AssetService.key),r=u.runtime.get("inspector"),a=u.runtime.get("shortcutkey"),s=u.runtime.get("rpc"),f=u.runtime.get("graph"),p=a.getAction(l.global.action.SidebarAction.id),v=(0,i.EW)(()=>t.sidebar.getCollection()),m=(0,i.EW)(()=>r.get(`sidebar.${t.sidebar.active}`)),b=e=>{t.sidebar.active!==e&&p.toggleSidebar(e,t,s)};return s.listen(d.Message.sidebar.switch.Method,e=>{t.sidebar.active!==e.params.active&&(e.params.data.asset&&(n.url=e.params.data.asset),t.sidebar.toggle(e.params.active),f.state.reset(),f.state.visible=!1)}),(e,n)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,y.C4)(["vyr-sidebar",{fold:v.value.length<=1}])},[(0,i.Lk)("div",te,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(v.value,(e,n)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,y.C4)(["vyr-tab",{active:e.key===(0,o.R1)(t).sidebar.active}]),key:n,onClick:t=>b(e.key)},[(0,i.bF)((0,o.R1)(c.VyrPopover),{trigger:"hover",placement:"left"},{trigger:(0,i.k6)(()=>[(0,i.Lk)("i",{class:(0,y.C4)(["vyrfont",e.icon])},null,2)]),default:(0,i.k6)(()=>[(0,i.eW)(" "+(0,y.v_)(e.label),1)]),_:2},1024)],10,ne))),128))]),(0,i.Lk)("div",re,[((0,i.uX)(),(0,i.Wv)((0,i.$y)(m.value)))]),(0,i.bF)(ee)],2))}});const ie=(0,w.A)(oe,[["__scopeId","data-v-b75dcc08"]]);var ae=ie;const se={class:"vyr-inspector"},ue={class:"vyr-selector"},ce=["onClick"],le={class:"vyr-dispaly"};var de=(0,i.pM)({__name:"Inspector",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("inspector"),a=(0,o.KR)([{label:"",value:"",icon:"vyr-bianji"},{label:r.B.get("inspector.Dataset"),value:t.inspector.datasetKind,icon:"vyr-category-dataset"},{label:r.B.get("inspector.Interaction"),value:t.inspector.eventKind,icon:"vyr-category-interaction"}]),s=(0,i.EW)(()=>n.get(`inspector.${t.sidebar.active}`));return(e,n)=>((0,i.uX)(),(0,i.CE)("div",se,[(0,i.Lk)("div",ue,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(a.value,(e,n)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,y.C4)(["vyr-option",{active:(0,o.R1)(t).inspector.active===e.value}]),key:n,onClick:n=>(0,o.R1)(t).inspector.active=e.value},[(0,i.Lk)("i",{class:(0,y.C4)(["vyrfont option-icon",e.icon])},null,2)],10,ce))),128))]),(0,i.Lk)("div",le,[(0,i.bF)((0,o.R1)(c.VyrProvider),{row:{margin:"0,0,12",gutter:6},label:{width:85,align:"right"}},{default:(0,i.k6)(()=>[((0,i.uX)(),(0,i.Wv)((0,i.$y)(s.value)))]),_:1})])]))}});const fe=(0,w.A)(de,[["__scopeId","data-v-93577550"]]);var pe=fe,ge=(0,i.pM)({__name:"Manifest",props:{controller:{}},emits:["rightClick","doubleClick"],setup(e,{emit:t}){const n=u.runtime.get("data"),r=u.runtime.get("draggable"),a=u.runtime.get("asset"),s=t,d=e,f=e=>{for(const t of n.footer.status.selectAll)if(t.url===e.url)return!0;return!1},p=(e,t)=>{s("rightClick",e,t)},g=(e,t)=>{!0===e.shiftKey?d.controller.selectionManifestItem(t,n):!0===e.ctrlKey?d.controller.checkedManifestItem(t,n):d.controller.changeManifestItem(t,n)},v=(e,t)=>{s("doubleClick",e,t)},m=(e,t)=>{d.controller.renameAsset(e,t,a,n)},y=(e,t)=>{0===e.button&&c.DraggableController.start(t,r.get(r.key.footer),t.name,e)};return(e,t)=>((0,i.uX)(),(0,i.Wv)((0,o.R1)(c.VyrScroll),{padding:10},{default:(0,i.k6)(()=>[(0,i.bF)((0,o.R1)(l.VyrDirectory),{data:(0,o.R1)(n).footer.manifest,active:f,onRightClick:p,onMousedown:y,onClick:g,onChangeName:m,onDoubleClick:v},null,8,["data"])]),_:1}))}});const ve=ge;var me=ve;const ye={class:"footer-header"},be={class:"search"},he={class:"footer-body"};var ke=(0,i.pM)({__name:"Footer",setup(e){const t=u.runtime.get("data"),n=u.runtime.get("shortcutkey"),a=u.runtime.get("rpc"),s=u.runtime.get("asset"),f=(0,i.rk)("refSearch"),p=(0,i.rk)("refScroll"),g=(0,i.rk)("refTree"),v={expand:(e,t)=>{var n;return null==(n=g.value)?void 0:n.expand(e,t)},change:e=>{var t;return null==(t=g.value)?void 0:t.change(e)},search:()=>{var e;return null==(e=f.value)?void 0:e.focus()}},m=n.get("global"),y=m.get(l.global.action.FooterAction.id);y.setController(v);const b=n.get("footer"),h=b.get(l.footer.action.ControllerAction.id);h.setController(v);const k=e=>!1===e.fileType,w=()=>t.footer.status.mouseItem=null,M=(e,n)=>{t.footer.status.mouseRegion="directory",t.footer.status.mouseItem=e,l.rightMenu.show(b,n.clientX,n.clientY).catch(w)},R=(e,n)=>{t.footer.status.mouseItem=null!=n?n:null,l.rightMenu.show(b,e.clientX,e.clientY).catch(w)},C=(e,t)=>{if(t.fileType)return;v.change([t]);const n=t.traceAncestor(!1);n.parent&&v.expand(n.parent,!0)},V=(e,n,r)=>{"add"===e?h.createAsset(n,r,s,t):h.renameAsset(n,r,s,t),w(),t.footer.status.modifyMode="close",t.footer.status.modifyValue=null,t.footer.status.modifySuffix="",t.footer.status.modifyContent=""},S=e=>{a.unlisten(d.Message.scene.initialize.Method,S),y.execute()};return a.listen(d.Message.asset.initialize.Method,S),(e,a)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-footer",onMousedown:a[4]||(a[4]=e=>(0,o.R1)(n).active("footer"))},[(0,i.Lk)("div",ye,[a[5]||(a[5]=(0,i.Lk)("div",{class:"tabs"},null,-1)),(0,i.Lk)("div",be,[(0,i.bF)((0,o.R1)(c.VyrInput),{ref_key:"refSearch",ref:f,placeholder:(0,o.R1)(r.B).get("footer.search.placeholder"),width:"240px",modelValue:(0,o.R1)(t).footer.status.search,"onUpdate:modelValue":a[0]||(a[0]=e=>(0,o.R1)(t).footer.status.search=e),clearable:!0},null,8,["placeholder","modelValue"])])]),(0,i.Lk)("div",he,[(0,i.bF)((0,o.R1)(c.VyrDynamicLayouter),{mode:"vertical","model-value":355},{default:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"directory",onMousedown:a[1]||(a[1]=e=>(0,o.R1)(h).setRegion("directory"))},[(0,i.bF)((0,o.R1)(c.VyrScroll),{ref_key:"refScroll",ref:p,margin:6,padding:4},{default:(0,i.k6)(()=>{var e;return[(0,i.bF)((0,o.R1)(c.VyrTree),{ref_key:"refTree",ref:g,data:(0,o.R1)(t).footer.root.children,getter:(0,o.R1)(t).footer.getter,modify:(0,o.R1)(t).footer.status.modifyMode,"modify-value":null==(e=(0,o.R1)(t).footer.status.modifyValue)?void 0:e.url,visible:k,onModify:V,onRightClick:M,onChange:(0,o.R1)(h).changeDirectoryItem},null,8,["data","getter","modify","modify-value","onChange"])]}),_:1},512)],32)]),sidebar:(0,i.k6)(()=>[(0,i.Lk)("div",{class:"manifest",onMousedown:a[2]||(a[2]=e=>(0,o.R1)(h).setRegion("manifest")),onContextmenu:a[3]||(a[3]=e=>R(e))},[(0,i.bF)(me,{controller:(0,o.R1)(h),onRightClick:R,onDoubleClick:C},null,8,["controller"])],32)]),_:1})])],32))}});const we=(0,w.A)(ke,[["__scopeId","data-v-a6eb8830"]]);var Me=we;const Re={class:"status-item"};var Ce=(0,i.pM)({__name:"Status",props:{size:{}},setup(e){return(t,n)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-status",style:(0,y.Tr)(`height:${e.size}px;`)},[(0,i.Lk)("div",Re,[(0,i.Lk)("div",{class:(0,y.C4)(["status-value",{disabled:!1}])})])],4))}});const Ve=(0,w.A)(Ce,[["__scopeId","data-v-273c52c1"]]);var Se=Ve,_e=(0,i.pM)({__name:"App",setup(e){(0,a.$9)(e=>({cdacc302:(0,o.R1)(m.O3).headerHeight+(0,o.R1)(m.O3).statusHeight+"px"}));const t=u.runtime.get("data");return(e,n)=>((0,i.uX)(),(0,i.CE)("div",{class:"vyr-editor",onContextmenu:n[3]||(n[3]=(0,a.D$)(()=>{},["prevent","stop"]))},[(0,i.bF)(R),(0,i.bF)((0,o.R1)(c.VyrDynamicLayouter),{class:"vyr-main",mode:"vertical",sidebar:!1,modelValue:(0,o.R1)(t).inspector.size,"onUpdate:modelValue":n[2]||(n[2]=e=>(0,o.R1)(t).inspector.size=e)},{default:(0,i.k6)(()=>[(0,i.bF)((0,o.R1)(c.VyrDynamicLayouter),{sidebar:!1,modelValue:(0,o.R1)(t).footer.size,"onUpdate:modelValue":n[1]||(n[1]=e=>(0,o.R1)(t).footer.size=e)},{default:(0,i.k6)(()=>[(0,i.bF)((0,o.R1)(c.VyrDynamicLayouter),{mode:"vertical",modelValue:(0,o.R1)(t).sidebar.size,"onUpdate:modelValue":n[0]||(n[0]=e=>(0,o.R1)(t).sidebar.size=e)},{default:(0,i.k6)(()=>[(0,i.bF)(ae)]),sidebar:(0,i.k6)(()=>[(0,i.bF)(J)]),_:1},8,["modelValue"])]),sidebar:(0,i.k6)(()=>[(0,i.bF)(Me)]),_:1},8,["modelValue"])]),sidebar:(0,i.k6)(()=>[(0,i.bF)(pe)]),_:1},8,["modelValue"]),(0,i.bF)(Se,{size:(0,o.R1)(m.O3).statusHeight},null,8,["size"]),(0,o.R1)(t).global.template.visible?((0,i.uX)(),(0,i.Wv)((0,o.R1)(l.VyrExampleDialog),{key:0})):(0,i.Q3)("",!0)],32))}});const Ae=_e;var Le=Ae,xe=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const Ee=(e,t,n)=>xe(null,null,function*(){c.loading.show();const n=d.RpcService.getToken(),r=e=>c.notify.send(e),y=(0,o.Kh)(new d.UseRecord),b=(0,o.Kh)(new u.DataService("data"));b.sidebar.set(new l.sidebar.scene.SceneNavigator(p.SceneService.key)),b.sidebar.set(new l.sidebar.asset.AssetNavigator(g.AssetService.key));const h=b.sidebar.get(p.SceneService.key),k=b.sidebar.get(g.AssetService.key),w=(0,i.EW)(()=>h.updateVisibilityMapBySearch()),M=(0,i.EW)(()=>k.updateVisibilityMapBySearch());(0,i.wB)(()=>w.value,()=>h.visibilityMap=w.value,{immediate:!0}),(0,i.wB)(()=>M.value,()=>k.visibilityMap=M.value,{immediate:!0});const R=new u.PresetService("preset"),C=new u.RemoteService("remote"),V=new u.DraggableService("draggable"),S=new u.InspectorService("inspector",{loading:l.LoadingComponent,error:l.ErrorComponent}),_=new u.ShortcutkeyService("shortcutkey"),A=new f.GraphService("graph"),L=new d.RpcService("rpc",{token:n,notify:r,confirm:c.confirm}),x=new g.AssetService("asset",b.footer.root),E=new p.SceneService("scene",y,h),D=new v.ExampleService("example");s.Asset.baseUrl=L.url,c.Loading.show=()=>_.disable(),c.Loading.close=()=>_.enable(),c.notify.setOffset(m.O3.headerHeight);const I=[b,R,C,V,S,_,A,L,x,E,D],P=[];for(const e of I)u.runtime.set(e),P.push(e.setup());yield Promise.all(P),P.length=0,(0,l.setup)();for(const e of t)yield e.setup();const F=u.Runtime.services();for(const e of F)P.push(e.ready());yield Promise.all(P),P.length=0;const O=(0,a.Ef)(Le);O.mount(e);for(const e of F)P.push(e.start());yield Promise.all(P),P.length=0,_.listen(),b.sidebar.toggle(h.key),c.loading.close()})},54870:function(e,t,n){n.d(t,{O3:function(){return r},l:function(){return a},oY:function(){return W},FU:function(){return s}});const r={headerHeight:42,statusHeight:25};var o=n(67227);const i=Symbol(),a=e=>{(0,o.Gt)(i,e)},s=()=>(0,o.WQ)(i);var u=n(39349),c=n(81336),l=n(21275),d=n(93785),f=n(92328),p=Object.defineProperty,g=Object.defineProperties,v=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))y.call(t,n)&&h(e,n,t[n]);if(m)for(var n of m(t))b.call(t,n)&&h(e,n,t[n]);return e},w=(e,t)=>g(e,v(t)),M=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});const R=e=>M(null,null,function*(){const t=c.runtime.get("remote"),n=t.get("preview");n.bridge.send(new f.Job.scene.load.Task({url:e}))}),C=e=>M(null,null,function*(){R(e.params.url)}),V=e=>M(null,null,function*(){const t=c.runtime.get("rpc");t.client===e.params.client&&R(e.params.url.new)}),S=e=>{const t=c.runtime.get("remote");t.send(new f.Job.scene.add.Task(e.params))},_=e=>{const t=c.runtime.get("remote");t.send(new f.Job.scene.remove.Task(e.params))},A=e=>{const t=c.runtime.get("remote");t.send(new f.Job.scene.update.Task(e.params))},L=e=>{const t=c.runtime.get("remote");t.send(new f.Job.scene.dragdrap.Task(e.params))},x=e=>{const t=c.runtime.get("remote");t.send(new f.Job.asset.add.Task(e.params))},E=e=>{const t=c.runtime.get("remote");t.send(new f.Job.asset.remove.Task(e.params))},D=e=>{const t=c.runtime.get("remote");t.send(new f.Job.asset.update.Task(e.params))},I=e=>{const t=c.runtime.get("remote");t.send(new f.Job.asset.dragdrap.Task(e.params))},P=e=>M(null,null,function*(){console.log("alert",e)}),F=e=>M(null,null,function*(){if("mouse"===e.params.type){const t=c.runtime.get("data"),n=e.params.properties.clientX*t.body.scale-t.body.left,r=e.params.properties.clientY*t.body.scale-t.body.top,o=new MouseEvent(e.params.properties.type,w(k({},e.params.properties),{clientX:n,clientY:r}));window.dispatchEvent(o)}else if("keyboard"===e.params.type){const t=new KeyboardEvent(e.params.properties.type,e.params.properties);window.dispatchEvent(t)}}),O=e=>M(null,null,function*(){if("unit"===e.params.type){const t=c.runtime.get("data");if("number"===typeof e.params.max&&(t.status.animation.max=e.params.max),!1===t.status.animation.enabled)return;const n=t.status.animation.currentTime+e.params.delta,r=n%t.status.animation.max;t.status.animation.currentTime=isNaN(r)?0:r}else{const t=c.runtime.get("data");t.inspector.animations[e.params.uuid]=e.params.animations}}),z=e=>M(null,null,function*(){const t=c.runtime.get("data"),n=t.sidebar.get(t.sidebar.active);if(null===n)return console.log(u.B.get("body.sidebar.notFound",{key:t.sidebar.active}));n.remoteTransformEvent(e)}),T=e=>M(null,null,function*(){const t=c.runtime.get("data"),n=t.sidebar.get(t.sidebar.active);if(null===n)return console.log(u.B.get("body.sidebar.notFound",{key:t.sidebar.active}));n.remotePickEvent(e)}),B=e=>M(null,null,function*(){(0,l.createExample)(e.params)}),W=()=>M(null,null,function*(){const e=c.runtime.get("remote"),t=e.get("preview"),n=c.runtime.get("rpc");yield t.ready(),n.listen(d.Message.scene.initialize.Method,C),n.listen(d.Message.scene.switch.Method,V),n.listen(d.Message.scene.add.Method,S),n.listen(d.Message.scene.remove.Method,_),n.listen(d.Message.scene.update.Method,A),n.listen(d.Message.scene.dragdrap.Method,L),n.listen(d.Message.asset.add.Method,x),n.listen(d.Message.asset.remove.Method,E),n.listen(d.Message.asset.update.Method,D),n.listen(d.Message.asset.dragdrap.Method,I),t.bridge.listen(f.Job.invoke.alert.Method,P),t.bridge.listen(f.Job.invoke.animation.Method,O),t.bridge.listen(f.Job.invoke.event.Method,F),t.bridge.listen(f.Job.invoke.transform.Method,z),t.bridge.listen(f.Job.invoke.pick.Method,T),t.bridge.listen(f.Job.invoke.screenshot.Method,B);const r=()=>{n.unlisten(d.Message.scene.initialize.Method,C),n.unlisten(d.Message.scene.switch.Method,C),n.unlisten(d.Message.scene.add.Method,S),n.unlisten(d.Message.scene.remove.Method,_),n.unlisten(d.Message.scene.update.Method,A),n.unlisten(d.Message.scene.dragdrap.Method,L),n.unlisten(d.Message.asset.add.Method,x),n.unlisten(d.Message.asset.remove.Method,E),n.unlisten(d.Message.asset.update.Method,D),n.unlisten(d.Message.asset.dragdrap.Method,I),t.bridge.unlisten(f.Job.invoke.alert.Method,P),t.bridge.unlisten(f.Job.invoke.animation.Method,O),t.bridge.unlisten(f.Job.invoke.event.Method,F),t.bridge.unlisten(f.Job.invoke.transform.Method,z),t.bridge.unlisten(f.Job.invoke.pick.Method,T),t.bridge.unlisten(f.Job.invoke.screenshot.Method,B)};return r})},56171:function(e,t,n){n.d(t,{B:function(){return i}});var r=n(75133),o=n(10854);r.Locale.register(o.t);const i=r.Locale.getLanguage(o.t.name)},58155:function(e,t,n){n.r(t),n.d(t,{SceneNavigator:function(){return i.a},action:function(){return r},draggable:function(){return o}});var r=n(5787),o=n(51946),i=n(31230)},70172:function(e,t,n){n.r(t),n.d(t,{ExampleService:function(){return k},language:function(){return i},zhCnLanguageProvider:function(){return r}});const r={id:"zh_CN",name:"@vyr/service-example"};var o=n(75133);o.Locale.register(r);const i=o.Locale.getLanguage(r.name);var a=n(89168),s=n(81336),u=n(93785),c=n(87167),l=n(34753),d=n(50931),f=Object.defineProperty,p=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t,n)=>p(e,"symbol"!==typeof t?t+"":t,n);class v{constructor(e){g(this,"ready",new d.AsyncTask),g(this,"service"),g(this,"_connection",()=>{const e=s.runtime.get("rpc");e.send(new u.Message.example.initialize.RequestMessage)}),g(this,"_disconnect",e=>{}),g(this,"_initialize",(e,t)=>{this.ready.run()}),this.service=e}listen(){const e=s.runtime.get("rpc");e.listen(u.Message.rpc.connection.Method,this._connection),e.listen(u.Message.rpc.disconnect.Method,this._disconnect),e.listen(u.Message.example.initialize.Method,this._initialize)}}var m=Object.defineProperty,y=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>y(e,"symbol"!==typeof t?t+"":t,n),h=(e,t,n)=>new Promise((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())});class k extends c.Service{constructor(e){super(e),b(this,"_provider"),this._provider=new v(this)}ready(){return h(this,null,function*(){this._provider.listen()})}start(){return h(this,null,function*(){yield this._provider.ready.done()})}list(e){const t=s.runtime.get("rpc");return t.send(new u.Message.example.list.RequestMessage(e))}create(e){const t=s.runtime.get("rpc");return t.send(new u.Message.example.create.RequestMessage(e))}delete(e){const t=s.runtime.get("rpc");return t.send(new u.Message.example.delete.RequestMessage(e))}apply(e,t){const n=s.runtime.get("rpc");return n.send(new u.Message.example.apply.RequestMessage(e,t))}download(e,t){return h(this,null,function*(){const n=yield a.A.get("/download/example",{params:{example:e},responseType:"blob"});l.AssetService.save(t,n.data)})}upload(e){return h(this,null,function*(){yield a.A.post("/upload/example",e)})}}},81336:function(e,t,n){n.r(t),n.d(t,{Action:function(){return i.r},ActionGroup:function(){return i.K},DataService:function(){return a.u},Draggable:function(){return u.s},DraggableService:function(){return u.f},Global:function(){return a.m},InspectorService:function(){return c.j},PresetService:function(){return s.R},RemoteService:function(){return l.e},Runtime:function(){return f.v},ShortcutkeyService:function(){return d.t},SidebarNavigator:function(){return o.I},Status:function(){return o.n},language:function(){return r.B},runtime:function(){return f.f},zhCnLanguageProvider:function(){return r.t}});var r=n(72931),o=n(34361),i=n(1520),a=n(46550),s=n(34774),u=n(2284),c=n(21822),l=n(52913),d=n(20986),f=n(69188)},89974:function(e,t,n){n.r(t),n.d(t,{BranchUnit:function(){return i.D0},ConditionUnit:function(){return i.oh},ExecuteUnit:function(){return i.Wl},GraphDrawer:function(){return a._},GraphService:function(){return s.G},InteractionUnit:function(){return i.HZ},Unit:function(){return o.N},language:function(){return r.B},zhCnLanguageProvider:function(){return r.t}});var r=n(46237),o=n(14246),i=n(93904),a=n(4600),s=n(64263)},92328:function(e,t,n){n.r(t),n.d(t,{Bridge:function(){return i.q},Collection:function(){return a.p},Job:function(){return o._},RemoteExecutor:function(){return s.Q},RemoteInvoker:function(){return c.p},RemoteProcess:function(){return u.u},language:function(){return r.B},zhCnLanguageProvider:function(){return r.t}});var r=n(28723),o=n(84105),i=n(76379),a=n(70026),s=n(93355),u=n(70151),c=n(22984)},93785:function(e,t,n){n.r(t),n.d(t,{Entity:function(){return r.wC},ExampleDO:function(){return r.Aj},ExampleVO:function(){return r.Uc},Message:function(){return r.QB},Method:function(){return r.IT},NoticeMessage:function(){return r.qe},Operation:function(){return r.I},RpcService:function(){return i.R},UseRecord:function(){return r.Nk},UserDO:function(){return r.bw},UserVO:function(){return r.dC},VirtualNode:function(){return r.UV},defineScheme:function(){return r.XZ},language:function(){return o.B},path:function(){return r.Ae},tokenKey:function(){return r.bV},topic:function(){return r.At},zhCnLanguageProvider:function(){return o.t}});var r=n(38788),o=n(70584),i=n(9763)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[]).push([[2328,9947],{92328:function(n,e,r){r.r(e),r.d(e,{Bridge:function(){return o.q},Collection:function(){return c.p},Job:function(){return u._},RemoteExecutor:function(){return i.Q},RemoteInvoker:function(){return a.p},RemoteProcess:function(){return f.u},language:function(){return t.B},zhCnLanguageProvider:function(){return t.t}});var t=r(28723),u=r(84105),o=r(76379),c=r(70026),i=r(93355),f=r(70151),a=r(22984)}}]);