@vtj/pro 0.7.1 → 0.7.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.
@@ -33,13 +33,13 @@ version: 2.9.0
33
33
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
34
34
  * @name @vtj/icons
35
35
  * @author CHC chenhuachun1549@dingtalk.com
36
- * @version 0.7.0
36
+ * @version 0.7.1
37
37
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
38
38
  */const D2=J({name:"ExitFullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M298.666667 298.666667V85.333333h85.333333v298.666667H85.333333V298.666667h213.333334z m426.666666-213.333334v213.333334h213.333334v85.333333h-298.666667V85.333333h85.333333zM298.666667 938.666667v-213.333334H85.333333v-85.333333h298.666667v298.666667H298.666667z m426.666666 0h-85.333333v-298.666667h298.666667v85.333333h-213.333334v213.333334z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),O2=J({name:"Fixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M374.442667 486.229333l-81.237334 101.034667c-2.218667 4.352-2.218667 6.570667 0 8.789333 0 2.218667 2.218667 4.352 6.570667 4.352H719.36c4.352 0 6.570667-2.133333 6.570667-4.352 0-2.218667 2.218667-4.437333 0-8.789333l-81.237334-101.034667H374.442667z m362.922666 179.2H281.770667a66.56 66.56 0 0 1-57.173334-35.754666 67.242667 67.242667 0 0 1 7.082667-66.730667l104.96-128.853333h345.856l104.96 128.853333c14.250667 19.029333 19.029333 45.226667 7.168 66.730667a66.56 66.56 0 0 1-57.258667 35.84zM380.16 178.773333H639.146667L680.362667 76.544c2.218667-4.266667 0-6.485333 0-6.485333 0-2.218667-2.133333-4.352-6.485334-4.352H347.562667c-4.352 0-6.570667 2.133333-6.570667 4.266666 0 2.218667-2.133333 4.437333 0 6.570667l39.253333 102.229333z m307.114667 62.122667H331.861333l-57.173333-145.493333a61.269333 61.269333 0 0 1 7.082667-57.173334 63.317333 63.317333 0 0 1 52.48-26.282666h355.413333c21.418667 0 40.533333 9.557333 52.48 26.197333 11.946667 16.725333 14.250667 38.229333 7.082667 57.258667l-61.952 145.493333z",color:"#FFFFFF"},{path:"M386.901333 426.922667h245.248V245.76H386.901333v181.162667z m309.930667 59.733333H322.304V186.026667h372.053333v300.544h2.474667zM510.72 992.256c-19.029333-16.725333-28.586667-40.618667-30.976-66.816L458.24 636.842667h107.349333l-21.418666 288.597333a127.146667 127.146667 0 0 1-33.450667 66.816",color:"#FFFFFF"},{path:"M19.2 905.557333m52.48 0l878.08 0q52.48 0 52.48 52.48l0 0.085334q0 52.48-52.48 52.48l-878.08 0q-52.48 0-52.48-52.48l0-0.085334q0-52.48 52.48-52.48Z",color:"#FFFFFF"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),A2=J({name:"Fullscreen",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M170.666667 170.666667v213.333333H85.333333V85.333333h298.666667v85.333334H170.666667z m682.666666 213.333333V170.666667h-213.333333V85.333333h298.666667v298.666667h-85.333334zM170.666667 640v213.333333h213.333333v85.333334H85.333333v-298.666667h85.333334z m682.666666 0h85.333334v298.666667h-298.666667v-85.333334h213.333333v-213.333333z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),B2=J({name:"Invisible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M891.0336 113.7664a32 32 0 0 1 0 45.2352l-104.6016 104.6016a380.1088 380.1088 0 0 1 81.408 65.024l4.5312 4.7104c2.6112 2.6368 5.4272 5.3504 8.704 8.3968l11.6224 10.4192 30.6176 26.624 12.9792 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 47.488-26.7776 79.744-100.3776 142.848l-17.8432 15.4368a471.04 471.04 0 0 0-15.5392 14.1312l-4.7104 4.6592-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-86.784 0-169.5744-18.9696-239.1808-53.3504l-135.5264 135.5008a32 32 0 1 1-45.2352-45.2352l123.8784-123.904a364.9536 364.9536 0 0 1-63.4368-56.192l-1.8176-2.048a249.0112 249.0112 0 0 0-21.4016-20.1728l-12.6976-10.7776-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-38.7072 19.3792-66.5088 70.8096-111.7952l12.4416-10.7776 27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936c-6.656 7.4752-13.2352 14.0032-22.9888 22.6816l-9.216 8.0384-42.8544 36.1728c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 17.4336 14.5152c17.8176 14.8224 28.416 24.0128 36.9664 32.5376l4.9664 5.0944 11.3408 12.3648a315.8272 315.8272 0 0 0 55.168 45.568l89.7536-89.8304a30.0544 30.0544 0 0 1 10.1632-10.1632l217.4976-217.472a146.4064 146.4064 0 0 0-200.1152 70.7328 146.4832 146.4832 0 0 0-12.288 69.632 30.0544 30.0544 0 0 1-60.0064 4.224 206.7712 206.7712 0 0 1 17.408-98.304c46.2592-103.936 168.448-150.8608 272.4096-104.576 9.3696 4.1728 18.2528 8.96 26.6496 14.2592l56.5248-56.5504c-50.5088-17.7408-106.88-27.3664-165.2736-27.3664-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664 75.3152 0 148.0704 14.4896 211.712 41.0368l119.552-119.5008a32 32 0 0 1 45.2352 0z m-148.5568 193.792l-71.0656 71.0912a206.592 206.592 0 0 1 29.824 215.808c-46.2848 103.9616-168.4992 150.8608-272.4608 104.576a205.7216 205.7216 0 0 1-48-29.7472l-60.1088 60.0832 10.112 4.2496c51.968 20.9664 110.7968 32.7168 170.88 34.2016l12.8768 0.1536c124.928 0 240.7168-44.1088 309.504-117.4272l6.656-6.8864c3.1744-3.1744 6.5536-6.4 10.4704-9.984l8.6528-7.7824 44.6976-38.8352c17.5872-15.6928 29.568-27.776 38.8864-39.68 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936c-11.1104-9.728-18.4832-16.4608-25.0112-22.9376l-13.312-13.7472a332.9792 332.9792 0 0 0-75.3408-55.808z m-113.8432 113.8688l-205.056 205.0816a146.4064 146.4064 0 0 0 222.72-56.5248 146.3552 146.3552 0 0 0-17.664-148.5568z",color:"#CCCCCC"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),C2=J({name:"LineHeight",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8z m272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7c-2.9-3.7-8.5-3.7-11.3 0L713.6 306.3c-3.7 4.7-0.4 11.7 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.8-4.7 0.4-11.7-5.6-11.7z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),mh=J({name:"Maximize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M926.45937303 97.54062697v828.2973677H97.54062697V97.54062697h828.91874606m4.97102697-77.6722963h-838.8608c-39.7682157 0-72.07989097 32.31167525-72.07989097 72.07989096v839.48217837c0 39.7682157 32.31167525 72.07989097 72.07989097 72.07989097h839.48217837c39.7682157 0 72.07989097-32.31167525 72.07989096-72.07989097v-838.8608c0-40.38959408-32.31167525-72.70126933-72.70126933-72.70126933 0.62137837 0 0 0 0 0z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),vh=J({name:"Minimize",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M65.23884 456.152041 958.760137 456.152041l0 111.695918L65.23884 567.847959 65.23884 456.152041z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),gh=J({name:"Popup",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M959.72 0H294.216a63.96 63.96 0 0 0-63.96 63.96v127.92H64.28A63.96 63.96 0 0 0 0.32 255.84V959.4a63.96 63.96 0 0 0 63.96 63.96h703.56a63.96 63.96 0 0 0 63.96-63.96V792.465h127.92a63.96 63.96 0 0 0 63.96-63.96V63.96A63.96 63.96 0 0 0 959.72 0zM767.84 728.505V959.4H64.28V255.84h703.56z m189.322 0H831.8V255.84a63.96 63.96 0 0 0-63.96-63.96H294.216V63.96H959.72z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),I2=J({name:"QrCodeLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M1024 866.459826V1024h-78.781217v-157.540174H1024z m-157.540174 0V1024H801.391304l-13.712695-13.712696v-143.827478h78.781217z m-78.758956-315.080348v157.540174h157.517913V551.401739H1024v236.321391H708.919652v-78.781217h-78.758956l-0.022261 143.805217-78.758957-78.758956v-222.586435h236.321392z m-315.080348 0l-0.022261 143.805218-143.782957-143.805218h143.805218zM1024 0v472.598261H551.379478V0H1024zM472.598261 0v472.598261h-222.564174l-78.758957-78.758957h222.564174V78.758957H78.758957v222.541913L0 222.564174V0h472.598261z m472.620522 78.758957H630.160696v315.080347H945.196522V78.758957zM315.080348 157.540174v157.540174H157.540174V157.540174h157.540174z m551.379478 0v157.540174h-157.540174V157.540174h157.540174z",color:"#26B8CF"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),yh=J({name:"RawClose",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M512 432.46249999L865.92499999 78.49999973a56.13749998 56.13749998 0 0 1 79.53750003-5e-8 56.17500029 56.17500029 0 0 1 0 79.53750002L591.49999971 512l353.925 353.92499999c21.97500029 21.97500029 22.12499972 57.4125003 0 79.53750003a56.17500029 56.17500029 0 0 1-79.53750004 0L512 591.49999971 158.07500001 945.50000027a56.13749998 56.13749998 0 0 1-79.53750003 5e-8 56.17500029 56.17500029 0 0 1 0-79.53750002L432.50000029 512 78.49999973 158.07500001a56.13749998 56.13749998 0 0 1-5e-8-79.53750003 56.17500029 56.17500029 0 0 1 79.53750002 0L512 432.50000029z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),R2=J({name:"RawLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M800.421 436.525h-63.661v-148.673c0-124.507-100.762-225.757-224.732-225.757-123.98 0-224.857 101.25-224.857 225.766v148.662h-63.593c-30.667 0-55.532 24.952-55.532 55.752v407.048c0 30.848 24.865 55.82 55.532 55.82h576.9c30.667 0 55.465-24.97 55.465-55.82v-407.048c0-30.802-24.855-55.752-55.532-55.752zM543.203 706.409v88.88c-0.016 4.026-3.264 7.287-7.282 7.325h-47.733c-4.039-0.022-7.307-3.287-7.334-7.322v-88.882c-22.423-11.518-37.953-34.602-37.953-61.659 0-38.288 30.945-69.425 69.070-69.425 38.183 0 69.138 31.136 69.138 69.415 0.057 27.067-15.473 50.152-37.905 61.659zM650.514 436.525h-276.989v-144.986c0-76.691 62.196-139.146 138.552-139.146 76.366 0 138.447 62.454 138.447 139.146v144.986z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),M2=J({name:"RawUnLock",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M796.444 446.009H343.61V320.853c0-86.47 70.542-157.013 157.013-157.013s157.014 70.542 157.014 157.013c0 25.031 20.48 45.511 45.51 45.511s45.512-20.48 45.512-45.51c0-136.534-111.502-248.036-248.036-248.036S252.587 184.32 252.587 320.853V446.01H204.8c-25.031 0-45.511 20.48-45.511 45.511v420.978c0 25.03 20.48 45.51 45.511 45.51h591.644c25.032 0 45.512-20.48 45.512-45.51V491.52c0-25.031-20.48-45.511-45.512-45.511zM537.031 737.28c-2.275 0-4.551 2.276-4.551 4.551v43.236c0 43.235-13.653 50.062-31.858 50.062s-31.858-4.551-31.858-50.062V739.556c0-2.276-2.275-4.552-4.55-4.552-13.654-9.102-22.756-25.03-22.756-45.51 0-31.858 27.306-59.165 59.164-59.165s59.165 25.031 59.165 59.164c2.275 20.48-9.103 36.41-22.756 47.787z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),N2=J({name:"Rows",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M915.692308 275.692308h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538462v-59.076923C78.769231 171.323077 92.553846 157.538462 108.307692 157.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538462z m0 293.415384h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-13.784615 13.784615-27.569231 29.538461-27.569231h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538461v59.076924c0 13.784615-13.784615 27.569231-29.538461 27.56923z m0 297.353846h-807.384616c-15.753846 0-29.538462-13.784615-29.538461-29.538461v-59.076923c0-15.753846 13.784615-29.538462 29.538461-29.538462h807.384616c15.753846 0 29.538462 13.784615 29.538461 29.538462v59.076923c0 15.753846-13.784615 29.538462-29.538461 29.538461z"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),F2=J({name:"Skin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M910.74 338.74L756.8 195.33c-11.5-10.71-27.32-16.15-43.59-14.99-1.53-0.12-3.03-0.18-4.48-0.18h-82.01l-5.75 2.98c-30.39 15.75-69.15 24.42-109.16 24.42s-78.78-8.67-109.16-24.42l-5.75-2.98h-82.02c-20.91 0-39.71 10.63-49.43 27.51L113.29 349.43C102.78 359.21 97 372.22 97 386.06c0 13.84 5.78 26.84 16.29 36.63l111.17 103.58c9.31 8.66 21.33 13.87 34.27 14.95v250.3c0 28.84 25.19 52.31 56.14 52.31h393.85c30.96 0 56.14-23.47 56.14-52.31V530.57c13.1-1 25.28-6.23 34.68-14.98l111.18-103.58c21.7-20.19 21.7-53.07 0.02-73.27z m0 0"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),z2=J({name:"UnFixed",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M301.824 455.509333l-168.021333 18.261334c-5.973333 2.048-8.021333 4.010667-8.021334 8.106666-2.048 1.962667-2.048 5.973333 1.962667 10.069334l386.730667 386.730666c4.010667 4.010667 8.021333 4.010667 10.069333 1.962667 2.048-1.962667 6.058667-1.962667 8.106667-8.021333l18.261333-168.106667-249.088-249.002667z m168.106667 467.626667L83.2 536.661333C62.976 516.266667 56.917333 485.802667 65.024 457.472a80.725333 80.725333 0 0 1 62.72-50.602667l198.4-20.224 293.546667 293.546667-20.224 198.4c-4.010667 28.330667-22.272 54.613333-50.602667 62.72-28.330667 8.106667-58.709333 2.048-78.933333-18.176z m93.098666-720.64l240.896 240.896 133.632-56.661333c6.058667-2.048 6.058667-6.058667 6.058667-6.058667 2.048-2.048 2.048-6.144-2.048-10.24L637.952 66.901333C633.856 62.805333 629.76 62.805333 627.797333 64.853333c-2.048 2.048-6.058667 2.048-6.058666 6.144l-58.709334 131.584z m224.682667 317.866667L486.058667 218.709333 560.981333 46.592a73.557333 73.557333 0 0 1 54.613334-42.496 76.032 76.032 0 0 1 66.901333 22.186667l301.653333 301.738666a75.946667 75.946667 0 0 1 22.186667 66.816 73.557333 73.557333 0 0 1-42.496 54.613334l-176.128 70.826666z",color:"#FFFFFF"},{path:"M360.618667 421.12l224.682666 224.682667 165.973334-165.973334L526.592 255.146667 360.618667 421.12z m226.730666 315.818667L269.482667 419.072l255.146666-255.061333 315.733334 315.818666-255.146667 255.146667 2.133333 1.962667z",color:"#FFFFFF"},{path:"M0.256 1008.213333c-2.048-30.378667 10.069333-58.709333 30.293333-83.029333L257.365333 662.016l91.050667 91.136L85.333333 979.882667a152.576 152.576 0 0 1-84.992 28.330666",color:"#FFFFFF"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),P2=J({name:"UserLogin",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M943.081739 44.877913a79.09287 79.09287 0 0 1 79.805218 75.620174l0.111304 4.296348v511.510261a79.09287 79.09287 0 0 1-75.620174 79.805217l-4.296348 0.111304H685.612522v100.930783h178.799304v145.229913l-124.660869-0.022261-54.227479-54.227478h124.66087v-36.730435l-161.413565-0.022261-54.227479-54.227478h36.841739v-100.930783h-137.772521l-54.249739-54.249739h481.458087c26.000696 0 46.124522-18.988522 47.838608-44.432695l0.111305-3.494957V147.055304c0-27.158261-20.769391-47.949913-47.949913-47.949913H102.177391c-25.978435 0-46.124522 19.010783-47.838608 44.432696l-0.111305 3.517217v129.78087L0 222.608696V124.416l0.111304-3.917913A79.026087 79.026087 0 0 1 75.620174 44.966957l4.296348-0.111305h863.165217z m-38.244174 118.160696v435.021913l-529.408-0.022261L118.160696 340.769391V163.038609h786.676869z",color:"#26B8CF"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),L2=J({name:"Visible",props:{colors:{type:Array,default:()=>[]}},setup(n){return()=>T("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[[{path:"M514.5344 192.2304c137.216 0 265.856 48.0768 346.7008 129.536l8.576 8.9344c5.888 6.144 12.288 12.16 22.8864 21.4528l30.592 26.624 13.0048 11.6224c53.76 48.8448 73.984 78.7456 73.984 120.064 0 45.952-25.088 77.6448-93.4144 136.832l-24.832 21.4528c-9.0112 7.936-14.976 13.4656-20.224 18.7904l-10.5984 11.008c-80.8192 81.4336-209.4848 129.536-346.7008 129.536-141.7216 0-272.896-50.6112-353.2544-136.3456l-8.064-8.8576-4.2496-4.4544c-6.7072-6.784-15.3088-14.336-29.8496-26.5216l-17.6896-14.72-12.4672-10.496C36.6592 581.7856 12.8 549.9392 12.8 510.464c0-41.6768 22.4768-70.7328 83.2512-122.5728l27.4688-23.1168c13.568-11.4688 21.4016-18.56 27.8016-25.3184l3.712-4.0448a30.0544 30.0544 0 1 1 44.9792 39.936l-5.76 6.2464c-6.8608 7.168-14.592 14.336-26.4448 24.4736L124.928 442.24c-12.288 10.6752-21.4528 19.328-29.2608 27.8016-15.1808 16.4352-22.784 30.0032-22.784 40.448 0 10.1376 7.2448 23.2448 21.7344 39.0912 7.8592 8.6016 17.152 17.408 29.696 28.2624l11.5968 9.856 27.2896 22.784c15.1296 12.7488 24.064 20.8896 32.0768 29.3632l11.3408 12.3648c31.7696 33.28 74.496 61.3888 124.16 81.408 55.6544 22.4512 119.2192 34.3552 183.7312 34.3552 121.2672 0 233.9072-41.5488 303.3088-111.0272l12.8512-13.2864 6.7328-6.5024c3.584-3.4048 7.6032-7.04 12.3904-11.264l44.6976-38.8352 10.9312-9.984c11.8528-11.0848 20.7104-20.4288 27.9552-29.696 11.2384-14.336 16.8192-26.624 16.8192-36.864 0-10.6752-5.9904-23.552-18.0224-38.6048-9.1648-11.4688-20.7104-23.1424-37.376-38.144l-11.904-10.496-26.7776-23.1936-12.4416-11.0592c-4.8384-4.3776-8.832-8.192-12.544-11.8784l-13.312-13.7472c-69.4272-69.4784-182.016-111.0272-303.3088-111.0272-95.1808 0-185.7024 25.472-254.7968 71.552A30.08 30.08 0 0 1 226.3808 273.92c79.0272-52.736 181.3248-81.664 288.1536-81.664z m-1.8176 111.9488c31.8976 0 62.5664 7.1168 91.008 21.12a30.08 30.08 0 0 1-26.5472 53.9392 146.4064 146.4064 0 0 0-210.688 131.3024 146.4064 146.4064 0 0 0 146.2272 146.2016 146.4064 146.4064 0 0 0 146.2272-146.2016c0-23.936-5.888-47.6672-17.0496-68.608a30.0544 30.0544 0 0 1 53.0688-28.2624 206.7712 206.7712 0 0 1 24.0896 96.8704c0 113.792-92.544 206.336-206.336 206.336s-206.336-92.544-206.336-206.336c0-113.8176 92.544-206.3616 206.336-206.3616z m97.2544 152.0128l3.2256 0.4864c16.2304 3.4048 26.6496 19.2512 23.296 35.4304-3.5072 17.4592-12.7488 42.9312-29.3888 67.4816-28.5184 42.0352-69.248 64.4352-117.504 64.4352-3.9936 0-7.9616-0.1536-12.0064-0.4608a30.0544 30.0544 0 1 1 4.4544-59.9552c29.5424 2.176 53.1456-8.448 71.424-32.384l3.3792-4.6336 2.6624-4.0704c5.888-9.3184 10.5984-19.3792 14.1568-29.4656l2.1504-6.4512a115.712 115.712 0 0 0 0.768-2.6368l1.8944-7.2192c4.352-13.3632 17.4848-21.9392 31.488-20.5568z",color:"#CCCCCC"}].map((e,t)=>T("path",{d:e.path,fill:n.colors[t]??"currentColor"},null))])}}),H2=Object.freeze(Object.defineProperty({__proto__:null,ExitFullscreen:D2,Fixed:O2,Fullscreen:A2,Invisible:B2,LineHeight:C2,Maximize:mh,Minimize:vh,Popup:gh,QrCodeLogin:I2,RawClose:yh,RawLock:R2,RawUnLock:M2,Rows:N2,Skin:F2,UnFixed:z2,UserLogin:P2,Visible:L2},Symbol.toStringTag,{value:"Module"}));function ee(n,e){return Xt(J({name:n,render(){return T("i",{class:e})}}))}const U2=ee("VtjIconWindowMax","vtj-icon-window-max"),q2=ee("VtjIconWindowMin","vtj-icon-window-min"),W2=ee("VtjIconWindowClose","vtj-icon-window-close"),J2=ee("VtjIconWindowNormal","vtj-icon-window-normal"),Y2=ee("VtjIconWindowDown","vtj-icon-window-down"),K2=ee("VtjIconWindowUp","vtj-icon-window-up"),Z2=ee("VtjIconNpSave","vtj-icon-np-save"),G2=ee("VtjIconNpFile","vtj-icon-np-file"),X2=ee("VtjIconNpEdit","vtj-icon-np-edit"),Q2=ee("VtjIconNpShare","vtj-icon-np-share"),eb=ee("VtjIconNpSearch","vtj-icon-np-search"),tb=ee("VtjIconNpExport","vtj-icon-np-export"),nb=ee("VtjIconNpImport","vtj-icon-np-import"),rb=ee("VtjIconNpList","vtj-icon-np-list"),ib=ee("VtjIconNpPrint","vtj-icon-np-print"),ob=ee("VtjIconNpCancel","vtj-icon-np-cancel"),sb=ee("VtjIconNpConfirm","vtj-icon-np-confirm"),ab=ee("VtjIconNpReset","vtj-icon-np-reset"),lb=ee("VtjIconNpReturnAll","vtj-icon-np-return-all"),ub=ee("VtjIconNpReturn","vtj-icon-np-return"),cb=ee("VtjIconNpRemove","vtj-icon-np-remove"),hb=ee("VtjIconNpRemoveRow","vtj-icon-np-remove-row"),db=ee("VtjIconNpDelete","vtj-icon-np-delete"),pb=ee("VtjIconNpExit","vtj-icon-np-exit"),fb=ee("VtjIconNpRefresh","vtj-icon-np-refresh"),mb=ee("VtjIconNpAdd","vtj-icon-np-add"),vb=ee("VtjIconNpSelect","vtj-icon-np-select"),gb=ee("VtjIconNpAddRow","vtj-icon-np-add-row"),yb=ee("VtjIconNpExtend","vtj-icon-np-extend"),bb=ee("VtjIconNpClose","vtj-icon-np-close"),wb=ee("VtjIconNpSubmit","vtj-icon-np-submit"),_b=ee("VtjIconDeps","vtj-icon-deps"),bh=ee("VtjIconBack","vtj-icon-back"),wh=ee("VtjIconHome","vtj-icon-home"),_h=ee("VtjIconApi","vtj-icon-api"),xb=ee("VtjIconExport","vtj-icon-export"),Sb=ee("VtjIconImport","vtj-icon-import"),$b=ee("VtjIconGreater","vtj-icon-greater"),jb=ee("VtjIconSmaller","vtj-icon-smaller"),Os=ee("VtjIconCheck","vtj-icon-check"),xh=ee("VtjIconSwitch","vtj-icon-switch"),As=ee("VtjIconCopy","vtj-icon-copy"),Bs=ee("VtjIconLock","vtj-icon-lock"),Sh=ee("VtjIconUnlock","vtj-icon-unlock"),Cs=ee("VtjIconLayers","vtj-icon-layers"),Eb=ee("VtjIconConsole","vtj-icon-console"),kb=ee("VtjIconTeam","vtj-icon-team"),Tb=ee("VtjIconPublish","vtj-icon-publish"),$h=ee("VtjIconPreview","vtj-icon-preview"),jh=ee("VtjIconSave","vtj-icon-save"),Eh=ee("VtjIconPc","vtj-icon-pc"),kh=ee("VtjIconPhone","vtj-icon-phone"),Th=ee("VtjIconPad","vtj-icon-pad"),Vh=ee("VtjIconRedo","vtj-icon-redo"),Dh=ee("VtjIconRefresh","vtj-icon-refresh"),Oh=ee("VtjIconUndo","vtj-icon-undo"),Ah=ee("VtjIconCategory","vtj-icon-category"),Vb=ee("VtjIconProject","vtj-icon-project"),Db=ee("VtjIconNotice","vtj-icon-notice"),Ob=ee("VtjIconFav","vtj-icon-fav"),Bh=ee("VtjIconBug","vtj-icon-bug"),Ab=ee("VtjIconFile","vtj-icon-file"),Bb=ee("VtjIconFolder","vtj-icon-folder"),Cb=ee("VtjIconUpload","vtj-icon-upload"),Ib=ee("VtjIconDownload","vtj-icon-download"),Rb=ee("VtjIconUser","vtj-icon-user"),Ch=ee("VtjIconSetting","vtj-icon-setting"),Mb=ee("VtjIconArrowRight","vtj-icon-arrow-right"),Nb=ee("VtjIconArrowLeft","vtj-icon-arrow-left"),Ih=ee("VtjIconArrowDown","vtj-icon-arrow-down"),Rh=ee("VtjIconArrowUp","vtj-icon-arrow-up"),Fb=ee("VtjIconShare","vtj-icon-share"),zb=ee("VtjIconData","vtj-icon-data"),Pb=ee("VtjIconTemplate","vtj-icon-template"),Lb=ee("VtjIconExitFullscreen","vtj-icon-exit-fullscreen"),Hb=ee("VtjIconFullscreen","vtj-icon-fullscreen"),Is=ee("VtjIconEdit","vtj-icon-edit"),Tr=ee("VtjIconRemove","vtj-icon-remove"),Ub=ee("VtjIconJs","vtj-icon-js"),qb=ee("VtjIconDatabase","vtj-icon-database"),Mh=ee("VtjIconInfo","vtj-icon-info"),Rs=ee("VtjIconPlus","vtj-icon-plus"),Wb=ee("VtjIconMinus","vtj-icon-minus"),Nh=ee("VtjIconHelp","vtj-icon-help"),Fh=ee("VtjIconVars","vtj-icon-vars"),zh=ee("VtjIconOutline","vtj-icon-outline"),Ph=ee("VtjIconVisible","vtj-icon-visible"),Ms=ee("VtjIconInvisible","vtj-icon-invisible"),Lh=ee("VtjIconDocument","vtj-icon-document"),Hh=ee("VtjIconHistory","vtj-icon-history"),Jb=ee("VtjIconFixed","vtj-icon-fixed"),Yb=ee("VtjIconUnfixed","vtj-icon-unfixed"),Uh=ee("VtjIconSearch","vtj-icon-search"),Kb=ee("VtjIconMore","vtj-icon-more"),Zb=ee("VtjIconClose","vtj-icon-close"),qh=ee("VtjIconComponents","vtj-icon-components"),Wh=ee("VtjIconBlock","vtj-icon-block"),Gb=Object.freeze(Object.defineProperty({__proto__:null,VtjIconApi:_h,VtjIconArrowDown:Ih,VtjIconArrowLeft:Nb,VtjIconArrowRight:Mb,VtjIconArrowUp:Rh,VtjIconBack:bh,VtjIconBlock:Wh,VtjIconBug:Bh,VtjIconCategory:Ah,VtjIconCheck:Os,VtjIconClose:Zb,VtjIconComponents:qh,VtjIconConsole:Eb,VtjIconCopy:As,VtjIconData:zb,VtjIconDatabase:qb,VtjIconDeps:_b,VtjIconDocument:Lh,VtjIconDownload:Ib,VtjIconEdit:Is,VtjIconExitFullscreen:Lb,VtjIconExport:xb,VtjIconFav:Ob,VtjIconFile:Ab,VtjIconFixed:Jb,VtjIconFolder:Bb,VtjIconFullscreen:Hb,VtjIconGreater:$b,VtjIconHelp:Nh,VtjIconHistory:Hh,VtjIconHome:wh,VtjIconImport:Sb,VtjIconInfo:Mh,VtjIconInvisible:Ms,VtjIconJs:Ub,VtjIconLayers:Cs,VtjIconLock:Bs,VtjIconMinus:Wb,VtjIconMore:Kb,VtjIconNotice:Db,VtjIconNpAdd:mb,VtjIconNpAddRow:gb,VtjIconNpCancel:ob,VtjIconNpClose:bb,VtjIconNpConfirm:sb,VtjIconNpDelete:db,VtjIconNpEdit:X2,VtjIconNpExit:pb,VtjIconNpExport:tb,VtjIconNpExtend:yb,VtjIconNpFile:G2,VtjIconNpImport:nb,VtjIconNpList:rb,VtjIconNpPrint:ib,VtjIconNpRefresh:fb,VtjIconNpRemove:cb,VtjIconNpRemoveRow:hb,VtjIconNpReset:ab,VtjIconNpReturn:ub,VtjIconNpReturnAll:lb,VtjIconNpSave:Z2,VtjIconNpSearch:eb,VtjIconNpSelect:vb,VtjIconNpShare:Q2,VtjIconNpSubmit:wb,VtjIconOutline:zh,VtjIconPad:Th,VtjIconPc:Eh,VtjIconPhone:kh,VtjIconPlus:Rs,VtjIconPreview:$h,VtjIconProject:Vb,VtjIconPublish:Tb,VtjIconRedo:Vh,VtjIconRefresh:Dh,VtjIconRemove:Tr,VtjIconSave:jh,VtjIconSearch:Uh,VtjIconSetting:Ch,VtjIconShare:Fb,VtjIconSmaller:jb,VtjIconSwitch:xh,VtjIconTeam:kb,VtjIconTemplate:Pb,VtjIconUndo:Oh,VtjIconUnfixed:Yb,VtjIconUnlock:Sh,VtjIconUpload:Cb,VtjIconUser:Rb,VtjIconVars:Fh,VtjIconVisible:Ph,VtjIconWindowClose:W2,VtjIconWindowDown:Y2,VtjIconWindowMax:U2,VtjIconWindowMin:q2,VtjIconWindowNormal:J2,VtjIconWindowUp:K2},Symbol.toStringTag,{value:"Module"})),Ro={...Hf,...H2,...Gb};/**!
39
39
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
40
40
  * @name @vtj/utils
41
41
  * @author CHC chenhuachun1549@dingtalk.com
42
- * @version 0.7.0
42
+ * @version 0.7.1
43
43
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
44
44
  */var Xb={ENV_TYPE:"local",NODE_ENV:"production"},Qb=typeof global=="object"&&global&&global.Object===Object&&global;const Jh=Qb;var e6=typeof self=="object"&&self&&self.Object===Object&&self,t6=Jh||e6||Function("return this")();const gt=t6;var n6=gt.Symbol;const St=n6;var Yh=Object.prototype,r6=Yh.hasOwnProperty,i6=Yh.toString,ir=St?St.toStringTag:void 0;function o6(n){var e=r6.call(n,ir),t=n[ir];try{n[ir]=void 0;var r=!0}catch{}var i=i6.call(n);return r&&(e?n[ir]=t:delete n[ir]),i}var s6=Object.prototype,a6=s6.toString;function l6(n){return a6.call(n)}var u6="[object Null]",c6="[object Undefined]",cl=St?St.toStringTag:void 0;function It(n){return n==null?n===void 0?c6:u6:cl&&cl in Object(n)?o6(n):l6(n)}function ut(n){return n!=null&&typeof n=="object"}var h6="[object Symbol]";function Vi(n){return typeof n=="symbol"||ut(n)&&It(n)==h6}function Kh(n,e){for(var t=-1,r=n==null?0:n.length,i=Array(r);++t<r;)i[t]=e(n[t],t,n);return i}var d6=Array.isArray;const vt=d6;var p6=1/0,hl=St?St.prototype:void 0,dl=hl?hl.toString:void 0;function Zh(n){if(typeof n=="string")return n;if(vt(n))return Kh(n,Zh)+"";if(Vi(n))return dl?dl.call(n):"";var e=n+"";return e=="0"&&1/n==-p6?"-0":e}var f6=/\s/;function m6(n){for(var e=n.length;e--&&f6.test(n.charAt(e)););return e}var v6=/^\s+/;function g6(n){return n&&n.slice(0,m6(n)+1).replace(v6,"")}function Ne(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pl=NaN,y6=/^[-+]0x[0-9a-f]+$/i,b6=/^0b[01]+$/i,w6=/^0o[0-7]+$/i,_6=parseInt;function fl(n){if(typeof n=="number")return n;if(Vi(n))return pl;if(Ne(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Ne(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=g6(n);var t=b6.test(n);return t||w6.test(n)?_6(n.slice(2),t?2:8):y6.test(n)?pl:+n}function Gh(n){return n}var x6="[object AsyncFunction]",S6="[object Function]",$6="[object GeneratorFunction]",j6="[object Proxy]";function wr(n){if(!Ne(n))return!1;var e=It(n);return e==S6||e==$6||e==x6||e==j6}var E6=gt["__core-js_shared__"];const Xi=E6;var ml=function(){var n=/[^.]+$/.exec(Xi&&Xi.keys&&Xi.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function k6(n){return!!ml&&ml in n}var T6=Function.prototype,V6=T6.toString;function _n(n){if(n!=null){try{return V6.call(n)}catch{}try{return n+""}catch{}}return""}var D6=/[\\^$.*+?()[\]{}|]/g,O6=/^\[object .+?Constructor\]$/,A6=Function.prototype,B6=Object.prototype,C6=A6.toString,I6=B6.hasOwnProperty,R6=RegExp("^"+C6.call(I6).replace(D6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M6(n){if(!Ne(n)||k6(n))return!1;var e=wr(n)?R6:O6;return e.test(_n(n))}function N6(n,e){return n?.[e]}function xn(n,e){var t=N6(n,e);return M6(t)?t:void 0}var F6=xn(gt,"WeakMap");const Mo=F6;var vl=Object.create,z6=function(){function n(){}return function(e){if(!Ne(e))return{};if(vl)return vl(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();const P6=z6;function Xh(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Qh(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var L6=800,H6=16,U6=Date.now;function q6(n){var e=0,t=0;return function(){var r=U6(),i=H6-(r-t);if(t=r,i>0){if(++e>=L6)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function W6(n){return function(){return n}}var J6=function(){try{var n=xn(Object,"defineProperty");return n({},"",{}),n}catch{}}();const vi=J6;var Y6=vi?function(n,e){return vi(n,"toString",{configurable:!0,enumerable:!1,value:W6(e),writable:!0})}:Gh;const K6=Y6;var Z6=q6(K6);const G6=Z6;function X6(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Q6=9007199254740991,e3=/^(?:0|[1-9]\d*)$/;function Ns(n,e){var t=typeof n;return e=e??Q6,!!e&&(t=="number"||t!="symbol"&&e3.test(n))&&n>-1&&n%1==0&&n<e}function Fs(n,e,t){e=="__proto__"&&vi?vi(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Yn(n,e){return n===e||n!==n&&e!==e}var t3=Object.prototype,n3=t3.hasOwnProperty;function zs(n,e,t){var r=n[e];(!(n3.call(n,e)&&Yn(r,t))||t===void 0&&!(e in n))&&Fs(n,e,t)}function Kn(n,e,t,r){var i=!t;t||(t={});for(var o=-1,s=e.length;++o<s;){var a=e[o],u=r?r(t[a],n[a],a,t,n):void 0;u===void 0&&(u=n[a]),i?Fs(t,a,u):zs(t,a,u)}return t}var gl=Math.max;function r3(n,e,t){return e=gl(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=gl(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=t(s),Xh(n,this,a)}}function ed(n,e){return G6(r3(n,e,Gh),n+"")}var i3=9007199254740991;function td(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=i3}function Di(n){return n!=null&&td(n.length)&&!wr(n)}function nd(n,e,t){if(!Ne(t))return!1;var r=typeof e;return(r=="number"?Di(t)&&Ns(e,t.length):r=="string"&&e in t)?Yn(t[e],n):!1}function rd(n){return ed(function(e,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,s&&nd(t[0],t[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=t[r];a&&n(e,a,r,o)}return e})}var o3=Object.prototype;function Ps(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||o3;return n===t}function s3(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var a3="[object Arguments]";function yl(n){return ut(n)&&It(n)==a3}var id=Object.prototype,l3=id.hasOwnProperty,u3=id.propertyIsEnumerable,c3=yl(function(){return arguments}())?yl:function(n){return ut(n)&&l3.call(n,"callee")&&!u3.call(n,"callee")};const No=c3;function h3(){return!1}var od=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bl=od&&typeof module=="object"&&module&&!module.nodeType&&module,d3=bl&&bl.exports===od,wl=d3?gt.Buffer:void 0,p3=wl?wl.isBuffer:void 0,f3=p3||h3;const _r=f3;var m3="[object Arguments]",v3="[object Array]",g3="[object Boolean]",y3="[object Date]",b3="[object Error]",w3="[object Function]",_3="[object Map]",x3="[object Number]",S3="[object Object]",$3="[object RegExp]",j3="[object Set]",E3="[object String]",k3="[object WeakMap]",T3="[object ArrayBuffer]",V3="[object DataView]",D3="[object Float32Array]",O3="[object Float64Array]",A3="[object Int8Array]",B3="[object Int16Array]",C3="[object Int32Array]",I3="[object Uint8Array]",R3="[object Uint8ClampedArray]",M3="[object Uint16Array]",N3="[object Uint32Array]",$e={};$e[D3]=$e[O3]=$e[A3]=$e[B3]=$e[C3]=$e[I3]=$e[R3]=$e[M3]=$e[N3]=!0,$e[m3]=$e[v3]=$e[T3]=$e[g3]=$e[V3]=$e[y3]=$e[b3]=$e[w3]=$e[_3]=$e[x3]=$e[S3]=$e[$3]=$e[j3]=$e[E3]=$e[k3]=!1;function F3(n){return ut(n)&&td(n.length)&&!!$e[It(n)]}function Ls(n){return function(e){return n(e)}}var sd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mr=sd&&typeof module=="object"&&module&&!module.nodeType&&module,z3=mr&&mr.exports===sd,Qi=z3&&Jh.process,P3=function(){try{var n=mr&&mr.require&&mr.require("util").types;return n||Qi&&Qi.binding&&Qi.binding("util")}catch{}}();const $t=P3;var _l=$t&&$t.isTypedArray,L3=_l?Ls(_l):F3;const Hs=L3;var H3=Object.prototype,U3=H3.hasOwnProperty;function ad(n,e){var t=vt(n),r=!t&&No(n),i=!t&&!r&&_r(n),o=!t&&!r&&!i&&Hs(n),s=t||r||i||o,a=s?s3(n.length,String):[],u=a.length;for(var l in n)(e||U3.call(n,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ns(l,u)))&&a.push(l);return a}function ld(n,e){return function(t){return n(e(t))}}var q3=ld(Object.keys,Object);const W3=q3;var J3=Object.prototype,Y3=J3.hasOwnProperty;function K3(n){if(!Ps(n))return W3(n);var e=[];for(var t in Object(n))Y3.call(n,t)&&t!="constructor"&&e.push(t);return e}function Oi(n){return Di(n)?ad(n):K3(n)}function Z3(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var G3=Object.prototype,X3=G3.hasOwnProperty;function Q3(n){if(!Ne(n))return Z3(n);var e=Ps(n),t=[];for(var r in n)r=="constructor"&&(e||!X3.call(n,r))||t.push(r);return t}function Zn(n){return Di(n)?ad(n,!0):Q3(n)}var ew=rd(function(n,e,t,r){Kn(e,Zn(e),n,r)});const xl=ew;var tw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nw=/^\w*$/;function rw(n,e){if(vt(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||Vi(n)?!0:nw.test(n)||!tw.test(n)||e!=null&&n in Object(e)}var iw=xn(Object,"create");const xr=iw;function ow(){this.__data__=xr?xr(null):{},this.size=0}function sw(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var aw="__lodash_hash_undefined__",lw=Object.prototype,uw=lw.hasOwnProperty;function cw(n){var e=this.__data__;if(xr){var t=e[n];return t===aw?void 0:t}return uw.call(e,n)?e[n]:void 0}var hw=Object.prototype,dw=hw.hasOwnProperty;function pw(n){var e=this.__data__;return xr?e[n]!==void 0:dw.call(e,n)}var fw="__lodash_hash_undefined__";function mw(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=xr&&e===void 0?fw:e,this}function vn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}vn.prototype.clear=ow,vn.prototype.delete=sw,vn.prototype.get=cw,vn.prototype.has=pw,vn.prototype.set=mw;function vw(){this.__data__=[],this.size=0}function Ai(n,e){for(var t=n.length;t--;)if(Yn(n[t][0],e))return t;return-1}var gw=Array.prototype,yw=gw.splice;function bw(n){var e=this.__data__,t=Ai(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():yw.call(e,t,1),--this.size,!0}function ww(n){var e=this.__data__,t=Ai(e,n);return t<0?void 0:e[t][1]}function _w(n){return Ai(this.__data__,n)>-1}function xw(n,e){var t=this.__data__,r=Ai(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function Dt(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Dt.prototype.clear=vw,Dt.prototype.delete=bw,Dt.prototype.get=ww,Dt.prototype.has=_w,Dt.prototype.set=xw;var Sw=xn(gt,"Map");const Sr=Sw;function $w(){this.size=0,this.__data__={hash:new vn,map:new(Sr||Dt),string:new vn}}function jw(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Bi(n,e){var t=n.__data__;return jw(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Ew(n){var e=Bi(this,n).delete(n);return this.size-=e?1:0,e}function kw(n){return Bi(this,n).get(n)}function Tw(n){return Bi(this,n).has(n)}function Vw(n,e){var t=Bi(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Ot(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ot.prototype.clear=$w,Ot.prototype.delete=Ew,Ot.prototype.get=kw,Ot.prototype.has=Tw,Ot.prototype.set=Vw;var Dw="Expected a function";function Us(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(Dw);var t=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=t.cache;if(o.has(i))return o.get(i);var s=n.apply(this,r);return t.cache=o.set(i,s)||o,s};return t.cache=new(Us.Cache||Ot),t}Us.Cache=Ot;var Ow=500;function Aw(n){var e=Us(n,function(r){return t.size===Ow&&t.clear(),r}),t=e.cache;return e}var Bw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cw=/\\(\\)?/g,Iw=Aw(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Bw,function(t,r,i,o){e.push(i?o.replace(Cw,"$1"):r||t)}),e});const Rw=Iw;function Sn(n){return n==null?"":Zh(n)}function ud(n,e){return vt(n)?n:rw(n,e)?[n]:Rw(Sn(n))}var Mw=1/0;function cd(n){if(typeof n=="string"||Vi(n))return n;var e=n+"";return e=="0"&&1/n==-Mw?"-0":e}function Nw(n,e){e=ud(e,n);for(var t=0,r=e.length;n!=null&&t<r;)n=n[cd(e[t++])];return t&&t==r?n:void 0}function ri(n,e,t){var r=n==null?void 0:Nw(n,e);return r===void 0?t:r}function hd(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var Fw=ld(Object.getPrototypeOf,Object);const qs=Fw;var zw="[object Object]",Pw=Function.prototype,Lw=Object.prototype,dd=Pw.toString,Hw=Lw.hasOwnProperty,Uw=dd.call(Object);function Ws(n){if(!ut(n)||It(n)!=zw)return!1;var e=qs(n);if(e===null)return!0;var t=Hw.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&dd.call(t)==Uw}var qw="[object DOMException]",Ww="[object Error]";function pd(n){if(!ut(n))return!1;var e=It(n);return e==Ww||e==qw||typeof n.message=="string"&&typeof n.name=="string"&&!Ws(n)}var Jw=ed(function(n,e){try{return Xh(n,void 0,e)}catch(t){return pd(t)?t:new Error(t)}});const Yw=Jw;function Kw(n,e,t){var r=-1,i=n.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=n[r+e];return o}function Zw(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:Kw(n,e,t)}var Gw="\\ud800-\\udfff",Xw="\\u0300-\\u036f",Qw="\\ufe20-\\ufe2f",e4="\\u20d0-\\u20ff",t4=Xw+Qw+e4,n4="\\ufe0e\\ufe0f",r4="\\u200d",i4=RegExp("["+r4+Gw+t4+n4+"]");function fd(n){return i4.test(n)}function o4(n){return n.split("")}var md="\\ud800-\\udfff",s4="\\u0300-\\u036f",a4="\\ufe20-\\ufe2f",l4="\\u20d0-\\u20ff",u4=s4+a4+l4,c4="\\ufe0e\\ufe0f",h4="["+md+"]",Fo="["+u4+"]",zo="\\ud83c[\\udffb-\\udfff]",d4="(?:"+Fo+"|"+zo+")",vd="[^"+md+"]",gd="(?:\\ud83c[\\udde6-\\uddff]){2}",yd="[\\ud800-\\udbff][\\udc00-\\udfff]",p4="\\u200d",bd=d4+"?",wd="["+c4+"]?",f4="(?:"+p4+"(?:"+[vd,gd,yd].join("|")+")"+wd+bd+")*",m4=wd+bd+f4,v4="(?:"+[vd+Fo+"?",Fo,gd,yd,h4].join("|")+")",g4=RegExp(zo+"(?="+zo+")|"+v4+m4,"g");function y4(n){return n.match(g4)||[]}function b4(n){return fd(n)?y4(n):o4(n)}function w4(n){return function(e){e=Sn(e);var t=fd(e)?b4(e):void 0,r=t?t[0]:e.charAt(0),i=t?Zw(t,1).join(""):e.slice(1);return r[n]()+i}}var _4=w4("toUpperCase");const Js=_4;function x4(n){return Js(Sn(n).toLowerCase())}function S4(n,e,t,r){var i=-1,o=n==null?0:n.length;for(r&&o&&(t=n[++i]);++i<o;)t=e(t,n[i],i,n);return t}function _d(n){return function(e){return n?.[e]}}var $4={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},j4=_d($4);const E4=j4;var k4=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,T4="\\u0300-\\u036f",V4="\\ufe20-\\ufe2f",D4="\\u20d0-\\u20ff",O4=T4+V4+D4,A4="["+O4+"]",B4=RegExp(A4,"g");function C4(n){return n=Sn(n),n&&n.replace(k4,E4).replace(B4,"")}var I4=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function R4(n){return n.match(I4)||[]}var M4=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function N4(n){return M4.test(n)}var xd="\\ud800-\\udfff",F4="\\u0300-\\u036f",z4="\\ufe20-\\ufe2f",P4="\\u20d0-\\u20ff",L4=F4+z4+P4,Sd="\\u2700-\\u27bf",$d="a-z\\xdf-\\xf6\\xf8-\\xff",H4="\\xac\\xb1\\xd7\\xf7",U4="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",q4="\\u2000-\\u206f",W4=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",jd="A-Z\\xc0-\\xd6\\xd8-\\xde",J4="\\ufe0e\\ufe0f",Ed=H4+U4+q4+W4,kd="['’]",Sl="["+Ed+"]",Y4="["+L4+"]",Td="\\d+",K4="["+Sd+"]",Vd="["+$d+"]",Dd="[^"+xd+Ed+Td+Sd+$d+jd+"]",Z4="\\ud83c[\\udffb-\\udfff]",G4="(?:"+Y4+"|"+Z4+")",X4="[^"+xd+"]",Od="(?:\\ud83c[\\udde6-\\uddff]){2}",Ad="[\\ud800-\\udbff][\\udc00-\\udfff]",Dn="["+jd+"]",Q4="\\u200d",$l="(?:"+Vd+"|"+Dd+")",e8="(?:"+Dn+"|"+Dd+")",jl="(?:"+kd+"(?:d|ll|m|re|s|t|ve))?",El="(?:"+kd+"(?:D|LL|M|RE|S|T|VE))?",Bd=G4+"?",Cd="["+J4+"]?",t8="(?:"+Q4+"(?:"+[X4,Od,Ad].join("|")+")"+Cd+Bd+")*",n8="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",r8="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",i8=Cd+Bd+t8,o8="(?:"+[K4,Od,Ad].join("|")+")"+i8,s8=RegExp([Dn+"?"+Vd+"+"+jl+"(?="+[Sl,Dn,"$"].join("|")+")",e8+"+"+El+"(?="+[Sl,Dn+$l,"$"].join("|")+")",Dn+"?"+$l+"+"+jl,Dn+"+"+El,r8,n8,Td,o8].join("|"),"g");function a8(n){return n.match(s8)||[]}function l8(n,e,t){return n=Sn(n),e=t?void 0:e,e===void 0?N4(n)?a8(n):R4(n):n.match(e)||[]}var u8="['’]",c8=RegExp(u8,"g");function h8(n){return function(e){return S4(l8(C4(e).replace(c8,"")),n,"")}}var d8=h8(function(n,e,t){return e=e.toLowerCase(),n+(t?x4(e):e)});const dn=d8;function p8(){this.__data__=new Dt,this.size=0}function f8(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function m8(n){return this.__data__.get(n)}function v8(n){return this.__data__.has(n)}var g8=200;function y8(n,e){var t=this.__data__;if(t instanceof Dt){var r=t.__data__;if(!Sr||r.length<g8-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ot(r)}return t.set(n,e),this.size=t.size,this}function bt(n){var e=this.__data__=new Dt(n);this.size=e.size}bt.prototype.clear=p8,bt.prototype.delete=f8,bt.prototype.get=m8,bt.prototype.has=v8,bt.prototype.set=y8;function b8(n,e){return n&&Kn(e,Oi(e),n)}function w8(n,e){return n&&Kn(e,Zn(e),n)}var Id=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kl=Id&&typeof module=="object"&&module&&!module.nodeType&&module,_8=kl&&kl.exports===Id,Tl=_8?gt.Buffer:void 0,Vl=Tl?Tl.allocUnsafe:void 0;function Rd(n,e){if(e)return n.slice();var t=n.length,r=Vl?Vl(t):new n.constructor(t);return n.copy(r),r}function x8(n,e){for(var t=-1,r=n==null?0:n.length,i=0,o=[];++t<r;){var s=n[t];e(s,t,n)&&(o[i++]=s)}return o}function Md(){return[]}var S8=Object.prototype,$8=S8.propertyIsEnumerable,Dl=Object.getOwnPropertySymbols,j8=Dl?function(n){return n==null?[]:(n=Object(n),x8(Dl(n),function(e){return $8.call(n,e)}))}:Md;const Ys=j8;function E8(n,e){return Kn(n,Ys(n),e)}var k8=Object.getOwnPropertySymbols,T8=k8?function(n){for(var e=[];n;)hd(e,Ys(n)),n=qs(n);return e}:Md;const Nd=T8;function V8(n,e){return Kn(n,Nd(n),e)}function Fd(n,e,t){var r=e(n);return vt(n)?r:hd(r,t(n))}function Po(n){return Fd(n,Oi,Ys)}function D8(n){return Fd(n,Zn,Nd)}var O8=xn(gt,"DataView");const Lo=O8;var A8=xn(gt,"Promise");const Ho=A8;var B8=xn(gt,"Set");const Uo=B8;var Ol="[object Map]",C8="[object Object]",Al="[object Promise]",Bl="[object Set]",Cl="[object WeakMap]",Il="[object DataView]",I8=_n(Lo),R8=_n(Sr),M8=_n(Ho),N8=_n(Uo),F8=_n(Mo),pn=It;(Lo&&pn(new Lo(new ArrayBuffer(1)))!=Il||Sr&&pn(new Sr)!=Ol||Ho&&pn(Ho.resolve())!=Al||Uo&&pn(new Uo)!=Bl||Mo&&pn(new Mo)!=Cl)&&(pn=function(n){var e=It(n),t=e==C8?n.constructor:void 0,r=t?_n(t):"";if(r)switch(r){case I8:return Il;case R8:return Ol;case M8:return Al;case N8:return Bl;case F8:return Cl}return e});const $r=pn;var z8=Object.prototype,P8=z8.hasOwnProperty;function L8(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&P8.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var H8=gt.Uint8Array;const gi=H8;function Ks(n){var e=new n.constructor(n.byteLength);return new gi(e).set(new gi(n)),e}function U8(n,e){var t=e?Ks(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var q8=/\w*$/;function W8(n){var e=new n.constructor(n.source,q8.exec(n));return e.lastIndex=n.lastIndex,e}var Rl=St?St.prototype:void 0,Ml=Rl?Rl.valueOf:void 0;function J8(n){return Ml?Object(Ml.call(n)):{}}function zd(n,e){var t=e?Ks(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var Y8="[object Boolean]",K8="[object Date]",Z8="[object Map]",G8="[object Number]",X8="[object RegExp]",Q8="[object Set]",e5="[object String]",t5="[object Symbol]",n5="[object ArrayBuffer]",r5="[object DataView]",i5="[object Float32Array]",o5="[object Float64Array]",s5="[object Int8Array]",a5="[object Int16Array]",l5="[object Int32Array]",u5="[object Uint8Array]",c5="[object Uint8ClampedArray]",h5="[object Uint16Array]",d5="[object Uint32Array]";function p5(n,e,t){var r=n.constructor;switch(e){case n5:return Ks(n);case Y8:case K8:return new r(+n);case r5:return U8(n,t);case i5:case o5:case s5:case a5:case l5:case u5:case c5:case h5:case d5:return zd(n,t);case Z8:return new r;case G8:case e5:return new r(n);case X8:return W8(n);case Q8:return new r;case t5:return J8(n)}}function Pd(n){return typeof n.constructor=="function"&&!Ps(n)?P6(qs(n)):{}}var f5="[object Map]";function m5(n){return ut(n)&&$r(n)==f5}var Nl=$t&&$t.isMap,v5=Nl?Ls(Nl):m5;const g5=v5;var y5="[object Set]";function b5(n){return ut(n)&&$r(n)==y5}var Fl=$t&&$t.isSet,w5=Fl?Ls(Fl):b5;const _5=w5;var x5=1,S5=2,$5=4,Ld="[object Arguments]",j5="[object Array]",E5="[object Boolean]",k5="[object Date]",T5="[object Error]",Hd="[object Function]",V5="[object GeneratorFunction]",D5="[object Map]",O5="[object Number]",Ud="[object Object]",A5="[object RegExp]",B5="[object Set]",C5="[object String]",I5="[object Symbol]",R5="[object WeakMap]",M5="[object ArrayBuffer]",N5="[object DataView]",F5="[object Float32Array]",z5="[object Float64Array]",P5="[object Int8Array]",L5="[object Int16Array]",H5="[object Int32Array]",U5="[object Uint8Array]",q5="[object Uint8ClampedArray]",W5="[object Uint16Array]",J5="[object Uint32Array]",we={};we[Ld]=we[j5]=we[M5]=we[N5]=we[E5]=we[k5]=we[F5]=we[z5]=we[P5]=we[L5]=we[H5]=we[D5]=we[O5]=we[Ud]=we[A5]=we[B5]=we[C5]=we[I5]=we[U5]=we[q5]=we[W5]=we[J5]=!0,we[T5]=we[Hd]=we[R5]=!1;function ii(n,e,t,r,i,o){var s,a=e&x5,u=e&S5,l=e&$5;if(t&&(s=i?t(n,r,i,o):t(n)),s!==void 0)return s;if(!Ne(n))return n;var c=vt(n);if(c){if(s=L8(n),!a)return Qh(n,s)}else{var h=$r(n),d=h==Hd||h==V5;if(_r(n))return Rd(n,a);if(h==Ud||h==Ld||d&&!i){if(s=u||d?{}:Pd(n),!a)return u?V8(n,w8(s,n)):E8(n,b8(s,n))}else{if(!we[h])return i?n:{};s=p5(n,h,a)}}o||(o=new bt);var p=o.get(n);if(p)return p;o.set(n,s),_5(n)?n.forEach(function(y){s.add(ii(y,e,t,y,n,o))}):g5(n)&&n.forEach(function(y,$){s.set($,ii(y,e,t,$,n,o))});var f=l?u?D8:Po:u?Zn:Oi,v=c?void 0:f(n);return X6(v||n,function(y,$){v&&($=y,y=n[$]),zs(s,$,ii(y,e,t,$,n,o))}),s}var Y5=1,K5=4;function Ci(n){return ii(n,Y5|K5)}var Z5="__lodash_hash_undefined__";function G5(n){return this.__data__.set(n,Z5),this}function X5(n){return this.__data__.has(n)}function oi(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Ot;++e<t;)this.add(n[e])}oi.prototype.add=oi.prototype.push=G5,oi.prototype.has=X5;function Q5(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function e_(n,e){return n.has(e)}var t_=1,n_=2;function qd(n,e,t,r,i,o){var s=t&t_,a=n.length,u=e.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(n),c=o.get(e);if(l&&c)return l==e&&c==n;var h=-1,d=!0,p=t&n_?new oi:void 0;for(o.set(n,e),o.set(e,n);++h<a;){var f=n[h],v=e[h];if(r)var y=s?r(v,f,h,e,n,o):r(f,v,h,n,e,o);if(y!==void 0){if(y)continue;d=!1;break}if(p){if(!Q5(e,function($,g){if(!e_(p,g)&&(f===$||i(f,$,t,r,o)))return p.push(g)})){d=!1;break}}else if(!(f===v||i(f,v,t,r,o))){d=!1;break}}return o.delete(n),o.delete(e),d}function r_(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function i_(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var o_=1,s_=2,a_="[object Boolean]",l_="[object Date]",u_="[object Error]",c_="[object Map]",h_="[object Number]",d_="[object RegExp]",p_="[object Set]",f_="[object String]",m_="[object Symbol]",v_="[object ArrayBuffer]",g_="[object DataView]",zl=St?St.prototype:void 0,eo=zl?zl.valueOf:void 0;function y_(n,e,t,r,i,o,s){switch(t){case g_:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case v_:return!(n.byteLength!=e.byteLength||!o(new gi(n),new gi(e)));case a_:case l_:case h_:return Yn(+n,+e);case u_:return n.name==e.name&&n.message==e.message;case d_:case f_:return n==e+"";case c_:var a=r_;case p_:var u=r&o_;if(a||(a=i_),n.size!=e.size&&!u)return!1;var l=s.get(n);if(l)return l==e;r|=s_,s.set(n,e);var c=qd(a(n),a(e),r,i,o,s);return s.delete(n),c;case m_:if(eo)return eo.call(n)==eo.call(e)}return!1}var b_=1,w_=Object.prototype,__=w_.hasOwnProperty;function x_(n,e,t,r,i,o){var s=t&b_,a=Po(n),u=a.length,l=Po(e),c=l.length;if(u!=c&&!s)return!1;for(var h=u;h--;){var d=a[h];if(!(s?d in e:__.call(e,d)))return!1}var p=o.get(n),f=o.get(e);if(p&&f)return p==e&&f==n;var v=!0;o.set(n,e),o.set(e,n);for(var y=s;++h<u;){d=a[h];var $=n[d],g=e[d];if(r)var w=s?r(g,$,d,e,n,o):r($,g,d,n,e,o);if(!(w===void 0?$===g||i($,g,t,r,o):w)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var _=n.constructor,x=e.constructor;_!=x&&"constructor"in n&&"constructor"in e&&!(typeof _=="function"&&_ instanceof _&&typeof x=="function"&&x instanceof x)&&(v=!1)}return o.delete(n),o.delete(e),v}var S_=1,Pl="[object Arguments]",Ll="[object Array]",Fr="[object Object]",$_=Object.prototype,Hl=$_.hasOwnProperty;function j_(n,e,t,r,i,o){var s=vt(n),a=vt(e),u=s?Ll:$r(n),l=a?Ll:$r(e);u=u==Pl?Fr:u,l=l==Pl?Fr:l;var c=u==Fr,h=l==Fr,d=u==l;if(d&&_r(n)){if(!_r(e))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new bt),s||Hs(n)?qd(n,e,t,r,i,o):y_(n,e,u,t,r,i,o);if(!(t&S_)){var p=c&&Hl.call(n,"__wrapped__"),f=h&&Hl.call(e,"__wrapped__");if(p||f){var v=p?n.value():n,y=f?e.value():e;return o||(o=new bt),i(v,y,t,r,o)}}return d?(o||(o=new bt),x_(n,e,t,r,i,o)):!1}function Wd(n,e,t,r,i){return n===e?!0:n==null||e==null||!ut(n)&&!ut(e)?n!==n&&e!==e:j_(n,e,t,r,Wd,i)}function E_(n){return function(e,t,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[n?a:++i];if(t(o[u],u,o)===!1)break}return e}}var k_=E_();const T_=k_;var V_=function(){return gt.Date.now()};const to=V_;var D_="Expected a function",O_=Math.max,A_=Math.min;function Jd(n,e,t){var r,i,o,s,a,u,l=0,c=!1,h=!1,d=!0;if(typeof n!="function")throw new TypeError(D_);e=fl(e)||0,Ne(t)&&(c=!!t.leading,h="maxWait"in t,o=h?O_(fl(t.maxWait)||0,e):o,d="trailing"in t?!!t.trailing:d);function p(b){var E=r,O=i;return r=i=void 0,l=b,s=n.apply(O,E),s}function f(b){return l=b,a=setTimeout($,e),c?p(b):s}function v(b){var E=b-u,O=b-l,H=e-E;return h?A_(H,o-O):H}function y(b){var E=b-u,O=b-l;return u===void 0||E>=e||E<0||h&&O>=o}function $(){var b=to();if(y(b))return g(b);a=setTimeout($,v(b))}function g(b){return a=void 0,d&&r?p(b):(r=i=void 0,s)}function w(){a!==void 0&&clearTimeout(a),l=0,r=u=i=a=void 0}function _(){return a===void 0?s:g(to())}function x(){var b=to(),E=y(b);if(r=arguments,i=this,u=b,E){if(a===void 0)return f(u);if(h)return clearTimeout(a),a=setTimeout($,e),p(u)}return a===void 0&&(a=setTimeout($,e)),s}return x.cancel=w,x.flush=_,x}function qo(n,e,t){(t!==void 0&&!Yn(n[e],t)||t===void 0&&!(e in n))&&Fs(n,e,t)}function B_(n){return ut(n)&&Di(n)}function Wo(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function C_(n){return Kn(n,Zn(n))}function I_(n,e,t,r,i,o,s){var a=Wo(n,t),u=Wo(e,t),l=s.get(u);if(l){qo(n,t,l);return}var c=o?o(a,u,t+"",n,e,s):void 0,h=c===void 0;if(h){var d=vt(u),p=!d&&_r(u),f=!d&&!p&&Hs(u);c=u,d||p||f?vt(a)?c=a:B_(a)?c=Qh(a):p?(h=!1,c=Rd(u,!0)):f?(h=!1,c=zd(u,!0)):c=[]:Ws(u)||No(u)?(c=a,No(a)?c=C_(a):(!Ne(a)||wr(a))&&(c=Pd(u))):h=!1}h&&(s.set(u,c),i(c,u,r,o,s),s.delete(u)),qo(n,t,c)}function Yd(n,e,t,r,i){n!==e&&T_(e,function(o,s){if(i||(i=new bt),Ne(o))I_(n,e,s,t,Yd,r,i);else{var a=r?r(Wo(n,s),o,s+"",n,e,i):void 0;a===void 0&&(a=o),qo(n,s,a)}},Zn)}var R_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},M_=_d(R_);const N_=M_;var Kd=/[&<>"']/g,F_=RegExp(Kd.source);function z_(n){return n=Sn(n),n&&F_.test(n)?n.replace(Kd,N_):n}var P_="[object String]";function Gn(n){return typeof n=="string"||!vt(n)&&ut(n)&&It(n)==P_}function L_(n,e){return Kh(e,function(t){return n[t]})}$t&&$t.isArrayBuffer;$t&&$t.isDate;function Zs(n,e){return Wd(n,e)}var H_=rd(function(n,e,t){Yd(n,e,t)});const Kt=H_;function U_(n,e,t,r){if(!Ne(n))return n;e=ud(e,n);for(var i=-1,o=e.length,s=o-1,a=n;a!=null&&++i<o;){var u=cd(e[i]),l=t;if(u==="__proto__"||u==="constructor"||u==="prototype")return n;if(i!=s){var c=a[u];l=r?r(c,u,a):void 0,l===void 0&&(l=Ne(c)?c:Ns(e[i+1])?[]:{})}zs(a,u,l),a=a[u]}return n}function no(n,e,t){return n==null?n:U_(n,e,t)}var Zd=Object.prototype,q_=Zd.hasOwnProperty;function Ul(n,e,t,r){return n===void 0||Yn(n,Zd[t])&&!q_.call(r,t)?e:n}var W_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function J_(n){return"\\"+W_[n]}var Y_=/<%=([\s\S]+?)%>/g;const Gd=Y_;var K_=/<%-([\s\S]+?)%>/g;const Z_=K_;var G_=/<%([\s\S]+?)%>/g;const X_=G_;var Q_={escape:Z_,evaluate:X_,interpolate:Gd,variable:"",imports:{_:{escape:z_}}};const ql=Q_;var ex="Invalid `variable` option passed into `_.template`",tx=/\b__p \+= '';/g,nx=/\b(__p \+=) '' \+/g,rx=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ix=/[()=,{}\[\]\/\s]/,ox=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zr=/($^)/,sx=/['\n\r\u2028\u2029\\]/g,ax=Object.prototype,Wl=ax.hasOwnProperty;function Xd(n,e,t){var r=ql.imports._.templateSettings||ql;t&&nd(n,e,t)&&(e=void 0),n=Sn(n),e=xl({},e,r,Ul);var i=xl({},e.imports,r.imports,Ul),o=Oi(i),s=L_(i,o),a,u,l=0,c=e.interpolate||zr,h="__p += '",d=RegExp((e.escape||zr).source+"|"+c.source+"|"+(c===Gd?ox:zr).source+"|"+(e.evaluate||zr).source+"|$","g"),p=Wl.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+`
45
45
  `:"";n.replace(d,function(y,$,g,w,_,x){return g||(g=w),h+=n.slice(l,x).replace(sx,J_),$&&(a=!0,h+=`' +
@@ -97,7 +97,7 @@ version: 2.9.0
97
97
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
98
98
  * @name @vtj/ui
99
99
  * @author CHC chenhuachun1549@dingtalk.com
100
- * @version 0.7.0
100
+ * @version 0.7.1
101
101
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
102
102
  */const $7={default:14,small:12,large:18},j7={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String},background:{type:String},padding:{type:Number},radius:{type:Number}};function Er(n){return typeof n=="string"?n:`${n}px`}function Yr(n=0,e){if(typeof n=="number")return n;if(/(%|vh|vw)$/i.test(n)){const t=Number.parseInt(n);return Math.floor(e*t/100)}return Number.parseInt(n)}const E7=["src"],en=J({name:"XIcon",__name:"Icon",props:j7,setup(n){const e=n,t=as(),r=kr(),i=L(()=>{if(!e.icon)return null;const u=r?.appContext.app;return typeof e.icon=="object"?Xt(e.icon):u?.component(e.icon)||e.icon}),o=L(()=>{const u={"is-pointer":!!t.onClick};return!i.value&&e.icon&&(u[e.icon]=!0),u}),s=L(()=>({"background-color":e.background,"border-radius":e.radius?Er(e.radius):void 0,padding:e.padding?Er(e.padding):void 0})),a=L(()=>typeof e.size=="number"?e.size:$7[e.size]??void 0);return(u,l)=>(k(),F(m(wf),{class:ke(["x-icon",o.value]),color:e.color,size:a.value,style:Gt(s.value)},{default:A(()=>[le(u.$slots,"default",{},()=>[i.value?(k(),F(rt(i.value),{key:0})):Z("",!0),e.src?(k(),te("img",{key:1,src:e.src},null,8,E7)):Z("",!0)])]),_:3},8,["class","color","size","style"]))}}),zp={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function k7(n){return L(()=>{const e=n.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function T7(n){return L(()=>{const e=n.badge;if(e)return typeof e=="object"?e:{value:e}})}function V7(n){return L(()=>{const{dropdown:e,menus:t}=n;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:n.size},e||{})})}function D7(n){const e=kr();return L(()=>{const t=m(n);if(t)if(typeof t=="string"||t.setup||t.render||ff(t)){const r=e?.appContext.app;return{icon:typeof t=="string"&&r?.component(t)||t}}else return t;return null})}function ra(n){const e=D7(n);return e.value?Xt(J({render:()=>Ye(en,e.value)})):void 0}function ia(n,e){return L(()=>{const t=m(n);return typeof t=="function"?t(e):!!t})}const O7={key:0},A7=J({__name:"Trigger",props:zp,emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=ra(hi(t,"icon")),o=ia(hi(t,"disabled")),s=L(()=>({[`is-${t.mode}`]:!!t.mode,[`is-${t.type}`]:!!t.type,[`is-${t.size}`]:!!t.size&&t.size!=="default",[`is-background-${t.background}`]:t.mode==="icon"&&!!t.background,"is-disabled":!!t.disabled,"is-circle":!!t.circle})),a=u=>{if(u.stopPropagation(),u.preventDefault(),!o.value)return r("click"),!1};return(u,l)=>t.mode==="button"?(k(),F(m(ze),je({key:0,icon:m(i),type:t.type,size:t.size,disabled:m(o)},t.button,{onClick:a}),{default:A(()=>[pe(ie(u.label),1)]),_:1},16,["icon","type","size","disabled"])):(k(),te("div",{key:1,class:ke(["x-action__inner",s.value]),onClick:a},[(k(),F(rt(m(i)))),u.label?(k(),te("span",O7,ie(u.label),1)):Z("",!0)],2))}}),tt=J({name:"XAction",__name:"Action",props:zp,emits:["click","command"],setup(n,{emit:e}){const t=n,r=df(),i=e,o=k7(t),s=T7(t),a=V7(t),u=ia(hi(t,"disabled")),l=L(()=>({[`x-action--${t.mode}`]:!!t.mode})),c=()=>{u.value||i("click",An(t))},h=y=>{if(u.value)return;const $=t.menus?.find(g=>g.command===y);$&&i("command",An($))},d=y=>Ye(Hu,s.value,()=>[].concat(y)),p=y=>Ye(ds,{...a.value,disabled:u.value,onCommand:h},{default:()=>[y],dropdown:()=>[Ye(hs,()=>(t.menus||[]).map($=>Ye(pi,$,()=>r.item?r.item({item:$}):$.label)))]}),f=y=>Ye(_i,{...o.value,disabled:u.value},()=>[y]),v=L(()=>{let y=r.default?r.default()[0]:Ye(Xt(A7),{...t,onClick:c});return s.value&&(y=d(y)),a.value&&(y=p(y)),o.value&&(y=f(y)),y});return(y,$)=>(k(),te("div",{class:ke(["x-action",l.value])},[(k(),F(rt(v.value)))],2))}}),B7={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},C7=J({name:"XActionBar",__name:"ActionBar",props:B7,emits:["click","command"],setup(n,{emit:e}){const t=n,r=e,i=L(()=>(t.items||[]).map(a=>a==="|"?a:{...a,badge:a.badge?{...t.badge,...typeof a.badge=="object"?a.badge||{}:{value:a.badge}}:void 0,tooltip:a.tooltip?{...t.tooltip,...typeof a.tooltip=="object"?a.tooltip||{}:{content:a.tooltip}}:void 0})),o=a=>{r("click",a)},s=(a,u)=>{r("command",a,u)};return(a,u)=>(k(),F(m(he),{class:"x-action-bar",align:"center"},{default:A(()=>[(k(!0),te(re,null,ae(i.value,l=>(k(),te(re,null,[l==="|"?(k(),F(m(vr),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(k(),F(m(tt),je({key:1,mode:t.mode,size:t.size,type:t.type,circle:t.circle,background:t.background,button:t.button,dropdown:t.dropdown,disabled:m(ia)(t.disabled,l).value},l,{onClick:o,onCommand:c=>s(l,c)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),I7={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1},gap:{type:Boolean},autoPointer:{type:Boolean}},he=J({name:"XContainer",__name:"Container",props:I7,setup(n){const e=n,t=as(),r=kr(),i=L(()=>{const a=r?.parent;if(!a)return!1;const u=a.proxy;return u.$options.name==="XContainer"||!!u.flex}),o=L(()=>({"is-fit":e.fit,"is-flex":e.flex&&!e.inline,"is-inline-flex":e.flex&&e.inline,[`is-direction-${e.direction}`]:e.flex&&e.direction!=="row",[`is-wrap-${e.wrap}`]:e.flex&&e.wrap!=="nowrap",[`is-justify-${e.justify}`]:e.flex&&e.justify!=="flex-start",[`is-align-${e.align}`]:e.flex&&e.align!=="flex-start",[`is-align-content-${e.alignContent}`]:e.flex&&e.alignContent!=="stretch","is-grow":e.grow??i.value,"is-shrink":i.value&&e.shrink,[`is-align-self-${e.alignSelf}`]:i.value&&e.alignSelf!=="auto",[`is-overflow-${e.overflow}`]:!!e.overflow,"is-padding":!!e.padding,"is-pointer":e.autoPointer&&!!t.onClick,"is-gap":!!e.gap})),s=L(()=>{const{width:a,height:u,fit:l}=e;return l?null:{width:a?Er(a):void 0,height:u?Er(u):void 0}});return(a,u)=>(k(),F(rt(e.tag),{class:ke(["x-container",o.value]),style:Gt(s.value)},{default:A(()=>[le(a.$slots,"default")]),_:3},8,["class","style"]))}}),R7={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},M7={key:0,class:"x-header__actions"},N7=J({name:"XHeader",inheritAttrs:!1,__name:"Header",props:R7,setup(n){const e=n,t=ra(hi(e,"icon")),r=as(),i=L(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!r.onClick}));return(o,s)=>(k(),F(m(he),{class:ke(["x-header",i.value]),justify:"space-between",align:"center"},{default:A(()=>[T(m(he),{align:"center",class:ke(["x-header__wrapper",i.value]),grow:""},{default:A(()=>[m(t)?(k(),F(rt(m(t)),{key:0,class:"x-header__icon",onClick:m(r).onClickIcon||m(r).onClick},null,8,["onClick"])):Z("",!0),fe("span",{class:"x-header__content",onClick:s[0]||(s[0]=(...a)=>m(r).onClick&&m(r).onClick(...a))},[le(o.$slots,"default",{},()=>[pe(ie(e.content),1)])]),e.more?(k(),F(m(en),{key:1,class:"x-header__more",icon:m(Ku)},null,8,["icon"])):Z("",!0),e.subtitle||o.$slots.subtitle?(k(),te("span",{key:2,class:"x-header__subtitle",onClick:s[1]||(s[1]=(...a)=>m(r).onClick&&m(r).onClick(...a))},[le(o.$slots,"subtitle",{},()=>[pe(ie(e.subtitle),1)])])):Z("",!0)]),_:3},8,["class"]),o.$slots.actions?(k(),te("div",M7,[le(o.$slots,"actions")])):Z("",!0)]),_:3},8,["class"]))}}),F7={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},body:{type:Object},footer:{type:Object}},Pi=J({name:"XPanel",__name:"Panel",props:F7,setup(n,{expose:e}){const t=n,r=q(),i=L(()=>({"x-panel--card":!!t.card,"x-panel--default":!t.card,[`is-${t.size}`]:!!t.size&&t.size!=="default","is-border":!!t.border,"is-radius":!!t.radius,[`is-shadow-${t.shadow}`]:!!t.shadow&&t.shadow!=="none"})),o=L(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:{...t.header,size:t.size}),s=L(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:r}),(a,u)=>(k(),F(m(he),{class:ke(["x-panel",i.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:A(()=>[o.value?(k(),F(m(he),{key:0,flex:!1,class:"x-panel__header"},{default:A(()=>[le(a.$slots,"header",{},()=>[T(m(N7),At(Qt(o.value)),{default:A(()=>[le(a.$slots,"title")]),actions:A(()=>[le(a.$slots,"actions")]),_:3},16)])]),_:3})):Z("",!0),T(m(he),je({ref_key:"bodyRef",ref:r,flex:!1,overflow:s.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:A(()=>[le(a.$slots,"default")]),_:3},16,["overflow"]),a.$slots.footer?(k(),F(m(he),je({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:A(()=>[le(a.$slots,"footer")]),_:3},16)):Z("",!0)]),_:3},8,["class","fit","width","height"]))}}),Vu="user-select-none";let Du=class{constructor(e,t={}){this.el=e,this.options=t,this.scope=Fu(),this.scope.run(()=>{this.init()})}scope;dragging=!1;getHandle(){const{selector:e,handle:t}=this.options;return e?this.el.querySelector(e):t}getTarget(){const{target:e="body"}=this.options;return typeof e=="string"?document.querySelector(e):m(e)||document.body}init(){const{el:e,options:t}=this,{disabled:r,delay:i=150,onStart:o,onEnd:s}=t;if(r)return;let a=null;const u=this.getHandle(),l=this.getTarget();let c=e.getBoundingClientRect(),h=null;const{x:d,y:p}=Kf(e,{initialValue:{x:c.x,y:c.y},...t,handle:u,onStart:(f,v)=>{document.body.classList.add(Vu),clearTimeout(a),a=setTimeout(()=>{this.dragging=!0,c=e.getBoundingClientRect(),h=l?.getBoundingClientRect(),o&&o(f,v)},i)},onEnd:(f,v)=>{if(clearTimeout(a),document.body.classList.remove(Vu),this.dragging&&h){this.dragging=!1;const{x:y,y:$}=f,g=this.getPosition(h,c,y,$);s&&s(g,v),h=null}}});_e([d,p],()=>{if(this.dragging&&h){const f=this.getPosition(h,c,d.value,p.value);e.style.left=`${f.x}px`,e.style.top=`${f.y}px`}})}getPosition(e,t,r,i){const{edge:o=50}=this.options,s=-t.width+o,a=e.width-o,u=0,l=e.height-o,c=Math.min(a,Math.max(r,s)),h=Math.min(l,Math.max(i,u));return{x:c,y:h}}destory(){this.scope.stop()}};const z7={mounted(n,e){const t=e.value||{},r=new Du(n,t);n.__draggable__=r},updated(n,e){const t=e.value||{};let r=n.__draggable__;r&&!Zs(r.options,t)&&(r.destory(),n.__draggable__=new Du(n,t))},unmounted(n){const e=n.__draggable__;e&&(e.destory(),n.__draggable__=null)}},fo="user-select-none";class Ou{constructor(e,t={}){this.el=e,this.options=t,this.scope=Fu(),this.scope.run(()=>{this.init()})}scope;resizing=q(!1);direction=q("");MIE=null;cleanMousedown;cleanMouseup;init(){const{el:e,options:t}=this,{disabled:r,onStart:i,onEnd:o}=t;if(r)return;this.MIE=Yf(e),this.cleanMousedown=da(document,"mousedown",()=>{this.direction?.value&&this.MIE&&(this.resizing.value=!0,e.classList.add("is-resizing",`is-${this.direction.value}-resizing`),i&&i(this.direction.value,this.MIE))}),this.cleanMouseup=da(document,"mouseup",()=>{this.resizing.value&&this.direction?.value&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),o&&o(this.direction.value,this.MIE)),this.resizing.value=!1}),_e(this.direction,u=>{const l=document.body;l.style.cursor=u?`${u}-resize`:"",u?l.classList.add(fo):l.classList.remove(fo)});const{x:s,y:a}=this.MIE;_e([s,a],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:r,options:i,el:o}=this,s=t?.value||"";if(!e||!r.value||!s)return;const{x:a,y:u,elementX:l,elementY:c,elementHeight:h,elementWidth:d}=e,{onResizing:p}=i,{minWidth:f=0,minHeight:v=0,maxWidth:y=99999,maxHeight:$=99999}=i;if(s.includes("e")){const g=Math.min(Math.max(l.value,f),y);o.style.width=`${g}px`}if(s.includes("s")){const g=Math.min(Math.max(c.value,v),$);o.style.height=`${g}px`}if(s.includes("w")){const g=Math.min(Math.max(d.value-l.value,f),y);o.style.width=`${g}px`,o.style.left=`${a.value}px`}if(s.includes("n")){const g=Math.min(Math.max(h.value-c.value,v),$);this.el.style.height=`${g}px`,this.el.style.top=`${u.value}px`}p&&p(s,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:r,elementWidth:i,isOutside:o}=this.MIE;if(o.value)return"";const{dirs:s=["n","s","w","e"],edge:a=5}=this.options;let u="";return s.includes("n")&&t.value<=a?u+="n":s.includes("s")&&t.value>r.value-a&&(u+="s"),s.includes("w")&&e.value<=a?u+="w":s.includes("e")&&e.value>i.value-a&&(u+="e"),u}destory(){const e=document.body;e.style.cursor="",e.classList.remove(fo),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),this.MIE?.stop(),this.scope.stop()}}const rs={mounted(n,e){const t=e.value||{},r=new Ou(n,t);n.__resizable__=r},updated(n,e){const t=e.value||{};let r=n.__resizable__;r&&!Zs(r.options,t)&&(r.destory(),n.__resizable__=new Ou(n,t))},unmounted(n){const e=n.__resizable__;e&&(e.destory(),n.__resizable__=null)}},P7={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!1},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let Nn=1e3;function L7(n,e){const{width:t,height:r}=ys(e),i=gn({mode:n.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++Nn,dragging:!1,resizing:!1});return _e([t,r],([o,s])=>{i.wrapperWidth=o,i.wrapperHeight=s,i.width=Yr(n.width,o),i.height=Yr(n.height,s),i.left=n.left?Yr(n.left,o)-i.width/2:Math.max(Math.floor((o-i.width)/2),0),i.top=n.top?Yr(n.top,s):Math.max(Math.floor((s-i.height)/2),0)}),_e(i,o=>{Nn=Math.max(o.zIndex,Nn)}),{state:i,normal:L(()=>i.mode==="normal"),maximized:L(()=>i.mode==="maximized"),minimized:L(()=>i.mode==="minimized")}}function H7(n,e){const t=L(()=>{const{width:s,height:a,top:u,left:l,zIndex:c}=e;return{width:`${s}px`,height:`${a}px`,top:`${u}px`,left:`${l}px`,zIndex:c}}),r=L(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!n.draggable,"is-resizable":!!n.resizable,"is-primary":!!n.primary})),i=L(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),o=L(()=>({zIndex:e.zIndex}));return{styles:t,classes:r,wrapperClass:i,modalStyle:o}}function U7(n,e,t){const r=o=>{e.mode=o,["maximized","minimized","normal"].includes(o)&&t(o),t("modeChange",o)},i=async()=>{(!n.beforeClose||await n.beforeClose())&&(t("update:modelValue",!1),t("close"),t("destroy"))};return{close:i,changeMode:r,show:()=>r("normal"),hide:()=>r("minimized"),active:o=>{const s=o.target.nodeName||"";["INPUT","TEXTAREA","RADIO","CHECKBOX"].includes(s.toUpperCase())||(e.zIndex=Math.max(e.zIndex,++Nn))},submit:()=>t("submit"),cancel:()=>{t("cancel"),i()}}}function q7(n,e,t,r){return L(()=>{const i=typeof n.draggable=="boolean"?!n.draggable:!!n.draggable?.disabled;return{...Ne(n.draggable)?n.draggable:{},disabled:i,target:r,selector:".x-panel__header",onStart(o){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++Nn),t("dragStart",o)},onMove(o){t("dragging",o)},onEnd(o){if(e.mode==="maximized")return;const{x:s,y:a}=o;e.left=s,e.top=a,e.dragging=!1,t("dragEnd",o)}}})}function W7(n,e,t){return L(()=>{const r=typeof n.resizable=="boolean"?!n.resizable:!!n.resizable?.disabled;return{minWidth:200,minHeight:150,...Ne(n.resizable)?n.resizable:{},disabled:r,dirs:["e","s","w"],onStart(i,o){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++Nn),t("resizeStart",i,o)},onResizing(i,o){t("resizing",i,o)},onEnd(i,o){e.left=o.elementPositionX.value,e.top=o.elementPositionY.value,e.width=o.elementWidth.value,e.height=o.elementHeight.value,e.resizing=!1,t("resizeEnd",i,o)}}})}function J7(n,e){const t=n.componentInstance;if(!t)return;let r=null;return us(()=>{const i=m(e),o=m(i?.bodyRef);r=t.$el,o&&o.$el&&o.$el.appendChild(r)}),cs(()=>{r&&r.parentNode&&r.parentNode.removeChild(r)}),{componentInstance:t}}const Y7=["src"],er=J({name:"XDialog",__name:"Dialog",props:P7,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=kr(),s=q(),a=q(),{state:u,maximized:l,minimized:c,normal:h}=L7(r,s),{styles:d,classes:p,wrapperClass:f,modalStyle:v}=H7(r,u),{changeMode:y,active:$,close:g,show:w,hide:_,submit:x,cancel:b}=U7(r,u,i),E=q7(r,u,i,s),O=W7(r,u,i),H=J7(r,a);ls(async()=>{r.modelValue&&(await Jt(),o&&i("open",o))});const S=L(()=>a.value?.$el);return e({$vtjEl:S,panelRef:a,state:u,maximized:l,minimized:c,changeMode:y,show:w,hide:_,submit:x,cancel:b,componentInstance:H}),(j,N)=>r.modelValue?(k(),F(pf,{key:0,to:"body"},[fe("div",{ref_key:"wrapper",ref:s,class:ke(["x-dialog__wrapper",m(f)])},[r.modal?(k(),te("div",{key:0,class:"x-dialog__modal",style:Gt(m(v))},null,4)):Z("",!0),Bn((k(),F(m(Pi),je({ref_key:"panelRef",ref:a,class:["x-dialog",m(p)],card:"",shadow:"always",header:{icon:r.icon,subtitle:r.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:m(d),size:r.size,body:{padding:r.bodyPadding},onClick:m($)},j.$attrs),Fn({title:A(()=>[pe(ie(r.title),1)]),actions:A(()=>[le(j.$slots,"actions"),r.minimizable?(k(),F(m(tt),{key:0,icon:m(vh),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:N[0]||(N[0]=V=>m(y)("minimized"))},null,8,["icon","size"])):Z("",!0),r.maximizable?(k(),te(re,{key:1},[m(h)?(k(),F(m(tt),{key:1,icon:m(mh),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:N[2]||(N[2]=V=>m(y)("maximized"))},null,8,["icon","size"])):(k(),F(m(tt),{key:0,icon:m(gh),size:r.size,mode:"icon",type:"primary",background:"hover",onClick:N[1]||(N[1]=V=>m(y)("normal"))},null,8,["icon","size"]))],64)):Z("",!0),r.closable?(k(),F(m(tt),{key:2,icon:m(yh),size:r.size,mode:"icon",type:"danger",background:"hover",onClick:m(g)},null,8,["icon","size","onClick"])):Z("",!0)]),default:A(()=>[le(j.$slots,"default",{},()=>[r.content?(k(),F(rt(r.content),{key:0})):Z("",!0),r.src?(k(),te("iframe",{key:1,src:r.src,class:"x-dialog__frame"},null,8,Y7)):Z("",!0)])]),_:2},[r.cancel||r.submit||j.$slots.footer||j.$slots.extra||j.$slots.handle?{name:"footer",fn:A(()=>[le(j.$slots,"footer",{},()=>[T(m(he),{align:"center"},{default:A(()=>[le(j.$slots,"extra")]),_:3}),T(m(he),{align:"center"},{default:A(()=>[le(j.$slots,"handle"),r.cancel?(k(),F(m(ze),{key:0,type:"default",size:r.size,onClick:m(b)},{default:A(()=>[pe(ie(typeof r.cancel=="string"?r.cancel:"取消"),1)]),_:1},8,["size","onClick"])):Z("",!0),r.submit?(k(),F(m(ze),{key:1,type:"primary",size:r.size,onClick:m(x)},{default:A(()=>[pe(ie(typeof r.submit=="string"?r.submit:"确定"),1)]),_:1},8,["size","onClick"])):Z("",!0)]),_:3})])]),key:"0"}:void 0]),1040,["header","class","style","size","body","onClick"])),[[m(z7),m(E)],[m(rs),m(O)]])],2)])):Z("",!0)}}),K7=J({__name:"SelectEditor",props:{options:{default:()=>[]}},setup(n){const e=n;return(t,r)=>(k(),F(m(Wu),At(Qt(t.$attrs)),{default:A(()=>[(k(!0),te(re,null,ae(e.options,(i,o)=>(k(),F(m(qu),je({key:`item_${o}_${i.value}`},i),Fn({_:2},[t.$slots.option?{name:"default",fn:A(()=>[le(t.$slots,"option",{option:i})]),key:"0"}:void 0]),1040))),128))]),_:3},16))}}),Z7=J({__name:"CheckboxEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=L(()=>Xt(e.button?jf:Ef));return(r,i)=>(k(),F(m(kf),At(Qt(r.$attrs)),{default:A(()=>[(k(!0),te(re,null,ae(e.options,(o,s)=>(k(),F(rt(t.value),{key:`item_${s}_${o.value}`,label:o.value},{default:A(()=>[pe(ie(o.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),G7=J({__name:"RadioEditor",props:{options:{default:()=>[]},button:{type:Boolean,default:!1}},setup(n){const e=n,t=L(()=>Xt(e.button?Gr:Tf));return(r,i)=>(k(),F(m(Ju),At(Qt(r.$attrs)),{default:A(()=>[(k(!0),te(re,null,ae(e.options,(o,s)=>(k(),F(rt(t.value),{key:`item_${s}_${o.value}`,label:o.value},{default:A(()=>[pe(ie(o.label),1)]),_:2},1032,["label"]))),128))]),_:1},16))}}),Pp={none:{component:"div",props:{class:"x-field-none"}},text:{component:mt,props:{clearable:!0},defaultValue:""},textarea:{component:mt,props:{type:"textarea",rows:2},defaultValue:""},select:{component:K7,props:{clearable:!0}},checkbox:{component:Z7,props:{},defaultValue:[]},radio:{component:G7,props:{}},number:{component:Uu,props:{}},date:{component:ua,props:{}},time:{component:_f,props:{}},datetime:{component:ua,props:{type:"datetime"}},switch:{component:ps,props:{}},rate:{component:xf,props:{}},slider:{component:Sf,props:{}},cascader:{component:$f,props:{}}},X7={name:{type:String},label:{type:String},editor:{type:[String,Object],default:"text"},props:{type:Object},modelValue:{type:[String,Number,Boolean,Object,Array],default(n){return Pp[n.editor]?.defaultValue}},size:{type:String},width:{type:[String,Number]},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},options:{type:[Array,Function]},visible:{type:[Boolean,Object,Function],default:!0},cascader:{type:[String,Array]},error:{type:String},tip:{type:String}};async function Q7(n,e){const t=n.options;return t?typeof t=="function"?await t(e)||[]:t:[]}function e$(n,e,t,r,i){const o=q([]),s=L(()=>!r||!i?{}:pp(n.cascader).reduce((a,u)=>(a[u]=ri(i,u),a),{}));return _e(s,async a=>{if(t.value){o.value=await Q7(n,a);const u=r?.exposed?.reset;u&&n.name&&u(n.name)}},{immediate:!0}),{editor:L(()=>{const{editor:a="text",placeholder:u,label:l="...",disabled:c,readonly:h}=n,d={...n.props,placeholder:u||(u===null?void 0:`请输入${l}`),disabled:c,readonly:h,options:o.value,onFocus:()=>e("focus"),onBlur:()=>e("blur"),onChange:f=>e("change",f)},p=typeof a=="string"?Pp[a]:{component:a,props:{}};return Kt({},p,{props:d})})}}const t$={key:1,class:"el-form-item__error"},n$={class:"x-field__editor_wrap"},r$={key:0,class:"x-field__tip"},ne=J({name:"XField",__name:"Field",props:X7,emits:["update:modelValue","change","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=hr(Lp,null),s=hr(gf,null),a=hr(Hp,null),u=L(()=>!o?.proxy||!a?r.visible:typeof r.visible=="function"?r.visible(a):Ne(r.visible)?Object.entries(r.visible).every(([x,b])=>ri(a,x)===b):r.visible),l=()=>o?.proxy&&a&&r.name?ri(a,r.name)??r.modelValue:r.modelValue,c=q(l()),{editor:h}=e$(r,i,u,o,a),d=q(),p=q(),f=L(()=>r.size||s?.size||"default"),v=L(()=>Object.assign({},o?.props.tooltipMessage||{},typeof r.tooltipMessage=="boolean"?{}:r.tooltipMessage)),y=(x="")=>r.error?r.error:x.includes("is required")?`${r.label||r.name}是必填项!`:x,$=L(()=>{const x=o?.props.tooltipMessage??r.tooltipMessage;return{[`is-tooltip-${r.tooltipPosition}`]:!!x&&!!r.tooltipPosition}}),g=L(()=>{const x=o?.proxy;return{width:r.width?Er(r.width):x&&x.inline&&x.inlineColumns?`${100/x.inlineColumns}%`:null}}),w=L(()=>({right:typeof r.tooltipPosition=="number"?`${r.tooltipPosition}px`:void 0})),_=L(()=>({...h.value.props,modelValue:c.value,"onUpdate:modelValue":x=>{c.value=x}}));return _e(c,(x,b)=>{u.value&&!Zs(x,b)&&(i("update:modelValue",x),o?.proxy&&a&&r.name&&no(a,r.name,x))}),_e(()=>!o?.proxy||!r.name||!a?r.modelValue:ri(a,r.name)??r.modelValue,x=>{u.value&&(c.value=x)},{immediate:!0}),_e(u,x=>{o?.proxy&&a&&r.name&&(x?(c.value=l(),no(a,r.name,c.value)):(c.value=void 0,no(a,r.name,void 0)))},{immediate:!0}),e({fieldValue:c,itemRef:d,editorRef:p,focus:()=>{p.value?.focus&&p.value.focus()},blur:()=>{p.value?.foucs&&p.value.blur()}}),(x,b)=>u.value?(k(),F(m(Lu),je({key:0,class:["x-field",$.value],ref_key:"itemRef",ref:d,prop:r.name,label:x.label,size:f.value,style:g.value},x.$attrs),Fn({error:A(({error:E})=>[le(x.$slots,"error",{error:E},()=>[m(o)?.props.tooltipMessage??r.tooltipMessage?(k(),te("div",{key:0,class:"x-field__info",style:Gt(w.value)},[T(m(_i),je({content:y(E)},v.value),{default:A(()=>[T(m(en),{class:"x-field__trigger",icon:m(Uf),size:f.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):(k(),te("div",t$,ie(y(E)),1))])]),default:A(()=>[fe("div",n$,[le(x.$slots,"editor",{editor:_.value},()=>[m(h).component?(k(),F(rt(m(h).component),je({key:0,class:"x-field__editor",ref_key:"editorRef",ref:p,modelValue:c.value,"onUpdate:modelValue":b[0]||(b[0]=E=>c.value=E)},m(h).props),Fn({_:2},[x.$slots.option?{name:"option",fn:A(({option:E})=>[le(x.$slots,"option",{option:E})]),key:"0"}:void 0]),1040,["modelValue"])):Z("",!0)]),r.tip||x.$slots.tip?(k(),te("div",r$,[le(x.$slots,"tip",{},()=>[pe(ie(r.tip),1)])])):Z("",!0)]),le(x.$slots,"default")]),_:2},[x.$slots.label?{name:"label",fn:A(()=>[le(x.$slots,"label")]),key:"0"}:void 0]),1040,["prop","label","size","class","style"])):Z("",!0)}}),i$={model:{type:Object,default(){return Object.create(null)}},inline:{type:Boolean},inlineColumns:{type:Number},footer:{type:Boolean,default:!0},submitText:{type:String,default:"提交"},resetText:{type:String,default:"重置"},submitMethod:{type:Function},tooltipMessage:{type:[Object,Boolean],default:void 0}},Lp=Symbol("formInstanceKey"),Hp=Symbol("formModelKey"),Up=J({name:"XForm",__name:"Form",props:i$,emits:["change","submit","reset"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=kr(),s=q(),a=gn(r.model||{}),u=q(!1);la(Lp,o),la(Hp,a),_e(a,()=>{i("change",An(a))}),_e(()=>r.model,h=>{Object.assign(a,h)},{deep:!0});const l=async()=>{await s.value.validate().catch(()=>!1)&&(i("submit",An(a)),r.submitMethod&&(u.value=!0,await r.submitMethod(An(a)),u.value=!1))},c=h=>{s.value.resetFields(h),i("reset")};return e({formRef:s,model:a,submit:l,reset:c}),(h,d)=>(k(),F(m(pr),je({ref_key:"formRef",ref:s,class:"x-form",inline:r.inline,model:a,onKeyup:dr(l,["enter"]),onSubmit:d[1]||(d[1]=Cn(()=>{},["stop","prevent"]))},h.$attrs),{default:A(()=>[le(h.$slots,"default"),r.footer?(k(),F(m(ne),{key:0,editor:"none",class:"x-form__footer",label:" "},{editor:A(()=>[le(h.$slots,"footer",{},()=>[r.submitText?(k(),F(m(ze),{key:0,loading:u.value,type:"primary",onClick:l},{default:A(()=>[pe(ie(r.submitText),1)]),_:1},8,["loading"])):Z("",!0),r.resetText?(k(),F(m(ze),{key:1,type:"default",onClick:d[0]||(d[0]=()=>c())},{default:A(()=>[pe(ie(r.resetText),1)]),_:1})):Z("",!0),le(h.$slots,"action")])]),_:3})):Z("",!0)]),_:3},16,["inline","model"]))}}),o$={modelValue:{type:Boolean,default:!0},size:{type:String},formProps:{type:Object},submit:{type:[Boolean,String],default:"确定"},cancel:{type:[Boolean,String],default:"取消"},model:{type:Object,default(){return Object.create(null)}},rules:{type:Object},submitMethod:{type:Function}},kt=J({name:"XDialogForm",__name:"DialogForm",props:o$,emits:["update:modelValue","submit","close"],setup(n,{expose:e,emit:t}){const r=n,i=t,o=q(),s=q(),a=L(()=>s.value?.$vtjEl),u=()=>{o.value?.submit()},l=()=>{i("update:modelValue",!1),i("close")},c=async p=>{i("submit",p),r.submitMethod?await r.submitMethod(p)&&l():l()},h=L(()=>r.formProps?.disabled?!1:r.submit),d=L(()=>r.formProps?.disabled?!1:r.cancel);return e({$vtjEl:a,formRef:o,dialogRef:s}),(p,f)=>(k(),F(m(er),je({ref_key:"dialogRef",ref:s,class:"x-dialog-form","model-value":r.modelValue,submit:h.value,cancel:d.value,size:r.size,onSubmit:u,onClose:l,minimizable:!1,maximizable:!1},p.$attrs),Fn({default:A(()=>[T(m(Up),je({ref_key:"formRef",ref:o,class:"x-dialog-form__form",footer:!1,"label-width":"80px",size:r.size,model:r.model,rules:r.rules,"submit-method":c},r.formProps),{default:A(()=>[le(p.$slots,"default")]),_:3},16,["size","model","rules"])]),_:2},[p.$slots.extra?{name:"extra",fn:A(()=>[le(p.$slots,"extra")]),key:"0"}:void 0,p.$slots.handle?{name:"handle",fn:A(()=>[le(p.$slots,"handle")]),key:"1"}:void 0,p.$slots.footer?{name:"footer",fn:A(()=>[le(p.$slots,"footer")]),key:"2"}:void 0]),1040,["model-value","submit","cancel","size"]))}}),s$={items:{type:Array,default(){return[]}},border:{type:Boolean}},qp=J({name:"XTabs",__name:"Tabs",props:s$,setup(n){const e=n,t=i=>{const{label:o,name:s,value:a,disabled:u,closable:l,lazy:c}=i;return{label:o,name:a??s,disabled:u,closable:l,lazy:c}},r=L(()=>({"is-no-border":!e.border}));return(i,o)=>(k(),F(m(bf),je({class:["x-tabs",r.value]},i.$attrs),{default:A(()=>[(k(!0),te(re,null,ae(e.items,s=>(k(),F(m(yf),je({key:s.value??s.name},t(s)),{label:A(()=>[le(i.$slots,"label",At(Qt(s)),()=>[s.icon?(k(),F(rt(m(ra)(s.icon)),{key:0,class:"x-tabs__icon"})):Z("",!0),pe(" "+ie(s.label),1)])]),default:A(()=>[le(i.$slots,"default",At(Qt(s)),()=>[s.component?(k(),F(rt(s.component),At(je({key:0},s.props)),null,16)):Z("",!0)])]),_:2},1040))),128))]),_:3},16,["class"]))}});var nt=(n=>(n.Runtime="Runtime",n.Design="Design",n.Raw="Raw",n.VNode="VNode",n))(nt||{});const Au=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],a$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],l$=["vIf","vShow","vModel","vFor","vBind"],Wp={String,Number,Boolean,Array,Object,Function,Date};function Jp(n){return/\.css$/.test(n)}function Yp(n){return/\.js$/.test(n)}function Bu(n){return n.map(e=>`<script src="${e}"><\/script>`).join("")}function u$(n=[]){return n.map(e=>`<link rel="stylesheet" href="${e}" />`).join("")}function Kp(n){const e=n.filter(l=>!!l.enabled),t=[],r=[],i=[],o=[],s={},a=[],u={};return e.forEach(({urls:l,assetsUrl:c,library:h,assetsLibrary:d})=>{l?.forEach(p=>{Yp(p)&&t.push(p),Jp(p)&&r.push(p)}),h&&(o.push(h),s[h]=l||[]),c&&i.push(c),d&&a.push(d),h&&d&&(u[d]=h)}),{scripts:t,css:r,materials:i,libraryExports:o,materialExports:a,materialMapLibrary:u,libraryMap:s}}function Zp(n,e){const{name:t,parent:r,alias:i}=n;return r?e[r]?.[i||t]:e[i||t]}function Gp(n){return Gn(n)?n:JSON.stringify(n)}function Xp(n,e,t){const r=n.CSSStyleSheet;if(r.prototype.replaceSync){const i=new r;i.id=e,i.replaceSync(t);const o=n.document,s=o.adoptedStyleSheets,a=Array.from(s).filter(u=>u.id!==e);o.adoptedStyleSheets=[...a,i]}else{const i=n.document;let o=i.getElementById(e);o?o.innerHTML=t:(o=i.createElement("style"),o.id=e,o.innerHTML=t,i.head.appendChild(o))}}async function c$(n,e){const t=await window.fetch(e).then(r=>r.text()).catch(()=>"");t&&Xp(window,n,t)}function h$(n){return wr(n)||wr(n?.install)}var bi=function(){return bi=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},bi.apply(this,arguments)},is={debug:-1,log:0,info:0,warn:1,error:2},d$=function(n,e,t,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e&&is[e]<=is[n]&&console[n].apply&&(r==="*"||t.startsWith(r)))return console[n].apply(console,p$(i,t))}};function p$(n,e){return e!=="*"&&(typeof n[0]=="string"?n[0]="["+e+"] "+n[0]:n=["["+e+"]"].concat(n)),n}function f$(n,e){if(!n)return{targetLevel:e.level,targetBizName:e.bizName};if(~n.indexOf(":")){var t=n.split(":");return{targetLevel:t[0],targetBizName:t[1]}}return{targetLevel:n,targetBizName:"*"}}var m$={level:"warn",bizName:"*"},v$=function(){function n(e){e=bi(bi({},m$),e);var t=location||{},r=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(t.href)||[])[1],i=f$(r,e),o=i.targetLevel,s=i.targetBizName;for(var a in is)this[a]=d$(a,o,e.bizName,s)}return n}();function g$(n){return new v$(n)}const it=g$({level:"log",bizName:"VTJ"});function tn(n,e,t=!1,r=!1){try{const i=['"use strict";',"var __self = arguments[0];"];i.push("return ");let o=(n.value||"").trim();o=o.replace(/this(\W|$)/g,(a,u)=>`__self${u}`),o=i.join(`
103
103
  `)+o;const s=`with(${t?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",s)(e)}catch(i){if(it.error("parseExpression.error",i,n,e?.__self??e),r)throw i}}function os(n,e,t=!1,r=!1){const i=tn(n,e,t,r);if(typeof i!="function"&&(it.error("parseFunction.error","not a function",n,e?.__self??e),r))throw new Error(`"${n.value}" not a function`);return i}function Le(n){return n&&n.type==="JSExpression"}function Or(n){return typeof n=="object"&&n&&n.type==="JSFunction"}function y$(n){return Le(n)||Or(n)}function Un(n){return y$(n)?n.value:JSON.stringify(n)}let Tn=null;const b$=Mp({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:n=>n.data?.code===0||!!n.data?.success,failMessage:!0,showError:n=>{yn.error({message:n||"未知错误"})},showLoading:()=>{Tn&&Tn.close(),Tn=Yu.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{Tn&&(Tn.close(),Tn=null)}}});function w$(n,e){const{jsonp:t,request:r}=e;if(n.method==="jsonp")return(i={})=>t(n.url,{...n.jsonpOptions,query:i});{const i=n.headers?tn(n.headers,{},!0):void 0,o={url:n.url,method:n.method,settings:{...n.settings,headers:i}};return(s,a)=>r.send(Kt(o,a||{},{data:s}))}}function Qp(n=[],e){return n.reduce((t,r)=>(t[r.id]=w$(r,e),t),{})}let _$=class{__id=null;__mode;__instance=null;__contextRefs={};__refs={};context={};state={};$props={};$refs={};$el=null;$emit=null;$nextTick=null;$parent=null;$root=null;$attrs=null;$slots=null;$watch=null;$options=null;$forceUpdate=null;$components={};$libs={};$apis={};__transform={};constructor(e){const{mode:t,dsl:r,attrs:i}=e;this.__mode=t,r&&(this.__id=r.id||null,this.__transform=r.transform||{}),i&&Object.assign(this,i)}setup(e,t=xi){const r=t.getCurrentInstance();if(!r)return;this.__instance=r.proxy;const i=r.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()})}__proxy(){this.__instance&&Au.forEach(e=>{this[e]=this.__instance?.[e]})}__cleanup(){Au.forEach(e=>{this[e]=null})}__parseFunction(e){if(e)if(this.__mode===nt.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return os({type:r,value:i},this)}else return os(e,this)}__parseExpression(e){if(e)if(this.__mode===nt.Runtime){const{id:t,type:r}=e,i=t?this.__transform[t]??e.value:e.value;return tn({type:r,value:i},this)}else return tn(e,this)}__ref(e=null,t){if(this.__mode!==nt.VNode)return e&&e!==this.__id&&(this.__contextRefs[e]=this),r=>{let i=r?.$vtjEl||r?.$el||r;if(!i){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}if(i.__vtj__=e,i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),nt.Design===this.__mode&&(i.__context__=this),e&&(this.__refs[e]=r),typeof t=="function")t(r);else if(t){const o=this.$refs[t];if(o){const s=new Set([].concat(o,r));this.$refs[t]=Array.from(s)}else this.$refs[t]=r}return r}}__clone(e={}){const t={...this.context,...e},r={...t,context:t};return r.context.__proto__=this.context,r.__proto__=this,r}};function oa(n){const{Vue:e=xi,mode:t=nt.Runtime,components:r={},libs:i={},apis:o={},loader:s}=n,a=e.computed(()=>n.dsl),u={$components:r,$libs:i,$apis:o},l=new _$({mode:t,dsl:a.value,attrs:u}),c=e.defineComponent({name:a.value.name,props:{...x$(a.value.props??[],l)},setup(h){l.$props=h,a.value.id&&Xp(n.window||window,a.value.id,a.value.css||""),l.state=S$(e,a.value.state??{},l);const d=$$(e,a.value.computed??{},l),p=j$(a.value.methods??{},l),f=E$(e,a.value.inject,l),v=k$(a.value.dataSources||{},l),y={...f,...d,...p,...v};return l.setup(y,e),T$(e,a.value.watch??[],l),{vtj:l}},emits:[...a.value.emits??[]],expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?wi(h[0],l,e,s):h.map(d=>wi(d,l,e,s))},...V$(a.value.lifeCycles??{},l)});return{renderer:e.markRaw(c),context:l}}function x$(n=[],e){const t=r=>r?(Array.isArray(r)?r:[r]).map(i=>Wp[i]):void 0;return n.map(r=>Gn(r)?{name:r}:{name:r.name,type:r.type,required:r.required,default:Le(r.default)?e.__parseExpression(r.default):r.default}).reduce((r,i)=>(r[i.name]={type:t(i.type),required:i.required,default:i.default},r),{})}function S$(n,e,t){return n.reactive(Object.keys(e||{}).reduce((r,i)=>{let o=e[i];return Le(o)?o=t.__parseExpression(o):Or(o)&&(o=t.__parseFunction(o)),r[i]=o,r},{}))}function $$(n,e,t){return Object.entries(e??{}).reduce((r,[i,o])=>(r[i]=n.computed(t.__parseFunction(o)),r),{})}function j$(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}function E$(n,e=[],t){return e.reduce((r,i)=>{const{name:o,from:s}=i||{};i.default;const a=Le(s)?t.__parseExpression(s)||o:s??o,u=Le(i.default)?t.__parseExpression(i.default):i.default??null;return r[o]=n.inject(a,u),r},{})}function k$(n,e){return Object.keys(n).reduce((t,r)=>{const i=n[r],o=e.$apis[i.ref],s=Or(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;return t[r]=async(...a)=>{const u=await o.apply(e,a);return s?s(u):u},t},{})}function T$(n,e=[],t){e.forEach(r=>{n.watch(t.__parseExpression(r.source),t.__parseFunction(r.handler),{deep:r.deep,immediate:r.immediate})})}function V$(n,e){return Object.entries(n??{}).reduce((t,[r,i])=>(t[r]=e.__parseFunction(i),t),{})}const D$=n=>n;function sa(n){const{getDsl:e,options:t}=n;return(r,i,o=xi)=>!i||typeof i=="string"?r:i.type==="Schema"?o.defineAsyncComponent(async()=>{const s=await e(i.id);return s?oa({...t,Vue:o,dsl:s,mode:nt.Runtime,loader:sa(n)}).renderer:null}):r}function wi(n,e,t=xi,r=D$){if(!n||!n.name||n.invisible)return null;const{id:i=null,directives:o=[]}=n,{vIf:s,vFor:a,vShow:u,vModels:l,vBind:c}=O$(o);if(s&&!A$(s,e))return null;const h=d=>{const p=d.$components,f=(()=>{if(n.name==="component")return B$(d,n.props?.is);if(n.name==="slot")return n.name;const g=r(n.name,n.from,t);return Gn(g)?p[g]??g:g})(),v=C$(i,n.props??{},d),y=I$(t,n.events??{},d);if(n.name==="slot")return R$(t,n,v,d);c&&Object.assign(v,d.__parseExpression(c.value)),u&&(v.style=Object.assign(v.style??{},N$(u,d))),l.forEach(g=>{Object.assign(v,F$(t,g,d))});const $=z$(t,n.children??[],d,n);return t.createVNode(f,{...v,...y},$)};return a?H$(a,h,e):h(e)}function O$(n=[]){const e=n.find(a=>dn(a.name)==="vIf"),t=n.find(a=>dn(a.name)==="vFor"),r=n.find(a=>dn(a.name)==="vShow"),i=n.find(a=>dn(a.name)==="vBind"),o=n.filter(a=>dn(a.name)==="vModel"),s=n.filter(a=>!l$.includes(dn(a.name)));return{vIf:e,vFor:t,vShow:r,vModels:o,vBind:i,others:s}}function A$(n,e){return!!e.__parseExpression(n.value)}function B$(n,e){return e?Le(e)?n.__parseExpression(e):e:"div"}function C$(n,e,t){const r=Object.keys(e||{}).reduce((i,o)=>{let s=e[o];return Le(s)?s=t.__parseExpression(s):Or(s)&&(s=t.__parseFunction(s)),i[o]=s,i},{});return r.ref=t.__ref(n,r.ref),r}function I$(n,e,t){const r=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(e||{}).reduce((o,s)=>{const a=e[s],u=ef(a.modifiers),l=u.find(d=>r.includes(d)),c="on"+Js(s)+(l&&i[l]||""),h=t.__parseFunction(a.handler);return h&&(o[c]=n.withModifiers(h,u)),o},{})}function ef(n={},e=!1){const t=Object.keys(n);return e?t.map(r=>"."+r):t}function R$(n,e,t,r){const{children:i}=e,o=M$(e,r),s=r.$slots?.[o.name];return s?s(t):i?Gn(i)?n.createTextVNode(i):Le(i)?n.createTextVNode(Gp(r.__parseExpression(i))):Array.isArray(i)?i.map(a=>wi(a,r,n)):null:null}function M$(n,e){const{props:t}=n,r=t?.name||"default";return{name:Le(r)?e.__parseExpression(r):r,params:[]}}function N$(n,e){return e.__parseExpression(n.value)?{}:{display:"none"}}function F$(n,e,t){const r={type:"JSFunction",value:e.value?.value?`(v) => {
@@ -106,7 +106,7 @@ version: 2.9.0
106
106
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
107
107
  * @name @vtj/designer
108
108
  * @author CHC chenhuachun1549@dingtalk.com
109
- * @version 0.7.0
109
+ * @version 0.7.1
110
110
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
111
111
  */const Iu={width:390,height:844},Ru={width:1180,height:820},Rt=/^[A-Za-z_$][\w_-]*$/,K$=["click","dblclick","mouseenter","mouseleave","mousedown","mouseup","mouseover","contextmenu"],Z$=["keydown","keyup","keypress"],G$=["GET","POST","PUT","PATCH","DELETE","JSONP"],X$=["stop","prevent","capture","self","once","passive"];var dt=(n=>(n.Block="block",n.Node="node",n))(dt||{});const Q$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFdgIXA80DHgPKoCowE3gHuCirvIAj5AfAmcEUAaVcHZAJTgHlqjuQr/CREJm/PAH8G2pyWVZ0crlbzl8v8TNQvQrLVGP5en9I7XdBV9S0/9qu8fhDSC1isZI6zEaKjTQYe8aM+vSZwqeq8u5+lZMTiYeA5oLaXRLwQMhSYe5b0F4niR8BUL6S4VXsvAWYCGZ6Kf2bi+8oVcDuQ9KzbTQvpqQS4GjKcIVrdU25+mCwhbZWuk+WhsGcLxgEPJvusyRAi84xpNR14UhD9a1QyP0iGkEeBQcGV/YyE1O+zwPnJ/CARSEc1NrBin9kQtftFoHEiT5kIIeLj/s3ZXqsecSHwUCJJVEZIGjAJaFXVT3QG4D7ga5U9RmWEiHI7/GyvSZ8QUkPhhhUlVxEhLZUcUAP/ILFld7slJK9GFgkEuRXEjjkSIh6/O0+fZzyt0EK5tLVwIiSvMltXA0+4yWluoiOkqwrVqUFwqA/ckygholI2SCUZZhjM4/bflOYrn1IwT4AZSW3eSlLpUP4/yxPSKtWtwyyBnPPgioHQtpX93Zd0TVXZEbviddcJQ59OMHwAZDTxL+8EIWFRN5a/tTwh31UxtymBtIrhF8GiBwwWPmDw2oMGg3t5rxghIi0NLugAbcRJUKoIiEUYbhwCrz9k57sgz6BvZ7u1pBBjlPk6hdjIRSHnXeV8ChzmF3DlJfDyWIP653yZ28ZP4dKHTfYdBCPNHRndsuGpmwwGdYNjJ2DiYpMnFtheI8OwTWPnLCh43KBR3S9/u/0z+N4Ek8KNYKQu9PvbKkDEQmwL6QP0S0UJhIxhA2D6PWXJEHTNhN7t7Tc46XQj0KQRzBhrMLwPNKgDLRvDY9cZfFOeLtrywjC0B2XIELTLgNm5Br072603RRgZm00sIcNSsSRAyBjSF6b/xIirEMHRE7D7gEtfZhiG9YGe2fGXLuwY41A1oOhzfRLtW8LMcQbnd0wZKd9UC40shGL+Xhl0zkLGwJ4w816D5g7juKlvwbqPwEhkvVRs2thPcfWFhvb62h02ERZqw+vL4e//1afVuTXMGW/QpV1KSMmIDaGKEtI+GSeKGwgZ/brZZLR08AzMWgY/e8l03TqyW8PXesRf2roH3t3w5aI46UdKwnDnVJNXC/XJiemcPd4gp03gpMhr8tXol+ijDwly7iFk9Opiv3VtmuvvmZsPtzxnWp2wm85cCBnRB5pr9IXFK2F/sXImKBjpcOQY3DTJ5LWV+iQvaGOTkp0Z+Ojr8mjoUJSQnkHlJG9X9xyYO96wOk0dFq6AHzxncvS4XVFJ52FCWh24+qJ4cxU5Ca8WmpZNK39VzOKhIzDmWZO31+nT7t0OZuUaZGYESkrbaOB2SMVmBeIrlwfo0h7mjTfo6ODikrdzzCSTw8eS7zdOIQzd28JXNCs3pO94f6PzGl6jNhQfhOsnmrz3P/09F+XAy7kGGc0CmzzWV2tQLEJaqD7EVwgZHdvA/DyDLpn6lN9aCzc/a/L5YfdkWJ15BIb1soe55TEv3+SYpF9BvySkFO2D6yeZrNyuv2dQV3hpnEHTRvZcJwB0jRIieko9X8kogQ5ZMC/PoJvDss531sMNE032H7QrxDVOQq168F2NuZIh9PyCsn2HE4xzYMduuPZpk3U79Td9vQdMG2vQqF4gpAgPTUPKi+XWWMRByDivpW13ezosZ/lgC9w4yWRvsUcysGWRAZ3UPKMclm6CDTsSD5gVUrbssEnZskd/jwwc/ibqQl3fSZGl4e1DakWQLxAyWjW3Z7v9HIygmIRRT5vs2mtXgBdE9SmZe6RpTJKYq8gJe5ibKEQyWb8NrnnS5KPP9D/6dn948W6DunV8JUVc5i1Dfi3GFDKaNYaX7zUY2Fl/z4ZdMPoZk493eyfDwklo2Bgu7x1/af8ReH1VYuaqPISUNZvhe0+ZfLJff8/Ir8Cff2xwTm3f3AZS0mYhxYwnCBkNG9id3lCH6aWYgJETTDZ97BMZ2Obqki5o+6klq2H7LveDBaMurNhoi427HWSW0RfDCz8ySE/3hRSplcyQ2lXHNaQg9evB9LEGlzvMZiwV9SmTddv8U1Etc2XYc4+QxiTN+cB0sRigLISU/HU2KZ85bFFz46Uw9Q5FijcnV3qUkBZuUzBPQnoaTLnd4CoHnViavDzQ6s0+S9oRaJkBwzXm6qO98M46f/Y6ElLeXwM3PGty4Kj+nluGwiOjDatMcX6X5HCutz6kFAb1gDEO08pPDyj/woYA/Aul8PULIEsjxSxaAcX73c36dRBS3iyAMZNNDjvsfJI7Avp2scvlAVYfohHBE0QELu+lH8KImbr2GdNq8ob7HLSw3sJaemW3NAxzlml0Eq+oA4veh9ummhQfiU+rTi3VWr2ZrXohT0mY0NbB4P1qnsl7+f6TYSEM7VrDEM0AYvUOyN/i/9Zs1tC5Dsx8A/70tv6erOae34JwyNOWdwbscNjyK3eEQe+eAUnXYfttbKFRdhcWmhw/7FIxrgzH4VuD4Iav6u/bVeytA5Hd7UJqj0J3SIf5+SZhTRvrrqSTCzra8rtfkIGEKLvXDIh/G4+VJC6VJAt5hqF9Ydo9BplN4398vNTuuzzm/VlIbRjpDrVg2Qb45Vz9myHu0Hn3++wOVcruAI2y+98N8OF2/82VkHFJT5hRgafzyYWwcpMnEUoq8dOQ2r3TFSy7mgaPzoDHFuhTyGkF8+4z6OqXOzSCNcQuHxwhmP2BaanMFSm7yULI6NvV1uacPJ3P/xMemWladZGMTFMO4m3ZJUV3EAcSg/XwafDT6SYTF+t/Ij7q+fcbdMn2RoqYqzoN4Dua0dWeg7BkjZ8yqU1Gz072C6UzU4KX3oO7nzeJRDz3WzJg3ivV6SAMJA4piGlA3l9MJr+h/5n4qOfeZ9C5rQdSSuGiTtBHI1z+60PYUeRf/2F5OjvaZc52GEnOWQa3TTEt/7wPcx5pIQdCapNhzxBSIibkvmjygsOw8PwsmDXesHwlrtyhJlzV31nZlf7Fg8n4Mpvj0Dkb5uYZlsnVQYIjbplicsyl21mD9SJshNSOzw6iQHIQUkojcPcfTaY5bLTaKxvm5CUfOCA6UcMmcEXf+Gtbimzvox/mSsjIaav6PQfHxOJVth/+8FEPbud4iMHdGfJ7+20h5UQp3PUHk9nL9Pf0aWcHo2W1SoKUsK3sdtJEHr+yHD53G1wXAylL+yw70uR8h70qpJ+6aaLJwSO+kiEQV1pJdGK41M+UpQlLBMmtk00WOsQ9DciBmbkG52YkGDhgwKiB8cqutMgFBfaw24u5EjKyzrXNVG9N5KPg3xtst3PxId/JKFVbn596p1b4mrwKsREhTpq2NfrR4OLOtkOrRdOKSRGJP7OV6Gbx11Zth8Jt3syV5enMgFnjDKv16rB0M4yaYLLvcx/czvGQAwM+JIaQpZ5lMQ2EFIkokbfqPxv19wzpDjPGGTRpXIE7NGJHJLbWDD1fKTD54rB7cyVkNG1im1AnT6fldp5gsmd/IGQIlkUVk+hjFHiZIFYEeYB9B2w/+vJt+hulsl8aa9CgfjwplrKbbo+uyuPIcZi/3B7qurFWklcD8XT+xGBwN/0963fans5Pinz0dMbj1Lg0SsghdTpAIJAH2b3XJuXDT/Q5fKt3DCmxbTUCHVrDZRplV2z6+iSiSmIhZrBeXTsKf5jGyYUavUkEytZPAl0vIkrfv6JfYhv6PwLLUgUObFNv26bd+nuu7AeTbzVID8V43kTZ7QPNNBrSPHHTliTfmVuhp2nwu9sMK4JEB/HnjJQYra2BL96ReeDa6JdYQpaoIXBgkAfbuN1+67Y5SJo3D4b+nWKWoaVLKKeDVLLWpZBYCiP6w/cH6y+LS0HKuGpTQP6cspgZ23/HElKsdhgNFEKK+NdHTzLZ6aCi1a6ltE/DLuqWong1WUJ8dha5JOSkPUHVQRYLSUhpQRBu53gcjV3OhmZsMt2zVzgByIMWrFeklPPGyIx7xRZ7GGu1i3T4wxLKBELvPwwTF6m5h5sCpMGba+wJbCyk1V03yeS9tSlbYyh9R5nxZ5rR4+ex33eqLYQc3h//IJNHiaV9ax00bWBw0oRFhTDur2UXfIqafPQYvFIIoZBhEZg3zSR/o/shqKS9cw98XAz9OthL6wq22v7yd9ekdMHneGBzmbJpzg8ZpXYdTQmsCWEte3Hm3gO2qdKJddbIy1RtOux9PmD1T6XQvb3tSFu+FfbsC2yeoUOhWvFcRjzSEVJXTVQCW8RTHlblnLQru6IRU3Tk5YeieyrNUpV3ekB+eGfcDPyt/FXd/FbGxRNSWTKpYCMBb5t1n8/hPaImyDwpxWTIUUpzdBecBIeZUbGrBoHgcYnJSIYQsWu/CELfqoGliMx2qoaKJLl/qGPjauAfpMf6WUV7wlemkcrOZw7LVmrgAhPVgMkRlRGytWYjTN8gXqHHKkssES/C8zWmyzPCamfwSiN8EiEkorY23VT1z3Xa4qfquL1KkaifbZfapTR1mxadOZiTzLwuGcfn20p7qUHiWKlOcEt4BWKynugp6tiKGlSObUoX3JtMXbkJDXhYEVMDZxSpzUQ3J1tHbkPLZMTwlxpCtNinDu0vcPNjt4SE1XHcf3L5+zMV0jKuTXREpYOX4MsSNfJ6+myt/XKQSfR3YkN63MDr0pawGnkldHrMGYxCdc6KZ4Xcr7VGv1F2M9ColWoKOfR+hF8TZz+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC",ej=["title","src"],tj={key:1},nj=J({name:"LogoWidget",inheritAttrs:!1,__name:"index",props:{icon:{default:Q$},text:{default:"VTJ"},link:{}},setup(n){const e=n,t=()=>{e.link&&(location.href=e.link)};return(r,i)=>(k(),te("div",{class:"v-logo-widget",onClick:t},[e.icon?(k(),te("img",{key:0,title:e.text,class:"v-logo-widget__icon",src:e.icon},null,8,ej)):(k(),te("span",tj,ie(e.text),1))]))}}),rj={class:"v-empty-widget"},ij=J({name:"EmptyWidget",__name:"index",setup(n){return(e,t)=>(k(),te("div",rj,"EmptyWidget"))}});function rf(){const n=Ge(),e=L(()=>n.project.value?.dependencies??[]);return{engine:n,dependencies:e}}function an(n,e){const t=L(()=>uf.getWidgets(m(n),m(e)).filter(i=>!i.invisible)),r=q();return{widgets:t,widgetsRef:r}}function of(){const n=Ge();return{span:L(()=>{const e=n.skeleton?.skeletonRef.leftWidth||400,t=Math.min(Math.floor((e-50)/120),24);return Math.floor(24/t)}),engine:n}}function oj(){const n=Ge(),e=L(()=>n.project.value?.blocks??[]);return{engine:n,blocks:e}}const sj=(n=[])=>n.map(e=>e.name);function aj(){const n=Ge(),{components:e,groups:t,componentMap:r}=n.assets,i=gn({}),o=L(()=>{const h={};return t.value&&t.value.forEach(d=>{h[d.name]=d}),h}),s=L(()=>t.value?t.value.map(h=>({label:`${h.label} (${h.count})`,name:h.name,disabled:!h.children?.length})):[]),a=q(s.value[0]?.name),u=q(""),l=L(()=>o.value[a.value]);ls(()=>{const h=s.value.reduce((d,p)=>(d[p.name]=sj(o.value[p.name].children),d),{});Object.assign(i,h)});const c=L(()=>{const h=u.value.toLowerCase();return!h||!e?[]:e.filter(d=>d.name.toLowerCase().includes(h)||d.label?.toLowerCase().includes(h))});return{components:e,groups:t,componentMap:r,groupMap:o,tabs:s,model:i,currentTab:a,currentGroup:l,searchKey:u,searchResult:c}}function He(){const n=Ge(),e=L(()=>n.current.value),t=L(()=>n.context.value),r=L(()=>n.isEmptyCurrent.value);return{engine:n,current:e,isEmpty:r,context:t}}function lj(n,e){const t=Ge();t.simulator.init(n,e);const r=L(()=>t.simulator.designer.value),i=L(()=>mo("hover",r.value?.hover.value)),o=L(()=>mo("dropping",r.value?.dropping.value)),s=L(()=>mo("selected",r.value?.selected.value));return{designer:r,dropping:o,hover:i,selected:s}}function uj(n,e=!0){const{top:t,height:r,width:i,left:o}=n||{};if(r>100&&i>200)return"inner";let s,a;return a=t>30?"top":"bottom",s=e||o<300&&i<300?"left":"right",[s,a].join("-")}function cj(n){const{rect:e,type:t}=n,{left:r,width:i,top:o,height:s}=e,a={left:r,width:i,top:o,height:s};switch(t){case"left":a.left=0,a.width=0;break;case"right":a.left=a.left+a.width-4,a.width=0;break;case"bottom":a.top=a.top+a.height-4,a.height=0;break;case"top":a.height=0;break}return a}function mo(n,e){if(!e)return null;const{left:t,top:r,width:i,height:o}=n==="dropping"?cj(e):e.rect,s={left:`${t}px`,top:`${r}px`,width:`${i}px`,height:`${o}px`,visibility:i||o?"visible":"hidden"};return{...e,style:s,position:uj(e.rect,n!=="selected")}}function Mt(){const n=Ge(),e=L(()=>n.simulator.designer.value),t=L(()=>e.value?.selected.value),r=L(()=>Ae(t.value?.model));return{engine:n,designer:e,selected:t,isSelectBlock:r}}function hj(n,e){const t=q(""),{selected:r,isSelectBlock:i}=Mt(),o=L(()=>r.value?.model.id),s=L(()=>{const u=yo(n),l=yo(e),c=[];if(!u)return c;const h=l?.__contextRefs[o.value||""],d=l===h||i.value?[]:Object.keys(h?.context||{}).filter(_=>!["context","ref"].includes(_)).map(_=>`this.context.${_}`);d.length&&c.push({title:"上下文",items:d});const p=u.inject.map(_=>`this.${_.name}`);p.length&&c.push({title:"注入",items:p});const f=u.props.map(_=>typeof _=="string"?`this.$props.${_}`:`this.$props.${_.name}`);f.length&&c.push({title:"属性",items:f});const v=Object.keys(u.state).map(_=>`this.state.${_}`);v.length&&c.push({title:"状态",items:v});const y=Object.keys(u.computed).map(_=>`this.${_}.value`);y.length&&c.push({title:"计算属性",items:y});const $=Object.keys(u.methods).map(_=>`this.${_}`);$.length&&c.push({title:"方法",items:$});const g=Object.keys(u.dataSources).map(_=>`this.${_}`);g.length&&c.push({title:"数据源",items:g});const w=Object.keys(l?.$refs||{}).map(_=>`this.$refs.${_}`);return w.length&&c.push({title:"refs",items:w}),c}),a=L(()=>{if(!t.value)return s.value;const u=t.value.toLowerCase(),l=[];return s.value.forEach(c=>{const h=c.items.filter(d=>d.toLowerCase().includes(u));h.length&&l.push({title:c.title,items:h})}),l});return{keyword:t,options:s,searchResult:a}}const Kr=[{name:"StringSetter",label:"文本"},{name:"ExpressionSetter",label:"表达式"}];function dj(n){const e=Ge(),t=L(()=>{const u=n.value?.model||null;return Ae(u)?null:u}),r=q();_e(t,async u=>{u?.from?r.value=await e.assets.getBlockMaterial(u.from)||void 0:r.value=void 0},{immediate:!0});const i=L(()=>t.value?[{name:"key",setters:Kr,value:t.value.getPropValue("key")},{name:"ref",setters:Kr,value:t.value.getPropValue("ref")},{name:"class",label:"class",setters:Kr,value:t.value.getPropValue("class")},{name:"children",label:"文本",title:"如设置组件文本,将清空子组件",setters:Kr,value:Array.isArray(t.value.children)?"":t.value.children}]:[]),o=L(()=>{if(!t.value)return[];const u=r.value||e.assets.componentMap.get(t.value.name);return u?(u.props||[]).map(l=>({...l,value:t.value?.getPropValue(l.name)??l.defaultValue})):[]}),s=u=>i.value.some(l=>l.name===u)||o.value.some(l=>l.name===u)||u==="style",a=L(()=>t.value?Object.keys(t.value.props).filter(u=>!s(u)).map(u=>({name:u,setters:"InputSetter",value:t.value?.getPropValue(u)})):[]);return{commonProps:i,componentProps:o,customProps:a,node:t,change:(u,l)=>{t.value&&(u==="children"?t.value.setChildren(l):t.value.setProp(u,l))},addCustom:u=>{u&&t.value?.setProp(u,"")},removeCustom:u=>{t.value?.removeProp(u)},isExist:s}}function Me(n,e="提示"){return yn.warning({title:e,message:n})}async function tr(n){return await vs.confirm(n,"提示",{type:"warning"}).catch(()=>!1)}function ot(n,e="success"){return ms({message:n,type:e})}function Pe(n,e,t=!1){let r=!0;try{n.type==="JSExpression"?tn(n,e,t,!0):os(n,e,t,!0)}catch(i){r=!1,yn.error({title:"代码错误",message:i.message})}return r}function sf(){const n=Ge(),e=L(()=>n.simulator.designer.value),t=L(()=>n.history.value),r=L(()=>t.value?.items.length||0),i=()=>{e.value?.cleanHelper(),t.value?.forward()},o=()=>{t.value?.backward(),e.value?.cleanHelper()},s=l=>{e.value?.cleanHelper(),t.value?.load(l),ot("已载入历史记录","success")},a=L(()=>r.value<=1?!0:(t.value?.index||-1)<=0),u=L(()=>r.value<=1?!0:(t.value?.index||-1)>=r.value-1);return{engine:n,history:t,total:r,forward:i,backward:o,load:s,forwardDisabled:a,backwardDisabled:u}}function Li(){const n=Ge(),e=L(()=>n.project.value);return{engine:n,project:e}}function pj(n){const e=Ge(),t=L(()=>{const a=n.value?.model||null;return Ae(a)?null:a}),r=q();_e(t,async a=>{a?.from?r.value=await e.assets.getBlockMaterial(a.from)||void 0:r.value=void 0});const i=L(()=>{if(Ae(t.value))return[];const a=t.value?.events||{};return K$.map(u=>({name:u,event:a[u]}))}),o=L(()=>{if(Ae(t.value))return[];const a=t.value?.events||{};return Z$.map(u=>({name:u,event:a[u]}))}),s=L(()=>{if(!t.value||Ae(t.value))return[];const a=t.value.events||{};return(r.value?.events||e.assets.componentMap.get(t.value.name)?.events||[]).map(u=>{const l=typeof u=="string"?u:u.name;return{name:l,event:a[l]}})});return{mouseEventList:i,keyboardEventList:o,componentEventList:s}}const fj=(n,e)=>new On({name:n,value:void 0,iterator:e}),mj=(n="modelValue")=>new On({name:"vModel",value:void 0,arg:n});function vj(n){if(!n)return[];const{props:e=[],events:t=[]}=n;if(e.length&&t.length){const r=t.filter(i=>(typeof i=="string"?i:i.name).startsWith("update:")).map(i=>i=typeof i=="string"?i:i.name);return r.length?e.filter(i=>r.some(o=>o.includes(i.name))):[]}return[]}function gj(n){const e=Ge(),t=L(()=>{const h=n.value?.model||null;return Ae(h)?null:h}),r=h=>L(()=>t.value&&(t.value.directives||[]).find(d=>d.name===h)||fj(h)),i=()=>L(()=>{if(!t.value)return[];const h=e.assets.componentMap.get(t.value.name||"");return(h?vj(h):[]).map(d=>(t.value?.directives||[]).find(p=>p.name==="vModel"&&p.arg==d.name)||mj(d.name))}),o=r("vIf"),s=r("vShow"),a=r("vBind"),u=r("vFor"),l=i(),c={vIf:o,vShow:s,vBind:a,vFor:u};return{engine:e,node:t,vIf:o,vShow:s,vBind:a,vFor:u,vModels:l,onValueChange:(h,d)=>{const p=c[h];t.value&&(d?(p.value.value=d,t.value.setDirective(p.value)):(p.value.value=void 0,t.value.removeDirective(p.value)))},onForChange:(h,d)=>{if(t.value){if(h==="value"){d?(u.value.value=d,t.value.setDirective(u.value)):t.value.removeDirective(u.value);return}(h==="item"||h==="index")&&(u.value.iterator={...u.value.iterator,[h]:d||void 0},t.value.setDirective(u.value))}},onModelChange:(h,d)=>{if(!t.value)return;const p=parseInt(h),f=l.value[p];f&&(d?(f.value=d,t.value.setDirective(f)):(f.value=void 0,t.value.removeDirective(f)))}}}function yj(){const{engine:n,project:e}=Li(),t=L(()=>e.value?.apis||[]);return{engine:n,project:e,apis:t}}const bj={class:"v-switcher-widget"},wj={key:1},_j=J({name:"SwitcherWidget",inheritAttrs:!1,__name:"index",emits:["click"],setup(n,{emit:e}){const t=e,{engine:r}=He(),i=L(()=>r.project.value?.name),o=L(()=>r.project.value?.currentFile?.title),s=()=>{t("click",r.project.value)};return(a,u)=>(k(),te("div",bj,[T(m(ze),{size:"small",round:"",onClick:s},{default:A(()=>[T(m(bh),{class:"v-switcher-widget__back"}),fe("span",null,ie(i.value),1),o.value?(k(),F(m(vr),{key:0,direction:"vertical"})):Z("",!0),o.value?(k(),te("span",wj,ie(o.value),1)):Z("",!0)]),_:1})]))}}),xj={class:"v-toolbar-widget"},Sj=J({name:"ToolbarWidget",inheritAttrs:!1,__name:"index",props:{preview:{type:Boolean}},setup(n,{expose:e}){const t=n,{forward:r,backward:i,forwardDisabled:o,backwardDisabled:s}=sf(),a=q("pc");return e({mode:a}),(u,l)=>(k(),te("div",xj,[T(m(Ju),{size:"small",modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c)},{default:A(()=>[T(m(Gr),{label:"pc"},{default:A(()=>[T(m(Eh))]),_:1}),T(m(Gr),{label:"mobile"},{default:A(()=>[T(m(kh))]),_:1}),T(m(Gr),{label:"pad"},{default:A(()=>[T(m(Th))]),_:1})]),_:1},8,["modelValue"]),Z("",!0),T(m(Vf),null,{default:A(()=>[T(m(ze),{type:"default",size:"small",onClick:m(i),disabled:m(s)||!!t.preview},{default:A(()=>[T(m(Oh))]),_:1},8,["onClick","disabled"]),T(m(ze),{type:"default",size:"small",onClick:m(r),disabled:m(o)||!!t.preview},{default:A(()=>[T(m(Vh))]),_:1},8,["onClick","disabled"])]),_:1})]))}}),$j={class:"v-actions-widget"},jj=fe("span",null,"发布",-1),Ej=J({name:"ActionsWidget",inheritAttrs:!1,__name:"index",props:{coder:{type:Boolean,default:!0}},setup(n){const{engine:e,designer:t}=Mt(),r=q(!1),i=()=>{e.current.value?(r.value?e.skeleton?.getWidget("Previewer")?.widgetRef.refresh():(t.value?.setSelected(null),e.simulator.refresh()),ot("刷新完成","success")):ot("请先打开文件","warning")},o=async()=>{e.current.value?(r.value&&(e.skeleton?.closePreview(),r.value=!1,await dp(1e3)),t.value?.setSelected(e.current.value)):ot("请先打开文件","warning")},s=()=>{if(e.project.value)if(e.current.value){if(r.value){e.skeleton?.closePreview(),r.value=!1;return}e.skeleton?.openPreview(""),r.value=!0}else ot("请先打开文件","warning")},a=()=>{const l=e.project.value;l&&(l.currentFile?l.publish(l.currentFile):ot("请先打开文件","warning"))},u=l=>{const c=e.project.value;c&&(l==="current"?a():c.publish())};return(l,c)=>(k(),te("div",$j,[T(m(Hu),{value:0,max:99,hidden:!0},{default:A(()=>[T(m(tt),{mode:"icon",icon:m(Bh),background:"hover"},null,8,["icon"])]),_:1}),T(m(vr),{direction:"vertical"}),T(m(ze),{onClick:s,type:r.value?"warning":"default",size:"small",title:"预览"},{default:A(()=>[T(m($h))]),_:1},8,["type"]),T(m(ze),{onClick:i,type:"default",size:"small",title:"刷新"},{default:A(()=>[T(m(Dh))]),_:1}),T(m(ze),{type:"default",size:"small",title:"页面设置",onClick:o},{default:A(()=>[T(m(Ch))]),_:1}),T(m(vr),{direction:"vertical"}),T(m(ds),{"split-button":"",type:"primary",size:"small",onClick:a,onCommand:u},{dropdown:A(()=>[T(m(hs),null,{default:A(()=>[T(m(pi),{command:"current"},{default:A(()=>[pe("发布页面")]),_:1}),T(m(pi),{command:"project"},{default:A(()=>[pe("整站发布")]),_:1})]),_:1})]),default:A(()=>[jj]),_:1})]))}}),kj={class:"v-icon-setter"},Tj={class:"v-icon-setter__content"},Vj={class:"v-icon-setter__list"},af=J({name:"IconSetter",__name:"icon",props:{modelValue:{default:""},size:{default:"small"}},emits:["change","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=q(!1),o=q(t.modelValue),s=q(""),a=L(()=>Ro[t.modelValue]||t.modelValue),u=L(()=>{const p=Object.entries(Ro);return s.value?p.filter(f=>f[0].toLowerCase().includes(s.value)):p}),l=p=>{o.value=p},c=()=>{r("change",o.value),r("update:modelValue",o.value),i.value=!1},h=()=>{o.value="",r("change",""),r("update:modelValue",""),i.value=!1},d=()=>{i.value=!0};return(p,f)=>(k(),te("div",kj,[T(m(mt),{size:t.size,readonly:"",placeholder:"请选择图标","model-value":t.modelValue,"suffix-icon":m(Jf),onFocus:d},{prepend:A(()=>[T(m(en),{icon:a.value},null,8,["icon"])]),_:1},8,["size","model-value","suffix-icon"]),i.value?(k(),F(m(er),{key:0,title:"图标选择器",width:"1000px",height:"600px",cancel:"",submit:"",clear:"",modelValue:i.value,"onUpdate:modelValue":f[1]||(f[1]=v=>i.value=v),onSubmit:c},{extra:A(()=>[T(m(ze),{size:"default",type:"warning",onClick:h},{default:A(()=>[pe(" 清除绑定 ")]),_:1})]),default:A(()=>[fe("div",Tj,[T(m(mt),{size:t.size,"prefix-icon":m(Zu),clearable:"",modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=v=>s.value=v),placeholder:"请输入查询关键字"},null,8,["size","prefix-icon","modelValue"]),fe("div",Vj,[(k(!0),te(re,null,ae(u.value,v=>(k(),F(m(en),{icon:v[1],onClick:y=>l(v[0]),class:ke({"is-active":o.value===v[0]})},null,8,["icon","onClick","class"]))),256)),u.value.length===0?(k(),F(m(Re),{key:0})):Z("",!0)])])]),_:1},8,["modelValue"])):Z("",!0)]))}}),Dj=J({name:"PageForm",__name:"form",props:{item:{},parentId:{}},setup(n){const e=n,{project:t}=Li(),r=L(()=>e.item?"编辑页面":"新增页面"),i=()=>({dir:!1,name:"",title:"",icon:"",mask:!1,hidden:!1,raw:!1}),o=q(e.item||i()),s=[{label:"页面",value:!1},{label:"目录",value:!0}],a=l=>{o.value&&(o.value.name=Qd(l))},u=async l=>t.value?.existPageName(l.name,[l.id])?(Me("页面名称已存在,请更换"),!1):(e.item?t.value?.updatePage(l):t.value?.createPage(l,e.parentId),!0);return(l,c)=>(k(),F(m(kt),{title:r.value,width:"800px",height:"500px","form-props":{tooltipMessage:!1},model:o.value,"submit-method":u},{default:A(()=>[T(m(ne),{name:"dir",label:"类型",editor:"radio",options:s,props:{button:!0,size:"small"},disabled:!!e.item,required:""},null,8,["disabled"]),T(m(ne),{name:"name",label:"名称",required:"",onChange:a,rules:{pattern:m(Rt),message:"名称格式不正确"}},null,8,["rules"]),T(m(ne),{name:"title",label:"标题",required:""}),T(m(ne),{name:"icon",label:"菜单图标",editor:"none"},{editor:A(()=>[T(af,{modelValue:o.value.icon,"onUpdate:modelValue":c[0]||(c[0]=h=>o.value.icon=h),size:"default"},null,8,["modelValue"])]),_:1}),T(m(ne),{name:"hidden",label:"隐藏菜单",editor:"switch"}),T(m(ne),{visible:{dir:!1},name:"mask",label:"包含母版",editor:"switch"}),T(m(ne),{visible:{dir:!1},name:"raw",label:"源码模式",editor:"switch"})]),_:1},8,["title","model"]))}}),Mu=J({name:"VIcon",__name:"Icon",props:{icon:{},label:{},active:{type:Boolean,default:!1},open:{type:Boolean,default:!1}},emits:["click"],setup(n,{emit:e}){const t=n,r=e,i=L(()=>({"is-active":t.active,"is-open":t.open})),o=()=>{r("click")};return(s,a)=>(k(),F(m(_i),{effect:"dark",placement:"right",content:s.label,"show-after":600},{default:A(()=>[fe("div",{class:ke(["v-apps-region__icon",i.value]),onClick:o},[(k(),F(rt(s.icon)))],2)]),_:1},8,["content"]))}}),ge=J({name:"VPanel",__name:"panel",props:{title:{},subtitle:{},plus:{type:Boolean},back:{type:Boolean},remove:{type:Boolean},save:{type:Boolean},header:{type:Boolean,default:!0}},emits:["plus","back","remove","save"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("plus")},o=()=>{r("back")},s=()=>{r("remove")},a=()=>{r("save")},u=L(()=>t.header?{content:t.title,subtitle:t.subtitle,icon:t.back?qf:void 0,onClickBack:t.back?o:void 0}:null);return(l,c)=>(k(),F(m(Pi),{class:"v-panel",border:!1,header:u.value,fit:""},Fn({actions:A(()=>[t.plus?(k(),F(m(tt),{key:0,size:l.$attrs.size,mode:"icon",icon:m(Rs),background:"hover",title:"新增",onClick:i},null,8,["size","icon"])):Z("",!0),t.remove?(k(),F(m(tt),{key:1,size:l.$attrs.size,mode:"icon",icon:m(Wf),background:"hover",title:"清除",onClick:s},null,8,["size","icon"])):Z("",!0),t.save?(k(),F(m(tt),{key:2,size:l.$attrs.size,mode:"icon",icon:m(jh),background:"hover",title:"保存",onClick:a},null,8,["size","icon"])):Z("",!0),le(l.$slots,"actions")]),default:A(()=>[le(l.$slots,"default")]),_:2},[l.$slots.footer?{name:"footer",fn:A(()=>[le(l.$slots,"footer")]),key:"0"}:void 0]),1032,["header"]))}}),Oj={class:"v-tabs__header"},Aj={key:0,class:"v-tabs__actions"},Hi=J({__name:"tabs",props:{items:{default:()=>[]},menus:{},modelValue:{},stretch:{type:Boolean},checkable:{type:Boolean}},emits:["update:modelValue","command","remove"],setup(n,{emit:e}){const t=n,r=e,i=q((t.modelValue||t.items[0]?.name)??"");_e(i,()=>{r("update:modelValue",i.value)}),_e(()=>t.modelValue,a=>{i.value=a});const o=a=>{r("command",a)},s=a=>{r("remove",a)};return(a,u)=>(k(),F(m(Pi),{class:"v-tabs",border:!1,fit:"",radius:!1},{header:A(()=>[fe("div",Oj,[T(m(qp),{class:"v-tabs__tabs",items:t.items,type:"card",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=l=>i.value=l),onTabRemove:s,stretch:t.stretch},null,8,["items","modelValue","stretch"]),t.menus&&t.menus.length?(k(),te("div",Aj,[t.menus&&t.menus.length?(k(),F(m(tt),{key:0,mode:"icon",size:"small",icon:m(gs),background:"hover",dropdown:{size:"small",placement:"bottom-end"},menus:t.menus,onCommand:o},{item:A(({item:l})=>[fe("span",null,[t.checkable?(k(),F(m(Os),{key:0,class:ke({"v-tabs__checked":!0,"is-checked":l.checked})},null,8,["class"])):Z("",!0),pe(" "+ie(l.label),1)])]),_:1},8,["icon","menus"])):Z("",!0)])):Z("",!0)])]),default:A(()=>[le(a.$slots,"default")]),_:3}))}}),Bj={key:2,class:"v-item__index"},Cj={class:"v-item__content"},Ij={key:3,class:"v-item__subtitle"},Fe=J({name:"VItem",__name:"item",props:{icon:{},index:{},tag:{},tagType:{},title:{},subtitle:{},actions:{default:()=>[]},background:{type:Boolean},border:{type:Boolean},switch:{type:Boolean},modelValue:{},active:{type:Boolean},hover:{type:Boolean},small:{type:Boolean}},emits:["click","action","update:modelValue","switch"],setup(n,{emit:e}){const t={add:{label:"创建",icon:Rs},copy:{label:"复制",icon:As},edit:{label:"编辑",icon:Is},remove:{label:"删除",icon:Tr},lock:{label:"锁定",icon:Bs},unlock:{label:"解锁",icon:Sh},invisible:{label:"隐藏",icon:Ms},visible:{label:"显示",icon:Ph},home:{label:"主页",icon:wh}},r=n,i=e,o=q(!!r.modelValue),s=L(()=>r.actions.map(c=>{const h=t[c];return{name:c,...h}})),a=L(()=>({"is-background":r.background,"is-border":r.border,"is-active":r.active,"is-hover":r.hover,"is-small":r.small})),u=()=>{i("click",r.modelValue)},l=async c=>{c==="remove"?await vs.confirm("确定删除吗?","提示",{type:"warning"}).catch(()=>!1)&&i("action",{name:c,modelValue:r.modelValue}):i("action",{name:c,modelValue:r.modelValue})};return _e(o,c=>{i("update:modelValue",c),i("switch",c)}),_e(()=>r.modelValue,c=>{o.value=!!c}),(c,h)=>(k(),F(m(he),{class:ke(["v-item",a.value]),justify:"space-between",align:"center",onClick:u},{default:A(()=>[T(m(he),{class:"v-item__title",align:"center"},{default:A(()=>[le(c.$slots,"default",{},()=>[c.icon?(k(),F(m(en),{key:0,icon:c.icon},null,8,["icon"])):Z("",!0),r.tag?(k(),F(m(Ff),{key:1,class:"v-item__tag",size:"small",type:r.tagType},{default:A(()=>[pe(ie(r.tag),1)]),_:1},8,["type"])):Z("",!0),c.index!==void 0?(k(),te("span",Bj," # "+ie(c.index),1)):Z("",!0),fe("span",Cj,ie(c.title),1),c.subtitle?(k(),te("span",Ij,ie(c.subtitle),1)):Z("",!0)])]),_:3}),T(m(he),{class:"v-item__actions",onClick:h[1]||(h[1]=Cn(()=>{},["stop"]))},{default:A(()=>[(k(!0),te(re,null,ae(s.value,d=>(k(),F(m(tt),{name:d.name,title:d.label,mode:"icon",size:"small",background:"none",type:"info",icon:d.icon,onClick:p=>l(d.name)},null,8,["name","title","icon","onClick"]))),256)),r.switch?(k(),F(m(ps),{key:0,modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=d=>o.value=d),class:"v-item__switch",size:"small"},null,8,["modelValue"])):Z("",!0),le(c.$slots,"status")]),_:3})]),_:3},8,["class"]))}}),Rj=["draggable"],Mj={class:"v-box__name"},Nj={class:"v-box__label"},ss=J({name:"VBox",__name:"box",props:{name:{},title:{},editable:{type:Boolean},active:{type:Boolean},draggable:{type:Boolean}},emits:["edit","remove","dragstart","dragend"],setup(n,{emit:e}){const t=n,r=e,i=()=>{r("edit")},o=async()=>{await vs.confirm("确认删除?","提示",{type:"warning"}).catch(()=>!1)&&r("remove")},s=L(()=>({"is-active":t.active,"is-draggable":t.draggable})),a=()=>{r("dragstart",t)},u=()=>{r("dragend",t)};return(l,c)=>(k(),te("div",{class:ke(["v-box",s.value]),draggable:l.draggable,onDragstart:a,onDragend:u},[T(m(he),{direction:"column",justify:"center",align:"center"},{default:A(()=>[fe("span",Mj,ie(t.name),1),fe("span",Nj,ie(t.title),1)]),_:1}),t.editable?(k(),F(m(he),{key:0,class:"v-box__footer",justify:"flex-end",align:"center"},{default:A(()=>[T(m(en),{icon:m(Is),onClick:i},null,8,["icon"]),T(m(en),{icon:m(Tr),onClick:o},null,8,["icon"])]),_:1})):Z("",!0)],42,Rj))}}),Fj={class:"v-context-viewer"},zj=J({__name:"viewer",props:{context:{}},emits:["pick","copy"],setup(n,{emit:e}){const t=n,r=e,i=["$provider","$apis","$components","context"],o=c=>{const h=c.value,d=ao(h);return d==="Object"||d==="Module"?Object.keys(h||{}).length===0:d==="Array"?h.length===0:!0},s=(c,h="this")=>typeof c=="object"?Array.isArray(c)?c.map((d,p)=>{const f=`[${p}]`;return{label:f,value:d,type:ao(d),path:`${h}${f}`}}):Object.entries(c).map(([d,p])=>({label:d,value:p,type:ao(p),path:`${h}.${d}`})).filter(d=>!d.label.startsWith("__")&&!i.includes(d.label)):[],a=(c,h)=>{if(c.level===0)h(s(t.context));else{const d=An(c.data.value);h(s(d,c.data.path))}},u=c=>{r("copy",c.path)},l=c=>{r("pick",c.path)};return(c,h)=>(k(),te("div",Fj,[c.context?(k(),F(m(fs),{key:0,lazy:"",load:a,"expand-on-click-node":!1,props:{isLeaf:o}},{default:A(({data:d})=>[T(Fe,{title:d.label,clickable:"",onClick:p=>l(d),background:"",actions:["copy"],onAction:p=>u(d),grow:"",small:""},null,8,["title","onClick","onAction"])]),_:1},8,["props"])):Z("",!0)]))}}),aa=J({__name:"binder",props:{title:{},context:{},block:{},model:{},rules:{},modelValue:{type:Boolean},submitMethod:{type:Function},unbindEnabled:{type:Boolean}},emits:["unbind","submit","cancel","pick","update:modelValue","close"],setup(n,{emit:e}){const t=n,r=e,{searchResult:i,keyword:o}=hj(t.block,t.context),{copy:s}=Gf({}),a=[{name:"normal",label:"常用"},{name:"viewer",label:"高级"}],u=q("normal"),l=q(),c=async $=>{r("submit",$),t.submitMethod?await t.submitMethod($)&&h():h()},h=()=>{r("update:modelValue",!1),r("close")},d=()=>{r("unbind")},p=()=>{h()},f=async()=>{l.value?.submit()},v=$=>{r("pick",$)},y=$=>{s($),ms.success({message:"已经复制到粘贴板"})};return($,g)=>(k(),F(m(er),{"model-value":t.modelValue,class:"v-binder",title:$.title,width:"1000px",height:"600px","body-padding":!1,maximizable:!1,minimizable:!1,onClose:h},{default:A(()=>[T(m(he),{fit:"",direction:"row",overflow:"hidden"},{default:A(()=>[T(m(he),{width:"30%",height:"100%"},{default:A(()=>[T(Hi,{class:"v-binder__tabs",items:a,modelValue:u.value,"onUpdate:modelValue":g[1]||(g[1]=w=>u.value=w)},{default:A(()=>[T(m(he),{class:"v-binder__tab-content",fit:"",padding:"",flex:!1},{default:A(()=>[Bn(fe("div",null,[T(m(mt),{modelValue:m(o),"onUpdate:modelValue":g[0]||(g[0]=w=>go(o)?o.value=w:null),size:"small",clearable:"","prefix-icon":m(Zu),placeholder:"筛选可用项"},null,8,["modelValue","prefix-icon"]),(k(!0),te(re,null,ae(m(i),w=>(k(),te("div",null,[T(m(vr),{"border-style":"dotted"},{default:A(()=>[pe(ie(w.title),1)]),_:2},1024),(k(!0),te(re,null,ae(w.items,_=>(k(),F(Fe,{title:_,background:"",actions:["copy"],small:"",onClick:x=>v(_),onAction:x=>y(_)},null,8,["title","onClick","onAction"]))),256))]))),256)),m(i).length?Z("",!0):(k(),F(m(Re),{key:0}))],512),[[di,u.value==="normal"]]),Bn(T(zj,{context:t.context,onCopy:y,onPick:v},null,8,["context"]),[[di,u.value==="viewer"]])]),_:1})]),_:1},8,["modelValue"])]),_:1}),T(m(Pi),{grow:"",header:null,border:!1},{footer:A(()=>[T(m(he),{justify:"space-between"},{default:A(()=>[T(m(he),null,{default:A(()=>[$.unbindEnabled?(k(),F(m(ze),{key:0,type:"warning",size:"default",onClick:d},{default:A(()=>[pe(" 移除绑定 ")]),_:1})):Z("",!0)]),_:1}),T(m(he),null,{default:A(()=>[T(m(ze),{type:"default",size:"default",onClick:p},{default:A(()=>[pe(" 取消 ")]),_:1}),T(m(ze),{type:"primary",size:"default",onClick:f},{default:A(()=>[pe(" 确定 ")]),_:1})]),_:1})]),_:1})]),default:A(()=>[T(m(Up),{ref_key:"formRef",ref:l,class:"v-binder__form",footer:!1,"label-position":"top","tooltip-message":!1,model:t.model,rules:t.rules,"submit-method":c},{default:A(()=>[le($.$slots,"default")]),_:3},8,["model","rules"])]),_:3})]),_:3})]),_:3},8,["model-value","title"]))}}),Pj={class:"v-slots-picker__sn"},Lj=J({__name:"slots",props:{slots:{default:()=>[]}},emits:["submit","update:modelValue"],setup(n,{emit:e}){const t=n,r=e,i=q(),o=L(()=>`${50*Math.ceil(t.slots.length/4)+180}px`),s=u=>{i.value=u},a=()=>{i.value?(r("submit",i.value),r("update:modelValue",!1)):Me("请选择插槽")};return(u,l)=>(k(),F(m(er),je({class:"v-slots-picker",title:"选择插槽",width:"600px",height:o.value,submit:"",cancel:"",onSubmit:a},u.$attrs),{default:A(()=>[T(m(Lf),{title:"该组件支持多个插槽,请选择放置到其中一个",type:"warning",closable:!1}),T(m(he),{class:"v-slots-picker__content",justify:"space-around",alignContent:"flex-start",gap:"",wrap:"wrap"},{default:A(()=>[(k(!0),te(re,null,ae(t.slots,(c,h)=>(k(),F(m(he),{class:ke(["v-slots-picker__item",{"is-active":c.name===i.value?.name}]),grow:"",flex:!1,onClick:d=>s(c)},{default:A(()=>[fe("span",Pj,"#"+ie(h+1),1),pe(" "+ie(c.name),1)]),_:2},1032,["class","onClick"]))),256))]),_:1})]),_:1},16,["height"]))}}),lf=J({name:"Viewport",__name:"viewport",props:{mode:{default:"pc"},width:{},height:{}},setup(n){const e=n,t=L(()=>[`is-${e.mode}`]),r=L(()=>{if(e.mode==="pc")return 1;const o=e.mode==="mobile"?Iu:Ru,{width:s,height:a}=o,u=s>0?(e.width||0)/s:1,l=a>0?(e.height||0)/a:1;return Math.min(u,l)}),i=L(()=>{if(e.mode==="pc")return{};const o=e.mode==="mobile"?Iu:Ru,{width:s,height:a}=o;return{width:`${s}px`,height:`${a}px`,left:"50%",top:"50%",transform:`translate(-50%, -50%) scale(${r.value})`}});return(o,s)=>(k(),te("div",{class:ke(["v-viewport",t.value]),style:Gt(i.value)},[le(o.$slots,"default")],6))}}),Hj=J({name:"PagesWidget",__name:"index",setup(n){const{project:e,engine:t}=Li(),r=L(()=>e.value?.pages||[]),{current:i}=He(),o=q(!1),s=q(),a=q(),u=()=>{a.value=void 0,s.value=void 0,o.value=!0},l=async p=>{const{name:f,modelValue:v}=p,{data:y,node:$}=v;if(f==="add"&&(s.value=void 0,a.value=y.id,o.value=!0),f==="edit"&&(s.value=Ci(y),a.value=void 0,o.value=!0),f==="remove"){if(y.dir){const g=e.value?.getPage(y.id);if(g&&g.children?.length){Me("请先删除子页面");return}}e.value?.removePage(y.id)}if(f==="copy"){const g=$.parent?.data.id;e.value?.clonePage(y,g)}f==="home"&&(e.value?.setHomepage(y.id),ot("设置主页成功","success"))},c=async p=>{p.dir||t.project.value?.active(p)},h=(p,f,v)=>v==="inner"?!!f.data.dir:!0,d=()=>{e.value?.update({pages:yo(r)})};return(p,f)=>(k(),F(m(ge),{class:"v-pages-widget",title:"页面管理",plus:"",subtitle:"(共 0 条)",onPlus:u},{default:A(()=>[T(m(fs),{data:r.value,"node-key":"id","default-expand-all":"",draggable:"","allow-drop":h,onNodeDrop:d},{default:A(({data:v,node:y})=>[T(m(Fe),{class:"v-pages-widget__item",icon:m(Ro)[v.icon],title:v.title,subtitle:v.name,"model-value":{data:v,node:y},actions:v.dir?["add","edit","remove"]:["home","copy","edit","remove"],onAction:l,onClick:$=>c(v),active:m(i)?.id===v.id,tag:m(e)?.homepage===v.id?"主页":void 0,"tag-type":"success",grow:"",small:"",background:"",hover:""},null,8,["icon","title","subtitle","model-value","actions","onClick","active","tag"])]),_:1},8,["data"]),o.value?(k(),F(Dj,{key:0,modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=v=>o.value=v),item:s.value,"parent-id":a.value},null,8,["modelValue","item","parent-id"])):Z("",!0)]),_:1}))}}),Uj=J({name:"BlocksWidget",__name:"index",setup(n){const{span:e}=of(),{blocks:t,engine:r}=oj(),i=q(void 0),{current:o}=He(),s=q(!1),a=L(()=>i.value?.id?"编辑":"新增"),u=L(()=>`(共 ${t.value.length} 个)`),l=()=>({name:"",title:"",type:"block"}),c=async g=>{const w=g,_=r.project.value;if(!_)return!1;if(g.id)if(!_.existBlockName(w.name,[w.id]))_.updateBlock(w);else return Me(`名称【${w.name}】已经存在,请更换名称`),!1;else if(!_.existBlockName(w.name))_.createBlock(w);else return Me(`名称【${w.name}】已经存在,请更换名称`),!1;return!0},h=()=>{i.value=l(),s.value=!0},d=g=>{i.value=Ci(g),s.value=!0},p=g=>{r.project.value?.removeBlock(g.id)},f=g=>{i.value&&(i.value.name=Qd(g))},v=async g=>{r.project.value?.active(g)},y=async g=>{const w={type:"Schema",id:g.id},_=await r.assets.getBlockMaterial(w),x=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;x&&_&&x.setDragging(_)},$=()=>{const g=r.skeleton?.getWidget("Designer")?.widgetRef?.designer;g&&g.setDragging(null)};return(g,w)=>(k(),F(m(ge),{class:"v-blocks-widget",title:"区块管理",subtitle:u.value,plus:"",onPlus:h},{default:A(()=>[T(m(wo),{wrap:"wrap",gutter:5},{default:A(()=>[(k(!0),te(re,null,ae(m(t),_=>(k(),F(m(bo),{key:_.id,span:m(e)},{default:A(()=>[T(m(ss),{name:_.name,title:_.title,active:m(o)?.id===_.id,editable:"",onEdit:x=>d(_),onRemove:x=>p(_),onClick:x=>v(_),draggable:m(o)?.id!==_.id,onDragstart:x=>y(_),onDragend:$},null,8,["name","title","active","onEdit","onRemove","onClick","draggable","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),m(t).length?Z("",!0):(k(),F(m(Re),{key:0})),T(m(kt),{modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=_=>s.value=_),title:a.value,model:i.value,width:"600px",height:"250px","form-props":{tooltipMessage:!1},"submit-method":c},{default:A(()=>[T(m(ne),{name:"name",label:"名称",required:"",tip:"名称为英文驼峰格式",rules:{message:"名称格式错误",pattern:m(Rt)},onChange:f},null,8,["rules"]),T(m(ne),{name:"title",label:"标题",required:""})]),_:1},8,["modelValue","title","model"])]),_:1},8,["subtitle"]))}}),qj={class:"v-components-widget__search"},Wj={key:0,class:"v-components-widget__result"},Jj={class:"v-components-widget__list"},Yj=J({name:"ComponentsWidget",__name:"index",setup(n){const{span:e,engine:t}=of(),{tabs:r,currentTab:i,currentGroup:o,model:s,searchKey:a,searchResult:u}=aj(),l=h=>{const d=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;d&&d.setDragging(h)},c=()=>{const h=t.skeleton?.getWidget("Designer")?.widgetRef?.designer;h&&h.setDragging(null)};return(h,d)=>(k(),F(m(ge),{class:"v-components-widget",title:"组件库",body:{flex:!0,direction:"column"}},{default:A(()=>[fe("div",qj,[T(m(mt),{modelValue:m(a),"onUpdate:modelValue":d[0]||(d[0]=p=>go(a)?a.value=p:null),placeholder:"搜索组件",clearable:"",size:"small"},{prefix:A(()=>[T(m(Uh))]),_:1},8,["modelValue"])]),m(a)?(k(),te("div",Wj,[T(m(wo),{wrap:"wrap",gutter:5},{default:A(()=>[(k(!0),te(re,null,ae(m(u),p=>(k(),F(m(bo),{span:m(e),key:p.name},{default:A(()=>[T(m(ss),{name:p.name,title:p.label||p.name,draggable:"",onDragstart:f=>l(p),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:1}),m(u).length?Z("",!0):(k(),F(m(Re),{key:0}))])):(k(),F(m(qp),{key:1,items:m(r),modelValue:m(i),"onUpdate:modelValue":d[2]||(d[2]=p=>go(i)?i.value=p:null)},{default:A(()=>[fe("div",Jj,[m(o)?(k(),F(m(Df),{key:0,modelValue:m(s)[m(i)],"onUpdate:modelValue":d[1]||(d[1]=p=>m(s)[m(i)]=p)},{default:A(()=>[(k(!0),te(re,null,ae(m(o).children,p=>(k(),F(m(Of),{key:p.name,name:p.name,title:`${p.label} (${p.count})`},{default:A(()=>[p.components?(k(),F(m(wo),{key:0,wrap:"wrap",gutter:5},{default:A(()=>[(k(!0),te(re,null,ae(p.components,f=>(k(),F(m(bo),{span:m(e),key:f.name},{default:A(()=>[T(m(ss),{name:f.name,title:f.label||f.name,draggable:"",onDragstart:v=>l(f),onDragend:c},null,8,["name","title","onDragstart"])]),_:2},1032,["span"]))),128))]),_:2},1024)):Z("",!0)]),_:2},1032,["name","title"]))),128))]),_:1},8,["modelValue"])):Z("",!0)])]),_:1},8,["items","modelValue"]))]),_:1}))}}),Kj=J({name:"OutlineWidget",__name:"index",setup(n){const{engine:e,designer:t,selected:r}=Mt(),{current:i}=He(),o=q([]),s=x=>{if(Ae(x))return x.locked?["unlock"]:["lock"];const b=x.parent;return b&&(b.locked||b.invisible)?[]:i.value?.locked?[]:x.locked?["unlock"]:x.invisible?["visible"]:["lock","invisible","copy","remove"]},a=x=>{const b=[];return x.forEach(E=>{const O={id:E.id,label:E.name,type:E.id,model:E};Array.isArray(E.children)&&(O.children=a(E.children)),b.push(O)}),b},u=()=>{if(!i.value)return[];const{id:x,name:b,nodes:E}=i.value;return[{id:x,label:b,type:x,model:i.value,children:a(E)}]},l=()=>{o.value=u()},c=L(()=>r.value?.model.id),h=x=>{const b=x.data;if(Ae(b.model)||b.model.locked||b.model.name==="template")return!1;const E=e.assets.componentMap.get(b.model.name);return E?(t.value?.setDragging(E),!0):!1},d=async(x,b,E)=>{const O=b.data,H={prev:"top",next:"bottom",inner:"inner"}[E];let S=!1;if(Ae(O.model))S=E==="inner",t.value?.setDropping(S?O.model:null,"inner");else{const j=O.model;S=!!await t.value?.allowDrop(j,H),t.value?.setDropping(S?j:null,"inner")}return S},p=x=>{const b=x?.model;!b||b.invisible||(t.value?.setSelected(b),t.value?.setHover(null))},f=async(x,b,E)=>{const O=x.data,H=b.data;if(Ae(H.model)){t.value?.setDropping(null),t.value?.setDragging(null);return}const S=H.model,j={before:"left",after:"right"}[E]||"inner";if(!await t.value?.allowDrop(S,j)){t.value?.setDropping(null),l(),ms.warning({message:`${O.model.name}不能放置到该位置`}),t.value?.setDragging(null);return}const N=await t.value?.getDropSlot(E==="inner"?S:S.parent);if(N!==null){const V=O.model;V.slot=N,i.value?.move(V,S,j)}else l();t.value?.setDropping(null),t.value?.setDragging(null),e.simulator.refresh()},v=x=>{Ae(x.model)?t.value?.setHover(x.model):(t.value?.setHover(x.model),x.model.invisible&&t.value?.setHover(null),x.model.name==="slot"&&t.value?.setHover(null))},y=()=>{t.value?.setHover(null)},$=x=>{const b=x.data;b.dragging=!0;const E=e.assets.componentMap.get(b.model.name);E&&t.value?.setDragging(E)},g=async x=>{const b=x.data;b.dragging=!1},w=(x,b)=>{x&&((x.id===b.id||!Ae(x)&&b.isChild(x))&&t.value?.setSelected(null),t.value?.setHover(null))},_=x=>{const{name:b,modelValue:E}=x,O=r.value?.model;switch(b){case"lock":w(O,E),E.lock();break;case"unlock":w(O,E),E.unlock();break;case"invisible":w(O,E),E.setVisible(!1);break;case"visible":E.setVisible(!0);break;case"copy":const H=i.value?.cloneNode(E);H&&t.value?.setSelected(H);break;case"remove":w(O,E),i.value?.removeNode(E);break}};return _e(i,l,{immediate:!0,deep:!0}),(x,b)=>(k(),F(m(ge),{class:"v-outline-widget",title:"大纲树"},{default:A(()=>[T(m(fs),{data:o.value,"node-key":"id","default-expand-all":"",draggable:"","empty-text":"请新建或打开文件","current-node-key":c.value,"highlight-current":!0,"expand-on-click-node":!1,"allow-drop":d,"allow-drag":h,onCurrentChange:p,onNodeDrop:f,onNodeDragStart:$,onNodeDragEnd:g},{default:A(({data:E,node:O})=>[T(m(Fe),{class:ke(["v-outline-widget__item",{"is-locked":E.model.locked,"is-invisible":E.model.invisible,"is-dragging":E.dragging}]),active:!E.model.invisible&&O.isCurrent,grow:"",small:"",background:"",hover:"","model-value":E.model,icon:E.model.locked?m(Bs):E.model.invisible?m(Ms):void 0,title:E.label,subtitle:E.type,actions:s(E.model),onAction:_,onMouseenter:H=>v(E),onMouseleave:y},null,8,["class","active","model-value","icon","title","subtitle","actions","onMouseenter"])]),_:1},8,["data","current-node-key"])]),_:1}))}}),Zj=J({name:"HistoryWidget",__name:"index",setup(n){const{history:e,load:t,total:r}=sf(),i=L(()=>`(共 ${r.value} 条)`),o=a=>{a.name==="remove"&&e.value?.remove(a.modelValue.id)},s=async()=>{await tr("确定要清空历史记录吗?")&&e.value?.clear()};return(a,u)=>(k(),F(m(ge),{class:"v-history-widget",title:"历史记录",subtitle:i.value,remove:!!m(r),onRemove:s},{default:A(()=>[m(r)===0?(k(),F(m(Re),{key:0,"image-size":50})):Z("",!0),m(e)?(k(!0),te(re,{key:1},ae(m(e).items,(l,c)=>(k(),F(m(Fe),{index:c+1,title:l.label,"model-value":l,active:c==m(e).index,small:"",background:"",actions:["remove"],onAction:o,onClick:h=>m(t)(l.id)},null,8,["index","title","model-value","active","onClick"]))),256)):Z("",!0)]),_:1},8,["subtitle","remove"]))}}),Ce=vf({loader:()=>hf(()=>import("./Editor-ctkAn2cu-J9BpKj5_.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),loadingComponent:J({render(){return Ye("div","正在拼命加载...")}}),errorComponent:J({render(){return Ye("div","组件加载失败!")}})}),Gj=J({name:"ApisWidget",__name:"index",setup(n){const e=q(!1),t=q(null),r=q(!1),i=L(()=>r.value?"编辑API":"新增API"),o=L(()=>s.value?.apis||[]),{project:s}=Li(),a=()=>({method:"get",name:"",label:"",url:"",settings:{loading:!0,failMessage:!0,validSuccess:!0,originResponse:!1,injectHeaders:!1,type:"form",headers:{type:"JSExpression",value:"({})"}}}),u=()=>{e.value=!0,r.value=!1,t.value=a()},l=G$.map(y=>({label:y,value:y.toLowerCase()})),c={get:"success",post:"primary",put:"warning",delete:"danger",patch:"warning",jsonp:"info"},h=[{label:"表单",value:"form"},{label:"JSON",value:"json"},{label:"文件",value:"data"}],d=(y,$,g)=>{Pe({type:"JSExpression",value:$},window)?g():g(new Error("代码错误"))},p=y=>{y.name==="edit"&&f(y.modelValue),y.name==="remove"&&s.value?.removeApi(y.modelValue.name)},f=y=>{r.value=!0,t.value=Ci(y),e.value=!0},v=async y=>s.value?.existApiName(y.name,r.value?[y.id]:[])?(Me(`API名称 [ ${y.name} ] 已存在`),!1):(s.value?.setApi(y),!0);return(y,$)=>(k(),F(m(ge),{class:"v-apis-widget",title:"API管理",plus:"",onPlus:u},{default:A(()=>[(k(!0),te(re,null,ae(o.value,g=>(k(),F(m(Fe),{key:g.id,small:"",title:g.name,subtitle:g.label,"model-value":g,tag:g.method?.toUpperCase(),"tag-type":c[g.method||"get"],background:"",actions:["edit","remove"],onClick:w=>f(g),onAction:p},null,8,["title","subtitle","model-value","tag","tag-type","onClick"]))),128)),o.value.length===0?(k(),F(m(Re),{key:0,"image-size":50})):Z("",!0),T(m(kt),{modelValue:e.value,"onUpdate:modelValue":$[1]||($[1]=g=>e.value=g),model:t.value,title:i.value,width:"1000px",height:"600px","form-props":{labelPosition:"top",tooltipMessage:!1,size:"default"},"submit-method":v},{default:A(()=>[T(m(he),{gap:"",fit:""},{default:A(()=>[T(m(he),{direction:"column",grow:"",width:"50%",shrink:""},{default:A(()=>[T(m(ne),{name:"method",label:"请求类型",required:"",editor:"radio",options:m(l),props:{button:!0}},null,8,["options"]),T(m(ne),{name:"name",label:"接口名称",required:"",rules:{pattern:m(Rt),message:"名称格式不正确"}},null,8,["rules"]),T(m(ne),{name:"label",label:"备注说明",required:""}),T(m(ne),{name:"url",label:"接口URL",required:""})]),_:1}),T(m(he),{direction:"column",grow:"",width:"50%",shrink:""},{default:A(()=>[t.value.method!=="jsonp"?(k(),F(m(ge),{key:0,title:"请求配置",subtitle:t.value.method,border:""},{default:A(()=>[T(m(he),{justify:"space-around"},{default:A(()=>[T(m(ne),{name:"settings.loading",size:"small",label:"加载提示",editor:"switch"}),T(m(ne),{size:"small",name:"settings.failMessage",label:"失败提示",editor:"switch"}),T(m(ne),{size:"small",name:"settings.validSuccess",label:"校验成功",editor:"switch"}),T(m(ne),{size:"small",name:"settings.originResponse",label:"原始响应",editor:"switch"}),T(m(ne),{size:"small",name:"settings.injectHeaders",label:"注入请求头",editor:"switch"})]),_:1}),T(m(ne),{size:"small",name:"settings.type",label:"发送数据类型",editor:"radio",options:h,props:{button:!0}}),T(m(ne),{size:"small",name:"settings.headers.value",label:"请求头配置",tip:"支持 JSExpression 或 JSFunction",rules:{validator:d}},{editor:A(()=>[T(m(Ce),{modelValue:t.value.settings.headers.value,"onUpdate:modelValue":$[0]||($[0]=g=>t.value.settings.headers.value=g),dark:"",height:"200px"},null,8,["modelValue"])]),_:1},8,["rules"])]),_:1},8,["subtitle"])):Z("",!0),t.value.method==="jsonp"?(k(),F(m(ge),{key:1,title:"请求配置",subtitle:t.value.method,border:""},{default:A(()=>[T(m(ne),{name:"jsonpOptions.jsonpCallback",size:"small",label:"jsonpCallback"}),T(m(ne),{name:"jsonpOptions.jsonpCallbackFunction",size:"small",label:"jsonpCallbackFunction"}),T(m(ne),{name:"jsonpOptions.timeout",size:"small",label:"timeout",editor:"number"}),T(m(ne),{name:"jsonpOptions.crossorigin",size:"small",label:"crossorigin",editor:"switch"})]),_:1},8,["subtitle"])):Z("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue","model","title"])]),_:1}))}}),Xj=J({name:"DepsWidget",__name:"index",setup(n){const{dependencies:e,engine:t}=rf(),r=q(!1),i=q(!1),o=q({}),s=L(()=>i.value?"查看依赖":o.value?"编辑依赖":"新增依赖"),a=f=>f.required||f.official?[]:["edit","remove"],u=f=>f.official&&!f.required,l=async f=>(f.urls=f.urls.split(`
112
112
  `),t.project.value?.setDeps(f),!0),c=f=>{t.project.value?.setDeps(f)},h=()=>{i.value=!1,r.value=!0,o.value=null},d=f=>{i.value=!0,o.value={...f,urls:f.urls.join(`
@@ -1,4 +1,4 @@
1
- import{_ as o}from"./monaco-editor-ginzV8u1.js";import{useRoute as a}from"./vue-router-EE3hBg2_.js";import"./element-plus-5Wi4i1TZ.js";import{_ as s,y as _,w as u}from"./index-mCpGBrjx.js";import{d as c,r as d,S as l,V as v,W as f,o as R,h as E}from"./@vue-3K-Vdqr2.js";import"./lodash-es-vX_HzjT0.js";import"./@vueuse-1-Jun0o2.js";import"./@element-plus-0iGvOhcs.js";import"./@popperjs-UUtjUkU3.js";import"./@ctrl-ZggoHSuR.js";import"./dayjs-nXyUZ0Ym.js";import"./async-validator-dHyGCDyC.js";import"./memoize-one-JaOscZgY.js";import"./escape-html-tGLYdTR1.js";import"./normalize-wheel-es-1urBKM79.js";import"./@floating-ui-fSnuQPPg.js";import"./vue-Xy_G9hDD.js";const $=c({__name:"preview",setup(V){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-Xy_G9hDD.js").then(e=>e.O),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-EE3hBg2_.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-5Wi4i1TZ.js").then(e=>e.$),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)}}),p=a(),t=d(),n=E();return i(async()=>{n?.appContext.app.use(r),t.value=await r.getRenderComponent(p.params.id.toString())}),(e,C)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{$ as default};
1
+ import{_ as o}from"./monaco-editor-ginzV8u1.js";import{useRoute as a}from"./vue-router-EE3hBg2_.js";import"./element-plus-5Wi4i1TZ.js";import{_ as s,y as _,w as u}from"./index-zdBBUDZp.js";import{d as c,r as d,S as l,V as v,W as f,o as R,h as E}from"./@vue-3K-Vdqr2.js";import"./lodash-es-vX_HzjT0.js";import"./@vueuse-1-Jun0o2.js";import"./@element-plus-0iGvOhcs.js";import"./@popperjs-UUtjUkU3.js";import"./@ctrl-ZggoHSuR.js";import"./dayjs-nXyUZ0Ym.js";import"./async-validator-dHyGCDyC.js";import"./memoize-one-JaOscZgY.js";import"./escape-html-tGLYdTR1.js";import"./normalize-wheel-es-1urBKM79.js";import"./@floating-ui-fSnuQPPg.js";import"./vue-Xy_G9hDD.js";const $=c({__name:"preview",setup(V){const m=new u,{provider:r,onReady:i}=s({mode:_.Runtime,service:m,dependencies:{Vue:()=>o(()=>import("./vue-Xy_G9hDD.js").then(e=>e.O),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>o(()=>import("./vue-router-EE3hBg2_.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>o(()=>import("./element-plus-5Wi4i1TZ.js").then(e=>e.$),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)}}),p=a(),t=d(),n=E();return i(async()=>{n?.appContext.app.use(r),t.value=await r.getRenderComponent(p.params.id.toString())}),(e,C)=>t.value?(R(),l(v(t.value),{key:0})):f("",!0)}});export{$ as default};
2
2
  function __vite__mapDeps(indexes) {
3
3
  if (!__vite__mapDeps.viteFileDeps) {
4
4
  __vite__mapDeps.viteFileDeps = ["./vue-Xy_G9hDD.js","./@vue-3K-Vdqr2.js","./vue-router-EE3hBg2_.js","./element-plus-5Wi4i1TZ.js","./lodash-es-vX_HzjT0.js","./@vueuse-1-Jun0o2.js","./@element-plus-0iGvOhcs.js","./@popperjs-UUtjUkU3.js","./@ctrl-ZggoHSuR.js","./dayjs-nXyUZ0Ym.js","./async-validator-dHyGCDyC.js","./memoize-one-JaOscZgY.js","./escape-html-tGLYdTR1.js","./normalize-wheel-es-1urBKM79.js","./@floating-ui-fSnuQPPg.js","./element-plus-CrqXjnKo.css"]
package/dist/index.html CHANGED
@@ -7,7 +7,7 @@
7
7
  <meta http-equiv="Pragma" content="no-cache"/>
8
8
  <meta http-equiv="Expires" content="0"/>
9
9
  <title>VTJ 设计器</title>
10
- <script type="module" crossorigin src="./assets/index-MnFtNpiI.js"></script>
10
+ <script type="module" crossorigin src="./assets/index-h5pHqK8w.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="./assets/@vue-3K-Vdqr2.js">
12
12
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-vX_HzjT0.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-1-Jun0o2.js">
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vtj/pro",
3
3
  "description": "VTJ.PRO",
4
4
  "private": false,
5
- "version": "0.7.1",
5
+ "version": "0.7.2",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "cross-env ENV_TYPE=local vite",
@@ -10,17 +10,17 @@
10
10
  "preview": "vite preview"
11
11
  },
12
12
  "dependencies": {
13
- "@vtj/core": "^0.7.1",
14
- "@vtj/designer": "^0.7.1",
15
- "@vtj/local": "^0.7.1",
16
- "@vtj/materials": "^0.7.1",
17
- "@vtj/renderer": "^0.7.1"
13
+ "@vtj/core": "^0.7.2",
14
+ "@vtj/designer": "^0.7.2",
15
+ "@vtj/local": "^0.7.2",
16
+ "@vtj/materials": "^0.7.2",
17
+ "@vtj/renderer": "^0.7.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@vtj/cli": "^0.7.1",
21
- "@vtj/icons": "^0.7.1",
22
- "@vtj/ui": "^0.7.1",
23
- "@vtj/utils": "^0.7.1",
20
+ "@vtj/cli": "^0.7.2",
21
+ "@vtj/icons": "^0.7.2",
22
+ "@vtj/ui": "^0.7.2",
23
+ "@vtj/utils": "^0.7.2",
24
24
  "vue": "~3.4.14",
25
25
  "vue-router": "~4.2.5"
26
26
  },
@@ -43,7 +43,7 @@
43
43
  "dist",
44
44
  "src"
45
45
  ],
46
- "gitHead": "c06459a647ae2b7b9086c050187d44b7e920ef5d",
46
+ "gitHead": "9cdd39f009940b6e9c6546a4504cd99458c44ec0",
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  }