define(["exports"],function(n){"use strict";function r(n,r){return null!=n?n:r}r.EMPTY_OBJECT=Object.freeze({});var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(n,r,e){return n(e={path:r,exports:{},require:function(n,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&e.path)}},e.exports),e.exports}var u=t(function(n,r){var e;e=function(){var e,t,l;function y(n,r,e,t){return a(n).then(r,e,t)}function a(n){var r,e,n=n instanceof h?n:u(n)?(r=m(),n.then(function(n){r.resolve(n)},function(n){r.reject(n)},function(n){r.progress(n)}),r.promise):(e=n,new h(function(n){try{return a(n?n(e):e)}catch(n){return p(n)}}));return n}function h(n){this.then=n}function p(e){return new h(function(n,r){try{return r?a(r(e)):p(e)}catch(n){return p(n)}})}function m(){var n=new h(u),i=[],f=[],t=function(r,e,t){var u=m(),o="function"==typeof t?function(n){try{u.progress(t(n))}catch(n){u.progress(n)}}:function(n){u.progress(n)};return i.push(function(n){n.then(r,e).then(u.resolve,u.reject,o)}),f.push(o),u.promise},r=function(n){return v(f,n),n},e=function(n){return n=a(n),t=n.then,e=a,r=w,v(i,n),f=i=l,n};return{then:u,resolve:o,reject:c,progress:s,promise:n,resolver:{resolve:o,reject:c,progress:s}};function u(n,r,e){return t(n,r,e)}function o(n){return e(n)}function c(n){return e(p(n))}function s(n){return r(n)}}function u(n){return n&&"function"==typeof n.then}function o(n,p,v,d,g){return c(2,arguments),y(n,function(n){var r,e,t,u,o=n.length>>>0,i=Math.max(0,Math.min(p,o)),f=[],c=o-i+1,s=[],l=m();if(i)for(t=l.progress,e=function(n){s.push(n),--c||(r=e=w,l.reject(s))},r=function(n){f.push(n),--i||(r=e=w,l.resolve(f))},u=0;u>>0,o=[],i=m();if(u)for(e=function(n,r){y(n,f).then(function(n){o[r]=n,--u||i.resolve(o)},i.reject)},t=0;t>>0,o=arguments;if(o.length<=1)for(;;){if(e in t){r=t[e++];break}if(++e>=u)throw new TypeError}else r=o[1];for(;e