icegl-three-vue-tres/dist/js/arrangement.9om3jgID1725416517797.js
2024-09-04 10:33:50 +08:00

2 lines
16 KiB
JavaScript

import{_ as t}from"./index.KZVn_uwt1725416517797.js";import{aP as n,a6 as e,a9 as o}from"./three.VTQVqxMx1725416517797.js";import{$ as r,a as i,d as s}from"./@tresjs.5lh7VmqZ1725416517797.js";import{a,b as c,d as u,c as l,e as p}from"./index.6rFj34yJ1725416517797.js";import{d as f,b as m,o as d,f as g,g as h,j as y,u as b,L as _,E as I,F as w,W as j,al as x,a5 as v,r as k,aj as S,ak as M,e as P}from"./@vue._6MD2XyK1725416517797.js";import{_ as T}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.YawtifQB1725416517797.js";import{P as z}from"./tweakpane.yHWGBmom1725416517797.js";import"./index.gebJ5XSZ1725416517797.js";import"./@fesjs.ILazvsHx1725416517797.js";import"./vue-router.oJSnFzhA1725416517797.js";import"./lodash-es.kYt-_xTG1725416517797.js";import"./@vueuse.L-salR9N1725416517797.js";import"./@qlin.yHhFDldE1725416517797.js";import"./pinia.QjdSMCYS1725416517797.js";import"./@floating-ui.BPbuo5Gx1725416517797.js";import"./@juggle.7yjBMqoW1725416517797.js";import"./chalk.sAH7iSuz1725416517797.js";/* empty css */import"./iconify-icon.l-H2-fnN1725416517797.js";import"./@iconify.9PoCakEb1725416517797.js";import"./utils.niQh9fO11725416517797.js";import"./default.vue_vue_type_script_setup_true_lang.XiUa4s0U1725416517797.js";import"./three-mesh-ui.module.jT3A9sPc1725416517797.js";import"./three-stdlib.a3mqXhLa1725416517797.js";import"./@pmndrs.3SP8A_bt1725416517797.js";import"./object-hash.UdqO8HjX1725416517797.js";import"./@amap.LUDXTi4z1725416517797.js";import"./jszip.7CKSmb6c1725416517797.js";const A=L;!function(t,n){const e=L,o=C();for(;;)try{if(216906===parseInt(e(500))/1*(parseInt(e(489))/2)+parseInt(e(496))/3*(-parseInt(e(484))/4)+-parseInt(e(505))/5+-parseInt(e(507))/6+parseInt(e(468))/7+-parseInt(e(474))/8*(-parseInt(e(493))/9)+parseInt(e(479))/10)break;o.push(o.shift())}catch(r){o.push(o.shift())}}();const R=function(){let t=!0;return function(n,e){const o=t?function(){if(e){const t=e[L(481)](n,arguments);return e=null,t}}:function(){};return t=!1,o}}();function C(){const t=["ring","action","55809AtLtCb","function *\\( *\\)","warn","2148NdpxaW","gger","neg-z.jpg","exception","17KdhVfm","rotation-y","while (true) {}","console","pos-x.jpg","2051485BcMJbV","rotation","555552NuoKXV","bind","chain","neg-y.jpg","error","prototype","constructor","pos-z.jpg","return (function() ","test","log","debu","2382415gCPRds","call","position","toString","init",'{}.constructor("return this")( )',"88EvhfId","stateObject","neg-x.jpg","red","rotation-x","3071780emkJBS","length","apply","value","TresGroup","2248hEThkH","string","__proto__","input","table","47818UMmuUU","pos-y.jpg"];return(C=function(){return t})()}!function(){R(this,(function(){const t=L,n=new RegExp(t(494)),e=new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","i"),o=D(t(472));n[t(465)](o+t(458))&&e[t(465)](o+t(487))?D():o("0")}))()}();const E=function(){let t=!0;return function(n,e){const o=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,o}}();E(void 0,(function(){const t=L,n=function(){const t=L;let n;try{n=Function(t(464)+t(473)+");")()}catch(e){n=window}return n}(),e=n.console=n[t(503)]||{},o=[t(466),t(495),"info",t(460),t(499),t(488),"trace"];for(let r=0;r<o[t(480)];r++){const n=E[t(462)][t(461)][t(508)](E),i=o[r],s=e[i]||n;n[t(486)]=E[t(508)](E),n[t(471)]=s[t(471)].bind(s),e[i]=n}}))();const O=[A(506)],B=[A(478)];function L(t,n){const e=C();return(L=function(t,n){return e[t-=458]})(t,n)}const Z=f({__name:"env",setup(t){const n=m(null),{onLoop:e}=r();e((({delta:t})=>{const e=L;n[e(482)]&&(n.value[e(506)].z+=t)}));const o=[2,-2,2,-4,2,-5,2,-9];return(t,e)=>{const r=L;return d(),g(x,null,{default:h((()=>[y(b(a),{intensity:.1,resolution:256,background:"",blur:.8,files:[r(504),r(476),r(490),r(459),r(463),r(498)],path:"https://opensource-1314935952.cos.ap-nanjing.myqcloud.com/images/skyBox/6jpg/"},{default:h((()=>[y(b(c),{intensity:4,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]},null,8,[r(478)]),y(b(c),{intensity:4,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]},null,8,[r(478)]),_(r(483),{rotation:[Math.PI/2,1,0]},[(d(),I(w,null,j(o,((t,n)=>{const e=r;return y(b(c),{key:n,intensity:1,rotation:[Math.PI/4,0,0],position:[t,4,4*n],scale:[4,1,1]},null,8,[e(506),e(470)])})),64))],8,O),y(b(c),{intensity:.5,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[50,2,1]},null,8,["rotation-y"]),y(b(c),{intensity:.5,"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[50,2,1]},null,8,[r(501)]),y(b(c),{intensity:.5,"rotation-y":-Math.PI/2,position:[10,1,0],scale:[50,2,1]},null,8,[r(501)]),_("TresGroup",{ref_key:"refgroup",ref:n,"rotation-x":Math.PI/2},[y(b(c),{form:r(491),color:r(477),"rotation-y":Math.PI/2,intensity:5,scale:[10,10,1],position:[-5,2,-1]},null,8,[r(501)])],8,B)])),_:1})])),_:1})}}});function D(t){function n(t){const e=L;if(typeof t===e(485))return function(t){}[e(462)](e(502))[e(481)]("counter");1!==(""+t/t).length||t%20==0?function(){return!0}[e(462)](e(467)+"gger")[e(469)](e(492)):function(){return!1}[e(462)](e(467)+e(497)).apply(e(475)),n(++t)}try{if(t)return n;n(0)}catch(e){}}!function(t,n){for(var e=q,o=V();;)try{if(730820===parseInt(e(503))/1+parseInt(e(479))/2+-parseInt(e(490))/3*(-parseInt(e(507))/4)+-parseInt(e(500))/5+-parseInt(e(484))/6*(-parseInt(e(508))/7)+-parseInt(e(505))/8+parseInt(e(506))/9*(parseInt(e(485))/10))break;o.push(o.shift())}catch(r){o.push(o.shift())}}();var F=function(){var t=!0;return function(n,e){var o=t?function(){if(e){var t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,o}}();function V(){var t=["4354490TzfXTL","function *\\( *\\)","exception","1236389tHiTJe","table","11473992zZXQiU","459gMDpRk","4uDeyqv","343847PxPtty","init","error","80938rEEltQ","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","prototype","test","constructor","54pOrdKp","85490ofmfWa","return (function() ","input","apply","toString","2643063pOdfqS","log","counter","debu","gger","bind","while (true) {}","length","string","__proto__"];return(V=function(){return t})()}!function(){F(this,(function(){var t=q,n=new RegExp(t(501)),e=new RegExp(t(480),"i"),o=G(t(509));n[t(482)](o+"chain")&&e.test(o+t(487))?G():o("0")}))()}();var $=function(){var t=!0;return function(n,e){var o=t?function(){if(e){var t=e[q(488)](n,arguments);return e=null,t}}:function(){};return t=!1,o}}();function q(t,n){var e=V();return(q=function(t,n){return e[t-=478]})(t,n)}function G(t){function n(t){var e=q;if(typeof t===e(498))return function(t){}[e(483)](e(496)).apply(e(492));1!==(""+t/t).length||t%20==0?function(){return!0}[e(483)](e(493)+e(494)).call("action"):function(){return!1}[e(483)]("debu"+e(494))[e(488)]("stateObject"),n(++t)}try{if(t)return n;n(0)}catch(e){}}$(void 0,(function(){for(var t=q,n=function(){var t,n=q;try{t=Function(n(486)+'{}.constructor("return this")( ));')()}catch(e){t=window}return t}(),e=n.console=n.console||{},o=[t(491),"warn","info",t(478),t(502),t(504),"trace"],r=0;r<o[t(497)];r++){var i=$[t(483)][t(481)][t(495)]($),s=o[r],a=e[s]||i;i[t(499)]=$[t(495)]($),i[t(489)]=a[t(489)][t(495)](a),e[s]=i}}))();const J=at;!function(t,n){const e=at,o=it();for(;;)try{if(789476===parseInt(e(164))/1+-parseInt(e(165))/2*(parseInt(e(203))/3)+parseInt(e(147))/4*(parseInt(e(194))/5)+-parseInt(e(141))/6*(-parseInt(e(149))/7)+parseInt(e(172))/8+-parseInt(e(142))/9*(parseInt(e(167))/10)+parseInt(e(159))/11*(-parseInt(e(182))/12))break;o.push(o.shift())}catch(r){o.push(o.shift())}}();const K=function(){let t=!0;return function(n,e){const o=t?function(){if(e){const t=e[at(193)](n,arguments);return e=null,t}}:function(){};return t=!1,o}}();!function(){K(this,(function(){const t=at,n=new RegExp(t(155)),e=new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","i"),o=ct(t(176));n[t(183)](o+t(205))&&e.test(o+"input")?ct():o("0")}))()}();const X=function(){let t=!0;return function(n,e){const o=t?function(){if(e){const t=e[at(193)](n,arguments);return e=null,t}}:function(){};return t=!1,o}}();X(void 0,(function(){const t=at,n=function(){const t=at;let n;try{n=Function(t(157)+t(175)+");")()}catch(e){n=window}return n}(),e=n[t(189)]=n[t(189)]||{},o=[t(153),t(140),"info",t(160),t(188),"table","trace"];for(let r=0;r<o[t(186)];r++){const n=X.constructor[t(192)][t(166)](X),i=o[r],s=e[i]||n;n.__proto__=X.bind(X),n[t(138)]=s[t(138)].bind(s),e[i]=n}}))();const U={position:[0,-.5,0],rotation:[0,-.75,0]},W=[J(150),J(163)],H=["geometry",J(163)],N=[J(150),J(163)],Y=[J(150),"material"],Q=[J(150),J(163)],tt=[J(150),J(163)],nt=["geometry",J(163)],et=[J(150)],ot=[J(150),J(163)],rt=[J(150),J(163)];function it(){const t=["far","straw_2","10536656VofTIy","counter","debu",'{}.constructor("return this")( )',"init","attenuationDistance","attenuationColor","thickness","lightSource","while (true) {}","8800212wApdJA","test","intensity","stateObject","length","straw_1","exception","console","constructor","addBinding","prototype","apply","2927555GpRXKy","straw001_1","FrontSide","color","temporalDistortion","ForkAndKnivesSet001_1K","可视距离","backsideIOR","roughness","15kCIYvq","causticsOnly","chain","fork","string","chromaticAberration","distortion","reflectivity","光源位置","./draco/","toString","#ffffff","warn","114186GqlPLr","4029741VpGLJB","glass_back","backsideThickness","anisotropicBlur","draifrawer_u1_v1.001","4eyENNR","gger","21kPdOBy","geometry","AdditiveBlending","hidden","log","backside","function *\\( *\\)","black","return (function() ","TresMesh","22LVJedS","error","FruitCakeSlice_u1_v1","TresGroup","material","1150266AeAJqo","162410fjOjbT","bind","10mmfVvx","折射系数2","材质大小"];return(it=function(){return t})()}const st=f({__name:"models",async setup(t){const o=J;let r,s;const a=new n({transparent:!0,opacity:1,color:o(156),roughness:0,side:e[o(196)],blending:e[o(151)],polygonOffset:!0,polygonOffsetFactor:1,envMapIntensity:.6}),{nodes:c,materials:f}=([r,s]=v((()=>i("./plugins/eCommerce/model/glass-transformed.glb",{draco:!0,decoderPath:o(137)}))),r=await r,s(),r),m={opacity:.8,alphaTest:.85,color:"red",blend:2,lightPosition:{x:-1.5,y:2.5,z:-1},frames:60,blendWindow:60,ambient:.5},g=k({color:o(139),roughness:0,reflectivity:.1,attenuationColor:o(139),attenuationDistance:2,chromaticAberration:.05,anisotropicBlur:1,distortion:0,temporalDistortion:0,backside:!0,thickness:.65,backsideThickness:.1,clearcoat:1,clearcoatRoughness:1}),w=new z;w[o(152)]=!0,w[o(191)](g,o(197),{label:"颜色"}),w[o(191)](g,"roughness",{label:o(202),min:0,max:1,step:.01}),w[o(191)](g,o(210),{label:o(210),min:0,max:1,step:.01}),w[o(191)](g,o(178),{label:"attenuationColor"}),w[o(191)](g,o(177),{label:o(177),min:0,max:2,step:.01}),w[o(191)](g,o(208),{label:o(208),min:0,max:2,step:.01}),w[o(191)](g,o(145),{label:o(145),min:0,max:10,step:.01}),w[o(191)](g,o(209),{label:o(209),min:0,max:10,step:.01}),w[o(191)](g,o(198),{label:"temporalDistortion",min:0,max:1,step:.01}),w[o(191)](g,o(154),{label:o(154)}),w.addBinding(g,o(179),{label:o(179),min:0,max:4,step:.01}),w[o(191)](g,o(144),{label:o(144),min:0,max:4,step:.01});const j=k({color:"rgb(255,200, 200)",ior:.97,backsideIOR:.98,far:30,worldRadius:.394,intensity:.02,causticsOnly:!1,lightSource:{x:-.05,y:1,z:1}}),x=new z({title:"参数"});return x[o(152)]=!0,x[o(191)](j,"color",{label:"颜色"}),x.addBinding(j,"ior",{label:"折射系数",min:.6,max:1.3,step:.01}),x.addBinding(j,o(201),{label:o(168),min:.6,max:1.3,step:.01}),x[o(191)](j,o(170),{label:o(200),min:0,max:30,step:1}),x[o(191)](j,"worldRadius",{label:o(169),min:.001,max:.5,step:.001}),x.addBinding(j,o(184),{label:"强度",min:0,max:1,step:.01}),x[o(191)](j,o(204),{label:"只显示投射"}),x[o(191)](j,o(180),{label:o(211),x:{min:-1,max:1},y:{min:-1,max:1},z:{min:-1,max:1}}),(t,n)=>{const e=o;return d(),I(e(162),U,[_("TresMesh",{geometry:b(c).cake.geometry,rotation:[0,-.5,0],"cast-shadow":!0,material:b(f)[e(161)]},null,8,W),_("TresMesh",{geometry:b(c)[e(187)][e(150)],castShadow:"",material:b(f).straw_2},null,8,H),_(e(158),{geometry:b(c)[e(171)][e(150)],castShadow:"",material:b(f)[e(187)]},null,8,N),_(e(158),{geometry:b(c)[e(195)][e(150)],position:[0,-.005,0],"cast-shadow":!0,material:b(f)[e(171)]},null,8,Y),_("TresMesh",{geometry:b(c).straw001_2.geometry,position:[0,-.005,0],"cast-shadow":!0,material:b(f).straw_1},null,8,Q),y(b(u),{top:"",rotation:[0,-.4,0],position:[-1,-.01,-2]},{default:h((()=>[_("TresMesh",{geometry:b(c).flowers[e(150)],castShadow:"",material:b(f)[e(146)],scale:1.2},null,8,tt)])),_:1}),_("TresMesh",{castShadow:"",geometry:b(c)[e(206)].geometry,material:b(f)[e(199)],"material-color":"#999"},null,8,nt),y(b(p),S(M(j)),{default:h((()=>[_(e(158),{castShadow:"",receiveShadow:"",geometry:b(c).glass[e(150)]},[y(b(l),S(M(g)),null,16)],8,et)])),_:1},16),_("TresMesh",{geometry:b(c)[e(143)].geometry,material:b(a),scale:[.95,1,.95]},null,8,ot),_("TresMesh",{geometry:b(c).glass_inner[e(150)],material:b(a)},null,8,rt),y(b(T),S(M(m)),null,16)])}}});function at(t,n){const e=it();return(at=function(t,n){return e[t-=137]})(t,n)}function ct(t){function n(t){const e=at;if(typeof t===e(207))return function(t){}[e(190)](e(181)).apply(e(173));1!==(""+t/t)[e(186)]||t%20==0?function(){return!0}[e(190)](e(174)+"gger").call("action"):function(){return!1}[e(190)](e(174)+e(148))[e(193)](e(185)),n(++t)}try{if(t)return n;n(0)}catch(e){}}const ut=ft;!function(t,n){const e=ft,o=dt();for(;;)try{if(824572===-parseInt(e(512))/1*(parseInt(e(517))/2)+parseInt(e(486))/3+parseInt(e(489))/4+-parseInt(e(482))/5*(parseInt(e(516))/6)+parseInt(e(505))/7+-parseInt(e(519))/8*(parseInt(e(499))/9)+parseInt(e(493))/10)break;o.push(o.shift())}catch(r){o.push(o.shift())}}();const lt=function(){let t=!0;return function(n,e){const o=t?function(){if(e){const t=e[ft(518)](n,arguments);return e=null,t}}:function(){};return t=!1,o}}();!function(){lt(this,(function(){const t=ft,n=new RegExp(t(481)),e=new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","i"),o=ht("init");n[t(502)](o+t(490))&&e[t(502)](o+t(487))?ht():o("0")}))()}();const pt=function(){let t=!0;return function(n,e){const o=t?function(){if(e){const t=e[ft(518)](n,arguments);return e=null,t}}:function(){};return t=!1,o}}();function ft(t,n){const e=dt();return(ft=function(t,n){return e[t-=481]})(t,n)}pt(void 0,(function(){const t=ft;let n;try{n=Function(t(498)+'{}.constructor("return this")( ));')()}catch(r){n=window}const e=n[t(494)]=n.console||{},o=[t(507),"warn",t(508),"error","exception",t(511),t(488)];for(let i=0;i<o[t(484)];i++){const n=pt.constructor[t(515)][t(504)](pt),r=o[i],s=e[r]||n;n[t(509)]=pt[t(504)](pt),n[t(514)]=s.toString[t(504)](s),e[r]=n}}))();const mt=_(ut(506),{position:[2,1.6,6],fov:45,near:.1,far:1e3,lookAt:[0,0,0]},null,-1);function dt(){const t=["return (function() ","477SBkOLK","counter","arrangement","test","action","bind","723632HZZzEb","TresPerspectiveCamera","log","info","__proto__","SRGBColorSpace","table","2oCgkuY","call","toString","prototype","6ijvAJR","593392xIDPOY","apply","167800PqwVCV","function *\\( *\\)","3423185WMURwL","constructor","length","while (true) {}","1504938plXGPg","input","trace","787816LDLaiH","chain","#fffffff","stateObject","24123000IKtAfI","console","debu","string","gger"];return(dt=function(){return t})()}const gt=f({__name:ut(501),setup(n){const r=ut,i={clearColor:r(491),windowSize:!0,toneMapping:o,toneMappingExposure:.8,shadows:!0,outputColorSpace:e[r(510)]};return(n,e)=>{const o=P("TresCanvas");return d(),I(w,null,[y(b(t)),y(o,S(M(i)),{default:h((()=>[mt,y(b(s),{enableDamping:""}),(d(),g(x,null,{default:h((()=>[y(st)])),_:1})),y(Z)])),_:1},16)],64)}}});function ht(t){function n(t){const e=ft;if(typeof t===e(496))return function(t){}.constructor(e(485))[e(518)](e(500));1!==(""+t/t)[e(484)]||t%20==0?function(){return!0}[e(483)](e(495)+e(497))[e(513)](e(503)):function(){return!1}[e(483)]("debu"+e(497))[e(518)](e(492)),n(++t)}try{if(t)return n;n(0)}catch(e){}}export{gt as default};