2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 90
|
|
|
|
|
// Function ID: 1520
|
|
|
|
|
// Name: getSourceCodeScriptURL
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [91, 93, 94, 95]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
|
|
|
|
// Module 90 (getSourceCodeScriptURL)
|
|
|
|
|
function getSourceCodeScriptURL() {
|
|
|
|
|
if (null != scriptURL) {
|
|
|
|
|
const tmp3 = scriptURL;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
scriptURL = importDefault(91).getConstants().scriptURL;
|
|
|
|
|
const obj = importDefault(91);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
}
|
|
|
|
|
function resolveAssetSource(source) {
|
|
|
|
|
if (null != source) {
|
|
|
|
|
if ("object" !== typeof source) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const assetByID = require(93).getAssetByID(source);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (assetByID) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let _default = require(94) /* getScaledAssetPath */.default;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (undefined === first) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let str = getSourceCodeScriptURL();
|
2026-07-20 16:05:17 +00:00
|
|
|
let match;
|
|
|
|
|
if (null != str) {
|
|
|
|
|
match = str.match(/^https?:\/\/.*?\//);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
first = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (match) {
|
|
|
|
|
first = match[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const prototype = _default.prototype;
|
2026-07-23 10:11:24 +00:00
|
|
|
_default = new _default(first, (function getScriptURL() {
|
|
|
|
|
if (undefined === outer1_4) {
|
|
|
|
|
const str = outer1_7();
|
2026-07-20 16:05:17 +00:00
|
|
|
let text = str;
|
|
|
|
|
if (null == str) {
|
|
|
|
|
let tmp4 = text;
|
|
|
|
|
} else {
|
|
|
|
|
tmp4 = null;
|
|
|
|
|
if (!str.startsWith("assets://")) {
|
|
|
|
|
const substr = str.substring(0, str.lastIndexOf("/") + 1);
|
|
|
|
|
text = substr;
|
|
|
|
|
if (!substr.includes("://")) {
|
|
|
|
|
text = `file://${obj}`;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
outer1_4 = tmp4;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
return outer1_4;
|
|
|
|
|
})(), assetByID);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (closure_6) {
|
|
|
|
|
for (const item10033 of closure_6) {
|
|
|
|
|
let tmp15 = _default;
|
|
|
|
|
let item10033Result = item10033(obj);
|
|
|
|
|
let tmp17 = item10033Result;
|
|
|
|
|
if (null != item10033Result) {
|
|
|
|
|
obj2.return();
|
|
|
|
|
return item10033Result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return _default.defaultAsset();
|
|
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj3 = require(93);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return source;
|
|
|
|
|
}
|
|
|
|
|
let closure_6 = [];
|
2026-07-23 10:11:24 +00:00
|
|
|
resolveAssetSource.pickScale = require("pickScale").pickScale;
|
2026-07-20 16:05:17 +00:00
|
|
|
resolveAssetSource.setCustomSourceTransformer = function setCustomSourceTransformer(arg0) {
|
|
|
|
|
const items = [arg0];
|
|
|
|
|
};
|
|
|
|
|
resolveAssetSource.addCustomSourceTransformer = function addCustomSourceTransformer(arg0) {
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default resolveAssetSource;
|