PageSourceSearch

https://novelty.raksul.com/_nuxt/pXYz0RUP.js

js raksul.com collected 2026-09-24 15:34:59 UTC 12,970 bytes, 1 lines download raw bytes

1import{T as F}from"./D8utoXzS.js";import{p as C,L as E,O as re,A as V}from"./CTu_MlHI.js";import{S as ae}from"./_tzah56D.js";import{W as oe,R as se,a as ie,b as B,E as x}from"./BDNBNeJO.js";class A{static get ForceFullSceneLoadingForIncremental(){return A._ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(t){A._ForceFullSceneLoadingForIncremental=t}static get ShowLoadingScreen(){return A._ShowLoadingScreen}static set ShowLoadingScreen(t){A._ShowLoadingScreen=t}static get loggingLevel(){return A._LoggingLevel}static set loggingLevel(t){A._LoggingLevel=t}static get CleanBoneMatrixWeights(){return A._CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(t){A._CleanBoneMatrixWeights=t}}A._ForceFullSceneLoadingForIncremental=!1;A._ShowLoadingScreen=!0;A._CleanBoneMatrixWeights=!1;A._LoggingLevel=0;function le(n,t){const e=t.method||"GET";return new Promise((r,o)=>{const s=new oe;s.addEventListener("readystatechange",()=>{if(s.readyState==4)if(s.status==200){const a={};if(t.responseHeaders)for(const l of t.responseHeaders)a[l]=s.getResponseHeader(l)||"";r({response:s.response,headerValues:a})}else o(`Unable to fetch data from ${n}. Error code: ${s.status}`)}),s.open(e,n),s.send()})}var T;(function(n){n[n.Clean=0]="Clean",n[n.Stop=1]="Stop",n[n.Sync=2]="Sync",n[n.NoSync=3]="NoSync"})(T||(T={}));function ce(n){return!!n.createPlugin}function ue(n){return!!n.name}const $=new re,S={};let N=!1;function O(){return S[".babylon"]}function de(n){for(const t in S){const e=S[t];if(e.mimeType===n)return e}}function k(n,t){const e=S[n];return e||(E.Warn("Unable to find a plugin to load "+n+" files. Trying to use .babylon default plugin. To load from a specific filetype (eg. gltf) see: https://doc.babylonjs.com/features/featuresDeepDive/importers/loadingFileTypes"),t?O():void 0)}function ge(n){return!!S[n]}function fe(n){for(const t in S){const e=S[t].plugin;if(e.canDirectLoad&&e.canDirectLoad(n))return S[t]}return O()}function me(n){const t=n.indexOf("?");t!==-1&&(n=n.substring(0,t));const e=n.lastIndexOf(".");return n.substring(e,n.length).toLowerCase()}function he(n){return n.substring(0,5)==="data:"?n.substring(5):null}function G(n,t,e){let o="Unable to load from "+(n.rawData?"binary data":n.url);return t?o+=`: ${t}`:e&&(o+=`: ${e}`),o}async function I(n,t,e,r,o,s,a,l,g){const i=he(n.url);if(n.rawData&&!a)throw"When using ArrayBufferView to load data the file extension must be provided.";const c=!i&&!a?me(n.url):"";let d=a?k(a,!0):i?fe(n.url):k(c,!1);if(!d&&c){if(n.url&&!n.url.startsWith("blob:")){const m=await le(n.url,{method:"HEAD",responseHeaders:["Content-Type"]}),y=m.headerValues?m.headerValues["Content-Type"]:"";y&&(d=de(y))}d||(d=O())}if(!d)throw new Error(`No plugin or fallback for ${a??n.url}`);if(g?.[d.plugin.name]?.enabled===!1)throw new Error(`The '${d.plugin.name}' plugin is disabled via the loader options passed to the loading operation.`);if(n.rawData&&!d.isBinary)throw"Loading from ArrayBufferView can not be used with plugins that don't support binary loading.";return(m=>{if(ce(d.plugin)){const u=d.plugin.createPlugin(g??{});return u instanceof Promise?(u.then(m).catch(f=>{o("Error instantiating plugin.",f)}),null):(m(u),u)}else return m(d.plugin),d.plugin})(m=>{if(!m)throw`The loader plugin corresponding to the '${a}' file type has not been found. If using es6, please import the plugin you wish to use before.`;if($.notifyObservers(m),i&&(m.canDirectLoad&&m.canDirectLoad(n.url)||!ie(n.url))){if(m.directLoad){const L=m.directLoad(t,i);L instanceof Promise?L.then(w=>{e(m,w)}).catch(w=>{o("Error in directLoad of _loadData: "+w,w)}):e(m,L)}else e(m,i);return}const y=d.isBinary,u=(L,w)=>{if(t.isDisposed){o("Scene has been disposed");return}e(m,L,w)};let f=null,p=!1;m.onDisposeObservable?.add(()=>{p=!0,f&&(f.abort(),f=null),s()});const b=()=>{if(p)return;const L=(w,M)=>{o(w?.statusText,M)};if(!m.loadFile&&n.rawData)throw"Plugin does not support loading ArrayBufferView.";f=m.loadFile?m.loadFile(t,n.rawData||n.file||n.url,n.rootUrl,u,r,y,L,l):t._loadFile(n.file||n.url,u,r,!0,y,L)},v=t.getEngine();let P=v.enableOfflineSupport;if(P){let L=!1;for(const w of t.disableOfflineSupportExceptionRules)if(w.test(n.url)){L=!0;break}P=!L}P&&V.OfflineProviderFactory?t.offlineProvider=V.OfflineProviderFactory(n.url,b,v.disableManifestCheck):b()})}function U(n,t){let e,r,o=null,s=null;if(!t)e=n,r=F.GetFilename(n),n=F.GetFolderPath(n);else if(ue(t))e=`file:${t.name}`,r=t.name,o=t;else if(ArrayBuffer.isView(t))e="",r=se(),s=t;else if(t.startsWith("data:"))e=t,r="";else if(n){const a=t;if(a.substring(0,1)==="/")return F.Error("Wrong sceneFilename parameter"),null;e=n+a,r=a}else e=t,r=F.GetFilename(t),n=F.GetFolderPath(t);return{url:e,rootUrl:n,name:r,file:o,rawData:s}}function H(n){if(typeof n.extensions=="string"){const t=n.extensions;S[t.toLowerCase()]={plugin:n,isBinary:!1}}else{const t=n.extensions;
1Object.keys(t).forEach(e=>{S[e.toLowerCase()]={plugin:n,isBinary:t[e].isBinary,mimeType:t[e].mimeType}})}}function ye(n){H(n)}function pe(){return Array.from(Object.entries(S).reduce((n,[t,e])=>{let r=n.get(e.plugin.name);return r||n.set(e.plugin.name,r=[]),r.push({extension:t,isBinary:e.isBinary,mimeType:e.mimeType}),n},new Map)).map(([n,t])=>({name:n,extensions:t}))}function be(n,t,e){const{meshNames:r,rootUrl:o="",onProgress:s,pluginExtension:a,name:l,pluginOptions:g}=e??{};return z(r,o,n,t,s,a,l,g)}async function q(n,t,e="",r=C.LastCreatedScene,o=null,s=null,a=null,l=null,g="",i={}){if(!r)return E.Error("No scene available to import mesh to"),null;const c=U(t,e);if(!c)return null;const d={};r.addPendingData(d);const h=()=>{r.removePendingData(d)},m=(f,p)=>{const b=G(c,f,p);a?a(r,b,new B(b,x.SceneLoaderError,p)):E.Error(b),h()},y=s?f=>{try{s(f)}catch(p){m("Error in onProgress callback: "+p,p)}}:void 0,u=(f,p,b,v,P,L,w,M)=>{if(r.importedMeshesFiles.push(c.url),o)try{o(f,p,b,v,P,L,w,M)}catch(R){m("Error in onSuccess callback: "+R,R)}r.removePendingData(d)};return await I(c,r,(f,p,b)=>{if(f.rewriteRootURL&&(c.rootUrl=f.rewriteRootURL(c.rootUrl,b)),f.importMesh){const v=f,P=[],L=[],w=[];if(!v.importMesh(n,r,p,c.rootUrl,P,L,w,m))return;r.loadingPluginName=f.name,u(P,L,w,[],[],[],[],[])}else f.importMeshAsync(n,r,p,c.rootUrl,y,c.name).then(P=>{r.loadingPluginName=f.name,u(P.meshes,P.particleSystems,P.skeletons,P.animationGroups,P.transformNodes,P.geometries,P.lights,P.spriteManagers)}).catch(P=>{m(P.message,P)})},y,m,h,l,g,i)}function z(n,t,e,r,o,s,a,l){return new Promise((g,i)=>{try{q(n,t,e,r,(c,d,h,m,y,u,f,p)=>{g({meshes:c,particleSystems:d,skeletons:h,animationGroups:m,transformNodes:y,geometries:u,lights:f,spriteManagers:p})},o,(c,d,h)=>{i(h||new Error(d))},s,a,l).catch(i)}catch(c){i(c)}})}async function K(n,t="",e=C.LastCreatedEngine,r=null,o=null,s=null,a=null,l="",g={}){if(!e){F.Error("No engine available");return}await W(n,t,new ae(e),r,o,s,a,l,g)}function Y(n,t,e){const{rootUrl:r="",onProgress:o,pluginExtension:s,name:a,pluginOptions:l}=e??{};return J(r,n,t,o,s,a,l)}function Ae(n,t,e){return Y(n,t,e)}function J(n,t,e,r,o,s,a){return new Promise((l,g)=>{K(n,t,e,i=>{l(i)},r,(i,c,d)=>{g(d||new Error(c))},o,s,a)})}async function W(n,t="",e=C.LastCreatedScene,r=null,o=null,s=null,a=null,l="",g={}){if(!e)return E.Error("No scene available to append to"),null;const i=U(n,t);if(!i)return null;const c={};e.addPendingData(c);const d=()=>{e.removePendingData(c)};A.ShowLoadingScreen&&!N&&(N=!0,e.getEngine().displayLoadingUI(),e.executeWhenReady(()=>{e.getEngine().hideLoadingUI(),N=!1}));const h=(u,f)=>{const p=G(i,u,f);s?s(e,p,new B(p,x.SceneLoaderError,f)):E.Error(p),d()},m=o?u=>{try{o(u)}catch(f){h("Error in onProgress callback",f)}}:void 0,y=()=>{if(r)try{r(e)}catch(u){h("Error in onSuccess callback",u)}e.removePendingData(c)};return await I(i,e,(u,f)=>{if(u.load){if(!u.load(e,f,i.rootUrl,h))return;e.loadingPluginName=u.name,y()}else u.loadAsync(e,f,i.rootUrl,m,i.name).then(()=>{e.loadingPluginName=u.name,y()}).catch(b=>{h(b.message,b)})},m,h,d,a,l,g)}async function Q(n,t,e){const{rootUrl:r="",onProgress:o,pluginExtension:s,name:a,pluginOptions:l}=e??{};await X(r,n,t,o,s,a,l)}function Pe(n,t,e){return Q(n,t,e)}function X(n,t,e,r,o,s,a){return new Promise((l,g)=>{try{W(n,t,e,i=>{l(i)},r,(i,c,d)=>{g(d||new Error(c))},o,s,a).catch(g)}catch(i){g(i)}})}async function _(n,t="",e=C.LastCreatedScene,r=null,o=null,s=null,a=null,l="",g={}){if(!e)return E.Error("No scene available to load asset container to"),null;const i=U(n,t);if(!i)return null;const c={};e.addPendingData(c);const d=()=>{e.removePendingData(c)},h=(u,f)=>{const p=G(i,u,f);s?s(e,p,new B(p,x.SceneLoaderError,f)):E.Error(p),d()},m=o?u=>{try{o(u)}catch(f){h("Error in onProgress callback",f)}}:void 0,y=u=>{if(r)try{r(u)}catch(f){h("Error in onSuccess callback",f)}e.removePendingData(c)};return await I(i,e,(u,f)=>{if(u.loadAssetContainer){const b=u.loadAssetContainer(e,f,i.rootUrl,h);if(!b)return;b.populateRootNodes(),e.loadingPluginName=u.name,y(b)}else u.loadAssetContainerAsync?u.loadAssetContainerAsync(e,f,i.rootUrl,m,i.name).then(b=>{b.populateRootNodes(),e.loadingPluginName=u.name,y(b)}).catch(b=>{h(b.message,b)}):h("LoadAssetContainer is not supported by this plugin. Plugin did not provide a loadAssetContainer or loadAssetContainerAsync method.")},m,h,d,a,l,g)}function Z(n,t,e){const{rootUrl:r="",onProgress:o,pluginExtension:s,name:a,pluginOptions:l}=e??{};return j(r,n,t,o,s,a,l)}function Le(n,t,e){return Z(n,t,e)}function j(n,t,e,r,o,s,a){return new Promise((l,g)=>{try{_(n,t,e,i=>{l(i)},r,(i,c,d)=>{g(d||new Error(c))},o,s,a).catch(g)}catch(i){g(i)}})}async function ee(n,t="",e=C.LastCreatedScene,r=!0,o=0,s=null,a=null,l=null,g=null,i=null,c="",d={}){if(!e){E.Error("No scene available to load animations to");return}if(r){for(const u of e.animatables)u.reset();
1e.stopAllAnimations(),e.animationGroups.slice().forEach(u=>{u.dispose()}),e.getNodes().forEach(u=>{u.animations&&(u.animations=[])})}else switch(o){case 0:e.animationGroups.slice().forEach(y=>{y.dispose()});break;case 1:e.animationGroups.forEach(y=>{y.stop()});break;case 2:e.animationGroups.forEach(y=>{y.reset(),y.restart()});break;case 3:break;default:E.Error("Unknown animation group loading mode value '"+o+"'");return}const h=e.animatables.length;await _(n,t,e,y=>{y.mergeAnimationsTo(e,e.animatables.slice(h),s),y.dispose(),e.onAnimationFileImportedObservable.notifyObservers(e),a&&a(e)},l,g,i,c,d)}async function te(n,t,e){const{rootUrl:r="",overwriteAnimations:o,animationGroupLoadingMode:s,targetConverter:a,onProgress:l,pluginExtension:g,name:i,pluginOptions:c}=e??{};await ne(r,n,t,o,s,a,l,g,i,c)}function we(n,t,e){return te(n,t,e)}function ne(n,t,e,r,o,s,a,l,g,i){return new Promise((c,d)=>{try{ee(n,t,e,r,o,s,h=>{c(h)},a,(h,m,y)=>{d(y||new Error(m))},l,g,i).catch(d)}catch(h){d(h)}})}class D{static get ForceFullSceneLoadingForIncremental(){return A.ForceFullSceneLoadingForIncremental}static set ForceFullSceneLoadingForIncremental(t){A.ForceFullSceneLoadingForIncremental=t}static get ShowLoadingScreen(){return A.ShowLoadingScreen}static set ShowLoadingScreen(t){A.ShowLoadingScreen=t}static get loggingLevel(){return A.loggingLevel}static set loggingLevel(t){A.loggingLevel=t}static get CleanBoneMatrixWeights(){return A.CleanBoneMatrixWeights}static set CleanBoneMatrixWeights(t){A.CleanBoneMatrixWeights=t}static GetDefaultPlugin(){return O()}static GetPluginForExtension(t){return k(t,!0)?.plugin}static IsPluginForExtensionAvailable(t){return ge(t)}static RegisterPlugin(t){H(t)}static ImportMesh(t,e,r,o,s,a,l,g,i){q(t,e,r,o,s,a,l,g,i).catch(c=>l?.(C.LastCreatedScene,c?.message,c))}static ImportMeshAsync(t,e,r,o,s,a,l){return z(t,e,r,o,s,a,l)}static Load(t,e,r,o,s,a,l,g){K(t,e,r,o,s,a,l,g).catch(i=>a?.(C.LastCreatedScene,i?.message,i))}static LoadAsync(t,e,r,o,s,a){return J(t,e,r,o,s,a)}static Append(t,e,r,o,s,a,l,g){W(t,e,r,o,s,a,l,g).catch(i=>a?.(r??C.LastCreatedScene,i?.message,i))}static AppendAsync(t,e,r,o,s,a){return X(t,e,r,o,s,a)}static LoadAssetContainer(t,e,r,o,s,a,l,g){_(t,e,r,o,s,a,l,g).catch(i=>a?.(r??C.LastCreatedScene,i?.message,i))}static LoadAssetContainerAsync(t,e,r,o,s,a){return j(t,e,r,o,s,a)}static ImportAnimations(t,e,r,o,s,a,l,g,i,c,d){ee(t,e,r,o,s,a,l,g,i,c,d).catch(h=>i?.(r??C.LastCreatedScene,h?.message,h))}static ImportAnimationsAsync(t,e,r,o,s,a,l,g,i,c,d){return ne(t,e,r,o,s,a,g,c,d)}}D.NO_LOGGING=0;D.MINIMAL_LOGGING=1;D.SUMMARY_LOGGING=2;D.DETAILED_LOGGING=3;D.OnPluginActivatedObservable=$;const Fe=Object.freeze(Object.defineProperty({__proto__:null,AppendSceneAsync:Q,GetRegisteredSceneLoaderPluginMetadata:pe,ImportAnimationsAsync:te,ImportMeshAsync:be,LoadAssetContainerAsync:Z,LoadSceneAsync:Y,RegisterSceneLoaderPlugin:H,SceneLoader:D,get SceneLoaderAnimationGroupLoadingMode(){return T},appendSceneAsync:Pe,importAnimationsAsync:we,loadAssetContainerAsync:Le,loadSceneAsync:Ae,registerSceneLoaderPlugin:ye},Symbol.toStringTag,{value:"Module"}));export{H as R,D as S,A as a,Fe as s};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.