1 line
No EOL
1.7 KiB
Text
1 line
No EOL
1.7 KiB
Text
{"version":3,"file":"spread-CgU5AtxT.js","sources":["../../node_modules/svelte/src/runtime/internal/spread.js"],"sourcesContent":["/** @returns {{}} */\nexport function get_spread_update(levels, updates) {\n\tconst update = {};\n\tconst to_null_out = {};\n\tconst accounted_for = { $$scope: 1 };\n\tlet i = levels.length;\n\twhile (i--) {\n\t\tconst o = levels[i];\n\t\tconst n = updates[i];\n\t\tif (n) {\n\t\t\tfor (const key in o) {\n\t\t\t\tif (!(key in n)) to_null_out[key] = 1;\n\t\t\t}\n\t\t\tfor (const key in n) {\n\t\t\t\tif (!accounted_for[key]) {\n\t\t\t\t\tupdate[key] = n[key];\n\t\t\t\t\taccounted_for[key] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tlevels[i] = n;\n\t\t} else {\n\t\t\tfor (const key in o) {\n\t\t\t\taccounted_for[key] = 1;\n\t\t\t}\n\t\t}\n\t}\n\tfor (const key in to_null_out) {\n\t\tif (!(key in update)) update[key] = undefined;\n\t}\n\treturn update;\n}\n\nexport function get_spread_object(spread_props) {\n\treturn typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n"],"names":["get_spread_update","levels","updates","update","to_null_out","accounted_for","n","key","get_spread_object","spread_props"],"mappings":"AACO,SAASA,EAAkBC,EAAQC,EAAS,CAClD,MAAMC,EAAS,CAAA,EACTC,EAAc,CAAA,EACdC,EAAgB,CAAE,QAAS,GACjC,IAAI,EAAIJ,EAAO,OACf,KAAO,KAAK,CACX,MAAM,EAAIA,EAAO,CAAC,EACZK,EAAIJ,EAAQ,CAAC,EACnB,GAAII,EAAG,CACN,UAAWC,KAAO,EACXA,KAAOD,IAAIF,EAAYG,CAAG,EAAI,GAErC,UAAWA,KAAOD,EACZD,EAAcE,CAAG,IACrBJ,EAAOI,CAAG,EAAID,EAAEC,CAAG,EACnBF,EAAcE,CAAG,EAAI,GAGvBN,EAAO,CAAC,EAAIK,CACf,KACG,WAAWC,KAAO,EACjBF,EAAcE,CAAG,EAAI,CAGvB,CACD,UAAWA,KAAOH,EACXG,KAAOJ,IAASA,EAAOI,CAAG,EAAI,QAErC,OAAOJ,CACR,CAEO,SAASK,EAAkBC,EAAc,CAC/C,OAAO,OAAOA,GAAiB,UAAYA,IAAiB,KAAOA,EAAe,EACnF","x_google_ignoreList":[0]} |