function p(r){const{layers:s,parameters:a}=JSON.parse(r),e={layers:[],parameters:[]};for(const t of s){const n={...t};delete n._stateMachineGraphData,e.layers.push(n)}return e.parameters=a,JSON.stringify(e)}function f(r){const s=JSON.parse(r),a=s.type,e={type:a};for(const t in s)t!=="type"&&t.startsWith(a)&&(e[t]=s[t]);return JSON.stringify(e)}async function u(r,s,a,e){var o;const t=JSON.parse(s);delete t.quickPivot;const n=(o=t.belongToAtlas)==null?void 0:o.refId;if(!n)delete t.belongToAtlas;else{const i=await e(n);i&&((JSON.parse(i).sprites??[]).some(l=>l.refId==r)||(delete t.belongToAtlas,console.warn("Sprite atlas asset not includes this sprite.")))}return t.fullPath=a,JSON.stringify(t)}export{f as a,p as b,u as c};
