MindMap/frontend/dist/assets/index-d31726c8.js

232 lines
485 KiB
JavaScript
Raw Normal View History

import{g as jl,c as he}from"./index-d78cd498.js";function Xl(e,n){for(var t=0;t<n.length;t++){const i=n[t];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(i,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var en={},la="1.13.7",Wo=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},oi=Array.prototype,fa=Object.prototype,Ro=typeof Symbol<"u"?Symbol.prototype:null,Vl=oi.push,Ft=oi.slice,gt=fa.toString,Hl=fa.hasOwnProperty,Su=typeof ArrayBuffer<"u",$l=typeof DataView<"u",Gl=Array.isArray,No=Object.keys,Oo=Object.create,Io=Su&&ArrayBuffer.isView,Zl=isNaN,Yl=isFinite,Bu=!{toString:null}.propertyIsEnumerable("toString"),Lo=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Kl=Math.pow(2,53)-1;function Ie(e,n){return n=n==null?e.length-1:+n,function(){for(var t=Math.max(arguments.length-n,0),i=Array(t),r=0;r<t;r++)i[r]=arguments[r+n];switch(n){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var a=Array(n+1);for(r=0;r<n;r++)a[r]=arguments[r];return a[n]=i,e.apply(this,a)}}function En(e){var n=typeof e;return n==="function"||n==="object"&&!!e}function ku(e){return e===null}function ha(e){return e===void 0}function pa(e){return e===!0||e===!1||gt.call(e)==="[object Boolean]"}function Wu(e){return!!(e&&e.nodeType===1)}function Ne(e){var n="[object "+e+"]";return function(t){return gt.call(t)===n}}const ci=Ne("String"),ga=Ne("Number"),Ru=Ne("Date"),Nu=Ne("RegExp"),Ou=Ne("Error"),ma=Ne("Symbol"),ba=Ne("ArrayBuffer");var Iu=Ne("Function"),Ql=Wo.document&&Wo.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof Ql!="function"&&(Iu=function(e){return typeof e=="function"||!1});const Re=Iu,Lu=Ne("Object");var Mu=$l&&(!/\[native code\]/.test(String(DataView))||Lu(new DataView(new ArrayBuffer(8)))),ya=typeof Map<"u"&&Lu(new Map),Jl=Ne("DataView");function ef(e){return e!=null&&Re(e.getInt8)&&ba(e.buffer)}const mt=Mu?ef:Jl,An=Gl||Ne("Array");function Fn(e,n){return e!=null&&Hl.call(e,n)}var ra=Ne("Arguments");(function(){ra(arguments)||(ra=function(e){return Fn(e,"callee")})})();const ui=ra;function qu(e){return!ma(e)&&Yl(e)&&!isNaN(parseFloat(e))}function Da(e){return ga(e)&&Zl(e)}function va(e){return function(){return e}}function Pu(e){return function(n){var t=e(n);return typeof t=="number"&&t>=0&&t<=Kl}}function zu(e){return function(n){return n==null?void 0:n[e]}}const Gt=zu("byteLength"),nf=Pu(Gt);var tf=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function rf(e){return Io?Io(e)&&!mt(e):nf(e)&&tf.test(gt.call(e))}const xa=Su?rf:va(!1),qe=zu("length");function af(e){for(var n={},t=e.length,i=0;i<t;++i)n[e[i]]=!0;return{contains:function(r){return n[r]===!0},push:function(r){return n[r]=!0,e.push(r)}}}function ju(e,n){n=af(n);var t=Lo.length,i=e.constructor,r=Re(i)&&i.prototype||fa,a="constructor";for(Fn(e,a)&&!n.contains(a)&&n.push(a);t--;)a=Lo[t],a in e&&e[a]!==r[a]&&!n.contains(a)&&n.push(a)}function Ee(e){if(!En(e))return[];if(No)return No(e);var n=[];for(var t in e)Fn(e,t)&&n.push(t);return Bu&&ju(e,n),n}function Xu(e){if(e==null)return!0;var n=qe(e);return typeof n=="number"&&(An(e)||ci(e)||ui(e))?n===0:qe(Ee(e))===0}function _a(e,n){var t=Ee(n),i=t.length;if(e==null)return!i;for(var r=Object(e),a=0;a<i;a++){var o=t[a];if(n[o]!==r[o]||!(o in r))return!1}return!0}function ye(e){if(e instanceof ye)return e;if(!(this instanceof ye))return new ye(e);this._wrapped=e}ye.VERSION=la;ye.prototype.value=function(){return this._wrapped};ye.prototype.valueOf=ye.prototype.toJSON=ye.prototype.value;ye.prototype.toString=function(){return String(this._wrapped)};function Mo(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Gt(e))}var qo="[object DataView]";function aa(e,n,t,i){if(e===n)return e!==0||1/e
((__t=(`+d+`))==null?'':_.escape(__t))+
'`:g?a+=`'+
((__t=(`+g+`))==null?'':__t)+
'`:b&&(a+=`';
`+b+`
__p+='`),s}),a+=`';
`;var o=n.variable;if(o){if(!hf.test(o))throw new Error("variable is not a bare identifier: "+o)}else a=`with(obj||{}){
`+a+`}
`,o="obj";a=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
`+a+`return __p;
`;var c;try{c=new Function(o,"_",a)}catch(s){throw s.source=a,s}var u=function(s){return c.call(this,s,ye)};return u.source="function("+o+`){
2025-09-10 10:26:48 +00:00
`+a+"}",u}function ms(e,n,t){n=Ct(n);var i=n.length;if(!i)return Re(t)?t.call(e):t;for(var r=0;r<i;r++){var a=e==null?void 0:e[n[r]];a===void 0&&(a=t,r=i),e=Re(a)?a.call(e):a}return e}var pf=0;function bs(e){var n=++pf+"";return e?e+n:n}function ys(e){var n=ye(e);return n._chain=!0,n}function Ds(e,n,t,i,r){if(!(i instanceof n))return e.apply(t,r);var a=ns(e.prototype),o=e.apply(a,r);return En(o)?o:a}var Ln=Ie(function(e,n){var t=Ln.placeholder,i=function(){for(var r=0,a=n.length,o=Array(a),c=0;c<a;c++)o[c]=n[c]===t?arguments[r++]:n[c];for(;r<arguments.length;)o.push(arguments[r++]);return Ds(e,i,this,this,o)};return i});Ln.placeholder=ye;const Ra=Ie(function(e,n,t){if(!Re(e))throw new TypeError("Bind must be called on a function");var i=Ie(function(r){return Ds(e,i,n,this,t.concat(r))});return i}),$e=Pu(qe);function Mn(e,n,t,i){if(i=i||[],!n&&n!==0)n=1/0;else if(n<=0)return i.concat(e);for(var r=i.length,a=0,o=qe(e);a<o;a++){var c=e[a];if($e(c)&&(An(c)||ui(c)))if(n>1)Mn(c,n-1,t,i),r=i.length;else for(var u=0,s=c.length;u<s;)i[r++]=c[u++];else t||(i[r++]=c)}return i}const vs=Ie(function(e,n){n=Mn(n,!1,!1);var t=n.length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var i=n[t];e[i]=Ra(e[i],e)}return e});function xs(e,n){var t=function(i){var r=t.cache,a=""+(n?n.apply(this,arguments):i);return Fn(r,a)||(r[a]=e.apply(this,arguments)),r[a]};return t.cache={},t}const Na=Ie(function(e,n,t){return setTimeout(function(){return e.apply(null,t)},n)}),_s=Ln(Na,ye,1);function Us(e,n,t){var i,r,a,o,c=0;t||(t={});var u=function(){c=t.leading===!1?0:Kn(),i=null,o=e.apply(r,a),i||(r=a=null)},s=function(){var d=Kn();!c&&t.leading===!1&&(c=d);var g=n-(d-c);return r=this,a=arguments,g<=0||g>n?(i&&(clearTimeout(i),i=null),c=d,o=e.apply(r,a),i||(r=a=null)):!i&&t.trailing!==!1&&(i=setTimeout(u,g)),o};return s.cancel=function(){clearTimeout(i),c=0,i=r=a=null},s}function Ts(e,n,t){var i,r,a,o,c,u=function(){var d=Kn()-r;n>d?i=setTimeout(u,n-d):(i=null,t||(o=e.apply(c,a)),i||(a=c=null))},s=Ie(function(d){return c=this,a=d,r=Kn(),i||(i=setTimeout(u,n),t&&(o=e.apply(c,a))),o});return s.cancel=function(){clearTimeout(i),i=a=c=null},s}function ws(e,n){return Ln(n,e)}function fi(e){return function(){return!e.apply(this,arguments)}}function Es(){var e=arguments,n=e.length-1;return function(){for(var t=n,i=e[n].apply(this,arguments);t--;)i=e[t].call(this,i);return i}}function As(e,n){return function(){if(--e<1)return n.apply(this,arguments)}}function Oa(e,n){var t;return function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=null),t}}const Fs=Ln(Oa,2);function Ia(e,n,t){n=ze(n,t);for(var i=Ee(e),r,a=0,o=i.length;a<o;a++)if(r=i[a],n(e[r],r,e))return r}function Cs(e){return function(n,t,i){t=ze(t,i);for(var r=qe(n),a=e>0?0:r-1;a>=0&&a<r;a+=e)if(t(n[a],a,n))return a;return-1}}const hi=Cs(1),La=Cs(-1);function Ma(e,n,t,i){t=ze(t,i,1);for(var r=t(n),a=0,o=qe(e);a<o;){var c=Math.floor((a+o)/2);t(e[c])<r?a=c+1:o=c}return a}function Ss(e,n,t){return function(i,r,a){var o=0,c=qe(i);if(typeof a=="number")e>0?o=a>=0?a:Math.max(a+c,o):c=a>=0?Math.min(a+1,c):a+c+1;else if(t&&a&&c)return a=t(i,r),i[a]===r?a:-1;if(r!==r)return a=n(Ft.call(i,o,c),Da),a>=0?a+o:-1;for(a=e>0?o:c-1;a>=0&&a<c;a+=e)if(i[a]===r)return a;return-1}}const qa=Ss(1,hi,Ma),Bs=Ss(-1,La);function yt(e,n,t){var i=$e(e)?hi:Ia,r=i(e,n,t);if(r!==void 0&&r!==-1)return e[r]}function ks(e,n){return yt(e,Wn(n))}function tn(e,n,t){n=St(n,t);var i,r;if($e(e))for(i=0,r=e.length;i<r;i++)n(e[i],i,e);else{var a=Ee(e);for(i=0,r=a.length;i<r;i++)n(e[a[i]],a[i],e)}return e}function gn(e,n,t){n=ze(n,t);for(var i=!$e(e)&&Ee(e),r=(i||e).length,a=Array(r),o=0;o<r;o++){var c=i?i[o]:o;a[o]=n(e[c],c,e)}return a}function Ws(e){var n=function(t,i,r,a){var o=!$e(t)&&Ee(t),c=(o||t).length,u=e>0?0:c-1;for(a||(r=t[o?o[u]:u],u+=e);u>=0&&u<c;u+=e){var s=o?o[u]:u;r=i(r,t[s],s,t)}return r};return function(t,i,r,a){var o=arguments.length>=3;return n(t,St(i,a,4),r,o)}}const Gn=Ws(1),Yt=Ws(-1);function Tn(e,n,t){var i=[];return n=ze(n,t),tn(e,function(r,a,o){n(r,a,o)&&i.push(r)}),i}function Rs(e,n,t){
See http://goo.gl/MqrFmX
`)},i=e.getNativePromise();if(e.isNode&&typeof MutationObserver>"u"){var r=he.setImmediate,a=process.nextTick;n=e.isRecentNode?function(c){r.call(he,c)}:function(c){a.call(process,c)}}else if(typeof i=="function"&&typeof i.resolve=="function"){var o=i.resolve();n=function(c){o.then(c)}}else typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))?n=function(){var c=document.createElement("div"),u={attributes:!0},s=!1,d=document.createElement("div"),g=new MutationObserver(function(){c.classList.toggle("foo"),s=!1});g.observe(d,u);var b=function(){s||(s=!0,d.classList.toggle("foo"))};return function(y){var l=new MutationObserver(function(){l.disconnect(),y()});l.observe(c,u),b()}}():typeof setImmediate<"u"?n=function(c){setImmediate(c)}:typeof setTimeout<"u"?n=function(c){setTimeout(c,0)}:n=t;return Yi=n,Yi}var Ki,Xo;function vf(){if(Xo)return Ki;Xo=1;function e(t,i,r,a,o){for(var c=0;c<o;++c)r[c+a]=t[c+i],t[c+i]=void 0}function n(t){this._capacity=t,this._length=0,this._front=0}return n.prototype._willBeOverCapacity=function(t){return this._capacity<t},n.prototype._pushOne=function(t){var i=this.length();this._checkCapacity(i+1);var r=this._front+i&this._capacity-1;this[r]=t,this._length=i+1},n.prototype.push=function(t,i,r){var a=this.length()+3;if(this._willBeOverCapacity(a)){this._pushOne(t),this._pushOne(i),this._pushOne(r);return}var o=this._front+a-3;this._checkCapacity(a);var c=this._capacity-1;this[o+0&c]=t,this[o+1&c]=i,this[o+2&c]=r,this._length=a},n.prototype.shift=function(){var t=this._front,i=this[t];return this[t]=void 0,this._front=t+1&this._capacity-1,this._length--,i},n.prototype.length=function(){return this._length},n.prototype._checkCapacity=function(t){this._capacity<t&&this._resizeTo(this._capacity<<1)},n.prototype._resizeTo=function(t){var i=this._capacity;this._capacity=t;var r=this._front,a=this._length,o=r+a&i-1;e(this,0,this,i,o)},Ki=n,Ki}var Vo;function xf(){if(Vo)return Lt.exports;Vo=1;var e;try{throw new Error}catch(u){e=u}var n=Df(),t=vf(),i=_e();function r(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new t(16),this._normalQueue=new t(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var u=this;this.drainQueues=function(){u._drainQueues()},this._schedule=n}r.prototype.setScheduler=function(u){var s=this._schedule;return this._schedule=u,this._customScheduler=!0,s},r.prototype.hasCustomScheduler=function(){return this._customScheduler},r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){i.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(u,s){s?(process.stderr.write("Fatal "+(u instanceof Error?u.stack:u)+`
`),process.exit(2)):this.throwLater(u)},r.prototype.throwLater=function(u,s){if(arguments.length===1&&(s=u,u=function(){throw s}),typeof setTimeout<"u")setTimeout(function(){u(s)},0);else try{this._schedule(function(){u(s)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}};function a(u,s,d){this._lateQueue.push(u,s,d),this._queueTick()}function o(u,s,d){this._normalQueue.push(u,s,d),this._queueTick()}function c(u){this._normalQueue._pushOne(u),this._queueTick()}return i.hasDevTools?(r.prototype.invokeLater=function(u,s,d){this._trampolineEnabled?a.call(this,u,s,d):this._schedule(function(){setTimeout(function(){u.call(s,d)},100)})},r.prototype.invoke=function(u,s,d){this._trampolineEnabled?o.call(this,u,s,d):this._schedule(function(){u.call(s,d)})},r.prototype.settlePromises=function(u){this._trampolineEnabled?c.call(this,u):this._schedule(function(){u._settlePromises()})}):(r.prototype.invokeLater=a,r.prototype.invoke=o,r.prototype.settlePromises=c),r.prototype._drainQueue=function(u){for(;u.length()>0;){var s=u.shift();if(typeof s!="function"){s._settlePromises();continue}var d=u.shift(),g=u.shift();s.call(d,g)}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},Lt.exports=r,Lt.exports.firstLineError=e,Lt.exports}var Qi,Ho;function wn(){if(Ho)return Qi;Ho=1;var e=rt(),n=e.freeze,t=_e(),i=t.inherits,r=t.notEnumerableProp;function a(p,h){function D(_){if(!(this instanceof D))return new D(_);r(this,"message",typeof _=="string"?_:h),r(this,"name",p),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return i(D,Error),D}var o,c,u=a("Warning","warning"),s=a("CancellationError","cancellation error"),d=a("TimeoutError","timeout error"),g=a("AggregateError","aggregate error");try{o=TypeError,c=RangeError}catch{o=a("TypeError","type error"),c=a("RangeError","range error")}for(var b="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m<b.length;++m)typeof Array.prototype[b[m]]=="function"&&(g.prototype[b[m]]=Array.prototype[b[m]]);e.defineProperty(g.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),g.prototype.isOperational=!0;var y=0;g.prototype.toString=function(){var p=Array(y*4+1).join(" "),h=`
`+p+`AggregateError of:
`;y++,p=Array(y*4+1).join(" ");for(var D=0;D<this.length;++D){for(var _=this[D]===this?"[Circular AggregateError]":this[D]+"",U=_.split(`
`),w=0;w<U.length;++w)U[w]=p+U[w];_=U.join(`
`),h+=_+`
`}return y--,h};function l(p){if(!(this instanceof l))return new l(p);r(this,"name","OperationalError"),r(this,"message",p),this.cause=p,this.isOperational=!0,p instanceof Error?(r(this,"message",p.message),r(this,"stack",p.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}i(l,Error);var f=Error.__BluebirdErrorTypes__;return f||(f=n({CancellationError:s,TimeoutError:d,OperationalError:l,RejectionError:l,AggregateError:g}),e.defineProperty(Error,"__BluebirdErrorTypes__",{value:f,writable:!1,enumerable:!1,configurable:!1})),Qi={Error,TypeError:o,RangeError:c,CancellationError:f.CancellationError,OperationalError:f.OperationalError,TimeoutError:f.TimeoutError,AggregateError:f.AggregateError,Warning:u},Qi}var Ji,$o;function _f(){return $o||($o=1,Ji=function(e,n){var t=_e(),i=t.errorObj,r=t.isObject;function a(g,b){if(r(g)){if(g instanceof e)return g;var m=c(g);if(m===i){b&&b._pushContext();var y=e.reject(m.e);return b&&b._popContext(),y}else if(typeof m=="function"){if(s(g)){var y=new e(n);return g._then(y._fulfill,y._reject,void 0,y,null),y}return d(g,m,b)}}return g}function o(g){return g.then}function c(g){try{return o(g)}catch(b){return i.e=b,i}}var u={}.hasOwnProperty;function s(g){try{return u.call(g,"_promise0")}catch{return!1}}function d(g,b,m){var y=new e(n),l=y;m&&m._pushContext(),y._captureStackTrace(),m&&m._popContext();var f=!0,p=t.tryCatch(b).call(g,h,D);f=!1,y&&p===i&&(y._rejectCallback(p.e,!0,!0),y=null);function h(_){y&&(y._resolveCallback(_),y=null)}function D(_){y&&(y._rejectCallback(_,f,!0),y=null)}return l}return a}),Ji}var er,Go;function Uf(){return Go||(Go=1,er=function(e,n,t,i,r){var a=_e();a.isArray;function o(u){switch(u){case-2:return[];case-3:return{}}}function c(u){var s=this._promise=new e(n);u instanceof e&&s._propagateFrom(u,3),s._setOnCancel(this),this._values=u,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.inherits(c,r),c.prototype.length=function(){return this._length},c.prototype.promise=function(){return this._promise},c.prototype._init=function u(s,d){var g=t(this._values,this._promise);if(g instanceof e){g=g._target();var b=g._bitField;if(this._values=g,b&50397184)if(b&33554432)g=g._value();else return b&16777216?this._reject(g._reason()):this._cancel();else return this._promise._setAsyncGuaranteed(),g._then(u,this._reject,void 0,this,d)}if(g=a.asArray(g),g===null){var m=i("expecting an array or an iterable object but got "+a.classString(g)).reason();this._promise._rejectCallback(m,!1);return}if(g.length===0){d===-5?this._resolveEmptyArray():this._resolve(o(d));return}this._iterate(g)},c.prototype._iterate=function(u){var s=this.getActualLength(u.length);this._length=s,this._values=this.shouldCopyValues()?new Array(s):this._values;for(var d=this._promise,g=!1,b=null,m=0;m<s;++m){var y=t(u[m],d);y instanceof e?(y=y._target(),b=y._bitField):b=null,g?b!==null&&y.suppressUnhandledRejections():b!==null?b&50397184?b&33554432?g=this._promiseFulfilled(y._value(),m):b&16777216?g=this._promiseRejected(y._reason(),m):g=this._promiseCancelled(m):(y._proxy(this,m),this._values[m]=y):g=this._promiseFulfilled(y,m)}g||d._setAsyncGuaranteed()},c.prototype._isResolved=function(){return this._values===null},c.prototype._resolve=function(u){this._values=null,this._promise._fulfill(u)},c.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},c.prototype._reject=function(u){this._values=null,this._promise._rejectCallback(u,!1)},c.prototype._promiseFulfilled=function(u,s){this._values[s]=u;var d=++this._totalResolved;return d>=this._length?(this._resolve(this._values),!0):!1},c.prototype._promiseCancelled=function(){return this._cancel(),!0},c.prototype._promiseRejected=function(u){return this._totalResolved++,this._reject(u),!0},c.prototype._resultCancelled=function(){if(!this._isResolved()){var u=this._values;if(this._cancel(),u instanceof e)u.cancel();else for(var s=0;s<u.length;++s)u[s]instanceof e&&u[s].cancel()}},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActu
See http://goo.gl/MqrFmX
`);if(!V.longStackTraces&&G()){var W=e.prototype._captureStackTrace,M=e.prototype._attachExtraTrace;V.longStackTraces=!0,_=function(){if(i.haveItemsQueued()&&!V.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
2025-09-10 10:26:48 +00:00
`);e.prototype._captureStackTrace=W,e.prototype._attachExtraTrace=M,n.deactivateLongStackTraces(),i.enableTrampoline(),V.longStackTraces=!1},e.prototype._captureStackTrace=P,e.prototype._attachExtraTrace=k,n.activateLongStackTraces(),i.disableTrampolineIfNecessary()}},e.hasLongStackTraces=function(){return V.longStackTraces&&G()};var U=function(){try{if(typeof CustomEvent=="function"){var W=new CustomEvent("CustomEvent");return a.global.dispatchEvent(W),function(M,j){var Y=new CustomEvent(M.toLowerCase(),{detail:j,cancelable:!0});return!a.global.dispatchEvent(Y)}}else if(typeof Event=="function"){var W=new Event("CustomEvent");return a.global.dispatchEvent(W),function(j,Y){var ae=new Event(j.toLowerCase(),{cancelable:!0});return ae.detail=Y,!a.global.dispatchEvent(ae)}}else{var W=document.createEvent("CustomEvent");return W.initCustomEvent("testingtheevent",!1,!0,{}),a.global.dispatchEvent(W),function(j,Y){var ae=document.createEvent("CustomEvent");return ae.initCustomEvent(j.toLowerCase(),!1,!0,Y),!a.global.dispatchEvent(ae)}}}catch{}return function(){return!1}}(),w=function(){return a.isNode?function(){return process.emit.apply(process,arguments)}:a.global?function(W){var M="on"+W.toLowerCase(),j=a.global[M];return j?(j.apply(a.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function A(W,M){return{promise:M}}var O={promiseCreated:A,promiseFulfilled:A,promiseRejected:A,promiseResolved:A,promiseCancelled:A,promiseChained:function(W,M,j){return{promise:M,child:j}},warning:function(W,M){return{warning:M}},unhandledRejection:function(W,M,j){return{reason:M,promise:j}},rejectionHandled:A},I=function(W){var M=!1;try{M=w.apply(null,arguments)}catch(Y){i.throwLater(Y),M=!0}var j=!1;try{j=U(W,O[W].apply(null,arguments))}catch(Y){i.throwLater(Y),j=!0}return j||M};e.config=function(W){if(W=Object(W),"longStackTraces"in W&&(W.longStackTraces?e.longStackTraces():!W.longStackTraces&&e.hasLongStackTraces()&&_()),"warnings"in W){var M=W.warnings;V.warnings=!!M,D=V.warnings,a.isObject(M)&&"wForgottenReturn"in M&&(D=!!M.wForgottenReturn)}if("cancellation"in W&&W.cancellation&&!V.cancellation){if(i.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");e.prototype._clearCancellationData=X,e.prototype._propagateFrom=F,e.prototype._onCancel=L,e.prototype._setOnCancel=x,e.prototype._attachCancellationCallback=T,e.prototype._execute=Q,B=F,V.cancellation=!0}return"monitoring"in W&&(W.monitoring&&!V.monitoring?(V.monitoring=!0,e.prototype._fireEvent=I):!W.monitoring&&V.monitoring&&(V.monitoring=!1,e.prototype._fireEvent=$)),e};function $(){return!1}e.prototype._fireEvent=$,e.prototype._execute=function(W,M,j){try{W(M,j)}catch(Y){return Y}},e.prototype._onCancel=function(){},e.prototype._setOnCancel=function(W){},e.prototype._attachCancellationCallback=function(W){},e.prototype._captureStackTrace=function(){},e.prototype._attachExtraTrace=function(){},e.prototype._clearCancellationData=function(){},e.prototype._propagateFrom=function(W,M){};function Q(W,M,j){var Y=this;try{W(M,j,function(ae){if(typeof ae!="function")throw new TypeError("onCancel must be a function, got: "+a.toString(ae));Y._attachCancellationCallback(ae)})}catch(ae){return ae}}function T(W){if(!this._isCancellable())return this;var M=this._onCancel();M!==void 0?a.isArray(M)?M.push(W):this._setOnCancel([M,W]):this._setOnCancel(W)}function L(){return this._onCancelField}function x(W){this._onCancelField=W}function X(){this._cancellationParent=void 0,this._onCancelField=void 0}function F(W,M){if(M&1){this._cancellationParent=W;var j=W._branchesRemainingToCancel;j===void 0&&(j=0),W._branchesRemainingToCancel=j+1}M&2&&W._isBound()&&this._setBoundTo(W._boundTo)}function R(W,M){M&2&&W._isBound()&&this._setBoundTo(W._boundTo)}var B=R;function N(){var W=this._boundTo;return W!==void 0&&W instanceof e?W.isFulfilled()?W.value():void 0:W}function P(){this._trace=new ee(this._peekContext())}function k(W,M){if(o(W)){var j=this._trace;if(j!==void 0&&M&&(j=j._parent),j!==void 0)j.attachExtraTrace(W);else if(!W.__stackCleaned__){var Y=ve(W);
`+Y.stack.join(`
`)),a.notEnumerableProp(W,"__stackCleaned__",!0)}}}function E(W,M,j,Y,ae){if(W===void 0&&M!==null&&D){if(ae!==void 0&&ae._returnedNonUndefined()||!(Y._bitField&65535))return;j&&(j=j+" ");var ce="",fe="";if(M._trace){for(var de=M._trace.stack.split(`
`),ge=ue(de),xe=ge.length-1;xe>=0;--xe){var be=ge[xe];if(!d.test(be)){var Le=be.match(g);Le&&(ce="at "+Le[1]+":"+Le[2]+":"+Le[3]+" ");break}}if(ge.length>0){for(var ut=ge[0],xe=0;xe<de.length;++xe)if(de[xe]===ut){xe>0&&(fe=`
`+de[xe-1]);break}}}var nn="a promise was created in a "+j+"handler "+ce+"but was not returned from it, see http://goo.gl/rRqMUw"+fe;Y._warn(nn,!0,M)}}function Z(W,M){var j=W+" is deprecated and will be removed in a future version.";return M&&(j+=" Use "+M+" instead."),J(j)}function J(W,M,j){if(V.warnings){var Y=new r(W),ae;if(M)j._attachExtraTrace(Y);else if(V.longStackTraces&&(ae=e._peekContext()))ae.attachExtraTrace(Y);else{var ce=ve(Y);Y.stack=ce.message+`
`+ce.stack.join(`
`)}I("warning",Y)||z(Y,"",!0)}}function K(W,M){for(var j=0;j<M.length-1;++j)M[j].push("From previous event:"),M[j]=M[j].join(`
`);return j<M.length&&(M[j]=M[j].join(`
`)),W+`
`+M.join(`
`)}function re(W){for(var M=0;M<W.length;++M)(W[M].length===0||M+1<W.length&&W[M][0]===W[M+1][0])&&(W.splice(M,1),M--)}function se(W){for(var M=W[0],j=1;j<W.length;++j){for(var Y=W[j],ae=M.length-1,ce=M[ae],fe=-1,de=Y.length-1;de>=0;--de)if(Y[de]===ce){fe=de;break}for(var de=fe;de>=0;--de){var ge=Y[de];if(M[ae]===ge)M.pop(),ae--;else break}M=Y}}function ue(W){for(var M=[],j=0;j<W.length;++j){var Y=W[j],ae=Y===" (No stack trace)"||b.test(Y),ce=ae&&H(Y);ae&&!ce&&(y&&Y.charAt(0)!==" "&&(Y=" "+Y),M.push(Y))}return M}function le(W){for(var M=W.stack.replace(/\s+$/g,"").split(`
`),j=0;j<M.length;++j){var Y=M[j];if(Y===" (No stack trace)"||b.test(Y))break}return j>0&&W.name!="SyntaxError"&&(M=M.slice(j)),M}function ve(W){var M=W.stack,j=W.toString();return M=typeof M=="string"&&M.length>0?le(W):[" (No stack trace)"],{message:j,stack:W.name=="SyntaxError"?M:ue(M)}}function z(W,M,j){if(typeof console<"u"){var Y;if(a.isObject(W)){var ae=W.stack;Y=M+m(ae,W)}else Y=M+String(W);typeof l=="function"?l(Y,j):(typeof console.log=="function"||typeof console.log=="object")&&console.log(Y)}}function ne(W,M,j,Y){var ae=!1;try{typeof M=="function"&&(ae=!0,W==="rejectionHandled"?M(Y):M(j,Y))}catch(ce){i.throwLater(ce)}W==="unhandledRejection"?!I(W,j,Y)&&!ae&&z(j,"Unhandled rejection "):I(W,Y)}function oe(W){var M;if(typeof W=="function")M="[function "+(W.name||"anonymous")+"]";else{M=W&&typeof W.toString=="function"?W.toString():a.toString(W);var j=/\[object [a-zA-Z0-9$_]+\]/;if(j.test(M))try{var Y=JSON.stringify(W);M=Y}catch{}M.length===0&&(M="(empty array)")}return"(<"+v(M)+">, no stack trace)"}function v(W){var M=41;return W.length<M?W:W.substr(0,M-3)+"..."}function G(){return typeof ie=="function"}var H=function(){return!1},S=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function C(W){var M=W.match(S);if(M)return{fileName:M[1],line:parseInt(M[2],10)}}function q(W,M){if(G()){for(var j=W.stack.split(`
`),Y=M.stack.split(`
`),ae=-1,ce=-1,fe,de,ge=0;ge<j.length;++ge){var xe=C(j[ge]);if(xe){fe=xe.fileName,ae=xe.line;break}}for(var ge=0;ge<Y.length;++ge){var xe=C(Y[ge]);if(xe){de=xe.fileName,ce=xe.line;break}}ae<0||ce<0||!fe||!de||fe!==de||ae>=ce||(H=function(be){if(s.test(be))return!0;var Le=C(be);return!!(Le&&Le.fileName===fe&&ae<=Le.line&&Le.line<=ce)})}}function ee(W){this._parent=W,this._promisesCreated=0;var M=this._length=1+(W===void 0?0:W._length);ie(this,ee),M>32&&this.uncycle()}a.inherits(ee,Error),n.CapturedTrace=ee,ee.prototype.uncycle=function(){var W=this._length;if(!(W<2)){for(var M=[],j={},Y=0,ae=this;ae!==void 0;++Y)M.push(ae),ae=ae._parent;W=this._length=Y;for(var Y=W-1;Y>=0;--Y){var ce=M[Y].stack;j[ce]===void 0&&(j[ce]=Y)}for(var Y=0;Y<W;++Y){var fe=M[Y].stack,de=j[fe];if(de!==void 0&&de!==Y){de>0&&(M[de-1]._parent=void 0,M[de-1]._length=1),M[Y]._parent=void 0,M[Y]._length=1;var ge=Y>0?M[Y-1]:this;de<W-1?(ge._parent=M[de+1],ge._parent.uncycle(),ge._length=ge._parent._length+1):(ge._parent=void 0,ge._length=1);for(var xe=ge._length+1,be=Y-2;be>=0;--be)M[be]._length=xe,xe++;return}}}},ee.prototype.attachExtraTrace=function(W){if(!W.__stackCleaned__){this.uncycle();for(var M=ve(W),j=M.message,Y=[M.stack],ae=this;ae!==void 0;)Y.push(ue(ae.stack.split(`
`))),ae=ae._parent;se(Y),re(Y),a.notEnumerableProp(W,"stack",K(j,Y)),a.notEnumerableProp(W,"__stackCleaned__",!0)}};var ie=function(){var M=/^\s*at\s*/,j=function(fe,de){return typeof fe=="string"?fe:de.name!==void 0&&de.message!==void 0?de.toString():oe(de)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,b=M,m=j;var Y=Error.captureStackTrace;return H=function(fe){return s.test(fe)},function(fe,de){Error.stackTraceLimit+=6,Y(fe,de),Error.stackTraceLimit-=6}}var ae=new Error;if(typeof ae.stack=="string"&&ae.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return b=/@/,m=j,y=!0,function(de){de.stack=new Error().stack};var ce;try{throw new Error}catch(fe){ce="stack"in fe}return!("stack"in ae)&&ce&&typeof Error.stackTraceLimit=="number"?(b=M,m=j,function(de){Error.stackTraceLimit+=6;try{throw new Error}catch(ge){de.stack=ge.stack}Error.stackTraceLimit-=6}):(m=function(fe,de){return typeof fe=="string"?fe:(typeof de=="object"||typeof de=="function")&&de.name!==void 0&&de.message!==void 0?de.toString():oe(de)},null)}();typeof console<"u"&&typeof console.warn<"u"&&(l=function(W){console.warn(W)},a.isNode&&process.stderr.isTTY?l=function(W,M){var j=M?"\x1B[33m":"\x1B[31m";console.warn(j+W+`\x1B[0m
2025-09-10 10:26:48 +00:00
`)}:!a.isNode&&typeof new Error().stack=="string"&&(l=function(W,M){console.warn("%c"+W,M?"color: darkorange":"color: red")}));var V={warnings:p,longStackTraces:!1,cancellation:!1,monitoring:!1};return h&&e.longStackTraces(),{longStackTraces:function(){return V.longStackTraces},warnings:function(){return V.warnings},cancellation:function(){return V.cancellation},monitoring:function(){return V.monitoring},propagateFromFunction:function(){return B},boundValueFunction:function(){return N},checkForgottenReturns:E,setBounds:q,warn:J,deprecated:Z,CapturedTrace:ee,fireDomEvent:U,fireGlobalEvent:w}}),tr}var ir,Ko;function Ef(){return Ko||(Ko=1,ir=function(e,n){var t=_e(),i=e.CancellationError,r=t.errorObj;function a(g,b,m){this.promise=g,this.type=b,this.handler=m,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function o(g){this.finallyHandler=g}o.prototype._resultCancelled=function(){c(this.finallyHandler)};function c(g,b){return g.cancelPromise!=null?(arguments.length>1?g.cancelPromise._reject(b):g.cancelPromise._cancel(),g.cancelPromise=null,!0):!1}function u(){return d.call(this,this.promise._target()._settledValue())}function s(g){if(!c(this,g))return r.e=g,r}function d(g){var b=this.promise,m=this.handler;if(!this.called){this.called=!0;var y=this.isFinallyHandler()?m.call(b._boundValue()):m.call(b._boundValue(),g);if(y!==void 0){b._setReturnedNonUndefined();var l=n(y,b);if(l instanceof e){if(this.cancelPromise!=null)if(l._isCancelled()){var f=new i("late cancellation observer");return b._attachExtraTrace(f),r.e=f,r}else l.isPending()&&l._attachCancellationCallback(new o(this));return l._then(u,s,void 0,this,void 0)}}}return b.isRejected()?(c(this),r.e=g,r):(c(this),g)}return e.prototype._passThrough=function(g,b,m,y){return typeof g!="function"?this.then():this._then(m,y,void 0,new a(this,b,g),void 0)},e.prototype.lastly=e.prototype.finally=function(g){return this._passThrough(g,0,d,d)},e.prototype.tap=function(g){return this._passThrough(g,1,d)},a}),ir}var rr,Qo;function Af(){return Qo||(Qo=1,rr=function(e){var n=_e(),t=rt().keys,i=n.tryCatch,r=n.errorObj;function a(o,c,u){return function(s){var d=u._boundValue();e:for(var g=0;g<o.length;++g){var b=o[g];if(b===Error||b!=null&&b.prototype instanceof Error){if(s instanceof b)return i(c).call(d,s)}else if(typeof b=="function"){var m=i(b).call(d,s);if(m===r)return m;if(m)return i(c).call(d,s)}else if(n.isObject(s)){for(var y=t(b),l=0;l<y.length;++l){var f=y[l];if(b[f]!=s[f])continue e}return i(c).call(d,s)}}return e}}return a}),rr}var ar,Jo;function id(){if(Jo)return ar;Jo=1;var e=_e(),n=e.maybeWrapAsError,t=wn(),i=t.OperationalError,r=rt();function a(s){return s instanceof Error&&r.getPrototypeOf(s)===Error.prototype}var o=/^(?:name|message|stack|cause)$/;function c(s){var d;if(a(s)){d=new i(s),d.name=s.name,d.message=s.message,d.stack=s.stack;for(var g=r.keys(s),b=0;b<g.length;++b){var m=g[b];o.test(m)||(d[m]=s[m])}return d}return e.markAsOriginatingFromRejection(s),s}function u(s,d){return function(g,b){if(s!==null){if(g){var m=c(n(g));s._attachExtraTrace(m),s._reject(m)}else if(!d)s._fulfill(b);else{for(var y=arguments.length,l=new Array(Math.max(y-1,0)),f=1;f<y;++f)l[f-1]=arguments[f];s._fulfill(l)}s=null}}}return ar=u,ar}var or,ec;function Ff(){return ec||(ec=1,or=function(e,n,t,i,r){var a=_e(),o=a.tryCatch;e.method=function(c){if(typeof c!="function")throw new e.TypeError("expecting a function but got "+a.classString(c));return function(){var u=new e(n);u._captureStackTrace(),u._pushContext();var s=o(c).apply(this,arguments),d=u._popContext();return r.checkForgottenReturns(s,d,"Promise.method",u),u._resolveFromSyncValue(s),u}},e.attempt=e.try=function(c){if(typeof c!="function")return i("expecting a function but got "+a.classString(c));var u=new e(n);u._captureStackTrace(),u._pushContext();var s;if(arguments.length>1){r.deprecated("calling Promise.try with more than 1 argument");var d=arguments[1],g=arguments[2];s=a.isArray(d)?o(c).apply(g,d):o(c).call(g,d)}else s=o(c)();var b=u._popContext();return r.checkForgott
See http://goo.gl/MqrFmX
`);return this._settledValue()},i=n.prototype.error=n.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},r=n.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},a=n.prototype.isRejected=function(){return(this._bitField&16777216)!==0},o=n.prototype.isPending=function(){return(this._bitField&50397184)===0},c=n.prototype.isResolved=function(){return(this._bitField&50331648)!==0};n.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},e.prototype.isPending=function(){return o.call(this._target())},e.prototype.isRejected=function(){return a.call(this._target())},e.prototype.isFulfilled=function(){return r.call(this._target())},e.prototype.isResolved=function(){return c.call(this._target())},e.prototype.value=function(){return t.call(this._target())},e.prototype.reason=function(){var u=this._target();return u._unsetRejectionIsUnhandled(),i.call(u)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=n}),dr}var lr,ac;function Wf(){return ac||(ac=1,lr=function(e,n,t,i,r,a){var o=_e(),c=o.canEvaluate,u=o.tryCatch,s=o.errorObj,d;if(c){for(var g=function(h){return new Function("value","holder",`
'use strict';
holder.pIndex = value;
holder.checkFulfillment(this);
`.replace(/Index/g,h))},b=function(h){return new Function("promise","holder",`
'use strict';
holder.pIndex = promise;
`.replace(/Index/g,h))},m=function(h){for(var D=new Array(h),_=0;_<D.length;++_)D[_]="this.p"+(_+1);var U=D.join(" = ")+" = null;",w=`var promise;
`+D.map(function($){return`
promise = `+$+`;
if (promise instanceof Promise) {
promise.cancel();
}
`}).join(`
2025-09-10 10:26:48 +00:00
`),A=D.join(", "),O="Holder$"+h,I=`return function(tryCatch, errorObj, Promise, async) {
'use strict';
function [TheName](fn) {
[TheProperties]
this.fn = fn;
this.asyncNeeded = true;
this.now = 0;
}
[TheName].prototype._callFunction = function(promise) {
promise._pushContext();
var ret = tryCatch(this.fn)([ThePassedArguments]);
promise._popContext();
if (ret === errorObj) {
promise._rejectCallback(ret.e, false);
} else {
promise._resolveCallback(ret);
}
};
[TheName].prototype.checkFulfillment = function(promise) {
var now = ++this.now;
if (now === [TheTotal]) {
if (this.asyncNeeded) {
async.invoke(this._callFunction, this, promise);
} else {
this._callFunction(promise);
}
}
};
[TheName].prototype._resultCancelled = function() {
[CancellationCode]
};
return [TheName];
}(tryCatch, errorObj, Promise, async);
2025-09-10 10:26:48 +00:00
`;return I=I.replace(/\[TheName\]/g,O).replace(/\[TheTotal\]/g,h).replace(/\[ThePassedArguments\]/g,A).replace(/\[TheProperties\]/g,U).replace(/\[CancellationCode\]/g,w),new Function("tryCatch","errorObj","Promise","async",I)(u,s,e,r)},y=[],l=[],f=[],p=0;p<8;++p)y.push(m(p+1)),l.push(g(p+1)),f.push(b(p+1));d=function(h){this._reject(h)}}e.join=function(){var h=arguments.length-1,D;if(h>0&&typeof arguments[h]=="function"&&(D=arguments[h],h<=8&&c)){var x=new e(i);x._captureStackTrace();for(var _=y[h-1],U=new _(D),w=l,A=0;A<h;++A){var O=t(arguments[A],x);if(O instanceof e){O=O._target();var I=O._bitField;I&50397184?I&33554432?w[A].call(x,O._value(),U):I&16777216?x._reject(O._reason()):x._cancel():(O._then(w[A],d,void 0,x,U),f[A](O,U),U.asyncNeeded=!1)}else w[A].call(x,O,U)}if(!x._isFateSealed()){if(U.asyncNeeded){var $=a();$!==null&&(U.fn=o.domainBind($,U.fn))}x._setAsyncGuaranteed(),x._setOnCancel(U)}return x}for(var Q=arguments.length,T=new Array(Q),L=0;L<Q;++L)T[L]=arguments[L];D&&T.pop();var x=new n(T).promise();return D!==void 0?x.spread(D):x}}),lr}var fr,oc;function Rf(){return oc||(oc=1,fr=function(e,n,t,i,r,a){var o=e._getDomain,c=_e(),u=c.tryCatch,s=c.errorObj,d=e._async;function g(m,y,l,f){this.constructor$(m),this._promise._captureStackTrace();var p=o();this._callback=p===null?y:c.domainBind(p,y),this._preservedValues=f===r?new Array(this.length()):null,this._limit=l,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}c.inherits(g,n),g.prototype._asyncInit=function(){this._init$(void 0,-2)},g.prototype._init=function(){},g.prototype._promiseFulfilled=function(m,y){var l=this._values,f=this.length(),p=this._preservedValues,h=this._limit;if(y<0){if(y=y*-1-1,l[y]=m,h>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(h>=1&&this._inFlight>=h)return l[y]=m,this._queue.push(y),!1;p!==null&&(p[y]=m);var D=this._promise,_=this._callback,U=D._boundValue();D._pushContext();var w=u(_).call(U,m,y,f),A=D._popContext();if(a.checkForgottenReturns(w,A,p!==null?"Promise.filter":"Promise.map",D),w===s)return this._reject(w.e),!0;var O=i(w,this._promise);if(O instanceof e){O=O._target();var I=O._bitField;if(I&50397184)if(I&33554432)w=O._value();else return I&16777216?(this._reject(O._reason()),!0):(this._cancel(),!0);else return h>=1&&this._inFlight++,l[y]=O,O._proxy(this,(y+1)*-1),!1}l[y]=w}var $=++this._totalResolved;return $>=f?(p!==null?this._filter(l,p):this._resolve(l),!0):!1},g.prototype._drainQueue=function(){for(var m=this._queue,y=this._limit,l=this._values;m.length>0&&this._inFlight<y;){if(this._isResolved())return;var f=m.pop();this._promiseFulfilled(l[f],f)}},g.prototype._filter=function(m,y){for(var l=y.length,f=new Array(l),p=0,h=0;h<l;++h)m[h]&&(f[p++]=y[h]);f.length=p,this._resolve(f)},g.prototype.preservedValues=function(){return this._preservedValues};function b(m,y,l,f){if(typeof y!="function")return t("expecting a function but got "+c.classString(y));var p=0;if(l!==void 0)if(typeof l=="object"&&l!==null){if(typeof l.concurrency!="number")return e.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(l.concurrency)));p=l.concurrency}else return e.reject(new TypeError("options argument must be an object but it is "+c.classString(l)));return p=typeof p=="number"&&isFinite(p)&&p>=1?p:0,new g(m,y,p,f).promise()}e.prototype.map=function(m,y){return b(this,m,y,null)},e.map=function(m,y,l,f){return b(m,y,l,f)}}),fr}var hr,cc;function Nf(){if(cc)return hr;cc=1;var e=Object.create;if(e){var n=e(null),t=e(null);n[" size"]=t[" size"]=0}return hr=function(i){var r=_e(),a=r.canEvaluate,o=r.isIdentifier,c,u;{var s=function(f){return new Function("ensureMethod",`
return function(obj) {
'use strict'
var len = this.length;
ensureMethod(obj, 'methodName');
switch(len) {
case 1: return obj.methodName(this[0]);
case 2: return obj.methodName(this[0], this[1]);
case 3: return obj.methodName(this[0], this[1], this[2]);
case 0: return obj.methodName();
default:
return obj.methodName.apply(obj, this);
}
};
`.replace(/methodName/g,f))(b)},d=function(f){return new Function("obj",`
'use strict';
return obj.propertyName;
2025-09-10 10:26:48 +00:00
`.replace("propertyName",f))},g=function(f,p,h){var D=h[f];if(typeof D!="function"){if(!o(f))return null;if(D=p(f),h[f]=D,h[" size"]++,h[" size"]>512){for(var _=Object.keys(h),U=0;U<256;++U)delete h[_[U]];h[" size"]=_.length-256}}return D};c=function(f){return g(f,s,n)},u=function(f){return g(f,d,t)}}function b(f,p){var h;if(f!=null&&(h=f[p]),typeof h!="function"){var D="Object "+r.classString(f)+" has no method '"+r.toString(p)+"'";throw new i.TypeError(D)}return h}function m(f){var p=this.pop(),h=b(f,p);return h.apply(f,this)}i.prototype.call=function(f){for(var p=arguments.length,h=new Array(Math.max(p-1,0)),D=1;D<p;++D)h[D-1]=arguments[D];if(a){var _=c(f);if(_!==null)return this._then(_,void 0,void 0,h,void 0)}return h.push(f),this._then(m,void 0,void 0,h,void 0)};function y(f){return f[this]}function l(f){var p=+this;return p<0&&(p=Math.max(0,p+f.length)),f[p]}i.prototype.get=function(f){var p=typeof f=="number",h;if(p)h=l;else if(a){var D=u(f);h=D!==null?D:y}else h=y;return this._then(h,void 0,void 0,f,void 0)}},hr}var pr,uc;function Of(){return uc||(uc=1,pr=function(e,n,t,i,r,a){var o=_e(),c=wn().TypeError,u=_e().inherits,s=o.errorObj,d=o.tryCatch,g={};function b(D){setTimeout(function(){throw D},0)}function m(D){var _=t(D);return _!==D&&typeof D._isDisposable=="function"&&typeof D._getDisposer=="function"&&D._isDisposable()&&_._setDisposable(D._getDisposer()),_}function y(D,_){var U=0,w=D.length,A=new e(r);function O(){if(U>=w)return A._fulfill();var I=m(D[U++]);if(I instanceof e&&I._isDisposable()){try{I=t(I._getDisposer().tryDispose(_),D.promise)}catch($){return b($)}if(I instanceof e)return I._then(O,b,null,null,null)}O()}return O(),A}function l(D,_,U){this._data=D,this._promise=_,this._context=U}l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},l.prototype.tryDispose=function(D){var _=this.resource(),U=this._context;U!==void 0&&U._pushContext();var w=_!==g?this.doDispose(_,D):null;return U!==void 0&&U._popContext(),this._promise._unsetDisposable(),this._data=null,w},l.isDisposer=function(D){return D!=null&&typeof D.resource=="function"&&typeof D.tryDispose=="function"};function f(D,_,U){this.constructor$(D,_,U)}u(f,l),f.prototype.doDispose=function(D,_){var U=this.data();return U.call(D,D,_)};function p(D){return l.isDisposer(D)?(this.resources[this.index]._setDisposable(D),D.promise()):D}function h(D){this.length=D,this.promise=null,this[D-1]=null}h.prototype._resultCancelled=function(){for(var D=this.length,_=0;_<D;++_){var U=this[_];U instanceof e&&U.cancel()}},e.using=function(){var D=arguments.length;if(D<2)return n("you must pass at least 2 arguments to Promise.using");var _=arguments[D-1];if(typeof _!="function")return n("expecting a function but got "+o.classString(_));var U,w=!0;D===2&&Array.isArray(arguments[0])?(U=arguments[0],D=U.length,w=!1):(U=arguments,D--);for(var A=new h(D),O=0;O<D;++O){var I=U[O];if(l.isDisposer(I)){var $=I;I=I.promise(),I._setDisposable($)}else{var Q=t(I);Q instanceof e&&(I=Q._then(p,null,null,{resources:A,index:O},void 0))}A[O]=I}for(var T=new Array(A.length),O=0;O<T.length;++O)T[O]=e.resolve(A[O]).reflect();var L=e.all(T).then(function(X){for(var F=0;F<X.length;++F){var R=X[F];if(R.isRejected())return s.e=R.error(),s;if(!R.isFulfilled()){L.cancel();return}X[F]=R.value()}x._pushContext(),_=d(_);var B=w?_.apply(void 0,X):_(X),N=x._popContext();return a.checkForgottenReturns(B,N,"Promise.using",x),B}),x=L.lastly(function(){var X=new e.PromiseInspection(L);return y(A,X)});return A.promise=x,x._setOnCancel(A),x},e.prototype._setDisposable=function(D){this._bitField=this._bitField|131072,this._disposer=D},e.prototype._isDisposable=function(){return(this._bitField&131072)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(D){if(typeof D=="function")return new f(D,this,i());throw new c}}),
See http://goo.gl/MqrFmX
`.replace("%s",f)+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)));return}p=p._target();var h=p._bitField;h&50397184?h&33554432?e._async.invoke(this._promiseFulfilled,this,p._value()):h&16777216?e._async.invoke(this._promiseRejected,this,p._reason()):this._promiseCancelled():(this._yieldedPromise=p,p._proxy(this,null))},e.coroutine=function(y,l){if(typeof y!="function")throw new c(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var f=Object(l).yieldHandler,p=m,h=new Error().stack;return function(){var D=y.apply(this,arguments),_=new p(void 0,void 0,f,h),U=_.promise();return _._generator=D,_._promiseFulfilled(void 0),U}},e.coroutine.addYieldHandler=function(y){if(typeof y!="function")throw new c("expecting a function but got "+u.classString(y));g.push(y)},e.spawn=function(y){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),typeof y!="function")return n(`generatorFunction must be a function
See http://goo.gl/MqrFmX
2025-09-10 10:26:48 +00:00
`);var l=new m(y,this),f=l.promise();return l._run(e.spawn),f}}),mr}var br,lc;function Mf(){return lc||(lc=1,br=function(e){var n=_e(),t=e._async,i=n.tryCatch,r=n.errorObj;function a(u,s){var d=this;if(!n.isArray(u))return o.call(d,u,s);var g=i(s).apply(d._boundValue(),[null].concat(u));g===r&&t.throwLater(g.e)}function o(u,s){var d=this,g=d._boundValue(),b=u===void 0?i(s).call(g,null):i(s).call(g,null,u);b===r&&t.throwLater(b.e)}function c(u,s){var d=this;if(!u){var g=new Error(u+"");g.cause=u,u=g}var b=i(s).call(d._boundValue(),u);b===r&&t.throwLater(b.e)}e.prototype.asCallback=e.prototype.nodeify=function(u,s){if(typeof u=="function"){var d=o;s!==void 0&&Object(s).spread&&(d=a),this._then(d,c,void 0,this,u)}return this}}),br}var yr,fc;function qf(){return fc||(fc=1,yr=function(e,n){var t={},i=_e(),r=id(),a=i.withAppended,o=i.maybeWrapAsError,c=i.canEvaluate,u=wn().TypeError,s="Async",d={__isPromisified__:!0},g=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],b=new RegExp("^(?:"+g.join("|")+")$"),m=function(L){return i.isIdentifier(L)&&L.charAt(0)!=="_"&&L!=="constructor"};function y(L){return!b.test(L)}function l(L){try{return L.__isPromisified__===!0}catch{return!1}}function f(L,x,X){var F=i.getDataPropertyOrDefault(L,x+X,d);return F?l(F):!1}function p(L,x,X){for(var F=0;F<L.length;F+=2){var R=L[F];if(X.test(R)){for(var B=R.replace(X,""),N=0;N<L.length;N+=2)if(L[N]===B)throw new u(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
2025-09-10 10:26:48 +00:00
`.replace("%s",x))}}}function h(L,x,X,F){for(var R=i.inheritedDataKeys(L),B=[],N=0;N<R.length;++N){var P=R[N],k=L[P],E=F===m?!0:m(P);typeof k=="function"&&!l(k)&&!f(L,P,x)&&F(P,k,L,E)&&B.push(P,k)}return p(B,x,X),B}var D=function(L){return L.replace(/([$])/,"\\$")},_;{var U=function(L){for(var x=[L],X=Math.max(0,L-1-3),F=L-1;F>=X;--F)x.push(F);for(var F=L+1;F<=3;++F)x.push(F);return x},w=function(L){return i.filledRange(L,"_arg","")},A=function(L){return i.filledRange(Math.max(L,3),"_arg","")},O=function(L){return typeof L.length=="number"?Math.max(Math.min(L.length,1024),0):0};_=function(L,x,X,F,R,B){var N=Math.max(0,O(F)-1),P=U(N),k=typeof L=="string"||x===t;function E(re){var se=w(re).join(", "),ue=re>0?", ":"",le;return k?le=`ret = callback.call(this, {{args}}, nodeback); break;
`:le=x===void 0?`ret = callback({{args}}, nodeback); break;
`:`ret = callback.call(receiver, {{args}}, nodeback); break;
`,le.replace("{{args}}",se).replace(", ",ue)}function Z(){for(var re="",se=0;se<P.length;++se)re+="case "+P[se]+":"+E(P[se]);return re+=`
default:
var args = new Array(len + 1);
var i = 0;
for (var i = 0; i < len; ++i) {
args[i] = arguments[i];
}
args[i] = nodeback;
[CodeForCall]
break;
`.replace("[CodeForCall]",k?`ret = callback.apply(this, args);
`:`ret = callback.apply(receiver, args);
`),re}var J=typeof L=="string"?"this != null ? this['"+L+"'] : fn":"fn",K=`'use strict';
var ret = function (Parameters) {
'use strict';
var len = arguments.length;
var promise = new Promise(INTERNAL);
promise._captureStackTrace();
var nodeback = nodebackForPromise(promise, `+B+`);
var ret;
var callback = tryCatch([GetFunctionCode]);
switch(len) {
[CodeForSwitchCase]
}
if (ret === errorObj) {
promise._rejectCallback(maybeWrapAsError(ret.e), true, true);
}
if (!promise._isFateSealed()) promise._setAsyncGuaranteed();
return promise;
};
notEnumerableProp(ret, '__isPromisified__', true);
return ret;
2025-09-10 10:26:48 +00:00
`.replace("[CodeForSwitchCase]",Z()).replace("[GetFunctionCode]",J);return K=K.replace("Parameters",A(N)),new Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",K)(e,F,x,a,o,r,i.tryCatch,i.errorObj,i.notEnumerableProp,n)}}function I(L,x,X,F,R,B){var N=function(){return this}(),P=L;typeof P=="string"&&(L=F);function k(){var E=x;x===t&&(E=this);var Z=new e(n);Z._captureStackTrace();var J=typeof P=="string"&&this!==N?this[P]:L,K=r(Z,B);try{J.apply(E,a(arguments,K))}catch(re){Z._rejectCallback(o(re),!0,!0)}return Z._isFateSealed()||Z._setAsyncGuaranteed(),Z}return i.notEnumerableProp(k,"__isPromisified__",!0),k}var $=c?_:I;function Q(L,x,X,F,R){for(var B=new RegExp(D(x)+"$"),N=h(L,x,B,X),P=0,k=N.length;P<k;P+=2){var E=N[P],Z=N[P+1],J=E+x;if(F===$)L[J]=$(E,t,E,Z,x,R);else{var K=F(Z,function(){return $(E,t,E,Z,x,R)});i.notEnumerableProp(K,"__isPromisified__",!0),L[J]=K}}return i.toFastProperties(L),L}function T(L,x,X){return $(L,x,void 0,L,null,X)}e.promisify=function(L,x){if(typeof L!="function")throw new u("expecting a function but got "+i.classString(L));if(l(L))return L;x=Object(x);var X=x.context===void 0?t:x.context,F=!!x.multiArgs,R=T(L,X,F);return i.copyDescriptors(L,R,y),R},e.promisifyAll=function(L,x){if(typeof L!="function"&&typeof L!="object")throw new u(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);x=Object(x);var X=!!x.multiArgs,F=x.suffix;typeof F!="string"&&(F=s);var R=x.filter;typeof R!="function"&&(R=m);var B=x.promisifier;if(typeof B!="function"&&(B=$),!i.isIdentifier(F))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
2025-09-10 10:26:48 +00:00
`);for(var N=i.inheritedDataKeys(L),P=0;P<N.length;++P){var k=L[N[P]];N[P]!=="constructor"&&i.isClass(k)&&(Q(k.prototype,F,R,B,X),Q(k,F,R,B,X))}return Q(L,F,R,B,X)}}),yr}var Dr,hc;function Pf(){return hc||(hc=1,Dr=function(e,n,t,i){var r=_e(),a=r.isObject,o=rt(),c;typeof Map=="function"&&(c=Map);var u=function(){var b=0,m=0;function y(l,f){this[b]=l,this[b+m]=f,b++}return function(f){m=f.size,b=0;var p=new Array(f.size*2);return f.forEach(y,p),p}}(),s=function(b){for(var m=new c,y=b.length/2|0,l=0;l<y;++l){var f=b[y+l],p=b[l];m.set(f,p)}return m};function d(b){var m=!1,y;if(c!==void 0&&b instanceof c)y=u(b),m=!0;else{var l=o.keys(b),f=l.length;y=new Array(f*2);for(var p=0;p<f;++p){var h=l[p];y[p]=b[h],y[p+f]=h}}this.constructor$(y),this._isMap=m,this._init$(void 0,-3)}r.inherits(d,n),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(b,m){this._values[m]=b;var y=++this._totalResolved;if(y>=this._length){var l;if(this._isMap)l=s(this._values);else{l={};for(var f=this.length(),p=0,h=this.length();p<h;++p)l[this._values[p+f]]=this._values[p]}return this._resolve(l),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(b){return b>>1};function g(b){var m,y=t(b);if(a(y))y instanceof e?m=y._then(e.props,void 0,void 0,void 0,void 0):m=new d(y).promise();else return i(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`);return y instanceof e&&m._propagateFrom(y,2),m}e.prototype.props=function(){return g(this)},e.props=function(b){return g(b)}}),Dr}var vr,pc;function zf(){return pc||(pc=1,vr=function(e,n,t,i){var r=_e(),a=function(c){return c.then(function(u){return o(u,c)})};function o(c,u){var s=t(c);if(s instanceof e)return a(s);if(c=r.asArray(c),c===null)return i("expecting an array or an iterable object but got "+r.classString(c));var d=new e(n);u!==void 0&&d._propagateFrom(u,3);for(var g=d._fulfill,b=d._reject,m=0,y=c.length;m<y;++m){var l=c[m];l===void 0&&!(m in c)||e.cast(l)._then(g,b,void 0,d,null)}return d}e.race=function(c){return o(c,void 0)},e.prototype.race=function(){return o(this,void 0)}}),vr}var xr,gc;function jf(){return gc||(gc=1,xr=function(e,n,t,i,r,a){var o=e._getDomain,c=_e(),u=c.tryCatch;function s(y,l,f,p){this.constructor$(y);var h=o();this._fn=h===null?l:c.domainBind(h,l),f!==void 0&&(f=e.resolve(f),f._attachCancellationCallback(this)),this._initialValue=f,this._currentCancellable=null,p===r?this._eachValues=Array(this._length):p===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}c.inherits(s,n),s.prototype._gotAccum=function(y){this._eachValues!==void 0&&this._eachValues!==null&&y!==r&&this._eachValues.push(y)},s.prototype._eachComplete=function(y){return this._eachValues!==null&&this._eachValues.push(y),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(y){this._promise._resolveCallback(y),this._values=null},s.prototype._resultCancelled=function(y){if(y===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof e&&this._currentCancellable.cancel(),this._initialValue instanceof e&&this._initialValue.cancel())},s.prototype._iterate=function(y){this._values=y;var l,f,p=y.length;if(this._initialValue!==void 0?(l=this._initialValue,f=0):(l=e.resolve(y[0]),f=1),this._currentCancellable=l,!l.isRejected())for(;f<p;++f){var h={accum:null,value:y[f],index:f,length:p,array:this};l=l._then(b,void 0,void 0,h,void 0)}this._eachValues!==void 0&&(l=l._then(this._eachComplete,void 0,void 0,this,void 0)),l._then(d,d,void 0,l,this)},e.prototype.reduce=function(y,l){return g(this,y,l,null)},e.reduce=function(y,l,f,p){return g(y,l,f,p)};function d(y,l){this.isFulfilled()?l._resolve(y):l._reject(y)}function g(y,l,f,p){if(typeof l!="function")return t("expecting a function but got "+c.classString(l));var h=new s(y,l,f,p);return h.promise()}function b(y){this.accum=y,this.array._gotAccum(y);var l=i(this.value,this.array._promise);return l instanceof e?(this.array._currentCancellable=l,l._then(m,void 0,void 0,this,void 0)):m.call(this,l)}function m(y){var l=this.array,f=l._promise,p=u(l._fn);f._pushContext();var h;l._eachValues!==void 0?h=p.call(f._boundValue(),y,this.index,this.length):h=p.call(f._boundValue(),this.accum,y,this.index,this.length),h instanceof e&&(l._currentCancellable=h);var D=f._popContext();return a.checkForgottenReturns(h,D,l._eachValues!==void 0?"Promise.each":"Promise.reduce",f),h}}),xr}var _r,mc;function Xf(){return mc||(mc=1,_r=function(e,n,t){var i=e.PromiseInspection,r=_e();function a(o){this.constructor$(o)}r.inherits(a,n),a.prototype._promiseResolved=function(o,c){this._values[o]=c;var u=++this._totalResolved;return u>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseFulfilled=function(o,c){var u=new i;return u._bitField=33554432,u._settledValueField=o,this._promiseResolved(c,u)},a.prototype._promiseRejected=function(o,c){var u=new i;return u._bitField=16777216,u._settledValueField=o,this._promiseResolved(c,u)},e.settle=function(o){return t.deprecated(".settle()",".reflect()"),new a(o).promise()},e.prototype.settle=function(){return e.settle(this)}}),_r}var Ur,bc;function Vf(){return bc||(bc=1,Ur=function(e,n,t){var i=_e(),r=wn().RangeError,a=wn().AggregateError,o=
See http://goo.gl/MqrFmX
`);var b=new u(d),m=b.promise();return b.setHowMany(g),b.init(),m}e.some=function(d,g){return s(d,g)},e.prototype.some=function(d){return s(this,d)},e._SomePromiseArray=u}),Ur}var Tr,yc;function Hf(){return yc||(yc=1,Tr=function(e,n){var t=e.map;e.prototype.filter=function(i,r){return t(this,i,r,n)},e.filter=function(i,r,a){return t(i,r,a,n)}}),Tr}var wr,Dc;function $f(){return Dc||(Dc=1,wr=function(e,n){var t=e.reduce,i=e.all;function r(){return i(this)}function a(o,c){return t(o,c,n,n)}e.prototype.each=function(o){return t(this,o,n,0)._then(r,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(o){return t(this,o,n,n)},e.each=function(o,c){return t(o,c,n,0)._then(r,void 0,void 0,o,void 0)},e.mapSeries=a}),wr}var Er,vc;function Gf(){return vc||(vc=1,Er=function(e){var n=e._SomePromiseArray;function t(i){var r=new n(i),a=r.promise();return r.setHowMany(1),r.setUnwrap(),r.init(),a}e.any=function(i){return t(i)},e.prototype.any=function(){return t(this)}}),Er}(function(e){e.exports=function(){var n=function(){return new b(`circular promise resolution chain
See http://goo.gl/MqrFmX
2025-09-10 10:26:48 +00:00
`)},t=function(){return new T.PromiseInspection(this._target())},i=function(F){return T.reject(new b(F))};function r(){}var a={},o=_e(),c;o.isNode?c=function(){var F=process.domain;return F===void 0&&(F=null),F}:c=function(){return null},o.notEnumerableProp(T,"_getDomain",c);var u=rt(),s=xf(),d=new s;u.defineProperty(T,"_async",{value:d});var g=wn(),b=T.TypeError=g.TypeError;T.RangeError=g.RangeError;var m=T.CancellationError=g.CancellationError;T.TimeoutError=g.TimeoutError,T.OperationalError=g.OperationalError,T.RejectionError=g.OperationalError,T.AggregateError=g.AggregateError;var y=function(){},l={},f={},p=_f()(T,y),h=Uf()(T,y,p,i,r),D=Tf()(T),_=D.create,U=wf()(T,D);U.CapturedTrace;var w=Ef()(T,p),A=Af()(f),O=id(),I=o.errorObj,$=o.tryCatch;function Q(F,R){if(typeof R!="function")throw new b("expecting a function but got "+o.classString(R));if(F.constructor!==T)throw new b(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
2025-09-10 10:26:48 +00:00
`)}function T(F){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,F!==y&&(Q(this,F),this._resolveFromExecutor(F)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}T.prototype.toString=function(){return"[object Promise]"},T.prototype.caught=T.prototype.catch=function(F){var R=arguments.length;if(R>1){var B=new Array(R-1),N=0,P;for(P=0;P<R-1;++P){var k=arguments[P];if(o.isObject(k))B[N++]=k;else return i("expecting an object but got A catch statement predicate "+o.classString(k))}return B.length=N,F=arguments[P],this.then(void 0,A(B,F,this))}return this.then(void 0,F)},T.prototype.reflect=function(){return this._then(t,t,void 0,this,void 0)},T.prototype.then=function(F,R){if(U.warnings()&&arguments.length>0&&typeof F!="function"&&typeof R!="function"){var B=".then() only accepts functions but was passed: "+o.classString(F);arguments.length>1&&(B+=", "+o.classString(R)),this._warn(B)}return this._then(F,R,void 0,void 0,void 0)},T.prototype.done=function(F,R){var B=this._then(F,R,void 0,void 0,void 0);B._setIsFinal()},T.prototype.spread=function(F){return typeof F!="function"?i("expecting a function but got "+o.classString(F)):this.all()._then(F,void 0,void 0,l,void 0)},T.prototype.toJSON=function(){var F={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(F.fulfillmentValue=this.value(),F.isFulfilled=!0):this.isRejected()&&(F.rejectionReason=this.reason(),F.isRejected=!0),F},T.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new h(this).promise()},T.prototype.error=function(F){return this.caught(o.originatesFromRejection,F)},T.getNewLibraryCopy=e.exports,T.is=function(F){return F instanceof T},T.fromNode=T.fromCallback=function(F){var R=new T(y);R._captureStackTrace();var B=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,N=$(F)(O(R,B));return N===I&&R._rejectCallback(N.e,!0),R._isFateSealed()||R._setAsyncGuaranteed(),R},T.all=function(F){return new h(F).promise()},T.cast=function(F){var R=p(F);return R instanceof T||(R=new T(y),R._captureStackTrace(),R._setFulfilled(),R._rejectionHandler0=F),R},T.resolve=T.fulfilled=T.cast,T.reject=T.rejected=function(F){var R=new T(y);return R._captureStackTrace(),R._rejectCallback(F,!0),R},T.setScheduler=function(F){if(typeof F!="function")throw new b("expecting a function but got "+o.classString(F));return d.setScheduler(F)},T.prototype._then=function(F,R,B,N,P){var k=P!==void 0,E=k?P:new T(y),Z=this._target(),J=Z._bitField;k||(E._propagateFrom(this,3),E._captureStackTrace(),N===void 0&&this._bitField&2097152&&(J&50397184?N=this._boundValue():N=Z===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,E));var K=c();if(J&50397184){var re,se,ue=Z._settlePromiseCtx;J&33554432?(se=Z._rejectionHandler0,re=F):J&16777216?(se=Z._fulfillmentHandler0,re=R,Z._unsetRejectionIsUnhandled()):(ue=Z._settlePromiseLateCancellationObserver,se=new m("late cancellation observer"),Z._attachExtraTrace(se),re=R),d.invoke(ue,Z,{handler:K===null?re:typeof re=="function"&&o.domainBind(K,re),promise:E,receiver:N,value:se})}else Z._addCallbacks(F,R,E,N,K);return E},T.prototype._length=function(){return this._bitField&65535},T.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},T.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},T.prototype._setLength=function(F){this._bitField=this._bitField&-65536|F&65535},T.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},T.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},T.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},T.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},T.prototype._isFinal=function(){return(this._bitField&4194304)>0},T.prototype._unsetCancelled=function(){this._bitFiel
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
2025-09-10 10:26:48 +00:00
*/(function(e,n){(function(t){e.exports=t()})(function(){return function t(i,r,a){function o(s,d){if(!r[s]){if(!i[s]){var g=typeof Mt=="function"&&Mt;if(!d&&g)return g(s,!0);if(c)return c(s,!0);var b=new Error("Cannot find module '"+s+"'");throw b.code="MODULE_NOT_FOUND",b}var m=r[s]={exports:{}};i[s][0].call(m.exports,function(y){var l=i[s][1][y];return o(l||y)},m,m.exports,t,i,r,a)}return r[s].exports}for(var c=typeof Mt=="function"&&Mt,u=0;u<a.length;u++)o(a[u]);return o}({1:[function(t,i,r){var a=t("./utils"),o=t("./support"),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(u){for(var s,d,g,b,m,y,l,f=[],p=0,h=u.length,D=h,_=a.getTypeOf(u)!=="string";p<u.length;)D=h-p,g=_?(s=u[p++],d=p<h?u[p++]:0,p<h?u[p++]:0):(s=u.charCodeAt(p++),d=p<h?u.charCodeAt(p++):0,p<h?u.charCodeAt(p++):0),b=s>>2,m=(3&s)<<4|d>>4,y=1<D?(15&d)<<2|g>>6:64,l=2<D?63&g:64,f.push(c.charAt(b)+c.charAt(m)+c.charAt(y)+c.charAt(l));return f.join("")},r.decode=function(u){var s,d,g,b,m,y,l=0,f=0,p="data:";if(u.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var h,D=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===c.charAt(64)&&D--,u.charAt(u.length-2)===c.charAt(64)&&D--,D%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=o.uint8array?new Uint8Array(0|D):new Array(0|D);l<u.length;)s=c.indexOf(u.charAt(l++))<<2|(b=c.indexOf(u.charAt(l++)))>>4,d=(15&b)<<4|(m=c.indexOf(u.charAt(l++)))>>2,g=(3&m)<<6|(y=c.indexOf(u.charAt(l++))),h[f++]=s,m!==64&&(h[f++]=d),y!==64&&(h[f++]=g);return h}},{"./support":30,"./utils":32}],2:[function(t,i,r){var a=t("./external"),o=t("./stream/DataWorker"),c=t("./stream/Crc32Probe"),u=t("./stream/DataLengthProbe");function s(d,g,b,m,y){this.compressedSize=d,this.uncompressedSize=g,this.crc32=b,this.compression=m,this.compressedContent=y}s.prototype={getContentWorker:function(){var d=new o(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),g=this;return d.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(d,g,b){return d.pipe(new c).pipe(new u("uncompressedSize")).pipe(g.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",g)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,r){var a=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new a("STORE compression")},uncompressWorker:function(){return new a("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,r){var a=t("./utils"),o=function(){for(var c,u=[],s=0;s<256;s++){c=s;for(var d=0;d<8;d++)c=1&c?3988292384^c>>>1:c>>>1;u[s]=c}return u}();i.exports=function(c,u){return c!==void 0&&c.length?a.getTypeOf(c)!=="string"?function(s,d,g,b){var m=o,y=b+g;s^=-1;for(var l=b;l<y;l++)s=s>>>8^m[255&(s^d[l])];return-1^s}(0|u,c,c.length,0):function(s,d,g,b){var m=o,y=b+g;s^=-1;for(var l=b;l<y;l++)s=s>>>8^m[255&(s^d.charCodeAt(l))];return-1^s}(0|u,c,c.length,0):0}},{"./utils":32}],5:[function(t,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,i,r){var a=null;a=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:a}},{lie:37}],7:[function(t,i,r){var a=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=t("pako"),c=t("./utils"),u=t("./stream/GenericWorker"),s=a?"uint8array":"array";function d(g,b){u.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=b,th
\0`,J+=a(k,2),J+=w.magic,J+=a(D,2),J+=a(_,2),J+=a(P.crc32,4),J+=a(P.compressedSize,4),J+=a(P.uncompressedSize,4),J+=a(O.length,2),J+=a(X.length,2),{fileRecord:g.LOCAL_FILE_HEADER+J+O+X,dirRecord:g.CENTRAL_FILE_HEADER+a(Z,2)+J+a(Q.length,2)+"\0\0\0\0"+a(E,4)+a(f,4)+O+X+Q}}var c=t("../utils"),u=t("../stream/GenericWorker"),s=t("../utf8"),d=t("../crc32"),g=t("../signature");function b(m,y,l,f){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=l,this.encodeFileName=f,this.streamFiles=m,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}c.inherits(b,u),b.prototype.push=function(m){var y=m.meta.percent||0,l=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(m):(this.bytesWritten+=m.data.length,u.prototype.push.call(this,{data:m.data,meta:{currentFile:this.currentFile,percent:l?(y+100*(l-f-1))/l:100}}))},b.prototype.openedSource=function(m){this.currentSourceOffset=this.bytesWritten,this.currentFile=m.file.name;var y=this.streamFiles&&!m.file.dir;if(y){var l=o(m,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:l.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(m){this.accumulate=!1;var y=this.streamFiles&&!m.file.dir,l=o(m,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),y)this.push({data:function(f){return g.DATA_DESCRIPTOR+a(f.crc32,4)+a(f.compressedSize,4)+a(f.uncompressedSize,4)}(m),meta:{percent:100}});else for(this.push({data:l.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var m=this.bytesWritten,y=0;y<this.dirRecords.length;y++)this.push({data:this.dirRecords[y],meta:{percent:100}});var l=this.bytesWritten-m,f=function(p,h,D,_,U){var w=c.transformTo("string",U(_));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+a(p,2)+a(p,2)+a(h,4)+a(D,4)+a(w.length,2)+w}(this.dirRecords.length,l,m,this.zipComment,this.encodeFileName);this.push({data:f,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(m){this._sources.push(m);var y=this;return m.on("data",function(l){y.processChunk(l)}),m.on("end",function(){y.closedSource(y.previous.streamInfo),y._sources.length?y.prepareNextSource():y.end()}),m.on("error",function(l){y.error(l)}),this},b.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(m){var y=this._sources;if(!u.prototype.error.call(this,m))return!1;for(var l=0;l<y.length;l++)try{y[l].error(m)}catch{}return!0},b.prototype.lock=function(){u.prototype.lock.call(this);for(var m=this._sources,y=0;y<m.length;y++)m[y].lock()},i.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,r){var a=t("../compressions"),o=t("./ZipFileWorker");r.generateWorker=function(c,u,s){var d=new o(u.streamFiles,s,u.platform,u.encodeFileName),g=0;try{c.forEach(function(b,m){g++;var y=function(h,D){var _=h||D,U=a[_];if(!U)throw new Error(_+" is not a valid compression method !");return U}(m.options.compression,u.compression),l=m.options.compressionOptions||u.compressionOptions||{},f=m.dir,p=m.date;m._compressWorker(y,l).withStreamInfo("file",{name:b,dir:f,date:p,comment:m.comment||"",unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions}).pipe(d)}),d.entriesCount=g}catch(b){d.error(b)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i,r){function a(){if(!(this instanceof a))return new a;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrad
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:"",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",operp:"⦹",oplus:"⊕",Or:"⩔",or:"",orarr:"↻",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п"
`).replace(/[\r\u0085\u2028]/g,`
2025-09-10 10:26:48 +00:00
`)}function Md(e){this.options=e||{locator:{}}}Md.prototype.parseFromString=function(e,n){var t=this.options,i=new op,r=t.domBuilder||new Nt,a=t.errorHandler,o=t.locator,c=t.xmlns||{},u=/\/x?html?$/.test(n),s=u?kc.HTML_ENTITIES:kc.XML_ENTITIES;o&&r.setDocumentLocator(o),i.errorHandler=cp(a,r,o),i.domBuilder=t.domBuilder||r,u&&(c[""]=Wc.HTML),c.xml=c.xml||Wc.XML;var d=t.normalizeLineEndings||Ld;return e&&typeof e=="string"?i.parse(d(e),c,s):i.errorHandler.error("invalid doc source"),r.doc};function cp(e,n,t){if(!e){if(n instanceof Nt)return n;e=n}var i={},r=e instanceof Function;t=t||{};function a(o){var c=e[o];!c&&r&&(c=e.length==2?function(u){e(o,u)}:e),i[o]=c&&function(u){c("[xmldom "+o+"] "+u+sa(t))}||function(){}}return a("warning"),a("error"),a("fatalError"),i}function Nt(){this.cdata=!1}function Xn(e,n){n.lineNumber=e.lineNumber,n.columnNumber=e.columnNumber}Nt.prototype={startDocument:function(){this.doc=new rp().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,n,t,i){var r=this.doc,a=r.createElementNS(e,t||n),o=i.length;Pt(this,a),this.currentElement=a,this.locator&&Xn(this.locator,a);for(var c=0;c<o;c++){var e=i.getURI(c),u=i.getValue(c),t=i.getQName(c),s=r.createAttributeNS(e,t);this.locator&&Xn(i.getLocator(c),s),s.value=s.nodeValue=u,a.setAttributeNode(s)}},endElement:function(e,n,t){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,n){},endPrefixMapping:function(e){},processingInstruction:function(e,n){var t=this.doc.createProcessingInstruction(e,n);this.locator&&Xn(this.locator,t),Pt(this,t)},ignorableWhitespace:function(e,n,t){},characters:function(e,n,t){if(e=Rc.apply(this,arguments),e){if(this.cdata)var i=this.doc.createCDATASection(e);else var i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&Xn(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,n,t){e=Rc.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&Xn(this.locator,i),Pt(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,n,t){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,n,t);this.locator&&Xn(this.locator,r),Pt(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,sa(this.locator))},error:function(e){console.error("[xmldom error] "+e,sa(this.locator))},fatalError:function(e){throw new ap(e,this.locator)}};function sa(e){if(e)return`
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Rc(e,n,t){return typeof e=="string"?e.substr(n,t):e.length>=n+t||n?new java.lang.String(e,n,t)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Nt.prototype[e]=function(){return null}});function Pt(e,n){e.currentElement?e.currentElement.appendChild(n):e.doc.appendChild(n)}_i.__DOMHandler=Nt;_i.normalizeLineEndings=Ld;_i.DOMParser=Md;var qd=dn;Di.DOMImplementation=qd.DOMImplementation;Di.XMLSerializer=qd.XMLSerializer;Di.DOMParser=_i.DOMParser;var up=Di,sp=dn;function dp(e){var n=null,t=new up.DOMParser({errorHandler:function(r,a){n={level:r,message:a}}}),i=t.parseFromString(e);if(n===null)return i;throw new Error(n.level+": "+n.message)}Ja.parseFromString=dp;Ja.Node=sp.Node;var Cr=Fe,Nc=we,Pd=Ja,zd=at,lp=zd.Element;dd.readString=fp;var Oc=Pd.Node;function fp(e,n){n=n||{};try{var t=Pd.parseFromString(e,"text/xml")}catch(o){return Cr.reject(o)}if(t.documentElement.tagName==="parsererror")return Cr.resolve(new Error(t.documentElement.textContent));function i(o){switch(o.nodeType){case Oc.ELEMENT_NODE:return r(o);case Oc.TEXT_NODE:return zd.text(o.nodeValue)}}function r(o){var c=a(o),u=[];Nc.forEach(o.childNodes,function(d){var g=i(d);g&&u.push(g)});var s={};return Nc.forEach(o.attributes,function(d){s[a(d)]=d.value}),new lp(c,s,u)}function a(o){if(o.namespaceURI){var c=n[o.namespaceURI],u;return c?u=c+":":u="{"+o.namespaceURI+"}",u+o.localName}else return o.localName}return Cr.resolve(i(t.documentElement))}var jd={},pt={},ln={},Ic;function Cn(){return Ic||(Ic=1,(function(){var e,n,t,i,r,a,o,c=[].slice,u={}.hasOwnProperty;e=function(){var s,d,g,b,m,y;if(y=arguments[0],m=2<=arguments.length?c.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(s=0,g=m.length;s<g;s++)if(b=m[s],b!=null)for(d in b)u.call(b,d)&&(y[d]=b[d]);return y},r=function(s){return!!s&&Object.prototype.toString.call(s)==="[object Function]"},a=function(s){var d;return!!s&&((d=typeof s)=="function"||d==="object")},t=function(s){return r(Array.isArray)?Array.isArray(s):Object.prototype.toString.call(s)==="[object Array]"},i=function(s){var d;if(t(s))return!s.length;for(d in s)if(u.call(s,d))return!1;return!0},o=function(s){var d,g;return a(s)&&(g=Object.getPrototypeOf(s))&&(d=g.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},n=function(s){return r(s.valueOf)?s.valueOf():s},ln.assign=e,ln.isFunction=r,ln.isObject=a,ln.isArray=t,ln.isEmpty=i,ln.isPlainObject=o,ln.getValue=n}).call(he)),ln}var Sr={exports:{}},Br={exports:{}},kr={exports:{}},Wr={exports:{}},Lc;function Xd(){return Lc||(Lc=1,(function(){Wr.exports=function(){function e(n,t,i){if(this.options=n.options,this.stringify=n.stringify,this.parent=n,t==null)throw new Error("Missing attribute name. "+this.debugInfo(t));if(i==null)throw new Error("Missing attribute value. "+this.debugInfo(t));this.name=this.stringify.attName(t),this.value=this.stringify.attValue(i)}return e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(n){return this.options.writer.set(n).attribute(this)},e.prototype.debugInfo=function(n){return n=n||this.name,n==null?"parent: <"+this.parent.name+">":"attribute: {"+n+"}, parent: <"+this.parent.name+">"},e}()}).call(he)),Wr.exports}var Mc;function Ui(){return Mc||(Mc=1,(function(){var e,n,t,i,r,a,o=function(u,s){for(var d in s)c.call(s,d)&&(u[d]=s[d]);function g(){this.constructor=u}return g.prototype=s.prototype,u.prototype=new g,u.__super__=s.prototype,u},c={}.hasOwnProperty;a=Cn(),r=a.isObject,i=a.isFunction,t=a.getValue,n=Ve(),e=Xd(),kr.exports=function(u){o(s,u);function s(d,g,b){if(s.__super__.constructor.call(this,d),g==null)throw new Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(g),this.attributes={},b!=null&&this.attribute(b),d.isDocument&&(this.isRoot=!0,this.documentObject=d,d.
`,this.offset=(c=t.offset)!=null?c:0,this.dontprettytextnodes=(u=t.dontprettytextnodes)!=null?u:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(s=t.spacebeforeslash)!=null?s:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=t.writer||{};for(i in d)e.call(d,i)&&(g=d[i],this[i]=g)}return n.prototype.set=function(t){var i,r,a;t||(t={}),"pretty"in t&&(this.pretty=t.pretty),"allowEmpty"in t&&(this.allowEmpty=t.allowEmpty),this.pretty?(this.indent="indent"in t?t.indent:" ",this.newline="newline"in t?t.newline:`
2025-09-10 10:26:48 +00:00
`,this.offset="offset"in t?t.offset:0,this.dontprettytextnodes="dontprettytextnodes"in t?t.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in t?t.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,r=t.writer||{};for(i in r)e.call(r,i)&&(a=r[i],this[i]=a);return this},n.prototype.space=function(t){var i;return this.pretty?(i=(t||0)+this.offset+1,i>0?new Array(i).join(this.indent):""):""},n}()}).call(he)),Gr.exports}var nu;function fo(){return nu||(nu=1,(function(){var e,n,t,i,r,a,o,c,u,s,d,g,b,m,y=function(f,p){for(var h in p)l.call(p,h)&&(f[h]=p[h]);function D(){this.constructor=f}return D.prototype=p.prototype,f.prototype=new D,f.__super__=p.prototype,f},l={}.hasOwnProperty;o=Ei(),c=Bi(),e=Ti(),n=wi(),s=Ui(),g=ki(),b=Wi(),d=Ri(),u=lo(),t=Ai(),i=Ci(),r=Fi(),a=Si(),m=Hd(),$r.exports=function(f){y(p,f);function p(h){p.__super__.constructor.call(this,h)}return p.prototype.document=function(h){var D,_,U,w,A;for(this.textispresent=!1,w="",A=h.children,_=0,U=A.length;_<U;_++)D=A[_],!(D instanceof u)&&(w+=(function(){switch(!1){case!(D instanceof o):return this.declaration(D);case!(D instanceof c):return this.docType(D);case!(D instanceof n):return this.comment(D);case!(D instanceof d):return this.processingInstruction(D);default:return this.element(D,0)}}).call(this));return this.pretty&&w.slice(-this.newline.length)===this.newline&&(w=w.slice(0,-this.newline.length)),w},p.prototype.attribute=function(h){return" "+h.name+'="'+h.value+'"'},p.prototype.cdata=function(h,D){return this.space(D)+"<![CDATA["+h.text+"]]>"+this.newline},p.prototype.comment=function(h,D){return this.space(D)+"<!-- "+h.text+" -->"+this.newline},p.prototype.declaration=function(h,D){var _;return _=this.space(D),_+='<?xml version="'+h.version+'"',h.encoding!=null&&(_+=' encoding="'+h.encoding+'"'),h.standalone!=null&&(_+=' standalone="'+h.standalone+'"'),_+=this.spacebeforeslash+"?>",_+=this.newline,_},p.prototype.docType=function(h,D){var _,U,w,A,O;if(D||(D=0),A=this.space(D),A+="<!DOCTYPE "+h.root().name,h.pubID&&h.sysID?A+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(A+=' SYSTEM "'+h.sysID+'"'),h.children.length>0){for(A+=" [",A+=this.newline,O=h.children,U=0,w=O.length;U<w;U++)_=O[U],A+=(function(){switch(!1){case!(_ instanceof t):return this.dtdAttList(_,D+1);case!(_ instanceof i):return this.dtdElement(_,D+1);case!(_ instanceof r):return this.dtdEntity(_,D+1);case!(_ instanceof a):return this.dtdNotation(_,D+1);case!(_ instanceof e):return this.cdata(_,D+1);case!(_ instanceof n):return this.comment(_,D+1);case!(_ instanceof d):return this.processingInstruction(_,D+1);default:throw new Error("Unknown DTD node type: "+_.constructor.name)}}).call(this);A+="]"}return A+=this.spacebeforeslash+">",A+=this.newline,A},p.prototype.element=function(h,D){var _,U,w,A,O,I,$,Q,T,L,x,X,F;D||(D=0),F=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),X=this.space(D),Q="",Q+=X+"<"+h.name,T=h.attributes;for($ in T)l.call(T,$)&&(_=T[$],Q+=this.attribute(_));if(h.children.length===0||h.children.every(function(R){return R.value===""}))this.allowEmpty?Q+="></"+h.name+">"+this.newline:Q+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&h.children.length===1&&h.children[0].value!=null)Q+=">",Q+=h.children[0].value,Q+="</"+h.name+">"+this.newline;else{if(this.dontprettytextnodes){for(L=h.children,w=0,O=L.length;w<O;w++)if(U=L[w],U.value!=null){this.textispresent++,F=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,X=this.space(D)),Q+=">"+this.newline,x=h.children,A=0,I=x.length;A<I;A++)U=x[A],Q+=(function(){switch(!1){case!(U instanceof e):return this.cdata(U,D+1);case!(U instanceof n):return this.comment(U,D+1);case!(U instanceof s):return this.element(U,D+1);case!(U instanceof g):return this.raw(U,D+1);case!(U instanceof b):return this.text(U,D+1);case!(U instanceof d):return this.processingInstru
cannot open linked files from a web browser`))}return{read:e}}Za.read=mg;Za._findPartPaths=cl;var lg=Fe,fg=pe,Jr=Ge.Result,ii=Bt,ol=Qa.readXmlFromZipFile,hg=ho.createBodyReader,pg=nl.DocumentXmlReader,nt=Ii,hu=Do,pu=Li,gu=Mi,mu=xo,gg=rl,bu=al.Files;function mg(e,n){return n=n||{},lg.props({contentTypes:yg(e),partPaths:cl(e),docxFile:e,files:n.path?bu.relativeToFile(n.path):new bu(null)}).also(function(t){return{styles:vg(e,t.partPaths.styles)}}).also(function(t){return{numbering:Dg(e,t.partPaths.numbering,t.styles)}}).also(function(t){return{footnotes:Xt(t.partPaths.footnotes,t,function(i,r){return r?mu.createFootnotesReader(i)(r):new Jr([])}),endnotes:Xt(t.partPaths.endnotes,t,function(i,r){return r?mu.createEndnotesReader(i)(r):new Jr([])}),comments:Xt(t.partPaths.comments,t,function(i,r){return r?gg.createCommentsReader(i)(r):new Jr([])})}}).also(function(t){return{notes:t.footnotes.flatMap(function(i){return t.endnotes.map(function(r){return new fg.Notes(i.concat(r))})})}}).then(function(t){return Xt(t.partPaths.mainDocument,t,function(i,r){return t.notes.flatMap(function(a){return t.comments.flatMap(function(o){var c=new pg({bodyReader:i,notes:a,comments:o});return c.convertXmlToDocument(r)})})})})}function cl(e){return xg(e).then(function(n){var t=yu({docxFile:e,relationships:n,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(t))throw new Error("Could not find main document part. Are you sure this is a valid .docx file?");return ct({filename:ul(t),readElement:nt.readRelationships,defaultValue:nt.defaultValue})(e).then(function(i){function r(a){return yu({docxFile:e,relationships:i,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+a,basePath:ii.splitPath(t).dirname,fallbackPath:"word/"+a+".xml"})}return{mainDocument:t,comments:r("comments"),endnotes:r("endnotes"),footnotes:r("footnotes"),numbering:r("numbering"),styles:r("styles")}})})}function yu(e){var n=e.docxFile,t=e.relationships,i=e.relationshipType,r=e.basePath,a=e.fallbackPath,o=t.findTargetsByType(i),c=o.map(function(s){return bg(ii.joinPath(r,s),"/")}),u=c.filter(function(s){return n.exists(s)});return u.length===0?a:u[0]}function bg(e,n){return e.substring(0,n.length)===n?e.substring(n.length):e}function ct(e){return function(n){return ol(n,e.filename).then(function(t){return t?e.readElement(t):e.defaultValue})}}function Xt(e,n,t){var i=ct({filename:ul(e),readElement:nt.readRelationships,defaultValue:nt.defaultValue});return i(n.docxFile).then(function(r){var a=new hg({relationships:r,contentTypes:n.contentTypes,docxFile:n.docxFile,numbering:n.numbering,styles:n.styles,files:n.files});return ol(n.docxFile,e).then(function(o){return t(a,o)})})}function ul(e){var n=ii.splitPath(e);return ii.joinPath(n.dirname,"_rels",n.basename+".rels")}var yg=ct({filename:"[Content_Types].xml",readElement:hu.readContentTypesFromXml,defaultValue:hu.defaultContentTypes});function Dg(e,n,t){return ct({filename:n,readElement:function(i){return pu.readNumberingXml(i,{styles:t})},defaultValue:pu.defaultNumbering})(e)}function vg(e,n){return ct({filename:n,readElement:gu.readStylesXml,defaultValue:gu.defaultStyles})(e)}var xg=ct({filename:"_rels/.rels",readElement:nt.readRelationships,defaultValue:nt.defaultValue}),_o={},_g=we,Ug=Fe,At=yn;_o.writeStyleMap=wg;_o.readStyleMap=Fg;var Tg="http://schemas.zwobble.org/mammoth/style-map",ri="mammoth/style-map",sl="/"+ri;function wg(e,n){return e.write(ri,n),Eg(e).then(function(){return Ag(e)})}function Eg(e){var n="word/_rels/document.xml.rels",t="http://schemas.openxmlformats.org/package/2006/relationships",i="{"+t+"}Relationship";return e.read(n,"utf8").then(At.readString).then(function(r){var a=r.children;dl(a,i,"Id",{Id:"rMammothStyleMap",Type:Tg,Target:sl});var o={"":t};return e.write(n,At.writeString(r,o))})}function Ag(e){var n="[Content_Types].xml",t="http://schemas.openxmlformats.org/package/2006/content-types",i="{"+t+"}Override";return e.read(n,"utf8").then(At.readString).then(
`,`
`+n);a.text(l)}function s(y,l){b(),a.selfClosing(y,l)}function d(){return t.length===0||Vt[t[t.length-1]]}function g(){r||(b(),r=!0)}function b(){if(r=!1,!i&&d()&&!m()){a._append(`
2025-09-10 10:26:48 +00:00
`);for(var y=0;y<e;y++)a._append(n)}}function m(){return pl.some(t,function(y){return y==="pre"})}return{asString:a.asString,open:o,close:c,text:u,selfClosing:s}}function gl(){var e=[];function n(u,s){var d=r(s);e.push("<"+u+d+">")}function t(u){e.push("</"+u+">")}function i(u,s){var d=r(s);e.push("<"+u+d+" />")}function r(u){return pl.map(u,function(s,d){return" "+d+'="'+Wg(s)+'"'}).join("")}function a(u){e.push(kg(u))}function o(u){e.push(u)}function c(){return e.join("")}return{asString:c,open:n,close:t,text:a,selfClosing:i,_append:o}}function kg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Wg(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var ml={},Rg=we;function Uu(e){return ai(e,e)}function ai(e,n){return function(){return{start:e,end:n}}}function Ng(e){var n=e.href||"";return n?{start:"[",end:"]("+n+")",anchorPosition:"before"}:{}}function Og(e){var n=e.src||"",t=e.alt||"";return n||t?{start:"!["+t+"]("+n+")"}:{}}function Tu(e){return function(n,t){return{start:t?`
`:"",end:t?"":`
`,list:{isOrdered:e.isOrdered,indent:t?t.indent+1:0,count:0}}}}function Ig(e,n,t){n=n||{indent:0,isOrdered:!1,count:0},n.count++,t.hasClosed=!1;var i=n.isOrdered?n.count+".":"-",r=yl(" ",n.indent)+i+" ";return{start:r,end:function(){if(!t.hasClosed)return t.hasClosed=!0,`
`}}}var bl={p:ai("",`
`),br:ai("",`
2025-09-10 10:26:48 +00:00
`),ul:Tu({isOrdered:!1}),ol:Tu({isOrdered:!0}),li:Ig,strong:Uu("__"),em:Uu("*"),a:Ng,img:Og};(function(){for(var e=1;e<=6;e++)bl["h"+e]=ai(yl("#",e)+" ",`
2025-09-10 10:26:48 +00:00
`)})();function yl(e,n){return new Array(n+1).join(e)}function Lg(){var e=[],n=[],t=null,i={};function r(d,g){g=g||{};var b=bl[d]||function(){return{}},m=b(g,t,i);n.push({end:m.end,list:t}),m.list&&(t=m.list);var y=m.anchorPosition==="before";y&&a(g),e.push(m.start||""),y||a(g)}function a(d){d.id&&e.push('<a id="'+d.id+'"></a>')}function o(d){var g=n.pop();t=g.list;var b=Rg.isFunction(g.end)?g.end():g.end;e.push(b||"")}function c(d,g){r(d,g),o()}function u(d){e.push(Mg(d))}function s(){return e.join("")}return{asString:s,open:r,close:o,text:u,selfClosing:c}}ml.writer=Lg;function Mg(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}var qg=hl,Pg=ml;fl.writer=zg;function zg(e){return e=e||{},e.outputFormat==="markdown"?Pg.writer():qg.writer(e)}var _n=we,wu=Fe,Ht=pe,Ze=Pi(),da=Ge,jg=To,me=qi(),Xg=fl;Uo.DocumentConverter=Vg;function Vg(e){return{convertToHtml:function(n){var t=_n.indexBy(n.type===Ht.types.document?n.comments:[],"commentId"),i=new Hg(e,t);return i.convertToHtml(n)}}}function Hg(e,n){var t=1,i=[],r=[];e=_n.extend({ignoreEmptyParagraphs:!0},e);var a=e.idPrefix===void 0?"":e.idPrefix,o=e.ignoreEmptyParagraphs,c=Ze.topLevelElement("p"),u=e.styleMap||[];function s(B){var N=[],P=g(B,N,{}),k=[];Dl(P,function(Z){Z.type==="deferred"&&k.push(Z)});var E={};return wu.mapSeries(k,function(Z){return Z.value().then(function(J){E[Z.id]=J})}).then(function(){function Z(K){return na(K,function(re){return re.type==="deferred"?E[re.id]:re.children?[_n.extend({},re,{children:Z(re.children)})]:[re]})}var J=Xg.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return me.write(J,me.simplify(Z(P))),new da.Result(J.asString(),N)})}function d(B,N,P){return na(B,function(k){return g(k,N,P)})}function g(B,N,P){if(!P)throw new Error("options not set");var k=R[B.type];return k?k(B,N,P):[]}function b(B,N,P){return m(B,N).wrap(function(){var k=d(B.children,N,P);return o?k:[me.forceWrite].concat(k)})}function m(B,N){var P=p(B);return P?P.to:(B.styleId&&N.push(Eu("paragraph",B)),c)}function y(B,N,P){var k=function(){return d(B.children,N,P)},E=[];if(B.highlight!==null){var Z=f({type:"highlight",color:B.highlight});Z&&E.push(Z)}B.isSmallCaps&&E.push(l("smallCaps")),B.isAllCaps&&E.push(l("allCaps")),B.isStrikethrough&&E.push(l("strikethrough","s")),B.isUnderline&&E.push(l("underline")),B.verticalAlignment===Ht.verticalAlignment.subscript&&E.push(Ze.element("sub",{},{fresh:!1})),B.verticalAlignment===Ht.verticalAlignment.superscript&&E.push(Ze.element("sup",{},{fresh:!1})),B.isItalic&&E.push(l("italic","em")),B.isBold&&E.push(l("bold","strong"));var J=Ze.empty,K=p(B);return K?J=K.to:B.styleId&&N.push(Eu("run",B)),E.push(J),E.forEach(function(re){k=re.wrap.bind(re,k)}),k()}function l(B,N){var P=f({type:B});return P||(N?Ze.element(N,{},{fresh:!1}):Ze.empty)}function f(B,N){var P=p(B);return P?P.to:N}function p(B){for(var N=0;N<u.length;N++)if(u[N].from.matches(B))return u[N]}function h(B){return function(N,P){return wu.attempt(function(){return B(N,P)}).caught(function(k){return P.push(da.error(k)),[]})}}function D(B){return U(B.noteType,B.noteId)}function _(B){return w(B.noteType,B.noteId)}function U(B,N){return A(B+"-"+N)}function w(B,N){return A(B+"-ref-"+N)}function A(B){return a+B}var O=Ze.elements([Ze.element("table",{},{fresh:!0})]);function I(B,N,P){return f(B,O).wrap(function(){return $(B,N,P)})}function $(B,N,P){var k=_n.findIndex(B.children,function(K){return!K.type===Ht.types.tableRow||!K.isHeader});k===-1&&(k=B.children.length);var E;if(k===0)E=d(B.children,N,_n.extend({},P,{isTableHeader:!1}));else{var Z=d(B.children.slice(0,k),N,_n.extend({},P,{isTableHeader:!0})),J=d(B.children.slice(k),N,_n.extend({},P,{isTableHeader:!1}));E=[me.freshElement("thead",{},Z),me.freshElement("tbody",{},J)]}return[me.forceWrite].concat(E)}function Q(B,N,P){var k=d(B.children,N,P);return[me.freshElement("tr",{},[me.forceWrite].concat(k))]}function T(B,N,P){var k=P.isTableHeader?"th":"td",E=d(B.children,N,P),Z={};return B.colSpan!==1&&(Z.colspan=B.colSpan.toString()),B.rowSpan!==1&&(Z.rowspan=B.rowSpan.toStr
`:"";return(e.children||[]).map(xl).join("")+n}vl.convertElementToRawText=xl;var zi={},rn={},_l={},Ul={exports:{}},tt=Ul.exports=function(e,n){this._tokens=e,this._startIndex=n||0};tt.prototype.head=function(){return this._tokens[this._startIndex]};tt.prototype.tail=function(e){return new tt(this._tokens,this._startIndex+1)};tt.prototype.toArray=function(){return this._tokens.slice(this._startIndex)};tt.prototype.end=function(){return this._tokens[this._tokens.length-1]};tt.prototype.to=function(e){var n=this.head().source,t=e.head()||e.end();return n.to(t.source)};var Kg=Ul.exports,Qg=Kg;_l.Parser=function(e){var n=function(t,i){return t(new Qg(i))};return{parseTokens:n}};var wo={},Tl={};(function(e){e.none=Object.create({value:function(){throw new Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return e.none},flatMap:function(){return e.none},filter:function(){return e.none},toArray:function(){return[]},orElse:n,valueOrElse:n});function n(i){return typeof i=="function"?i():i}e.some=function(i){return new t(i)};var t=function(i){this._value=i};t.prototype.value=function(){return this._value},t.prototype.isNone=function(){return!1},t.prototype.isSome=function(){return!0},t.prototype.map=function(i){return new t(i(this._value))},t.prototype.flatMap=function(i){return i(this._value)},t.prototype.filter=function(i){return i(this._value)?this:e.none},t.prototype.toArray=function(){return[this._value]},t.prototype.orElse=function(i){return this},t.prototype.valueOrElse=function(i){return this._value},e.isOption=function(i){return i===e.none||i instanceof t},e.fromNullable=function(i){return i==null?e.none:new t(i)}})(Tl);var Eo={failure:function(e,n){if(e.length<1)throw new Error("Failure must have errors");return new We({status:"failure",remaining:n,errors:e})},error:function(e,n){if(e.length<1)throw new Error("Failure must have errors");return new We({status:"error",remaining:n,errors:e})},success:function(e,n,t){return new We({status:"success",value:e,source:t,remaining:n,errors:[]})},cut:function(e){return new We({status:"cut",remaining:e,errors:[]})}},We=function(e){this._value=e.value,this._status=e.status,this._hasValue=e.value!==void 0,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};We.prototype.map=function(e){return this._hasValue?new We({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this};We.prototype.changeRemaining=function(e){return new We({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})};We.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"};We.prototype.isFailure=function(){return this._status==="failure"};We.prototype.isError=function(){return this._status==="error"};We.prototype.isCut=function(){return this._status==="cut"};We.prototype.value=function(){return this._value};We.prototype.remaining=function(){return this._remaining};We.prototype.source=function(){return this._source};We.prototype.errors=function(){return this._errors};var Ao={};Ao.error=function(e){return new ji(e)};var ji=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};ji.prototype.describe=function(){var e=this._location?this._location.describe()+`:
`:"";return e+"Expected "+this.expected+`
2025-09-10 10:26:48 +00:00
but got `+this.actual};ji.prototype.lineNumber=function(){return this._location.lineNumber()};ji.prototype.characterNumber=function(){return this._location.characterNumber()};var wl={};wl.fromArray=function(e){var n=0,t=function(){return n<e.length};return new Nn({hasNext:t,next:function(){if(t())return e[n++];throw new Error("No more elements")}})};var Nn=function(e){this._iterator=e};Nn.prototype.map=function(e){var n=this._iterator;return new Nn({hasNext:function(){return n.hasNext()},next:function(){return e(n.next())}})};Nn.prototype.filter=function(e){var n=this._iterator,t=!1,i=!1,r,a=function(){if(!t)for(t=!0,i=!1;n.hasNext()&&!i;)r=n.next(),i=e(r)};return new Nn({hasNext:function(){return a(),i},next:function(){a();var o=r;return t=!1,o}})};Nn.prototype.first=function(){var e=this._iterator;return this._iterator.hasNext()?e.next():null};Nn.prototype.toArray=function(){for(var e=[];this._iterator.hasNext();)e.push(this._iterator.next());return e};(function(e){var n=we,t=Tl,i=Eo,r=Ao,a=wl;e.token=function(b,m){var y=m!==void 0;return function(l){var f=l.head();if(f&&f.name===b&&(!y||f.value===m))return i.success(f.value,l.tail(),f.source);var p=d({name:b,value:m});return g(l,p)}},e.tokenOfType=function(b){return e.token(b)},e.firstOf=function(b,m){return n.isArray(m)||(m=Array.prototype.slice.call(arguments,1)),function(y){return a.fromArray(m).map(function(l){return l(y)}).filter(function(l){return l.isSuccess()||l.isError()}).first()||g(y,b)}},e.then=function(b,m){return function(y){var l=b(y);return l.map||console.log(l),l.map(m)}},e.sequence=function(){var b=Array.prototype.slice.call(arguments,0),m=function(l){var f=n.foldl(b,function(h,D){var _=h.result,U=h.hasCut;if(!_.isSuccess())return{result:_,hasCut:U};var w=D(_.remaining());if(w.isCut())return{result:_,hasCut:!0};if(w.isSuccess()){var A;D.isCaptured?A=_.value().withValue(D,w.value()):A=_.value();var O=w.remaining(),I=l.to(O);return{result:i.success(A,O,I),hasCut:U}}else return U?{result:i.error(w.errors(),w.remaining()),hasCut:U}:{result:w,hasCut:U}},{result:i.success(new o,l),hasCut:!1}).result,p=l.to(f.remaining());return f.map(function(h){return h.withValue(e.sequence.source,p)})};m.head=function(){var l=n.find(b,y);return e.then(m,e.sequence.extract(l))},m.map=function(l){return e.then(m,function(f){return l.apply(this,f.toArray())})};function y(l){return l.isCaptured}return m};var o=function(b,m){this._values=b||{},this._valuesArray=m||[]};o.prototype.withValue=function(b,m){if(b.captureName&&b.captureName in this._values)throw new Error('Cannot add second value for capture "'+b.captureName+'"');var y=n.clone(this._values);y[b.captureName]=m;var l=this._valuesArray.concat([m]);return new o(y,l)},o.prototype.get=function(b){if(b.captureName in this._values)return this._values[b.captureName];throw new Error('No value for capture "'+b.captureName+'"')},o.prototype.toArray=function(){return this._valuesArray},e.sequence.capture=function(b,m){var y=function(){return b.apply(this,arguments)};return y.captureName=m,y.isCaptured=!0,y},e.sequence.extract=function(b){return function(m){return m.get(b)}},e.sequence.applyValues=function(b){var m=Array.prototype.slice.call(arguments,1);return function(y){var l=m.map(function(f){return y.get(f)});return b.apply(this,l)}},e.sequence.source={captureName:"☃source☃"},e.sequence.cut=function(){return function(b){return i.cut(b)}},e.optional=function(b){return function(m){var y=b(m);return y.isSuccess()?y.map(t.some):y.isFailure()?i.success(t.none,m):y}},e.zeroOrMoreWithSeparator=function(b,m){return s(b,m,!1)},e.oneOrMoreWithSeparator=function(b,m){return s(b,m,!0)};var c=e.zeroOrMore=function(b){return function(m){for(var y=[],l;(l=b(m))&&l.isSuccess();)m=l.remaining(),y.push(l.value());return l.isError()?l:i.success(y,m)}};e.oneOrMore=function(b){return e.oneOrMoreWithSeparator(b,u)};function u(b){return i.success(null,b)}var s=function(b,m,y){return function(l){var f=b(l);if(f.isSuccess()){var p=e.sequence.capture(b,"main"),h=c(e.then(e.sequence(m,p),e.sequence.extract(p))),D=h(f.remaining());return i.succes
`:"";return n+"Line number: "+e.lineNumber+`
2025-09-10 10:26:48 +00:00
Character number: `+e.characterNumber};On.prototype.lineNumber=function(){return this._position().lineNumber};On.prototype.characterNumber=function(){return this._position().characterNumber};On.prototype._position=function(){for(var e=this,n=0,t=function(){return e._string.indexOf(`
`,n)},i=1;t()!==-1&&t()<this._startIndex;)n=t()+1,i+=1;var r=this._startIndex-n+1;return{lineNumber:i,characterNumber:r}};var Al=El.exports,Fl=function(e,n,t){this.name=e,this.value=n,t&&(this.source=t)},Cl={};(function(e){var n=wo,t=Eo;e.parser=function(a,o,c){var u={rule:b,leftAssociative:m,rightAssociative:y},s=new i(c.map(g)),d=n.firstOf(a,o);function g(p){return{name:p.name,rule:r(p.ruleBuilder.bind(null,u))}}function b(){return l(s)}function m(p){return l(s.untilExclusive(p))}function y(p){return l(s.untilInclusive(p))}function l(p){return f.bind(null,p)}function f(p,h){var D=d(h);return D.isSuccess()?p.apply(D):D}return u};function i(a){function o(g){return new i(a.slice(0,u().indexOf(g)))}function c(g){return new i(a.slice(0,u().indexOf(g)+1))}function u(){return a.map(function(g){return g.name})}function s(g){for(var b,m;;)if(b=d(g.remaining()),b.isSuccess())m=g.source().to(b.source()),g=t.success(b.value()(g.value(),m),b.remaining(),m);else return b.isFailure()?g:b}function d(g){return n.firstOf("infix",a.map(function(b){return b.rule}))(g)}return{apply:s,untilExclusive:o,untilInclusive:c}}e.infix=function(a,o){function c(u){return e.infix(a,function(s){var d=o(s);return function(g){var b=d(g);return b.map(function(m){return function(y,l){return u(y,m,l)}})}})}return{name:a,ruleBuilder:o,map:c}};var r=function(a){var o;return function(c){return o||(o=a()),o(c)}}})(Cl);var Sl={},ta=Fl,Jg=Al;Sl.RegexTokeniser=e2;function e2(e){e=e.map(function(r){return{name:r.name,regex:new RegExp(r.regex.source,"g")}});function n(r,a){for(var o=new Jg(r,a),c=0,u=[];c<r.length;){var s=t(r,c,o);c=s.endIndex,u.push(s.token)}return u.push(i(r,o)),u}function t(r,a,o){for(var c=0;c<e.length;c++){var u=e[c].regex;u.lastIndex=a;var s=u.exec(r);if(s){var g=a+s[0].length;if(s.index===a&&g>a){var d=s[1],b=new ta(e[c].name,d,o.range(a,g));return{token:b,endIndex:g}}}}var g=a+1,b=new ta("unrecognisedCharacter",r.substring(a,g),o.range(a,g));return{token:b,endIndex:g}}function i(r,a){return new ta("end",null,a.range(r.length,r.length))}return{tokenise:n}}rn.Parser=_l.Parser;rn.rules=wo;rn.errors=Ao;rn.results=Eo;rn.StringSource=Al;rn.Token=Fl;rn.bottomUp=Cl;rn.RegexTokeniser=Sl.RegexTokeniser;rn.rule=function(e){var n;return function(t){return n||(n=e()),n(t)}};var Be={};Be.paragraph=n2;Be.run=t2;Be.table=i2;Be.bold=new an("bold");Be.italic=new an("italic");Be.underline=new an("underline");Be.strikethrough=new an("strikethrough");Be.allCaps=new an("allCaps");Be.smallCaps=new an("smallCaps");Be.highlight=r2;Be.commentReference=new an("commentReference");Be.lineBreak=new Xi({breakType:"line"});Be.pageBreak=new Xi({breakType:"page"});Be.columnBreak=new Xi({breakType:"column"});Be.equalTo=o2;Be.startsWith=c2;function n2(e){return new an("paragraph",e)}function t2(e){return new an("run",e)}function i2(e){return new an("table",e)}function r2(e){return new Bl(e)}function an(e,n){n=n||{},this._elementType=e,this._styleId=n.styleId,this._styleName=n.styleName,n.list&&(this._listIndex=n.list.levelIndex,this._listIsOrdered=n.list.isOrdered)}an.prototype.matches=function(e){return e.type===this._elementType&&(this._styleId===void 0||e.styleId===this._styleId)&&(this._styleName===void 0||e.styleName&&this._styleName.operator(this._styleName.operand,e.styleName))&&(this._listIndex===void 0||a2(e,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===e.breakType)};function Bl(e){e=e||{},this._color=e.color}Bl.prototype.matches=function(e){return e.type==="highlight"&&(this._color===void 0||e.color===this._color)};function Xi(e){e=e||{},this._breakType=e.breakType}Xi.prototype.matches=function(e){return e.type==="break"&&(this._breakType===void 0||e.breakType===this._breakType)};function a2(e,n,t){return e.numbering&&e.numbering.level==n&&e.numbering.isOrdered==t}function o2(e){return{operator:u2,operand:e}}function c2(e){return{operator:s2,operand:e}}function u2(e,n){return e.toUpperCase()===n.toUpperCase()}function s2(e,n){return n.toUpperCase().indexOf(e.toUpperCase())===0}var kl={},d2=rn,l2=d2.RegexTokeniser;kl.tokenise=f2;
`,r:"\r",t:" "};function Nl(e){return e.replace(/\\(.)/g,function(n,t){return v2[t]||t})}var x2=te.rules.sequence(te.rules.tokenOfType("open-square-bracket"),te.rules.sequence.cut(),te.rules.sequence.capture(Vi),te.rules.tokenOfType("equals"),te.rules.sequence.capture($n),te.rules.tokenOfType("close-square-bracket")).map(function(e,n){return{name:e,value:n,append:!1}}),_2=te.rules.sequence(te.rules.tokenOfType("dot"),te.rules.sequence.cut(),te.rules.sequence.capture(Vi)).map(function(e){return{name:"class",value:e,append:!0}}),U2=te.rules.firstOf("attribute or class",x2,_2);function Fo(e,n){var t=p2(n),i=te.Parser(),r=i.parseTokens(e,t);return r.isSuccess()?ia.success(r.value()):new ia.Result(null,[ia.warning(T2(n,r))])}function T2(e,n){return"Did not understand this style mapping, so ignored it: "+e+`
`+n.errors().map(w2).join(`
2025-09-10 10:26:48 +00:00
`)}function w2(e){return"Error was at character number "+e.characterNumber()+": Expected "+e.expected+" but got "+e.actual}var E2=m2(),Hi={};Hi.readOptions=C2;var Ol=we,A2=Hi._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],F2=Hi._standardOptions={transformDocument:S2,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function C2(e){return e=e||{},Ol.extend({},F2,e,{customStyleMap:Fu(e.styleMap),readStyleMap:function(){var n=this.customStyleMap;return this.includeEmbeddedStyleMap&&(n=n.concat(Fu(this.embeddedStyleMap))),this.includeDefaultStyleMap&&(n=n.concat(A2)),n}})}function Fu(e){return e?Ol.isString(e)?e.split(`
`).map(function(n){return n.trim()}).filter(function(n){return n!==""&&n.charAt(0)!=="#"}):e:[]}function S2(e){return e}var Il={},Cu=Fe,B2=Bt;Il.openZip=k2;function k2(e){return e.arrayBuffer?Cu.resolve(B2.openArrayBuffer(e.arrayBuffer)):Cu.reject(new Error("Could not find file in options"))}var Ll={},W2=Pi(),R2=qi();Ll.element=N2;function N2(e){return function(n){return R2.elementWithTag(W2.element(e),[n])}}var O2=we,Ml=Za,Co=_o,I2=Uo.DocumentConverter,L2=vl.convertElementToRawText,M2=zi.readStyle,q2=Hi.readOptions,$i=Il,P2=Ge.Result,z2=en.convertToHtml=K2,j2=en.convertToMarkdown=Q2,X2=en.convert=So,V2=en.extractRawText=t1,H2=en.images=To,$2=en.transforms=Sn,G2=en.underline=Ll,Z2=en.embedStyleMap=i1,Y2=en.readEmbeddedStyleMap=J2;function K2(e,n){return So(e,n)}function Q2(e,n){var t=Object.create(n||{});return t.outputFormat="markdown",So(e,t)}function So(e,n){return n=q2(n),$i.openZip(e).tap(function(t){return Co.readStyleMap(t).then(function(i){n.embeddedStyleMap=i})}).then(function(t){return Ml.read(t,e).then(function(i){return i.map(n.transformDocument)}).then(function(i){return e1(i,n)})})}function J2(e){return $i.openZip(e).then(Co.readStyleMap)}function e1(e,n){var t=n1(n.readStyleMap()),i=O2.extend({},n,{styleMap:t.value}),r=new I2(i);return e.flatMapThen(function(a){return t.flatMapThen(function(o){return r.convertToHtml(a)})})}function n1(e){return P2.combine((e||[]).map(M2)).map(function(n){return n.filter(function(t){return!!t})})}function t1(e){return $i.openZip(e).then(Ml.read).then(function(n){return n.map(L2)})}function i1(e,n){return $i.openZip(e).tap(function(t){return Co.writeStyleMap(t,n)}).then(function(t){return t.toArrayBuffer()}).then(function(t){return{toArrayBuffer:function(){return t},toBuffer:function(){return Buffer.from(t)}}})}var r1=en.styleMapping=function(){throw new Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)};const o1=Xl({__proto__:null,convert:X2,convertToHtml:z2,convertToMarkdown:j2,default:en,embedStyleMap:Z2,extractRawText:V2,images:H2,readEmbeddedStyleMap:Y2,styleMapping:r1,transforms:$2,underline:G2},[en]);export{o1 as i};