/*! ATOOnline 2023-10-31, Copyright (c) 2023 Australian Taxation Office */ !function(t){if("function"==typeof bootstrap)bootstrap("promise",t);else if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeQ=t}else Q=t()}(function(){"use strict";var c=!1;try{throw new Error}catch(t){c=!!t.stack}function n(){}var o,i=b(),s=function(){var e={task:void 0,next:null},n=e,r=!1,o=void 0,i=!1;function u(){for(;e.next;){var t=(e=e.next).task;e.task=void 0;var n=e.domain;n&&(e.domain=void 0,n.enter());try{t()}catch(t){if(i)throw n&&n.exit(),setTimeout(u,0),n&&n.enter(),t;setTimeout(function(){throw t},0)}n&&n.exit()}r=!1}if(s=function(t){n=n.next={task:t,domain:i&&process.domain,next:null},r||(r=!0,o())},"undefined"!=typeof process&&process.nextTick)i=!0,o=function(){process.nextTick(u)};else if("function"==typeof setImmediate)o="undefined"!=typeof window?setImmediate.bind(window,u):function(){setImmediate(u)};else if("undefined"!=typeof MessageChannel){var t=new MessageChannel;t.port1.onmessage=function(){o=c,(t.port1.onmessage=u)()};var c=function(){t.port2.postMessage(0)};o=function(){setTimeout(u,0),c()}}else o=function(){setTimeout(u,0)};return s}(),e=Function.call;function t(t){return function(){return e.apply(t,arguments)}}var u,f,p=t(Array.prototype.slice),a=t(Array.prototype.reduce||function(t,n){var e=0,r=this.length;if(1===arguments.length)for(;;){if(e in this){n=this[e++];break}if(++e>=r)throw new TypeError}for(;e