{"version":3,"sources":["node_modules\\react-native-on-web\\lib\\components\\Navigator\\lib\\ErrorUtils.js"],"names":["Object","defineProperty","exports","value","ErrorUtils","_inGuard","_globalHandler","setGlobalHandler","fun","reportError","error","reportFatalError","applyWithGuard","context","args","apply","e","applyWithGuardIfNeeded","inGuard","guard","name","guarded","arguments","default"],"mappings":"AAAA,aAAaA,OAAOC,cAAP,CAAsBC,OAAtB,CAA8B,YAA9B,CAA2C,CAACC,MAAM,IAAP,CAA3C;;AAEb,GAAIC,YAAW;AACfC,SAAS,CADM;AAEfC,eAAe,IAFA;AAGfC,iBAAiB,QAASA,iBAAT,CAA0BC,GAA1B,CAA8B;AAC/CJ,WAAWE,cAAX,CAA0BE,GAA1B;AACC,CALc;AAMfC,YAAY,QAASA,YAAT,CAAqBC,KAArB,CAA2B;AACvCN,WAAWE,cAAX,EAA2BF,WAAWE,cAAX,CAA0BI,KAA1B,CAA3B;AACC,CARc;AASfC,iBAAiB,QAASA,iBAAT,CAA0BD,KAA1B,CAAgC;AACjDN,WAAWE,cAAX,EAA2BF,WAAWE,cAAX,CAA0BI,KAA1B,CAAgC,IAAhC,CAA3B;AACC,CAXc;AAYfE,eAAe,QAASA,eAAT,CAAwBJ,GAAxB,CAA4BK,OAA5B,CAAoCC,IAApC,CAAyC;AACxD,GAAG;AACHV,WAAWC,QAAX;AACA,MAAOG,KAAIO,KAAJ,CAAUF,OAAV,CAAkBC,IAAlB,CAAP;AACC,OAAME,CAAN,CAAQ;AACTZ,WAAWK,WAAX,CAAuBO,CAAvB;AACC,CALD,OAKQ;AACRZ,WAAWC,QAAX;AACC;AACA,CArBc;AAsBfY,uBAAuB,QAASA,uBAAT,CAAgCT,GAAhC,CAAoCK,OAApC,CAA4CC,IAA5C,CAAiD;AACxE,GAAGV,WAAWc,OAAX,EAAH,CAAwB;AACxB,MAAOV,KAAIO,KAAJ,CAAUF,OAAV,CAAkBC,IAAlB,CAAP;AACC;AACDV,WAAWQ,cAAX,CAA0BJ,GAA1B,CAA8BK,OAA9B,CAAsCC,IAAtC;AACC,CA3Bc;AA4BfI,QAAQ,QAASA,QAAT,EAAkB;AAC1B,MAAOd,YAAWC,QAAlB;AACC,CA9Bc;AA+Bfc,MAAM,QAASA,MAAT,CAAeX,GAAf,CAAmBY,IAAnB,CAAwBP,OAAxB,CAAgC;AACtC,GAAG,MAAOL,IAAP,GAAa,UAAhB,CAA2B;;AAE3B,MAAO,KAAP;AACC;AACDY,KAAKA,MAAMZ,IAAIY,IAAV,EAAgB,mBAArB;AACA,QAASC,QAAT,EAAkB;AAClB;AACAjB,WAAWQ,cAAX;AACAJ,GADA;AAEAK,SAAS,IAFT;AAGAS,SAHA;AAIA,IAJA;AAKAF,IALA,CADA;;;AASC;;AAED,MAAOC,QAAP;AACC,CAlDc,CAAf,CAkDGnB,QAAQqB,OAAR;;;AAGHnB,UAHG","file":"ErrorUtils.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["'use strict';Object.defineProperty(exports,\"__esModule\",{value:true});\n\nvar ErrorUtils={\n_inGuard:0,\n_globalHandler:null,\nsetGlobalHandler:function setGlobalHandler(fun){\nErrorUtils._globalHandler=fun;\n},\nreportError:function reportError(error){\nErrorUtils._globalHandler&&ErrorUtils._globalHandler(error);\n},\nreportFatalError:function reportFatalError(error){\nErrorUtils._globalHandler&&ErrorUtils._globalHandler(error,true);\n},\napplyWithGuard:function applyWithGuard(fun,context,args){\ntry{\nErrorUtils._inGuard++;\nreturn fun.apply(context,args);\n}catch(e){\nErrorUtils.reportError(e);\n}finally{\nErrorUtils._inGuard--;\n}\n},\napplyWithGuardIfNeeded:function applyWithGuardIfNeeded(fun,context,args){\nif(ErrorUtils.inGuard()){\nreturn fun.apply(context,args);\n}\nErrorUtils.applyWithGuard(fun,context,args);\n},\ninGuard:function inGuard(){\nreturn ErrorUtils._inGuard;\n},\nguard:function guard(fun,name,context){\nif(typeof fun!=='function'){\n\nreturn null;\n}\nname=name||fun.name||'<generated guard>';\nfunction guarded(){\nreturn(\nErrorUtils.applyWithGuard(\nfun,\ncontext||this,\narguments,\nnull,\nname));\n\n\n}\n\nreturn guarded;\n}};exports.default=\n\n\nErrorUtils;"]}