icegl-three-vue-tres/dist/js/arrangement.7Xuq1nGm1725721021019.js
2024-09-07 23:02:26 +08:00

2 lines
16 KiB
JavaScript

import{_ as t}from"./index.a2VxGvKO1725721021019.js";import{a6 as n,a9 as e}from"./three.a9V66irq1725721021019.js";import{$ as r,a as o,d as i}from"./@tresjs.bIWdfO9a1725721021019.js";import{a,b as s,d as c,c as u,e as l}from"./index.HwcLpeBY1725721021019.js";import{d as p,b as f,o as m,f as d,g,j as h,u as y,L as b,E as _,W as I,F as w,al as x,a5 as j,r as v,aj as k,ak as S,e as M}from"./@vue._6MD2XyK1725721021019.js";import{_ as z}from"./accumulativeShadowsCom.vue_vue_type_script_setup_true_lang.dU05LERf1725721021019.js";import{P as T}from"./tweakpane.yHWGBmom1725721021019.js";import"./index.byQs--Rk1725721021019.js";import"./@fesjs.ozYBrZAq1725721021019.js";import"./vue-router._EXpxh631725721021019.js";import"./lodash-es.kYt-_xTG1725721021019.js";import"./@vueuse.Ex-1AOlz1725721021019.js";import"./@qlin.yHhFDldE1725721021019.js";import"./pinia.U_UMJ01N1725721021019.js";import"./@floating-ui.BPbuo5Gx1725721021019.js";import"./@juggle.7yjBMqoW1725721021019.js";import"./chalk.w3XuUwyA1725721021019.js";/* empty css */import"./iconify-icon.l-H2-fnN1725721021019.js";import"./@iconify.9PoCakEb1725721021019.js";import"./utils.h2T1IClj1725721021019.js";import"./default.vue_vue_type_script_setup_true_lang.So8TflHS1725721021019.js";import"./three-mesh-ui.module.KibuNOJN1725721021019.js";import"./three-stdlib.-DW5PGsS1725721021019.js";import"./@pmndrs._LoKiQ331725721021019.js";import"./object-hash.xtAmzdrT1725721021019.js";import"./@amap.9EMhYPgf1725721021019.js";import"./jszip.NwxLGTBs1725721021019.js";const A=F;!function(t,n){const e=F,r=C();for(;;)try{if(587599===-parseInt(e(165))/1*(parseInt(e(182))/2)+parseInt(e(174))/3+parseInt(e(159))/4*(-parseInt(e(188))/5)+-parseInt(e(160))/6+parseInt(e(187))/7*(-parseInt(e(181))/8)+-parseInt(e(200))/9*(-parseInt(e(198))/10)+parseInt(e(172))/11*(parseInt(e(196))/12))break;r.push(r.shift())}catch(o){r.push(r.shift())}}();const B=function(){let t=!0;return function(n,e){const r=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,r}}();!function(){B(this,(function(){const t=F,n=new RegExp(t(193)),e=new RegExp(t(162),"i"),r=K(t(184));n.test(r+t(167))&&e[t(176)](r+"input")?K():r("0")}))()}();const R=function(){let t=!0;return function(n,e){const r=t?function(){if(e){const t=e[F(189)](n,arguments);return e=null,t}}:function(){};return t=!1,r}}();function C(){const t=["4qPPdsA","6941874corkiH","console","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","debu","refgroup","790235gTokvt","exception","chain","trace","pos-y.jpg","toString","stateObject","11WFBYxG","ring","2930010YVXIYw","rotation","test","table","value","call","warn","48RKrybc","2CNoxDQ","counter","init","prototype","TresGroup","1335859RuiMBz","5208380gpFnNi","apply","info","log","constructor","function *\\( *\\)",'{}.constructor("return this")( )',"__proto__","36137352EAlXsT","string","188050YiNgCh","gger","351WVyQWS","rotation-y","rotation-x","red","length","bind","neg-z.jpg"];return(C=function(){return t})()}R(void 0,(function(){const t=F,n=function(){const t=F;let n;try{n=Function("return (function() "+t(194)+");")()}catch(e){n=window}return n}(),e=n[t(161)]=n.console||{},r=[t(191),t(180),t(190),"error",t(166),t(177),t(168)];for(let o=0;o<r.length;o++){const n=R[t(192)][t(185)][t(157)](R),i=r[o],a=e[i]||n;n[t(195)]=R[t(157)](R),n[t(170)]=a[t(170)][t(157)](a),e[i]=n}}))();const P=[A(175)],E=[A(202)];function F(t,n){const e=C();return(F=function(t,n){return e[t-=155]})(t,n)}const D=p({__name:"env",setup(t){const n=f(null),{onLoop:e}=r();e((({delta:t})=>{const e=F;n[e(178)]&&(n[e(178)].rotation.z+=t)}));const o=[2,-2,2,-4,2,-5,2,-9];return(t,e)=>{const r=F;return m(),d(x,null,{default:g((()=>[h(y(s),{intensity:.1,resolution:256,background:"",blur:.8,files:["pos-x.jpg","neg-x.jpg",r(169),"neg-y.jpg","pos-z.jpg",r(158)],path:"https://opensource-1314935952.cos.ap-nanjing.myqcloud.com/images/skyBox/6jpg/"},{default:g((()=>[h(y(a),{intensity:4,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]},null,8,[r(202)]),h(y(a),{intensity:4,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]},null,8,[r(202)]),b(r(186),{rotation:[Math.PI/2,1,0]},[(m(),_(w,null,I(o,((t,n)=>{const e=r;return h(y(a),{key:n,intensity:1,rotation:[Math.PI/4,0,0],position:[t,4,4*n],scale:[4,1,1]},null,8,[e(175),"position"])})),64))],8,P),h(y(a),{intensity:.5,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[50,2,1]},null,8,[r(201)]),h(y(a),{intensity:.5,"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[50,2,1]},null,8,[r(201)]),h(y(a),{intensity:.5,"rotation-y":-Math.PI/2,position:[10,1,0],scale:[50,2,1]},null,8,[r(201)]),b(r(186),{ref_key:r(164),ref:n,"rotation-x":Math.PI/2},[h(y(a),{form:r(173),color:r(155),"rotation-y":Math.PI/2,intensity:5,scale:[10,10,1],position:[-5,2,-1]},null,8,[r(201)])],8,E)])),_:1})])),_:1})}}});function K(t){function n(t){const e=F;if(typeof t===e(197))return function(t){}[e(192)]("while (true) {}")[e(189)](e(183));1!==(""+t/t)[e(156)]||t%20==0?function(){return!0}[e(192)]("debugger")[e(179)]("action"):function(){return!1}[e(192)](e(163)+e(199))[e(189)](e(171)),n(++t)}try{if(t)return n;n(0)}catch(e){}}function O(){var t=["counter","constructor","console","23937156YrchCH","376bKorcf","398920TmNzdF","4293149lZLKYz","toString","error","while (true) {}","apply","prototype","1548349EoyZQG","call","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","__proto__","7393CncUzs","test","length","string","5qgwfIj","info","log","bind","debu","gger","function *\\( *\\)","2176560iagsYc","return (function() ","chain","table","exception","80kYvqnt","3004773vWcGLJ","12XrvBSm","27yTnLMI"];return(O=function(){return t})()}!function(t,n){for(var e=q,r=O();;)try{if(746850===-parseInt(e(228))/1*(-parseInt(e(252))/2)+-parseInt(e(245))/3+parseInt(e(253))/4*(-parseInt(e(232))/5)+parseInt(e(246))/6*(-parseInt(e(254))/7)+parseInt(e(239))/8*(parseInt(e(247))/9)+parseInt(e(244))/10*(-parseInt(e(224))/11)+parseInt(e(251))/12)break;r.push(r.shift())}catch(o){r.push(r.shift())}}();var Z=function(){var t=!0;return function(n,e){var r=t?function(){if(e){var t=e[q(258)](n,arguments);return e=null,t}}:function(){};return t=!1,r}}();function q(t,n){var e=O();return(q=function(t,n){return e[t-=224]})(t,n)}!function(){Z(this,(function(){var t=q,n=new RegExp(t(238)),e=new RegExp(t(226),"i"),r=W("init");n[t(229)](r+t(241))&&e.test(r+"input")?W():r("0")}))()}();var Y=function(){var t=!0;return function(n,e){var r=t?function(){if(e){var t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,r}}();function W(t){function n(t){var e=q;if(typeof t===e(231))return function(t){}[e(249)](e(257))[e(258)](e(248));1!==(""+t/t).length||t%20==0?function(){return!0}[e(249)](e(236)+e(237))[e(225)]("action"):function(){return!1}[e(249)](e(236)+e(237))[e(258)]("stateObject"),n(++t)}try{if(t)return n;n(0)}catch(e){}}Y(void 0,(function(){var t,n=q;try{t=Function(n(240)+'{}.constructor("return this")( ));')()}catch(c){t=window}for(var e=t[n(250)]=t[n(250)]||{},r=[n(234),"warn",n(233),n(256),n(243),n(242),"trace"],o=0;o<r[n(230)];o++){var i=Y[n(249)][n(259)].bind(Y),a=r[o],s=e[a]||i;i[n(227)]=Y[n(235)](Y),i[n(255)]=s.toString.bind(s),e[a]=i}}))();const $=it;!function(t,n){const e=it,r=st();for(;;)try{if(171859===-parseInt(e(363))/1*(-parseInt(e(359))/2)+-parseInt(e(364))/3*(parseInt(e(351))/4)+parseInt(e(379))/5+parseInt(e(333))/6+-parseInt(e(385))/7+-parseInt(e(344))/8*(parseInt(e(329))/9)+parseInt(e(323))/10)break;r.push(r.shift())}catch(o){r.push(r.shift())}}();const G=function(){let t=!0;return function(n,e){const r=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,r}}();!function(){G(this,(function(){const t=it,n=new RegExp(t(382)),e=new RegExp(t(318),"i"),r=at(t(320));n.test(r+t(374))&&e[t(389)](r+"input")?at():r("0")}))()}();const Q=function(){let t=!0;return function(n,e){const r=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,r}}();Q(void 0,(function(){const t=it,n=function(){const t=it;let n;try{n=Function(t(336)+t(303)+");")()}catch(e){n=window}return n}(),e=n[t(338)]=n[t(338)]||{},r=[t(357),t(317),t(362),t(339),t(388),t(358),t(365)];for(let o=0;o<r[t(322)];o++){const n=Q[t(330)][t(327)][t(321)](Q),i=r[o],a=e[i]||n;n[t(348)]=Q[t(321)](Q),n[t(368)]=a[t(368)][t(321)](a),e[i]=n}}))();const X={position:[0,-.5,0],rotation:[0,-.75,0]},N=["geometry",$(366)],L=[$(316),$(366)],U=["geometry","material"],V=[$(316),"material"],J=[$(316),$(366)],H=["geometry",$(366)],tt=["geometry","material"],nt=[$(316)],et=[$(316),$(366)],rt=["geometry","material"],ot=p({__name:$(377),async setup(t){const e=$;let r,i;const a=new(n[e(350)])({transparent:!0,opacity:1,color:e(347),roughness:0,side:n[e(304)],blending:n[e(309)],polygonOffset:!0,polygonOffsetFactor:1,envMapIntensity:.6}),{nodes:s,materials:p}=([r,i]=j((()=>o("./plugins/eCommerce/model/glass-transformed.glb",{draco:!0,decoderPath:e(353)}))),r=await r,i(),r),f={opacity:.8,alphaTest:.85,color:e(340),blend:2,lightPosition:{x:-1.5,y:2.5,z:-1},frames:60,blendWindow:60,ambient:.5},d=v({color:e(380),roughness:0,reflectivity:.1,attenuationColor:"#ffffff",attenuationDistance:2,chromaticAberration:.05,anisotropicBlur:1,distortion:0,temporalDistortion:0,backside:!0,thickness:.65,backsideThickness:.1,clearcoat:1,clearcoatRoughness:1}),I=new T;I.hidden=!0,I[e(315)](d,e(352),{label:"颜色"}),I[e(315)](d,e(373),{label:"roughness",min:0,max:1,step:.01}),I[e(315)](d,e(349),{label:"reflectivity",min:0,max:1,step:.01}),I[e(315)](d,"attenuationColor",{label:e(367)}),I.addBinding(d,"attenuationDistance",{label:e(378),min:0,max:2,step:.01}),I[e(315)](d,e(369),{label:e(369),min:0,max:2,step:.01}),I[e(315)](d,e(305),{label:e(305),min:0,max:10,step:.01}),I[e(315)](d,e(308),{label:e(308),min:0,max:10,step:.01}),I[e(315)](d,e(331),{label:e(331),min:0,max:1,step:.01}),I.addBinding(d,e(356),{label:e(356)}),I.addBinding(d,e(342),{label:e(342),min:0,max:4,step:.01}),I[e(315)](d,e(310),{label:e(310),min:0,max:4,step:.01});const w=v({color:e(387),ior:.97,backsideIOR:.98,far:30,worldRadius:.394,intensity:.02,causticsOnly:!1,lightSource:{x:-.05,y:1,z:1}}),x=new T({title:"参数"});return x[e(335)]=!0,x.addBinding(w,e(352),{label:"颜色"}),x[e(315)](w,e(307),{label:e(371),min:.6,max:1.3,step:.01}),x[e(315)](w,e(370),{label:e(346),min:.6,max:1.3,step:.01}),x[e(315)](w,e(311),{label:e(376),min:0,max:30,step:1}),x[e(315)](w,e(343),{label:"材质大小",min:.001,max:.5,step:.001}),x.addBinding(w,"intensity",{label:"强度",min:0,max:1,step:.01}),x[e(315)](w,e(345),{label:e(384)}),x[e(315)](w,e(386),{label:e(355),x:{min:-1,max:1},y:{min:-1,max:1},z:{min:-1,max:1}}),(t,n)=>{const r=e;return m(),_(r(372),X,[b(r(337),{geometry:y(s)[r(324)].geometry,rotation:[0,-.5,0],"cast-shadow":!0,material:y(p)[r(341)]},null,8,N),b(r(337),{geometry:y(s).straw_1[r(316)],castShadow:"",material:y(p)[r(319)]},null,8,L),b("TresMesh",{geometry:y(s).straw_2.geometry,castShadow:"",material:y(p)[r(332)]},null,8,U),b(r(337),{geometry:y(s)[r(306)][r(316)],position:[0,-.005,0],"cast-shadow":!0,material:y(p)[r(319)]},null,8,V),b(r(337),{geometry:y(s)[r(375)][r(316)],position:[0,-.005,0],"cast-shadow":!0,material:y(p).straw_1},null,8,J),h(y(c),{top:"",rotation:[0,-.4,0],position:[-1,-.01,-2]},{default:g((()=>[b("TresMesh",{geometry:y(s)[r(312)][r(316)],castShadow:"",material:y(p)[r(360)],scale:1.2},null,8,H)])),_:1}),b(r(337),{castShadow:"",geometry:y(s).fork[r(316)],material:y(p)[r(313)],"material-color":"#999"},null,8,tt),h(y(l),k(S(w)),{default:g((()=>[b(r(337),{castShadow:"",receiveShadow:"",geometry:y(s)[r(334)][r(316)]},[h(y(u),k(S(d)),null,16)],8,nt)])),_:1},16),b(r(337),{geometry:y(s)[r(381)][r(316)],material:y(a),scale:[.95,1,.95]},null,8,et),b("TresMesh",{geometry:y(s)[r(328)][r(316)],material:y(a)},null,8,rt),h(y(z),k(S(f)),null,16)])}}});function it(t,n){const e=st();return(it=function(t,n){return e[t-=303]})(t,n)}function at(t){function n(t){const e=it;if(typeof t===e(354))return function(t){}[e(330)]("while (true) {}").apply("counter");1!==(""+t/t)[e(322)]||t%20==0?function(){return!0}.constructor(e(361)+e(326))[e(383)](e(325)):function(){return!1}[e(330)](e(361)+"gger").apply(e(314)),n(++t)}try{if(t)return n;n(0)}catch(e){}}function st(){const t=["debu","info","43tQyDye","3qBDrYU","trace","material","attenuationColor","toString","chromaticAberration","backsideIOR","折射系数","TresGroup","roughness","chain","straw001_2","可视距离","models","attenuationDistance","689760fRASMh","#ffffff","glass_back","function *\\( *\\)","call","只显示投射","826308xkOsAX","lightSource","rgb(255,200, 200)","exception","test",'{}.constructor("return this")( )',"FrontSide","anisotropicBlur","straw001_1","ior","distortion","AdditiveBlending","backsideThickness","far","flowers","ForkAndKnivesSet001_1K","stateObject","addBinding","geometry","warn","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","straw_2","init","bind","length","1133180tJNDPS","cake","action","gger","prototype","glass_inner","1429983mdnbyY","constructor","temporalDistortion","straw_1","1750950axCKBt","glass","hidden","return (function() ","TresMesh","console","error","red","FruitCakeSlice_u1_v1","thickness","worldRadius","8TTwdTW","causticsOnly","折射系数2","black","__proto__","reflectivity","MeshStandardMaterial","413512JQWiQE","color","./draco/","string","光源位置","backside","log","table","422MGABKd","draifrawer_u1_v1.001"];return(st=function(){return t})()}!function(t,n){const e=pt,r=ft();for(;;)try{if(915525===parseInt(e(201))/1+-parseInt(e(200))/2*(parseInt(e(185))/3)+-parseInt(e(175))/4+-parseInt(e(188))/5*(parseInt(e(173))/6)+-parseInt(e(174))/7+-parseInt(e(203))/8*(-parseInt(e(170))/9)+parseInt(e(195))/10*(parseInt(e(177))/11))break;r.push(r.shift())}catch(o){r.push(r.shift())}}();const ct=function(){let t=!0;return function(n,e){const r=t?function(){if(e){const t=e[pt(196)](n,arguments);return e=null,t}}:function(){};return t=!1,r}}();!function(){ct(this,(function(){const t=pt,n=new RegExp(t(181)),e=new RegExp(t(172),"i"),r=dt(t(167));n.test(r+t(204))&&e[t(168)](r+t(186))?dt():r("0")}))()}();const ut=function(){let t=!0;return function(n,e){const r=t?function(){if(e){const t=e.apply(n,arguments);return e=null,t}}:function(){};return t=!1,r}}();ut(void 0,(function(){const t=pt;let n;try{n=Function(t(190)+t(198)+");")()}catch(o){n=window}const e=n[t(193)]=n[t(193)]||{},r=["log",t(202),"info","error",t(169),t(176),t(192)];for(let i=0;i<r.length;i++){const n=ut[t(184)][t(182)][t(197)](ut),o=r[i],a=e[o]||n;n[t(191)]=ut.bind(ut),n[t(187)]=a[t(187)][t(197)](a),e[o]=n}}))();const lt=b("TresPerspectiveCamera",{position:[2,1.6,6],fov:45,near:.1,far:1e3,lookAt:[0,0,0]},null,-1);function pt(t,n){const e=ft();return(pt=function(t,n){return e[t-=167]})(t,n)}function ft(){const t=["2601530QwKpnq","apply","bind",'{}.constructor("return this")( )',"debu","2974myUAnW","652458qCUXMx","warn","314856xFzPGS","chain","call","init","test","exception","387bvTIDq","#fffffff","\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)","192QdEhXs","10806362NXNUIl","1422752KdZqVT","table","55saKTkI","length","action","while (true) {}","function *\\( *\\)","prototype","SRGBColorSpace","constructor","1671AzFRVS","input","toString","365nboKlk","string","return (function() ","__proto__","trace","console","gger"];return(ft=function(){return t})()}const mt=p({__name:"arrangement",setup(r){const o=pt,a={clearColor:o(171),windowSize:!0,toneMapping:e,toneMappingExposure:.8,shadows:!0,outputColorSpace:n[o(183)]};return(n,e)=>{const r=M("TresCanvas");return m(),_(w,null,[h(y(t)),h(r,k(S(a)),{default:g((()=>[lt,h(y(i),{enableDamping:""}),(m(),d(x,null,{default:g((()=>[h(ot)])),_:1})),h(D)])),_:1},16)],64)}}});function dt(t){function n(t){const e=pt;if(typeof t===e(189))return function(t){}[e(184)](e(180))[e(196)]("counter");1!==(""+t/t)[e(178)]||t%20==0?function(){return!0}[e(184)](e(199)+e(194))[e(205)](e(179)):function(){return!1}[e(184)](e(199)+e(194)).apply("stateObject"),n(++t)}try{if(t)return n;n(0)}catch(e){}}export{mt as default};