@servicenow/sdk 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lsp/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Q4n=Object.create;var Jfe=Object.defineProperty;var Z4n=Object.getOwnPropertyDescriptor;var e7n=Object.getOwnPropertyNames;var t7n=Object.getPrototypeOf,n7n=Object.prototype.hasOwnProperty;var e=(i,n)=>Jfe(i,"name",{value:n,configurable:!0});var Eu=(i,n)=>()=>(i&&(n=i(i=0)),n);var ft=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports),_C=(i,n)=>{for(var o in n)Jfe(i,o,{get:n[o],enumerable:!0})},zMt=(i,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of e7n(n))!n7n.call(i,u)&&u!==o&&Jfe(i,u,{get:()=>n[u],enumerable:!(l=Z4n(n,u))||l.enumerable});return i};var DY=(i,n,o)=>(o=i!=null?Q4n(t7n(i)):{},zMt(n||!i||!i.__esModule?Jfe(o,"default",{value:i,enumerable:!0}):o,i)),Ld=i=>zMt(Jfe({},"__esModule",{value:!0}),i);var et,Z=Eu(()=>{et=["/home/jenkins/agent/workspace/r3_groups_platform_fluent_master/target/checkout/node/node","/home/jenkins/agent/workspace/r3_groups_platform_fluent_master/target/checkout/packages/sdk/esbuild.ts","--production"]});var Ze,ee=Eu(()=>{"use strict";Ze={hardwareConcurrency:1}});function $re(){return typeof window<"u"&&typeof window.document<"u"||typeof self<"u"&&typeof self.importScripts=="function"}var DDe=Eu(()=>{"use strict";Z();ne();ee();te();e($re,"isBrowserOrWorkerEnvironment")});function NR(i,n,o){return o={path:n,exports:{},require:e(function(l,u){return i7n(l,u??o.path)},"require")},i(o,o.exports),o.exports}function i7n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var D9,fK=Eu(()=>{Z();ne();ee();te();D9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e(NR,"createCommonjsModule");e(i7n,"commonjsRequire")});function o7n(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var a7n,Xfe,Yre,HJe,YMr,ADe,QMr,GMt=Eu(()=>{Z();ne();ee();te();fK();e(o7n,"getScope");a7n=o7n(),Xfe=a7n[Symbol.for("brodeProcess")],Yre={nextTick(i,...n){if(!(Xfe&&Xfe.exitCode!==null)){if(typeof i!="function")throw new TypeError("handler is not a function");queueMicrotask(()=>{try{i(...n)}catch(o){if(Xfe&&Xfe.hasListeners("uncaughtException")){Xfe.emit("uncaughtException",o);return}throw o}})}},emitWarning(i){console.warn(i)}},HJe=NR(function(i,n){(function(o){var l=Object.hasOwnProperty,u=Array.isArray?Array.isArray:e(function(Kt){return Object.prototype.toString.call(Kt)==="[object Array]"},"_isArray"),p=10,h=typeof Yre=="object"&&typeof Yre.nextTick=="function",v=typeof Symbol=="function",T=typeof Reflect=="object",E=typeof setImmediate=="function",D=E?setImmediate:setTimeout,C=v?T&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(It){var Kt=Object.getOwnPropertyNames(It);return Kt.push.apply(Kt,Object.getOwnPropertySymbols(It)),Kt}:Object.keys;function w(){this._events={},this._conf&&W.call(this,this._conf)}e(w,"init");function W(It){It&&(this._conf=It,It.delimiter&&(this.delimiter=It.delimiter),It.maxListeners!==o&&(this._maxListeners=It.maxListeners),It.wildcard&&(this.wildcard=It.wildcard),It.newListener&&(this._newListener=It.newListener),It.removeListener&&(this._removeListener=It.removeListener),It.verboseMemoryLeak&&(this.verboseMemoryLeak=It.verboseMemoryLeak),It.ignoreErrors&&(this.ignoreErrors=It.ignoreErrors),this.wildcard&&(this.listenerTree={}))}e(W,"configure");function V(It,Kt){var ht="(node) warning: possible EventEmitter memory leak detected. "+It+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(ht+=" Event name: "+Kt+"."),typeof Yre<"u"&&Yre.emitWarning){var wn=new Error(ht);wn.name="MaxListenersExceededWarning",wn.emitter=this,wn.count=It,Yre.emitWarning(wn)}else console.error(ht),console.trace&&console.trace()}e(V,"logPossibleMemoryLeak");var B=e(function(It,Kt,ht){var wn=arguments.length;switch(wn){case 0:return[];case 1:return[It];case 2:return[It,Kt];case 3:return[It,Kt,ht];default:for(var Gn=new Array(wn);wn--;)Gn[wn]=arguments[wn];return Gn}},"toArray");function k(It,Kt){for(var ht={},wn,Gn=It.length,_n=Kt?Kt.length:0,Bn=0;Bn<Gn;Bn++)wn=It[Bn],ht[wn]=Bn<_n?Kt[Bn]:o;return ht}e(k,"toObject");function F(It,Kt,ht){this._emitter=It,this._target=Kt,this._listeners={},this._listenersCount=0;var wn,Gn;if((ht.on||ht.off)&&(wn=ht.on,Gn=ht.off),Kt.addEventListener?(wn=Kt.addEventListener,Gn=Kt.removeEventListener):Kt.addListener?(wn=Kt.addListener,Gn=Kt.removeListener):Kt.on&&(wn=Kt.on,Gn=Kt.off),!wn&&!Gn)throw Error("target does not implement any known event API");if(typeof wn!="function")throw TypeError("on method must be a function");if(typeof Gn!="function")throw TypeError("off method must be a function");this._on=wn,this._off=Gn;var _n=It._observers;_n?_n.push(this):It._observers=[this]}e(F,"TargetObserver"),Object.assign(F.prototype,{subscribe:e(function(It,Kt,ht){var wn=this,Gn=this._target,_n=this._emitter,Bn=this._listeners,cr=e(function(){var Yt=B.apply(null,arguments),Ft={data:Yt,name:Kt,original:It};if(ht){var pt=ht.call(Gn,Ft);pt!==!1&&_n.emit.apply(_n,[Ft.name].concat(Yt));return}_n.emit.apply(_n,[Kt].concat(Yt))},"handler");if(Bn[It])throw Error("Event '"+It+"' is already listening");this._listenersCount++,_n._newListener&&_n._removeListener&&!wn._onNewListener?(this._onNewListener=function(Yt){Yt===Kt&&Bn[It]===null&&(Bn[It]=cr,wn._on.call(Gn,It,cr))},_n.on("newListener",this._onNewListener),this._onRemoveListener=function(Yt){Yt===Kt&&!_n.hasListeners(Yt)&&Bn[It]&&(Bn[It]=null,wn._off.call(Gn,It,cr))},Bn[It]=null,_n.on("removeListener",this._onRemoveListener)):(Bn[It]=cr,wn._on.call(Gn,It,cr))},"subscribe"),unsubscribe:e(function(It){var Kt=this,ht=this._listeners,wn=this._emitter,Gn,_n,Bn=this._off,cr=this._target,Yt;if(It&&typeof It!="string")throw TypeError("event must be a string");function Ft(){Kt._onNewListener&&(wn.off("newListener",Kt._onNewListener),wn.off("removeListener",Kt._onRemoveListener),Kt._onNewListener=null,Kt._onRemoveListener=null);var pt=be.call(wn,Kt);wn._observers.splice(pt,1)}if(e(Ft,"clearRefs"),It){if(Gn=ht[It],!Gn)return;Bn.call(cr,It,Gn),delete ht[It],--this._listenersCount||Ft()}else{for(_n=C(ht),Yt=_n.length;Yt-- >0;)It=_n[Yt],Bn.call(cr,It,ht[It]);this._listeners={},this._listenersCount=0,Ft()}},"unsubscribe")});function $(It,Kt,ht,wn){var Gn=Object.assign({},Kt);if(!It)return Gn;if(typeof It!="object")throw TypeError("options must be an object");var _n=Object.keys(It),Bn=_n.length,cr,Yt,Ft;function pt(zt){throw Error('Invalid "'+cr+'" option value'+(zt?". Reason: "+zt:""))}e(pt,"reject");for(var me=0;me<Bn;me++){if(cr=_n[me],!wn&&!l.call(Kt,cr))throw Error('Unknown "'+cr+'" option');Yt=It[cr],Yt!==o&&(Ft=ht[cr],Gn[cr]=Ft?Ft(Yt,pt):Yt)}return Gn}e($,"resolveOptions");function Y(It,Kt){return(typeof It!="function"||!It.hasOwnProperty("prototype"))&&Kt("value must be a constructor"),It}e(Y,"constructorReducer");function ie(It){var Kt="value must be type of "+It.join("|"),ht=It.length,wn=It[0],Gn=It[1];return ht===1?function(_n,Bn){if(typeof _n===wn)return _n;Bn(Kt)}:ht===2?function(_n,Bn){var cr=typeof _n;if(cr===wn||cr===Gn)return _n;Bn(Kt)}:function(_n,Bn){for(var cr=typeof _n,Yt=ht;Yt-- >0;)if(cr===It[Yt])return _n;Bn(Kt)}}e(ie,"makeTypeReducer");var fe=ie(["function"]),ve=ie(["object","function"]);function Ce(It,Kt,ht){var wn,Gn,_n=0,Bn,cr=new It(function(Yt,Ft,pt){ht=$(ht,{timeout:0,overload:!1},{timeout:e(function(tn,En){return tn*=1,(typeof tn!="number"||tn<0||!Number.isFinite(tn))&&En("timeout must be a positive number"),tn},"timeout")}),wn=!ht.overload&&typeof It.prototype.cancel=="function"&&typeof pt=="function";function me(){Gn&&(Gn=null),_n&&(clearTimeout(_n),_n=0)}e(me,"cleanup");var zt=e(function(tn){me(),Yt(tn)},"_resolve"),Tt=e(function(tn){me(),Ft(tn)},"_reject");wn?Kt(zt,Tt,pt):(Gn=[function(tn){Tt(tn||Error("canceled"))}],Kt(zt,Tt,function(tn){if(Bn)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof tn!="function")throw TypeError("onCancel callback must be a function");Gn.push(tn)}),Bn=!0),ht.timeout>0&&(_n=setTimeout(function(){var tn=Error("timeout");tn.code="ETIMEDOUT",_n=0,cr.cancel(tn),Ft(tn)},ht.timeout))});return wn||(cr.cancel=function(Yt){if(Gn){for(var Ft=Gn.length,pt=1;pt<Ft;pt++)Gn[pt](Yt);Gn[0](Yt),Gn=null}}),cr}e(Ce,"makeCancelablePromise");function be(It){var Kt=this._observers;if(!Kt)return-1;for(var ht=Kt.length,wn=0;wn<ht;wn++)if(Kt[wn]._target===It)return wn;return-1}e(be,"findTargetIndex");function qe(It,Kt,ht,wn,Gn){if(!ht)return null;if(wn===0){var _n=typeof Kt;if(_n==="string"){var Bn,cr,Yt=0,Ft=0,pt=this.delimiter,me=pt.length;if((cr=Kt.indexOf(pt))!==-1){Bn=new Array(5);do Bn[Yt++]=Kt.slice(Ft,cr),Ft=cr+me;while((cr=Kt.indexOf(pt,Ft))!==-1);Bn[Yt++]=Kt.slice(Ft),Kt=Bn,Gn=Yt}else Kt=[Kt],Gn=1}else _n==="object"?Gn=Kt.length:(Kt=[Kt],Gn=1)}var zt=null,Tt,tn,En,Kn,Gr,Ir=Kt[wn],yn=Kt[wn+1],ga,so;if(wn===Gn)ht._listeners&&(typeof ht._listeners=="function"?(It&&It.push(ht._listeners),zt=[ht]):(It&&It.push.apply(It,ht._listeners),zt=[ht]));else if(Ir==="*"){for(ga=C(ht),cr=ga.length;cr-- >0;)Tt=ga[cr],Tt!=="_listeners"&&(so=qe(It,Kt,ht[Tt],wn+1,Gn),so&&(zt?zt.push.apply(zt,so):zt=so));return zt}else if(Ir==="**"){for(Gr=wn+1===Gn||wn+2===Gn&&yn==="*",Gr&&ht._listeners&&(zt=qe(It,Kt,ht,Gn,Gn)),ga=C(ht),cr=ga.length;cr-- >0;)Tt=ga[cr],Tt!=="_listeners"&&(Tt==="*"||Tt==="**"?(ht[Tt]._listeners&&!Gr&&(so=qe(It,Kt,ht[Tt],Gn,Gn),so&&(zt?zt.push.apply(zt,so):zt=so)),so=qe(It,Kt,ht[Tt],wn,Gn)):Tt===yn?so=qe(It,Kt,ht[Tt],wn+2,Gn):so=qe(It,Kt,ht[Tt],wn,Gn),so&&(zt?zt.push.apply(zt,so):zt=so));return zt}else ht[Ir]&&(zt=qe(It,Kt,ht[Ir],wn+1,Gn));if(tn=ht["*"],tn&&qe(It,Kt,tn,wn+1,Gn),En=ht["**"],En)if(wn<Gn)for(En._listeners&&qe(It,Kt,En,Gn,Gn),ga=C(En),cr=ga.length;cr-- >0;)Tt=ga[cr],Tt!=="_listeners"&&(Tt===yn?qe(It,Kt,En[Tt],wn+2,Gn):Tt===Ir?qe(It,Kt,En[Tt],wn+1,Gn):(Kn={},Kn[Tt]=En[Tt],qe(It,Kt,{"**":Kn},wn+1,Gn)));else En._listeners?qe(It,Kt,En,Gn,Gn):En["*"]&&En["*"]._listeners&&qe(It,Kt,En["*"],Gn,Gn);return zt}e(qe,"searchListenerTree");function yt(It,Kt,ht){var wn=0,Gn=0,_n,Bn=this.delimiter,cr=Bn.length,Yt;if(typeof It=="string")if((_n=It.indexOf(Bn))!==-1){Yt=new Array(5);do Yt[wn++]=It.slice(Gn,_n),Gn=_n+cr;while((_n=It.indexOf(Bn,Gn))!==-1);Yt[wn++]=It.slice(Gn)}else Yt=[It],wn=1;else Yt=It,wn=It.length;if(wn>1){for(_n=0;_n+1<wn;_n++)if(Yt[_n]==="**"&&Yt[_n+1]==="**")return}var Ft=this.listenerTree,pt;for(_n=0;_n<wn;_n++)if(pt=Yt[_n],Ft=Ft[pt]||(Ft[pt]={}),_n===wn-1)return Ft._listeners?(typeof Ft._listeners=="function"&&(Ft._listeners=[Ft._listeners]),ht?Ft._listeners.unshift(Kt):Ft._listeners.push(Kt),!Ft._listeners.warned&&this._maxListeners>0&&Ft._listeners.length>this._maxListeners&&(Ft._listeners.warned=!0,V.call(this,Ft._listeners.length,pt))):Ft._listeners=Kt,!0;return!0}e(yt,"growListenerTree");function Ct(It,Kt,ht,wn){for(var Gn=C(It),_n=Gn.length,Bn,cr,Yt,Ft=It._listeners,pt;_n-- >0;)cr=Gn[_n],Bn=It[cr],cr==="_listeners"?Yt=ht:Yt=ht?ht.concat(cr):[cr],pt=wn||typeof cr=="symbol",Ft&&Kt.push(pt?Yt:Yt.join(this.delimiter)),typeof Bn=="object"&&Ct.call(this,Bn,Kt,Yt,pt);return Kt}e(Ct,"collectTreeEvents");function Bt(It){for(var Kt=C(It),ht=Kt.length,wn,Gn,_n;ht-- >0;)Gn=Kt[ht],wn=It[Gn],wn&&(_n=!0,Gn!=="_listeners"&&!Bt(wn)&&delete It[Gn]);return _n}e(Bt,"recursivelyGarbageCollect");function fn(It,Kt,ht){this.emitter=It,this.event=Kt,this.listener=ht}e(fn,"Listener"),fn.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function Fn(It,Kt,ht){if(ht===!0)Gn=!0;else if(ht===!1)wn=!0;else{if(!ht||typeof ht!="object")throw TypeError("options should be an object or true");var wn=ht.async,Gn=ht.promisify,_n=ht.nextTick,Bn=ht.objectify}if(wn||_n||Gn){var cr=Kt,Yt=Kt._origin||Kt;if(_n&&!h)throw Error("process.nextTick is not supported");Gn===o&&(Gn=Kt.constructor.name==="AsyncFunction"),Kt=e(function(){var Ft=arguments,pt=this,me=this.event;return Gn?_n?Promise.resolve():new Promise(function(zt){D(zt)}).then(function(){return pt.event=me,cr.apply(pt,Ft)}):(_n?Yre.nextTick:D)(function(){pt.event=me,cr.apply(pt,Ft)})},"listener"),Kt._async=!0,Kt._origin=Yt}return[Kt,Bn?new fn(this,It,Kt):this]}e(Fn,"setupListener");function Sn(It){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,W.call(this,It)}e(Sn,"EventEmitter"),Sn.EventEmitter2=Sn,Sn.prototype.listenTo=function(It,Kt,ht){if(typeof It!="object")throw TypeError("target musts be an object");var wn=this;ht=$(ht,{on:o,off:o,reducers:o},{on:fe,off:fe,reducers:ve});function Gn(_n){if(typeof _n!="object")throw TypeError("events must be an object");var Bn=ht.reducers,cr=be.call(wn,It),Yt;cr===-1?Yt=new F(wn,It,ht):Yt=wn._observers[cr];for(var Ft=C(_n),pt=Ft.length,me,zt=typeof Bn=="function",Tt=0;Tt<pt;Tt++)me=Ft[Tt],Yt.subscribe(me,_n[me]||me,zt?Bn:Bn&&Bn[me])}return e(Gn,"listen"),u(Kt)?Gn(k(Kt)):Gn(typeof Kt=="string"?k(Kt.split(/\s+/)):Kt),this},Sn.prototype.stopListeningTo=function(It,Kt){var ht=this._observers;if(!ht)return!1;var wn=ht.length,Gn,_n=!1;if(It&&typeof It!="object")throw TypeError("target should be an object");for(;wn-- >0;)Gn=ht[wn],(!It||Gn._target===It)&&(Gn.unsubscribe(Kt),_n=!0);return _n},Sn.prototype.delimiter=".",Sn.prototype.setMaxListeners=function(It){It!==o&&(this._maxListeners=It,this._conf||(this._conf={}),this._conf.maxListeners=It)},Sn.prototype.getMaxListeners=function(){return this._maxListeners},Sn.prototype.event="",Sn.prototype.once=function(It,Kt,ht){return this._once(It,Kt,!1,ht)},Sn.prototype.prependOnceListener=function(It,Kt,ht){return this._once(It,Kt,!0,ht)},Sn.prototype._once=function(It,Kt,ht,wn){return this._many(It,1,Kt,ht,wn)},Sn.prototype.many=function(It,Kt,ht,wn){return this._many(It,Kt,ht,!1,wn)},Sn.prototype.prependMany=function(It,Kt,ht,wn){return this._many(It,Kt,ht,!0,wn)},Sn.prototype._many=function(It,Kt,ht,wn,Gn){var _n=this;if(typeof ht!="function")throw new Error("many only accepts instances of Function");function Bn(){return--Kt===0&&_n.off(It,Bn),ht.apply(this,arguments)}return e(Bn,"listener"),Bn._origin=ht,this._on(It,Bn,wn,Gn)},Sn.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||w.call(this);var It=arguments[0],Kt,ht=this.wildcard,wn,Gn,_n,Bn,cr;if(It==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(ht&&(Kt=It,It!=="newListener"&&It!=="removeListener"&&typeof It=="object")){if(Gn=It.length,v){for(_n=0;_n<Gn;_n++)if(typeof It[_n]=="symbol"){cr=!0;break}}cr||(It=It.join(this.delimiter))}var Yt=arguments.length,Ft;if(this._all&&this._all.length)for(Ft=this._all.slice(),_n=0,Gn=Ft.length;_n<Gn;_n++)switch(this.event=It,Yt){case 1:Ft[_n].call(this,It);break;case 2:Ft[_n].call(this,It,arguments[1]);break;case 3:Ft[_n].call(this,It,arguments[1],arguments[2]);break;default:Ft[_n].apply(this,arguments)}if(ht)Ft=[],qe.call(this,Ft,Kt,this.listenerTree,0,Gn);else if(Ft=this._events[It],typeof Ft=="function"){switch(this.event=It,Yt){case 1:Ft.call(this);break;case 2:Ft.call(this,arguments[1]);break;case 3:Ft.call(this,arguments[1],arguments[2]);break;default:for(wn=new Array(Yt-1),Bn=1;Bn<Yt;Bn++)wn[Bn-1]=arguments[Bn];Ft.apply(this,wn)}return!0}else Ft&&(Ft=Ft.slice());if(Ft&&Ft.length){if(Yt>3)for(wn=new Array(Yt-1),Bn=1;Bn<Yt;Bn++)wn[Bn-1]=arguments[Bn];for(_n=0,Gn=Ft.length;_n<Gn;_n++)switch(this.event=It,Yt){case 1:Ft[_n].call(this);break;case 2:Ft[_n].call(this,arguments[1]);break;case 3:Ft[_n].call(this,arguments[1],arguments[2]);break;default:Ft[_n].apply(this,wn)}return!0}else if(!this.ignoreErrors&&!this._all&&It==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},Sn.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||w.call(this);var It=arguments[0],Kt=this.wildcard,ht,wn,Gn,_n,Bn,cr;if(It==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(Kt&&(ht=It,It!=="newListener"&&It!=="removeListener"&&typeof It=="object")){if(_n=It.length,v){for(Bn=0;Bn<_n;Bn++)if(typeof It[Bn]=="symbol"){wn=!0;break}}wn||(It=It.join(this.delimiter))}var Yt=[],Ft=arguments.length,pt;if(this._all)for(Bn=0,_n=this._all.length;Bn<_n;Bn++)switch(this.event=It,Ft){case 1:Yt.push(this._all[Bn].call(this,It));break;case 2:Yt.push(this._all[Bn].call(this,It,arguments[1]));break;case 3:Yt.push(this._all[Bn].call(this,It,arguments[1],arguments[2]));break;default:Yt.push(this._all[Bn].apply(this,arguments))}if(Kt?(pt=[],qe.call(this,pt,ht,this.listenerTree,0)):pt=this._events[It],typeof pt=="function")switch(this.event=It,Ft){case 1:Yt.push(pt.call(this));break;case 2:Yt.push(pt.call(this,arguments[1]));break;case 3:Yt.push(pt.call(this,arguments[1],arguments[2]));break;default:for(Gn=new Array(Ft-1),cr=1;cr<Ft;cr++)Gn[cr-1]=arguments[cr];Yt.push(pt.apply(this,Gn))}else if(pt&&pt.length){if(pt=pt.slice(),Ft>3)for(Gn=new Array(Ft-1),cr=1;cr<Ft;cr++)Gn[cr-1]=arguments[cr];for(Bn=0,_n=pt.length;Bn<_n;Bn++)switch(this.event=It,Ft){case 1:Yt.push(pt[Bn].call(this));break;case 2:Yt.push(pt[Bn].call(this,arguments[1]));break;case 3:Yt.push(pt[Bn].call(this,arguments[1],arguments[2]));break;default:Yt.push(pt[Bn].apply(this,Gn))}}else if(!this.ignoreErrors&&!this._all&&It==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(Yt)},Sn.prototype.on=function(It,Kt,ht){return this._on(It,Kt,!1,ht)},Sn.prototype.prependListener=function(It,Kt,ht){return this._on(It,Kt,!0,ht)},Sn.prototype.onAny=function(It){return this._onAny(It,!1)},Sn.prototype.prependAny=function(It){return this._onAny(It,!0)},Sn.prototype.addListener=Sn.prototype.on,Sn.prototype._onAny=function(It,Kt){if(typeof It!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),Kt?this._all.unshift(It):this._all.push(It),this},Sn.prototype._on=function(It,Kt,ht,wn){if(typeof It=="function")return this._onAny(It,Kt),this;if(typeof Kt!="function")throw new Error("on only accepts instances of Function");this._events||w.call(this);var Gn=this,_n;return wn!==o&&(_n=Fn.call(this,It,Kt,wn),Kt=_n[0],Gn=_n[1]),this._newListener&&this.emit("newListener",It,Kt),this.wildcard?(yt.call(this,It,Kt,ht),Gn):(this._events[It]?(typeof this._events[It]=="function"&&(this._events[It]=[this._events[It]]),ht?this._events[It].unshift(Kt):this._events[It].push(Kt),!this._events[It].warned&&this._maxListeners>0&&this._events[It].length>this._maxListeners&&(this._events[It].warned=!0,V.call(this,this._events[It].length,It))):this._events[It]=Kt,Gn)},Sn.prototype.off=function(It,Kt){if(typeof Kt!="function")throw new Error("removeListener only takes instances of Function");var ht,wn=[];if(this.wildcard){var Gn=typeof It=="string"?It.split(this.delimiter):It.slice();if(wn=qe.call(this,null,Gn,this.listenerTree,0),!wn)return this}else{if(!this._events[It])return this;ht=this._events[It],wn.push({_listeners:ht})}for(var _n=0;_n<wn.length;_n++){var Bn=wn[_n];if(ht=Bn._listeners,u(ht)){for(var cr=-1,Yt=0,Ft=ht.length;Yt<Ft;Yt++)if(ht[Yt]===Kt||ht[Yt].listener&&ht[Yt].listener===Kt||ht[Yt]._origin&&ht[Yt]._origin===Kt){cr=Yt;break}if(cr<0)continue;return this.wildcard?Bn._listeners.splice(cr,1):this._events[It].splice(cr,1),ht.length===0&&(this.wildcard?delete Bn._listeners:delete this._events[It]),this._removeListener&&this.emit("removeListener",It,Kt),this}else(ht===Kt||ht.listener&&ht.listener===Kt||ht._origin&&ht._origin===Kt)&&(this.wildcard?delete Bn._listeners:delete this._events[It],this._removeListener&&this.emit("removeListener",It,Kt))}return this.listenerTree&&Bt(this.listenerTree),this},Sn.prototype.offAny=function(It){var Kt=0,ht=0,wn;if(It&&this._all&&this._all.length>0){for(wn=this._all,Kt=0,ht=wn.length;Kt<ht;Kt++)if(It===wn[Kt])return wn.splice(Kt,1),this._removeListener&&this.emit("removeListenerAny",It),this}else{if(wn=this._all,this._removeListener)for(Kt=0,ht=wn.length;Kt<ht;Kt++)this.emit("removeListenerAny",wn[Kt]);this._all=[]}return this},Sn.prototype.removeListener=Sn.prototype.off,Sn.prototype.removeAllListeners=function(It){if(It===o)return!this._events||w.call(this),this;if(this.wildcard){var Kt=qe.call(this,null,It,this.listenerTree,0),ht,wn;if(!Kt)return this;for(wn=0;wn<Kt.length;wn++)ht=Kt[wn],ht._listeners=null;this.listenerTree&&Bt(this.listenerTree)}else this._events&&(this._events[It]=null);return this},Sn.prototype.listeners=function(It){var Kt=this._events,ht,wn,Gn,_n,Bn;if(It===o){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!Kt)return[];for(ht=C(Kt),_n=ht.length,Gn=[];_n-- >0;)wn=Kt[ht[_n]],typeof wn=="function"?Gn.push(wn):Gn.push.apply(Gn,wn);return Gn}else{if(this.wildcard){if(Bn=this.listenerTree,!Bn)return[];var cr=[],Yt=typeof It=="string"?It.split(this.delimiter):It.slice();return qe.call(this,cr,Yt,Bn,0),cr}return Kt?(wn=Kt[It],wn?typeof wn=="function"?[wn]:wn:[]):[]}},Sn.prototype.eventNames=function(It){var Kt=this._events;return this.wildcard?Ct.call(this,this.listenerTree,[],null,It):Kt?C(Kt):[]},Sn.prototype.listenerCount=function(It){return this.listeners(It).length},Sn.prototype.hasListeners=function(It){if(this.wildcard){var Kt=[],ht=typeof It=="string"?It.split(this.delimiter):It.slice();return qe.call(this,Kt,ht,this.listenerTree,0),Kt.length>0}var wn=this._events,Gn=this._all;return!!(Gn&&Gn.length||wn&&(It===o?C(wn).length:wn[It]))},Sn.prototype.listenersAny=function(){return this._all?this._all:[]},Sn.prototype.waitFor=function(It,Kt){var ht=this,wn=typeof Kt;return wn==="number"?Kt={timeout:Kt}:wn==="function"&&(Kt={filter:Kt}),Kt=$(Kt,{timeout:0,filter:o,handleError:!1,Promise,overload:!1},{filter:fe,Promise:Y}),Ce(Kt.Promise,function(Gn,_n,Bn){function cr(){var Yt=Kt.filter;if(!(Yt&&!Yt.apply(ht,arguments)))if(ht.off(It,cr),Kt.handleError){var Ft=arguments[0];Ft?_n(Ft):Gn(B.apply(null,arguments).slice(1))}else Gn(B.apply(null,arguments))}e(cr,"listener"),Bn(function(){ht.off(It,cr)}),ht._on(It,cr,!1)},{timeout:Kt.timeout,overload:Kt.overload})};function Qt(It,Kt,ht){ht=$(ht,{Promise,timeout:0,overload:!1},{Promise:Y});var wn=ht.Promise;return Ce(wn,function(Gn,_n,Bn){var cr;if(typeof It.addEventListener=="function"){cr=e(function(){Gn(B.apply(null,arguments))},"handler"),Bn(function(){It.removeEventListener(Kt,cr)}),It.addEventListener(Kt,cr,{once:!0});return}var Yt=e(function(){Ft&&It.removeListener("error",Ft),Gn(B.apply(null,arguments))},"eventListener"),Ft;Kt!=="error"&&(Ft=e(function(pt){It.removeListener(Kt,Yt),_n(pt)},"errorListener"),It.once("error",Ft)),Bn(function(){Ft&&It.removeListener("error",Ft),It.removeListener(Kt,Yt)}),It.once(Kt,Yt)},{timeout:ht.timeout,overload:ht.overload})}e(Qt,"once");var on=Sn.prototype;Object.defineProperties(Sn,{defaultMaxListeners:{get:e(function(){return on._maxListeners},"get"),set:e(function(It){if(typeof It!="number"||It<0||Number.isNaN(It))throw TypeError("n must be a non-negative number");on._maxListeners=It},"set"),enumerable:!0},once:{value:Qt,writable:!0,configurable:!0}}),Object.defineProperties(on,{_maxListeners:{value:p,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof o=="function"&&o.amd?o(function(){return Sn}):i.exports=Sn})()}),YMr=HJe.EventEmitter2,ADe=HJe,QMr=HJe.defaultMaxListeners});var _K={};_C(_K,{EventEmitter:()=>CDe,default:()=>wDe});var CDe,wDe,A9=Eu(()=>{Z();ne();ee();te();GMt();ADe.EventEmitter=ADe;CDe=ADe,wDe=CDe});var s7n,IDe,l7n,UMt=Eu(()=>{Z();ne();ee();te();s7n=e(()=>{if("performance"in window||(window.performance={}),Date.now=Date.now||(()=>new Date().getTime()),!("now"in window.performance)){let i=Date.now();performance.timing&&performance.timing.navigationStart&&(i=performance.timing.navigationStart),window.performance.now=()=>Date.now()-i}},"perfomancePolyfill"),IDe=e(i=>{s7n();let n=Math.floor((Date.now()-performance.now())*.001),o=performance.now()*.001,l=Math.floor(o)+n,u=Math.floor(o%1*1e9);return i&&(l=l-i[0],u=u-i[1],u<0&&(l--,u+=1e9)),[l,u]},"hrtime"),l7n=1e9;IDe.bigint=()=>{let i=IDe();return BigInt(i[0]*l7n+i[1])}});function AY(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var PDe=Eu(()=>{Z();ne();ee();te();e(AY,"getScope")});var mK,JJe=Eu(()=>{Z();ne();ee();te();fK();mK=NR(function(i){typeof Object.create=="function"?i.exports=e(function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):i.exports=e(function(o,l){if(l){o.super_=l;var u=e(function(){},"TempCtor");u.prototype=l.prototype,o.prototype=new u,o.prototype.constructor=o}},"inherits")})});var XMt,LDe,VMt,c7n,u7n,XJe,d7n,p7n,f7n,rG,kDe,Lg,rie,$Mt,tie,$Je,CY,YJe,_7n,Qre,hK,Zre,m7n,nie,h7n,qMt,g7n,y7n,KMt,MDe,v7n,b7n,S7n,E7n,x7n,nG,YMt,T7n,iie,D7n,rXe,ODe,QMt,A7n,C7n,w7n,I7n,P7n,ZMt,QJe,N7n,ZJe,R7n,eLt,eie,iXe,NDe,k7n,oXe,M7n,L7n,O7n,F7n,B7n,HMt,W7n,j7n,tLt,z7n,G7n,U7n,V7n,FDe,eXe,q7n,nLt,RDe,wY,K7n,rLt,H7n,iLt,J7n,X7n,oLt,tXe,$7n,aXe,Y7n,aLt,JMt,Q7n,Z7n,sLt,nXe,e5n,m4,t5n,n5n,Nb,r5n,i5n,o5n,IY,a5n,s5n,l5n,c5n,u5n,d5n,p5n,f5n,_5n,m5n,h5n,g5n,y5n,v5n,b5n,S5n,E5n,x5n,T5n,D5n,A5n,C5n,sXe=Eu(()=>{Z();ne();ee();te();$fe();fK();JJe();XMt=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},o=Symbol("test"),l=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;n[o]=u;for(o in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var p=Object.getOwnPropertySymbols(n);if(p.length!==1||p[0]!==o||!Object.prototype.propertyIsEnumerable.call(n,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(n,o);if(h.value!==u||h.enumerable!==!0)return!1}return!0},"hasSymbols"),LDe=e(function(){return XMt()&&!!Symbol.toStringTag},"hasToStringTagShams"),VMt=typeof Symbol<"u"&&Symbol,c7n=e(function(){return typeof VMt!="function"||typeof Symbol!="function"||typeof VMt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:XMt()},"hasNativeSymbols"),u7n="Function.prototype.bind called on incompatible ",XJe=Array.prototype.slice,d7n=Object.prototype.toString,p7n="[object Function]",f7n=e(function(n){var o=this;if(typeof o!="function"||d7n.call(o)!==p7n)throw new TypeError(u7n+o);for(var l=XJe.call(arguments,1),u,p=e(function(){if(this instanceof u){var D=o.apply(this,l.concat(XJe.call(arguments)));return Object(D)===D?D:this}else return o.apply(n,l.concat(XJe.call(arguments)))},"binder"),h=Math.max(0,o.length-l.length),v=[],T=0;T<h;T++)v.push("$"+T);if(u=Function("binder","return function ("+v.join(",")+"){ return binder.apply(this,arguments); }")(p),o.prototype){var E=e(function(){},"Empty2");E.prototype=o.prototype,u.prototype=new E,E.prototype=null}return u},"bind"),rG=Function.prototype.bind||f7n,kDe=rG.call(Function.call,Object.prototype.hasOwnProperty),rie=SyntaxError,$Mt=Function,tie=TypeError,$Je=e(function(i){try{return $Mt('"use strict"; return ('+i+").constructor;")()}catch{}},"getEvalledConstructor"),CY=Object.getOwnPropertyDescriptor;if(CY)try{CY({},"")}catch{CY=null}YJe=e(function(){throw new tie},"throwTypeError"),_7n=CY?function(){try{return arguments.callee,YJe}catch{try{return CY(arguments,"callee").get}catch{return YJe}}}():YJe,Qre=c7n(),hK=Object.getPrototypeOf||function(i){return i.__proto__},Zre={},m7n=typeof Uint8Array>"u"?Lg:hK(Uint8Array),nie={"%AggregateError%":typeof AggregateError>"u"?Lg:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lg:ArrayBuffer,"%ArrayIteratorPrototype%":Qre?hK([][Symbol.iterator]()):Lg,"%AsyncFromSyncIteratorPrototype%":Lg,"%AsyncFunction%":Zre,"%AsyncGenerator%":Zre,"%AsyncGeneratorFunction%":Zre,"%AsyncIteratorPrototype%":Zre,"%Atomics%":typeof Atomics>"u"?Lg:Atomics,"%BigInt%":typeof BigInt>"u"?Lg:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lg:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Lg:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lg:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lg:FinalizationRegistry,"%Function%":$Mt,"%GeneratorFunction%":Zre,"%Int8Array%":typeof Int8Array>"u"?Lg:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lg:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lg:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Qre?hK(hK([][Symbol.iterator]())):Lg,"%JSON%":typeof JSON=="object"?JSON:Lg,"%Map%":typeof Map>"u"?Lg:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Qre?Lg:hK(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lg:Promise,"%Proxy%":typeof Proxy>"u"?Lg:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Lg:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lg:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Qre?Lg:hK(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lg:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Qre?hK(""[Symbol.iterator]()):Lg,"%Symbol%":Qre?Symbol:Lg,"%SyntaxError%":rie,"%ThrowTypeError%":_7n,"%TypedArray%":m7n,"%TypeError%":tie,"%Uint8Array%":typeof Uint8Array>"u"?Lg:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lg:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lg:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lg:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Lg:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lg:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lg:WeakSet},h7n=e(function i(n){var o;if(n==="%AsyncFunction%")o=$Je("async function () {}");else if(n==="%GeneratorFunction%")o=$Je("function* () {}");else if(n==="%AsyncGeneratorFunction%")o=$Je("async function* () {}");else if(n==="%AsyncGenerator%"){var l=i("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(n==="%AsyncIteratorPrototype%"){var u=i("%AsyncGenerator%");u&&(o=hK(u.prototype))}return nie[n]=o,o},"doEval2"),qMt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g7n=rG.call(Function.call,Array.prototype.concat),y7n=rG.call(Function.apply,Array.prototype.splice),KMt=rG.call(Function.call,String.prototype.replace),MDe=rG.call(Function.call,String.prototype.slice),v7n=rG.call(Function.call,RegExp.prototype.exec),b7n=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S7n=/\\(\\)?/g,E7n=e(function(n){var o=MDe(n,0,1),l=MDe(n,-1);if(o==="%"&&l!=="%")throw new rie("invalid intrinsic syntax, expected closing `%`");if(l==="%"&&o!=="%")throw new rie("invalid intrinsic syntax, expected opening `%`");var u=[];return KMt(n,b7n,function(p,h,v,T){u[u.length]=v?KMt(T,S7n,"$1"):h||p}),u},"stringToPath2"),x7n=e(function(n,o){var l=n,u;if(kDe(qMt,l)&&(u=qMt[l],l="%"+u[0]+"%"),kDe(nie,l)){var p=nie[l];if(p===Zre&&(p=h7n(l)),typeof p>"u"&&!o)throw new tie("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:u,name:l,value:p}}throw new rie("intrinsic "+n+" does not exist!")},"getBaseIntrinsic2"),nG=e(function(n,o){if(typeof n!="string"||n.length===0)throw new tie("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new tie('"allowMissing" argument must be a boolean');if(v7n(/^%?[^%]*%?$/g,n)===null)throw new rie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var l=E7n(n),u=l.length>0?l[0]:"",p=x7n("%"+u+"%",o),h=p.name,v=p.value,T=!1,E=p.alias;E&&(u=E[0],y7n(l,g7n([0,1],E)));for(var D=1,C=!0;D<l.length;D+=1){var w=l[D],W=MDe(w,0,1),V=MDe(w,-1);if((W==='"'||W==="'"||W==="`"||V==='"'||V==="'"||V==="`")&&W!==V)throw new rie("property names with quotes must have matching quotes");if((w==="constructor"||!C)&&(T=!0),u+="."+w,h="%"+u+"%",kDe(nie,h))v=nie[h];else if(v!=null){if(!(w in v)){if(!o)throw new tie("base intrinsic for "+n+" exists, but the property is not available.");return}if(CY&&D+1>=l.length){var B=CY(v,w);C=!!B,C&&"get"in B&&!("originalValue"in B.get)?v=B.get:v=v[w]}else C=kDe(v,w),v=v[w];C&&!T&&(nie[h]=v)}}return v},"GetIntrinsic"),YMt=NR(function(i){var n=nG("%Function.prototype.apply%"),o=nG("%Function.prototype.call%"),l=nG("%Reflect.apply%",!0)||rG.call(o,n),u=nG("%Object.getOwnPropertyDescriptor%",!0),p=nG("%Object.defineProperty%",!0),h=nG("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}i.exports=e(function(E){var D=l(rG,o,arguments);if(u&&p){var C=u(D,"length");C.configurable&&p(D,"length",{value:1+h(0,E.length-(arguments.length-1))})}return D},"callBind2");var v=e(function(){return l(rG,n,arguments)},"applyBind2");p?p(i.exports,"apply",{value:v}):i.exports.apply=v}),T7n=YMt(nG("String.prototype.indexOf")),iie=e(function(n,o){var l=nG(n,!!o);return typeof l=="function"&&T7n(n,".prototype.")>-1?YMt(l):l},"callBoundIntrinsic"),D7n=LDe(),rXe=iie("Object.prototype.toString"),ODe=e(function(n){return D7n&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:rXe(n)==="[object Arguments]"},"isArguments"),QMt=e(function(n){return ODe(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&rXe(n)!=="[object Array]"&&rXe(n.callee)==="[object Function]"},"isArguments2"),A7n=function(){return ODe(arguments)}();ODe.isLegacyArguments=QMt;C7n=A7n?ODe:QMt,w7n=Object.prototype.toString,I7n=Function.prototype.toString,P7n=/^\s*(?:function)?\*/,ZMt=LDe(),QJe=Object.getPrototypeOf,N7n=e(function(){if(!ZMt)return!1;try{return Function("return function*() {}")()}catch{}},"getGeneratorFunc"),R7n=e(function(n){if(typeof n!="function")return!1;if(P7n.test(I7n.call(n)))return!0;if(!ZMt){var o=w7n.call(n);return o==="[object GeneratorFunction]"}if(!QJe)return!1;if(typeof ZJe>"u"){var l=N7n();ZJe=l?QJe(l):!1}return QJe(n)===ZJe},"isGeneratorFunction2"),eLt=Function.prototype.toString,eie=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof eie=="function"&&typeof Object.defineProperty=="function")try{iXe=Object.defineProperty({},"length",{get:e(function(){throw NDe},"get")}),NDe={},eie(function(){throw 42},null,iXe)}catch(i){i!==NDe&&(eie=null)}else eie=null;k7n=/^\s*class\b/,oXe=e(function(n){try{var o=eLt.call(n);return k7n.test(o)}catch{return!1}},"isES6ClassFunction"),M7n=e(function(n){try{return oXe(n)?!1:(eLt.call(n),!0)}catch{return!1}},"tryFunctionToStr"),L7n=Object.prototype.toString,O7n="[object Function]",F7n="[object GeneratorFunction]",B7n=typeof Symbol=="function"&&!!Symbol.toStringTag,HMt=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{},W7n=eie?e(function(n){if(n===HMt)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;try{eie(n,null,iXe)}catch(o){if(o!==NDe)return!1}return!oXe(n)},"isCallable2"):e(function(n){if(n===HMt)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;if(B7n)return M7n(n);if(oXe(n))return!1;var o=L7n.call(n);return o===O7n||o===F7n},"isCallable3"),j7n=Object.prototype.toString,tLt=Object.prototype.hasOwnProperty,z7n=e(function(n,o,l){for(var u=0,p=n.length;u<p;u++)tLt.call(n,u)&&(l==null?o(n[u],u,n):o.call(l,n[u],u,n))},"forEachArray2"),G7n=e(function(n,o,l){for(var u=0,p=n.length;u<p;u++)l==null?o(n.charAt(u),u,n):o.call(l,n.charAt(u),u,n)},"forEachString2"),U7n=e(function(n,o,l){for(var u in n)tLt.call(n,u)&&(l==null?o(n[u],u,n):o.call(l,n[u],u,n))},"forEachObject2"),V7n=e(function(n,o,l){if(!W7n(o))throw new TypeError("iterator must be a function");var u;arguments.length>=3&&(u=l),j7n.call(n)==="[object Array]"?z7n(n,o,u):typeof n=="string"?G7n(n,o,u):U7n(n,o,u)},"forEach2"),FDe=V7n,eXe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],q7n=typeof globalThis>"u"?D9:globalThis,nLt=e(function(){for(var n=[],o=0;o<eXe.length;o++)typeof q7n[eXe[o]]=="function"&&(n[n.length]=eXe[o]);return n},"availableTypedArrays2"),RDe=nG("%Object.getOwnPropertyDescriptor%",!0);if(RDe)try{RDe([],"length")}catch{RDe=null}wY=RDe,K7n=iie("Object.prototype.toString"),rLt=LDe(),H7n=typeof globalThis>"u"?D9:globalThis,iLt=nLt(),J7n=iie("Array.prototype.indexOf",!0)||e(function(n,o){for(var l=0;l<n.length;l+=1)if(n[l]===o)return l;return-1},"indexOf"),X7n=iie("String.prototype.slice"),oLt={},tXe=Object.getPrototypeOf;rLt&&wY&&tXe&&FDe(iLt,function(i){var n=new H7n[i];if(Symbol.toStringTag in n){var o=tXe(n),l=wY(o,Symbol.toStringTag);if(!l){var u=tXe(o);l=wY(u,Symbol.toStringTag)}oLt[i]=l.get}});$7n=e(function(n){var o=!1;return FDe(oLt,function(l,u){if(!o)try{o=l.call(n)===u}catch{}}),o},"tryAllTypedArrays"),aXe=e(function(n){if(!n||typeof n!="object")return!1;if(!rLt||!(Symbol.toStringTag in n)){var o=X7n(K7n(n),8,-1);return J7n(iLt,o)>-1}return wY?$7n(n):!1},"isTypedArray2"),Y7n=iie("Object.prototype.toString"),aLt=LDe(),JMt=typeof globalThis>"u"?D9:globalThis,Q7n=nLt(),Z7n=iie("String.prototype.slice"),sLt={},nXe=Object.getPrototypeOf;aLt&&wY&&nXe&&FDe(Q7n,function(i){if(typeof JMt[i]=="function"){var n=new JMt[i];if(Symbol.toStringTag in n){var o=nXe(n),l=wY(o,Symbol.toStringTag);if(!l){var u=nXe(o);l=wY(u,Symbol.toStringTag)}sLt[i]=l.get}}});e5n=e(function(n){var o=!1;return FDe(sLt,function(l,u){if(!o)try{var p=l.call(n);p===u&&(o=p)}catch{}}),o},"tryAllTypedArrays2"),m4=e(function(n){return aXe(n)?!aLt||!(Symbol.toStringTag in n)?Z7n(Y7n(n),8,-1):e5n(n):!1},"whichTypedArray2"),t5n=NR(function(i,n){function o(Ir){return Ir.call.bind(Ir)}e(o,"uncurryThis");var l=typeof BigInt<"u",u=typeof Symbol<"u",p=o(Object.prototype.toString),h=o(Number.prototype.valueOf),v=o(String.prototype.valueOf),T=o(Boolean.prototype.valueOf);if(l)var E=o(BigInt.prototype.valueOf);if(u)var D=o(Symbol.prototype.valueOf);function C(Ir,yn){if(typeof Ir!="object")return!1;try{return yn(Ir),!0}catch{return!1}}e(C,"checkBoxedPrimitive"),n.isArgumentsObject=C7n,n.isGeneratorFunction=R7n,n.isTypedArray=aXe;function w(Ir){return typeof Promise<"u"&&Ir instanceof Promise||Ir!==null&&typeof Ir=="object"&&typeof Ir.then=="function"&&typeof Ir.catch=="function"}e(w,"isPromise"),n.isPromise=w;function W(Ir){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Ir):aXe(Ir)||ht(Ir)}e(W,"isArrayBufferView"),n.isArrayBufferView=W;function V(Ir){return m4(Ir)==="Uint8Array"}e(V,"isUint8Array"),n.isUint8Array=V;function B(Ir){return m4(Ir)==="Uint8ClampedArray"}e(B,"isUint8ClampedArray"),n.isUint8ClampedArray=B;function k(Ir){return m4(Ir)==="Uint16Array"}e(k,"isUint16Array"),n.isUint16Array=k;function F(Ir){return m4(Ir)==="Uint32Array"}e(F,"isUint32Array"),n.isUint32Array=F;function $(Ir){return m4(Ir)==="Int8Array"}e($,"isInt8Array"),n.isInt8Array=$;function Y(Ir){return m4(Ir)==="Int16Array"}e(Y,"isInt16Array"),n.isInt16Array=Y;function ie(Ir){return m4(Ir)==="Int32Array"}e(ie,"isInt32Array"),n.isInt32Array=ie;function fe(Ir){return m4(Ir)==="Float32Array"}e(fe,"isFloat32Array"),n.isFloat32Array=fe;function ve(Ir){return m4(Ir)==="Float64Array"}e(ve,"isFloat64Array"),n.isFloat64Array=ve;function Ce(Ir){return m4(Ir)==="BigInt64Array"}e(Ce,"isBigInt64Array"),n.isBigInt64Array=Ce;function be(Ir){return m4(Ir)==="BigUint64Array"}e(be,"isBigUint64Array"),n.isBigUint64Array=be;function qe(Ir){return p(Ir)==="[object Map]"}e(qe,"isMapToString"),qe.working=typeof Map<"u"&&qe(new Map);function yt(Ir){return typeof Map>"u"?!1:qe.working?qe(Ir):Ir instanceof Map}e(yt,"isMap"),n.isMap=yt;function Ct(Ir){return p(Ir)==="[object Set]"}e(Ct,"isSetToString"),Ct.working=typeof Set<"u"&&Ct(new Set);function Bt(Ir){return typeof Set>"u"?!1:Ct.working?Ct(Ir):Ir instanceof Set}e(Bt,"isSet"),n.isSet=Bt;function fn(Ir){return p(Ir)==="[object WeakMap]"}e(fn,"isWeakMapToString"),fn.working=typeof WeakMap<"u"&&fn(new WeakMap);function Fn(Ir){return typeof WeakMap>"u"?!1:fn.working?fn(Ir):Ir instanceof WeakMap}e(Fn,"isWeakMap"),n.isWeakMap=Fn;function Sn(Ir){return p(Ir)==="[object WeakSet]"}e(Sn,"isWeakSetToString"),Sn.working=typeof WeakSet<"u"&&Sn(new WeakSet);function Qt(Ir){return Sn(Ir)}e(Qt,"isWeakSet"),n.isWeakSet=Qt;function on(Ir){return p(Ir)==="[object ArrayBuffer]"}e(on,"isArrayBufferToString"),on.working=typeof ArrayBuffer<"u"&&on(new ArrayBuffer);function It(Ir){return typeof ArrayBuffer>"u"?!1:on.working?on(Ir):Ir instanceof ArrayBuffer}e(It,"isArrayBuffer"),n.isArrayBuffer=It;function Kt(Ir){return p(Ir)==="[object DataView]"}e(Kt,"isDataViewToString"),Kt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Kt(new DataView(new ArrayBuffer(1),0,1));function ht(Ir){return typeof DataView>"u"?!1:Kt.working?Kt(Ir):Ir instanceof DataView}e(ht,"isDataView"),n.isDataView=ht;var wn=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Gn(Ir){return p(Ir)==="[object SharedArrayBuffer]"}e(Gn,"isSharedArrayBufferToString");function _n(Ir){return typeof wn>"u"?!1:(typeof Gn.working>"u"&&(Gn.working=Gn(new wn)),Gn.working?Gn(Ir):Ir instanceof wn)}e(_n,"isSharedArrayBuffer"),n.isSharedArrayBuffer=_n;function Bn(Ir){return p(Ir)==="[object AsyncFunction]"}e(Bn,"isAsyncFunction"),n.isAsyncFunction=Bn;function cr(Ir){return p(Ir)==="[object Map Iterator]"}e(cr,"isMapIterator"),n.isMapIterator=cr;function Yt(Ir){return p(Ir)==="[object Set Iterator]"}e(Yt,"isSetIterator"),n.isSetIterator=Yt;function Ft(Ir){return p(Ir)==="[object Generator]"}e(Ft,"isGeneratorObject"),n.isGeneratorObject=Ft;function pt(Ir){return p(Ir)==="[object WebAssembly.Module]"}e(pt,"isWebAssemblyCompiledModule"),n.isWebAssemblyCompiledModule=pt;function me(Ir){return C(Ir,h)}e(me,"isNumberObject"),n.isNumberObject=me;function zt(Ir){return C(Ir,v)}e(zt,"isStringObject"),n.isStringObject=zt;function Tt(Ir){return C(Ir,T)}e(Tt,"isBooleanObject"),n.isBooleanObject=Tt;function tn(Ir){return l&&C(Ir,E)}e(tn,"isBigIntObject"),n.isBigIntObject=tn;function En(Ir){return u&&C(Ir,D)}e(En,"isSymbolObject"),n.isSymbolObject=En;function Kn(Ir){return me(Ir)||zt(Ir)||Tt(Ir)||tn(Ir)||En(Ir)}e(Kn,"isBoxedPrimitive"),n.isBoxedPrimitive=Kn;function Gr(Ir){return typeof Uint8Array<"u"&&(It(Ir)||_n(Ir))}e(Gr,"isAnyArrayBuffer"),n.isAnyArrayBuffer=Gr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ir){Object.defineProperty(n,Ir,{enumerable:!1,value:e(function(){throw new Error(Ir+" is not supported in userland")},"value")})})}),n5n=e(function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},"isBuffer"),Nb=NR(function(i,n){var o=Object.getOwnPropertyDescriptors||e(function(Bn){for(var cr=Object.keys(Bn),Yt={},Ft=0;Ft<cr.length;Ft++)Yt[cr[Ft]]=Object.getOwnPropertyDescriptor(Bn,cr[Ft]);return Yt},"getOwnPropertyDescriptors2"),l=/%[sdj%]/g;n.format=function(_n){if(!ve(_n)){for(var Bn=[],cr=0;cr<arguments.length;cr++)Bn.push(v(arguments[cr]));return Bn.join(" ")}for(var cr=1,Yt=arguments,Ft=Yt.length,pt=String(_n).replace(l,function(zt){if(zt==="%%")return"%";if(cr>=Ft)return zt;switch(zt){case"%s":return String(Yt[cr++]);case"%d":return Number(Yt[cr++]);case"%j":try{return JSON.stringify(Yt[cr++])}catch{return"[Circular]"}default:return zt}}),me=Yt[cr];cr<Ft;me=Yt[++cr])Y(me)||!yt(me)?pt+=" "+me:pt+=" "+v(me);return pt},n.deprecate=function(_n,Bn){if(typeof Je<"u"&&Je.noDeprecation===!0)return _n;if(typeof Je>"u")return function(){return n.deprecate(_n,Bn).apply(this,arguments)};var cr=!1;function Yt(){if(!cr){if(Je.throwDeprecation)throw new Error(Bn);Je.traceDeprecation?console.trace(Bn):console.error(Bn),cr=!0}return _n.apply(this,arguments)}return e(Yt,"deprecated"),Yt};var u={},p=/^$/;if(Je.env.NODE_DEBUG){var h=Je.env.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+h+"$","i")}n.debuglog=function(_n){if(_n=_n.toUpperCase(),!u[_n])if(p.test(_n)){var Bn=Je.pid;u[_n]=function(){var cr=n.format.apply(n,arguments);console.error("%s %d: %s",_n,Bn,cr)}}else u[_n]=function(){};return u[_n]};function v(_n,Bn){var cr={seen:[],stylize:E};return arguments.length>=3&&(cr.depth=arguments[2]),arguments.length>=4&&(cr.colors=arguments[3]),$(Bn)?cr.showHidden=Bn:Bn&&n._extend(cr,Bn),be(cr.showHidden)&&(cr.showHidden=!1),be(cr.depth)&&(cr.depth=2),be(cr.colors)&&(cr.colors=!1),be(cr.customInspect)&&(cr.customInspect=!0),cr.colors&&(cr.stylize=T),C(cr,_n,cr.depth)}e(v,"inspect2"),n.inspect=v,v.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function T(_n,Bn){var cr=v.styles[Bn];return cr?"\x1B["+v.colors[cr][0]+"m"+_n+"\x1B["+v.colors[cr][1]+"m":_n}e(T,"stylizeWithColor");function E(_n,Bn){return _n}e(E,"stylizeNoColor");function D(_n){var Bn={};return _n.forEach(function(cr,Yt){Bn[cr]=!0}),Bn}e(D,"arrayToHash");function C(_n,Bn,cr){if(_n.customInspect&&Bn&&fn(Bn.inspect)&&Bn.inspect!==n.inspect&&!(Bn.constructor&&Bn.constructor.prototype===Bn)){var Yt=Bn.inspect(cr,_n);return ve(Yt)||(Yt=C(_n,Yt,cr)),Yt}var Ft=w(_n,Bn);if(Ft)return Ft;var pt=Object.keys(Bn),me=D(pt);if(_n.showHidden&&(pt=Object.getOwnPropertyNames(Bn)),Bt(Bn)&&(pt.indexOf("message")>=0||pt.indexOf("description")>=0))return W(Bn);if(pt.length===0){if(fn(Bn)){var zt=Bn.name?": "+Bn.name:"";return _n.stylize("[Function"+zt+"]","special")}if(qe(Bn))return _n.stylize(RegExp.prototype.toString.call(Bn),"regexp");if(Ct(Bn))return _n.stylize(Date.prototype.toString.call(Bn),"date");if(Bt(Bn))return W(Bn)}var Tt="",tn=!1,En=["{","}"];if(F(Bn)&&(tn=!0,En=["[","]"]),fn(Bn)){var Kn=Bn.name?": "+Bn.name:"";Tt=" [Function"+Kn+"]"}if(qe(Bn)&&(Tt=" "+RegExp.prototype.toString.call(Bn)),Ct(Bn)&&(Tt=" "+Date.prototype.toUTCString.call(Bn)),Bt(Bn)&&(Tt=" "+W(Bn)),pt.length===0&&(!tn||Bn.length==0))return En[0]+Tt+En[1];if(cr<0)return qe(Bn)?_n.stylize(RegExp.prototype.toString.call(Bn),"regexp"):_n.stylize("[Object]","special");_n.seen.push(Bn);var Gr;return tn?Gr=V(_n,Bn,cr,me,pt):Gr=pt.map(function(Ir){return B(_n,Bn,cr,me,Ir,tn)}),_n.seen.pop(),k(Gr,Tt,En)}e(C,"formatValue");function w(_n,Bn){if(be(Bn))return _n.stylize("undefined","undefined");if(ve(Bn)){var cr="'"+JSON.stringify(Bn).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return _n.stylize(cr,"string")}if(fe(Bn))return _n.stylize(""+Bn,"number");if($(Bn))return _n.stylize(""+Bn,"boolean");if(Y(Bn))return _n.stylize("null","null")}e(w,"formatPrimitive");function W(_n){return"["+Error.prototype.toString.call(_n)+"]"}e(W,"formatError");function V(_n,Bn,cr,Yt,Ft){for(var pt=[],me=0,zt=Bn.length;me<zt;++me)Kt(Bn,String(me))?pt.push(B(_n,Bn,cr,Yt,String(me),!0)):pt.push("");return Ft.forEach(function(Tt){Tt.match(/^\d+$/)||pt.push(B(_n,Bn,cr,Yt,Tt,!0))}),pt}e(V,"formatArray");function B(_n,Bn,cr,Yt,Ft,pt){var me,zt,Tt;if(Tt=Object.getOwnPropertyDescriptor(Bn,Ft)||{value:Bn[Ft]},Tt.get?Tt.set?zt=_n.stylize("[Getter/Setter]","special"):zt=_n.stylize("[Getter]","special"):Tt.set&&(zt=_n.stylize("[Setter]","special")),Kt(Yt,Ft)||(me="["+Ft+"]"),zt||(_n.seen.indexOf(Tt.value)<0?(Y(cr)?zt=C(_n,Tt.value,null):zt=C(_n,Tt.value,cr-1),zt.indexOf(`
1
+ "use strict";var Q4n=Object.create;var Jfe=Object.defineProperty;var Z4n=Object.getOwnPropertyDescriptor;var e7n=Object.getOwnPropertyNames;var t7n=Object.getPrototypeOf,n7n=Object.prototype.hasOwnProperty;var e=(i,n)=>Jfe(i,"name",{value:n,configurable:!0});var Eu=(i,n)=>()=>(i&&(n=i(i=0)),n);var ft=(i,n)=>()=>(n||i((n={exports:{}}).exports,n),n.exports),_C=(i,n)=>{for(var o in n)Jfe(i,o,{get:n[o],enumerable:!0})},zMt=(i,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let u of e7n(n))!n7n.call(i,u)&&u!==o&&Jfe(i,u,{get:()=>n[u],enumerable:!(l=Z4n(n,u))||l.enumerable});return i};var DY=(i,n,o)=>(o=i!=null?Q4n(t7n(i)):{},zMt(n||!i||!i.__esModule?Jfe(o,"default",{value:i,enumerable:!0}):o,i)),Ld=i=>zMt(Jfe({},"__esModule",{value:!0}),i);var et,Z=Eu(()=>{et=["/home/jenkins/agent/workspace/ps_platform_fluent_release_4.0.2/target/checkout/node/node","/home/jenkins/agent/workspace/ps_platform_fluent_release_4.0.2/target/checkout/packages/sdk/esbuild.ts","--production"]});var Ze,ee=Eu(()=>{"use strict";Ze={hardwareConcurrency:1}});function $re(){return typeof window<"u"&&typeof window.document<"u"||typeof self<"u"&&typeof self.importScripts=="function"}var DDe=Eu(()=>{"use strict";Z();ne();ee();te();e($re,"isBrowserOrWorkerEnvironment")});function NR(i,n,o){return o={path:n,exports:{},require:e(function(l,u){return i7n(l,u??o.path)},"require")},i(o,o.exports),o.exports}function i7n(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var D9,fK=Eu(()=>{Z();ne();ee();te();D9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e(NR,"createCommonjsModule");e(i7n,"commonjsRequire")});function o7n(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var a7n,Xfe,Yre,HJe,YMr,ADe,QMr,GMt=Eu(()=>{Z();ne();ee();te();fK();e(o7n,"getScope");a7n=o7n(),Xfe=a7n[Symbol.for("brodeProcess")],Yre={nextTick(i,...n){if(!(Xfe&&Xfe.exitCode!==null)){if(typeof i!="function")throw new TypeError("handler is not a function");queueMicrotask(()=>{try{i(...n)}catch(o){if(Xfe&&Xfe.hasListeners("uncaughtException")){Xfe.emit("uncaughtException",o);return}throw o}})}},emitWarning(i){console.warn(i)}},HJe=NR(function(i,n){(function(o){var l=Object.hasOwnProperty,u=Array.isArray?Array.isArray:e(function(Kt){return Object.prototype.toString.call(Kt)==="[object Array]"},"_isArray"),p=10,h=typeof Yre=="object"&&typeof Yre.nextTick=="function",v=typeof Symbol=="function",T=typeof Reflect=="object",E=typeof setImmediate=="function",D=E?setImmediate:setTimeout,C=v?T&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(It){var Kt=Object.getOwnPropertyNames(It);return Kt.push.apply(Kt,Object.getOwnPropertySymbols(It)),Kt}:Object.keys;function w(){this._events={},this._conf&&W.call(this,this._conf)}e(w,"init");function W(It){It&&(this._conf=It,It.delimiter&&(this.delimiter=It.delimiter),It.maxListeners!==o&&(this._maxListeners=It.maxListeners),It.wildcard&&(this.wildcard=It.wildcard),It.newListener&&(this._newListener=It.newListener),It.removeListener&&(this._removeListener=It.removeListener),It.verboseMemoryLeak&&(this.verboseMemoryLeak=It.verboseMemoryLeak),It.ignoreErrors&&(this.ignoreErrors=It.ignoreErrors),this.wildcard&&(this.listenerTree={}))}e(W,"configure");function V(It,Kt){var ht="(node) warning: possible EventEmitter memory leak detected. "+It+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(ht+=" Event name: "+Kt+"."),typeof Yre<"u"&&Yre.emitWarning){var wn=new Error(ht);wn.name="MaxListenersExceededWarning",wn.emitter=this,wn.count=It,Yre.emitWarning(wn)}else console.error(ht),console.trace&&console.trace()}e(V,"logPossibleMemoryLeak");var B=e(function(It,Kt,ht){var wn=arguments.length;switch(wn){case 0:return[];case 1:return[It];case 2:return[It,Kt];case 3:return[It,Kt,ht];default:for(var Gn=new Array(wn);wn--;)Gn[wn]=arguments[wn];return Gn}},"toArray");function k(It,Kt){for(var ht={},wn,Gn=It.length,_n=Kt?Kt.length:0,Bn=0;Bn<Gn;Bn++)wn=It[Bn],ht[wn]=Bn<_n?Kt[Bn]:o;return ht}e(k,"toObject");function F(It,Kt,ht){this._emitter=It,this._target=Kt,this._listeners={},this._listenersCount=0;var wn,Gn;if((ht.on||ht.off)&&(wn=ht.on,Gn=ht.off),Kt.addEventListener?(wn=Kt.addEventListener,Gn=Kt.removeEventListener):Kt.addListener?(wn=Kt.addListener,Gn=Kt.removeListener):Kt.on&&(wn=Kt.on,Gn=Kt.off),!wn&&!Gn)throw Error("target does not implement any known event API");if(typeof wn!="function")throw TypeError("on method must be a function");if(typeof Gn!="function")throw TypeError("off method must be a function");this._on=wn,this._off=Gn;var _n=It._observers;_n?_n.push(this):It._observers=[this]}e(F,"TargetObserver"),Object.assign(F.prototype,{subscribe:e(function(It,Kt,ht){var wn=this,Gn=this._target,_n=this._emitter,Bn=this._listeners,cr=e(function(){var Yt=B.apply(null,arguments),Ft={data:Yt,name:Kt,original:It};if(ht){var pt=ht.call(Gn,Ft);pt!==!1&&_n.emit.apply(_n,[Ft.name].concat(Yt));return}_n.emit.apply(_n,[Kt].concat(Yt))},"handler");if(Bn[It])throw Error("Event '"+It+"' is already listening");this._listenersCount++,_n._newListener&&_n._removeListener&&!wn._onNewListener?(this._onNewListener=function(Yt){Yt===Kt&&Bn[It]===null&&(Bn[It]=cr,wn._on.call(Gn,It,cr))},_n.on("newListener",this._onNewListener),this._onRemoveListener=function(Yt){Yt===Kt&&!_n.hasListeners(Yt)&&Bn[It]&&(Bn[It]=null,wn._off.call(Gn,It,cr))},Bn[It]=null,_n.on("removeListener",this._onRemoveListener)):(Bn[It]=cr,wn._on.call(Gn,It,cr))},"subscribe"),unsubscribe:e(function(It){var Kt=this,ht=this._listeners,wn=this._emitter,Gn,_n,Bn=this._off,cr=this._target,Yt;if(It&&typeof It!="string")throw TypeError("event must be a string");function Ft(){Kt._onNewListener&&(wn.off("newListener",Kt._onNewListener),wn.off("removeListener",Kt._onRemoveListener),Kt._onNewListener=null,Kt._onRemoveListener=null);var pt=be.call(wn,Kt);wn._observers.splice(pt,1)}if(e(Ft,"clearRefs"),It){if(Gn=ht[It],!Gn)return;Bn.call(cr,It,Gn),delete ht[It],--this._listenersCount||Ft()}else{for(_n=C(ht),Yt=_n.length;Yt-- >0;)It=_n[Yt],Bn.call(cr,It,ht[It]);this._listeners={},this._listenersCount=0,Ft()}},"unsubscribe")});function $(It,Kt,ht,wn){var Gn=Object.assign({},Kt);if(!It)return Gn;if(typeof It!="object")throw TypeError("options must be an object");var _n=Object.keys(It),Bn=_n.length,cr,Yt,Ft;function pt(zt){throw Error('Invalid "'+cr+'" option value'+(zt?". Reason: "+zt:""))}e(pt,"reject");for(var me=0;me<Bn;me++){if(cr=_n[me],!wn&&!l.call(Kt,cr))throw Error('Unknown "'+cr+'" option');Yt=It[cr],Yt!==o&&(Ft=ht[cr],Gn[cr]=Ft?Ft(Yt,pt):Yt)}return Gn}e($,"resolveOptions");function Y(It,Kt){return(typeof It!="function"||!It.hasOwnProperty("prototype"))&&Kt("value must be a constructor"),It}e(Y,"constructorReducer");function ie(It){var Kt="value must be type of "+It.join("|"),ht=It.length,wn=It[0],Gn=It[1];return ht===1?function(_n,Bn){if(typeof _n===wn)return _n;Bn(Kt)}:ht===2?function(_n,Bn){var cr=typeof _n;if(cr===wn||cr===Gn)return _n;Bn(Kt)}:function(_n,Bn){for(var cr=typeof _n,Yt=ht;Yt-- >0;)if(cr===It[Yt])return _n;Bn(Kt)}}e(ie,"makeTypeReducer");var fe=ie(["function"]),ve=ie(["object","function"]);function Ce(It,Kt,ht){var wn,Gn,_n=0,Bn,cr=new It(function(Yt,Ft,pt){ht=$(ht,{timeout:0,overload:!1},{timeout:e(function(tn,En){return tn*=1,(typeof tn!="number"||tn<0||!Number.isFinite(tn))&&En("timeout must be a positive number"),tn},"timeout")}),wn=!ht.overload&&typeof It.prototype.cancel=="function"&&typeof pt=="function";function me(){Gn&&(Gn=null),_n&&(clearTimeout(_n),_n=0)}e(me,"cleanup");var zt=e(function(tn){me(),Yt(tn)},"_resolve"),Tt=e(function(tn){me(),Ft(tn)},"_reject");wn?Kt(zt,Tt,pt):(Gn=[function(tn){Tt(tn||Error("canceled"))}],Kt(zt,Tt,function(tn){if(Bn)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof tn!="function")throw TypeError("onCancel callback must be a function");Gn.push(tn)}),Bn=!0),ht.timeout>0&&(_n=setTimeout(function(){var tn=Error("timeout");tn.code="ETIMEDOUT",_n=0,cr.cancel(tn),Ft(tn)},ht.timeout))});return wn||(cr.cancel=function(Yt){if(Gn){for(var Ft=Gn.length,pt=1;pt<Ft;pt++)Gn[pt](Yt);Gn[0](Yt),Gn=null}}),cr}e(Ce,"makeCancelablePromise");function be(It){var Kt=this._observers;if(!Kt)return-1;for(var ht=Kt.length,wn=0;wn<ht;wn++)if(Kt[wn]._target===It)return wn;return-1}e(be,"findTargetIndex");function qe(It,Kt,ht,wn,Gn){if(!ht)return null;if(wn===0){var _n=typeof Kt;if(_n==="string"){var Bn,cr,Yt=0,Ft=0,pt=this.delimiter,me=pt.length;if((cr=Kt.indexOf(pt))!==-1){Bn=new Array(5);do Bn[Yt++]=Kt.slice(Ft,cr),Ft=cr+me;while((cr=Kt.indexOf(pt,Ft))!==-1);Bn[Yt++]=Kt.slice(Ft),Kt=Bn,Gn=Yt}else Kt=[Kt],Gn=1}else _n==="object"?Gn=Kt.length:(Kt=[Kt],Gn=1)}var zt=null,Tt,tn,En,Kn,Gr,Ir=Kt[wn],yn=Kt[wn+1],ga,so;if(wn===Gn)ht._listeners&&(typeof ht._listeners=="function"?(It&&It.push(ht._listeners),zt=[ht]):(It&&It.push.apply(It,ht._listeners),zt=[ht]));else if(Ir==="*"){for(ga=C(ht),cr=ga.length;cr-- >0;)Tt=ga[cr],Tt!=="_listeners"&&(so=qe(It,Kt,ht[Tt],wn+1,Gn),so&&(zt?zt.push.apply(zt,so):zt=so));return zt}else if(Ir==="**"){for(Gr=wn+1===Gn||wn+2===Gn&&yn==="*",Gr&&ht._listeners&&(zt=qe(It,Kt,ht,Gn,Gn)),ga=C(ht),cr=ga.length;cr-- >0;)Tt=ga[cr],Tt!=="_listeners"&&(Tt==="*"||Tt==="**"?(ht[Tt]._listeners&&!Gr&&(so=qe(It,Kt,ht[Tt],Gn,Gn),so&&(zt?zt.push.apply(zt,so):zt=so)),so=qe(It,Kt,ht[Tt],wn,Gn)):Tt===yn?so=qe(It,Kt,ht[Tt],wn+2,Gn):so=qe(It,Kt,ht[Tt],wn,Gn),so&&(zt?zt.push.apply(zt,so):zt=so));return zt}else ht[Ir]&&(zt=qe(It,Kt,ht[Ir],wn+1,Gn));if(tn=ht["*"],tn&&qe(It,Kt,tn,wn+1,Gn),En=ht["**"],En)if(wn<Gn)for(En._listeners&&qe(It,Kt,En,Gn,Gn),ga=C(En),cr=ga.length;cr-- >0;)Tt=ga[cr],Tt!=="_listeners"&&(Tt===yn?qe(It,Kt,En[Tt],wn+2,Gn):Tt===Ir?qe(It,Kt,En[Tt],wn+1,Gn):(Kn={},Kn[Tt]=En[Tt],qe(It,Kt,{"**":Kn},wn+1,Gn)));else En._listeners?qe(It,Kt,En,Gn,Gn):En["*"]&&En["*"]._listeners&&qe(It,Kt,En["*"],Gn,Gn);return zt}e(qe,"searchListenerTree");function yt(It,Kt,ht){var wn=0,Gn=0,_n,Bn=this.delimiter,cr=Bn.length,Yt;if(typeof It=="string")if((_n=It.indexOf(Bn))!==-1){Yt=new Array(5);do Yt[wn++]=It.slice(Gn,_n),Gn=_n+cr;while((_n=It.indexOf(Bn,Gn))!==-1);Yt[wn++]=It.slice(Gn)}else Yt=[It],wn=1;else Yt=It,wn=It.length;if(wn>1){for(_n=0;_n+1<wn;_n++)if(Yt[_n]==="**"&&Yt[_n+1]==="**")return}var Ft=this.listenerTree,pt;for(_n=0;_n<wn;_n++)if(pt=Yt[_n],Ft=Ft[pt]||(Ft[pt]={}),_n===wn-1)return Ft._listeners?(typeof Ft._listeners=="function"&&(Ft._listeners=[Ft._listeners]),ht?Ft._listeners.unshift(Kt):Ft._listeners.push(Kt),!Ft._listeners.warned&&this._maxListeners>0&&Ft._listeners.length>this._maxListeners&&(Ft._listeners.warned=!0,V.call(this,Ft._listeners.length,pt))):Ft._listeners=Kt,!0;return!0}e(yt,"growListenerTree");function Ct(It,Kt,ht,wn){for(var Gn=C(It),_n=Gn.length,Bn,cr,Yt,Ft=It._listeners,pt;_n-- >0;)cr=Gn[_n],Bn=It[cr],cr==="_listeners"?Yt=ht:Yt=ht?ht.concat(cr):[cr],pt=wn||typeof cr=="symbol",Ft&&Kt.push(pt?Yt:Yt.join(this.delimiter)),typeof Bn=="object"&&Ct.call(this,Bn,Kt,Yt,pt);return Kt}e(Ct,"collectTreeEvents");function Bt(It){for(var Kt=C(It),ht=Kt.length,wn,Gn,_n;ht-- >0;)Gn=Kt[ht],wn=It[Gn],wn&&(_n=!0,Gn!=="_listeners"&&!Bt(wn)&&delete It[Gn]);return _n}e(Bt,"recursivelyGarbageCollect");function fn(It,Kt,ht){this.emitter=It,this.event=Kt,this.listener=ht}e(fn,"Listener"),fn.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function Fn(It,Kt,ht){if(ht===!0)Gn=!0;else if(ht===!1)wn=!0;else{if(!ht||typeof ht!="object")throw TypeError("options should be an object or true");var wn=ht.async,Gn=ht.promisify,_n=ht.nextTick,Bn=ht.objectify}if(wn||_n||Gn){var cr=Kt,Yt=Kt._origin||Kt;if(_n&&!h)throw Error("process.nextTick is not supported");Gn===o&&(Gn=Kt.constructor.name==="AsyncFunction"),Kt=e(function(){var Ft=arguments,pt=this,me=this.event;return Gn?_n?Promise.resolve():new Promise(function(zt){D(zt)}).then(function(){return pt.event=me,cr.apply(pt,Ft)}):(_n?Yre.nextTick:D)(function(){pt.event=me,cr.apply(pt,Ft)})},"listener"),Kt._async=!0,Kt._origin=Yt}return[Kt,Bn?new fn(this,It,Kt):this]}e(Fn,"setupListener");function Sn(It){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,W.call(this,It)}e(Sn,"EventEmitter"),Sn.EventEmitter2=Sn,Sn.prototype.listenTo=function(It,Kt,ht){if(typeof It!="object")throw TypeError("target musts be an object");var wn=this;ht=$(ht,{on:o,off:o,reducers:o},{on:fe,off:fe,reducers:ve});function Gn(_n){if(typeof _n!="object")throw TypeError("events must be an object");var Bn=ht.reducers,cr=be.call(wn,It),Yt;cr===-1?Yt=new F(wn,It,ht):Yt=wn._observers[cr];for(var Ft=C(_n),pt=Ft.length,me,zt=typeof Bn=="function",Tt=0;Tt<pt;Tt++)me=Ft[Tt],Yt.subscribe(me,_n[me]||me,zt?Bn:Bn&&Bn[me])}return e(Gn,"listen"),u(Kt)?Gn(k(Kt)):Gn(typeof Kt=="string"?k(Kt.split(/\s+/)):Kt),this},Sn.prototype.stopListeningTo=function(It,Kt){var ht=this._observers;if(!ht)return!1;var wn=ht.length,Gn,_n=!1;if(It&&typeof It!="object")throw TypeError("target should be an object");for(;wn-- >0;)Gn=ht[wn],(!It||Gn._target===It)&&(Gn.unsubscribe(Kt),_n=!0);return _n},Sn.prototype.delimiter=".",Sn.prototype.setMaxListeners=function(It){It!==o&&(this._maxListeners=It,this._conf||(this._conf={}),this._conf.maxListeners=It)},Sn.prototype.getMaxListeners=function(){return this._maxListeners},Sn.prototype.event="",Sn.prototype.once=function(It,Kt,ht){return this._once(It,Kt,!1,ht)},Sn.prototype.prependOnceListener=function(It,Kt,ht){return this._once(It,Kt,!0,ht)},Sn.prototype._once=function(It,Kt,ht,wn){return this._many(It,1,Kt,ht,wn)},Sn.prototype.many=function(It,Kt,ht,wn){return this._many(It,Kt,ht,!1,wn)},Sn.prototype.prependMany=function(It,Kt,ht,wn){return this._many(It,Kt,ht,!0,wn)},Sn.prototype._many=function(It,Kt,ht,wn,Gn){var _n=this;if(typeof ht!="function")throw new Error("many only accepts instances of Function");function Bn(){return--Kt===0&&_n.off(It,Bn),ht.apply(this,arguments)}return e(Bn,"listener"),Bn._origin=ht,this._on(It,Bn,wn,Gn)},Sn.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||w.call(this);var It=arguments[0],Kt,ht=this.wildcard,wn,Gn,_n,Bn,cr;if(It==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(ht&&(Kt=It,It!=="newListener"&&It!=="removeListener"&&typeof It=="object")){if(Gn=It.length,v){for(_n=0;_n<Gn;_n++)if(typeof It[_n]=="symbol"){cr=!0;break}}cr||(It=It.join(this.delimiter))}var Yt=arguments.length,Ft;if(this._all&&this._all.length)for(Ft=this._all.slice(),_n=0,Gn=Ft.length;_n<Gn;_n++)switch(this.event=It,Yt){case 1:Ft[_n].call(this,It);break;case 2:Ft[_n].call(this,It,arguments[1]);break;case 3:Ft[_n].call(this,It,arguments[1],arguments[2]);break;default:Ft[_n].apply(this,arguments)}if(ht)Ft=[],qe.call(this,Ft,Kt,this.listenerTree,0,Gn);else if(Ft=this._events[It],typeof Ft=="function"){switch(this.event=It,Yt){case 1:Ft.call(this);break;case 2:Ft.call(this,arguments[1]);break;case 3:Ft.call(this,arguments[1],arguments[2]);break;default:for(wn=new Array(Yt-1),Bn=1;Bn<Yt;Bn++)wn[Bn-1]=arguments[Bn];Ft.apply(this,wn)}return!0}else Ft&&(Ft=Ft.slice());if(Ft&&Ft.length){if(Yt>3)for(wn=new Array(Yt-1),Bn=1;Bn<Yt;Bn++)wn[Bn-1]=arguments[Bn];for(_n=0,Gn=Ft.length;_n<Gn;_n++)switch(this.event=It,Yt){case 1:Ft[_n].call(this);break;case 2:Ft[_n].call(this,arguments[1]);break;case 3:Ft[_n].call(this,arguments[1],arguments[2]);break;default:Ft[_n].apply(this,wn)}return!0}else if(!this.ignoreErrors&&!this._all&&It==="error")throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},Sn.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||w.call(this);var It=arguments[0],Kt=this.wildcard,ht,wn,Gn,_n,Bn,cr;if(It==="newListener"&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(Kt&&(ht=It,It!=="newListener"&&It!=="removeListener"&&typeof It=="object")){if(_n=It.length,v){for(Bn=0;Bn<_n;Bn++)if(typeof It[Bn]=="symbol"){wn=!0;break}}wn||(It=It.join(this.delimiter))}var Yt=[],Ft=arguments.length,pt;if(this._all)for(Bn=0,_n=this._all.length;Bn<_n;Bn++)switch(this.event=It,Ft){case 1:Yt.push(this._all[Bn].call(this,It));break;case 2:Yt.push(this._all[Bn].call(this,It,arguments[1]));break;case 3:Yt.push(this._all[Bn].call(this,It,arguments[1],arguments[2]));break;default:Yt.push(this._all[Bn].apply(this,arguments))}if(Kt?(pt=[],qe.call(this,pt,ht,this.listenerTree,0)):pt=this._events[It],typeof pt=="function")switch(this.event=It,Ft){case 1:Yt.push(pt.call(this));break;case 2:Yt.push(pt.call(this,arguments[1]));break;case 3:Yt.push(pt.call(this,arguments[1],arguments[2]));break;default:for(Gn=new Array(Ft-1),cr=1;cr<Ft;cr++)Gn[cr-1]=arguments[cr];Yt.push(pt.apply(this,Gn))}else if(pt&&pt.length){if(pt=pt.slice(),Ft>3)for(Gn=new Array(Ft-1),cr=1;cr<Ft;cr++)Gn[cr-1]=arguments[cr];for(Bn=0,_n=pt.length;Bn<_n;Bn++)switch(this.event=It,Ft){case 1:Yt.push(pt[Bn].call(this));break;case 2:Yt.push(pt[Bn].call(this,arguments[1]));break;case 3:Yt.push(pt[Bn].call(this,arguments[1],arguments[2]));break;default:Yt.push(pt[Bn].apply(this,Gn))}}else if(!this.ignoreErrors&&!this._all&&It==="error")return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(Yt)},Sn.prototype.on=function(It,Kt,ht){return this._on(It,Kt,!1,ht)},Sn.prototype.prependListener=function(It,Kt,ht){return this._on(It,Kt,!0,ht)},Sn.prototype.onAny=function(It){return this._onAny(It,!1)},Sn.prototype.prependAny=function(It){return this._onAny(It,!0)},Sn.prototype.addListener=Sn.prototype.on,Sn.prototype._onAny=function(It,Kt){if(typeof It!="function")throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),Kt?this._all.unshift(It):this._all.push(It),this},Sn.prototype._on=function(It,Kt,ht,wn){if(typeof It=="function")return this._onAny(It,Kt),this;if(typeof Kt!="function")throw new Error("on only accepts instances of Function");this._events||w.call(this);var Gn=this,_n;return wn!==o&&(_n=Fn.call(this,It,Kt,wn),Kt=_n[0],Gn=_n[1]),this._newListener&&this.emit("newListener",It,Kt),this.wildcard?(yt.call(this,It,Kt,ht),Gn):(this._events[It]?(typeof this._events[It]=="function"&&(this._events[It]=[this._events[It]]),ht?this._events[It].unshift(Kt):this._events[It].push(Kt),!this._events[It].warned&&this._maxListeners>0&&this._events[It].length>this._maxListeners&&(this._events[It].warned=!0,V.call(this,this._events[It].length,It))):this._events[It]=Kt,Gn)},Sn.prototype.off=function(It,Kt){if(typeof Kt!="function")throw new Error("removeListener only takes instances of Function");var ht,wn=[];if(this.wildcard){var Gn=typeof It=="string"?It.split(this.delimiter):It.slice();if(wn=qe.call(this,null,Gn,this.listenerTree,0),!wn)return this}else{if(!this._events[It])return this;ht=this._events[It],wn.push({_listeners:ht})}for(var _n=0;_n<wn.length;_n++){var Bn=wn[_n];if(ht=Bn._listeners,u(ht)){for(var cr=-1,Yt=0,Ft=ht.length;Yt<Ft;Yt++)if(ht[Yt]===Kt||ht[Yt].listener&&ht[Yt].listener===Kt||ht[Yt]._origin&&ht[Yt]._origin===Kt){cr=Yt;break}if(cr<0)continue;return this.wildcard?Bn._listeners.splice(cr,1):this._events[It].splice(cr,1),ht.length===0&&(this.wildcard?delete Bn._listeners:delete this._events[It]),this._removeListener&&this.emit("removeListener",It,Kt),this}else(ht===Kt||ht.listener&&ht.listener===Kt||ht._origin&&ht._origin===Kt)&&(this.wildcard?delete Bn._listeners:delete this._events[It],this._removeListener&&this.emit("removeListener",It,Kt))}return this.listenerTree&&Bt(this.listenerTree),this},Sn.prototype.offAny=function(It){var Kt=0,ht=0,wn;if(It&&this._all&&this._all.length>0){for(wn=this._all,Kt=0,ht=wn.length;Kt<ht;Kt++)if(It===wn[Kt])return wn.splice(Kt,1),this._removeListener&&this.emit("removeListenerAny",It),this}else{if(wn=this._all,this._removeListener)for(Kt=0,ht=wn.length;Kt<ht;Kt++)this.emit("removeListenerAny",wn[Kt]);this._all=[]}return this},Sn.prototype.removeListener=Sn.prototype.off,Sn.prototype.removeAllListeners=function(It){if(It===o)return!this._events||w.call(this),this;if(this.wildcard){var Kt=qe.call(this,null,It,this.listenerTree,0),ht,wn;if(!Kt)return this;for(wn=0;wn<Kt.length;wn++)ht=Kt[wn],ht._listeners=null;this.listenerTree&&Bt(this.listenerTree)}else this._events&&(this._events[It]=null);return this},Sn.prototype.listeners=function(It){var Kt=this._events,ht,wn,Gn,_n,Bn;if(It===o){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!Kt)return[];for(ht=C(Kt),_n=ht.length,Gn=[];_n-- >0;)wn=Kt[ht[_n]],typeof wn=="function"?Gn.push(wn):Gn.push.apply(Gn,wn);return Gn}else{if(this.wildcard){if(Bn=this.listenerTree,!Bn)return[];var cr=[],Yt=typeof It=="string"?It.split(this.delimiter):It.slice();return qe.call(this,cr,Yt,Bn,0),cr}return Kt?(wn=Kt[It],wn?typeof wn=="function"?[wn]:wn:[]):[]}},Sn.prototype.eventNames=function(It){var Kt=this._events;return this.wildcard?Ct.call(this,this.listenerTree,[],null,It):Kt?C(Kt):[]},Sn.prototype.listenerCount=function(It){return this.listeners(It).length},Sn.prototype.hasListeners=function(It){if(this.wildcard){var Kt=[],ht=typeof It=="string"?It.split(this.delimiter):It.slice();return qe.call(this,Kt,ht,this.listenerTree,0),Kt.length>0}var wn=this._events,Gn=this._all;return!!(Gn&&Gn.length||wn&&(It===o?C(wn).length:wn[It]))},Sn.prototype.listenersAny=function(){return this._all?this._all:[]},Sn.prototype.waitFor=function(It,Kt){var ht=this,wn=typeof Kt;return wn==="number"?Kt={timeout:Kt}:wn==="function"&&(Kt={filter:Kt}),Kt=$(Kt,{timeout:0,filter:o,handleError:!1,Promise,overload:!1},{filter:fe,Promise:Y}),Ce(Kt.Promise,function(Gn,_n,Bn){function cr(){var Yt=Kt.filter;if(!(Yt&&!Yt.apply(ht,arguments)))if(ht.off(It,cr),Kt.handleError){var Ft=arguments[0];Ft?_n(Ft):Gn(B.apply(null,arguments).slice(1))}else Gn(B.apply(null,arguments))}e(cr,"listener"),Bn(function(){ht.off(It,cr)}),ht._on(It,cr,!1)},{timeout:Kt.timeout,overload:Kt.overload})};function Qt(It,Kt,ht){ht=$(ht,{Promise,timeout:0,overload:!1},{Promise:Y});var wn=ht.Promise;return Ce(wn,function(Gn,_n,Bn){var cr;if(typeof It.addEventListener=="function"){cr=e(function(){Gn(B.apply(null,arguments))},"handler"),Bn(function(){It.removeEventListener(Kt,cr)}),It.addEventListener(Kt,cr,{once:!0});return}var Yt=e(function(){Ft&&It.removeListener("error",Ft),Gn(B.apply(null,arguments))},"eventListener"),Ft;Kt!=="error"&&(Ft=e(function(pt){It.removeListener(Kt,Yt),_n(pt)},"errorListener"),It.once("error",Ft)),Bn(function(){Ft&&It.removeListener("error",Ft),It.removeListener(Kt,Yt)}),It.once(Kt,Yt)},{timeout:ht.timeout,overload:ht.overload})}e(Qt,"once");var on=Sn.prototype;Object.defineProperties(Sn,{defaultMaxListeners:{get:e(function(){return on._maxListeners},"get"),set:e(function(It){if(typeof It!="number"||It<0||Number.isNaN(It))throw TypeError("n must be a non-negative number");on._maxListeners=It},"set"),enumerable:!0},once:{value:Qt,writable:!0,configurable:!0}}),Object.defineProperties(on,{_maxListeners:{value:p,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof o=="function"&&o.amd?o(function(){return Sn}):i.exports=Sn})()}),YMr=HJe.EventEmitter2,ADe=HJe,QMr=HJe.defaultMaxListeners});var _K={};_C(_K,{EventEmitter:()=>CDe,default:()=>wDe});var CDe,wDe,A9=Eu(()=>{Z();ne();ee();te();GMt();ADe.EventEmitter=ADe;CDe=ADe,wDe=CDe});var s7n,IDe,l7n,UMt=Eu(()=>{Z();ne();ee();te();s7n=e(()=>{if("performance"in window||(window.performance={}),Date.now=Date.now||(()=>new Date().getTime()),!("now"in window.performance)){let i=Date.now();performance.timing&&performance.timing.navigationStart&&(i=performance.timing.navigationStart),window.performance.now=()=>Date.now()-i}},"perfomancePolyfill"),IDe=e(i=>{s7n();let n=Math.floor((Date.now()-performance.now())*.001),o=performance.now()*.001,l=Math.floor(o)+n,u=Math.floor(o%1*1e9);return i&&(l=l-i[0],u=u-i[1],u<0&&(l--,u+=1e9)),[l,u]},"hrtime"),l7n=1e9;IDe.bigint=()=>{let i=IDe();return BigInt(i[0]*l7n+i[1])}});function AY(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof globalThis<"u")return globalThis;throw new Error("unable to locate global object")}var PDe=Eu(()=>{Z();ne();ee();te();e(AY,"getScope")});var mK,JJe=Eu(()=>{Z();ne();ee();te();fK();mK=NR(function(i){typeof Object.create=="function"?i.exports=e(function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):i.exports=e(function(o,l){if(l){o.super_=l;var u=e(function(){},"TempCtor");u.prototype=l.prototype,o.prototype=new u,o.prototype.constructor=o}},"inherits")})});var XMt,LDe,VMt,c7n,u7n,XJe,d7n,p7n,f7n,rG,kDe,Lg,rie,$Mt,tie,$Je,CY,YJe,_7n,Qre,hK,Zre,m7n,nie,h7n,qMt,g7n,y7n,KMt,MDe,v7n,b7n,S7n,E7n,x7n,nG,YMt,T7n,iie,D7n,rXe,ODe,QMt,A7n,C7n,w7n,I7n,P7n,ZMt,QJe,N7n,ZJe,R7n,eLt,eie,iXe,NDe,k7n,oXe,M7n,L7n,O7n,F7n,B7n,HMt,W7n,j7n,tLt,z7n,G7n,U7n,V7n,FDe,eXe,q7n,nLt,RDe,wY,K7n,rLt,H7n,iLt,J7n,X7n,oLt,tXe,$7n,aXe,Y7n,aLt,JMt,Q7n,Z7n,sLt,nXe,e5n,m4,t5n,n5n,Nb,r5n,i5n,o5n,IY,a5n,s5n,l5n,c5n,u5n,d5n,p5n,f5n,_5n,m5n,h5n,g5n,y5n,v5n,b5n,S5n,E5n,x5n,T5n,D5n,A5n,C5n,sXe=Eu(()=>{Z();ne();ee();te();$fe();fK();JJe();XMt=e(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},o=Symbol("test"),l=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;var u=42;n[o]=u;for(o in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var p=Object.getOwnPropertySymbols(n);if(p.length!==1||p[0]!==o||!Object.prototype.propertyIsEnumerable.call(n,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(n,o);if(h.value!==u||h.enumerable!==!0)return!1}return!0},"hasSymbols"),LDe=e(function(){return XMt()&&!!Symbol.toStringTag},"hasToStringTagShams"),VMt=typeof Symbol<"u"&&Symbol,c7n=e(function(){return typeof VMt!="function"||typeof Symbol!="function"||typeof VMt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:XMt()},"hasNativeSymbols"),u7n="Function.prototype.bind called on incompatible ",XJe=Array.prototype.slice,d7n=Object.prototype.toString,p7n="[object Function]",f7n=e(function(n){var o=this;if(typeof o!="function"||d7n.call(o)!==p7n)throw new TypeError(u7n+o);for(var l=XJe.call(arguments,1),u,p=e(function(){if(this instanceof u){var D=o.apply(this,l.concat(XJe.call(arguments)));return Object(D)===D?D:this}else return o.apply(n,l.concat(XJe.call(arguments)))},"binder"),h=Math.max(0,o.length-l.length),v=[],T=0;T<h;T++)v.push("$"+T);if(u=Function("binder","return function ("+v.join(",")+"){ return binder.apply(this,arguments); }")(p),o.prototype){var E=e(function(){},"Empty2");E.prototype=o.prototype,u.prototype=new E,E.prototype=null}return u},"bind"),rG=Function.prototype.bind||f7n,kDe=rG.call(Function.call,Object.prototype.hasOwnProperty),rie=SyntaxError,$Mt=Function,tie=TypeError,$Je=e(function(i){try{return $Mt('"use strict"; return ('+i+").constructor;")()}catch{}},"getEvalledConstructor"),CY=Object.getOwnPropertyDescriptor;if(CY)try{CY({},"")}catch{CY=null}YJe=e(function(){throw new tie},"throwTypeError"),_7n=CY?function(){try{return arguments.callee,YJe}catch{try{return CY(arguments,"callee").get}catch{return YJe}}}():YJe,Qre=c7n(),hK=Object.getPrototypeOf||function(i){return i.__proto__},Zre={},m7n=typeof Uint8Array>"u"?Lg:hK(Uint8Array),nie={"%AggregateError%":typeof AggregateError>"u"?Lg:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Lg:ArrayBuffer,"%ArrayIteratorPrototype%":Qre?hK([][Symbol.iterator]()):Lg,"%AsyncFromSyncIteratorPrototype%":Lg,"%AsyncFunction%":Zre,"%AsyncGenerator%":Zre,"%AsyncGeneratorFunction%":Zre,"%AsyncIteratorPrototype%":Zre,"%Atomics%":typeof Atomics>"u"?Lg:Atomics,"%BigInt%":typeof BigInt>"u"?Lg:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Lg:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Lg:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Lg:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Lg:FinalizationRegistry,"%Function%":$Mt,"%GeneratorFunction%":Zre,"%Int8Array%":typeof Int8Array>"u"?Lg:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Lg:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Lg:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Qre?hK(hK([][Symbol.iterator]())):Lg,"%JSON%":typeof JSON=="object"?JSON:Lg,"%Map%":typeof Map>"u"?Lg:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Qre?Lg:hK(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Lg:Promise,"%Proxy%":typeof Proxy>"u"?Lg:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Lg:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Lg:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Qre?Lg:hK(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Lg:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Qre?hK(""[Symbol.iterator]()):Lg,"%Symbol%":Qre?Symbol:Lg,"%SyntaxError%":rie,"%ThrowTypeError%":_7n,"%TypedArray%":m7n,"%TypeError%":tie,"%Uint8Array%":typeof Uint8Array>"u"?Lg:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Lg:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Lg:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Lg:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Lg:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Lg:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Lg:WeakSet},h7n=e(function i(n){var o;if(n==="%AsyncFunction%")o=$Je("async function () {}");else if(n==="%GeneratorFunction%")o=$Je("function* () {}");else if(n==="%AsyncGeneratorFunction%")o=$Je("async function* () {}");else if(n==="%AsyncGenerator%"){var l=i("%AsyncGeneratorFunction%");l&&(o=l.prototype)}else if(n==="%AsyncIteratorPrototype%"){var u=i("%AsyncGenerator%");u&&(o=hK(u.prototype))}return nie[n]=o,o},"doEval2"),qMt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g7n=rG.call(Function.call,Array.prototype.concat),y7n=rG.call(Function.apply,Array.prototype.splice),KMt=rG.call(Function.call,String.prototype.replace),MDe=rG.call(Function.call,String.prototype.slice),v7n=rG.call(Function.call,RegExp.prototype.exec),b7n=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S7n=/\\(\\)?/g,E7n=e(function(n){var o=MDe(n,0,1),l=MDe(n,-1);if(o==="%"&&l!=="%")throw new rie("invalid intrinsic syntax, expected closing `%`");if(l==="%"&&o!=="%")throw new rie("invalid intrinsic syntax, expected opening `%`");var u=[];return KMt(n,b7n,function(p,h,v,T){u[u.length]=v?KMt(T,S7n,"$1"):h||p}),u},"stringToPath2"),x7n=e(function(n,o){var l=n,u;if(kDe(qMt,l)&&(u=qMt[l],l="%"+u[0]+"%"),kDe(nie,l)){var p=nie[l];if(p===Zre&&(p=h7n(l)),typeof p>"u"&&!o)throw new tie("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:u,name:l,value:p}}throw new rie("intrinsic "+n+" does not exist!")},"getBaseIntrinsic2"),nG=e(function(n,o){if(typeof n!="string"||n.length===0)throw new tie("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new tie('"allowMissing" argument must be a boolean');if(v7n(/^%?[^%]*%?$/g,n)===null)throw new rie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var l=E7n(n),u=l.length>0?l[0]:"",p=x7n("%"+u+"%",o),h=p.name,v=p.value,T=!1,E=p.alias;E&&(u=E[0],y7n(l,g7n([0,1],E)));for(var D=1,C=!0;D<l.length;D+=1){var w=l[D],W=MDe(w,0,1),V=MDe(w,-1);if((W==='"'||W==="'"||W==="`"||V==='"'||V==="'"||V==="`")&&W!==V)throw new rie("property names with quotes must have matching quotes");if((w==="constructor"||!C)&&(T=!0),u+="."+w,h="%"+u+"%",kDe(nie,h))v=nie[h];else if(v!=null){if(!(w in v)){if(!o)throw new tie("base intrinsic for "+n+" exists, but the property is not available.");return}if(CY&&D+1>=l.length){var B=CY(v,w);C=!!B,C&&"get"in B&&!("originalValue"in B.get)?v=B.get:v=v[w]}else C=kDe(v,w),v=v[w];C&&!T&&(nie[h]=v)}}return v},"GetIntrinsic"),YMt=NR(function(i){var n=nG("%Function.prototype.apply%"),o=nG("%Function.prototype.call%"),l=nG("%Reflect.apply%",!0)||rG.call(o,n),u=nG("%Object.getOwnPropertyDescriptor%",!0),p=nG("%Object.defineProperty%",!0),h=nG("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}i.exports=e(function(E){var D=l(rG,o,arguments);if(u&&p){var C=u(D,"length");C.configurable&&p(D,"length",{value:1+h(0,E.length-(arguments.length-1))})}return D},"callBind2");var v=e(function(){return l(rG,n,arguments)},"applyBind2");p?p(i.exports,"apply",{value:v}):i.exports.apply=v}),T7n=YMt(nG("String.prototype.indexOf")),iie=e(function(n,o){var l=nG(n,!!o);return typeof l=="function"&&T7n(n,".prototype.")>-1?YMt(l):l},"callBoundIntrinsic"),D7n=LDe(),rXe=iie("Object.prototype.toString"),ODe=e(function(n){return D7n&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:rXe(n)==="[object Arguments]"},"isArguments"),QMt=e(function(n){return ODe(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&rXe(n)!=="[object Array]"&&rXe(n.callee)==="[object Function]"},"isArguments2"),A7n=function(){return ODe(arguments)}();ODe.isLegacyArguments=QMt;C7n=A7n?ODe:QMt,w7n=Object.prototype.toString,I7n=Function.prototype.toString,P7n=/^\s*(?:function)?\*/,ZMt=LDe(),QJe=Object.getPrototypeOf,N7n=e(function(){if(!ZMt)return!1;try{return Function("return function*() {}")()}catch{}},"getGeneratorFunc"),R7n=e(function(n){if(typeof n!="function")return!1;if(P7n.test(I7n.call(n)))return!0;if(!ZMt){var o=w7n.call(n);return o==="[object GeneratorFunction]"}if(!QJe)return!1;if(typeof ZJe>"u"){var l=N7n();ZJe=l?QJe(l):!1}return QJe(n)===ZJe},"isGeneratorFunction2"),eLt=Function.prototype.toString,eie=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof eie=="function"&&typeof Object.defineProperty=="function")try{iXe=Object.defineProperty({},"length",{get:e(function(){throw NDe},"get")}),NDe={},eie(function(){throw 42},null,iXe)}catch(i){i!==NDe&&(eie=null)}else eie=null;k7n=/^\s*class\b/,oXe=e(function(n){try{var o=eLt.call(n);return k7n.test(o)}catch{return!1}},"isES6ClassFunction"),M7n=e(function(n){try{return oXe(n)?!1:(eLt.call(n),!0)}catch{return!1}},"tryFunctionToStr"),L7n=Object.prototype.toString,O7n="[object Function]",F7n="[object GeneratorFunction]",B7n=typeof Symbol=="function"&&!!Symbol.toStringTag,HMt=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{},W7n=eie?e(function(n){if(n===HMt)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;try{eie(n,null,iXe)}catch(o){if(o!==NDe)return!1}return!oXe(n)},"isCallable2"):e(function(n){if(n===HMt)return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(typeof n=="function"&&!n.prototype)return!0;if(B7n)return M7n(n);if(oXe(n))return!1;var o=L7n.call(n);return o===O7n||o===F7n},"isCallable3"),j7n=Object.prototype.toString,tLt=Object.prototype.hasOwnProperty,z7n=e(function(n,o,l){for(var u=0,p=n.length;u<p;u++)tLt.call(n,u)&&(l==null?o(n[u],u,n):o.call(l,n[u],u,n))},"forEachArray2"),G7n=e(function(n,o,l){for(var u=0,p=n.length;u<p;u++)l==null?o(n.charAt(u),u,n):o.call(l,n.charAt(u),u,n)},"forEachString2"),U7n=e(function(n,o,l){for(var u in n)tLt.call(n,u)&&(l==null?o(n[u],u,n):o.call(l,n[u],u,n))},"forEachObject2"),V7n=e(function(n,o,l){if(!W7n(o))throw new TypeError("iterator must be a function");var u;arguments.length>=3&&(u=l),j7n.call(n)==="[object Array]"?z7n(n,o,u):typeof n=="string"?G7n(n,o,u):U7n(n,o,u)},"forEach2"),FDe=V7n,eXe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],q7n=typeof globalThis>"u"?D9:globalThis,nLt=e(function(){for(var n=[],o=0;o<eXe.length;o++)typeof q7n[eXe[o]]=="function"&&(n[n.length]=eXe[o]);return n},"availableTypedArrays2"),RDe=nG("%Object.getOwnPropertyDescriptor%",!0);if(RDe)try{RDe([],"length")}catch{RDe=null}wY=RDe,K7n=iie("Object.prototype.toString"),rLt=LDe(),H7n=typeof globalThis>"u"?D9:globalThis,iLt=nLt(),J7n=iie("Array.prototype.indexOf",!0)||e(function(n,o){for(var l=0;l<n.length;l+=1)if(n[l]===o)return l;return-1},"indexOf"),X7n=iie("String.prototype.slice"),oLt={},tXe=Object.getPrototypeOf;rLt&&wY&&tXe&&FDe(iLt,function(i){var n=new H7n[i];if(Symbol.toStringTag in n){var o=tXe(n),l=wY(o,Symbol.toStringTag);if(!l){var u=tXe(o);l=wY(u,Symbol.toStringTag)}oLt[i]=l.get}});$7n=e(function(n){var o=!1;return FDe(oLt,function(l,u){if(!o)try{o=l.call(n)===u}catch{}}),o},"tryAllTypedArrays"),aXe=e(function(n){if(!n||typeof n!="object")return!1;if(!rLt||!(Symbol.toStringTag in n)){var o=X7n(K7n(n),8,-1);return J7n(iLt,o)>-1}return wY?$7n(n):!1},"isTypedArray2"),Y7n=iie("Object.prototype.toString"),aLt=LDe(),JMt=typeof globalThis>"u"?D9:globalThis,Q7n=nLt(),Z7n=iie("String.prototype.slice"),sLt={},nXe=Object.getPrototypeOf;aLt&&wY&&nXe&&FDe(Q7n,function(i){if(typeof JMt[i]=="function"){var n=new JMt[i];if(Symbol.toStringTag in n){var o=nXe(n),l=wY(o,Symbol.toStringTag);if(!l){var u=nXe(o);l=wY(u,Symbol.toStringTag)}sLt[i]=l.get}}});e5n=e(function(n){var o=!1;return FDe(sLt,function(l,u){if(!o)try{var p=l.call(n);p===u&&(o=p)}catch{}}),o},"tryAllTypedArrays2"),m4=e(function(n){return aXe(n)?!aLt||!(Symbol.toStringTag in n)?Z7n(Y7n(n),8,-1):e5n(n):!1},"whichTypedArray2"),t5n=NR(function(i,n){function o(Ir){return Ir.call.bind(Ir)}e(o,"uncurryThis");var l=typeof BigInt<"u",u=typeof Symbol<"u",p=o(Object.prototype.toString),h=o(Number.prototype.valueOf),v=o(String.prototype.valueOf),T=o(Boolean.prototype.valueOf);if(l)var E=o(BigInt.prototype.valueOf);if(u)var D=o(Symbol.prototype.valueOf);function C(Ir,yn){if(typeof Ir!="object")return!1;try{return yn(Ir),!0}catch{return!1}}e(C,"checkBoxedPrimitive"),n.isArgumentsObject=C7n,n.isGeneratorFunction=R7n,n.isTypedArray=aXe;function w(Ir){return typeof Promise<"u"&&Ir instanceof Promise||Ir!==null&&typeof Ir=="object"&&typeof Ir.then=="function"&&typeof Ir.catch=="function"}e(w,"isPromise"),n.isPromise=w;function W(Ir){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Ir):aXe(Ir)||ht(Ir)}e(W,"isArrayBufferView"),n.isArrayBufferView=W;function V(Ir){return m4(Ir)==="Uint8Array"}e(V,"isUint8Array"),n.isUint8Array=V;function B(Ir){return m4(Ir)==="Uint8ClampedArray"}e(B,"isUint8ClampedArray"),n.isUint8ClampedArray=B;function k(Ir){return m4(Ir)==="Uint16Array"}e(k,"isUint16Array"),n.isUint16Array=k;function F(Ir){return m4(Ir)==="Uint32Array"}e(F,"isUint32Array"),n.isUint32Array=F;function $(Ir){return m4(Ir)==="Int8Array"}e($,"isInt8Array"),n.isInt8Array=$;function Y(Ir){return m4(Ir)==="Int16Array"}e(Y,"isInt16Array"),n.isInt16Array=Y;function ie(Ir){return m4(Ir)==="Int32Array"}e(ie,"isInt32Array"),n.isInt32Array=ie;function fe(Ir){return m4(Ir)==="Float32Array"}e(fe,"isFloat32Array"),n.isFloat32Array=fe;function ve(Ir){return m4(Ir)==="Float64Array"}e(ve,"isFloat64Array"),n.isFloat64Array=ve;function Ce(Ir){return m4(Ir)==="BigInt64Array"}e(Ce,"isBigInt64Array"),n.isBigInt64Array=Ce;function be(Ir){return m4(Ir)==="BigUint64Array"}e(be,"isBigUint64Array"),n.isBigUint64Array=be;function qe(Ir){return p(Ir)==="[object Map]"}e(qe,"isMapToString"),qe.working=typeof Map<"u"&&qe(new Map);function yt(Ir){return typeof Map>"u"?!1:qe.working?qe(Ir):Ir instanceof Map}e(yt,"isMap"),n.isMap=yt;function Ct(Ir){return p(Ir)==="[object Set]"}e(Ct,"isSetToString"),Ct.working=typeof Set<"u"&&Ct(new Set);function Bt(Ir){return typeof Set>"u"?!1:Ct.working?Ct(Ir):Ir instanceof Set}e(Bt,"isSet"),n.isSet=Bt;function fn(Ir){return p(Ir)==="[object WeakMap]"}e(fn,"isWeakMapToString"),fn.working=typeof WeakMap<"u"&&fn(new WeakMap);function Fn(Ir){return typeof WeakMap>"u"?!1:fn.working?fn(Ir):Ir instanceof WeakMap}e(Fn,"isWeakMap"),n.isWeakMap=Fn;function Sn(Ir){return p(Ir)==="[object WeakSet]"}e(Sn,"isWeakSetToString"),Sn.working=typeof WeakSet<"u"&&Sn(new WeakSet);function Qt(Ir){return Sn(Ir)}e(Qt,"isWeakSet"),n.isWeakSet=Qt;function on(Ir){return p(Ir)==="[object ArrayBuffer]"}e(on,"isArrayBufferToString"),on.working=typeof ArrayBuffer<"u"&&on(new ArrayBuffer);function It(Ir){return typeof ArrayBuffer>"u"?!1:on.working?on(Ir):Ir instanceof ArrayBuffer}e(It,"isArrayBuffer"),n.isArrayBuffer=It;function Kt(Ir){return p(Ir)==="[object DataView]"}e(Kt,"isDataViewToString"),Kt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Kt(new DataView(new ArrayBuffer(1),0,1));function ht(Ir){return typeof DataView>"u"?!1:Kt.working?Kt(Ir):Ir instanceof DataView}e(ht,"isDataView"),n.isDataView=ht;var wn=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Gn(Ir){return p(Ir)==="[object SharedArrayBuffer]"}e(Gn,"isSharedArrayBufferToString");function _n(Ir){return typeof wn>"u"?!1:(typeof Gn.working>"u"&&(Gn.working=Gn(new wn)),Gn.working?Gn(Ir):Ir instanceof wn)}e(_n,"isSharedArrayBuffer"),n.isSharedArrayBuffer=_n;function Bn(Ir){return p(Ir)==="[object AsyncFunction]"}e(Bn,"isAsyncFunction"),n.isAsyncFunction=Bn;function cr(Ir){return p(Ir)==="[object Map Iterator]"}e(cr,"isMapIterator"),n.isMapIterator=cr;function Yt(Ir){return p(Ir)==="[object Set Iterator]"}e(Yt,"isSetIterator"),n.isSetIterator=Yt;function Ft(Ir){return p(Ir)==="[object Generator]"}e(Ft,"isGeneratorObject"),n.isGeneratorObject=Ft;function pt(Ir){return p(Ir)==="[object WebAssembly.Module]"}e(pt,"isWebAssemblyCompiledModule"),n.isWebAssemblyCompiledModule=pt;function me(Ir){return C(Ir,h)}e(me,"isNumberObject"),n.isNumberObject=me;function zt(Ir){return C(Ir,v)}e(zt,"isStringObject"),n.isStringObject=zt;function Tt(Ir){return C(Ir,T)}e(Tt,"isBooleanObject"),n.isBooleanObject=Tt;function tn(Ir){return l&&C(Ir,E)}e(tn,"isBigIntObject"),n.isBigIntObject=tn;function En(Ir){return u&&C(Ir,D)}e(En,"isSymbolObject"),n.isSymbolObject=En;function Kn(Ir){return me(Ir)||zt(Ir)||Tt(Ir)||tn(Ir)||En(Ir)}e(Kn,"isBoxedPrimitive"),n.isBoxedPrimitive=Kn;function Gr(Ir){return typeof Uint8Array<"u"&&(It(Ir)||_n(Ir))}e(Gr,"isAnyArrayBuffer"),n.isAnyArrayBuffer=Gr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ir){Object.defineProperty(n,Ir,{enumerable:!1,value:e(function(){throw new Error(Ir+" is not supported in userland")},"value")})})}),n5n=e(function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},"isBuffer"),Nb=NR(function(i,n){var o=Object.getOwnPropertyDescriptors||e(function(Bn){for(var cr=Object.keys(Bn),Yt={},Ft=0;Ft<cr.length;Ft++)Yt[cr[Ft]]=Object.getOwnPropertyDescriptor(Bn,cr[Ft]);return Yt},"getOwnPropertyDescriptors2"),l=/%[sdj%]/g;n.format=function(_n){if(!ve(_n)){for(var Bn=[],cr=0;cr<arguments.length;cr++)Bn.push(v(arguments[cr]));return Bn.join(" ")}for(var cr=1,Yt=arguments,Ft=Yt.length,pt=String(_n).replace(l,function(zt){if(zt==="%%")return"%";if(cr>=Ft)return zt;switch(zt){case"%s":return String(Yt[cr++]);case"%d":return Number(Yt[cr++]);case"%j":try{return JSON.stringify(Yt[cr++])}catch{return"[Circular]"}default:return zt}}),me=Yt[cr];cr<Ft;me=Yt[++cr])Y(me)||!yt(me)?pt+=" "+me:pt+=" "+v(me);return pt},n.deprecate=function(_n,Bn){if(typeof Je<"u"&&Je.noDeprecation===!0)return _n;if(typeof Je>"u")return function(){return n.deprecate(_n,Bn).apply(this,arguments)};var cr=!1;function Yt(){if(!cr){if(Je.throwDeprecation)throw new Error(Bn);Je.traceDeprecation?console.trace(Bn):console.error(Bn),cr=!0}return _n.apply(this,arguments)}return e(Yt,"deprecated"),Yt};var u={},p=/^$/;if(Je.env.NODE_DEBUG){var h=Je.env.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+h+"$","i")}n.debuglog=function(_n){if(_n=_n.toUpperCase(),!u[_n])if(p.test(_n)){var Bn=Je.pid;u[_n]=function(){var cr=n.format.apply(n,arguments);console.error("%s %d: %s",_n,Bn,cr)}}else u[_n]=function(){};return u[_n]};function v(_n,Bn){var cr={seen:[],stylize:E};return arguments.length>=3&&(cr.depth=arguments[2]),arguments.length>=4&&(cr.colors=arguments[3]),$(Bn)?cr.showHidden=Bn:Bn&&n._extend(cr,Bn),be(cr.showHidden)&&(cr.showHidden=!1),be(cr.depth)&&(cr.depth=2),be(cr.colors)&&(cr.colors=!1),be(cr.customInspect)&&(cr.customInspect=!0),cr.colors&&(cr.stylize=T),C(cr,_n,cr.depth)}e(v,"inspect2"),n.inspect=v,v.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},v.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function T(_n,Bn){var cr=v.styles[Bn];return cr?"\x1B["+v.colors[cr][0]+"m"+_n+"\x1B["+v.colors[cr][1]+"m":_n}e(T,"stylizeWithColor");function E(_n,Bn){return _n}e(E,"stylizeNoColor");function D(_n){var Bn={};return _n.forEach(function(cr,Yt){Bn[cr]=!0}),Bn}e(D,"arrayToHash");function C(_n,Bn,cr){if(_n.customInspect&&Bn&&fn(Bn.inspect)&&Bn.inspect!==n.inspect&&!(Bn.constructor&&Bn.constructor.prototype===Bn)){var Yt=Bn.inspect(cr,_n);return ve(Yt)||(Yt=C(_n,Yt,cr)),Yt}var Ft=w(_n,Bn);if(Ft)return Ft;var pt=Object.keys(Bn),me=D(pt);if(_n.showHidden&&(pt=Object.getOwnPropertyNames(Bn)),Bt(Bn)&&(pt.indexOf("message")>=0||pt.indexOf("description")>=0))return W(Bn);if(pt.length===0){if(fn(Bn)){var zt=Bn.name?": "+Bn.name:"";return _n.stylize("[Function"+zt+"]","special")}if(qe(Bn))return _n.stylize(RegExp.prototype.toString.call(Bn),"regexp");if(Ct(Bn))return _n.stylize(Date.prototype.toString.call(Bn),"date");if(Bt(Bn))return W(Bn)}var Tt="",tn=!1,En=["{","}"];if(F(Bn)&&(tn=!0,En=["[","]"]),fn(Bn)){var Kn=Bn.name?": "+Bn.name:"";Tt=" [Function"+Kn+"]"}if(qe(Bn)&&(Tt=" "+RegExp.prototype.toString.call(Bn)),Ct(Bn)&&(Tt=" "+Date.prototype.toUTCString.call(Bn)),Bt(Bn)&&(Tt=" "+W(Bn)),pt.length===0&&(!tn||Bn.length==0))return En[0]+Tt+En[1];if(cr<0)return qe(Bn)?_n.stylize(RegExp.prototype.toString.call(Bn),"regexp"):_n.stylize("[Object]","special");_n.seen.push(Bn);var Gr;return tn?Gr=V(_n,Bn,cr,me,pt):Gr=pt.map(function(Ir){return B(_n,Bn,cr,me,Ir,tn)}),_n.seen.pop(),k(Gr,Tt,En)}e(C,"formatValue");function w(_n,Bn){if(be(Bn))return _n.stylize("undefined","undefined");if(ve(Bn)){var cr="'"+JSON.stringify(Bn).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return _n.stylize(cr,"string")}if(fe(Bn))return _n.stylize(""+Bn,"number");if($(Bn))return _n.stylize(""+Bn,"boolean");if(Y(Bn))return _n.stylize("null","null")}e(w,"formatPrimitive");function W(_n){return"["+Error.prototype.toString.call(_n)+"]"}e(W,"formatError");function V(_n,Bn,cr,Yt,Ft){for(var pt=[],me=0,zt=Bn.length;me<zt;++me)Kt(Bn,String(me))?pt.push(B(_n,Bn,cr,Yt,String(me),!0)):pt.push("");return Ft.forEach(function(Tt){Tt.match(/^\d+$/)||pt.push(B(_n,Bn,cr,Yt,Tt,!0))}),pt}e(V,"formatArray");function B(_n,Bn,cr,Yt,Ft,pt){var me,zt,Tt;if(Tt=Object.getOwnPropertyDescriptor(Bn,Ft)||{value:Bn[Ft]},Tt.get?Tt.set?zt=_n.stylize("[Getter/Setter]","special"):zt=_n.stylize("[Getter]","special"):Tt.set&&(zt=_n.stylize("[Setter]","special")),Kt(Yt,Ft)||(me="["+Ft+"]"),zt||(_n.seen.indexOf(Tt.value)<0?(Y(cr)?zt=C(_n,Tt.value,null):zt=C(_n,Tt.value,cr-1),zt.indexOf(`
2
2
  `)>-1&&(pt?zt=zt.split(`
3
3
  `).map(function(tn){return" "+tn}).join(`
4
4
  `).substr(2):zt=`
@@ -31136,7 +31136,7 @@ declare global {
31136
31136
  If you are not intending to do custom module transpilation, please remove 'transpiledSourceDir'
31137
31137
  and ensure 'serverModulesDir' is set to the directory containing modules `},i.parse=(l,u)=>(lsr(l),ssr(l,u),nsr(l)),i.parseFromPath=(l,u,p)=>{let h=uXt(l,u);if(!h)throw new Error(`Failed to parse config file at path ${l}`);return i.parse(h,p)},i.parseFromDirectory=(l,u,p)=>i.parse(uXt(i.getFilePath(l),u)??(0,cXt.parsePackageJson)(l,u).now??{},p),i.exists=(l,u)=>xst.FileSystem.existsSync(u,i.getFilePath(l))?!0:!!(xst.FileSystem.existsSync(u,NB.path.join(l,"package.json"))&&(0,cXt.parsePackageJson)(l,u).now),i.getFilePath=l=>NB.path.join(l,i.FILE_NAME);function n({scope:l,scopeId:u,...p}={}){return dXt.parse({scope:l??"global",scopeId:u??(0,Zar.GUID)(),...p})}e(n,"create"),i.create=n;function o({rootDir:l,compiler:u,fileSystem:p,logger:h}){let v=i.getFilePath(l);return u.getSourceFile(v)?i.parseFromPath(v,u,h):i.exists(l,p)?i.parseFromPath(v,p,h):i.create()}e(o,"load"),i.load=o})(_ae||(RB.NowConfig=_ae={}));var esr=lXt();function tsr(i){return new $ar.Validator().validate(i,esr)}e(tsr,"getNowConfigFileValidationResults");function nsr(i){let n=dXt.safeParse(i);if(!n.success){let o=`Invalid '${_ae.FILE_NAME}' file:
31138
31138
  `;throw n.error.errors.map(l=>o+=`${l.path}: ${l.message}
31139
- `),new Error(o)}return n.data}e(nsr,"getParsedNowConfigData");function rsr(i,n){let o=(0,Yar.readJson)(i,"",n);if(!osr(o))throw new Error(`Config file '${_ae.FILE_NAME}' is empty or malformed`);let l=tsr(o);if(l.errors.length>0)throw new Error(`${_ae.FILE_NAME} - error: ${isr(l.errors)}`);return o}e(rsr,"validateNowConfigJsonFile");function isr(i){return i.map(n=>n.path.length?`"${n.path.join(".")}" ${n.message}`:n.message==="is of prohibited type [object Object]"?n.argument.message:n.message).join(", ")}e(isr,"formatValidationErrorMessage");function uXt(i,n){return(n instanceof Qar.Compiler?!!n.getSourceFile(i):xst.FileSystem.existsSync(n,i))?rsr(i,n):null}e(uXt,"readNowConfigJsonFile");function osr(i){if(!i||typeof i!="object"||Array.isArray(i))return!1;for(let n in i)if(typeof n!="string")return!1;return!0}e(osr,"isObjectWithStringKeys");var asr={moduleDir:{replacedBy:"serverModulesDir",transfer:!0},compileOutputDir:{replacedBy:"appOutputDir",transfer:!0},entitiesDir:{replacedBy:"fluentDir",transfer:!0},transpiledSourceDir:{replacedBy:"modulePaths"},sourceDir:{}};function ssr(i,n){for(let[o,{replacedBy:l,transfer:u}]of Object.entries(asr))o in i&&(n.warn(`'${o}' is deprecated${l?`, please replace with '${l}'`:" and can be removed"}`),u&&l&&(i[l]=i[o]))}e(ssr,"replaceDeprecatedFields");function lsr(i){for(let[n,o]of Object.entries(_ae.ERROR_ON_DEPRECATED_PROPS))if(n in i)throw new Error(o)}e(lsr,"checkRemovedProperties")});var fXt=ft(wMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(wMe,"__esModule",{value:!0});wMe.createConsoleLogger=csr;wMe.createSilentLogger=usr;function csr(){return console}e(csr,"createConsoleLogger");function usr(){return{info:e(()=>{},"info"),warn:e(()=>{},"warn"),error:e(()=>{},"error"),debug:e(()=>{},"debug")}}e(usr,"createSilentLogger")});var YXt=ft(Ff=>{"use strict";Z();ne();ee();te();var _Xt={},gXt={};gXt.default=function(i,n,o,l,u){var p=new Worker(_Xt[n]||(_Xt[n]=URL.createObjectURL(new Blob([i+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return p.onmessage=function(h){var v=h.data,T=v.$e$;if(T){var E=new Error(T[0]);E.code=T[1],E.stack=T[2],u(E,null)}else u(null,v)},p.postMessage(o,l),p};var Sm=Uint8Array,PP=Uint16Array,Phe=Int32Array,vae=new Sm([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),bae=new Sm([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Che=new Sm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yXt=e(function(i,n){for(var o=new PP(31),l=0;l<31;++l)o[l]=n+=1<<i[l-1];for(var u=new Phe(o[30]),l=1;l<30;++l)for(var p=o[l];p<o[l+1];++p)u[p]=p-o[l]<<5|l;return{b:o,r:u}},"freb"),vXt=yXt(vae,2),Rst=vXt.b,kMe=vXt.r;Rst[28]=258,kMe[258]=28;var bXt=yXt(bae,0),SXt=bXt.b,Dst=bXt.r,whe=new PP(32768);for(Iy=0;Iy<32768;++Iy)GG=(Iy&43690)>>1|(Iy&21845)<<1,GG=(GG&52428)>>2|(GG&13107)<<2,GG=(GG&61680)>>4|(GG&3855)<<4,whe[Iy]=((GG&65280)>>8|(GG&255)<<8)>>1;var GG,Iy,P3=e(function(i,n,o){for(var l=i.length,u=0,p=new PP(n);u<l;++u)i[u]&&++p[i[u]-1];var h=new PP(n);for(u=1;u<n;++u)h[u]=h[u-1]+p[u-1]<<1;var v;if(o){v=new PP(1<<n);var T=15-n;for(u=0;u<l;++u)if(i[u])for(var E=u<<4|i[u],D=n-i[u],C=h[i[u]-1]++<<D,w=C|(1<<D)-1;C<=w;++C)v[whe[C]>>T]=E}else for(v=new PP(l),u=0;u<l;++u)i[u]&&(v[u]=whe[h[i[u]-1]++]>>15-i[u]);return v},"hMap"),UG=new Sm(288);for(Iy=0;Iy<144;++Iy)UG[Iy]=8;var Iy;for(Iy=144;Iy<256;++Iy)UG[Iy]=9;var Iy;for(Iy=256;Iy<280;++Iy)UG[Iy]=7;var Iy;for(Iy=280;Iy<288;++Iy)UG[Iy]=8;var Iy,gae=new Sm(32);for(Iy=0;Iy<32;++Iy)gae[Iy]=5;var Iy,EXt=P3(UG,9,0),xXt=P3(UG,9,1),TXt=P3(gae,5,0),DXt=P3(gae,5,1),PMe=e(function(i){for(var n=i[0],o=1;o<i.length;++o)i[o]>n&&(n=i[o]);return n},"max"),I3=e(function(i,n,o){var l=n/8|0;return(i[l]|i[l+1]<<8)>>(n&7)&o},"bits"),NMe=e(function(i,n){var o=n/8|0;return(i[o]|i[o+1]<<8|i[o+2]<<16)>>(n&7)},"bits16"),Sae=e(function(i){return(i+7)/8|0},"shft"),N3=e(function(i,n,o){return(n==null||n<0)&&(n=0),(o==null||o>i.length)&&(o=i.length),new Sm(i.subarray(n,o))},"slc");Ff.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var AXt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Np=e(function(i,n,o){var l=new Error(n||AXt[i]);if(l.code=i,Error.captureStackTrace&&Error.captureStackTrace(l,Np),!o)throw l;return l},"err"),Nhe=e(function(i,n,o,l){var u=i.length,p=l?l.length:0;if(!u||n.f&&!n.l)return o||new Sm(0);var h=!o,v=h||n.i!=2,T=n.i;h&&(o=new Sm(u*3));var E=e(function(Tt){var tn=o.length;if(Tt>tn){var En=new Sm(Math.max(tn*2,Tt));En.set(o),o=En}},"cbuf"),D=n.f||0,C=n.p||0,w=n.b||0,W=n.l,V=n.d,B=n.m,k=n.n,F=u*8;do{if(!W){D=I3(i,C,1);var $=I3(i,C+1,3);if(C+=3,$)if($==1)W=xXt,V=DXt,B=9,k=5;else if($==2){var ve=I3(i,C,31)+257,Ce=I3(i,C+10,15)+4,be=ve+I3(i,C+5,31)+1;C+=14;for(var qe=new Sm(be),yt=new Sm(19),Ct=0;Ct<Ce;++Ct)yt[Che[Ct]]=I3(i,C+Ct*3,7);C+=Ce*3;for(var Bt=PMe(yt),fn=(1<<Bt)-1,Fn=P3(yt,Bt,1),Ct=0;Ct<be;){var Sn=Fn[I3(i,C,fn)];C+=Sn&15;var Y=Sn>>4;if(Y<16)qe[Ct++]=Y;else{var Qt=0,on=0;for(Y==16?(on=3+I3(i,C,3),C+=2,Qt=qe[Ct-1]):Y==17?(on=3+I3(i,C,7),C+=3):Y==18&&(on=11+I3(i,C,127),C+=7);on--;)qe[Ct++]=Qt}}var It=qe.subarray(0,ve),Kt=qe.subarray(ve);B=PMe(It),k=PMe(Kt),W=P3(It,B,1),V=P3(Kt,k,1)}else Np(1);else{var Y=Sae(C)+4,ie=i[Y-4]|i[Y-3]<<8,fe=Y+ie;if(fe>u){T&&Np(0);break}v&&E(w+ie),o.set(i.subarray(Y,fe),w),n.b=w+=ie,n.p=C=fe*8,n.f=D;continue}if(C>F){T&&Np(0);break}}v&&E(w+131072);for(var ht=(1<<B)-1,wn=(1<<k)-1,Gn=C;;Gn=C){var Qt=W[NMe(i,C)&ht],_n=Qt>>4;if(C+=Qt&15,C>F){T&&Np(0);break}if(Qt||Np(2),_n<256)o[w++]=_n;else if(_n==256){Gn=C,W=null;break}else{var Bn=_n-254;if(_n>264){var Ct=_n-257,cr=vae[Ct];Bn=I3(i,C,(1<<cr)-1)+Rst[Ct],C+=cr}var Yt=V[NMe(i,C)&wn],Ft=Yt>>4;Yt||Np(3),C+=Yt&15;var Kt=SXt[Ft];if(Ft>3){var cr=bae[Ft];Kt+=NMe(i,C)&(1<<cr)-1,C+=cr}if(C>F){T&&Np(0);break}v&&E(w+131072);var pt=w+Bn;if(w<Kt){var me=p-Kt,zt=Math.min(Kt,pt);for(me+w<0&&Np(3);w<zt;++w)o[w]=l[me+w]}for(;w<pt;++w)o[w]=o[w-Kt]}}n.l=W,n.p=Gn,n.b=w,n.f=D,W&&(D=1,n.m=B,n.d=V,n.n=k)}while(!D);return w!=o.length&&h?N3(o,0,w):o.subarray(0,w)},"inflt"),kB=e(function(i,n,o){o<<=n&7;var l=n/8|0;i[l]|=o,i[l+1]|=o>>8},"wbits"),mae=e(function(i,n,o){o<<=n&7;var l=n/8|0;i[l]|=o,i[l+1]|=o>>8,i[l+2]|=o>>16},"wbits16"),RMe=e(function(i,n){for(var o=[],l=0;l<i.length;++l)i[l]&&o.push({s:l,f:i[l]});var u=o.length,p=o.slice();if(!u)return{t:CH,l:0};if(u==1){var h=new Sm(o[0].s+1);return h[o[0].s]=1,{t:h,l:1}}o.sort(function(fe,ve){return fe.f-ve.f}),o.push({s:-1,f:25001});var v=o[0],T=o[1],E=0,D=1,C=2;for(o[0]={s:-1,f:v.f+T.f,l:v,r:T};D!=u-1;)v=o[o[E].f<o[C].f?E++:C++],T=o[E!=D&&o[E].f<o[C].f?E++:C++],o[D++]={s:-1,f:v.f+T.f,l:v,r:T};for(var w=p[0].s,l=1;l<u;++l)p[l].s>w&&(w=p[l].s);var W=new PP(w+1),V=MMe(o[D-1],W,0);if(V>n){var l=0,B=0,k=V-n,F=1<<k;for(p.sort(function(ve,Ce){return W[Ce.s]-W[ve.s]||ve.f-Ce.f});l<u;++l){var $=p[l].s;if(W[$]>n)B+=F-(1<<V-W[$]),W[$]=n;else break}for(B>>=k;B>0;){var Y=p[l].s;W[Y]<n?B-=1<<n-W[Y]++-1:++l}for(;l>=0&&B;--l){var ie=p[l].s;W[ie]==n&&(--W[ie],++B)}V=n}return{t:new Sm(W),l:V}},"hTree"),MMe=e(function(i,n,o){return i.s==-1?Math.max(MMe(i.l,n,o+1),MMe(i.r,n,o+1)):n[i.s]=o},"ln"),Ast=e(function(i){for(var n=i.length;n&&!i[--n];);for(var o=new PP(++n),l=0,u=i[0],p=1,h=e(function(T){o[l++]=T},"w"),v=1;v<=n;++v)if(i[v]==u&&v!=n)++p;else{if(!u&&p>2){for(;p>138;p-=138)h(32754);p>2&&(h(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(h(u),--p;p>6;p-=6)h(8304);p>2&&(h(p-3<<5|8208),p=0)}for(;p--;)h(u);p=1,u=i[v]}return{c:o.subarray(0,l),n}},"lc"),hae=e(function(i,n){for(var o=0,l=0;l<n.length;++l)o+=i[l]*n[l];return o},"clen"),kst=e(function(i,n,o){var l=o.length,u=Sae(n+2);i[u]=l&255,i[u+1]=l>>8,i[u+2]=i[u]^255,i[u+3]=i[u+1]^255;for(var p=0;p<l;++p)i[u+p+4]=o[p];return(u+4+l)*8},"wfblk"),Cst=e(function(i,n,o,l,u,p,h,v,T,E,D){kB(n,D++,o),++u[256];for(var C=RMe(u,15),w=C.t,W=C.l,V=RMe(p,15),B=V.t,k=V.l,F=Ast(w),$=F.c,Y=F.n,ie=Ast(B),fe=ie.c,ve=ie.n,Ce=new PP(19),be=0;be<$.length;++be)++Ce[$[be]&31];for(var be=0;be<fe.length;++be)++Ce[fe[be]&31];for(var qe=RMe(Ce,7),yt=qe.t,Ct=qe.l,Bt=19;Bt>4&&!yt[Che[Bt-1]];--Bt);var fn=E+5<<3,Fn=hae(u,UG)+hae(p,gae)+h,Sn=hae(u,w)+hae(p,B)+h+14+3*Bt+hae(Ce,yt)+2*Ce[16]+3*Ce[17]+7*Ce[18];if(T>=0&&fn<=Fn&&fn<=Sn)return kst(n,D,i.subarray(T,T+E));var Qt,on,It,Kt;if(kB(n,D,1+(Sn<Fn)),D+=2,Sn<Fn){Qt=P3(w,W,0),on=w,It=P3(B,k,0),Kt=B;var ht=P3(yt,Ct,0);kB(n,D,Y-257),kB(n,D+5,ve-1),kB(n,D+10,Bt-4),D+=14;for(var be=0;be<Bt;++be)kB(n,D+3*be,yt[Che[be]]);D+=3*Bt;for(var wn=[$,fe],Gn=0;Gn<2;++Gn)for(var _n=wn[Gn],be=0;be<_n.length;++be){var Bn=_n[be]&31;kB(n,D,ht[Bn]),D+=yt[Bn],Bn>15&&(kB(n,D,_n[be]>>5&127),D+=_n[be]>>12)}}else Qt=EXt,on=UG,It=TXt,Kt=gae;for(var be=0;be<v;++be){var cr=l[be];if(cr>255){var Bn=cr>>18&31;mae(n,D,Qt[Bn+257]),D+=on[Bn+257],Bn>7&&(kB(n,D,cr>>23&31),D+=vae[Bn]);var Yt=cr&31;mae(n,D,It[Yt]),D+=Kt[Yt],Yt>3&&(mae(n,D,cr>>5&8191),D+=bae[Yt])}else mae(n,D,Qt[cr]),D+=on[cr]}return mae(n,D,Qt[256]),D+on[256]},"wblk"),CXt=new Phe([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),CH=new Sm(0),wXt=e(function(i,n,o,l,u,p){var h=p.z||i.length,v=new Sm(l+h+5*(1+Math.ceil(h/7e3))+u),T=v.subarray(l,v.length-u),E=p.l,D=(p.r||0)&7;if(n){D&&(T[0]=p.r>>3);for(var C=CXt[n-1],w=C>>13,W=C&8191,V=(1<<o)-1,B=p.p||new PP(32768),k=p.h||new PP(V+1),F=Math.ceil(o/3),$=2*F,Y=e(function(Kn){return(i[Kn]^i[Kn+1]<<F^i[Kn+2]<<$)&V},"hsh"),ie=new Phe(25e3),fe=new PP(288),ve=new PP(32),Ce=0,be=0,qe=p.i||0,yt=0,Ct=p.w||0,Bt=0;qe+2<h;++qe){var fn=Y(qe),Fn=qe&32767,Sn=k[fn];if(B[Fn]=Sn,k[fn]=Fn,Ct<=qe){var Qt=h-qe;if((Ce>7e3||yt>24576)&&(Qt>423||!E)){D=Cst(i,T,0,ie,fe,ve,be,yt,Bt,qe-Bt,D),yt=Ce=be=0,Bt=qe;for(var on=0;on<286;++on)fe[on]=0;for(var on=0;on<30;++on)ve[on]=0}var It=2,Kt=0,ht=W,wn=Fn-Sn&32767;if(Qt>2&&fn==Y(qe-wn))for(var Gn=Math.min(w,Qt)-1,_n=Math.min(32767,qe),Bn=Math.min(258,Qt);wn<=_n&&--ht&&Fn!=Sn;){if(i[qe+It]==i[qe+It-wn]){for(var cr=0;cr<Bn&&i[qe+cr]==i[qe+cr-wn];++cr);if(cr>It){if(It=cr,Kt=wn,cr>Gn)break;for(var Yt=Math.min(wn,cr-2),Ft=0,on=0;on<Yt;++on){var pt=qe-wn+on&32767,me=B[pt],zt=pt-me&32767;zt>Ft&&(Ft=zt,Sn=pt)}}}Fn=Sn,Sn=B[Fn],wn+=Fn-Sn&32767}if(Kt){ie[yt++]=268435456|kMe[It]<<18|Dst[Kt];var Tt=kMe[It]&31,tn=Dst[Kt]&31;be+=vae[Tt]+bae[tn],++fe[257+Tt],++ve[tn],Ct=qe+It,++Ce}else ie[yt++]=i[qe],++fe[i[qe]]}}for(qe=Math.max(qe,Ct);qe<h;++qe)ie[yt++]=i[qe],++fe[i[qe]];D=Cst(i,T,E,ie,fe,ve,be,yt,Bt,qe-Bt,D),E||(p.r=D&7|T[D/8|0]<<3,D-=7,p.h=k,p.p=B,p.i=qe,p.w=Ct)}else{for(var qe=p.w||0;qe<h+E;qe+=65535){var En=qe+65535;En>=h&&(T[D/8|0]=E,En=h),D=kst(T,D+1,i.subarray(qe,En))}p.i=h}return N3(v,0,l+Sae(D)+u)},"dflt"),IXt=function(){for(var i=new Int32Array(256),n=0;n<256;++n){for(var o=n,l=9;--l;)o=(o&1&&-306674912)^o>>>1;i[n]=o}return i}(),Eae=e(function(){var i=-1;return{p:e(function(n){for(var o=i,l=0;l<n.length;++l)o=IXt[o&255^n[l]]^o>>>8;i=o},"p"),d:e(function(){return~i},"d")}},"crc"),GMe=e(function(){var i=1,n=0;return{p:e(function(o){for(var l=i,u=n,p=o.length|0,h=0;h!=p;){for(var v=Math.min(h+2655,p);h<v;++h)u+=l+=o[h];l=(l&65535)+15*(l>>16),u=(u&65535)+15*(u>>16)}i=l,n=u},"p"),d:e(function(){return i%=65521,n%=65521,(i&255)<<24|(i&65280)<<8|(n&255)<<8|n>>8},"d")}},"adler"),aZ=e(function(i,n,o,l,u){if(!u&&(u={l:1},n.dictionary)){var p=n.dictionary.subarray(-32768),h=new Sm(p.length+i.length);h.set(p),h.set(i,p.length),i=h,u.w=p.length}return wXt(i,n.level==null?6:n.level,n.mem==null?u.l?Math.ceil(Math.max(8,Math.min(13,Math.log(i.length)))*1.5):20:12+n.mem,o,l,u)},"dopt"),Rhe=e(function(i,n){var o={};for(var l in i)o[l]=i[l];for(var l in n)o[l]=n[l];return o},"mrg"),mXt=e(function(i,n,o){for(var l=i(),u=i.toString(),p=u.slice(u.indexOf("[")+1,u.lastIndexOf("]")).replace(/\s+/g,"").split(","),h=0;h<l.length;++h){var v=l[h],T=p[h];if(typeof v=="function"){n+=";"+T+"=";var E=v.toString();if(v.prototype)if(E.indexOf("[native code]")!=-1){var D=E.indexOf(" ",8)+1;n+=E.slice(D,E.indexOf("(",D))}else{n+=E;for(var C in v.prototype)n+=";"+T+".prototype."+C+"="+v.prototype[C].toString()}else n+=E}else o[T]=v}return n},"wcln"),IMe=[],dsr=e(function(i){var n=[];for(var o in i)i[o].buffer&&n.push((i[o]=new i[o].constructor(i[o])).buffer);return n},"cbfs"),PXt=e(function(i,n,o,l){if(!IMe[o]){for(var u="",p={},h=i.length-1,v=0;v<h;++v)u=mXt(i[v],u,p);IMe[o]={c:mXt(i[h],u,p),e:p}}var T=Rhe({},IMe[o].e);return(0,gXt.default)(IMe[o].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",o,T,dsr(T),l)},"wrkr"),xae=e(function(){return[Sm,PP,Phe,vae,bae,Che,Rst,SXt,xXt,DXt,whe,AXt,P3,PMe,I3,NMe,Sae,N3,Np,Nhe,Cae,PH,Mst]},"bInflt"),Tae=e(function(){return[Sm,PP,Phe,vae,bae,Che,kMe,Dst,EXt,UG,TXt,gae,whe,CXt,CH,P3,kB,mae,RMe,MMe,Ast,hae,kst,Cst,Sae,N3,wXt,aZ,khe,PH]},"bDflt"),NXt=e(function(){return[Lst,Fst,wy,Eae,IXt]},"gze"),RXt=e(function(){return[Ost,LXt]},"guze"),kXt=e(function(){return[Bst,wy,GMe]},"zle"),MXt=e(function(){return[Wst]},"zule"),PH=e(function(i){return postMessage(i,[i.buffer])},"pbf"),Mst=e(function(i){return i&&{out:i.size&&new Sm(i.size),dictionary:i.dictionary}},"gopt"),Dae=e(function(i,n,o,l,u,p){var h=PXt(o,l,u,function(v,T){h.terminate(),p(v,T)});return h.postMessage([i,n],n.consume?[i.buffer]:[]),function(){h.terminate()}},"cbify"),k3=e(function(i){return i.ondata=function(n,o){return postMessage([n,o],[n.buffer])},function(n){n.data.length?(i.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):i.flush()}},"astrm"),Aae=e(function(i,n,o,l,u,p,h){var v,T=PXt(i,l,u,function(E,D){E?(T.terminate(),n.ondata.call(n,E)):Array.isArray(D)?D.length==1?(n.queuedSize-=D[0],n.ondrain&&n.ondrain(D[0])):(D[1]&&T.terminate(),n.ondata.call(n,E,D[0],D[1])):h(D)});T.postMessage(o),n.queuedSize=0,n.push=function(E,D){n.ondata||Np(5),v&&n.ondata(Np(4,0,1),null,!!D),n.queuedSize+=E.length,T.postMessage([E,v=D],[E.buffer])},n.terminate=function(){T.terminate()},p&&(n.flush=function(){T.postMessage([])})},"astrmify"),IP=e(function(i,n){return i[n]|i[n+1]<<8},"b2"),kx=e(function(i,n){return(i[n]|i[n+1]<<8|i[n+2]<<16|i[n+3]<<24)>>>0},"b4"),Tst=e(function(i,n){return kx(i,n)+kx(i,n+4)*4294967296},"b8"),wy=e(function(i,n,o){for(;o;++n)i[n]=o,o>>>=8},"wbytes"),Lst=e(function(i,n){var o=n.filename;if(i[0]=31,i[1]=139,i[2]=8,i[8]=n.level<2?4:n.level==9?2:0,i[9]=3,n.mtime!=0&&wy(i,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),o){i[3]=8;for(var l=0;l<=o.length;++l)i[l+10]=o.charCodeAt(l)}},"gzh"),Ost=e(function(i){(i[0]!=31||i[1]!=139||i[2]!=8)&&Np(6,"invalid gzip data");var n=i[3],o=10;n&4&&(o+=(i[10]|i[11]<<8)+2);for(var l=(n>>3&1)+(n>>4&1);l>0;l-=!i[o++]);return o+(n&2)},"gzs"),LXt=e(function(i){var n=i.length;return(i[n-4]|i[n-3]<<8|i[n-2]<<16|i[n-1]<<24)>>>0},"gzl"),Fst=e(function(i){return 10+(i.filename?i.filename.length+1:0)},"gzhl"),Bst=e(function(i,n){var o=n.level,l=o==0?0:o<6?1:o==9?3:2;if(i[0]=120,i[1]=l<<6|(n.dictionary&&32),i[1]|=31-(i[0]<<8|i[1])%31,n.dictionary){var u=GMe();u.p(n.dictionary),wy(i,2,u.d())}},"zlh"),Wst=e(function(i,n){return((i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31)&&Np(6,"invalid zlib data"),(i[1]>>5&1)==+!n&&Np(6,"invalid zlib data: "+(i[1]&32?"need":"unexpected")+" dictionary"),(i[1]>>3&4)+2},"zls");function sZ(i,n){return typeof i=="function"&&(n=i,i={}),this.ondata=n,i}e(sZ,"StrmOpt");var R3=function(){function i(n,o){if(typeof n=="function"&&(o=n,n={}),this.ondata=o,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Sm(98304),this.o.dictionary){var l=this.o.dictionary.subarray(-32768);this.b.set(l,32768-l.length),this.s.i=32768-l.length}}return e(i,"Deflate"),i.prototype.p=function(n,o){this.ondata(aZ(n,this.o,0,0,this.s),o)},i.prototype.push=function(n,o){this.ondata||Np(5),this.s.l&&Np(4);var l=n.length+this.s.z;if(l>this.b.length){if(l>2*this.b.length-32768){var u=new Sm(l&-32768);u.set(this.b.subarray(0,this.s.z)),this.b=u}var p=this.b.length-this.s.z;this.b.set(n.subarray(0,p),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(p),32768),this.s.z=n.length-p+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=o&1,(this.s.z>this.s.w+8191||o)&&(this.p(this.b,o||!1),this.s.w=this.s.i,this.s.i-=2)},i.prototype.flush=function(){this.ondata||Np(5),this.s.l&&Np(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},i}();Ff.Deflate=R3;var OXt=function(){function i(n,o){Aae([Tae,function(){return[k3,R3]}],this,sZ.call(this,n,o),function(l){var u=new R3(l.data);onmessage=k3(u)},6,1)}return e(i,"AsyncDeflate"),i}();Ff.AsyncDeflate=OXt;function FXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[Tae],function(l){return PH(khe(l.data[0],l.data[1]))},0,o)}e(FXt,"deflate");Ff.deflate=FXt;function khe(i,n){return aZ(i,n||{},0,0)}e(khe,"deflateSync");Ff.deflateSync=khe;var KR=function(){function i(n,o){typeof n=="function"&&(o=n,n={}),this.ondata=o;var l=n&&n.dictionary&&n.dictionary.subarray(-32768);this.s={i:0,b:l?l.length:0},this.o=new Sm(32768),this.p=new Sm(0),l&&this.o.set(l)}return e(i,"Inflate"),i.prototype.e=function(n){if(this.ondata||Np(5),this.d&&Np(4),!this.p.length)this.p=n;else if(n.length){var o=new Sm(this.p.length+n.length);o.set(this.p),o.set(n,this.p.length),this.p=o}},i.prototype.c=function(n){this.s.i=+(this.d=n||!1);var o=this.s.b,l=Nhe(this.p,this.s,this.o);this.ondata(N3(l,o,this.s.b),this.d),this.o=N3(l,this.s.b-32768),this.s.b=this.o.length,this.p=N3(this.p,this.s.p/8|0),this.s.p&=7},i.prototype.push=function(n,o){this.e(n),this.c(o)},i}();Ff.Inflate=KR;var jst=function(){function i(n,o){Aae([xae,function(){return[k3,KR]}],this,sZ.call(this,n,o),function(l){var u=new KR(l.data);onmessage=k3(u)},7,0)}return e(i,"AsyncInflate"),i}();Ff.AsyncInflate=jst;function zst(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[xae],function(l){return PH(Cae(l.data[0],Mst(l.data[1])))},1,o)}e(zst,"inflate");Ff.inflate=zst;function Cae(i,n){return Nhe(i,{i:2},n&&n.out,n&&n.dictionary)}e(Cae,"inflateSync");Ff.inflateSync=Cae;var LMe=function(){function i(n,o){this.c=Eae(),this.l=0,this.v=1,R3.call(this,n,o)}return e(i,"Gzip"),i.prototype.push=function(n,o){this.c.p(n),this.l+=n.length,R3.prototype.push.call(this,n,o)},i.prototype.p=function(n,o){var l=aZ(n,this.o,this.v&&Fst(this.o),o&&8,this.s);this.v&&(Lst(l,this.o),this.v=0),o&&(wy(l,l.length-8,this.c.d()),wy(l,l.length-4,this.l)),this.ondata(l,o)},i.prototype.flush=function(){R3.prototype.flush.call(this)},i}();Ff.Gzip=LMe;Ff.Compress=LMe;var BXt=function(){function i(n,o){Aae([Tae,NXt,function(){return[k3,R3,LMe]}],this,sZ.call(this,n,o),function(l){var u=new LMe(l.data);onmessage=k3(u)},8,1)}return e(i,"AsyncGzip"),i}();Ff.AsyncGzip=BXt;Ff.AsyncCompress=BXt;function WXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[Tae,NXt,function(){return[OMe]}],function(l){return PH(OMe(l.data[0],l.data[1]))},2,o)}e(WXt,"gzip");Ff.gzip=WXt;Ff.compress=WXt;function OMe(i,n){n||(n={});var o=Eae(),l=i.length;o.p(i);var u=aZ(i,n,Fst(n),8),p=u.length;return Lst(u,n),wy(u,p-8,o.d()),wy(u,p-4,l),u}e(OMe,"gzipSync");Ff.gzipSync=OMe;Ff.compressSync=OMe;var FMe=function(){function i(n,o){this.v=1,this.r=0,KR.call(this,n,o)}return e(i,"Gunzip"),i.prototype.push=function(n,o){if(KR.prototype.e.call(this,n),this.r+=n.length,this.v){var l=this.p.subarray(this.v-1),u=l.length>3?Ost(l):4;if(u>l.length){if(!o)return}else this.v>1&&this.onmember&&this.onmember(this.r-l.length);this.p=l.subarray(u),this.v=0}KR.prototype.c.call(this,o),this.s.f&&!this.s.l&&!o&&(this.v=Sae(this.s.p)+9,this.s={i:0},this.o=new Sm(0),this.push(new Sm(0),o))},i}();Ff.Gunzip=FMe;var jXt=function(){function i(n,o){var l=this;Aae([xae,RXt,function(){return[k3,KR,FMe]}],this,sZ.call(this,n,o),function(u){var p=new FMe(u.data);p.onmember=function(h){return postMessage(h)},onmessage=k3(p)},9,0,function(u){return l.onmember&&l.onmember(u)})}return e(i,"AsyncGunzip"),i}();Ff.AsyncGunzip=jXt;function zXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[xae,RXt,function(){return[BMe]}],function(l){return PH(BMe(l.data[0],l.data[1]))},3,o)}e(zXt,"gunzip");Ff.gunzip=zXt;function BMe(i,n){var o=Ost(i);return o+8>i.length&&Np(6,"invalid gzip data"),Nhe(i.subarray(o,-8),{i:2},n&&n.out||new Sm(LXt(i)),n&&n.dictionary)}e(BMe,"gunzipSync");Ff.gunzipSync=BMe;var wst=function(){function i(n,o){this.c=GMe(),this.v=1,R3.call(this,n,o)}return e(i,"Zlib"),i.prototype.push=function(n,o){this.c.p(n),R3.prototype.push.call(this,n,o)},i.prototype.p=function(n,o){var l=aZ(n,this.o,this.v&&(this.o.dictionary?6:2),o&&4,this.s);this.v&&(Bst(l,this.o),this.v=0),o&&wy(l,l.length-4,this.c.d()),this.ondata(l,o)},i.prototype.flush=function(){R3.prototype.flush.call(this)},i}();Ff.Zlib=wst;var psr=function(){function i(n,o){Aae([Tae,kXt,function(){return[k3,R3,wst]}],this,sZ.call(this,n,o),function(l){var u=new wst(l.data);onmessage=k3(u)},10,1)}return e(i,"AsyncZlib"),i}();Ff.AsyncZlib=psr;function fsr(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[Tae,kXt,function(){return[Ist]}],function(l){return PH(Ist(l.data[0],l.data[1]))},4,o)}e(fsr,"zlib");Ff.zlib=fsr;function Ist(i,n){n||(n={});var o=GMe();o.p(i);var l=aZ(i,n,n.dictionary?6:2,4);return Bst(l,n),wy(l,l.length-4,o.d()),l}e(Ist,"zlibSync");Ff.zlibSync=Ist;var WMe=function(){function i(n,o){KR.call(this,n,o),this.v=n&&n.dictionary?2:1}return e(i,"Unzlib"),i.prototype.push=function(n,o){if(KR.prototype.e.call(this,n),this.v){if(this.p.length<6&&!o)return;this.p=this.p.subarray(Wst(this.p,this.v-1)),this.v=0}o&&(this.p.length<4&&Np(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),KR.prototype.c.call(this,o)},i}();Ff.Unzlib=WMe;var GXt=function(){function i(n,o){Aae([xae,MXt,function(){return[k3,KR,WMe]}],this,sZ.call(this,n,o),function(l){var u=new WMe(l.data);onmessage=k3(u)},11,0)}return e(i,"AsyncUnzlib"),i}();Ff.AsyncUnzlib=GXt;function UXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[xae,MXt,function(){return[jMe]}],function(l){return PH(jMe(l.data[0],Mst(l.data[1])))},5,o)}e(UXt,"unzlib");Ff.unzlib=UXt;function jMe(i,n){return Nhe(i.subarray(Wst(i,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}e(jMe,"unzlibSync");Ff.unzlibSync=jMe;var Pst=function(){function i(n,o){this.o=sZ.call(this,n,o)||{},this.G=FMe,this.I=KR,this.Z=WMe}return e(i,"Decompress"),i.prototype.i=function(){var n=this;this.s.ondata=function(o,l){n.ondata(o,l)}},i.prototype.push=function(n,o){if(this.ondata||Np(5),this.s)this.s.push(n,o);else{if(this.p&&this.p.length){var l=new Sm(this.p.length+n.length);l.set(this.p),l.set(n,this.p.length)}else this.p=n;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,o),this.p=null)}},i}();Ff.Decompress=Pst;var _sr=function(){function i(n,o){Pst.call(this,n,o),this.queuedSize=0,this.G=jXt,this.I=jst,this.Z=GXt}return e(i,"AsyncDecompress"),i.prototype.i=function(){var n=this;this.s.ondata=function(o,l,u){n.ondata(o,l,u)},this.s.ondrain=function(o){n.queuedSize-=o,n.ondrain&&n.ondrain(o)}},i.prototype.push=function(n,o){this.queuedSize+=n.length,Pst.prototype.push.call(this,n,o)},i}();Ff.AsyncDecompress=_sr;function msr(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),i[0]==31&&i[1]==139&&i[2]==8?zXt(i,n,o):(i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31?zst(i,n,o):UXt(i,n,o)}e(msr,"decompress");Ff.decompress=msr;function hsr(i,n){return i[0]==31&&i[1]==139&&i[2]==8?BMe(i,n):(i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31?Cae(i,n):jMe(i,n)}e(hsr,"decompressSync");Ff.decompressSync=hsr;var Gst=e(function(i,n,o,l){for(var u in i){var p=i[u],h=n+u,v=l;Array.isArray(p)&&(v=Rhe(l,p[1]),p=p[0]),p instanceof Sm?o[h]=[p,v]:(o[h+="/"]=[new Sm(0),v],Gst(p,h,o,l))}},"fltn"),hXt=typeof TextEncoder<"u"&&new TextEncoder,Nst=typeof TextDecoder<"u"&&new TextDecoder,VXt=0;try{Nst.decode(CH,{stream:!0}),VXt=1}catch{}var qXt=e(function(i){for(var n="",o=0;;){var l=i[o++],u=(l>127)+(l>223)+(l>239);if(o+u>i.length)return{s:n,r:N3(i,o-1)};u?u==3?(l=((l&15)<<18|(i[o++]&63)<<12|(i[o++]&63)<<6|i[o++]&63)-65536,n+=String.fromCharCode(55296|l>>10,56320|l&1023)):u&1?n+=String.fromCharCode((l&31)<<6|i[o++]&63):n+=String.fromCharCode((l&15)<<12|(i[o++]&63)<<6|i[o++]&63):n+=String.fromCharCode(l)}},"dutf8"),gsr=function(){function i(n){this.ondata=n,VXt?this.t=new TextDecoder:this.p=CH}return e(i,"DecodeUTF8"),i.prototype.push=function(n,o){if(this.ondata||Np(5),o=!!o,this.t){this.ondata(this.t.decode(n,{stream:!0}),o),o&&(this.t.decode().length&&Np(8),this.t=null);return}this.p||Np(4);var l=new Sm(this.p.length+n.length);l.set(this.p),l.set(n,this.p.length);var u=qXt(l),p=u.s,h=u.r;o?(h.length&&Np(8),this.p=null):this.p=h,this.ondata(p,o)},i}();Ff.DecodeUTF8=gsr;var ysr=function(){function i(n){this.ondata=n}return e(i,"EncodeUTF8"),i.prototype.push=function(n,o){this.ondata||Np(5),this.d&&Np(4),this.ondata(IH(n),this.d=o||!1)},i}();Ff.EncodeUTF8=ysr;function IH(i,n){if(n){for(var o=new Sm(i.length),l=0;l<i.length;++l)o[l]=i.charCodeAt(l);return o}if(hXt)return hXt.encode(i);for(var u=i.length,p=new Sm(i.length+(i.length>>1)),h=0,v=e(function(D){p[h++]=D},"w"),l=0;l<u;++l){if(h+5>p.length){var T=new Sm(h+8+(u-l<<1));T.set(p),p=T}var E=i.charCodeAt(l);E<128||n?v(E):E<2048?(v(192|E>>6),v(128|E&63)):E>55295&&E<57344?(E=65536+(E&1047552)|i.charCodeAt(++l)&1023,v(240|E>>18),v(128|E>>12&63),v(128|E>>6&63),v(128|E&63)):(v(224|E>>12),v(128|E>>6&63),v(128|E&63))}return N3(p,0,h)}e(IH,"strToU8");Ff.strToU8=IH;function Ust(i,n){if(n){for(var o="",l=0;l<i.length;l+=16384)o+=String.fromCharCode.apply(null,i.subarray(l,l+16384));return o}else{if(Nst)return Nst.decode(i);var u=qXt(i),p=u.s,o=u.r;return o.length&&Np(8),p}}e(Ust,"strFromU8");Ff.strFromU8=Ust;var KXt=e(function(i){return i==1?3:i<6?2:i==9?1:0},"dbf"),HXt=e(function(i,n){return n+30+IP(i,n+26)+IP(i,n+28)},"slzh"),JXt=e(function(i,n,o){var l=IP(i,n+28),u=Ust(i.subarray(n+46,n+46+l),!(IP(i,n+8)&2048)),p=n+46+l,h=kx(i,n+20),v=o&&h==4294967295?XXt(i,p):[h,kx(i,n+24),kx(i,n+42)],T=v[0],E=v[1],D=v[2];return[IP(i,n+10),T,E,u,p+IP(i,n+30)+IP(i,n+32),D]},"zh"),XXt=e(function(i,n){for(;IP(i,n)!=1;n+=4+IP(i,n+2));return[Tst(i,n+12),Tst(i,n+4),Tst(i,n+20)]},"z64e"),wH=e(function(i){var n=0;if(i)for(var o in i){var l=i[o].length;l>65535&&Np(9),n+=l+4}return n},"exfl"),yae=e(function(i,n,o,l,u,p,h,v){var T=l.length,E=o.extra,D=v&&v.length,C=wH(E);wy(i,n,h!=null?33639248:67324752),n+=4,h!=null&&(i[n++]=20,i[n++]=o.os),i[n]=20,n+=2,i[n++]=o.flag<<1|(p<0&&8),i[n++]=u&&8,i[n++]=o.compression&255,i[n++]=o.compression>>8;var w=new Date(o.mtime==null?Date.now():o.mtime),W=w.getFullYear()-1980;if((W<0||W>119)&&Np(10),wy(i,n,W<<25|w.getMonth()+1<<21|w.getDate()<<16|w.getHours()<<11|w.getMinutes()<<5|w.getSeconds()>>1),n+=4,p!=-1&&(wy(i,n,o.crc),wy(i,n+4,p<0?-p-2:p),wy(i,n+8,o.size)),wy(i,n+12,T),wy(i,n+14,C),n+=16,h!=null&&(wy(i,n,D),wy(i,n+6,o.attrs),wy(i,n+10,h),n+=14),i.set(l,n),n+=T,C)for(var V in E){var B=E[V],k=B.length;wy(i,n,+V),wy(i,n+2,k),i.set(B,n+4),n+=4+k}return D&&(i.set(v,n),n+=D),n},"wzh"),Vst=e(function(i,n,o,l,u){wy(i,n,101010256),wy(i,n+8,o),wy(i,n+10,o),wy(i,n+12,l),wy(i,n+16,u)},"wzf"),Ihe=function(){function i(n){this.filename=n,this.c=Eae(),this.size=0,this.compression=0}return e(i,"ZipPassThrough"),i.prototype.process=function(n,o){this.ondata(null,n,o)},i.prototype.push=function(n,o){this.ondata||Np(5),this.c.p(n),this.size+=n.length,o&&(this.crc=this.c.d()),this.process(n,o||!1)},i}();Ff.ZipPassThrough=Ihe;var vsr=function(){function i(n,o){var l=this;o||(o={}),Ihe.call(this,n),this.d=new R3(o,function(u,p){l.ondata(null,u,p)}),this.compression=8,this.flag=KXt(o.level)}return e(i,"ZipDeflate"),i.prototype.process=function(n,o){try{this.d.push(n,o)}catch(l){this.ondata(l,null,o)}},i.prototype.push=function(n,o){Ihe.prototype.push.call(this,n,o)},i}();Ff.ZipDeflate=vsr;var bsr=function(){function i(n,o){var l=this;o||(o={}),Ihe.call(this,n),this.d=new OXt(o,function(u,p,h){l.ondata(u,p,h)}),this.compression=8,this.flag=KXt(o.level),this.terminate=this.d.terminate}return e(i,"AsyncZipDeflate"),i.prototype.process=function(n,o){this.d.push(n,o)},i.prototype.push=function(n,o){Ihe.prototype.push.call(this,n,o)},i}();Ff.AsyncZipDeflate=bsr;var Ssr=function(){function i(n){this.ondata=n,this.u=[],this.d=1}return e(i,"Zip"),i.prototype.add=function(n){var o=this;if(this.ondata||Np(5),this.d&2)this.ondata(Np(4+(this.d&1)*8,0,1),null,!1);else{var l=IH(n.filename),u=l.length,p=n.comment,h=p&&IH(p),v=u!=n.filename.length||h&&p.length!=h.length,T=u+wH(n.extra)+30;u>65535&&this.ondata(Np(11,0,1),null,!1);var E=new Sm(T);yae(E,0,n,l,v,-1);var D=[E],C=e(function(){for(var k=0,F=D;k<F.length;k++){var $=F[k];o.ondata(null,$,!1)}D=[]},"pAll_1"),w=this.d;this.d=0;var W=this.u.length,V=Rhe(n,{f:l,u:v,o:h,t:e(function(){n.terminate&&n.terminate()},"t"),r:e(function(){if(C(),w){var k=o.u[W+1];k?k.r():o.d=1}w=1},"r")}),B=0;n.ondata=function(k,F,$){if(k)o.ondata(k,F,$),o.terminate();else if(B+=F.length,D.push(F),$){var Y=new Sm(16);wy(Y,0,134695760),wy(Y,4,n.crc),wy(Y,8,B),wy(Y,12,n.size),D.push(Y),V.c=B,V.b=T+B+16,V.crc=n.crc,V.size=n.size,w&&V.r(),w=1}else w&&C()},this.u.push(V)}},i.prototype.end=function(){var n=this;if(this.d&2){this.ondata(Np(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:e(function(){n.d&1&&(n.u.splice(-1,1),n.e())},"r"),t:e(function(){},"t")}),this.d=3},i.prototype.e=function(){for(var n=0,o=0,l=0,u=0,p=this.u;u<p.length;u++){var h=p[u];l+=46+h.f.length+wH(h.extra)+(h.o?h.o.length:0)}for(var v=new Sm(l+22),T=0,E=this.u;T<E.length;T++){var h=E[T];yae(v,n,h,h.f,h.u,-h.c-2,o,h.o),n+=46+h.f.length+wH(h.extra)+(h.o?h.o.length:0),o+=h.b}Vst(v,n,this.u.length,l,o),this.ondata(null,v,!0),this.d=2},i.prototype.terminate=function(){for(var n=0,o=this.u;n<o.length;n++){var l=o[n];l.t()}this.d=2},i}();Ff.Zip=Ssr;function Esr(i,n,o){o||(o=n,n={}),typeof o!="function"&&Np(7);var l={};Gst(i,"",l,n);var u=Object.keys(l),p=u.length,h=0,v=0,T=p,E=new Array(p),D=[],C=e(function(){for(var k=0;k<D.length;++k)D[k]()},"tAll"),w=e(function(k,F){zMe(function(){o(k,F)})},"cbd");zMe(function(){w=o});var W=e(function(){var k=new Sm(v+22),F=h,$=v-h;v=0;for(var Y=0;Y<T;++Y){var ie=E[Y];try{var fe=ie.c.length;yae(k,v,ie,ie.f,ie.u,fe);var ve=30+ie.f.length+wH(ie.extra),Ce=v+ve;k.set(ie.c,Ce),yae(k,h,ie,ie.f,ie.u,fe,v,ie.m),h+=16+ve+(ie.m?ie.m.length:0),v=Ce+fe}catch(be){return w(be,null)}}Vst(k,h,E.length,$,F),w(null,k)},"cbf");p||W();for(var V=e(function(k){var F=u[k],$=l[F],Y=$[0],ie=$[1],fe=Eae(),ve=Y.length;fe.p(Y);var Ce=IH(F),be=Ce.length,qe=ie.comment,yt=qe&&IH(qe),Ct=yt&&yt.length,Bt=wH(ie.extra),fn=ie.level==0?0:8,Fn=e(function(Sn,Qt){if(Sn)C(),w(Sn,null);else{var on=Qt.length;E[k]=Rhe(ie,{size:ve,crc:fe.d(),c:Qt,f:Ce,m:yt,u:be!=F.length||yt&&qe.length!=Ct,compression:fn}),h+=30+be+Bt+on,v+=76+2*(be+Bt)+(Ct||0)+on,--p||W()}},"cbl");if(be>65535&&Fn(Np(11,0,1),null),!fn)Fn(null,Y);else if(ve<16e4)try{Fn(null,khe(Y,ie))}catch(Sn){Fn(Sn,null)}else D.push(FXt(Y,ie,Fn))},"_loop_1"),B=0;B<T;++B)V(B);return C}e(Esr,"zip");Ff.zip=Esr;function xsr(i,n){n||(n={});var o={},l=[];Gst(i,"",o,n);var u=0,p=0;for(var h in o){var v=o[h],T=v[0],E=v[1],D=E.level==0?0:8,C=IH(h),w=C.length,W=E.comment,V=W&&IH(W),B=V&&V.length,k=wH(E.extra);w>65535&&Np(11);var F=D?khe(T,E):T,$=F.length,Y=Eae();Y.p(T),l.push(Rhe(E,{size:T.length,crc:Y.d(),c:F,f:C,m:V,u:w!=h.length||V&&W.length!=B,o:u,compression:D})),u+=30+w+k+$,p+=76+2*(w+k)+(B||0)+$}for(var ie=new Sm(p+22),fe=u,ve=p-u,Ce=0;Ce<l.length;++Ce){var C=l[Ce];yae(ie,C.o,C,C.f,C.u,C.c.length);var be=30+C.f.length+wH(C.extra);ie.set(C.c,C.o+be),yae(ie,u,C,C.f,C.u,C.c.length,C.o,C.m),u+=16+be+(C.m?C.m.length:0)}return Vst(ie,u,l.length,ve,fe),ie}e(xsr,"zipSync");Ff.zipSync=xsr;var $Xt=function(){function i(){}return e(i,"UnzipPassThrough"),i.prototype.push=function(n,o){this.ondata(null,n,o)},i.compression=0,i}();Ff.UnzipPassThrough=$Xt;var Tsr=function(){function i(){var n=this;this.i=new KR(function(o,l){n.ondata(null,o,l)})}return e(i,"UnzipInflate"),i.prototype.push=function(n,o){try{this.i.push(n,o)}catch(l){this.ondata(l,null,o)}},i.compression=8,i}();Ff.UnzipInflate=Tsr;var Dsr=function(){function i(n,o){var l=this;o<32e4?this.i=new KR(function(u,p){l.ondata(null,u,p)}):(this.i=new jst(function(u,p,h){l.ondata(u,p,h)}),this.terminate=this.i.terminate)}return e(i,"AsyncUnzipInflate"),i.prototype.push=function(n,o){this.i.terminate&&(n=N3(n,0)),this.i.push(n,o)},i.compression=8,i}();Ff.AsyncUnzipInflate=Dsr;var Asr=function(){function i(n){this.onfile=n,this.k=[],this.o={0:$Xt},this.p=CH}return e(i,"Unzip"),i.prototype.push=function(n,o){var l=this;if(this.onfile||Np(5),this.p||Np(4),this.c>0){var u=Math.min(this.c,n.length),p=n.subarray(0,u);if(this.c-=u,this.d?this.d.push(p,!this.c):this.k[0].push(p),n=n.subarray(u),n.length)return this.push(n,o)}else{var h=0,v=0,T=void 0,E=void 0;this.p.length?n.length?(E=new Sm(this.p.length+n.length),E.set(this.p),E.set(n,this.p.length)):E=this.p:E=n;for(var D=E.length,C=this.c,w=C&&this.d,W=e(function(){var F,$=kx(E,v);if($==67324752){h=1,T=v,V.d=null,V.c=0;var Y=IP(E,v+6),ie=IP(E,v+8),fe=Y&2048,ve=Y&8,Ce=IP(E,v+26),be=IP(E,v+28);if(D>v+30+Ce+be){var qe=[];V.k.unshift(qe),h=2;var yt=kx(E,v+18),Ct=kx(E,v+22),Bt=Ust(E.subarray(v+30,v+=30+Ce),!fe);yt==4294967295?(F=ve?[-2]:XXt(E,v),yt=F[0],Ct=F[1]):ve&&(yt=-1),v+=be,V.c=yt;var fn,Fn={name:Bt,compression:ie,start:e(function(){if(Fn.ondata||Np(5),!yt)Fn.ondata(null,CH,!0);else{var Sn=l.o[ie];Sn||Fn.ondata(Np(14,"unknown compression type "+ie,1),null,!1),fn=yt<0?new Sn(Bt):new Sn(Bt,yt,Ct),fn.ondata=function(Kt,ht,wn){Fn.ondata(Kt,ht,wn)};for(var Qt=0,on=qe;Qt<on.length;Qt++){var It=on[Qt];fn.push(It,!1)}l.k[0]==qe&&l.c?l.d=fn:fn.push(CH,!0)}},"start"),terminate:e(function(){fn&&fn.terminate&&fn.terminate()},"terminate")};yt>=0&&(Fn.size=yt,Fn.originalSize=Ct),V.onfile(Fn)}return"break"}else if(C){if($==134695760)return T=v+=12+(C==-2&&8),h=3,V.c=0,"break";if($==33639248)return T=v-=4,h=3,V.c=0,"break"}},"_loop_2"),V=this;v<D-4;++v){var B=W();if(B==="break")break}if(this.p=CH,C<0){var k=h?E.subarray(0,T-12-(C==-2&&8)-(kx(E,T-16)==134695760&&4)):E.subarray(0,v);w?w.push(k,!!h):this.k[+(h==2)].push(k)}if(h&2)return this.push(E.subarray(v),o);this.p=E.subarray(v)}o&&(this.c&&Np(13),this.p=null)},i.prototype.register=function(n){this.o[n.compression]=n},i}();Ff.Unzip=Asr;var zMe=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(i){i()};function Csr(i,n,o){o||(o=n,n={}),typeof o!="function"&&Np(7);var l=[],u=e(function(){for(var k=0;k<l.length;++k)l[k]()},"tAll"),p={},h=e(function(k,F){zMe(function(){o(k,F)})},"cbd");zMe(function(){h=o});for(var v=i.length-22;kx(i,v)!=101010256;--v)if(!v||i.length-v>65558)return h(Np(13,0,1),null),u;var T=IP(i,v+8);if(T){var E=T,D=kx(i,v+16),C=D==4294967295||E==65535;if(C){var w=kx(i,v-12);C=kx(i,w)==101075792,C&&(E=T=kx(i,w+32),D=kx(i,w+48))}for(var W=n&&n.filter,V=e(function(k){var F=JXt(i,D,C),$=F[0],Y=F[1],ie=F[2],fe=F[3],ve=F[4],Ce=F[5],be=HXt(i,Ce);D=ve;var qe=e(function(Ct,Bt){Ct?(u(),h(Ct,null)):(Bt&&(p[fe]=Bt),--T||h(null,p))},"cbl");if(!W||W({name:fe,size:Y,originalSize:ie,compression:$}))if(!$)qe(null,N3(i,be,be+Y));else if($==8){var yt=i.subarray(be,be+Y);if(ie<524288||Y>.8*ie)try{qe(null,Cae(yt,{out:new Sm(ie)}))}catch(Ct){qe(Ct,null)}else l.push(zst(yt,{size:ie},qe))}else qe(Np(14,"unknown compression type "+$,1),null);else qe(null,null)},"_loop_3"),B=0;B<E;++B)V(B)}else h(null,{});return u}e(Csr,"unzip");Ff.unzip=Csr;function wsr(i,n){for(var o={},l=i.length-22;kx(i,l)!=101010256;--l)(!l||i.length-l>65558)&&Np(13);var u=IP(i,l+8);if(!u)return{};var p=kx(i,l+16),h=p==4294967295||u==65535;if(h){var v=kx(i,l-12);h=kx(i,v)==101075792,h&&(u=kx(i,v+32),p=kx(i,v+48))}for(var T=n&&n.filter,E=0;E<u;++E){var D=JXt(i,p,h),C=D[0],w=D[1],W=D[2],V=D[3],B=D[4],k=D[5],F=HXt(i,k);p=B,(!T||T({name:V,size:w,originalSize:W,compression:C}))&&(C?C==8?o[V]=Cae(i.subarray(F,F+w),{out:new Sm(W)}):Np(14,"unknown compression type "+C):o[V]=N3(i,F,F+w))}return o}e(wsr,"unzipSync");Ff.unzipSync=wsr});var QXt=ft(NH=>{"use strict";Z();ne();ee();te();Object.defineProperty(NH,"__esModule",{value:!0});NH.gzipSync=NH.zipDirectory=NH.unzipAppPackage=void 0;var UMe=YXt();Object.defineProperty(NH,"gzipSync",{enumerable:!0,get:e(function(){return UMe.gzipSync},"get")});var Kst=ahe(),Hst=hB(),qst="status.json",Isr=e(async(i,n,o)=>{let l=new Uint8Array(i.readFileSync(n)),u=(0,UMe.unzipSync)(l);if(u["package_inventory.csv"]&&delete u["package_inventory.csv"],qst in u){let h=JSON.parse(He.from(u[qst]).toString("utf8"));if(h.status==="error")throw new Error("Application download failed with error, "+h.message);delete u[qst]}return{files:Object.entries(u).map(([h,v])=>{let T=Hst.path.join(o,h),E=Hst.path.dirname(T);return Kst.FileSystem.ensureDirSync(i,E),i.writeFileSync(T,v),T})}},"unzipAppPackage");NH.unzipAppPackage=Isr;var Psr=e(async(i,n,o)=>new Promise((l,u)=>{try{let p=new UMe.Zip,h=Kst.FileSystem.createWriteStream(i,o);p.ondata=(E,D,C)=>{E?(h.destroy(),u(E)):(h.write(D),C&&h.end())},h.on("finish",()=>{l(o)}),h.on("error",E=>{u(E)});let T=new Kst.TsMorphFileSystemWrapper(i).globSync(["**"],{cwd:n});T.length===0&&u(`No files found in ${n} directory to create zip.`);for(let E of T){let D=Hst.path.normalize(E),C=i.readFileSync(D),w=new UMe.ZipDeflate(D.replace(n,""),{level:6});p.add(w),w.push(C,!0)}p.end()}catch(p){u(p)}}),"zipDirectory");NH.zipDirectory=Psr});var ZXt=ft(VMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(VMe,"__esModule",{value:!0});VMe.NoOpTelemetry=void 0;var Jst=class{static{e(this,"NoOpTelemetry")}startTimerEvent(){return{end:e(()=>({name:"",data:{}}),"end")}}start=e(()=>Promise.resolve(),"start");sendEvent=e(()=>Promise.resolve(),"sendEvent");error=e(()=>Promise.resolve(),"error")};VMe.NoOpTelemetry=Jst});var Wu=ft(Lb=>{"use strict";Z();ne();ee();te();var Nsr=Lb&&Lb.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Mx=Lb&&Lb.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Nsr(n,i,o)};Object.defineProperty(Lb,"__esModule",{value:!0});Mx(FXe(),Lb);Mx(nJt(),Lb);Mx(Mat(),Lb);Mx(mMe(),Lb);Mx(FJt(),Lb);Mx(BJt(),Lb);Mx(GJt(),Lb);Mx(cat(),Lb);Mx(pXt(),Lb);Mx(Zke(),Lb);Mx(Xke(),Lb);Mx(_st(),Lb);Mx(jQ(),Lb);Mx(fXt(),Lb);Mx(ahe(),Lb);Mx(hB(),Lb);Mx(L4(),Lb);Mx(jat(),Lb);Mx(QXt(),Lb);Mx(ast(),Lb);Mx(ZXt(),Lb)});var e$t=ft(Mhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Mhe,"__esModule",{value:!0});Mhe.writeFileWithParentDirs=Rsr;Mhe.createDirIfNotExists=ksr;Mhe.writeFileStream=Msr;var qMe=Wu();function Rsr(i,{path:n,content:o}){let l=qMe.path.dirname(n);qMe.FileSystem.existsSync(i,l)||i.mkdirSync(l,{recursive:!0}),i.writeFileSync(n,o,{encoding:"utf-8"})}e(Rsr,"writeFileWithParentDirs");function ksr(i,n){qMe.FileSystem.existsSync(n,i)||n.mkdirSync(i,{recursive:!0})}e(ksr,"createDirIfNotExists");function Msr(i,n,o){let l=qMe.FileSystem.createWriteStream(i,n);return o.pipeTo(new WritableStream({write:e(u=>new Promise((p,h)=>{l.write(u,v=>{v?h(v):p()})}),"write"),close:e(()=>new Promise((u,p)=>{l.end(h=>{h?p(h):u()})}),"close"),abort:e(u=>new Promise((p,h)=>{l.end(v=>{h(u??v)})}),"abort")}))}e(Msr,"writeFileStream")});var r$t=ft(Xst=>{"use strict";Z();ne();ee();te();Object.defineProperty(Xst,"__esModule",{value:!0});Xst.traverseDirectory=n$t;var t$t=Wu();function n$t(i,n,o){if(!t$t.FileSystem.existsSync(i,n))return;let l=i.readdirSync(n,{withFileTypes:!0}),{extensions:u,ignore_extensions:p,visitor:h}=o||{};for(let v of l){let T=t$t.path.resolve(n,v.name);v.isDirectory()?n$t(i,T,o):p&&p.find(E=>T.toLocaleLowerCase().endsWith(E.toLocaleLowerCase()))||(!u||u.length===0||u.some(E=>T.toLocaleLowerCase().endsWith(E.toLocaleLowerCase())))&&h(T)}}e(n$t,"traverseDirectory")});var i$t=ft($st=>{"use strict";Z();ne();ee();te();Object.defineProperty($st,"__esModule",{value:!0});$st.getOutput=Lsr;async function Lsr(i,n){let o=new Set,l=[];for(let u of[{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let p of n.plugins.toArray()){let h=await p.recordsToFiles({...u,database:i,context:n,handledGuids:o});h.success&&l.push(...h.value)}return l.map(u=>({path:n.project.resolvePath(n.config.appOutputDir,u.category,u.name),content:u.content}))}e(Lsr,"getOutput")});var o$t=ft(Lhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Lhe,"__esModule",{value:!0});Lhe.createPackageJson=Osr;Lhe.getPackageJsonFilePath=Fsr;Lhe.validatePackageName=Bsr;var KMe=Wu();function Osr({rootDir:i,compiler:n,fileSystem:o}){let l=KMe.path.join(i,"package.json"),u=n.getSourceFile(l);if(!u&&!KMe.FileSystem.existsSync(o,l))return{name:"my-fluent-app",version:"0.0.1"};let p=u?u.getFullText():o.readFileSync(l,{encoding:"utf-8"});return KMe.JSON5.parse(p)}e(Osr,"createPackageJson");function Fsr(i){return KMe.path.join(i,"package.json")}e(Fsr,"getPackageJsonFilePath");function Bsr(i){if(i===null)throw new Error("name cannot be null");if(i===void 0)throw new Error("name cannot be undefined");if(!i.length)throw new Error("name length must be greater than zero");if(i.match(/^\./))throw new Error("name cannot start with a period");if(i.match(/^_/))throw new Error("name cannot start with an underscore");if(i.trim()!==i)throw new Error("name cannot contain leading or trailing spaces");if(encodeURIComponent(i)!==i){let n=/^(?:@([^/]+?)[/])?([^/]+?)$/,o=i.match(n);if(o){let l=o[1],u=o[2];if(encodeURIComponent(l)===l&&encodeURIComponent(u)===u)return}throw new Error("name can only contain URL-friendly characters")}}e(Bsr,"validatePackageName")});var Yst=ft(Ohe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ohe,"__esModule",{value:!0});Ohe.isWebWorker=void 0;Ohe.hasModuleLoader=Wsr;Ohe.isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";function Wsr(){return require?.IDE_MODULE_LOADER}e(Wsr,"hasModuleLoader")});var s$t=ft(HMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(HMe,"__esModule",{value:!0});HMe.projectHasScript=jsr;HMe.runScriptInProject=zsr;var Fhe=Wu(),a$t=Yst();function jsr(i,n){let o=i.getRootDir(),l=i.getFileSystem(),p=i.getConfig().scripts?.[n];if(!p)return!1;let h=Fhe.path.resolve(o,p);return!!Fhe.FileSystem.existsSync(l,h)}e(jsr,"projectHasScript");async function zsr({scriptName:i,project:n,throwIfNotFound:o=!1}){let l=n.getRootDir(),u=n.getFileSystem(),p=n.getConfig(),h=n.getLogger(),v=n.registerExplicitId.bind(n),T=p.scripts?.[i];if(!T){if(o)throw Error(`No script defined for "${i}". Please check your now.config.json.`);return}let E=Fhe.path.resolve(l,T);if(!Fhe.FileSystem.existsSync(u,E)){if(o)throw Error(`Script "${i}" not found at ${E}. Skipping.`);return}h.info(`Running script "${i}" from ${E}`);let D=null;a$t.isWebWorker&&(0,a$t.hasModuleLoader)()?D=await require(E):D=await import(`file://${E}`);let C=Array.isArray(D.default)?D.default:[D.default];for(let w of C)typeof w=="function"?await w({rootDir:l,config:p,fs:u,path:Fhe.path,logger:h,registerExplicitId:v}):h.warn(`Skipping non-function task in script "${i}": ${w?.toString()} . Please export a function or an array of functions.`);h.info(`Script "${i}" completed successfully`)}e(zsr,"runScriptInProject")});var c$t=ft(l$t=>{"use strict";Z();ne();ee();te();Object.defineProperty(l$t,"__esModule",{value:!0})});var cZ=ft(UL=>{"use strict";Z();ne();ee();te();var Gsr=UL&&UL.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),lZ=UL&&UL.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Gsr(n,i,o)};Object.defineProperty(UL,"__esModule",{value:!0});lZ(e$t(),UL);lZ(r$t(),UL);lZ(i$t(),UL);lZ(o$t(),UL);lZ(s$t(),UL);lZ(Yst(),UL);lZ(c$t(),UL)});var u$t=ft(XMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(XMe,"__esModule",{value:!0});XMe.Diagnostics=void 0;var HR=Wu();function JMe(i){return HR.ts.Node.isNode(i)?i:i.getOriginalNode()}e(JMe,"getOriginalNode");var Qst=class{static{e(this,"Diagnostics")}diagnostics=[];error(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Error}))}warn(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Warn}))}info(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Info}))}hint(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Hint}))}add(n){Usr(n)||this.diagnostics.some(o=>o.message===n.message&&o.code===n.code&&o.level===n.level&&o.source===n.source&&o.position.start===n.position.start&&o.position.end===n.position.end&&o.file.getFilePath()===n.file.getFilePath())||this.diagnostics.push(n)}getAll(n){return n?this.diagnostics.filter(o=>o.file.getFilePath()===n):this.diagnostics}clear(n){this.diagnostics=n?this.diagnostics.filter(o=>o.file.getFilePath()!==n):[]}getWarnings(n){return this.getAll(n).filter(o=>o.level===HR.Diagnostic.Level.Warn)}hasErrors(n){return this.getAll(n).some(o=>o.level===HR.Diagnostic.Level.Error)}getErrors(n){return this.getAll(n).filter(o=>o.level===HR.Diagnostic.Level.Error)}};XMe.Diagnostics=Qst;function Usr(i){return i instanceof HR.FluentDiagnostic&&(0,HR.hasDirective)(i.node,"@fluent-ignore")}e(Usr,"isIgnored")});var d$t=ft(YMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(YMe,"__esModule",{value:!0});YMe.MultiProjectTransform=void 0;var MB=Wu(),Vsr=QMe(),$Me=class{static{e(this,"Transform")}project;pluginUsageTracker;constructor(n,o){this.project=n,this.pluginUsageTracker=o}shapeToSubclass(n,o){for(let l of o.length>0?o:this.project.getPlugins().toArray())try{let u=l.shapeToSubclass(n,this.project.getContext());if(u.success)return this.shapeToSubclass(u.value,o)}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to subclass "${n.getKind()}" shape:`,u)}return{success:!0,value:n}}async shapeToRecord(n,o){if(n.isRecord())return{success:!0,value:n};for(let l of o.length>0?o:this.project.getPlugins().toArray())try{let u=await l.shapeToRecord(n,this.project.getContext());if(u.success)return this.pluginUsageTracker.addPluginToRecordUsage(l,n,u.value.getCount()),{success:!0,value:u.value}}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to transform "${n.getKind()}" shape into record:`,u)}return{success:!1}}async nodeToRecord(n,o){let l=await this.toShape(n,...o);return l.success?this.shapeToRecord(l.value,o):l}async fileToRecord(n,o){for(let l of o.length>0?o:this.project.getPlugins().toArray())try{let u=await l.fileToRecord(n,this.project.getContext());if(u.success)return this.pluginUsageTracker.addPluginToRecordUsage(l,n,u.value.getCount()),{success:!0,value:u.value}}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to transform "${n.path}" into records:`,u)}return{success:!1}}async toRecord(n,...o){return MB.ts.Node.isNode(n)?this.nodeToRecord(n,o):n instanceof MB.Shape?this.shapeToRecord(n,o):this.fileToRecord(n,o)}async toShape(n,...o){let l=this.project.getDiagnosticsService();if(!(0,MB.isSupportedNode)(n))return(0,MB.isFluentNode)(n)&&l.error(n,`Node kind "${(0,MB.getUnsupportedKindName)(n)}" is not allowed in Fluent files.`),{success:!1};for(let u of o.length>0?o:this.project.getPlugins().toArray())try{let p=await u.nodeToShape(n,this.project.getContext()),h=p.success?this.shapeToSubclass(p.value,o):p,v=h.success?await this.toRecord(h.value,...o):h,T=v.success?v:h;if(T.success)return T}catch(p){this.project.getLogger().error(`Plugin "${u.getName()}" failed to transform "${n.getKindName()}" node into shape:`,p)}return{success:!1}}async recordToShape(n,o,...l){for(let u of l.length>0?l:this.project.getPlugins().toArray()){let p=await u.recordToShape({record:n,database:o,context:this.project.getContext()});if(p.success)return p}return{success:!1}}toSubclass(n,...o){return this.shapeToSubclass(n,o)}},Zst=class{static{e(this,"MultiProjectTransform")}rootProject;pluginUsageTracker;fallbackTransform;rootTransform;transformMap={};constructor(n,o){this.rootProject=n,this.pluginUsageTracker=o,this.rootTransform=new $Me(n,this.pluginUsageTracker),this.transformMap[n.getRootDir()]=this.rootTransform}toRecord(n,...o){return this.getTransformForPath(MB.ts.Node.isNode(n)?n.getSourceFile().getFilePath():n instanceof MB.Shape?n.getOriginalFilePath():n.path).toRecord(n,...o)}async toShape(n,...o){return this.getTransformForPath(n.getSourceFile().getFilePath()).toShape(n,...o)}async recordToShape(n,o,...l){return this.getTransformForPath(n.getOriginalFilePath()).recordToShape(n,o,...l)}toSubclass(n,...o){return this.getTransformForPath(n.getOriginalFilePath()).toSubclass(n,...o)}createTransform(n){let{plugins:o,fs:l,logger:u,diagnostics:p,transform:h}=this.rootProject.getContext();return new $Me(new Vsr.Project({rootDir:n,plugins:o,fileSystem:l,logger:u,diagnostics:p,transform:h}),this.pluginUsageTracker)}getFallbackTransform(){return this.fallbackTransform??=this.createTransform(this.rootProject.getRootDir())}getTransformForPath(n){if(this.transformMap[n])return this.transformMap[n];if(this.rootProject.getFileIfExists(n))return this.transformMap[n]=this.rootTransform;let o=this.findProjectRootForPath(n);return o&&this.transformMap[o]?this.transformMap[o]:o?this.transformMap[o]=this.createTransform(o):this.getFallbackTransform()}findProjectRootForPath(n){if(this.isProjectRoot(n))return n;let o=MB.path.dirname(n);if(o!==n)return this.findProjectRootForPath(o)}isProjectRootCache={};isProjectRoot(n){if(typeof this.isProjectRootCache[n]=="boolean")return this.isProjectRootCache[n];let o=MB.path.join(n,"now.config.json");return this.isProjectRootCache[n]=n in this.transformMap||!!this.rootProject.getCompiler().getSourceFile(o)||MB.FileSystem.existsSync(this.rootProject.getFileSystem(),o)}};YMe.MultiProjectTransform=Zst});var p$t=ft(ZMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(ZMe,"__esModule",{value:!0});ZMe.Keys=void 0;var elt=Wu(),tlt=class{static{e(this,"Keys")}keys;constructor(n){this.keys=new elt.KeysRegistry(n.getCompiler(),{rootDir:n.getRootDir(),config:n.getConfig(),package:n.getPackage()},n.getFileSystem())}queryExplicitId(n,o){return this.keys.queryExplicitId(n,o instanceof elt.Shape?(o.ifString()??o.asNumber("Explicit key must be a string or number")).getValue():o)}registerExplicitId(n,o,l){return o instanceof elt.Shape?this.keys.registerExplicitId(n,(o.ifString()??o.asNumber("Explicit key must be a string or number")).getValue(),l):this.keys.registerExplicitId(n,o,l)}deleteExplicitId(n,o,l){return this.keys.deleteExplicitId(n,o,l)}queryCoalesceId(n,o){return this.keys.queryCompositeId(n,o)}registerCoalesceId(n,o,l){return this.keys.registerCompositeId(n,o,l)}deleteCoalesceId(n,o,l){return this.keys.deleteCompositeId(n,o,l)}getEffectiveDeletedKeys(){return this.keys.getEffectiveDeletedKeys()}getSourceFile(){return this.keys.getSourceFile()}getFilePath(){return this.keys.getSourceFile().getFilePath()}getValue(){return this.keys.getValue()}async commit(n){await this.keys.commit(n)}reload(){this.keys.reload()}};ZMe.Keys=tlt});var f$t=ft(eLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(eLe,"__esModule",{value:!0});eLe.Inspector=void 0;var nlt=class{static{e(this,"Inspector")}project;constructor(n){this.project=n}inspect(n,...o){for(let l of o.length>0?o:this.project.getPlugins().toArray())try{l.inspect(n,{...this.project.getContext(),self:l})}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to inspect shape "${n.getKind()}":`,u)}}};eLe.Inspector=nlt});var tA=ft(wae=>{"use strict";Z();ne();ee();te();Object.defineProperty(wae,"__esModule",{value:!0});wae.NowIdPlugin=wae.NowIdShape=void 0;var tLe=Wu(),nLe=class i extends tLe.ElementAccessExpressionShape{static{e(this,"NowIdShape")}constructor({source:n,id:o}){super({source:n,callee:"Now.ID",arg:o})}getValue(){return this.getArg().getValue()}static from(n){let o=n.getId().getNowIdKey()??n.getId().getValue();return new i({source:n,id:o})}getCode(){return`Now.ID[${this.getArg().getCode()}]`}};wae.NowIdShape=nLe;wae.NowIdPlugin=tLe.Plugin.create({name:"NowIdPlugin",shapes:[{shape:tLe.ElementAccessExpressionShape,fileTypes:["fluent"],toSubclass(i,{diagnostics:n}){if(i.getCallee()!=="Now.ID")return{success:!1};let o=i.getArg();return!o.isString()&&!o.isNumber()?(n.error(o,"Now.ID argument must be a string or number"),{success:!1}):{success:!0,value:new nLe({source:i,id:o.getValue().toString()})}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],async toShape(i,{transform:n}){if(i.getName()!=="$id")return{success:!1};let o=i.getExpressionIfKind(tLe.ts.SyntaxKind.Identifier);if(!o)return{success:!1};let l=await n.toShape(o);if(!l.success||!l.value.isIdentifier())return{success:!1};let u=l.value.resolve();return u.isRecord()?{success:!0,value:u.getId()}:{success:!1}}}]})});var _$t=ft(rLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(rLe,"__esModule",{value:!0});rLe.ApplicationMenuPlugin=void 0;var rlt=Wu(),qsr=tA();rLe.ApplicationMenuPlugin=rlt.Plugin.create({name:"ApplicationMenuPlugin",records:{sys_app_application:{relationships:{sys_app_category:{via:"category",inverse:!0},sys_app_application:{via:"sys_overrides",inverse:!0}},toShape(i,{factory:n}){return{success:!0,value:new rlt.CallExpressionShape({source:i,callee:"ApplicationMenu",args:[i.transform(({$:o})=>({$id:o.val(qsr.NowIdShape.from(i)),title:o,category:o,hint:o.def(""),description:o.def(""),name:o.def(""),active:o.toBoolean().def(!0),order:o.map(l=>l.ifString()?.ifNotEmpty()?.toNumber()).def(100),roles:o.map(l=>(l.isString()&&l.asString().getValue()!==""?l.asString().split(","):[]).map(p=>n.createReference({source:l,table:"sys_user_role",keys:{name:p}}))).def([])}))]})}}}},shapes:[{shape:rlt.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{factory:n}){return i.getCallee()!=="ApplicationMenu"?{success:!1}:{success:!0,value:i.getArgument(0).asObject().pipe(o=>n.createRecord({source:i,table:"sys_app_application",explicitId:o.get("$id"),properties:o.transform(({$:l})=>({title:l,hint:l.def(""),description:l.def(""),name:l.def(""),active:l.def(!0),order:l.def(100),device_type:l.val("browser"),roles:l.map(u=>u.ifArray()?.map(p=>(p.ifRecord()?.get("name")??p.asString()).getValue()).join(",")).def(""),category:l}))}))}}}]})});var m$t=ft(iLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(iLe,"__esModule",{value:!0});iLe.BasicSyntaxPlugin=void 0;var Uc=Wu();iLe.BasicSyntaxPlugin=Uc.Plugin.create({name:"BasicSyntaxPlugin",files:[{entryPoint:!0,matcher:RegExp(`${Uc.NOW_FILE_EXTENSION}$`)}],shapes:[{shape:Uc.DeletedShape,commit(i,n){return(0,Uc.removeReferences)(n),(0,Uc.remove)(n),{success:!0}}},{shape:Uc.UndefinedShape,commit(i,n){return(0,Uc.isUndefined)(n)||n.replaceWithText("undefined"),{success:!0}}},{shape:Uc.TemplateExpressionShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isTemplateExpression(n)&&!Uc.ts.Node.isTaggedTemplateExpression(n)&&!Uc.ts.Node.isNoSubstitutionTemplateLiteral(n))return n.replaceWithText(i.getCode()),{success:!0};let l=Uc.ts.Node.isTaggedTemplateExpression(n)?n.removeTag():n,u=Uc.ts.Node.isTemplateExpression(l)?l.getTemplateSpans():[],p=i.getSpans();if(p.length!==u.length)return l.replaceWithText(i.getCode()),{success:!0};for(let[h,v]of u.entries()){let T=p[h];if(!T)throw new Error(`Expected shape to have a span at index ${h}`);await o(T,v)}return{success:!0}}},{shape:Uc.TemplateSpanShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isTemplateSpan(n))return n.replaceWithText(i.getCode()),{success:!0};let l=n.getLiteral();return i.getLiteralText()!==l.getLiteralText()&&(l.isKind(Uc.ts.SyntaxKind.TemplateMiddle)?l.replaceWithText(`}${i.getLiteralText()}\${`):l.isKind(Uc.ts.SyntaxKind.TemplateTail)&&l.replaceWithText(`}${i.getLiteralText()}\``)),await o(i.getExpression(),n.getExpression()),{success:!0}}},{shape:Uc.StringLiteralShape,async commit(i,n,{commit:o}){let l=(()=>{try{if(Uc.ts.Node.isTrueLiteral(n)||Uc.ts.Node.isFalseLiteral(n))return i.toBoolean();if(Uc.ts.Node.isNumericLiteral(n)){let u=i.toNumber();return u.getValue().toString()===i.getValue()?u:void 0}else return}catch{return}})();return l?(await o(l,n),{success:!0}):(Uc.ts.Node.isTaggedTemplateExpression(n)?n.getTemplate().replaceWithText(new Uc.TemplateExpressionShape({source:i,literalText:i}).getCode()):n.replaceWithText(i.getCode()),{success:!0})}},{shape:Uc.NumberShape,commit(i,n){return Uc.ts.Node.isNumericLiteral(n)&&n.getLiteralValue()===i.getValue()?{success:!0}:(n.replaceWithText(i.getValue().toString()),{success:!0})}},{shape:Uc.BooleanShape,commit(i,n){return(Uc.ts.Node.isTrueLiteral(n)||Uc.ts.Node.isFalseLiteral(n))&&n.getLiteralValue()===i.getValue()?{success:!0}:(n.replaceWithText(i.getValue().toString()),{success:!0})}},{shape:Uc.ArrayShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isArrayLiteralExpression(n))return n.replaceWithText(i.getCode()),{success:!0};let l=n.getElements(),u=i.getElements(!1),p=l.length-u.length;for(let v=1;v<=p;v++)n.removeElement(l.length-v);for(let[v,T]of n.getElements().entries())await o(i.getElement(v,!1),T);let h=u.slice(n.getElements().length).map(v=>v.getCode());return h.length>0&&n.addElements(h),{success:!0}}},{shape:Uc.ObjectShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isObjectLiteralExpression(n))return n.replaceWithText(i.getCode()),{success:!0};let l=n.getProperties().filter(v=>v.isKind(Uc.ts.SyntaxKind.PropertyAssignment)).reduce((v,T)=>v.set(Ksr(T),T.getInitializerOrThrow()),new Map),u=new Set(["$meta"]),p=[];for(let[v,T]of i.entries({resolve:!1})){let E=[...i.getAliases(v),v].find(D=>l.has(D));E?(E!==v&&n.getPropertyOrThrow(E).asKindOrThrow(Uc.ts.SyntaxKind.PropertyAssignment).getNameNode().replaceWithText(v),await o(T,l.get(E))):T.equals(i.getDefault(v))||p.push({name:Uc.ObjectShape.quotePropertyNameIfNeeded(v),initializer:T.getCode(),kind:Uc.ts.StructureKind.PropertyAssignment}),u.add(v)}return p.length>0&&n.addPropertyAssignments(p),[...l.keys()].filter(v=>!u.has(v)).forEach(v=>{n.getProperty(v)?.asKindOrThrow(Uc.ts.SyntaxKind.PropertyAssignment).remove()}),{success:!0}}},{shape:Uc.IdentifierShape,commit(i,n){return Uc.ts.Node.isIdentifier(n)&&n.getText()===i.getName()?{success:!0}:(n.replaceWithText(i.getName()),{success:!0})}},{shape:Uc.VariableStatementShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isVariableStatement(n))return n.replaceWithText(i.getCode()),{success:!0};n.isExported()!==i.isExported()&&n.setIsExported(i.isExported());let[l,u]=n.getDeclarations();if(!l)throw new Error(`Variable statement is missing a declaration: ${n.getFullText()}`);u&&((0,Uc.removeReferences)(u),(0,Uc.remove)(u));let p=i.getVariableName();return l.getName()!==p.getName()&&await o(p,l.getNameNode()),await o(i.getInitializer(),l.getInitializerOrThrow()),{success:!0}}}],nodes:[{node:"SourceFile",async toShape(i,{diagnostics:n,transform:o}){if((0,Uc.isFluentFile)(i)){let l=i.getChildSyntaxList();if(!l)return n.error(i,"Fluent source file contains no meaningful content."),{success:!1};for(let u of l.getChildren()){if(Uc.ts.Node.isCommentNode(u))continue;if(!(await o.toShape(u)).success)return n.error(u,"Unsupported statement in Fluent source file."),{success:!1}}}return{success:!0,value:new Uc.SourceFileShape({file:i})}}},{node:"StringLiteral",toShape(i){return{success:!0,value:new Uc.StringLiteralShape({source:i,literalText:i.getLiteralValue()})}}},{node:"NoSubstitutionTemplateLiteral",toShape(i){return{success:!0,value:new Uc.TemplateExpressionShape({source:i,literalText:i.getLiteralValue()})}}},{node:"NumericLiteral",toShape(i){return{success:!0,value:new Uc.NumberShape({source:i,value:i.getLiteralValue()})}}},{node:"NullKeyword",toShape(i){return{success:!0,value:new Uc.UndefinedShape({source:i})}}},{node:"TrueKeyword",toShape(i){return{success:!0,value:new Uc.BooleanShape({source:i,value:!0})}}},{node:"FalseKeyword",toShape(i){return{success:!0,value:new Uc.BooleanShape({source:i,value:!1})}}},{node:"AsExpression",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"ExportAssignment",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"ComputedPropertyName",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"PropertyAccessExpression",async toShape(i,{transform:n,diagnostics:o}){let l=i.getNameNode(),u=await n.toShape(l);if(!u.success||!u.value.isIdentifier())return o.error(l,"Last element of property access expression is unsupported"),{success:!1};let p=i.getExpression(),h=await n.toShape(p);if(!h.success||!h.value.is([Uc.IdentifierShape,Uc.PropertyAccessShape]))return o.error(p,"Left side of property access expression is unsupported"),{success:!1};let v=h.value.isIdentifier()?[h.value,u.value]:[...h.value.getElements(),u.value];return{success:!0,value:new Uc.PropertyAccessShape({source:i,elements:v})}}},{node:"ExpressionStatement",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"Identifier",async toShape(i,{transform:n}){if((0,Uc.isUndefined)(i))return{success:!0,value:new Uc.UndefinedShape({source:i})};let o=i.getSymbol()?.getName()??i.getText(),l=(0,Uc.getValueDeclaration)(i),u=l&&await n.toShape(l);return{success:!0,value:u?.success?new Uc.IdentifierShape({source:i,name:o,value:u.value}):new Uc.IdentifierShape({source:i,name:o})}}},{node:"Parameter",toShape(i){return{success:!0,value:new Uc.IdentifierShape({source:i,name:i.getName()})}}},{node:"VariableStatement",async toShape(i,{transform:n,diagnostics:o}){let l=i.getDeclarationKind();if(l!==Uc.ts.VariableDeclarationKind.Const)return o.error(i.getDeclarationKindKeywords()[0]??i,`Declaration kind "${l}" is not supported. Only const variables are supported.`),{success:!1};let u=i.getDefaultKeyword();if(u)return o.error(u,"Default exports are not supported"),{success:!1};let[p,h]=i.getDeclarations();if(!p)return o.error(i,"Missing declaration in variable statement"),{success:!1};if(h)return o.error(h,"Additional declarations in variable statements are not supported"),{success:!1};let v=p.getInitializerOrThrow(),T=await n.toShape(v);return T.success?{success:!0,value:new Uc.VariableStatementShape({source:i,variableName:new Uc.IdentifierShape({source:i,name:p.getName()}),initializer:T.value,isExported:i.isExported()})}:(o.error(v,"Unsupported variable initializer"),{success:!1})}},{node:"VariableDeclaration",toShape(i,{transform:n}){let o=i.getInitializer();return o?n.toShape(o):{success:!0,value:new Uc.UndefinedShape({source:i})}}},{node:"ArrayLiteralExpression",async toShape(i,{transform:n}){let o=[];for(let l of i.getElements()){let u=await n.toShape(l);if(!u.success)return{success:!1};o.push(u.value)}return{success:!0,value:new Uc.ArrayShape({source:i,elements:o})}}},{node:"PropertyAssignment",toShape(i,{transform:n,diagnostics:o}){let l=i.getInitializer();return l?n.toShape(l):(o.error(i,"Property must have an initializer"),{success:!1})}},{node:"ObjectLiteralExpression",async toShape(i,{transform:n,diagnostics:o}){let l={};for(let u of i.getProperties()){if(!Uc.ts.Node.isPropertyAssignment(u)){o.error(u,"Only property assignments are allowed");continue}let p=await n.toShape(u);if(!p.success)return o.error(u,"Failed to parse property"),{success:!1};let h=u.getNameNode(),v=Uc.ts.Node.isStringLiteral(h)?h.getLiteralValue():u.getName();l[v]=p.value}return{success:!0,value:new Uc.ObjectShape({source:i,properties:l})}}},{node:"TemplateSpan",async toShape(i,{transform:n,diagnostics:o}){let l=await n.toShape(i.getExpression());return l.success?{success:!0,value:new Uc.TemplateSpanShape({source:i,expression:l.value,literalText:i.getLiteral().getLiteralText()})}:(o.error(i,"Unsupported expression in template"),{success:!1})}},{node:"TemplateExpression",async toShape(i,{transform:n,diagnostics:o}){let l=[];for(let u of i.getTemplateSpans()){let p=await n.toShape(u);if(!p.success||!p.value.is(Uc.TemplateSpanShape))return o.error(u,"Unsupported span in template expression"),{success:!1};l.push(p.value)}return{success:!0,value:new Uc.TemplateExpressionShape({source:i,literalText:i.getHead().getLiteralText(),spans:l})}}},{node:"TaggedTemplateExpression",async toShape(i,{transform:n,diagnostics:o}){let l=i.getTemplate(),u=await n.toShape(l);return!u.success||!u.value.is(Uc.TemplateExpressionShape)?(o.error(l,"Unsupported template in tagged template expression"),{success:!1}):{success:!0,value:new Uc.TaggedTemplateExpressionShape({source:i,tag:i.getTag().getText(),template:u.value})}}},{node:"PrefixUnaryExpression",toShape(i,{diagnostics:n}){return!Uc.ts.Node.isNumericLiteral(i.getOperand())||i.getOperatorToken()!==Uc.ts.SyntaxKind.MinusToken?(n.error(i,"Unsupported prefix unary expression"),{success:!1}):{success:!0,value:new Uc.NumberShape({source:i,value:-i.getOperand().asKindOrThrow(Uc.ts.SyntaxKind.NumericLiteral).getLiteralValue()})}}},{node:"ElementAccessExpression",async toShape(i,{transform:n,diagnostics:o}){let l=i.getArgumentExpression();if(!l)return o.error(i,"Element access expression must have an argument"),{success:!1};let u=await n.toShape(l);return u.success?{success:!0,value:new Uc.ElementAccessExpressionShape({source:i,callee:i.getExpression().getText(),arg:u.value})}:(o.error(i,"Unsupported element access expression argument"),{success:!1})}},{node:"ImportDeclaration",toShape(i){return{success:!0,value:Uc.Shape.noOp(i)}}},{node:"ExportDeclaration",toShape(i){return{success:!0,value:Uc.Shape.noOp(i)}}}]});function Ksr(i){let n=i.getNameNode();return Uc.ts.Node.isStringLiteral(n)||Uc.ts.Node.isNoSubstitutionTemplateLiteral(n)?n.getLiteralValue():n.getText()}e(Ksr,"getName")});var h$t=ft(ilt=>{"use strict";Z();ne();ee();te();Object.defineProperty(ilt,"__esModule",{value:!0});ilt.Table=Hsr;function Hsr(i){return i}e(Hsr,"Table")});var g$t=ft(olt=>{"use strict";Z();ne();ee();te();Object.defineProperty(olt,"__esModule",{value:!0});olt.Record=Jsr;function Jsr(i){return i}e(Jsr,"Record")});var y$t=ft(Bhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Bhe,"__esModule",{value:!0});Bhe.type=void 0;Bhe.Column=Xsr;Bhe.type="__type__";function Xsr(i){return i}e(Xsr,"Column")});var v$t=ft(Whe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Whe,"__esModule",{value:!0});Whe.choiceDropdown=void 0;Whe.ChoiceColumn=$sr;Whe.choiceDropdown=["none","dropdown_with_none","suggestion","dropdown_without_none"];function $sr(i){return i}e($sr,"ChoiceColumn")});var b$t=ft(alt=>{"use strict";Z();ne();ee();te();Object.defineProperty(alt,"__esModule",{value:!0});alt.StringColumn=Ysr;function Ysr(i){return i}e(Ysr,"StringColumn")});var S$t=ft(slt=>{"use strict";Z();ne();ee();te();Object.defineProperty(slt,"__esModule",{value:!0});slt.IntegerColumn=Qsr;function Qsr(i){return i}e(Qsr,"IntegerColumn")});var E$t=ft(llt=>{"use strict";Z();ne();ee();te();Object.defineProperty(llt,"__esModule",{value:!0});llt.BooleanColumn=Zsr;function Zsr(i){return i}e(Zsr,"BooleanColumn")});var x$t=ft(LB=>{"use strict";Z();ne();ee();te();Object.defineProperty(LB,"__esModule",{value:!0});LB.DateColumn=elr;LB.DateTimeColumn=tlr;LB.CalendarDateTimeColumn=nlr;LB.ScheduleDateTimeColumn=rlr;LB.IntegerDateColumn=ilr;LB.DueDateColumn=olr;LB.BasicDateTimeColumn=alr;LB.OtherDateColumn=slr;function elr(i){return i}e(elr,"DateColumn");function tlr(i){return i}e(tlr,"DateTimeColumn");function nlr(i){return i}e(nlr,"CalendarDateTimeColumn");function rlr(i){return i}e(rlr,"ScheduleDateTimeColumn");function ilr(i){return i}e(ilr,"IntegerDateColumn");function olr(i){return i}e(olr,"DueDateColumn");function alr(i){return i}e(alr,"BasicDateTimeColumn");function slr(i){return i}e(slr,"OtherDateColumn")});var T$t=ft(clt=>{"use strict";Z();ne();ee();te();Object.defineProperty(clt,"__esModule",{value:!0});clt.ScriptColumn=llr;function llr(i){return{...i,columnType:"script"}}e(llr,"ScriptColumn")});var D$t=ft(ult=>{"use strict";Z();ne();ee();te();Object.defineProperty(ult,"__esModule",{value:!0});ult.TableNameColumn=clr;function clr(i){return i}e(clr,"TableNameColumn")});var A$t=ft(dlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(dlt,"__esModule",{value:!0});dlt.DocumentIdColumn=ulr;function ulr(i){return i}e(ulr,"DocumentIdColumn")});var C$t=ft(plt=>{"use strict";Z();ne();ee();te();Object.defineProperty(plt,"__esModule",{value:!0});plt.ReferenceColumn=dlr;function dlr(i){return i}e(dlr,"ReferenceColumn")});var w$t=ft(flt=>{"use strict";Z();ne();ee();te();Object.defineProperty(flt,"__esModule",{value:!0});flt.ListColumn=plr;function plr(i){return i}e(plr,"ListColumn")});var I$t=ft(_lt=>{"use strict";Z();ne();ee();te();Object.defineProperty(_lt,"__esModule",{value:!0});_lt.DecimalColumn=flr;function flr(i){return i}e(flr,"DecimalColumn")});var P$t=ft(mlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(mlt,"__esModule",{value:!0});mlt.DomainIdColumn=_lr;function _lr(i){return i}e(_lr,"DomainIdColumn")});var N$t=ft(hlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(hlt,"__esModule",{value:!0});hlt.DomainPathColumn=mlr;function mlr(i){return i}e(mlr,"DomainPathColumn")});var R$t=ft(glt=>{"use strict";Z();ne();ee();te();Object.defineProperty(glt,"__esModule",{value:!0});glt.TranslatedFieldColumn=hlr;function hlr(i){return i}e(hlr,"TranslatedFieldColumn")});var k$t=ft(ylt=>{"use strict";Z();ne();ee();te();Object.defineProperty(ylt,"__esModule",{value:!0});ylt.UserRolesColumn=glr;function glr(i){return i}e(glr,"UserRolesColumn")});var M$t=ft(vlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(vlt,"__esModule",{value:!0});vlt.BasicImageColumn=ylr;function ylr(i){return i}e(ylr,"BasicImageColumn")});var L$t=ft(blt=>{"use strict";Z();ne();ee();te();Object.defineProperty(blt,"__esModule",{value:!0});blt.ConditionsColumn=vlr;function vlr(i){return i}e(vlr,"ConditionsColumn")});var O$t=ft(Slt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Slt,"__esModule",{value:!0});Slt.TranslatedTextColumn=blr;function blr(i){return i}e(blr,"TranslatedTextColumn")});var F$t=ft(Elt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Elt,"__esModule",{value:!0});Elt.VersionColumn=Slr;function Slr(i){return i}e(Slr,"VersionColumn")});var B$t=ft(xlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(xlt,"__esModule",{value:!0});xlt.SystemClassNameColumn=Elr;function Elr(i){return i}e(Elr,"SystemClassNameColumn")});var W$t=ft(Tlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Tlt,"__esModule",{value:!0});Tlt.FieldNameColumn=xlr;function xlr(i){return i}e(xlr,"FieldNameColumn")});var j$t=ft(Dlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Dlt,"__esModule",{value:!0});Dlt.RadioColumn=Tlr;function Tlr(i){return i}e(Tlr,"RadioColumn")});var z$t=ft(Alt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Alt,"__esModule",{value:!0});Alt.GenericColumn=Dlr;function Dlr(i){return i}e(Dlr,"GenericColumn")});var jhe=ft(iy=>{"use strict";Z();ne();ee();te();var Alr=iy&&iy.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),v0=iy&&iy.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Alr(n,i,o)};Object.defineProperty(iy,"__esModule",{value:!0});v0(h$t(),iy);v0(g$t(),iy);v0(y$t(),iy);v0(v$t(),iy);v0(b$t(),iy);v0(S$t(),iy);v0(E$t(),iy);v0(x$t(),iy);v0(T$t(),iy);v0(D$t(),iy);v0(A$t(),iy);v0(C$t(),iy);v0(w$t(),iy);v0(I$t(),iy);v0(P$t(),iy);v0(N$t(),iy);v0(R$t(),iy);v0(k$t(),iy);v0(M$t(),iy);v0(L$t(),iy);v0(O$t(),iy);v0(F$t(),iy);v0(B$t(),iy);v0(W$t(),iy);v0(j$t(),iy);v0(z$t(),iy)});var G2=ft(OB=>{"use strict";Z();ne();ee();te();Object.defineProperty(OB,"__esModule",{value:!0});OB.INVALID_XML_CHARACTERS=void 0;OB.toReference=Clr;OB.reverseObject=wlr;OB.noThrow=Ilr;OB.applyPathMappings=Plr;OB.getCallExpressionName=Nlr;OB.generateDeprecatedDiagnostics=Rlr;var G$t=Wu();function Clr(i){return i.ifRecord()?.getId()??i.ifString()?.getValue()??""}e(Clr,"toReference");function wlr(i){let n={};for(let o in i){let l=i[o];typeof l=="string"&&(n[l]=o)}return n}e(wlr,"reverseObject");function Ilr(i){try{return i()}catch(n){return n}}e(Ilr,"noThrow");OB.INVALID_XML_CHARACTERS=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g;function Plr(i,n){if(!n)return i;for(let[o,l]of Object.entries(n)){let u=i.match(`${o.replace(/\./,"\\.").replace(/\*+/,"(.*)")}$`)?.[1];if(u!==void 0)return l.replace(/\*+/,u)}return i}e(Plr,"applyPathMappings");function Nlr(i){let n=i.getExpression();if(G$t.ts.Node.isIdentifier(n)||G$t.ts.Node.isPropertyAccessExpression(n))return n.getText();throw`CallExpression does not have a name: ${n.getText()}`}e(Nlr,"getCallExpressionName");function Rlr(i,n){Object.keys(i.getAliasedKeys()).forEach(o=>{let l=i.findAliasUsed(o);l&&n.hint(i.get(o),`The property '${l}' is deprecated, use '${o}' instead.`)})}e(Rlr,"generateDeprecatedDiagnostics")});var aLe=ft(oLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(oLe,"__esModule",{value:!0});oLe.CallExpressionPlugin=void 0;var VL=Wu(),klr=jhe(),Mlr=G2();oLe.CallExpressionPlugin=VL.Plugin.create({name:"CallExpressionPlugin",nodes:[{node:"CallExpression",fileTypes:["fluent"],entryPoint:!0,async toShape(i,{transform:n}){let o=[];for(let l of i.getArguments()){let u=await n.toShape(l);if(!u.success)return{success:!1};o.push(u.value)}return{success:!0,value:new VL.CallExpressionShape({source:i,callee:(0,Mlr.getCallExpressionName)(i),args:o})}}}],shapes:[{shape:VL.CallExpressionShape,async commit(i,n,{commit:o,compiler:l}){if(n.isKind(VL.ts.SyntaxKind.ExpressionStatement)&&(n=n.getExpression()),!VL.ts.Node.isCallExpression(n))return n.replaceWithText(i.getCode()),{success:!0};let u=n.getExpression();u.getText()!==i.getCallee()&&u.replaceWithText(i.getCallee());let p=n.getArguments(),h=i.getArguments(!1),v=p.length-h.length;for(let E=1;E<=v;E++)n.removeArgument(p.length-E);for(let[E,D]of n.getArguments().entries())await o(i.getArgument(E,!1),D);let T=h.slice(n.getArguments().length).map(E=>E.getCode());return T.length>0&&n.addArguments(T),i.getCallee()===klr.Record.name&&Llr(l,n),{success:!0}}}]});function Llr(i,n){if(n.wasForgotten())return;n.getSourceFile().fixMissingImports();let o=i.getTypeChecker().getResolvedSignature(n);o&&o.getParameters().forEach((l,u)=>{let p=l.getTypeAtLocation(n),h=n.getArguments()[u]?.asKind(VL.ts.SyntaxKind.ObjectLiteralExpression);!p||!h||U$t(n,h,p)})}e(Llr,"fixCallExpressionArgTypes");function U$t(i,n,o){if(n.getType().isObject()){let l=n.isKind(VL.ts.SyntaxKind.ObjectLiteralExpression)?n:n.getInitializerIfKind(VL.ts.SyntaxKind.ObjectLiteralExpression);o.getApparentProperties().forEach(u=>{let p=l?.getProperty(u.getName())?.asKind(VL.ts.SyntaxKind.PropertyAssignment);p&&U$t(i,p,u.getTypeAtLocation(i))})}else if(n.isKind(VL.ts.SyntaxKind.PropertyAssignment)){if(n.getType().isAssignableTo(o)||Blr(n,o)||Olr(n,o)||Flr(n,o))return;let u=n.getInitializer()?.getText();n.setInitializer(`${u} as any`)}}e(U$t,"fixCallExpressionArgType");function Olr(i,n){let o=jlr(n),l=Wlr(i);return l&&o.length>0&&o.some(p=>p.isBoolean()&&(l==="true"||l==="false")||p.getText()===l)?(i.setInitializer(`${l}`),!0):!1}e(Olr,"canCastAndAssignBoolean");function Flr(i,n){let o=Glr(n),l=zlr(i);return l&&o.length>0&&o.some(p=>p.isNumber()||`${p.getLiteralValue()}`===l)?(i.setInitializer(`${l}`),!0):!1}e(Flr,"canCastAndAssignNumber");function Blr(i,n){let o=Vlr(n),l=Ulr(i);return o.some(u=>u.isString()||u.getLiteralValue()===l)}e(Blr,"canAssignString");function Wlr(i){return i.getInitializerIfKind(VL.ts.SyntaxKind.StringLiteral)?.getLiteralValue()}e(Wlr,"getBooleanValue");function jlr(i){return(i.isUnion()?i.getUnionTypes():[i]).filter(o=>o.isBoolean()||o.isBooleanLiteral())}e(jlr,"getBooleanTypes");function zlr(i){let n=i.getInitializerIfKind(VL.ts.SyntaxKind.StringLiteral)?.getLiteralValue();return n&&!isNaN(Number(n))?`${n}`:void 0}e(zlr,"getNumberValue");function Glr(i){return(i.isUnion()?i.getUnionTypes():[i]).filter(o=>o.isNumber()||o.isNumberLiteral())}e(Glr,"getNumberTypes");function Ulr(i){return i.getInitializerIfKind(VL.ts.SyntaxKind.StringLiteral)?.getLiteralValue()}e(Ulr,"getStringValue");function Vlr(i){return(i.isUnion()?i.getUnionTypes():[i]).filter(o=>o.isString()||o.isStringLiteral())}e(Vlr,"getStringTypes")});var q$t=ft(sLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(sLe,"__esModule",{value:!0});sLe.ClientScriptPlugin=void 0;var Iae=Wu(),qlr=tA(),Klr=G2(),zhe;(function(i){i[i.desktop=0]="desktop",i[i.mobile_or_service_portal=1]="mobile_or_service_portal",i[i.all=10]="all"})(zhe||(zhe={}));var V$t={appliesExtended:["applies_extended"],isolateScript:["isolate_script"],uiType:["ui_type"]};sLe.ClientScriptPlugin=Iae.Plugin.create({name:"ClientScriptPlugin",records:{sys_script_client:{toShape(i){return{success:!0,value:new Iae.CallExpressionShape({source:i,callee:"ClientScript",args:[i.transform(({$:n,merge:o})=>({$id:n.val(qlr.NowIdShape.from(i)),type:n.def(""),table:n,appliesExtended:n.from("applies_extended").toBoolean().def(!1),isolateScript:n.from("isolate_script").toBoolean().def(!1),script:n,name:n,description:n.def(""),messages:n.def(""),global:n.toBoolean().def(!0),active:n.toBoolean().def(!0),view:n.def(""),uiType:n.from("ui_type").map(l=>Jlr(l.toNumber().getValue())).def("desktop"),[o]:n.from("field","type").map((l,u)=>u.isString()&&["onChange","onCellEdit"].includes(u.getValue())&&!l.ifString()?.isEmpty()?{field:l}:{})})).withAliasedKeys(V$t)]})}}}},shapes:[{shape:Iae.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{diagnostics:n,factory:o,compiler:l}){if(i.getCallee()!=="ClientScript")return{success:!1};let u=i.getArgument(0).asObject().withAliasedKeys(V$t);(0,Klr.generateDeprecatedDiagnostics)(u,n);let p=u.get("script").ifDefined()?.toString().getValue(),h=u.get("type").ifString()?.getValue();return u.get("field").ifString()?.getValue()&&!h&&n.error(u.get("field"),"Field values are allowed only when type is set to onChange or onCellEdit"),p&&!Hlr(p,l)&&n.error(u.get("script"),"Client side scripts cannot import or require modules."),{success:!0,value:o.createRecord({source:i,table:"sys_script_client",explicitId:u.get("$id"),properties:u.transform(({$:T})=>({table:T,global:T.def(!0),view:T,field:T,script:T.toCdata(),type:T,name:T,active:T.def(!0),applies_extended:T.from("appliesExtended").def(!1),description:T,messages:T,isolate_script:T.from("isolateScript").def(!1),ui_type:T.from("uiType").map(E=>E.isString()?Xlr(E.getValue()):void 0).def(0)}))})}}}]});function Hlr(i,n){let o=n.createSourceFile("tmp-file.ts",i),l=o.getDescendantsOfKind(Iae.ts.SyntaxKind.ImportDeclaration),u=o.getDescendantsOfKind(Iae.ts.SyntaxKind.CallExpression).filter(h=>$lr(h)),p=!(l.length>0||u.length>0);return n.removeSourceFile(o),p}e(Hlr,"validateClientSideScripts");function Jlr(i){let n=zhe[i];if(!n)throw Error("Invalid UI Type encountered, check XML data before transforming again.");return n}e(Jlr,"getUITypeFromId");function Xlr(i){if(i in zhe)return zhe[i];throw Error("Invalid ui_type found in xml")}e(Xlr,"getUITypeId");function $lr(i){let n=i.getExpression();return Iae.ts.Node.isIdentifier(n)&&n.getText()==="require"}e($lr,"isRequire")});var H$t=ft(lLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(lLe,"__esModule",{value:!0});lLe.CrossScopePrivilegePlugin=void 0;var Clt=Wu(),Ylr=tA(),Qlr=G2(),K$t={targetName:["target_name"],targetScope:["target_scope"],targetType:["target_type"]};lLe.CrossScopePrivilegePlugin=Clt.Plugin.create({name:"CrossScopePrivilegePlugin",records:{sys_scope_privilege:{toShape(i){return{success:!0,value:new Clt.CallExpressionShape({source:i,callee:"CrossScopePrivilege",args:[i.transform(({$:n})=>({$id:n.val(Ylr.NowIdShape.from(i)),operation:n,status:n,targetName:n.from("target_name"),targetScope:n.from("target_scope"),targetType:n.from("target_type")})).withAliasedKeys(K$t)]})}}}},shapes:[{shape:Clt.CallExpressionShape,fileTypes:["fluent"],toRecord(i,{factory:n,config:o,diagnostics:l}){if(i.getCallee()!=="CrossScopePrivilege")return{success:!1};let u=i.getArgument(0).asObject().withAliasedKeys(K$t);return(0,Qlr.generateDeprecatedDiagnostics)(u,l),{success:!0,value:n.createRecord({source:i,table:"sys_scope_privilege",explicitId:u.get("$id"),properties:u.transform(({$:p})=>({operation:p,status:p,target_name:p.from("targetName"),target_scope:p.from("targetScope"),target_type:p.from("targetType"),source_scope:p.val(o.scopeId)}))})}}}]})});var J$t=ft(wlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(wlt,"__esModule",{value:!0});wlt.ApplicationMenu=Zlr;function Zlr(i){return i}e(Zlr,"ApplicationMenu")});var X$t=ft(Ilt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ilt,"__esModule",{value:!0});Ilt.Property=ecr;function ecr(i){return i}e(ecr,"Property")});var $$t=ft(Plt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Plt,"__esModule",{value:!0});Plt.UserPreference=tcr;function tcr(i){return i}e(tcr,"UserPreference")});var Y$t=ft(Nlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Nlt,"__esModule",{value:!0});Nlt.CrossScopePrivilege=ncr;function ncr(i){return i}e(ncr,"CrossScopePrivilege")});var Q$t=ft(Rlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Rlt,"__esModule",{value:!0});Rlt.BusinessRule=rcr;function rcr(i){return i}e(rcr,"BusinessRule")});var Z$t=ft(M3=>{"use strict";Z();ne();ee();te();Object.defineProperty(M3,"__esModule",{value:!0});M3.AclAttributes=M3.AclOperations=M3.AclTypes=M3.AclNamedTypes=void 0;M3.Acl=ocr;var icr={ux_data_broker:"6d9c40e9531210101cb3ddeeff7b12f6",ux_page:"b9eb8a1b873303002941b53046cb0b18",ux_route:"b9eb8a1b873303002941b53046cb1234",pd_action:"pd_action",record:"record"};M3.AclNamedTypes={client_callable_flow_object:"client_callable_flow_object",client_callable_script_include:"client_callable_script_include",graphql:"GraphQL",processor:"processor",rest_endpoint:"REST_Endpoint",ui_page:"ui_page"};M3.AclTypes={...icr,...M3.AclNamedTypes};M3.AclOperations={execute:"execute",create:"create",read:"read",write:"write",delete:"delete",conditional_table_query_range:"7aad4c50b7f4621062b62181ce11a918",data_fabric:"e60cd19b4f602210f2c160cc32ce0b06",query_match:"521c7497b7300210240b06dd1e11a979",query_range:"e66cf897b7300210240b06dd1e11a9fd",edit_task_relations:"b718b0e2c0a80204005b2705d3b6a0a0",edit_ci_relations:"b7199572c0a8020400ee6d907c07d6cc",save_as_template:"e5a2b9c50a0a0bc5005dd4a3096ac37b",add_to_list:"394af8150a0a0b270096f5ac9d6bac47",report_on:"f6861c32c0a8016400647951e901525d",list_edit:"54f535270a0a0b8c007c67009ab2bdc0",report_view:"0997ab83733303005978e4b9cdf6a7b9",personalize_choices:"76742c60c0a801657735f3789a7327d0"};M3.AclAttributes={user_is_authenticated:"239bdf0c47d23110ba46ff58936d4330",has_admin_role:"8637f144b732111074f706dd1e11a981"};function ocr(i){return i}e(ocr,"Acl")});var eYt=ft(klt=>{"use strict";Z();ne();ee();te();Object.defineProperty(klt,"__esModule",{value:!0});klt.Role=acr;function acr(i){return i}e(acr,"Role")});var nYt=ft(tYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(tYt,"__esModule",{value:!0})});var iYt=ft(rYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(rYt,"__esModule",{value:!0})});var aYt=ft(oYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(oYt,"__esModule",{value:!0})});var lYt=ft(sYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(sYt,"__esModule",{value:!0})});var uYt=ft(cYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(cYt,"__esModule",{value:!0})});var pYt=ft(dYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(dYt,"__esModule",{value:!0})});var fYt=ft(L3=>{"use strict";Z();ne();ee();te();var scr=L3&&L3.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Pae=L3&&L3.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&scr(n,i,o)};Object.defineProperty(L3,"__esModule",{value:!0});Pae(nYt(),L3);Pae(iYt(),L3);Pae(aYt(),L3);Pae(lYt(),L3);Pae(uYt(),L3);Pae(pYt(),L3)});var _Yt=ft(Mlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Mlt,"__esModule",{value:!0});Mlt.Test=lcr;fYt();function lcr(i,n){return{inputObject:i,configurationFunction:n}}e(lcr,"Test")});var cLe=ft(JR=>{"use strict";Z();ne();ee();te();var ccr=JR&&JR.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),RH=JR&&JR.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&ccr(n,i,o)};Object.defineProperty(JR,"__esModule",{value:!0});RH(J$t(),JR);RH(X$t(),JR);RH($$t(),JR);RH(Y$t(),JR);RH(Q$t(),JR);RH(Z$t(),JR);RH(eYt(),JR);RH(_Yt(),JR)});var mYt=ft(Llt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Llt,"__esModule",{value:!0});Llt.SPAngularProvider=ucr;function ucr(i){return i}e(ucr,"SPAngularProvider")});var hYt=ft(Ghe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ghe,"__esModule",{value:!0});Ghe.SPWidgetDependency=dcr;Ghe.JsInclude=pcr;Ghe.CssInclude=fcr;function dcr(i){return i}e(dcr,"SPWidgetDependency");function pcr(i){return i}e(pcr,"JsInclude");function fcr(i){return i}e(fcr,"CssInclude")});var gYt=ft(Uhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Uhe,"__esModule",{value:!0});Uhe.WidgetCategories=void 0;Uhe.SPWidget=_cr;Uhe.WidgetCategories={standard:"standard",otherApplications:"other",custom:"custom",sample:"sample",knowledgeBase:"kb",servicePortal:"sp_platform",serviceCatalog:"sc"};function _cr(i){return i}e(_cr,"SPWidget")});var Flt=ft(VG=>{"use strict";Z();ne();ee();te();var mcr=VG&&VG.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Olt=VG&&VG.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&mcr(n,i,o)};Object.defineProperty(VG,"__esModule",{value:!0});Olt(mYt(),VG);Olt(hYt(),VG);Olt(gYt(),VG)});var yYt=ft(Blt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Blt,"__esModule",{value:!0});Blt.ClientScript=hcr;function hcr(i){return i}e(hcr,"ClientScript")});var vYt=ft(uZ=>{"use strict";Z();ne();ee();te();var gcr=uZ&&uZ.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),ycr=uZ&&uZ.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&gcr(n,i,o)};Object.defineProperty(uZ,"__esModule",{value:!0});ycr(yYt(),uZ)});var bYt=ft(Wlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Wlt,"__esModule",{value:!0});Wlt.SysAttachment=vcr;function vcr(i){return i}e(vcr,"SysAttachment")});var SYt=ft(jlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(jlt,"__esModule",{value:!0});jlt.ScriptInclude=bcr;function bcr(i){return i}e(bcr,"ScriptInclude")});var EYt=ft(zlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(zlt,"__esModule",{value:!0});zlt.ScriptAction=Scr;function Scr(i){return i}e(Scr,"ScriptAction")});var xYt=ft(qG=>{"use strict";Z();ne();ee();te();var Ecr=qG&&qG.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Glt=qG&&qG.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Ecr(n,i,o)};Object.defineProperty(qG,"__esModule",{value:!0});Glt(bYt(),qG);Glt(SYt(),qG);Glt(EYt(),qG)});var TYt=ft(Ult=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ult,"__esModule",{value:!0});Ult.List=xcr;function xcr(i){return i}e(xcr,"List")});var DYt=ft(Vlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Vlt,"__esModule",{value:!0});Vlt.UiPage=Tcr;function Tcr(i){return i}e(Tcr,"UiPage")});var AYt=ft(qlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(qlt,"__esModule",{value:!0});qlt.UiAction=Dcr;function Dcr(i){return i}e(Dcr,"UiAction")});var Klt=ft(kH=>{"use strict";Z();ne();ee();te();Object.defineProperty(kH,"__esModule",{value:!0});kH.UiAction=kH.UiPage=kH.List=void 0;var Acr=TYt();Object.defineProperty(kH,"List",{enumerable:!0,get:e(function(){return Acr.List},"get")});var Ccr=DYt();Object.defineProperty(kH,"UiPage",{enumerable:!0,get:e(function(){return Ccr.UiPage},"get")});var wcr=AYt();Object.defineProperty(kH,"UiAction",{enumerable:!0,get:e(function(){return wcr.UiAction},"get")})});var CYt=ft(Hlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Hlt,"__esModule",{value:!0});Hlt.RestApi=Icr;function Icr(i){return i}e(Icr,"RestApi")});var wYt=ft(dZ=>{"use strict";Z();ne();ee();te();var Pcr=dZ&&dZ.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Ncr=dZ&&dZ.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Pcr(n,i,o)};Object.defineProperty(dZ,"__esModule",{value:!0});Ncr(CYt(),dZ)});var RYt=ft(fZ=>{"use strict";Z();ne();ee();te();Object.defineProperty(fZ,"__esModule",{value:!0});fZ.TableOwnership=fZ.RecordPlugin=void 0;var Jlt=Wu(),Rcr=Wu(),kcr=tA(),FB=cLe(),q4=Flt(),Mcr=vYt(),IYt=xYt(),PYt=Klt(),NYt=jhe(),pZ=wYt(),uLe=Klt();fZ.RecordPlugin=Jlt.Plugin.create({name:"RecordPlugin",records:{"*":{toShape(i){return{success:!0,value:new Jlt.CallExpressionShape({source:i,callee:"Record",args:[{$id:kcr.NowIdShape.from(i),table:i.getTable(),data:i.transform(({$:n})=>Object.fromEntries(i.keys().map(o=>[o,i.get(o).isString()?n.def(""):n])))}]})}},toFile(i,{config:n}){let o=(0,Rcr.unloadBuilder)(n),l=i.getTable(),u=i.getId().getValue(),p=o.record(i);return i.entries().sort(([h],[v])=>h.localeCompare(v)).forEach(([h,v])=>p.field(h,v)),{success:!0,value:{name:`${l}_${u}.xml`,category:i.getInstallCategory(),content:o.end()}}}}},shapes:[{shape:Jlt.CallExpressionShape,fileTypes:["fluent"],toRecord(i,{factory:n,diagnostics:o}){if(i.getCallee()!=="Record")return{success:!1};let l=i.getArgument(0).asObject(),u=l.get("table").asString().getValue(),p=fZ.TableOwnership[u];return p&&o.hint(i,`For a better experience, consider using the ${p} API`),{success:!0,value:n.createRecord({source:i,table:u,explicitId:l.get("$id"),properties:l.get("data").asObject()})}}}],files:[{matcher:/\.xml$/,toRecord(i,{parser:n,logger:o}){try{let[l,...u]=n.parsePayload(i);return l?{success:!0,value:l.with(...u)}:{success:!1}}catch(l){return o.debug(l),{success:!1}}}}]});fZ.TableOwnership={sys_security_acl:FB.Acl.name,sys_security_acl_role:FB.Acl.name,sys_app_application:FB.ApplicationMenu.name,sys_script:FB.BusinessRule.name,sys_script_client:Mcr.ClientScript.name,sys_scope_privilege:FB.CrossScopePrivilege.name,sys_ui_list_element:PYt.List.name,sys_ui_list:PYt.List.name,sys_properties:FB.Property.name,sys_user_role:FB.Role.name,sys_user_role_contains:FB.Role.name,sys_script_include:IYt.ScriptInclude.name,sp_widget:q4.SPWidget.name,m2m_sp_widget_dependency:q4.SPWidget.name,m2m_sp_ng_pro_sp_widget:q4.SPWidget.name,sp_ng_template:q4.SPWidget.name,sp_dependency:q4.SPWidgetDependency.name,m2m_sp_dependency_css_include:q4.SPWidgetDependency.name,m2m_sp_dependency_js_include:q4.SPWidgetDependency.name,sp_css_include:q4.CssInclude.name,sp_js_include:q4.JsInclude.name,sp_angular_provider:q4.SPAngularProvider.name,m2m_sp_ng_pro_sp_ng_pro:q4.SPAngularProvider.name,sys_atf_test:FB.Test.name,sys_ws_header_map:pZ.RestApi.name,sys_ws_query_parameter_map:pZ.RestApi.name,sys_ws_definition:pZ.RestApi.name,sys_ws_operation:pZ.RestApi.name,sys_ws_version:pZ.RestApi.name,sys_ws_header:pZ.RestApi.name,sys_ws_query_parameter:pZ.RestApi.name,sys_user_preference:FB.UserPreference.name,sys_ui_page:uLe.UiPage.name,sys_ui_action:uLe.UiAction.name,sys_ui_action_role:uLe.UiAction.name,sys_ui_action_view:uLe.UiAction.name,sysevent_script_action:IYt.ScriptAction.name,sys_db_object:NYt.Table.name,sys_dictionary:NYt.Table.name}});var kYt=ft(pLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(pLe,"__esModule",{value:!0});pLe.NowRefPlugin=void 0;var dLe=Wu(),Lcr=aLe();pLe.NowRefPlugin=dLe.Plugin.create({name:"NowRefPlugin",nodes:[{node:"CallExpression",async toShape(i,{transform:n,factory:o}){let l=await n.toShape(i,Lcr.CallExpressionPlugin);if(!l.success||!l.value.is(dLe.CallExpressionShape)||l.value.getCallee()!=="Now.ref")return{success:!1};let u=l.value,p=u.getArgument(0).asString("The first argument to Now.ref() must be a table name"),h=u.getArgument(1).as([dLe.StringShape,dLe.ObjectShape],"The second argument to Now.ref() must be a GUID or a coalesce keys object"),v=u.hasArgument(2)?u.getArgument(2).asObject("The third argument to Now.ref() must be a coalesce keys object"):void 0,[T,E]=v?[h.asString(),v]:h.isString()?[h.asString(),void 0]:[void 0,h.asObject()];return{success:!0,value:o.createReference({source:i,table:p,guid:T,keys:E})}}}]})});var MYt=ft(_Le=>{"use strict";Z();ne();ee();te();Object.defineProperty(_Le,"__esModule",{value:!0});_Le.NowUnresolvedPlugin=void 0;var fLe=Wu();_Le.NowUnresolvedPlugin=fLe.Plugin.create({name:"NowUnresolvedPlugin",shapes:[{shape:fLe.UnresolvedShape,commit(i,n){return n.replaceWithText(i.getCode()),{success:!0}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],toShape(i){return i.getText()!==fLe.UnresolvedShape.CODE?{success:!1}:{success:!0,value:new fLe.UnresolvedShape({source:i})}}}]})});var FYt=ft(mLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(mLe,"__esModule",{value:!0});mLe.PropertyPlugin=void 0;var Ocr=Wu(),Xlt=Wu(),Fcr=tA(),LYt=e(i=>i.split(",").map(n=>n.trim()).filter(n=>n),"getRolesArray");mLe.PropertyPlugin=Xlt.Plugin.create({name:"PropertyPlugin",records:{sys_properties:{toShape(i,{config:n}){return{success:!0,value:new Xlt.CallExpressionShape({source:i,callee:"Property",args:[i.transform(({$:o})=>({$id:o.val(Fcr.NowIdShape.from(i)),name:o.from("name","suffix").map((l,u)=>l.ifString()??(n.scope==="global"?u:`${n.scope}.${u.asString().getValue()}`)),value:o,description:o.def(""),type:o.def("string"),choices:o.map(l=>l.toString().getValue().split(/[,\n]/).map(p=>p.trim()).filter(p=>p)).def([]),isPrivate:o.from("is_private").toBoolean().def(!1),ignoreCache:o.from("ignore_cache").toBoolean().def(!1),roles:o.from("read_roles","write_roles").def({read:[],write:[]}).map((l,u)=>({read:l.ifString()?.pipe(p=>LYt(p.getValue())),write:u.ifString()?.pipe(p=>LYt(p.getValue()))}))}))]})}}}},shapes:[{shape:Xlt.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{config:n,diagnostics:o,factory:l}){if(i.getCallee()!=="Property")return{success:!1};let u=i.getArgument(0).asObject(),p=n.scope,h=u.get("name").asString();return!(0,Ocr.isSNScope)(p)&&n.scope!=="global"&&!h.asString().startsWith(`${p}.`)&&o.error(h.getOriginalNode(),`Property name must begin with '${p}.'`),{success:!0,value:l.createRecord({source:i,table:"sys_properties",explicitId:u.get("$id"),properties:u.transform(({$:v,merge:T})=>({name:v,suffix:v.from("name").map(E=>E.asString().replace(new RegExp(`^${n.scope}\\.`),"")),description:v,type:v.def("string"),value:v.toString(),is_private:v.from("isPrivate").def(!1),ignore_cache:v.from("ignoreCache").def(!1),choices:v.map(E=>E.ifArray()?.getValue().join(",")),[T]:v.from("roles").def({read_roles:"",write_roles:""}).map(E=>E.ifObject()?.transform(({$:D})=>({read_roles:D.from("read").map(C=>OYt(C)),write_roles:D.from("write").map(C=>OYt(C))})).properties())}))})}}}]});function OYt(i){return i.ifArray()?.pipe(n=>Array.from(new Set(n.getElements().map(o=>o.ifRecord()?.get("name").getValue()??o.getValue()))).join(","))}e(OYt,"getRolesString")});var WYt=ft(hLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(hLe,"__esModule",{value:!0});hLe.RolePlugin=void 0;var Bcr=Wu(),$lt=Wu(),Wcr=G2(),BYt={canDelegate:["can_delegate"],elevatedPrivilege:["elevated_privilege"],assignableBy:["assignable_by"],containsRoles:["contains_roles"],scopedAdmin:["scoped_admin"]};hLe.RolePlugin=$lt.Plugin.create({name:"RolePlugin",records:{sys_user_role:{relationships:{sys_user_role_contains:{via:"role",descendant:!0,relationships:{sys_user_role:{via:"contains",inverse:!0}}}},coalesce:["name"],toShape(i,{descendants:n}){return{success:!0,value:new $lt.CallExpressionShape({source:i,callee:"Role",args:[i.transform(({$:o})=>({name:o,assignableBy:o.from("assignable_by").def(""),description:o.def(""),canDelegate:o.from("can_delegate").toBoolean().def(!0),elevatedPrivilege:o.from("elevated_privilege").toBoolean().def(!1),grantable:o.toBoolean().def(!0),scopedAdmin:o.from("scoped_admin").toBoolean().def(!1),containsRoles:o.val(n.query("sys_user_role_contains").map(l=>l.get("contains").toRecordId())).def([])})).withAliasedKeys(BYt)]})}}},sys_user_role_contains:{coalesce:["role","contains"]}},shapes:[{shape:$lt.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{config:n,diagnostics:o,factory:l}){if(i.getCallee()!=="Role")return{success:!1};let u=i.getArgument(0).asObject().withAliasedKeys(BYt);(0,Wcr.generateDeprecatedDiagnostics)(u,o);let p=n.scope,h=u.get("name").asString();p!=="global"&&!(0,Bcr.isSNScope)(p)&&!h.getValue().startsWith(`${p}.`)&&o.error(h.getOriginalNode(),`Role name must begin with '${p}.'`);let v=l.createRecord({explicitId:u.get("$id"),source:i,table:"sys_user_role",properties:u.transform(({$:E})=>({name:E,assignable_by:E.from("assignableBy").def(""),can_delegate:E.from("canDelegate").def(!0),description:E.def(""),elevated_privilege:E.from("elevatedPrivilege").def(!1),grantable:E.def(!0),scoped_admin:E.from("scopedAdmin").def(!1),suffix:E.from("name").map(D=>D.asString().getValue().replace(new RegExp(`^${n.scope}\\.`),""))}))}),T=u.get("containsRoles").ifArray()?.map(E=>l.createRecord({source:i,table:"sys_user_role_contains",properties:{role:v,contains:E.ifStringLiteral()?.pipe(D=>l.createReference({source:D,table:"sys_user_role",keys:{name:D}}))??E}}));return{success:!0,value:v.with(...T??[])}}}]})});var yLe=ft(gLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(gLe,"__esModule",{value:!0});gLe.fileExists=void 0;var jcr=e(async(i,n)=>{try{return(await n.stat(i)).isFile()}catch{return!1}},"fileExists");gLe.fileExists=jcr});var Nae=ft(Vhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Vhe,"__esModule",{value:!0});Vhe.splitModuleRequest=void 0;Vhe.getRealPkgJson=Hcr;var zcr=(vC(),Ld(yC)),Gcr=Wu(),Ucr=yLe(),Vcr=/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*/,qcr=e((i="")=>{let n=i.match(Vcr);return n?.length&&n[0]},"getModuleName"),Kcr=e(i=>{let n=qcr(i);if(!n)return{moduleName:"",entry:""};let o=Gcr.path.relative(n,i);return o?{moduleName:n,entry:o}:{moduleName:n,entry:""}},"splitModuleRequest");Vhe.splitModuleRequest=Kcr;async function Hcr(i="",n,o,l){try{let u=(0,zcr.resolver)({fs:o,warn:l?.warn,ignoreExports:!0}),p=`${i}/package.json`,v=(await u(p,n))?.id,T;if(v&&await(0,Ucr.fileExists)(v,o)&&(T=JSON.parse(await o.readFile(v,"utf8")),T&&"name"in T&&T.name===i))return{packageJson:T,path:v}}catch(u){console.error(`Error fetching package.json for ${i}:`,u)}}e(Hcr,"getRealPkgJson")});var Ylt=ft(vLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(vLe,"__esModule",{value:!0});vLe.isNodeBuiltIn=void 0;var Jcr=(vC(),Ld(yC)),Xcr="\0polyfill-node.",$cr=e(i=>{let n=(0,Jcr.polyfill)()?.resolveId(i);return n&&n.id?n.id.startsWith(Xcr):!1},"isNodeBuiltIn");vLe.isNodeBuiltIn=$cr});var qhe=ft(U2=>{"use strict";Z();ne();ee();te();Object.defineProperty(U2,"__esModule",{value:!0});U2.writePackageJson=U2.FALLBACK_VERSION=U2.DEFAULT_EXPORTS_DIR=void 0;U2.notifyUserOfFluentDependency=eur;U2.shouldBundlePkg=tur;var Rae=Wu(),Ycr=yLe(),zYt=Nae(),GYt=Ylt();U2.DEFAULT_EXPORTS_DIR=".";U2.FALLBACK_VERSION="1.0.0";var Qcr=["@servicenow/glide"],Zcr=e((i="",n,o)=>{let l={name:i,version:U2.FALLBACK_VERSION,exports:Qlt(o),dependencies:{}};return n.forEach(u=>{l.dependencies[u]=U2.FALLBACK_VERSION}),l},"createFallbackPkgJson");function eur(i,n,o,l){if(i&&Rae.NowConfig.exists(n,l)){let u=i.packageJson,{name:p}=u;o.info(`${p} is a ServiceNow Scoped App and will not be installed automatically.`),o.info(`You will be able to use JavaScript Modules from ${p} but please make sure it is installed on your ServiceNow instance to use any other application resources.`)}}e(eur,"notifyUserOfFluentDependency");function tur(i){if(!i)return!0;let n=i.packageJson,{name:o}=n;return!Qcr.includes(o)}e(tur,"shouldBundlePkg");var nur=e(async(i="",n,o,l,u,p,h)=>{let v,T=Rae.path.resolve(Rae.path.join(l,"package.json"));return u&&await(0,Ycr.fileExists)(T,p)?(v=JSON.parse(await p.readFile(T,"utf8")),v.exports={...v.exports,...Qlt(n)},v.dependencies={...v.dependencies,...await jYt(Rae.path.dirname(u.path),o,n,p)}):u?(v=u.packageJson,delete v.module,delete v.browser,delete v.exports,delete v.main,v.version=(0,GYt.isNodeBuiltIn)(i)?U2.FALLBACK_VERSION:v.version,v.exports=Qlt(n),v.dependencies=await jYt(Rae.path.dirname(u.path),o,n,p)):v=Zcr(i,o,n),h.writeFileSync(T,JSON.stringify(v,null,2),{encoding:"utf-8"}),{packageJsonPath:T,packageJson:v}},"writePackageJson");U2.writePackageJson=nur;function Qlt(i){return i.reduce((o,{fileName:l,entryName:u})=>{if(u)l==="index.js"?o[U2.DEFAULT_EXPORTS_DIR]=`./${l}`:u.startsWith(U2.DEFAULT_EXPORTS_DIR)?u&&(o[u]=`./${l}`):o[`./${u}`]=`./${l}`;else return o;return o},{})}e(Qlt,"getExportsField");async function jYt(i,n,o,l){let u=n.reduce((v,T)=>{let{moduleName:E}=(0,zYt.splitModuleRequest)(T);return E&&!(E in v)&&(v[E]=T),v},{}),p=new Set(Object.keys(u)),h={};for(let v of p)o.some(({fileName:T})=>T===v)||(h[v]=await rur(v,i,l));return h}e(jYt,"getDependencies");async function rur(i,n,o){return(0,GYt.isNodeBuiltIn)(i)?U2.FALLBACK_VERSION:(await(0,zYt.getRealPkgJson)(i,Rae.path.join(n,"package.json"),o))?.packageJson?.version||U2.FALLBACK_VERSION}e(rur,"getDependencyVersion")});var UYt=ft(Zlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Zlt,"__esModule",{value:!0});var iur=Nae();Zlt.default=i=>{let{addDependency:n,dependencyId:o}=i;return e((u,p,h)=>{let{moduleName:v,entry:T}=(0,iur.splitModuleRequest)(u);return v&&v!==o&&!h?(i?.cb&&i.cb({moduleName:v}),n({dependencyId:v,moduleRoot:i.moduleRoot,importer:p,subPaths:[T||"."]}),!0):!1},"handler")}});var VYt=ft(ect=>{"use strict";Z();ne();ee();te();Object.defineProperty(ect,"__esModule",{value:!0});var our=yLe();ect.default=i=>({name:"rollup-web-fs",resolveId:{order:"post",async handler(n,o){if(await(0,our.fileExists)(n,i.fs))return n;throw new Error(`Could not resolve import "${n}" from "${o}"`)}},load(n){return i.fs.readFile(n,"utf8")}})});var qYt=ft(Khe=>{"use strict";Z();ne();ee();te();var aur=Khe&&Khe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Khe,"__esModule",{value:!0});var kae=(vC(),Ld(yC)),sur=aur(VYt()),lur=e(i=>i.filter(n=>n),"compact"),cur=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";Khe.default=({moduleRoot:i,rollUpFS:n,useWebFsLoader:o})=>lur([(0,kae.replace)({"global*":"__global$*",preventAssignment:!0,"process.env.NODE_ENV":"production"}),(0,kae.json)(),(0,kae.nodeResolve)({fs:n,rootDir:i,preferBuiltins:!1}),(0,kae.swc)({swc:{jsc:{parser:{jsx:!0,syntax:"ecmascript"}}}}),(0,kae.commonjs)({fs:n,rootDir:i,dynamicRequireRoot:i}),(0,kae.polyfill)(),(cur||o)&&(0,sur.default)({fs:n})])});var nct=ft(bLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(bLe,"__esModule",{value:!0});bLe.RollupFs=void 0;var tct=class{static{e(this,"RollupFs")}fs;promises;constructor(n){this.fs=n,this.promises={lstat:this.lstatPromise,readdir:this.readdirPromise,readlink:this.readlinkPromise,realpath:this.realpath}}lstatSync;readdirSync;readlinkSync;realpath(n){return new Promise((o,l)=>{try{o(this.fs.realpathSync(n))}catch(u){l(u)}})}realpathSync(n){return this.fs.realpathSync(n)}async access(n){try{return!!this.fs.statSync(n)}catch{return!1}}readFile(n,o){return new Promise((l,u)=>{try{let p=o?{encoding:"utf-8"}:void 0;l(this.fs.readFileSync(n,p))}catch(p){u(p)}})}stat(n){return new Promise((o,l)=>{try{o(this.fs.statSync(n))}catch(u){l(u)}})}readdir=e((n,o,l)=>{this.readdirPromise(n,o).then(u=>l(null,u)).catch(u=>l(u))},"readdir");lstatPromise(n){return new Promise((o,l)=>{try{o(this.fs.statSync(n))}catch(u){l(u)}})}readdirPromise(n,o){return new Promise((l,u)=>{try{let p=this.fs.readdirSync(n,o);l(p)}catch(p){u(p)}})}async readlinkPromise(n){return this.realpath(n)}mkdir(n,o){return new Promise((l,u)=>{try{o?.recursive?this.fs.mkdirSync(n,{recursive:!0}):this.fs.mkdirSync(n),l()}catch(p){u(p)}})}writeFile(n,o,l){return new Promise((u,p)=>{try{let h=l?{encoding:"utf-8"}:void 0;this.fs.writeFileSync(n,o,h),u()}catch(h){p(h)}})}};bLe.RollupFs=tct});var JYt=ft(rct=>{"use strict";Z();ne();ee();te();Object.defineProperty(rct,"__esModule",{value:!0});rct.getInputMap=uur;var KYt=Wu(),HYt=qhe();async function uur(i,n=""){let o={input:{}};return i?i?.reduce((l,u)=>{let p=u.substring(0,u.length-KYt.path.extname(u).length);p===HYt.DEFAULT_EXPORTS_DIR&&(p="index");let h=u===HYt.DEFAULT_EXPORTS_DIR?n:KYt.path.join(n,u);return{input:{...l.input,[p]:{entryTarget:h,originalMapping:u}}}},o):o}e(uur,"getInputMap")});var $Yt=ft(SLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(SLe,"__esModule",{value:!0});SLe.JobStack=void 0;var XYt=qhe(),dur=Nae(),pur=e(i=>i?.packageJson.version||XYt.FALLBACK_VERSION,"getVersion"),ict=class{static{e(this,"JobStack")}rollUpFS;currentJobs=[];finishedJobs=[];stagedJobs=[];constructor(n){this.rollUpFS=n}pushJob(n){this.stagedJobs.push(n)}hasJobsInQueue(){return this.currentJobs.length>0||this.stagedJobs.length>0}async processStagedJobs(){for(;this.stagedJobs.length>0;){let n=this.stagedJobs.shift();if(n){let{dependencyId:o="",...l}=n;if(l.importer?.endsWith("?commonjs-external"))continue;let p=await(0,dur.getRealPkgJson)(o,l.importer||l.moduleRoot,this.rollUpFS),h=pur(p),T=(l.subPaths?.length?l.subPaths:[XYt.DEFAULT_EXPORTS_DIR]).map(E=>`${o}/${h}/${E}`).filter(E=>!this.finishedJobs.includes(E));if(T.length>0){let E=this.currentJobs.findIndex(D=>D.dependencyId===o&&D.version===h);E>-1&&this.currentJobs[E]?this.currentJobs[E]={...this.currentJobs[E],subPaths:[...this.currentJobs[E]?.subPaths||[],...l.subPaths||[]]}:this.currentJobs.push({...n,version:h}),this.finishedJobs.push(...T)}}}}async popJob(){return await this.processStagedJobs(),this.currentJobs.pop()}};SLe.JobStack=ict});var QYt=ft(Mae=>{"use strict";Z();ne();ee();te();var YYt=Mae&&Mae.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Mae,"__esModule",{value:!0});Mae.runBuild=void 0;var fur=(vC(),Ld(yC)),Hhe=qhe(),_ur=YYt(UYt()),mur=YYt(qYt()),XR=Wu(),hur=nct(),gur=JYt(),yur=Nae(),vur=$Yt(),bur=Ylt(),Sur=e(async({pkgName:i,entryPoint:n,outputDir:o,rootDir:l,fs:u,options:p,logger:h,useWebFsLoader:v=!1})=>{let T=new hur.RollupFs(u),E=new vur.JobStack(T),D=[],C=XR.path.join(l,"node_modules"),w=XR.path.resolve(l,o);XR.FileSystem.ensureDirSync(u,w);let W={dependencyId:i,subPaths:n,moduleRoot:C};E.pushJob(W);let V=e(async({subPaths:B,outDir:k,options:F={repackage:{omitProto:!0}},dependencyId:$,importer:Y,requestorModuleRoot:ie})=>{let fe=await(0,yur.getRealPkgJson)($,Y||ie,T),ve=fe?XR.path.dirname(fe.path):ie;if(!(0,Hhe.shouldBundlePkg)(fe)){h.info(`Not bundling ${$}`);return}(0,Hhe.notifyUserOfFluentDependency)(fe,ve,h,u);let Ce=fe?.packageJson.version||Hhe.FALLBACK_VERSION;Ce=(0,bur.isNodeBuiltIn)($)?Hhe.FALLBACK_VERSION:Ce,h.info(`Building ${$} ${Ce}...`);let be={format:"cjs",interop:"compat",intro:'var __global$ = globalThis || (typeof window !== "undefined" ? window : self);'};try{let{input:qe}=await(0,gur.getInputMap)(B,$),yt=new Set,Ct=e(({moduleName:Kt})=>{yt.add(Kt)},"captureImportedPackages"),Bt=Object.entries(qe).reduce((Kt,[ht,wn])=>(Kt[ht]=wn.entryTarget,Kt),{}),fn=await(0,fur.rollup)({input:Bt,output:be,preserveSymlinks:!0,external:(0,_ur.default)({cb:Ct,addDependency:E.pushJob.bind(E),dependencyId:$,moduleRoot:ve}),plugins:(0,mur.default)({moduleRoot:ve,rollUpFS:T,useWebFsLoader:v})}),{output:Fn}=await fn.generate(be),Sn=XR.path.join(l,k,$,Ce);XR.FileSystem.ensureDirSync(u,Sn);let Qt=[];for(let Kt of Fn)if(Kt.type==="chunk"){let ht=Kt.code;F.repackage.omitProto&&(ht=ht.replaceAll(/__proto__: ?null,?/g,""));let wn=XR.path.resolve(XR.path.join(Sn,Kt.fileName)),Gn=XR.path.dirname(wn);XR.FileSystem.ensureDirSync(u,Gn),u.writeFileSync(wn,ht,{encoding:"utf-8"}),Kt.isEntry?Qt.push({entryName:qe[Kt.name].originalMapping,fileName:Kt.fileName}):Qt.push({fileName:Kt.fileName})}else if(Kt.type==="asset"){let ht=XR.path.resolve(XR.path.join(Sn,Kt.fileName)),wn=XR.path.dirname(ht);XR.FileSystem.ensureDirSync(u,wn),u.writeFileSync(ht,Kt.source,{encoding:"utf-8"}),Qt.push({fileName:Kt.fileName})}let{packageJson:on}=await(0,Hhe.writePackageJson)($,Qt,[...yt],Sn,fe,T,u);return{files:[...Qt.map(({fileName:Kt})=>Kt),"package.json"],packagePath:Sn,updatedManifest:on}}catch(qe){h.info(qe.toString())}},"buildDependency");for(;E.hasJobsInQueue();){let B=await E.popJob();if(!B)continue;let{dependencyId:k,subPaths:F,moduleRoot:$,importer:Y}=B,ie=await V({subPaths:F?.filter(fe=>fe),outDir:o,options:p,dependencyId:k,importer:Y,requestorModuleRoot:$});ie&&D.push(ie)}return D},"runBuild");Mae.runBuild=Sur});var tQt=ft(KG=>{"use strict";Z();ne();ee();te();Object.defineProperty(KG,"__esModule",{value:!0});KG.getPkgInfo=KG.build=KG.emptyLogger=void 0;var Eur=QYt(),ZYt=Wu(),eQt=Nae(),xur=nct(),Tur=qhe();KG.emptyLogger={info:e((...i)=>{},"info"),warn:e((...i)=>{},"warn"),error:e((...i)=>{},"error"),debug:e((...i)=>{},"debug")};var Dur=e(async({id:i,minify:n=!1,entry:o,logger:l=KG.emptyLogger,workingDir:u,fs:p,useWebFsLoader:h,outputDir:v=ZYt.path.join(".now",".output")})=>{let T=await(0,Eur.runBuild)({pkgName:(0,eQt.splitModuleRequest)(i).moduleName,entryPoint:o,options:{repackage:{minify:n,omitProto:!0}},rootDir:u,logger:l,fs:p,useWebFsLoader:h,outputDir:v});return l.info("Done!"),T},"build");KG.build=Dur;var Aur=e(async({dependencyName:i,fs:n,workingDir:o,logger:l})=>{let u=ZYt.path.join(o,"node_modules"),p=await(0,eQt.getRealPkgJson)(i,u,new xur.RollupFs(n),l);return p?{name:p.packageJson.name,version:p.packageJson.version}:{name:i,version:Tur.FALLBACK_VERSION}},"getPkgInfo");KG.getPkgInfo=Aur});var ELe=ft(_Z=>{"use strict";Z();ne();ee();te();Object.defineProperty(_Z,"__esModule",{value:!0});_Z.RepackService=_Z.REPACK_OUTPUT_DIR=void 0;var Cur=Wu();_Z.REPACK_OUTPUT_DIR=Cur.path.join(".now",".output");var oct=class i{static{e(this,"RepackService")}repack;logger;fs;workingDir;constructor(n,o,l,u){this.repack=n,this.logger=o,this.fs=l,this.workingDir=u}static async create(n,o,l){let u=await Promise.resolve().then(()=>DY(tQt()));return new i(u,n,o,l)}async execute(n){return this.repack.build({...n,logger:this.logger,fs:this.fs,workingDir:this.workingDir,outputDir:_Z.REPACK_OUTPUT_DIR})}async getResolvedDepDetails(n){return this.repack.getPkgInfo({dependencyName:n,workingDir:this.workingDir,fs:this.fs,logger:this.logger})}};_Z.RepackService=oct});var lct=ft(MH=>{"use strict";Z();ne();ee();te();var nQt=MH&&MH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Oae=MH&&MH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},act,Lae,Jhe,rQt;Object.defineProperty(MH,"__esModule",{value:!0});MH.BomRefDiscriminator=void 0;var sct=class{static{e(this,"BomRefDiscriminator")}constructor(n,o="BomRef"){act.add(this),Lae.set(this,void 0),Jhe.set(this,void 0),nQt(this,Lae,Array.from(n,l=>[l,l.value]),"f"),nQt(this,Jhe,o,"f")}get prefix(){return Oae(this,Jhe,"f")}*[(Lae=new WeakMap,Jhe=new WeakMap,act=new WeakSet,Symbol.iterator)](){for(let[n]of Oae(this,Lae,"f"))yield n}discriminate(){let n=new Set([""]);for(let[o]of Oae(this,Lae,"f")){let l=o.value;(l===void 0||n.has(l))&&(l=Oae(this,act,"m",rQt).call(this),o.value=l),n.add(l)}}reset(){for(let[n,o]of Oae(this,Lae,"f"))n.value=o}};MH.BomRefDiscriminator=sct;rQt=e(function(){return`${Oae(this,Jhe,"f")}${Math.random().toString(32).substring(1)}${Math.random().toString(32).substring(1)}`},"_BomRefDiscriminator_makeUniqueId")});var TLe=ft(xLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(xLe,"__esModule",{value:!0});xLe.OptPlugError=void 0;var cct=class extends Error{static{e(this,"OptPlugError")}constructor(n,o){super(n),this.cause=o}};xLe.OptPlugError=cct});var dct=ft(DLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(DLe,"__esModule",{value:!0});DLe.MissingOptionalDependencyError=void 0;var wur=TLe(),uct=class extends wur.OptPlugError{static{e(this,"MissingOptionalDependencyError")}};DLe.MissingOptionalDependencyError=uct});var oQt=ft(iQt=>{"use strict";Z();ne();ee();te();Object.defineProperty(iQt,"__esModule",{value:!0})});var Fae=ft(ALe=>{"use strict";Z();ne();ee();te();Object.defineProperty(ALe,"__esModule",{value:!0});ALe.treeIteratorSymbol=void 0;ALe.treeIteratorSymbol=Symbol("iterator of a tree/nesting-like structure")});var wLe=ft(Bae=>{"use strict";Z();ne();ee();te();var sQt=Bae&&Bae.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},CLe,aQt,lQt;Object.defineProperty(Bae,"__esModule",{value:!0});Bae.BaseSerializer=void 0;var pct=Fae(),Iur=lct(),fct=class{static{e(this,"BaseSerializer")}constructor(){CLe.add(this)}serialize(n,o){return this._serialize(sQt(this,CLe,"m",lQt).call(this,n,o),o)}};Bae.BaseSerializer=fct;CLe=new WeakSet,aQt=e(function*(n){if(n.metadata.component!==void 0){yield n.metadata.component.bomRef;for(let{bomRef:o}of n.metadata.component.components[pct.treeIteratorSymbol]())yield o}for(let{bomRef:o}of n.components[pct.treeIteratorSymbol]())yield o;for(let{bomRef:o}of n.services[pct.treeIteratorSymbol]())yield o;for(let{bomRef:o}of n.vulnerabilities)yield o},"_BaseSerializer_getAllBomRefs"),lQt=e(function(n,o){let l=new Iur.BomRefDiscriminator(sQt(this,CLe,"m",aQt).call(this,n));l.discriminate();try{return this._normalize(n,o)}finally{l.reset()}},"_BaseSerializer_normalize")});var mct=ft(_ct=>{"use strict";Z();ne();ee();te();Object.defineProperty(_ct,"__esModule",{value:!0});_ct.chainI=Pur;function*Pur(...i){for(let n of i)for(let o of n)yield o}e(Pur,"chainI")});var ILe=ft(hct=>{"use strict";Z();ne();ee();te();Object.defineProperty(hct,"__esModule",{value:!0});hct.isNotUndefined=Nur;function Nur(i){return i!==void 0}e(Nur,"isNotUndefined")});var yct=ft(gct=>{"use strict";Z();ne();ee();te();Object.defineProperty(gct,"__esModule",{value:!0});gct.escapeUri=kur;var Rur=[[/ /g,"%20"],[/"/g,"%22"],[/'/g,"%27"],[/\[/g,"%5B"],[/]/g,"%5D"],[/</g,"%3C"],[/>/g,"%3E"],[/\{/g,"%7B"],[/}/g,"%7D"]];function kur(i){if(i===void 0)return i;for(let[n,o]of Rur)i=i.replace(n,o);return i}e(kur,"escapeUri")});var HG=ft($R=>{"use strict";Z();ne();ee();te();var LH=$R&&$R.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},xct=$R&&$R.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Wae,PLe,jae,vct,cQt;Object.defineProperty($R,"__esModule",{value:!0});$R.LicenseRepository=$R.SpdxLicense=$R.NamedLicense=$R.LicenseExpression=void 0;var bct=class{static{e(this,"LicenseExpression")}constructor(n){Wae.set(this,void 0),this.expression=n}get expression(){return LH(this,Wae,"f")}set expression(n){if(n==="")throw new RangeError("value is empty string");xct(this,Wae,n,"f")}compare(n){return LH(this,Wae,"f").localeCompare(LH(n,Wae,"f"))}};$R.LicenseExpression=bct;Wae=new WeakMap;var NLe=class{static{e(this,"DisjunctiveLicenseBase")}constructor(n={}){PLe.set(this,void 0),this.acknowledgement=n.acknowledgement,this.text=n.text,this.url=n.url}get url(){return LH(this,PLe,"f")}set url(n){xct(this,PLe,n===""?void 0:n,"f")}};PLe=new WeakMap;var Sct=class extends NLe{static{e(this,"NamedLicense")}constructor(n,o={}){super(o),this.name=n}compare(n){return this.name.localeCompare(n.name)}};$R.NamedLicense=Sct;var Ect=class extends NLe{static{e(this,"SpdxLicense")}constructor(n,o={}){super(o),jae.set(this,void 0),this.id=n}get id(){return LH(this,jae,"f")}set id(n){if(n==="")throw new RangeError("value is empty string");xct(this,jae,n,"f")}compare(n){return LH(this,jae,"f").localeCompare(LH(n,jae,"f"))}};$R.SpdxLicense=Ect;jae=new WeakMap;var RLe=class extends Set{static{e(this,"LicenseRepository")}sorted(){return Array.from(this).sort(LH(vct,vct,"m",cQt))}};$R.LicenseRepository=RLe;vct=RLe,cQt=e(function(n,o){return n.constructor===o.constructor?n.compare(o):n.constructor.name.localeCompare(o.constructor.name)},"_LicenseRepository_compareItems")});var Xhe=ft(OH=>{"use strict";Z();ne();ee();te();var Mur=OH&&OH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},Tct,uQt;Object.defineProperty(OH,"__esModule",{value:!0});OH.LifecycleRepository=OH.NamedLifecycle=void 0;var kLe=class{static{e(this,"NamedLifecycle")}constructor(n,o={}){this.name=n,this.description=o.description}compare(n){return this.name.localeCompare(n.name)}};OH.NamedLifecycle=kLe;var MLe=class extends Set{static{e(this,"LifecycleRepository")}sorted(){return Array.from(this).sort(Mur(Tct,Tct,"m",uQt))}};OH.LifecycleRepository=MLe;Tct=MLe,uQt=e(function(n,o){return n.constructor===o.constructor?n instanceof kLe?n.compare(o):n.localeCompare(o):n.constructor.name.localeCompare(o.constructor.name)},"_LifecycleRepository_compareItems")});var aI=ft(V2=>{"use strict";Z();ne();ee();te();Object.defineProperty(V2,"__esModule",{value:!0});V2.SortableNumbers=V2.SortableStringables=V2.SortableComparables=V2.SortableSet=V2.compareObjectsSymbol=void 0;V2.compareObjectsSymbol=Symbol("internal compare function");var zae=class extends Set{static{e(this,"SortableSet")}sorted(){return Array.from(this).sort(this[V2.compareObjectsSymbol])}compare(n){let o=n.sorted(),l=this.sorted();if(l.length!==o.length)return l.length-o.length;for(let u=l.length-1;u>=0;--u){let p=this[V2.compareObjectsSymbol](l[u],o[u]);if(p!==0)return p}return 0}};V2.SortableSet=zae;var Dct=class extends zae{static{e(this,"SortableComparables")}[V2.compareObjectsSymbol](n,o){return n.constructor===o.constructor?n.compare(o):n.constructor.name.localeCompare(o.constructor.name)}};V2.SortableComparables=Dct;var Act=class extends zae{static{e(this,"SortableStringables")}[V2.compareObjectsSymbol](n,o){return n.toString().localeCompare(o.toString())}};V2.SortableStringables=Act;var Cct=class extends zae{static{e(this,"SortableNumbers")}[V2.compareObjectsSymbol](n,o){return n-o}};V2.SortableNumbers=Cct});var dQt=ft(wct=>{"use strict";Z();ne();ee();te();Object.defineProperty(wct,"__esModule",{value:!0});wct.isCPE=Our;var Lur=/^([c][pP][eE]:\/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})$|^(cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})$/;function Our(i){return typeof i=="string"&&Lur.test(i)}e(Our,"isCPE")});var $he=ft(Gae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Gae,"__esModule",{value:!0});Gae.BomRefRepository=Gae.BomRef=void 0;var Ict=class{static{e(this,"BomRef")}constructor(n){this.value=n}compare(n){return this.toString().localeCompare(n.toString())}toString(){return this.value??""}};Gae.BomRef=Ict;var Pct=class extends Set{static{e(this,"BomRefRepository")}};Gae.BomRefRepository=Pct});var Rct=ft(LLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(LLe,"__esModule",{value:!0});LLe.CopyrightRepository=void 0;var Fur=aI(),Nct=class extends Fur.SortableStringables{static{e(this,"CopyrightRepository")}};LLe.CopyrightRepository=Nct});var Yhe=ft(Uae=>{"use strict";Z();ne();ee();te();var Bur=Uae&&Uae.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},kct,pQt;Object.defineProperty(Uae,"__esModule",{value:!0});Uae.HashDictionary=void 0;var OLe=class extends Map{static{e(this,"HashDictionary")}sorted(){return Array.from(this.entries()).sort(Bur(kct,kct,"m",pQt))}};Uae.HashDictionary=OLe;kct=OLe,pQt=e(function([n,o],[l,u]){return n.localeCompare(l)||o.localeCompare(u)},"_HashDictionary_compareItems")});var mZ=ft(Vae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Vae,"__esModule",{value:!0});Vae.ExternalReferenceRepository=Vae.ExternalReference=void 0;var Wur=aI(),jur=Yhe(),Mct=class{static{e(this,"ExternalReference")}constructor(n,o,l={}){this.url=n,this.type=o,this.hashes=l.hashes??new jur.HashDictionary,this.comment=l.comment}compare(n){return this.type.localeCompare(n.type)||this.url.toString().localeCompare(n.url.toString())}};Vae.ExternalReference=Mct;var Lct=class extends Wur.SortableComparables{static{e(this,"ExternalReferenceRepository")}};Vae.ExternalReferenceRepository=Lct});var Kae=ft(qae=>{"use strict";Z();ne();ee();te();Object.defineProperty(qae,"__esModule",{value:!0});qae.PropertyRepository=qae.Property=void 0;var zur=aI(),Oct=class{static{e(this,"Property")}constructor(n,o){this.name=n,this.value=o}compare(n){return this.name.localeCompare(n.name)||this.value.localeCompare(n.value)}};qae.Property=Oct;var Fct=class extends zur.SortableComparables{static{e(this,"PropertyRepository")}};qae.PropertyRepository=Fct});var Qhe=ft(O3=>{"use strict";Z();ne();ee();te();var fQt=O3&&O3.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Hae=O3&&O3.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},FLe,FH;Object.defineProperty(O3,"__esModule",{value:!0});O3.ComponentEvidence=O3.ComponentRepository=O3.Component=void 0;var Gur=aI(),_Qt=Fae(),Uur=dQt(),mQt=$he(),Vur=Rct(),qur=mZ(),Kur=Yhe(),hQt=HG(),Hur=Kae(),Bct=class{static{e(this,"Component")}constructor(n,o,l={}){FLe.set(this,void 0),FH.set(this,void 0),fQt(this,FLe,new mQt.BomRef(l.bomRef),"f"),this.type=n,this.name=o,this.supplier=l.supplier,this.author=l.author,this.copyright=l.copyright,this.externalReferences=l.externalReferences??new qur.ExternalReferenceRepository,this.group=l.group,this.hashes=l.hashes??new Kur.HashDictionary,this.licenses=l.licenses??new hQt.LicenseRepository,this.publisher=l.publisher,this.purl=l.purl,this.scope=l.scope,this.swid=l.swid,this.version=l.version,this.description=l.description,this.components=l.components??new BLe,this.cpe=l.cpe,this.properties=l.properties??new Hur.PropertyRepository,this.evidence=l.evidence,this.dependencies=l.dependencies??new mQt.BomRefRepository}get bomRef(){return Hae(this,FLe,"f")}get cpe(){return Hae(this,FH,"f")}set cpe(n){if(n!==void 0&&!(0,Uur.isCPE)(n))throw new TypeError("Not CPE nor undefined");fQt(this,FH,n,"f")}compare(n){let o=this.bomRef.compare(n.bomRef);return o!==0?o:this.purl!==void 0&&n.purl!==void 0?this.purl.toString().localeCompare(n.purl.toString()):Hae(this,FH,"f")!==void 0&&Hae(n,FH,"f")!==void 0?Hae(this,FH,"f").localeCompare(Hae(n,FH,"f")):(this.group??"").localeCompare(n.group??"")||this.name.localeCompare(n.name)||(this.version??"").localeCompare(n.version??"")}};O3.Component=Bct;FLe=new WeakMap,FH=new WeakMap;var BLe=class extends Gur.SortableComparables{static{e(this,"ComponentRepository")}*[_Qt.treeIteratorSymbol](){for(let n of this)yield n,yield*n.components[_Qt.treeIteratorSymbol]()}};O3.ComponentRepository=BLe;var Wct=class{static{e(this,"ComponentEvidence")}constructor(n={}){this.licenses=n.licenses??new hQt.LicenseRepository,this.copyright=n.copyright??new Vur.CopyrightRepository}};O3.ComponentEvidence=Wct});var zLe=ft(BB=>{"use strict";Z();ne();ee();te();var Jur=BB&&BB.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Xur=BB&&BB.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},WLe;Object.defineProperty(BB,"__esModule",{value:!0});BB.ServiceRepository=BB.Service=void 0;var $ur=aI(),gQt=Fae(),yQt=$he(),Yur=mZ(),Qur=HG(),Zur=Kae(),jct=class{static{e(this,"Service")}constructor(n,o={}){WLe.set(this,void 0),Jur(this,WLe,new yQt.BomRef(o.bomRef),"f"),this.provider=o.provider,this.group=o.group,this.name=n,this.version=o.version,this.description=o.description,this.licenses=o.licenses??new Qur.LicenseRepository,this.externalReferences=o.externalReferences??new Yur.ExternalReferenceRepository,this.services=o.services??new jLe,this.properties=o.properties??new Zur.PropertyRepository,this.dependencies=o.dependencies??new yQt.BomRefRepository}get bomRef(){return Xur(this,WLe,"f")}compare(n){let o=this.bomRef.compare(n.bomRef);return o!==0?o:(this.group??"").localeCompare(n.group??"")||this.name.localeCompare(n.name)||(this.version??"").localeCompare(n.version??"")}};BB.Service=jct;WLe=new WeakMap;var jLe=class extends $ur.SortableComparables{static{e(this,"ServiceRepository")}*[gQt.treeIteratorSymbol](){for(let n of this)yield n,yield*n.services[gQt.treeIteratorSymbol]()}};BB.ServiceRepository=jLe});var Jae=ft(BH=>{"use strict";Z();ne();ee();te();Object.defineProperty(BH,"__esModule",{value:!0});BH.Tools=BH.ToolRepository=BH.Tool=void 0;var edr=aI(),tdr=Qhe(),ndr=mZ(),rdr=Yhe(),idr=zLe(),zct=class i{static{e(this,"Tool")}constructor(n={}){this.vendor=n.vendor,this.name=n.name,this.version=n.version,this.hashes=n.hashes??new rdr.HashDictionary,this.externalReferences=n.externalReferences??new ndr.ExternalReferenceRepository}compare(n){return(this.vendor??"").localeCompare(n.vendor??"")||(this.name??"").localeCompare(n.name??"")||(this.version??"").localeCompare(n.version??"")}static fromComponent(n){return new i({vendor:n.group,name:n.name,version:n.version,hashes:n.hashes,externalReferences:n.externalReferences})}static fromService(n){return new i({vendor:n.group,name:n.name,version:n.version,externalReferences:n.externalReferences})}};BH.Tool=zct;var GLe=class extends edr.SortableComparables{static{e(this,"ToolRepository")}};BH.ToolRepository=GLe;var Gct=class{static{e(this,"Tools")}constructor(n={}){this.components=n.components??new tdr.ComponentRepository,this.services=n.services??new idr.ServiceRepository,this.tools=n.tools??new GLe}get size(){return this.components.size+this.services.size+this.tools.size}};BH.Tools=Gct});var Zhe=ft(F3=>{"use strict";Z();ne();ee();te();Object.defineProperty(F3,"__esModule",{value:!0});F3.AffectedVersionRepository=F3.AffectedVersionRange=F3.AffectedSingleVersion=F3.AffectRepository=F3.Affect=void 0;var vQt=aI(),Uct=class{static{e(this,"Affect")}constructor(n,o={}){this.ref=n,this.versions=o.versions??new ULe}compare(n){return this.ref.compare(n.ref)||this.versions.compare(n.versions)}};F3.Affect=Uct;var Vct=class extends vQt.SortableComparables{static{e(this,"AffectRepository")}};F3.AffectRepository=Vct;var qct=class{static{e(this,"AffectedSingleVersion")}constructor(n,o={}){this.version=n,this.status=o.status}compare(n){return this.version.localeCompare(n.version)||(this.status??"").localeCompare(n.status??"")}};F3.AffectedSingleVersion=qct;var Kct=class{static{e(this,"AffectedVersionRange")}constructor(n,o={}){this.range=n,this.status=o.status}compare(n){return this.range.localeCompare(n.range)||(this.status??"").localeCompare(n.status??"")}};F3.AffectedVersionRange=Kct;var ULe=class extends vQt.SortableComparables{static{e(this,"AffectedVersionRepository")}};F3.AffectedVersionRepository=ULe});var bQt=ft((DCi,odr)=>{odr.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var SQt=ft((ACi,adr)=>{adr.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var EQt=ft((CCi,sdr)=>{sdr.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var TQt=ft((wCi,xQt)=>{"use strict";Z();ne();ee();te();var ldr=[].concat(bQt()).concat(SQt()),cdr=EQt();xQt.exports=function(i){var n=0;function o(){return n<i.length}e(o,"hasMore");function l(V){if(V instanceof RegExp){var B=i.slice(n),k=B.match(V);if(k)return n+=k[0].length,k[0]}else if(i.indexOf(V,n)===n)return n+=V.length,V}e(l,"read");function u(){l(/[ ]*/)}e(u,"skipWhitespace");function p(){for(var V,B=["WITH","AND","OR","(",")",":","+"],k=0;k<B.length&&(V=l(B[k]),!V);k++);if(V==="+"&&n>1&&i[n-2]===" ")throw new Error("Space before `+`");return V&&{type:"OPERATOR",string:V}}e(p,"operator");function h(){return l(/[A-Za-z0-9-.]+/)}e(h,"idstring");function v(){var V=h();if(!V)throw new Error("Expected idstring at offset "+n);return V}e(v,"expectIdstring");function T(){if(l("DocumentRef-")){var V=v();return{type:"DOCUMENTREF",string:V}}}e(T,"documentRef");function E(){if(l("LicenseRef-")){var V=v();return{type:"LICENSEREF",string:V}}}e(E,"licenseRef");function D(){var V=n,B=h();if(ldr.indexOf(B)!==-1)return{type:"LICENSE",string:B};if(cdr.indexOf(B)!==-1)return{type:"EXCEPTION",string:B};n=V}e(D,"identifier");function C(){return p()||T()||E()||D()}e(C,"parseToken");for(var w=[];o()&&(u(),!!o());){var W=C();if(!W)throw new Error("Unexpected `"+i[n]+"` at offset "+n);w.push(W)}return w}});var AQt=ft((MCi,DQt)=>{"use strict";Z();ne();ee();te();DQt.exports=function(i){var n=0;function o(){return n<i.length}e(o,"hasMore");function l(){return o()?i[n]:null}e(l,"token");function u(){if(!o())throw new Error;n++}e(u,"next");function p(B){var k=l();if(k&&k.type==="OPERATOR"&&B===k.string)return u(),k.string}e(p,"parseOperator");function h(){if(p("WITH")){var B=l();if(B&&B.type==="EXCEPTION")return u(),B.string;throw new Error("Expected exception after `WITH`")}}e(h,"parseWith");function v(){var B=n,k="",F=l();if(F.type==="DOCUMENTREF"&&(u(),k+="DocumentRef-"+F.string+":",!p(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(F=l(),F.type==="LICENSEREF")return u(),k+="LicenseRef-"+F.string,{license:k};n=B}e(v,"parseLicenseRef");function T(){var B=l();if(B&&B.type==="LICENSE"){u();var k={license:B.string};p("+")&&(k.plus=!0);var F=h();return F&&(k.exception=F),k}}e(T,"parseLicense");function E(){var B=p("(");if(B){var k=W();if(!p(")"))throw new Error("Expected `)`");return k}}e(E,"parseParenthesizedExpression");function D(){return E()||v()||T()}e(D,"parseAtom");function C(B,k){return e(function F(){var $=k();if($){if(!p(B))return $;var Y=F();if(!Y)throw new Error("Expected expression");return{left:$,conjunction:B.toLowerCase(),right:Y}}},"parseBinaryOp")}e(C,"makeBinaryOpParser");var w=C("AND",D),W=C("OR",w),V=W();if(!V||o())throw new Error("Syntax error");return V}});var wQt=ft((jCi,CQt)=>{"use strict";Z();ne();ee();te();var udr=TQt(),ddr=AQt();CQt.exports=function(i){return ddr(udr(i))}});var IQt=ft((qCi,pdr)=>{pdr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://cyclonedx.org/schema/spdx.schema.json",$comment:"v1.0-3.24.0",type:"string",enum:["0BSD","3D-Slicer-1.0","AAL","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","Afmparse","AGPL-1.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Aladdin","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","any-OSI","Apache-1.0","Apache-1.1","Apache-2.0","APAFML","APL-1.0","App-s2p","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Arphic-1999","Artistic-1.0","Artistic-1.0-cl8","Artistic-1.0-Perl","Artistic-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Baekmuk","Bahyph","Barr","bcrypt-Solar-Designer","Beerware","Bitstream-Charter","Bitstream-Vera","BitTorrent-1.0","BitTorrent-1.1","blessing","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-first-lines","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-acpica","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-flex","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-beginning-file","BSD-Source-Code","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","bzip2-1.0.5","bzip2-1.0.6","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","Caldera","Caldera-no-preamble","Catharon","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","check-cvs","checkmk","ClArtistic","Clips","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","Community-Spec-1.0","Condor-1.1","copyleft-next-0.3.0","copyleft-next-0.3.1","Cornell-Lossless-JPEG","CPAL-1.0","CPL-1.0","CPOL-1.02","Cronyx","Crossword","CrystalStacker","CUA-OPL-1.0","Cube","curl","cve-tou","D-FSL-1.0","DEC-3-Clause","diffmark","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","Dotseqn","DRL-1.0","DRL-1.1","DSDP","dtoa","dvipdfm","ECL-1.0","ECL-2.0","eCos-2.0","EFL-1.0","EFL-2.0","eGenix","Elastic-2.0","Entessa","EPICS","EPL-1.0","EPL-2.0","ErlPL-1.1","etalab-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Eurosym","Fair","FBM","FDK-AAC","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Furuseth","fwlw","GCR-docs","GD","GFDL-1.1","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","Giftware","GL2PS","Glide","Glulxe","GLWTPL","gnuplot","GPL-1.0","GPL-1.0+","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0","GPL-2.0+","GPL-2.0-only","GPL-2.0-or-later","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0","GPL-3.0+","GPL-3.0-only","GPL-3.0-or-later","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","Graphics-Gems","gSOAP-1.3b","gtkbook","Gutmann","HaskellReport","hdparm","Hippocratic-2.1","HP-1986","HP-1989","HPND","HPND-DEC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-Markus-Kuhn","HPND-merchantability-variant","HPND-MIT-disclaimer","HPND-Pbmplus","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-UC","HPND-UC-export-US","HTMLTIDY","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","ImageMagick","iMatix","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","IPA","IPL-1.0","ISC","ISC-Veillard","Jam","JasPer-2.0","JPL-image","JPNIC","JSON","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","Latex2e","Latex2e-translated-notice","Leptonica","LGPL-2.0","LGPL-2.0+","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1","LGPL-2.1+","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0","LGPL-3.0+","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","Libpng","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Linux-OpenIB","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","lsof","Lucida-Bitmap-Fonts","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","magaz","mailprio","MakeIndex","Martin-Birgmeier","McPhee-slideshow","metamail","Minpack","MirOS","MIT","MIT-0","MIT-advertising","MIT-CMU","MIT-enna","MIT-feh","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-open-group","MIT-testregex","MIT-Wu","MITNFA","MMIXware","Motosoto","MPEG-SSG","mpi-permissive","mpich2","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mplus","MS-LPL","MS-PL","MS-RL","MTLL","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","Naumen","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","Net-SNMP","NetCDF","Newsletr","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","Nokia","NOSL","Noweb","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Nunit","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODbL-1.0","ODC-By-1.0","OFFIS","OFL-1.0","OFL-1.0-no-RFN","OFL-1.0-RFN","OFL-1.1","OFL-1.1-no-RFN","OFL-1.1-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","PADL","Parity-6.0.0","Parity-7.0.0","PDDL-1.0","PHP-3.0","PHP-3.01","Pixar","pkgconf","Plexus","pnmstitch","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","PPL","PSF-2.0","psfrag","psutils","Python-2.0","Python-2.0.1","python-ldap","Qhull","QPL-1.0","QPL-1.0-INRIA-2004","radvd","Rdisc","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Ruby","SAX-PD","SAX-PD-2.0","Saxpath","SCEA","SchemeReport","Sendmail","Sendmail-8.23","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SimPL-2.0","SISSL","SISSL-1.2","SL","Sleepycat","SMLNJ","SMPPL","SNIA","snprintf","softSurfer","Soundex","Spencer-86","Spencer-94","Spencer-99","SPL-1.0","ssh-keyscan","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","StandardML-NJ","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","SWL","swrule","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TermReadKey","TGPPL-1.0","threeparttable","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","ulem","UMich-Merit","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","UPL-1.0","URT-RLE","Vim","VOSTROM","VSL-1.0","W3C","W3C-19980720","W3C-20150513","w3m","Watcom-1.0","Widget-Workshop","Wsuipa","WTFPL","wxWindows","X11","X11-distribute-modifications-variant","Xdebug-1.03","Xerox","Xfig","XFree86-1.1","xinetd","xkeyboard-config-Zinoviev","xlock","Xnet","xpp","XSkat","xzoom","YPL-1.0","YPL-1.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","389-exception","Asterisk-exception","Asterisk-linking-protocols-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PCRE2-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","RRDtool-FLOSS-exception-2.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}});var VLe=ft(ege=>{"use strict";Z();ne();ee();te();Object.defineProperty(ege,"__esModule",{value:!0});ege.isSupportedSpdxId=hdr;ege.fixupSpdxId=gdr;ege.isValidSpdxLicenseExpression=ydr;var fdr=wQt(),PQt=IQt(),_dr=new Set(PQt.enum),mdr=Object.freeze(Object.fromEntries(PQt.enum.map(i=>[i.toLowerCase(),i])));function hdr(i){return _dr.has(i)}e(hdr,"isSupportedSpdxId");function gdr(i){return typeof i=="string"&&i.length>0?mdr[i.toLowerCase()]:void 0}e(gdr,"fixupSpdxId");function ydr(i){if(typeof i!="string")return!1;try{fdr(i)}catch{return!1}return!0}e(ydr,"isValidSpdxLicenseExpression")});var hZ=ft(Xae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Xae,"__esModule",{value:!0});Xae.Format=Xae.Version=void 0;var NQt;(function(i){i.v1dot6="1.6",i.v1dot5="1.5",i.v1dot4="1.4",i.v1dot3="1.3",i.v1dot2="1.2",i.v1dot1="1.1",i.v1dot0="1.0"})(NQt||(Xae.Version=NQt={}));var RQt;(function(i){i.XML="xml",i.JSON="json"})(RQt||(Xae.Format=RQt={}))});var Hct=ft(qLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(qLe,"__esModule",{value:!0});qLe.JsonSchema=void 0;var kQt;(function(i){function n(l){return typeof l=="string"&&l.length>0}e(n,"isIriReference"),i.isIriReference=n;function o(l){return typeof l=="string"&&l.length>0}e(o,"isIdnEmail"),i.isIdnEmail=o})(kQt||(qLe.JsonSchema=kQt={}))});var zQt=ft(mp=>{"use strict";Z();ne();ee();te();var vdr=mp&&mp.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},B3=mp&&mp.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},KLe,$ct,LQt,rge,Yct,gZ,Qct,OQt,Zct,eut,FQt,HLe,BQt,WQt;Object.defineProperty(mp,"__esModule",{value:!0});mp.VulnerabilityAnalysisNormalizer=mp.VulnerabilityAffectedVersionNormalizer=mp.VulnerabilityAffectNormalizer=mp.VulnerabilityCreditsNormalizer=mp.VulnerabilityAdvisoryNormalizer=mp.VulnerabilityRatingNormalizer=mp.VulnerabilityReferenceNormalizer=mp.VulnerabilitySourceNormalizer=mp.VulnerabilityNormalizer=mp.DependencyGraphNormalizer=mp.PropertyNormalizer=mp.AttachmentNormalizer=mp.ExternalReferenceNormalizer=mp.SWIDNormalizer=mp.LicenseNormalizer=mp.ComponentEvidenceNormalizer=mp.ServiceNormalizer=mp.ComponentNormalizer=mp.OrganizationalEntityNormalizer=mp.OrganizationalContactNormalizer=mp.HashNormalizer=mp.ToolsNormalizer=mp.ToolNormalizer=mp.LifecycleNormalizer=mp.MetadataNormalizer=mp.BomNormalizer=mp.Factory=void 0;var bdr=mct(),Qae=ILe(),Jct=Fae(),$ae=yct(),tge=HG(),Sdr=Xhe(),Xct=Jae(),MQt=Zhe(),Edr=VLe(),nge=hZ(),Yae=Hct(),tut=class{static{e(this,"Factory")}constructor(n){KLe.set(this,void 0),vdr(this,KLe,n,"f")}get spec(){return B3(this,KLe,"f")}makeForBom(){return new JLe(this)}makeForMetadata(){return new XLe(this)}makeForComponent(){return new nOe(this)}makeForService(){return new rOe(this)}makeForComponentEvidence(){return new ige(this)}makeForLifecycle(){return new $Le(this)}makeForTool(){return new YLe(this)}makeForTools(){return new QLe(this)}makeForOrganizationalContact(){return new eOe(this)}makeForOrganizationalEntity(){return new tOe(this)}makeForHash(){return new ZLe(this)}makeForLicense(){return new iOe(this)}makeForSWID(){return new oOe(this)}makeForExternalReference(){return new aOe(this)}makeForAttachment(){return new sOe(this)}makeForProperty(){return new lOe(this)}makeForDependencyGraph(){return new cOe(this)}makeForVulnerability(){return new uOe(this)}makeForVulnerabilitySource(){return new dOe(this)}makeForVulnerabilityReference(){return new pOe(this)}makeForVulnerabilityRating(){return new fOe(this)}makeForVulnerabilityAdvisory(){return new _Oe(this)}makeForVulnerabilityCredits(){return new mOe(this)}makeForVulnerabilityAffect(){return new hOe(this)}makeForVulnerabilityAffectedVersion(){return new gOe(this)}makeForVulnerabilityAnalysis(){return new yOe(this)}};mp.Factory=tut;KLe=new WeakMap;var xdr=new Map([[nge.Version.v1dot6,"http://cyclonedx.org/schema/bom-1.6.schema.json"],[nge.Version.v1dot5,"http://cyclonedx.org/schema/bom-1.5.schema.json"],[nge.Version.v1dot4,"http://cyclonedx.org/schema/bom-1.4.schema.json"],[nge.Version.v1dot3,"http://cyclonedx.org/schema/bom-1.3a.schema.json"],[nge.Version.v1dot2,"http://cyclonedx.org/schema/bom-1.2b.schema.json"]]),rb=class{static{e(this,"BaseJsonNormalizer")}constructor(n){this._factory=n}get factory(){return this._factory}},JLe=class extends rb{static{e(this,"BomNormalizer")}constructor(){super(...arguments),$ct.add(this)}normalize(n,o){return{$schema:xdr.get(this._factory.spec.version),bomFormat:"CycloneDX",specVersion:this._factory.spec.version,version:n.version,serialNumber:B3(this,$ct,"m",LQt).call(this,n.serialNumber)?n.serialNumber:void 0,metadata:this._factory.makeForMetadata().normalize(n.metadata,o),components:n.components.size>0?this._factory.makeForComponent().normalizeIterable(n.components,o):[],services:this._factory.spec.supportsServices&&n.services.size>0?this._factory.makeForService().normalizeIterable(n.services,o):void 0,dependencies:this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(n,o):void 0,vulnerabilities:this._factory.spec.supportsVulnerabilities&&n.vulnerabilities.size>0?this._factory.makeForVulnerability().normalizeIterable(n.vulnerabilities,o):void 0}}};mp.BomNormalizer=JLe;$ct=new WeakSet,LQt=e(function(n){return n!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(n)},"_BomNormalizer_isEligibleSerialNumber");var XLe=class extends rb{static{e(this,"MetadataNormalizer")}normalize(n,o){let l=this._factory.makeForOrganizationalEntity();return{timestamp:n.timestamp?.toISOString(),lifecycles:this._factory.spec.supportsMetadataLifecycles&&n.lifecycles.size>0?this._factory.makeForLifecycle().normalizeIterable(n.lifecycles,o):void 0,tools:n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o):void 0,authors:n.authors.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(n.authors,o):void 0,component:n.component===void 0?void 0:this._factory.makeForComponent().normalize(n.component,o),manufacture:n.manufacture===void 0?void 0:l.normalize(n.manufacture,o),supplier:n.supplier===void 0?void 0:l.normalize(n.supplier,o),licenses:this._factory.spec.supportsMetadataLicenses&&n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,properties:this._factory.spec.supportsMetadataProperties&&n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0}}};mp.MetadataNormalizer=XLe;var $Le=class extends rb{static{e(this,"LifecycleNormalizer")}normalize(n,o){return n instanceof Sdr.NamedLifecycle?{name:n.name,description:n.description}:{phase:n}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.LifecycleNormalizer=$Le;var YLe=class extends rb{static{e(this,"ToolNormalizer")}normalize(n,o){return{vendor:n.vendor||void 0,name:n.name||void 0,version:n.version||void 0,hashes:n.hashes.size>0?this._factory.makeForHash().normalizeIterable(n.hashes,o):void 0,externalReferences:this._factory.spec.supportsToolReferences&&n.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.ToolNormalizer=YLe;var QLe=class extends rb{static{e(this,"ToolsNormalizer")}normalize(n,o){return n.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?this._factory.makeForTool().normalizeIterable(new Xct.ToolRepository((0,bdr.chainI)(Array.from(n.components,Xct.Tool.fromComponent),Array.from(n.services,Xct.Tool.fromService),n.tools)),o):{components:n.components.size>0?this._factory.makeForComponent().normalizeIterable(n.components,o):void 0,services:n.services.size>0?this._factory.makeForService().normalizeIterable(n.services,o):void 0}}};mp.ToolsNormalizer=QLe;var ZLe=class extends rb{static{e(this,"HashNormalizer")}normalize([n,o],l){let u=this._factory.spec;return u.supportsHashAlgorithm(n)&&u.supportsHashValue(o)?{alg:n,content:o}:void 0}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.HashNormalizer=ZLe;var eOe=class extends rb{static{e(this,"OrganizationalContactNormalizer")}normalize(n,o){return{name:n.name||void 0,email:Yae.JsonSchema.isIdnEmail(n.email)?n.email:void 0,phone:n.phone||void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.OrganizationalContactNormalizer=eOe;var tOe=class extends rb{static{e(this,"OrganizationalEntityNormalizer")}normalize(n,o){let l=jQt(Array.from(n.url,u=>(0,$ae.escapeUri)(u.toString())),o).filter(Yae.JsonSchema.isIriReference);return{name:n.name||void 0,url:l.length>0?l:void 0,contact:n.contact.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(n.contact,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.OrganizationalEntityNormalizer=tOe;var nOe=class extends rb{static{e(this,"ComponentNormalizer")}normalize(n,o){let l=this._factory.spec;if(!l.supportsComponentType(n.type))return;let u=n.version??"";return{type:n.type,name:n.name,group:n.group||void 0,version:u.length>0||l.requiresComponentVersion?u:void 0,"bom-ref":n.bomRef.value||void 0,supplier:n.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(n.supplier,o),author:n.author||void 0,publisher:n.publisher||void 0,description:n.description||void 0,scope:n.scope,hashes:n.hashes.size>0?this._factory.makeForHash().normalizeIterable(n.hashes,o):void 0,licenses:n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,copyright:n.copyright?.toString()||void 0,cpe:n.cpe||void 0,purl:n.purl?.toString(),swid:n.swid===void 0?void 0:this._factory.makeForSWID().normalize(n.swid,o),externalReferences:n.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o):void 0,properties:l.supportsProperties(n)&&n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0,components:n.components.size>0?this.normalizeIterable(n.components,o):void 0,evidence:l.supportsComponentEvidence&&n.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(n.evidence,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.ComponentNormalizer=nOe;var rOe=class extends rb{static{e(this,"ServiceNormalizer")}normalize(n,o){let l=this._factory.spec;return{"bom-ref":n.bomRef.value||void 0,provider:n.provider?this._factory.makeForOrganizationalEntity().normalize(n.provider,o):void 0,group:n.group,name:n.name,version:n.version||void 0,description:n.description||void 0,licenses:n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,externalReferences:n.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o):void 0,services:n.services.size>0?this._factory.makeForService().normalizeIterable(n.services,o):void 0,properties:l.supportsProperties(n)&&n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.ServiceNormalizer=rOe;var ige=class extends rb{static{e(this,"ComponentEvidenceNormalizer")}normalize(n,o){return{licenses:n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,copyright:n.copyright.size>0?o.sortLists?n.copyright.sorted().map(B3(rge,rge,"m",Yct)):Array.from(n.copyright,B3(rge,rge,"m",Yct)):void 0}}};mp.ComponentEvidenceNormalizer=ige;rge=ige,Yct=e(function(n){return{text:n.toString()}},"_ComponentEvidenceNormalizer_normalizeCopyright");var iOe=class extends rb{static{e(this,"LicenseNormalizer")}constructor(){super(...arguments),gZ.add(this)}normalize(n,o){switch(!0){case n instanceof tge.NamedLicense:return B3(this,gZ,"m",Qct).call(this,n,o);case n instanceof tge.SpdxLicense:return(0,Edr.isSupportedSpdxId)(n.id)?B3(this,gZ,"m",OQt).call(this,n,o):B3(this,gZ,"m",Qct).call(this,new tge.NamedLicense(n.id,{url:n.url}),o);case n instanceof tge.LicenseExpression:return B3(this,gZ,"m",Zct).call(this,n);default:throw new TypeError("Unexpected LicenseChoice")}}normalizeIterable(n,o){let l=o.sortLists??!1?n.sorted():Array.from(n);if(l.length>1){let u=l.filter(p=>p instanceof tge.LicenseExpression);if(u.length>0)return[B3(this,gZ,"m",Zct).call(this,u[0])]}return l.map(u=>this.normalize(u,o))}};mp.LicenseNormalizer=iOe;gZ=new WeakSet,Qct=e(function(n,o){let l=(0,$ae.escapeUri)(n.url?.toString());return{license:{name:n.name,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0,text:n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o),url:Yae.JsonSchema.isIriReference(l)?l:void 0}}},"_LicenseNormalizer_normalizeNamedLicense"),OQt=e(function(n,o){let l=(0,$ae.escapeUri)(n.url?.toString());return{license:{id:n.id,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0,text:n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o),url:Yae.JsonSchema.isIriReference(l)?l:void 0}}},"_LicenseNormalizer_normalizeSpdxLicense"),Zct=e(function(n){return{expression:n.expression,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0}},"_LicenseNormalizer_normalizeLicenseExpression");var oOe=class extends rb{static{e(this,"SWIDNormalizer")}normalize(n,o){let l=(0,$ae.escapeUri)(n.url?.toString());return{tagId:n.tagId,name:n.name,version:n.version||void 0,tagVersion:n.tagVersion,patch:n.patch,text:n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o),url:Yae.JsonSchema.isIriReference(l)?l:void 0}}};mp.SWIDNormalizer=oOe;var aOe=class extends rb{static{e(this,"ExternalReferenceNormalizer")}normalize(n,o){return this._factory.spec.supportsExternalReferenceType(n.type)?{url:(0,$ae.escapeUri)(n.url.toString()),type:n.type,hashes:this._factory.spec.supportsExternalReferenceHashes&&n.hashes.size>0?this._factory.makeForHash().normalizeIterable(n.hashes,o):void 0,comment:n.comment||void 0}:void 0}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.ExternalReferenceNormalizer=aOe;var sOe=class extends rb{static{e(this,"AttachmentNormalizer")}normalize(n,o){return{content:n.content.toString(),contentType:n.contentType||void 0,encoding:n.encoding}}};mp.AttachmentNormalizer=sOe;var lOe=class extends rb{static{e(this,"PropertyNormalizer")}normalize(n,o){return{name:n.name,value:n.value}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.PropertyNormalizer=lOe;var cOe=class extends rb{static{e(this,"DependencyGraphNormalizer")}constructor(){super(...arguments),eut.add(this)}normalize(n,o){let l=new Map;if(n.metadata.component!==void 0){l.set(n.metadata.component.bomRef,n.metadata.component.dependencies);for(let p of n.metadata.component.components[Jct.treeIteratorSymbol]())l.set(p.bomRef,p.dependencies)}for(let p of n.components[Jct.treeIteratorSymbol]())l.set(p.bomRef,p.dependencies);for(let p of n.services[Jct.treeIteratorSymbol]())l.set(p.bomRef,p.dependencies);let u=[];for(let[p,h]of l){let v=B3(this,eut,"m",FQt).call(this,p,h,l,o);(0,Qae.isNotUndefined)(v)&&u.push(v)}return(o.sortLists??!1)&&u.sort(({ref:p},{ref:h})=>p.localeCompare(h)),u}};mp.DependencyGraphNormalizer=cOe;eut=new WeakSet,FQt=e(function(n,o,l,u){let p=n.toString();if(p.length===0)return;let h=jQt(Array.from(o).filter(v=>l.has(v)&&v!==n),u).filter(v=>v.length>0);return{ref:p,dependsOn:h.length>0?h:void 0}},"_DependencyGraphNormalizer_normalizeDependency");var uOe=class extends rb{static{e(this,"VulnerabilityNormalizer")}normalize(n,o){return{"bom-ref":n.bomRef.value||void 0,id:n.id||void 0,source:n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o),references:n.references.size>0?this._factory.makeForVulnerabilityReference().normalizeIterable(n.references,o):void 0,ratings:n.ratings.size>0?this._factory.makeForVulnerabilityRating().normalizeIterable(n.ratings,o):void 0,cwes:n.cwes.size>0?o.sortLists??!1?n.cwes.sorted():Array.from(n.cwes):void 0,description:n.description,detail:n.detail,recommendation:n.recommendation,advisories:n.advisories.size>0?this._factory.makeForVulnerabilityAdvisory().normalizeIterable(n.advisories,o):void 0,created:n.created?.toISOString(),published:n.published?.toISOString(),updated:n.updated?.toISOString(),credits:n.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(n.credits,o),tools:n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o):void 0,analysis:n.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(n.analysis,o),affects:n.affects.size>0?this._factory.makeForVulnerabilityAffect().normalizeIterable(n.affects,o):void 0,properties:n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityNormalizer=uOe;var dOe=class extends rb{static{e(this,"VulnerabilitySourceNormalizer")}normalize(n,o){return{name:n.name,url:n.url?.toString()}}};mp.VulnerabilitySourceNormalizer=dOe;var pOe=class extends rb{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(n,o){return{id:n.id,source:this._factory.makeForVulnerabilitySource().normalize(n.source,o)}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityReferenceNormalizer=pOe;var fOe=class extends rb{static{e(this,"VulnerabilityRatingNormalizer")}normalize(n,o){return{source:n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o),score:n.score,severity:n.severity,method:this._factory.spec.supportsVulnerabilityRatingMethod(n.method)?n.method:void 0,vector:n.vector,justification:n.justification}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityRatingNormalizer=fOe;var _Oe=class extends rb{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(n,o){let l=(0,$ae.escapeUri)(n.url.toString());if(Yae.JsonSchema.isIriReference(l))return{title:n.title,url:l}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.VulnerabilityAdvisoryNormalizer=_Oe;var mOe=class extends rb{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(n,o){return{organizations:n.organizations.size>0?this._factory.makeForOrganizationalEntity().normalizeIterable(n.organizations,o):void 0,individuals:n.individuals.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(n.individuals,o):void 0}}};mp.VulnerabilityCreditsNormalizer=mOe;var hOe=class extends rb{static{e(this,"VulnerabilityAffectNormalizer")}normalize(n,o){return{ref:n.ref.toString(),versions:n.versions.size>0?this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(n.versions,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityAffectNormalizer=hOe;var gOe=class extends rb{static{e(this,"VulnerabilityAffectedVersionNormalizer")}constructor(){super(...arguments),HLe.add(this)}normalize(n,o){switch(!0){case n instanceof MQt.AffectedSingleVersion:return B3(this,HLe,"m",BQt).call(this,n);case n instanceof MQt.AffectedVersionRange:return B3(this,HLe,"m",WQt).call(this,n);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.VulnerabilityAffectedVersionNormalizer=gOe;HLe=new WeakSet,BQt=e(function(n){return n.version.length<1?void 0:{version:n.version.substring(0,1024),status:n.status}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion"),WQt=e(function(n){return n.range.length<1?void 0:{range:n.range.substring(0,1024),status:n.status}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedVersionRange");var yOe=class extends rb{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(n,o){return{state:n.state,justification:n.justification,response:n.response.size>0?o.sortLists??!1?n.response.sorted():Array.from(n.response):void 0,detail:n.detail}}};mp.VulnerabilityAnalysisNormalizer=yOe;function jQt(i,n){let o=Array.from(i,l=>l.toString());return(n.sortLists??!1)&&o.sort((l,u)=>l.localeCompare(u)),o}e(jQt,"normalizeStringableIter")});var GQt=ft(Zae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Zae,"__esModule",{value:!0});Zae.Types=Zae.Normalize=void 0;Zae.Normalize=zQt();Zae.Types=Hct()});var bOe=ft(vOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(vOe,"__esModule",{value:!0});vOe.UnsupportedFormatError=void 0;var nut=class extends Error{static{e(this,"UnsupportedFormatError")}};vOe.UnsupportedFormatError=nut});var VQt=ft(WH=>{"use strict";Z();ne();ee();te();var Tdr=WH&&WH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},UQt=WH&&WH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},oge;Object.defineProperty(WH,"__esModule",{value:!0});WH.JsonSerializer=void 0;var Ddr=hZ(),Adr=bOe(),Cdr=wLe(),rut=class extends Cdr.BaseSerializer{static{e(this,"JsonSerializer")}constructor(n){if(!n.spec.supportsFormat(Ddr.Format.JSON))throw new Adr.UnsupportedFormatError("Spec does not support JSON format.");super(),oge.set(this,void 0),Tdr(this,oge,n,"f")}get normalizerFactory(){return UQt(this,oge,"f")}_normalize(n,o={}){return UQt(this,oge,"f").makeForBom().normalize(n,o)}_serialize(n,{space:o}={}){return JSON.stringify(n,null,o)}};WH.JsonSerializer=rut;oge=new WeakMap});var qQt=ft(SOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(SOe,"__esModule",{value:!0});SOe.Attachment=void 0;var iut=class{static{e(this,"Attachment")}constructor(n,o={}){this.contentType=o.contentType,this.content=n,this.encoding=o.encoding}};SOe.Attachment=iut});var EOe=ft(age=>{"use strict";Z();ne();ee();te();Object.defineProperty(age,"__esModule",{value:!0});age.isInteger=out;age.isNonNegativeInteger=wdr;age.isPositiveInteger=Idr;function out(i){return Number.isInteger(i)}e(out,"isInteger");function wdr(i){return out(i)&&i>=0}e(wdr,"isNonNegativeInteger");function Idr(i){return out(i)&&i>0}e(Idr,"isPositiveInteger")});var sge=ft(ese=>{"use strict";Z();ne();ee();te();Object.defineProperty(ese,"__esModule",{value:!0});ese.OrganizationalContactRepository=ese.OrganizationalContact=void 0;var Pdr=aI(),aut=class{static{e(this,"OrganizationalContact")}constructor(n={}){this.name=n.name,this.email=n.email,this.phone=n.phone}compare(n){return(this.name??"").localeCompare(n.name??"")||(this.email??"").localeCompare(n.email??"")||(this.phone??"").localeCompare(n.phone??"")}};ese.OrganizationalContact=aut;var sut=class extends Pdr.SortableComparables{static{e(this,"OrganizationalContactRepository")}};ese.OrganizationalContactRepository=sut});var cut=ft(xOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(xOe,"__esModule",{value:!0});xOe.Metadata=void 0;var Ndr=HG(),Rdr=Xhe(),kdr=sge(),Mdr=Kae(),Ldr=Jae(),lut=class{static{e(this,"Metadata")}constructor(n={}){this.timestamp=n.timestamp,this.lifecycles=n.lifecycles??new Rdr.LifecycleRepository,this.tools=n.tools??new Ldr.Tools,this.authors=n.authors??new kdr.OrganizationalContactRepository,this.component=n.component,this.manufacture=n.manufacture,this.supplier=n.supplier,this.licenses=n.licenses??new Ndr.LicenseRepository,this.properties=n.properties??new Mdr.PropertyRepository}};xOe.Metadata=lut});var KQt=ft(lge=>{"use strict";Z();ne();ee();te();Object.defineProperty(lge,"__esModule",{value:!0});lge.CweRepository=void 0;lge.isCWE=Bdr;var Odr=aI(),Fdr=EOe();function Bdr(i){return(0,Fdr.isPositiveInteger)(i)}e(Bdr,"isCWE");var uut=class extends Odr.SortableNumbers{static{e(this,"CweRepository")}};lge.CweRepository=uut});var fut=ft(tse=>{"use strict";Z();ne();ee();te();Object.defineProperty(tse,"__esModule",{value:!0});tse.AdvisoryRepository=tse.Advisory=void 0;var Wdr=aI(),dut=class{static{e(this,"Advisory")}constructor(n,o={}){this.url=n,this.title=o.title}compare(n){return this.url.toString().localeCompare(n.url.toString())||(this.title??"").localeCompare(n.title??"")}};tse.Advisory=dut;var put=class extends Wdr.SortableComparables{static{e(this,"AdvisoryRepository")}};tse.AdvisoryRepository=put});var hut=ft(nse=>{"use strict";Z();ne();ee();te();Object.defineProperty(nse,"__esModule",{value:!0});nse.RatingRepository=nse.Rating=void 0;var jdr=aI(),_ut=class{static{e(this,"Rating")}constructor(n={}){this.source=n.source,this.score=n.score,this.severity=n.severity,this.method=n.method,this.vector=n.vector,this.justification=n.justification}compare(n){return(this.score??0)-(n.score??0)||(this.vector??"").localeCompare(n.vector??"")||(this.justification??"").localeCompare(n.justification??"")||(this.severity??"").localeCompare(n.severity??"")||(this.method??"").localeCompare(n.method??"")||(this.source&&n.source?this.source.compare(n.source):0)}};nse.Rating=_ut;var mut=class extends jdr.SortableComparables{static{e(this,"RatingRepository")}};nse.RatingRepository=mut});var vut=ft(rse=>{"use strict";Z();ne();ee();te();Object.defineProperty(rse,"__esModule",{value:!0});rse.ReferenceRepository=rse.Reference=void 0;var zdr=aI(),gut=class{static{e(this,"Reference")}constructor(n,o){this.id=n,this.source=o}compare(n){return this.id.localeCompare(n.id)||this.source.compare(n.source)}};rse.Reference=gut;var yut=class extends zdr.SortableComparables{static{e(this,"ReferenceRepository")}};rse.ReferenceRepository=yut});var Eut=ft(WB=>{"use strict";Z();ne();ee();te();var Gdr=WB&&WB.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Udr=WB&&WB.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},TOe;Object.defineProperty(WB,"__esModule",{value:!0});WB.VulnerabilityRepository=WB.Vulnerability=void 0;var Vdr=aI(),qdr=KQt(),Kdr=$he(),Hdr=Kae(),Jdr=Jae(),Xdr=fut(),$dr=Zhe(),Ydr=hut(),Qdr=vut(),but=class{static{e(this,"Vulnerability")}constructor(n={}){TOe.set(this,void 0),Gdr(this,TOe,new Kdr.BomRef(n.bomRef),"f"),this.id=n.id,this.source=n.source,this.references=n.references??new Qdr.ReferenceRepository,this.ratings=n.ratings??new Ydr.RatingRepository,this.cwes=n.cwes??new qdr.CweRepository,this.description=n.description,this.detail=n.detail,this.recommendation=n.recommendation,this.advisories=n.advisories??new Xdr.AdvisoryRepository,this.created=n.created,this.published=n.published,this.updated=n.updated,this.credits=n.credits,this.tools=n.tools??new Jdr.Tools,this.analysis=n.analysis,this.affects=n.affects??new $dr.AffectRepository,this.properties=n.properties??new Hdr.PropertyRepository}get bomRef(){return Udr(this,TOe,"f")}compare(n){let o=this.bomRef.compare(n.bomRef);return o!==0?o:(this.id??"").localeCompare(n.id??"")||(this.created?.getTime()??0)-(n.created?.getTime()??0)||(this.published?.getTime()??0)-(n.published?.getTime()??0)||(this.updated?.getTime()??0)-(n.updated?.getTime()??0)||this.ratings.compare(n.ratings)||this.cwes.compare(n.cwes)||(this.description??"").localeCompare(n.description??"")||(this.detail??"").localeCompare(n.detail??"")||(this.recommendation??"").localeCompare(n.recommendation??"")||(this.source&&n.source?this.source.compare(n.source):0)||this.properties.compare(n.properties)}};WB.Vulnerability=but;TOe=new WeakMap;var Sut=class extends Vdr.SortableComparables{static{e(this,"VulnerabilityRepository")}};WB.VulnerabilityRepository=Sut});var XQt=ft(jH=>{"use strict";Z();ne();ee();te();var HQt=jH&&jH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},JQt=jH&&jH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},DOe,AOe;Object.defineProperty(jH,"__esModule",{value:!0});jH.Bom=void 0;var Zdr=EOe(),epr=Qhe(),tpr=cut(),npr=zLe(),rpr=Eut(),xut=class{static{e(this,"Bom")}constructor(n={}){DOe.set(this,1),AOe.set(this,void 0),this.metadata=n.metadata??new tpr.Metadata,this.components=n.components??new epr.ComponentRepository,this.services=n.services??new npr.ServiceRepository,this.version=n.version??this.version,this.vulnerabilities=n.vulnerabilities??new rpr.VulnerabilityRepository,this.serialNumber=n.serialNumber}get version(){return HQt(this,DOe,"f")}set version(n){if(!(0,Zdr.isPositiveInteger)(n))throw new TypeError("Not PositiveInteger");JQt(this,DOe,n,"f")}get serialNumber(){return HQt(this,AOe,"f")}set serialNumber(n){JQt(this,AOe,n===""?void 0:n,"f")}};jH.Bom=xut;DOe=new WeakMap,AOe=new WeakMap});var QQt=ft(jB=>{"use strict";Z();ne();ee();te();var Aut=jB&&jB.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},ipr=jB&&jB.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},COe,Tut,$Qt,Dut,YQt;Object.defineProperty(jB,"__esModule",{value:!0});jB.BomLinkElement=jB.BomLinkDocument=void 0;var wOe=class{static{e(this,"BomLinkBase")}constructor(n){COe.set(this,void 0),this.value=n}get value(){return Aut(this,COe,"f")}set value(n){if(!this._isValid(n))throw new RangeError("invalid value");ipr(this,COe,n,"f")}compare(n){return this.toString().localeCompare(n.toString())}toString(){return this.value}};COe=new WeakMap;var IOe=class extends wOe{static{e(this,"BomLinkDocument")}static isValid(n){return typeof n=="string"&&Aut(this,Tut,"f",$Qt).test(n)}_isValid(n){return Tut.isValid(n)}};jB.BomLinkDocument=IOe;Tut=IOe;$Qt={value:/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*$/};var POe=class extends wOe{static{e(this,"BomLinkElement")}static isValid(n){return typeof n=="string"&&Aut(this,Dut,"f",YQt).test(n)}_isValid(n){return Dut.isValid(n)}};jB.BomLinkElement=POe;Dut=POe;YQt={value:/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*#.+$/}});var Put=ft(ise=>{"use strict";Z();ne();ee();te();Object.defineProperty(ise,"__esModule",{value:!0});ise.OrganizationalEntityRepository=ise.OrganizationalEntity=void 0;var Cut=aI(),opr=sge(),wut=class{static{e(this,"OrganizationalEntity")}constructor(n={}){this.name=n.name,this.url=n.url??new Set,this.contact=n.contact??new opr.OrganizationalContactRepository}compare(n){return(this.name??"").localeCompare(n.name??"")||this.contact.compare(n.contact)||new Cut.SortableStringables(this.url).compare(new Cut.SortableStringables(n.url))}};ise.OrganizationalEntity=wut;var Iut=class extends Cut.SortableComparables{static{e(this,"OrganizationalEntityRepository")}};ise.OrganizationalEntityRepository=Iut});var ZQt=ft(zH=>{"use strict";Z();ne();ee();te();var apr=zH&&zH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},spr=zH&&zH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},NOe;Object.defineProperty(zH,"__esModule",{value:!0});zH.SWID=void 0;var lpr=EOe(),Nut=class{static{e(this,"SWID")}constructor(n,o,l={}){NOe.set(this,void 0),this.tagId=n,this.name=o,this.version=l.version,this.patch=l.patch,this.text=l.text,this.url=l.url,this.tagVersion=l.tagVersion}get tagVersion(){return apr(this,NOe,"f")}set tagVersion(n){if(n!==void 0&&!(0,lpr.isNonNegativeInteger)(n))throw new TypeError("Not NonNegativeInteger nor undefined");spr(this,NOe,n,"f")}};zH.SWID=Nut;NOe=new WeakMap});var kut=ft(ose=>{"use strict";Z();ne();ee();te();Object.defineProperty(ose,"__esModule",{value:!0});ose.AnalysisResponseRepository=ose.AnalysisResponse=void 0;var cpr=aI(),eZt;(function(i){i.CanNotFix="can_not_fix",i.WillNotFix="will_not_fix",i.Update="update",i.Rollback="rollback",i.WorkaroundAvailable="workaround_available"})(eZt||(ose.AnalysisResponse=eZt={}));var Rut=class extends cpr.SortableStringables{static{e(this,"AnalysisResponseRepository")}};ose.AnalysisResponseRepository=Rut});var tZt=ft(ROe=>{"use strict";Z();ne();ee();te();Object.defineProperty(ROe,"__esModule",{value:!0});ROe.Analysis=void 0;var upr=kut(),Mut=class{static{e(this,"Analysis")}constructor(n={}){this.state=n.state,this.justification=n.justification,this.response=n.response??new upr.AnalysisResponseRepository,this.detail=n.detail}};ROe.Analysis=Mut});var nZt=ft(kOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(kOe,"__esModule",{value:!0});kOe.Credits=void 0;var dpr=sge(),ppr=Put(),Lut=class{static{e(this,"Credits")}constructor(n={}){this.organizations=n.organizations??new ppr.OrganizationalEntityRepository,this.individuals=n.individuals??new dpr.OrganizationalContactRepository}};kOe.Credits=Lut});var rZt=ft(MOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(MOe,"__esModule",{value:!0});MOe.Source=void 0;var Out=class{static{e(this,"Source")}constructor(n={}){this.name=n.name,this.url=n.url}compare(n){return(this.url?.toString()??"").localeCompare(n.url?.toString()??"")||(this.name??"").localeCompare(n.name??"")}};MOe.Source=Out});var iZt=ft(YR=>{"use strict";Z();ne();ee();te();var fpr=YR&&YR.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),GH=YR&&YR.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&fpr(n,i,o)};Object.defineProperty(YR,"__esModule",{value:!0});GH(fut(),YR);GH(Zhe(),YR);GH(tZt(),YR);GH(nZt(),YR);GH(hut(),YR);GH(vut(),YR);GH(rZt(),YR);GH(Eut(),YR)});var LOe=ft(a1=>{"use strict";Z();ne();ee();te();var _pr=a1&&a1.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),q2=a1&&a1.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&_pr(n,i,o)};Object.defineProperty(a1,"__esModule",{value:!0});a1.Vulnerability=void 0;q2(qQt(),a1);q2(XQt(),a1);q2(QQt(),a1);q2($he(),a1);q2(Qhe(),a1);q2(Rct(),a1);q2(mZ(),a1);q2(Yhe(),a1);q2(HG(),a1);q2(Xhe(),a1);q2(cut(),a1);q2(sge(),a1);q2(Put(),a1);q2(Kae(),a1);q2(zLe(),a1);q2(ZQt(),a1);q2(Jae(),a1);a1.Vulnerability=iZt()});var aZt=ft(OOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(OOe,"__esModule",{value:!0});OOe.normalizedString=oZt;OOe.token=vpr;var mpr=/\r\n|\t|\n|\r/g,hpr=" ";function oZt(i){return i.replace(mpr,hpr)}e(oZt,"normalizedString");var gpr=/ {2,}/g,ypr=" ";function vpr(i){return oZt(i).trim().replace(gpr,ypr)}e(vpr,"token")});var Fut=ft(FOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(FOe,"__esModule",{value:!0});FOe.XmlSchema=void 0;var sZt;(function(i){let n=/^[a-z][a-z0-9+\-.]*$/i;function o(l){if(typeof l!="string"||l.length===0)return!1;let u=l.indexOf("#"),p=l;if(u>=0){if(l.includes("#",u+1))return!1;p=l.slice(void 0,u)}let h=p.indexOf(":");return!(h>=0&&!n.test(p.slice(void 0,h)))}e(o,"isAnyURI"),i.isAnyURI=o})(sZt||(FOe.XmlSchema=sZt={}))});var mZt=ft(hp=>{"use strict";Z();ne();ee();te();var bpr=hp&&hp.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},zB=hp&&hp.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},BOe,jut,cZt,vZ,zut,uZt,Gut,Uut,dZt,WOe,pZt,fZt;Object.defineProperty(hp,"__esModule",{value:!0});hp.VulnerabilityAffectedVersionNormalizer=hp.VulnerabilityAffectNormalizer=hp.VulnerabilityAnalysisNormalizer=hp.VulnerabilityCreditsNormalizer=hp.VulnerabilityAdvisoryNormalizer=hp.VulnerabilityRatingNormalizer=hp.VulnerabilityReferenceNormalizer=hp.VulnerabilitySourceNormalizer=hp.VulnerabilityNormalizer=hp.DependencyGraphNormalizer=hp.PropertyNormalizer=hp.AttachmentNormalizer=hp.ExternalReferenceNormalizer=hp.SWIDNormalizer=hp.LicenseNormalizer=hp.ComponentEvidenceNormalizer=hp.ServiceNormalizer=hp.ComponentNormalizer=hp.OrganizationalEntityNormalizer=hp.OrganizationalContactNormalizer=hp.HashNormalizer=hp.ToolsNormalizer=hp.ToolNormalizer=hp.LifecycleNormalizer=hp.MetadataNormalizer=hp.BomNormalizer=hp.Factory=void 0;var Spr=mct(),Ob=ILe(),But=Fae(),bZ=yct(),Wut=LOe(),cge=HG(),Epr=Xhe(),lZt=Zhe(),xpr=VLe(),yZ=hZ(),Av=aZt(),SZ=Fut(),Vut=class{static{e(this,"Factory")}constructor(n){BOe.set(this,void 0),bpr(this,BOe,n,"f")}get spec(){return zB(this,BOe,"f")}makeForBom(){return new zOe(this)}makeForMetadata(){return new GOe(this)}makeForLifecycle(){return new UOe(this)}makeForComponent(){return new XOe(this)}makeForService(){return new $Oe(this)}makeForComponentEvidence(){return new YOe(this)}makeForTool(){return new VOe(this)}makeForTools(){return new qOe(this)}makeForOrganizationalContact(){return new HOe(this)}makeForOrganizationalEntity(){return new JOe(this)}makeForHash(){return new KOe(this)}makeForLicense(){return new QOe(this)}makeForSWID(){return new ZOe(this)}makeForExternalReference(){return new eFe(this)}makeForAttachment(){return new tFe(this)}makeForProperty(){return new nFe(this)}makeForDependencyGraph(){return new rFe(this)}makeForVulnerability(){return new iFe(this)}makeForVulnerabilitySource(){return new oFe(this)}makeForVulnerabilityReference(){return new aFe(this)}makeForVulnerabilityRating(){return new sFe(this)}makeForVulnerabilityAdvisory(){return new lFe(this)}makeForVulnerabilityCredits(){return new cFe(this)}makeForVulnerabilityAffect(){return new dFe(this)}makeForVulnerabilityAffectedVersion(){return new pFe(this)}makeForVulnerabilityAnalysis(){return new uFe(this)}};hp.Factory=Vut;BOe=new WeakMap;var Tpr=new Map([[yZ.Version.v1dot6,"http://cyclonedx.org/schema/bom/1.6"],[yZ.Version.v1dot5,"http://cyclonedx.org/schema/bom/1.5"],[yZ.Version.v1dot4,"http://cyclonedx.org/schema/bom/1.4"],[yZ.Version.v1dot3,"http://cyclonedx.org/schema/bom/1.3"],[yZ.Version.v1dot2,"http://cyclonedx.org/schema/bom/1.2"],[yZ.Version.v1dot1,"http://cyclonedx.org/schema/bom/1.1"],[yZ.Version.v1dot0,"http://cyclonedx.org/schema/bom/1.0"]]),ib=class{static{e(this,"BaseXmlNormalizer")}constructor(n){this._factory=n}get factory(){return this._factory}},zOe=class extends ib{static{e(this,"BomNormalizer")}constructor(){super(...arguments),jut.add(this)}normalize(n,o){let l={type:"element",name:"components",children:n.components.size>0?this._factory.makeForComponent().normalizeIterable(n.components,o,"component"):void 0},u=this._factory.spec.supportsServices&&n.services.size>0?{type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(n.services,o,"service")}:void 0,p=this._factory.spec.supportsVulnerabilities&&n.vulnerabilities.size>0?{type:"element",name:"vulnerabilities",children:this._factory.makeForVulnerability().normalizeIterable(n.vulnerabilities,o,"vulnerability")}:void 0;return{type:"element",name:"bom",namespace:Tpr.get(this._factory.spec.version),attributes:{version:n.version,serialNumber:zB(this,jut,"m",cZt).call(this,n.serialNumber)?n.serialNumber:void 0},children:[this._factory.makeForMetadata().normalize(n.metadata,o,"metadata"),l,u,this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(n,o,"dependencies"):void 0,p].filter(Ob.isNotUndefined)}}};hp.BomNormalizer=zOe;jut=new WeakSet,cZt=e(function(n){return n!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}$/.test(n)},"_BomNormalizer_isEligibleSerialNumber");var GOe=class extends ib{static{e(this,"MetadataNormalizer")}normalize(n,o,l){let u=this._factory.makeForOrganizationalEntity(),p=this._factory.spec.supportsMetadataLifecycles&&n.lifecycles.size>0?{type:"element",name:"lifecycles",children:this._factory.makeForLifecycle().normalizeIterable(n.lifecycles,o,"lifecycle")}:void 0,h=n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o,"tools"):void 0,v=n.authors.size>0?{type:"element",name:"authors",children:this._factory.makeForOrganizationalContact().normalizeIterable(n.authors,o,"author")}:void 0,T=this._factory.spec.supportsMetadataLicenses&&n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,E=this._factory.spec.supportsMetadataProperties&&n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0;return{type:"element",name:l,children:[jOe(n.timestamp,"timestamp"),p,h,v,n.component===void 0?void 0:this._factory.makeForComponent().normalize(n.component,o,"component"),n.manufacture===void 0?void 0:u.normalize(n.manufacture,o,"manufacture"),n.supplier===void 0?void 0:u.normalize(n.supplier,o,"supplier"),T,E].filter(Ob.isNotUndefined)}}};hp.MetadataNormalizer=GOe;var UOe=class extends ib{static{e(this,"LifecycleNormalizer")}normalize(n,o,l){return n instanceof Epr.NamedLifecycle?{type:"element",name:l,children:[jS(n.name,"name",Av.normalizedString),Lh(n.description,"description")].filter(Ob.isNotUndefined)}:{type:"element",name:l,children:[jS(n,"phase")]}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.LifecycleNormalizer=UOe;var VOe=class extends ib{static{e(this,"ToolNormalizer")}normalize(n,o,l){let u=n.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(n.hashes,o,"hash")}:void 0,p=this._factory.spec.supportsToolReferences&&n.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o,"reference")}:void 0;return{type:"element",name:l,children:[Lh(n.vendor,"vendor",Av.normalizedString),Lh(n.name,"name",Av.normalizedString),Lh(n.version,"version",Av.normalizedString),u,p].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.ToolNormalizer=VOe;var qOe=class extends ib{static{e(this,"ToolsNormalizer")}normalize(n,o,l){let u=[];return n.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?u=this._factory.makeForTool().normalizeIterable(new Wut.ToolRepository((0,Spr.chainI)(Array.from(n.components,Wut.Tool.fromComponent),Array.from(n.services,Wut.Tool.fromService),n.tools)),o,"tool"):(n.components.size>0&&u.push({type:"element",name:"components",children:this._factory.makeForComponent().normalizeIterable(n.components,o,"component")}),n.services.size>0&&u.push({type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(n.services,o,"service")})),{type:"element",name:l,children:u}}};hp.ToolsNormalizer=qOe;var KOe=class extends ib{static{e(this,"HashNormalizer")}normalize([n,o],l,u){let p=this._factory.spec;return p.supportsHashAlgorithm(n)&&p.supportsHashValue(o)?{type:"element",name:u,attributes:{alg:n},children:(0,Av.token)(o)}:void 0}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.HashNormalizer=KOe;var HOe=class extends ib{static{e(this,"OrganizationalContactNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[Lh(n.name,"name",Av.normalizedString),Lh(n.email,"email",Av.normalizedString),Lh(n.phone,"phone",Av.normalizedString)].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.OrganizationalContactNormalizer=HOe;var JOe=class extends ib{static{e(this,"OrganizationalEntityNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[Lh(n.name,"name",Av.normalizedString),..._Zt(Array.from(n.url,u=>(0,bZ.escapeUri)(u.toString())),o,"url").filter(({children:u})=>SZ.XmlSchema.isAnyURI(u)),...this._factory.makeForOrganizationalContact().normalizeIterable(n.contact,o,"contact")].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.OrganizationalEntityNormalizer=JOe;var XOe=class extends ib{static{e(this,"ComponentNormalizer")}normalize(n,o,l){let u=this._factory.spec;if(!u.supportsComponentType(n.type))return;let p=n.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(n.supplier,o,"supplier"),h=(u.requiresComponentVersion?jS:Lh)(n.version??"","version",Av.normalizedString),v=n.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(n.hashes,o,"hash")}:void 0,T=n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,E=n.swid===void 0?void 0:this._factory.makeForSWID().normalize(n.swid,o,"swid"),D=n.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o,"reference")}:void 0,C=u.supportsProperties(n)&&n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0,w=n.components.size>0?{type:"element",name:"components",children:this.normalizeIterable(n.components,o,"component")}:void 0,W=u.supportsComponentEvidence&&n.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(n.evidence,o,"evidence"):void 0;return{type:"element",name:l,attributes:{type:n.type,"bom-ref":n.bomRef.value},children:[p,Lh(n.author,"author",Av.normalizedString),Lh(n.publisher,"publisher",Av.normalizedString),Lh(n.group,"group",Av.normalizedString),jS(n.name,"name",Av.normalizedString),h,Lh(n.description,"description",Av.normalizedString),Lh(n.scope,"scope"),v,T,Lh(n.copyright,"copyright",Av.normalizedString),Lh(n.cpe,"cpe"),Lh(n.purl,"purl"),E,D,C,w,W].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.ComponentNormalizer=XOe;var $Oe=class extends ib{static{e(this,"ServiceNormalizer")}normalize(n,o,l){let u=this._factory.spec,p=n.provider===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(n.provider,o,"provider"),h=n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,v=n.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o,"reference")}:void 0,T=u.supportsProperties(n)&&n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0,E=n.services.size>0?{type:"element",name:"services",children:this.normalizeIterable(n.services,o,"service")}:void 0;return{type:"element",name:l,attributes:{"bom-ref":n.bomRef.value},children:[p,Lh(n.group,"group",Av.normalizedString),jS(n.name,"name",Av.normalizedString),Lh(n.version,"version",Av.normalizedString),Lh(n.description,"description",Av.normalizedString),h,v,T,E].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.ServiceNormalizer=$Oe;var YOe=class extends ib{static{e(this,"ComponentEvidenceNormalizer")}normalize(n,o,l){let u=n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,p=n.copyright.size>0?{type:"element",name:"copyright",children:_Zt(n.copyright,o,"text")}:void 0;return{type:"element",name:l,children:[u,p].filter(Ob.isNotUndefined)}}};hp.ComponentEvidenceNormalizer=YOe;var QOe=class extends ib{static{e(this,"LicenseNormalizer")}constructor(){super(...arguments),vZ.add(this)}normalize(n,o){switch(!0){case n instanceof cge.NamedLicense:return zB(this,vZ,"m",zut).call(this,n,o);case n instanceof cge.SpdxLicense:return(0,xpr.isSupportedSpdxId)(n.id)?zB(this,vZ,"m",uZt).call(this,n,o):zB(this,vZ,"m",zut).call(this,new cge.NamedLicense(n.id,{url:n.url}),o);case n instanceof cge.LicenseExpression:return zB(this,vZ,"m",Gut).call(this,n);default:throw new TypeError("Unexpected LicenseChoice")}}normalizeIterable(n,o){let l=o.sortLists??!1?n.sorted():Array.from(n);if(l.length>1){let u=l.filter(p=>p instanceof cge.LicenseExpression);if(u.length>0)return[zB(this,vZ,"m",Gut).call(this,u[0])]}return l.map(u=>this.normalize(u,o))}};hp.LicenseNormalizer=QOe;vZ=new WeakSet,zut=e(function(n,o){let l=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0},children:[jS(n.name,"name",Av.normalizedString),n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o,"text"),SZ.XmlSchema.isAnyURI(l)?jS(l,"url"):void 0].filter(Ob.isNotUndefined)}},"_LicenseNormalizer_normalizeNamedLicense"),uZt=e(function(n,o){let l=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0},children:[jS(n.id,"id"),n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o,"text"),SZ.XmlSchema.isAnyURI(l)?jS(l,"url"):void 0].filter(Ob.isNotUndefined)}},"_LicenseNormalizer_normalizeSpdxLicense"),Gut=e(function(n){let o=jS(n.expression,"expression",Av.normalizedString);return o.attributes={acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0},o},"_LicenseNormalizer_normalizeLicenseExpression");var ZOe=class extends ib{static{e(this,"SWIDNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:l,attributes:{tagId:n.tagId,name:n.name,version:n.version||void 0,tagVersion:n.tagVersion,patch:n.patch===void 0?void 0:n.patch?"true":"false"},children:[n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o,"text"),SZ.XmlSchema.isAnyURI(u)?jS(u,"url"):void 0].filter(Ob.isNotUndefined)}}};hp.SWIDNormalizer=ZOe;var eFe=class extends ib{static{e(this,"ExternalReferenceNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url.toString()),p=this._factory.spec.supportsExternalReferenceHashes&&n.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(n.hashes,o,"hash")}:void 0;return this._factory.spec.supportsExternalReferenceType(n.type)&&SZ.XmlSchema.isAnyURI(u)?{type:"element",name:l,attributes:{type:n.type},children:[jS(u,"url"),Lh(n.comment,"comment"),p].filter(Ob.isNotUndefined)}:void 0}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.ExternalReferenceNormalizer=eFe;var tFe=class extends ib{static{e(this,"AttachmentNormalizer")}normalize(n,o,l){return{type:"element",name:l,attributes:{"content-type":n.contentType?(0,Av.normalizedString)(n.contentType):void 0,encoding:n.encoding||void 0},children:n.content.toString()}}};hp.AttachmentNormalizer=tFe;var nFe=class extends ib{static{e(this,"PropertyNormalizer")}normalize(n,o,l){return{type:"element",name:l,attributes:{name:n.name},children:(0,Av.normalizedString)(n.value)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.PropertyNormalizer=nFe;var rFe=class extends ib{static{e(this,"DependencyGraphNormalizer")}constructor(){super(...arguments),Uut.add(this)}normalize(n,o,l){let u=new Map;if(n.metadata.component!==void 0){u.set(n.metadata.component.bomRef,n.metadata.component.dependencies);for(let h of n.metadata.component.components[But.treeIteratorSymbol]())u.set(h.bomRef,h.dependencies)}for(let h of n.components[But.treeIteratorSymbol]())u.set(h.bomRef,h.dependencies);for(let h of n.services[But.treeIteratorSymbol]())u.set(h.bomRef,h.dependencies);let p=[];for(let[h,v]of u){let T=zB(this,Uut,"m",dZt).call(this,h,v,u,o);(0,Ob.isNotUndefined)(T)&&p.push(T)}return(o.sortLists??!1)&&p.sort(({attributes:{ref:h}},{attributes:{ref:v}})=>h.localeCompare(v)),{type:"element",name:l,children:p}}};hp.DependencyGraphNormalizer=rFe;Uut=new WeakSet,dZt=e(function(n,o,l,u){let p=n.toString();if(p.length===0)return;let h=Array.from(o).filter(v=>l.has(v)&&v!==n).map(v=>v.toString()).filter(v=>v.length>0);return(u.sortLists??!1)&&h.sort((v,T)=>v.localeCompare(T)),{type:"element",name:"dependency",attributes:{ref:p},children:h.map(v=>({type:"element",name:"dependency",attributes:{ref:v}}))}},"_DependencyGraphNormalizer_normalizeDependency");var iFe=class extends ib{static{e(this,"VulnerabilityNormalizer")}normalize(n,o,l){let u=n.references.size>0?{type:"element",name:"references",children:this._factory.makeForVulnerabilityReference().normalizeIterable(n.references,o,"reference")}:void 0,p=n.ratings.size>0?{type:"element",name:"ratings",children:this._factory.makeForVulnerabilityRating().normalizeIterable(n.ratings,o,"rating")}:void 0,h=n.cwes.size>0?{type:"element",name:"cwes",children:(o.sortLists?n.cwes.sorted():Array.from(n.cwes)).map(C=>jS(C,"cwe"))}:void 0,v=n.advisories.size>0?{type:"element",name:"advisories",children:this._factory.makeForVulnerabilityAdvisory().normalizeIterable(n.advisories,o,"advisory")}:void 0,T=n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o,"tools"):void 0,E=n.affects.size>0?{type:"element",name:"affects",children:this._factory.makeForVulnerabilityAffect().normalizeIterable(n.affects,o,"target")}:void 0,D=n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0;return{type:"element",name:l,attributes:{"bom-ref":n.bomRef.value||void 0},children:[Lh(n.id,"id",Av.normalizedString),n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o,"source"),u,p,h,Lh(n.description,"description"),Lh(n.detail,"detail"),Lh(n.recommendation,"recommendation"),v,jOe(n.created,"created"),jOe(n.created,"published"),jOe(n.created,"updated"),n.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(n.credits,o,"credits"),T,n.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(n.analysis,o,"analysis"),E,D].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityNormalizer=iFe;var oFe=class extends ib{static{e(this,"VulnerabilitySourceNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:l,children:[Lh(n.name,"name",Av.normalizedString),SZ.XmlSchema.isAnyURI(u)?jS(u,"url"):void 0].filter(Ob.isNotUndefined)}}};hp.VulnerabilitySourceNormalizer=oFe;var aFe=class extends ib{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[jS(n.id,"id"),this._factory.makeForVulnerabilitySource().normalize(n.source,o,"source")]}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityReferenceNormalizer=aFe;var sFe=class extends ib{static{e(this,"VulnerabilityRatingNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o,"source"),Lh(n.score,"score"),Lh(n.severity,"severity"),this._factory.spec.supportsVulnerabilityRatingMethod(n.method)?Lh(n.method,"method"):void 0,Lh(n.vector,"vector",Av.normalizedString),Lh(n.justification,"justification")].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityRatingNormalizer=sFe;var lFe=class extends ib{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url.toString());if(SZ.XmlSchema.isAnyURI(u))return{type:"element",name:l,children:[Lh(n.title,"title"),jS(u,"url")].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.VulnerabilityAdvisoryNormalizer=lFe;var cFe=class extends ib{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(n,o,l){let u=n.organizations.size>0?{type:"element",name:"organizations",children:this._factory.makeForOrganizationalEntity().normalizeIterable(n.organizations,o,"organization")}:void 0,p=n.individuals.size>0?{type:"element",name:"individuals",children:this._factory.makeForOrganizationalContact().normalizeIterable(n.individuals,o,"individual")}:void 0;return{type:"element",name:l,children:[u,p].filter(Ob.isNotUndefined)}}};hp.VulnerabilityCreditsNormalizer=cFe;var uFe=class extends ib{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(n,o,l){let u=n.response.size>0?{type:"element",name:"responses",children:(o.sortLists??!1?n.response.sorted():Array.from(n.response)).map(p=>jS(p,"response"))}:void 0;return{type:"element",name:l,children:[Lh(n.state,"state"),Lh(n.justification,"justification"),u,Lh(n.detail,"detail")].filter(Ob.isNotUndefined)}}};hp.VulnerabilityAnalysisNormalizer=uFe;var dFe=class extends ib{static{e(this,"VulnerabilityAffectNormalizer")}normalize(n,o,l){let u=n.versions.size>0?{type:"element",name:"versions",children:this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(n.versions,o,"version")}:void 0;return{type:"element",name:l,children:[jS(n.ref,"ref"),u].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityAffectNormalizer=dFe;var pFe=class extends ib{static{e(this,"VulnerabilityAffectedVersionNormalizer")}constructor(){super(...arguments),WOe.add(this)}normalize(n,o,l){switch(!0){case n instanceof lZt.AffectedSingleVersion:return zB(this,WOe,"m",pZt).call(this,n,l);case n instanceof lZt.AffectedVersionRange:return zB(this,WOe,"m",fZt).call(this,n,l);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityAffectedVersionNormalizer=pFe;WOe=new WeakSet,pZt=e(function(n,o){return{type:"element",name:o,children:[jS(n.version,"version",Av.normalizedString),Lh(n.status,"status")].filter(Ob.isNotUndefined)}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion"),fZt=e(function(n,o){return{type:"element",name:o,children:[jS(n.range,"range",Av.normalizedString),Lh(n.status,"status")].filter(Ob.isNotUndefined)}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedVersionRange");var fFe=e(i=>i,"noTEM");function Lh(i,n,o=fFe){let l=o(i?.toString()??"");return l.length>0?jS(l,n):void 0}e(Lh,"makeOptionalTextElement");function jS(i,n,o=fFe){return{type:"element",name:n,children:o(i.toString())}}e(jS,"makeTextElement");function _Zt(i,n,o,l=fFe){let u=Array.from(i,p=>jS(p,o,l));return(n.sortLists??!1)&&u.sort(({children:p},{children:h})=>p.localeCompare(h)),u}e(_Zt,"makeTextElementIter");function jOe(i,n,o=fFe){let l=i?.toISOString();return l===void 0?void 0:jS(l,n,o)}e(jOe,"makeOptionalDateTimeElement")});var hZt=ft(ase=>{"use strict";Z();ne();ee();te();Object.defineProperty(ase,"__esModule",{value:!0});ase.Types=ase.Normalize=void 0;ase.Normalize=mZt();ase.Types=Fut()});var Kut=ft(UH=>{"use strict";Z();ne();ee();te();var Dpr=UH&&UH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},gZt=UH&&UH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},uge;Object.defineProperty(UH,"__esModule",{value:!0});UH.XmlBaseSerializer=void 0;var Apr=hZ(),Cpr=bOe(),wpr=wLe(),qut=class extends wpr.BaseSerializer{static{e(this,"XmlBaseSerializer")}constructor(n){if(!n.spec.supportsFormat(Apr.Format.XML))throw new Cpr.UnsupportedFormatError("Spec does not support XML format.");super(),uge.set(this,void 0),Dpr(this,uge,n,"f")}get normalizerFactory(){return gZt(this,uge,"f")}_normalize(n,o={}){return gZt(this,uge,"f").makeForBom().normalize(n,o)}};UH.XmlBaseSerializer=qut;uge=new WeakMap});var yZt=ft(K2=>{"use strict";Z();ne();ee();te();var Ipr=K2&&K2.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),dge=K2&&K2.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Ipr(n,i,o)};Object.defineProperty(K2,"__esModule",{value:!0});K2.XML=K2.JSON=K2.Types=void 0;dge(lct(),K2);dge(dct(),K2);K2.Types=oQt();dge(wLe(),K2);K2.JSON=GQt();dge(VQt(),K2);K2.XML=hZt();dge(Kut(),K2)});var vZt=ft(Hut=>{"use strict";Z();ne();ee();te();Object.defineProperty(Hut,"__esModule",{value:!0});Hut.default=Rpr;var Ppr=TLe();function Npr(i){let n=e(function(){throw new Ppr.OptPlugError(i)},"f");return n.fails=!0,Object.freeze(n)}e(Npr,"makeWIllThrow");function Rpr(i,n){for(let[,o]of n)try{return o()}catch{}return Npr(`No ${i} available.
31139
+ `),new Error(o)}return n.data}e(nsr,"getParsedNowConfigData");function rsr(i,n){let o=(0,Yar.readJson)(i,"",n);if(!osr(o))throw new Error(`Config file '${_ae.FILE_NAME}' is empty or malformed`);let l=tsr(o);if(l.errors.length>0)throw new Error(`${_ae.FILE_NAME} - error: ${isr(l.errors)}`);return o}e(rsr,"validateNowConfigJsonFile");function isr(i){return i.map(n=>n.path.length?`"${n.path.join(".")}" ${n.message}`:n.message==="is of prohibited type [object Object]"?n.argument.message:n.message).join(", ")}e(isr,"formatValidationErrorMessage");function uXt(i,n){return(n instanceof Qar.Compiler?!!n.getSourceFile(i):xst.FileSystem.existsSync(n,i))?rsr(i,n):null}e(uXt,"readNowConfigJsonFile");function osr(i){if(!i||typeof i!="object"||Array.isArray(i))return!1;for(let n in i)if(typeof n!="string")return!1;return!0}e(osr,"isObjectWithStringKeys");var asr={moduleDir:{replacedBy:"serverModulesDir",transfer:!0},compileOutputDir:{replacedBy:"appOutputDir",transfer:!0},entitiesDir:{replacedBy:"fluentDir",transfer:!0},transpiledSourceDir:{replacedBy:"modulePaths"},sourceDir:{}};function ssr(i,n){for(let[o,{replacedBy:l,transfer:u}]of Object.entries(asr))o in i&&(n.warn(`'${o}' is deprecated${l?`, please replace with '${l}'`:" and can be removed"}`),u&&l&&(i[l]=i[o]))}e(ssr,"replaceDeprecatedFields");function lsr(i){for(let[n,o]of Object.entries(_ae.ERROR_ON_DEPRECATED_PROPS))if(n in i)throw new Error(o)}e(lsr,"checkRemovedProperties")});var fXt=ft(wMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(wMe,"__esModule",{value:!0});wMe.createConsoleLogger=csr;wMe.createSilentLogger=usr;function csr(){return console}e(csr,"createConsoleLogger");function usr(){return{info:e(()=>{},"info"),warn:e(()=>{},"warn"),error:e(()=>{},"error"),debug:e(()=>{},"debug")}}e(usr,"createSilentLogger")});var YXt=ft(Ff=>{"use strict";Z();ne();ee();te();var _Xt={},gXt={};gXt.default=function(i,n,o,l,u){var p=new Worker(_Xt[n]||(_Xt[n]=URL.createObjectURL(new Blob([i+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return p.onmessage=function(h){var v=h.data,T=v.$e$;if(T){var E=new Error(T[0]);E.code=T[1],E.stack=T[2],u(E,null)}else u(null,v)},p.postMessage(o,l),p};var Sm=Uint8Array,PP=Uint16Array,Phe=Int32Array,vae=new Sm([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),bae=new Sm([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Che=new Sm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yXt=e(function(i,n){for(var o=new PP(31),l=0;l<31;++l)o[l]=n+=1<<i[l-1];for(var u=new Phe(o[30]),l=1;l<30;++l)for(var p=o[l];p<o[l+1];++p)u[p]=p-o[l]<<5|l;return{b:o,r:u}},"freb"),vXt=yXt(vae,2),Rst=vXt.b,kMe=vXt.r;Rst[28]=258,kMe[258]=28;var bXt=yXt(bae,0),SXt=bXt.b,Dst=bXt.r,whe=new PP(32768);for(Iy=0;Iy<32768;++Iy)GG=(Iy&43690)>>1|(Iy&21845)<<1,GG=(GG&52428)>>2|(GG&13107)<<2,GG=(GG&61680)>>4|(GG&3855)<<4,whe[Iy]=((GG&65280)>>8|(GG&255)<<8)>>1;var GG,Iy,P3=e(function(i,n,o){for(var l=i.length,u=0,p=new PP(n);u<l;++u)i[u]&&++p[i[u]-1];var h=new PP(n);for(u=1;u<n;++u)h[u]=h[u-1]+p[u-1]<<1;var v;if(o){v=new PP(1<<n);var T=15-n;for(u=0;u<l;++u)if(i[u])for(var E=u<<4|i[u],D=n-i[u],C=h[i[u]-1]++<<D,w=C|(1<<D)-1;C<=w;++C)v[whe[C]>>T]=E}else for(v=new PP(l),u=0;u<l;++u)i[u]&&(v[u]=whe[h[i[u]-1]++]>>15-i[u]);return v},"hMap"),UG=new Sm(288);for(Iy=0;Iy<144;++Iy)UG[Iy]=8;var Iy;for(Iy=144;Iy<256;++Iy)UG[Iy]=9;var Iy;for(Iy=256;Iy<280;++Iy)UG[Iy]=7;var Iy;for(Iy=280;Iy<288;++Iy)UG[Iy]=8;var Iy,gae=new Sm(32);for(Iy=0;Iy<32;++Iy)gae[Iy]=5;var Iy,EXt=P3(UG,9,0),xXt=P3(UG,9,1),TXt=P3(gae,5,0),DXt=P3(gae,5,1),PMe=e(function(i){for(var n=i[0],o=1;o<i.length;++o)i[o]>n&&(n=i[o]);return n},"max"),I3=e(function(i,n,o){var l=n/8|0;return(i[l]|i[l+1]<<8)>>(n&7)&o},"bits"),NMe=e(function(i,n){var o=n/8|0;return(i[o]|i[o+1]<<8|i[o+2]<<16)>>(n&7)},"bits16"),Sae=e(function(i){return(i+7)/8|0},"shft"),N3=e(function(i,n,o){return(n==null||n<0)&&(n=0),(o==null||o>i.length)&&(o=i.length),new Sm(i.subarray(n,o))},"slc");Ff.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var AXt=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Np=e(function(i,n,o){var l=new Error(n||AXt[i]);if(l.code=i,Error.captureStackTrace&&Error.captureStackTrace(l,Np),!o)throw l;return l},"err"),Nhe=e(function(i,n,o,l){var u=i.length,p=l?l.length:0;if(!u||n.f&&!n.l)return o||new Sm(0);var h=!o,v=h||n.i!=2,T=n.i;h&&(o=new Sm(u*3));var E=e(function(Tt){var tn=o.length;if(Tt>tn){var En=new Sm(Math.max(tn*2,Tt));En.set(o),o=En}},"cbuf"),D=n.f||0,C=n.p||0,w=n.b||0,W=n.l,V=n.d,B=n.m,k=n.n,F=u*8;do{if(!W){D=I3(i,C,1);var $=I3(i,C+1,3);if(C+=3,$)if($==1)W=xXt,V=DXt,B=9,k=5;else if($==2){var ve=I3(i,C,31)+257,Ce=I3(i,C+10,15)+4,be=ve+I3(i,C+5,31)+1;C+=14;for(var qe=new Sm(be),yt=new Sm(19),Ct=0;Ct<Ce;++Ct)yt[Che[Ct]]=I3(i,C+Ct*3,7);C+=Ce*3;for(var Bt=PMe(yt),fn=(1<<Bt)-1,Fn=P3(yt,Bt,1),Ct=0;Ct<be;){var Sn=Fn[I3(i,C,fn)];C+=Sn&15;var Y=Sn>>4;if(Y<16)qe[Ct++]=Y;else{var Qt=0,on=0;for(Y==16?(on=3+I3(i,C,3),C+=2,Qt=qe[Ct-1]):Y==17?(on=3+I3(i,C,7),C+=3):Y==18&&(on=11+I3(i,C,127),C+=7);on--;)qe[Ct++]=Qt}}var It=qe.subarray(0,ve),Kt=qe.subarray(ve);B=PMe(It),k=PMe(Kt),W=P3(It,B,1),V=P3(Kt,k,1)}else Np(1);else{var Y=Sae(C)+4,ie=i[Y-4]|i[Y-3]<<8,fe=Y+ie;if(fe>u){T&&Np(0);break}v&&E(w+ie),o.set(i.subarray(Y,fe),w),n.b=w+=ie,n.p=C=fe*8,n.f=D;continue}if(C>F){T&&Np(0);break}}v&&E(w+131072);for(var ht=(1<<B)-1,wn=(1<<k)-1,Gn=C;;Gn=C){var Qt=W[NMe(i,C)&ht],_n=Qt>>4;if(C+=Qt&15,C>F){T&&Np(0);break}if(Qt||Np(2),_n<256)o[w++]=_n;else if(_n==256){Gn=C,W=null;break}else{var Bn=_n-254;if(_n>264){var Ct=_n-257,cr=vae[Ct];Bn=I3(i,C,(1<<cr)-1)+Rst[Ct],C+=cr}var Yt=V[NMe(i,C)&wn],Ft=Yt>>4;Yt||Np(3),C+=Yt&15;var Kt=SXt[Ft];if(Ft>3){var cr=bae[Ft];Kt+=NMe(i,C)&(1<<cr)-1,C+=cr}if(C>F){T&&Np(0);break}v&&E(w+131072);var pt=w+Bn;if(w<Kt){var me=p-Kt,zt=Math.min(Kt,pt);for(me+w<0&&Np(3);w<zt;++w)o[w]=l[me+w]}for(;w<pt;++w)o[w]=o[w-Kt]}}n.l=W,n.p=Gn,n.b=w,n.f=D,W&&(D=1,n.m=B,n.d=V,n.n=k)}while(!D);return w!=o.length&&h?N3(o,0,w):o.subarray(0,w)},"inflt"),kB=e(function(i,n,o){o<<=n&7;var l=n/8|0;i[l]|=o,i[l+1]|=o>>8},"wbits"),mae=e(function(i,n,o){o<<=n&7;var l=n/8|0;i[l]|=o,i[l+1]|=o>>8,i[l+2]|=o>>16},"wbits16"),RMe=e(function(i,n){for(var o=[],l=0;l<i.length;++l)i[l]&&o.push({s:l,f:i[l]});var u=o.length,p=o.slice();if(!u)return{t:CH,l:0};if(u==1){var h=new Sm(o[0].s+1);return h[o[0].s]=1,{t:h,l:1}}o.sort(function(fe,ve){return fe.f-ve.f}),o.push({s:-1,f:25001});var v=o[0],T=o[1],E=0,D=1,C=2;for(o[0]={s:-1,f:v.f+T.f,l:v,r:T};D!=u-1;)v=o[o[E].f<o[C].f?E++:C++],T=o[E!=D&&o[E].f<o[C].f?E++:C++],o[D++]={s:-1,f:v.f+T.f,l:v,r:T};for(var w=p[0].s,l=1;l<u;++l)p[l].s>w&&(w=p[l].s);var W=new PP(w+1),V=MMe(o[D-1],W,0);if(V>n){var l=0,B=0,k=V-n,F=1<<k;for(p.sort(function(ve,Ce){return W[Ce.s]-W[ve.s]||ve.f-Ce.f});l<u;++l){var $=p[l].s;if(W[$]>n)B+=F-(1<<V-W[$]),W[$]=n;else break}for(B>>=k;B>0;){var Y=p[l].s;W[Y]<n?B-=1<<n-W[Y]++-1:++l}for(;l>=0&&B;--l){var ie=p[l].s;W[ie]==n&&(--W[ie],++B)}V=n}return{t:new Sm(W),l:V}},"hTree"),MMe=e(function(i,n,o){return i.s==-1?Math.max(MMe(i.l,n,o+1),MMe(i.r,n,o+1)):n[i.s]=o},"ln"),Ast=e(function(i){for(var n=i.length;n&&!i[--n];);for(var o=new PP(++n),l=0,u=i[0],p=1,h=e(function(T){o[l++]=T},"w"),v=1;v<=n;++v)if(i[v]==u&&v!=n)++p;else{if(!u&&p>2){for(;p>138;p-=138)h(32754);p>2&&(h(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(h(u),--p;p>6;p-=6)h(8304);p>2&&(h(p-3<<5|8208),p=0)}for(;p--;)h(u);p=1,u=i[v]}return{c:o.subarray(0,l),n}},"lc"),hae=e(function(i,n){for(var o=0,l=0;l<n.length;++l)o+=i[l]*n[l];return o},"clen"),kst=e(function(i,n,o){var l=o.length,u=Sae(n+2);i[u]=l&255,i[u+1]=l>>8,i[u+2]=i[u]^255,i[u+3]=i[u+1]^255;for(var p=0;p<l;++p)i[u+p+4]=o[p];return(u+4+l)*8},"wfblk"),Cst=e(function(i,n,o,l,u,p,h,v,T,E,D){kB(n,D++,o),++u[256];for(var C=RMe(u,15),w=C.t,W=C.l,V=RMe(p,15),B=V.t,k=V.l,F=Ast(w),$=F.c,Y=F.n,ie=Ast(B),fe=ie.c,ve=ie.n,Ce=new PP(19),be=0;be<$.length;++be)++Ce[$[be]&31];for(var be=0;be<fe.length;++be)++Ce[fe[be]&31];for(var qe=RMe(Ce,7),yt=qe.t,Ct=qe.l,Bt=19;Bt>4&&!yt[Che[Bt-1]];--Bt);var fn=E+5<<3,Fn=hae(u,UG)+hae(p,gae)+h,Sn=hae(u,w)+hae(p,B)+h+14+3*Bt+hae(Ce,yt)+2*Ce[16]+3*Ce[17]+7*Ce[18];if(T>=0&&fn<=Fn&&fn<=Sn)return kst(n,D,i.subarray(T,T+E));var Qt,on,It,Kt;if(kB(n,D,1+(Sn<Fn)),D+=2,Sn<Fn){Qt=P3(w,W,0),on=w,It=P3(B,k,0),Kt=B;var ht=P3(yt,Ct,0);kB(n,D,Y-257),kB(n,D+5,ve-1),kB(n,D+10,Bt-4),D+=14;for(var be=0;be<Bt;++be)kB(n,D+3*be,yt[Che[be]]);D+=3*Bt;for(var wn=[$,fe],Gn=0;Gn<2;++Gn)for(var _n=wn[Gn],be=0;be<_n.length;++be){var Bn=_n[be]&31;kB(n,D,ht[Bn]),D+=yt[Bn],Bn>15&&(kB(n,D,_n[be]>>5&127),D+=_n[be]>>12)}}else Qt=EXt,on=UG,It=TXt,Kt=gae;for(var be=0;be<v;++be){var cr=l[be];if(cr>255){var Bn=cr>>18&31;mae(n,D,Qt[Bn+257]),D+=on[Bn+257],Bn>7&&(kB(n,D,cr>>23&31),D+=vae[Bn]);var Yt=cr&31;mae(n,D,It[Yt]),D+=Kt[Yt],Yt>3&&(mae(n,D,cr>>5&8191),D+=bae[Yt])}else mae(n,D,Qt[cr]),D+=on[cr]}return mae(n,D,Qt[256]),D+on[256]},"wblk"),CXt=new Phe([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),CH=new Sm(0),wXt=e(function(i,n,o,l,u,p){var h=p.z||i.length,v=new Sm(l+h+5*(1+Math.ceil(h/7e3))+u),T=v.subarray(l,v.length-u),E=p.l,D=(p.r||0)&7;if(n){D&&(T[0]=p.r>>3);for(var C=CXt[n-1],w=C>>13,W=C&8191,V=(1<<o)-1,B=p.p||new PP(32768),k=p.h||new PP(V+1),F=Math.ceil(o/3),$=2*F,Y=e(function(Kn){return(i[Kn]^i[Kn+1]<<F^i[Kn+2]<<$)&V},"hsh"),ie=new Phe(25e3),fe=new PP(288),ve=new PP(32),Ce=0,be=0,qe=p.i||0,yt=0,Ct=p.w||0,Bt=0;qe+2<h;++qe){var fn=Y(qe),Fn=qe&32767,Sn=k[fn];if(B[Fn]=Sn,k[fn]=Fn,Ct<=qe){var Qt=h-qe;if((Ce>7e3||yt>24576)&&(Qt>423||!E)){D=Cst(i,T,0,ie,fe,ve,be,yt,Bt,qe-Bt,D),yt=Ce=be=0,Bt=qe;for(var on=0;on<286;++on)fe[on]=0;for(var on=0;on<30;++on)ve[on]=0}var It=2,Kt=0,ht=W,wn=Fn-Sn&32767;if(Qt>2&&fn==Y(qe-wn))for(var Gn=Math.min(w,Qt)-1,_n=Math.min(32767,qe),Bn=Math.min(258,Qt);wn<=_n&&--ht&&Fn!=Sn;){if(i[qe+It]==i[qe+It-wn]){for(var cr=0;cr<Bn&&i[qe+cr]==i[qe+cr-wn];++cr);if(cr>It){if(It=cr,Kt=wn,cr>Gn)break;for(var Yt=Math.min(wn,cr-2),Ft=0,on=0;on<Yt;++on){var pt=qe-wn+on&32767,me=B[pt],zt=pt-me&32767;zt>Ft&&(Ft=zt,Sn=pt)}}}Fn=Sn,Sn=B[Fn],wn+=Fn-Sn&32767}if(Kt){ie[yt++]=268435456|kMe[It]<<18|Dst[Kt];var Tt=kMe[It]&31,tn=Dst[Kt]&31;be+=vae[Tt]+bae[tn],++fe[257+Tt],++ve[tn],Ct=qe+It,++Ce}else ie[yt++]=i[qe],++fe[i[qe]]}}for(qe=Math.max(qe,Ct);qe<h;++qe)ie[yt++]=i[qe],++fe[i[qe]];D=Cst(i,T,E,ie,fe,ve,be,yt,Bt,qe-Bt,D),E||(p.r=D&7|T[D/8|0]<<3,D-=7,p.h=k,p.p=B,p.i=qe,p.w=Ct)}else{for(var qe=p.w||0;qe<h+E;qe+=65535){var En=qe+65535;En>=h&&(T[D/8|0]=E,En=h),D=kst(T,D+1,i.subarray(qe,En))}p.i=h}return N3(v,0,l+Sae(D)+u)},"dflt"),IXt=function(){for(var i=new Int32Array(256),n=0;n<256;++n){for(var o=n,l=9;--l;)o=(o&1&&-306674912)^o>>>1;i[n]=o}return i}(),Eae=e(function(){var i=-1;return{p:e(function(n){for(var o=i,l=0;l<n.length;++l)o=IXt[o&255^n[l]]^o>>>8;i=o},"p"),d:e(function(){return~i},"d")}},"crc"),GMe=e(function(){var i=1,n=0;return{p:e(function(o){for(var l=i,u=n,p=o.length|0,h=0;h!=p;){for(var v=Math.min(h+2655,p);h<v;++h)u+=l+=o[h];l=(l&65535)+15*(l>>16),u=(u&65535)+15*(u>>16)}i=l,n=u},"p"),d:e(function(){return i%=65521,n%=65521,(i&255)<<24|(i&65280)<<8|(n&255)<<8|n>>8},"d")}},"adler"),aZ=e(function(i,n,o,l,u){if(!u&&(u={l:1},n.dictionary)){var p=n.dictionary.subarray(-32768),h=new Sm(p.length+i.length);h.set(p),h.set(i,p.length),i=h,u.w=p.length}return wXt(i,n.level==null?6:n.level,n.mem==null?u.l?Math.ceil(Math.max(8,Math.min(13,Math.log(i.length)))*1.5):20:12+n.mem,o,l,u)},"dopt"),Rhe=e(function(i,n){var o={};for(var l in i)o[l]=i[l];for(var l in n)o[l]=n[l];return o},"mrg"),mXt=e(function(i,n,o){for(var l=i(),u=i.toString(),p=u.slice(u.indexOf("[")+1,u.lastIndexOf("]")).replace(/\s+/g,"").split(","),h=0;h<l.length;++h){var v=l[h],T=p[h];if(typeof v=="function"){n+=";"+T+"=";var E=v.toString();if(v.prototype)if(E.indexOf("[native code]")!=-1){var D=E.indexOf(" ",8)+1;n+=E.slice(D,E.indexOf("(",D))}else{n+=E;for(var C in v.prototype)n+=";"+T+".prototype."+C+"="+v.prototype[C].toString()}else n+=E}else o[T]=v}return n},"wcln"),IMe=[],dsr=e(function(i){var n=[];for(var o in i)i[o].buffer&&n.push((i[o]=new i[o].constructor(i[o])).buffer);return n},"cbfs"),PXt=e(function(i,n,o,l){if(!IMe[o]){for(var u="",p={},h=i.length-1,v=0;v<h;++v)u=mXt(i[v],u,p);IMe[o]={c:mXt(i[h],u,p),e:p}}var T=Rhe({},IMe[o].e);return(0,gXt.default)(IMe[o].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+n.toString()+"}",o,T,dsr(T),l)},"wrkr"),xae=e(function(){return[Sm,PP,Phe,vae,bae,Che,Rst,SXt,xXt,DXt,whe,AXt,P3,PMe,I3,NMe,Sae,N3,Np,Nhe,Cae,PH,Mst]},"bInflt"),Tae=e(function(){return[Sm,PP,Phe,vae,bae,Che,kMe,Dst,EXt,UG,TXt,gae,whe,CXt,CH,P3,kB,mae,RMe,MMe,Ast,hae,kst,Cst,Sae,N3,wXt,aZ,khe,PH]},"bDflt"),NXt=e(function(){return[Lst,Fst,wy,Eae,IXt]},"gze"),RXt=e(function(){return[Ost,LXt]},"guze"),kXt=e(function(){return[Bst,wy,GMe]},"zle"),MXt=e(function(){return[Wst]},"zule"),PH=e(function(i){return postMessage(i,[i.buffer])},"pbf"),Mst=e(function(i){return i&&{out:i.size&&new Sm(i.size),dictionary:i.dictionary}},"gopt"),Dae=e(function(i,n,o,l,u,p){var h=PXt(o,l,u,function(v,T){h.terminate(),p(v,T)});return h.postMessage([i,n],n.consume?[i.buffer]:[]),function(){h.terminate()}},"cbify"),k3=e(function(i){return i.ondata=function(n,o){return postMessage([n,o],[n.buffer])},function(n){n.data.length?(i.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):i.flush()}},"astrm"),Aae=e(function(i,n,o,l,u,p,h){var v,T=PXt(i,l,u,function(E,D){E?(T.terminate(),n.ondata.call(n,E)):Array.isArray(D)?D.length==1?(n.queuedSize-=D[0],n.ondrain&&n.ondrain(D[0])):(D[1]&&T.terminate(),n.ondata.call(n,E,D[0],D[1])):h(D)});T.postMessage(o),n.queuedSize=0,n.push=function(E,D){n.ondata||Np(5),v&&n.ondata(Np(4,0,1),null,!!D),n.queuedSize+=E.length,T.postMessage([E,v=D],[E.buffer])},n.terminate=function(){T.terminate()},p&&(n.flush=function(){T.postMessage([])})},"astrmify"),IP=e(function(i,n){return i[n]|i[n+1]<<8},"b2"),kx=e(function(i,n){return(i[n]|i[n+1]<<8|i[n+2]<<16|i[n+3]<<24)>>>0},"b4"),Tst=e(function(i,n){return kx(i,n)+kx(i,n+4)*4294967296},"b8"),wy=e(function(i,n,o){for(;o;++n)i[n]=o,o>>>=8},"wbytes"),Lst=e(function(i,n){var o=n.filename;if(i[0]=31,i[1]=139,i[2]=8,i[8]=n.level<2?4:n.level==9?2:0,i[9]=3,n.mtime!=0&&wy(i,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),o){i[3]=8;for(var l=0;l<=o.length;++l)i[l+10]=o.charCodeAt(l)}},"gzh"),Ost=e(function(i){(i[0]!=31||i[1]!=139||i[2]!=8)&&Np(6,"invalid gzip data");var n=i[3],o=10;n&4&&(o+=(i[10]|i[11]<<8)+2);for(var l=(n>>3&1)+(n>>4&1);l>0;l-=!i[o++]);return o+(n&2)},"gzs"),LXt=e(function(i){var n=i.length;return(i[n-4]|i[n-3]<<8|i[n-2]<<16|i[n-1]<<24)>>>0},"gzl"),Fst=e(function(i){return 10+(i.filename?i.filename.length+1:0)},"gzhl"),Bst=e(function(i,n){var o=n.level,l=o==0?0:o<6?1:o==9?3:2;if(i[0]=120,i[1]=l<<6|(n.dictionary&&32),i[1]|=31-(i[0]<<8|i[1])%31,n.dictionary){var u=GMe();u.p(n.dictionary),wy(i,2,u.d())}},"zlh"),Wst=e(function(i,n){return((i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31)&&Np(6,"invalid zlib data"),(i[1]>>5&1)==+!n&&Np(6,"invalid zlib data: "+(i[1]&32?"need":"unexpected")+" dictionary"),(i[1]>>3&4)+2},"zls");function sZ(i,n){return typeof i=="function"&&(n=i,i={}),this.ondata=n,i}e(sZ,"StrmOpt");var R3=function(){function i(n,o){if(typeof n=="function"&&(o=n,n={}),this.ondata=o,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Sm(98304),this.o.dictionary){var l=this.o.dictionary.subarray(-32768);this.b.set(l,32768-l.length),this.s.i=32768-l.length}}return e(i,"Deflate"),i.prototype.p=function(n,o){this.ondata(aZ(n,this.o,0,0,this.s),o)},i.prototype.push=function(n,o){this.ondata||Np(5),this.s.l&&Np(4);var l=n.length+this.s.z;if(l>this.b.length){if(l>2*this.b.length-32768){var u=new Sm(l&-32768);u.set(this.b.subarray(0,this.s.z)),this.b=u}var p=this.b.length-this.s.z;this.b.set(n.subarray(0,p),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(p),32768),this.s.z=n.length-p+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=o&1,(this.s.z>this.s.w+8191||o)&&(this.p(this.b,o||!1),this.s.w=this.s.i,this.s.i-=2)},i.prototype.flush=function(){this.ondata||Np(5),this.s.l&&Np(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},i}();Ff.Deflate=R3;var OXt=function(){function i(n,o){Aae([Tae,function(){return[k3,R3]}],this,sZ.call(this,n,o),function(l){var u=new R3(l.data);onmessage=k3(u)},6,1)}return e(i,"AsyncDeflate"),i}();Ff.AsyncDeflate=OXt;function FXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[Tae],function(l){return PH(khe(l.data[0],l.data[1]))},0,o)}e(FXt,"deflate");Ff.deflate=FXt;function khe(i,n){return aZ(i,n||{},0,0)}e(khe,"deflateSync");Ff.deflateSync=khe;var KR=function(){function i(n,o){typeof n=="function"&&(o=n,n={}),this.ondata=o;var l=n&&n.dictionary&&n.dictionary.subarray(-32768);this.s={i:0,b:l?l.length:0},this.o=new Sm(32768),this.p=new Sm(0),l&&this.o.set(l)}return e(i,"Inflate"),i.prototype.e=function(n){if(this.ondata||Np(5),this.d&&Np(4),!this.p.length)this.p=n;else if(n.length){var o=new Sm(this.p.length+n.length);o.set(this.p),o.set(n,this.p.length),this.p=o}},i.prototype.c=function(n){this.s.i=+(this.d=n||!1);var o=this.s.b,l=Nhe(this.p,this.s,this.o);this.ondata(N3(l,o,this.s.b),this.d),this.o=N3(l,this.s.b-32768),this.s.b=this.o.length,this.p=N3(this.p,this.s.p/8|0),this.s.p&=7},i.prototype.push=function(n,o){this.e(n),this.c(o)},i}();Ff.Inflate=KR;var jst=function(){function i(n,o){Aae([xae,function(){return[k3,KR]}],this,sZ.call(this,n,o),function(l){var u=new KR(l.data);onmessage=k3(u)},7,0)}return e(i,"AsyncInflate"),i}();Ff.AsyncInflate=jst;function zst(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[xae],function(l){return PH(Cae(l.data[0],Mst(l.data[1])))},1,o)}e(zst,"inflate");Ff.inflate=zst;function Cae(i,n){return Nhe(i,{i:2},n&&n.out,n&&n.dictionary)}e(Cae,"inflateSync");Ff.inflateSync=Cae;var LMe=function(){function i(n,o){this.c=Eae(),this.l=0,this.v=1,R3.call(this,n,o)}return e(i,"Gzip"),i.prototype.push=function(n,o){this.c.p(n),this.l+=n.length,R3.prototype.push.call(this,n,o)},i.prototype.p=function(n,o){var l=aZ(n,this.o,this.v&&Fst(this.o),o&&8,this.s);this.v&&(Lst(l,this.o),this.v=0),o&&(wy(l,l.length-8,this.c.d()),wy(l,l.length-4,this.l)),this.ondata(l,o)},i.prototype.flush=function(){R3.prototype.flush.call(this)},i}();Ff.Gzip=LMe;Ff.Compress=LMe;var BXt=function(){function i(n,o){Aae([Tae,NXt,function(){return[k3,R3,LMe]}],this,sZ.call(this,n,o),function(l){var u=new LMe(l.data);onmessage=k3(u)},8,1)}return e(i,"AsyncGzip"),i}();Ff.AsyncGzip=BXt;Ff.AsyncCompress=BXt;function WXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[Tae,NXt,function(){return[OMe]}],function(l){return PH(OMe(l.data[0],l.data[1]))},2,o)}e(WXt,"gzip");Ff.gzip=WXt;Ff.compress=WXt;function OMe(i,n){n||(n={});var o=Eae(),l=i.length;o.p(i);var u=aZ(i,n,Fst(n),8),p=u.length;return Lst(u,n),wy(u,p-8,o.d()),wy(u,p-4,l),u}e(OMe,"gzipSync");Ff.gzipSync=OMe;Ff.compressSync=OMe;var FMe=function(){function i(n,o){this.v=1,this.r=0,KR.call(this,n,o)}return e(i,"Gunzip"),i.prototype.push=function(n,o){if(KR.prototype.e.call(this,n),this.r+=n.length,this.v){var l=this.p.subarray(this.v-1),u=l.length>3?Ost(l):4;if(u>l.length){if(!o)return}else this.v>1&&this.onmember&&this.onmember(this.r-l.length);this.p=l.subarray(u),this.v=0}KR.prototype.c.call(this,o),this.s.f&&!this.s.l&&!o&&(this.v=Sae(this.s.p)+9,this.s={i:0},this.o=new Sm(0),this.push(new Sm(0),o))},i}();Ff.Gunzip=FMe;var jXt=function(){function i(n,o){var l=this;Aae([xae,RXt,function(){return[k3,KR,FMe]}],this,sZ.call(this,n,o),function(u){var p=new FMe(u.data);p.onmember=function(h){return postMessage(h)},onmessage=k3(p)},9,0,function(u){return l.onmember&&l.onmember(u)})}return e(i,"AsyncGunzip"),i}();Ff.AsyncGunzip=jXt;function zXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[xae,RXt,function(){return[BMe]}],function(l){return PH(BMe(l.data[0],l.data[1]))},3,o)}e(zXt,"gunzip");Ff.gunzip=zXt;function BMe(i,n){var o=Ost(i);return o+8>i.length&&Np(6,"invalid gzip data"),Nhe(i.subarray(o,-8),{i:2},n&&n.out||new Sm(LXt(i)),n&&n.dictionary)}e(BMe,"gunzipSync");Ff.gunzipSync=BMe;var wst=function(){function i(n,o){this.c=GMe(),this.v=1,R3.call(this,n,o)}return e(i,"Zlib"),i.prototype.push=function(n,o){this.c.p(n),R3.prototype.push.call(this,n,o)},i.prototype.p=function(n,o){var l=aZ(n,this.o,this.v&&(this.o.dictionary?6:2),o&&4,this.s);this.v&&(Bst(l,this.o),this.v=0),o&&wy(l,l.length-4,this.c.d()),this.ondata(l,o)},i.prototype.flush=function(){R3.prototype.flush.call(this)},i}();Ff.Zlib=wst;var psr=function(){function i(n,o){Aae([Tae,kXt,function(){return[k3,R3,wst]}],this,sZ.call(this,n,o),function(l){var u=new wst(l.data);onmessage=k3(u)},10,1)}return e(i,"AsyncZlib"),i}();Ff.AsyncZlib=psr;function fsr(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[Tae,kXt,function(){return[Ist]}],function(l){return PH(Ist(l.data[0],l.data[1]))},4,o)}e(fsr,"zlib");Ff.zlib=fsr;function Ist(i,n){n||(n={});var o=GMe();o.p(i);var l=aZ(i,n,n.dictionary?6:2,4);return Bst(l,n),wy(l,l.length-4,o.d()),l}e(Ist,"zlibSync");Ff.zlibSync=Ist;var WMe=function(){function i(n,o){KR.call(this,n,o),this.v=n&&n.dictionary?2:1}return e(i,"Unzlib"),i.prototype.push=function(n,o){if(KR.prototype.e.call(this,n),this.v){if(this.p.length<6&&!o)return;this.p=this.p.subarray(Wst(this.p,this.v-1)),this.v=0}o&&(this.p.length<4&&Np(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),KR.prototype.c.call(this,o)},i}();Ff.Unzlib=WMe;var GXt=function(){function i(n,o){Aae([xae,MXt,function(){return[k3,KR,WMe]}],this,sZ.call(this,n,o),function(l){var u=new WMe(l.data);onmessage=k3(u)},11,0)}return e(i,"AsyncUnzlib"),i}();Ff.AsyncUnzlib=GXt;function UXt(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),Dae(i,n,[xae,MXt,function(){return[jMe]}],function(l){return PH(jMe(l.data[0],Mst(l.data[1])))},5,o)}e(UXt,"unzlib");Ff.unzlib=UXt;function jMe(i,n){return Nhe(i.subarray(Wst(i,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}e(jMe,"unzlibSync");Ff.unzlibSync=jMe;var Pst=function(){function i(n,o){this.o=sZ.call(this,n,o)||{},this.G=FMe,this.I=KR,this.Z=WMe}return e(i,"Decompress"),i.prototype.i=function(){var n=this;this.s.ondata=function(o,l){n.ondata(o,l)}},i.prototype.push=function(n,o){if(this.ondata||Np(5),this.s)this.s.push(n,o);else{if(this.p&&this.p.length){var l=new Sm(this.p.length+n.length);l.set(this.p),l.set(n,this.p.length)}else this.p=n;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,o),this.p=null)}},i}();Ff.Decompress=Pst;var _sr=function(){function i(n,o){Pst.call(this,n,o),this.queuedSize=0,this.G=jXt,this.I=jst,this.Z=GXt}return e(i,"AsyncDecompress"),i.prototype.i=function(){var n=this;this.s.ondata=function(o,l,u){n.ondata(o,l,u)},this.s.ondrain=function(o){n.queuedSize-=o,n.ondrain&&n.ondrain(o)}},i.prototype.push=function(n,o){this.queuedSize+=n.length,Pst.prototype.push.call(this,n,o)},i}();Ff.AsyncDecompress=_sr;function msr(i,n,o){return o||(o=n,n={}),typeof o!="function"&&Np(7),i[0]==31&&i[1]==139&&i[2]==8?zXt(i,n,o):(i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31?zst(i,n,o):UXt(i,n,o)}e(msr,"decompress");Ff.decompress=msr;function hsr(i,n){return i[0]==31&&i[1]==139&&i[2]==8?BMe(i,n):(i[0]&15)!=8||i[0]>>4>7||(i[0]<<8|i[1])%31?Cae(i,n):jMe(i,n)}e(hsr,"decompressSync");Ff.decompressSync=hsr;var Gst=e(function(i,n,o,l){for(var u in i){var p=i[u],h=n+u,v=l;Array.isArray(p)&&(v=Rhe(l,p[1]),p=p[0]),p instanceof Sm?o[h]=[p,v]:(o[h+="/"]=[new Sm(0),v],Gst(p,h,o,l))}},"fltn"),hXt=typeof TextEncoder<"u"&&new TextEncoder,Nst=typeof TextDecoder<"u"&&new TextDecoder,VXt=0;try{Nst.decode(CH,{stream:!0}),VXt=1}catch{}var qXt=e(function(i){for(var n="",o=0;;){var l=i[o++],u=(l>127)+(l>223)+(l>239);if(o+u>i.length)return{s:n,r:N3(i,o-1)};u?u==3?(l=((l&15)<<18|(i[o++]&63)<<12|(i[o++]&63)<<6|i[o++]&63)-65536,n+=String.fromCharCode(55296|l>>10,56320|l&1023)):u&1?n+=String.fromCharCode((l&31)<<6|i[o++]&63):n+=String.fromCharCode((l&15)<<12|(i[o++]&63)<<6|i[o++]&63):n+=String.fromCharCode(l)}},"dutf8"),gsr=function(){function i(n){this.ondata=n,VXt?this.t=new TextDecoder:this.p=CH}return e(i,"DecodeUTF8"),i.prototype.push=function(n,o){if(this.ondata||Np(5),o=!!o,this.t){this.ondata(this.t.decode(n,{stream:!0}),o),o&&(this.t.decode().length&&Np(8),this.t=null);return}this.p||Np(4);var l=new Sm(this.p.length+n.length);l.set(this.p),l.set(n,this.p.length);var u=qXt(l),p=u.s,h=u.r;o?(h.length&&Np(8),this.p=null):this.p=h,this.ondata(p,o)},i}();Ff.DecodeUTF8=gsr;var ysr=function(){function i(n){this.ondata=n}return e(i,"EncodeUTF8"),i.prototype.push=function(n,o){this.ondata||Np(5),this.d&&Np(4),this.ondata(IH(n),this.d=o||!1)},i}();Ff.EncodeUTF8=ysr;function IH(i,n){if(n){for(var o=new Sm(i.length),l=0;l<i.length;++l)o[l]=i.charCodeAt(l);return o}if(hXt)return hXt.encode(i);for(var u=i.length,p=new Sm(i.length+(i.length>>1)),h=0,v=e(function(D){p[h++]=D},"w"),l=0;l<u;++l){if(h+5>p.length){var T=new Sm(h+8+(u-l<<1));T.set(p),p=T}var E=i.charCodeAt(l);E<128||n?v(E):E<2048?(v(192|E>>6),v(128|E&63)):E>55295&&E<57344?(E=65536+(E&1047552)|i.charCodeAt(++l)&1023,v(240|E>>18),v(128|E>>12&63),v(128|E>>6&63),v(128|E&63)):(v(224|E>>12),v(128|E>>6&63),v(128|E&63))}return N3(p,0,h)}e(IH,"strToU8");Ff.strToU8=IH;function Ust(i,n){if(n){for(var o="",l=0;l<i.length;l+=16384)o+=String.fromCharCode.apply(null,i.subarray(l,l+16384));return o}else{if(Nst)return Nst.decode(i);var u=qXt(i),p=u.s,o=u.r;return o.length&&Np(8),p}}e(Ust,"strFromU8");Ff.strFromU8=Ust;var KXt=e(function(i){return i==1?3:i<6?2:i==9?1:0},"dbf"),HXt=e(function(i,n){return n+30+IP(i,n+26)+IP(i,n+28)},"slzh"),JXt=e(function(i,n,o){var l=IP(i,n+28),u=Ust(i.subarray(n+46,n+46+l),!(IP(i,n+8)&2048)),p=n+46+l,h=kx(i,n+20),v=o&&h==4294967295?XXt(i,p):[h,kx(i,n+24),kx(i,n+42)],T=v[0],E=v[1],D=v[2];return[IP(i,n+10),T,E,u,p+IP(i,n+30)+IP(i,n+32),D]},"zh"),XXt=e(function(i,n){for(;IP(i,n)!=1;n+=4+IP(i,n+2));return[Tst(i,n+12),Tst(i,n+4),Tst(i,n+20)]},"z64e"),wH=e(function(i){var n=0;if(i)for(var o in i){var l=i[o].length;l>65535&&Np(9),n+=l+4}return n},"exfl"),yae=e(function(i,n,o,l,u,p,h,v){var T=l.length,E=o.extra,D=v&&v.length,C=wH(E);wy(i,n,h!=null?33639248:67324752),n+=4,h!=null&&(i[n++]=20,i[n++]=o.os),i[n]=20,n+=2,i[n++]=o.flag<<1|(p<0&&8),i[n++]=u&&8,i[n++]=o.compression&255,i[n++]=o.compression>>8;var w=new Date(o.mtime==null?Date.now():o.mtime),W=w.getFullYear()-1980;if((W<0||W>119)&&Np(10),wy(i,n,W<<25|w.getMonth()+1<<21|w.getDate()<<16|w.getHours()<<11|w.getMinutes()<<5|w.getSeconds()>>1),n+=4,p!=-1&&(wy(i,n,o.crc),wy(i,n+4,p<0?-p-2:p),wy(i,n+8,o.size)),wy(i,n+12,T),wy(i,n+14,C),n+=16,h!=null&&(wy(i,n,D),wy(i,n+6,o.attrs),wy(i,n+10,h),n+=14),i.set(l,n),n+=T,C)for(var V in E){var B=E[V],k=B.length;wy(i,n,+V),wy(i,n+2,k),i.set(B,n+4),n+=4+k}return D&&(i.set(v,n),n+=D),n},"wzh"),Vst=e(function(i,n,o,l,u){wy(i,n,101010256),wy(i,n+8,o),wy(i,n+10,o),wy(i,n+12,l),wy(i,n+16,u)},"wzf"),Ihe=function(){function i(n){this.filename=n,this.c=Eae(),this.size=0,this.compression=0}return e(i,"ZipPassThrough"),i.prototype.process=function(n,o){this.ondata(null,n,o)},i.prototype.push=function(n,o){this.ondata||Np(5),this.c.p(n),this.size+=n.length,o&&(this.crc=this.c.d()),this.process(n,o||!1)},i}();Ff.ZipPassThrough=Ihe;var vsr=function(){function i(n,o){var l=this;o||(o={}),Ihe.call(this,n),this.d=new R3(o,function(u,p){l.ondata(null,u,p)}),this.compression=8,this.flag=KXt(o.level)}return e(i,"ZipDeflate"),i.prototype.process=function(n,o){try{this.d.push(n,o)}catch(l){this.ondata(l,null,o)}},i.prototype.push=function(n,o){Ihe.prototype.push.call(this,n,o)},i}();Ff.ZipDeflate=vsr;var bsr=function(){function i(n,o){var l=this;o||(o={}),Ihe.call(this,n),this.d=new OXt(o,function(u,p,h){l.ondata(u,p,h)}),this.compression=8,this.flag=KXt(o.level),this.terminate=this.d.terminate}return e(i,"AsyncZipDeflate"),i.prototype.process=function(n,o){this.d.push(n,o)},i.prototype.push=function(n,o){Ihe.prototype.push.call(this,n,o)},i}();Ff.AsyncZipDeflate=bsr;var Ssr=function(){function i(n){this.ondata=n,this.u=[],this.d=1}return e(i,"Zip"),i.prototype.add=function(n){var o=this;if(this.ondata||Np(5),this.d&2)this.ondata(Np(4+(this.d&1)*8,0,1),null,!1);else{var l=IH(n.filename),u=l.length,p=n.comment,h=p&&IH(p),v=u!=n.filename.length||h&&p.length!=h.length,T=u+wH(n.extra)+30;u>65535&&this.ondata(Np(11,0,1),null,!1);var E=new Sm(T);yae(E,0,n,l,v,-1);var D=[E],C=e(function(){for(var k=0,F=D;k<F.length;k++){var $=F[k];o.ondata(null,$,!1)}D=[]},"pAll_1"),w=this.d;this.d=0;var W=this.u.length,V=Rhe(n,{f:l,u:v,o:h,t:e(function(){n.terminate&&n.terminate()},"t"),r:e(function(){if(C(),w){var k=o.u[W+1];k?k.r():o.d=1}w=1},"r")}),B=0;n.ondata=function(k,F,$){if(k)o.ondata(k,F,$),o.terminate();else if(B+=F.length,D.push(F),$){var Y=new Sm(16);wy(Y,0,134695760),wy(Y,4,n.crc),wy(Y,8,B),wy(Y,12,n.size),D.push(Y),V.c=B,V.b=T+B+16,V.crc=n.crc,V.size=n.size,w&&V.r(),w=1}else w&&C()},this.u.push(V)}},i.prototype.end=function(){var n=this;if(this.d&2){this.ondata(Np(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:e(function(){n.d&1&&(n.u.splice(-1,1),n.e())},"r"),t:e(function(){},"t")}),this.d=3},i.prototype.e=function(){for(var n=0,o=0,l=0,u=0,p=this.u;u<p.length;u++){var h=p[u];l+=46+h.f.length+wH(h.extra)+(h.o?h.o.length:0)}for(var v=new Sm(l+22),T=0,E=this.u;T<E.length;T++){var h=E[T];yae(v,n,h,h.f,h.u,-h.c-2,o,h.o),n+=46+h.f.length+wH(h.extra)+(h.o?h.o.length:0),o+=h.b}Vst(v,n,this.u.length,l,o),this.ondata(null,v,!0),this.d=2},i.prototype.terminate=function(){for(var n=0,o=this.u;n<o.length;n++){var l=o[n];l.t()}this.d=2},i}();Ff.Zip=Ssr;function Esr(i,n,o){o||(o=n,n={}),typeof o!="function"&&Np(7);var l={};Gst(i,"",l,n);var u=Object.keys(l),p=u.length,h=0,v=0,T=p,E=new Array(p),D=[],C=e(function(){for(var k=0;k<D.length;++k)D[k]()},"tAll"),w=e(function(k,F){zMe(function(){o(k,F)})},"cbd");zMe(function(){w=o});var W=e(function(){var k=new Sm(v+22),F=h,$=v-h;v=0;for(var Y=0;Y<T;++Y){var ie=E[Y];try{var fe=ie.c.length;yae(k,v,ie,ie.f,ie.u,fe);var ve=30+ie.f.length+wH(ie.extra),Ce=v+ve;k.set(ie.c,Ce),yae(k,h,ie,ie.f,ie.u,fe,v,ie.m),h+=16+ve+(ie.m?ie.m.length:0),v=Ce+fe}catch(be){return w(be,null)}}Vst(k,h,E.length,$,F),w(null,k)},"cbf");p||W();for(var V=e(function(k){var F=u[k],$=l[F],Y=$[0],ie=$[1],fe=Eae(),ve=Y.length;fe.p(Y);var Ce=IH(F),be=Ce.length,qe=ie.comment,yt=qe&&IH(qe),Ct=yt&&yt.length,Bt=wH(ie.extra),fn=ie.level==0?0:8,Fn=e(function(Sn,Qt){if(Sn)C(),w(Sn,null);else{var on=Qt.length;E[k]=Rhe(ie,{size:ve,crc:fe.d(),c:Qt,f:Ce,m:yt,u:be!=F.length||yt&&qe.length!=Ct,compression:fn}),h+=30+be+Bt+on,v+=76+2*(be+Bt)+(Ct||0)+on,--p||W()}},"cbl");if(be>65535&&Fn(Np(11,0,1),null),!fn)Fn(null,Y);else if(ve<16e4)try{Fn(null,khe(Y,ie))}catch(Sn){Fn(Sn,null)}else D.push(FXt(Y,ie,Fn))},"_loop_1"),B=0;B<T;++B)V(B);return C}e(Esr,"zip");Ff.zip=Esr;function xsr(i,n){n||(n={});var o={},l=[];Gst(i,"",o,n);var u=0,p=0;for(var h in o){var v=o[h],T=v[0],E=v[1],D=E.level==0?0:8,C=IH(h),w=C.length,W=E.comment,V=W&&IH(W),B=V&&V.length,k=wH(E.extra);w>65535&&Np(11);var F=D?khe(T,E):T,$=F.length,Y=Eae();Y.p(T),l.push(Rhe(E,{size:T.length,crc:Y.d(),c:F,f:C,m:V,u:w!=h.length||V&&W.length!=B,o:u,compression:D})),u+=30+w+k+$,p+=76+2*(w+k)+(B||0)+$}for(var ie=new Sm(p+22),fe=u,ve=p-u,Ce=0;Ce<l.length;++Ce){var C=l[Ce];yae(ie,C.o,C,C.f,C.u,C.c.length);var be=30+C.f.length+wH(C.extra);ie.set(C.c,C.o+be),yae(ie,u,C,C.f,C.u,C.c.length,C.o,C.m),u+=16+be+(C.m?C.m.length:0)}return Vst(ie,u,l.length,ve,fe),ie}e(xsr,"zipSync");Ff.zipSync=xsr;var $Xt=function(){function i(){}return e(i,"UnzipPassThrough"),i.prototype.push=function(n,o){this.ondata(null,n,o)},i.compression=0,i}();Ff.UnzipPassThrough=$Xt;var Tsr=function(){function i(){var n=this;this.i=new KR(function(o,l){n.ondata(null,o,l)})}return e(i,"UnzipInflate"),i.prototype.push=function(n,o){try{this.i.push(n,o)}catch(l){this.ondata(l,null,o)}},i.compression=8,i}();Ff.UnzipInflate=Tsr;var Dsr=function(){function i(n,o){var l=this;o<32e4?this.i=new KR(function(u,p){l.ondata(null,u,p)}):(this.i=new jst(function(u,p,h){l.ondata(u,p,h)}),this.terminate=this.i.terminate)}return e(i,"AsyncUnzipInflate"),i.prototype.push=function(n,o){this.i.terminate&&(n=N3(n,0)),this.i.push(n,o)},i.compression=8,i}();Ff.AsyncUnzipInflate=Dsr;var Asr=function(){function i(n){this.onfile=n,this.k=[],this.o={0:$Xt},this.p=CH}return e(i,"Unzip"),i.prototype.push=function(n,o){var l=this;if(this.onfile||Np(5),this.p||Np(4),this.c>0){var u=Math.min(this.c,n.length),p=n.subarray(0,u);if(this.c-=u,this.d?this.d.push(p,!this.c):this.k[0].push(p),n=n.subarray(u),n.length)return this.push(n,o)}else{var h=0,v=0,T=void 0,E=void 0;this.p.length?n.length?(E=new Sm(this.p.length+n.length),E.set(this.p),E.set(n,this.p.length)):E=this.p:E=n;for(var D=E.length,C=this.c,w=C&&this.d,W=e(function(){var F,$=kx(E,v);if($==67324752){h=1,T=v,V.d=null,V.c=0;var Y=IP(E,v+6),ie=IP(E,v+8),fe=Y&2048,ve=Y&8,Ce=IP(E,v+26),be=IP(E,v+28);if(D>v+30+Ce+be){var qe=[];V.k.unshift(qe),h=2;var yt=kx(E,v+18),Ct=kx(E,v+22),Bt=Ust(E.subarray(v+30,v+=30+Ce),!fe);yt==4294967295?(F=ve?[-2]:XXt(E,v),yt=F[0],Ct=F[1]):ve&&(yt=-1),v+=be,V.c=yt;var fn,Fn={name:Bt,compression:ie,start:e(function(){if(Fn.ondata||Np(5),!yt)Fn.ondata(null,CH,!0);else{var Sn=l.o[ie];Sn||Fn.ondata(Np(14,"unknown compression type "+ie,1),null,!1),fn=yt<0?new Sn(Bt):new Sn(Bt,yt,Ct),fn.ondata=function(Kt,ht,wn){Fn.ondata(Kt,ht,wn)};for(var Qt=0,on=qe;Qt<on.length;Qt++){var It=on[Qt];fn.push(It,!1)}l.k[0]==qe&&l.c?l.d=fn:fn.push(CH,!0)}},"start"),terminate:e(function(){fn&&fn.terminate&&fn.terminate()},"terminate")};yt>=0&&(Fn.size=yt,Fn.originalSize=Ct),V.onfile(Fn)}return"break"}else if(C){if($==134695760)return T=v+=12+(C==-2&&8),h=3,V.c=0,"break";if($==33639248)return T=v-=4,h=3,V.c=0,"break"}},"_loop_2"),V=this;v<D-4;++v){var B=W();if(B==="break")break}if(this.p=CH,C<0){var k=h?E.subarray(0,T-12-(C==-2&&8)-(kx(E,T-16)==134695760&&4)):E.subarray(0,v);w?w.push(k,!!h):this.k[+(h==2)].push(k)}if(h&2)return this.push(E.subarray(v),o);this.p=E.subarray(v)}o&&(this.c&&Np(13),this.p=null)},i.prototype.register=function(n){this.o[n.compression]=n},i}();Ff.Unzip=Asr;var zMe=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(i){i()};function Csr(i,n,o){o||(o=n,n={}),typeof o!="function"&&Np(7);var l=[],u=e(function(){for(var k=0;k<l.length;++k)l[k]()},"tAll"),p={},h=e(function(k,F){zMe(function(){o(k,F)})},"cbd");zMe(function(){h=o});for(var v=i.length-22;kx(i,v)!=101010256;--v)if(!v||i.length-v>65558)return h(Np(13,0,1),null),u;var T=IP(i,v+8);if(T){var E=T,D=kx(i,v+16),C=D==4294967295||E==65535;if(C){var w=kx(i,v-12);C=kx(i,w)==101075792,C&&(E=T=kx(i,w+32),D=kx(i,w+48))}for(var W=n&&n.filter,V=e(function(k){var F=JXt(i,D,C),$=F[0],Y=F[1],ie=F[2],fe=F[3],ve=F[4],Ce=F[5],be=HXt(i,Ce);D=ve;var qe=e(function(Ct,Bt){Ct?(u(),h(Ct,null)):(Bt&&(p[fe]=Bt),--T||h(null,p))},"cbl");if(!W||W({name:fe,size:Y,originalSize:ie,compression:$}))if(!$)qe(null,N3(i,be,be+Y));else if($==8){var yt=i.subarray(be,be+Y);if(ie<524288||Y>.8*ie)try{qe(null,Cae(yt,{out:new Sm(ie)}))}catch(Ct){qe(Ct,null)}else l.push(zst(yt,{size:ie},qe))}else qe(Np(14,"unknown compression type "+$,1),null);else qe(null,null)},"_loop_3"),B=0;B<E;++B)V(B)}else h(null,{});return u}e(Csr,"unzip");Ff.unzip=Csr;function wsr(i,n){for(var o={},l=i.length-22;kx(i,l)!=101010256;--l)(!l||i.length-l>65558)&&Np(13);var u=IP(i,l+8);if(!u)return{};var p=kx(i,l+16),h=p==4294967295||u==65535;if(h){var v=kx(i,l-12);h=kx(i,v)==101075792,h&&(u=kx(i,v+32),p=kx(i,v+48))}for(var T=n&&n.filter,E=0;E<u;++E){var D=JXt(i,p,h),C=D[0],w=D[1],W=D[2],V=D[3],B=D[4],k=D[5],F=HXt(i,k);p=B,(!T||T({name:V,size:w,originalSize:W,compression:C}))&&(C?C==8?o[V]=Cae(i.subarray(F,F+w),{out:new Sm(W)}):Np(14,"unknown compression type "+C):o[V]=N3(i,F,F+w))}return o}e(wsr,"unzipSync");Ff.unzipSync=wsr});var QXt=ft(NH=>{"use strict";Z();ne();ee();te();Object.defineProperty(NH,"__esModule",{value:!0});NH.gzipSync=NH.zipDirectory=NH.unzipAppPackage=void 0;var UMe=YXt();Object.defineProperty(NH,"gzipSync",{enumerable:!0,get:e(function(){return UMe.gzipSync},"get")});var Kst=ahe(),Hst=hB(),qst="status.json",Isr=e(async(i,n,o)=>{let l=new Uint8Array(i.readFileSync(n)),u=(0,UMe.unzipSync)(l);if(u["package_inventory.csv"]&&delete u["package_inventory.csv"],qst in u){let h=JSON.parse(He.from(u[qst]).toString("utf8"));if(h.status==="error")throw new Error("Application download failed with error, "+h.message);delete u[qst]}return{files:Object.entries(u).map(([h,v])=>{let T=Hst.path.join(o,h),E=Hst.path.dirname(T);return Kst.FileSystem.ensureDirSync(i,E),i.writeFileSync(T,v),T})}},"unzipAppPackage");NH.unzipAppPackage=Isr;var Psr=e(async(i,n,o)=>new Promise((l,u)=>{try{let p=new UMe.Zip,h=Kst.FileSystem.createWriteStream(i,o);p.ondata=(E,D,C)=>{E?(h.destroy(),u(E)):(h.write(D),C&&h.end())},h.on("finish",()=>{l(o)}),h.on("error",E=>{u(E)});let T=new Kst.TsMorphFileSystemWrapper(i).globSync(["**"],{cwd:n});T.length===0&&u(`No files found in ${n} directory to create zip.`);for(let E of T){let D=Hst.path.normalize(E),C=i.readFileSync(D),w=new UMe.ZipDeflate(D.replace(n,""),{level:6});p.add(w),w.push(C,!0)}p.end()}catch(p){u(p)}}),"zipDirectory");NH.zipDirectory=Psr});var ZXt=ft(VMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(VMe,"__esModule",{value:!0});VMe.NoOpTelemetry=void 0;var Jst=class{static{e(this,"NoOpTelemetry")}startTimerEvent(){return{end:e(()=>({name:"",data:{}}),"end")}}start=e(()=>Promise.resolve(),"start");sendEvent=e(()=>Promise.resolve(),"sendEvent");error=e(()=>Promise.resolve(),"error")};VMe.NoOpTelemetry=Jst});var Wu=ft(Lb=>{"use strict";Z();ne();ee();te();var Nsr=Lb&&Lb.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Mx=Lb&&Lb.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Nsr(n,i,o)};Object.defineProperty(Lb,"__esModule",{value:!0});Mx(FXe(),Lb);Mx(nJt(),Lb);Mx(Mat(),Lb);Mx(mMe(),Lb);Mx(FJt(),Lb);Mx(BJt(),Lb);Mx(GJt(),Lb);Mx(cat(),Lb);Mx(pXt(),Lb);Mx(Zke(),Lb);Mx(Xke(),Lb);Mx(_st(),Lb);Mx(jQ(),Lb);Mx(fXt(),Lb);Mx(ahe(),Lb);Mx(hB(),Lb);Mx(L4(),Lb);Mx(jat(),Lb);Mx(QXt(),Lb);Mx(ast(),Lb);Mx(ZXt(),Lb)});var e$t=ft(Mhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Mhe,"__esModule",{value:!0});Mhe.writeFileWithParentDirs=Rsr;Mhe.createDirIfNotExists=ksr;Mhe.writeFileStream=Msr;var qMe=Wu();function Rsr(i,{path:n,content:o}){let l=qMe.path.dirname(n);qMe.FileSystem.existsSync(i,l)||i.mkdirSync(l,{recursive:!0}),i.writeFileSync(n,o,{encoding:"utf-8"})}e(Rsr,"writeFileWithParentDirs");function ksr(i,n){qMe.FileSystem.existsSync(n,i)||n.mkdirSync(i,{recursive:!0})}e(ksr,"createDirIfNotExists");function Msr(i,n,o){let l=qMe.FileSystem.createWriteStream(i,n);return o.pipeTo(new WritableStream({write:e(u=>new Promise((p,h)=>{l.write(u,v=>{v?h(v):p()})}),"write"),close:e(()=>new Promise((u,p)=>{l.end(h=>{h?p(h):u()})}),"close"),abort:e(u=>new Promise((p,h)=>{l.end(v=>{h(u??v)})}),"abort")}))}e(Msr,"writeFileStream")});var r$t=ft(Xst=>{"use strict";Z();ne();ee();te();Object.defineProperty(Xst,"__esModule",{value:!0});Xst.traverseDirectory=n$t;var t$t=Wu();function n$t(i,n,o){if(!t$t.FileSystem.existsSync(i,n))return;let l=i.readdirSync(n,{withFileTypes:!0}),{extensions:u,ignore_extensions:p,visitor:h}=o||{};for(let v of l){let T=t$t.path.resolve(n,v.name);v.isDirectory()?n$t(i,T,o):p&&p.find(E=>T.toLocaleLowerCase().endsWith(E.toLocaleLowerCase()))||(!u||u.length===0||u.some(E=>T.toLocaleLowerCase().endsWith(E.toLocaleLowerCase())))&&h(T)}}e(n$t,"traverseDirectory")});var i$t=ft($st=>{"use strict";Z();ne();ee();te();Object.defineProperty($st,"__esModule",{value:!0});$st.getOutput=Lsr;async function Lsr(i,n){let o=new Set,l=[];for(let u of[{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let p of n.plugins.toArray()){let h=await p.recordsToFiles({...u,database:i,context:n,handledGuids:o});h.success&&l.push(...h.value)}return l.map(u=>({path:n.project.resolvePath(n.config.appOutputDir,u.category,u.name),content:u.content}))}e(Lsr,"getOutput")});var o$t=ft(Lhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Lhe,"__esModule",{value:!0});Lhe.createPackageJson=Osr;Lhe.getPackageJsonFilePath=Fsr;Lhe.validatePackageName=Bsr;var KMe=Wu();function Osr({rootDir:i,compiler:n,fileSystem:o}){let l=KMe.path.join(i,"package.json"),u=n.getSourceFile(l);if(!u&&!KMe.FileSystem.existsSync(o,l))return{name:"my-fluent-app",version:"0.0.1"};let p=u?u.getFullText():o.readFileSync(l,{encoding:"utf-8"});return KMe.JSON5.parse(p)}e(Osr,"createPackageJson");function Fsr(i){return KMe.path.join(i,"package.json")}e(Fsr,"getPackageJsonFilePath");function Bsr(i){if(i===null)throw new Error("name cannot be null");if(i===void 0)throw new Error("name cannot be undefined");if(!i.length)throw new Error("name length must be greater than zero");if(i.match(/^\./))throw new Error("name cannot start with a period");if(i.match(/^_/))throw new Error("name cannot start with an underscore");if(i.trim()!==i)throw new Error("name cannot contain leading or trailing spaces");if(encodeURIComponent(i)!==i){let n=/^(?:@([^/]+?)[/])?([^/]+?)$/,o=i.match(n);if(o){let l=o[1],u=o[2];if(encodeURIComponent(l)===l&&encodeURIComponent(u)===u)return}throw new Error("name can only contain URL-friendly characters")}}e(Bsr,"validatePackageName")});var Yst=ft(Ohe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ohe,"__esModule",{value:!0});Ohe.isWebWorker=void 0;Ohe.hasModuleLoader=Wsr;Ohe.isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";function Wsr(){return require?.IDE_MODULE_LOADER}e(Wsr,"hasModuleLoader")});var s$t=ft(HMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(HMe,"__esModule",{value:!0});HMe.projectHasScript=jsr;HMe.runScriptInProject=zsr;var Fhe=Wu(),a$t=Yst();function jsr(i,n){let o=i.getRootDir(),l=i.getFileSystem(),p=i.getConfig().scripts?.[n];if(!p)return!1;let h=Fhe.path.resolve(o,p);return!!Fhe.FileSystem.existsSync(l,h)}e(jsr,"projectHasScript");async function zsr({scriptName:i,project:n,throwIfNotFound:o=!1}){let l=n.getRootDir(),u=n.getFileSystem(),p=n.getConfig(),h=n.getLogger(),v=n.registerExplicitId.bind(n),T=p.scripts?.[i];if(!T){if(o)throw Error(`No script defined for "${i}". Please check your now.config.json.`);return}let E=Fhe.path.resolve(l,T);if(!Fhe.FileSystem.existsSync(u,E)){if(o)throw Error(`Script "${i}" not found at ${E}. Skipping.`);return}h.info(`Running script "${i}" from ${E}`);let D=null;a$t.isWebWorker&&(0,a$t.hasModuleLoader)()?D=await require(E):D=await import(e(W=>`file://${W}`,"webpackWillIgnoreThisIhateYouWebpack")(E));let C=Array.isArray(D.default)?D.default:[D.default];for(let w of C)typeof w=="function"?await w({rootDir:l,config:p,fs:u,path:Fhe.path,logger:h,registerExplicitId:v}):h.warn(`Skipping non-function task in script "${i}": ${w?.toString()} . Please export a function or an array of functions.`);h.info(`Script "${i}" completed successfully`)}e(zsr,"runScriptInProject")});var c$t=ft(l$t=>{"use strict";Z();ne();ee();te();Object.defineProperty(l$t,"__esModule",{value:!0})});var cZ=ft(UL=>{"use strict";Z();ne();ee();te();var Gsr=UL&&UL.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),lZ=UL&&UL.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Gsr(n,i,o)};Object.defineProperty(UL,"__esModule",{value:!0});lZ(e$t(),UL);lZ(r$t(),UL);lZ(i$t(),UL);lZ(o$t(),UL);lZ(s$t(),UL);lZ(Yst(),UL);lZ(c$t(),UL)});var u$t=ft(XMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(XMe,"__esModule",{value:!0});XMe.Diagnostics=void 0;var HR=Wu();function JMe(i){return HR.ts.Node.isNode(i)?i:i.getOriginalNode()}e(JMe,"getOriginalNode");var Qst=class{static{e(this,"Diagnostics")}diagnostics=[];error(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Error}))}warn(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Warn}))}info(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Info}))}hint(n,o){this.add(new HR.FluentDiagnostic(JMe(n),o,{level:HR.Diagnostic.Level.Hint}))}add(n){Usr(n)||this.diagnostics.some(o=>o.message===n.message&&o.code===n.code&&o.level===n.level&&o.source===n.source&&o.position.start===n.position.start&&o.position.end===n.position.end&&o.file.getFilePath()===n.file.getFilePath())||this.diagnostics.push(n)}getAll(n){return n?this.diagnostics.filter(o=>o.file.getFilePath()===n):this.diagnostics}clear(n){this.diagnostics=n?this.diagnostics.filter(o=>o.file.getFilePath()!==n):[]}getWarnings(n){return this.getAll(n).filter(o=>o.level===HR.Diagnostic.Level.Warn)}hasErrors(n){return this.getAll(n).some(o=>o.level===HR.Diagnostic.Level.Error)}getErrors(n){return this.getAll(n).filter(o=>o.level===HR.Diagnostic.Level.Error)}};XMe.Diagnostics=Qst;function Usr(i){return i instanceof HR.FluentDiagnostic&&(0,HR.hasDirective)(i.node,"@fluent-ignore")}e(Usr,"isIgnored")});var d$t=ft(YMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(YMe,"__esModule",{value:!0});YMe.MultiProjectTransform=void 0;var MB=Wu(),Vsr=QMe(),$Me=class{static{e(this,"Transform")}project;pluginUsageTracker;constructor(n,o){this.project=n,this.pluginUsageTracker=o}shapeToSubclass(n,o){for(let l of o.length>0?o:this.project.getPlugins().toArray())try{let u=l.shapeToSubclass(n,this.project.getContext());if(u.success)return this.shapeToSubclass(u.value,o)}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to subclass "${n.getKind()}" shape:`,u)}return{success:!0,value:n}}async shapeToRecord(n,o){if(n.isRecord())return{success:!0,value:n};for(let l of o.length>0?o:this.project.getPlugins().toArray())try{let u=await l.shapeToRecord(n,this.project.getContext());if(u.success)return this.pluginUsageTracker.addPluginToRecordUsage(l,n,u.value.getCount()),{success:!0,value:u.value}}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to transform "${n.getKind()}" shape into record:`,u)}return{success:!1}}async nodeToRecord(n,o){let l=await this.toShape(n,...o);return l.success?this.shapeToRecord(l.value,o):l}async fileToRecord(n,o){for(let l of o.length>0?o:this.project.getPlugins().toArray())try{let u=await l.fileToRecord(n,this.project.getContext());if(u.success)return this.pluginUsageTracker.addPluginToRecordUsage(l,n,u.value.getCount()),{success:!0,value:u.value}}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to transform "${n.path}" into records:`,u)}return{success:!1}}async toRecord(n,...o){return MB.ts.Node.isNode(n)?this.nodeToRecord(n,o):n instanceof MB.Shape?this.shapeToRecord(n,o):this.fileToRecord(n,o)}async toShape(n,...o){let l=this.project.getDiagnosticsService();if(!(0,MB.isSupportedNode)(n))return(0,MB.isFluentNode)(n)&&l.error(n,`Node kind "${(0,MB.getUnsupportedKindName)(n)}" is not allowed in Fluent files.`),{success:!1};for(let u of o.length>0?o:this.project.getPlugins().toArray())try{let p=await u.nodeToShape(n,this.project.getContext()),h=p.success?this.shapeToSubclass(p.value,o):p,v=h.success?await this.toRecord(h.value,...o):h,T=v.success?v:h;if(T.success)return T}catch(p){this.project.getLogger().error(`Plugin "${u.getName()}" failed to transform "${n.getKindName()}" node into shape:`,p)}return{success:!1}}async recordToShape(n,o,...l){for(let u of l.length>0?l:this.project.getPlugins().toArray()){let p=await u.recordToShape({record:n,database:o,context:this.project.getContext()});if(p.success)return p}return{success:!1}}toSubclass(n,...o){return this.shapeToSubclass(n,o)}},Zst=class{static{e(this,"MultiProjectTransform")}rootProject;pluginUsageTracker;fallbackTransform;rootTransform;transformMap={};constructor(n,o){this.rootProject=n,this.pluginUsageTracker=o,this.rootTransform=new $Me(n,this.pluginUsageTracker),this.transformMap[n.getRootDir()]=this.rootTransform}toRecord(n,...o){return this.getTransformForPath(MB.ts.Node.isNode(n)?n.getSourceFile().getFilePath():n instanceof MB.Shape?n.getOriginalFilePath():n.path).toRecord(n,...o)}async toShape(n,...o){return this.getTransformForPath(n.getSourceFile().getFilePath()).toShape(n,...o)}async recordToShape(n,o,...l){return this.getTransformForPath(n.getOriginalFilePath()).recordToShape(n,o,...l)}toSubclass(n,...o){return this.getTransformForPath(n.getOriginalFilePath()).toSubclass(n,...o)}createTransform(n){let{plugins:o,fs:l,logger:u,diagnostics:p,transform:h}=this.rootProject.getContext();return new $Me(new Vsr.Project({rootDir:n,plugins:o,fileSystem:l,logger:u,diagnostics:p,transform:h}),this.pluginUsageTracker)}getFallbackTransform(){return this.fallbackTransform??=this.createTransform(this.rootProject.getRootDir())}getTransformForPath(n){if(this.transformMap[n])return this.transformMap[n];if(this.rootProject.getFileIfExists(n))return this.transformMap[n]=this.rootTransform;let o=this.findProjectRootForPath(n);return o&&this.transformMap[o]?this.transformMap[o]:o?this.transformMap[o]=this.createTransform(o):this.getFallbackTransform()}findProjectRootForPath(n){if(this.isProjectRoot(n))return n;let o=MB.path.dirname(n);if(o!==n)return this.findProjectRootForPath(o)}isProjectRootCache={};isProjectRoot(n){if(typeof this.isProjectRootCache[n]=="boolean")return this.isProjectRootCache[n];let o=MB.path.join(n,"now.config.json");return this.isProjectRootCache[n]=n in this.transformMap||!!this.rootProject.getCompiler().getSourceFile(o)||MB.FileSystem.existsSync(this.rootProject.getFileSystem(),o)}};YMe.MultiProjectTransform=Zst});var p$t=ft(ZMe=>{"use strict";Z();ne();ee();te();Object.defineProperty(ZMe,"__esModule",{value:!0});ZMe.Keys=void 0;var elt=Wu(),tlt=class{static{e(this,"Keys")}keys;constructor(n){this.keys=new elt.KeysRegistry(n.getCompiler(),{rootDir:n.getRootDir(),config:n.getConfig(),package:n.getPackage()},n.getFileSystem())}queryExplicitId(n,o){return this.keys.queryExplicitId(n,o instanceof elt.Shape?(o.ifString()??o.asNumber("Explicit key must be a string or number")).getValue():o)}registerExplicitId(n,o,l){return o instanceof elt.Shape?this.keys.registerExplicitId(n,(o.ifString()??o.asNumber("Explicit key must be a string or number")).getValue(),l):this.keys.registerExplicitId(n,o,l)}deleteExplicitId(n,o,l){return this.keys.deleteExplicitId(n,o,l)}queryCoalesceId(n,o){return this.keys.queryCompositeId(n,o)}registerCoalesceId(n,o,l){return this.keys.registerCompositeId(n,o,l)}deleteCoalesceId(n,o,l){return this.keys.deleteCompositeId(n,o,l)}getEffectiveDeletedKeys(){return this.keys.getEffectiveDeletedKeys()}getSourceFile(){return this.keys.getSourceFile()}getFilePath(){return this.keys.getSourceFile().getFilePath()}getValue(){return this.keys.getValue()}async commit(n){await this.keys.commit(n)}reload(){this.keys.reload()}};ZMe.Keys=tlt});var f$t=ft(eLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(eLe,"__esModule",{value:!0});eLe.Inspector=void 0;var nlt=class{static{e(this,"Inspector")}project;constructor(n){this.project=n}inspect(n,...o){for(let l of o.length>0?o:this.project.getPlugins().toArray())try{l.inspect(n,{...this.project.getContext(),self:l})}catch(u){this.project.getLogger().error(`Plugin "${l.getName()}" failed to inspect shape "${n.getKind()}":`,u)}}};eLe.Inspector=nlt});var tA=ft(wae=>{"use strict";Z();ne();ee();te();Object.defineProperty(wae,"__esModule",{value:!0});wae.NowIdPlugin=wae.NowIdShape=void 0;var tLe=Wu(),nLe=class i extends tLe.ElementAccessExpressionShape{static{e(this,"NowIdShape")}constructor({source:n,id:o}){super({source:n,callee:"Now.ID",arg:o})}getValue(){return this.getArg().getValue()}static from(n){let o=n.getId().getNowIdKey()??n.getId().getValue();return new i({source:n,id:o})}getCode(){return`Now.ID[${this.getArg().getCode()}]`}};wae.NowIdShape=nLe;wae.NowIdPlugin=tLe.Plugin.create({name:"NowIdPlugin",shapes:[{shape:tLe.ElementAccessExpressionShape,fileTypes:["fluent"],toSubclass(i,{diagnostics:n}){if(i.getCallee()!=="Now.ID")return{success:!1};let o=i.getArg();return!o.isString()&&!o.isNumber()?(n.error(o,"Now.ID argument must be a string or number"),{success:!1}):{success:!0,value:new nLe({source:i,id:o.getValue().toString()})}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],async toShape(i,{transform:n}){if(i.getName()!=="$id")return{success:!1};let o=i.getExpressionIfKind(tLe.ts.SyntaxKind.Identifier);if(!o)return{success:!1};let l=await n.toShape(o);if(!l.success||!l.value.isIdentifier())return{success:!1};let u=l.value.resolve();return u.isRecord()?{success:!0,value:u.getId()}:{success:!1}}}]})});var _$t=ft(rLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(rLe,"__esModule",{value:!0});rLe.ApplicationMenuPlugin=void 0;var rlt=Wu(),qsr=tA();rLe.ApplicationMenuPlugin=rlt.Plugin.create({name:"ApplicationMenuPlugin",records:{sys_app_application:{relationships:{sys_app_category:{via:"category",inverse:!0},sys_app_application:{via:"sys_overrides",inverse:!0}},toShape(i,{factory:n}){return{success:!0,value:new rlt.CallExpressionShape({source:i,callee:"ApplicationMenu",args:[i.transform(({$:o})=>({$id:o.val(qsr.NowIdShape.from(i)),title:o,category:o,hint:o.def(""),description:o.def(""),name:o.def(""),active:o.toBoolean().def(!0),order:o.map(l=>l.ifString()?.ifNotEmpty()?.toNumber()).def(100),roles:o.map(l=>(l.isString()&&l.asString().getValue()!==""?l.asString().split(","):[]).map(p=>n.createReference({source:l,table:"sys_user_role",keys:{name:p}}))).def([])}))]})}}}},shapes:[{shape:rlt.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{factory:n}){return i.getCallee()!=="ApplicationMenu"?{success:!1}:{success:!0,value:i.getArgument(0).asObject().pipe(o=>n.createRecord({source:i,table:"sys_app_application",explicitId:o.get("$id"),properties:o.transform(({$:l})=>({title:l,hint:l.def(""),description:l.def(""),name:l.def(""),active:l.def(!0),order:l.def(100),device_type:l.val("browser"),roles:l.map(u=>u.ifArray()?.map(p=>(p.ifRecord()?.get("name")??p.asString()).getValue()).join(",")).def(""),category:l}))}))}}}]})});var m$t=ft(iLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(iLe,"__esModule",{value:!0});iLe.BasicSyntaxPlugin=void 0;var Uc=Wu();iLe.BasicSyntaxPlugin=Uc.Plugin.create({name:"BasicSyntaxPlugin",files:[{entryPoint:!0,matcher:RegExp(`${Uc.NOW_FILE_EXTENSION}$`)}],shapes:[{shape:Uc.DeletedShape,commit(i,n){return(0,Uc.removeReferences)(n),(0,Uc.remove)(n),{success:!0}}},{shape:Uc.UndefinedShape,commit(i,n){return(0,Uc.isUndefined)(n)||n.replaceWithText("undefined"),{success:!0}}},{shape:Uc.TemplateExpressionShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isTemplateExpression(n)&&!Uc.ts.Node.isTaggedTemplateExpression(n)&&!Uc.ts.Node.isNoSubstitutionTemplateLiteral(n))return n.replaceWithText(i.getCode()),{success:!0};let l=Uc.ts.Node.isTaggedTemplateExpression(n)?n.removeTag():n,u=Uc.ts.Node.isTemplateExpression(l)?l.getTemplateSpans():[],p=i.getSpans();if(p.length!==u.length)return l.replaceWithText(i.getCode()),{success:!0};for(let[h,v]of u.entries()){let T=p[h];if(!T)throw new Error(`Expected shape to have a span at index ${h}`);await o(T,v)}return{success:!0}}},{shape:Uc.TemplateSpanShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isTemplateSpan(n))return n.replaceWithText(i.getCode()),{success:!0};let l=n.getLiteral();return i.getLiteralText()!==l.getLiteralText()&&(l.isKind(Uc.ts.SyntaxKind.TemplateMiddle)?l.replaceWithText(`}${i.getLiteralText()}\${`):l.isKind(Uc.ts.SyntaxKind.TemplateTail)&&l.replaceWithText(`}${i.getLiteralText()}\``)),await o(i.getExpression(),n.getExpression()),{success:!0}}},{shape:Uc.StringLiteralShape,async commit(i,n,{commit:o}){let l=(()=>{try{if(Uc.ts.Node.isTrueLiteral(n)||Uc.ts.Node.isFalseLiteral(n))return i.toBoolean();if(Uc.ts.Node.isNumericLiteral(n)){let u=i.toNumber();return u.getValue().toString()===i.getValue()?u:void 0}else return}catch{return}})();return l?(await o(l,n),{success:!0}):(Uc.ts.Node.isTaggedTemplateExpression(n)?n.getTemplate().replaceWithText(new Uc.TemplateExpressionShape({source:i,literalText:i}).getCode()):n.replaceWithText(i.getCode()),{success:!0})}},{shape:Uc.NumberShape,commit(i,n){return Uc.ts.Node.isNumericLiteral(n)&&n.getLiteralValue()===i.getValue()?{success:!0}:(n.replaceWithText(i.getValue().toString()),{success:!0})}},{shape:Uc.BooleanShape,commit(i,n){return(Uc.ts.Node.isTrueLiteral(n)||Uc.ts.Node.isFalseLiteral(n))&&n.getLiteralValue()===i.getValue()?{success:!0}:(n.replaceWithText(i.getValue().toString()),{success:!0})}},{shape:Uc.ArrayShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isArrayLiteralExpression(n))return n.replaceWithText(i.getCode()),{success:!0};let l=n.getElements(),u=i.getElements(!1),p=l.length-u.length;for(let v=1;v<=p;v++)n.removeElement(l.length-v);for(let[v,T]of n.getElements().entries())await o(i.getElement(v,!1),T);let h=u.slice(n.getElements().length).map(v=>v.getCode());return h.length>0&&n.addElements(h),{success:!0}}},{shape:Uc.ObjectShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isObjectLiteralExpression(n))return n.replaceWithText(i.getCode()),{success:!0};let l=n.getProperties().filter(v=>v.isKind(Uc.ts.SyntaxKind.PropertyAssignment)).reduce((v,T)=>v.set(Ksr(T),T.getInitializerOrThrow()),new Map),u=new Set(["$meta"]),p=[];for(let[v,T]of i.entries({resolve:!1})){let E=[...i.getAliases(v),v].find(D=>l.has(D));E?(E!==v&&n.getPropertyOrThrow(E).asKindOrThrow(Uc.ts.SyntaxKind.PropertyAssignment).getNameNode().replaceWithText(v),await o(T,l.get(E))):T.equals(i.getDefault(v))||p.push({name:Uc.ObjectShape.quotePropertyNameIfNeeded(v),initializer:T.getCode(),kind:Uc.ts.StructureKind.PropertyAssignment}),u.add(v)}return p.length>0&&n.addPropertyAssignments(p),[...l.keys()].filter(v=>!u.has(v)).forEach(v=>{n.getProperty(v)?.asKindOrThrow(Uc.ts.SyntaxKind.PropertyAssignment).remove()}),{success:!0}}},{shape:Uc.IdentifierShape,commit(i,n){return Uc.ts.Node.isIdentifier(n)&&n.getText()===i.getName()?{success:!0}:(n.replaceWithText(i.getName()),{success:!0})}},{shape:Uc.VariableStatementShape,async commit(i,n,{commit:o}){if(!Uc.ts.Node.isVariableStatement(n))return n.replaceWithText(i.getCode()),{success:!0};n.isExported()!==i.isExported()&&n.setIsExported(i.isExported());let[l,u]=n.getDeclarations();if(!l)throw new Error(`Variable statement is missing a declaration: ${n.getFullText()}`);u&&((0,Uc.removeReferences)(u),(0,Uc.remove)(u));let p=i.getVariableName();return l.getName()!==p.getName()&&await o(p,l.getNameNode()),await o(i.getInitializer(),l.getInitializerOrThrow()),{success:!0}}}],nodes:[{node:"SourceFile",async toShape(i,{diagnostics:n,transform:o}){if((0,Uc.isFluentFile)(i)){let l=i.getChildSyntaxList();if(!l)return n.error(i,"Fluent source file contains no meaningful content."),{success:!1};for(let u of l.getChildren()){if(Uc.ts.Node.isCommentNode(u))continue;if(!(await o.toShape(u)).success)return n.error(u,"Unsupported statement in Fluent source file."),{success:!1}}}return{success:!0,value:new Uc.SourceFileShape({file:i})}}},{node:"StringLiteral",toShape(i){return{success:!0,value:new Uc.StringLiteralShape({source:i,literalText:i.getLiteralValue()})}}},{node:"NoSubstitutionTemplateLiteral",toShape(i){return{success:!0,value:new Uc.TemplateExpressionShape({source:i,literalText:i.getLiteralValue()})}}},{node:"NumericLiteral",toShape(i){return{success:!0,value:new Uc.NumberShape({source:i,value:i.getLiteralValue()})}}},{node:"NullKeyword",toShape(i){return{success:!0,value:new Uc.UndefinedShape({source:i})}}},{node:"TrueKeyword",toShape(i){return{success:!0,value:new Uc.BooleanShape({source:i,value:!0})}}},{node:"FalseKeyword",toShape(i){return{success:!0,value:new Uc.BooleanShape({source:i,value:!1})}}},{node:"AsExpression",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"ExportAssignment",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"ComputedPropertyName",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"PropertyAccessExpression",async toShape(i,{transform:n,diagnostics:o}){let l=i.getNameNode(),u=await n.toShape(l);if(!u.success||!u.value.isIdentifier())return o.error(l,"Last element of property access expression is unsupported"),{success:!1};let p=i.getExpression(),h=await n.toShape(p);if(!h.success||!h.value.is([Uc.IdentifierShape,Uc.PropertyAccessShape]))return o.error(p,"Left side of property access expression is unsupported"),{success:!1};let v=h.value.isIdentifier()?[h.value,u.value]:[...h.value.getElements(),u.value];return{success:!0,value:new Uc.PropertyAccessShape({source:i,elements:v})}}},{node:"ExpressionStatement",toShape(i,{transform:n}){return n.toShape(i.getExpression())}},{node:"Identifier",async toShape(i,{transform:n}){if((0,Uc.isUndefined)(i))return{success:!0,value:new Uc.UndefinedShape({source:i})};let o=i.getSymbol()?.getName()??i.getText(),l=(0,Uc.getValueDeclaration)(i),u=l&&await n.toShape(l);return{success:!0,value:u?.success?new Uc.IdentifierShape({source:i,name:o,value:u.value}):new Uc.IdentifierShape({source:i,name:o})}}},{node:"Parameter",toShape(i){return{success:!0,value:new Uc.IdentifierShape({source:i,name:i.getName()})}}},{node:"VariableStatement",async toShape(i,{transform:n,diagnostics:o}){let l=i.getDeclarationKind();if(l!==Uc.ts.VariableDeclarationKind.Const)return o.error(i.getDeclarationKindKeywords()[0]??i,`Declaration kind "${l}" is not supported. Only const variables are supported.`),{success:!1};let u=i.getDefaultKeyword();if(u)return o.error(u,"Default exports are not supported"),{success:!1};let[p,h]=i.getDeclarations();if(!p)return o.error(i,"Missing declaration in variable statement"),{success:!1};if(h)return o.error(h,"Additional declarations in variable statements are not supported"),{success:!1};let v=p.getInitializerOrThrow(),T=await n.toShape(v);return T.success?{success:!0,value:new Uc.VariableStatementShape({source:i,variableName:new Uc.IdentifierShape({source:i,name:p.getName()}),initializer:T.value,isExported:i.isExported()})}:(o.error(v,"Unsupported variable initializer"),{success:!1})}},{node:"VariableDeclaration",toShape(i,{transform:n}){let o=i.getInitializer();return o?n.toShape(o):{success:!0,value:new Uc.UndefinedShape({source:i})}}},{node:"ArrayLiteralExpression",async toShape(i,{transform:n}){let o=[];for(let l of i.getElements()){let u=await n.toShape(l);if(!u.success)return{success:!1};o.push(u.value)}return{success:!0,value:new Uc.ArrayShape({source:i,elements:o})}}},{node:"PropertyAssignment",toShape(i,{transform:n,diagnostics:o}){let l=i.getInitializer();return l?n.toShape(l):(o.error(i,"Property must have an initializer"),{success:!1})}},{node:"ObjectLiteralExpression",async toShape(i,{transform:n,diagnostics:o}){let l={};for(let u of i.getProperties()){if(!Uc.ts.Node.isPropertyAssignment(u)){o.error(u,"Only property assignments are allowed");continue}let p=await n.toShape(u);if(!p.success)return o.error(u,"Failed to parse property"),{success:!1};let h=u.getNameNode(),v=Uc.ts.Node.isStringLiteral(h)?h.getLiteralValue():u.getName();l[v]=p.value}return{success:!0,value:new Uc.ObjectShape({source:i,properties:l})}}},{node:"TemplateSpan",async toShape(i,{transform:n,diagnostics:o}){let l=await n.toShape(i.getExpression());return l.success?{success:!0,value:new Uc.TemplateSpanShape({source:i,expression:l.value,literalText:i.getLiteral().getLiteralText()})}:(o.error(i,"Unsupported expression in template"),{success:!1})}},{node:"TemplateExpression",async toShape(i,{transform:n,diagnostics:o}){let l=[];for(let u of i.getTemplateSpans()){let p=await n.toShape(u);if(!p.success||!p.value.is(Uc.TemplateSpanShape))return o.error(u,"Unsupported span in template expression"),{success:!1};l.push(p.value)}return{success:!0,value:new Uc.TemplateExpressionShape({source:i,literalText:i.getHead().getLiteralText(),spans:l})}}},{node:"TaggedTemplateExpression",async toShape(i,{transform:n,diagnostics:o}){let l=i.getTemplate(),u=await n.toShape(l);return!u.success||!u.value.is(Uc.TemplateExpressionShape)?(o.error(l,"Unsupported template in tagged template expression"),{success:!1}):{success:!0,value:new Uc.TaggedTemplateExpressionShape({source:i,tag:i.getTag().getText(),template:u.value})}}},{node:"PrefixUnaryExpression",toShape(i,{diagnostics:n}){return!Uc.ts.Node.isNumericLiteral(i.getOperand())||i.getOperatorToken()!==Uc.ts.SyntaxKind.MinusToken?(n.error(i,"Unsupported prefix unary expression"),{success:!1}):{success:!0,value:new Uc.NumberShape({source:i,value:-i.getOperand().asKindOrThrow(Uc.ts.SyntaxKind.NumericLiteral).getLiteralValue()})}}},{node:"ElementAccessExpression",async toShape(i,{transform:n,diagnostics:o}){let l=i.getArgumentExpression();if(!l)return o.error(i,"Element access expression must have an argument"),{success:!1};let u=await n.toShape(l);return u.success?{success:!0,value:new Uc.ElementAccessExpressionShape({source:i,callee:i.getExpression().getText(),arg:u.value})}:(o.error(i,"Unsupported element access expression argument"),{success:!1})}},{node:"ImportDeclaration",toShape(i){return{success:!0,value:Uc.Shape.noOp(i)}}},{node:"ExportDeclaration",toShape(i){return{success:!0,value:Uc.Shape.noOp(i)}}}]});function Ksr(i){let n=i.getNameNode();return Uc.ts.Node.isStringLiteral(n)||Uc.ts.Node.isNoSubstitutionTemplateLiteral(n)?n.getLiteralValue():n.getText()}e(Ksr,"getName")});var h$t=ft(ilt=>{"use strict";Z();ne();ee();te();Object.defineProperty(ilt,"__esModule",{value:!0});ilt.Table=Hsr;function Hsr(i){return i}e(Hsr,"Table")});var g$t=ft(olt=>{"use strict";Z();ne();ee();te();Object.defineProperty(olt,"__esModule",{value:!0});olt.Record=Jsr;function Jsr(i){return i}e(Jsr,"Record")});var y$t=ft(Bhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Bhe,"__esModule",{value:!0});Bhe.type=void 0;Bhe.Column=Xsr;Bhe.type="__type__";function Xsr(i){return i}e(Xsr,"Column")});var v$t=ft(Whe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Whe,"__esModule",{value:!0});Whe.choiceDropdown=void 0;Whe.ChoiceColumn=$sr;Whe.choiceDropdown=["none","dropdown_with_none","suggestion","dropdown_without_none"];function $sr(i){return i}e($sr,"ChoiceColumn")});var b$t=ft(alt=>{"use strict";Z();ne();ee();te();Object.defineProperty(alt,"__esModule",{value:!0});alt.StringColumn=Ysr;function Ysr(i){return i}e(Ysr,"StringColumn")});var S$t=ft(slt=>{"use strict";Z();ne();ee();te();Object.defineProperty(slt,"__esModule",{value:!0});slt.IntegerColumn=Qsr;function Qsr(i){return i}e(Qsr,"IntegerColumn")});var E$t=ft(llt=>{"use strict";Z();ne();ee();te();Object.defineProperty(llt,"__esModule",{value:!0});llt.BooleanColumn=Zsr;function Zsr(i){return i}e(Zsr,"BooleanColumn")});var x$t=ft(LB=>{"use strict";Z();ne();ee();te();Object.defineProperty(LB,"__esModule",{value:!0});LB.DateColumn=elr;LB.DateTimeColumn=tlr;LB.CalendarDateTimeColumn=nlr;LB.ScheduleDateTimeColumn=rlr;LB.IntegerDateColumn=ilr;LB.DueDateColumn=olr;LB.BasicDateTimeColumn=alr;LB.OtherDateColumn=slr;function elr(i){return i}e(elr,"DateColumn");function tlr(i){return i}e(tlr,"DateTimeColumn");function nlr(i){return i}e(nlr,"CalendarDateTimeColumn");function rlr(i){return i}e(rlr,"ScheduleDateTimeColumn");function ilr(i){return i}e(ilr,"IntegerDateColumn");function olr(i){return i}e(olr,"DueDateColumn");function alr(i){return i}e(alr,"BasicDateTimeColumn");function slr(i){return i}e(slr,"OtherDateColumn")});var T$t=ft(clt=>{"use strict";Z();ne();ee();te();Object.defineProperty(clt,"__esModule",{value:!0});clt.ScriptColumn=llr;function llr(i){return{...i,columnType:"script"}}e(llr,"ScriptColumn")});var D$t=ft(ult=>{"use strict";Z();ne();ee();te();Object.defineProperty(ult,"__esModule",{value:!0});ult.TableNameColumn=clr;function clr(i){return i}e(clr,"TableNameColumn")});var A$t=ft(dlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(dlt,"__esModule",{value:!0});dlt.DocumentIdColumn=ulr;function ulr(i){return i}e(ulr,"DocumentIdColumn")});var C$t=ft(plt=>{"use strict";Z();ne();ee();te();Object.defineProperty(plt,"__esModule",{value:!0});plt.ReferenceColumn=dlr;function dlr(i){return i}e(dlr,"ReferenceColumn")});var w$t=ft(flt=>{"use strict";Z();ne();ee();te();Object.defineProperty(flt,"__esModule",{value:!0});flt.ListColumn=plr;function plr(i){return i}e(plr,"ListColumn")});var I$t=ft(_lt=>{"use strict";Z();ne();ee();te();Object.defineProperty(_lt,"__esModule",{value:!0});_lt.DecimalColumn=flr;function flr(i){return i}e(flr,"DecimalColumn")});var P$t=ft(mlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(mlt,"__esModule",{value:!0});mlt.DomainIdColumn=_lr;function _lr(i){return i}e(_lr,"DomainIdColumn")});var N$t=ft(hlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(hlt,"__esModule",{value:!0});hlt.DomainPathColumn=mlr;function mlr(i){return i}e(mlr,"DomainPathColumn")});var R$t=ft(glt=>{"use strict";Z();ne();ee();te();Object.defineProperty(glt,"__esModule",{value:!0});glt.TranslatedFieldColumn=hlr;function hlr(i){return i}e(hlr,"TranslatedFieldColumn")});var k$t=ft(ylt=>{"use strict";Z();ne();ee();te();Object.defineProperty(ylt,"__esModule",{value:!0});ylt.UserRolesColumn=glr;function glr(i){return i}e(glr,"UserRolesColumn")});var M$t=ft(vlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(vlt,"__esModule",{value:!0});vlt.BasicImageColumn=ylr;function ylr(i){return i}e(ylr,"BasicImageColumn")});var L$t=ft(blt=>{"use strict";Z();ne();ee();te();Object.defineProperty(blt,"__esModule",{value:!0});blt.ConditionsColumn=vlr;function vlr(i){return i}e(vlr,"ConditionsColumn")});var O$t=ft(Slt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Slt,"__esModule",{value:!0});Slt.TranslatedTextColumn=blr;function blr(i){return i}e(blr,"TranslatedTextColumn")});var F$t=ft(Elt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Elt,"__esModule",{value:!0});Elt.VersionColumn=Slr;function Slr(i){return i}e(Slr,"VersionColumn")});var B$t=ft(xlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(xlt,"__esModule",{value:!0});xlt.SystemClassNameColumn=Elr;function Elr(i){return i}e(Elr,"SystemClassNameColumn")});var W$t=ft(Tlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Tlt,"__esModule",{value:!0});Tlt.FieldNameColumn=xlr;function xlr(i){return i}e(xlr,"FieldNameColumn")});var j$t=ft(Dlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Dlt,"__esModule",{value:!0});Dlt.RadioColumn=Tlr;function Tlr(i){return i}e(Tlr,"RadioColumn")});var z$t=ft(Alt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Alt,"__esModule",{value:!0});Alt.GenericColumn=Dlr;function Dlr(i){return i}e(Dlr,"GenericColumn")});var jhe=ft(iy=>{"use strict";Z();ne();ee();te();var Alr=iy&&iy.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),v0=iy&&iy.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Alr(n,i,o)};Object.defineProperty(iy,"__esModule",{value:!0});v0(h$t(),iy);v0(g$t(),iy);v0(y$t(),iy);v0(v$t(),iy);v0(b$t(),iy);v0(S$t(),iy);v0(E$t(),iy);v0(x$t(),iy);v0(T$t(),iy);v0(D$t(),iy);v0(A$t(),iy);v0(C$t(),iy);v0(w$t(),iy);v0(I$t(),iy);v0(P$t(),iy);v0(N$t(),iy);v0(R$t(),iy);v0(k$t(),iy);v0(M$t(),iy);v0(L$t(),iy);v0(O$t(),iy);v0(F$t(),iy);v0(B$t(),iy);v0(W$t(),iy);v0(j$t(),iy);v0(z$t(),iy)});var G2=ft(OB=>{"use strict";Z();ne();ee();te();Object.defineProperty(OB,"__esModule",{value:!0});OB.INVALID_XML_CHARACTERS=void 0;OB.toReference=Clr;OB.reverseObject=wlr;OB.noThrow=Ilr;OB.applyPathMappings=Plr;OB.getCallExpressionName=Nlr;OB.generateDeprecatedDiagnostics=Rlr;var G$t=Wu();function Clr(i){return i.ifRecord()?.getId()??i.ifString()?.getValue()??""}e(Clr,"toReference");function wlr(i){let n={};for(let o in i){let l=i[o];typeof l=="string"&&(n[l]=o)}return n}e(wlr,"reverseObject");function Ilr(i){try{return i()}catch(n){return n}}e(Ilr,"noThrow");OB.INVALID_XML_CHARACTERS=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g;function Plr(i,n){if(!n)return i;for(let[o,l]of Object.entries(n)){let u=i.match(`${o.replace(/\./,"\\.").replace(/\*+/,"(.*)")}$`)?.[1];if(u!==void 0)return l.replace(/\*+/,u)}return i}e(Plr,"applyPathMappings");function Nlr(i){let n=i.getExpression();if(G$t.ts.Node.isIdentifier(n)||G$t.ts.Node.isPropertyAccessExpression(n))return n.getText();throw`CallExpression does not have a name: ${n.getText()}`}e(Nlr,"getCallExpressionName");function Rlr(i,n){Object.keys(i.getAliasedKeys()).forEach(o=>{let l=i.findAliasUsed(o);l&&n.hint(i.get(o),`The property '${l}' is deprecated, use '${o}' instead.`)})}e(Rlr,"generateDeprecatedDiagnostics")});var aLe=ft(oLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(oLe,"__esModule",{value:!0});oLe.CallExpressionPlugin=void 0;var VL=Wu(),klr=jhe(),Mlr=G2();oLe.CallExpressionPlugin=VL.Plugin.create({name:"CallExpressionPlugin",nodes:[{node:"CallExpression",fileTypes:["fluent"],entryPoint:!0,async toShape(i,{transform:n}){let o=[];for(let l of i.getArguments()){let u=await n.toShape(l);if(!u.success)return{success:!1};o.push(u.value)}return{success:!0,value:new VL.CallExpressionShape({source:i,callee:(0,Mlr.getCallExpressionName)(i),args:o})}}}],shapes:[{shape:VL.CallExpressionShape,async commit(i,n,{commit:o,compiler:l}){if(n.isKind(VL.ts.SyntaxKind.ExpressionStatement)&&(n=n.getExpression()),!VL.ts.Node.isCallExpression(n))return n.replaceWithText(i.getCode()),{success:!0};let u=n.getExpression();u.getText()!==i.getCallee()&&u.replaceWithText(i.getCallee());let p=n.getArguments(),h=i.getArguments(!1),v=p.length-h.length;for(let E=1;E<=v;E++)n.removeArgument(p.length-E);for(let[E,D]of n.getArguments().entries())await o(i.getArgument(E,!1),D);let T=h.slice(n.getArguments().length).map(E=>E.getCode());return T.length>0&&n.addArguments(T),i.getCallee()===klr.Record.name&&Llr(l,n),{success:!0}}}]});function Llr(i,n){if(n.wasForgotten())return;n.getSourceFile().fixMissingImports();let o=i.getTypeChecker().getResolvedSignature(n);o&&o.getParameters().forEach((l,u)=>{let p=l.getTypeAtLocation(n),h=n.getArguments()[u]?.asKind(VL.ts.SyntaxKind.ObjectLiteralExpression);!p||!h||U$t(n,h,p)})}e(Llr,"fixCallExpressionArgTypes");function U$t(i,n,o){if(n.getType().isObject()){let l=n.isKind(VL.ts.SyntaxKind.ObjectLiteralExpression)?n:n.getInitializerIfKind(VL.ts.SyntaxKind.ObjectLiteralExpression);o.getApparentProperties().forEach(u=>{let p=l?.getProperty(u.getName())?.asKind(VL.ts.SyntaxKind.PropertyAssignment);p&&U$t(i,p,u.getTypeAtLocation(i))})}else if(n.isKind(VL.ts.SyntaxKind.PropertyAssignment)){if(n.getType().isAssignableTo(o)||Blr(n,o)||Olr(n,o)||Flr(n,o))return;let u=n.getInitializer()?.getText();n.setInitializer(`${u} as any`)}}e(U$t,"fixCallExpressionArgType");function Olr(i,n){let o=jlr(n),l=Wlr(i);return l&&o.length>0&&o.some(p=>p.isBoolean()&&(l==="true"||l==="false")||p.getText()===l)?(i.setInitializer(`${l}`),!0):!1}e(Olr,"canCastAndAssignBoolean");function Flr(i,n){let o=Glr(n),l=zlr(i);return l&&o.length>0&&o.some(p=>p.isNumber()||`${p.getLiteralValue()}`===l)?(i.setInitializer(`${l}`),!0):!1}e(Flr,"canCastAndAssignNumber");function Blr(i,n){let o=Vlr(n),l=Ulr(i);return o.some(u=>u.isString()||u.getLiteralValue()===l)}e(Blr,"canAssignString");function Wlr(i){return i.getInitializerIfKind(VL.ts.SyntaxKind.StringLiteral)?.getLiteralValue()}e(Wlr,"getBooleanValue");function jlr(i){return(i.isUnion()?i.getUnionTypes():[i]).filter(o=>o.isBoolean()||o.isBooleanLiteral())}e(jlr,"getBooleanTypes");function zlr(i){let n=i.getInitializerIfKind(VL.ts.SyntaxKind.StringLiteral)?.getLiteralValue();return n&&!isNaN(Number(n))?`${n}`:void 0}e(zlr,"getNumberValue");function Glr(i){return(i.isUnion()?i.getUnionTypes():[i]).filter(o=>o.isNumber()||o.isNumberLiteral())}e(Glr,"getNumberTypes");function Ulr(i){return i.getInitializerIfKind(VL.ts.SyntaxKind.StringLiteral)?.getLiteralValue()}e(Ulr,"getStringValue");function Vlr(i){return(i.isUnion()?i.getUnionTypes():[i]).filter(o=>o.isString()||o.isStringLiteral())}e(Vlr,"getStringTypes")});var q$t=ft(sLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(sLe,"__esModule",{value:!0});sLe.ClientScriptPlugin=void 0;var Iae=Wu(),qlr=tA(),Klr=G2(),zhe;(function(i){i[i.desktop=0]="desktop",i[i.mobile_or_service_portal=1]="mobile_or_service_portal",i[i.all=10]="all"})(zhe||(zhe={}));var V$t={appliesExtended:["applies_extended"],isolateScript:["isolate_script"],uiType:["ui_type"]};sLe.ClientScriptPlugin=Iae.Plugin.create({name:"ClientScriptPlugin",records:{sys_script_client:{toShape(i){return{success:!0,value:new Iae.CallExpressionShape({source:i,callee:"ClientScript",args:[i.transform(({$:n,merge:o})=>({$id:n.val(qlr.NowIdShape.from(i)),type:n.def(""),table:n,appliesExtended:n.from("applies_extended").toBoolean().def(!1),isolateScript:n.from("isolate_script").toBoolean().def(!1),script:n,name:n,description:n.def(""),messages:n.def(""),global:n.toBoolean().def(!0),active:n.toBoolean().def(!0),view:n.def(""),uiType:n.from("ui_type").map(l=>Jlr(l.toNumber().getValue())).def("desktop"),[o]:n.from("field","type").map((l,u)=>u.isString()&&["onChange","onCellEdit"].includes(u.getValue())&&!l.ifString()?.isEmpty()?{field:l}:{})})).withAliasedKeys(V$t)]})}}}},shapes:[{shape:Iae.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{diagnostics:n,factory:o,compiler:l}){if(i.getCallee()!=="ClientScript")return{success:!1};let u=i.getArgument(0).asObject().withAliasedKeys(V$t);(0,Klr.generateDeprecatedDiagnostics)(u,n);let p=u.get("script").ifDefined()?.toString().getValue(),h=u.get("type").ifString()?.getValue();return u.get("field").ifString()?.getValue()&&!h&&n.error(u.get("field"),"Field values are allowed only when type is set to onChange or onCellEdit"),p&&!Hlr(p,l)&&n.error(u.get("script"),"Client side scripts cannot import or require modules."),{success:!0,value:o.createRecord({source:i,table:"sys_script_client",explicitId:u.get("$id"),properties:u.transform(({$:T})=>({table:T,global:T.def(!0),view:T,field:T,script:T.toCdata(),type:T,name:T,active:T.def(!0),applies_extended:T.from("appliesExtended").def(!1),description:T,messages:T,isolate_script:T.from("isolateScript").def(!1),ui_type:T.from("uiType").map(E=>E.isString()?Xlr(E.getValue()):void 0).def(0)}))})}}}]});function Hlr(i,n){let o=n.createSourceFile("tmp-file.ts",i),l=o.getDescendantsOfKind(Iae.ts.SyntaxKind.ImportDeclaration),u=o.getDescendantsOfKind(Iae.ts.SyntaxKind.CallExpression).filter(h=>$lr(h)),p=!(l.length>0||u.length>0);return n.removeSourceFile(o),p}e(Hlr,"validateClientSideScripts");function Jlr(i){let n=zhe[i];if(!n)throw Error("Invalid UI Type encountered, check XML data before transforming again.");return n}e(Jlr,"getUITypeFromId");function Xlr(i){if(i in zhe)return zhe[i];throw Error("Invalid ui_type found in xml")}e(Xlr,"getUITypeId");function $lr(i){let n=i.getExpression();return Iae.ts.Node.isIdentifier(n)&&n.getText()==="require"}e($lr,"isRequire")});var H$t=ft(lLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(lLe,"__esModule",{value:!0});lLe.CrossScopePrivilegePlugin=void 0;var Clt=Wu(),Ylr=tA(),Qlr=G2(),K$t={targetName:["target_name"],targetScope:["target_scope"],targetType:["target_type"]};lLe.CrossScopePrivilegePlugin=Clt.Plugin.create({name:"CrossScopePrivilegePlugin",records:{sys_scope_privilege:{toShape(i){return{success:!0,value:new Clt.CallExpressionShape({source:i,callee:"CrossScopePrivilege",args:[i.transform(({$:n})=>({$id:n.val(Ylr.NowIdShape.from(i)),operation:n,status:n,targetName:n.from("target_name"),targetScope:n.from("target_scope"),targetType:n.from("target_type")})).withAliasedKeys(K$t)]})}}}},shapes:[{shape:Clt.CallExpressionShape,fileTypes:["fluent"],toRecord(i,{factory:n,config:o,diagnostics:l}){if(i.getCallee()!=="CrossScopePrivilege")return{success:!1};let u=i.getArgument(0).asObject().withAliasedKeys(K$t);return(0,Qlr.generateDeprecatedDiagnostics)(u,l),{success:!0,value:n.createRecord({source:i,table:"sys_scope_privilege",explicitId:u.get("$id"),properties:u.transform(({$:p})=>({operation:p,status:p,target_name:p.from("targetName"),target_scope:p.from("targetScope"),target_type:p.from("targetType"),source_scope:p.val(o.scopeId)}))})}}}]})});var J$t=ft(wlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(wlt,"__esModule",{value:!0});wlt.ApplicationMenu=Zlr;function Zlr(i){return i}e(Zlr,"ApplicationMenu")});var X$t=ft(Ilt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ilt,"__esModule",{value:!0});Ilt.Property=ecr;function ecr(i){return i}e(ecr,"Property")});var $$t=ft(Plt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Plt,"__esModule",{value:!0});Plt.UserPreference=tcr;function tcr(i){return i}e(tcr,"UserPreference")});var Y$t=ft(Nlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Nlt,"__esModule",{value:!0});Nlt.CrossScopePrivilege=ncr;function ncr(i){return i}e(ncr,"CrossScopePrivilege")});var Q$t=ft(Rlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Rlt,"__esModule",{value:!0});Rlt.BusinessRule=rcr;function rcr(i){return i}e(rcr,"BusinessRule")});var Z$t=ft(M3=>{"use strict";Z();ne();ee();te();Object.defineProperty(M3,"__esModule",{value:!0});M3.AclAttributes=M3.AclOperations=M3.AclTypes=M3.AclNamedTypes=void 0;M3.Acl=ocr;var icr={ux_data_broker:"6d9c40e9531210101cb3ddeeff7b12f6",ux_page:"b9eb8a1b873303002941b53046cb0b18",ux_route:"b9eb8a1b873303002941b53046cb1234",pd_action:"pd_action",record:"record"};M3.AclNamedTypes={client_callable_flow_object:"client_callable_flow_object",client_callable_script_include:"client_callable_script_include",graphql:"GraphQL",processor:"processor",rest_endpoint:"REST_Endpoint",ui_page:"ui_page"};M3.AclTypes={...icr,...M3.AclNamedTypes};M3.AclOperations={execute:"execute",create:"create",read:"read",write:"write",delete:"delete",conditional_table_query_range:"7aad4c50b7f4621062b62181ce11a918",data_fabric:"e60cd19b4f602210f2c160cc32ce0b06",query_match:"521c7497b7300210240b06dd1e11a979",query_range:"e66cf897b7300210240b06dd1e11a9fd",edit_task_relations:"b718b0e2c0a80204005b2705d3b6a0a0",edit_ci_relations:"b7199572c0a8020400ee6d907c07d6cc",save_as_template:"e5a2b9c50a0a0bc5005dd4a3096ac37b",add_to_list:"394af8150a0a0b270096f5ac9d6bac47",report_on:"f6861c32c0a8016400647951e901525d",list_edit:"54f535270a0a0b8c007c67009ab2bdc0",report_view:"0997ab83733303005978e4b9cdf6a7b9",personalize_choices:"76742c60c0a801657735f3789a7327d0"};M3.AclAttributes={user_is_authenticated:"239bdf0c47d23110ba46ff58936d4330",has_admin_role:"8637f144b732111074f706dd1e11a981"};function ocr(i){return i}e(ocr,"Acl")});var eYt=ft(klt=>{"use strict";Z();ne();ee();te();Object.defineProperty(klt,"__esModule",{value:!0});klt.Role=acr;function acr(i){return i}e(acr,"Role")});var nYt=ft(tYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(tYt,"__esModule",{value:!0})});var iYt=ft(rYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(rYt,"__esModule",{value:!0})});var aYt=ft(oYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(oYt,"__esModule",{value:!0})});var lYt=ft(sYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(sYt,"__esModule",{value:!0})});var uYt=ft(cYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(cYt,"__esModule",{value:!0})});var pYt=ft(dYt=>{"use strict";Z();ne();ee();te();Object.defineProperty(dYt,"__esModule",{value:!0})});var fYt=ft(L3=>{"use strict";Z();ne();ee();te();var scr=L3&&L3.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Pae=L3&&L3.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&scr(n,i,o)};Object.defineProperty(L3,"__esModule",{value:!0});Pae(nYt(),L3);Pae(iYt(),L3);Pae(aYt(),L3);Pae(lYt(),L3);Pae(uYt(),L3);Pae(pYt(),L3)});var _Yt=ft(Mlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Mlt,"__esModule",{value:!0});Mlt.Test=lcr;fYt();function lcr(i,n){return{inputObject:i,configurationFunction:n}}e(lcr,"Test")});var cLe=ft(JR=>{"use strict";Z();ne();ee();te();var ccr=JR&&JR.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),RH=JR&&JR.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&ccr(n,i,o)};Object.defineProperty(JR,"__esModule",{value:!0});RH(J$t(),JR);RH(X$t(),JR);RH($$t(),JR);RH(Y$t(),JR);RH(Q$t(),JR);RH(Z$t(),JR);RH(eYt(),JR);RH(_Yt(),JR)});var mYt=ft(Llt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Llt,"__esModule",{value:!0});Llt.SPAngularProvider=ucr;function ucr(i){return i}e(ucr,"SPAngularProvider")});var hYt=ft(Ghe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ghe,"__esModule",{value:!0});Ghe.SPWidgetDependency=dcr;Ghe.JsInclude=pcr;Ghe.CssInclude=fcr;function dcr(i){return i}e(dcr,"SPWidgetDependency");function pcr(i){return i}e(pcr,"JsInclude");function fcr(i){return i}e(fcr,"CssInclude")});var gYt=ft(Uhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Uhe,"__esModule",{value:!0});Uhe.WidgetCategories=void 0;Uhe.SPWidget=_cr;Uhe.WidgetCategories={standard:"standard",otherApplications:"other",custom:"custom",sample:"sample",knowledgeBase:"kb",servicePortal:"sp_platform",serviceCatalog:"sc"};function _cr(i){return i}e(_cr,"SPWidget")});var Flt=ft(VG=>{"use strict";Z();ne();ee();te();var mcr=VG&&VG.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Olt=VG&&VG.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&mcr(n,i,o)};Object.defineProperty(VG,"__esModule",{value:!0});Olt(mYt(),VG);Olt(hYt(),VG);Olt(gYt(),VG)});var yYt=ft(Blt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Blt,"__esModule",{value:!0});Blt.ClientScript=hcr;function hcr(i){return i}e(hcr,"ClientScript")});var vYt=ft(uZ=>{"use strict";Z();ne();ee();te();var gcr=uZ&&uZ.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),ycr=uZ&&uZ.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&gcr(n,i,o)};Object.defineProperty(uZ,"__esModule",{value:!0});ycr(yYt(),uZ)});var bYt=ft(Wlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Wlt,"__esModule",{value:!0});Wlt.SysAttachment=vcr;function vcr(i){return i}e(vcr,"SysAttachment")});var SYt=ft(jlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(jlt,"__esModule",{value:!0});jlt.ScriptInclude=bcr;function bcr(i){return i}e(bcr,"ScriptInclude")});var EYt=ft(zlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(zlt,"__esModule",{value:!0});zlt.ScriptAction=Scr;function Scr(i){return i}e(Scr,"ScriptAction")});var xYt=ft(qG=>{"use strict";Z();ne();ee();te();var Ecr=qG&&qG.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Glt=qG&&qG.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Ecr(n,i,o)};Object.defineProperty(qG,"__esModule",{value:!0});Glt(bYt(),qG);Glt(SYt(),qG);Glt(EYt(),qG)});var TYt=ft(Ult=>{"use strict";Z();ne();ee();te();Object.defineProperty(Ult,"__esModule",{value:!0});Ult.List=xcr;function xcr(i){return i}e(xcr,"List")});var DYt=ft(Vlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Vlt,"__esModule",{value:!0});Vlt.UiPage=Tcr;function Tcr(i){return i}e(Tcr,"UiPage")});var AYt=ft(qlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(qlt,"__esModule",{value:!0});qlt.UiAction=Dcr;function Dcr(i){return i}e(Dcr,"UiAction")});var Klt=ft(kH=>{"use strict";Z();ne();ee();te();Object.defineProperty(kH,"__esModule",{value:!0});kH.UiAction=kH.UiPage=kH.List=void 0;var Acr=TYt();Object.defineProperty(kH,"List",{enumerable:!0,get:e(function(){return Acr.List},"get")});var Ccr=DYt();Object.defineProperty(kH,"UiPage",{enumerable:!0,get:e(function(){return Ccr.UiPage},"get")});var wcr=AYt();Object.defineProperty(kH,"UiAction",{enumerable:!0,get:e(function(){return wcr.UiAction},"get")})});var CYt=ft(Hlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Hlt,"__esModule",{value:!0});Hlt.RestApi=Icr;function Icr(i){return i}e(Icr,"RestApi")});var wYt=ft(dZ=>{"use strict";Z();ne();ee();te();var Pcr=dZ&&dZ.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),Ncr=dZ&&dZ.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Pcr(n,i,o)};Object.defineProperty(dZ,"__esModule",{value:!0});Ncr(CYt(),dZ)});var RYt=ft(fZ=>{"use strict";Z();ne();ee();te();Object.defineProperty(fZ,"__esModule",{value:!0});fZ.TableOwnership=fZ.RecordPlugin=void 0;var Jlt=Wu(),Rcr=Wu(),kcr=tA(),FB=cLe(),q4=Flt(),Mcr=vYt(),IYt=xYt(),PYt=Klt(),NYt=jhe(),pZ=wYt(),uLe=Klt();fZ.RecordPlugin=Jlt.Plugin.create({name:"RecordPlugin",records:{"*":{toShape(i){return{success:!0,value:new Jlt.CallExpressionShape({source:i,callee:"Record",args:[{$id:kcr.NowIdShape.from(i),table:i.getTable(),data:i.transform(({$:n})=>Object.fromEntries(i.keys().map(o=>[o,i.get(o).isString()?n.def(""):n])))}]})}},toFile(i,{config:n}){let o=(0,Rcr.unloadBuilder)(n),l=i.getTable(),u=i.getId().getValue(),p=o.record(i);return i.entries().sort(([h],[v])=>h.localeCompare(v)).forEach(([h,v])=>p.field(h,v)),{success:!0,value:{name:`${l}_${u}.xml`,category:i.getInstallCategory(),content:o.end()}}}}},shapes:[{shape:Jlt.CallExpressionShape,fileTypes:["fluent"],toRecord(i,{factory:n,diagnostics:o}){if(i.getCallee()!=="Record")return{success:!1};let l=i.getArgument(0).asObject(),u=l.get("table").asString().getValue(),p=fZ.TableOwnership[u];return p&&o.hint(i,`For a better experience, consider using the ${p} API`),{success:!0,value:n.createRecord({source:i,table:u,explicitId:l.get("$id"),properties:l.get("data").asObject()})}}}],files:[{matcher:/\.xml$/,toRecord(i,{parser:n,logger:o}){try{let[l,...u]=n.parsePayload(i);return l?{success:!0,value:l.with(...u)}:{success:!1}}catch(l){return o.debug(l),{success:!1}}}}]});fZ.TableOwnership={sys_security_acl:FB.Acl.name,sys_security_acl_role:FB.Acl.name,sys_app_application:FB.ApplicationMenu.name,sys_script:FB.BusinessRule.name,sys_script_client:Mcr.ClientScript.name,sys_scope_privilege:FB.CrossScopePrivilege.name,sys_ui_list_element:PYt.List.name,sys_ui_list:PYt.List.name,sys_properties:FB.Property.name,sys_user_role:FB.Role.name,sys_user_role_contains:FB.Role.name,sys_script_include:IYt.ScriptInclude.name,sp_widget:q4.SPWidget.name,m2m_sp_widget_dependency:q4.SPWidget.name,m2m_sp_ng_pro_sp_widget:q4.SPWidget.name,sp_ng_template:q4.SPWidget.name,sp_dependency:q4.SPWidgetDependency.name,m2m_sp_dependency_css_include:q4.SPWidgetDependency.name,m2m_sp_dependency_js_include:q4.SPWidgetDependency.name,sp_css_include:q4.CssInclude.name,sp_js_include:q4.JsInclude.name,sp_angular_provider:q4.SPAngularProvider.name,m2m_sp_ng_pro_sp_ng_pro:q4.SPAngularProvider.name,sys_atf_test:FB.Test.name,sys_ws_header_map:pZ.RestApi.name,sys_ws_query_parameter_map:pZ.RestApi.name,sys_ws_definition:pZ.RestApi.name,sys_ws_operation:pZ.RestApi.name,sys_ws_version:pZ.RestApi.name,sys_ws_header:pZ.RestApi.name,sys_ws_query_parameter:pZ.RestApi.name,sys_user_preference:FB.UserPreference.name,sys_ui_page:uLe.UiPage.name,sys_ui_action:uLe.UiAction.name,sys_ui_action_role:uLe.UiAction.name,sys_ui_action_view:uLe.UiAction.name,sysevent_script_action:IYt.ScriptAction.name,sys_db_object:NYt.Table.name,sys_dictionary:NYt.Table.name}});var kYt=ft(pLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(pLe,"__esModule",{value:!0});pLe.NowRefPlugin=void 0;var dLe=Wu(),Lcr=aLe();pLe.NowRefPlugin=dLe.Plugin.create({name:"NowRefPlugin",nodes:[{node:"CallExpression",async toShape(i,{transform:n,factory:o}){let l=await n.toShape(i,Lcr.CallExpressionPlugin);if(!l.success||!l.value.is(dLe.CallExpressionShape)||l.value.getCallee()!=="Now.ref")return{success:!1};let u=l.value,p=u.getArgument(0).asString("The first argument to Now.ref() must be a table name"),h=u.getArgument(1).as([dLe.StringShape,dLe.ObjectShape],"The second argument to Now.ref() must be a GUID or a coalesce keys object"),v=u.hasArgument(2)?u.getArgument(2).asObject("The third argument to Now.ref() must be a coalesce keys object"):void 0,[T,E]=v?[h.asString(),v]:h.isString()?[h.asString(),void 0]:[void 0,h.asObject()];return{success:!0,value:o.createReference({source:i,table:p,guid:T,keys:E})}}}]})});var MYt=ft(_Le=>{"use strict";Z();ne();ee();te();Object.defineProperty(_Le,"__esModule",{value:!0});_Le.NowUnresolvedPlugin=void 0;var fLe=Wu();_Le.NowUnresolvedPlugin=fLe.Plugin.create({name:"NowUnresolvedPlugin",shapes:[{shape:fLe.UnresolvedShape,commit(i,n){return n.replaceWithText(i.getCode()),{success:!0}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],toShape(i){return i.getText()!==fLe.UnresolvedShape.CODE?{success:!1}:{success:!0,value:new fLe.UnresolvedShape({source:i})}}}]})});var FYt=ft(mLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(mLe,"__esModule",{value:!0});mLe.PropertyPlugin=void 0;var Ocr=Wu(),Xlt=Wu(),Fcr=tA(),LYt=e(i=>i.split(",").map(n=>n.trim()).filter(n=>n),"getRolesArray");mLe.PropertyPlugin=Xlt.Plugin.create({name:"PropertyPlugin",records:{sys_properties:{toShape(i,{config:n}){return{success:!0,value:new Xlt.CallExpressionShape({source:i,callee:"Property",args:[i.transform(({$:o})=>({$id:o.val(Fcr.NowIdShape.from(i)),name:o.from("name","suffix").map((l,u)=>l.ifString()??(n.scope==="global"?u:`${n.scope}.${u.asString().getValue()}`)),value:o,description:o.def(""),type:o.def("string"),choices:o.map(l=>l.toString().getValue().split(/[,\n]/).map(p=>p.trim()).filter(p=>p)).def([]),isPrivate:o.from("is_private").toBoolean().def(!1),ignoreCache:o.from("ignore_cache").toBoolean().def(!1),roles:o.from("read_roles","write_roles").def({read:[],write:[]}).map((l,u)=>({read:l.ifString()?.pipe(p=>LYt(p.getValue())),write:u.ifString()?.pipe(p=>LYt(p.getValue()))}))}))]})}}}},shapes:[{shape:Xlt.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{config:n,diagnostics:o,factory:l}){if(i.getCallee()!=="Property")return{success:!1};let u=i.getArgument(0).asObject(),p=n.scope,h=u.get("name").asString();return!(0,Ocr.isSNScope)(p)&&n.scope!=="global"&&!h.asString().startsWith(`${p}.`)&&o.error(h.getOriginalNode(),`Property name must begin with '${p}.'`),{success:!0,value:l.createRecord({source:i,table:"sys_properties",explicitId:u.get("$id"),properties:u.transform(({$:v,merge:T})=>({name:v,suffix:v.from("name").map(E=>E.asString().replace(new RegExp(`^${n.scope}\\.`),"")),description:v,type:v.def("string"),value:v.toString(),is_private:v.from("isPrivate").def(!1),ignore_cache:v.from("ignoreCache").def(!1),choices:v.map(E=>E.ifArray()?.getValue().join(",")),[T]:v.from("roles").def({read_roles:"",write_roles:""}).map(E=>E.ifObject()?.transform(({$:D})=>({read_roles:D.from("read").map(C=>OYt(C)),write_roles:D.from("write").map(C=>OYt(C))})).properties())}))})}}}]});function OYt(i){return i.ifArray()?.pipe(n=>Array.from(new Set(n.getElements().map(o=>o.ifRecord()?.get("name").getValue()??o.getValue()))).join(","))}e(OYt,"getRolesString")});var WYt=ft(hLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(hLe,"__esModule",{value:!0});hLe.RolePlugin=void 0;var Bcr=Wu(),$lt=Wu(),Wcr=G2(),BYt={canDelegate:["can_delegate"],elevatedPrivilege:["elevated_privilege"],assignableBy:["assignable_by"],containsRoles:["contains_roles"],scopedAdmin:["scoped_admin"]};hLe.RolePlugin=$lt.Plugin.create({name:"RolePlugin",records:{sys_user_role:{relationships:{sys_user_role_contains:{via:"role",descendant:!0,relationships:{sys_user_role:{via:"contains",inverse:!0}}}},coalesce:["name"],toShape(i,{descendants:n}){return{success:!0,value:new $lt.CallExpressionShape({source:i,callee:"Role",args:[i.transform(({$:o})=>({name:o,assignableBy:o.from("assignable_by").def(""),description:o.def(""),canDelegate:o.from("can_delegate").toBoolean().def(!0),elevatedPrivilege:o.from("elevated_privilege").toBoolean().def(!1),grantable:o.toBoolean().def(!0),scopedAdmin:o.from("scoped_admin").toBoolean().def(!1),containsRoles:o.val(n.query("sys_user_role_contains").map(l=>l.get("contains").toRecordId())).def([])})).withAliasedKeys(BYt)]})}}},sys_user_role_contains:{coalesce:["role","contains"]}},shapes:[{shape:$lt.CallExpressionShape,fileTypes:["fluent"],async toRecord(i,{config:n,diagnostics:o,factory:l}){if(i.getCallee()!=="Role")return{success:!1};let u=i.getArgument(0).asObject().withAliasedKeys(BYt);(0,Wcr.generateDeprecatedDiagnostics)(u,o);let p=n.scope,h=u.get("name").asString();p!=="global"&&!(0,Bcr.isSNScope)(p)&&!h.getValue().startsWith(`${p}.`)&&o.error(h.getOriginalNode(),`Role name must begin with '${p}.'`);let v=l.createRecord({explicitId:u.get("$id"),source:i,table:"sys_user_role",properties:u.transform(({$:E})=>({name:E,assignable_by:E.from("assignableBy").def(""),can_delegate:E.from("canDelegate").def(!0),description:E.def(""),elevated_privilege:E.from("elevatedPrivilege").def(!1),grantable:E.def(!0),scoped_admin:E.from("scopedAdmin").def(!1),suffix:E.from("name").map(D=>D.asString().getValue().replace(new RegExp(`^${n.scope}\\.`),""))}))}),T=u.get("containsRoles").ifArray()?.map(E=>l.createRecord({source:i,table:"sys_user_role_contains",properties:{role:v,contains:E.ifStringLiteral()?.pipe(D=>l.createReference({source:D,table:"sys_user_role",keys:{name:D}}))??E}}));return{success:!0,value:v.with(...T??[])}}}]})});var yLe=ft(gLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(gLe,"__esModule",{value:!0});gLe.fileExists=void 0;var jcr=e(async(i,n)=>{try{return(await n.stat(i)).isFile()}catch{return!1}},"fileExists");gLe.fileExists=jcr});var Nae=ft(Vhe=>{"use strict";Z();ne();ee();te();Object.defineProperty(Vhe,"__esModule",{value:!0});Vhe.splitModuleRequest=void 0;Vhe.getRealPkgJson=Hcr;var zcr=(vC(),Ld(yC)),Gcr=Wu(),Ucr=yLe(),Vcr=/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*/,qcr=e((i="")=>{let n=i.match(Vcr);return n?.length&&n[0]},"getModuleName"),Kcr=e(i=>{let n=qcr(i);if(!n)return{moduleName:"",entry:""};let o=Gcr.path.relative(n,i);return o?{moduleName:n,entry:o}:{moduleName:n,entry:""}},"splitModuleRequest");Vhe.splitModuleRequest=Kcr;async function Hcr(i="",n,o,l){try{let u=(0,zcr.resolver)({fs:o,warn:l?.warn,ignoreExports:!0}),p=`${i}/package.json`,v=(await u(p,n))?.id,T;if(v&&await(0,Ucr.fileExists)(v,o)&&(T=JSON.parse(await o.readFile(v,"utf8")),T&&"name"in T&&T.name===i))return{packageJson:T,path:v}}catch(u){console.error(`Error fetching package.json for ${i}:`,u)}}e(Hcr,"getRealPkgJson")});var Ylt=ft(vLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(vLe,"__esModule",{value:!0});vLe.isNodeBuiltIn=void 0;var Jcr=(vC(),Ld(yC)),Xcr="\0polyfill-node.",$cr=e(i=>{let n=(0,Jcr.polyfill)()?.resolveId(i);return n&&n.id?n.id.startsWith(Xcr):!1},"isNodeBuiltIn");vLe.isNodeBuiltIn=$cr});var qhe=ft(U2=>{"use strict";Z();ne();ee();te();Object.defineProperty(U2,"__esModule",{value:!0});U2.writePackageJson=U2.FALLBACK_VERSION=U2.DEFAULT_EXPORTS_DIR=void 0;U2.notifyUserOfFluentDependency=eur;U2.shouldBundlePkg=tur;var Rae=Wu(),Ycr=yLe(),zYt=Nae(),GYt=Ylt();U2.DEFAULT_EXPORTS_DIR=".";U2.FALLBACK_VERSION="1.0.0";var Qcr=["@servicenow/glide"],Zcr=e((i="",n,o)=>{let l={name:i,version:U2.FALLBACK_VERSION,exports:Qlt(o),dependencies:{}};return n.forEach(u=>{l.dependencies[u]=U2.FALLBACK_VERSION}),l},"createFallbackPkgJson");function eur(i,n,o,l){if(i&&Rae.NowConfig.exists(n,l)){let u=i.packageJson,{name:p}=u;o.info(`${p} is a ServiceNow Scoped App and will not be installed automatically.`),o.info(`You will be able to use JavaScript Modules from ${p} but please make sure it is installed on your ServiceNow instance to use any other application resources.`)}}e(eur,"notifyUserOfFluentDependency");function tur(i){if(!i)return!0;let n=i.packageJson,{name:o}=n;return!Qcr.includes(o)}e(tur,"shouldBundlePkg");var nur=e(async(i="",n,o,l,u,p,h)=>{let v,T=Rae.path.resolve(Rae.path.join(l,"package.json"));return u&&await(0,Ycr.fileExists)(T,p)?(v=JSON.parse(await p.readFile(T,"utf8")),v.exports={...v.exports,...Qlt(n)},v.dependencies={...v.dependencies,...await jYt(Rae.path.dirname(u.path),o,n,p)}):u?(v=u.packageJson,delete v.module,delete v.browser,delete v.exports,delete v.main,v.version=(0,GYt.isNodeBuiltIn)(i)?U2.FALLBACK_VERSION:v.version,v.exports=Qlt(n),v.dependencies=await jYt(Rae.path.dirname(u.path),o,n,p)):v=Zcr(i,o,n),h.writeFileSync(T,JSON.stringify(v,null,2),{encoding:"utf-8"}),{packageJsonPath:T,packageJson:v}},"writePackageJson");U2.writePackageJson=nur;function Qlt(i){return i.reduce((o,{fileName:l,entryName:u})=>{if(u)l==="index.js"?o[U2.DEFAULT_EXPORTS_DIR]=`./${l}`:u.startsWith(U2.DEFAULT_EXPORTS_DIR)?u&&(o[u]=`./${l}`):o[`./${u}`]=`./${l}`;else return o;return o},{})}e(Qlt,"getExportsField");async function jYt(i,n,o,l){let u=n.reduce((v,T)=>{let{moduleName:E}=(0,zYt.splitModuleRequest)(T);return E&&!(E in v)&&(v[E]=T),v},{}),p=new Set(Object.keys(u)),h={};for(let v of p)o.some(({fileName:T})=>T===v)||(h[v]=await rur(v,i,l));return h}e(jYt,"getDependencies");async function rur(i,n,o){return(0,GYt.isNodeBuiltIn)(i)?U2.FALLBACK_VERSION:(await(0,zYt.getRealPkgJson)(i,Rae.path.join(n,"package.json"),o))?.packageJson?.version||U2.FALLBACK_VERSION}e(rur,"getDependencyVersion")});var UYt=ft(Zlt=>{"use strict";Z();ne();ee();te();Object.defineProperty(Zlt,"__esModule",{value:!0});var iur=Nae();Zlt.default=i=>{let{addDependency:n,dependencyId:o}=i;return e((u,p,h)=>{let{moduleName:v,entry:T}=(0,iur.splitModuleRequest)(u);return v&&v!==o&&!h?(i?.cb&&i.cb({moduleName:v}),n({dependencyId:v,moduleRoot:i.moduleRoot,importer:p,subPaths:[T||"."]}),!0):!1},"handler")}});var VYt=ft(ect=>{"use strict";Z();ne();ee();te();Object.defineProperty(ect,"__esModule",{value:!0});var our=yLe();ect.default=i=>({name:"rollup-web-fs",resolveId:{order:"post",async handler(n,o){if(await(0,our.fileExists)(n,i.fs))return n;throw new Error(`Could not resolve import "${n}" from "${o}"`)}},load(n){return i.fs.readFile(n,"utf8")}})});var qYt=ft(Khe=>{"use strict";Z();ne();ee();te();var aur=Khe&&Khe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Khe,"__esModule",{value:!0});var kae=(vC(),Ld(yC)),sur=aur(VYt()),lur=e(i=>i.filter(n=>n),"compact"),cur=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";Khe.default=({moduleRoot:i,rollUpFS:n,useWebFsLoader:o})=>lur([(0,kae.replace)({"global*":"__global$*",preventAssignment:!0,"process.env.NODE_ENV":"production"}),(0,kae.json)(),(0,kae.nodeResolve)({fs:n,rootDir:i,preferBuiltins:!1}),(0,kae.swc)({swc:{jsc:{parser:{jsx:!0,syntax:"ecmascript"}}}}),(0,kae.commonjs)({fs:n,rootDir:i,dynamicRequireRoot:i}),(0,kae.polyfill)(),(cur||o)&&(0,sur.default)({fs:n})])});var nct=ft(bLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(bLe,"__esModule",{value:!0});bLe.RollupFs=void 0;var tct=class{static{e(this,"RollupFs")}fs;promises;constructor(n){this.fs=n,this.promises={lstat:this.lstatPromise,readdir:this.readdirPromise,readlink:this.readlinkPromise,realpath:this.realpath}}lstatSync;readdirSync;readlinkSync;realpath(n){return new Promise((o,l)=>{try{o(this.fs.realpathSync(n))}catch(u){l(u)}})}realpathSync(n){return this.fs.realpathSync(n)}async access(n){try{return!!this.fs.statSync(n)}catch{return!1}}readFile(n,o){return new Promise((l,u)=>{try{let p=o?{encoding:"utf-8"}:void 0;l(this.fs.readFileSync(n,p))}catch(p){u(p)}})}stat(n){return new Promise((o,l)=>{try{o(this.fs.statSync(n))}catch(u){l(u)}})}readdir=e((n,o,l)=>{this.readdirPromise(n,o).then(u=>l(null,u)).catch(u=>l(u))},"readdir");lstatPromise(n){return new Promise((o,l)=>{try{o(this.fs.statSync(n))}catch(u){l(u)}})}readdirPromise(n,o){return new Promise((l,u)=>{try{let p=this.fs.readdirSync(n,o);l(p)}catch(p){u(p)}})}async readlinkPromise(n){return this.realpath(n)}mkdir(n,o){return new Promise((l,u)=>{try{o?.recursive?this.fs.mkdirSync(n,{recursive:!0}):this.fs.mkdirSync(n),l()}catch(p){u(p)}})}writeFile(n,o,l){return new Promise((u,p)=>{try{let h=l?{encoding:"utf-8"}:void 0;this.fs.writeFileSync(n,o,h),u()}catch(h){p(h)}})}};bLe.RollupFs=tct});var JYt=ft(rct=>{"use strict";Z();ne();ee();te();Object.defineProperty(rct,"__esModule",{value:!0});rct.getInputMap=uur;var KYt=Wu(),HYt=qhe();async function uur(i,n=""){let o={input:{}};return i?i?.reduce((l,u)=>{let p=u.substring(0,u.length-KYt.path.extname(u).length);p===HYt.DEFAULT_EXPORTS_DIR&&(p="index");let h=u===HYt.DEFAULT_EXPORTS_DIR?n:KYt.path.join(n,u);return{input:{...l.input,[p]:{entryTarget:h,originalMapping:u}}}},o):o}e(uur,"getInputMap")});var $Yt=ft(SLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(SLe,"__esModule",{value:!0});SLe.JobStack=void 0;var XYt=qhe(),dur=Nae(),pur=e(i=>i?.packageJson.version||XYt.FALLBACK_VERSION,"getVersion"),ict=class{static{e(this,"JobStack")}rollUpFS;currentJobs=[];finishedJobs=[];stagedJobs=[];constructor(n){this.rollUpFS=n}pushJob(n){this.stagedJobs.push(n)}hasJobsInQueue(){return this.currentJobs.length>0||this.stagedJobs.length>0}async processStagedJobs(){for(;this.stagedJobs.length>0;){let n=this.stagedJobs.shift();if(n){let{dependencyId:o="",...l}=n;if(l.importer?.endsWith("?commonjs-external"))continue;let p=await(0,dur.getRealPkgJson)(o,l.importer||l.moduleRoot,this.rollUpFS),h=pur(p),T=(l.subPaths?.length?l.subPaths:[XYt.DEFAULT_EXPORTS_DIR]).map(E=>`${o}/${h}/${E}`).filter(E=>!this.finishedJobs.includes(E));if(T.length>0){let E=this.currentJobs.findIndex(D=>D.dependencyId===o&&D.version===h);E>-1&&this.currentJobs[E]?this.currentJobs[E]={...this.currentJobs[E],subPaths:[...this.currentJobs[E]?.subPaths||[],...l.subPaths||[]]}:this.currentJobs.push({...n,version:h}),this.finishedJobs.push(...T)}}}}async popJob(){return await this.processStagedJobs(),this.currentJobs.pop()}};SLe.JobStack=ict});var QYt=ft(Mae=>{"use strict";Z();ne();ee();te();var YYt=Mae&&Mae.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Mae,"__esModule",{value:!0});Mae.runBuild=void 0;var fur=(vC(),Ld(yC)),Hhe=qhe(),_ur=YYt(UYt()),mur=YYt(qYt()),XR=Wu(),hur=nct(),gur=JYt(),yur=Nae(),vur=$Yt(),bur=Ylt(),Sur=e(async({pkgName:i,entryPoint:n,outputDir:o,rootDir:l,fs:u,options:p,logger:h,useWebFsLoader:v=!1})=>{let T=new hur.RollupFs(u),E=new vur.JobStack(T),D=[],C=XR.path.join(l,"node_modules"),w=XR.path.resolve(l,o);XR.FileSystem.ensureDirSync(u,w);let W={dependencyId:i,subPaths:n,moduleRoot:C};E.pushJob(W);let V=e(async({subPaths:B,outDir:k,options:F={repackage:{omitProto:!0}},dependencyId:$,importer:Y,requestorModuleRoot:ie})=>{let fe=await(0,yur.getRealPkgJson)($,Y||ie,T),ve=fe?XR.path.dirname(fe.path):ie;if(!(0,Hhe.shouldBundlePkg)(fe)){h.info(`Not bundling ${$}`);return}(0,Hhe.notifyUserOfFluentDependency)(fe,ve,h,u);let Ce=fe?.packageJson.version||Hhe.FALLBACK_VERSION;Ce=(0,bur.isNodeBuiltIn)($)?Hhe.FALLBACK_VERSION:Ce,h.info(`Building ${$} ${Ce}...`);let be={format:"cjs",interop:"compat",intro:'var __global$ = globalThis || (typeof window !== "undefined" ? window : self);'};try{let{input:qe}=await(0,gur.getInputMap)(B,$),yt=new Set,Ct=e(({moduleName:Kt})=>{yt.add(Kt)},"captureImportedPackages"),Bt=Object.entries(qe).reduce((Kt,[ht,wn])=>(Kt[ht]=wn.entryTarget,Kt),{}),fn=await(0,fur.rollup)({input:Bt,output:be,preserveSymlinks:!0,external:(0,_ur.default)({cb:Ct,addDependency:E.pushJob.bind(E),dependencyId:$,moduleRoot:ve}),plugins:(0,mur.default)({moduleRoot:ve,rollUpFS:T,useWebFsLoader:v})}),{output:Fn}=await fn.generate(be),Sn=XR.path.join(l,k,$,Ce);XR.FileSystem.ensureDirSync(u,Sn);let Qt=[];for(let Kt of Fn)if(Kt.type==="chunk"){let ht=Kt.code;F.repackage.omitProto&&(ht=ht.replaceAll(/__proto__: ?null,?/g,""));let wn=XR.path.resolve(XR.path.join(Sn,Kt.fileName)),Gn=XR.path.dirname(wn);XR.FileSystem.ensureDirSync(u,Gn),u.writeFileSync(wn,ht,{encoding:"utf-8"}),Kt.isEntry?Qt.push({entryName:qe[Kt.name].originalMapping,fileName:Kt.fileName}):Qt.push({fileName:Kt.fileName})}else if(Kt.type==="asset"){let ht=XR.path.resolve(XR.path.join(Sn,Kt.fileName)),wn=XR.path.dirname(ht);XR.FileSystem.ensureDirSync(u,wn),u.writeFileSync(ht,Kt.source,{encoding:"utf-8"}),Qt.push({fileName:Kt.fileName})}let{packageJson:on}=await(0,Hhe.writePackageJson)($,Qt,[...yt],Sn,fe,T,u);return{files:[...Qt.map(({fileName:Kt})=>Kt),"package.json"],packagePath:Sn,updatedManifest:on}}catch(qe){h.info(qe.toString())}},"buildDependency");for(;E.hasJobsInQueue();){let B=await E.popJob();if(!B)continue;let{dependencyId:k,subPaths:F,moduleRoot:$,importer:Y}=B,ie=await V({subPaths:F?.filter(fe=>fe),outDir:o,options:p,dependencyId:k,importer:Y,requestorModuleRoot:$});ie&&D.push(ie)}return D},"runBuild");Mae.runBuild=Sur});var tQt=ft(KG=>{"use strict";Z();ne();ee();te();Object.defineProperty(KG,"__esModule",{value:!0});KG.getPkgInfo=KG.build=KG.emptyLogger=void 0;var Eur=QYt(),ZYt=Wu(),eQt=Nae(),xur=nct(),Tur=qhe();KG.emptyLogger={info:e((...i)=>{},"info"),warn:e((...i)=>{},"warn"),error:e((...i)=>{},"error"),debug:e((...i)=>{},"debug")};var Dur=e(async({id:i,minify:n=!1,entry:o,logger:l=KG.emptyLogger,workingDir:u,fs:p,useWebFsLoader:h,outputDir:v=ZYt.path.join(".now",".output")})=>{let T=await(0,Eur.runBuild)({pkgName:(0,eQt.splitModuleRequest)(i).moduleName,entryPoint:o,options:{repackage:{minify:n,omitProto:!0}},rootDir:u,logger:l,fs:p,useWebFsLoader:h,outputDir:v});return l.info("Done!"),T},"build");KG.build=Dur;var Aur=e(async({dependencyName:i,fs:n,workingDir:o,logger:l})=>{let u=ZYt.path.join(o,"node_modules"),p=await(0,eQt.getRealPkgJson)(i,u,new xur.RollupFs(n),l);return p?{name:p.packageJson.name,version:p.packageJson.version}:{name:i,version:Tur.FALLBACK_VERSION}},"getPkgInfo");KG.getPkgInfo=Aur});var ELe=ft(_Z=>{"use strict";Z();ne();ee();te();Object.defineProperty(_Z,"__esModule",{value:!0});_Z.RepackService=_Z.REPACK_OUTPUT_DIR=void 0;var Cur=Wu();_Z.REPACK_OUTPUT_DIR=Cur.path.join(".now",".output");var oct=class i{static{e(this,"RepackService")}repack;logger;fs;workingDir;constructor(n,o,l,u){this.repack=n,this.logger=o,this.fs=l,this.workingDir=u}static async create(n,o,l){let u=await Promise.resolve().then(()=>DY(tQt()));return new i(u,n,o,l)}async execute(n){return this.repack.build({...n,logger:this.logger,fs:this.fs,workingDir:this.workingDir,outputDir:_Z.REPACK_OUTPUT_DIR})}async getResolvedDepDetails(n){return this.repack.getPkgInfo({dependencyName:n,workingDir:this.workingDir,fs:this.fs,logger:this.logger})}};_Z.RepackService=oct});var lct=ft(MH=>{"use strict";Z();ne();ee();te();var nQt=MH&&MH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Oae=MH&&MH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},act,Lae,Jhe,rQt;Object.defineProperty(MH,"__esModule",{value:!0});MH.BomRefDiscriminator=void 0;var sct=class{static{e(this,"BomRefDiscriminator")}constructor(n,o="BomRef"){act.add(this),Lae.set(this,void 0),Jhe.set(this,void 0),nQt(this,Lae,Array.from(n,l=>[l,l.value]),"f"),nQt(this,Jhe,o,"f")}get prefix(){return Oae(this,Jhe,"f")}*[(Lae=new WeakMap,Jhe=new WeakMap,act=new WeakSet,Symbol.iterator)](){for(let[n]of Oae(this,Lae,"f"))yield n}discriminate(){let n=new Set([""]);for(let[o]of Oae(this,Lae,"f")){let l=o.value;(l===void 0||n.has(l))&&(l=Oae(this,act,"m",rQt).call(this),o.value=l),n.add(l)}}reset(){for(let[n,o]of Oae(this,Lae,"f"))n.value=o}};MH.BomRefDiscriminator=sct;rQt=e(function(){return`${Oae(this,Jhe,"f")}${Math.random().toString(32).substring(1)}${Math.random().toString(32).substring(1)}`},"_BomRefDiscriminator_makeUniqueId")});var TLe=ft(xLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(xLe,"__esModule",{value:!0});xLe.OptPlugError=void 0;var cct=class extends Error{static{e(this,"OptPlugError")}constructor(n,o){super(n),this.cause=o}};xLe.OptPlugError=cct});var dct=ft(DLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(DLe,"__esModule",{value:!0});DLe.MissingOptionalDependencyError=void 0;var wur=TLe(),uct=class extends wur.OptPlugError{static{e(this,"MissingOptionalDependencyError")}};DLe.MissingOptionalDependencyError=uct});var oQt=ft(iQt=>{"use strict";Z();ne();ee();te();Object.defineProperty(iQt,"__esModule",{value:!0})});var Fae=ft(ALe=>{"use strict";Z();ne();ee();te();Object.defineProperty(ALe,"__esModule",{value:!0});ALe.treeIteratorSymbol=void 0;ALe.treeIteratorSymbol=Symbol("iterator of a tree/nesting-like structure")});var wLe=ft(Bae=>{"use strict";Z();ne();ee();te();var sQt=Bae&&Bae.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},CLe,aQt,lQt;Object.defineProperty(Bae,"__esModule",{value:!0});Bae.BaseSerializer=void 0;var pct=Fae(),Iur=lct(),fct=class{static{e(this,"BaseSerializer")}constructor(){CLe.add(this)}serialize(n,o){return this._serialize(sQt(this,CLe,"m",lQt).call(this,n,o),o)}};Bae.BaseSerializer=fct;CLe=new WeakSet,aQt=e(function*(n){if(n.metadata.component!==void 0){yield n.metadata.component.bomRef;for(let{bomRef:o}of n.metadata.component.components[pct.treeIteratorSymbol]())yield o}for(let{bomRef:o}of n.components[pct.treeIteratorSymbol]())yield o;for(let{bomRef:o}of n.services[pct.treeIteratorSymbol]())yield o;for(let{bomRef:o}of n.vulnerabilities)yield o},"_BaseSerializer_getAllBomRefs"),lQt=e(function(n,o){let l=new Iur.BomRefDiscriminator(sQt(this,CLe,"m",aQt).call(this,n));l.discriminate();try{return this._normalize(n,o)}finally{l.reset()}},"_BaseSerializer_normalize")});var mct=ft(_ct=>{"use strict";Z();ne();ee();te();Object.defineProperty(_ct,"__esModule",{value:!0});_ct.chainI=Pur;function*Pur(...i){for(let n of i)for(let o of n)yield o}e(Pur,"chainI")});var ILe=ft(hct=>{"use strict";Z();ne();ee();te();Object.defineProperty(hct,"__esModule",{value:!0});hct.isNotUndefined=Nur;function Nur(i){return i!==void 0}e(Nur,"isNotUndefined")});var yct=ft(gct=>{"use strict";Z();ne();ee();te();Object.defineProperty(gct,"__esModule",{value:!0});gct.escapeUri=kur;var Rur=[[/ /g,"%20"],[/"/g,"%22"],[/'/g,"%27"],[/\[/g,"%5B"],[/]/g,"%5D"],[/</g,"%3C"],[/>/g,"%3E"],[/\{/g,"%7B"],[/}/g,"%7D"]];function kur(i){if(i===void 0)return i;for(let[n,o]of Rur)i=i.replace(n,o);return i}e(kur,"escapeUri")});var HG=ft($R=>{"use strict";Z();ne();ee();te();var LH=$R&&$R.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},xct=$R&&$R.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Wae,PLe,jae,vct,cQt;Object.defineProperty($R,"__esModule",{value:!0});$R.LicenseRepository=$R.SpdxLicense=$R.NamedLicense=$R.LicenseExpression=void 0;var bct=class{static{e(this,"LicenseExpression")}constructor(n){Wae.set(this,void 0),this.expression=n}get expression(){return LH(this,Wae,"f")}set expression(n){if(n==="")throw new RangeError("value is empty string");xct(this,Wae,n,"f")}compare(n){return LH(this,Wae,"f").localeCompare(LH(n,Wae,"f"))}};$R.LicenseExpression=bct;Wae=new WeakMap;var NLe=class{static{e(this,"DisjunctiveLicenseBase")}constructor(n={}){PLe.set(this,void 0),this.acknowledgement=n.acknowledgement,this.text=n.text,this.url=n.url}get url(){return LH(this,PLe,"f")}set url(n){xct(this,PLe,n===""?void 0:n,"f")}};PLe=new WeakMap;var Sct=class extends NLe{static{e(this,"NamedLicense")}constructor(n,o={}){super(o),this.name=n}compare(n){return this.name.localeCompare(n.name)}};$R.NamedLicense=Sct;var Ect=class extends NLe{static{e(this,"SpdxLicense")}constructor(n,o={}){super(o),jae.set(this,void 0),this.id=n}get id(){return LH(this,jae,"f")}set id(n){if(n==="")throw new RangeError("value is empty string");xct(this,jae,n,"f")}compare(n){return LH(this,jae,"f").localeCompare(LH(n,jae,"f"))}};$R.SpdxLicense=Ect;jae=new WeakMap;var RLe=class extends Set{static{e(this,"LicenseRepository")}sorted(){return Array.from(this).sort(LH(vct,vct,"m",cQt))}};$R.LicenseRepository=RLe;vct=RLe,cQt=e(function(n,o){return n.constructor===o.constructor?n.compare(o):n.constructor.name.localeCompare(o.constructor.name)},"_LicenseRepository_compareItems")});var Xhe=ft(OH=>{"use strict";Z();ne();ee();te();var Mur=OH&&OH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},Tct,uQt;Object.defineProperty(OH,"__esModule",{value:!0});OH.LifecycleRepository=OH.NamedLifecycle=void 0;var kLe=class{static{e(this,"NamedLifecycle")}constructor(n,o={}){this.name=n,this.description=o.description}compare(n){return this.name.localeCompare(n.name)}};OH.NamedLifecycle=kLe;var MLe=class extends Set{static{e(this,"LifecycleRepository")}sorted(){return Array.from(this).sort(Mur(Tct,Tct,"m",uQt))}};OH.LifecycleRepository=MLe;Tct=MLe,uQt=e(function(n,o){return n.constructor===o.constructor?n instanceof kLe?n.compare(o):n.localeCompare(o):n.constructor.name.localeCompare(o.constructor.name)},"_LifecycleRepository_compareItems")});var aI=ft(V2=>{"use strict";Z();ne();ee();te();Object.defineProperty(V2,"__esModule",{value:!0});V2.SortableNumbers=V2.SortableStringables=V2.SortableComparables=V2.SortableSet=V2.compareObjectsSymbol=void 0;V2.compareObjectsSymbol=Symbol("internal compare function");var zae=class extends Set{static{e(this,"SortableSet")}sorted(){return Array.from(this).sort(this[V2.compareObjectsSymbol])}compare(n){let o=n.sorted(),l=this.sorted();if(l.length!==o.length)return l.length-o.length;for(let u=l.length-1;u>=0;--u){let p=this[V2.compareObjectsSymbol](l[u],o[u]);if(p!==0)return p}return 0}};V2.SortableSet=zae;var Dct=class extends zae{static{e(this,"SortableComparables")}[V2.compareObjectsSymbol](n,o){return n.constructor===o.constructor?n.compare(o):n.constructor.name.localeCompare(o.constructor.name)}};V2.SortableComparables=Dct;var Act=class extends zae{static{e(this,"SortableStringables")}[V2.compareObjectsSymbol](n,o){return n.toString().localeCompare(o.toString())}};V2.SortableStringables=Act;var Cct=class extends zae{static{e(this,"SortableNumbers")}[V2.compareObjectsSymbol](n,o){return n-o}};V2.SortableNumbers=Cct});var dQt=ft(wct=>{"use strict";Z();ne();ee();te();Object.defineProperty(wct,"__esModule",{value:!0});wct.isCPE=Our;var Lur=/^([c][pP][eE]:\/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})$|^(cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})$/;function Our(i){return typeof i=="string"&&Lur.test(i)}e(Our,"isCPE")});var $he=ft(Gae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Gae,"__esModule",{value:!0});Gae.BomRefRepository=Gae.BomRef=void 0;var Ict=class{static{e(this,"BomRef")}constructor(n){this.value=n}compare(n){return this.toString().localeCompare(n.toString())}toString(){return this.value??""}};Gae.BomRef=Ict;var Pct=class extends Set{static{e(this,"BomRefRepository")}};Gae.BomRefRepository=Pct});var Rct=ft(LLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(LLe,"__esModule",{value:!0});LLe.CopyrightRepository=void 0;var Fur=aI(),Nct=class extends Fur.SortableStringables{static{e(this,"CopyrightRepository")}};LLe.CopyrightRepository=Nct});var Yhe=ft(Uae=>{"use strict";Z();ne();ee();te();var Bur=Uae&&Uae.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},kct,pQt;Object.defineProperty(Uae,"__esModule",{value:!0});Uae.HashDictionary=void 0;var OLe=class extends Map{static{e(this,"HashDictionary")}sorted(){return Array.from(this.entries()).sort(Bur(kct,kct,"m",pQt))}};Uae.HashDictionary=OLe;kct=OLe,pQt=e(function([n,o],[l,u]){return n.localeCompare(l)||o.localeCompare(u)},"_HashDictionary_compareItems")});var mZ=ft(Vae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Vae,"__esModule",{value:!0});Vae.ExternalReferenceRepository=Vae.ExternalReference=void 0;var Wur=aI(),jur=Yhe(),Mct=class{static{e(this,"ExternalReference")}constructor(n,o,l={}){this.url=n,this.type=o,this.hashes=l.hashes??new jur.HashDictionary,this.comment=l.comment}compare(n){return this.type.localeCompare(n.type)||this.url.toString().localeCompare(n.url.toString())}};Vae.ExternalReference=Mct;var Lct=class extends Wur.SortableComparables{static{e(this,"ExternalReferenceRepository")}};Vae.ExternalReferenceRepository=Lct});var Kae=ft(qae=>{"use strict";Z();ne();ee();te();Object.defineProperty(qae,"__esModule",{value:!0});qae.PropertyRepository=qae.Property=void 0;var zur=aI(),Oct=class{static{e(this,"Property")}constructor(n,o){this.name=n,this.value=o}compare(n){return this.name.localeCompare(n.name)||this.value.localeCompare(n.value)}};qae.Property=Oct;var Fct=class extends zur.SortableComparables{static{e(this,"PropertyRepository")}};qae.PropertyRepository=Fct});var Qhe=ft(O3=>{"use strict";Z();ne();ee();te();var fQt=O3&&O3.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Hae=O3&&O3.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},FLe,FH;Object.defineProperty(O3,"__esModule",{value:!0});O3.ComponentEvidence=O3.ComponentRepository=O3.Component=void 0;var Gur=aI(),_Qt=Fae(),Uur=dQt(),mQt=$he(),Vur=Rct(),qur=mZ(),Kur=Yhe(),hQt=HG(),Hur=Kae(),Bct=class{static{e(this,"Component")}constructor(n,o,l={}){FLe.set(this,void 0),FH.set(this,void 0),fQt(this,FLe,new mQt.BomRef(l.bomRef),"f"),this.type=n,this.name=o,this.supplier=l.supplier,this.author=l.author,this.copyright=l.copyright,this.externalReferences=l.externalReferences??new qur.ExternalReferenceRepository,this.group=l.group,this.hashes=l.hashes??new Kur.HashDictionary,this.licenses=l.licenses??new hQt.LicenseRepository,this.publisher=l.publisher,this.purl=l.purl,this.scope=l.scope,this.swid=l.swid,this.version=l.version,this.description=l.description,this.components=l.components??new BLe,this.cpe=l.cpe,this.properties=l.properties??new Hur.PropertyRepository,this.evidence=l.evidence,this.dependencies=l.dependencies??new mQt.BomRefRepository}get bomRef(){return Hae(this,FLe,"f")}get cpe(){return Hae(this,FH,"f")}set cpe(n){if(n!==void 0&&!(0,Uur.isCPE)(n))throw new TypeError("Not CPE nor undefined");fQt(this,FH,n,"f")}compare(n){let o=this.bomRef.compare(n.bomRef);return o!==0?o:this.purl!==void 0&&n.purl!==void 0?this.purl.toString().localeCompare(n.purl.toString()):Hae(this,FH,"f")!==void 0&&Hae(n,FH,"f")!==void 0?Hae(this,FH,"f").localeCompare(Hae(n,FH,"f")):(this.group??"").localeCompare(n.group??"")||this.name.localeCompare(n.name)||(this.version??"").localeCompare(n.version??"")}};O3.Component=Bct;FLe=new WeakMap,FH=new WeakMap;var BLe=class extends Gur.SortableComparables{static{e(this,"ComponentRepository")}*[_Qt.treeIteratorSymbol](){for(let n of this)yield n,yield*n.components[_Qt.treeIteratorSymbol]()}};O3.ComponentRepository=BLe;var Wct=class{static{e(this,"ComponentEvidence")}constructor(n={}){this.licenses=n.licenses??new hQt.LicenseRepository,this.copyright=n.copyright??new Vur.CopyrightRepository}};O3.ComponentEvidence=Wct});var zLe=ft(BB=>{"use strict";Z();ne();ee();te();var Jur=BB&&BB.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Xur=BB&&BB.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},WLe;Object.defineProperty(BB,"__esModule",{value:!0});BB.ServiceRepository=BB.Service=void 0;var $ur=aI(),gQt=Fae(),yQt=$he(),Yur=mZ(),Qur=HG(),Zur=Kae(),jct=class{static{e(this,"Service")}constructor(n,o={}){WLe.set(this,void 0),Jur(this,WLe,new yQt.BomRef(o.bomRef),"f"),this.provider=o.provider,this.group=o.group,this.name=n,this.version=o.version,this.description=o.description,this.licenses=o.licenses??new Qur.LicenseRepository,this.externalReferences=o.externalReferences??new Yur.ExternalReferenceRepository,this.services=o.services??new jLe,this.properties=o.properties??new Zur.PropertyRepository,this.dependencies=o.dependencies??new yQt.BomRefRepository}get bomRef(){return Xur(this,WLe,"f")}compare(n){let o=this.bomRef.compare(n.bomRef);return o!==0?o:(this.group??"").localeCompare(n.group??"")||this.name.localeCompare(n.name)||(this.version??"").localeCompare(n.version??"")}};BB.Service=jct;WLe=new WeakMap;var jLe=class extends $ur.SortableComparables{static{e(this,"ServiceRepository")}*[gQt.treeIteratorSymbol](){for(let n of this)yield n,yield*n.services[gQt.treeIteratorSymbol]()}};BB.ServiceRepository=jLe});var Jae=ft(BH=>{"use strict";Z();ne();ee();te();Object.defineProperty(BH,"__esModule",{value:!0});BH.Tools=BH.ToolRepository=BH.Tool=void 0;var edr=aI(),tdr=Qhe(),ndr=mZ(),rdr=Yhe(),idr=zLe(),zct=class i{static{e(this,"Tool")}constructor(n={}){this.vendor=n.vendor,this.name=n.name,this.version=n.version,this.hashes=n.hashes??new rdr.HashDictionary,this.externalReferences=n.externalReferences??new ndr.ExternalReferenceRepository}compare(n){return(this.vendor??"").localeCompare(n.vendor??"")||(this.name??"").localeCompare(n.name??"")||(this.version??"").localeCompare(n.version??"")}static fromComponent(n){return new i({vendor:n.group,name:n.name,version:n.version,hashes:n.hashes,externalReferences:n.externalReferences})}static fromService(n){return new i({vendor:n.group,name:n.name,version:n.version,externalReferences:n.externalReferences})}};BH.Tool=zct;var GLe=class extends edr.SortableComparables{static{e(this,"ToolRepository")}};BH.ToolRepository=GLe;var Gct=class{static{e(this,"Tools")}constructor(n={}){this.components=n.components??new tdr.ComponentRepository,this.services=n.services??new idr.ServiceRepository,this.tools=n.tools??new GLe}get size(){return this.components.size+this.services.size+this.tools.size}};BH.Tools=Gct});var Zhe=ft(F3=>{"use strict";Z();ne();ee();te();Object.defineProperty(F3,"__esModule",{value:!0});F3.AffectedVersionRepository=F3.AffectedVersionRange=F3.AffectedSingleVersion=F3.AffectRepository=F3.Affect=void 0;var vQt=aI(),Uct=class{static{e(this,"Affect")}constructor(n,o={}){this.ref=n,this.versions=o.versions??new ULe}compare(n){return this.ref.compare(n.ref)||this.versions.compare(n.versions)}};F3.Affect=Uct;var Vct=class extends vQt.SortableComparables{static{e(this,"AffectRepository")}};F3.AffectRepository=Vct;var qct=class{static{e(this,"AffectedSingleVersion")}constructor(n,o={}){this.version=n,this.status=o.status}compare(n){return this.version.localeCompare(n.version)||(this.status??"").localeCompare(n.status??"")}};F3.AffectedSingleVersion=qct;var Kct=class{static{e(this,"AffectedVersionRange")}constructor(n,o={}){this.range=n,this.status=o.status}compare(n){return this.range.localeCompare(n.range)||(this.status??"").localeCompare(n.status??"")}};F3.AffectedVersionRange=Kct;var ULe=class extends vQt.SortableComparables{static{e(this,"AffectedVersionRepository")}};F3.AffectedVersionRepository=ULe});var bQt=ft((DCi,odr)=>{odr.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var SQt=ft((ACi,adr)=>{adr.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var EQt=ft((CCi,sdr)=>{sdr.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var TQt=ft((wCi,xQt)=>{"use strict";Z();ne();ee();te();var ldr=[].concat(bQt()).concat(SQt()),cdr=EQt();xQt.exports=function(i){var n=0;function o(){return n<i.length}e(o,"hasMore");function l(V){if(V instanceof RegExp){var B=i.slice(n),k=B.match(V);if(k)return n+=k[0].length,k[0]}else if(i.indexOf(V,n)===n)return n+=V.length,V}e(l,"read");function u(){l(/[ ]*/)}e(u,"skipWhitespace");function p(){for(var V,B=["WITH","AND","OR","(",")",":","+"],k=0;k<B.length&&(V=l(B[k]),!V);k++);if(V==="+"&&n>1&&i[n-2]===" ")throw new Error("Space before `+`");return V&&{type:"OPERATOR",string:V}}e(p,"operator");function h(){return l(/[A-Za-z0-9-.]+/)}e(h,"idstring");function v(){var V=h();if(!V)throw new Error("Expected idstring at offset "+n);return V}e(v,"expectIdstring");function T(){if(l("DocumentRef-")){var V=v();return{type:"DOCUMENTREF",string:V}}}e(T,"documentRef");function E(){if(l("LicenseRef-")){var V=v();return{type:"LICENSEREF",string:V}}}e(E,"licenseRef");function D(){var V=n,B=h();if(ldr.indexOf(B)!==-1)return{type:"LICENSE",string:B};if(cdr.indexOf(B)!==-1)return{type:"EXCEPTION",string:B};n=V}e(D,"identifier");function C(){return p()||T()||E()||D()}e(C,"parseToken");for(var w=[];o()&&(u(),!!o());){var W=C();if(!W)throw new Error("Unexpected `"+i[n]+"` at offset "+n);w.push(W)}return w}});var AQt=ft((MCi,DQt)=>{"use strict";Z();ne();ee();te();DQt.exports=function(i){var n=0;function o(){return n<i.length}e(o,"hasMore");function l(){return o()?i[n]:null}e(l,"token");function u(){if(!o())throw new Error;n++}e(u,"next");function p(B){var k=l();if(k&&k.type==="OPERATOR"&&B===k.string)return u(),k.string}e(p,"parseOperator");function h(){if(p("WITH")){var B=l();if(B&&B.type==="EXCEPTION")return u(),B.string;throw new Error("Expected exception after `WITH`")}}e(h,"parseWith");function v(){var B=n,k="",F=l();if(F.type==="DOCUMENTREF"&&(u(),k+="DocumentRef-"+F.string+":",!p(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(F=l(),F.type==="LICENSEREF")return u(),k+="LicenseRef-"+F.string,{license:k};n=B}e(v,"parseLicenseRef");function T(){var B=l();if(B&&B.type==="LICENSE"){u();var k={license:B.string};p("+")&&(k.plus=!0);var F=h();return F&&(k.exception=F),k}}e(T,"parseLicense");function E(){var B=p("(");if(B){var k=W();if(!p(")"))throw new Error("Expected `)`");return k}}e(E,"parseParenthesizedExpression");function D(){return E()||v()||T()}e(D,"parseAtom");function C(B,k){return e(function F(){var $=k();if($){if(!p(B))return $;var Y=F();if(!Y)throw new Error("Expected expression");return{left:$,conjunction:B.toLowerCase(),right:Y}}},"parseBinaryOp")}e(C,"makeBinaryOpParser");var w=C("AND",D),W=C("OR",w),V=W();if(!V||o())throw new Error("Syntax error");return V}});var wQt=ft((jCi,CQt)=>{"use strict";Z();ne();ee();te();var udr=TQt(),ddr=AQt();CQt.exports=function(i){return ddr(udr(i))}});var IQt=ft((qCi,pdr)=>{pdr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://cyclonedx.org/schema/spdx.schema.json",$comment:"v1.0-3.24.0",type:"string",enum:["0BSD","3D-Slicer-1.0","AAL","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","Afmparse","AGPL-1.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Aladdin","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","any-OSI","Apache-1.0","Apache-1.1","Apache-2.0","APAFML","APL-1.0","App-s2p","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Arphic-1999","Artistic-1.0","Artistic-1.0-cl8","Artistic-1.0-Perl","Artistic-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Baekmuk","Bahyph","Barr","bcrypt-Solar-Designer","Beerware","Bitstream-Charter","Bitstream-Vera","BitTorrent-1.0","BitTorrent-1.1","blessing","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-first-lines","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-acpica","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-flex","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-beginning-file","BSD-Source-Code","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","bzip2-1.0.5","bzip2-1.0.6","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","Caldera","Caldera-no-preamble","Catharon","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","check-cvs","checkmk","ClArtistic","Clips","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","Community-Spec-1.0","Condor-1.1","copyleft-next-0.3.0","copyleft-next-0.3.1","Cornell-Lossless-JPEG","CPAL-1.0","CPL-1.0","CPOL-1.02","Cronyx","Crossword","CrystalStacker","CUA-OPL-1.0","Cube","curl","cve-tou","D-FSL-1.0","DEC-3-Clause","diffmark","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","Dotseqn","DRL-1.0","DRL-1.1","DSDP","dtoa","dvipdfm","ECL-1.0","ECL-2.0","eCos-2.0","EFL-1.0","EFL-2.0","eGenix","Elastic-2.0","Entessa","EPICS","EPL-1.0","EPL-2.0","ErlPL-1.1","etalab-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Eurosym","Fair","FBM","FDK-AAC","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Furuseth","fwlw","GCR-docs","GD","GFDL-1.1","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","Giftware","GL2PS","Glide","Glulxe","GLWTPL","gnuplot","GPL-1.0","GPL-1.0+","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0","GPL-2.0+","GPL-2.0-only","GPL-2.0-or-later","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0","GPL-3.0+","GPL-3.0-only","GPL-3.0-or-later","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","Graphics-Gems","gSOAP-1.3b","gtkbook","Gutmann","HaskellReport","hdparm","Hippocratic-2.1","HP-1986","HP-1989","HPND","HPND-DEC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-Markus-Kuhn","HPND-merchantability-variant","HPND-MIT-disclaimer","HPND-Pbmplus","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-UC","HPND-UC-export-US","HTMLTIDY","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","ImageMagick","iMatix","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","IPA","IPL-1.0","ISC","ISC-Veillard","Jam","JasPer-2.0","JPL-image","JPNIC","JSON","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","Latex2e","Latex2e-translated-notice","Leptonica","LGPL-2.0","LGPL-2.0+","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1","LGPL-2.1+","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0","LGPL-3.0+","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","Libpng","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Linux-OpenIB","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","lsof","Lucida-Bitmap-Fonts","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","magaz","mailprio","MakeIndex","Martin-Birgmeier","McPhee-slideshow","metamail","Minpack","MirOS","MIT","MIT-0","MIT-advertising","MIT-CMU","MIT-enna","MIT-feh","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-open-group","MIT-testregex","MIT-Wu","MITNFA","MMIXware","Motosoto","MPEG-SSG","mpi-permissive","mpich2","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mplus","MS-LPL","MS-PL","MS-RL","MTLL","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","Naumen","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","Net-SNMP","NetCDF","Newsletr","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","Nokia","NOSL","Noweb","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Nunit","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODbL-1.0","ODC-By-1.0","OFFIS","OFL-1.0","OFL-1.0-no-RFN","OFL-1.0-RFN","OFL-1.1","OFL-1.1-no-RFN","OFL-1.1-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","PADL","Parity-6.0.0","Parity-7.0.0","PDDL-1.0","PHP-3.0","PHP-3.01","Pixar","pkgconf","Plexus","pnmstitch","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","PPL","PSF-2.0","psfrag","psutils","Python-2.0","Python-2.0.1","python-ldap","Qhull","QPL-1.0","QPL-1.0-INRIA-2004","radvd","Rdisc","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Ruby","SAX-PD","SAX-PD-2.0","Saxpath","SCEA","SchemeReport","Sendmail","Sendmail-8.23","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SimPL-2.0","SISSL","SISSL-1.2","SL","Sleepycat","SMLNJ","SMPPL","SNIA","snprintf","softSurfer","Soundex","Spencer-86","Spencer-94","Spencer-99","SPL-1.0","ssh-keyscan","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","StandardML-NJ","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","SWL","swrule","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TermReadKey","TGPPL-1.0","threeparttable","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","ulem","UMich-Merit","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","UPL-1.0","URT-RLE","Vim","VOSTROM","VSL-1.0","W3C","W3C-19980720","W3C-20150513","w3m","Watcom-1.0","Widget-Workshop","Wsuipa","WTFPL","wxWindows","X11","X11-distribute-modifications-variant","Xdebug-1.03","Xerox","Xfig","XFree86-1.1","xinetd","xkeyboard-config-Zinoviev","xlock","Xnet","xpp","XSkat","xzoom","YPL-1.0","YPL-1.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","389-exception","Asterisk-exception","Asterisk-linking-protocols-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PCRE2-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","RRDtool-FLOSS-exception-2.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}});var VLe=ft(ege=>{"use strict";Z();ne();ee();te();Object.defineProperty(ege,"__esModule",{value:!0});ege.isSupportedSpdxId=hdr;ege.fixupSpdxId=gdr;ege.isValidSpdxLicenseExpression=ydr;var fdr=wQt(),PQt=IQt(),_dr=new Set(PQt.enum),mdr=Object.freeze(Object.fromEntries(PQt.enum.map(i=>[i.toLowerCase(),i])));function hdr(i){return _dr.has(i)}e(hdr,"isSupportedSpdxId");function gdr(i){return typeof i=="string"&&i.length>0?mdr[i.toLowerCase()]:void 0}e(gdr,"fixupSpdxId");function ydr(i){if(typeof i!="string")return!1;try{fdr(i)}catch{return!1}return!0}e(ydr,"isValidSpdxLicenseExpression")});var hZ=ft(Xae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Xae,"__esModule",{value:!0});Xae.Format=Xae.Version=void 0;var NQt;(function(i){i.v1dot6="1.6",i.v1dot5="1.5",i.v1dot4="1.4",i.v1dot3="1.3",i.v1dot2="1.2",i.v1dot1="1.1",i.v1dot0="1.0"})(NQt||(Xae.Version=NQt={}));var RQt;(function(i){i.XML="xml",i.JSON="json"})(RQt||(Xae.Format=RQt={}))});var Hct=ft(qLe=>{"use strict";Z();ne();ee();te();Object.defineProperty(qLe,"__esModule",{value:!0});qLe.JsonSchema=void 0;var kQt;(function(i){function n(l){return typeof l=="string"&&l.length>0}e(n,"isIriReference"),i.isIriReference=n;function o(l){return typeof l=="string"&&l.length>0}e(o,"isIdnEmail"),i.isIdnEmail=o})(kQt||(qLe.JsonSchema=kQt={}))});var zQt=ft(mp=>{"use strict";Z();ne();ee();te();var vdr=mp&&mp.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},B3=mp&&mp.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},KLe,$ct,LQt,rge,Yct,gZ,Qct,OQt,Zct,eut,FQt,HLe,BQt,WQt;Object.defineProperty(mp,"__esModule",{value:!0});mp.VulnerabilityAnalysisNormalizer=mp.VulnerabilityAffectedVersionNormalizer=mp.VulnerabilityAffectNormalizer=mp.VulnerabilityCreditsNormalizer=mp.VulnerabilityAdvisoryNormalizer=mp.VulnerabilityRatingNormalizer=mp.VulnerabilityReferenceNormalizer=mp.VulnerabilitySourceNormalizer=mp.VulnerabilityNormalizer=mp.DependencyGraphNormalizer=mp.PropertyNormalizer=mp.AttachmentNormalizer=mp.ExternalReferenceNormalizer=mp.SWIDNormalizer=mp.LicenseNormalizer=mp.ComponentEvidenceNormalizer=mp.ServiceNormalizer=mp.ComponentNormalizer=mp.OrganizationalEntityNormalizer=mp.OrganizationalContactNormalizer=mp.HashNormalizer=mp.ToolsNormalizer=mp.ToolNormalizer=mp.LifecycleNormalizer=mp.MetadataNormalizer=mp.BomNormalizer=mp.Factory=void 0;var bdr=mct(),Qae=ILe(),Jct=Fae(),$ae=yct(),tge=HG(),Sdr=Xhe(),Xct=Jae(),MQt=Zhe(),Edr=VLe(),nge=hZ(),Yae=Hct(),tut=class{static{e(this,"Factory")}constructor(n){KLe.set(this,void 0),vdr(this,KLe,n,"f")}get spec(){return B3(this,KLe,"f")}makeForBom(){return new JLe(this)}makeForMetadata(){return new XLe(this)}makeForComponent(){return new nOe(this)}makeForService(){return new rOe(this)}makeForComponentEvidence(){return new ige(this)}makeForLifecycle(){return new $Le(this)}makeForTool(){return new YLe(this)}makeForTools(){return new QLe(this)}makeForOrganizationalContact(){return new eOe(this)}makeForOrganizationalEntity(){return new tOe(this)}makeForHash(){return new ZLe(this)}makeForLicense(){return new iOe(this)}makeForSWID(){return new oOe(this)}makeForExternalReference(){return new aOe(this)}makeForAttachment(){return new sOe(this)}makeForProperty(){return new lOe(this)}makeForDependencyGraph(){return new cOe(this)}makeForVulnerability(){return new uOe(this)}makeForVulnerabilitySource(){return new dOe(this)}makeForVulnerabilityReference(){return new pOe(this)}makeForVulnerabilityRating(){return new fOe(this)}makeForVulnerabilityAdvisory(){return new _Oe(this)}makeForVulnerabilityCredits(){return new mOe(this)}makeForVulnerabilityAffect(){return new hOe(this)}makeForVulnerabilityAffectedVersion(){return new gOe(this)}makeForVulnerabilityAnalysis(){return new yOe(this)}};mp.Factory=tut;KLe=new WeakMap;var xdr=new Map([[nge.Version.v1dot6,"http://cyclonedx.org/schema/bom-1.6.schema.json"],[nge.Version.v1dot5,"http://cyclonedx.org/schema/bom-1.5.schema.json"],[nge.Version.v1dot4,"http://cyclonedx.org/schema/bom-1.4.schema.json"],[nge.Version.v1dot3,"http://cyclonedx.org/schema/bom-1.3a.schema.json"],[nge.Version.v1dot2,"http://cyclonedx.org/schema/bom-1.2b.schema.json"]]),rb=class{static{e(this,"BaseJsonNormalizer")}constructor(n){this._factory=n}get factory(){return this._factory}},JLe=class extends rb{static{e(this,"BomNormalizer")}constructor(){super(...arguments),$ct.add(this)}normalize(n,o){return{$schema:xdr.get(this._factory.spec.version),bomFormat:"CycloneDX",specVersion:this._factory.spec.version,version:n.version,serialNumber:B3(this,$ct,"m",LQt).call(this,n.serialNumber)?n.serialNumber:void 0,metadata:this._factory.makeForMetadata().normalize(n.metadata,o),components:n.components.size>0?this._factory.makeForComponent().normalizeIterable(n.components,o):[],services:this._factory.spec.supportsServices&&n.services.size>0?this._factory.makeForService().normalizeIterable(n.services,o):void 0,dependencies:this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(n,o):void 0,vulnerabilities:this._factory.spec.supportsVulnerabilities&&n.vulnerabilities.size>0?this._factory.makeForVulnerability().normalizeIterable(n.vulnerabilities,o):void 0}}};mp.BomNormalizer=JLe;$ct=new WeakSet,LQt=e(function(n){return n!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(n)},"_BomNormalizer_isEligibleSerialNumber");var XLe=class extends rb{static{e(this,"MetadataNormalizer")}normalize(n,o){let l=this._factory.makeForOrganizationalEntity();return{timestamp:n.timestamp?.toISOString(),lifecycles:this._factory.spec.supportsMetadataLifecycles&&n.lifecycles.size>0?this._factory.makeForLifecycle().normalizeIterable(n.lifecycles,o):void 0,tools:n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o):void 0,authors:n.authors.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(n.authors,o):void 0,component:n.component===void 0?void 0:this._factory.makeForComponent().normalize(n.component,o),manufacture:n.manufacture===void 0?void 0:l.normalize(n.manufacture,o),supplier:n.supplier===void 0?void 0:l.normalize(n.supplier,o),licenses:this._factory.spec.supportsMetadataLicenses&&n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,properties:this._factory.spec.supportsMetadataProperties&&n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0}}};mp.MetadataNormalizer=XLe;var $Le=class extends rb{static{e(this,"LifecycleNormalizer")}normalize(n,o){return n instanceof Sdr.NamedLifecycle?{name:n.name,description:n.description}:{phase:n}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.LifecycleNormalizer=$Le;var YLe=class extends rb{static{e(this,"ToolNormalizer")}normalize(n,o){return{vendor:n.vendor||void 0,name:n.name||void 0,version:n.version||void 0,hashes:n.hashes.size>0?this._factory.makeForHash().normalizeIterable(n.hashes,o):void 0,externalReferences:this._factory.spec.supportsToolReferences&&n.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.ToolNormalizer=YLe;var QLe=class extends rb{static{e(this,"ToolsNormalizer")}normalize(n,o){return n.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?this._factory.makeForTool().normalizeIterable(new Xct.ToolRepository((0,bdr.chainI)(Array.from(n.components,Xct.Tool.fromComponent),Array.from(n.services,Xct.Tool.fromService),n.tools)),o):{components:n.components.size>0?this._factory.makeForComponent().normalizeIterable(n.components,o):void 0,services:n.services.size>0?this._factory.makeForService().normalizeIterable(n.services,o):void 0}}};mp.ToolsNormalizer=QLe;var ZLe=class extends rb{static{e(this,"HashNormalizer")}normalize([n,o],l){let u=this._factory.spec;return u.supportsHashAlgorithm(n)&&u.supportsHashValue(o)?{alg:n,content:o}:void 0}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.HashNormalizer=ZLe;var eOe=class extends rb{static{e(this,"OrganizationalContactNormalizer")}normalize(n,o){return{name:n.name||void 0,email:Yae.JsonSchema.isIdnEmail(n.email)?n.email:void 0,phone:n.phone||void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.OrganizationalContactNormalizer=eOe;var tOe=class extends rb{static{e(this,"OrganizationalEntityNormalizer")}normalize(n,o){let l=jQt(Array.from(n.url,u=>(0,$ae.escapeUri)(u.toString())),o).filter(Yae.JsonSchema.isIriReference);return{name:n.name||void 0,url:l.length>0?l:void 0,contact:n.contact.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(n.contact,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.OrganizationalEntityNormalizer=tOe;var nOe=class extends rb{static{e(this,"ComponentNormalizer")}normalize(n,o){let l=this._factory.spec;if(!l.supportsComponentType(n.type))return;let u=n.version??"";return{type:n.type,name:n.name,group:n.group||void 0,version:u.length>0||l.requiresComponentVersion?u:void 0,"bom-ref":n.bomRef.value||void 0,supplier:n.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(n.supplier,o),author:n.author||void 0,publisher:n.publisher||void 0,description:n.description||void 0,scope:n.scope,hashes:n.hashes.size>0?this._factory.makeForHash().normalizeIterable(n.hashes,o):void 0,licenses:n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,copyright:n.copyright?.toString()||void 0,cpe:n.cpe||void 0,purl:n.purl?.toString(),swid:n.swid===void 0?void 0:this._factory.makeForSWID().normalize(n.swid,o),externalReferences:n.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o):void 0,properties:l.supportsProperties(n)&&n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0,components:n.components.size>0?this.normalizeIterable(n.components,o):void 0,evidence:l.supportsComponentEvidence&&n.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(n.evidence,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.ComponentNormalizer=nOe;var rOe=class extends rb{static{e(this,"ServiceNormalizer")}normalize(n,o){let l=this._factory.spec;return{"bom-ref":n.bomRef.value||void 0,provider:n.provider?this._factory.makeForOrganizationalEntity().normalize(n.provider,o):void 0,group:n.group,name:n.name,version:n.version||void 0,description:n.description||void 0,licenses:n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,externalReferences:n.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o):void 0,services:n.services.size>0?this._factory.makeForService().normalizeIterable(n.services,o):void 0,properties:l.supportsProperties(n)&&n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.ServiceNormalizer=rOe;var ige=class extends rb{static{e(this,"ComponentEvidenceNormalizer")}normalize(n,o){return{licenses:n.licenses.size>0?this._factory.makeForLicense().normalizeIterable(n.licenses,o):void 0,copyright:n.copyright.size>0?o.sortLists?n.copyright.sorted().map(B3(rge,rge,"m",Yct)):Array.from(n.copyright,B3(rge,rge,"m",Yct)):void 0}}};mp.ComponentEvidenceNormalizer=ige;rge=ige,Yct=e(function(n){return{text:n.toString()}},"_ComponentEvidenceNormalizer_normalizeCopyright");var iOe=class extends rb{static{e(this,"LicenseNormalizer")}constructor(){super(...arguments),gZ.add(this)}normalize(n,o){switch(!0){case n instanceof tge.NamedLicense:return B3(this,gZ,"m",Qct).call(this,n,o);case n instanceof tge.SpdxLicense:return(0,Edr.isSupportedSpdxId)(n.id)?B3(this,gZ,"m",OQt).call(this,n,o):B3(this,gZ,"m",Qct).call(this,new tge.NamedLicense(n.id,{url:n.url}),o);case n instanceof tge.LicenseExpression:return B3(this,gZ,"m",Zct).call(this,n);default:throw new TypeError("Unexpected LicenseChoice")}}normalizeIterable(n,o){let l=o.sortLists??!1?n.sorted():Array.from(n);if(l.length>1){let u=l.filter(p=>p instanceof tge.LicenseExpression);if(u.length>0)return[B3(this,gZ,"m",Zct).call(this,u[0])]}return l.map(u=>this.normalize(u,o))}};mp.LicenseNormalizer=iOe;gZ=new WeakSet,Qct=e(function(n,o){let l=(0,$ae.escapeUri)(n.url?.toString());return{license:{name:n.name,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0,text:n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o),url:Yae.JsonSchema.isIriReference(l)?l:void 0}}},"_LicenseNormalizer_normalizeNamedLicense"),OQt=e(function(n,o){let l=(0,$ae.escapeUri)(n.url?.toString());return{license:{id:n.id,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0,text:n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o),url:Yae.JsonSchema.isIriReference(l)?l:void 0}}},"_LicenseNormalizer_normalizeSpdxLicense"),Zct=e(function(n){return{expression:n.expression,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0}},"_LicenseNormalizer_normalizeLicenseExpression");var oOe=class extends rb{static{e(this,"SWIDNormalizer")}normalize(n,o){let l=(0,$ae.escapeUri)(n.url?.toString());return{tagId:n.tagId,name:n.name,version:n.version||void 0,tagVersion:n.tagVersion,patch:n.patch,text:n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o),url:Yae.JsonSchema.isIriReference(l)?l:void 0}}};mp.SWIDNormalizer=oOe;var aOe=class extends rb{static{e(this,"ExternalReferenceNormalizer")}normalize(n,o){return this._factory.spec.supportsExternalReferenceType(n.type)?{url:(0,$ae.escapeUri)(n.url.toString()),type:n.type,hashes:this._factory.spec.supportsExternalReferenceHashes&&n.hashes.size>0?this._factory.makeForHash().normalizeIterable(n.hashes,o):void 0,comment:n.comment||void 0}:void 0}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.ExternalReferenceNormalizer=aOe;var sOe=class extends rb{static{e(this,"AttachmentNormalizer")}normalize(n,o){return{content:n.content.toString(),contentType:n.contentType||void 0,encoding:n.encoding}}};mp.AttachmentNormalizer=sOe;var lOe=class extends rb{static{e(this,"PropertyNormalizer")}normalize(n,o){return{name:n.name,value:n.value}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.PropertyNormalizer=lOe;var cOe=class extends rb{static{e(this,"DependencyGraphNormalizer")}constructor(){super(...arguments),eut.add(this)}normalize(n,o){let l=new Map;if(n.metadata.component!==void 0){l.set(n.metadata.component.bomRef,n.metadata.component.dependencies);for(let p of n.metadata.component.components[Jct.treeIteratorSymbol]())l.set(p.bomRef,p.dependencies)}for(let p of n.components[Jct.treeIteratorSymbol]())l.set(p.bomRef,p.dependencies);for(let p of n.services[Jct.treeIteratorSymbol]())l.set(p.bomRef,p.dependencies);let u=[];for(let[p,h]of l){let v=B3(this,eut,"m",FQt).call(this,p,h,l,o);(0,Qae.isNotUndefined)(v)&&u.push(v)}return(o.sortLists??!1)&&u.sort(({ref:p},{ref:h})=>p.localeCompare(h)),u}};mp.DependencyGraphNormalizer=cOe;eut=new WeakSet,FQt=e(function(n,o,l,u){let p=n.toString();if(p.length===0)return;let h=jQt(Array.from(o).filter(v=>l.has(v)&&v!==n),u).filter(v=>v.length>0);return{ref:p,dependsOn:h.length>0?h:void 0}},"_DependencyGraphNormalizer_normalizeDependency");var uOe=class extends rb{static{e(this,"VulnerabilityNormalizer")}normalize(n,o){return{"bom-ref":n.bomRef.value||void 0,id:n.id||void 0,source:n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o),references:n.references.size>0?this._factory.makeForVulnerabilityReference().normalizeIterable(n.references,o):void 0,ratings:n.ratings.size>0?this._factory.makeForVulnerabilityRating().normalizeIterable(n.ratings,o):void 0,cwes:n.cwes.size>0?o.sortLists??!1?n.cwes.sorted():Array.from(n.cwes):void 0,description:n.description,detail:n.detail,recommendation:n.recommendation,advisories:n.advisories.size>0?this._factory.makeForVulnerabilityAdvisory().normalizeIterable(n.advisories,o):void 0,created:n.created?.toISOString(),published:n.published?.toISOString(),updated:n.updated?.toISOString(),credits:n.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(n.credits,o),tools:n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o):void 0,analysis:n.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(n.analysis,o),affects:n.affects.size>0?this._factory.makeForVulnerabilityAffect().normalizeIterable(n.affects,o):void 0,properties:n.properties.size>0?this._factory.makeForProperty().normalizeIterable(n.properties,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityNormalizer=uOe;var dOe=class extends rb{static{e(this,"VulnerabilitySourceNormalizer")}normalize(n,o){return{name:n.name,url:n.url?.toString()}}};mp.VulnerabilitySourceNormalizer=dOe;var pOe=class extends rb{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(n,o){return{id:n.id,source:this._factory.makeForVulnerabilitySource().normalize(n.source,o)}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityReferenceNormalizer=pOe;var fOe=class extends rb{static{e(this,"VulnerabilityRatingNormalizer")}normalize(n,o){return{source:n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o),score:n.score,severity:n.severity,method:this._factory.spec.supportsVulnerabilityRatingMethod(n.method)?n.method:void 0,vector:n.vector,justification:n.justification}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityRatingNormalizer=fOe;var _Oe=class extends rb{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(n,o){let l=(0,$ae.escapeUri)(n.url.toString());if(Yae.JsonSchema.isIriReference(l))return{title:n.title,url:l}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.VulnerabilityAdvisoryNormalizer=_Oe;var mOe=class extends rb{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(n,o){return{organizations:n.organizations.size>0?this._factory.makeForOrganizationalEntity().normalizeIterable(n.organizations,o):void 0,individuals:n.individuals.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(n.individuals,o):void 0}}};mp.VulnerabilityCreditsNormalizer=mOe;var hOe=class extends rb{static{e(this,"VulnerabilityAffectNormalizer")}normalize(n,o){return{ref:n.ref.toString(),versions:n.versions.size>0?this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(n.versions,o):void 0}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o))}};mp.VulnerabilityAffectNormalizer=hOe;var gOe=class extends rb{static{e(this,"VulnerabilityAffectedVersionNormalizer")}constructor(){super(...arguments),HLe.add(this)}normalize(n,o){switch(!0){case n instanceof MQt.AffectedSingleVersion:return B3(this,HLe,"m",BQt).call(this,n);case n instanceof MQt.AffectedVersionRange:return B3(this,HLe,"m",WQt).call(this,n);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}normalizeIterable(n,o){return(o.sortLists??!1?n.sorted():Array.from(n)).map(l=>this.normalize(l,o)).filter(Qae.isNotUndefined)}};mp.VulnerabilityAffectedVersionNormalizer=gOe;HLe=new WeakSet,BQt=e(function(n){return n.version.length<1?void 0:{version:n.version.substring(0,1024),status:n.status}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion"),WQt=e(function(n){return n.range.length<1?void 0:{range:n.range.substring(0,1024),status:n.status}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedVersionRange");var yOe=class extends rb{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(n,o){return{state:n.state,justification:n.justification,response:n.response.size>0?o.sortLists??!1?n.response.sorted():Array.from(n.response):void 0,detail:n.detail}}};mp.VulnerabilityAnalysisNormalizer=yOe;function jQt(i,n){let o=Array.from(i,l=>l.toString());return(n.sortLists??!1)&&o.sort((l,u)=>l.localeCompare(u)),o}e(jQt,"normalizeStringableIter")});var GQt=ft(Zae=>{"use strict";Z();ne();ee();te();Object.defineProperty(Zae,"__esModule",{value:!0});Zae.Types=Zae.Normalize=void 0;Zae.Normalize=zQt();Zae.Types=Hct()});var bOe=ft(vOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(vOe,"__esModule",{value:!0});vOe.UnsupportedFormatError=void 0;var nut=class extends Error{static{e(this,"UnsupportedFormatError")}};vOe.UnsupportedFormatError=nut});var VQt=ft(WH=>{"use strict";Z();ne();ee();te();var Tdr=WH&&WH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},UQt=WH&&WH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},oge;Object.defineProperty(WH,"__esModule",{value:!0});WH.JsonSerializer=void 0;var Ddr=hZ(),Adr=bOe(),Cdr=wLe(),rut=class extends Cdr.BaseSerializer{static{e(this,"JsonSerializer")}constructor(n){if(!n.spec.supportsFormat(Ddr.Format.JSON))throw new Adr.UnsupportedFormatError("Spec does not support JSON format.");super(),oge.set(this,void 0),Tdr(this,oge,n,"f")}get normalizerFactory(){return UQt(this,oge,"f")}_normalize(n,o={}){return UQt(this,oge,"f").makeForBom().normalize(n,o)}_serialize(n,{space:o}={}){return JSON.stringify(n,null,o)}};WH.JsonSerializer=rut;oge=new WeakMap});var qQt=ft(SOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(SOe,"__esModule",{value:!0});SOe.Attachment=void 0;var iut=class{static{e(this,"Attachment")}constructor(n,o={}){this.contentType=o.contentType,this.content=n,this.encoding=o.encoding}};SOe.Attachment=iut});var EOe=ft(age=>{"use strict";Z();ne();ee();te();Object.defineProperty(age,"__esModule",{value:!0});age.isInteger=out;age.isNonNegativeInteger=wdr;age.isPositiveInteger=Idr;function out(i){return Number.isInteger(i)}e(out,"isInteger");function wdr(i){return out(i)&&i>=0}e(wdr,"isNonNegativeInteger");function Idr(i){return out(i)&&i>0}e(Idr,"isPositiveInteger")});var sge=ft(ese=>{"use strict";Z();ne();ee();te();Object.defineProperty(ese,"__esModule",{value:!0});ese.OrganizationalContactRepository=ese.OrganizationalContact=void 0;var Pdr=aI(),aut=class{static{e(this,"OrganizationalContact")}constructor(n={}){this.name=n.name,this.email=n.email,this.phone=n.phone}compare(n){return(this.name??"").localeCompare(n.name??"")||(this.email??"").localeCompare(n.email??"")||(this.phone??"").localeCompare(n.phone??"")}};ese.OrganizationalContact=aut;var sut=class extends Pdr.SortableComparables{static{e(this,"OrganizationalContactRepository")}};ese.OrganizationalContactRepository=sut});var cut=ft(xOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(xOe,"__esModule",{value:!0});xOe.Metadata=void 0;var Ndr=HG(),Rdr=Xhe(),kdr=sge(),Mdr=Kae(),Ldr=Jae(),lut=class{static{e(this,"Metadata")}constructor(n={}){this.timestamp=n.timestamp,this.lifecycles=n.lifecycles??new Rdr.LifecycleRepository,this.tools=n.tools??new Ldr.Tools,this.authors=n.authors??new kdr.OrganizationalContactRepository,this.component=n.component,this.manufacture=n.manufacture,this.supplier=n.supplier,this.licenses=n.licenses??new Ndr.LicenseRepository,this.properties=n.properties??new Mdr.PropertyRepository}};xOe.Metadata=lut});var KQt=ft(lge=>{"use strict";Z();ne();ee();te();Object.defineProperty(lge,"__esModule",{value:!0});lge.CweRepository=void 0;lge.isCWE=Bdr;var Odr=aI(),Fdr=EOe();function Bdr(i){return(0,Fdr.isPositiveInteger)(i)}e(Bdr,"isCWE");var uut=class extends Odr.SortableNumbers{static{e(this,"CweRepository")}};lge.CweRepository=uut});var fut=ft(tse=>{"use strict";Z();ne();ee();te();Object.defineProperty(tse,"__esModule",{value:!0});tse.AdvisoryRepository=tse.Advisory=void 0;var Wdr=aI(),dut=class{static{e(this,"Advisory")}constructor(n,o={}){this.url=n,this.title=o.title}compare(n){return this.url.toString().localeCompare(n.url.toString())||(this.title??"").localeCompare(n.title??"")}};tse.Advisory=dut;var put=class extends Wdr.SortableComparables{static{e(this,"AdvisoryRepository")}};tse.AdvisoryRepository=put});var hut=ft(nse=>{"use strict";Z();ne();ee();te();Object.defineProperty(nse,"__esModule",{value:!0});nse.RatingRepository=nse.Rating=void 0;var jdr=aI(),_ut=class{static{e(this,"Rating")}constructor(n={}){this.source=n.source,this.score=n.score,this.severity=n.severity,this.method=n.method,this.vector=n.vector,this.justification=n.justification}compare(n){return(this.score??0)-(n.score??0)||(this.vector??"").localeCompare(n.vector??"")||(this.justification??"").localeCompare(n.justification??"")||(this.severity??"").localeCompare(n.severity??"")||(this.method??"").localeCompare(n.method??"")||(this.source&&n.source?this.source.compare(n.source):0)}};nse.Rating=_ut;var mut=class extends jdr.SortableComparables{static{e(this,"RatingRepository")}};nse.RatingRepository=mut});var vut=ft(rse=>{"use strict";Z();ne();ee();te();Object.defineProperty(rse,"__esModule",{value:!0});rse.ReferenceRepository=rse.Reference=void 0;var zdr=aI(),gut=class{static{e(this,"Reference")}constructor(n,o){this.id=n,this.source=o}compare(n){return this.id.localeCompare(n.id)||this.source.compare(n.source)}};rse.Reference=gut;var yut=class extends zdr.SortableComparables{static{e(this,"ReferenceRepository")}};rse.ReferenceRepository=yut});var Eut=ft(WB=>{"use strict";Z();ne();ee();te();var Gdr=WB&&WB.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},Udr=WB&&WB.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},TOe;Object.defineProperty(WB,"__esModule",{value:!0});WB.VulnerabilityRepository=WB.Vulnerability=void 0;var Vdr=aI(),qdr=KQt(),Kdr=$he(),Hdr=Kae(),Jdr=Jae(),Xdr=fut(),$dr=Zhe(),Ydr=hut(),Qdr=vut(),but=class{static{e(this,"Vulnerability")}constructor(n={}){TOe.set(this,void 0),Gdr(this,TOe,new Kdr.BomRef(n.bomRef),"f"),this.id=n.id,this.source=n.source,this.references=n.references??new Qdr.ReferenceRepository,this.ratings=n.ratings??new Ydr.RatingRepository,this.cwes=n.cwes??new qdr.CweRepository,this.description=n.description,this.detail=n.detail,this.recommendation=n.recommendation,this.advisories=n.advisories??new Xdr.AdvisoryRepository,this.created=n.created,this.published=n.published,this.updated=n.updated,this.credits=n.credits,this.tools=n.tools??new Jdr.Tools,this.analysis=n.analysis,this.affects=n.affects??new $dr.AffectRepository,this.properties=n.properties??new Hdr.PropertyRepository}get bomRef(){return Udr(this,TOe,"f")}compare(n){let o=this.bomRef.compare(n.bomRef);return o!==0?o:(this.id??"").localeCompare(n.id??"")||(this.created?.getTime()??0)-(n.created?.getTime()??0)||(this.published?.getTime()??0)-(n.published?.getTime()??0)||(this.updated?.getTime()??0)-(n.updated?.getTime()??0)||this.ratings.compare(n.ratings)||this.cwes.compare(n.cwes)||(this.description??"").localeCompare(n.description??"")||(this.detail??"").localeCompare(n.detail??"")||(this.recommendation??"").localeCompare(n.recommendation??"")||(this.source&&n.source?this.source.compare(n.source):0)||this.properties.compare(n.properties)}};WB.Vulnerability=but;TOe=new WeakMap;var Sut=class extends Vdr.SortableComparables{static{e(this,"VulnerabilityRepository")}};WB.VulnerabilityRepository=Sut});var XQt=ft(jH=>{"use strict";Z();ne();ee();te();var HQt=jH&&jH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},JQt=jH&&jH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},DOe,AOe;Object.defineProperty(jH,"__esModule",{value:!0});jH.Bom=void 0;var Zdr=EOe(),epr=Qhe(),tpr=cut(),npr=zLe(),rpr=Eut(),xut=class{static{e(this,"Bom")}constructor(n={}){DOe.set(this,1),AOe.set(this,void 0),this.metadata=n.metadata??new tpr.Metadata,this.components=n.components??new epr.ComponentRepository,this.services=n.services??new npr.ServiceRepository,this.version=n.version??this.version,this.vulnerabilities=n.vulnerabilities??new rpr.VulnerabilityRepository,this.serialNumber=n.serialNumber}get version(){return HQt(this,DOe,"f")}set version(n){if(!(0,Zdr.isPositiveInteger)(n))throw new TypeError("Not PositiveInteger");JQt(this,DOe,n,"f")}get serialNumber(){return HQt(this,AOe,"f")}set serialNumber(n){JQt(this,AOe,n===""?void 0:n,"f")}};jH.Bom=xut;DOe=new WeakMap,AOe=new WeakMap});var QQt=ft(jB=>{"use strict";Z();ne();ee();te();var Aut=jB&&jB.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},ipr=jB&&jB.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},COe,Tut,$Qt,Dut,YQt;Object.defineProperty(jB,"__esModule",{value:!0});jB.BomLinkElement=jB.BomLinkDocument=void 0;var wOe=class{static{e(this,"BomLinkBase")}constructor(n){COe.set(this,void 0),this.value=n}get value(){return Aut(this,COe,"f")}set value(n){if(!this._isValid(n))throw new RangeError("invalid value");ipr(this,COe,n,"f")}compare(n){return this.toString().localeCompare(n.toString())}toString(){return this.value}};COe=new WeakMap;var IOe=class extends wOe{static{e(this,"BomLinkDocument")}static isValid(n){return typeof n=="string"&&Aut(this,Tut,"f",$Qt).test(n)}_isValid(n){return Tut.isValid(n)}};jB.BomLinkDocument=IOe;Tut=IOe;$Qt={value:/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*$/};var POe=class extends wOe{static{e(this,"BomLinkElement")}static isValid(n){return typeof n=="string"&&Aut(this,Dut,"f",YQt).test(n)}_isValid(n){return Dut.isValid(n)}};jB.BomLinkElement=POe;Dut=POe;YQt={value:/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*#.+$/}});var Put=ft(ise=>{"use strict";Z();ne();ee();te();Object.defineProperty(ise,"__esModule",{value:!0});ise.OrganizationalEntityRepository=ise.OrganizationalEntity=void 0;var Cut=aI(),opr=sge(),wut=class{static{e(this,"OrganizationalEntity")}constructor(n={}){this.name=n.name,this.url=n.url??new Set,this.contact=n.contact??new opr.OrganizationalContactRepository}compare(n){return(this.name??"").localeCompare(n.name??"")||this.contact.compare(n.contact)||new Cut.SortableStringables(this.url).compare(new Cut.SortableStringables(n.url))}};ise.OrganizationalEntity=wut;var Iut=class extends Cut.SortableComparables{static{e(this,"OrganizationalEntityRepository")}};ise.OrganizationalEntityRepository=Iut});var ZQt=ft(zH=>{"use strict";Z();ne();ee();te();var apr=zH&&zH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},spr=zH&&zH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},NOe;Object.defineProperty(zH,"__esModule",{value:!0});zH.SWID=void 0;var lpr=EOe(),Nut=class{static{e(this,"SWID")}constructor(n,o,l={}){NOe.set(this,void 0),this.tagId=n,this.name=o,this.version=l.version,this.patch=l.patch,this.text=l.text,this.url=l.url,this.tagVersion=l.tagVersion}get tagVersion(){return apr(this,NOe,"f")}set tagVersion(n){if(n!==void 0&&!(0,lpr.isNonNegativeInteger)(n))throw new TypeError("Not NonNegativeInteger nor undefined");spr(this,NOe,n,"f")}};zH.SWID=Nut;NOe=new WeakMap});var kut=ft(ose=>{"use strict";Z();ne();ee();te();Object.defineProperty(ose,"__esModule",{value:!0});ose.AnalysisResponseRepository=ose.AnalysisResponse=void 0;var cpr=aI(),eZt;(function(i){i.CanNotFix="can_not_fix",i.WillNotFix="will_not_fix",i.Update="update",i.Rollback="rollback",i.WorkaroundAvailable="workaround_available"})(eZt||(ose.AnalysisResponse=eZt={}));var Rut=class extends cpr.SortableStringables{static{e(this,"AnalysisResponseRepository")}};ose.AnalysisResponseRepository=Rut});var tZt=ft(ROe=>{"use strict";Z();ne();ee();te();Object.defineProperty(ROe,"__esModule",{value:!0});ROe.Analysis=void 0;var upr=kut(),Mut=class{static{e(this,"Analysis")}constructor(n={}){this.state=n.state,this.justification=n.justification,this.response=n.response??new upr.AnalysisResponseRepository,this.detail=n.detail}};ROe.Analysis=Mut});var nZt=ft(kOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(kOe,"__esModule",{value:!0});kOe.Credits=void 0;var dpr=sge(),ppr=Put(),Lut=class{static{e(this,"Credits")}constructor(n={}){this.organizations=n.organizations??new ppr.OrganizationalEntityRepository,this.individuals=n.individuals??new dpr.OrganizationalContactRepository}};kOe.Credits=Lut});var rZt=ft(MOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(MOe,"__esModule",{value:!0});MOe.Source=void 0;var Out=class{static{e(this,"Source")}constructor(n={}){this.name=n.name,this.url=n.url}compare(n){return(this.url?.toString()??"").localeCompare(n.url?.toString()??"")||(this.name??"").localeCompare(n.name??"")}};MOe.Source=Out});var iZt=ft(YR=>{"use strict";Z();ne();ee();te();var fpr=YR&&YR.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),GH=YR&&YR.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&fpr(n,i,o)};Object.defineProperty(YR,"__esModule",{value:!0});GH(fut(),YR);GH(Zhe(),YR);GH(tZt(),YR);GH(nZt(),YR);GH(hut(),YR);GH(vut(),YR);GH(rZt(),YR);GH(Eut(),YR)});var LOe=ft(a1=>{"use strict";Z();ne();ee();te();var _pr=a1&&a1.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),q2=a1&&a1.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&_pr(n,i,o)};Object.defineProperty(a1,"__esModule",{value:!0});a1.Vulnerability=void 0;q2(qQt(),a1);q2(XQt(),a1);q2(QQt(),a1);q2($he(),a1);q2(Qhe(),a1);q2(Rct(),a1);q2(mZ(),a1);q2(Yhe(),a1);q2(HG(),a1);q2(Xhe(),a1);q2(cut(),a1);q2(sge(),a1);q2(Put(),a1);q2(Kae(),a1);q2(zLe(),a1);q2(ZQt(),a1);q2(Jae(),a1);a1.Vulnerability=iZt()});var aZt=ft(OOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(OOe,"__esModule",{value:!0});OOe.normalizedString=oZt;OOe.token=vpr;var mpr=/\r\n|\t|\n|\r/g,hpr=" ";function oZt(i){return i.replace(mpr,hpr)}e(oZt,"normalizedString");var gpr=/ {2,}/g,ypr=" ";function vpr(i){return oZt(i).trim().replace(gpr,ypr)}e(vpr,"token")});var Fut=ft(FOe=>{"use strict";Z();ne();ee();te();Object.defineProperty(FOe,"__esModule",{value:!0});FOe.XmlSchema=void 0;var sZt;(function(i){let n=/^[a-z][a-z0-9+\-.]*$/i;function o(l){if(typeof l!="string"||l.length===0)return!1;let u=l.indexOf("#"),p=l;if(u>=0){if(l.includes("#",u+1))return!1;p=l.slice(void 0,u)}let h=p.indexOf(":");return!(h>=0&&!n.test(p.slice(void 0,h)))}e(o,"isAnyURI"),i.isAnyURI=o})(sZt||(FOe.XmlSchema=sZt={}))});var mZt=ft(hp=>{"use strict";Z();ne();ee();te();var bpr=hp&&hp.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},zB=hp&&hp.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},BOe,jut,cZt,vZ,zut,uZt,Gut,Uut,dZt,WOe,pZt,fZt;Object.defineProperty(hp,"__esModule",{value:!0});hp.VulnerabilityAffectedVersionNormalizer=hp.VulnerabilityAffectNormalizer=hp.VulnerabilityAnalysisNormalizer=hp.VulnerabilityCreditsNormalizer=hp.VulnerabilityAdvisoryNormalizer=hp.VulnerabilityRatingNormalizer=hp.VulnerabilityReferenceNormalizer=hp.VulnerabilitySourceNormalizer=hp.VulnerabilityNormalizer=hp.DependencyGraphNormalizer=hp.PropertyNormalizer=hp.AttachmentNormalizer=hp.ExternalReferenceNormalizer=hp.SWIDNormalizer=hp.LicenseNormalizer=hp.ComponentEvidenceNormalizer=hp.ServiceNormalizer=hp.ComponentNormalizer=hp.OrganizationalEntityNormalizer=hp.OrganizationalContactNormalizer=hp.HashNormalizer=hp.ToolsNormalizer=hp.ToolNormalizer=hp.LifecycleNormalizer=hp.MetadataNormalizer=hp.BomNormalizer=hp.Factory=void 0;var Spr=mct(),Ob=ILe(),But=Fae(),bZ=yct(),Wut=LOe(),cge=HG(),Epr=Xhe(),lZt=Zhe(),xpr=VLe(),yZ=hZ(),Av=aZt(),SZ=Fut(),Vut=class{static{e(this,"Factory")}constructor(n){BOe.set(this,void 0),bpr(this,BOe,n,"f")}get spec(){return zB(this,BOe,"f")}makeForBom(){return new zOe(this)}makeForMetadata(){return new GOe(this)}makeForLifecycle(){return new UOe(this)}makeForComponent(){return new XOe(this)}makeForService(){return new $Oe(this)}makeForComponentEvidence(){return new YOe(this)}makeForTool(){return new VOe(this)}makeForTools(){return new qOe(this)}makeForOrganizationalContact(){return new HOe(this)}makeForOrganizationalEntity(){return new JOe(this)}makeForHash(){return new KOe(this)}makeForLicense(){return new QOe(this)}makeForSWID(){return new ZOe(this)}makeForExternalReference(){return new eFe(this)}makeForAttachment(){return new tFe(this)}makeForProperty(){return new nFe(this)}makeForDependencyGraph(){return new rFe(this)}makeForVulnerability(){return new iFe(this)}makeForVulnerabilitySource(){return new oFe(this)}makeForVulnerabilityReference(){return new aFe(this)}makeForVulnerabilityRating(){return new sFe(this)}makeForVulnerabilityAdvisory(){return new lFe(this)}makeForVulnerabilityCredits(){return new cFe(this)}makeForVulnerabilityAffect(){return new dFe(this)}makeForVulnerabilityAffectedVersion(){return new pFe(this)}makeForVulnerabilityAnalysis(){return new uFe(this)}};hp.Factory=Vut;BOe=new WeakMap;var Tpr=new Map([[yZ.Version.v1dot6,"http://cyclonedx.org/schema/bom/1.6"],[yZ.Version.v1dot5,"http://cyclonedx.org/schema/bom/1.5"],[yZ.Version.v1dot4,"http://cyclonedx.org/schema/bom/1.4"],[yZ.Version.v1dot3,"http://cyclonedx.org/schema/bom/1.3"],[yZ.Version.v1dot2,"http://cyclonedx.org/schema/bom/1.2"],[yZ.Version.v1dot1,"http://cyclonedx.org/schema/bom/1.1"],[yZ.Version.v1dot0,"http://cyclonedx.org/schema/bom/1.0"]]),ib=class{static{e(this,"BaseXmlNormalizer")}constructor(n){this._factory=n}get factory(){return this._factory}},zOe=class extends ib{static{e(this,"BomNormalizer")}constructor(){super(...arguments),jut.add(this)}normalize(n,o){let l={type:"element",name:"components",children:n.components.size>0?this._factory.makeForComponent().normalizeIterable(n.components,o,"component"):void 0},u=this._factory.spec.supportsServices&&n.services.size>0?{type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(n.services,o,"service")}:void 0,p=this._factory.spec.supportsVulnerabilities&&n.vulnerabilities.size>0?{type:"element",name:"vulnerabilities",children:this._factory.makeForVulnerability().normalizeIterable(n.vulnerabilities,o,"vulnerability")}:void 0;return{type:"element",name:"bom",namespace:Tpr.get(this._factory.spec.version),attributes:{version:n.version,serialNumber:zB(this,jut,"m",cZt).call(this,n.serialNumber)?n.serialNumber:void 0},children:[this._factory.makeForMetadata().normalize(n.metadata,o,"metadata"),l,u,this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(n,o,"dependencies"):void 0,p].filter(Ob.isNotUndefined)}}};hp.BomNormalizer=zOe;jut=new WeakSet,cZt=e(function(n){return n!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}$/.test(n)},"_BomNormalizer_isEligibleSerialNumber");var GOe=class extends ib{static{e(this,"MetadataNormalizer")}normalize(n,o,l){let u=this._factory.makeForOrganizationalEntity(),p=this._factory.spec.supportsMetadataLifecycles&&n.lifecycles.size>0?{type:"element",name:"lifecycles",children:this._factory.makeForLifecycle().normalizeIterable(n.lifecycles,o,"lifecycle")}:void 0,h=n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o,"tools"):void 0,v=n.authors.size>0?{type:"element",name:"authors",children:this._factory.makeForOrganizationalContact().normalizeIterable(n.authors,o,"author")}:void 0,T=this._factory.spec.supportsMetadataLicenses&&n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,E=this._factory.spec.supportsMetadataProperties&&n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0;return{type:"element",name:l,children:[jOe(n.timestamp,"timestamp"),p,h,v,n.component===void 0?void 0:this._factory.makeForComponent().normalize(n.component,o,"component"),n.manufacture===void 0?void 0:u.normalize(n.manufacture,o,"manufacture"),n.supplier===void 0?void 0:u.normalize(n.supplier,o,"supplier"),T,E].filter(Ob.isNotUndefined)}}};hp.MetadataNormalizer=GOe;var UOe=class extends ib{static{e(this,"LifecycleNormalizer")}normalize(n,o,l){return n instanceof Epr.NamedLifecycle?{type:"element",name:l,children:[jS(n.name,"name",Av.normalizedString),Lh(n.description,"description")].filter(Ob.isNotUndefined)}:{type:"element",name:l,children:[jS(n,"phase")]}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.LifecycleNormalizer=UOe;var VOe=class extends ib{static{e(this,"ToolNormalizer")}normalize(n,o,l){let u=n.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(n.hashes,o,"hash")}:void 0,p=this._factory.spec.supportsToolReferences&&n.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o,"reference")}:void 0;return{type:"element",name:l,children:[Lh(n.vendor,"vendor",Av.normalizedString),Lh(n.name,"name",Av.normalizedString),Lh(n.version,"version",Av.normalizedString),u,p].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.ToolNormalizer=VOe;var qOe=class extends ib{static{e(this,"ToolsNormalizer")}normalize(n,o,l){let u=[];return n.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?u=this._factory.makeForTool().normalizeIterable(new Wut.ToolRepository((0,Spr.chainI)(Array.from(n.components,Wut.Tool.fromComponent),Array.from(n.services,Wut.Tool.fromService),n.tools)),o,"tool"):(n.components.size>0&&u.push({type:"element",name:"components",children:this._factory.makeForComponent().normalizeIterable(n.components,o,"component")}),n.services.size>0&&u.push({type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(n.services,o,"service")})),{type:"element",name:l,children:u}}};hp.ToolsNormalizer=qOe;var KOe=class extends ib{static{e(this,"HashNormalizer")}normalize([n,o],l,u){let p=this._factory.spec;return p.supportsHashAlgorithm(n)&&p.supportsHashValue(o)?{type:"element",name:u,attributes:{alg:n},children:(0,Av.token)(o)}:void 0}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.HashNormalizer=KOe;var HOe=class extends ib{static{e(this,"OrganizationalContactNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[Lh(n.name,"name",Av.normalizedString),Lh(n.email,"email",Av.normalizedString),Lh(n.phone,"phone",Av.normalizedString)].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.OrganizationalContactNormalizer=HOe;var JOe=class extends ib{static{e(this,"OrganizationalEntityNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[Lh(n.name,"name",Av.normalizedString),..._Zt(Array.from(n.url,u=>(0,bZ.escapeUri)(u.toString())),o,"url").filter(({children:u})=>SZ.XmlSchema.isAnyURI(u)),...this._factory.makeForOrganizationalContact().normalizeIterable(n.contact,o,"contact")].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.OrganizationalEntityNormalizer=JOe;var XOe=class extends ib{static{e(this,"ComponentNormalizer")}normalize(n,o,l){let u=this._factory.spec;if(!u.supportsComponentType(n.type))return;let p=n.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(n.supplier,o,"supplier"),h=(u.requiresComponentVersion?jS:Lh)(n.version??"","version",Av.normalizedString),v=n.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(n.hashes,o,"hash")}:void 0,T=n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,E=n.swid===void 0?void 0:this._factory.makeForSWID().normalize(n.swid,o,"swid"),D=n.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o,"reference")}:void 0,C=u.supportsProperties(n)&&n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0,w=n.components.size>0?{type:"element",name:"components",children:this.normalizeIterable(n.components,o,"component")}:void 0,W=u.supportsComponentEvidence&&n.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(n.evidence,o,"evidence"):void 0;return{type:"element",name:l,attributes:{type:n.type,"bom-ref":n.bomRef.value},children:[p,Lh(n.author,"author",Av.normalizedString),Lh(n.publisher,"publisher",Av.normalizedString),Lh(n.group,"group",Av.normalizedString),jS(n.name,"name",Av.normalizedString),h,Lh(n.description,"description",Av.normalizedString),Lh(n.scope,"scope"),v,T,Lh(n.copyright,"copyright",Av.normalizedString),Lh(n.cpe,"cpe"),Lh(n.purl,"purl"),E,D,C,w,W].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.ComponentNormalizer=XOe;var $Oe=class extends ib{static{e(this,"ServiceNormalizer")}normalize(n,o,l){let u=this._factory.spec,p=n.provider===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(n.provider,o,"provider"),h=n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,v=n.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(n.externalReferences,o,"reference")}:void 0,T=u.supportsProperties(n)&&n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0,E=n.services.size>0?{type:"element",name:"services",children:this.normalizeIterable(n.services,o,"service")}:void 0;return{type:"element",name:l,attributes:{"bom-ref":n.bomRef.value},children:[p,Lh(n.group,"group",Av.normalizedString),jS(n.name,"name",Av.normalizedString),Lh(n.version,"version",Av.normalizedString),Lh(n.description,"description",Av.normalizedString),h,v,T,E].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.ServiceNormalizer=$Oe;var YOe=class extends ib{static{e(this,"ComponentEvidenceNormalizer")}normalize(n,o,l){let u=n.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(n.licenses,o)}:void 0,p=n.copyright.size>0?{type:"element",name:"copyright",children:_Zt(n.copyright,o,"text")}:void 0;return{type:"element",name:l,children:[u,p].filter(Ob.isNotUndefined)}}};hp.ComponentEvidenceNormalizer=YOe;var QOe=class extends ib{static{e(this,"LicenseNormalizer")}constructor(){super(...arguments),vZ.add(this)}normalize(n,o){switch(!0){case n instanceof cge.NamedLicense:return zB(this,vZ,"m",zut).call(this,n,o);case n instanceof cge.SpdxLicense:return(0,xpr.isSupportedSpdxId)(n.id)?zB(this,vZ,"m",uZt).call(this,n,o):zB(this,vZ,"m",zut).call(this,new cge.NamedLicense(n.id,{url:n.url}),o);case n instanceof cge.LicenseExpression:return zB(this,vZ,"m",Gut).call(this,n);default:throw new TypeError("Unexpected LicenseChoice")}}normalizeIterable(n,o){let l=o.sortLists??!1?n.sorted():Array.from(n);if(l.length>1){let u=l.filter(p=>p instanceof cge.LicenseExpression);if(u.length>0)return[zB(this,vZ,"m",Gut).call(this,u[0])]}return l.map(u=>this.normalize(u,o))}};hp.LicenseNormalizer=QOe;vZ=new WeakSet,zut=e(function(n,o){let l=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0},children:[jS(n.name,"name",Av.normalizedString),n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o,"text"),SZ.XmlSchema.isAnyURI(l)?jS(l,"url"):void 0].filter(Ob.isNotUndefined)}},"_LicenseNormalizer_normalizeNamedLicense"),uZt=e(function(n,o){let l=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0},children:[jS(n.id,"id"),n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o,"text"),SZ.XmlSchema.isAnyURI(l)?jS(l,"url"):void 0].filter(Ob.isNotUndefined)}},"_LicenseNormalizer_normalizeSpdxLicense"),Gut=e(function(n){let o=jS(n.expression,"expression",Av.normalizedString);return o.attributes={acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?n.acknowledgement:void 0},o},"_LicenseNormalizer_normalizeLicenseExpression");var ZOe=class extends ib{static{e(this,"SWIDNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:l,attributes:{tagId:n.tagId,name:n.name,version:n.version||void 0,tagVersion:n.tagVersion,patch:n.patch===void 0?void 0:n.patch?"true":"false"},children:[n.text===void 0?void 0:this._factory.makeForAttachment().normalize(n.text,o,"text"),SZ.XmlSchema.isAnyURI(u)?jS(u,"url"):void 0].filter(Ob.isNotUndefined)}}};hp.SWIDNormalizer=ZOe;var eFe=class extends ib{static{e(this,"ExternalReferenceNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url.toString()),p=this._factory.spec.supportsExternalReferenceHashes&&n.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(n.hashes,o,"hash")}:void 0;return this._factory.spec.supportsExternalReferenceType(n.type)&&SZ.XmlSchema.isAnyURI(u)?{type:"element",name:l,attributes:{type:n.type},children:[jS(u,"url"),Lh(n.comment,"comment"),p].filter(Ob.isNotUndefined)}:void 0}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.ExternalReferenceNormalizer=eFe;var tFe=class extends ib{static{e(this,"AttachmentNormalizer")}normalize(n,o,l){return{type:"element",name:l,attributes:{"content-type":n.contentType?(0,Av.normalizedString)(n.contentType):void 0,encoding:n.encoding||void 0},children:n.content.toString()}}};hp.AttachmentNormalizer=tFe;var nFe=class extends ib{static{e(this,"PropertyNormalizer")}normalize(n,o,l){return{type:"element",name:l,attributes:{name:n.name},children:(0,Av.normalizedString)(n.value)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.PropertyNormalizer=nFe;var rFe=class extends ib{static{e(this,"DependencyGraphNormalizer")}constructor(){super(...arguments),Uut.add(this)}normalize(n,o,l){let u=new Map;if(n.metadata.component!==void 0){u.set(n.metadata.component.bomRef,n.metadata.component.dependencies);for(let h of n.metadata.component.components[But.treeIteratorSymbol]())u.set(h.bomRef,h.dependencies)}for(let h of n.components[But.treeIteratorSymbol]())u.set(h.bomRef,h.dependencies);for(let h of n.services[But.treeIteratorSymbol]())u.set(h.bomRef,h.dependencies);let p=[];for(let[h,v]of u){let T=zB(this,Uut,"m",dZt).call(this,h,v,u,o);(0,Ob.isNotUndefined)(T)&&p.push(T)}return(o.sortLists??!1)&&p.sort(({attributes:{ref:h}},{attributes:{ref:v}})=>h.localeCompare(v)),{type:"element",name:l,children:p}}};hp.DependencyGraphNormalizer=rFe;Uut=new WeakSet,dZt=e(function(n,o,l,u){let p=n.toString();if(p.length===0)return;let h=Array.from(o).filter(v=>l.has(v)&&v!==n).map(v=>v.toString()).filter(v=>v.length>0);return(u.sortLists??!1)&&h.sort((v,T)=>v.localeCompare(T)),{type:"element",name:"dependency",attributes:{ref:p},children:h.map(v=>({type:"element",name:"dependency",attributes:{ref:v}}))}},"_DependencyGraphNormalizer_normalizeDependency");var iFe=class extends ib{static{e(this,"VulnerabilityNormalizer")}normalize(n,o,l){let u=n.references.size>0?{type:"element",name:"references",children:this._factory.makeForVulnerabilityReference().normalizeIterable(n.references,o,"reference")}:void 0,p=n.ratings.size>0?{type:"element",name:"ratings",children:this._factory.makeForVulnerabilityRating().normalizeIterable(n.ratings,o,"rating")}:void 0,h=n.cwes.size>0?{type:"element",name:"cwes",children:(o.sortLists?n.cwes.sorted():Array.from(n.cwes)).map(C=>jS(C,"cwe"))}:void 0,v=n.advisories.size>0?{type:"element",name:"advisories",children:this._factory.makeForVulnerabilityAdvisory().normalizeIterable(n.advisories,o,"advisory")}:void 0,T=n.tools.size>0?this._factory.makeForTools().normalize(n.tools,o,"tools"):void 0,E=n.affects.size>0?{type:"element",name:"affects",children:this._factory.makeForVulnerabilityAffect().normalizeIterable(n.affects,o,"target")}:void 0,D=n.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(n.properties,o,"property")}:void 0;return{type:"element",name:l,attributes:{"bom-ref":n.bomRef.value||void 0},children:[Lh(n.id,"id",Av.normalizedString),n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o,"source"),u,p,h,Lh(n.description,"description"),Lh(n.detail,"detail"),Lh(n.recommendation,"recommendation"),v,jOe(n.created,"created"),jOe(n.created,"published"),jOe(n.created,"updated"),n.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(n.credits,o,"credits"),T,n.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(n.analysis,o,"analysis"),E,D].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityNormalizer=iFe;var oFe=class extends ib{static{e(this,"VulnerabilitySourceNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url?.toString());return{type:"element",name:l,children:[Lh(n.name,"name",Av.normalizedString),SZ.XmlSchema.isAnyURI(u)?jS(u,"url"):void 0].filter(Ob.isNotUndefined)}}};hp.VulnerabilitySourceNormalizer=oFe;var aFe=class extends ib{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[jS(n.id,"id"),this._factory.makeForVulnerabilitySource().normalize(n.source,o,"source")]}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityReferenceNormalizer=aFe;var sFe=class extends ib{static{e(this,"VulnerabilityRatingNormalizer")}normalize(n,o,l){return{type:"element",name:l,children:[n.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(n.source,o,"source"),Lh(n.score,"score"),Lh(n.severity,"severity"),this._factory.spec.supportsVulnerabilityRatingMethod(n.method)?Lh(n.method,"method"):void 0,Lh(n.vector,"vector",Av.normalizedString),Lh(n.justification,"justification")].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityRatingNormalizer=sFe;var lFe=class extends ib{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(n,o,l){let u=(0,bZ.escapeUri)(n.url.toString());if(SZ.XmlSchema.isAnyURI(u))return{type:"element",name:l,children:[Lh(n.title,"title"),jS(u,"url")].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l)).filter(Ob.isNotUndefined)}};hp.VulnerabilityAdvisoryNormalizer=lFe;var cFe=class extends ib{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(n,o,l){let u=n.organizations.size>0?{type:"element",name:"organizations",children:this._factory.makeForOrganizationalEntity().normalizeIterable(n.organizations,o,"organization")}:void 0,p=n.individuals.size>0?{type:"element",name:"individuals",children:this._factory.makeForOrganizationalContact().normalizeIterable(n.individuals,o,"individual")}:void 0;return{type:"element",name:l,children:[u,p].filter(Ob.isNotUndefined)}}};hp.VulnerabilityCreditsNormalizer=cFe;var uFe=class extends ib{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(n,o,l){let u=n.response.size>0?{type:"element",name:"responses",children:(o.sortLists??!1?n.response.sorted():Array.from(n.response)).map(p=>jS(p,"response"))}:void 0;return{type:"element",name:l,children:[Lh(n.state,"state"),Lh(n.justification,"justification"),u,Lh(n.detail,"detail")].filter(Ob.isNotUndefined)}}};hp.VulnerabilityAnalysisNormalizer=uFe;var dFe=class extends ib{static{e(this,"VulnerabilityAffectNormalizer")}normalize(n,o,l){let u=n.versions.size>0?{type:"element",name:"versions",children:this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(n.versions,o,"version")}:void 0;return{type:"element",name:l,children:[jS(n.ref,"ref"),u].filter(Ob.isNotUndefined)}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityAffectNormalizer=dFe;var pFe=class extends ib{static{e(this,"VulnerabilityAffectedVersionNormalizer")}constructor(){super(...arguments),WOe.add(this)}normalize(n,o,l){switch(!0){case n instanceof lZt.AffectedSingleVersion:return zB(this,WOe,"m",pZt).call(this,n,l);case n instanceof lZt.AffectedVersionRange:return zB(this,WOe,"m",fZt).call(this,n,l);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}normalizeIterable(n,o,l){return(o.sortLists??!1?n.sorted():Array.from(n)).map(u=>this.normalize(u,o,l))}};hp.VulnerabilityAffectedVersionNormalizer=pFe;WOe=new WeakSet,pZt=e(function(n,o){return{type:"element",name:o,children:[jS(n.version,"version",Av.normalizedString),Lh(n.status,"status")].filter(Ob.isNotUndefined)}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion"),fZt=e(function(n,o){return{type:"element",name:o,children:[jS(n.range,"range",Av.normalizedString),Lh(n.status,"status")].filter(Ob.isNotUndefined)}},"_VulnerabilityAffectedVersionNormalizer_normalizeAffectedVersionRange");var fFe=e(i=>i,"noTEM");function Lh(i,n,o=fFe){let l=o(i?.toString()??"");return l.length>0?jS(l,n):void 0}e(Lh,"makeOptionalTextElement");function jS(i,n,o=fFe){return{type:"element",name:n,children:o(i.toString())}}e(jS,"makeTextElement");function _Zt(i,n,o,l=fFe){let u=Array.from(i,p=>jS(p,o,l));return(n.sortLists??!1)&&u.sort(({children:p},{children:h})=>p.localeCompare(h)),u}e(_Zt,"makeTextElementIter");function jOe(i,n,o=fFe){let l=i?.toISOString();return l===void 0?void 0:jS(l,n,o)}e(jOe,"makeOptionalDateTimeElement")});var hZt=ft(ase=>{"use strict";Z();ne();ee();te();Object.defineProperty(ase,"__esModule",{value:!0});ase.Types=ase.Normalize=void 0;ase.Normalize=mZt();ase.Types=Fut()});var Kut=ft(UH=>{"use strict";Z();ne();ee();te();var Dpr=UH&&UH.__classPrivateFieldSet||function(i,n,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?i!==n||!u:!n.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(i,o):u?u.value=o:n.set(i,o),o},gZt=UH&&UH.__classPrivateFieldGet||function(i,n,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?i!==n||!l:!n.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:n.get(i)},uge;Object.defineProperty(UH,"__esModule",{value:!0});UH.XmlBaseSerializer=void 0;var Apr=hZ(),Cpr=bOe(),wpr=wLe(),qut=class extends wpr.BaseSerializer{static{e(this,"XmlBaseSerializer")}constructor(n){if(!n.spec.supportsFormat(Apr.Format.XML))throw new Cpr.UnsupportedFormatError("Spec does not support XML format.");super(),uge.set(this,void 0),Dpr(this,uge,n,"f")}get normalizerFactory(){return gZt(this,uge,"f")}_normalize(n,o={}){return gZt(this,uge,"f").makeForBom().normalize(n,o)}};UH.XmlBaseSerializer=qut;uge=new WeakMap});var yZt=ft(K2=>{"use strict";Z();ne();ee();te();var Ipr=K2&&K2.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),dge=K2&&K2.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&Ipr(n,i,o)};Object.defineProperty(K2,"__esModule",{value:!0});K2.XML=K2.JSON=K2.Types=void 0;dge(lct(),K2);dge(dct(),K2);K2.Types=oQt();dge(wLe(),K2);K2.JSON=GQt();dge(VQt(),K2);K2.XML=hZt();dge(Kut(),K2)});var vZt=ft(Hut=>{"use strict";Z();ne();ee();te();Object.defineProperty(Hut,"__esModule",{value:!0});Hut.default=Rpr;var Ppr=TLe();function Npr(i){let n=e(function(){throw new Ppr.OptPlugError(i)},"f");return n.fails=!0,Object.freeze(n)}e(Npr,"makeWIllThrow");function Rpr(i,n){for(let[,o]of n)try{return o()}catch{}return Npr(`No ${i} available.
31140
31140
  Please install one of the optional dependencies: `+n.map(o=>o[0]).join(" || "))}e(Rpr,"default_1")});var fge=ft((pge,Jut)=>{Z();ne();ee();te();(function(i,n){typeof pge=="object"&&typeof Jut=="object"?Jut.exports=n():typeof define=="function"&&define.amd?define([],n):typeof pge=="object"?pge.xmlbuilder2=n():i.xmlbuilder2=n()})(pge,function(){return function(i){var n={};function o(l){if(n[l])return n[l].exports;var u=n[l]={i:l,l:!1,exports:{}};return i[l].call(u.exports,u,u.exports,o),u.l=!0,u.exports}return e(o,"r"),o.m=i,o.c=n,o.d=function(l,u,p){o.o(l,u)||Object.defineProperty(l,u,{enumerable:!0,get:p})},o.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},o.t=function(l,u){if(1&u&&(l=o(l)),8&u||4&u&&typeof l=="object"&&l&&l.__esModule)return l;var p=Object.create(null);if(o.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:l}),2&u&&typeof l!="string")for(var h in l)o.d(p,h,function(v){return l[v]}.bind(null,h));return p},o.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return o.d(u,"a",u),u},o.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},o.p="",o(o.s=184)}([function(i,n,o){"use strict";function l(u){for(var p in u)n.hasOwnProperty(p)||(n[p]=u[p])}e(l,"n"),Object.defineProperty(n,"__esModule",{value:!0}),l(o(240)),l(o(251)),l(o(175)),l(o(107)),l(o(29)),l(o(73)),l(o(106)),l(o(30)),l(o(252)),l(o(52)),l(o(97)),l(o(253)),l(o(37)),l(o(51)),l(o(173)),l(o(176)),l(o(172)),l(o(108)),l(o(254)),l(o(255)),l(o(256)),l(o(72)),l(o(177)),l(o(105)),l(o(17)),l(o(257)),l(o(12)),l(o(174))},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(l){l[l.Before=0]="Before",l[l.Equal=1]="Equal",l[l.After=2]="After"}(n.BoundaryPosition||(n.BoundaryPosition={})),function(l){l[l.None=0]="None",l[l.Capturing=1]="Capturing",l[l.AtTarget=2]="AtTarget",l[l.Bubbling=3]="Bubbling"}(n.EventPhase||(n.EventPhase={})),function(l){l[l.Element=1]="Element",l[l.Attribute=2]="Attribute",l[l.Text=3]="Text",l[l.CData=4]="CData",l[l.EntityReference=5]="EntityReference",l[l.Entity=6]="Entity",l[l.ProcessingInstruction=7]="ProcessingInstruction",l[l.Comment=8]="Comment",l[l.Document=9]="Document",l[l.DocumentType=10]="DocumentType",l[l.DocumentFragment=11]="DocumentFragment",l[l.Notation=12]="Notation"}(n.NodeType||(n.NodeType={})),function(l){l[l.Disconnected=1]="Disconnected",l[l.Preceding=2]="Preceding",l[l.Following=4]="Following",l[l.Contains=8]="Contains",l[l.ContainedBy=16]="ContainedBy",l[l.ImplementationSpecific=32]="ImplementationSpecific"}(n.Position||(n.Position={})),function(l){l[l.Accept=1]="Accept",l[l.Reject=2]="Reject",l[l.Skip=3]="Skip"}(n.FilterResult||(n.FilterResult={})),function(l){l[l.All=4294967295]="All",l[l.Element=1]="Element",l[l.Attribute=2]="Attribute",l[l.Text=4]="Text",l[l.CDataSection=8]="CDataSection",l[l.EntityReference=16]="EntityReference",l[l.Entity=32]="Entity",l[l.ProcessingInstruction=64]="ProcessingInstruction",l[l.Comment=128]="Comment",l[l.Document=256]="Document",l[l.DocumentType=512]="DocumentType",l[l.DocumentFragment=1024]="DocumentFragment",l[l.Notation=2048]="Notation"}(n.WhatToShow||(n.WhatToShow={})),function(l){l[l.StartToStart=0]="StartToStart",l[l.StartToEnd=1]="StartToEnd",l[l.EndToEnd=2]="EndToEnd",l[l.EndToStart=3]="EndToStart"}(n.HowToCompare||(n.HowToCompare={}))},function(i,n,o){"use strict";var l=this&&this.__values||function(F){var $=typeof Symbol=="function"&&Symbol.iterator,Y=$&&F[$],ie=0;if(Y)return Y.call(F);if(F&&typeof F.length=="number")return{next:e(function(){return F&&ie>=F.length&&(F=void 0),{value:F&&F[ie++],done:!F}},"next")};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(212);n.FixedSizeSet=u.FixedSizeSet;var p=o(213);n.ObjectCache=p.ObjectCache;var h=o(214);n.CompareCache=h.CompareCache;var v=o(215);n.Lazy=v.Lazy;var T=o(216);function E(F,$,Y){if(B(F))F.forEach(function(fe,ve){return $.call(Y,ve,fe)});else for(var ie in F)F.hasOwnProperty(ie)&&$.call(Y,ie,F[ie])}e(E,"l");function D(F){var $,Y;if(C(F))return F;if(W(F)){var ie=[];try{for(var fe=l(F),ve=fe.next();!ve.done;ve=fe.next()){var Ce=ve.value;ie.push(D(Ce))}}catch(yt){$={error:yt}}finally{try{ve&&!ve.done&&(Y=fe.return)&&Y.call(fe)}finally{if($)throw $.error}}return ie}if(w(F)){ie={};for(var be in F)if(F.hasOwnProperty(be)){var qe=F[be];ie[be]=D(qe)}return ie}return F}e(D,"c");function C(F){return!!F&&Object.prototype.toString.call(F)==="[object Function]"}e(C,"h");function w(F){var $=typeof F;return!!F&&($==="function"||$==="object")}e(w,"p");function W(F){return Array.isArray(F)}e(W,"f");function V(F){return F instanceof Set}e(V,"d");function B(F){return F instanceof Map}e(B,"m");function k(F){if(w(F)){var $=Object.getPrototypeOf(F),Y=$.constructor;return $&&Y&&typeof Y=="function"&&Y instanceof Y&&Function.prototype.toString.call(Y)===Function.prototype.toString.call(Object)}return!1}e(k,"y"),n.StringWalker=T.StringWalker,n.applyMixin=function(F,$){for(var Y=[],ie=2;ie<arguments.length;ie++)Y[ie-2]=arguments[ie];Object.getOwnPropertyNames($.prototype).forEach(function(fe){if(fe!=="constructor"){if(Y.indexOf(fe)!==-1){var ve=Object.getOwnPropertyDescriptor(F.prototype,fe);ve&&Object.defineProperty(F.prototype,"_"+fe,ve)}var Ce=Object.getOwnPropertyDescriptor($.prototype,fe);Ce&&Object.defineProperty(F.prototype,fe,Ce)}})},n.applyDefaults=e(function F($,Y,ie){ie===void 0&&(ie=!1);var fe=D($||{});return E(Y,function(ve,Ce){k(Ce)?fe[ve]=F(fe[ve],Ce,ie):(ie||fe[ve]===void 0)&&(fe[ve]=Ce)}),fe},"e"),n.forEachArray=function(F,$,Y){F.forEach($,Y)},n.forEachObject=E,n.arrayLength=function(F){return V(F)?F.size:F.length},n.objectLength=function(F){return B(F)?F.size:Object.keys(F).length},n.getObjectValue=function(F,$){return B(F)?F.get($):F[$]},n.removeObjectValue=function(F,$){B(F)?F.delete($):delete F[$]},n.clone=D,n.isBoolean=function(F){return typeof F=="boolean"},n.isNumber=function(F){return typeof F=="number"},n.isString=function(F){return typeof F=="string"},n.isFunction=C,n.isObject=w,n.isArray=W,n.isSet=V,n.isMap=B,n.isEmpty=function(F){if(W(F))return!F.length;if(V(F)||B(F))return!F.size;if(w(F)){for(var $ in F)if(F.hasOwnProperty($))return!1;return!0}return!1},n.isPlainObject=k,n.isIterable=function(F){return F&&typeof F[Symbol.iterator]=="function"},n.getValue=function(F){return C(F.valueOf)?F.valueOf():F},n.utf8Encode=function(F){for(var $=new Uint8Array(4*F.length),Y=0,ie=0;ie<F.length;ie++){var fe=F.charCodeAt(ie);if(fe<128)$[Y++]=fe;else{if(fe<2048)$[Y++]=fe>>6|192;else{if(fe>55295&&fe<56320){if(++ie>=F.length)throw new Error("Incomplete surrogate pair.");var ve=F.charCodeAt(ie);if(ve<56320||ve>57343)throw new Error("Invalid surrogate character.");fe=65536+((1023&fe)<<10)+(1023&ve),$[Y++]=fe>>18|240,$[Y++]=fe>>12&63|128}else $[Y++]=fe>>12|224;$[Y++]=fe>>6&63|128}$[Y++]=63&fe|128}}return $.subarray(0,Y)},n.utf8Decode=function(F){for(var $="",Y=0;Y<F.length;){var ie=F[Y++];if(ie>127)if(ie>191&&ie<224){if(Y>=F.length)throw new Error("Incomplete 2-byte sequence.");ie=(31&ie)<<6|63&F[Y++]}else if(ie>223&&ie<240){if(Y+1>=F.length)throw new Error("Incomplete 3-byte sequence.");ie=(15&ie)<<12|(63&F[Y++])<<6|63&F[Y++]}else{if(!(ie>239&&ie<248))throw new Error("Unknown multi-byte start.");if(Y+2>=F.length)throw new Error("Incomplete 4-byte sequence.");ie=(7&ie)<<18|(63&F[Y++])<<12|(63&F[Y++])<<6|63&F[Y++]}if(ie<=65535)$+=String.fromCharCode(ie);else{if(!(ie<=1114111))throw new Error("Code point exceeds UTF-16 limit.");ie-=65536,$+=String.fromCharCode(ie>>10|55296),$+=String.fromCharCode(1023&ie|56320)}}return $}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(241);n.Cast=l.Cast;var u=o(150);n.Guard=u.Guard;var p=o(242);n.EmptySet=p.EmptySet},function(i,n,o){var l=o(11),u=o(55).f,p=o(21),h=o(25),v=o(80),T=o(119),E=o(123);i.exports=function(D,C){var w,W,V,B,k,F=D.target,$=D.global,Y=D.stat;if(w=$?l:Y?l[F]||v(F,{}):(l[F]||{}).prototype)for(W in C){if(B=C[W],V=D.noTargetGet?(k=u(w,W))&&k.value:w[W],!E($?W:F+(Y?".":"#")+W,D.forced)&&V!==void 0){if(typeof B==typeof V)continue;T(B,V)}(D.sham||V&&V.sham)&&p(B,"sham",!0),h(w,W,B,D)}}},function(i,n,o){var l=o(11),u=o(81),p=o(14),h=o(58),v=o(86),T=o(124),E=u("wks"),D=l.Symbol,C=T?D:D&&D.withoutSetter||h;i.exports=function(w){return p(E,w)||(v&&p(D,w)?E[w]=D[w]:E[w]=C("Symbol."+w)),E[w]}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(2),u=o(29),p=function(){function h(){this._features={mutationObservers:!0,customElements:!0,slots:!0,steps:!0},this._window=null,this._compareCache=new l.CompareCache,this._rangeList=new l.FixedSizeSet}return e(h,"e"),h.prototype.setFeatures=function(v){if(v===void 0&&(v=!0),l.isObject(v))for(var T in v)this._features[T]=v[T]||!1;else for(var T in this._features)this._features[T]=v},Object.defineProperty(h.prototype,"features",{get:e(function(){return this._features},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"window",{get:e(function(){return this._window===null&&(this._window=u.create_window()),this._window},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"compareCache",{get:e(function(){return this._compareCache},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"rangeList",{get:e(function(){return this._rangeList},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(h,"instance",{get:e(function(){return h._instance||(h._instance=new h),h._instance},"get"),enumerable:!0,configurable:!0}),h}();n.dom=p.instance},function(i,n,o){"use strict";var l=this&&this.__importStar||function(k){if(k&&k.__esModule)return k;var F={};if(k!=null)for(var $ in k)Object.hasOwnProperty.call(k,$)&&(F[$]=k[$]);return F.default=k,F};Object.defineProperty(n,"__esModule",{value:!0});var u=l(o(228));n.base64=u;var p=l(o(146));n.byte=p;var h=l(o(147));n.byteSequence=h;var v=l(o(96));n.codePoint=v;var T=l(o(232));n.json=T;var E=l(o(233));n.list=E;var D=l(o(234));n.map=D;var C=l(o(235));n.namespace=C;var w=l(o(236));n.queue=w;var W=l(o(237));n.set=W;var V=l(o(238));n.stack=V;var B=l(o(239));n.string=B},function(i,n){i.exports=function(o){try{return!!o()}catch{return!0}}},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(Qt,on){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,Kt){It.__proto__=Kt}||function(It,Kt){for(var ht in Kt)Kt.hasOwnProperty(ht)&&(It[ht]=Kt[ht])})(Qt,on)},"n"),function(Qt,on){function It(){this.constructor=Qt}e(It,"r"),l(Qt,on),Qt.prototype=on===null?Object.create(on):(It.prototype=on.prototype,new It)});Object.defineProperty(n,"__esModule",{value:!0});var p=function(Qt){function on(It,Kt){Kt===void 0&&(Kt="");var ht=Qt.call(this,Kt)||this;return ht.name=It,ht}return e(on,"t"),u(on,Qt),on}(Error);n.DOMException=p;var h=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"DOMStringSizeError",It)||this}return e(on,"t"),u(on,Qt),on}(p);n.DOMStringSizeError=h;var v=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"WrongDocumentError","The object is in the wrong document. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.WrongDocumentError=v;var T=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NoDataAllowedError",It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NoDataAllowedError=T;var E=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NoModificationAllowedError","The object can not be modified. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NoModificationAllowedError=E;var D=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NotSupportedError","The operation is not supported. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NotSupportedError=D;var C=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"InUseAttributeError",It)||this}return e(on,"t"),u(on,Qt),on}(p);n.InUseAttributeError=C;var w=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"InvalidStateError","The object is in an invalid state. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.InvalidStateError=w;var W=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"InvalidModificationError","The object can not be modified in this way. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.InvalidModificationError=W;var V=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NamespaceError","The operation is not allowed by Namespaces in XML. [XMLNS] "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NamespaceError=V;var B=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"InvalidAccessError","The object does not support the operation or argument. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.InvalidAccessError=B;var k=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"ValidationError",It)||this}return e(on,"t"),u(on,Qt),on}(p);n.ValidationError=k;var F=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"TypeMismatchError",It)||this}return e(on,"t"),u(on,Qt),on}(p);n.TypeMismatchError=F;var $=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"SecurityError","The operation is insecure. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.SecurityError=$;var Y=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NetworkError","A network error occurred. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NetworkError=Y;var ie=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"AbortError","The operation was aborted. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.AbortError=ie;var fe=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"URLMismatchError","The given URL does not match another URL. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.URLMismatchError=fe;var ve=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"QuotaExceededError","The quota has been exceeded. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.QuotaExceededError=ve;var Ce=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"TimeoutError","The operation timed out. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.TimeoutError=Ce;var be=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"InvalidNodeTypeError","The supplied node is incorrect or has an incorrect ancestor for this operation. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.InvalidNodeTypeError=be;var qe=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"DataCloneError","The object can not be cloned. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.DataCloneError=qe;var yt=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NotImplementedError","The DOM method is not implemented by this module. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NotImplementedError=yt;var Ct=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"HierarchyRequestError","The operation would yield an incorrect node tree. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.HierarchyRequestError=Ct;var Bt=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"NotFoundError","The object can not be found here. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.NotFoundError=Bt;var fn=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"IndexSizeError","The index is not in the allowed range. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.IndexSizeError=fn;var Fn=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"SyntaxError","The string did not match the expected pattern. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.SyntaxError=Fn;var Sn=function(Qt){function on(It){return It===void 0&&(It=""),Qt.call(this,"InvalidCharacterError","The string contains invalid characters. "+It)||this}return e(on,"t"),u(on,Qt),on}(p);n.InvalidCharacterError=Sn},function(i,n,o){"use strict";var l=o(53),u=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],p=["scalar","sequence","mapping"];i.exports=function(h,v){var T,E;if(v=v||{},Object.keys(v).forEach(function(D){if(u.indexOf(D)===-1)throw new l('Unknown option "'+D+'" is met in definition of "'+h+'" YAML type.')}),this.tag=h,this.kind=v.kind||null,this.resolve=v.resolve||function(){return!0},this.construct=v.construct||function(D){return D},this.instanceOf=v.instanceOf||null,this.predicate=v.predicate||null,this.represent=v.represent||null,this.defaultStyle=v.defaultStyle||null,this.styleAliases=(T=v.styleAliases||null,E={},T!==null&&Object.keys(T).forEach(function(D){T[D].forEach(function(C){E[String(C)]=D})}),E),p.indexOf(this.kind)===-1)throw new l('Unknown kind "'+this.kind+'" is specified for "'+h+'" YAML type.')}},function(i,n,o){(function(l){var u=e(function(p){return p&&p.Math==Math&&p},"r");i.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof l=="object"&&l)||Function("return this")()}).call(this,o(78))},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.idl_defineConst=function(l,u,p){Object.defineProperty(l,u,{writable:!1,enumerable:!0,configurable:!1,value:p})}},function(i,n){i.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(i,n){var o={}.hasOwnProperty;i.exports=function(l,u){return o.call(l,u)}},function(i,n,o){var l=o(16),u=o(115),p=o(18),h=o(56),v=Object.defineProperty;n.f=l?v:function(T,E,D){if(p(T),E=h(E,!0),p(D),u)try{return v(T,E,D)}catch{}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(T[E]=D.value),T}},function(i,n,o){var l=o(8);i.exports=!l(function(){return Object.defineProperty({},1,{get:e(function(){return 7},"get")})[1]!=7})},function(i,n,o){"use strict";var l=this&&this.__values||function(F){var $=typeof Symbol=="function"&&Symbol.iterator,Y=$&&F[$],ie=0;if(Y)return Y.call(F);if(F&&typeof F.length=="number")return{next:e(function(){return F&&ie>=F.length&&(F=void 0),{value:F&&F[ie++],done:!F}},"next")};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(3),p=o(1);function h(F,$,Y){if(Y===void 0&&(Y=!1),Y&&u.Guard.isElementNode($)&&u.Guard.isShadowRoot($.shadowRoot)&&$.shadowRoot._firstChild)return $.shadowRoot._firstChild;if($._firstChild)return $._firstChild;if($===F)return null;if($._nextSibling)return $._nextSibling;for(var ie=$._parent;ie&&ie!==F;){if(ie._nextSibling)return ie._nextSibling;ie=ie._parent}return null}e(h,"a");function v(){var F;return(F={})[Symbol.iterator]=function(){return{next:e(function(){return{done:!0,value:null}},"next")}},F}e(v,"s");function T(F,$,Y,ie){$===void 0&&($=!1),Y===void 0&&(Y=!1);for(var fe=$?F:h(F,F,Y);fe&&ie&&!ie(fe);)fe=h(F,fe,Y);return fe}e(T,"u");function E(F,$,Y,ie,fe){Y===void 0&&(Y=!1),ie===void 0&&(ie=!1);for(var ve=h(F,$,ie);ve&&fe&&!fe(ve);)ve=h(F,ve,ie);return ve}e(E,"l");function D(F,$,Y,ie){var fe;return $===void 0&&($=!1),Y===void 0&&(Y=!1),$||F._children.size!==0?((fe={})[Symbol.iterator]=function(){var ve=$?F:h(F,F,Y);return{next:e(function(){for(;ve&&ie&&!ie(ve);)ve=h(F,ve,Y);if(ve===null)return{done:!0,value:null};var Ce={done:!1,value:ve};return ve=h(F,ve,Y),Ce},"next")}},fe):v()}e(D,"c");function C(F,$,Y){$===void 0&&($=!1);for(var ie=$?F:F._parent;ie&&Y&&!Y(ie);)ie=ie._parent;return ie}e(C,"h");function w(F,$,Y,ie){Y===void 0&&(Y=!1);for(var fe=$._parent;fe&&ie&&!ie(fe);)fe=fe._parent;return fe}e(w,"p");function W(F){return u.Guard.isDocumentTypeNode(F)?0:u.Guard.isCharacterDataNode(F)?F._data.length:F._children.size}e(W,"f");function V(F,$){if($===void 0&&($=!1),$){var Y=V(F,!1);return u.Guard.isShadowRoot(Y)?V(Y._host,!0):Y}return F._parent?V(F._parent):F}e(V,"d");function B(F,$,Y,ie){Y===void 0&&(Y=!1),ie===void 0&&(ie=!1);for(var fe=Y?F:ie&&u.Guard.isShadowRoot(F)?F._host:F._parent;fe!==null;){if(fe===$)return!0;fe=ie&&u.Guard.isShadowRoot(fe)?fe._host:fe._parent}return!1}e(B,"m");function k(F){for(var $=V(F),Y=0,ie=T($);ie!==null;){if(Y++,ie===F)return Y;ie=E($,ie)}return-1}e(k,"y"),n.tree_getFirstDescendantNode=T,n.tree_getNextDescendantNode=E,n.tree_getDescendantNodes=D,n.tree_getDescendantElements=function(F,$,Y,ie){var fe;return $===void 0&&($=!1),Y===void 0&&(Y=!1),$||F._children.size!==0?((fe={})[Symbol.iterator]=function(){var ve=D(F,$,Y,function(be){return u.Guard.isElementNode(be)})[Symbol.iterator](),Ce=ve.next().value;return{next:e(function(){for(;Ce&&ie&&!ie(Ce);)Ce=ve.next().value;if(Ce===null)return{done:!0,value:null};var be={done:!1,value:Ce};return Ce=ve.next().value,be},"next")}},fe):v()},n.tree_getSiblingNodes=function(F,$,Y){var ie;return $===void 0&&($=!1),F._parent&&F._parent._children.size!==0?((ie={})[Symbol.iterator]=function(){var fe=F._parent?F._parent._firstChild:null;return{next:e(function(){for(;fe&&(Y&&!Y(fe)||!$&&fe===F);)fe=fe._nextSibling;if(fe===null)return{done:!0,value:null};var ve={done:!1,value:fe};return fe=fe._nextSibling,ve},"next")}},ie):v()},n.tree_getFirstAncestorNode=C,n.tree_getNextAncestorNode=w,n.tree_getAncestorNodes=function(F,$,Y){var ie;return $===void 0&&($=!1),$||F._parent?((ie={})[Symbol.iterator]=function(){var fe=C(F,$,Y);return{next:e(function(){if(fe===null)return{done:!0,value:null};var ve={done:!1,value:fe};return fe=w(0,fe,$,Y),ve},"next")}},ie):v()},n.tree_getCommonAncestor=function(F,$){if(F===$)return F._parent;for(var Y=[],ie=[],fe=C(F,!0);fe!==null;)Y.push(fe),fe=w(0,fe,!0);for(var ve=C($,!0);ve!==null;)ie.push(ve),ve=w(0,ve,!0);for(var Ce=Y.length,be=ie.length,qe=null,yt=Math.min(Ce,be);yt>0;yt--){var Ct=Y[--Ce];if(Ct!==ie[--be])break;qe=Ct}return qe},n.tree_getFollowingNode=function(F,$){if($._firstChild)return $._firstChild;if($._nextSibling)return $._nextSibling;for(;;){var Y=$._parent;if(Y===null||Y===F)return null;if(Y._nextSibling)return Y._nextSibling;$=Y}},n.tree_getPrecedingNode=function(F,$){return $===F?null:$._previousSibling?($=$._previousSibling)._lastChild?$._lastChild:$:$._parent},n.tree_isConstrained=e(function F($){var Y,ie,fe,ve,Ce,be;switch($._nodeType){case p.NodeType.Document:var qe=!1,yt=!1;try{for(var Ct=l($._children),Bt=Ct.next();!Bt.done;Bt=Ct.next())switch(Bt.value._nodeType){case p.NodeType.ProcessingInstruction:case p.NodeType.Comment:break;case p.NodeType.DocumentType:if(qe||yt)return!1;qe=!0;break;case p.NodeType.Element:if(yt)return!1;yt=!0;break;default:return!1}}catch(on){Y={error:on}}finally{try{Bt&&!Bt.done&&(ie=Ct.return)&&ie.call(Ct)}finally{if(Y)throw Y.error}}break;case p.NodeType.DocumentFragment:case p.NodeType.Element:try{for(var fn=l($._children),Fn=fn.next();!Fn.done;Fn=fn.next())switch(Fn.value._nodeType){case p.NodeType.Element:case p.NodeType.Text:case p.NodeType.ProcessingInstruction:case p.NodeType.CData:case p.NodeType.Comment:break;default:return!1}}catch(on){fe={error:on}}finally{try{Fn&&!Fn.done&&(ve=fn.return)&&ve.call(fn)}finally{if(fe)throw fe.error}}break;case p.NodeType.DocumentType:case p.NodeType.Text:case p.NodeType.ProcessingInstruction:case p.NodeType.CData:case p.NodeType.Comment:return!$.hasChildNodes()}try{for(var Sn=l($._children),Qt=Sn.next();!Qt.done;Qt=Sn.next())if(!F(Qt.value))return!1}catch(on){Ce={error:on}}finally{try{Qt&&!Qt.done&&(be=Sn.return)&&be.call(Sn)}finally{if(Ce)throw Ce.error}}return!0},"e"),n.tree_nodeLength=W,n.tree_isEmpty=function(F){return W(F)===0},n.tree_rootNode=V,n.tree_isDescendantOf=function(F,$,Y,ie){Y===void 0&&(Y=!1),ie===void 0&&(ie=!1);for(var fe=T(F,Y,ie);fe!==null;){if(fe===$)return!0;fe=E(F,fe,Y,ie)}return!1},n.tree_isAncestorOf=B,n.tree_isHostIncludingAncestorOf=e(function F($,Y,ie){if(ie===void 0&&(ie=!1),B($,Y,ie))return!0;var fe=V($);return!(!u.Guard.isDocumentFragmentNode(fe)||fe._host===null||!F(fe._host,Y,ie))},"e"),n.tree_isSiblingOf=function(F,$,Y){return Y===void 0&&(Y=!1),F!==$?F._parent!==null&&F._parent===$._parent:!!Y},n.tree_isPreceding=function(F,$){var Y=k(F),ie=k($);return Y!==-1&&ie!==-1&&V(F)===V($)&&ie<Y},n.tree_isFollowing=function(F,$){var Y=k(F),ie=k($);return Y!==-1&&ie!==-1&&V(F)===V($)&&ie>Y},n.tree_isParentOf=function(F,$){return F._parent===$},n.tree_isChildOf=function(F,$){return $._parent===F},n.tree_previousSibling=function(F){return F._previousSibling},n.tree_nextSibling=function(F){return F._nextSibling},n.tree_firstChild=function(F){return F._firstChild},n.tree_lastChild=function(F){return F._lastChild},n.tree_treePosition=k,n.tree_index=function(F){for(var $=0;F._previousSibling!==null;)$++,F=F._previousSibling;return $},n.tree_retarget=function(F,$){for(;;){if(!F||!u.Guard.isNode(F))return F;var Y=V(F);if(!u.Guard.isShadowRoot(Y)||$&&u.Guard.isNode($)&&B(Y,$,!0,!0))return F;F=Y.host}}},function(i,n,o){var l=o(13);i.exports=function(u){if(!l(u))throw TypeError(String(u)+" is not an object");return u}},function(i,n,o){"use strict";var l=o(24),u=o(130),p=o(49),h=o(43),v=o(88),T=h.set,E=h.getterFor("Array Iterator");i.exports=v(Array,"Array",function(D,C){T(this,{type:"Array Iterator",target:l(D),index:0,kind:C})},function(){var D=E(this),C=D.target,w=D.kind,W=D.index++;return!C||W>=C.length?(D.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:W,done:!1}:w=="values"?{value:C[W],done:!1}:{value:[W,C[W]],done:!1}},"values"),p.Arguments=p.Array,u("keys"),u("values"),u("entries")},function(i,n,o){var l=o(90),u=o(25),p=o(202);l||u(Object.prototype,"toString",p,{unsafe:!0})},function(i,n,o){var l=o(16),u=o(15),p=o(40);i.exports=l?function(h,v,T){return u.f(h,v,p(1,T))}:function(h,v,T){return h[v]=T,h}},function(i,n,o){"use strict";var l=o(137).charAt,u=o(43),p=o(88),h=u.set,v=u.getterFor("String Iterator");p(String,"String",function(T){h(this,{type:"String Iterator",string:String(T),index:0})},function(){var T,E=v(this),D=E.string,C=E.index;return C>=D.length?{value:void 0,done:!0}:(T=l(D,C),E.index+=T.length,{value:T,done:!1})})},function(i,n,o){var l=o(11),u=o(203),p=o(19),h=o(21),v=o(5),T=v("iterator"),E=v("toStringTag"),D=p.values;for(var C in u){var w=l[C],W=w&&w.prototype;if(W){if(W[T]!==D)try{h(W,T,D)}catch{W[T]=D}if(W[E]||h(W,E,C),u[C]){for(var V in p)if(W[V]!==p[V])try{h(W,V,p[V])}catch{W[V]=p[V]}}}}},function(i,n,o){var l=o(41),u=o(35);i.exports=function(p){return l(u(p))}},function(i,n,o){var l=o(11),u=o(21),p=o(14),h=o(80),v=o(117),T=o(43),E=T.get,D=T.enforce,C=String(String).split("String");(i.exports=function(w,W,V,B){var k=!!B&&!!B.unsafe,F=!!B&&!!B.enumerable,$=!!B&&!!B.noTargetGet;typeof V=="function"&&(typeof W!="string"||p(V,"name")||u(V,"name",W),D(V).source=C.join(typeof W=="string"?W:"")),w!==l?(k?!$&&w[W]&&(F=!0):delete w[W],F?w[W]=V:u(w,W,V)):F?w[W]=V:h(W,V)})(Function.prototype,"toString",function(){return typeof this=="function"&&E(this).source||v(this)})},function(i,n,o){var l=o(47),u=Math.min;i.exports=function(p){return p>0?u(l(p),9007199254740991):0}},function(i,n,o){var l=o(35);i.exports=function(u){return Object(l(u))}},function(i,n,o){var l=o(16),u=o(8),p=o(14),h=Object.defineProperty,v={},T=e(function(E){throw E},"u");i.exports=function(E,D){if(p(v,E))return v[E];D||(D={});var C=[][E],w=!!p(D,"ACCESSORS")&&D.ACCESSORS,W=p(D,0)?D[0]:T,V=p(D,1)?D[1]:void 0;return v[E]=!!C&&!u(function(){if(w&&!l)return!0;var B={length:-1};w?h(B,1,{enumerable:!0,get:T}):B[1]=1,C.call(B,W,V)})}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(148),u=o(149),p=o(151),h=o(98),v=o(153),T=o(154),E=o(155),D=o(99),C=o(100),w=o(156),W=o(157),V=o(101),B=o(158),k=o(159),F=o(160),$=o(161),Y=o(162),ie=o(163),fe=o(164),ve=o(165),Ce=o(166),be=o(167),qe=o(168),yt=o(169),Ct=o(170);n.create_domImplementation=function(Bt){return l.DOMImplementationImpl._create(Bt)},n.create_window=function(){return u.WindowImpl._create()},n.create_xmlDocument=function(){return new p.XMLDocumentImpl},n.create_document=function(){return new h.DocumentImpl},n.create_abortController=function(){return new v.AbortControllerImpl},n.create_abortSignal=function(){return T.AbortSignalImpl._create()},n.create_documentType=function(Bt,fn,Fn,Sn){return E.DocumentTypeImpl._create(Bt,fn,Fn,Sn)},n.create_element=function(Bt,fn,Fn,Sn){return D.ElementImpl._create(Bt,fn,Fn,Sn)},n.create_htmlElement=function(Bt,fn,Fn,Sn){return D.ElementImpl._create(Bt,fn,Fn,Sn)},n.create_htmlUnknownElement=function(Bt,fn,Fn,Sn){return D.ElementImpl._create(Bt,fn,Fn,Sn)},n.create_documentFragment=function(Bt){return C.DocumentFragmentImpl._create(Bt)},n.create_shadowRoot=function(Bt,fn){return w.ShadowRootImpl._create(Bt,fn)},n.create_attr=function(Bt,fn){return W.AttrImpl._create(Bt,fn)},n.create_text=function(Bt,fn){return V.TextImpl._create(Bt,fn)},n.create_cdataSection=function(Bt,fn){return B.CDATASectionImpl._create(Bt,fn)},n.create_comment=function(Bt,fn){return k.CommentImpl._create(Bt,fn)},n.create_processingInstruction=function(Bt,fn,Fn){return F.ProcessingInstructionImpl._create(Bt,fn,Fn)},n.create_htmlCollection=function(Bt,fn){return fn===void 0&&(fn=e(function(){return!0},"t")),$.HTMLCollectionImpl._create(Bt,fn)},n.create_nodeList=function(Bt){return Y.NodeListImpl._create(Bt)},n.create_nodeListStatic=function(Bt,fn){return ie.NodeListStaticImpl._create(Bt,fn)},n.create_namedNodeMap=function(Bt){return fe.NamedNodeMapImpl._create(Bt)},n.create_range=function(Bt,fn){return ve.RangeImpl._create(Bt,fn)},n.create_nodeIterator=function(Bt,fn,Fn){return Ce.NodeIteratorImpl._create(Bt,fn,Fn)},n.create_treeWalker=function(Bt,fn){return be.TreeWalkerImpl._create(Bt,fn)},n.create_nodeFilter=function(){return qe.NodeFilterImpl._create()},n.create_mutationRecord=function(Bt,fn,Fn,Sn,Qt,on,It,Kt,ht){return yt.MutationRecordImpl._create(Bt,fn,Fn,Sn,Qt,on,It,Kt,ht)},n.create_domTokenList=function(Bt,fn){return Ct.DOMTokenListImpl._create(Bt,fn)}},function(i,n,o){"use strict";var l=this&&this.__values||function(W){var V=typeof Symbol=="function"&&Symbol.iterator,B=V&&W[V],k=0;if(B)return B.call(W);if(W&&typeof W.length=="number")return{next:e(function(){return W&&k>=W.length&&(W=void 0),{value:W&&W[k++],done:!W}},"next")};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(17),h=o(3),v=o(72),T=new Map;function E(W,V){if(V!==W._root&&p.tree_isAncestorOf(W._reference,V,!0)){if(W._pointerBeforeReference)for(;;){var B=p.tree_getFollowingNode(W._root,V);if(B!==null&&p.tree_isDescendantOf(W._root,B,!0)&&!p.tree_isDescendantOf(V,B,!0))return void(W._reference=B);if(B===null)return void(W._pointerBeforeReference=!1)}if(V._previousSibling===null)V._parent!==null&&(W._reference=V._parent);else{for(var k=V._previousSibling,F=p.tree_getFirstDescendantNode(V._previousSibling,!0,!1);F!==null;)F!==null&&(k=F),F=p.tree_getNextDescendantNode(V._previousSibling,F,!0,!1);W._reference=k}}}e(E,"l");function D(W,V,B,k,F){if(h.Guard.isSlot(W)&&V==="name"&&F===null){if(k===B||k===null&&B===""||k===""&&B===null)return;W._name=k===null||k===""?"":k,v.shadowTree_assignSlotablesForATree(p.tree_rootNode(W))}}e(D,"c");function C(W,V,B,k,F){if(h.Guard.isSlotable(W)&&V==="slot"&&F===null){if(k===B||k===null&&B===""||k===""&&B===null)return;W._name=k===null||k===""?"":k,v.shadowTree_isAssigned(W)&&v.shadowTree_assignSlotables(W._assignedSlot),v.shadowTree_assignASlot(W)}}e(C,"h");function w(W,V,B,k){V==="id"&&k===null&&(W._uniqueIdentifier=B||void 0)}e(w,"p"),n.dom_runRemovingSteps=function(W,V){},n.dom_runCloningSteps=function(W,V,B,k){},n.dom_runAdoptingSteps=function(W,V){},n.dom_runAttributeChangeSteps=function(W,V,B,k,F){var $,Y;u.dom.features.slots&&(C.call(W,W,V,B,k,F),D.call(W,W,V,B,k,F)),w.call(W,W,V,k,F);try{for(var ie=l(W._attributeChangeSteps),fe=ie.next();!fe.done;fe=ie.next())fe.value.call(W,W,V,B,k,F)}catch(ve){$={error:ve}}finally{try{fe&&!fe.done&&(Y=ie.return)&&Y.call(ie)}finally{if($)throw $.error}}},n.dom_runInsertionSteps=function(W){},n.dom_runNodeIteratorPreRemovingSteps=function(W,V){E.call(W,W,V)},n.dom_hasSupportedTokens=function(W){return T.has(W)},n.dom_getSupportedTokens=function(W){return T.get(W)||new Set},n.dom_runEventConstructingSteps=function(W){},n.dom_runChildTextContentChangeSteps=function(W){}},function(i,n,o){"use strict";var l=o(4),u=o(11),p=o(46),h=o(44),v=o(16),T=o(86),E=o(124),D=o(8),C=o(14),w=o(59),W=o(13),V=o(18),B=o(27),k=o(24),F=o(56),$=o(40),Y=o(60),ie=o(61),fe=o(82),ve=o(190),Ce=o(85),be=o(55),qe=o(15),yt=o(79),Ct=o(21),Bt=o(25),fn=o(81),Fn=o(57),Sn=o(45),Qt=o(58),on=o(5),It=o(125),Kt=o(126),ht=o(62),wn=o(43),Gn=o(36).forEach,_n=Fn("hidden"),Bn=on("toPrimitive"),cr=wn.set,Yt=wn.getterFor("Symbol"),Ft=Object.prototype,pt=u.Symbol,me=p("JSON","stringify"),zt=be.f,Tt=qe.f,tn=ve.f,En=yt.f,Kn=fn("symbols"),Gr=fn("op-symbols"),Ir=fn("string-to-symbol-registry"),yn=fn("symbol-to-string-registry"),ga=fn("wks"),so=u.QObject,Pl=!so||!so.prototype||!so.prototype.findChild,Du=v&&D(function(){return Y(Tt({},"a",{get:e(function(){return Tt(this,"a",{value:7}).a},"get")})).a!=7})?function(jn,Er,or){var br=zt(Ft,Er);br&&delete Ft[Er],Tt(jn,Er,or),br&&jn!==Ft&&Tt(Ft,Er,br)}:Tt,Od=e(function(jn,Er){var or=Kn[jn]=Y(pt.prototype);return cr(or,{type:"Symbol",tag:jn,description:Er}),v||(or.description=Er),or},"ie"),_s=E?function(jn){return typeof jn=="symbol"}:function(jn){return Object(jn)instanceof pt},Ul=e(function(jn,Er,or){jn===Ft&&Ul(Gr,Er,or),V(jn);var br=F(Er,!0);return V(or),C(Kn,br)?(or.enumerable?(C(jn,_n)&&jn[_n][br]&&(jn[_n][br]=!1),or=Y(or,{enumerable:$(0,!1)})):(C(jn,_n)||Tt(jn,_n,$(1,{})),jn[_n][br]=!0),Du(jn,br,or)):Tt(jn,br,or)},"ae"),ur=e(function(jn,Er){V(jn);var or=k(Er),br=ie(or).concat(Dt(or));return Gn(br,function(hs){v&&!Mn.call(or,hs)||Ul(jn,hs,or[hs])}),jn},"se"),Mn=e(function(jn){var Er=F(jn,!0),or=En.call(this,Er);return!(this===Ft&&C(Kn,Er)&&!C(Gr,Er))&&(!(or||!C(this,Er)||!C(Kn,Er)||C(this,_n)&&this[_n][Er])||or)},"ue"),Ot=e(function(jn,Er){var or=k(jn),br=F(Er,!0);if(or!==Ft||!C(Kn,br)||C(Gr,br)){var hs=zt(or,br);return!hs||!C(Kn,br)||C(or,_n)&&or[_n][br]||(hs.enumerable=!0),hs}},"le"),Ut=e(function(jn){var Er=tn(k(jn)),or=[];return Gn(Er,function(br){C(Kn,br)||C(Sn,br)||or.push(br)}),or},"ce"),Dt=e(function(jn){var Er=jn===Ft,or=tn(Er?Gr:k(jn)),br=[];return Gn(or,function(hs){!C(Kn,hs)||Er&&!C(Ft,hs)||br.push(Kn[hs])}),br},"he");T||(Bt((pt=e(function(){if(this instanceof pt)throw TypeError("Symbol is not a constructor");var jn=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,Er=Qt(jn),or=e(function(br){this===Ft&&or.call(Gr,br),C(this,_n)&&C(this[_n],Er)&&(this[_n][Er]=!1),Du(this,Er,$(1,br))},"r");return v&&Pl&&Du(Ft,Er,{configurable:!0,set:or}),Od(Er,jn)},"q")).prototype,"toString",function(){return Yt(this).tag}),Bt(pt,"withoutSetter",function(jn){return Od(Qt(jn),jn)}),yt.f=Mn,qe.f=Ul,be.f=Ot,fe.f=ve.f=Ut,Ce.f=Dt,It.f=function(jn){return Od(on(jn),jn)},v&&(Tt(pt.prototype,"description",{configurable:!0,get:e(function(){return Yt(this).description},"get")}),h||Bt(Ft,"propertyIsEnumerable",Mn,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!T,sham:!T},{Symbol:pt}),Gn(ie(ga),function(jn){Kt(jn)}),l({target:"Symbol",stat:!0,forced:!T},{for:e(function(jn){var Er=String(jn);if(C(Ir,Er))return Ir[Er];var or=pt(Er);return Ir[Er]=or,yn[or]=Er,or},"for"),keyFor:e(function(jn){if(!_s(jn))throw TypeError(jn+" is not a symbol");if(C(yn,jn))return yn[jn]},"keyFor"),useSetter:e(function(){Pl=!0},"useSetter"),useSimple:e(function(){Pl=!1},"useSimple")}),l({target:"Object",stat:!0,forced:!T,sham:!v},{create:e(function(jn,Er){return Er===void 0?Y(jn):ur(Y(jn),Er)},"create"),defineProperty:Ul,defineProperties:ur,getOwnPropertyDescriptor:Ot}),l({target:"Object",stat:!0,forced:!T},{getOwnPropertyNames:Ut,getOwnPropertySymbols:Dt}),l({target:"Object",stat:!0,forced:D(function(){Ce.f(1)})},{getOwnPropertySymbols:e(function(jn){return Ce.f(B(jn))},"getOwnPropertySymbols")}),me&&l({target:"JSON",stat:!0,forced:!T||D(function(){var jn=pt();return me([jn])!="[null]"||me({a:jn})!="{}"||me(Object(jn))!="{}"})},{stringify:e(function(jn,Er,or){for(var br,hs=[jn],ws=1;arguments.length>ws;)hs.push(arguments[ws++]);if(br=Er,(W(Er)||jn!==void 0)&&!_s(jn))return w(Er)||(Er=e(function(Ii,ss){if(typeof br=="function"&&(ss=br.call(this,Ii,ss)),!_s(ss))return ss},"t")),hs[1]=Er,me.apply(null,hs)},"stringify")}),pt.prototype[Bn]||Ct(pt.prototype,Bn,pt.prototype.valueOf),ht(pt,"Symbol"),Sn[_n]=!0},function(i,n,o){"use strict";var l=o(4),u=o(16),p=o(11),h=o(14),v=o(13),T=o(15).f,E=o(119),D=p.Symbol;if(u&&typeof D=="function"&&(!("description"in D.prototype)||D().description!==void 0)){var C={},w=e(function(){var F=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),$=this instanceof w?new D(F):F===void 0?D():D(F);return F===""&&(C[$]=!0),$},"p");E(w,D);var W=w.prototype=D.prototype;W.constructor=w;var V=W.toString,B=String(D("test"))=="Symbol(test)",k=/^Symbol\((.*)\)[^)]+$/;T(W,"description",{configurable:!0,get:e(function(){var F=v(this)?this.valueOf():this,$=V.call(F);if(h(C,F))return"";var Y=B?$.slice(7,-1):$.replace(k,"$1");return Y===""?void 0:Y},"get")}),l({global:!0,forced:!0},{Symbol:w})}},function(i,n,o){o(126)("iterator")},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(B,k){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,$){F.__proto__=$}||function(F,$){for(var Y in $)$.hasOwnProperty(Y)&&(F[Y]=$[Y])})(B,k)},"n"),function(B,k){function F(){this.constructor=B}e(F,"r"),l(B,k),B.prototype=k===null?Object.create(k):(F.prototype=k.prototype,new F)}),p=this&&this.__values||function(B){var k=typeof Symbol=="function"&&Symbol.iterator,F=k&&B[k],$=0;if(F)return F.call(B);if(B&&typeof B.length=="number")return{next:e(function(){return B&&$>=B.length&&(B=void 0),{value:B&&B[$++],done:!B}},"next")};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var h=o(6),v=o(1),T=o(70),E=o(3),D=o(9),C=o(0),w=o(152),W=o(12),V=function(B){function k(){var F=B.call(this)||this;return F._parent=null,F._firstChild=null,F._lastChild=null,F._previousSibling=null,F._nextSibling=null,F}return e(k,"t"),u(k,B),Object.defineProperty(k.prototype,"_childNodes",{get:e(function(){return this.__childNodes||(this.__childNodes=C.create_nodeList(this))},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_nodeDocument",{get:e(function(){return this._nodeDocumentOverride||h.dom.window._associatedDocument},"get"),set:e(function(F){this._nodeDocumentOverride=F},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"_registeredObserverList",{get:e(function(){return this.__registeredObserverList||(this.__registeredObserverList=[])},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"nodeType",{get:e(function(){return this._nodeType},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"nodeName",{get:e(function(){return E.Guard.isElementNode(this)?this._htmlUppercasedQualifiedName:E.Guard.isAttrNode(this)?this._qualifiedName:E.Guard.isExclusiveTextNode(this)?"#text":E.Guard.isCDATASectionNode(this)?"#cdata-section":E.Guard.isProcessingInstructionNode(this)?this._target:E.Guard.isCommentNode(this)?"#comment":E.Guard.isDocumentNode(this)?"#document":E.Guard.isDocumentTypeNode(this)?this._name:E.Guard.isDocumentFragmentNode(this)?"#document-fragment":""},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"baseURI",{get:e(function(){return w.urlSerializer(this._nodeDocument._URL)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"isConnected",{get:e(function(){return E.Guard.isElementNode(this)&&C.shadowTree_isConnected(this)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"ownerDocument",{get:e(function(){return this._nodeType===v.NodeType.Document?null:this._nodeDocument},"get"),enumerable:!0,configurable:!0}),k.prototype.getRootNode=function(F){return C.tree_rootNode(this,!!F&&F.composed)},Object.defineProperty(k.prototype,"parentNode",{get:e(function(){return this._nodeType===v.NodeType.Attribute?null:this._parent},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"parentElement",{get:e(function(){return this._parent&&E.Guard.isElementNode(this._parent)?this._parent:null},"get"),enumerable:!0,configurable:!0}),k.prototype.hasChildNodes=function(){return this._firstChild!==null},Object.defineProperty(k.prototype,"childNodes",{get:e(function(){return this._childNodes},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"firstChild",{get:e(function(){return this._firstChild},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"lastChild",{get:e(function(){return this._lastChild},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"previousSibling",{get:e(function(){return this._previousSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"nextSibling",{get:e(function(){return this._nextSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"nodeValue",{get:e(function(){return E.Guard.isAttrNode(this)?this._value:E.Guard.isCharacterDataNode(this)?this._data:null},"get"),set:e(function(F){F===null&&(F=""),E.Guard.isAttrNode(this)?C.attr_setAnExistingAttributeValue(this,F):E.Guard.isCharacterDataNode(this)&&C.characterData_replaceData(this,0,this._data.length,F)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(k.prototype,"textContent",{get:e(function(){return E.Guard.isDocumentFragmentNode(this)||E.Guard.isElementNode(this)?C.text_descendantTextContent(this):E.Guard.isAttrNode(this)?this._value:E.Guard.isCharacterDataNode(this)?this._data:null},"get"),set:e(function(F){F===null&&(F=""),E.Guard.isDocumentFragmentNode(this)||E.Guard.isElementNode(this)?C.node_stringReplaceAll(F,this):E.Guard.isAttrNode(this)?C.attr_setAnExistingAttributeValue(this,F):E.Guard.isCharacterDataNode(this)&&C.characterData_replaceData(this,0,C.tree_nodeLength(this),F)},"set"),enumerable:!0,configurable:!0}),k.prototype.normalize=function(){for(var F,$,Y,ie,fe=[],ve=C.tree_getFirstDescendantNode(this,!1,!1,function(Gn){return E.Guard.isExclusiveTextNode(Gn)});ve!==null;)fe.push(ve),ve=C.tree_getNextDescendantNode(this,ve,!1,!1,function(Gn){return E.Guard.isExclusiveTextNode(Gn)});for(var Ce=0;Ce<fe.length;Ce++){var be=fe[Ce];if(be._parent!==null){var qe=C.tree_nodeLength(be);if(qe!==0){var yt=[],Ct="";try{for(var Bt=(F=void 0,p(C.text_contiguousExclusiveTextNodes(be))),fn=Bt.next();!fn.done;fn=Bt.next()){var Fn=fn.value;yt.push(Fn),Ct+=Fn._data}}catch(Gn){F={error:Gn}}finally{try{fn&&!fn.done&&($=Bt.return)&&$.call(Bt)}finally{if(F)throw F.error}}if(C.characterData_replaceData(be,qe,0,Ct),h.dom.rangeList.size!==0)for(var Sn=be._nextSibling;Sn!==null&&E.Guard.isExclusiveTextNode(Sn);){var Qt=Sn,on=C.tree_index(Qt);try{for(var It=(Y=void 0,p(h.dom.rangeList)),Kt=It.next();!Kt.done;Kt=It.next()){var ht=Kt.value;ht._start[0]===Qt&&(ht._start[0]=be,ht._start[1]+=qe),ht._end[0]===Qt&&(ht._end[0]=be,ht._end[1]+=qe),ht._start[0]===Qt._parent&&ht._start[1]===on&&(ht._start[0]=be,ht._start[1]=qe),ht._end[0]===Qt._parent&&ht._end[1]===on&&(ht._end[0]=be,ht._end[1]=qe)}}catch(Gn){Y={error:Gn}}finally{try{Kt&&!Kt.done&&(ie=It.return)&&ie.call(It)}finally{if(Y)throw Y.error}}qe+=C.tree_nodeLength(Sn),Sn=Sn._nextSibling}for(var wn=0;wn<yt.length;wn++)(Fn=yt[wn])._parent!==null&&C.mutation_remove(Fn,Fn._parent)}else C.mutation_remove(be,be._parent)}}},k.prototype.cloneNode=function(F){if(F===void 0&&(F=!1),E.Guard.isShadowRoot(this))throw new D.NotSupportedError;return C.node_clone(this,null,F)},k.prototype.isEqualNode=function(F){return F===void 0&&(F=null),F!==null&&C.node_equals(this,F)},k.prototype.isSameNode=function(F){return F===void 0&&(F=null),this===F},k.prototype.compareDocumentPosition=function(F){if(F===this)return 0;var $=F,Y=this,ie=null,fe=null;if(E.Guard.isAttrNode($)&&($=(ie=$)._element),E.Guard.isAttrNode(Y)&&(Y=(fe=Y)._element,ie&&$&&$===Y))for(var ve=0;ve<Y._attributeList.length;ve++){var Ce=Y._attributeList[ve];if(C.node_equals(Ce,ie))return v.Position.ImplementationSpecific|v.Position.Preceding;if(C.node_equals(Ce,fe))return v.Position.ImplementationSpecific|v.Position.Following}return $===null||Y===null||C.tree_rootNode($)!==C.tree_rootNode(Y)?v.Position.Disconnected|v.Position.ImplementationSpecific|(h.dom.compareCache.check(this,F)?v.Position.Preceding:v.Position.Following):!ie&&C.tree_isAncestorOf(Y,$)||fe&&$===Y?v.Position.Contains|v.Position.Preceding:!fe&&C.tree_isDescendantOf(Y,$)||ie&&$===Y?v.Position.ContainedBy|v.Position.Following:C.tree_isPreceding(Y,$)?v.Position.Preceding:v.Position.Following},k.prototype.contains=function(F){return F!==null&&C.tree_isDescendantOf(this,F,!0)},k.prototype.lookupPrefix=function(F){return F?E.Guard.isElementNode(this)?C.node_locateANamespacePrefix(this,F):E.Guard.isDocumentNode(this)?this.documentElement===null?null:C.node_locateANamespacePrefix(this.documentElement,F):E.Guard.isDocumentTypeNode(this)||E.Guard.isDocumentFragmentNode(this)?null:E.Guard.isAttrNode(this)?this._element===null?null:C.node_locateANamespacePrefix(this._element,F):this._parent!==null&&E.Guard.isElementNode(this._parent)?C.node_locateANamespacePrefix(this._parent,F):null:null},k.prototype.lookupNamespaceURI=function(F){return C.node_locateANamespace(this,F||null)},k.prototype.isDefaultNamespace=function(F){return F||(F=null),C.node_locateANamespace(this,null)===F},k.prototype.insertBefore=function(F,$){return C.mutation_preInsert(F,this,$)},k.prototype.appendChild=function(F){return C.mutation_append(F,this)},k.prototype.replaceChild=function(F,$){return C.mutation_replace($,F,this)},k.prototype.removeChild=function(F){return C.mutation_preRemove(F,this)},k.prototype._getTheParent=function(F){return E.Guard.isSlotable(this)&&C.shadowTree_isAssigned(this)?this._assignedSlot:this._parent},k.ELEMENT_NODE=1,k.ATTRIBUTE_NODE=2,k.TEXT_NODE=3,k.CDATA_SECTION_NODE=4,k.ENTITY_REFERENCE_NODE=5,k.ENTITY_NODE=6,k.PROCESSING_INSTRUCTION_NODE=7,k.COMMENT_NODE=8,k.DOCUMENT_NODE=9,k.DOCUMENT_TYPE_NODE=10,k.DOCUMENT_FRAGMENT_NODE=11,k.NOTATION_NODE=12,k.DOCUMENT_POSITION_DISCONNECTED=1,k.DOCUMENT_POSITION_PRECEDING=2,k.DOCUMENT_POSITION_FOLLOWING=4,k.DOCUMENT_POSITION_CONTAINS=8,k.DOCUMENT_POSITION_CONTAINED_BY=16,k.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,k}(T.EventTargetImpl);n.NodeImpl=V,V.prototype._children=new E.EmptySet,W.idl_defineConst(V.prototype,"ELEMENT_NODE",1),W.idl_defineConst(V.prototype,"ATTRIBUTE_NODE",2),W.idl_defineConst(V.prototype,"TEXT_NODE",3),W.idl_defineConst(V.prototype,"CDATA_SECTION_NODE",4),W.idl_defineConst(V.prototype,"ENTITY_REFERENCE_NODE",5),W.idl_defineConst(V.prototype,"ENTITY_NODE",6),W.idl_defineConst(V.prototype,"PROCESSING_INSTRUCTION_NODE",7),W.idl_defineConst(V.prototype,"COMMENT_NODE",8),W.idl_defineConst(V.prototype,"DOCUMENT_NODE",9),W.idl_defineConst(V.prototype,"DOCUMENT_TYPE_NODE",10),W.idl_defineConst(V.prototype,"DOCUMENT_FRAGMENT_NODE",11),W.idl_defineConst(V.prototype,"NOTATION_NODE",12),W.idl_defineConst(V.prototype,"DOCUMENT_POSITION_DISCONNECTED",1),W.idl_defineConst(V.prototype,"DOCUMENT_POSITION_PRECEDING",2),W.idl_defineConst(V.prototype,"DOCUMENT_POSITION_FOLLOWING",4),W.idl_defineConst(V.prototype,"DOCUMENT_POSITION_CONTAINS",8),W.idl_defineConst(V.prototype,"DOCUMENT_POSITION_CONTAINED_BY",16),W.idl_defineConst(V.prototype,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",32)},function(i,n){i.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(i,n,o){var l=o(87),u=o(41),p=o(27),h=o(26),v=o(128),T=[].push,E=e(function(D){var C=D==1,w=D==2,W=D==3,V=D==4,B=D==6,k=D==5||B;return function(F,$,Y,ie){for(var fe,ve,Ce=p(F),be=u(Ce),qe=l($,Y,3),yt=h(be.length),Ct=0,Bt=ie||v,fn=C?Bt(F,yt):w?Bt(F,0):void 0;yt>Ct;Ct++)if((k||Ct in be)&&(ve=qe(fe=be[Ct],Ct,Ce),D)){if(C)fn[Ct]=ve;else if(ve)switch(D){case 3:return!0;case 5:return fe;case 6:return Ct;case 2:T.call(fn,fe)}else if(V)return!1}return B?-1:W||V?V:fn}},"l");i.exports={forEach:E(0),map:E(1),filter:E(2),some:E(3),every:E(4),find:E(5),findIndex:E(6)}},function(i,n,o){"use strict";var l=this&&this.__values||function(Ce){var be=typeof Symbol=="function"&&Symbol.iterator,qe=be&&Ce[be],yt=0;if(qe)return qe.call(Ce);if(Ce&&typeof Ce.length=="number")return{next:e(function(){return Ce&&yt>=Ce.length&&(Ce=void 0),{value:Ce&&Ce[yt++],done:!Ce}},"next")};throw new TypeError(be?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(Ce,be){var qe=typeof Symbol=="function"&&Ce[Symbol.iterator];if(!qe)return Ce;var yt,Ct,Bt=qe.call(Ce),fn=[];try{for(;(be===void 0||be-- >0)&&!(yt=Bt.next()).done;)fn.push(yt.value)}catch(Fn){Ct={error:Fn}}finally{try{yt&&!yt.done&&(qe=Bt.return)&&qe.call(Bt)}finally{if(Ct)throw Ct.error}}return fn},p=this&&this.__spread||function(){for(var Ce=[],be=0;be<arguments.length;be++)Ce=Ce.concat(u(arguments[be]));return Ce};Object.defineProperty(n,"__esModule",{value:!0});var h=o(6),v=o(9),T=o(1),E=o(3),D=o(2),C=o(7),w=o(73),W=o(17),V=o(172),B=o(72),k=o(51),F=o(30),$=o(106);function Y(Ce,be,qe){var yt,Ct,Bt,fn,Fn,Sn,Qt,on,It=be._nodeType,Kt=Ce._nodeType,ht=qe?qe._nodeType:null;if(It!==T.NodeType.Document&&It!==T.NodeType.DocumentFragment&&It!==T.NodeType.Element)throw new v.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is "+be.nodeName+".");if(W.tree_isHostIncludingAncestorOf(be,Ce,!0))throw new v.HierarchyRequestError("The node to be inserted cannot be an inclusive ancestor of parent node. Node is "+Ce.nodeName+", parent node is "+be.nodeName+".");if(qe!==null&&qe._parent!==be)throw new v.NotFoundError("The reference child node cannot be found under parent node. Child node is "+qe.nodeName+", parent node is "+be.nodeName+".");if(Kt!==T.NodeType.DocumentFragment&&Kt!==T.NodeType.DocumentType&&Kt!==T.NodeType.Element&&Kt!==T.NodeType.Text&&Kt!==T.NodeType.ProcessingInstruction&&Kt!==T.NodeType.CData&&Kt!==T.NodeType.Comment)throw new v.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is "+Ce.nodeName+".");if(Kt===T.NodeType.Text&&It===T.NodeType.Document)throw new v.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is "+Ce.nodeName+".");if(Kt===T.NodeType.DocumentType&&It!==T.NodeType.Document)throw new v.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is "+be.nodeName+".");if(It===T.NodeType.Document){if(Kt===T.NodeType.DocumentFragment){var wn=0;try{for(var Gn=l(Ce._children),_n=Gn.next();!_n.done;_n=Gn.next()){var Bn=_n.value;if(Bn._nodeType===T.NodeType.Element)wn++;else if(Bn._nodeType===T.NodeType.Text)throw new v.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is "+Bn.nodeName+".")}}catch(En){yt={error:En}}finally{try{_n&&!_n.done&&(Ct=Gn.return)&&Ct.call(Gn)}finally{if(yt)throw yt.error}}if(wn>1)throw new v.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has "+wn+" element nodes.");if(wn===1){try{for(var cr=l(be._children),Yt=cr.next();!Yt.done;Yt=cr.next())if(Yt.value._nodeType===T.NodeType.Element)throw new v.HierarchyRequestError("The document node already has a document element node.")}catch(En){Bt={error:En}}finally{try{Yt&&!Yt.done&&(fn=cr.return)&&fn.call(cr)}finally{if(Bt)throw Bt.error}}if(qe){if(ht===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Cannot insert an element node before a document type node.");for(var Ft=qe._nextSibling;Ft;){if(Ft._nodeType===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Cannot insert an element node before a document type node.");Ft=Ft._nextSibling}}}}else if(Kt===T.NodeType.Element){try{for(var pt=l(be._children),me=pt.next();!me.done;me=pt.next())if(me.value._nodeType===T.NodeType.Element)throw new v.HierarchyRequestError("Document already has a document element node. Node is "+Ce.nodeName+".")}catch(En){Fn={error:En}}finally{try{me&&!me.done&&(Sn=pt.return)&&Sn.call(pt)}finally{if(Fn)throw Fn.error}}if(qe){if(ht===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+Ce.nodeName+".");for(Ft=qe._nextSibling;Ft;){if(Ft._nodeType===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+Ce.nodeName+".");Ft=Ft._nextSibling}}}else if(Kt===T.NodeType.DocumentType){try{for(var zt=l(be._children),Tt=zt.next();!Tt.done;Tt=zt.next())if(Tt.value._nodeType===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Document already has a document type node. Node is "+Ce.nodeName+".")}catch(En){Qt={error:En}}finally{try{Tt&&!Tt.done&&(on=zt.return)&&on.call(zt)}finally{if(Qt)throw Qt.error}}if(qe)for(var tn=qe._previousSibling;tn;){if(tn._nodeType===T.NodeType.Element)throw new v.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+Ce.nodeName+".");tn=tn._previousSibling}else for(tn=be._firstChild;tn;){if(tn._nodeType===T.NodeType.Element)throw new v.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+Ce.nodeName+".");tn=tn._nextSibling}}}}e(Y,"g");function ie(Ce,be,qe){Y(Ce,be,qe);var yt=qe;return yt===Ce&&(yt=Ce._nextSibling),$.document_adopt(Ce,be._nodeDocument),fe(Ce,be,yt),Ce}e(ie,"b");function fe(Ce,be,qe,yt){var Ct,Bt;if(qe!==null||Ce._nodeType===T.NodeType.DocumentFragment){var fn=Ce._nodeType===T.NodeType.DocumentFragment?Ce._children.size:1;if(qe!==null&&h.dom.rangeList.size!==0){var Fn=W.tree_index(qe);try{for(var Sn=l(h.dom.rangeList),Qt=Sn.next();!Qt.done;Qt=Sn.next()){var on=Qt.value;on._start[0]===be&&on._start[1]>Fn&&(on._start[1]+=fn),on._end[0]===be&&on._end[1]>Fn&&(on._end[1]+=fn)}}catch(Yt){Ct={error:Yt}}finally{try{Qt&&!Qt.done&&(Bt=Sn.return)&&Bt.call(Sn)}finally{if(Ct)throw Ct.error}}}var It=Ce._nodeType===T.NodeType.DocumentFragment?new(Array.bind.apply(Array,p([void 0],Ce._children))):[Ce];if(Ce._nodeType===T.NodeType.DocumentFragment)for(;Ce._firstChild;)ve(Ce._firstChild,Ce,!0);h.dom.features.mutationObservers&&Ce._nodeType===T.NodeType.DocumentFragment&&k.observer_queueTreeMutationRecord(Ce,[],It,null,null);for(var Kt=qe?qe._previousSibling:be._lastChild,ht=qe===null?-1:W.tree_index(qe),wn=0;wn<It.length;wn++){var Gn=It[wn];if(E.Guard.isElementNode(Gn)&&(E.Guard.isDocumentNode(be)&&(be._documentElement=Gn),Gn._nodeDocument._hasNamespaces||Gn._namespace===null&&Gn._namespacePrefix===null||(Gn._nodeDocument._hasNamespaces=!0)),Gn._parent=be,qe===null?C.set.append(be._children,Gn):(C.set.insert(be._children,Gn,ht),ht++),be._firstChild===null)Gn._previousSibling=null,Gn._nextSibling=null,be._firstChild=Gn,be._lastChild=Gn;else{var _n=qe?qe._previousSibling:be._lastChild,Bn=qe||null;Gn._previousSibling=_n,Gn._nextSibling=Bn,_n&&(_n._nextSibling=Gn),Bn&&(Bn._previousSibling=Gn),_n||(be._firstChild=Gn),Bn||(be._lastChild=Gn)}h.dom.features.slots&&be._shadowRoot!==null&&E.Guard.isSlotable(Gn)&&B.shadowTree_assignASlot(Gn),h.dom.features.steps&&E.Guard.isTextNode(Gn)&&F.dom_runChildTextContentChangeSteps(be),h.dom.features.slots&&E.Guard.isShadowRoot(W.tree_rootNode(be))&&E.Guard.isSlot(be)&&D.isEmpty(be._assignedNodes)&&B.shadowTree_signalASlotChange(be),h.dom.features.slots&&B.shadowTree_assignSlotablesForATree(W.tree_rootNode(Gn));for(var cr=W.tree_getFirstDescendantNode(Gn,!0,!0);cr!==null;)h.dom.features.steps&&F.dom_runInsertionSteps(cr),h.dom.features.customElements&&E.Guard.isElementNode(cr)&&B.shadowTree_isConnected(cr)&&(E.Guard.isCustomElementNode(cr)?w.customElement_enqueueACustomElementCallbackReaction(cr,"connectedCallback",[]):w.customElement_tryToUpgrade(cr)),cr=W.tree_getNextDescendantNode(Gn,cr,!0,!0)}h.dom.features.mutationObservers&&(yt||k.observer_queueTreeMutationRecord(be,It,[],Kt,qe))}else(function(Yt,Ft,pt){var me=Ft._lastChild;if(E.Guard.isElementNode(Yt)&&(E.Guard.isDocumentNode(Ft)&&(Ft._documentElement=Yt),Yt._nodeDocument._hasNamespaces||Yt._namespace===null&&Yt._namespacePrefix===null||(Yt._nodeDocument._hasNamespaces=!0)),Yt._parent=Ft,Ft._children.add(Yt),Ft._firstChild===null)Yt._previousSibling=null,Yt._nextSibling=null,Ft._firstChild=Yt,Ft._lastChild=Yt;else{var zt=Ft._lastChild;Yt._previousSibling=zt,Yt._nextSibling=null,zt&&(zt._nextSibling=Yt),zt||(Ft._firstChild=Yt),Ft._lastChild=Yt}h.dom.features.slots&&Ft._shadowRoot!==null&&E.Guard.isSlotable(Yt)&&B.shadowTree_assignASlot(Yt),h.dom.features.steps&&E.Guard.isTextNode(Yt)&&F.dom_runChildTextContentChangeSteps(Ft),h.dom.features.slots&&E.Guard.isShadowRoot(W.tree_rootNode(Ft))&&E.Guard.isSlot(Ft)&&D.isEmpty(Ft._assignedNodes)&&B.shadowTree_signalASlotChange(Ft),h.dom.features.slots&&B.shadowTree_assignSlotablesForATree(W.tree_rootNode(Yt)),h.dom.features.steps&&F.dom_runInsertionSteps(Yt),h.dom.features.customElements&&E.Guard.isElementNode(Yt)&&B.shadowTree_isConnected(Yt)&&(E.Guard.isCustomElementNode(Yt)?w.customElement_enqueueACustomElementCallbackReaction(Yt,"connectedCallback",[]):w.customElement_tryToUpgrade(Yt)),h.dom.features.mutationObservers&&(pt||k.observer_queueTreeMutationRecord(Ft,[Yt],[],me,null))})(Ce,be,yt)}e(fe,"x");function ve(Ce,be,qe){var yt,Ct,Bt,fn,Fn,Sn,Qt,on;if(h.dom.rangeList.size!==0){var It=W.tree_index(Ce);try{for(var Kt=l(h.dom.rangeList),ht=Kt.next();!ht.done;ht=Kt.next()){var wn=ht.value;W.tree_isDescendantOf(Ce,wn._start[0],!0)&&(wn._start=[be,It]),W.tree_isDescendantOf(Ce,wn._end[0],!0)&&(wn._end=[be,It]),wn._start[0]===be&&wn._start[1]>It&&wn._start[1]--,wn._end[0]===be&&wn._end[1]>It&&wn._end[1]--}}catch(Ir){yt={error:Ir}}finally{try{ht&&!ht.done&&(Ct=Kt.return)&&Ct.call(Kt)}finally{if(yt)throw yt.error}}try{for(var Gn=l(h.dom.rangeList),_n=Gn.next();!_n.done;_n=Gn.next())(wn=_n.value)._start[0]===be&&wn._start[1]>It&&(wn._start[1]-=1),wn._end[0]===be&&wn._end[1]>It&&(wn._end[1]-=1)}catch(Ir){Bt={error:Ir}}finally{try{_n&&!_n.done&&(fn=Gn.return)&&fn.call(Gn)}finally{if(Bt)throw Bt.error}}}if(h.dom.features.steps)try{for(var Bn=l(V.nodeIterator_iteratorList()),cr=Bn.next();!cr.done;cr=Bn.next()){var Yt=cr.value;Yt._root._nodeDocument===Ce._nodeDocument&&F.dom_runNodeIteratorPreRemovingSteps(Yt,Ce)}}catch(Ir){Fn={error:Ir}}finally{try{cr&&!cr.done&&(Sn=Bn.return)&&Sn.call(Bn)}finally{if(Fn)throw Fn.error}}var Ft=Ce._previousSibling,pt=Ce._nextSibling;E.Guard.isDocumentNode(be)&&E.Guard.isElementNode(Ce)&&(be._documentElement=null),Ce._parent=null,be._children.delete(Ce);var me=Ce._previousSibling,zt=Ce._nextSibling;Ce._previousSibling=null,Ce._nextSibling=null,me&&(me._nextSibling=zt),zt&&(zt._previousSibling=me),me||(be._firstChild=zt),zt||(be._lastChild=me),h.dom.features.slots&&E.Guard.isSlotable(Ce)&&Ce._assignedSlot!==null&&B.shadowTree_isAssigned(Ce)&&B.shadowTree_assignSlotables(Ce._assignedSlot),h.dom.features.slots&&E.Guard.isShadowRoot(W.tree_rootNode(be))&&E.Guard.isSlot(be)&&D.isEmpty(be._assignedNodes)&&B.shadowTree_signalASlotChange(be),h.dom.features.slots&&W.tree_getFirstDescendantNode(Ce,!0,!1,function(Ir){return E.Guard.isSlot(Ir)})!==null&&(B.shadowTree_assignSlotablesForATree(W.tree_rootNode(be)),B.shadowTree_assignSlotablesForATree(Ce)),h.dom.features.steps&&F.dom_runRemovingSteps(Ce,be),h.dom.features.customElements&&E.Guard.isCustomElementNode(Ce)&&w.customElement_enqueueACustomElementCallbackReaction(Ce,"disconnectedCallback",[]);for(var Tt=W.tree_getFirstDescendantNode(Ce,!1,!0);Tt!==null;)h.dom.features.steps&&F.dom_runRemovingSteps(Tt,Ce),h.dom.features.customElements&&E.Guard.isCustomElementNode(Tt)&&w.customElement_enqueueACustomElementCallbackReaction(Tt,"disconnectedCallback",[]),Tt=W.tree_getNextDescendantNode(Ce,Tt,!1,!0);if(h.dom.features.mutationObservers)for(var tn=W.tree_getFirstAncestorNode(be,!0);tn!==null;){try{for(var En=(Qt=void 0,l(tn._registeredObserverList)),Kn=En.next();!Kn.done;Kn=En.next()){var Gr=Kn.value;Gr.options.subtree&&Ce._registeredObserverList.push({observer:Gr.observer,options:Gr.options,source:Gr})}}catch(Ir){Qt={error:Ir}}finally{try{Kn&&!Kn.done&&(on=En.return)&&on.call(En)}finally{if(Qt)throw Qt.error}}tn=W.tree_getNextAncestorNode(be,tn,!0)}h.dom.features.mutationObservers&&(qe||k.observer_queueTreeMutationRecord(be,[],[Ce],Ft,pt)),h.dom.features.steps&&E.Guard.isTextNode(Ce)&&F.dom_runChildTextContentChangeSteps(be)}e(ve,"w"),n.mutation_ensurePreInsertionValidity=Y,n.mutation_preInsert=ie,n.mutation_insert=fe,n.mutation_append=function(Ce,be){return ie(Ce,be,null)},n.mutation_replace=function(Ce,be,qe){var yt,Ct,Bt,fn,Fn,Sn,Qt,on;if(qe._nodeType!==T.NodeType.Document&&qe._nodeType!==T.NodeType.DocumentFragment&&qe._nodeType!==T.NodeType.Element)throw new v.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is "+qe.nodeName+".");if(W.tree_isHostIncludingAncestorOf(qe,be,!0))throw new v.HierarchyRequestError("The node to be inserted cannot be an ancestor of parent node. Node is "+be.nodeName+", parent node is "+qe.nodeName+".");if(Ce._parent!==qe)throw new v.NotFoundError("The reference child node cannot be found under parent node. Child node is "+Ce.nodeName+", parent node is "+qe.nodeName+".");if(be._nodeType!==T.NodeType.DocumentFragment&&be._nodeType!==T.NodeType.DocumentType&&be._nodeType!==T.NodeType.Element&&be._nodeType!==T.NodeType.Text&&be._nodeType!==T.NodeType.ProcessingInstruction&&be._nodeType!==T.NodeType.CData&&be._nodeType!==T.NodeType.Comment)throw new v.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is "+be.nodeName+".");if(be._nodeType===T.NodeType.Text&&qe._nodeType===T.NodeType.Document)throw new v.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is "+be.nodeName+".");if(be._nodeType===T.NodeType.DocumentType&&qe._nodeType!==T.NodeType.Document)throw new v.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is "+qe.nodeName+".");if(qe._nodeType===T.NodeType.Document){if(be._nodeType===T.NodeType.DocumentFragment){var It=0;try{for(var Kt=l(be._children),ht=Kt.next();!ht.done;ht=Kt.next()){var wn=ht.value;if(wn._nodeType===T.NodeType.Element)It++;else if(wn._nodeType===T.NodeType.Text)throw new v.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is "+wn.nodeName+".")}}catch(Gr){yt={error:Gr}}finally{try{ht&&!ht.done&&(Ct=Kt.return)&&Ct.call(Kt)}finally{if(yt)throw yt.error}}if(It>1)throw new v.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has "+It+" element nodes.");if(It===1){try{for(var Gn=l(qe._children),_n=Gn.next();!_n.done;_n=Gn.next())if((me=_n.value)._nodeType===T.NodeType.Element&&me!==Ce)throw new v.HierarchyRequestError("The document node already has a document element node.")}catch(Gr){Bt={error:Gr}}finally{try{_n&&!_n.done&&(fn=Gn.return)&&fn.call(Gn)}finally{if(Bt)throw Bt.error}}for(var Bn=Ce._nextSibling;Bn;){if(Bn._nodeType===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Cannot insert an element node before a document type node.");Bn=Bn._nextSibling}}}else if(be._nodeType===T.NodeType.Element){try{for(var cr=l(qe._children),Yt=cr.next();!Yt.done;Yt=cr.next())if((me=Yt.value)._nodeType===T.NodeType.Element&&me!==Ce)throw new v.HierarchyRequestError("Document already has a document element node. Node is "+be.nodeName+".")}catch(Gr){Fn={error:Gr}}finally{try{Yt&&!Yt.done&&(Sn=cr.return)&&Sn.call(cr)}finally{if(Fn)throw Fn.error}}for(Bn=Ce._nextSibling;Bn;){if(Bn._nodeType===T.NodeType.DocumentType)throw new v.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+be.nodeName+".");Bn=Bn._nextSibling}}else if(be._nodeType===T.NodeType.DocumentType){try{for(var Ft=l(qe._children),pt=Ft.next();!pt.done;pt=Ft.next()){var me;if((me=pt.value)._nodeType===T.NodeType.DocumentType&&me!==Ce)throw new v.HierarchyRequestError("Document already has a document type node. Node is "+be.nodeName+".")}}catch(Gr){Qt={error:Gr}}finally{try{pt&&!pt.done&&(on=Ft.return)&&on.call(Ft)}finally{if(Qt)throw Qt.error}}for(var zt=Ce._previousSibling;zt;){if(zt._nodeType===T.NodeType.Element)throw new v.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+be.nodeName+".");zt=zt._previousSibling}}}var Tt=Ce._nextSibling;Tt===be&&(Tt=be._nextSibling);var tn=Ce._previousSibling;$.document_adopt(be,qe._nodeDocument);var En=[];Ce._parent!==null&&(En.push(Ce),ve(Ce,Ce._parent,!0));var Kn=[];return be._nodeType===T.NodeType.DocumentFragment?Kn=Array.from(be._children):Kn.push(be),fe(be,qe,Tt,!0),h.dom.features.mutationObservers&&k.observer_queueTreeMutationRecord(qe,Kn,En,tn,Tt),Ce},n.mutation_replaceAll=function(Ce,be){var qe,yt;Ce!==null&&$.document_adopt(Ce,be._nodeDocument);var Ct=Array.from(be._children),Bt=[];Ce&&Ce._nodeType===T.NodeType.DocumentFragment?Bt=Array.from(Ce._children):Ce!==null&&Bt.push(Ce);try{for(var fn=l(Ct),Fn=fn.next();!Fn.done;Fn=fn.next())ve(Fn.value,be,!0)}catch(Sn){qe={error:Sn}}finally{try{Fn&&!Fn.done&&(yt=fn.return)&&yt.call(fn)}finally{if(qe)throw qe.error}}Ce!==null&&fe(Ce,be,null,!0),h.dom.features.mutationObservers&&k.observer_queueTreeMutationRecord(be,Bt,Ct,null,null)},n.mutation_preRemove=function(Ce,be){if(Ce._parent!==be)throw new v.NotFoundError("The child node cannot be found under parent node. Child node is "+Ce.nodeName+", parent node is "+be.nodeName+".");return ve(Ce,be),Ce},n.mutation_remove=ve},function(i,n,o){"use strict";function l(u){return u==null}e(l,"n"),i.exports.isNothing=l,i.exports.isObject=function(u){return typeof u=="object"&&u!==null},i.exports.toArray=function(u){return Array.isArray(u)?u:l(u)?[]:[u]},i.exports.repeat=function(u,p){var h,v="";for(h=0;h<p;h+=1)v+=u;return v},i.exports.isNegativeZero=function(u){return u===0&&Number.NEGATIVE_INFINITY===1/u},i.exports.extend=function(u,p){var h,v,T,E;if(p)for(h=0,v=(E=Object.keys(p)).length;h<v;h+=1)u[T=E[h]]=p[T];return u}},function(i,n,o){"use strict";var l=o(38),u=o(53),p=o(10);function h(T,E,D){var C=[];return T.include.forEach(function(w){D=h(w,E,D)}),T[E].forEach(function(w){D.forEach(function(W,V){W.tag===w.tag&&W.kind===w.kind&&C.push(V)}),D.push(w)}),D.filter(function(w,W){return C.indexOf(W)===-1})}e(h,"a");function v(T){this.include=T.include||[],this.implicit=T.implicit||[],this.explicit=T.explicit||[],this.implicit.forEach(function(E){if(E.loadKind&&E.loadKind!=="scalar")throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=h(this,"implicit",[]),this.compiledExplicit=h(this,"explicit",[]),this.compiledTypeMap=function(){var E,D,C={scalar:{},sequence:{},mapping:{},fallback:{}};function w(W){C[W.kind][W.tag]=C.fallback[W.tag]=W}for(e(w,"n"),E=0,D=arguments.length;E<D;E+=1)arguments[E].forEach(w);return C}(this.compiledImplicit,this.compiledExplicit)}e(v,"s"),v.DEFAULT=null,v.create=function(){var T,E;switch(arguments.length){case 1:T=v.DEFAULT,E=arguments[0];break;case 2:T=arguments[0],E=arguments[1];break;default:throw new u("Wrong number of arguments for Schema.create function")}if(T=l.toArray(T),E=l.toArray(E),!T.every(function(D){return D instanceof v}))throw new u("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!E.every(function(D){return D instanceof p}))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new v({include:T,explicit:E})},i.exports=v},function(i,n){i.exports=function(o,l){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:l}}},function(i,n,o){var l=o(8),u=o(42),p="".split;i.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?p.call(h,""):Object(h)}:Object},function(i,n){var o={}.toString;i.exports=function(l){return o.call(l).slice(8,-1)}},function(i,n,o){var l,u,p,h=o(186),v=o(11),T=o(13),E=o(21),D=o(14),C=o(57),w=o(45),W=v.WeakMap;if(h){var V=new W,B=V.get,k=V.has,F=V.set;l=e(function(Y,ie){return F.call(V,Y,ie),ie},"n"),u=e(function(Y){return B.call(V,Y)||{}},"i"),p=e(function(Y){return k.call(V,Y)},"o")}else{var $=C("state");w[$]=!0,l=e(function(Y,ie){return E(Y,$,ie),ie},"n"),u=e(function(Y){return D(Y,$)?Y[$]:{}},"i"),p=e(function(Y){return D(Y,$)},"o")}i.exports={set:l,get:u,has:p,enforce:e(function(Y){return p(Y)?u(Y):l(Y,{})},"enforce"),getterFor:e(function(Y){return function(ie){var fe;if(!T(ie)||(fe=u(ie)).type!==Y)throw TypeError("Incompatible receiver, "+Y+" required");return fe}},"getterFor")}},function(i,n){i.exports=!1},function(i,n){i.exports={}},function(i,n,o){var l=o(120),u=o(11),p=e(function(h){return typeof h=="function"?h:void 0},"o");i.exports=function(h,v){return arguments.length<2?p(l[h])||p(u[h]):l[h]&&l[h][v]||u[h]&&u[h][v]}},function(i,n){var o=Math.ceil,l=Math.floor;i.exports=function(u){return isNaN(u=+u)?0:(u>0?l:o)(u)}},function(i,n,o){"use strict";var l=o(8);i.exports=function(u,p){var h=[][u];return!!h&&l(function(){h.call(null,p||function(){throw 1},1)})}},function(i,n){i.exports={}},function(i,n,o){"use strict";o(31),o(32),o(33),o(220),o(64),o(19),o(65),o(20),o(68),o(66),o(92),o(144),o(22),o(94),o(23);var l=this&&this.__values||function(W){var V=typeof Symbol=="function"&&Symbol.iterator,B=V&&W[V],k=0;if(B)return B.call(W);if(W&&typeof W.length=="number")return{next:e(function(){return W&&k>=W.length&&(W=void 0),{value:W&&W[k++],done:!W}},"next")};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(W,V){var B=typeof Symbol=="function"&&W[Symbol.iterator];if(!B)return W;var k,F,$=B.call(W),Y=[];try{for(;(V===void 0||V-- >0)&&!(k=$.next()).done;)Y.push(k.value)}catch(ie){F={error:ie}}finally{try{k&&!k.done&&(B=$.return)&&B.call($)}finally{if(F)throw F.error}}return Y},p=this&&this.__spread||function(){for(var W=[],V=0;V<arguments.length;V++)W=W.concat(u(arguments[V]));return W};Object.defineProperty(n,"__esModule",{value:!0});var h=o(1),v=o(69),T=o(95),E=o(7),D=o(0),C=o(258),w=function(){function W(V){this.level=0,this._builderOptions=V}return e(W,"e"),W.prototype.declaration=function(V,B,k){},W.prototype.docType=function(V,B,k){},W.prototype.comment=function(V){},W.prototype.text=function(V){},W.prototype.instruction=function(V,B){},W.prototype.cdata=function(V){},W.prototype.openTagBegin=function(V){},W.prototype.openTagEnd=function(V,B,k){},W.prototype.closeTag=function(V){},W.prototype.attributes=function(V){var B,k;try{for(var F=l(V),$=F.next();!$.done;$=F.next()){var Y=$.value;this.attribute(Y[1]===null?Y[2]:Y[1]+":"+Y[2],Y[3])}}catch(ie){B={error:ie}}finally{try{$&&!$.done&&(k=F.return)&&k.call(F)}finally{if(B)throw B.error}}},W.prototype.attribute=function(V,B){},W.prototype.beginElement=function(V){},W.prototype.endElement=function(V){},W.prototype.serializeNode=function(V,B){var k=V._nodeDocument!==void 0&&V._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=V,k){var F=new T.NamespacePrefixMap;F.set("xml",E.namespace.XML),this._serializeNodeNS(V,null,F,{value:1},B)}else this._serializeNode(V,B)},W.prototype._serializeNodeNS=function(V,B,k,F,$){switch(this.currentNode=V,V.nodeType){case h.NodeType.Element:this._serializeElementNS(V,B,k,F,$);break;case h.NodeType.Document:this._serializeDocumentNS(V,B,k,F,$);break;case h.NodeType.Comment:this._serializeComment(V,$);break;case h.NodeType.Text:this._serializeText(V,$);break;case h.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(V,B,k,F,$);break;case h.NodeType.DocumentType:this._serializeDocumentType(V,$);break;case h.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(V,$);break;case h.NodeType.CData:this._serializeCData(V,$);break;default:throw new Error("Unknown node type: "+V.nodeType)}},W.prototype._serializeNode=function(V,B){switch(this.currentNode=V,V.nodeType){case h.NodeType.Element:this._serializeElement(V,B);break;case h.NodeType.Document:this._serializeDocument(V,B);break;case h.NodeType.Comment:this._serializeComment(V,B);break;case h.NodeType.Text:this._serializeText(V,B);break;case h.NodeType.DocumentFragment:this._serializeDocumentFragment(V,B);break;case h.NodeType.DocumentType:this._serializeDocumentType(V,B);break;case h.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(V,B);break;case h.NodeType.CData:this._serializeCData(V,B);break;default:throw new Error("Unknown node type: "+V.nodeType)}},W.prototype._serializeElementNS=function(V,B,k,F,$){var Y,ie,fe=[];if($&&(V.localName.indexOf(":")!==-1||!D.xml_isName(V.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var ve="",Ce=!1,be=!1,qe=k.copy(),yt={},Ct=this._recordNamespaceInformation(V,qe,yt),Bt=B,fn=V.namespaceURI;if(Bt===fn)Ct!==null&&(be=!0),ve=fn===E.namespace.XML?"xml:"+V.localName:V.localName,this.beginElement(ve),this.openTagBegin(ve);else{var Fn=V.prefix,Sn=null;if(Fn===null&&fn===Ct||(Sn=qe.get(Fn,fn)),Fn==="xmlns"){if($)throw new Error("An element cannot have the 'xmlns' prefix (well-formed required).");Sn=Fn}Sn!==null?(ve=Sn+":"+V.localName,Ct!==null&&Ct!==E.namespace.XML&&(Bt=Ct||null),this.beginElement(ve),this.openTagBegin(ve)):Fn!==null?(Fn in yt&&(Fn=this._generatePrefix(fn,qe,F)),qe.set(Fn,fn),ve+=Fn+":"+V.localName,this.beginElement(ve),this.openTagBegin(ve),fe.push([null,"xmlns",Fn,this._serializeAttributeValue(fn,$)]),Ct!==null&&(Bt=Ct||null)):Ct===null||Ct!==null&&Ct!==fn?(be=!0,ve+=V.localName,Bt=fn,this.beginElement(ve),this.openTagBegin(ve),fe.push([null,null,"xmlns",this._serializeAttributeValue(fn,$)])):(ve+=V.localName,Bt=fn,this.beginElement(ve),this.openTagBegin(ve))}fe.push.apply(fe,p(this._serializeAttributesNS(V,qe,F,yt,be,$))),this.attributes(fe);var Qt=fn===E.namespace.HTML;if(Qt&&V.childNodes.length===0&&W._VoidElementNames.has(V.localName)?(this.openTagEnd(ve,!0,!0),this.endElement(ve),Ce=!0):Qt||V.childNodes.length!==0?this.openTagEnd(ve,!1,!1):(this.openTagEnd(ve,!0,!1),this.endElement(ve),Ce=!0),!Ce){if(!(Qt&&V.localName==="template"))try{for(var on=l(V.childNodes),It=on.next();!It.done;It=on.next()){var Kt=It.value;this.level++,this._serializeNodeNS(Kt,Bt,qe,F,$),this.level--}}catch(ht){Y={error:ht}}finally{try{It&&!It.done&&(ie=on.return)&&ie.call(on)}finally{if(Y)throw Y.error}}this.closeTag(ve),this.endElement(ve)}},W.prototype._serializeElement=function(V,B){var k,F;if(B&&(V.localName.indexOf(":")!==-1||!D.xml_isName(V.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var $=!1,Y=V.localName;this.beginElement(Y),this.openTagBegin(Y);var ie=this._serializeAttributes(V,B);if(this.attributes(ie),V.hasChildNodes()?this.openTagEnd(Y,!1,!1):(this.openTagEnd(Y,!0,!1),this.endElement(Y),$=!0),!$){try{for(var fe=l(V._children),ve=fe.next();!ve.done;ve=fe.next()){var Ce=ve.value;this.level++,this._serializeNode(Ce,B),this.level--}}catch(be){k={error:be}}finally{try{ve&&!ve.done&&(F=fe.return)&&F.call(fe)}finally{if(k)throw k.error}}this.closeTag(Y),this.endElement(Y)}},W.prototype._serializeDocumentNS=function(V,B,k,F,$){var Y,ie;if($&&V.documentElement===null)throw new Error("Missing document element (well-formed required).");try{for(var fe=l(V.childNodes),ve=fe.next();!ve.done;ve=fe.next()){var Ce=ve.value;this._serializeNodeNS(Ce,B,k,F,$)}}catch(be){Y={error:be}}finally{try{ve&&!ve.done&&(ie=fe.return)&&ie.call(fe)}finally{if(Y)throw Y.error}}},W.prototype._serializeDocument=function(V,B){var k,F;if(B&&V.documentElement===null)throw new Error("Missing document element (well-formed required).");try{for(var $=l(V._children),Y=$.next();!Y.done;Y=$.next()){var ie=Y.value;this._serializeNode(ie,B)}}catch(fe){k={error:fe}}finally{try{Y&&!Y.done&&(F=$.return)&&F.call($)}finally{if(k)throw k.error}}},W.prototype._serializeComment=function(V,B){if(B&&(!D.xml_isLegalChar(V.data)||V.data.indexOf("--")!==-1||V.data.endsWith("-")))throw new Error("Comment data contains invalid characters (well-formed required).");this.comment(V.data)},W.prototype._serializeText=function(V,B){if(B&&!D.xml_isLegalChar(V.data))throw new Error("Text data contains invalid characters (well-formed required).");var k=V.data.replace(C.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this.text(k)},W.prototype._serializeDocumentFragmentNS=function(V,B,k,F,$){var Y,ie;try{for(var fe=l(V.childNodes),ve=fe.next();!ve.done;ve=fe.next()){var Ce=ve.value;this._serializeNodeNS(Ce,B,k,F,$)}}catch(be){Y={error:be}}finally{try{ve&&!ve.done&&(ie=fe.return)&&ie.call(fe)}finally{if(Y)throw Y.error}}},W.prototype._serializeDocumentFragment=function(V,B){var k,F;try{for(var $=l(V._children),Y=$.next();!Y.done;Y=$.next()){var ie=Y.value;this._serializeNode(ie,B)}}catch(fe){k={error:fe}}finally{try{Y&&!Y.done&&(F=$.return)&&F.call($)}finally{if(k)throw k.error}}},W.prototype._serializeDocumentType=function(V,B){if(B&&!D.xml_isPubidChar(V.publicId))throw new Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(B&&(!D.xml_isLegalChar(V.systemId)||V.systemId.indexOf('"')!==-1&&V.systemId.indexOf("'")!==-1))throw new Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(V.name,V.publicId,V.systemId)},W.prototype._serializeProcessingInstruction=function(V,B){if(B&&(V.target.indexOf(":")!==-1||/^xml$/i.test(V.target)))throw new Error("Processing instruction target contains invalid characters (well-formed required).");if(B&&(!D.xml_isLegalChar(V.data)||V.data.indexOf("?>")!==-1))throw new Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(V.target,V.data)},W.prototype._serializeCData=function(V,B){if(B&&V.data.indexOf("]]>")!==-1)throw new Error("CDATA contains invalid characters (well-formed required).");this.cdata(V.data)},W.prototype._serializeAttributesNS=function(V,B,k,F,$,Y){var ie,fe,ve=[],Ce=Y?new v.LocalNameSet:void 0;try{for(var be=l(V.attributes),qe=be.next();!qe.done;qe=be.next()){var yt=qe.value;if(Y||$||yt.namespaceURI!==null){if(Y&&Ce&&Ce.has(yt.namespaceURI,yt.localName))throw new Error("Element contains duplicate attributes (well-formed required).");Y&&Ce&&Ce.set(yt.namespaceURI,yt.localName);var Ct=yt.namespaceURI,Bt=null;if(Ct!==null)if(Bt=B.get(yt.prefix,Ct),Ct===E.namespace.XMLNS){if(yt.value===E.namespace.XML||yt.prefix===null&&$||yt.prefix!==null&&(!(yt.localName in F)||F[yt.localName]!==yt.value)&&B.has(yt.localName,yt.value))continue;if(Y&&yt.value===E.namespace.XMLNS)throw new Error("XMLNS namespace is reserved (well-formed required).");if(Y&&yt.value==="")throw new Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");yt.prefix==="xmlns"&&(Bt="xmlns")}else Bt===null&&(Bt=yt.prefix===null||B.hasPrefix(yt.prefix)&&!B.has(yt.prefix,Ct)?this._generatePrefix(Ct,B,k):yt.prefix,ve.push([null,"xmlns",Bt,this._serializeAttributeValue(Ct,Y)]));if(Y&&(yt.localName.indexOf(":")!==-1||!D.xml_isName(yt.localName)||yt.localName==="xmlns"&&Ct===null))throw new Error("Attribute local name contains invalid characters (well-formed required).");ve.push([Ct,Bt,yt.localName,this._serializeAttributeValue(yt.value,Y)])}else ve.push([null,null,yt.localName,this._serializeAttributeValue(yt.value,Y)])}}catch(fn){ie={error:fn}}finally{try{qe&&!qe.done&&(fe=be.return)&&fe.call(be)}finally{if(ie)throw ie.error}}return ve},W.prototype._serializeAttributes=function(V,B){var k,F,$=[],Y=B?{}:void 0;try{for(var ie=l(V.attributes),fe=ie.next();!fe.done;fe=ie.next()){var ve=fe.value;if(B){if(B&&Y&&ve.localName in Y)throw new Error("Element contains duplicate attributes (well-formed required).");if(B&&Y&&(Y[ve.localName]=!0),B&&(ve.localName.indexOf(":")!==-1||!D.xml_isName(ve.localName)))throw new Error("Attribute local name contains invalid characters (well-formed required).");$.push([null,null,ve.localName,this._serializeAttributeValue(ve.value,B)])}else $.push([null,null,ve.localName,this._serializeAttributeValue(ve.value,B)])}}catch(Ce){k={error:Ce}}finally{try{fe&&!fe.done&&(F=ie.return)&&F.call(ie)}finally{if(k)throw k.error}}return $},W.prototype._recordNamespaceInformation=function(V,B,k){var F,$,Y=null;try{for(var ie=l(V.attributes),fe=ie.next();!fe.done;fe=ie.next()){var ve=fe.value,Ce=ve.namespaceURI,be=ve.prefix;if(Ce===E.namespace.XMLNS){if(be===null){Y=ve.value;continue}var qe=ve.localName,yt=ve.value;if(yt===E.namespace.XML||(yt===""&&(yt=null),B.has(qe,yt)))continue;B.set(qe,yt),k[qe]=yt||""}}}catch(Ct){F={error:Ct}}finally{try{fe&&!fe.done&&($=ie.return)&&$.call(ie)}finally{if(F)throw F.error}}return Y},W.prototype._generatePrefix=function(V,B,k){var F="ns"+k.value.toString();return k.value++,B.set(F,V),F},W.prototype._serializeAttributeValue=function(V,B){if(B&&V!==null&&!D.xml_isLegalChar(V))throw new Error("Invalid characters in attribute value.");return V===null?"":V.replace(C.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},W._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),W}();n.BaseWriter=w},function(i,n,o){"use strict";var l=this&&this.__values||function(V){var B=typeof Symbol=="function"&&Symbol.iterator,k=B&&V[B],F=0;if(k)return k.call(V);if(V&&typeof V.length=="number")return{next:e(function(){return V&&F>=V.length&&(V=void 0),{value:V&&V[F++],done:!V}},"next")};throw new TypeError(B?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(V,B){var k=typeof Symbol=="function"&&V[Symbol.iterator];if(!k)return V;var F,$,Y=k.call(V),ie=[];try{for(;(B===void 0||B-- >0)&&!(F=Y.next()).done;)ie.push(F.value)}catch(fe){$={error:fe}}finally{try{F&&!F.done&&(k=Y.return)&&k.call(Y)}finally{if($)throw $.error}}return ie};Object.defineProperty(n,"__esModule",{value:!0});var p=o(6),h=o(3),v=o(7),T=o(29),E=o(17),D=o(97);function C(){var V=p.dom.window;V._mutationObserverMicrotaskQueued||(V._mutationObserverMicrotaskQueued=!0,Promise.resolve().then(function(){w()}))}e(C,"h");function w(){var V,B,k,F,$=p.dom.window;$._mutationObserverMicrotaskQueued=!1;var Y=v.set.clone($._mutationObservers),ie=v.set.clone($._signalSlots);v.set.empty($._signalSlots);var fe=e(function(Ct){var Bt=v.list.clone(Ct._recordQueue);v.list.empty(Ct._recordQueue);for(var fn=0;fn<Ct._nodeList.length;fn++){var Fn=Ct._nodeList[fn];v.list.remove(Fn._registeredObserverList,function(Sn){return h.Guard.isTransientRegisteredObserver(Sn)&&Sn.observer===Ct})}if(!v.list.isEmpty(Bt))try{Ct._callback.call(Ct,Bt,Ct)}catch{}},"p");try{for(var ve=l(Y),Ce=ve.next();!Ce.done;Ce=ve.next())fe(Ce.value)}catch(Ct){V={error:Ct}}finally{try{Ce&&!Ce.done&&(B=ve.return)&&B.call(ve)}finally{if(V)throw V.error}}if(p.dom.features.slots)try{for(var be=l(ie),qe=be.next();!qe.done;qe=be.next()){var yt=qe.value;D.event_fireAnEvent("slotchange",yt,void 0,{bubbles:!0})}}catch(Ct){k={error:Ct}}finally{try{qe&&!qe.done&&(F=be.return)&&F.call(be)}finally{if(k)throw k.error}}}e(w,"p");function W(V,B,k,F,$,Y,ie,fe,ve){for(var Ce,be,qe=new Map,yt=E.tree_getFirstAncestorNode(B,!0);yt!==null;){for(var Ct=0;Ct<yt._registeredObserverList.length;Ct++){var Bt=yt._registeredObserverList[Ct],fn=Bt.options;if((yt===B||fn.subtree)&&(V!=="attributes"||fn.attributes)&&(V!=="attributes"||!fn.attributeFilter||fn.attributeFilter.indexOf(k||"")&&F===null)&&(V!=="characterData"||fn.characterData)&&(V!=="childList"||fn.childList)){var Fn=Bt.observer;qe.has(Fn)||qe.set(Fn,null),(V==="attributes"&&fn.attributeOldValue||V==="characterData"&&fn.characterDataOldValue)&&qe.set(Fn,$)}}yt=E.tree_getNextAncestorNode(B,yt,!0)}try{for(var Sn=l(qe),Qt=Sn.next();!Qt.done;Qt=Sn.next()){var on=u(Qt.value,2),It=on[0],Kt=on[1],ht=T.create_mutationRecord(V,B,T.create_nodeListStatic(B,Y),T.create_nodeListStatic(B,ie),fe,ve,k,F,Kt);It._recordQueue.push(ht)}}catch(wn){Ce={error:wn}}finally{try{Qt&&!Qt.done&&(be=Sn.return)&&be.call(Sn)}finally{if(Ce)throw Ce.error}}C()}e(W,"f"),n.observer_queueAMutationObserverMicrotask=C,n.observer_notifyMutationObservers=w,n.observer_queueMutationRecord=W,n.observer_queueTreeMutationRecord=function(V,B,k,F,$){W("childList",V,null,null,null,B,k,F,$)},n.observer_queueAttributeMutationRecord=function(V,B,k,F){W("attributes",V,B,k,F,[],[],null,null)}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(6),u=o(7),p=o(3),h=o(9),v=o(29),T=o(73),E=o(51),D=o(30),C=o(37),w=o(106);function W(Y,ie,fe){l.dom.features.mutationObservers&&E.observer_queueAttributeMutationRecord(ie,Y._localName,Y._namespace,Y._value),l.dom.features.customElements&&p.Guard.isCustomElementNode(ie)&&T.customElement_enqueueACustomElementCallbackReaction(ie,"attributeChangedCallback",[Y._localName,Y._value,fe,Y._namespace]),l.dom.features.steps&&D.dom_runAttributeChangeSteps(ie,Y._localName,Y._value,fe,Y._namespace),Y._value=fe}e(W,"f");function V(Y,ie){l.dom.features.mutationObservers&&E.observer_queueAttributeMutationRecord(ie,Y._localName,Y._namespace,null),l.dom.features.customElements&&p.Guard.isCustomElementNode(ie)&&T.customElement_enqueueACustomElementCallbackReaction(ie,"attributeChangedCallback",[Y._localName,null,Y._value,Y._namespace]),l.dom.features.steps&&D.dom_runAttributeChangeSteps(ie,Y._localName,null,Y._value,Y._namespace),ie._attributeList._asArray().push(Y),Y._element=ie,ie._nodeDocument._hasNamespaces||Y._namespace===null&&Y._namespacePrefix===null&&Y._localName!=="xmlns"||(ie._nodeDocument._hasNamespaces=!0)}e(V,"d");function B(Y,ie){l.dom.features.mutationObservers&&E.observer_queueAttributeMutationRecord(ie,Y._localName,Y._namespace,Y._value),l.dom.features.customElements&&p.Guard.isCustomElementNode(ie)&&T.customElement_enqueueACustomElementCallbackReaction(ie,"attributeChangedCallback",[Y._localName,Y._value,null,Y._namespace]),l.dom.features.steps&&D.dom_runAttributeChangeSteps(ie,Y._localName,Y._value,null,Y._namespace);var fe=ie._attributeList._asArray().indexOf(Y);ie._attributeList._asArray().splice(fe,1),Y._element=null}e(B,"m");function k(Y,ie,fe){l.dom.features.mutationObservers&&E.observer_queueAttributeMutationRecord(fe,Y._localName,Y._namespace,Y._value),l.dom.features.customElements&&p.Guard.isCustomElementNode(fe)&&T.customElement_enqueueACustomElementCallbackReaction(fe,"attributeChangedCallback",[Y._localName,Y._value,ie._value,Y._namespace]),l.dom.features.steps&&D.dom_runAttributeChangeSteps(fe,Y._localName,Y._value,ie._value,Y._namespace);var ve=fe._attributeList._asArray().indexOf(Y);ve!==-1&&(fe._attributeList._asArray()[ve]=ie),Y._element=null,ie._element=fe,fe._nodeDocument._hasNamespaces||ie._namespace===null&&ie._namespacePrefix===null&&ie._localName!=="xmlns"||(fe._nodeDocument._hasNamespaces=!0)}e(k,"y");function F(Y,ie){return ie._namespace===u.namespace.HTML&&ie._nodeDocument._type==="html"&&(Y=Y.toLowerCase()),ie._attributeList._asArray().find(function(fe){return fe._qualifiedName===Y})||null}e(F,"v");function $(Y,ie,fe){var ve=Y||null;return fe._attributeList._asArray().find(function(Ce){return Ce._namespace===ve&&Ce._localName===ie})||null}e($,"_"),n.element_has=function(Y,ie){return ie._attributeList._asArray().indexOf(Y)!==-1},n.element_change=W,n.element_append=V,n.element_remove=B,n.element_replace=k,n.element_getAnAttributeByName=F,n.element_getAnAttributeByNamespaceAndLocalName=$,n.element_getAnAttributeValue=function(Y,ie,fe){fe===void 0&&(fe="");var ve=$(fe,ie,Y);return ve===null?"":ve._value},n.element_setAnAttribute=function(Y,ie){if(Y._element!==null&&Y._element!==ie)throw new h.InUseAttributeError("This attribute already exists in the document: "+Y._qualifiedName+" as a child of "+Y._element._qualifiedName+".");var fe=$(Y._namespace||"",Y._localName,ie);return fe===Y?Y:(fe!==null?k(fe,Y,ie):V(Y,ie),fe)},n.element_setAnAttributeValue=function(Y,ie,fe,ve,Ce){ve===void 0&&(ve=null),Ce===void 0&&(Ce=null);var be=$(Ce||"",ie,Y);if(be===null){var qe=v.create_attr(Y._nodeDocument,ie);return qe._namespace=Ce,qe._namespacePrefix=ve,qe._value=fe,void V(qe,Y)}W(be,Y,fe)},n.element_removeAnAttributeByName=function(Y,ie){var fe=F(Y,ie);return fe!==null&&B(fe,ie),fe},n.element_removeAnAttributeByNamespaceAndLocalName=function(Y,ie,fe){var ve=$(Y,ie,fe);return ve!==null&&B(ve,fe),ve},n.element_createAnElement=function(Y,ie,fe,ve,Ce,be){ve===void 0&&(ve=null),Ce===void 0&&(Ce=null),be===void 0&&(be=!1);var qe=null;if(!l.dom.features.customElements)return(qe=v.create_element(Y,ie,fe,ve))._customElementState="uncustomized",qe._customElementDefinition=null,qe._is=Ce,qe;var yt=T.customElement_lookUpACustomElementDefinition(Y,fe,ie,Ce);if(yt!==null&&yt.name!==yt.localName)(qe=new(w.document_elementInterface(ie,u.namespace.HTML)))._localName=ie,qe._namespace=u.namespace.HTML,qe._namespacePrefix=ve,qe._customElementState="undefined",qe._customElementDefinition=null,qe._is=Ce,qe._nodeDocument=Y,be?T.customElement_upgrade(yt,qe):T.customElement_enqueueACustomElementUpgradeReaction(qe,yt);else if(yt!==null)if(be)try{var Ct=new yt.constructor;if(console.assert(Ct._customElementState!==void 0),console.assert(Ct._customElementDefinition!==void 0),console.assert(Ct._namespace===u.namespace.HTML),Ct._attributeList.length!==0)throw new h.NotSupportedError("Custom element already has attributes.");if(Ct._children.size!==0)throw new h.NotSupportedError("Custom element already has child nodes.");if(Ct._parent!==null)throw new h.NotSupportedError("Custom element already has a parent node.");if(Ct._nodeDocument!==Y)throw new h.NotSupportedError("Custom element is already in a document.");if(Ct._localName!==ie)throw new h.NotSupportedError("Custom element has a different local name.");Ct._namespacePrefix=ve,Ct._is=null}catch{(qe=v.create_htmlUnknownElement(Y,ie,u.namespace.HTML,ve))._customElementState="failed",qe._customElementDefinition=null,qe._is=null}else(qe=v.create_htmlElement(Y,ie,u.namespace.HTML,ve))._customElementState="undefined",qe._customElementDefinition=null,qe._is=null,T.customElement_enqueueACustomElementUpgradeReaction(qe,yt);else(qe=new(w.document_elementInterface(ie,fe)))._localName=ie,qe._namespace=fe,qe._namespacePrefix=ve,qe._customElementState="uncustomized",qe._customElementDefinition=null,qe._is=Ce,qe._nodeDocument=Y,fe!==u.namespace.HTML||Ce===null&&!T.customElement_isValidCustomElementName(ie)||(qe._customElementState="undefined");if(qe===null)throw new Error("Unable to create element.");return qe},n.element_insertAdjacent=function(Y,ie,fe){switch(ie.toLowerCase()){case"beforebegin":return Y._parent===null?null:C.mutation_preInsert(fe,Y._parent,Y);case"afterbegin":return C.mutation_preInsert(fe,Y,Y._firstChild);case"beforeend":return C.mutation_preInsert(fe,Y,null);case"afterend":return Y._parent===null?null:C.mutation_preInsert(fe,Y._parent,Y._nextSibling);default:throw new h.SyntaxError(`Invalid 'where' argument. "beforebegin", "afterbegin", "beforeend" or "afterend" expected`)}}},function(i,n,o){"use strict";function l(u,p){Error.call(this),this.name="YAMLException",this.reason=u,this.mark=p,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}e(l,"n"),l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.toString=function(u){var p=this.name+": ";return p+=this.reason||"(unknown reason)",!u&&this.mark&&(p+=" "+this.mark.toString()),p},i.exports=l},function(i,n,o){"use strict";var l=o(39);i.exports=new l({include:[o(181)],implicit:[o(294),o(295)],explicit:[o(296),o(297),o(298),o(299)]})},function(i,n,o){var l=o(16),u=o(79),p=o(40),h=o(24),v=o(56),T=o(14),E=o(115),D=Object.getOwnPropertyDescriptor;n.f=l?D:function(C,w){if(C=h(C),w=v(w,!0),E)try{return D(C,w)}catch{}if(T(C,w))return p(!u.f.call(C,w),C[w])}},function(i,n,o){var l=o(13);i.exports=function(u,p){if(!l(u))return u;var h,v;if(p&&typeof(h=u.toString)=="function"&&!l(v=h.call(u))||typeof(h=u.valueOf)=="function"&&!l(v=h.call(u))||!p&&typeof(h=u.toString)=="function"&&!l(v=h.call(u)))return v;throw TypeError("Can't convert object to primitive value")}},function(i,n,o){var l=o(81),u=o(58),p=l("keys");i.exports=function(h){return p[h]||(p[h]=u(h))}},function(i,n){var o=0,l=Math.random();i.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++o+l).toString(36)}},function(i,n,o){var l=o(42);i.exports=Array.isArray||function(u){return l(u)=="Array"}},function(i,n,o){var l,u=o(18),p=o(188),h=o(84),v=o(45),T=o(189),E=o(116),D=o(57),C=D("IE_PROTO"),w=e(function(){},"p"),W=e(function(B){return"<script>"+B+"<\/script>"},"f"),V=e(function(){try{l=document.domain&&new ActiveXObject("htmlfile")}catch{}var B,k;V=l?function($){$.write(W("")),$.close();var Y=$.parentWindow.Object;return $=null,Y}(l):((k=E("iframe")).style.display="none",T.appendChild(k),k.src="javascript:",(B=k.contentWindow.document).open(),B.write(W("document.F=Object")),B.close(),B.F);for(var F=h.length;F--;)delete V.prototype[h[F]];return V()},"d");v[C]=!0,i.exports=Object.create||function(B,k){var F;return B!==null?(w.prototype=u(B),F=new w,w.prototype=null,F[C]=B):F=V(),k===void 0?F:p(F,k)}},function(i,n,o){var l=o(121),u=o(84);i.exports=Object.keys||function(p){return l(p,u)}},function(i,n,o){var l=o(15).f,u=o(14),p=o(5)("toStringTag");i.exports=function(h,v,T){h&&!u(h=T?h:h.prototype,p)&&l(h,p,{configurable:!0,value:v})}},function(i,n,o){var l=o(8),u=o(5),p=o(129),h=u("species");i.exports=function(v){return p>=51||!l(function(){var T=[];return(T.constructor={})[h]=function(){return{foo:1}},T[v](Boolean).foo!==1})}},function(i,n,o){"use strict";var l=o(4),u=o(122).indexOf,p=o(48),h=o(28),v=[].indexOf,T=!!v&&1/[1].indexOf(1,-0)<0,E=p("indexOf"),D=h("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:T||!E||!D},{indexOf:e(function(C){return T?v.apply(this,arguments)||0:u(this,C,arguments.length>1?arguments[1]:void 0)},"indexOf")})},function(i,n,o){var l=o(16),u=o(15).f,p=Function.prototype,h=p.toString,v=/^\s*function ([^ (]*)/;l&&!("name"in p)&&u(p,"name",{configurable:!0,get:e(function(){try{return h.call(this).match(v)[1]}catch{return""}},"get")})},function(i,n,o){"use strict";var l=o(25),u=o(18),p=o(8),h=o(136),v=RegExp.prototype,T=v.toString,E=p(function(){return T.call({source:"a",flags:"b"})!="/a/b"}),D=T.name!="toString";(E||D)&&l(RegExp.prototype,"toString",function(){var C=u(this),w=String(C.source),W=C.flags;return"/"+w+"/"+String(W===void 0&&C instanceof RegExp&&!("flags"in v)?h.call(C):W)},{unsafe:!0})},function(i,n,o){"use strict";o(31),o(32),o(33),o(19),o(138),o(20),o(66),o(22),o(23);var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)}),p=this&&this.__values||function(E){var D=typeof Symbol=="function"&&Symbol.iterator,C=D&&E[D],w=0;if(C)return C.call(E);if(E&&typeof E.length=="number")return{next:e(function(){return E&&w>=E.length&&(E=void 0),{value:E&&E[w++],done:!E}},"next")};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var h=o(2),v=o(1),T=function(E){function D(C,w){var W=E.call(this,C)||this;return W._writerOptions=h.applyDefaults(w,{format:"object",wellFormed:!1,group:!1,verbose:!1}),W}return e(D,"t"),u(D,E),D.prototype.serialize=function(C){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(C,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)},D.prototype._process=function(C,w){var W,V,B,k,F,$,Y;if(C.length===0)return{};for(var ie={},fe=!1,ve=0,Ce=0,be=0,qe=0,yt=0;yt<C.length;yt++){var Ct=C[yt];switch(Ft=Object.keys(Ct)[0]){case"@":continue;case"#":ve++;break;case"!":Ce++;break;case"?":be++;break;case"$":qe++;break;default:ie[Ft]?fe=!0:ie[Ft]=!0}}var Bt=this._getAttrKey(),fn=this._getNodeKey(v.NodeType.Text),Fn=this._getNodeKey(v.NodeType.Comment),Sn=this._getNodeKey(v.NodeType.ProcessingInstruction),Qt=this._getNodeKey(v.NodeType.CData);if(ve===1&&C.length===1&&h.isString(C[0]["#"]))return C[0]["#"];if(fe){var on={};for(yt=0;yt<C.length;yt++)if(Ct=C[yt],(Ft=Object.keys(Ct)[0])==="@"){var It=Ct["@"];(pt=Object.keys(It)).length===1?on[Bt+pt[0]]=It[pt[0]]:on[Bt]=Ct["@"]}var Kt=[];for(yt=0;yt<C.length;yt++)switch(Ct=C[yt],Ft=Object.keys(Ct)[0]){case"@":break;case"#":Kt.push(((W={})[fn]=Ct["#"],W));break;case"!":Kt.push(((V={})[Fn]=Ct["!"],V));break;case"?":Kt.push(((B={})[Sn]=Ct["?"],B));break;case"$":Kt.push(((k={})[Qt]=Ct.$,k));break;default:if((zt=Ct)[Ft].length!==0&&h.isArray(zt[Ft][0])){for(var ht=[],wn=zt[Ft],Gn=0;Gn<wn.length;Gn++)ht.push(this._process(wn[Gn],w));Kt.push(((F={})[Ft]=ht,F))}else w.verbose?Kt.push((($={})[Ft]=[this._process(zt[Ft],w)],$)):Kt.push(((Y={})[Ft]=this._process(zt[Ft],w),Y))}return on[fn]=Kt,on}var _n=1,Bn=1,cr=1,Yt=1;for(on={},yt=0;yt<C.length;yt++){var Ft;switch(Ct=C[yt],Ft=Object.keys(Ct)[0]){case"@":It=Ct["@"];var pt=Object.keys(It);if(w.group&&pt.length!==1)on[Bt]=It;else for(var me in It)on[Bt+me]=It[me];break;case"#":_n=this._processSpecItem(Ct["#"],on,w.group,fn,ve,_n);break;case"!":Bn=this._processSpecItem(Ct["!"],on,w.group,Fn,Ce,Bn);break;case"?":cr=this._processSpecItem(Ct["?"],on,w.group,Sn,be,cr);break;case"$":Yt=this._processSpecItem(Ct.$,on,w.group,Qt,qe,Yt);break;default:var zt;if((zt=Ct)[Ft].length!==0&&h.isArray(zt[Ft][0])){ht=[],wn=zt[Ft];for(var Tt=0;Tt<wn.length;Tt++)ht.push(this._process(wn[Tt],w));on[Ft]=ht}else w.verbose?on[Ft]=[this._process(zt[Ft],w)]:on[Ft]=this._process(zt[Ft],w)}}return on},D.prototype._processSpecItem=function(C,w,W,V,B,k){var F,$;if(!W&&h.isArray(C)&&B+C.length>2)try{for(var Y=p(C),ie=Y.next();!ie.done;ie=Y.next()){var fe=ie.value;w[V+(k++).toString()]=fe}}catch(ve){F={error:ve}}finally{try{ie&&!ie.done&&($=Y.return)&&$.call(Y)}finally{if(F)throw F.error}}else w[B>1?V+(k++).toString():V]=C;return k},D.prototype.beginElement=function(C){var w,W,V=[];if(this._currentList.length===0)this._currentList.push(((w={})[C]=V,w));else{var B=this._currentList[this._currentList.length-1];this._isElementNode(B,C)?B[C].length!==0&&h.isArray(B[C][0])?B[C].push(V):B[C]=[B[C],V]:this._currentList.push(((W={})[C]=V,W))}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=V:this._listRegister.push(V),this._currentList=V},D.prototype.endElement=function(){this._currentList=this._listRegister[--this._currentIndex]},D.prototype.attribute=function(C,w){var W,V;if(this._currentList.length===0)this._currentList.push({"@":(W={},W[C]=w,W)});else{var B=this._currentList[this._currentList.length-1];this._isAttrNode(B)?B["@"][C]=w:this._currentList.push({"@":(V={},V[C]=w,V)})}},D.prototype.comment=function(C){if(this._currentList.length===0)this._currentList.push({"!":C});else{var w=this._currentList[this._currentList.length-1];this._isCommentNode(w)?h.isArray(w["!"])?w["!"].push(C):w["!"]=[w["!"],C]:this._currentList.push({"!":C})}},D.prototype.text=function(C){if(this._currentList.length===0)this._currentList.push({"#":C});else{var w=this._currentList[this._currentList.length-1];this._isTextNode(w)?h.isArray(w["#"])?w["#"].push(C):w["#"]=[w["#"],C]:this._currentList.push({"#":C})}},D.prototype.instruction=function(C,w){var W=w===""?C:C+" "+w;if(this._currentList.length===0)this._currentList.push({"?":W});else{var V=this._currentList[this._currentList.length-1];this._isInstructionNode(V)?h.isArray(V["?"])?V["?"].push(W):V["?"]=[V["?"],W]:this._currentList.push({"?":W})}},D.prototype.cdata=function(C){if(this._currentList.length===0)this._currentList.push({$:C});else{var w=this._currentList[this._currentList.length-1];this._isCDATANode(w)?h.isArray(w.$)?w.$.push(C):w.$=[w.$,C]:this._currentList.push({$:C})}},D.prototype._isAttrNode=function(C){return"@"in C},D.prototype._isTextNode=function(C){return"#"in C},D.prototype._isCommentNode=function(C){return"!"in C},D.prototype._isInstructionNode=function(C){return"?"in C},D.prototype._isCDATANode=function(C){return"$"in C},D.prototype._isElementNode=function(C,w){return w in C},D.prototype._getAttrKey=function(){return this._builderOptions.convert.att},D.prototype._getNodeKey=function(C){switch(C){case v.NodeType.Comment:return this._builderOptions.convert.comment;case v.NodeType.Text:return this._builderOptions.convert.text;case v.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case v.NodeType.CData:return this._builderOptions.convert.cdata;default:throw new Error("Invalid node type.")}},D}(o(50).BaseWriter);n.ObjectWriter=T},function(i,n,o){"use strict";var l=o(4),u=o(93);l({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function u(){this._items={},this._nullItems={}}return e(u,"e"),u.prototype.set=function(p,h){p===null?this._nullItems[h]=!0:(this._items[p]||(this._items[p]={}),this._items[p][h]=!0)},u.prototype.has=function(p,h){return p===null?this._nullItems[h]===!0:!!this._items[p]&&this._items[p][h]===!0},u}();n.LocalNameSet=l},function(i,n,o){"use strict";var l=this&&this.__read||function(T,E){var D=typeof Symbol=="function"&&T[Symbol.iterator];if(!D)return T;var C,w,W=D.call(T),V=[];try{for(;(E===void 0||E-- >0)&&!(C=W.next()).done;)V.push(C.value)}catch(B){w={error:B}}finally{try{C&&!C.done&&(D=W.return)&&D.call(W)}finally{if(w)throw w.error}}return V};Object.defineProperty(n,"__esModule",{value:!0});var u=o(9),p=o(3),h=o(0),v=function(){function T(){}return e(T,"e"),Object.defineProperty(T.prototype,"_eventListenerList",{get:e(function(){return this.__eventListenerList||(this.__eventListenerList=[])},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(T.prototype,"_eventHandlerMap",{get:e(function(){return this.__eventHandlerMap||(this.__eventHandlerMap={})},"get"),enumerable:!0,configurable:!0}),T.prototype.addEventListener=function(E,D,C){C===void 0&&(C={passive:!1,once:!1,capture:!1});var w,W=l(h.eventTarget_flattenMore(C),3),V=W[0],B=W[1],k=W[2];D&&(w=p.Guard.isEventListener(D)?D:{handleEvent:D},h.eventTarget_addEventListener(this,{type:E,callback:w,capture:V,passive:B,once:k,removed:!1}))},T.prototype.removeEventListener=function(E,D,C){C===void 0&&(C={capture:!1});var w=h.eventTarget_flatten(C);if(D)for(var W=0;W<this._eventListenerList.length;W++){var V=this._eventListenerList[W];if(V.type===E&&V.capture===w){if(p.Guard.isEventListener(D)&&V.callback===D){h.eventTarget_removeEventListener(this,V,W);break}if(D&&V.callback.handleEvent===D){h.eventTarget_removeEventListener(this,V,W);break}}}},T.prototype.dispatchEvent=function(E){if(E._dispatchFlag||!E._initializedFlag)throw new u.InvalidStateError;return E._isTrusted=!1,h.event_dispatch(E,this)},T.prototype._getTheParent=function(E){return null},T}();n.EventTargetImpl=v},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(T,E){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var w in C)C.hasOwnProperty(w)&&(D[w]=C[w])})(T,E)},"n"),function(T,E){function D(){this.constructor=T}e(D,"r"),l(T,E),T.prototype=E===null?Object.create(E):(D.prototype=E.prototype,new D)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(34),h=o(0),v=function(T){function E(D){var C=T.call(this)||this;return C._data=D,C}return e(E,"t"),u(E,T),Object.defineProperty(E.prototype,"data",{get:e(function(){return this._data},"get"),set:e(function(D){h.characterData_replaceData(this,0,this._data.length,D)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:e(function(){return this._data.length},"get"),enumerable:!0,configurable:!0}),E.prototype.substringData=function(D,C){return h.characterData_substringData(this,D,C)},E.prototype.appendData=function(D){return h.characterData_replaceData(this,this._data.length,0,D)},E.prototype.insertData=function(D,C){h.characterData_replaceData(this,D,0,C)},E.prototype.deleteData=function(D,C){h.characterData_replaceData(this,D,C,"")},E.prototype.replaceData=function(D,C,w){h.characterData_replaceData(this,D,C,w)},Object.defineProperty(E.prototype,"previousElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"nextElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),E.prototype.before=function(){for(var D=[],C=0;C<arguments.length;C++)D[C]=arguments[C];throw new Error("Mixin: ChildNode not implemented.")},E.prototype.after=function(){for(var D=[],C=0;C<arguments.length;C++)D[C]=arguments[C];throw new Error("Mixin: ChildNode not implemented.")},E.prototype.replaceWith=function(){for(var D=[],C=0;C<arguments.length;C++)D[C]=arguments[C];throw new Error("Mixin: ChildNode not implemented.")},E.prototype.remove=function(){throw new Error("Mixin: ChildNode not implemented.")},E}(p.NodeImpl);n.CharacterDataImpl=v},function(i,n,o){"use strict";var l=this&&this.__values||function(B){var k=typeof Symbol=="function"&&Symbol.iterator,F=k&&B[k],$=0;if(F)return F.call(B);if(B&&typeof B.length=="number")return{next:e(function(){return B&&$>=B.length&&(B=void 0),{value:B&&B[$++],done:!B}},"next")};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(B,k){var F=typeof Symbol=="function"&&B[Symbol.iterator];if(!F)return B;var $,Y,ie=F.call(B),fe=[];try{for(;(k===void 0||k-- >0)&&!($=ie.next()).done;)fe.push($.value)}catch(ve){Y={error:ve}}finally{try{$&&!$.done&&(F=ie.return)&&F.call(ie)}finally{if(Y)throw Y.error}}return fe},p=this&&this.__spread||function(){for(var B=[],k=0;k<arguments.length;k++)B=B.concat(u(arguments[k]));return B};Object.defineProperty(n,"__esModule",{value:!0});var h=o(6),v=o(3),T=o(2),E=o(17),D=o(51);function C(B){h.dom.window._signalSlots.add(B),D.observer_queueAMutationObserverMicrotask()}e(C,"h");function w(B,k){k===void 0&&(k=!1);var F=v.Cast.asNode(B)._parent;if(F===null)return null;var $=F._shadowRoot||null;if($===null||k&&$._mode!=="open")return null;for(var Y=E.tree_getFirstDescendantNode($,!1,!0,function(ie){return v.Guard.isSlot(ie)});Y!==null;){if(Y._name===B._name)return Y;Y=E.tree_getNextDescendantNode($,Y,!1,!0,function(ie){return v.Guard.isSlot(ie)})}return null}e(w,"p");function W(B){var k,F,$=[],Y=E.tree_rootNode(B);if(!v.Guard.isShadowRoot(Y))return $;var ie=Y._host;try{for(var fe=l(ie._children),ve=fe.next();!ve.done;ve=fe.next()){var Ce=ve.value;v.Guard.isSlotable(Ce)&&w(Ce)===B&&$.push(Ce)}}catch(be){k={error:be}}finally{try{ve&&!ve.done&&(F=fe.return)&&F.call(fe)}finally{if(k)throw k.error}}return $}e(W,"f");function V(B){var k,F,$=W(B);if($.length===B._assignedNodes.length){for(var Y=!0,ie=0;ie<$.length;ie++)if($[ie]!==B._assignedNodes[ie]){Y=!1;break}Y||C(B)}B._assignedNodes=$;try{for(var fe=l($),ve=fe.next();!ve.done;ve=fe.next())ve.value._assignedSlot=B}catch(Ce){k={error:Ce}}finally{try{ve&&!ve.done&&(F=fe.return)&&F.call(fe)}finally{if(k)throw k.error}}}e(V,"d"),n.shadowTree_signalASlotChange=C,n.shadowTree_isConnected=function(B){return v.Guard.isDocumentNode(E.tree_rootNode(B,!0))},n.shadowTree_isAssigned=function(B){return B._assignedSlot!==null},n.shadowTree_findASlot=w,n.shadowTree_findSlotables=W,n.shadowTree_findFlattenedSlotables=e(function B(k){var F,$,Y,ie,fe=[],ve=E.tree_rootNode(k);if(!v.Guard.isShadowRoot(ve))return fe;var Ce=W(k);if(T.isEmpty(Ce))try{for(var be=l(k._children),qe=be.next();!qe.done;qe=be.next()){var yt=qe.value;v.Guard.isSlotable(yt)&&Ce.push(yt)}}catch(Sn){F={error:Sn}}finally{try{qe&&!qe.done&&($=be.return)&&$.call(be)}finally{if(F)throw F.error}}try{for(var Ct=l(Ce),Bt=Ct.next();!Bt.done;Bt=Ct.next()){var fn=Bt.value;if(v.Guard.isSlot(fn)&&v.Guard.isShadowRoot(E.tree_rootNode(fn))){var Fn=B(fn);fe.push.apply(fe,p(Fn))}else fe.push(fn)}}catch(Sn){Y={error:Sn}}finally{try{Bt&&!Bt.done&&(ie=Ct.return)&&ie.call(Ct)}finally{if(Y)throw Y.error}}return fe},"e"),n.shadowTree_assignSlotables=V,n.shadowTree_assignSlotablesForATree=function(B){for(var k=E.tree_getFirstDescendantNode(B,!0,!1,function(F){return v.Guard.isSlot(F)});k!==null;)V(k),k=E.tree_getNextDescendantNode(B,k,!0,!1,function(F){return v.Guard.isSlot(F)})},n.shadowTree_assignASlot=function(B){var k=w(B);k!==null&&V(k)}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=/[a-z]([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*/,u=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),p=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]),h=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),v=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]);n.customElement_isValidCustomElementName=function(T){return!!l.test(T)&&!u.has(T)},n.customElement_isValidElementName=function(T){return p.has(T)},n.customElement_isVoidElementName=function(T){return h.has(T)},n.customElement_isValidShadowHostName=function(T){return v.has(T)},n.customElement_enqueueACustomElementUpgradeReaction=function(T,E){},n.customElement_enqueueACustomElementCallbackReaction=function(T,E,D){},n.customElement_upgrade=function(T,E){},n.customElement_tryToUpgrade=function(T){},n.customElement_lookUpACustomElementDefinition=function(T,E,D,C){return null}},function(i,n,o){o(4)({target:"String",proto:!0},{repeat:o(260)})},function(i,n,o){"use strict";o(279),o(68),o(179),o(94),Object.defineProperty(n,"__esModule",{value:!0});var l=o(109),u=function(){function p(h){this._builderOptions=h,h.parser&&Object.assign(this,h.parser)}return e(p,"e"),p.prototype._docType=function(h,v,T,E){return h.dtd({name:v,pubID:T,sysID:E})},p.prototype._comment=function(h,v){return h.com(v)},p.prototype._text=function(h,v){return h.txt(v)},p.prototype._instruction=function(h,v,T){return h.ins(v,T)},p.prototype._cdata=function(h,v){return h.dat(v)},p.prototype._element=function(h,v,T){return v===void 0?h.ele(T):h.ele(v,T)},p.prototype._attribute=function(h,v,T,E){return v===void 0?h.att(T,E):h.att(v,T,E)},p.prototype._sanitize=function(h){return l.sanitizeInput(h,this._builderOptions.invalidCharReplacement)},p.prototype._decodeText=function(h){return h==null?h:h.replace(/&(quot|amp|apos|lt|gt);/g,function(v,T){return p._entityTable[T]}).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,function(v,T,E){return String.fromCodePoint(parseInt(T||E,T?16:10))})},p.prototype._decodeAttributeValue=function(h){return this._decodeText(h)},p.prototype.parse=function(h,v){return this._parse(h,v)},p.prototype.docType=function(h,v,T,E){return this._docType(h,v,T,E)},p.prototype.comment=function(h,v){return this._comment(h,v)},p.prototype.text=function(h,v){return this._text(h,v)},p.prototype.instruction=function(h,v,T){return this._instruction(h,v,T)},p.prototype.cdata=function(h,v){return this._cdata(h,v)},p.prototype.element=function(h,v,T){return this._element(h,v,T)},p.prototype.attribute=function(h,v,T,E){return this._attribute(h,v,T,E)},p.prototype.sanitize=function(h){return this._sanitize(h)},p._entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},p}();n.BaseReader=u},function(i,n,o){"use strict";var l=o(39);i.exports=l.DEFAULT=new l({include:[o(54)],explicit:[o(300),o(301),o(302)]})},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(185);n.XMLBuilderImpl=l.XMLBuilderImpl;var u=o(305);n.XMLBuilderCBImpl=u.XMLBuilderCBImpl;var p=o(183);n.builder=p.builder,n.create=p.create,n.fragment=p.fragment,n.convert=p.convert;var h=o(310);n.createCB=h.createCB,n.fragmentCB=h.fragmentCB},function(i,n){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}i.exports=o},function(i,n,o){"use strict";var l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,p=u&&!l.call({1:2},1);n.f=p?function(h){var v=u(this,h);return!!v&&v.enumerable}:l},function(i,n,o){var l=o(11),u=o(21);i.exports=function(p,h){try{u(l,p,h)}catch{l[p]=h}return h}},function(i,n,o){var l=o(44),u=o(118);(i.exports=function(p,h){return u[p]||(u[p]=h!==void 0?h:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(i,n,o){var l=o(121),u=o(84).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(p){return l(p,u)}},function(i,n,o){var l=o(47),u=Math.max,p=Math.min;i.exports=function(h,v){var T=l(h);return T<0?u(T+v,0):p(T,v)}},function(i,n){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,n){n.f=Object.getOwnPropertySymbols},function(i,n,o){var l=o(8);i.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},function(i,n,o){var l=o(127);i.exports=function(u,p,h){if(l(u),p===void 0)return u;switch(h){case 0:return function(){return u.call(p)};case 1:return function(v){return u.call(p,v)};case 2:return function(v,T){return u.call(p,v,T)};case 3:return function(v,T,E){return u.call(p,v,T,E)}}return function(){return u.apply(p,arguments)}}},function(i,n,o){"use strict";var l=o(4),u=o(195),p=o(132),h=o(133),v=o(62),T=o(21),E=o(25),D=o(5),C=o(44),w=o(49),W=o(131),V=W.IteratorPrototype,B=W.BUGGY_SAFARI_ITERATORS,k=D("iterator"),F=e(function(){return this},"v");i.exports=function($,Y,ie,fe,ve,Ce,be){u(ie,Y,fe);var qe,yt,Ct,Bt=e(function(Kt){if(Kt===ve&&on)return on;if(!B&&Kt in Sn)return Sn[Kt];switch(Kt){case"keys":case"values":case"entries":return function(){return new ie(this,Kt)}}return function(){return new ie(this)}},"E"),fn=Y+" Iterator",Fn=!1,Sn=$.prototype,Qt=Sn[k]||Sn["@@iterator"]||ve&&Sn[ve],on=!B&&Qt||Bt(ve),It=Y=="Array"&&Sn.entries||Qt;if(It&&(qe=p(It.call(new $)),V!==Object.prototype&&qe.next&&(C||p(qe)===V||(h?h(qe,V):typeof qe[k]!="function"&&T(qe,k,F)),v(qe,fn,!0,!0),C&&(w[fn]=F))),ve=="values"&&Qt&&Qt.name!=="values"&&(Fn=!0,on=e(function(){return Qt.call(this)},"N")),C&&!be||Sn[k]===on||T(Sn,k,on),w[Y]=on,ve)if(yt={values:Bt("values"),keys:Ce?on:Bt("keys"),entries:Bt("entries")},be)for(Ct in yt)(B||Fn||!(Ct in Sn))&&E(Sn,Ct,yt[Ct]);else l({target:Y,proto:!0,forced:B||Fn},yt);return yt}},function(i,n,o){"use strict";var l=o(4),u=o(13),p=o(59),h=o(83),v=o(26),T=o(24),E=o(134),D=o(5),C=o(63),w=o(28),W=C("slice"),V=w("slice",{ACCESSORS:!0,0:0,1:2}),B=D("species"),k=[].slice,F=Math.max;l({target:"Array",proto:!0,forced:!W||!V},{slice:e(function($,Y){var ie,fe,ve,Ce=T(this),be=v(Ce.length),qe=h($,be),yt=h(Y===void 0?be:Y,be);if(p(Ce)&&(typeof(ie=Ce.constructor)!="function"||ie!==Array&&!p(ie.prototype)?u(ie)&&(ie=ie[B])===null&&(ie=void 0):ie=void 0,ie===Array||ie===void 0))return k.call(Ce,qe,yt);for(fe=new(ie===void 0?Array:ie)(F(yt-qe,0)),ve=0;qe<yt;qe++,ve++)qe in Ce&&E(fe,ve,Ce[qe]);return fe.length=ve,fe},"slice")})},function(i,n,o){var l={};l[o(5)("toStringTag")]="z",i.exports=String(l)==="[object z]"},function(i,n,o){"use strict";o(19),o(138),o(20),o(92),o(22),o(23),Object.defineProperty(n,"__esModule",{value:!0}),n.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0},n.XMLBuilderOptionKeys=new Set(Object.keys(n.DefaultBuilderOptions)),n.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:`
31141
31141
  `,offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}}},function(i,n,o){"use strict";var l=o(139),u=o(143);i.exports=l("Set",function(p){return function(){return p(this,arguments.length?arguments[0]:void 0)}},u)},function(i,n,o){"use strict";var l,u,p=o(136),h=o(221),v=RegExp.prototype.exec,T=String.prototype.replace,E=v,D=(l=/a/,u=/b*/g,v.call(l,"a"),v.call(u,"a"),l.lastIndex!==0||u.lastIndex!==0),C=h.UNSUPPORTED_Y||h.BROKEN_CARET,w=/()??/.exec("")[1]!==void 0;(D||w||C)&&(E=e(function(W){var V,B,k,F,$=this,Y=C&&$.sticky,ie=p.call($),fe=$.source,ve=0,Ce=W;return Y&&((ie=ie.replace("y","")).indexOf("g")===-1&&(ie+="g"),Ce=String(W).slice($.lastIndex),$.lastIndex>0&&(!$.multiline||$.multiline&&W[$.lastIndex-1]!==`
31142
31142
  `)&&(fe="(?: "+fe+")",Ce=" "+Ce,ve++),B=new RegExp("^(?:"+fe+")",ie)),w&&(B=new RegExp("^"+fe+"$(?!\\s)",ie)),D&&(V=$.lastIndex),k=v.call(Y?B:$,Ce),Y?k?(k.input=k.input.slice(ve),k[0]=k[0].slice(ve),k.index=$.lastIndex,$.lastIndex+=k[0].length):$.lastIndex=0:D&&k&&($.lastIndex=$.global?k.index+k[0].length:V),w&&k&&k.length>1&&T.call(k[0],B,function(){for(F=1;F<arguments.length-2;F++)arguments[F]===void 0&&(k[F]=void 0)}),k},"l")),i.exports=E},function(i,n,o){"use strict";var l=o(225),u=o(18),p=o(27),h=o(26),v=o(47),T=o(35),E=o(226),D=o(227),C=Math.max,w=Math.min,W=Math.floor,V=/\$([$&'`]|\d\d?|<[^>]*>)/g,B=/\$([$&'`]|\d\d?)/g;l("replace",2,function(k,F,$,Y){var ie=Y.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,fe=Y.REPLACE_KEEPS_$0,ve=ie?"$":"$0";return[function(be,qe){var yt=T(this),Ct=be?.[k];return Ct!==void 0?Ct.call(be,yt,qe):F.call(String(yt),be,qe)},function(be,qe){if(!ie&&fe||typeof qe=="string"&&qe.indexOf(ve)===-1){var yt=$(F,be,this,qe);if(yt.done)return yt.value}var Ct=u(be),Bt=String(this),fn=typeof qe=="function";fn||(qe=String(qe));var Fn=Ct.global;if(Fn){var Sn=Ct.unicode;Ct.lastIndex=0}for(var Qt=[];;){var on=D(Ct,Bt);if(on===null||(Qt.push(on),!Fn))break;String(on[0])===""&&(Ct.lastIndex=E(Bt,h(Ct.lastIndex),Sn))}for(var It,Kt="",ht=0,wn=0;wn<Qt.length;wn++){on=Qt[wn];for(var Gn=String(on[0]),_n=C(w(v(on.index),Bt.length),0),Bn=[],cr=1;cr<on.length;cr++)Bn.push((It=on[cr])===void 0?It:String(It));var Yt=on.groups;if(fn){var Ft=[Gn].concat(Bn,_n,Bt);Yt!==void 0&&Ft.push(Yt);var pt=String(qe.apply(void 0,Ft))}else pt=Ce(Gn,Bt,_n,Bn,Yt,qe);_n>=ht&&(Kt+=Bt.slice(ht,_n)+pt,ht=_n+Gn.length)}return Kt+Bt.slice(ht)}];function Ce(be,qe,yt,Ct,Bt,fn){var Fn=yt+be.length,Sn=Ct.length,Qt=B;return Bt!==void 0&&(Bt=p(Bt),Qt=V),F.call(fn,Qt,function(on,It){var Kt;switch(It.charAt(0)){case"$":return"$";case"&":return be;case"`":return qe.slice(0,yt);case"'":return qe.slice(Fn);case"<":Kt=Bt[It.slice(1,-1)];break;default:var ht=+It;if(ht===0)return on;if(ht>Sn){var wn=W(ht/10);return wn===0?on:wn<=Sn?Ct[wn-1]===void 0?It.charAt(1):Ct[wn-1]+It.charAt(1):on}Kt=Ct[ht-1]}return Kt===void 0?"":Kt})}})},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function u(){this._items={},this._nullItems=[]}return e(u,"e"),u.prototype.copy=function(){var p=new u;for(var h in this._items)p._items[h]=this._items[h].slice(0);return p._nullItems=this._nullItems.slice(0),p},u.prototype.get=function(p,h){var v=h===null?this._nullItems:this._items[h]||null;if(v===null)return null;for(var T=null,E=0;E<v.length;E++)if((T=v[E])===p)return T;return T},u.prototype.has=function(p,h){var v=h===null?this._nullItems:this._items[h]||null;return v!==null&&v.indexOf(p)!==-1},u.prototype.hasPrefix=function(p){if(this._nullItems.indexOf(p)!==-1)return!0;for(var h in this._items)if(this._items[h].indexOf(p)!==-1)return!0;return!1},u.prototype.set=function(p,h){var v=h===null?this._nullItems:this._items[h]||null;h!==null&&v===null?this._items[h]=[p]:v.push(p)},u}();n.NamespacePrefixMap=l},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Surrogate=/[\uD800-\uDFFF]/,n.ScalarValue=/[\uD800-\uDFFF]/,n.NonCharacter=/[\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]/,n.ASCIICodePoint=/[\u0000-\u007F]/,n.ASCIITabOrNewLine=/[\t\n\r]/,n.ASCIIWhiteSpace=/[\t\n\f\r ]/,n.C0Control=/[\u0000-\u001F]/,n.C0ControlOrSpace=/[\u0000-\u001F ]/,n.Control=/[\u0000-\u001F\u007F-\u009F]/,n.ASCIIDigit=/[0-9]/,n.ASCIIUpperHexDigit=/[0-9A-F]/,n.ASCIILowerHexDigit=/[0-9a-f]/,n.ASCIIHexDigit=/[0-9A-Fa-f]/,n.ASCIIUpperAlpha=/[A-Z]/,n.ASCIILowerAlpha=/[a-z]/,n.ASCIIAlpha=/[A-Za-z]/,n.ASCIIAlphanumeric=/[0-9A-Za-z]/},function(i,n,o){"use strict";var l=this&&this.__values||function(qe){var yt=typeof Symbol=="function"&&Symbol.iterator,Ct=yt&&qe[yt],Bt=0;if(Ct)return Ct.call(qe);if(qe&&typeof qe.length=="number")return{next:e(function(){return qe&&Bt>=qe.length&&(qe=void 0),{value:qe&&qe[Bt++],done:!qe}},"next")};throw new TypeError(yt?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(qe,yt){var Ct=typeof Symbol=="function"&&qe[Symbol.iterator];if(!Ct)return qe;var Bt,fn,Fn=Ct.call(qe),Sn=[];try{for(;(yt===void 0||yt-- >0)&&!(Bt=Fn.next()).done;)Sn.push(Bt.value)}catch(Qt){fn={error:Qt}}finally{try{Bt&&!Bt.done&&(Ct=Fn.return)&&Ct.call(Fn)}finally{if(fn)throw fn.error}}return Sn},p=this&&this.__spread||function(){for(var qe=[],yt=0;yt<arguments.length;yt++)qe=qe.concat(u(arguments[yt]));return qe};Object.defineProperty(n,"__esModule",{value:!0});var h=o(6),v=o(1),T=o(3),E=o(171),D=o(104),C=o(9),w=o(17),W=o(72),V=o(30);function B(qe,yt){yt===void 0&&(yt=void 0),yt===void 0&&(yt=null);var Ct=k(qe,yt,new Date,{});return Ct._isTrusted=!0,Ct}e(B,"m");function k(qe,yt,Ct,Bt){var fn=new qe("");return fn._initializedFlag=!0,fn._timeStamp=Ct.getTime(),Object.assign(fn,Bt),h.dom.features.steps&&V.dom_runEventConstructingSteps(fn),fn}e(k,"y");function F(qe,yt,Ct,Bt){var fn,Fn,Sn,Qt;Ct===void 0&&(Ct=!1),Bt===void 0&&(Bt={value:!1});var on=!1;qe._dispatchFlag=!0;var It=yt;if(Ct){var Kt=yt._associatedDocument;T.Guard.isDocumentNode(Kt)&&(It=Kt)}var ht=null,wn=w.tree_retarget(qe._relatedTarget,yt);if(yt!==wn||yt===qe._relatedTarget){var Gn=[];try{for(var _n=l(qe._touchTargetList),Bn=_n.next();!Bn.done;Bn=_n.next()){var cr=Bn.value;Gn.push(w.tree_retarget(cr,yt))}}catch(ga){fn={error:ga}}finally{try{Bn&&!Bn.done&&(Fn=_n.return)&&Fn.call(_n)}finally{if(fn)throw fn.error}}$(qe,yt,It,wn,Gn,!1);var Yt=T.Guard.isMouseEvent(qe)&&qe._type==="click";Yt&&yt._activationBehavior!==void 0&&(ht=yt);for(var Ft=T.Guard.isSlotable(yt)&&W.shadowTree_isAssigned(yt)?yt:null,pt=!1,me=yt._getTheParent(qe);me!==null&&T.Guard.isNode(me);){if(Ft!==null){if(!T.Guard.isSlot(me))throw new Error("Parent node of a slotable should be a slot.");Ft=null;var zt=w.tree_rootNode(me,!0);T.Guard.isShadowRoot(zt)&&zt._mode==="closed"&&(pt=!0)}T.Guard.isSlotable(me)&&W.shadowTree_isAssigned(me)&&(Ft=me),wn=w.tree_retarget(qe._relatedTarget,me),Gn=[];try{for(var Tt=(Sn=void 0,l(qe._touchTargetList)),tn=Tt.next();!tn.done;tn=Tt.next())cr=tn.value,Gn.push(w.tree_retarget(cr,me))}catch(ga){Sn={error:ga}}finally{try{tn&&!tn.done&&(Qt=Tt.return)&&Qt.call(Tt)}finally{if(Sn)throw Sn.error}}T.Guard.isWindow(me)||T.Guard.isNode(me)&&T.Guard.isNode(yt)&&w.tree_isAncestorOf(w.tree_rootNode(yt,!0),me,!0,!0)?(Yt&&qe._bubbles&&ht===null&&me._activationBehavior&&(ht=me),$(qe,me,null,wn,Gn,pt)):me===wn?me=null:(yt=me,Yt&&ht===null&&yt._activationBehavior&&(ht=yt),$(qe,me,yt,wn,Gn,pt)),me!==null&&(me=me._getTheParent(qe)),pt=!1}for(var En=null,Kn=qe._path,Gr=Kn.length-1;Gr>=0;Gr--)if((yn=Kn[Gr]).shadowAdjustedTarget!==null){En=yn;break}if(En!==null)if(T.Guard.isNode(En.shadowAdjustedTarget)&&T.Guard.isShadowRoot(w.tree_rootNode(En.shadowAdjustedTarget,!0)))on=!0;else if(T.Guard.isNode(En.relatedTarget)&&T.Guard.isShadowRoot(w.tree_rootNode(En.relatedTarget,!0)))on=!0;else for(var Ir=0;Ir<En.touchTargetList.length;Ir++){var yn=En.touchTargetList[Ir];if(T.Guard.isNode(yn)&&T.Guard.isShadowRoot(w.tree_rootNode(yn,!0))){on=!0;break}}for(ht!==null&&ht._legacyPreActivationBehavior!==void 0&&ht._legacyPreActivationBehavior(qe),Gr=Kn.length-1;Gr>=0;Gr--)(yn=Kn[Gr]).shadowAdjustedTarget!==null?qe._eventPhase=v.EventPhase.AtTarget:qe._eventPhase=v.EventPhase.Capturing,Y(yn,qe,"capturing",Bt);for(Gr=0;Gr<Kn.length;Gr++){if((yn=Kn[Gr]).shadowAdjustedTarget!==null)qe._eventPhase=v.EventPhase.AtTarget;else{if(!qe._bubbles)continue;qe._eventPhase=v.EventPhase.Bubbling}Y(yn,qe,"bubbling",Bt)}}return qe._eventPhase=v.EventPhase.None,qe._currentTarget=null,qe._path=[],qe._dispatchFlag=!1,qe._stopPropagationFlag=!1,qe._stopImmediatePropagationFlag=!1,on&&(qe._target=null,qe._relatedTarget=null,qe._touchTargetList=[]),ht!==null&&(qe._canceledFlag||ht._activationBehavior===void 0?ht._legacyCanceledActivationBehavior!==void 0&&ht._legacyCanceledActivationBehavior(qe):ht._activationBehavior(qe)),!qe._canceledFlag}e(F,"v");function $(qe,yt,Ct,Bt,fn,Fn){var Sn=!1;T.Guard.isNode(yt)&&T.Guard.isShadowRoot(w.tree_rootNode(yt))&&(Sn=!0);var Qt=!1;T.Guard.isShadowRoot(yt)&&yt._mode==="closed"&&(Qt=!0),qe._path.push({invocationTarget:yt,invocationTargetInShadowTree:Sn,shadowAdjustedTarget:Ct,relatedTarget:Bt,touchTargetList:fn,rootOfClosedTree:Qt,slotInClosedTree:Fn})}e($,"_");function Y(qe,yt,Ct,Bt){Bt===void 0&&(Bt={value:!1});for(var fn=yt._path,Fn=-1,Sn=0;Sn<fn.length;Sn++)if(fn[Sn]===qe){Fn=Sn;break}if(Fn!==-1){var Qt=fn[Fn];(Qt.shadowAdjustedTarget!==null||Fn>0&&(Qt=fn[Fn-1]).shadowAdjustedTarget!==null)&&(yt._target=Qt.shadowAdjustedTarget)}if(yt._relatedTarget=qe.relatedTarget,yt._touchTargetList=qe.touchTargetList,!yt._stopPropagationFlag){yt._currentTarget=qe.invocationTarget;var on=yt._currentTarget._eventListenerList,It=new(Array.bind.apply(Array,p([void 0],on)));if(!ie(yt,It,Ct,qe,Bt)&&yt._isTrusted){var Kt=yt._type;Kt==="animationend"?yt._type="webkitAnimationEnd":Kt==="animationiteration"?yt._type="webkitAnimationIteration":Kt==="animationstart"?yt._type="webkitAnimationStart":Kt==="transitionend"&&(yt._type="webkitTransitionEnd"),ie(yt,It,Ct,qe,Bt),yt._type=Kt}}}e(Y,"g");function ie(qe,yt,Ct,Bt,fn){fn===void 0&&(fn={value:!1});for(var Fn=!1,Sn=0;Sn<yt.length;Sn++){var Qt=yt[Sn];if(!Qt.removed){if(qe._type!==Qt.type||(Fn=!0,Ct==="capturing"&&!Qt.capture)||Ct==="bubbling"&&Qt.capture)continue;if(Qt.once&&qe._currentTarget!==null){for(var on=qe._currentTarget,It=-1,Kt=0;Kt<on._eventListenerList.length;Kt++)if(on._eventListenerList[Kt]===Qt){It=Kt;break}It!==-1&&on._eventListenerList.splice(It,1)}var ht=void 0,wn=void 0;T.Guard.isWindow(ht)&&(wn=ht._currentEvent,Bt.invocationTargetInShadowTree===!1&&(ht._currentEvent=qe)),Qt.passive&&(qe._inPassiveListenerFlag=!0);try{Qt.callback.handleEvent.call(qe._currentTarget,qe)}catch{fn.value=!0}if(Qt.passive&&(qe._inPassiveListenerFlag=!1),T.Guard.isWindow(ht)&&(ht._currentEvent=wn),qe._stopImmediatePropagationFlag)return Fn}}return Fn}e(ie,"b");function fe(qe,yt){return null}e(fe,"x");function ve(qe,yt){return null}e(ve,"w");function Ce(qe,yt){}e(Ce,"E");function be(qe,yt){}e(be,"D"),n.event_setTheCanceledFlag=function(qe){qe._cancelable&&!qe._inPassiveListenerFlag&&(qe._canceledFlag=!0)},n.event_initialize=function(qe,yt,Ct,Bt){qe._initializedFlag=!0,qe._stopPropagationFlag=!1,qe._stopImmediatePropagationFlag=!1,qe._canceledFlag=!1,qe._isTrusted=!1,qe._target=null,qe._type=yt,qe._bubbles=Ct,qe._cancelable=Bt},n.event_createAnEvent=B,n.event_innerEventCreationSteps=k,n.event_dispatch=F,n.event_appendToAnEventPath=$,n.event_invoke=Y,n.event_innerInvoke=ie,n.event_fireAnEvent=function(qe,yt,Ct,Bt,fn){Ct===void 0&&(Ct=D.EventImpl);var Fn=B(Ct);if(Fn._type=qe,Bt)for(var Sn in Bt)Fn[Sn]=Bt[Sn];return F(Fn,yt,fn)},n.event_createLegacyEvent=function(qe){var yt=null;switch(qe.toLowerCase()){case"beforeunloadevent":case"compositionevent":break;case"customevent":yt=E.CustomEventImpl;break;case"devicemotionevent":case"deviceorientationevent":case"dragevent":break;case"event":case"events":yt=D.EventImpl}if(yt===null)throw new C.NotSupportedError("Event constructor not found for interface "+qe+".");var Ct=new yt("");return Ct._type="",Ct._timeStamp=new Date().getTime(),Ct._isTrusted=!1,Ct._initializedFlag=!1,Ct},n.event_getterEventHandlerIDLAttribute=function(qe,yt){return null},n.event_setterEventHandlerIDLAttribute=function(qe,yt,Ct){},n.event_determineTheTargetOfAnEventHandler=fe,n.event_getTheCurrentValueOfAnEventHandler=ve,n.event_activateAnEventHandler=Ce,n.event_deactivateAnEventHandler=be},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function($,Y){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,fe){ie.__proto__=fe}||function(ie,fe){for(var ve in fe)fe.hasOwnProperty(ve)&&(ie[ve]=fe[ve])})($,Y)},"n"),function($,Y){function ie(){this.constructor=$}e(ie,"r"),l($,Y),$.prototype=Y===null?Object.create(Y):(ie.prototype=Y.prototype,new ie)}),p=this&&this.__values||function($){var Y=typeof Symbol=="function"&&Symbol.iterator,ie=Y&&$[Y],fe=0;if(ie)return ie.call($);if($&&typeof $.length=="number")return{next:e(function(){return $&&fe>=$.length&&($=void 0),{value:$&&$[fe++],done:!$}},"next")};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function($,Y){var ie=typeof Symbol=="function"&&$[Symbol.iterator];if(!ie)return $;var fe,ve,Ce=ie.call($),be=[];try{for(;(Y===void 0||Y-- >0)&&!(fe=Ce.next()).done;)be.push(fe.value)}catch(qe){ve={error:qe}}finally{try{fe&&!fe.done&&(ie=Ce.return)&&ie.call(Ce)}finally{if(ve)throw ve.error}}return be};Object.defineProperty(n,"__esModule",{value:!0});var v=o(6),T=o(1),E=o(9),D=o(34),C=o(3),w=o(2),W=o(7),V=o(152),B=o(0),k=o(12),F=function($){function Y(){var ie=$.call(this)||this;return ie._children=new Set,ie._encoding={name:"UTF-8",labels:["unicode-1-1-utf-8","utf-8","utf8"]},ie._contentType="application/xml",ie._URL={scheme:"about",username:"",password:"",host:null,port:null,path:["blank"],query:null,fragment:null,_cannotBeABaseURLFlag:!0,_blobURLEntry:null},ie._origin=null,ie._type="xml",ie._mode="no-quirks",ie._documentElement=null,ie._hasNamespaces=!1,ie._nodeDocumentOverwrite=null,ie}return e(Y,"t"),u(Y,$),Object.defineProperty(Y.prototype,"_nodeDocument",{get:e(function(){return this._nodeDocumentOverwrite||this},"get"),set:e(function(ie){this._nodeDocumentOverwrite=ie},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"implementation",{get:e(function(){return this._implementation||(this._implementation=B.create_domImplementation(this))},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"URL",{get:e(function(){return V.urlSerializer(this._URL)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"documentURI",{get:e(function(){return this.URL},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"origin",{get:e(function(){return"null"},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"compatMode",{get:e(function(){return this._mode==="quirks"?"BackCompat":"CSS1Compat"},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"characterSet",{get:e(function(){return this._encoding.name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"charset",{get:e(function(){return this._encoding.name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"inputEncoding",{get:e(function(){return this._encoding.name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"contentType",{get:e(function(){return this._contentType},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"doctype",{get:e(function(){var ie,fe;try{for(var ve=p(this._children),Ce=ve.next();!Ce.done;Ce=ve.next()){var be=Ce.value;if(C.Guard.isDocumentTypeNode(be))return be}}catch(qe){ie={error:qe}}finally{try{Ce&&!Ce.done&&(fe=ve.return)&&fe.call(ve)}finally{if(ie)throw ie.error}}return null},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"documentElement",{get:e(function(){return this._documentElement},"get"),enumerable:!0,configurable:!0}),Y.prototype.getElementsByTagName=function(ie){return B.node_listOfElementsWithQualifiedName(ie,this)},Y.prototype.getElementsByTagNameNS=function(ie,fe){return B.node_listOfElementsWithNamespace(ie,fe,this)},Y.prototype.getElementsByClassName=function(ie){return B.node_listOfElementsWithClassNames(ie,this)},Y.prototype.createElement=function(ie,fe){if(!B.xml_isName(ie))throw new E.InvalidCharacterError;this._type==="html"&&(ie=ie.toLowerCase());var ve=null;fe!==void 0&&(ve=w.isString(fe)?fe:fe.is);var Ce=this._type==="html"||this._contentType==="application/xhtml+xml"?W.namespace.HTML:null;return B.element_createAnElement(this,ie,Ce,null,ve,!0)},Y.prototype.createElementNS=function(ie,fe,ve){return B.document_internalCreateElementNS(this,ie,fe,ve)},Y.prototype.createDocumentFragment=function(){return B.create_documentFragment(this)},Y.prototype.createTextNode=function(ie){return B.create_text(this,ie)},Y.prototype.createCDATASection=function(ie){if(this._type==="html")throw new E.NotSupportedError;if(ie.indexOf("]]>")!==-1)throw new E.InvalidCharacterError;return B.create_cdataSection(this,ie)},Y.prototype.createComment=function(ie){return B.create_comment(this,ie)},Y.prototype.createProcessingInstruction=function(ie,fe){if(!B.xml_isName(ie))throw new E.InvalidCharacterError;if(fe.indexOf("?>")!==-1)throw new E.InvalidCharacterError;return B.create_processingInstruction(this,ie,fe)},Y.prototype.importNode=function(ie,fe){if(fe===void 0&&(fe=!1),C.Guard.isDocumentNode(ie)||C.Guard.isShadowRoot(ie))throw new E.NotSupportedError;return B.node_clone(ie,this,fe)},Y.prototype.adoptNode=function(ie){if(C.Guard.isDocumentNode(ie))throw new E.NotSupportedError;if(C.Guard.isShadowRoot(ie))throw new E.HierarchyRequestError;return B.document_adopt(ie,this),ie},Y.prototype.createAttribute=function(ie){if(!B.xml_isName(ie))throw new E.InvalidCharacterError;return this._type==="html"&&(ie=ie.toLowerCase()),B.create_attr(this,ie)},Y.prototype.createAttributeNS=function(ie,fe){var ve=h(B.namespace_validateAndExtract(ie,fe),3),Ce=ve[0],be=ve[1],qe=ve[2],yt=B.create_attr(this,qe);return yt._namespace=Ce,yt._namespacePrefix=be,yt},Y.prototype.createEvent=function(ie){return B.event_createLegacyEvent(ie)},Y.prototype.createRange=function(){var ie=B.create_range();return ie._start=[this,0],ie._end=[this,0],ie},Y.prototype.createNodeIterator=function(ie,fe,ve){fe===void 0&&(fe=T.WhatToShow.All),ve===void 0&&(ve=null);var Ce=B.create_nodeIterator(ie,ie,!0);return Ce._whatToShow=fe,Ce._iteratorCollection=B.create_nodeList(ie),w.isFunction(ve)?(Ce._filter=B.create_nodeFilter(),Ce._filter.acceptNode=ve):Ce._filter=ve,Ce},Y.prototype.createTreeWalker=function(ie,fe,ve){fe===void 0&&(fe=T.WhatToShow.All),ve===void 0&&(ve=null);var Ce=B.create_treeWalker(ie,ie);return Ce._whatToShow=fe,w.isFunction(ve)?(Ce._filter=B.create_nodeFilter(),Ce._filter.acceptNode=ve):Ce._filter=ve,Ce},Y.prototype._getTheParent=function(ie){return ie._type==="load"?null:v.dom.window},Y.prototype.getElementById=function(ie){throw new Error("Mixin: NonElementParentNode not implemented.")},Object.defineProperty(Y.prototype,"children",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"firstElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"lastElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"childElementCount",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Y.prototype.prepend=function(){for(var ie=[],fe=0;fe<arguments.length;fe++)ie[fe]=arguments[fe];throw new Error("Mixin: ParentNode not implemented.")},Y.prototype.append=function(){for(var ie=[],fe=0;fe<arguments.length;fe++)ie[fe]=arguments[fe];throw new Error("Mixin: ParentNode not implemented.")},Y.prototype.querySelector=function(ie){throw new Error("Mixin: ParentNode not implemented.")},Y.prototype.querySelectorAll=function(ie){throw new Error("Mixin: ParentNode not implemented.")},Y}(D.NodeImpl);n.DocumentImpl=F,k.idl_defineConst(F.prototype,"_nodeType",T.NodeType.Document)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(V,B){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,F){k.__proto__=F}||function(k,F){for(var $ in F)F.hasOwnProperty($)&&(k[$]=F[$])})(V,B)},"n"),function(V,B){function k(){this.constructor=V}e(k,"r"),l(V,B),V.prototype=B===null?Object.create(B):(k.prototype=B.prototype,new k)}),p=this&&this.__values||function(V){var B=typeof Symbol=="function"&&Symbol.iterator,k=B&&V[B],F=0;if(k)return k.call(V);if(V&&typeof V.length=="number")return{next:e(function(){return V&&F>=V.length&&(V=void 0),{value:V&&V[F++],done:!V}},"next")};throw new TypeError(B?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(V,B){var k=typeof Symbol=="function"&&V[Symbol.iterator];if(!k)return V;var F,$,Y=k.call(V),ie=[];try{for(;(B===void 0||B-- >0)&&!(F=Y.next()).done;)ie.push(F.value)}catch(fe){$={error:fe}}finally{try{F&&!F.done&&(k=Y.return)&&k.call(Y)}finally{if($)throw $.error}}return ie};Object.defineProperty(n,"__esModule",{value:!0});var v=o(1),T=o(34),E=o(9),D=o(7),C=o(0),w=o(12),W=function(V){function B(){var k=V.call(this)||this;return k._children=new Set,k._namespace=null,k._namespacePrefix=null,k._localName="",k._customElementState="undefined",k._customElementDefinition=null,k._is=null,k._shadowRoot=null,k._attributeList=C.create_namedNodeMap(k),k._attributeChangeSteps=[],k._name="",k._assignedSlot=null,k}return e(B,"t"),u(B,V),Object.defineProperty(B.prototype,"namespaceURI",{get:e(function(){return this._namespace},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"prefix",{get:e(function(){return this._namespacePrefix},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"localName",{get:e(function(){return this._localName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"tagName",{get:e(function(){return this._htmlUppercasedQualifiedName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"id",{get:e(function(){return C.element_getAnAttributeValue(this,"id")},"get"),set:e(function(k){C.element_setAnAttributeValue(this,"id",k)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"className",{get:e(function(){return C.element_getAnAttributeValue(this,"class")},"get"),set:e(function(k){C.element_setAnAttributeValue(this,"class",k)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"classList",{get:e(function(){var k=C.element_getAnAttributeByName("class",this);return k===null&&(k=C.create_attr(this._nodeDocument,"class")),C.create_domTokenList(this,k)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"slot",{get:e(function(){return C.element_getAnAttributeValue(this,"slot")},"get"),set:e(function(k){C.element_setAnAttributeValue(this,"slot",k)},"set"),enumerable:!0,configurable:!0}),B.prototype.hasAttributes=function(){return this._attributeList.length!==0},Object.defineProperty(B.prototype,"attributes",{get:e(function(){return this._attributeList},"get"),enumerable:!0,configurable:!0}),B.prototype.getAttributeNames=function(){var k,F,$=[];try{for(var Y=p(this._attributeList),ie=Y.next();!ie.done;ie=Y.next()){var fe=ie.value;$.push(fe._qualifiedName)}}catch(ve){k={error:ve}}finally{try{ie&&!ie.done&&(F=Y.return)&&F.call(Y)}finally{if(k)throw k.error}}return $},B.prototype.getAttribute=function(k){var F=C.element_getAnAttributeByName(k,this);return F?F._value:null},B.prototype.getAttributeNS=function(k,F){var $=C.element_getAnAttributeByNamespaceAndLocalName(k,F,this);return $?$._value:null},B.prototype.setAttribute=function(k,F){if(!C.xml_isName(k))throw new E.InvalidCharacterError;this._namespace===D.namespace.HTML&&this._nodeDocument._type==="html"&&(k=k.toLowerCase());for(var $=null,Y=0;Y<this._attributeList.length;Y++){var ie=this._attributeList[Y];if(ie._qualifiedName===k){$=ie;break}}if($===null)return($=C.create_attr(this._nodeDocument,k))._value=F,void C.element_append($,this);C.element_change($,this,F)},B.prototype.setAttributeNS=function(k,F,$){var Y=h(C.namespace_validateAndExtract(k,F),3),ie=Y[0],fe=Y[1],ve=Y[2];C.element_setAnAttributeValue(this,ve,$,fe,ie)},B.prototype.removeAttribute=function(k){C.element_removeAnAttributeByName(k,this)},B.prototype.removeAttributeNS=function(k,F){C.element_removeAnAttributeByNamespaceAndLocalName(k,F,this)},B.prototype.hasAttribute=function(k){this._namespace===D.namespace.HTML&&this._nodeDocument._type==="html"&&(k=k.toLowerCase());for(var F=0;F<this._attributeList.length;F++)if(this._attributeList[F]._qualifiedName===k)return!0;return!1},B.prototype.toggleAttribute=function(k,F){if(!C.xml_isName(k))throw new E.InvalidCharacterError;this._namespace===D.namespace.HTML&&this._nodeDocument._type==="html"&&(k=k.toLowerCase());for(var $=null,Y=0;Y<this._attributeList.length;Y++){var ie=this._attributeList[Y];if(ie._qualifiedName===k){$=ie;break}}return $===null?(F===void 0||F===!0)&&(($=C.create_attr(this._nodeDocument,k))._value="",C.element_append($,this),!0):F!==void 0&&F!==!1||(C.element_removeAnAttributeByName(k,this),!1)},B.prototype.hasAttributeNS=function(k,F){for(var $=k||null,Y=0;Y<this._attributeList.length;Y++){var ie=this._attributeList[Y];if(ie._namespace===$&&ie._localName===F)return!0}return!1},B.prototype.getAttributeNode=function(k){return C.element_getAnAttributeByName(k,this)},B.prototype.getAttributeNodeNS=function(k,F){return C.element_getAnAttributeByNamespaceAndLocalName(k,F,this)},B.prototype.setAttributeNode=function(k){return C.element_setAnAttribute(k,this)},B.prototype.setAttributeNodeNS=function(k){return C.element_setAnAttribute(k,this)},B.prototype.removeAttributeNode=function(k){for(var F=!1,$=0;$<this._attributeList.length;$++)if(this._attributeList[$]===k){F=!0;break}if(!F)throw new E.NotFoundError;return C.element_remove(k,this),k},B.prototype.attachShadow=function(k){if(this._namespace!==D.namespace.HTML)throw new E.NotSupportedError;if(!C.customElement_isValidCustomElementName(this._localName)&&!C.customElement_isValidShadowHostName(this._localName))throw new E.NotSupportedError;if(C.customElement_isValidCustomElementName(this._localName)||this._is!==null){var F=C.customElement_lookUpACustomElementDefinition(this._nodeDocument,this._namespace,this._localName,this._is);if(F!==null&&F.disableShadow===!0)throw new E.NotSupportedError}if(this._shadowRoot!==null)throw new E.NotSupportedError;var $=C.create_shadowRoot(this._nodeDocument,this);return $._mode=k.mode,this._shadowRoot=$,$},Object.defineProperty(B.prototype,"shadowRoot",{get:e(function(){var k=this._shadowRoot;return k===null||k.mode==="closed"?null:k},"get"),enumerable:!0,configurable:!0}),B.prototype.closest=function(k){throw new E.NotImplementedError},B.prototype.matches=function(k){throw new E.NotImplementedError},B.prototype.webkitMatchesSelector=function(k){return this.matches(k)},B.prototype.getElementsByTagName=function(k){return C.node_listOfElementsWithQualifiedName(k,this)},B.prototype.getElementsByTagNameNS=function(k,F){return C.node_listOfElementsWithNamespace(k,F,this)},B.prototype.getElementsByClassName=function(k){return C.node_listOfElementsWithClassNames(k,this)},B.prototype.insertAdjacentElement=function(k,F){return C.element_insertAdjacent(this,k,F)},B.prototype.insertAdjacentText=function(k,F){var $=C.create_text(this._nodeDocument,F);C.element_insertAdjacent(this,k,$)},Object.defineProperty(B.prototype,"_qualifiedName",{get:e(function(){return this._namespacePrefix?this._namespacePrefix+":"+this._localName:this._localName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"_htmlUppercasedQualifiedName",{get:e(function(){var k=this._qualifiedName;return this._namespace===D.namespace.HTML&&this._nodeDocument._type==="html"&&(k=k.toUpperCase()),k},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"children",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"firstElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"lastElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"childElementCount",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),B.prototype.prepend=function(){for(var k=[],F=0;F<arguments.length;F++)k[F]=arguments[F];throw new Error("Mixin: ParentNode not implemented.")},B.prototype.append=function(){for(var k=[],F=0;F<arguments.length;F++)k[F]=arguments[F];throw new Error("Mixin: ParentNode not implemented.")},B.prototype.querySelector=function(k){throw new Error("Mixin: ParentNode not implemented.")},B.prototype.querySelectorAll=function(k){throw new Error("Mixin: ParentNode not implemented.")},Object.defineProperty(B.prototype,"previousElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(B.prototype,"nextElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),B.prototype.before=function(){for(var k=[],F=0;F<arguments.length;F++)k[F]=arguments[F];throw new Error("Mixin: ChildNode not implemented.")},B.prototype.after=function(){for(var k=[],F=0;F<arguments.length;F++)k[F]=arguments[F];throw new Error("Mixin: ChildNode not implemented.")},B.prototype.replaceWith=function(){for(var k=[],F=0;F<arguments.length;F++)k[F]=arguments[F];throw new Error("Mixin: ChildNode not implemented.")},B.prototype.remove=function(){throw new Error("Mixin: ChildNode not implemented.")},Object.defineProperty(B.prototype,"assignedSlot",{get:e(function(){throw new Error("Mixin: Slotable not implemented.")},"get"),enumerable:!0,configurable:!0}),B._create=function(k,F,$,Y){$===void 0&&($=null),Y===void 0&&(Y=null);var ie=new B;return ie._localName=F,ie._namespace=$,ie._namespacePrefix=Y,ie._nodeDocument=k,ie},B}(T.NodeImpl);n.ElementImpl=W,w.idl_defineConst(W.prototype,"_nodeType",v.NodeType.Element)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(1),h=o(34),v=o(12),T=function(E){function D(C){C===void 0&&(C=null);var w=E.call(this)||this;return w._children=new Set,w._host=C,w}return e(D,"t"),u(D,E),D.prototype.getElementById=function(C){throw new Error("Mixin: NonElementParentNode not implemented.")},Object.defineProperty(D.prototype,"children",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"firstElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"lastElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"childElementCount",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),D.prototype.prepend=function(){for(var C=[],w=0;w<arguments.length;w++)C[w]=arguments[w];throw new Error("Mixin: ParentNode not implemented.")},D.prototype.append=function(){for(var C=[],w=0;w<arguments.length;w++)C[w]=arguments[w];throw new Error("Mixin: ParentNode not implemented.")},D.prototype.querySelector=function(C){throw new Error("Mixin: ParentNode not implemented.")},D.prototype.querySelectorAll=function(C){throw new Error("Mixin: ParentNode not implemented.")},D._create=function(C,w){w===void 0&&(w=null);var W=new D(w);return W._nodeDocument=C,W},D}(h.NodeImpl);n.DocumentFragmentImpl=T,v.idl_defineConst(T.prototype,"_nodeType",p.NodeType.DocumentFragment)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(C,w){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,V){W.__proto__=V}||function(W,V){for(var B in V)V.hasOwnProperty(B)&&(W[B]=V[B])})(C,w)},"n"),function(C,w){function W(){this.constructor=C}e(W,"r"),l(C,w),C.prototype=w===null?Object.create(w):(W.prototype=w.prototype,new W)}),p=this&&this.__values||function(C){var w=typeof Symbol=="function"&&Symbol.iterator,W=w&&C[w],V=0;if(W)return W.call(C);if(C&&typeof C.length=="number")return{next:e(function(){return C&&V>=C.length&&(C=void 0),{value:C&&C[V++],done:!C}},"next")};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var h=o(1),v=o(71),T=o(0),E=o(12),D=function(C){function w(W){W===void 0&&(W="");var V=C.call(this,W)||this;return V._name="",V._assignedSlot=null,V}return e(w,"t"),u(w,C),Object.defineProperty(w.prototype,"wholeText",{get:e(function(){var W,V,B="";try{for(var k=p(T.text_contiguousTextNodes(this,!0)),F=k.next();!F.done;F=k.next())B+=F.value._data}catch($){W={error:$}}finally{try{F&&!F.done&&(V=k.return)&&V.call(k)}finally{if(W)throw W.error}}return B},"get"),enumerable:!0,configurable:!0}),w.prototype.splitText=function(W){return T.text_split(this,W)},Object.defineProperty(w.prototype,"assignedSlot",{get:e(function(){throw new Error("Mixin: Slotable not implemented.")},"get"),enumerable:!0,configurable:!0}),w._create=function(W,V){V===void 0&&(V="");var B=new w(V);return B._nodeDocument=W,B},w}(v.CharacterDataImpl);n.TextImpl=D,E.idl_defineConst(D.prototype,"_nodeType",h.NodeType.Text)},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function u(){}return e(u,"e"),Object.defineProperty(u.prototype,"_startNode",{get:e(function(){return this._start[0]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_startOffset",{get:e(function(){return this._start[1]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_endNode",{get:e(function(){return this._end[0]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_endOffset",{get:e(function(){return this._end[1]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"_collapsed",{get:e(function(){return this._start[0]===this._end[0]&&this._start[1]===this._end[1]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"startContainer",{get:e(function(){return this._startNode},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"startOffset",{get:e(function(){return this._startOffset},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endContainer",{get:e(function(){return this._endNode},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endOffset",{get:e(function(){return this._endOffset},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"collapsed",{get:e(function(){return this._collapsed},"get"),enumerable:!0,configurable:!0}),u}();n.AbstractRangeImpl=l},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(1),u=function(){function p(h){this._activeFlag=!1,this._root=h,this._whatToShow=l.WhatToShow.All,this._filter=null}return e(p,"e"),Object.defineProperty(p.prototype,"root",{get:e(function(){return this._root},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"whatToShow",{get:e(function(){return this._whatToShow},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"filter",{get:e(function(){return this._filter},"get"),enumerable:!0,configurable:!0}),p}();n.TraverserImpl=u},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(1),u=o(0),p=o(12),h=function(){function v(T,E){this._target=null,this._relatedTarget=null,this._touchTargetList=[],this._path=[],this._currentTarget=null,this._eventPhase=l.EventPhase.None,this._stopPropagationFlag=!1,this._stopImmediatePropagationFlag=!1,this._canceledFlag=!1,this._inPassiveListenerFlag=!1,this._composedFlag=!1,this._initializedFlag=!1,this._dispatchFlag=!1,this._isTrusted=!1,this._bubbles=!1,this._cancelable=!1,this._type=T,E&&(this._bubbles=E.bubbles||!1,this._cancelable=E.cancelable||!1,this._composedFlag=E.composed||!1),this._initializedFlag=!0,this._timeStamp=new Date().getTime()}return e(v,"e"),Object.defineProperty(v.prototype,"type",{get:e(function(){return this._type},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"target",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"srcElement",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"currentTarget",{get:e(function(){return this._currentTarget},"get"),enumerable:!0,configurable:!0}),v.prototype.composedPath=function(){var T=[],E=this._path;if(E.length===0)return T;var D=this._currentTarget;if(D===null)throw new Error("Event currentTarget is null.");T.push(D);for(var C=0,w=0,W=E.length-1;W>=0;){if(E[W].rootOfClosedTree&&w++,E[W].invocationTarget===D){C=W;break}E[W].slotInClosedTree&&w--,W--}var V=w,B=w;for(W=C-1;W>=0;)E[W].rootOfClosedTree&&V++,V<=B&&T.unshift(E[W].invocationTarget),E[W].slotInClosedTree&&--V<B&&(B=V),W--;for(V=w,B=w,W=C+1;W<E.length;)E[W].slotInClosedTree&&V++,V<=B&&T.push(E[W].invocationTarget),E[W].rootOfClosedTree&&--V<B&&(B=V),W++;return T},Object.defineProperty(v.prototype,"eventPhase",{get:e(function(){return this._eventPhase},"get"),enumerable:!0,configurable:!0}),v.prototype.stopPropagation=function(){this._stopPropagationFlag=!0},Object.defineProperty(v.prototype,"cancelBubble",{get:e(function(){return this._stopPropagationFlag},"get"),set:e(function(T){T&&this.stopPropagation()},"set"),enumerable:!0,configurable:!0}),v.prototype.stopImmediatePropagation=function(){this._stopPropagationFlag=!0,this._stopImmediatePropagationFlag=!0},Object.defineProperty(v.prototype,"bubbles",{get:e(function(){return this._bubbles},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"cancelable",{get:e(function(){return this._cancelable},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"returnValue",{get:e(function(){return!this._canceledFlag},"get"),set:e(function(T){T||u.event_setTheCanceledFlag(this)},"set"),enumerable:!0,configurable:!0}),v.prototype.preventDefault=function(){u.event_setTheCanceledFlag(this)},Object.defineProperty(v.prototype,"defaultPrevented",{get:e(function(){return this._canceledFlag},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"composed",{get:e(function(){return this._composedFlag},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"isTrusted",{get:e(function(){return this._isTrusted},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"timeStamp",{get:e(function(){return this._timeStamp},"get"),enumerable:!0,configurable:!0}),v.prototype.initEvent=function(T,E,D){E===void 0&&(E=!1),D===void 0&&(D=!1),this._dispatchFlag||u.event_initialize(this,T,E,D)},v.NONE=0,v.CAPTURING_PHASE=1,v.AT_TARGET=2,v.BUBBLING_PHASE=3,v}();n.EventImpl=h,p.idl_defineConst(h.prototype,"NONE",0),p.idl_defineConst(h.prototype,"CAPTURING_PHASE",1),p.idl_defineConst(h.prototype,"AT_TARGET",2),p.idl_defineConst(h.prototype,"BUBBLING_PHASE",3)},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(1),u=o(9);n.traversal_filter=function(p,h){if(p._activeFlag)throw new u.InvalidStateError;var v=1<<h._nodeType-1;if(!(p.whatToShow&v))return l.FilterResult.Skip;if(!p.filter)return l.FilterResult.Accept;p._activeFlag=!0;var T=l.FilterResult.Reject;try{T=p.filter.acceptNode(h)}catch(E){throw p._activeFlag=!1,E}return p._activeFlag=!1,T}},function(i,n,o){"use strict";var l=this&&this.__read||function(B,k){var F=typeof Symbol=="function"&&B[Symbol.iterator];if(!F)return B;var $,Y,ie=F.call(B),fe=[];try{for(;(k===void 0||k-- >0)&&!($=ie.next()).done;)fe.push($.value)}catch(ve){Y={error:ve}}finally{try{$&&!$.done&&(F=ie.return)&&F.call(ie)}finally{if(Y)throw Y.error}}return fe},u=this&&this.__values||function(B){var k=typeof Symbol=="function"&&Symbol.iterator,F=k&&B[k],$=0;if(F)return F.call(B);if(B&&typeof B.length=="number")return{next:e(function(){return B&&$>=B.length&&(B=void 0),{value:B&&B[$++],done:!B}},"next")};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var p=o(6),h=o(3),v=o(2),T=o(99),E=o(73),D=o(17),C=o(173),w=o(30),W=o(52),V=o(37);n.document_elementInterface=function(B,k){return T.ElementImpl},n.document_internalCreateElementNS=function(B,k,F,$){var Y=l(C.namespace_validateAndExtract(k,F),3),ie=Y[0],fe=Y[1],ve=Y[2],Ce=null;return $!==void 0&&(Ce=v.isString($)?$:$.is),W.element_createAnElement(B,ve,ie,fe,Ce,!0)},n.document_adopt=function(B,k){var F,$;if(B._nodeDocument!==k||B._parent!==null){var Y=B._nodeDocument;if(B._parent&&V.mutation_remove(B,B._parent),k!==Y)for(var ie=D.tree_getFirstDescendantNode(B,!0,!0);ie!==null;){if(ie._nodeDocument=k,h.Guard.isElementNode(ie))try{for(var fe=(F=void 0,u(ie._attributeList._asArray())),ve=fe.next();!ve.done;ve=fe.next())ve.value._nodeDocument=k}catch(Ce){F={error:Ce}}finally{try{ve&&!ve.done&&($=fe.return)&&$.call(fe)}finally{if(F)throw F.error}}p.dom.features.customElements&&h.Guard.isElementNode(ie)&&ie._customElementState==="custom"&&E.customElement_enqueueACustomElementCallbackReaction(ie,"adoptedCallback",[Y,k]),p.dom.features.steps&&w.dom_runAdoptingSteps(ie,Y),ie=D.tree_getNextDescendantNode(B,ie,!0,!0)}}}},function(i,n,o){"use strict";var l=this&&this.__values||function(D){var C=typeof Symbol=="function"&&Symbol.iterator,w=C&&D[C],W=0;if(w)return w.call(D);if(D&&typeof D.length=="number")return{next:e(function(){return D&&W>=D.length&&(D=void 0),{value:D&&D[W++],done:!D}},"next")};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(3),h=o(9),v=o(17),T=o(51),E=o(30);n.characterData_replaceData=function(D,C,w,W){var V,B,k=v.tree_nodeLength(D);if(C>k)throw new h.IndexSizeError("Offset exceeds character data length. Offset: "+C+", Length: "+k+", Node is "+D.nodeName+".");C+w>k&&(w=k-C),u.dom.features.mutationObservers&&T.observer_queueMutationRecord("characterData",D,null,null,D._data,[],[],null,null);var F=D._data.substring(0,C)+W+D._data.substring(C+w);D._data=F;try{for(var $=l(u.dom.rangeList),Y=$.next();!Y.done;Y=$.next()){var ie=Y.value;ie._start[0]===D&&ie._start[1]>C&&ie._start[1]<=C+w&&(ie._start[1]=C),ie._end[0]===D&&ie._end[1]>C&&ie._end[1]<=C+w&&(ie._end[1]=C),ie._start[0]===D&&ie._start[1]>C+w&&(ie._start[1]+=W.length-w),ie._end[0]===D&&ie._end[1]>C+w&&(ie._end[1]+=W.length-w)}}catch(fe){V={error:fe}}finally{try{Y&&!Y.done&&(B=$.return)&&B.call($)}finally{if(V)throw V.error}}u.dom.features.steps&&p.Guard.isTextNode(D)&&D._parent!==null&&E.dom_runChildTextContentChangeSteps(D._parent)},n.characterData_substringData=function(D,C,w){var W=v.tree_nodeLength(D);if(C>W)throw new h.IndexSizeError("Offset exceeds character data length. Offset: "+C+", Length: "+W+", Node is "+D.nodeName+".");return C+w>W?D._data.substr(C):D._data.substr(C,w)}},function(i,n,o){"use strict";var l=this&&this.__read||function(E,D){var C=typeof Symbol=="function"&&E[Symbol.iterator];if(!C)return E;var w,W,V=C.call(E),B=[];try{for(;(D===void 0||D-- >0)&&!(w=V.next()).done;)B.push(w.value)}catch(k){W={error:k}}finally{try{w&&!w.done&&(C=V.return)&&C.call(V)}finally{if(W)throw W.error}}return B},u=this&&this.__spread||function(){for(var E=[],D=0;D<arguments.length;D++)E=E.concat(l(arguments[D]));return E},p=this&&this.__values||function(E){var D=typeof Symbol=="function"&&Symbol.iterator,C=D&&E[D],w=0;if(C)return C.call(E);if(E&&typeof E.length=="number")return{next:e(function(){return E&&w>=E.length&&(E=void 0),{value:E&&E[w++],done:!E}},"next")};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var h=o(7);function v(E){var D=h.string.splitAStringOnASCIIWhitespace(E);return new Set(D)}e(v,"s");function T(E){return u(E).join(" ")}e(T,"u"),n.orderedSet_parse=v,n.orderedSet_serialize=T,n.orderedSet_sanitize=function(E){return T(v(E))},n.orderedSet_contains=function(E,D,C){var w,W,V,B;try{for(var k=p(D),F=k.next();!F.done;F=k.next()){var $=F.value,Y=!1;try{for(var ie=(V=void 0,p(E)),fe=ie.next();!fe.done;fe=ie.next()){var ve=fe.value;if(C){if(ve===$){Y=!0;break}}else if(ve.toUpperCase()===$.toUpperCase()){Y=!0;break}}}catch(Ce){V={error:Ce}}finally{try{fe&&!fe.done&&(B=ie.return)&&B.call(ie)}finally{if(V)throw V.error}}if(!Y)return!1}}catch(Ce){w={error:Ce}}finally{try{F&&!F.done&&(W=k.return)&&W.call(k)}finally{if(w)throw w.error}}return!0}},function(i,n,o){"use strict";o(179),Object.defineProperty(n,"__esModule",{value:!0});var l=o(263),u=o(110),p=o(2);u.dom.setFeatures(!1),n.createDocument=function(){var h=new l.DOMImplementation().createDocument(null,"root",null);return h.documentElement&&h.removeChild(h.documentElement),h},n.sanitizeInput=function(h,v){if(h==null)return h;if(v===void 0)return h+"";var T="";h+="";for(var E=0;E<h.length;E++){var D=h.charCodeAt(E);if(D===9||D===10||D===13||D>=32&&D<=55295||D>=57344&&D<=65533)T+=h.charAt(E);else if(D>=55296&&D<=56319&&E<h.length-1){var C=h.charCodeAt(E+1);C>=56320&&C<=57343?(D=1024*(D-55296)+C-56320+65536,T+=String.fromCodePoint(D),E++):T+=p.isString(v)?v:v(h.charAt(E),E,h)}else T+=p.isString(v)?v:v(h.charAt(E),E,h)}return T}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(2),u=o(153);n.AbortController=u.AbortControllerImpl;var p=o(154);n.AbortSignal=p.AbortSignalImpl;var h=o(102);n.AbstractRange=h.AbstractRangeImpl;var v=o(157);n.Attr=v.AttrImpl;var T=o(158);n.CDATASection=T.CDATASectionImpl;var E=o(71);n.CharacterData=E.CharacterDataImpl;var D=o(264),C=o(159);n.Comment=C.CommentImpl;var w=o(171);n.CustomEvent=w.CustomEventImpl;var W=o(100);n.DocumentFragment=W.DocumentFragmentImpl;var V=o(98);n.Document=V.DocumentImpl;var B=o(265),k=o(155);n.DocumentType=k.DocumentTypeImpl;var F=o(6);n.dom=F.dom;var $=o(148);n.DOMImplementation=$.DOMImplementationImpl;var Y=o(170);n.DOMTokenList=Y.DOMTokenListImpl;var ie=o(99);n.Element=ie.ElementImpl;var fe=o(104);n.Event=fe.EventImpl;var ve=o(70);n.EventTarget=ve.EventTargetImpl;var Ce=o(161);n.HTMLCollection=Ce.HTMLCollectionImpl;var be=o(266);n.MutationObserver=be.MutationObserverImpl;var qe=o(169);n.MutationRecord=qe.MutationRecordImpl;var yt=o(164);n.NamedNodeMap=yt.NamedNodeMapImpl;var Ct=o(168);n.NodeFilter=Ct.NodeFilterImpl;var Bt=o(34);n.Node=Bt.NodeImpl;var fn=o(166);n.NodeIterator=fn.NodeIteratorImpl;var Fn=o(162);n.NodeList=Fn.NodeListImpl;var Sn=o(163);n.NodeListStatic=Sn.NodeListStaticImpl;var Qt=o(267),on=o(268),It=o(269),Kt=o(160);n.ProcessingInstruction=Kt.ProcessingInstructionImpl;var ht=o(165);n.Range=ht.RangeImpl;var wn=o(156);n.ShadowRoot=wn.ShadowRootImpl;var Gn=o(270),_n=o(271);n.StaticRange=_n.StaticRangeImpl;var Bn=o(101);n.Text=Bn.TextImpl;var cr=o(103);n.Traverser=cr.TraverserImpl;var Yt=o(167);n.TreeWalker=Yt.TreeWalkerImpl;var Ft=o(149);n.Window=Ft.WindowImpl;var pt=o(151);n.XMLDocument=pt.XMLDocumentImpl,l.applyMixin(ie.ElementImpl,D.ChildNodeImpl),l.applyMixin(E.CharacterDataImpl,D.ChildNodeImpl),l.applyMixin(k.DocumentTypeImpl,D.ChildNodeImpl),l.applyMixin(V.DocumentImpl,B.DocumentOrShadowRootImpl),l.applyMixin(wn.ShadowRootImpl,B.DocumentOrShadowRootImpl),l.applyMixin(ie.ElementImpl,Qt.NonDocumentTypeChildNodeImpl),l.applyMixin(E.CharacterDataImpl,Qt.NonDocumentTypeChildNodeImpl),l.applyMixin(V.DocumentImpl,on.NonElementParentNodeImpl),l.applyMixin(W.DocumentFragmentImpl,on.NonElementParentNodeImpl),l.applyMixin(V.DocumentImpl,It.ParentNodeImpl),l.applyMixin(W.DocumentFragmentImpl,It.ParentNodeImpl),l.applyMixin(ie.ElementImpl,It.ParentNodeImpl),l.applyMixin(Bn.TextImpl,Gn.SlotableImpl),l.applyMixin(ie.ElementImpl,Gn.SlotableImpl)},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(l){l[l.EOF=0]="EOF",l[l.Declaration=1]="Declaration",l[l.DocType=2]="DocType",l[l.Element=3]="Element",l[l.Text=4]="Text",l[l.CDATA=5]="CDATA",l[l.PI=6]="PI",l[l.Comment=7]="Comment",l[l.ClosingTag=8]="ClosingTag"}(n.TokenType||(n.TokenType={}))},function(i,n,o){"use strict";o(64),o(20),o(66);var l,u=this&&this.__extends||(l=e(function(v,T){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,D){E.__proto__=D}||function(E,D){for(var C in D)D.hasOwnProperty(C)&&(E[C]=D[C])})(v,T)},"n"),function(v,T){function E(){this.constructor=v}e(E,"r"),l(v,T),v.prototype=T===null?Object.create(T):(E.prototype=T.prototype,new E)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(2),h=function(v){function T(){return v!==null&&v.apply(this,arguments)||this}return e(T,"t"),u(T,v),T.prototype._parse=function(E,D){var C=this,w=this._builderOptions,W=null;return p.isFunction(D)?W=this.parse(E,D.apply(this)):p.isArray(D)||p.isSet(D)?p.forEachArray(D,function(V){return W=C.parse(E,V)},this):p.isMap(D)||p.isObject(D)?p.forEachObject(D,function(V,B){if(p.isFunction(B)&&(B=B.apply(C)),w.ignoreConverters||V.indexOf(w.convert.att)!==0)if(w.ignoreConverters||V.indexOf(w.convert.text)!==0)if(w.ignoreConverters||V.indexOf(w.convert.cdata)!==0)if(w.ignoreConverters||V.indexOf(w.convert.comment)!==0)if(w.ignoreConverters||V.indexOf(w.convert.ins)!==0){if(!((p.isArray(B)||p.isSet(B))&&p.isEmpty(B))){if((p.isMap(B)||p.isObject(B))&&p.isEmpty(B))W=C.element(E,void 0,C.sanitize(V))||W;else if(w.keepNullNodes||B!=null)if(p.isArray(B)||p.isSet(B))p.forEachArray(B,function(ie){var fe={};fe[V]=ie,W=C.parse(E,fe)},C);else if(p.isMap(B)||p.isObject(B))(k=C.element(E,void 0,C.sanitize(V)))&&(W=k,C.parse(k,B));else if(B!=null&&B!==""){var k;(k=C.element(E,void 0,C.sanitize(V)))&&(W=k,C.text(k,C._decodeText(C.sanitize(B))))}else W=C.element(E,void 0,C.sanitize(V))||W}}else if(p.isString(B)){var F=B.indexOf(" "),$=F===-1?B:B.substr(0,F),Y=F===-1?"":B.substr(F+1);W=C.instruction(E,C.sanitize($),C.sanitize(Y))||W}else p.isArray(B)||p.isSet(B)?p.forEachArray(B,function(ie){var fe=ie.indexOf(" "),ve=fe===-1?ie:ie.substr(0,fe),Ce=fe===-1?"":ie.substr(fe+1);W=C.instruction(E,C.sanitize(ve),C.sanitize(Ce))||W},C):p.forEachObject(B,function(ie,fe){return W=C.instruction(E,C.sanitize(ie),C.sanitize(fe))||W},C);else p.isArray(B)||p.isSet(B)?p.forEachArray(B,function(ie){return W=C.comment(E,C.sanitize(ie))||W},C):W=C.comment(E,C.sanitize(B))||W;else p.isArray(B)||p.isSet(B)?p.forEachArray(B,function(ie){return W=C.cdata(E,C.sanitize(ie))||W},C):W=C.cdata(E,C.sanitize(B))||W;else W=p.isMap(B)||p.isObject(B)?C.parse(E,B):C.text(E,C._decodeText(C.sanitize(B)))||W;else if(V===w.convert.att){if(p.isArray(B)||p.isSet(B))throw new Error("Invalid attribute: "+B.toString()+". "+E._debugInfo());p.forEachObject(B,function(ie,fe){W=C.attribute(E,void 0,C.sanitize(ie),C._decodeAttributeValue(C.sanitize(fe)))||W})}else W=C.attribute(E,void 0,C.sanitize(V.substr(w.convert.att.length)),C._decodeAttributeValue(C.sanitize(B)))||W},this):(w.keepNullNodes||D!=null)&&(W=this.text(E,this._decodeText(this.sanitize(D)))||W),W||E},T}(o(75).BaseReader);n.ObjectReader=h},function(i,n,o){"use strict";var l=o(39);i.exports=new l({explicit:[o(287),o(288),o(289)]})},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=e(function(u){this.level=0,this._builderOptions=u,this._writerOptions=u},"n");n.BaseCBWriter=l},function(i,n,o){var l=o(16),u=o(8),p=o(116);i.exports=!l&&!u(function(){return Object.defineProperty(p("div"),"a",{get:e(function(){return 7},"get")}).a!=7})},function(i,n,o){var l=o(11),u=o(13),p=l.document,h=u(p)&&u(p.createElement);i.exports=function(v){return h?p.createElement(v):{}}},function(i,n,o){var l=o(118),u=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(p){return u.call(p)}),i.exports=l.inspectSource},function(i,n,o){var l=o(11),u=o(80),p=l["__core-js_shared__"]||u("__core-js_shared__",{});i.exports=p},function(i,n,o){var l=o(14),u=o(187),p=o(55),h=o(15);i.exports=function(v,T){for(var E=u(T),D=h.f,C=p.f,w=0;w<E.length;w++){var W=E[w];l(v,W)||D(v,W,C(T,W))}}},function(i,n,o){var l=o(11);i.exports=l},function(i,n,o){var l=o(14),u=o(24),p=o(122).indexOf,h=o(45);i.exports=function(v,T){var E,D=u(v),C=0,w=[];for(E in D)!l(h,E)&&l(D,E)&&w.push(E);for(;T.length>C;)l(D,E=T[C++])&&(~p(w,E)||w.push(E));return w}},function(i,n,o){var l=o(24),u=o(26),p=o(83),h=e(function(v){return function(T,E,D){var C,w=l(T),W=u(w.length),V=p(D,W);if(v&&E!=E){for(;W>V;)if((C=w[V++])!=C)return!0}else for(;W>V;V++)if((v||V in w)&&w[V]===E)return v||V||0;return!v&&-1}},"a");i.exports={includes:h(!0),indexOf:h(!1)}},function(i,n,o){var l=o(8),u=/#|\.prototype\./,p=e(function(D,C){var w=v[h(D)];return w==E||w!=T&&(typeof C=="function"?l(C):!!C)},"o"),h=p.normalize=function(D){return String(D).replace(u,".").toLowerCase()},v=p.data={},T=p.NATIVE="N",E=p.POLYFILL="P";i.exports=p},function(i,n,o){var l=o(86);i.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(i,n,o){var l=o(5);n.f=l},function(i,n,o){var l=o(120),u=o(14),p=o(125),h=o(15).f;i.exports=function(v){var T=l.Symbol||(l.Symbol={});u(T,v)||h(T,v,{value:p.f(v)})}},function(i,n){i.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},function(i,n,o){var l=o(13),u=o(59),p=o(5)("species");i.exports=function(h,v){var T;return u(h)&&(typeof(T=h.constructor)!="function"||T!==Array&&!u(T.prototype)?l(T)&&(T=T[p])===null&&(T=void 0):T=void 0),new(T===void 0?Array:T)(v===0?0:v)}},function(i,n,o){var l,u,p=o(11),h=o(193),v=p.process,T=v&&v.versions,E=T&&T.v8;E?u=(l=E.split("."))[0]+l[1]:h&&(!(l=h.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=h.match(/Chrome\/(\d+)/))&&(u=l[1]),i.exports=u&&+u},function(i,n,o){var l=o(5),u=o(60),p=o(15),h=l("unscopables"),v=Array.prototype;v[h]==null&&p.f(v,h,{configurable:!0,value:u(null)}),i.exports=function(T){v[h][T]=!0}},function(i,n,o){"use strict";var l,u,p,h=o(132),v=o(21),T=o(14),E=o(5),D=o(44),C=E("iterator"),w=!1;[].keys&&("next"in(p=[].keys())?(u=h(h(p)))!==Object.prototype&&(l=u):w=!0),l==null&&(l={}),D||T(l,C)||v(l,C,function(){return this}),i.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:w}},function(i,n,o){var l=o(14),u=o(27),p=o(57),h=o(196),v=p("IE_PROTO"),T=Object.prototype;i.exports=h?Object.getPrototypeOf:function(E){return E=u(E),l(E,v)?E[v]:typeof E.constructor=="function"&&E instanceof E.constructor?E.constructor.prototype:E instanceof Object?T:null}},function(i,n,o){var l=o(18),u=o(197);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,h=!1,v={};try{(p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(v,[]),h=v instanceof Array}catch{}return function(T,E){return l(T),u(E),h?p.call(T,E):T.__proto__=E,T}}():void 0)},function(i,n,o){"use strict";var l=o(56),u=o(15),p=o(40);i.exports=function(h,v,T){var E=l(v);E in h?u.f(h,E,p(0,T)):h[E]=T}},function(i,n,o){var l=o(90),u=o(42),p=o(5)("toStringTag"),h=u(function(){return arguments}())=="Arguments";i.exports=l?u:function(v){var T,E,D;return v===void 0?"Undefined":v===null?"Null":typeof(E=function(C,w){try{return C[w]}catch{}}(T=Object(v),p))=="string"?E:h?u(T):(D=u(T))=="Object"&&typeof T.callee=="function"?"Arguments":D}},function(i,n,o){"use strict";var l=o(18);i.exports=function(){var u=l(this),p="";return u.global&&(p+="g"),u.ignoreCase&&(p+="i"),u.multiline&&(p+="m"),u.dotAll&&(p+="s"),u.unicode&&(p+="u"),u.sticky&&(p+="y"),p}},function(i,n,o){var l=o(47),u=o(35),p=e(function(h){return function(v,T){var E,D,C=String(u(v)),w=l(T),W=C.length;return w<0||w>=W?h?"":void 0:(E=C.charCodeAt(w))<55296||E>56319||w+1===W||(D=C.charCodeAt(w+1))<56320||D>57343?h?C.charAt(w):E:h?C.slice(w,w+2):D-56320+(E-55296<<10)+65536}},"o");i.exports={codeAt:p(!1),charAt:p(!0)}},function(i,n,o){var l=o(4),u=o(27),p=o(61);l({target:"Object",stat:!0,forced:o(8)(function(){p(1)})},{keys:e(function(h){return p(u(h))},"keys")})},function(i,n,o){"use strict";var l=o(4),u=o(11),p=o(123),h=o(25),v=o(140),T=o(141),E=o(142),D=o(13),C=o(8),w=o(208),W=o(62),V=o(209);i.exports=function(B,k,F){var $=B.indexOf("Map")!==-1,Y=B.indexOf("Weak")!==-1,ie=$?"set":"add",fe=u[B],ve=fe&&fe.prototype,Ce=fe,be={},qe=e(function(Sn){var Qt=ve[Sn];h(ve,Sn,Sn=="add"?function(on){return Qt.call(this,on===0?0:on),this}:Sn=="delete"?function(on){return!(Y&&!D(on))&&Qt.call(this,on===0?0:on)}:Sn=="get"?function(on){return Y&&!D(on)?void 0:Qt.call(this,on===0?0:on)}:Sn=="has"?function(on){return!(Y&&!D(on))&&Qt.call(this,on===0?0:on)}:function(on,It){return Qt.call(this,on===0?0:on,It),this})},"w");if(p(B,typeof fe!="function"||!(Y||ve.forEach&&!C(function(){new fe().entries().next()}))))Ce=F.getConstructor(k,B,$,ie),v.REQUIRED=!0;else if(p(B,!0)){var yt=new Ce,Ct=yt[ie](Y?{}:-0,1)!=yt,Bt=C(function(){yt.has(1)}),fn=w(function(Sn){new fe(Sn)}),Fn=!Y&&C(function(){for(var Sn=new fe,Qt=5;Qt--;)Sn[ie](Qt,Qt);return!Sn.has(-0)});fn||((Ce=k(function(Sn,Qt){E(Sn,Ce,B);var on=V(new fe,Sn,Ce);return Qt!=null&&T(Qt,on[ie],on,$),on})).prototype=ve,ve.constructor=Ce),(Bt||Fn)&&(qe("delete"),qe("has"),$&&qe("get")),(Fn||Ct)&&qe(ie),Y&&ve.clear&&delete ve.clear}return be[B]=Ce,l({global:!0,forced:Ce!=fe},be),W(Ce,B),Y||F.setStrong(Ce,B,$),Ce}},function(i,n,o){var l=o(45),u=o(13),p=o(14),h=o(15).f,v=o(58),T=o(204),E=v("meta"),D=0,C=Object.isExtensible||function(){return!0},w=e(function(V){h(V,E,{value:{objectID:"O"+ ++D,weakData:{}}})},"p"),W=i.exports={REQUIRED:!1,fastKey:e(function(V,B){if(!u(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!p(V,E)){if(!C(V))return"F";if(!B)return"E";w(V)}return V[E].objectID},"fastKey"),getWeakData:e(function(V,B){if(!p(V,E)){if(!C(V))return!0;if(!B)return!1;w(V)}return V[E].weakData},"getWeakData"),onFreeze:e(function(V){return T&&W.REQUIRED&&C(V)&&!p(V,E)&&w(V),V},"onFreeze")};l[E]=!0},function(i,n,o){var l=o(18),u=o(205),p=o(26),h=o(87),v=o(206),T=o(207),E=e(function(D,C){this.stopped=D,this.result=C},"l");(i.exports=function(D,C,w,W,V){var B,k,F,$,Y,ie,fe,ve=h(C,w,W?2:1);if(V)B=D;else{if(typeof(k=v(D))!="function")throw TypeError("Target is not iterable");if(u(k)){for(F=0,$=p(D.length);$>F;F++)if((Y=W?ve(l(fe=D[F])[0],fe[1]):ve(D[F]))&&Y instanceof E)return Y;return new E(!1)}B=k.call(D)}for(ie=B.next;!(fe=ie.call(B)).done;)if(typeof(Y=T(B,ve,fe.value,W))=="object"&&Y&&Y instanceof E)return Y;return new E(!1)}).stop=function(D){return new E(!0,D)}},function(i,n){i.exports=function(o,l,u){if(!(o instanceof l))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return o}},function(i,n,o){"use strict";var l=o(15).f,u=o(60),p=o(210),h=o(87),v=o(142),T=o(141),E=o(88),D=o(211),C=o(16),w=o(140).fastKey,W=o(43),V=W.set,B=W.getterFor;i.exports={getConstructor:e(function(k,F,$,Y){var ie=k(function(be,qe){v(be,ie,F),V(be,{type:F,index:u(null),first:void 0,last:void 0,size:0}),C||(be.size=0),qe!=null&&T(qe,be[Y],be,$)}),fe=B(F),ve=e(function(be,qe,yt){var Ct,Bt,fn=fe(be),Fn=Ce(be,qe);return Fn?Fn.value=yt:(fn.last=Fn={index:Bt=w(qe,!0),key:qe,value:yt,previous:Ct=fn.last,next:void 0,removed:!1},fn.first||(fn.first=Fn),Ct&&(Ct.next=Fn),C?fn.size++:be.size++,Bt!=="F"&&(fn.index[Bt]=Fn)),be},"y"),Ce=e(function(be,qe){var yt,Ct=fe(be),Bt=w(qe);if(Bt!=="F")return Ct.index[Bt];for(yt=Ct.first;yt;yt=yt.next)if(yt.key==qe)return yt},"v");return p(ie.prototype,{clear:e(function(){for(var be=fe(this),qe=be.index,yt=be.first;yt;)yt.removed=!0,yt.previous&&(yt.previous=yt.previous.next=void 0),delete qe[yt.index],yt=yt.next;be.first=be.last=void 0,C?be.size=0:this.size=0},"clear"),delete:e(function(be){var qe=fe(this),yt=Ce(this,be);if(yt){var Ct=yt.next,Bt=yt.previous;delete qe.index[yt.index],yt.removed=!0,Bt&&(Bt.next=Ct),Ct&&(Ct.previous=Bt),qe.first==yt&&(qe.first=Ct),qe.last==yt&&(qe.last=Bt),C?qe.size--:this.size--}return!!yt},"delete"),forEach:e(function(be){for(var qe,yt=fe(this),Ct=h(be,arguments.length>1?arguments[1]:void 0,3);qe=qe?qe.next:yt.first;)for(Ct(qe.value,qe.key,this);qe&&qe.removed;)qe=qe.previous},"forEach"),has:e(function(be){return!!Ce(this,be)},"has")}),p(ie.prototype,$?{get:e(function(be){var qe=Ce(this,be);return qe&&qe.value},"get"),set:e(function(be,qe){return ve(this,be===0?0:be,qe)},"set")}:{add:e(function(be){return ve(this,be=be===0?0:be,be)},"add")}),C&&l(ie.prototype,"size",{get:e(function(){return fe(this).size},"get")}),ie},"getConstructor"),setStrong:e(function(k,F,$){var Y=F+" Iterator",ie=B(F),fe=B(Y);E(k,F,function(ve,Ce){V(this,{type:Y,target:ve,state:ie(ve),kind:Ce,last:void 0})},function(){for(var ve=fe(this),Ce=ve.kind,be=ve.last;be&&be.removed;)be=be.previous;return ve.target&&(ve.last=be=be?be.next:ve.state.first)?Ce=="keys"?{value:be.key,done:!1}:Ce=="values"?{value:be.value,done:!1}:{value:[be.key,be.value],done:!1}:(ve.target=void 0,{value:void 0,done:!0})},$?"entries":"values",!$,!0),D(F)},"setStrong")}},function(i,n,o){"use strict";var l,u=o(4),p=o(55).f,h=o(26),v=o(222),T=o(35),E=o(224),D=o(44),C="".endsWith,w=Math.min,W=E("endsWith");u({target:"String",proto:!0,forced:!!(D||W||(l=p(String.prototype,"endsWith"),!l||l.writable))&&!W},{endsWith:e(function(V){var B=String(T(this));v(V);var k=arguments.length>1?arguments[1]:void 0,F=h(B.length),$=k===void 0?F:w(h(k),F),Y=String(V);return C?C.call(B,Y,$):B.slice($-Y.length,$)===Y},"endsWith")})},function(i,n,o){"use strict";(function(l){var u=o(229),p=o(230),h=o(231);function v(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}e(v,"a");function T(pt,me){if(v()<me)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(pt=new Uint8Array(me)).__proto__=E.prototype:(pt===null&&(pt=new E(me)),pt.length=me),pt}e(T,"s");function E(pt,me,zt){if(!(E.TYPED_ARRAY_SUPPORT||this instanceof E))return new E(pt,me,zt);if(typeof pt=="number"){if(typeof me=="string")throw new Error("If encoding is specified then the first argument must be a string");return w(this,pt)}return D(this,pt,me,zt)}e(E,"u");function D(pt,me,zt,Tt){if(typeof me=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&me instanceof ArrayBuffer?function(tn,En,Kn,Gr){if(En.byteLength,Kn<0||En.byteLength<Kn)throw new RangeError("'offset' is out of bounds");if(En.byteLength<Kn+(Gr||0))throw new RangeError("'length' is out of bounds");return En=Kn===void 0&&Gr===void 0?new Uint8Array(En):Gr===void 0?new Uint8Array(En,Kn):new Uint8Array(En,Kn,Gr),E.TYPED_ARRAY_SUPPORT?(tn=En).__proto__=E.prototype:tn=W(tn,En),tn}(pt,me,zt,Tt):typeof me=="string"?function(tn,En,Kn){if(typeof Kn=="string"&&Kn!==""||(Kn="utf8"),!E.isEncoding(Kn))throw new TypeError('"encoding" must be a valid string encoding');var Gr=0|B(En,Kn),Ir=(tn=T(tn,Gr)).write(En,Kn);return Ir!==Gr&&(tn=tn.slice(0,Ir)),tn}(pt,me,zt):function(tn,En){if(E.isBuffer(En)){var Kn=0|V(En.length);return(tn=T(tn,Kn)).length===0||En.copy(tn,0,0,Kn),tn}if(En){if(typeof ArrayBuffer<"u"&&En.buffer instanceof ArrayBuffer||"length"in En)return typeof En.length!="number"||(Gr=En.length)!=Gr?T(tn,0):W(tn,En);if(En.type==="Buffer"&&h(En.data))return W(tn,En.data)}var Gr;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(pt,me)}e(D,"l");function C(pt){if(typeof pt!="number")throw new TypeError('"size" argument must be a number');if(pt<0)throw new RangeError('"size" argument must not be negative')}e(C,"c");function w(pt,me){if(C(me),pt=T(pt,me<0?0:0|V(me)),!E.TYPED_ARRAY_SUPPORT)for(var zt=0;zt<me;++zt)pt[zt]=0;return pt}e(w,"h");function W(pt,me){var zt=me.length<0?0:0|V(me.length);pt=T(pt,zt);for(var Tt=0;Tt<zt;Tt+=1)pt[Tt]=255&me[Tt];return pt}e(W,"p");function V(pt){if(pt>=v())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v().toString(16)+" bytes");return 0|pt}e(V,"f");function B(pt,me){if(E.isBuffer(pt))return pt.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pt)||pt instanceof ArrayBuffer))return pt.byteLength;typeof pt!="string"&&(pt=""+pt);var zt=pt.length;if(zt===0)return 0;for(var Tt=!1;;)switch(me){case"ascii":case"latin1":case"binary":return zt;case"utf8":case"utf-8":case void 0:return cr(pt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*zt;case"hex":return zt>>>1;case"base64":return Yt(pt).length;default:if(Tt)return cr(pt).length;me=(""+me).toLowerCase(),Tt=!0}}e(B,"d");function k(pt,me,zt){var Tt=!1;if((me===void 0||me<0)&&(me=0),me>this.length||((zt===void 0||zt>this.length)&&(zt=this.length),zt<=0)||(zt>>>=0)<=(me>>>=0))return"";for(pt||(pt="utf8");;)switch(pt){case"hex":return Fn(this,me,zt);case"utf8":case"utf-8":return Ct(this,me,zt);case"ascii":return Bt(this,me,zt);case"latin1":case"binary":return fn(this,me,zt);case"base64":return yt(this,me,zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sn(this,me,zt);default:if(Tt)throw new TypeError("Unknown encoding: "+pt);pt=(pt+"").toLowerCase(),Tt=!0}}e(k,"m");function F(pt,me,zt){var Tt=pt[me];pt[me]=pt[zt],pt[zt]=Tt}e(F,"y");function $(pt,me,zt,Tt,tn){if(pt.length===0)return-1;if(typeof zt=="string"?(Tt=zt,zt=0):zt>2147483647?zt=2147483647:zt<-2147483648&&(zt=-2147483648),zt=+zt,isNaN(zt)&&(zt=tn?0:pt.length-1),zt<0&&(zt=pt.length+zt),zt>=pt.length){if(tn)return-1;zt=pt.length-1}else if(zt<0){if(!tn)return-1;zt=0}if(typeof me=="string"&&(me=E.from(me,Tt)),E.isBuffer(me))return me.length===0?-1:Y(pt,me,zt,Tt,tn);if(typeof me=="number")return me&=255,E.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?tn?Uint8Array.prototype.indexOf.call(pt,me,zt):Uint8Array.prototype.lastIndexOf.call(pt,me,zt):Y(pt,[me],zt,Tt,tn);throw new TypeError("val must be string, number or Buffer")}e($,"v");function Y(pt,me,zt,Tt,tn){var En,Kn=1,Gr=pt.length,Ir=me.length;if(Tt!==void 0&&((Tt=String(Tt).toLowerCase())==="ucs2"||Tt==="ucs-2"||Tt==="utf16le"||Tt==="utf-16le")){if(pt.length<2||me.length<2)return-1;Kn=2,Gr/=2,Ir/=2,zt/=2}function yn(Du,Od){return Kn===1?Du[Od]:Du.readUInt16BE(Od*Kn)}if(e(yn,"l"),tn){var ga=-1;for(En=zt;En<Gr;En++)if(yn(pt,En)===yn(me,ga===-1?0:En-ga)){if(ga===-1&&(ga=En),En-ga+1===Ir)return ga*Kn}else ga!==-1&&(En-=En-ga),ga=-1}else for(zt+Ir>Gr&&(zt=Gr-Ir),En=zt;En>=0;En--){for(var so=!0,Pl=0;Pl<Ir;Pl++)if(yn(pt,En+Pl)!==yn(me,Pl)){so=!1;break}if(so)return En}return-1}e(Y,"_");function ie(pt,me,zt,Tt){zt=Number(zt)||0;var tn=pt.length-zt;Tt?(Tt=Number(Tt))>tn&&(Tt=tn):Tt=tn;var En=me.length;if(En%2!=0)throw new TypeError("Invalid hex string");Tt>En/2&&(Tt=En/2);for(var Kn=0;Kn<Tt;++Kn){var Gr=parseInt(me.substr(2*Kn,2),16);if(isNaN(Gr))return Kn;pt[zt+Kn]=Gr}return Kn}e(ie,"g");function fe(pt,me,zt,Tt){return Ft(cr(me,pt.length-zt),pt,zt,Tt)}e(fe,"b");function ve(pt,me,zt,Tt){return Ft(function(tn){for(var En=[],Kn=0;Kn<tn.length;++Kn)En.push(255&tn.charCodeAt(Kn));return En}(me),pt,zt,Tt)}e(ve,"x");function Ce(pt,me,zt,Tt){return ve(pt,me,zt,Tt)}e(Ce,"w");function be(pt,me,zt,Tt){return Ft(Yt(me),pt,zt,Tt)}e(be,"E");function qe(pt,me,zt,Tt){return Ft(function(tn,En){for(var Kn,Gr,Ir,yn=[],ga=0;ga<tn.length&&!((En-=2)<0);++ga)Kn=tn.charCodeAt(ga),Gr=Kn>>8,Ir=Kn%256,yn.push(Ir),yn.push(Gr);return yn}(me,pt.length-zt),pt,zt,Tt)}e(qe,"D");function yt(pt,me,zt){return me===0&&zt===pt.length?u.fromByteArray(pt):u.fromByteArray(pt.slice(me,zt))}e(yt,"S");function Ct(pt,me,zt){zt=Math.min(pt.length,zt);for(var Tt=[],tn=me;tn<zt;){var En,Kn,Gr,Ir,yn=pt[tn],ga=null,so=yn>239?4:yn>223?3:yn>191?2:1;if(tn+so<=zt)switch(so){case 1:yn<128&&(ga=yn);break;case 2:(192&(En=pt[tn+1]))==128&&(Ir=(31&yn)<<6|63&En)>127&&(ga=Ir);break;case 3:En=pt[tn+1],Kn=pt[tn+2],(192&En)==128&&(192&Kn)==128&&(Ir=(15&yn)<<12|(63&En)<<6|63&Kn)>2047&&(Ir<55296||Ir>57343)&&(ga=Ir);break;case 4:En=pt[tn+1],Kn=pt[tn+2],Gr=pt[tn+3],(192&En)==128&&(192&Kn)==128&&(192&Gr)==128&&(Ir=(15&yn)<<18|(63&En)<<12|(63&Kn)<<6|63&Gr)>65535&&Ir<1114112&&(ga=Ir)}ga===null?(ga=65533,so=1):ga>65535&&(ga-=65536,Tt.push(ga>>>10&1023|55296),ga=56320|1023&ga),Tt.push(ga),tn+=so}return function(Pl){var Du=Pl.length;if(Du<=4096)return String.fromCharCode.apply(String,Pl);for(var Od="",_s=0;_s<Du;)Od+=String.fromCharCode.apply(String,Pl.slice(_s,_s+=4096));return Od}(Tt)}e(Ct,"C"),n.Buffer=E,n.SlowBuffer=function(pt){return+pt!=pt&&(pt=0),E.alloc(+pt)},n.INSPECT_MAX_BYTES=50,E.TYPED_ARRAY_SUPPORT=l.TYPED_ARRAY_SUPPORT!==void 0?l.TYPED_ARRAY_SUPPORT:function(){try{var pt=new Uint8Array(1);return pt.__proto__={__proto__:Uint8Array.prototype,foo:e(function(){return 42},"foo")},pt.foo()===42&&typeof pt.subarray=="function"&&pt.subarray(1,1).byteLength===0}catch{return!1}}(),n.kMaxLength=v(),E.poolSize=8192,E._augment=function(pt){return pt.__proto__=E.prototype,pt},E.from=function(pt,me,zt){return D(null,pt,me,zt)},E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0})),E.alloc=function(pt,me,zt){return function(Tt,tn,En,Kn){return C(tn),tn<=0?T(Tt,tn):En!==void 0?typeof Kn=="string"?T(Tt,tn).fill(En,Kn):T(Tt,tn).fill(En):T(Tt,tn)}(null,pt,me,zt)},E.allocUnsafe=function(pt){return w(null,pt)},E.allocUnsafeSlow=function(pt){return w(null,pt)},E.isBuffer=function(pt){return!(pt==null||!pt._isBuffer)},E.compare=function(pt,me){if(!E.isBuffer(pt)||!E.isBuffer(me))throw new TypeError("Arguments must be Buffers");if(pt===me)return 0;for(var zt=pt.length,Tt=me.length,tn=0,En=Math.min(zt,Tt);tn<En;++tn)if(pt[tn]!==me[tn]){zt=pt[tn],Tt=me[tn];break}return zt<Tt?-1:Tt<zt?1:0},E.isEncoding=function(pt){switch(String(pt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(pt,me){if(!h(pt))throw new TypeError('"list" argument must be an Array of Buffers');if(pt.length===0)return E.alloc(0);var zt;if(me===void 0)for(me=0,zt=0;zt<pt.length;++zt)me+=pt[zt].length;var Tt=E.allocUnsafe(me),tn=0;for(zt=0;zt<pt.length;++zt){var En=pt[zt];if(!E.isBuffer(En))throw new TypeError('"list" argument must be an Array of Buffers');En.copy(Tt,tn),tn+=En.length}return Tt},E.byteLength=B,E.prototype._isBuffer=!0,E.prototype.swap16=function(){var pt=this.length;if(pt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var me=0;me<pt;me+=2)F(this,me,me+1);return this},E.prototype.swap32=function(){var pt=this.length;if(pt%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var me=0;me<pt;me+=4)F(this,me,me+3),F(this,me+1,me+2);return this},E.prototype.swap64=function(){var pt=this.length;if(pt%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var me=0;me<pt;me+=8)F(this,me,me+7),F(this,me+1,me+6),F(this,me+2,me+5),F(this,me+3,me+4);return this},E.prototype.toString=function(){var pt=0|this.length;return pt===0?"":arguments.length===0?Ct(this,0,pt):k.apply(this,arguments)},E.prototype.equals=function(pt){if(!E.isBuffer(pt))throw new TypeError("Argument must be a Buffer");return this===pt||E.compare(this,pt)===0},E.prototype.inspect=function(){var pt="",me=n.INSPECT_MAX_BYTES;return this.length>0&&(pt=this.toString("hex",0,me).match(/.{2}/g).join(" "),this.length>me&&(pt+=" ... ")),"<Buffer "+pt+">"},E.prototype.compare=function(pt,me,zt,Tt,tn){if(!E.isBuffer(pt))throw new TypeError("Argument must be a Buffer");if(me===void 0&&(me=0),zt===void 0&&(zt=pt?pt.length:0),Tt===void 0&&(Tt=0),tn===void 0&&(tn=this.length),me<0||zt>pt.length||Tt<0||tn>this.length)throw new RangeError("out of range index");if(Tt>=tn&&me>=zt)return 0;if(Tt>=tn)return-1;if(me>=zt)return 1;if(this===pt)return 0;for(var En=(tn>>>=0)-(Tt>>>=0),Kn=(zt>>>=0)-(me>>>=0),Gr=Math.min(En,Kn),Ir=this.slice(Tt,tn),yn=pt.slice(me,zt),ga=0;ga<Gr;++ga)if(Ir[ga]!==yn[ga]){En=Ir[ga],Kn=yn[ga];break}return En<Kn?-1:Kn<En?1:0},E.prototype.includes=function(pt,me,zt){return this.indexOf(pt,me,zt)!==-1},E.prototype.indexOf=function(pt,me,zt){return $(this,pt,me,zt,!0)},E.prototype.lastIndexOf=function(pt,me,zt){return $(this,pt,me,zt,!1)},E.prototype.write=function(pt,me,zt,Tt){if(me===void 0)Tt="utf8",zt=this.length,me=0;else if(zt===void 0&&typeof me=="string")Tt=me,zt=this.length,me=0;else{if(!isFinite(me))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");me|=0,isFinite(zt)?(zt|=0,Tt===void 0&&(Tt="utf8")):(Tt=zt,zt=void 0)}var tn=this.length-me;if((zt===void 0||zt>tn)&&(zt=tn),pt.length>0&&(zt<0||me<0)||me>this.length)throw new RangeError("Attempt to write outside buffer bounds");Tt||(Tt="utf8");for(var En=!1;;)switch(Tt){case"hex":return ie(this,pt,me,zt);case"utf8":case"utf-8":return fe(this,pt,me,zt);case"ascii":return ve(this,pt,me,zt);case"latin1":case"binary":return Ce(this,pt,me,zt);case"base64":return be(this,pt,me,zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qe(this,pt,me,zt);default:if(En)throw new TypeError("Unknown encoding: "+Tt);Tt=(""+Tt).toLowerCase(),En=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Bt(pt,me,zt){var Tt="";zt=Math.min(pt.length,zt);for(var tn=me;tn<zt;++tn)Tt+=String.fromCharCode(127&pt[tn]);return Tt}e(Bt,"A");function fn(pt,me,zt){var Tt="";zt=Math.min(pt.length,zt);for(var tn=me;tn<zt;++tn)Tt+=String.fromCharCode(pt[tn]);return Tt}e(fn,"N");function Fn(pt,me,zt){var Tt=pt.length;(!me||me<0)&&(me=0),(!zt||zt<0||zt>Tt)&&(zt=Tt);for(var tn="",En=me;En<zt;++En)tn+=Bn(pt[En]);return tn}e(Fn,"T");function Sn(pt,me,zt){for(var Tt=pt.slice(me,zt),tn="",En=0;En<Tt.length;En+=2)tn+=String.fromCharCode(Tt[En]+256*Tt[En+1]);return tn}e(Sn,"O");function Qt(pt,me,zt){if(pt%1!=0||pt<0)throw new RangeError("offset is not uint");if(pt+me>zt)throw new RangeError("Trying to access beyond buffer length")}e(Qt,"F");function on(pt,me,zt,Tt,tn,En){if(!E.isBuffer(pt))throw new TypeError('"buffer" argument must be a Buffer instance');if(me>tn||me<En)throw new RangeError('"value" argument is out of bounds');if(zt+Tt>pt.length)throw new RangeError("Index out of range")}e(on,"k");function It(pt,me,zt,Tt){me<0&&(me=65535+me+1);for(var tn=0,En=Math.min(pt.length-zt,2);tn<En;++tn)pt[zt+tn]=(me&255<<8*(Tt?tn:1-tn))>>>8*(Tt?tn:1-tn)}e(It,"P");function Kt(pt,me,zt,Tt){me<0&&(me=4294967295+me+1);for(var tn=0,En=Math.min(pt.length-zt,4);tn<En;++tn)pt[zt+tn]=me>>>8*(Tt?tn:3-tn)&255}e(Kt,"I");function ht(pt,me,zt,Tt,tn,En){if(zt+Tt>pt.length)throw new RangeError("Index out of range");if(zt<0)throw new RangeError("Index out of range")}e(ht,"L");function wn(pt,me,zt,Tt,tn){return tn||ht(pt,0,zt,4),p.write(pt,me,zt,Tt,23,4),zt+4}e(wn,"M");function Gn(pt,me,zt,Tt,tn){return tn||ht(pt,0,zt,8),p.write(pt,me,zt,Tt,52,8),zt+8}e(Gn,"B"),E.prototype.slice=function(pt,me){var zt,Tt=this.length;if((pt=~~pt)<0?(pt+=Tt)<0&&(pt=0):pt>Tt&&(pt=Tt),(me=me===void 0?Tt:~~me)<0?(me+=Tt)<0&&(me=0):me>Tt&&(me=Tt),me<pt&&(me=pt),E.TYPED_ARRAY_SUPPORT)(zt=this.subarray(pt,me)).__proto__=E.prototype;else{var tn=me-pt;zt=new E(tn,void 0);for(var En=0;En<tn;++En)zt[En]=this[En+pt]}return zt},E.prototype.readUIntLE=function(pt,me,zt){pt|=0,me|=0,zt||Qt(pt,me,this.length);for(var Tt=this[pt],tn=1,En=0;++En<me&&(tn*=256);)Tt+=this[pt+En]*tn;return Tt},E.prototype.readUIntBE=function(pt,me,zt){pt|=0,me|=0,zt||Qt(pt,me,this.length);for(var Tt=this[pt+--me],tn=1;me>0&&(tn*=256);)Tt+=this[pt+--me]*tn;return Tt},E.prototype.readUInt8=function(pt,me){return me||Qt(pt,1,this.length),this[pt]},E.prototype.readUInt16LE=function(pt,me){return me||Qt(pt,2,this.length),this[pt]|this[pt+1]<<8},E.prototype.readUInt16BE=function(pt,me){return me||Qt(pt,2,this.length),this[pt]<<8|this[pt+1]},E.prototype.readUInt32LE=function(pt,me){return me||Qt(pt,4,this.length),(this[pt]|this[pt+1]<<8|this[pt+2]<<16)+16777216*this[pt+3]},E.prototype.readUInt32BE=function(pt,me){return me||Qt(pt,4,this.length),16777216*this[pt]+(this[pt+1]<<16|this[pt+2]<<8|this[pt+3])},E.prototype.readIntLE=function(pt,me,zt){pt|=0,me|=0,zt||Qt(pt,me,this.length);for(var Tt=this[pt],tn=1,En=0;++En<me&&(tn*=256);)Tt+=this[pt+En]*tn;return Tt>=(tn*=128)&&(Tt-=Math.pow(2,8*me)),Tt},E.prototype.readIntBE=function(pt,me,zt){pt|=0,me|=0,zt||Qt(pt,me,this.length);for(var Tt=me,tn=1,En=this[pt+--Tt];Tt>0&&(tn*=256);)En+=this[pt+--Tt]*tn;return En>=(tn*=128)&&(En-=Math.pow(2,8*me)),En},E.prototype.readInt8=function(pt,me){return me||Qt(pt,1,this.length),128&this[pt]?-1*(255-this[pt]+1):this[pt]},E.prototype.readInt16LE=function(pt,me){me||Qt(pt,2,this.length);var zt=this[pt]|this[pt+1]<<8;return 32768&zt?4294901760|zt:zt},E.prototype.readInt16BE=function(pt,me){me||Qt(pt,2,this.length);var zt=this[pt+1]|this[pt]<<8;return 32768&zt?4294901760|zt:zt},E.prototype.readInt32LE=function(pt,me){return me||Qt(pt,4,this.length),this[pt]|this[pt+1]<<8|this[pt+2]<<16|this[pt+3]<<24},E.prototype.readInt32BE=function(pt,me){return me||Qt(pt,4,this.length),this[pt]<<24|this[pt+1]<<16|this[pt+2]<<8|this[pt+3]},E.prototype.readFloatLE=function(pt,me){return me||Qt(pt,4,this.length),p.read(this,pt,!0,23,4)},E.prototype.readFloatBE=function(pt,me){return me||Qt(pt,4,this.length),p.read(this,pt,!1,23,4)},E.prototype.readDoubleLE=function(pt,me){return me||Qt(pt,8,this.length),p.read(this,pt,!0,52,8)},E.prototype.readDoubleBE=function(pt,me){return me||Qt(pt,8,this.length),p.read(this,pt,!1,52,8)},E.prototype.writeUIntLE=function(pt,me,zt,Tt){pt=+pt,me|=0,zt|=0,Tt||on(this,pt,me,zt,Math.pow(2,8*zt)-1,0);var tn=1,En=0;for(this[me]=255&pt;++En<zt&&(tn*=256);)this[me+En]=pt/tn&255;return me+zt},E.prototype.writeUIntBE=function(pt,me,zt,Tt){pt=+pt,me|=0,zt|=0,Tt||on(this,pt,me,zt,Math.pow(2,8*zt)-1,0);var tn=zt-1,En=1;for(this[me+tn]=255&pt;--tn>=0&&(En*=256);)this[me+tn]=pt/En&255;return me+zt},E.prototype.writeUInt8=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,1,255,0),E.TYPED_ARRAY_SUPPORT||(pt=Math.floor(pt)),this[me]=255&pt,me+1},E.prototype.writeUInt16LE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[me]=255&pt,this[me+1]=pt>>>8):It(this,pt,me,!0),me+2},E.prototype.writeUInt16BE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[me]=pt>>>8,this[me+1]=255&pt):It(this,pt,me,!1),me+2},E.prototype.writeUInt32LE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[me+3]=pt>>>24,this[me+2]=pt>>>16,this[me+1]=pt>>>8,this[me]=255&pt):Kt(this,pt,me,!0),me+4},E.prototype.writeUInt32BE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[me]=pt>>>24,this[me+1]=pt>>>16,this[me+2]=pt>>>8,this[me+3]=255&pt):Kt(this,pt,me,!1),me+4},E.prototype.writeIntLE=function(pt,me,zt,Tt){if(pt=+pt,me|=0,!Tt){var tn=Math.pow(2,8*zt-1);on(this,pt,me,zt,tn-1,-tn)}var En=0,Kn=1,Gr=0;for(this[me]=255&pt;++En<zt&&(Kn*=256);)pt<0&&Gr===0&&this[me+En-1]!==0&&(Gr=1),this[me+En]=(pt/Kn>>0)-Gr&255;return me+zt},E.prototype.writeIntBE=function(pt,me,zt,Tt){if(pt=+pt,me|=0,!Tt){var tn=Math.pow(2,8*zt-1);on(this,pt,me,zt,tn-1,-tn)}var En=zt-1,Kn=1,Gr=0;for(this[me+En]=255&pt;--En>=0&&(Kn*=256);)pt<0&&Gr===0&&this[me+En+1]!==0&&(Gr=1),this[me+En]=(pt/Kn>>0)-Gr&255;return me+zt},E.prototype.writeInt8=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,1,127,-128),E.TYPED_ARRAY_SUPPORT||(pt=Math.floor(pt)),pt<0&&(pt=255+pt+1),this[me]=255&pt,me+1},E.prototype.writeInt16LE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[me]=255&pt,this[me+1]=pt>>>8):It(this,pt,me,!0),me+2},E.prototype.writeInt16BE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[me]=pt>>>8,this[me+1]=255&pt):It(this,pt,me,!1),me+2},E.prototype.writeInt32LE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[me]=255&pt,this[me+1]=pt>>>8,this[me+2]=pt>>>16,this[me+3]=pt>>>24):Kt(this,pt,me,!0),me+4},E.prototype.writeInt32BE=function(pt,me,zt){return pt=+pt,me|=0,zt||on(this,pt,me,4,2147483647,-2147483648),pt<0&&(pt=4294967295+pt+1),E.TYPED_ARRAY_SUPPORT?(this[me]=pt>>>24,this[me+1]=pt>>>16,this[me+2]=pt>>>8,this[me+3]=255&pt):Kt(this,pt,me,!1),me+4},E.prototype.writeFloatLE=function(pt,me,zt){return wn(this,pt,me,!0,zt)},E.prototype.writeFloatBE=function(pt,me,zt){return wn(this,pt,me,!1,zt)},E.prototype.writeDoubleLE=function(pt,me,zt){return Gn(this,pt,me,!0,zt)},E.prototype.writeDoubleBE=function(pt,me,zt){return Gn(this,pt,me,!1,zt)},E.prototype.copy=function(pt,me,zt,Tt){if(zt||(zt=0),Tt||Tt===0||(Tt=this.length),me>=pt.length&&(me=pt.length),me||(me=0),Tt>0&&Tt<zt&&(Tt=zt),Tt===zt||pt.length===0||this.length===0)return 0;if(me<0)throw new RangeError("targetStart out of bounds");if(zt<0||zt>=this.length)throw new RangeError("sourceStart out of bounds");if(Tt<0)throw new RangeError("sourceEnd out of bounds");Tt>this.length&&(Tt=this.length),pt.length-me<Tt-zt&&(Tt=pt.length-me+zt);var tn,En=Tt-zt;if(this===pt&&zt<me&&me<Tt)for(tn=En-1;tn>=0;--tn)pt[tn+me]=this[tn+zt];else if(En<1e3||!E.TYPED_ARRAY_SUPPORT)for(tn=0;tn<En;++tn)pt[tn+me]=this[tn+zt];else Uint8Array.prototype.set.call(pt,this.subarray(zt,zt+En),me);return En},E.prototype.fill=function(pt,me,zt,Tt){if(typeof pt=="string"){if(typeof me=="string"?(Tt=me,me=0,zt=this.length):typeof zt=="string"&&(Tt=zt,zt=this.length),pt.length===1){var tn=pt.charCodeAt(0);tn<256&&(pt=tn)}if(Tt!==void 0&&typeof Tt!="string")throw new TypeError("encoding must be a string");if(typeof Tt=="string"&&!E.isEncoding(Tt))throw new TypeError("Unknown encoding: "+Tt)}else typeof pt=="number"&&(pt&=255);if(me<0||this.length<me||this.length<zt)throw new RangeError("Out of range index");if(zt<=me)return this;var En;if(me>>>=0,zt=zt===void 0?this.length:zt>>>0,pt||(pt=0),typeof pt=="number")for(En=me;En<zt;++En)this[En]=pt;else{var Kn=E.isBuffer(pt)?pt:cr(new E(pt,Tt).toString()),Gr=Kn.length;for(En=0;En<zt-me;++En)this[En+me]=Kn[En%Gr]}return this};var _n=/[^+\/0-9A-Za-z-_]/g;function Bn(pt){return pt<16?"0"+pt.toString(16):pt.toString(16)}e(Bn,"R");function cr(pt,me){var zt;me=me||1/0;for(var Tt=pt.length,tn=null,En=[],Kn=0;Kn<Tt;++Kn){if((zt=pt.charCodeAt(Kn))>55295&&zt<57344){if(!tn){if(zt>56319){(me-=3)>-1&&En.push(239,191,189);continue}if(Kn+1===Tt){(me-=3)>-1&&En.push(239,191,189);continue}tn=zt;continue}if(zt<56320){(me-=3)>-1&&En.push(239,191,189),tn=zt;continue}zt=65536+(tn-55296<<10|zt-56320)}else tn&&(me-=3)>-1&&En.push(239,191,189);if(tn=null,zt<128){if((me-=1)<0)break;En.push(zt)}else if(zt<2048){if((me-=2)<0)break;En.push(zt>>6|192,63&zt|128)}else if(zt<65536){if((me-=3)<0)break;En.push(zt>>12|224,zt>>6&63|128,63&zt|128)}else{if(!(zt<1114112))throw new Error("Invalid code point");if((me-=4)<0)break;En.push(zt>>18|240,zt>>12&63|128,zt>>6&63|128,63&zt|128)}}return En}e(cr,"z");function Yt(pt){return u.toByteArray(function(me){if((me=function(zt){return zt.trim?zt.trim():zt.replace(/^\s+|\s+$/g,"")}(me).replace(_n,"")).length<2)return"";for(;me.length%4!=0;)me+="=";return me}(pt))}e(Yt,"U");function Ft(pt,me,zt,Tt){for(var tn=0;tn<Tt&&!(tn+zt>=me.length||tn>=pt.length);++tn)me[tn+zt]=pt[tn];return tn}e(Ft,"G")}).call(this,o(78))},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isASCIIByte=function(l){return l>=0&&l<=127}},function(i,n,o){"use strict";var l=this&&this.__read||function(p,h){var v=typeof Symbol=="function"&&p[Symbol.iterator];if(!v)return p;var T,E,D=v.call(p),C=[];try{for(;(h===void 0||h-- >0)&&!(T=D.next()).done;)C.push(T.value)}catch(w){E={error:w}}finally{try{T&&!T.done&&(v=D.return)&&v.call(D)}finally{if(E)throw E.error}}return C},u=this&&this.__spread||function(){for(var p=[],h=0;h<arguments.length;h++)p=p.concat(l(arguments[h]));return p};Object.defineProperty(n,"__esModule",{value:!0}),n.length=function(p){return p.length},n.byteLowercase=function(p){for(var h=0;h<p.length;h++){var v=p[h];v>=65&&v<=90&&(p[h]=v+32)}},n.byteUppercase=function(p){for(var h=0;h<p.length;h++){var v=p[h];v>=97&&v<=122&&(p[h]=v-32)}},n.byteCaseInsensitiveMatch=function(p,h){if(p.length!==h.length)return!1;for(var v=0;v<p.length;v++){var T=p[v],E=h[v];if(T>=65&&T<=90&&(T+=32),E>=65&&E<=90&&(E+=32),T!==E)return!1}return!0},n.startsWith=function(p,h){for(var v=0;;){if(v>=p.length)return!1;if(v>=h.length)return!0;if(p[v]!==h[v])return!1;v++}},n.byteLessThan=function(p,h){for(var v=0;;){if(v>=p.length)return!1;if(v>=h.length)return!0;var T=p[v],E=h[v];if(T<E)return!0;if(T>E)return!1;v++}},n.isomorphicDecode=function(p){return String.fromCodePoint.apply(String,u(p))}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(6),u=o(7),p=o(0),h=o(12),v=function(){function T(E){this._associatedDocument=E||l.dom.window.document}return e(T,"e"),T.prototype.createDocumentType=function(E,D,C){return p.namespace_validate(E),p.create_documentType(this._associatedDocument,E,D,C)},T.prototype.createDocument=function(E,D,C){C===void 0&&(C=null);var w=p.create_xmlDocument(),W=null;return D&&(W=p.document_internalCreateElementNS(w,E,D)),C&&w.appendChild(C),W&&w.appendChild(W),w._origin=this._associatedDocument._origin,E===u.namespace.HTML?w._contentType="application/xhtml+xml":E===u.namespace.SVG?w._contentType="image/svg+xml":w._contentType="application/xml",w},T.prototype.createHTMLDocument=function(E){var D=p.create_document();D._type="html",D._contentType="text/html",D.appendChild(p.create_documentType(D,"html","",""));var C=p.element_createAnElement(D,"html",u.namespace.HTML);D.appendChild(C);var w=p.element_createAnElement(D,"head",u.namespace.HTML);if(C.appendChild(w),E!==void 0){var W=p.element_createAnElement(D,"title",u.namespace.HTML);w.appendChild(W);var V=p.create_text(D,E);W.appendChild(V)}var B=p.element_createAnElement(D,"body",u.namespace.HTML);return C.appendChild(B),D._origin=this._associatedDocument._origin,D},T.prototype.hasFeature=function(){return!0},T._create=function(E){return new T(E)},T}();n.DOMImplementationImpl=v,h.idl_defineConst(v.prototype,"_ID","@oozcitak/dom")},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(70),h=o(2),v=o(0),T=function(E){function D(){var C=E.call(this)||this;return C._signalSlots=new Set,C._mutationObserverMicrotaskQueued=!1,C._mutationObservers=new Set,C._iteratorList=new h.FixedSizeSet,C._associatedDocument=v.create_document(),C}return e(D,"t"),u(D,E),Object.defineProperty(D.prototype,"document",{get:e(function(){return this._associatedDocument},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"event",{get:e(function(){return this._currentEvent},"get"),enumerable:!0,configurable:!0}),D._create=function(){return new D},D}(p.EventTargetImpl);n.WindowImpl=T},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(1),u=function(){function p(){}return e(p,"e"),p.isNode=function(h){return!!h&&h._nodeType!==void 0},p.isDocumentNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.Document},p.isDocumentTypeNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.DocumentType},p.isDocumentFragmentNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.DocumentFragment},p.isAttrNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.Attribute},p.isCharacterDataNode=function(h){if(!p.isNode(h))return!1;var v=h._nodeType;return v===l.NodeType.Text||v===l.NodeType.ProcessingInstruction||v===l.NodeType.Comment||v===l.NodeType.CData},p.isTextNode=function(h){return p.isNode(h)&&(h._nodeType===l.NodeType.Text||h._nodeType===l.NodeType.CData)},p.isExclusiveTextNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.Text},p.isCDATASectionNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.CData},p.isCommentNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.Comment},p.isProcessingInstructionNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.ProcessingInstruction},p.isElementNode=function(h){return p.isNode(h)&&h._nodeType===l.NodeType.Element},p.isCustomElementNode=function(h){return p.isElementNode(h)&&h._customElementState==="custom"},p.isShadowRoot=function(h){return!!h&&h.host!==void 0},p.isMouseEvent=function(h){return!!h&&h.screenX!==void 0&&h.screenY!=null},p.isSlotable=function(h){return!!h&&h._name!==void 0&&h._assignedSlot!==void 0&&(p.isTextNode(h)||p.isElementNode(h))},p.isSlot=function(h){return!!h&&h._name!==void 0&&h._assignedNodes!==void 0&&p.isElementNode(h)},p.isWindow=function(h){return!!h&&h.navigator!==void 0},p.isEventListener=function(h){return!!h&&h.handleEvent!==void 0},p.isRegisteredObserver=function(h){return!!h&&h.observer!==void 0&&h.options!==void 0},p.isTransientRegisteredObserver=function(h){return!!h&&h.source!==void 0&&p.isRegisteredObserver(h)},p}();n.Guard=u},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(h,v){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,E){T.__proto__=E}||function(T,E){for(var D in E)E.hasOwnProperty(D)&&(T[D]=E[D])})(h,v)},"n"),function(h,v){function T(){this.constructor=h}e(T,"r"),l(h,v),h.prototype=v===null?Object.create(v):(T.prototype=v.prototype,new T)});Object.defineProperty(n,"__esModule",{value:!0});var p=function(h){function v(){return h.call(this)||this}return e(v,"t"),u(v,h),v}(o(98).DocumentImpl);n.XMLDocumentImpl=p},function(i,n,o){"use strict";var l=this&&this.__values||function(Tt){var tn=typeof Symbol=="function"&&Symbol.iterator,En=tn&&Tt[tn],Kn=0;if(En)return En.call(Tt);if(Tt&&typeof Tt.length=="number")return{next:e(function(){return Tt&&Kn>=Tt.length&&(Tt=void 0),{value:Tt&&Tt[Kn++],done:!Tt}},"next")};throw new TypeError(tn?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(Tt,tn){var En=typeof Symbol=="function"&&Tt[Symbol.iterator];if(!En)return Tt;var Kn,Gr,Ir=En.call(Tt),yn=[];try{for(;(tn===void 0||tn-- >0)&&!(Kn=Ir.next()).done;)yn.push(Kn.value)}catch(ga){Gr={error:ga}}finally{try{Kn&&!Kn.done&&(En=Ir.return)&&En.call(Ir)}finally{if(Gr)throw Gr.error}}return yn};Object.defineProperty(n,"__esModule",{value:!0});var p,h=o(2),v=o(243),T=o(7),E=o(244),D={ftp:21,file:null,http:80,https:443,ws:80,wss:443},C=/[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[ "<>`]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,W=/[ "<>`#?{}]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,V=/[ "<>`#?{}/:;=@\[\]\\\^\|]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B=/[0-9A-Za-z!\$&-\/:;=\?@_~\xA0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uD83E\uD840-\uD87E\uD880-\uD8BE\uD8C0-\uD8FE\uD900-\uD93E\uD940-\uD97E\uD980-\uD9BE\uD9C0-\uD9FE\uDA00-\uDA3E\uDA40-\uDA7E\uDA80-\uDABE\uDAC0-\uDAFE\uDB00-\uDB3E\uDB40-\uDB7E\uDB80-\uDBBE\uDBC0-\uDBFE][\uDC00-\uDFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDC00-\uDFFD]/,k=/[\0\t\f\r #%/:?@\[\\\]]/;function F(Tt){p!==void 0&&p.call(null,"Validation Error: "+Tt)}e(F,"v");function $(){return{scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,_cannotBeABaseURLFlag:!1,_blobURLEntry:null}}e($,"_");function Y(Tt){return Tt in D}e(Y,"g");function ie(Tt){return Y(Tt.scheme)}e(ie,"b");function fe(Tt){return D[Tt]||null}e(fe,"x");function ve(Tt){return Tt.username!==""||Tt.password!==""}e(ve,"w");function Ce(Tt,tn){var En,Kn;tn===void 0&&(tn=!1);var Gr=Tt.scheme+":";if(Tt.host!==null?(Gr+="//",ve(Tt)&&(Gr+=Tt.username,Tt.password!==""&&(Gr+=":"+Tt.password),Gr+="@"),Gr+=be(Tt.host),Tt.port!==null&&(Gr+=":"+Tt.port)):Tt.host===null&&Tt.scheme==="file"&&(Gr+="//"),Tt._cannotBeABaseURLFlag)Gr+=Tt.path[0];else try{for(var Ir=l(Tt.path),yn=Ir.next();!yn.done;yn=Ir.next())Gr+="/"+yn.value}catch(ga){En={error:ga}}finally{try{yn&&!yn.done&&(Kn=Ir.return)&&Kn.call(Ir)}finally{if(En)throw En.error}}return Tt.query!==null&&(Gr+="?"+Tt.query),tn||Tt.fragment===null||(Gr+="#"+Tt.fragment),Gr}e(Ce,"E");function be(Tt){return h.isNumber(Tt)?qe(Tt):h.isArray(Tt)?"["+yt(Tt)+"]":Tt}e(be,"D");function qe(Tt){for(var tn="",En=Tt,Kn=1;Kn<=4;Kn++)tn=(En%256).toString()+tn,Kn!==4&&(tn="."+tn),En=Math.floor(En/256);return tn}e(qe,"S");function yt(Tt){for(var tn="",En=null,Kn=-1,Gr=0,Ir=0,yn=0;yn<8;yn++)if(Tt[yn]===0){Gr=1;for(var ga=yn+1;ga<8&&Tt[ga]===0;ga++)Gr++;Gr>Ir&&(Ir=Gr,Kn=yn)}Ir>1&&(En=Kn);for(var so=!1,Pl=0;Pl<8;Pl++)so&&Tt[Pl]===0||(so&&(so=!1),En!==Pl?(tn+=Tt[Pl].toString(16),Pl!==7&&(tn+=":")):(tn+=Pl===0?"::":":",so=!0));return tn}e(yt,"C");function Ct(Tt,tn,En,Kn,Gr){var Ir,yn,ga,so;if(Kn===void 0){Kn={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,_cannotBeABaseURLFlag:!1,_blobURLEntry:null};var Pl=/^[\u0000-\u001F\u0020]+/,Du=/[\u0000-\u001F\u0020]+$/;(Pl.test(Tt)||Du.test(Tt))&&F("Input string contains leading or trailing control characters or space."),Tt=(Tt=Tt.replace(Pl,"")).replace(Du,"")}var Od=/[\u0009\u000A\u000D]/g;Od.test(Tt)&&F("Input string contains tab or newline characters."),Tt=Tt.replace(Od,"");var _s=Gr===void 0?v.ParserState.SchemeStart:Gr;tn===void 0&&(tn=null);for(var Ul=En===void 0||En==="replacement"||En==="UTF-16BE"||En==="UTF-16LE"?"UTF-8":En,ur="",Mn=!1,Ot=!1,Ut=!1,Dt=new h.StringWalker(Tt);;){switch(_s){case v.ParserState.SchemeStart:if(T.codePoint.ASCIIAlpha.test(Dt.c()))ur+=Dt.c().toLowerCase(),_s=v.ParserState.Scheme;else{if(Gr!==void 0)return F("Invalid scheme start character."),null;_s=v.ParserState.NoScheme,Dt.pointer--}break;case v.ParserState.Scheme:if(T.codePoint.ASCIIAlphanumeric.test(Dt.c())||Dt.c()==="+"||Dt.c()==="-"||Dt.c()===".")ur+=Dt.c().toLowerCase();else{if(Dt.c()!==":"){if(Gr===void 0){ur="",_s=v.ParserState.NoScheme,Dt.pointer=0;continue}return F("Invalid input string."),null}if(Gr!==void 0&&(Y(Kn.scheme)&&!Y(ur)||!Y(Kn.scheme)&&Y(ur)||(ve(Kn)||Kn.port!==null)&&ur==="file"||Kn.scheme==="file"&&(Kn.host===""||Kn.host===null)))return Kn;if(Kn.scheme=ur,Gr!==void 0)return Kn.port===fe(Kn.scheme)&&(Kn.port=null),Kn;ur="",Kn.scheme==="file"?(Dt.remaining().startsWith("//")||F("Invalid file URL scheme, '//' expected."),_s=v.ParserState.File):ie(Kn)&&tn!==null&&tn.scheme===Kn.scheme?_s=v.ParserState.SpecialRelativeOrAuthority:ie(Kn)?_s=v.ParserState.SpecialAuthoritySlashes:Dt.remaining().startsWith("/")?(_s=v.ParserState.PathOrAuthority,Dt.pointer++):(Kn._cannotBeABaseURLFlag=!0,Kn.path.push(""),_s=v.ParserState.CannotBeABaseURLPath)}break;case v.ParserState.NoScheme:if(tn===null||tn._cannotBeABaseURLFlag&&Dt.c()!=="#")return F("Invalid input string."),null;tn._cannotBeABaseURLFlag&&Dt.c()==="#"?(Kn.scheme=tn.scheme,Kn.path=T.list.clone(tn.path),Kn.query=tn.query,Kn.fragment="",Kn._cannotBeABaseURLFlag=!0,_s=v.ParserState.Fragment):tn.scheme!=="file"?(_s=v.ParserState.Relative,Dt.pointer--):(_s=v.ParserState.File,Dt.pointer--);break;case v.ParserState.SpecialRelativeOrAuthority:Dt.c()==="/"&&Dt.remaining().startsWith("/")?(_s=v.ParserState.SpecialAuthorityIgnoreSlashes,Dt.pointer++):(F("Invalid input string."),_s=v.ParserState.Relative,Dt.pointer--);break;case v.ParserState.PathOrAuthority:Dt.c()==="/"?_s=v.ParserState.Authority:(_s=v.ParserState.Path,Dt.pointer--);break;case v.ParserState.Relative:if(tn===null)throw new Error("Invalid parser state. Base URL is null.");switch(Kn.scheme=tn.scheme,Dt.c()){case"":Kn.username=tn.username,Kn.password=tn.password,Kn.host=tn.host,Kn.port=tn.port,Kn.path=T.list.clone(tn.path),Kn.query=tn.query;break;case"/":_s=v.ParserState.RelativeSlash;break;case"?":Kn.username=tn.username,Kn.password=tn.password,Kn.host=tn.host,Kn.port=tn.port,Kn.path=T.list.clone(tn.path),Kn.query="",_s=v.ParserState.Query;break;case"#":Kn.username=tn.username,Kn.password=tn.password,Kn.host=tn.host,Kn.port=tn.port,Kn.path=T.list.clone(tn.path),Kn.query=tn.query,Kn.fragment="",_s=v.ParserState.Fragment;break;default:ie(Kn)&&Dt.c()==="\\"?(F("Invalid input string."),_s=v.ParserState.RelativeSlash):(Kn.username=tn.username,Kn.password=tn.password,Kn.host=tn.host,Kn.port=tn.port,Kn.path=T.list.clone(tn.path),Kn.path.length!==0&&Kn.path.splice(Kn.path.length-1,1),_s=v.ParserState.Path,Dt.pointer--)}break;case v.ParserState.RelativeSlash:if(!ie(Kn)||Dt.c()!=="/"&&Dt.c()!=="\\")if(Dt.c()==="/")_s=v.ParserState.Authority;else{if(tn===null)throw new Error("Invalid parser state. Base URL is null.");Kn.username=tn.username,Kn.password=tn.password,Kn.host=tn.host,Kn.port=tn.port,_s=v.ParserState.Path,Dt.pointer--}else Dt.c()==="\\"&&F("Invalid input string."),_s=v.ParserState.SpecialAuthorityIgnoreSlashes;break;case v.ParserState.SpecialAuthoritySlashes:Dt.c()==="/"&&Dt.remaining().startsWith("/")?(_s=v.ParserState.SpecialAuthorityIgnoreSlashes,Dt.pointer++):(F("Expected '//'."),_s=v.ParserState.SpecialAuthorityIgnoreSlashes,Dt.pointer--);break;case v.ParserState.SpecialAuthorityIgnoreSlashes:Dt.c()!=="/"&&Dt.c()!=="\\"?(_s=v.ParserState.Authority,Dt.pointer--):F("Unexpected '/' or '\\'.");break;case v.ParserState.Authority:if(Dt.c()==="@"){F("Unexpected '@'."),Mn&&(ur="%40"+ur),Mn=!0;try{for(var jn=(Ir=void 0,l(ur)),Er=jn.next();!Er.done;Er=jn.next()){var or=Er.value;if(or!==":"||Ut){var br=Ft(or,V);Ut?Kn.password+=br:Kn.username+=br}else Ut=!0}}catch(mf){Ir={error:mf}}finally{try{Er&&!Er.done&&(yn=jn.return)&&yn.call(jn)}finally{if(Ir)throw Ir.error}}ur=""}else if(Dt.c()===""||Dt.c()==="/"||Dt.c()==="?"||Dt.c()==="#"||ie(Kn)&&Dt.c()==="\\"){if(Mn&&ur==="")return F("Invalid input string."),null;Dt.pointer-=ur.length+1,ur="",_s=v.ParserState.Host}else ur+=Dt.c();break;case v.ParserState.Host:case v.ParserState.Hostname:if(Gr!==void 0&&Kn.scheme==="file")Dt.pointer--,_s=v.ParserState.FileHost;else if(Dt.c()!==":"||Ot)if(Dt.c()===""||Dt.c()==="/"||Dt.c()==="?"||Dt.c()==="#"||ie(Kn)&&Dt.c()==="\\"){if(Dt.pointer--,ie(Kn)&&ur==="")return F("Invalid input string."),null;if(Gr!==void 0&&ur===""&&(ve(Kn)||Kn.port!==null))return F("Invalid input string."),Kn;if((ws=It(ur,!ie(Kn)))===null)return null;if(Kn.host=ws,ur="",_s=v.ParserState.PathStart,Gr!==void 0)return Kn}else Dt.c()==="["&&(Ot=!0),Dt.c()==="]"&&(Ot=!1),ur+=Dt.c();else{if(ur==="")return F("Invalid input string."),null;if((ws=It(ur,!ie(Kn)))===null)return null;if(Kn.host=ws,ur="",_s=v.ParserState.Port,Gr===v.ParserState.Hostname)return Kn}break;case v.ParserState.Port:if(T.codePoint.ASCIIDigit.test(Dt.c()))ur+=Dt.c();else{if(!(Dt.c()===""||Dt.c()==="/"||Dt.c()==="?"||Dt.c()==="#"||ie(Kn)&&Dt.c()==="\\"||Gr))return F("Invalid input string."),null;if(ur!==""&&ur!==""){var hs=parseInt(ur,10);if(hs>Math.pow(2,16)-1)return F("Invalid port number."),null;Kn.port=hs===fe(Kn.scheme)?null:hs,ur=""}if(Gr!==void 0)return Kn;_s=v.ParserState.PathStart,Dt.pointer--}break;case v.ParserState.File:if(Kn.scheme="file",Dt.c()==="/"||Dt.c()==="\\")Dt.c()==="\\"&&F("Invalid input string."),_s=v.ParserState.FileSlash;else if(tn!==null&&tn.scheme==="file")switch(Dt.c()){case"":Kn.host=tn.host,Kn.path=T.list.clone(tn.path),Kn.query=tn.query;break;case"?":Kn.host=tn.host,Kn.path=T.list.clone(tn.path),Kn.query="",_s=v.ParserState.Query;break;case"#":Kn.host=tn.host,Kn.path=T.list.clone(tn.path),Kn.query=tn.query,Kn.fragment="",_s=v.ParserState.Fragment;break;default:on(Dt.substring())?F("Unexpected windows drive letter in input string."):(Kn.host=tn.host,Kn.path=T.list.clone(tn.path),Fn(Kn)),_s=v.ParserState.Path,Dt.pointer--}else _s=v.ParserState.Path,Dt.pointer--;break;case v.ParserState.FileSlash:Dt.c()==="/"||Dt.c()==="\\"?(Dt.c()==="\\"&&F("Invalid input string."),_s=v.ParserState.FileHost):(tn===null||tn.scheme!=="file"||on(Dt.substring())||(Sn(tn.path[0])?Kn.path.push(tn.path[0]):Kn.host=tn.host),_s=v.ParserState.Path,Dt.pointer--);break;case v.ParserState.FileHost:if(Dt.c()===""||Dt.c()==="/"||Dt.c()==="\\"||Dt.c()==="?"||Dt.c()==="#")if(Dt.pointer--,Gr===void 0&&Qt(ur))F("Unexpected windows drive letter in input string."),_s=v.ParserState.Path;else if(ur===""){if(Kn.host="",Gr!==void 0)return Kn;_s=v.ParserState.PathStart}else{var ws;if((ws=It(ur,!ie(Kn)))===null)return null;if(ws==="localhost"&&(ws=""),Kn.host=ws,Gr!==void 0)return Kn;ur="",_s=v.ParserState.PathStart}else ur+=Dt.c();break;case v.ParserState.PathStart:ie(Kn)?(Dt.c()==="\\"&&F("Invalid input string."),_s=v.ParserState.Path,Dt.c()!=="/"&&Dt.c()!=="\\"&&Dt.pointer--):Gr===void 0&&Dt.c()==="?"?(Kn.query="",_s=v.ParserState.Query):Gr===void 0&&Dt.c()==="#"?(Kn.fragment="",_s=v.ParserState.Fragment):Dt.c()!==""&&(_s=v.ParserState.Path,Dt.c()!=="/"&&Dt.pointer--);break;case v.ParserState.Path:if(Dt.c()===""||Dt.c()==="/"||ie(Kn)&&Dt.c()==="\\"||Gr===void 0&&(Dt.c()==="?"||Dt.c()==="#")){if(ie(Kn)&&Dt.c()==="\\"&&F("Invalid input string."),fn(ur))Fn(Kn),Dt.c()==="/"||ie(Kn)&&Dt.c()==="\\"||Kn.path.push("");else if(!Bt(ur)||Dt.c()==="/"||ie(Kn)&&Dt.c()==="\\"){if(!Bt(ur)){if(Kn.scheme==="file"&&Kn.path.length===0&&Qt(ur)){Kn.host!==null&&Kn.host!==""&&(F("Invalid input string."),Kn.host="");var Ii=Array.from(ur);ur=Ii.slice(0,1)+":"+Ii.slice(2)}Kn.path.push(ur)}}else Kn.path.push("");if(ur="",Kn.scheme==="file"&&(Dt.c()===""||Dt.c()==="?"||Dt.c()==="#"))for(;Kn.path.length>1&&Kn.path[0]==="";)F("Invalid input string."),Kn.path.splice(0,1);Dt.c()==="?"&&(Kn.query="",_s=v.ParserState.Query),Dt.c()==="#"&&(Kn.fragment="",_s=v.ParserState.Fragment)}else B.test(Dt.c())||Dt.c()==="%"||F("Character is not a URL code point or a percent encoded character."),Dt.c()!=="%"||/^[0-9a-fA-F][0-9a-fA-F]/.test(Dt.remaining())||F("Percent encoded character must be followed by two hex digits."),ur+=Ft(Dt.c(),W);break;case v.ParserState.CannotBeABaseURLPath:Dt.c()==="?"?(Kn.query="",_s=v.ParserState.Query):Dt.c()==="#"?(Kn.fragment="",_s=v.ParserState.Fragment):(Dt.c()===""||B.test(Dt.c())||Dt.c()==="%"||F("Character is not a URL code point or a percent encoded character."),Dt.c()!=="%"||/^[0-9a-fA-F][0-9a-fA-F]/.test(Dt.remaining())||F("Percent encoded character must be followed by two hex digits."),Dt.c()!==""&&(Kn.path[0]+=Ft(Dt.c(),C)));break;case v.ParserState.Query:if(Ul==="UTF-8"||ie(Kn)&&Kn.scheme!=="ws"&&Kn.scheme!=="wss"||(Ul="UTF-8"),Gr===void 0&&Dt.c()==="#")Kn.fragment="",_s=v.ParserState.Fragment;else if(Dt.c()!==""){if(B.test(Dt.c())||Dt.c()==="%"||F("Character is not a URL code point or a percent encoded character."),Dt.c()!=="%"||/^[0-9a-fA-F][0-9a-fA-F]/.test(Dt.remaining())||F("Percent encoded character must be followed by two hex digits."),Ul.toUpperCase()!=="UTF-8")throw new Error("Only UTF-8 encoding is supported.");var ss=h.utf8Encode(Dt.c());if(ss.length>=3&&ss[0]===38&&ss[1]===35&&ss[ss.length-1]===59)ss=ss.subarray(2,ss.length-1),Kn.query+="%26%23"+T.byteSequence.isomorphicDecode(ss)+"%3B";else try{for(var Nl=(ga=void 0,l(ss)),yp=Nl.next();!yp.done;yp=Nl.next()){var Rc=yp.value;Rc<33||Rc>126||Rc===34||Rc===35||Rc===60||Rc===62||Rc===39&&ie(Kn)?Kn.query+=Bn(Rc):Kn.query+=String.fromCharCode(Rc)}}catch(mf){ga={error:mf}}finally{try{yp&&!yp.done&&(so=Nl.return)&&so.call(Nl)}finally{if(ga)throw ga.error}}}break;case v.ParserState.Fragment:Dt.c()===""||(Dt.c()==="\0"?F("NULL character in input string."):(B.test(Dt.c())||Dt.c()==="%"||F("Unexpected character in fragment string."),Dt.c()!=="%"||/^[A-Za-z0-9][A-Za-z0-9]/.test(Dt.remaining())||F("Unexpected character in fragment string."),Kn.fragment+=Ft(Dt.c(),w)))}if(Dt.eof)break;Dt.pointer++}return Kn}e(Ct,"A");function Bt(Tt){return Tt==="."||Tt.toLowerCase()==="%2e"}e(Bt,"N");function fn(Tt){var tn=Tt.toLowerCase();return tn===".."||tn===".%2e"||tn==="%2e."||tn==="%2e%2e"}e(fn,"T");function Fn(Tt){var tn=Tt.path;tn.length!==0&&(Tt.scheme==="file"&&tn.length===1&&Sn(tn[0])||Tt.path.splice(Tt.path.length-1,1))}e(Fn,"O");function Sn(Tt){return Tt.length>=2&&T.codePoint.ASCIIAlpha.test(Tt[0])&&Tt[1]===":"}e(Sn,"F");function Qt(Tt){return Tt.length>=2&&T.codePoint.ASCIIAlpha.test(Tt[0])&&(Tt[1]===":"||Tt[1]==="|")}e(Qt,"k");function on(Tt){return Tt.length>=2&&Qt(Tt)&&(Tt.length===2||Tt[2]==="/"||Tt[2]==="\\"||Tt[2]==="?"||Tt[2]==="#")}e(on,"P");function It(Tt,tn){if(tn===void 0&&(tn=!1),Tt.startsWith("["))return Tt.endsWith("]")?wn(Tt.substring(1,Tt.length-1)):(F("Expected ']' after '['."),null);if(tn)return Gn(Tt);var En=zt(h.utf8Decode(Yt(Tt)));if(En===null||k.test(En))return F("Invalid domain."),null;var Kn=ht(En);return Kn===null||h.isNumber(Kn)?Kn:En}e(It,"I");function Kt(Tt,tn){tn===void 0&&(tn={value:!1});var En=10;return Tt.startsWith("0x")||Tt.startsWith("0X")?(tn.value=!0,Tt=Tt.substr(2),En=16):Tt.length>=2&&Tt[0]==="0"&&(tn.value=!0,Tt=Tt.substr(1),En=8),Tt===""?0:(En===10?/^[0-9]+$/:En===16?/^[0-9A-Fa-f]+$/:/^[0-7]+$/).test(Tt)?parseInt(Tt,En):null}e(Kt,"L");function ht(Tt){var tn,En,Kn,Gr,Ir={value:!1},yn=Tt.split(".");if(yn[yn.length-1]===""&&(Ir.value=!0,yn.length>1&&yn.pop()),yn.length>4)return Tt;var ga=[];try{for(var so=l(yn),Pl=so.next();!Pl.done;Pl=so.next()){var Du=Pl.value;if(Du===""||(Ot=Kt(Du,Ir))===null)return Tt;ga.push(Ot)}}catch(Ut){tn={error:Ut}}finally{try{Pl&&!Pl.done&&(En=so.return)&&En.call(so)}finally{if(tn)throw tn.error}}Ir.value&&F("Invalid IP v4 address.");for(var Od=0;Od<ga.length;Od++)if(ga[Od]>255&&(F("Invalid IP v4 address."),Od<ga.length-1))return null;if(ga[ga.length-1]>=Math.pow(256,5-ga.length))return F("Invalid IP v4 address."),null;var _s=ga[ga.length-1];ga.pop();var Ul=0;try{for(var ur=l(ga),Mn=ur.next();!Mn.done;Mn=ur.next()){var Ot;_s+=(Ot=Mn.value)*Math.pow(256,3-Ul),Ul++}}catch(Ut){Kn={error:Ut}}finally{try{Mn&&!Mn.done&&(Gr=ur.return)&&Gr.call(ur)}finally{if(Kn)throw Kn.error}}return _s}e(ht,"M");function wn(Tt){var tn,En=[0,0,0,0,0,0,0,0],Kn=0,Gr=null,Ir=new h.StringWalker(Tt);if(Ir.c()===":"){if(!Ir.remaining().startsWith(":"))return F("Invalid IP v6 address."),null;Ir.pointer+=2,Gr=Kn+=1}for(;Ir.c()!=="";){if(Kn===8)return F("Invalid IP v6 address."),null;if(Ir.c()!==":"){for(var yn=0,ga=0;ga<4&&T.codePoint.ASCIIHexDigit.test(Ir.c());)yn=16*yn+parseInt(Ir.c(),16),Ir.pointer++,ga++;if(Ir.c()==="."){if(ga===0||(Ir.pointer-=ga,Kn>6))return F("Invalid IP v6 address."),null;for(var so=0;Ir.c()!=="";){var Pl=null;if(so>0){if(!(Ir.c()==="."&&so<4))return F("Invalid IP v6 address."),null;Ir.pointer++}if(!T.codePoint.ASCIIDigit.test(Ir.c()))return F("Invalid IP v6 address."),null;for(;T.codePoint.ASCIIDigit.test(Ir.c());){var Du=parseInt(Ir.c(),10);if(Pl===null)Pl=Du;else{if(Pl===0)return F("Invalid IP v6 address."),null;Pl=10*Pl+Du}if(Pl>255)return F("Invalid IP v6 address."),null;Ir.pointer++}if(Pl===null)return F("Invalid IP v6 address."),null;En[Kn]=256*En[Kn]+Pl,++so!==2&&so!==4||Kn++}if(so!==4)return F("Invalid IP v6 address."),null;break}if(Ir.c()===":"){if(Ir.pointer++,Ir.c()==="")return F("Invalid IP v6 address."),null}else if(Ir.c()!=="")return F("Invalid IP v6 address."),null;En[Kn]=yn,Kn++}else{if(Gr!==null)return F("Invalid IP v6 address."),null;Ir.pointer++,Gr=++Kn}}if(Gr!==null){var Od=Kn-Gr;for(Kn=7;Kn!==0&&Od>0;)tn=u([En[Gr+Od-1],En[Kn]],2),En[Kn]=tn[0],En[Gr+Od-1]=tn[1],Kn--,Od--}else if(Gr===null&&Kn!==8)return F("Invalid IP v6 address."),null;return En}e(wn,"B");function Gn(Tt){var tn,En;if(/[\x00\t\f\r #/:?@\[\\\]]/.test(Tt))return F("Invalid host string."),null;var Kn="";try{for(var Gr=l(Tt),Ir=Gr.next();!Ir.done;Ir=Gr.next())Kn+=Ft(Ir.value,C)}catch(yn){tn={error:yn}}finally{try{Ir&&!Ir.done&&(En=Gr.return)&&En.call(Gr)}finally{if(tn)throw tn.error}}return Kn}e(Gn,"j");function _n(Tt){return null}e(_n,"R");function Bn(Tt){return"%"+("00"+Tt.toString(16).toUpperCase()).slice(-2)}e(Bn,"z");function cr(Tt){for(var tn=function(ga){return ga>=48&&ga<=57||ga>=65&&ga<=70||ga>=97&&ga<=102},En=new Uint8Array(Tt.length),Kn=0,Gr=0;Gr<Tt.length;Gr++){var Ir=Tt[Gr];if(Ir!==37)En[Kn]=Ir,Kn++;else if(Ir===37&&Gr>=Tt.length-2)En[Kn]=Ir,Kn++;else if(Ir!==37||tn(Tt[Gr+1])&&tn(Tt[Gr+2])){var yn=parseInt(h.utf8Decode(Uint8Array.of(Tt[Gr+1],Tt[Gr+2])),16);En[Kn]=yn,Kn++,Gr+=2}else En[Kn]=Ir,Kn++}return En.subarray(0,Kn)}e(cr,"U");function Yt(Tt){return cr(h.utf8Encode(Tt))}e(Yt,"G");function Ft(Tt,tn){var En,Kn;if(!tn.test(Tt))return Tt;var Gr=h.utf8Encode(Tt),Ir="";try{for(var yn=l(Gr),ga=yn.next();!ga.done;ga=yn.next())Ir+=Bn(ga.value)}catch(so){En={error:so}}finally{try{ga&&!ga.done&&(Kn=yn.return)&&Kn.call(yn)}finally{if(En)throw En.error}}return Ir}e(Ft,"X");function pt(Tt){var tn,En,Kn,Gr,Ir=[],yn=[];try{for(var ga=l(Tt),so=ga.next();!so.done;so=ga.next()){var Pl=so.value;Pl===38?(Ir.push(Uint8Array.from(yn)),yn=[]):yn.push(Pl)}}catch(Er){tn={error:Er}}finally{try{so&&!so.done&&(En=ga.return)&&En.call(ga)}finally{if(tn)throw tn.error}}yn.length!==0&&Ir.push(Uint8Array.from(yn));var Du=[];try{for(var Od=l(Ir),_s=Od.next();!_s.done;_s=Od.next()){var Ul=_s.value;if(Ul.length!==0){for(var ur=Ul.indexOf(61),Mn=ur!==-1?Ul.slice(0,ur):Ul,Ot=ur!==-1?Ul.slice(ur+1):new Uint8Array,Ut=0;Ut<Mn.length;Ut++)Mn[Ut]===43&&(Mn[Ut]=32);for(Ut=0;Ut<Ot.length;Ut++)Ot[Ut]===43&&(Ot[Ut]=32);var Dt=h.utf8Decode(Mn),jn=h.utf8Decode(Ot);Du.push([Dt,jn])}}}catch(Er){Kn={error:Er}}finally{try{_s&&!_s.done&&(Gr=Od.return)&&Gr.call(Od)}finally{if(Kn)throw Kn.error}}return Du}e(pt,"q");function me(Tt){var tn,En,Kn="";try{for(var Gr=l(Tt),Ir=Gr.next();!Ir.done;Ir=Gr.next()){var yn=Ir.value;Kn+=yn===32?"+":yn===42||yn===45||yn===46||yn>=48&&yn<=57||yn>=65&&yn<=90||yn===95||yn>=97&&yn<=122?String.fromCodePoint(yn):Bn(yn)}}catch(ga){tn={error:ga}}finally{try{Ir&&!Ir.done&&(En=Gr.return)&&En.call(Gr)}finally{if(tn)throw tn.error}}return Kn}e(me,"W");function zt(Tt,tn){tn===void 0&&(tn=!1);var En=E.domainToASCII(Tt);return En===""?(F("Invalid domain name."),null):En}e(zt,"H"),n.setValidationErrorCallback=function(Tt){p=Tt},n.newURL=$,n.isSpecialScheme=Y,n.isSpecial=ie,n.defaultPort=fe,n.includesCredentials=ve,n.cannotHaveAUsernamePasswordPort=function(Tt){return Tt.host===null||Tt.host===""||Tt._cannotBeABaseURLFlag||Tt.scheme==="file"},n.urlSerializer=Ce,n.hostSerializer=be,n.iPv4Serializer=qe,n.iPv6Serializer=yt,n.urlParser=function(Tt,tn,En){var Kn=Ct(Tt,tn,En);return Kn===null?null:(Kn.scheme!=="blob"||(Kn._blobURLEntry=null),Kn)},n.basicURLParser=Ct,n.setTheUsername=function(Tt,tn){var En,Kn,Gr="";try{for(var Ir=l(tn),yn=Ir.next();!yn.done;yn=Ir.next())Gr+=Ft(yn.value,V)}catch(ga){En={error:ga}}finally{try{yn&&!yn.done&&(Kn=Ir.return)&&Kn.call(Ir)}finally{if(En)throw En.error}}Tt.username=Gr},n.setThePassword=function(Tt,tn){var En,Kn,Gr="";try{for(var Ir=l(tn),yn=Ir.next();!yn.done;yn=Ir.next())Gr+=Ft(yn.value,V)}catch(ga){En={error:ga}}finally{try{yn&&!yn.done&&(Kn=Ir.return)&&Kn.call(Ir)}finally{if(En)throw En.error}}Tt.password=Gr},n.isSingleDotPathSegment=Bt,n.isDoubleDotPathSegment=fn,n.shorten=Fn,n.isNormalizedWindowsDriveLetter=Sn,n.isWindowsDriveLetter=Qt,n.startsWithAWindowsDriveLetter=on,n.hostParser=It,n.iPv4NumberParser=Kt,n.iPv4Parser=ht,n.iPv6Parser=wn,n.opaqueHostParser=Gn,n.resolveABlobURL=_n,n.percentEncode=Bn,n.percentDecode=cr,n.stringPercentDecode=Yt,n.utf8PercentEncode=Ft,n.hostEquals=function(Tt,tn){return Tt===tn},n.urlEquals=function(Tt,tn,En){return En===void 0&&(En=!1),Ce(Tt,En)===Ce(tn,En)},n.urlEncodedStringParser=function(Tt){return pt(h.utf8Encode(Tt))},n.urlEncodedParser=pt,n.urlEncodedByteSerializer=me,n.urlEncodedSerializer=function(Tt,tn){var En,Kn;if((tn===void 0||tn==="replacement"||tn==="UTF-16BE"||tn==="UTF-16LE"?"UTF-8":tn).toUpperCase()!=="UTF-8")throw new Error("Only UTF-8 encoding is supported.");var Gr="";try{for(var Ir=l(Tt),yn=Ir.next();!yn.done;yn=Ir.next()){var ga=yn.value,so=me(h.utf8Encode(ga[0])),Pl=ga[1];Pl=me(h.utf8Encode(Pl)),Gr!==""&&(Gr+="&"),Gr+=so+"="+Pl}}catch(Du){En={error:Du}}finally{try{yn&&!yn.done&&(Kn=Ir.return)&&Kn.call(Ir)}finally{if(En)throw En.error}}return Gr},n.origin=e(function Tt(tn){switch(tn.scheme){case"blob":tn._blobURLEntry;var En=Ct(tn.path[0]);return En===null?v.OpaqueOrigin:Tt(En);case"ftp":case"http":case"https":case"ws":case"wss":return[tn.scheme,tn.host===null?"":tn.host,tn.port,null];case"file":default:return v.OpaqueOrigin}},"e"),n.domainToASCII=zt,n.domainToUnicode=function(Tt,tn){tn===void 0&&(tn=!1);var En=E.domainToUnicode(Tt);return En===""&&F("Invalid domain name."),En},n.asciiSerializationOfAnOrigin=function(Tt){if(Tt[0]===""&&Tt[1]===""&&Tt[2]===null&&Tt[3]===null)return"null";var tn=Tt[0]+"://"+be(Tt[1]);return Tt[2]!==null&&(tn+=":"+Tt[2].toString()),tn}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(0),u=function(){function p(){this._signal=l.create_abortSignal()}return e(p,"e"),Object.defineProperty(p.prototype,"signal",{get:e(function(){return this._signal},"get"),enumerable:!0,configurable:!0}),p.prototype.abort=function(){l.abort_signalAbort(this._signal)},p}();n.AbortControllerImpl=u},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(T,E){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var w in C)C.hasOwnProperty(w)&&(D[w]=C[w])})(T,E)},"n"),function(T,E){function D(){this.constructor=T}e(D,"r"),l(T,E),T.prototype=E===null?Object.create(E):(D.prototype=E.prototype,new D)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(70),h=o(0),v=function(T){function E(){var D=T.call(this)||this;return D._abortedFlag=!1,D._abortAlgorithms=new Set,D}return e(E,"t"),u(E,T),Object.defineProperty(E.prototype,"aborted",{get:e(function(){return this._abortedFlag},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"onabort",{get:e(function(){return h.event_getterEventHandlerIDLAttribute(this,"onabort")},"get"),set:e(function(D){h.event_setterEventHandlerIDLAttribute(this,"onabort",D)},"set"),enumerable:!0,configurable:!0}),E._create=function(){return new E},E}(p.EventTargetImpl);n.AbortSignalImpl=v},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(1),h=o(34),v=o(12),T=function(E){function D(C,w,W){var V=E.call(this)||this;return V._name="",V._publicId="",V._systemId="",V._name=C,V._publicId=w,V._systemId=W,V}return e(D,"t"),u(D,E),Object.defineProperty(D.prototype,"name",{get:e(function(){return this._name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"publicId",{get:e(function(){return this._publicId},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"systemId",{get:e(function(){return this._systemId},"get"),enumerable:!0,configurable:!0}),D.prototype.before=function(){for(var C=[],w=0;w<arguments.length;w++)C[w]=arguments[w];throw new Error("Mixin: ChildNode not implemented.")},D.prototype.after=function(){for(var C=[],w=0;w<arguments.length;w++)C[w]=arguments[w];throw new Error("Mixin: ChildNode not implemented.")},D.prototype.replaceWith=function(){for(var C=[],w=0;w<arguments.length;w++)C[w]=arguments[w];throw new Error("Mixin: ChildNode not implemented.")},D.prototype.remove=function(){throw new Error("Mixin: ChildNode not implemented.")},D._create=function(C,w,W,V){W===void 0&&(W=""),V===void 0&&(V="");var B=new D(w,W,V);return B._nodeDocument=C,B},D}(h.NodeImpl);n.DocumentTypeImpl=T,v.idl_defineConst(T.prototype,"_nodeType",p.NodeType.DocumentType)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(100),h=o(2),v=o(0),T=function(E){function D(C,w){var W=E.call(this)||this;return W._host=C,W._mode=w,W}return e(D,"t"),u(D,E),Object.defineProperty(D.prototype,"mode",{get:e(function(){return this._mode},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"host",{get:e(function(){return this._host},"get"),enumerable:!0,configurable:!0}),D.prototype._getTheParent=function(C){return C._composedFlag||h.isEmpty(C._path)||v.tree_rootNode(C._path[0].invocationTarget)!==this?this._host:null},D._create=function(C,w){return new D(w,"closed")},D}(p.DocumentFragmentImpl);n.ShadowRootImpl=T},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(D,C){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,W){w.__proto__=W}||function(w,W){for(var V in W)W.hasOwnProperty(V)&&(w[V]=W[V])})(D,C)},"n"),function(D,C){function w(){this.constructor=D}e(w,"r"),l(D,C),D.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(1),h=o(34),v=o(0),T=o(12),E=function(D){function C(w){var W=D.call(this)||this;return W._namespace=null,W._namespacePrefix=null,W._element=null,W._value="",W._localName=w,W}return e(C,"t"),u(C,D),Object.defineProperty(C.prototype,"ownerElement",{get:e(function(){return this._element},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"namespaceURI",{get:e(function(){return this._namespace},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"prefix",{get:e(function(){return this._namespacePrefix},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"localName",{get:e(function(){return this._localName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"name",{get:e(function(){return this._qualifiedName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"value",{get:e(function(){return this._value},"get"),set:e(function(w){v.attr_setAnExistingAttributeValue(this,w)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(C.prototype,"_qualifiedName",{get:e(function(){return this._namespacePrefix!==null?this._namespacePrefix+":"+this._localName:this._localName},"get"),enumerable:!0,configurable:!0}),C._create=function(w,W){var V=new C(W);return V._nodeDocument=w,V},C}(h.NodeImpl);n.AttrImpl=E,T.idl_defineConst(E.prototype,"_nodeType",p.NodeType.Attribute),T.idl_defineConst(E.prototype,"specified",!0)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(101),h=o(1),v=o(12),T=function(E){function D(C){return E.call(this,C)||this}return e(D,"t"),u(D,E),D._create=function(C,w){w===void 0&&(w="");var W=new D(w);return W._nodeDocument=C,W},D}(p.TextImpl);n.CDATASectionImpl=T,v.idl_defineConst(T.prototype,"_nodeType",h.NodeType.CData)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(1),h=o(71),v=o(12),T=function(E){function D(C){return C===void 0&&(C=""),E.call(this,C)||this}return e(D,"t"),u(D,E),D._create=function(C,w){w===void 0&&(w="");var W=new D(w);return W._nodeDocument=C,W},D}(h.CharacterDataImpl);n.CommentImpl=T,v.idl_defineConst(T.prototype,"_nodeType",p.NodeType.Comment)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(1),h=o(71),v=o(12),T=function(E){function D(C,w){var W=E.call(this,w)||this;return W._target=C,W}return e(D,"t"),u(D,E),Object.defineProperty(D.prototype,"target",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),D._create=function(C,w,W){var V=new D(w,W);return V._nodeDocument=C,V},D}(h.CharacterDataImpl);n.ProcessingInstructionImpl=T,v.idl_defineConst(T.prototype,"_nodeType",p.NodeType.ProcessingInstruction)},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(7),u=o(0),p=o(3),h=o(2),v=function(){function T(E,D){return this._live=!0,this._root=E,this._filter=D,new Proxy(this,this)}return e(T,"e"),Object.defineProperty(T.prototype,"length",{get:e(function(){for(var E=this,D=0,C=u.tree_getFirstDescendantNode(this._root,!1,!1,function(w){return p.Guard.isElementNode(w)&&E._filter(w)});C!==null;)D++,C=u.tree_getNextDescendantNode(this._root,C,!1,!1,function(w){return p.Guard.isElementNode(w)&&E._filter(w)});return D},"get"),enumerable:!0,configurable:!0}),T.prototype.item=function(E){for(var D=this,C=0,w=u.tree_getFirstDescendantNode(this._root,!1,!1,function(W){return p.Guard.isElementNode(W)&&D._filter(W)});w!==null;){if(C===E)return w;C++,w=u.tree_getNextDescendantNode(this._root,w,!1,!1,function(W){return p.Guard.isElementNode(W)&&D._filter(W)})}return null},T.prototype.namedItem=function(E){var D=this;if(E==="")return null;for(var C=u.tree_getFirstDescendantNode(this._root,!1,!1,function(V){return p.Guard.isElementNode(V)&&D._filter(V)});C!=null;){if(C._uniqueIdentifier===E)return C;if(C._namespace===l.namespace.HTML)for(var w=0;w<C._attributeList.length;w++){var W=C._attributeList[w];if(W._localName==="name"&&W._namespace===null&&W._namespacePrefix===null&&W._value===E)return C}C=u.tree_getNextDescendantNode(this._root,C,!1,!1,function(V){return p.Guard.isElementNode(V)&&D._filter(V)})}return null},T.prototype[Symbol.iterator]=function(){var E=this._root,D=this._filter,C=u.tree_getFirstDescendantNode(E,!1,!1,function(w){return p.Guard.isElementNode(w)&&D(w)});return{next:e(function(){if(C===null)return{done:!0,value:null};var w={done:!1,value:C};return C=u.tree_getNextDescendantNode(E,C,!1,!1,function(W){return p.Guard.isElementNode(W)&&D(W)}),w},"next")}},T.prototype.get=function(E,D,C){if(!h.isString(D)||T.reservedNames.indexOf(D)!==-1)return Reflect.get(E,D,C);var w=Number(D);return isNaN(w)?E.namedItem(D)||void 0:E.item(w)||void 0},T.prototype.set=function(E,D,C,w){if(!h.isString(D)||T.reservedNames.indexOf(D)!==-1)return Reflect.set(E,D,C,w);var W=Number(D),V=isNaN(W)?E.namedItem(D)||void 0:E.item(W)||void 0;return!(!V||!V._parent)&&(u.mutation_replace(V,C,V._parent),!0)},T._create=function(E,D){return D===void 0&&(D=e(function(){return!0},"r")),new T(E,D)},T.reservedNames=["_root","_live","_filter","length","item","namedItem","get","set"],T}();n.HTMLCollectionImpl=v},function(i,n,o){"use strict";var l=this&&this.__values||function(T){var E=typeof Symbol=="function"&&Symbol.iterator,D=E&&T[E],C=0;if(D)return D.call(T);if(T&&typeof T.length=="number")return{next:e(function(){return T&&C>=T.length&&(T=void 0),{value:T&&T[C++],done:!T}},"next")};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(2),h=o(0),v=function(){function T(E){return this._live=!0,this._filter=null,this._length=0,this._root=E,new Proxy(this,this)}return e(T,"e"),Object.defineProperty(T.prototype,"length",{get:e(function(){return this._root._children.size},"get"),enumerable:!0,configurable:!0}),T.prototype.item=function(E){if(E<0||E>this.length-1)return null;if(E<this.length/2){for(var D=0,C=this._root._firstChild;C!==null&&D!==E;)C=C._nextSibling,D++;return C}for(D=this.length-1,C=this._root._lastChild;C!==null&&D!==E;)C=C._previousSibling,D--;return C},T.prototype.keys=function(){var E;return(E={})[Symbol.iterator]=function(){var D=0;return{next:function(){return D===this.length?{done:!0,value:null}:{done:!1,value:D++}}.bind(this)}}.bind(this),E},T.prototype.values=function(){var E;return(E={})[Symbol.iterator]=function(){var D=this[Symbol.iterator]();return{next:e(function(){return D.next()},"next")}}.bind(this),E},T.prototype.entries=function(){var E;return(E={})[Symbol.iterator]=function(){var D=this[Symbol.iterator](),C=0;return{next:e(function(){var w=D.next();return w.done?{done:!0,value:null}:{done:!1,value:[C++,w.value]}},"next")}}.bind(this),E},T.prototype[Symbol.iterator]=function(){return this._root._children[Symbol.iterator]()},T.prototype.forEach=function(E,D){var C,w;D===void 0&&(D=u.dom.window);var W=0;try{for(var V=l(this._root._children),B=V.next();!B.done;B=V.next()){var k=B.value;E.call(D,k,W++,this)}}catch(F){C={error:F}}finally{try{B&&!B.done&&(w=V.return)&&w.call(V)}finally{if(C)throw C.error}}},T.prototype.get=function(E,D,C){if(!p.isString(D))return Reflect.get(E,D,C);var w=Number(D);return isNaN(w)?Reflect.get(E,D,C):E.item(w)||void 0},T.prototype.set=function(E,D,C,w){if(!p.isString(D))return Reflect.set(E,D,C,w);var W=Number(D);if(isNaN(W))return Reflect.set(E,D,C,w);var V=E.item(W)||void 0;return!!V&&!!V._parent&&(h.mutation_replace(V,C,V._parent),!0)},T._create=function(E){return new T(E)},T}();n.NodeListImpl=v},function(i,n,o){"use strict";var l=this&&this.__values||function(v){var T=typeof Symbol=="function"&&Symbol.iterator,E=T&&v[T],D=0;if(E)return E.call(v);if(v&&typeof v.length=="number")return{next:e(function(){return v&&D>=v.length&&(v=void 0),{value:v&&v[D++],done:!v}},"next")};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(2),h=function(){function v(T){return this._live=!1,this._items=[],this._length=0,this._root=T,this._items=[],this._filter=function(E){return!0},new Proxy(this,this)}return e(v,"e"),Object.defineProperty(v.prototype,"length",{get:e(function(){return this._items.length},"get"),enumerable:!0,configurable:!0}),v.prototype.item=function(T){return T<0||T>this.length-1?null:this._items[T]},v.prototype.keys=function(){var T;return(T={})[Symbol.iterator]=function(){var E=0;return{next:function(){return E===this.length?{done:!0,value:null}:{done:!1,value:E++}}.bind(this)}}.bind(this),T},v.prototype.values=function(){var T;return(T={})[Symbol.iterator]=function(){var E=this[Symbol.iterator]();return{next:e(function(){return E.next()},"next")}}.bind(this),T},v.prototype.entries=function(){var T;return(T={})[Symbol.iterator]=function(){var E=this[Symbol.iterator](),D=0;return{next:e(function(){var C=E.next();return C.done?{done:!0,value:null}:{done:!1,value:[D++,C.value]}},"next")}}.bind(this),T},v.prototype[Symbol.iterator]=function(){var T=this._items[Symbol.iterator]();return{next:e(function(){return T.next()},"next")}},v.prototype.forEach=function(T,E){var D,C;E===void 0&&(E=u.dom.window);var w=0;try{for(var W=l(this._items),V=W.next();!V.done;V=W.next()){var B=V.value;T.call(E,B,w++,this)}}catch(k){D={error:k}}finally{try{V&&!V.done&&(C=W.return)&&C.call(W)}finally{if(D)throw D.error}}},v.prototype.get=function(T,E,D){if(!p.isString(E))return Reflect.get(T,E,D);var C=Number(E);return isNaN(C)?Reflect.get(T,E,D):T._items[C]||void 0},v.prototype.set=function(T,E,D,C){if(!p.isString(E))return Reflect.set(T,E,D,C);var w=Number(E);return isNaN(w)?Reflect.set(T,E,D,C):w>=0&&w<T._items.length&&(T._items[w]=D,!0)},v._create=function(T,E){var D=new v(T);return D._items=E,D},v}();n.NodeListStaticImpl=h},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(T,E){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var w in C)C.hasOwnProperty(w)&&(D[w]=C[w])})(T,E)},"n"),function(T,E){function D(){this.constructor=T}e(D,"r"),l(T,E),T.prototype=E===null?Object.create(E):(D.prototype=E.prototype,new D)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(9),h=o(0),v=function(T){function E(D){var C=T.call(this)||this;return C._element=D,Object.setPrototypeOf(C,E.prototype),C}return e(E,"t"),u(E,T),E.prototype._asArray=function(){return this},E.prototype.item=function(D){return this[D]||null},E.prototype.getNamedItem=function(D){return h.element_getAnAttributeByName(D,this._element)},E.prototype.getNamedItemNS=function(D,C){return h.element_getAnAttributeByNamespaceAndLocalName(D||"",C,this._element)},E.prototype.setNamedItem=function(D){return h.element_setAnAttribute(D,this._element)},E.prototype.setNamedItemNS=function(D){return h.element_setAnAttribute(D,this._element)},E.prototype.removeNamedItem=function(D){var C=h.element_removeAnAttributeByName(D,this._element);if(C===null)throw new p.NotFoundError;return C},E.prototype.removeNamedItemNS=function(D,C){var w=h.element_removeAnAttributeByNamespaceAndLocalName(D||"",C,this._element);if(w===null)throw new p.NotFoundError;return w},E._create=function(D){return new E(D)},E}(Array);n.NamedNodeMapImpl=v},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(V,B){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,F){k.__proto__=F}||function(k,F){for(var $ in F)F.hasOwnProperty($)&&(k[$]=F[$])})(V,B)},"n"),function(V,B){function k(){this.constructor=V}e(k,"r"),l(V,B),V.prototype=B===null?Object.create(B):(k.prototype=B.prototype,new k)}),p=this&&this.__values||function(V){var B=typeof Symbol=="function"&&Symbol.iterator,k=B&&V[B],F=0;if(k)return k.call(V);if(V&&typeof V.length=="number")return{next:e(function(){return V&&F>=V.length&&(V=void 0),{value:V&&V[F++],done:!V}},"next")};throw new TypeError(B?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var h=o(6),v=o(1),T=o(102),E=o(9),D=o(0),C=o(12),w=o(3),W=function(V){function B(){var k=V.call(this)||this,F=h.dom.window._associatedDocument;return k._start=[F,0],k._end=[F,0],h.dom.rangeList.add(k),k}return e(B,"t"),u(B,V),Object.defineProperty(B.prototype,"commonAncestorContainer",{get:e(function(){for(var k=this._start[0];!D.tree_isAncestorOf(this._end[0],k,!0);){if(k._parent===null)throw new Error("Parent node is null.");k=k._parent}return k},"get"),enumerable:!0,configurable:!0}),B.prototype.setStart=function(k,F){D.range_setTheStart(this,k,F)},B.prototype.setEnd=function(k,F){D.range_setTheEnd(this,k,F)},B.prototype.setStartBefore=function(k){var F=k._parent;if(F===null)throw new E.InvalidNodeTypeError;D.range_setTheStart(this,F,D.tree_index(k))},B.prototype.setStartAfter=function(k){var F=k._parent;if(F===null)throw new E.InvalidNodeTypeError;D.range_setTheStart(this,F,D.tree_index(k)+1)},B.prototype.setEndBefore=function(k){var F=k._parent;if(F===null)throw new E.InvalidNodeTypeError;D.range_setTheEnd(this,F,D.tree_index(k))},B.prototype.setEndAfter=function(k){var F=k._parent;if(F===null)throw new E.InvalidNodeTypeError;D.range_setTheEnd(this,F,D.tree_index(k)+1)},B.prototype.collapse=function(k){k?this._end=this._start:this._start=this._end},B.prototype.selectNode=function(k){D.range_select(k,this)},B.prototype.selectNodeContents=function(k){if(w.Guard.isDocumentTypeNode(k))throw new E.InvalidNodeTypeError;var F=D.tree_nodeLength(k);this._start=[k,0],this._end=[k,F]},B.prototype.compareBoundaryPoints=function(k,F){if(k!==v.HowToCompare.StartToStart&&k!==v.HowToCompare.StartToEnd&&k!==v.HowToCompare.EndToEnd&&k!==v.HowToCompare.EndToStart)throw new E.NotSupportedError;if(D.range_root(this)!==D.range_root(F))throw new E.WrongDocumentError;var $,Y;switch(k){case v.HowToCompare.StartToStart:$=this._start,Y=F._start;break;case v.HowToCompare.StartToEnd:$=this._end,Y=F._start;break;case v.HowToCompare.EndToEnd:$=this._end,Y=F._end;break;case v.HowToCompare.EndToStart:$=this._start,Y=F._end;break;default:throw new E.NotSupportedError}var ie=D.boundaryPoint_position($,Y);return ie===v.BoundaryPosition.Before?-1:ie===v.BoundaryPosition.After?1:0},B.prototype.deleteContents=function(){var k,F,$,Y;if(!D.range_collapsed(this)){var ie=this._startNode,fe=this._startOffset,ve=this._endNode,Ce=this._endOffset;if(ie===ve&&w.Guard.isCharacterDataNode(ie))D.characterData_replaceData(ie,fe,Ce-fe,"");else{var be,qe,yt=[];try{for(var Ct=p(D.range_getContainedNodes(this)),Bt=Ct.next();!Bt.done;Bt=Ct.next()){var fn=(on=Bt.value)._parent;fn!==null&&D.range_isContained(fn,this)||yt.push(on)}}catch(It){k={error:It}}finally{try{Bt&&!Bt.done&&(F=Ct.return)&&F.call(Ct)}finally{if(k)throw k.error}}if(D.tree_isAncestorOf(ve,ie,!0))be=ie,qe=fe;else{for(var Fn=ie;Fn._parent!==null&&!D.tree_isAncestorOf(ve,Fn._parent,!0);)Fn=Fn._parent;if(Fn._parent===null)throw new Error("Parent node is null.");be=Fn._parent,qe=D.tree_index(Fn)+1}w.Guard.isCharacterDataNode(ie)&&D.characterData_replaceData(ie,fe,D.tree_nodeLength(ie)-fe,"");try{for(var Sn=p(yt),Qt=Sn.next();!Qt.done;Qt=Sn.next()){var on;(on=Qt.value)._parent&&D.mutation_remove(on,on._parent)}}catch(It){$={error:It}}finally{try{Qt&&!Qt.done&&(Y=Sn.return)&&Y.call(Sn)}finally{if($)throw $.error}}w.Guard.isCharacterDataNode(ve)&&D.characterData_replaceData(ve,0,Ce,""),this._start=[be,qe],this._end=[be,qe]}}},B.prototype.extractContents=function(){return D.range_extract(this)},B.prototype.cloneContents=function(){return D.range_cloneTheContents(this)},B.prototype.insertNode=function(k){return D.range_insert(k,this)},B.prototype.surroundContents=function(k){var F,$;try{for(var Y=p(D.range_getPartiallyContainedNodes(this)),ie=Y.next();!ie.done;ie=Y.next()){var fe=ie.value;if(!w.Guard.isTextNode(fe))throw new E.InvalidStateError}}catch(Ce){F={error:Ce}}finally{try{ie&&!ie.done&&($=Y.return)&&$.call(Y)}finally{if(F)throw F.error}}if(w.Guard.isDocumentNode(k)||w.Guard.isDocumentTypeNode(k)||w.Guard.isDocumentFragmentNode(k))throw new E.InvalidNodeTypeError;var ve=D.range_extract(this);k._children.size!==0&&D.mutation_replaceAll(null,k),D.range_insert(k,this),D.mutation_append(ve,k),D.range_select(k,this)},B.prototype.cloneRange=function(){return D.create_range(this._start,this._end)},B.prototype.detach=function(){h.dom.rangeList.delete(this)},B.prototype.isPointInRange=function(k,F){if(D.tree_rootNode(k)!==D.range_root(this))return!1;if(w.Guard.isDocumentTypeNode(k))throw new E.InvalidNodeTypeError;if(F>D.tree_nodeLength(k))throw new E.IndexSizeError;var $=[k,F];return D.boundaryPoint_position($,this._start)!==v.BoundaryPosition.Before&&D.boundaryPoint_position($,this._end)!==v.BoundaryPosition.After},B.prototype.comparePoint=function(k,F){if(D.tree_rootNode(k)!==D.range_root(this))throw new E.WrongDocumentError;if(w.Guard.isDocumentTypeNode(k))throw new E.InvalidNodeTypeError;if(F>D.tree_nodeLength(k))throw new E.IndexSizeError;var $=[k,F];return D.boundaryPoint_position($,this._start)===v.BoundaryPosition.Before?-1:D.boundaryPoint_position($,this._end)===v.BoundaryPosition.After?1:0},B.prototype.intersectsNode=function(k){if(D.tree_rootNode(k)!==D.range_root(this))return!1;var F=k._parent;if(F===null)return!0;var $=D.tree_index(k);return D.boundaryPoint_position([F,$],this._end)===v.BoundaryPosition.Before&&D.boundaryPoint_position([F,$+1],this._start)===v.BoundaryPosition.After},B.prototype.toString=function(){var k,F,$="";if(this._startNode===this._endNode&&w.Guard.isTextNode(this._startNode))return this._startNode._data.substring(this._startOffset,this._endOffset);w.Guard.isTextNode(this._startNode)&&($+=this._startNode._data.substring(this._startOffset));try{for(var Y=p(D.range_getContainedNodes(this)),ie=Y.next();!ie.done;ie=Y.next()){var fe=ie.value;w.Guard.isTextNode(fe)&&($+=fe._data)}}catch(ve){k={error:ve}}finally{try{ie&&!ie.done&&(F=Y.return)&&F.call(Y)}finally{if(k)throw k.error}}return w.Guard.isTextNode(this._endNode)&&($+=this._endNode._data.substring(0,this._endOffset)),$},B._create=function(k,F){var $=new B;return k&&($._start=k),F&&($._end=F),$},B.START_TO_START=0,B.START_TO_END=1,B.END_TO_END=2,B.END_TO_START=3,B}(T.AbstractRangeImpl);n.RangeImpl=W,C.idl_defineConst(W.prototype,"START_TO_START",0),C.idl_defineConst(W.prototype,"START_TO_END",1),C.idl_defineConst(W.prototype,"END_TO_END",2),C.idl_defineConst(W.prototype,"END_TO_START",3)},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(T,E){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var w in C)C.hasOwnProperty(w)&&(D[w]=C[w])})(T,E)},"n"),function(T,E){function D(){this.constructor=T}e(D,"r"),l(T,E),T.prototype=E===null?Object.create(E):(D.prototype=E.prototype,new D)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(103),h=o(0),v=function(T){function E(D,C,w){var W=T.call(this,D)||this;return W._iteratorCollection=void 0,W._reference=C,W._pointerBeforeReference=w,h.nodeIterator_iteratorList().add(W),W}return e(E,"t"),u(E,T),Object.defineProperty(E.prototype,"referenceNode",{get:e(function(){return this._reference},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"pointerBeforeReferenceNode",{get:e(function(){return this._pointerBeforeReference},"get"),enumerable:!0,configurable:!0}),E.prototype.nextNode=function(){return h.nodeIterator_traverse(this,!0)},E.prototype.previousNode=function(){return h.nodeIterator_traverse(this,!1)},E.prototype.detach=function(){h.nodeIterator_iteratorList().delete(this)},E._create=function(D,C,w){return new E(D,C,w)},E}(p.TraverserImpl);n.NodeIteratorImpl=v},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(E,D){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var W in w)w.hasOwnProperty(W)&&(C[W]=w[W])})(E,D)},"n"),function(E,D){function C(){this.constructor=E}e(C,"r"),l(E,D),E.prototype=D===null?Object.create(D):(C.prototype=D.prototype,new C)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(1),h=o(103),v=o(0),T=function(E){function D(C,w){var W=E.call(this,C)||this;return W._current=w,W}return e(D,"t"),u(D,E),Object.defineProperty(D.prototype,"currentNode",{get:e(function(){return this._current},"get"),set:e(function(C){this._current=C},"set"),enumerable:!0,configurable:!0}),D.prototype.parentNode=function(){for(var C=this._current;C!==null&&C!==this._root;)if((C=C._parent)!==null&&v.traversal_filter(this,C)===p.FilterResult.Accept)return this._current=C,C;return null},D.prototype.firstChild=function(){return v.treeWalker_traverseChildren(this,!0)},D.prototype.lastChild=function(){return v.treeWalker_traverseChildren(this,!1)},D.prototype.nextSibling=function(){return v.treeWalker_traverseSiblings(this,!0)},D.prototype.previousNode=function(){for(var C=this._current;C!==this._root;){for(var w=C._previousSibling;w;){C=w;for(var W=v.traversal_filter(this,C);W!==p.FilterResult.Reject&&C._lastChild;)C=C._lastChild,W=v.traversal_filter(this,C);if(W===p.FilterResult.Accept)return this._current=C,C;w=C._previousSibling}if(C===this._root||C._parent===null)return null;if(C=C._parent,v.traversal_filter(this,C)===p.FilterResult.Accept)return this._current=C,C}return null},D.prototype.previousSibling=function(){return v.treeWalker_traverseSiblings(this,!1)},D.prototype.nextNode=function(){for(var C=this._current,w=p.FilterResult.Accept;;){for(;w!==p.FilterResult.Reject&&C._firstChild;)if(C=C._firstChild,(w=v.traversal_filter(this,C))===p.FilterResult.Accept)return this._current=C,C;for(var W=null,V=C;V!==null;){if(V===this._root)return null;if((W=V._nextSibling)!==null){C=W;break}V=V._parent}if((w=v.traversal_filter(this,C))===p.FilterResult.Accept)return this._current=C,C}},D._create=function(C,w){return new D(C,w)},D}(h.TraverserImpl);n.TreeWalkerImpl=T},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(1),u=o(12),p=function(){function h(){}return e(h,"e"),h.prototype.acceptNode=function(v){return l.FilterResult.Accept},h._create=function(){return new h},h.FILTER_ACCEPT=1,h.FILTER_REJECT=2,h.FILTER_SKIP=3,h.SHOW_ALL=4294967295,h.SHOW_ELEMENT=1,h.SHOW_ATTRIBUTE=2,h.SHOW_TEXT=4,h.SHOW_CDATA_SECTION=8,h.SHOW_ENTITY_REFERENCE=16,h.SHOW_ENTITY=32,h.SHOW_PROCESSING_INSTRUCTION=64,h.SHOW_COMMENT=128,h.SHOW_DOCUMENT=256,h.SHOW_DOCUMENT_TYPE=512,h.SHOW_DOCUMENT_FRAGMENT=1024,h.SHOW_NOTATION=2048,h}();n.NodeFilterImpl=p,u.idl_defineConst(p.prototype,"FILTER_ACCEPT",1),u.idl_defineConst(p.prototype,"FILTER_REJECT",2),u.idl_defineConst(p.prototype,"FILTER_SKIP",3),u.idl_defineConst(p.prototype,"SHOW_ALL",4294967295),u.idl_defineConst(p.prototype,"SHOW_ELEMENT",1),u.idl_defineConst(p.prototype,"SHOW_ATTRIBUTE",2),u.idl_defineConst(p.prototype,"SHOW_TEXT",4),u.idl_defineConst(p.prototype,"SHOW_CDATA_SECTION",8),u.idl_defineConst(p.prototype,"SHOW_ENTITY_REFERENCE",16),u.idl_defineConst(p.prototype,"SHOW_ENTITY",32),u.idl_defineConst(p.prototype,"SHOW_PROCESSING_INSTRUCTION",64),u.idl_defineConst(p.prototype,"SHOW_COMMENT",128),u.idl_defineConst(p.prototype,"SHOW_DOCUMENT",256),u.idl_defineConst(p.prototype,"SHOW_DOCUMENT_TYPE",512),u.idl_defineConst(p.prototype,"SHOW_DOCUMENT_FRAGMENT",1024),u.idl_defineConst(p.prototype,"SHOW_NOTATION",2048)},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function u(p,h,v,T,E,D,C,w,W){this._type=p,this._target=h,this._addedNodes=v,this._removedNodes=T,this._previousSibling=E,this._nextSibling=D,this._attributeName=C,this._attributeNamespace=w,this._oldValue=W}return e(u,"e"),Object.defineProperty(u.prototype,"type",{get:e(function(){return this._type},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"target",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"addedNodes",{get:e(function(){return this._addedNodes},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"removedNodes",{get:e(function(){return this._removedNodes},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"previousSibling",{get:e(function(){return this._previousSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"nextSibling",{get:e(function(){return this._nextSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"attributeName",{get:e(function(){return this._attributeName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"attributeNamespace",{get:e(function(){return this._attributeNamespace},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"oldValue",{get:e(function(){return this._oldValue},"get"),enumerable:!0,configurable:!0}),u._create=function(p,h,v,T,E,D,C,w,W){return new u(p,h,v,T,E,D,C,w,W)},u}();n.MutationRecordImpl=l},function(i,n,o){"use strict";var l=this&&this.__values||function(E){var D=typeof Symbol=="function"&&Symbol.iterator,C=D&&E[D],w=0;if(C)return C.call(E);if(E&&typeof E.length=="number")return{next:e(function(){return E&&w>=E.length&&(E=void 0),{value:E&&E[w++],done:!E}},"next")};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(9),h=o(7),v=o(0),T=function(){function E(D,C){this._element=D,this._attribute=C,this._tokenSet=new Set;var w=C._localName,W=v.element_getAnAttributeValue(D,w),V=this;this._element._attributeChangeSteps.push(function(B,k,F,$,Y){k===V._attribute._localName&&Y===null&&($?V._tokenSet=v.orderedSet_parse($):V._tokenSet.clear())}),u.dom.features.steps&&v.dom_runAttributeChangeSteps(D,w,W,W,null)}return e(E,"e"),Object.defineProperty(E.prototype,"length",{get:e(function(){return this._tokenSet.size},"get"),enumerable:!0,configurable:!0}),E.prototype.item=function(D){var C,w,W=0;try{for(var V=l(this._tokenSet),B=V.next();!B.done;B=V.next()){var k=B.value;if(W===D)return k;W++}}catch(F){C={error:F}}finally{try{B&&!B.done&&(w=V.return)&&w.call(V)}finally{if(C)throw C.error}}return null},E.prototype.contains=function(D){return this._tokenSet.has(D)},E.prototype.add=function(){for(var D,C,w=[],W=0;W<arguments.length;W++)w[W]=arguments[W];try{for(var V=l(w),B=V.next();!B.done;B=V.next()){var k=B.value;if(k==="")throw new p.SyntaxError("Cannot add an empty token.");if(h.codePoint.ASCIIWhiteSpace.test(k))throw new p.InvalidCharacterError("Token cannot contain whitespace.");this._tokenSet.add(k)}}catch(F){D={error:F}}finally{try{B&&!B.done&&(C=V.return)&&C.call(V)}finally{if(D)throw D.error}}v.tokenList_updateSteps(this)},E.prototype.remove=function(){for(var D,C,w=[],W=0;W<arguments.length;W++)w[W]=arguments[W];try{for(var V=l(w),B=V.next();!B.done;B=V.next()){var k=B.value;if(k==="")throw new p.SyntaxError("Cannot remove an empty token.");if(h.codePoint.ASCIIWhiteSpace.test(k))throw new p.InvalidCharacterError("Token cannot contain whitespace.");this._tokenSet.delete(k)}}catch(F){D={error:F}}finally{try{B&&!B.done&&(C=V.return)&&C.call(V)}finally{if(D)throw D.error}}v.tokenList_updateSteps(this)},E.prototype.toggle=function(D,C){if(C===void 0&&(C=void 0),D==="")throw new p.SyntaxError("Cannot toggle an empty token.");if(h.codePoint.ASCIIWhiteSpace.test(D))throw new p.InvalidCharacterError("Token cannot contain whitespace.");return this._tokenSet.has(D)?C!==void 0&&C!==!1||(this._tokenSet.delete(D),v.tokenList_updateSteps(this),!1):(C===void 0||C===!0)&&(this._tokenSet.add(D),v.tokenList_updateSteps(this),!0)},E.prototype.replace=function(D,C){if(D===""||C==="")throw new p.SyntaxError("Cannot replace an empty token.");if(h.codePoint.ASCIIWhiteSpace.test(D)||h.codePoint.ASCIIWhiteSpace.test(C))throw new p.InvalidCharacterError("Token cannot contain whitespace.");return!!this._tokenSet.has(D)&&(h.set.replace(this._tokenSet,D,C),v.tokenList_updateSteps(this),!0)},E.prototype.supports=function(D){return v.tokenList_validationSteps(this,D)},Object.defineProperty(E.prototype,"value",{get:e(function(){return v.tokenList_serializeSteps(this)},"get"),set:e(function(D){v.element_setAnAttributeValue(this._element,this._attribute._localName,D)},"set"),enumerable:!0,configurable:!0}),E.prototype[Symbol.iterator]=function(){var D=this._tokenSet[Symbol.iterator]();return{next:e(function(){return D.next()},"next")}},E._create=function(D,C){return new E(D,C)},E}();n.DOMTokenListImpl=T},function(i,n,o){"use strict";var l,u=this&&this.__extends||(l=e(function(T,E){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,C){D.__proto__=C}||function(D,C){for(var w in C)C.hasOwnProperty(w)&&(D[w]=C[w])})(T,E)},"n"),function(T,E){function D(){this.constructor=T}e(D,"r"),l(T,E),T.prototype=E===null?Object.create(E):(D.prototype=E.prototype,new D)});Object.defineProperty(n,"__esModule",{value:!0});var p=o(104),h=o(0),v=function(T){function E(D,C){var w=T.call(this,D,C)||this;return w._detail=null,w._detail=C&&C.detail||null,w}return e(E,"t"),u(E,T),Object.defineProperty(E.prototype,"detail",{get:e(function(){return this._detail},"get"),enumerable:!0,configurable:!0}),E.prototype.initCustomEvent=function(D,C,w,W){C===void 0&&(C=!1),w===void 0&&(w=!1),W===void 0&&(W=null),this._dispatchFlag||(h.event_initialize(this,D,C,w),this._detail=W)},E}(p.EventImpl);n.CustomEventImpl=v},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(6),u=o(1),p=o(105),h=o(17);n.nodeIterator_traverse=function(v,T){for(var E=v._reference,D=v._pointerBeforeReference;;){if(T)if(D)D=!1;else{var C=h.tree_getFollowingNode(v._root,E);if(!C)return null;E=C}else if(D){var w=h.tree_getPrecedingNode(v.root,E);if(!w)return null;E=w}else D=!0;if(p.traversal_filter(v,E)===u.FilterResult.Accept)break}return v._reference=E,v._pointerBeforeReference=D,E},n.nodeIterator_iteratorList=function(){return l.dom.window._iteratorList}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(9),u=o(7),p=o(174);function h(v){if(!p.xml_isName(v))throw new l.InvalidCharacterError("Invalid XML name: "+v);if(!p.xml_isQName(v))throw new l.InvalidCharacterError("Invalid XML qualified name: "+v+".")}e(h,"a"),n.namespace_validate=h,n.namespace_validateAndExtract=function(v,T){v||(v=null),h(T);var E=T.split(":"),D=E.length===2?E[0]:null,C=E.length===2?E[1]:T;if(D&&v===null)throw new l.NamespaceError("Qualified name includes a prefix but the namespace is null.");if(D==="xml"&&v!==u.namespace.XML)throw new l.NamespaceError('Qualified name includes the "xml" prefix but the namespace is not the XML namespace.');if(v!==u.namespace.XMLNS&&(D==="xmlns"||T==="xmlns"))throw new l.NamespaceError('Qualified name includes the "xmlns" prefix but the namespace is not the XMLNS namespace.');if(v===u.namespace.XMLNS&&D!=="xmlns"&&T!=="xmlns")throw new l.NamespaceError('Qualified name does not include the "xmlns" prefix but the namespace is the XMLNS namespace.');return[v,D,C]},n.namespace_extractQName=function(v){h(v);var T=v.split(":");return[T.length===2?T[0]:null,T.length===2?T[1]:v]}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.xml_isName=function(l){for(var u=0;u<l.length;u++){var p=l.charCodeAt(u);if(!(p>=97&&p<=122||p>=65&&p<=90||p===58||p===95||p>=192&&p<=214||p>=216&&p<=246||p>=248&&p<=767||p>=880&&p<=893||p>=895&&p<=8191||p>=8204&&p<=8205||p>=8304&&p<=8591||p>=11264&&p<=12271||p>=12289&&p<=55295||p>=63744&&p<=64975||p>=65008&&p<=65533)&&(u===0||!(p===45||p===46||p>=48&&p<=57||p===183||p>=768&&p<=879||p>=8255&&p<=8256))){if(p>=55296&&p<=56319&&u<l.length-1){var h=l.charCodeAt(u+1);if(h>=56320&&h<=57343&&(u++,(p=1024*(p-55296)+h-56320+65536)>=65536&&p<=983039))continue}return!1}}return!0},n.xml_isQName=function(l){for(var u=!1,p=0;p<l.length;p++){var h=l.charCodeAt(p);if(!(h>=97&&h<=122||h>=65&&h<=90||h===95||h>=192&&h<=214||h>=216&&h<=246||h>=248&&h<=767||h>=880&&h<=893||h>=895&&h<=8191||h>=8204&&h<=8205||h>=8304&&h<=8591||h>=11264&&h<=12271||h>=12289&&h<=55295||h>=63744&&h<=64975||h>=65008&&h<=65533)&&(p===0||!(h===45||h===46||h>=48&&h<=57||h===183||h>=768&&h<=879||h>=8255&&h<=8256))){if(p===0||h!==58){if(h>=55296&&h<=56319&&p<l.length-1){var v=l.charCodeAt(p+1);if(v>=56320&&v<=57343&&(p++,(h=1024*(h-55296)+v-56320+65536)>=65536&&h<=983039))continue}return!1}if(u||p===l.length-1)return!1;u=!0}}return!0},n.xml_isLegalChar=function(l){for(var u=0;u<l.length;u++){var p=l.charCodeAt(u);if(!(p===9||p===10||p===13||p>=32&&p<=55295||p>=57344&&p<=65533)){if(p>=55296&&p<=56319&&u<l.length-1){var h=l.charCodeAt(u+1);if(h>=56320&&h<=57343&&(u++,(p=1024*(p-55296)+h-56320+65536)>=65536&&p<=1114111))continue}return!1}}return!0},n.xml_isPubidChar=function(l){for(var u=0;u<l.length;u++){var p=l.charCodeAt(u);if(!(p>=97&&p<=122||p>=65&&p<=90||p>=39&&p<=59||p===32||p===13||p===10||p>=35&&p<=37||p===33||p===61||p===63||p===64||p===95))return!1}return!0}},function(i,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=o(1),u=o(17);n.boundaryPoint_position=e(function p(h,v){var T=h[0],E=h[1],D=v[0],C=v[1];if(console.assert(u.tree_rootNode(T)===u.tree_rootNode(D),"Boundary points must share the same root node."),T===D)return E===C?l.BoundaryPosition.Equal:E<C?l.BoundaryPosition.Before:l.BoundaryPosition.After;if(u.tree_isFollowing(D,T)){var w=p([D,C],[T,E]);if(w===l.BoundaryPosition.Before)return l.BoundaryPosition.After;if(w===l.BoundaryPosition.After)return l.BoundaryPosition.Before}if(u.tree_isAncestorOf(D,T)){for(var W=D;!u.tree_isChildOf(T,W);)W._parent!==null&&(W=W._parent);if(u.tree_index(W)<E)return l.BoundaryPosition.After}return l.BoundaryPosition.Before},"e")},function(i,n,o){"use strict";var l=this&&this.__values||function(w){var W=typeof Symbol=="function"&&Symbol.iterator,V=W&&w[W],B=0;if(V)return V.call(w);if(w&&typeof w.length=="number")return{next:e(function(){return w&&B>=w.length&&(w=void 0),{value:w&&w[B++],done:!w}},"next")};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(3),h=o(7),v=o(29),T=o(108),E=o(30),D=o(37),C=o(52);n.node_stringReplaceAll=function(w,W){var V=null;w!==""&&(V=v.create_text(W._nodeDocument,w)),D.mutation_replaceAll(V,W)},n.node_clone=e(function w(W,V,B){var k,F,$,Y,ie;if(V===void 0&&(V=null),B===void 0&&(B=!1),V===null&&(V=W._nodeDocument),p.Guard.isElementNode(W)){ie=C.element_createAnElement(V,W._localName,W._namespace,W._namespacePrefix,W._is,!1);try{for(var fe=l(W._attributeList),ve=fe.next();!ve.done;ve=fe.next()){var Ce=w(ve.value,V);C.element_append(Ce,ie)}}catch(fn){k={error:fn}}finally{try{ve&&!ve.done&&(F=fe.return)&&F.call(fe)}finally{if(k)throw k.error}}}else if(p.Guard.isDocumentNode(W)){var be=v.create_document();be._encoding=W._encoding,be._contentType=W._contentType,be._URL=W._URL,be._origin=W._origin,be._type=W._type,be._mode=W._mode,ie=be}else if(p.Guard.isDocumentTypeNode(W))ie=v.create_documentType(V,W._name,W._publicId,W._systemId);else if(p.Guard.isAttrNode(W)){var qe=v.create_attr(V,W.localName);qe._namespace=W._namespace,qe._namespacePrefix=W._namespacePrefix,qe._value=W._value,ie=qe}else ie=p.Guard.isExclusiveTextNode(W)?v.create_text(V,W._data):p.Guard.isCDATASectionNode(W)?v.create_cdataSection(V,W._data):p.Guard.isCommentNode(W)?v.create_comment(V,W._data):p.Guard.isProcessingInstructionNode(W)?v.create_processingInstruction(V,W._target,W._data):p.Guard.isDocumentFragmentNode(W)?v.create_documentFragment(V):Object.create(W);if(p.Guard.isDocumentNode(ie)?(ie._nodeDocument=ie,V=ie):ie._nodeDocument=V,u.dom.features.steps&&E.dom_runCloningSteps(ie,W,V,B),B)try{for(var yt=l(W._children),Ct=yt.next();!Ct.done;Ct=yt.next()){var Bt=w(Ct.value,V,!0);D.mutation_append(Bt,ie)}}catch(fn){$={error:fn}}finally{try{Ct&&!Ct.done&&(Y=yt.return)&&Y.call(yt)}finally{if($)throw $.error}}return ie},"e"),n.node_equals=e(function w(W,V){var B,k,F,$;if(W._nodeType!==V._nodeType)return!1;if(p.Guard.isDocumentTypeNode(W)&&p.Guard.isDocumentTypeNode(V)){if(W._name!==V._name||W._publicId!==V._publicId||W._systemId!==V._systemId)return!1}else if(p.Guard.isElementNode(W)&&p.Guard.isElementNode(V)){if(W._namespace!==V._namespace||W._namespacePrefix!==V._namespacePrefix||W._localName!==V._localName||W._attributeList.length!==V._attributeList.length)return!1}else if(p.Guard.isAttrNode(W)&&p.Guard.isAttrNode(V)){if(W._namespace!==V._namespace||W._localName!==V._localName||W._value!==V._value)return!1}else if(p.Guard.isProcessingInstructionNode(W)&&p.Guard.isProcessingInstructionNode(V)){if(W._target!==V._target||W._data!==V._data)return!1}else if(p.Guard.isCharacterDataNode(W)&&p.Guard.isCharacterDataNode(V)&&W._data!==V._data)return!1;if(p.Guard.isElementNode(W)&&p.Guard.isElementNode(V)){var Y={};try{for(var ie=l(W._attributeList),fe=ie.next();!fe.done;fe=ie.next())Y[(be=fe.value)._localName]=be}catch(Fn){B={error:Fn}}finally{try{fe&&!fe.done&&(k=ie.return)&&k.call(ie)}finally{if(B)throw B.error}}try{for(var ve=l(V._attributeList),Ce=ve.next();!Ce.done;Ce=ve.next()){var be,qe=Ce.value;if(!(be=Y[qe._localName])||!w(be,qe))return!1}}catch(Fn){F={error:Fn}}finally{try{Ce&&!Ce.done&&($=ve.return)&&$.call(ve)}finally{if(F)throw F.error}}}if(W._children.size!==V._children.size)return!1;for(var yt=W._children[Symbol.iterator](),Ct=V._children[Symbol.iterator](),Bt=yt.next(),fn=Ct.next();!Bt.done&&!fn.done;){if(!w(Bt.value,fn.value))return!1;Bt=yt.next(),fn=Ct.next()}return!0},"e"),n.node_listOfElementsWithQualifiedName=function(w,W){return w==="*"?v.create_htmlCollection(W):W._nodeDocument._type==="html"?v.create_htmlCollection(W,function(V){return V._namespace===h.namespace.HTML&&V._qualifiedName===w.toLowerCase()||V._namespace!==h.namespace.HTML&&V._qualifiedName===w}):v.create_htmlCollection(W,function(V){return V._qualifiedName===w})},n.node_listOfElementsWithNamespace=function(w,W,V){return w===""&&(w=null),w==="*"&&W==="*"?v.create_htmlCollection(V):w==="*"?v.create_htmlCollection(V,function(B){return B._localName===W}):W==="*"?v.create_htmlCollection(V,function(B){return B._namespace===w}):v.create_htmlCollection(V,function(B){return B._localName===W&&B._namespace===w})},n.node_listOfElementsWithClassNames=function(w,W){var V=T.orderedSet_parse(w);if(V.size===0)return v.create_htmlCollection(W,function(){return!1});var B=W._nodeDocument._mode!=="quirks";return v.create_htmlCollection(W,function(k){var F=k.classList;return T.orderedSet_contains(F._tokenSet,V,B)})},n.node_locateANamespacePrefix=e(function w(W,V){if(W._namespace===V&&W._namespacePrefix!==null)return W._namespacePrefix;for(var B=0;B<W._attributeList.length;B++){var k=W._attributeList[B];if(k._namespacePrefix==="xmlns"&&k._value===V)return k._localName}return W._parent&&p.Guard.isElementNode(W._parent)?w(W._parent,V):null},"e"),n.node_locateANamespace=e(function w(W,V){if(p.Guard.isElementNode(W)){if(W._namespace!==null&&W._namespacePrefix===V)return W._namespace;for(var B=0;B<W._attributeList.length;B++){var k=W._attributeList[B];if(k._namespace===h.namespace.XMLNS&&k._namespacePrefix==="xmlns"&&k._localName===V||V===null&&k._namespace===h.namespace.XMLNS&&k._namespacePrefix===null&&k._localName==="xmlns")return k._value||null}return W.parentElement===null?null:w(W.parentElement,V)}return p.Guard.isDocumentNode(W)?W.documentElement===null?null:w(W.documentElement,V):p.Guard.isDocumentTypeNode(W)||p.Guard.isDocumentFragmentNode(W)?null:p.Guard.isAttrNode(W)?W._element===null?null:w(W._element,V):W._parent&&p.Guard.isElementNode(W._parent)?w(W._parent,V):null},"e")},function(i,n,o){"use strict";var l=this&&this.__values||function(C){var w=typeof Symbol=="function"&&Symbol.iterator,W=w&&C[w],V=0;if(W)return W.call(C);if(C&&typeof C.length=="number")return{next:e(function(){return C&&V>=C.length&&(C=void 0),{value:C&&C[V++],done:!C}},"next")};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(n,"__esModule",{value:!0});var u=o(6),p=o(3),h=o(9),v=o(29),T=o(17),E=o(107),D=o(37);n.text_contiguousTextNodes=function(C,w){var W;return w===void 0&&(w=!1),(W={})[Symbol.iterator]=function(){for(var V=C;V&&p.Guard.isTextNode(V._previousSibling);)V=V._previousSibling;return{next:e(function(){if(V&&!w&&V===C&&(V=p.Guard.isTextNode(V._nextSibling)?V._nextSibling:null),V===null)return{done:!0,value:null};var B={done:!1,value:V};return V=p.Guard.isTextNode(V._nextSibling)?V._nextSibling:null,B},"next")}},W},n.text_contiguousExclusiveTextNodes=function(C,w){var W;return w===void 0&&(w=!1),(W={})[Symbol.iterator]=function(){for(var V=C;V&&p.Guard.isExclusiveTextNode(V._previousSibling);)V=V._previousSibling;return{next:e(function(){if(V&&!w&&V===C&&(V=p.Guard.isExclusiveTextNode(V._nextSibling)?V._nextSibling:null),V===null)return{done:!0,value:null};var B={done:!1,value:V};return V=p.Guard.isExclusiveTextNode(V._nextSibling)?V._nextSibling:null,B},"next")}},W},n.text_descendantTextContent=function(C){for(var w="",W=T.tree_getFirstDescendantNode(C,!1,!1,function(V){return p.Guard.isTextNode(V)});W!==null;)w+=W._data,W=T.tree_getNextDescendantNode(C,W,!1,!1,function(V){return p.Guard.isTextNode(V)});return w},n.text_split=function(C,w){var W,V,B=C._data.length;if(w>B)throw new h.IndexSizeError;var k=B-w,F=E.characterData_substringData(C,w,k),$=v.create_text(C._nodeDocument,F),Y=C._parent;if(Y!==null){D.mutation_insert($,Y,C._nextSibling);try{for(var ie=l(u.dom.rangeList),fe=ie.next();!fe.done;fe=ie.next()){var ve=fe.value;ve._start[0]===C&&ve._start[1]>w&&(ve._start[0]=$,ve._start[1]-=w),ve._end[0]===C&&ve._end[1]>w&&(ve._end[0]=$,ve._end[1]-=w);var Ce=T.tree_index(C);ve._start[0]===Y&&ve._start[1]===Ce+1&&ve._start[1]++,ve._end[0]===Y&&ve._end[1]===Ce+1&&ve._end[1]++}}catch(be){W={error:be}}finally{try{fe&&!fe.done&&(V=ie.return)&&V.call(ie)}finally{if(W)throw W.error}}}return E.characterData_replaceData(C,w,k,""),$}},function(i,n,o){"use strict";var l=o(4),u=o(41),p=o(24),h=o(48),v=[].join,T=u!=Object,E=h("join",",");l({target:"Array",proto:!0,forced:T||!E},{join:e(function(D){return v.call(p(this),D===void 0?",":D)},"join")})},function(i,n,o){var l=o(4),u=o(83),p=String.fromCharCode,h=String.fromCodePoint;l({target:"String",stat:!0,forced:!!h&&h.length!=1},{fromCodePoint:e(function(v){for(var T,E=[],D=arguments.length,C=0;D>C;){if(T=+arguments[C++],u(T,1114111)!==T)throw RangeError(T+" is not a valid code point");E.push(T<65536?p(T):p(55296+((T-=65536)>>10),T%1024+56320))}return E.join("")},"fromCodePoint")})},function(i,n,o){"use strict";var l=this&&this.__read||function(h,v){var T=typeof Symbol=="function"&&h[Symbol.iterator];if(!T)return h;var E,D,C=T.call(h),w=[];try{for(;(v===void 0||v-- >0)&&!(E=C.next()).done;)w.push(E.value)}catch(W){D={error:W}}finally{try{E&&!E.done&&(T=C.return)&&T.call(C)}finally{if(D)throw D.error}}return w};Object.defineProperty(n,"__esModule",{value:!0});var u=o(111),p=function(){function h(v,T){this._options={skipWhitespaceOnlyText:!1},this.err={line:-1,col:-1,index:-1,str:""},this._str=v,this._index=0,this._length=v.length,T&&(this._options.skipWhitespaceOnlyText=T.skipWhitespaceOnlyText||!1)}return e(h,"e"),h.prototype.nextToken=function(){if(this.eof())return{type:u.TokenType.EOF};var v=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&v.type===u.TokenType.Text&&h.isWhiteSpaceToken(v)&&(v=this.nextToken()),v},h.prototype.openBracket=function(){return this.skipIfStartsWith("?")?this.skipIfStartsWith("xml")?h.isSpace(this._str[this._index])?this.declaration():(this.seek(-3),this.pi()):this.pi():this.skipIfStartsWith("!")?this.skipIfStartsWith("--")?this.comment():this.skipIfStartsWith("[CDATA[")?this.cdata():this.skipIfStartsWith("DOCTYPE")?this.doctype():void this.throwError("Invalid '!' in opening tag."):this.skipIfStartsWith("/")?this.closeTag():this.openTag()},h.prototype.declaration=function(){for(var v="",T="",E="";!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:u.TokenType.Declaration,version:v,encoding:T,standalone:E};var D=l(this.attribute(),2),C=D[0],w=D[1];C==="version"?v=w:C==="encoding"?T=w:C==="standalone"?E=w:this.throwError("Invalid attribute name: "+C)}this.throwError("Missing declaration end symbol `?>`")},h.prototype.doctype=function(){var v="",T="";this.skipSpace();var E=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(v=this.quotedString(),T=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(T=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:u.TokenType.DocType,name:E,pubId:v,sysId:T}},h.prototype.pi=function(){var v=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:u.TokenType.PI,target:v,data:""};var T=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:u.TokenType.PI,target:v,data:T}},h.prototype.text=function(){var v=this.takeUntil("<");return{type:u.TokenType.Text,data:v}},h.prototype.comment=function(){var v=this.takeUntilStartsWith("-->");return this.eof()&&this.throwError("Missing comment end symbol `-->`"),this.seek(3),{type:u.TokenType.Comment,data:v}},h.prototype.cdata=function(){var v=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:u.TokenType.CDATA,data:v}},h.prototype.openTag=function(){this.skipSpace();var v=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:u.TokenType.Element,name:v,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:u.TokenType.Element,name:v,attributes:[],selfClosing:!0};for(var T=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:u.TokenType.Element,name:v,attributes:T,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:u.TokenType.Element,name:v,attributes:T,selfClosing:!0};var E=this.attribute();T.push(E)}this.throwError("Missing opening element tag end symbol `>`")},h.prototype.closeTag=function(){this.skipSpace();var v=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:u.TokenType.ClosingTag,name:v}},h.prototype.attribute=function(){this.skipSpace();var v=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[v,this.quotedString()]},h.prototype.quotedString=function(){this.skipSpace();var v=this.take(1);h.isQuote(v)||this.throwError("Missing start quote character before quoted value");var T=this.takeUntil(v);return this.skipIfStartsWith(v)||this.throwError("Missing end quote character after quoted value"),T},h.prototype.eof=function(){return this._index>=this._length},h.prototype.skipIfStartsWith=function(v){var T=v.length;if(T===1)return this._str[this._index]===v&&(this._index++,!0);for(var E=0;E<T;E++)if(this._str[this._index+E]!==v[E])return!1;return this._index+=T,!0},h.prototype.seek=function(v){this._index+=v,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)},h.prototype.skipSpace=function(){for(;!this.eof()&&h.isSpace(this._str[this._index]);)this._index++},h.prototype.take=function(v){if(v===1)return this._str[this._index++];var T=this._index;return this.seek(v),this._str.slice(T,this._index)},h.prototype.takeUntil=function(v,T){T===void 0&&(T=!1);for(var E=this._index;this._index<this._length;){var D=this._str[this._index];if(D===v||T&&h.isSpace(D))break;this._index++}return this._str.slice(E,this._index)},h.prototype.takeUntil2=function(v,T,E){E===void 0&&(E=!1);for(var D=this._index;this._index<this._length;){var C=this._str[this._index];if(C===v||C===T||E&&h.isSpace(C))break;this._index++}return this._str.slice(D,this._index)},h.prototype.takeUntilStartsWith=function(v,T){T===void 0&&(T=!1);for(var E=this._index,D=v.length;this._index<this._length;){for(var C=!0,w=0;w<D;w++){var W=this._str[this._index+w],V=v[w];if(T&&h.isSpace(W))return this._str.slice(E,this._index);if(W!==V){this._index++,C=!1;break}}if(C)return this._str.slice(E,this._index)}return this._index=this._length,this._str.slice(E)},h.prototype.skipUntil=function(v){for(;this._index<this._length&&this._str[this._index]!==v;)this._index++},h.isWhiteSpaceToken=function(v){for(var T=v.data,E=0;E<T.length;E++){var D=T[E];if(D!==" "&&D!==`
@@ -31729,7 +31729,7 @@ export default async ({ rootDir, config, fs, path, logger, registerExplicitId })
31729
31729
  // This is where all the client source files are located
31730
31730
  const clientDir = path.join(rootDir, config.clientDir)
31731
31731
  // Check to make sure we have something to build before we start
31732
- const htmlFilePattern = path.join(config.clientDir, '**', '*.html')
31732
+ const htmlFilePattern = path.join(clientDir, '**', '*.html')
31733
31733
  const htmlFiles = await glob(htmlFilePattern, { fs })
31734
31734
  if (!htmlFiles.length) {
31735
31735
  logger.warn(\`No HTML files found in \${clientDir}, skipping UI build.\`)
@@ -31769,7 +31769,7 @@ export default async ({ rootDir, config, fs, path, logger, registerExplicitId })
31769
31769
  `},{path:"package.json",content:`{{#mergeJsonFiles "package.json"}}
31770
31770
  {
31771
31771
  "devDependencies": {
31772
- "@servicenow/isomorphic-rollup": "^1.2.2"
31772
+ "@servicenow/isomorphic-rollup": "^1.2.3"
31773
31773
  },
31774
31774
  "dependencies": {
31775
31775
  "react": "19.x",
@@ -32766,7 +32766,7 @@ export default async ({ rootDir, config, fs, path, logger, registerExplicitId })
32766
32766
  // This is where all the client source files are located
32767
32767
  const clientDir = path.join(rootDir, config.clientDir)
32768
32768
  // Check to make sure we have something to build before we start
32769
- const htmlFilePattern = path.join(config.clientDir, '**', '*.html')
32769
+ const htmlFilePattern = path.join(clientDir, '**', '*.html')
32770
32770
  const htmlFiles = await glob(htmlFilePattern, { fs })
32771
32771
  if (!htmlFiles.length) {
32772
32772
  logger.warn(\`No HTML files found in \${clientDir}, skipping UI build.\`)
@@ -32806,7 +32806,7 @@ export default async ({ rootDir, config, fs, path, logger, registerExplicitId })
32806
32806
  `},{path:"package.json",content:`{{#mergeJsonFiles "package.json"}}
32807
32807
  {
32808
32808
  "devDependencies": {
32809
- "@servicenow/isomorphic-rollup": "^1.2.2",
32809
+ "@servicenow/isomorphic-rollup": "^1.2.3",
32810
32810
  "@types/react": "19.x",
32811
32811
  "@types/react-dom": "19.x",
32812
32812
  "typescript": "5.5.4"
@@ -33796,7 +33796,7 @@ export function showStateUpdate(current, previous) {
33796
33796
  gs.addInfoMessage(\`state updated from "\${previousState}" to "\${currentState}"\`)
33797
33797
  }
33798
33798
  `}]}}};n.exports=o}}),Efn={};Akr(Efn,{templates:e(()=>Pkr.templates,"templates")});xfn.exports=wkr(Efn);var Pkr=Ckr(Ikr())});var I_t=ft((rao,Dfn)=>{Z();ne();ee();te();var Nkr=Mge(),Rkr=fse();function kkr(i,n,o){(o!==void 0&&!Rkr(i[n],o)||o===void 0&&!(n in i))&&Nkr(i,n,o)}e(kkr,"assignMergeValue");Dfn.exports=kkr});var P_t=ft((cao,Afn)=>{Z();ne();ee();te();function Mkr(i,n){if(!(n==="constructor"&&typeof i[n]=="function")&&n!="__proto__")return i[n]}e(Mkr,"safeGet");Afn.exports=Mkr});var wfn=ft((mao,Cfn)=>{Z();ne();ee();te();var Lkr=IZ(),Okr=xse();function Fkr(i){return Lkr(i,Okr(i))}e(Fkr,"toPlainObject");Cfn.exports=Fkr});var Mfn=ft((Sao,kfn)=>{Z();ne();ee();te();var Ifn=I_t(),Bkr=dpt(),Wkr=mpt(),jkr=ppt(),zkr=hpt(),Pfn=Cge(),Nfn=z3(),Gkr=ipt(),Ukr=Ige(),Vkr=o3e(),qkr=VB(),Kkr=gpt(),Hkr=m3e(),Rfn=P_t(),Jkr=wfn();function Xkr(i,n,o,l,u,p,h){var v=Rfn(i,o),T=Rfn(n,o),E=h.get(T);if(E){Ifn(i,o,E);return}var D=p?p(v,T,o+"",i,n,h):void 0,C=D===void 0;if(C){var w=Nfn(T),W=!w&&Ukr(T),V=!w&&!W&&Hkr(T);D=T,w||W||V?Nfn(v)?D=v:Gkr(v)?D=jkr(v):W?(C=!1,D=Bkr(T,!0)):V?(C=!1,D=Wkr(T,!0)):D=[]:Kkr(T)||Pfn(T)?(D=v,Pfn(v)?D=Jkr(v):(!qkr(v)||Vkr(v))&&(D=zkr(T))):C=!1}C&&(h.set(T,D),u(D,T,l,p,h),h.delete(T)),Ifn(i,o,D)}e(Xkr,"baseMergeDeep");kfn.exports=Xkr});var Ffn=ft((Cao,Ofn)=>{Z();ne();ee();te();var $kr=Age(),Ykr=I_t(),Qkr=apt(),Zkr=Mfn(),eMr=VB(),tMr=xse(),nMr=P_t();function Lfn(i,n,o,l,u){i!==n&&Qkr(n,function(p,h){if(u||(u=new $kr),eMr(p))Zkr(i,n,h,o,Lfn,l,u);else{var v=l?l(nMr(i,h),p,h+"",i,n,u):void 0;v===void 0&&(v=p),Ykr(i,h,v)}},tMr)}e(Lfn,"baseMerge");Ofn.exports=Lfn});var Wfn=ft((kao,Bfn)=>{Z();ne();ee();te();var rMr=fse(),iMr=Rge(),oMr=d3e(),aMr=VB();function sMr(i,n,o){if(!aMr(o))return!1;var l=typeof n;return(l=="number"?iMr(o)&&oMr(n,o.length):l=="string"&&n in o)?rMr(o[n],i):!1}e(sMr,"isIterateeCall");Bfn.exports=sMr});var zfn=ft((Wao,jfn)=>{Z();ne();ee();te();var lMr=npt(),cMr=Wfn();function uMr(i){return lMr(function(n,o){var l=-1,u=o.length,p=u>1?o[u-1]:void 0,h=u>2?o[2]:void 0;for(p=i.length>3&&typeof p=="function"?(u--,p):void 0,h&&cMr(o[0],o[1],h)&&(p=u<3?void 0:p,u=1),n=Object(n);++l<u;){var v=o[l];v&&i(n,v,l,p)}return n})}e(uMr,"createAssigner");jfn.exports=uMr});var Ufn=ft((qao,Gfn)=>{Z();ne();ee();te();var dMr=Ffn(),pMr=zfn(),fMr=pMr(function(i,n,o){dMr(i,n,o)});Gfn.exports=fMr});var k_t=ft(S0=>{"use strict";Z();ne();ee();te();var _Mr=S0&&S0.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),mMr=S0&&S0.__setModuleDefault||(Object.create?function(i,n){Object.defineProperty(i,"default",{enumerable:!0,value:n})}:function(i,n){i.default=n}),hMr=S0&&S0.__importStar||function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var o in i)o!=="default"&&Object.prototype.hasOwnProperty.call(i,o)&&_Mr(n,i,o);return mMr(n,i),n},Kfn=S0&&S0.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(S0,"__esModule",{value:!0});S0.templates=S0.renderTemplates=S0.ProjectInitValidation=S0.ProjectFactory=void 0;var LP=Wu(),gMr=hMr((EG(),Ld(SG))),N_t=QMe(),Vfn=cZ(),yMr=N6e(),yye=Tfn();Object.defineProperty(S0,"templates",{enumerable:!0,get:e(function(){return yye.templates},"get")});var vMr=Kfn(Ufn()),qfn=Kfn(T_t()),bMr=["package.json","now.config.json"],R_t=class i{static{e(this,"ProjectFactory")}fs;constructor(n){this.fs=n}getProjectTemplates(){return Object.entries(yye.templates).map(([n,o])=>({...o.info,id:n})).sort((n,o)=>n.category.localeCompare(o.category)+n.name.localeCompare(o.name))}getOriginalFiles(n){let o={};for(let l of bMr){let u=LP.path.join(n,l);LP.FileSystem.existsSync(this.fs,u)&&(o[l]=this.fs.readFileSync(u,{encoding:"utf-8"}))}return o}async createProjectFromApp(n,o,l,u){let p=await l.download(o,{method:"complete"});if(!p.ok||!p.body){let E=await p.json();throw E&&typeof E.result=="string"?new Error(`Application download failed: ${E.result}`):new Error(`Failed to download package for ${o}`)}let h=LP.path.join(gMr.tmpdir(),(0,LP.GUID)());this.fs.mkdirSync(h,{recursive:!0});let v=LP.path.join(h,"metadata.zip");await(0,Vfn.writeFileStream)(this.fs,v,p.body);let T=LP.path.join(h,"metadata");return await(0,LP.unzipAppPackage)(this.fs,v,T),this.createProjectFromDirectory(n,T,u)}createProjectFromDirectory(n,o,l){let u=this.findSysAppXmlInformation(o);if(!u)throw new Error("Failed to find a sys app xml file in application under path: "+o);let p={scopeId:u.scopeId,name:u.name,scope:u.scope,packageName:l.packageName||i.createNpmPackageName(u.name),description:u.shortDescription??"",sdkVersion:l.sdkVersion||"latest",projectVersion:u.version??"0.0.1"},h=S0.ProjectInitValidation.validateInitOptions(p);if(h.length)throw new Error(h.join(", "));let v=(0,S0.renderTemplates)(yye.templates.base.files,p,{}),T=v.filter(D=>D.path==="package.json");if(u.packageJson){let D=this.findPackageJsonModule(o,u.packageJson);if(!D)throw new Error("The sys_app xml file contains package_json field but no matching package.json sys_module was found in the application.");T[0].content=D}this.writeTemplates(n,v);let E=new N_t.Project({fileSystem:this.fs,rootDir:n});return LP.FileSystem.copySync(this.fs,o,E.getMetadataDir(),{filter:e(D=>!D.startsWith("sys_module")&&!D.startsWith("sys_ux_lib_asset"),"filter")}),E}findPackageJsonModule(n,o){let l,u=[];(0,Vfn.traverseDirectory)(this.fs,n,{visitor:e(p=>{LP.path.basename(p).startsWith("sys_module")&&u.push(p)},"visitor"),extensions:[".xml"]});for(let p of u){let h=this.fs.readFileSync(p,{encoding:"utf-8"});if(h.includes(o)){let v=/<content><!\[CDATA\[([\s\S]*?)\]\]><\/content>/,T=h.match(v);if(T&&T[1]){l=T[1];break}}}return l}createProject(n,o){let l=S0.ProjectInitValidation.validateInitOptions(o);if(l.length)throw new Error(l.join(", "));let u={...o,scopeId:o.scopeId||(0,LP.GUID)()},p=(0,S0.renderTemplates)(yye.templates.base.files,u,{});if(this.writeTemplates(n,p),u.templateId&&u.templateId!=="base"){let h=this.getOriginalFiles(n),v=(0,S0.renderTemplates)(yye.templates[u.templateId].files,u,h);this.writeTemplates(n,v)}return new N_t.Project({fileSystem:this.fs,rootDir:n})}findSysAppXmlInformation(n){let o=this.getSysAppXML(n);if(!o)return;let l=new yMr.Parser(new N_t.Project,[],[]),[u]=l.parsePayload({path:o,content:this.fs.readFileSync(o).toString("utf-8")});if(!u)throw new Error(`Error parsing ${o}. Check the sys_app XML file and try again.`);return{name:u.get("name").asString("sys_app record must have a name").getValue(),version:u.get("version").asString("sys_app record must have a version").getValue(),shortDescription:u.get("short_description").ifString()?.getValue(),scope:u.get("scope").asString("sys_app record must have a scope").getValue(),scopeId:u.getId().getValue(),packageJson:u.get("package_json").ifString()?.getValue()}}getSysAppXML(n){let o=/^sys_app_[0-9a-f]{32}\.xml$/,l=/^sys_store_app_[0-9a-f]{32}\.xml$/,u=e((h,v)=>{let T=LP.path.join(n,h);if(LP.FileSystem.existsSync(this.fs,T)){let D=this.fs.readdirSync(T).find(C=>v.test(C));return D&&LP.path.join(T,D)}},"findAppXml"),p="";return u(p,o)||u("update",o)||u("scope",o)||u(p,l)||u("update",l)||u("scope",l)}writeTemplates(n,o){for(let[,l]of Object.entries(o)){let u=LP.path.join(n,l.path);this.fs.mkdirSync(LP.path.dirname(u),{recursive:!0}),this.fs.writeFileSync(u,l.content)}}static createNpmPackageName(n){let o=n.toLowerCase();return o=o.replace(/[^a-z0-9-_.]+/g,"-"),o=o.substring(0,210),o=o.replace(/^-+|-+$/g,""),o}};S0.ProjectFactory=R_t;S0.ProjectInitValidation={validateInitOptions(i){let n=[],o=S0.ProjectInitValidation.validateAppName(i.name);o&&n.push(`appName ${o}`);let l=S0.ProjectInitValidation.validateScopeName(i.scope);l&&n.push(`scopeName ${l}`);let u=S0.ProjectInitValidation.validateNpmPackageName(i.packageName);return u&&n.push(`packageName ${u}`),n},validateAppName(i){if(!i)return"cannot be empty";if(i.length>100)return"exceeds 100 characters";if(i.length<4)return"must be at least 4 characters long"},validateScopeName(i,n){let o=[];if(!i)return"cannot be empty";if(i.length<4&&o.push("must be at least 4 characters long"),i.length>18&&o.push("must be less than 19 characters"),i.endsWith("_")&&o.push("cannot end in an underscore"),i.includes("__")&&o.push("cannot contain double underscore"),/[^a-z0-9_]/.test(i)&&o.push("can only contain lowercase alphanumeric characters and underscores"),n&&(i===n&&o.push(`must not exactly match prefix "${n}"`),i.startsWith(n)||o.push(`must start with prefix "${n}"`)),o.length)return`Invalid scope: ${new Intl.ListFormat("default",{style:"long",type:"conjunction"}).format(o)}`},validateNpmPackageName(i){if(!i)return"cannot be empty";if(i.length>214)return"name must be less than or equal to 214 characters";if(i.toLowerCase()!==i)return"name can no longer contain capital letters";if(/[~'!()*]/.test(i.split("/").slice(-1)[0]))return`name can no longer contain special characters ("~'!()*")`;if(encodeURIComponent(i)!==i){let n=i.match(/@([^/]+)\/([^/]+)/);if(n){let o=n[1],l=n[2];if(encodeURIComponent(o)===o&&encodeURIComponent(l)===l)return}return"name can only contain URL-friendly characters"}}};var SMr=e((i,n,o)=>{qfn.default.registerHelper("mergeJsonFiles",function(u,p){let h=p.fn(this).trim();if(!o[u])throw new Error(`Could not merge '${u}', the file does not exist!`);let v,T;try{v=JSON.parse(h),T=JSON.parse(o[u])}catch(D){throw new Error(`Invalid JSON in mergeJsonFiles block:
33799
- ${D?.message}`)}let E=(0,vMr.default)(T,v);return JSON.stringify(E,null,2)});let l=[];for(let u of i){let h=qfn.default.compile(u.content)({...n});l.push({path:u.path,content:h})}return l},"renderTemplates");S0.renderTemplates=SMr});var Hfn=ft(L_t=>{"use strict";Z();ne();ee();te();Object.defineProperty(L_t,"__esModule",{value:!0});L_t.defaultUiBuild=EMr;var M_t=(vC(),Ld(yC)),_8e=Wu();async function EMr({project:i}){let n=i.getFileSystem(),o=i.getConfig(),l=i.getLogger(),u=i.getRootDir(),p=_8e.path.join(u,o.clientDir),h=i.registerExplicitId.bind(i);if(!_8e.FileSystem.existsSync(n,p)){l.debug(`No client files in ${p} found, skipping UI build.`);return}let v=_8e.path.join(o.clientDir,"**","*.html");if(!(await(0,M_t.glob)(v,{fs:n})).length){l.warn(`No HTML files found in ${p}, skipping UI build.`);return}let E=_8e.path.join(u,o.staticContentDir);n.rmSync(E,{recursive:!0,force:!0}),(await(await(0,M_t.rollup)({fs:n,input:v,plugins:(0,M_t.servicenowFrontEndPlugins)({scope:o.scope,rootDir:p,registerExplicitId:h})})).write({dir:E,sourcemap:!0})).output.forEach(w=>{w.type==="asset"?l.info(`Bundled asset: ${w.fileName} (${w.source.length} bytes)`):w.type==="chunk"&&l.info(`Bundled chunk: ${w.fileName} (${w.code.length} bytes)`)})}e(EMr,"defaultUiBuild")});var $fn=ft(X3=>{"use strict";Z();ne();ee();te();var xMr=X3&&X3.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),TMr=X3&&X3.__setModuleDefault||(Object.create?function(i,n){Object.defineProperty(i,"default",{enumerable:!0,value:n})}:function(i,n){i.default=n}),DMr=X3&&X3.__importStar||function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var o in i)o!=="default"&&Object.prototype.hasOwnProperty.call(i,o)&&xMr(n,i,o);return TMr(n,i),n},Xfn=X3&&X3.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(X3,"__esModule",{value:!0});X3.Orchestrator=void 0;var J2=Wu(),AMr=C6e(),CMr=Xfn(T_t()),wMr=Xfn(_fn()),Jfn=DMr((EG(),Ld(SG))),IMr=C_t(),PMr=vfn(),O_t=k_t(),oU=cZ(),F_t=class{static{e(this,"Orchestrator")}project;connector;constructor(n,o){this.project=n,this.connector=o}getConnector(){if(!this.connector)throw new Error("connector is not defined");return this.connector}async build(n={}){let{frozenKeys:o=!1}=n;this.clean();let l=this.project.getRootDir(),u=this.project.getLogger(),p=this.project.getConfig(),h=this.project.getFileSystem(),v=(0,oU.projectHasScript)(this.project,"prebuild"),T=!oU.isWebWorker||(0,oU.hasModuleLoader)();if(T&&v)await(0,oU.runScriptInProject)({scriptName:"prebuild",project:this.project,throwIfNotFound:!1});else if(p.clientDir){v&&u.debug("Custom scripts are not supported, so using the default UI build");let{defaultUiBuild:w}=await Promise.resolve().then(()=>DY(Hfn()));await w({project:this.project})}if(J2.FileSystem.existsSync(h,J2.path.join(l,p.staticContentDir)))for(let w of this.project.reloadDirectory(p.staticContentDir))w.setReadOnly(!0);let E=this.project.getKeys().getSourceFile(),D=E.getFullText(),C;try{C=await this.project.saveOutput()}catch(w){return u.error(w),{success:!1,diagnostics:[]}}if(this.project.getPlugins().toArray().forEach(w=>{w.flushCache()}),o){let w=E.getFullText();if(D!==w)throw new Error("Keys file is out-of-date. To update it, run the build again without frozen keys.")}return await this.project.getKeys().getSourceFile().save(),T?await(0,oU.runScriptInProject)({scriptName:"postbuild",project:this.project,throwIfNotFound:!1}):(0,oU.projectHasScript)(this.project,"postbuild")&&u.warn("Custom scripts are not supported, skipping postbuild script"),{success:!0,files:C,packOutput:this.project.resolvePath(this.project.getConfig().packOutputDir),diagnostics:[]}}clean(){let{appOutputDir:n,packOutputDir:o,staticContentDir:l}=this.project.getConfig(),u=this.project.getRootDir(),p=this.project.getFileSystem();p.rmSync(J2.path.join(u,AMr.REPACK_OUTPUT_DIR),{recursive:!0,force:!0}),p.rmSync(J2.path.join(u,n),{recursive:!0,force:!0}),p.rmSync(J2.path.join(u,o),{recursive:!0,force:!0}),p.rmSync(J2.path.join(u,l),{recursive:!0,force:!0})}async pack(n=this.project.resolvePath(this.project.getConfig().packOutputDir,`${(0,wMr.default)(`${this.project.getPackage().name}_${this.project.getPackage().version}`)}.zip`)){let{appOutputDir:o}=this.project.getConfig(),l=this.project.getRootDir();this.project.getLogger().debug(`packing directory ${o} to ${n}`);let p=this.project.getFileSystem();return J2.FileSystem.existsSync(p,n)&&p.rmSync(n,{recursive:!0,force:!0}),p.mkdirSync(J2.path.dirname(n),{recursive:!0}),await(0,J2.zipDirectory)(p,J2.path.join(l,o),n),n}unpack(n,o){let l=this.project.getFileSystem();return this.project.getLogger().debug(`unpacking directory ${n} to ${o}`),(0,J2.unzipAppPackage)(l,n,o)}async transform(n){let o,l,u=this.project.getFileSystem();if(n&&"paths"in n)o=Array.isArray(n.paths)?n.paths:[n.paths];else{let h=n&&"method"in n?await this.download(n):await this.download();l=J2.path.join(Jfn.tmpdir(),".now/metadata",(0,J2.GUID)());let v=await this.unpack(h,l);u.rmSync(h,{recursive:!0,force:!0}),o=v.files}let p=await this.project.transform(o,n);if(l)u.rmSync(l,{recursive:!0,force:!0});else for(let h of p.handledPaths)this.project.isInMetadataDir(h)&&(this.project.removeFile(h),u.rmSync(h,{recursive:!0,force:!0}));return this.project.save(),p}async install(n){let{scope:o,scopeId:l}=this.project.getConfig(),u=this.getConnector(),p=await u.getScopeInfo(o),h=p?.sysClassName==="sys_store_app",v=this.project.getLogger();if(p&&!n?.clean&&!!n?.installAsStoreApp!==h)throw new Error(`Attempting to install ${n?.installAsStoreApp?"a store app":"an app"} record but there is already a ${h?"sys_store_app":"sys_app"} record for this scope present on the instance. Install with flag '--reinstall' (-r) to delete existing app and reinstall`);p&&n?.clean&&(v.info(`Uninstalling application ${p?.appId??""} for clean installation...`),v.warn("This operation may cause unintended removal of metadata created by other developers on your instance. When reinstalling, any application metadata on your instance that isn't present in the local application installation package generated by $now-sdk build will be removed during the uninstall process. If there is metadata that's out of sync with your local application, use $now-sdk transform to synchronize your local metadata with the metadata on your instance."),await new PMr.Uninstaller(u,v).process(l,h));let T=n?.packageZipPath;T||(T=await this.pack());let E=this.project.getFileSystem();if(!J2.FileSystem.existsSync(E,T))throw new Error(`Installation failed due to missing installation artifact '${T}'. Run $now-sdk build before running $now-sdk install to generate a build artifact for installation.`);let D=new Blob([E.readFileSync(T)]);v.debug(`installing package ${T}`),await u.uploadScopedAppPackage(D,{loadDemoData:!0,isStoreApp:h||!!n?.installAsStoreApp,registerScope:!1})}installStatus(){let{scope:n}=this.project.getConfig();return this.getConnector().appUpgradeStatus(n)}async download(n={method:"complete"},o=J2.path.join(Jfn.tmpdir(),"servicenow/download",(0,J2.GUID)())){let l=this.getConnector(),{scope:u,scopeId:p}=this.project.getConfig(),h,v=this.project.getLogger();if(n.method==="update-set"?(v.debug(`downloading update set ${n.updateSetId}`),h=await l.downloadUpdateSet(n.updateSetId,p)):(v.debug(`downloading package for ${u} ${n.method}`),h=await l.download(u,n)),!h.ok||!h.body){let D=await h.json();throw D&&typeof D.result=="string"?new Error(D.result):new Error(`Failed to download package for ${u}`)}let T=this.project.getFileSystem(),E=J2.path.join(o,`${u}-${n.method}.zip`);return(0,oU.createDirIfNotExists)(o,T),await(0,oU.writeFileStream)(T,E,h.body),E}async types(){this.project.getLogger().info("Processing dependencies..."),await new IMr.ApplicationDependencies(this.project,this.getConnector()).addToProject()}async run(n){let o=n.script;await(0,oU.runScriptInProject)({scriptName:o,project:this.project,throwIfNotFound:!0})}async applyTemplate(n){let o=this.project.getConfig(),l=O_t.templates[n];if(!l)throw new Error(`Template ${n} not found`);let u=new O_t.ProjectFactory(this.project.getFileSystem()),p=(0,O_t.renderTemplates)(l.files,o,u.getOriginalFiles(this.project.getRootDir()));for(let{path:h,content:v}of p){let T=this.project.getFileIfExists(h);if(T){let E=l.files.find(D=>D.path===h);if(E&&!CMr.default.parseWithoutProcessing(E.content).body.some(C=>C.path?.original==="mergeJsonFiles"))throw new Error(`Collision detected with template file that is not mergable: ${h}`);T.setContent(v)}else this.project.addFile({path:h,content:v})}return this.project.save(),p}logDiagnostics(n,o={colors:!0}){}};X3.Orchestrator=F_t});var Qfn=ft(Yfn=>{"use strict";Z();ne();ee();te();Object.defineProperty(Yfn,"__esModule",{value:!0})});var Zfn=ft(m8e=>{"use strict";Z();ne();ee();te();Object.defineProperty(m8e,"__esModule",{value:!0});m8e.Connector=void 0;var W_t=class{static{e(this,"Connector")}credential;constructor(n){this.credential=n}async unload(n,o){let l=await this.fetch(`${n}.do`,{method:"GET"},new URLSearchParams({UNL:"",sysparm_query:o}));if(!l.ok)throw new Error(`Failed to fetch records for table ${n}: ${l.statusText}`);let u=await l.text();return{status:l.status,value:u}}async getScopeInfo(n){let o=await this.fetchApiNowTable("sys_scope",{sysparm_query:`scope=${n}`,sysparm_fields:"sys_id,sys_class_name,active",sysparm_limit:"2"});if(!o||o.length===0)return;if(o.length>1)throw new Error(`Multiple scopes detected with the scope name ${n}! Please resolve the multiple application installations and try again.`);let l=o[0];return{appId:l.sys_id,sysClassName:l.sys_class_name,active:!!l.active}}async uploadScopedAppPackage(n,o){let l=new FormData;l.append("upload_type","file"),l.append("load_demo",o.loadDemoData!==void 0?o.loadDemoData.toString():String(!0)),l.append("sysparm_ck",B_t(this.credential)),l.append("attachFile",n);let u=AbortSignal.timeout(o.timeoutMs??3e5),p=new URLSearchParams;o.isStoreApp||p.set("sysparm_request_type","custom_app"),o.registerScope&&p.set("sysparm_register_scope","true");try{await this.fetch("sn_appclient_upload_processor.do",{method:"POST",body:l,signal:u},p)}catch(h){throw u.aborted&&u.reason.name==="TimeoutError"?new Error("The deployment request timed out waiting for a response."):h}}async setCurrentApplication(n){let o=await this.appsAjaxProcessor({sysparm_function:"changeApplication",sysparm_value:n});if(!o.ok)throw new Error(`Failed to set current application: ${o.statusText}`)}async uninstallApplication(n,o){return this.appsAjaxProcessor({sysparm_function:o?"uninstallApplication":"deleteApplication",sysparm_sys_id:n,sysparm_fluent_app:"true",sysparm_delete_all:"true"})}async appUpgradeStatus(n){let o=await this.fetchApiNowTable("sys_upgrade_history",{sysparm_query:`to_version=${n}^ORDERBYDESCupgrade_started`,sysparm_fields:"upgrade_finished,sys_id",sysparm_limit:"1"});return{finished:!!o?.[0]?.upgrade_finished,id:o?.[0]?.sys_id??""}}async getProgress(n){let o=await this.fetch(`/api/sn_cicd/progress/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!o.ok)throw new Error(`Failed to fetch progress status: ${o.statusText}`);return(await o.json()).result}async getUpdateMutex(){let n=await this.fetchApiNowTable("sys_mutex",{sysparm_fields:"sys_id",sysparm_query:"name=Update-Mutex^acquiredISNOTEMPTY"});return!!(!n||n&&n.length<1)}download(n,o){let l=new URLSearchParams;return o?.method==="incremental"?(l.set("sysparam_mode","incremental"),o.lastPull&&l.set("sysparam_timestamp",o.lastPull)):l.set("sysparam_mode","complete"),this.fetch(`/api/fluent/download/${n}`,{method:"GET"},l)}async downloadUpdateSet(n,o){return this.fetch("/fluent_update_set_export.do",{method:"GET"},new URLSearchParams({sysparm_ck:B_t(this.credential),sysparm_sys_id:n,sysparm_app_sys_id:o}))}async getInstanceBuildName(){let n=await this.fetchApiNowTable("sys_cluster_state",{sysparm_fields:"build_name"});return n?n[0]?.build_name:void 0}async appCreatorVendorPrefix(){let n=await this.fetch("/api/now/appcreator/app/vendorprefix"),{result:o}=await n.json();return o}async syntaxEditorCompletionDefinitions(){return(await(await this.fetch("/api/now/syntax_editor/completions?scope=")).json()).result.result}async syntaxEditorCacheScriptIncludes(){let n=await this.fetch("/api/now/syntax_editor/cache/sys_script_include",{headers:{Accept:"application/json"}});if(!n.ok)throw new Error(`Failed to fetch script includes: ${n.statusText}`);let o=await n.json();return JSON.parse(o.result.result).sys_script_include}async syntaxEditorDefinitionsScriptIncludes(n){let o=await this.fetch("/api/now/syntax_editor/intellisense/sys_script_include",{method:"POST",body:JSON.stringify({scriptIncludes:n})});if(!o.ok)throw new Error(`Failed to fetch script include definitions: ${o.statusText}`);let{result:{result:l}}=await o.json();return l}async appsAjaxProcessor(n){let o=new URLSearchParams({sysparm_processor:"com.snc.apps.AppsAjaxProcessor",...n,sysparm_ck:B_t(this.credential)});return this.fetch("/xmlhttp.do",{method:"POST",body:o.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"*/*"}})}async fetch(n,o,l){let u={method:"GET",...o},p=this.getCredentialHeaders(),h=new URL(n,this.credential.instanceUrl);l&&(h.search=l.toString());let v={...u.headers,...p};return fetch(h,{...u,headers:v})}getCredentialHeaders(){let n={};switch(this.credential.type){case"basic":this.credential.token&&(n["X-UserToken"]=this.credential.token),this.credential.cookie&&(n.Cookie=this.credential.cookie);break;case"oauth":n.Authorization=`Bearer ${this.credential.token}`;break}return n}async fetchApiNowTable(n,o){let l=await this.fetch(`/api/now/table/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}},new URLSearchParams(o));if(!l.ok)throw new Error(l.statusText);return(await l.json()).result}};m8e.Connector=W_t;function B_t(i){return i.type==="basic"?i.token:""}e(B_t,"sysParmCk")});var e_n=ft(G1=>{"use strict";Z();ne();ee();te();var NMr=G1&&G1.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),$se=G1&&G1.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&NMr(n,i,o)};Object.defineProperty(G1,"__esModule",{value:!0});G1.ApplicationDependencies=G1.Parser=G1.NowConfig=G1.tsc=G1.ts=G1.FileSystem=void 0;var h8e=Wu();Object.defineProperty(G1,"FileSystem",{enumerable:!0,get:e(function(){return h8e.FileSystem},"get")});Object.defineProperty(G1,"ts",{enumerable:!0,get:e(function(){return h8e.ts},"get")});Object.defineProperty(G1,"tsc",{enumerable:!0,get:e(function(){return h8e.tsc},"get")});Object.defineProperty(G1,"NowConfig",{enumerable:!0,get:e(function(){return h8e.NowConfig},"get")});$se(QMe(),G1);$se(Gft(),G1);$se($fn(),G1);$se(k_t(),G1);var RMr=N6e();Object.defineProperty(G1,"Parser",{enumerable:!0,get:e(function(){return RMr.Parser},"get")});$se(Qfn(),G1);$se(Zfn(),G1);var kMr=C_t();Object.defineProperty(G1,"ApplicationDependencies",{enumerable:!0,get:e(function(){return kMr.ApplicationDependencies},"get")})});var MMr={};_C(MMr,{FileSystem:()=>YB.FileSystem,NowConfig:()=>YB.NowConfig,Project:()=>YB.Project,ts:()=>YB.ts,tsc:()=>YB.tsc});module.exports=Ld(MMr);Z();ne();ee();te();var YB=DY(e_n());
33799
+ ${D?.message}`)}let E=(0,vMr.default)(T,v);return JSON.stringify(E,null,2)});let l=[];for(let u of i){let h=qfn.default.compile(u.content)({...n});l.push({path:u.path,content:h})}return l},"renderTemplates");S0.renderTemplates=SMr});var Hfn=ft(L_t=>{"use strict";Z();ne();ee();te();Object.defineProperty(L_t,"__esModule",{value:!0});L_t.defaultUiBuild=EMr;var M_t=(vC(),Ld(yC)),_8e=Wu();async function EMr({project:i}){let n=i.getFileSystem(),o=i.getConfig(),l=i.getLogger(),u=i.getRootDir(),p=_8e.path.join(u,o.clientDir),h=i.registerExplicitId.bind(i);if(!_8e.FileSystem.existsSync(n,p)){l.debug(`No client files in ${p} found, skipping UI build.`);return}let v=_8e.path.join(p,"**","*.html");if(!(await(0,M_t.glob)(v,{fs:n})).length){l.warn(`No HTML files found in ${p}, skipping UI build.`);return}let E=_8e.path.join(u,o.staticContentDir);n.rmSync(E,{recursive:!0,force:!0}),(await(await(0,M_t.rollup)({fs:n,input:v,plugins:(0,M_t.servicenowFrontEndPlugins)({scope:o.scope,rootDir:p,registerExplicitId:h})})).write({dir:E,sourcemap:!0})).output.forEach(w=>{w.type==="asset"?l.info(`Bundled asset: ${w.fileName} (${w.source.length} bytes)`):w.type==="chunk"&&l.info(`Bundled chunk: ${w.fileName} (${w.code.length} bytes)`)})}e(EMr,"defaultUiBuild")});var $fn=ft(X3=>{"use strict";Z();ne();ee();te();var xMr=X3&&X3.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),TMr=X3&&X3.__setModuleDefault||(Object.create?function(i,n){Object.defineProperty(i,"default",{enumerable:!0,value:n})}:function(i,n){i.default=n}),DMr=X3&&X3.__importStar||function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var o in i)o!=="default"&&Object.prototype.hasOwnProperty.call(i,o)&&xMr(n,i,o);return TMr(n,i),n},Xfn=X3&&X3.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(X3,"__esModule",{value:!0});X3.Orchestrator=void 0;var J2=Wu(),AMr=C6e(),CMr=Xfn(T_t()),wMr=Xfn(_fn()),Jfn=DMr((EG(),Ld(SG))),IMr=C_t(),PMr=vfn(),O_t=k_t(),oU=cZ(),F_t=class{static{e(this,"Orchestrator")}project;connector;constructor(n,o){this.project=n,this.connector=o}getConnector(){if(!this.connector)throw new Error("connector is not defined");return this.connector}async build(n={}){let{frozenKeys:o=!1}=n;this.clean();let l=this.project.getRootDir(),u=this.project.getLogger(),p=this.project.getConfig(),h=this.project.getFileSystem(),v=(0,oU.projectHasScript)(this.project,"prebuild"),T=!oU.isWebWorker||(0,oU.hasModuleLoader)();if(T&&v)await(0,oU.runScriptInProject)({scriptName:"prebuild",project:this.project,throwIfNotFound:!1});else if(p.clientDir){v&&u.debug("Custom scripts are not supported, so using the default UI build");let{defaultUiBuild:w}=await Promise.resolve().then(()=>DY(Hfn()));await w({project:this.project})}if(J2.FileSystem.existsSync(h,J2.path.join(l,p.staticContentDir)))for(let w of this.project.reloadDirectory(p.staticContentDir))w.setReadOnly(!0);let E=this.project.getKeys().getSourceFile(),D=E.getFullText(),C;try{C=await this.project.saveOutput()}catch(w){return u.error(w),{success:!1,diagnostics:[]}}if(this.project.getPlugins().toArray().forEach(w=>{w.flushCache()}),o){let w=E.getFullText();if(D!==w)throw new Error("Keys file is out-of-date. To update it, run the build again without frozen keys.")}return await this.project.getKeys().getSourceFile().save(),T?await(0,oU.runScriptInProject)({scriptName:"postbuild",project:this.project,throwIfNotFound:!1}):(0,oU.projectHasScript)(this.project,"postbuild")&&u.warn("Custom scripts are not supported, skipping postbuild script"),{success:!0,files:C,packOutput:this.project.resolvePath(this.project.getConfig().packOutputDir),diagnostics:[]}}clean(){let{appOutputDir:n,packOutputDir:o,staticContentDir:l}=this.project.getConfig(),u=this.project.getRootDir(),p=this.project.getFileSystem();p.rmSync(J2.path.join(u,AMr.REPACK_OUTPUT_DIR),{recursive:!0,force:!0}),p.rmSync(J2.path.join(u,n),{recursive:!0,force:!0}),p.rmSync(J2.path.join(u,o),{recursive:!0,force:!0}),p.rmSync(J2.path.join(u,l),{recursive:!0,force:!0})}async pack(n=this.project.resolvePath(this.project.getConfig().packOutputDir,`${(0,wMr.default)(`${this.project.getPackage().name}_${this.project.getPackage().version}`)}.zip`)){let{appOutputDir:o}=this.project.getConfig(),l=this.project.getRootDir();this.project.getLogger().debug(`packing directory ${o} to ${n}`);let p=this.project.getFileSystem();return J2.FileSystem.existsSync(p,n)&&p.rmSync(n,{recursive:!0,force:!0}),p.mkdirSync(J2.path.dirname(n),{recursive:!0}),await(0,J2.zipDirectory)(p,J2.path.join(l,o),n),n}unpack(n,o){let l=this.project.getFileSystem();return this.project.getLogger().debug(`unpacking directory ${n} to ${o}`),(0,J2.unzipAppPackage)(l,n,o)}async transform(n){let o,l,u=this.project.getFileSystem();if(n&&"paths"in n)o=Array.isArray(n.paths)?n.paths:[n.paths];else{let h=n&&"method"in n?await this.download(n):await this.download();l=J2.path.join(Jfn.tmpdir(),".now/metadata",(0,J2.GUID)());let v=await this.unpack(h,l);u.rmSync(h,{recursive:!0,force:!0}),o=v.files}let p=await this.project.transform(o,n);if(l)u.rmSync(l,{recursive:!0,force:!0});else for(let h of p.handledPaths)this.project.isInMetadataDir(h)&&(this.project.removeFile(h),u.rmSync(h,{recursive:!0,force:!0}));return this.project.save(),p}async install(n){let{scope:o,scopeId:l}=this.project.getConfig(),u=this.getConnector(),p=await u.getScopeInfo(o),h=p?.sysClassName==="sys_store_app",v=this.project.getLogger();if(p&&!n?.clean&&!!n?.installAsStoreApp!==h)throw new Error(`Attempting to install ${n?.installAsStoreApp?"a store app":"an app"} record but there is already a ${h?"sys_store_app":"sys_app"} record for this scope present on the instance. Install with flag '--reinstall' (-r) to delete existing app and reinstall`);p&&n?.clean&&(v.info(`Uninstalling application ${p?.appId??""} for clean installation...`),v.warn("This operation may cause unintended removal of metadata created by other developers on your instance. When reinstalling, any application metadata on your instance that isn't present in the local application installation package generated by $now-sdk build will be removed during the uninstall process. If there is metadata that's out of sync with your local application, use $now-sdk transform to synchronize your local metadata with the metadata on your instance."),await new PMr.Uninstaller(u,v).process(l,h));let T=n?.packageZipPath;T||(T=await this.pack());let E=this.project.getFileSystem();if(!J2.FileSystem.existsSync(E,T))throw new Error(`Installation failed due to missing installation artifact '${T}'. Run $now-sdk build before running $now-sdk install to generate a build artifact for installation.`);let D=new Blob([E.readFileSync(T)]);v.debug(`installing package ${T}`),await u.uploadScopedAppPackage(D,{loadDemoData:!0,isStoreApp:h||!!n?.installAsStoreApp,registerScope:!1})}installStatus(){let{scope:n}=this.project.getConfig();return this.getConnector().appUpgradeStatus(n)}async download(n={method:"complete"},o=J2.path.join(Jfn.tmpdir(),"servicenow/download",(0,J2.GUID)())){let l=this.getConnector(),{scope:u,scopeId:p}=this.project.getConfig(),h,v=this.project.getLogger();if(n.method==="update-set"?(v.debug(`downloading update set ${n.updateSetId}`),h=await l.downloadUpdateSet(n.updateSetId,p)):(v.debug(`downloading package for ${u} ${n.method}`),h=await l.download(u,n)),!h.ok||!h.body){let D=await h.json();throw D&&typeof D.result=="string"?new Error(D.result):new Error(`Failed to download package for ${u}`)}let T=this.project.getFileSystem(),E=J2.path.join(o,`${u}-${n.method}.zip`);return(0,oU.createDirIfNotExists)(o,T),await(0,oU.writeFileStream)(T,E,h.body),E}async types(){this.project.getLogger().info("Processing dependencies..."),await new IMr.ApplicationDependencies(this.project,this.getConnector()).addToProject()}async run(n){let o=n.script;await(0,oU.runScriptInProject)({scriptName:o,project:this.project,throwIfNotFound:!0})}async applyTemplate(n){let o=this.project.getConfig(),l=O_t.templates[n];if(!l)throw new Error(`Template ${n} not found`);let u=new O_t.ProjectFactory(this.project.getFileSystem()),p=(0,O_t.renderTemplates)(l.files,o,u.getOriginalFiles(this.project.getRootDir()));for(let{path:h,content:v}of p){let T=this.project.getFileIfExists(h);if(T){let E=l.files.find(D=>D.path===h);if(E&&!CMr.default.parseWithoutProcessing(E.content).body.some(C=>C.path?.original==="mergeJsonFiles"))throw new Error(`Collision detected with template file that is not mergable: ${h}`);T.setContent(v)}else this.project.addFile({path:h,content:v})}return this.project.save(),p}logDiagnostics(n,o={colors:!0}){}};X3.Orchestrator=F_t});var Qfn=ft(Yfn=>{"use strict";Z();ne();ee();te();Object.defineProperty(Yfn,"__esModule",{value:!0})});var Zfn=ft(m8e=>{"use strict";Z();ne();ee();te();Object.defineProperty(m8e,"__esModule",{value:!0});m8e.Connector=void 0;var W_t=class{static{e(this,"Connector")}credential;constructor(n){this.credential=n}async unload(n,o){let l=await this.fetch(`${n}.do`,{method:"GET"},new URLSearchParams({UNL:"",sysparm_query:o}));if(!l.ok)throw new Error(`Failed to fetch records for table ${n}: ${l.statusText}`);let u=await l.text();return{status:l.status,value:u}}async getScopeInfo(n){let o=await this.fetchApiNowTable("sys_scope",{sysparm_query:`scope=${n}`,sysparm_fields:"sys_id,sys_class_name,active",sysparm_limit:"2"});if(!o||o.length===0)return;if(o.length>1)throw new Error(`Multiple scopes detected with the scope name ${n}! Please resolve the multiple application installations and try again.`);let l=o[0];return{appId:l.sys_id,sysClassName:l.sys_class_name,active:!!l.active}}async uploadScopedAppPackage(n,o){let l=new FormData;l.append("upload_type","file"),l.append("load_demo",o.loadDemoData!==void 0?o.loadDemoData.toString():String(!0)),l.append("sysparm_ck",B_t(this.credential)),l.append("attachFile",n);let u=AbortSignal.timeout(o.timeoutMs??3e5),p=new URLSearchParams;o.isStoreApp||p.set("sysparm_request_type","custom_app"),o.registerScope&&p.set("sysparm_register_scope","true");try{await this.fetch("sn_appclient_upload_processor.do",{method:"POST",body:l,signal:u},p)}catch(h){throw u.aborted&&u.reason.name==="TimeoutError"?new Error("The deployment request timed out waiting for a response."):h}}async setCurrentApplication(n){let o=await this.appsAjaxProcessor({sysparm_function:"changeApplication",sysparm_value:n});if(!o.ok)throw new Error(`Failed to set current application: ${o.statusText}`)}async uninstallApplication(n,o){return this.appsAjaxProcessor({sysparm_function:o?"uninstallApplication":"deleteApplication",sysparm_sys_id:n,sysparm_fluent_app:"true",sysparm_delete_all:"true"})}async appUpgradeStatus(n){let o=await this.fetchApiNowTable("sys_upgrade_history",{sysparm_query:`to_version=${n}^ORDERBYDESCupgrade_started`,sysparm_fields:"upgrade_finished,sys_id",sysparm_limit:"1"});return{finished:!!o?.[0]?.upgrade_finished,id:o?.[0]?.sys_id??""}}async getProgress(n){let o=await this.fetch(`/api/sn_cicd/progress/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!o.ok)throw new Error(`Failed to fetch progress status: ${o.statusText}`);return(await o.json()).result}async getUpdateMutex(){let n=await this.fetchApiNowTable("sys_mutex",{sysparm_fields:"sys_id",sysparm_query:"name=Update-Mutex^acquiredISNOTEMPTY"});return!!(!n||n&&n.length<1)}download(n,o){let l=new URLSearchParams;return o?.method==="incremental"?(l.set("sysparam_mode","incremental"),o.lastPull&&l.set("sysparam_timestamp",o.lastPull)):l.set("sysparam_mode","complete"),this.fetch(`/api/fluent/download/${n}`,{method:"GET"},l)}async downloadUpdateSet(n,o){return this.fetch("/fluent_update_set_export.do",{method:"GET"},new URLSearchParams({sysparm_ck:B_t(this.credential),sysparm_sys_id:n,sysparm_app_sys_id:o}))}async getInstanceBuildName(){let n=await this.fetchApiNowTable("sys_cluster_state",{sysparm_fields:"build_name"});return n?n[0]?.build_name:void 0}async appCreatorVendorPrefix(){let n=await this.fetch("/api/now/appcreator/app/vendorprefix"),{result:o}=await n.json();return o}async syntaxEditorCompletionDefinitions(){return(await(await this.fetch("/api/now/syntax_editor/completions?scope=")).json()).result.result}async syntaxEditorCacheScriptIncludes(){let n=await this.fetch("/api/now/syntax_editor/cache/sys_script_include",{headers:{Accept:"application/json"}});if(!n.ok)throw new Error(`Failed to fetch script includes: ${n.statusText}`);let o=await n.json();return JSON.parse(o.result.result).sys_script_include}async syntaxEditorDefinitionsScriptIncludes(n){let o=await this.fetch("/api/now/syntax_editor/intellisense/sys_script_include",{method:"POST",body:JSON.stringify({scriptIncludes:n})});if(!o.ok)throw new Error(`Failed to fetch script include definitions: ${o.statusText}`);let{result:{result:l}}=await o.json();return l}async appsAjaxProcessor(n){let o=new URLSearchParams({sysparm_processor:"com.snc.apps.AppsAjaxProcessor",...n,sysparm_ck:B_t(this.credential)});return this.fetch("/xmlhttp.do",{method:"POST",body:o.toString(),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"*/*"}})}async fetch(n,o,l){let u={method:"GET",...o},p=this.getCredentialHeaders(),h=new URL(n,this.credential.instanceUrl);l&&(h.search=l.toString());let v={...u.headers,...p};return fetch(h,{...u,headers:v})}getCredentialHeaders(){let n={};switch(this.credential.type){case"basic":this.credential.token&&(n["X-UserToken"]=this.credential.token),this.credential.cookie&&(n.Cookie=this.credential.cookie);break;case"oauth":n.Authorization=`Bearer ${this.credential.token}`;break}return n}async fetchApiNowTable(n,o){let l=await this.fetch(`/api/now/table/${n}`,{method:"GET",headers:{"Content-Type":"application/json"}},new URLSearchParams(o));if(!l.ok)throw new Error(l.statusText);return(await l.json()).result}};m8e.Connector=W_t;function B_t(i){return i.type==="basic"?i.token:""}e(B_t,"sysParmCk")});var e_n=ft(G1=>{"use strict";Z();ne();ee();te();var NMr=G1&&G1.__createBinding||(Object.create?function(i,n,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(n,o);(!u||("get"in u?!n.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:e(function(){return n[o]},"get")}),Object.defineProperty(i,l,u)}:function(i,n,o,l){l===void 0&&(l=o),i[l]=n[o]}),$se=G1&&G1.__exportStar||function(i,n){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&NMr(n,i,o)};Object.defineProperty(G1,"__esModule",{value:!0});G1.ApplicationDependencies=G1.Parser=G1.NowConfig=G1.tsc=G1.ts=G1.FileSystem=void 0;var h8e=Wu();Object.defineProperty(G1,"FileSystem",{enumerable:!0,get:e(function(){return h8e.FileSystem},"get")});Object.defineProperty(G1,"ts",{enumerable:!0,get:e(function(){return h8e.ts},"get")});Object.defineProperty(G1,"tsc",{enumerable:!0,get:e(function(){return h8e.tsc},"get")});Object.defineProperty(G1,"NowConfig",{enumerable:!0,get:e(function(){return h8e.NowConfig},"get")});$se(QMe(),G1);$se(Gft(),G1);$se($fn(),G1);$se(k_t(),G1);var RMr=N6e();Object.defineProperty(G1,"Parser",{enumerable:!0,get:e(function(){return RMr.Parser},"get")});$se(Qfn(),G1);$se(Zfn(),G1);var kMr=C_t();Object.defineProperty(G1,"ApplicationDependencies",{enumerable:!0,get:e(function(){return kMr.ApplicationDependencies},"get")})});var MMr={};_C(MMr,{FileSystem:()=>YB.FileSystem,NowConfig:()=>YB.NowConfig,Project:()=>YB.Project,ts:()=>YB.ts,tsc:()=>YB.tsc});module.exports=Ld(MMr);Z();ne();ee();te();var YB=DY(e_n());
33800
33800
  /*! Bundled license information:
33801
33801
 
33802
33802
  @geut/browser-node-core/src/esm/buffer-browserify.js: