blob: 9c05f0c1e000a642ba40c52eb49db7fb120bfc6e [file] [log] [blame]
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";Zone.__load_patch("bluebird",function(n,t,e){t[t.__symbol__("bluebird")]=function(o){["then","spread","finally"].forEach(function(n){e.patchMethod(o.prototype,n,function(n){return function(e,r){for(var c=t.current,i=function(n){var t=r[n];"function"==typeof t&&(r[n]=function(){var n=this,e=arguments;return new o(function(o,r){c.scheduleMicroTask("Promise.then",function(){try{o(t.apply(n,e))}catch(n){r(n)}})})})},u=0;u<r.length;u++)i(u);return n.apply(e,r)}})}),o.onPossiblyUnhandledRejection(function(n,o){try{t.current.runGuarded(function(){throw n})}catch(n){e.onUnhandledError(n)}}),n[e.symbol("ZoneAwarePromise")]=o}})});