@futdevpro/ccap 1.1.2 → 1.1.4
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/cli/build/_collections/auto-start.util.d.ts.map +1 -1
- package/cli/build/_collections/auto-start.util.js +8 -12
- package/cli/build/_collections/auto-start.util.js.map +1 -1
- package/cli/build/_collections/process-control.util.d.ts +27 -0
- package/cli/build/_collections/process-control.util.d.ts.map +1 -0
- package/cli/build/_collections/process-control.util.js +172 -0
- package/cli/build/_collections/process-control.util.js.map +1 -0
- package/cli/build/_collections/setup-wizard.util.d.ts +5 -0
- package/cli/build/_collections/setup-wizard.util.d.ts.map +1 -1
- package/cli/build/_collections/setup-wizard.util.js +113 -94
- package/cli/build/_collections/setup-wizard.util.js.map +1 -1
- package/cli/build/_commands/restart.d.ts +2 -2
- package/cli/build/_commands/restart.d.ts.map +1 -1
- package/cli/build/_commands/restart.js +4 -14
- package/cli/build/_commands/restart.js.map +1 -1
- package/cli/build/_commands/start.d.ts +1 -8
- package/cli/build/_commands/start.d.ts.map +1 -1
- package/cli/build/_commands/start.js +3 -67
- package/cli/build/_commands/start.js.map +1 -1
- package/cli/build/_commands/status.js +3 -3
- package/cli/build/_commands/status.js.map +1 -1
- package/cli/build/_commands/stop.d.ts +1 -2
- package/cli/build/_commands/stop.d.ts.map +1 -1
- package/cli/build/_commands/stop.js +3 -33
- package/cli/build/_commands/stop.js.map +1 -1
- package/cli/build/_commands/update.d.ts +6 -0
- package/cli/build/_commands/update.d.ts.map +1 -0
- package/cli/build/_commands/update.js +26 -0
- package/cli/build/_commands/update.js.map +1 -0
- package/cli/build/program.js +13 -3
- package/cli/build/program.js.map +1 -1
- package/client-dist/browser/chunk-FMFEMJE7.js +218 -0
- package/client-dist/browser/{chunk-KJ7FQNUG.js → chunk-YV5G3XYV.js} +1 -1
- package/client-dist/browser/index.html +2 -2
- package/client-dist/browser/main-XZGF4SOO.js +2 -0
- package/client-dist/browser/styles-TSK27CYC.css +1 -0
- package/package.json +2 -1
- package/server/build/src/_modules/agent/assemble-conversation.control-service.js +4 -3
- package/server/build/src/_modules/agent/assemble-conversation.control-service.js.map +1 -1
- package/server/build/src/_modules/default-path/default-path.util-service.js +8 -0
- package/server/build/src/_modules/default-path/default-path.util-service.js.map +1 -1
- package/server/build/src/_modules/default-path/default-path.util-service.spec.js +10 -0
- package/server/build/src/_modules/default-path/default-path.util-service.spec.js.map +1 -1
- package/server/build/src/_modules/default-path/soul-file.util-service.js +15 -11
- package/server/build/src/_modules/default-path/soul-file.util-service.js.map +1 -1
- package/server/build/src/_routes/client-static/client-static.controller.js +7 -3
- package/server/build/src/_routes/client-static/client-static.controller.js.map +1 -1
- package/server/build/src/_routes/setup/setup.controller.js +23 -1
- package/server/build/src/_routes/setup/setup.controller.js.map +1 -1
- package/client-dist/browser/chunk-UTNU5A7U.js +0 -218
- package/client-dist/browser/main-RHNH7LDD.js +0 -2
- package/client-dist/browser/styles-VWWGDWT7.css +0 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
var Kx=Object.create;var Ko=Object.defineProperty,Xx=Object.defineProperties,e1=Object.getOwnPropertyDescriptor,t1=Object.getOwnPropertyDescriptors,n1=Object.getOwnPropertyNames,Mb=Object.getOwnPropertySymbols,r1=Object.getPrototypeOf,Sb=Object.prototype.hasOwnProperty,i1=Object.prototype.propertyIsEnumerable;var Cb=(e,t,n)=>t in e?Ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||={})Sb.call(t,n)&&Cb(e,n,t[n]);if(Mb)for(var n of Mb(t))i1.call(t,n)&&Cb(e,n,t[n]);return e},B=(e,t)=>Xx(e,t1(t));var o1=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s1=(e,t)=>{for(var n in t)Ko(e,n,{get:t[n],enumerable:!0})},Ib=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of n1(t))!Sb.call(e,i)&&i!==n&&Ko(e,i,{get:()=>t[i],enumerable:!(r=e1(t,i))||r.enumerable});return e};var SJ=(e,t,n)=>(n=e!=null?Kx(r1(e)):{},Ib(t||!e||!e.__esModule?Ko(n,"default",{value:e,enumerable:!0}):n,e)),Ob=e=>Ib(Ko({},"__esModule",{value:!0}),e);var we=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});var Qm={};s1(Qm,{__addDisposableResource:()=>DM,__assign:()=>Nc,__asyncDelegator:()=>hM,__asyncGenerator:()=>fM,__asyncValues:()=>pM,__await:()=>ji,__awaiter:()=>sM,__classPrivateFieldGet:()=>yM,__classPrivateFieldIn:()=>bM,__classPrivateFieldSet:()=>_M,__createBinding:()=>Fc,__decorate:()=>rM,__disposeResources:()=>wM,__esDecorate:()=>tL,__exportStar:()=>uM,__extends:()=>tM,__generator:()=>aM,__importDefault:()=>vM,__importStar:()=>mM,__makeTemplateObject:()=>gM,__metadata:()=>oM,__param:()=>iM,__propKey:()=>rL,__read:()=>Ym,__rest:()=>nM,__runInitializers:()=>nL,__setFunctionName:()=>iL,__spread:()=>cM,__spreadArray:()=>dM,__spreadArrays:()=>lM,__values:()=>Pc,default:()=>aL});function tM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function nM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function rM(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function iM(e,t){return function(n,r){t(n,r,e)}}function tL(e,t,n,r,i,o){function s(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,p=!1,g=n.length-1;g>=0;g--){var m={};for(var v in r)m[v]=v==="access"?{}:r[v];for(var v in r.access)m.access[v]=r.access[v];m.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(_||null))};var y=(0,n[g])(a==="accessor"?{get:l.get,set:l.set}:l[u],m);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(d=s(y.get))&&(l.get=d),(d=s(y.set))&&(l.set=d),(d=s(y.init))&&i.unshift(d)}else(d=s(y))&&(a==="field"?i.unshift(d):l[u]=d)}c&&Object.defineProperty(c,r.name,l),p=!0}function nL(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function rL(e){return typeof e=="symbol"?e:"".concat(e)}function iL(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function oM(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function sM(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function aM(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function uM(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Fc(t,e,n)}function Pc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ym(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function cM(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ym(arguments[t]));return e}function lM(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function dM(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ji(e){return this instanceof ji?(this.v=e,this):new ji(e)}function fM(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(g){return function(m){return Promise.resolve(m).then(g,d)}}function a(g,m){r[g]&&(i[g]=function(v){return new Promise(function(y,_){o.push([g,v,y,_])>1||u(g,v)})},m&&(i[g]=m(i[g])))}function u(g,m){try{c(r[g](m))}catch(v){p(o[0][3],v)}}function c(g){g.value instanceof ji?Promise.resolve(g.value.v).then(l,d):p(o[0][2],g)}function l(g){u("next",g)}function d(g){u("throw",g)}function p(g,m){g(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function hM(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:ji(e[i](s)),done:!1}:o?o(s):s}:o}}function pM(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Pc=="function"?Pc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}function gM(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mM(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Fc(t,e,n);return oL(t,e),t}function vM(e){return e&&e.__esModule?e:{default:e}}function yM(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function _M(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function bM(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function DM(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function wM(e){function t(r){e.error=e.hasError?new sL(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(o){return t(o),n()})}catch(o){t(o)}}if(e.hasError)throw e.error}return n()}var Zm,Nc,Fc,oL,sL,aL,Jm=o1(()=>{"use strict";Zm=function(e,t){return Zm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Zm(e,t)};Nc=function(){return Nc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Nc.apply(this,arguments)};Fc=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};oL=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};sL=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};aL={__extends:tM,__assign:Nc,__rest:nM,__decorate:rM,__param:iM,__metadata:oM,__awaiter:sM,__generator:aM,__createBinding:Fc,__exportStar:uM,__values:Pc,__read:Ym,__spread:cM,__spreadArrays:lM,__spreadArray:dM,__await:ji,__asyncGenerator:fM,__asyncDelegator:hM,__asyncValues:pM,__makeTemplateObject:gM,__importStar:mM,__importDefault:vM,__classPrivateFieldGet:yM,__classPrivateFieldSet:_M,__classPrivateFieldIn:bM,__addDisposableResource:DM,__disposeResources:wM}});var Km=h(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.yottabyte=ie.zettabyte=ie.exabyte=ie.petabyte=ie.terabyte=ie.gigabyte=ie.megabyte=ie.kilobyte=ie.byte=void 0;ie.byte=8;ie.kilobyte=1024;ie.megabyte=ie.kilobyte*1024;ie.gigabyte=ie.megabyte*1024;ie.terabyte=ie.gigabyte*1024;ie.petabyte=ie.terabyte*1024;ie.exabyte=ie.petabyte*1024;ie.zettabyte=ie.exabyte*1024;ie.yottabyte=ie.zettabyte*1024});var Xm=h(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.DyFM_error_defaults=void 0;Rc.DyFM_error_defaults={errorCode:"NO-ERROR-CODE",message:"NO-ERROR-MESSAGE",userMessage:"MISSING-ERROR-USER-MESSAGE",issuer:"MISSING-ISSUER",issuerService:"MISSING-ISSUER-SERVICE",issuerSystem:"MISSING-ISSUER-SYSTEM",systemVersion:"MISSING-SYSTEM-VERSION"}});var EM=h(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.DyFM_global_settings=void 0;kc.DyFM_global_settings={systemShortCodeName:"DyFM_UNKNOWN_SYSTEM",baseUrl:"/api",log_settings:{}}});var MM=h(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.trillion=Te.billion=Te.million=Te.kilo=void 0;Te.kilo=1e3;Te.million=Te.kilo*Te.kilo;Te.billion=Te.million*Te.kilo;Te.trillion=Te.billion*Te.kilo});var Ps=h(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.year=ce.month=ce.week=ce.day=ce.hour=ce.minute=ce.second=void 0;ce.second=1e3;ce.minute=ce.second*60;ce.hour=ce.minute*60;ce.day=ce.hour*24;ce.week=ce.day*7;ce.month=ce.day*30.4368499;ce.year=ce.day*365.242199});var Fs=h(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.DyFM_allLogStyles=Li.DyFM_LogStyle=void 0;var ev=function(e){return e.reset="\x1B[0m",e.bold="\x1B[1m",e.dim="\x1B[2m",e.underline="\x1B[4m",e.blink="\x1B[5m",e.reverse="\x1B[7m",e.hidden="\x1B[8m",e.black="\x1B[30m",e.red="\x1B[31m",e.green="\x1B[32m",e.orange="\x1B[38;5;208m",e.brightOrange="\x1B[38;5;214m",e.yellow="\x1B[33m",e.blue="\x1B[34m",e.magenta="\x1B[35m",e.cyan="\x1B[36m",e.white="\x1B[37m",e.BgBlack="\x1B[40m",e.BgRed="\x1B[41m",e.BgGreen="\x1B[42m",e.BgYellow="\x1B[43m",e.BgBlue="\x1B[44m",e.BgMagenta="\x1B[45m",e.BgCyan="\x1B[46m",e.BgWhite="\x1B[47m",e}(ev||(Li.DyFM_LogStyle=ev={}));Li.DyFM_allLogStyles=Object.values(ev)});var qt=h(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.DyFM_Log=void 0;var le=Fs(),tv=class e{static infoStyle=le.DyFM_LogStyle.cyan;static errorStyle=le.DyFM_LogStyle.red;static warnStyle=le.DyFM_LogStyle.brightOrange;static successStyle=le.DyFM_LogStyle.green;static highlightedStyle=`${le.DyFM_LogStyle.white}${le.DyFM_LogStyle.bold}`;static boldStyle=le.DyFM_LogStyle.bold;static h_test="|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||";static h_before="\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";static h_after="/////////////////////////////////////////////////////////////////////////////";static h_small="-----------------------------------------------------------------------------";static setStyle(t){let n="";t.forEach(r=>{n+=r}),console.log(n)}static resetStyle(){console.log(le.DyFM_LogStyle.reset)}static addStyle(t,n,r){let i="";return n.forEach(o=>{i+=o}),i+=t,r||(i+=le.DyFM_LogStyle.reset),i}static success(t,...n){0<n.length?console.log(`${this.successStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.log(`${this.successStyle}${t}${le.DyFM_LogStyle.reset}`)}static logSuccess=this.success;static error(t,...n){0<n.length?console.error(`${this.errorStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.error(`${this.errorStyle}${t}${le.DyFM_LogStyle.reset}`)}static logError=this.error;static warn(t,...n){0<n.length?console.warn(`${this.warnStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.warn(`${this.warnStyle}${t}${le.DyFM_LogStyle.reset}`)}static warning=this.warn;static logWarning=this.warn;static info(t,...n){0<n.length?console.info(`${this.infoStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.info(`${this.infoStyle}${t}${le.DyFM_LogStyle.reset}`)}static log(t,...n){console.log(t,...n)}static getHighlighted(t,...n){return`${this.highlightedStyle}${t}${le.DyFM_LogStyle.reset}`}static highlighted(t,...n){0<n.length?console.log(`${this.highlightedStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.log(`${this.highlightedStyle}${t}${le.DyFM_LogStyle.reset}`)}static smallLog(t,...n){console.log(this.h_small+`
|
|
2
|
+
`+this.asfel(t,2),...this.asfesop(n,2),`
|
|
3
|
+
`+this.h_small)}static S_log=e.smallLog;static testLog(t,...n){this.log(`
|
|
4
|
+
`+this.h_test+`
|
|
5
|
+
|
|
6
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
7
|
+
|
|
8
|
+
`+this.h_test+`
|
|
9
|
+
`)}static test=e.testLog;static T_log=e.testLog;static highlightedLog(t,...n){this.log(`
|
|
10
|
+
|
|
11
|
+
`+this.h_before+`
|
|
12
|
+
`+this.h_before+`
|
|
13
|
+
`+this.h_before+`
|
|
14
|
+
|
|
15
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
16
|
+
|
|
17
|
+
`+this.h_after+`
|
|
18
|
+
`+this.h_after+`
|
|
19
|
+
`+this.h_after+`
|
|
20
|
+
|
|
21
|
+
`)}static H_log=e.highlightedLog;static smallInfo(t,...n){this.info(this.h_small+`
|
|
22
|
+
`+this.asfel(t,2),...this.asfesop(n,2),`
|
|
23
|
+
`+this.infoStyle+this.h_small)}static S_info=e.smallInfo;static testInfo(t,...n){this.info(`
|
|
24
|
+
`+this.h_test+`
|
|
25
|
+
|
|
26
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
27
|
+
|
|
28
|
+
`+this.infoStyle+this.h_test+`
|
|
29
|
+
`)}static T_info=e.testInfo;static highlightedInfo(t,...n){this.info(`
|
|
30
|
+
|
|
31
|
+
`+this.h_before+`
|
|
32
|
+
`+this.h_before+`
|
|
33
|
+
`+this.h_before+`
|
|
34
|
+
|
|
35
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
36
|
+
|
|
37
|
+
`+this.infoStyle+this.h_after+`
|
|
38
|
+
`+this.h_after+`
|
|
39
|
+
`+this.h_after+`
|
|
40
|
+
|
|
41
|
+
`)}static H_info=e.highlightedInfo;static smallError(t,...n){this.error(this.h_small+`
|
|
42
|
+
`+this.asfel(t,2),...this.asfesop(n,2),`
|
|
43
|
+
`+this.errorStyle+this.h_small)}static S_error=e.smallError;static testError(t,...n){this.error(`
|
|
44
|
+
`+this.h_test+`
|
|
45
|
+
|
|
46
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
47
|
+
|
|
48
|
+
`+this.errorStyle+this.h_test+`
|
|
49
|
+
`)}static T_error=e.testError;static highlightedError(t,...n){this.error(`
|
|
50
|
+
|
|
51
|
+
`+this.h_before+`
|
|
52
|
+
`+this.h_before+`
|
|
53
|
+
`+this.h_before+`
|
|
54
|
+
|
|
55
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
56
|
+
|
|
57
|
+
`+this.errorStyle+this.h_after+`
|
|
58
|
+
`+this.h_after+`
|
|
59
|
+
`+this.h_after+`
|
|
60
|
+
|
|
61
|
+
`)}static H_error=e.highlightedError;static smallWarn(t,...n){this.warn(this.h_small+`
|
|
62
|
+
`+this.asfel(t,2),...this.asfesop(n,2),`
|
|
63
|
+
`+this.warnStyle+this.h_small)}static S_warn=e.smallWarn;static testWarn(t,...n){this.warn(`
|
|
64
|
+
`+this.h_test+`
|
|
65
|
+
|
|
66
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
67
|
+
|
|
68
|
+
`+this.warnStyle+this.h_test+`
|
|
69
|
+
`)}static T_warn=e.testWarn;static highlightedWarn(t,...n){this.warn(`
|
|
70
|
+
|
|
71
|
+
`+this.h_before+`
|
|
72
|
+
`+this.h_before+`
|
|
73
|
+
`+this.h_before+`
|
|
74
|
+
|
|
75
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
76
|
+
|
|
77
|
+
`+this.warnStyle+this.h_after+`
|
|
78
|
+
`+this.h_after+`
|
|
79
|
+
`+this.h_after+`
|
|
80
|
+
|
|
81
|
+
`)}static H_warn=e.highlightedWarn;static smallSuccess(t,...n){this.success(this.h_small+`
|
|
82
|
+
`+this.asfel(t,2),...this.asfesop(n,2),`
|
|
83
|
+
`+this.successStyle+this.h_small)}static S_success=e.smallSuccess;static testSuccess(t,...n){this.success(`
|
|
84
|
+
`+this.h_test+`
|
|
85
|
+
|
|
86
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
87
|
+
|
|
88
|
+
`+this.successStyle+this.h_test+`
|
|
89
|
+
`)}static T_success=e.testSuccess;static highlightedSuccess(t,...n){this.success(`
|
|
90
|
+
|
|
91
|
+
`+this.h_before+`
|
|
92
|
+
`+this.h_before+`
|
|
93
|
+
`+this.h_before+`
|
|
94
|
+
|
|
95
|
+
`+this.asfel(t,4),...this.asfesop(n,4),`
|
|
96
|
+
|
|
97
|
+
`+this.successStyle+this.h_after+`
|
|
98
|
+
`+this.h_after+`
|
|
99
|
+
`+this.h_after+`
|
|
100
|
+
|
|
101
|
+
`)}static H_success=e.highlightedSuccess;static removeLogStyles(t){for(let n of le.DyFM_allLogStyles)t=t.replaceAll(n,"");return t}static silenceLogs(){console.log=()=>{}}static silenceNonErrorLogs(){console.log=()=>{},console.info=()=>{},console.warn=()=>{}}static silenceConsole(){console.log=()=>{},console.info=()=>{},console.warn=()=>{},console.error=()=>{}}static addBreaksAndTabsToStringParams(t){return t.map(n=>typeof n=="string"?`
|
|
102
|
+
`+n:n)}static addSpacesForEachLine(t,n){return t.replaceAll(`
|
|
103
|
+
`,`
|
|
104
|
+
`+" ".repeat(n))}static asfel=this.addSpacesForEachLine;static addSpacesForEachStringOptionalParam(t,n){return t.map(r=>typeof r=="string"?this.addSpacesForEachLine(r,n):r)}static asfesop=this.addSpacesForEachStringOptionalParam};jc.DyFM_Log=tv});var CM=h(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DyFM_Array=void 0;var oe=Fs(),se=qt(),nv=class{static asyncForEach(t,n){return we(this,null,function*(){if(!t){console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEach: List is required",[oe.DyFM_LogStyle.red]));return}for(let r=0;r<t.length;r++)yield n(t[r],r,t)})}static asyncForEachReturnToOne(t,n,r){return we(this,null,function*(){if(!n)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEachReturnToOne: List is required",[oe.DyFM_LogStyle.red])),t;let i=t;for(let o=0;o<n.length;o++)i=yield r(n[o],i,o,n);return i})}static asyncForEachReturnToAll(t,n){return we(this,null,function*(){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEachReturnToAll: List is required",[oe.DyFM_LogStyle.red])),[];let r=[];for(let i=0;i<t.length;i++)r.push(yield n(t[i],i,t));return r})}static asyncForEachAllAtOnce(t,n){return we(this,null,function*(){return t?yield Promise.all(t.map(n)):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEachAllAtOnce: List is required",[oe.DyFM_LogStyle.red])),[])})}static asyncFilter(t,n){return we(this,null,function*(){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncFilter: List is required",[oe.DyFM_LogStyle.red])),[];let r=[];for(let i=0;i<t.length;i++)(yield n(t[i],i,t))&&r.push(t[i]);return r})}static asyncMap(t,n){return we(this,null,function*(){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncMap: List is required",[oe.DyFM_LogStyle.red])),[];let r=[];for(let i=0;i<t.length;i++)r.push(yield n(t[i],i,t));return r})}static last(t){return t?t.length?t[t.length-1]:null:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.last: Array is required",[oe.DyFM_LogStyle.red])),null)}static isLast(t,n){return n?n.indexOf(t)===n.length-1:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.isLast: Array is required",[oe.DyFM_LogStyle.red])),!1)}static isLastIndex(t,n){return n?t===n.length-1:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.isLastIndex: Array is required",[oe.DyFM_LogStyle.red])),!1)}static isFirst(t,n){return n?n.indexOf(t)===0:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.isFirst: Array is required",[oe.DyFM_LogStyle.red])),!1)}static lastCharacter(t){return t?t.length?t[t.length-1]:null:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.lastCharacter: String is required",[oe.DyFM_LogStyle.red])),null)}static first(t){return t?t.length?t[0]:null:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.first: Array is required",[oe.DyFM_LogStyle.red])),null)}static remove(t,n){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.remove: Array is required",[oe.DyFM_LogStyle.red])),[];let r=t.indexOf(n);return-1<r&&t.splice(r,1),t}static findNRemove(t,n){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.findNRemove: Array is required",[oe.DyFM_LogStyle.red])),[];let r=t.findIndex(n);return-1<r&&t.splice(r,1),t}static shuffle(t){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.shuffle: Array is required",[oe.DyFM_LogStyle.red])),[];let n=t.length,r;for(;0<n;)n--,r=Math.floor(Math.random()*(t.length-1)),this.swap(t,n,r);return t}static page(t,n,r){return t?t.slice(n*r,(n+1)*r):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.page: Array is required",[oe.DyFM_LogStyle.red])),[])}static paged(t,n,r){return t?{pageIndex:n,pageSize:r,total:t.length,totalPageCount:Math.ceil(t.length/r),items:this.page(t,n,r)}:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.paged: Array is required",[oe.DyFM_LogStyle.red])),{pageIndex:0,pageSize:0,total:0,totalPageCount:0,items:[]})}static swap(t,n,r){return t?([t[n],t[r]]=[t[r],t[n]],t):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.swap: Array is required",[oe.DyFM_LogStyle.red])),[])}static stringListHasMultiplications(t){return t?t.some((n,r)=>t.findIndex(i=>i===n)!==r):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.stringListHasMultiplications: String list is required",[oe.DyFM_LogStyle.red])),!1)}static filterStringMultiplications(t){return t?t.filter((n,r)=>t.findIndex(i=>i===n)!==r):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.filterStringMultiplications: String list is required",[oe.DyFM_LogStyle.red])),[])}static gatherStringMultiplications(t){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.gatherStringMultiplications: String list is required",[oe.DyFM_LogStyle.red])),[];let n=[];return t.forEach((r,i)=>{if(n.find(s=>s.includes(r)))return;let o=t.filter(s=>s===r);o.length>1&&n.push(o)}),n}static haveMultiplications(t,n="_id"){return t?t.some((r,i)=>t.findIndex(o=>o[n]===r[n])!==i):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.haveMultiplications: Data list is required",[oe.DyFM_LogStyle.red])),!1)}static filterMultiplications(t,n="_id"){return t?t.filter((r,i)=>t.findIndex(o=>o[n]===r[n])!==i):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.filterMultiplications: Data list is required",[oe.DyFM_LogStyle.red])),[])}static gatherMultiplications(t,n="_id"){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.gatherMultiplications: Data list is required",[oe.DyFM_LogStyle.red])),[];let r=[];return t.forEach((i,o)=>{if(r.find(a=>a.includes(i)))return;let s=t.filter(a=>a[n]===i[n]);s.length>1&&r.push(s)}),r}static findFromEnd(t,n){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.findFromEnd: Array is required",[oe.DyFM_LogStyle.red])),null;for(let r=t.length-1;r>=0;r--)if(n(t[r],r,t))return t[r];return null}static getSortForTrueFn(t){return(n,r)=>this.sortForTrue(n,r,t)}static sortForTrue(t,n,r){if(!r)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.sortForTrue: Check is required",[oe.DyFM_LogStyle.red])),0;let i=r(t);return i===r(n)?0:i?-1:1}};Lc.DyFM_Array=nv});var rv=h(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.DyFM_Month=void 0;var SM=function(e){return e.january="january",e.february="february",e.march="march",e.april="april",e.may="may",e.june="june",e.july="july",e.august="august",e.september="september",e.october="october",e.november="november",e.december="december",e}(SM||(Vc.DyFM_Month=SM={}))});var iv=h(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.DyFM_allDaysOfWeekStupid=Ct.DyFM_allDaysOfWeekAmericanStyle=Ct.DyFM_allDaysOfWeek=Ct.DyFM_DayOfWeek=void 0;var Ut=function(e){return e.monday="monday",e.tuesday="tuesday",e.wednesday="wednesday",e.thursday="thursday",e.friday="friday",e.saturday="saturday",e.sunday="sunday",e}(Ut||(Ct.DyFM_DayOfWeek=Ut={}));Ct.DyFM_allDaysOfWeek=Object.values(Ut);Ct.DyFM_allDaysOfWeekAmericanStyle=[Ut.sunday,Ut.monday,Ut.tuesday,Ut.wednesday,Ut.thursday,Ut.friday,Ut.saturday];Ct.DyFM_allDaysOfWeekStupid=Ct.DyFM_allDaysOfWeekAmericanStyle});var ov=h(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.DyFM_RelativeDate=void 0;var IM=function(e){return e.lastDay="lastDay",e.lastWeek="lastWeek",e.lastMonth="lastMonth",e.lastYear="lastYear",e.last10Years="last10Years",e.allTime="allTime",e}(IM||(qc.DyFM_RelativeDate=IM={}))});var Rs=h(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.DyFM_Math=void 0;var sv=class{static between(t,n,r){return n<t&&t<r}static around(t,n,r){return this.between(t,n-r,n+r)}static toFixed=this.round;static round(t,n=2){if(0<=n)return Number(t.toFixed(n));{let r=Math.pow(10,-n);return Math.round(t/r)*r}}static numberWithSpaces(t){return t?.toString()?.replace(/\B(?=(\d{3})+(?!\d))/g," ")}static numberWithShorters(t){return t<1e3?t?.toString():t<1e6?(t/1e3).toFixed(1)+"k":t<1e9?(t/1e6).toFixed(2)+"M":(t/1e9).toFixed(3)+"B"}static numberWithShortersAndSpaces(t){return this.numberWithShorters(t)?.replace(/\B(?=(\d{3})+(?!\d))/g," ")}static floatingNumberWithSpaces(t){let n=t?.toString()?.split(".");return n[0]=n?.[0]?.replace(/\B(?=(\d{3})+(?!\d))/g," "),n?.join(".")}static decimals(t,n=","){let r=t?.toString()?.split(".");return r[0]=r?.[0]?.replace(/\B(?=(\d{3})+(?!\d))/g,n),r?.join(".")}};Uc.DyFM_Math=sv});var cv=h($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.DyFM_Time=void 0;var A=Ps(),nt=rv(),av=iv(),Vi=ov(),Ye=Rs(),uv=class{static second=A.second;static minute=A.minute;static hour=A.hour;static day=A.day;static week=A.week;static month=A.month;static year=A.year;static getAge(t){return this.getYear(+new Date-+new Date(t))}static getYear(t){return typeof t=="string"&&(t=new Date(t)),+t/A.year}static getHour(t){return typeof t=="string"&&(t=new Date(t)),+t/A.hour}static getDateByAge(t){return new Date(+new Date-A.year*t)}static getDateByRelativeDate(t,n){switch(t){case Vi.DyFM_RelativeDate.lastDay:return this.oneDayAgo(n);case Vi.DyFM_RelativeDate.lastWeek:return this.oneWeekAgo(n);case Vi.DyFM_RelativeDate.lastMonth:return this.oneMonthAgo(n);case Vi.DyFM_RelativeDate.lastYear:return this.oneYearAgo(n);case Vi.DyFM_RelativeDate.last10Years:return this.tenYearsAgo(n);case Vi.DyFM_RelativeDate.allTime:return new Date(0);default:return new Date(0)}}static oneHourAgo(t=new Date){return new Date(+t-A.hour)}static oneDayAgo(t=new Date){return new Date(+t-A.day)}static oneWeekAgo(t=new Date){return new Date(+t-A.week)}static oneMonthAgo(t=new Date){return new Date(+t-A.month)}static oneYearAgo(t=new Date){return new Date(+t-A.year)}static tenYearsAgo(t=new Date){return new Date(+t-10*A.year)}static getTodayOfWeek(){return av.DyFM_DayOfWeek[new Date().toLocaleString("en-us",{weekday:"long"}).toLocaleLowerCase()]}static getDaysOfWeekFromToday(){let t=this.getTodayOfWeek(),n=Object.values(av.DyFM_DayOfWeek),r=n.indexOf(t);return n.slice(r).concat(n.slice(0,r))}static getDaysOfWeekToToday(){let t=this.getTodayOfWeek(),n=Object.values(av.DyFM_DayOfWeek),r=n.indexOf(t);return n.slice(0,r).reverse().concat(n.slice(r).reverse())}static getCurrentMonth(){return nt.DyFM_Month[new Date().toLocaleString("en-us",{month:"long"}).toLocaleLowerCase()]}static getMonthLength(t,n){switch(t){case nt.DyFM_Month.january:case nt.DyFM_Month.march:case nt.DyFM_Month.may:case nt.DyFM_Month.june:case nt.DyFM_Month.august:case nt.DyFM_Month.october:return 31;case nt.DyFM_Month.april:case nt.DyFM_Month.july:case nt.DyFM_Month.september:case nt.DyFM_Month.november:case nt.DyFM_Month.december:return 30;case nt.DyFM_Month.february:return this.isLeapYear(n??new Date().getFullYear())?29:28}}static isLeapYear(t){return t%4===0}static getDurationString(t,n){if(t===0)return"0ms";if(!t)return"N/A";if(t<A.second/10)return`${t}ms`;if(t<A.second)return`${Ye.DyFM_Math.round(t/A.second,2)}s`;if(t<A.minute){let o=Ye.DyFM_Math.round(t/A.second,0);if(n){let s=t%A.second;return`${o}s ${s}ms`}return`${o}s`}if(t<A.hour){let o=Ye.DyFM_Math.round(t/A.minute,0),s=Ye.DyFM_Math.round(t%A.minute/A.second,0);return`${o}m ${s}s`}if(t<A.day){let o=Ye.DyFM_Math.round(t/A.hour,0),s=Ye.DyFM_Math.round(t%A.hour/A.minute,0);return`${o}h ${s}m`}if(t<A.week){let o=Ye.DyFM_Math.round(t/A.day,0),s=Ye.DyFM_Math.round(t%A.day/A.hour,0);return`${o}d ${s}h`}if(t<A.month){let o=Ye.DyFM_Math.round(t/A.week,0),s=Ye.DyFM_Math.round(t%A.week/A.day,0);return`${o}w ${s}d`}if(t<A.year){let o=Ye.DyFM_Math.round(t/A.month,0),s=Ye.DyFM_Math.round(t%A.month/A.week,0);return`${o}m ${s}w`}let r=Ye.DyFM_Math.round(t/A.year,0),i=Ye.DyFM_Math.round(t%A.year/A.month,0);return`${r}y ${i}m`}static getTimeInShortestString(t){return t%A.year===0?`${t/A.year}y`:t%A.month===0?`${t/A.month}m`:t%A.week===0?`${t/A.week}w`:t%A.day===0?`${t/A.day}d`:t%A.hour===0?`${t/A.hour}h`:t%A.minute===0?`${t/A.minute}m`:t%A.second===0?`${t/A.second}s`:`${t}ms`}};$c.DyFM_Time=uv});var fv=h(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DyFM_Async=void 0;var qe=Ps(),OM=cv(),lv=qt(),dv=class e{static wait(t){return new Promise(n=>setTimeout(n,t))}static sleep=this.wait;static delay=this.wait;static waitUntil(t,n=100,r=1e4){let i=new Error("waitUntil timeout");return new Promise((o,s)=>{let a=Date.now(),u=setInterval(()=>{t()?(clearInterval(u),o()):Date.now()-a>r&&(clearInterval(u),s(i))},n)})}static waitUntilAsync(t,n=100,r=1e4){let i=new Error("waitUntilAsync timeout");return new Promise((o,s)=>{let a=Date.now(),u=setInterval(()=>we(this,null,function*(){(yield t())?(clearInterval(u),o()):Date.now()-a>r&&(clearInterval(u),s(i))}),n)})}static takeUntil(t,n){return new Promise(r=>{let i=t.subscribe(o=>{n(o)&&(i.unsubscribe(),r(o))})})}static waitWithCountdownLogging(t,n="Countdown"){return we(this,null,function*(){let r=Date.now(),i=r+t,s=(c=>{let l=c/qe.second,d=l/60,p=d/60,g=p/24;return g/7>=4?qe.week:g>=7?qe.day:g>=3?12*qe.hour:g>=1?6*qe.hour:p>=12?3*qe.hour:p>=6?qe.hour:p>=3?30*qe.minute:p>=1?10*qe.minute:d>=30?5*qe.minute:d>=10?qe.minute:d>=5?30*qe.second:d>=1?10*qe.second:l>=30?5*qe.second:qe.second})(t),a=r,u=c=>OM.DyFM_Time.getTimeInShortestString(c);for(lv.DyFM_Log.info(`\u23F3 ${n} started - Total duration: ${u(t)}`);Date.now()<i;){let c=Date.now(),l=i-c;if(c-a>=s){let d=u(l);lv.DyFM_Log.info(`\u23F3 ${n} - ${d} remaining`),a=c}yield e.wait(Math.min(OM.DyFM_Time.second,l))}lv.DyFM_Log.success(`\u2705 ${n} completed`)})}};Bc.DyFM_Async=dv});var AM=h(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.DyFM_Data=void 0;var Bn=Km(),Hn=Rs(),hv=class{static kilobyte=Bn.kilobyte;static megabyte=Bn.megabyte;static gigabyte=Bn.gigabyte;static terabyte=Bn.terabyte;static petabyte=Bn.petabyte;static exabyte=Bn.exabyte;static zettabyte=Bn.zettabyte;static yottabyte=Bn.yottabyte;static getSizeString(t,n,r){if(t===0)return"0B";if(!t)return"N/A";let i=t<0,o=Math.abs(t);if(o<this.kilobyte)return`${i?"-":""}${Math.floor(o)}B`;if(o<this.megabyte){let u=o/this.kilobyte;if(r){let l=Math.floor(u),d=o-l*this.kilobyte,p=Math.floor(d),g=i?"-":"";return p>0?`${g}${l}KB ${p}B`:`${g}${l}KB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}KB`;return i?`-${c}`:c}if(o<this.gigabyte){let u=o/this.megabyte;if(r){let l=Math.floor(u),d=o-l*this.megabyte,p=Math.floor(d/this.kilobyte),g=i?"-":"";return p>0?`${g}${l}MB ${p}KB`:`${g}${l}MB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}MB`;return i?`-${c}`:c}if(o<this.terabyte){let u=o/this.gigabyte;if(r){let l=Math.floor(u),d=o-l*this.gigabyte,p=Math.floor(d/this.megabyte),g=i?"-":"";return p>0?`${g}${l}GB ${p}MB`:`${g}${l}GB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}GB`;return i?`-${c}`:c}if(o<this.petabyte){let u=o/this.terabyte;if(r){let l=Math.floor(u),d=o-l*this.terabyte,p=Math.floor(d/this.gigabyte),g=i?"-":"";return p>0?`${g}${l}TB ${p}GB`:`${g}${l}TB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}TB`;return i?`-${c}`:c}if(o<this.exabyte){let u=o/this.petabyte;if(r){let l=Math.floor(u),d=o-l*this.petabyte,p=Math.floor(d/this.terabyte),g=i?"-":"";return p>0?`${g}${l}PB ${p}TB`:`${g}${l}PB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}PB`;return i?`-${c}`:c}if(o<this.zettabyte){let u=o/this.exabyte;if(r){let l=Math.floor(u),d=o-l*this.exabyte,p=Math.floor(d/this.petabyte),g=i?"-":"";return p>0?`${g}${l}EB ${p}PB`:`${g}${l}EB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}EB`;return i?`-${c}`:c}if(o<this.yottabyte){let u=o/this.zettabyte;if(r){let l=Math.floor(u),d=o-l*this.zettabyte,p=Math.floor(d/this.exabyte),g=i?"-":"";return p>0?`${g}${l}ZB ${p}EB`:`${g}${l}ZB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}ZB`;return i?`-${c}`:c}let s=o/this.yottabyte;if(r){let u=Math.floor(s),c=o-u*this.yottabyte,l=Math.floor(c/this.zettabyte),d=i?"-":"";return l>0?`${d}${u}YB ${l}ZB`:`${d}${u}YB`}let a=`${Hn.DyFM_Math.round(s,n??(Number.isInteger(s)?0:2))}YB`;return i?`-${a}`:a}};Hc.DyFM_Data=hv});var gv=h(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.DyFM_JsonErrorHelper=void 0;var pv=class{static extractLineInfoFromJsonError(t,n,r=5){try{let i=t.match(/at position (\d+)/);if(i||(i=t.match(/Unexpected end of JSON input at position (\d+)/)),i||(i=t.match(/position (\d+)/)),!i){let s=t.match(/Unexpected token '(.)'|Unexpected token (.)/);if(s&&n.includes(`
|
|
105
|
+
`)){let a=s[1]||s[2];if(a){let u=n.indexOf(a);if(u!==-1)return this.createLineInfoFromPosition(n,u,r)}}return null}let o=parseInt(i[1],10);return isNaN(o)||o<0||o>n.length?null:this.createLineInfoFromPosition(n,o,r)}catch{return null}}static createLineInfoFromPosition(t,n,r){if(!t||typeof t!="string")return{lineNumber:1,contextLines:["(invalid or empty input)"],characterPosition:0};let i=t.split(`
|
|
106
|
+
`),o=0,s=1,a=0;for(let d=0;d<i.length;d++){let p=i[d].length;if(o+p>=n){s=d+1,a=n-o;break}o+=p+1}a===0&&s===1&&(s=i.length,a=n-o),a<0&&(a=0),s>i.length&&(s=i.length);let u=Math.max(0,s-r-1),c=Math.min(i.length,s+r),l=i.slice(u,c);return{lineNumber:s,contextLines:l,characterPosition:a}}static formatJsonErrorForLogging(t,n){let r=[];r.push(`JSON parsing failed: ${n}`),r.push(`Error at line ${t.lineNumber}, character ${t.characterPosition}:`),r.push(`Context (${t.contextLines.length} lines):`);let i=Math.max(1,t.lineNumber-Math.floor(t.contextLines.length/2));return t.contextLines.forEach((o,s)=>{let a=i+s,u=a===t.lineNumber?">>> ":" ",c=o||"(empty line)";r.push(`${u}${a.toString().padStart(3)}: ${c}`)}),r}static parseJsonWithEnhancedError(t,n,r=2){if(!t||typeof t!="string")throw new Error(`Invalid JSON input: expected string, got ${typeof t}`);try{return JSON.parse(t,n)}catch(i){let o=i instanceof Error?i.message:String(i),s=t,a=this.extractLineInfoFromJsonError(o,s,r);if(!a&&!s.includes(`
|
|
107
|
+
`))try{let u=this.formatJsonForBetterErrors(s);try{JSON.parse(u,n)}catch(c){let l=c instanceof Error?c.message:String(c);a=this.extractLineInfoFromJsonError(l,u,r)}}catch{a=null}if(a){let u=this.formatJsonErrorForLogging(a,o);throw new Error(`JSON parsing failed:
|
|
108
|
+
${u.join(`
|
|
109
|
+
`)}`)}else throw new Error(`JSON parsing failed: ${o}`)}}static formatJsonForBetterErrors(t){return!t||typeof t!="string"?t||"":t.replace(/,/g,`,
|
|
110
|
+
`).replace(/{/g,`{
|
|
111
|
+
`).replace(/}/g,`
|
|
112
|
+
}`).replace(/\[/g,`[
|
|
113
|
+
`).replace(/\]/g,`
|
|
114
|
+
]`).replace(/\n\s*\n/g,`
|
|
115
|
+
`).replace(/^\s+|\s+$/gm,function(n,r,i){if(!i||typeof i!="string")return n;let o=i.slice(0,r).split(`
|
|
116
|
+
`),s=(i.slice(0,r).match(/{|\[/g)||[]).length-(i.slice(0,r).match(/}|\]/g)||[]).length;return" ".repeat(Math.max(0,s))})}};zc.DyFM_JsonErrorHelper=pv});var TM=h(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.DyFM_RoundList=void 0;var mv=class{static getOutboundedIndex(t,n){if(!t)throw new Error("roundListPlusIndex failed. list is empty!");return n<0&&(n=n%t,n=t+n),t<=n&&(n=n%t),n}static getIndexOpposite(t,n){let r=n+Math.round(t/2);return this.getOutboundedIndex(t,r)}static getListIndex(t,n){return t[this.getOutboundedIndex(t.length,n)]}static getListOpposite(t,n){return t[this.getIndexOpposite(t.length,t.indexOf(n))]}static getLast(t){return 0<t.length?t[t.length-1]:null}};Wc.DyFM_RoundList=mv});var yv=h(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.DyFM_StringCase=Ui.DyFM_StringCase_Type=void 0;var qi=function(e){return e.camelCase="camel-case",e.PascalCase="pascal-case",e.kebabCase="kebab-case",e.snake_case="snake-case",e}(qi||(Ui.DyFM_StringCase_Type=qi={})),vv=class{static parseWords(t){if(!t||t.trim().length===0)return[];let r=t.replace(/[\s_\-]+/g," ").replace(/[^a-zA-Z0-9\s]/g," ").trim().split(/\s+/).filter(o=>o.length>0),i=[];for(let o of r){if(o.length===0)continue;let s=[0];for(let a=1;a<o.length;a++){let u=o[a],c=o[a-1],l=a<o.length-1?o[a+1]:"",d=/[A-Z]/.test(u),p=/[a-z]/.test(u),g=/[a-zA-Z]/.test(u),m=/[0-9]/.test(u),v=/[A-Z]/.test(c),y=/[a-z]/.test(c),_=/[0-9]/.test(c),S=/[a-z]/.test(l),N=/[A-Z]/.test(l);if(_&&g)s.push(a);else if(y&&d)s.push(a);else if(d&&v&&S){let P=a-1;for(;P>0&&/[A-Z]/.test(o[P-1]);)P--;a-P>=1&&s.push(a)}else if(v&&p){let P=a-1;for(;P>0&&/[A-Z]/.test(o[P-1]);)P--;a-P>1&&(s.includes(a-1)||s.push(a-1))}}for(let a=0;a<s.length;a++){let u=s[a],c=a<s.length-1?s[a+1]:o.length,l=o.substring(u,c);l.length>0&&i.push(l.toLowerCase())}}return i}static toCamelCase(t){let n=this.parseWords(t);return n.length===0?"":n.map((r,i)=>i===0?r.toLowerCase():r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("")}static toPascalCase(t){let n=this.parseWords(t);return n.length===0?"":n.map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("")}static toKebabCase(t){let n=this.parseWords(t);return n.length===0?"":n.join("-")}static toSnakeCase(t){let n=this.parseWords(t);return n.length===0?"":n.join("_")}static convertTo(t,n){switch(n){case qi.camelCase:return this.toCamelCase(t);case qi.PascalCase:return this.toPascalCase(t);case qi.kebabCase:return this.toKebabCase(t);case qi.snake_case:return this.toSnakeCase(t);default:return t}}static convertToAny(t,n){let r=n.toLowerCase().trim();return r==="camelcase"||r==="camel-case"?this.toCamelCase(t):r==="pascalcase"||r==="pascal-case"?this.toPascalCase(t):r==="kebabcase"||r==="kebab-case"?this.toKebabCase(t):r==="snakecase"||r==="snake-case"||r==="snake_case"?this.toSnakeCase(t):t}static includesIgnoreCase(t,n){if(!t||!n)return!1;let r=[n,this.toCamelCase(n),this.toPascalCase(n),this.toKebabCase(n),this.toSnakeCase(n)],i=this.parseWords(n);if(i.length>1)for(let s=1;s<i.length;s++){let a=i.slice(s).join("");r.push(this.toCamelCase(a)),r.push(this.toKebabCase(a)),r.push(this.toSnakeCase(a))}let o=t.toLowerCase();for(let s of r)if(s&&o.includes(s.toLowerCase()))return!0;return!1}static anyNameToShortCode(t){return!t||t.trim().length===0?"":this.parseWords(t).filter(r=>r.length>0).map(r=>{let i=r.match(/[a-zA-Z]/)?.[0];return i?i.toUpperCase():""}).join("")}};Ui.DyFM_StringCase=vv});var bv=h(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.DyFM_String=void 0;var uL=yv(),_v=class extends uL.DyFM_StringCase{static breakTrim(t){return t.trim().replace(/(\r\n|\n|\r)/gm,"")}static nestedBracketSplit(t,n,r,i=10,o){return this.nestedBracketSplitDetailed(t,n,r,i,o).map(a=>a.content)}static nestedBracketSplitDetailed(t,n,r,i=10,o){let s=[{opening:n,closing:r}];return this.multiBracketSplitDetailed(t,s,i,o)}static multiBracketSplit(t,n,r=10,i){return this.multiBracketSplitDetailed(t,n,r,i).map(s=>s.content)}static multiBracketSplitDetailed(t,n,r=10,i){if(n.length===0)return[{content:t,level:0,brackets:null}];let o=[],s=[{content:t,level:0,brackets:null}];for(let a=0;a<r;a++){let u=[],c=!1;for(let l of s){let d=this.extractMultipleBracketsFromStringDetailed(l.content,n,i);if(d.extracted.length>0){if(c=!0,a===0)o.push({content:d.modified,level:0,brackets:null});else{let p=o.findIndex(g=>g.content===l.content&&g.brackets===l.brackets);p!==-1&&(o[p].content=d.modified)}for(let p of d.extracted)o.push({content:p.content,level:a+1,brackets:p.brackets});for(let p of d.extracted)u.push({content:p.content,level:a+1,brackets:p.brackets??null})}else a===0&&o.push({content:l.content,level:0,brackets:null})}if(!c)break;s=u}return o}static extractMultipleBracketsFromStringDetailed(t,n,r){let i=[],o=r===void 0,s=o?t:"",a=0,u=1,c=[],l=0,d=null,p=m=>{o||(s+=t.substring(l,m))},g=(m,v,y,_)=>{let S=t.substring(l,m);i.push({content:S,level:0,brackets:y}),o||(s+=r??""),l=m+_,c.length=0,d=null};for(;a<t.length;){let m=!1,v=!1,y=0,_=-1,S=-1;for(let P=0;P<n.length;P++){let L=n[P];if(t.substring(a,a+L.opening.length)===L.opening){let R=L.opening.length;if(L.opening===L.closing){let ve=a>0?t[a-1]:null,xt=ve===null||/[\s\(\[\{<]/.test(ve),br=c.some(Eb=>Eb.bracket.opening===L.opening&&Eb.bracket.closing===L.closing);(xt||!br)&&R>y&&(m=!0,v=!0,y=R,_=P,S=P)}else R>y&&(m=!0,v=!0,y=R,_=P)}if(t.substring(a,a+L.closing.length)===L.closing){let R=L.closing.length;if(L.opening===L.closing)c.some(xt=>xt.bracket.opening===L.opening&&xt.bracket.closing===L.closing)&&(R>y||R===y&&S===-1)&&(m=!0,v=!1,y=R,_=P);else{let ve=c.some(br=>br.type===P),xt=!ve&&c.some(br=>br.bracket.opening===L.opening);(ve||xt)&&R>y&&(m=!0,v=!1,y=R,_=P)}}}if(!m){a++;continue}let N=n[_];if(v)c.length===0&&(p(a),l=a+y,d=u),c.push({id:u++,openingIndex:a,type:_,bracket:N}),a+=y;else{let P=-1;for(let R=c.length-1;R>=0;R--)if(c[R].type===_){P=R;break}if(P===-1){for(let R=c.length-1;R>=0;R--)if(c[R].bracket.opening===N.opening){P=R;break}}if(P===-1){a+=y;continue}let L=c.splice(P,1)[0];d!==null&&L.id===d&&g(a,L,N,y),a+=y}}return!o&&l<t.length&&(s+=t.substring(l)),o?{modified:t,extracted:i}:{modified:s,extracted:i}}};Gc.DyFM_String=_v});var Yc=h(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.DyFM_Object=void 0;var $t=qt(),$i=gv(),cL=bv(),Dv=class{static defaultErrorMsg=` failed.
|
|
117
|
+
This might be happening because the object you trying to clone, contains object hooks for its own objects, therefore its creating an object loop. See further information in the detailed error:
|
|
118
|
+
|
|
119
|
+
`;static mapObjList(t,n){let r=[...t];return r=r.map(i=>{let o={};return n.forEach(s=>{o[s[s.length-1]]=this.getNestedData(i,s)}),o}),r}static getNestedData(t,n){let r=this.clone(t);return n.forEach(i=>{r&&(r=r[i])}),r}static nestData(t,n,r){let i=this.clone(t);if(n.length>1){let o=[...n],s=o.shift();i[s]=this.nestData(i[s],o,r)}else i[n[0]]=r;return i}static addToNestedData(t,n,r){let i=this.clone(t);if(n.length>1){let o=[...n],s=o.shift();i[s]=this.addToNestedData(i[s],o,r)}else i[n[0]]+=r;return i}static pushToNestedData(t,n,r){let i=this.clone(t);if(n.length>1){let o=[...n],s=o.shift();i[s]=this.pushToNestedData(i[s],o,r)}else Array.isArray(i[n[0]])?i[n[0]].push(r):i[n[0]]=[r];return i}static nestRecursiveListedData(t,n,r,i){let o=this.clone(t);if(r.length>1){let s=[...r],a=s.shift();o[n][a]=this.nestRecursiveListedData(o[n][a],n,s,i)}else o[n][r[0]]=i;return o}static removeCirculation=this.resolveCirculation;static resolveCirculation(t,n=["ROOT;"+t?.constructor?.name],r=[]){if(!t||typeof t!="object")return t;if(r.includes(t))return"CIRCULATION:"+n.join(".");let i;return Array.isArray(t)?i=[]:i={},Object.keys(t).forEach(o=>{i[o]=this.resolveCirculation(t[o],[...n,o],[...r,t])}),i}static findCirculations(t,n=["ROOT;"+t?.constructor?.name],r=[],i=[]){return!t||typeof t!="object"||(r.includes(t)&&i.push({object:t,pathsOfAllDuplications:n}),Object.keys(t).forEach(o=>{this.findCirculations(t[o],[...n,o],[...r,t],i)})),i}static safeCleanObject(t){try{return this.cleanObject(t)}catch(n){return $t.DyFM_Log.error("Error cleaning object:",n),t}}static cleanObject(t,n=[]){return!t||typeof t!="object"||n.includes(t)||(n.push(t),Object.keys(t).forEach(r=>{t[r]===void 0?delete t[r]:Array.isArray(t[r])?t[r].forEach(i=>{typeof i=="object"&&this.cleanObject(i,n)}):typeof t[r]=="object"&&this.cleanObject(t[r],n)})),t}static mergeObjects(t,n){if(typeof n=="object"){t??={};for(let r in n)n[r]instanceof Object?t[r]=this.mergeObjects(t[r],n[r]):Array.isArray(n[r])?(t[r]??=[],n[r].forEach(i=>{!t[r].includes(i)&&!t[r].some(o=>this.sameObjects(i,o))&&t[r].push(i)})):t[r]=n[r]}return t}static patchObject(t,n){return this.cleanObject(n),this.mergeObjects(t,n)}static safeParseList(t,n){let r=this.safeParseJSON(t,!0);return Array.isArray(r)?r:typeof r=="object"?(n||$t.DyFM_Log.warn("DyFM_Object.safeParseList result is an object, returning its values",{parsed:r}),Object.values(r)):(n||$t.DyFM_Log.warn("DyFM_Object.safeParseList result is not an array or object, returning it as a single item",{parsed:r}),[r])}static safeParseJSON(t,n){try{return this.failableSafeParseJSON(t)}catch(r){return n||$t.DyFM_Log.error("Unable to parse JSON answer:",{unparsedJSON:t,error:r}),{unparsableResult:t}}}static failableSafeParseJSON_old(t){if(!t)throw new Error(`No content provided to JSON parse ("${t}")`);let n=t.match(/```json(.*)```/s),r=t.replaceAll(`
|
|
120
|
+
`,"");return n?$i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(n[1].replaceAll(`
|
|
121
|
+
`,"")):$i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(r.replaceAll("```json","").replaceAll("```",""))}static failableSafeParseJSON(t){if(!t)throw new Error(`No content provided to JSON parse ("${t}")`);if(t.includes("```json")){let n=cL.DyFM_String.multiBracketSplitDetailed(t,[{opening:"```json",closing:"```"},{opening:"{",closing:"}"},{opening:"[",closing:"]"}],1);if(n.length>1&&n[1]&&n[1].brackets?.opening==="```json")return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(n[1].content);if(n.length>0&&n[0])return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(n[0].content);{let r=t.replace(/```json\s*/,"").replace(/\s*```$/,"").trim();return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(r)}}else return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(t.trim())}static clone(t){try{return t&&JSON.parse(JSON.stringify(t))}catch(n){throw $t.DyFM_Log.error("clone()"+this.defaultErrorMsg,n),n}}static copy=this.clone;static surfaceClone(t){try{let n={};return Object.keys(t).forEach(r=>{n[r]=t[r]}),n}catch(n){throw $t.DyFM_Log.error("surfaceClone()"+this.defaultErrorMsg,n),n}}static surfaceCopy=this.surfaceClone;static deepClone(t){try{let n={};return t&&Object.keys(t).forEach(r=>{typeof t[r]=="object"?n[r]=this.deepClone(t[r]):Array.isArray(t[r])?n[r]=t[r].map(i=>this.deepClone(i)):n[r]=t[r]}),n}catch(n){throw $t.DyFM_Log.error("deepClone()"+this.defaultErrorMsg,n),n}}static sameObjects(t,n){try{return JSON.stringify(t)===JSON.stringify(n)}catch(r){throw $t.DyFM_Log.error("sameObjects()"+this.defaultErrorMsg,r),r}}static orderedSameObject(t,n){try{if(typeof t!="object"||typeof n!="object"||Array.isArray(t)||Array.isArray(n)||t===null||n===null||t===void 0||n===void 0)return JSON.stringify(t)===JSON.stringify(n);let r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;r.sort(),i.sort();for(let o=0;o<r.length;o++)if(JSON.stringify(r[o])!==JSON.stringify(i[o]))return!1;return!0}catch(r){throw $t.DyFM_Log.error("orderedSameObject()"+this.defaultErrorMsg,r),r}}static orderedSameObject2(t,n){try{return console.log("using orderedSameObject2"),typeof t!="object"||typeof n!="object"||Array.isArray(t)||Array.isArray(n)||t===null||n===null||t===void 0||n===void 0?JSON.stringify(t)===JSON.stringify(n):JSON.stringify(t,Object.keys(t).sort())===JSON.stringify(n,Object.keys(n).sort())}catch(r){throw $t.DyFM_Log.error("sameObjects()"+this.defaultErrorMsg,r),r}}static sameObjectSurface(t,n){let r=!0;for(let i in t)if(t[i]!==n[i]){r=!1;break}return r}static setExistingValuesOnly(t,n){for(let r in n)n[r]!=null&&(t[r]=n[r])}static JSONListify(t){let n=[];for(let r=0;t[r];r++)n.push(t[r]);return n}static cleanAssign(t,n){return n=this.cleanObject(n),Object.assign(t,n)}static hardParseJSON(t){try{return JSON.parse(t)}catch{try{return this.failableSafeParseJSON(t)}catch{let i=this.safeParseJSON(t);return i.unparsableResult?i.unparsableResult:i}}}};Zc.DyFM_Object=Dv});var Bi=h(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DyFM_getConstructionStackLocation=lL;Jc.DyFM_getLocalStackLocation=dL;var Qc=qt();function lL(e=0){let t=new Error().stack,n=t?.split(`
|
|
122
|
+
`)?.slice(2),r=n?.find(i=>i&&!i.includes("getStackLocation")&&!i.includes("new")&&!i.includes("node_modules")&&!i.includes("node:"));if(isNaN(e))throw new Error("level must be a number");if(e)for(;e;)n=n?.filter(i=>i!==r),e--,r=n?.find(i=>i&&!i.includes("getConstructionStackLocation")&&!i.includes("new")&&!i.includes("node_modules")&&!i.includes("node:"));return!r&&(r=t?.split(" at ")?.find(i=>i&&!i.includes("getConstructionStackLocation")&&!i.includes("new")&&!i.includes("node_modules")&&!i.includes("node:")),!r)?(Qc.DyFM_Log.warn(`No constructor line found (0)
|
|
123
|
+
${typeof t}
|
|
124
|
+
${t?.slice(0,300)?.split(`
|
|
125
|
+
`)+"..."}`,{stack:t}),""):(r?.includes("(")&&(r=r?.split("(")[1]),r?.includes(")")&&(r=r?.split(")")[0]),r||(Qc.DyFM_Log.warn(`No constructor line found (1)
|
|
126
|
+
${typeof t}
|
|
127
|
+
${t?.slice(0,300)?.split(`
|
|
128
|
+
`)+"..."}`,{stack:t}),""))}function dL(e=0){let t=new Error().stack,n=t?.split(`
|
|
129
|
+
`)?.slice(2),r=n?.find(i=>i&&!i.includes("node_modules")&&!i.includes("node:"));if(isNaN(e))throw new Error("level must be a number");if(e)for(;e;)n=n?.filter(i=>i!==r),e--,r=n?.find(i=>i&&!i.includes("node_modules")&&!i.includes("node:"));return!r&&(r=t?.split(" at ")?.find(i=>i&&!i.includes("node_modules")&&!i.includes("node:")),!r)?(Qc.DyFM_Log.warn(`No location line found outside of node_modules or node: (0)
|
|
130
|
+
${typeof t}
|
|
131
|
+
${t?.slice(0,300)?.split(`
|
|
132
|
+
`)+"..."}`,{stack:t}),""):(r?.includes("(")&&(r=r?.split("(")[1]),r?.includes(")")&&(r=r?.split(")")[0]),r||(Qc.DyFM_Log.warn(`No location line found (1)
|
|
133
|
+
${typeof t}
|
|
134
|
+
${t?.slice(0,300)?.split(`
|
|
135
|
+
`)+"..."}`,{stack:t}),""))}});var xM=h(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.DyFM_TypeCloningFacility=void 0;var wv=class{static clone(t,n=[],r=[],i=!1){let o={};for(let s in t)if(i&&console.log("clone DEBUG; key:",s),t&&typeof t=="object"){let a=typeof t[s];if(n.includes(s))continue;if(a==="object"){let u=r?.find(c=>c.id===t[s]);if(u)o[s]=u.clonedObject;else{let c={id:t[s]};r.push(c),Array.isArray(t[s])?c.clonedObject=this.cloneArray(t[s],n,r,i):t[s]?.clone&&typeof t[s]?.clone=="function"?c.clonedObject=t[s].clone():c.clonedObject=this.clone(t[s],n,r,i),o[s]=c.clonedObject}}else o[s]=t[s]}return o}static cloneArray(t,n=[],r=[],i=!1){let o=[];return t.forEach((s,a)=>{i&&console.log("cloneArrayDEBUG; index",a),typeof s=="object"?o.push(this.clone(s,n,r,i)):o.push(s)}),o}static storeCirculation(t){let n=new Map;return JSON.stringify(t,(i,o)=>{if(typeof o=="object"&&o!==null){if(n.has(o))return`__cycle__${n.get(o)}`;n.set(o,n.size)}return o})}static restoreCirculation(t){let n=new Map;return JSON.parse(t,(i,o)=>typeof o=="string"&&o.startsWith("__cycle__")?n.get(parseInt(o.slice(9),10)):(typeof o=="object"&&o!==null&&n.set(n.size,o),o))}};Kc.DyFM_TypeCloningFacility=wv});var ks=h(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.DyFM_BasicProperty_Type=void 0;var NM=function(e){return e.string="string",e.number="number",e.boolean="boolean",e.date="date",e.object="object",e.array="array",e.function="function",e}(NM||(Xc.DyFM_BasicProperty_Type=NM={}))});var Ev=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.DyFM_notNull=fL;el.DyFM_getBasicPropertyType=hL;var Ue=ks();function fL(e){return e!=null}function hL(e){if(!e)throw new Error("Type is missing");switch(e.toLocaleLowerCase()){case Ue.DyFM_BasicProperty_Type.string:case"string":return Ue.DyFM_BasicProperty_Type.string;case Ue.DyFM_BasicProperty_Type.number:case"number":return Ue.DyFM_BasicProperty_Type.number;case Ue.DyFM_BasicProperty_Type.boolean:case"boolean":return Ue.DyFM_BasicProperty_Type.boolean;case Ue.DyFM_BasicProperty_Type.date:case"date":return Ue.DyFM_BasicProperty_Type.date;case Ue.DyFM_BasicProperty_Type.object:case"object":return Ue.DyFM_BasicProperty_Type.object;case Ue.DyFM_BasicProperty_Type.array:case"array":return Ue.DyFM_BasicProperty_Type.array;default:return e.includes("[]")||e.includes("array")?Ue.DyFM_BasicProperty_Type.array:e.includes("=>")||e.includes("function")?Ue.DyFM_BasicProperty_Type.function:Ue.DyFM_BasicProperty_Type.object}}});var PM=h(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.default="ffffffff-ffff-ffff-ffff-ffffffffffff"});var FM=h(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.default="00000000-0000-0000-0000-000000000000"});var RM=h(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});Sv.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i});var js=h(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});var pL=RM();function gL(e){return typeof e=="string"&&pL.default.test(e)}Iv.default=gL});var Ls=h(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var mL=js();function vL(e){if(!(0,mL.default)(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}Ov.default=vL});var pn=h(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.unsafeStringify=void 0;var yL=js(),Me=[];for(let e=0;e<256;++e)Me.push((e+256).toString(16).slice(1));function kM(e,t=0){return(Me[e[t+0]]+Me[e[t+1]]+Me[e[t+2]]+Me[e[t+3]]+"-"+Me[e[t+4]]+Me[e[t+5]]+"-"+Me[e[t+6]]+Me[e[t+7]]+"-"+Me[e[t+8]]+Me[e[t+9]]+"-"+Me[e[t+10]]+Me[e[t+11]]+Me[e[t+12]]+Me[e[t+13]]+Me[e[t+14]]+Me[e[t+15]]).toLowerCase()}Vs.unsafeStringify=kM;function _L(e,t=0){let n=kM(e,t);if(!(0,yL.default)(n))throw TypeError("Stringified UUID is invalid");return n}Vs.default=_L});var tl=h(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var Av,bL=new Uint8Array(16);function DL(){if(!Av){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Av=crypto.getRandomValues.bind(crypto)}return Av(bL)}Tv.default=DL});var xv=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.updateV1State=void 0;var jM=tl(),wL=pn(),qs={};function EL(e,t,n){let r,i=e?._v6??!1;if(e){let o=Object.keys(e);o.length===1&&o[0]==="_v6"&&(e=void 0)}if(e)r=LM(e.random??e.rng?.()??(0,jM.default)(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{let o=Date.now(),s=(0,jM.default)();VM(qs,o,s),r=LM(s,qs.msecs,qs.nsecs,i?void 0:qs.clockseq,i?void 0:qs.node,t,n)}return t??(0,wL.unsafeStringify)(r)}function VM(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=(n[8]<<8|n[9])&16383),e.msecs=t,e}Us.updateV1State=VM;function LM(e,t,n,r,i,o,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!o)o=new Uint8Array(16),s=0;else if(s<0||s+16>o.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);t??=Date.now(),n??=0,r??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16),t+=122192928e5;let a=((t&268435455)*1e4+n)%4294967296;o[s++]=a>>>24&255,o[s++]=a>>>16&255,o[s++]=a>>>8&255,o[s++]=a&255;let u=t/4294967296*1e4&268435455;o[s++]=u>>>8&255,o[s++]=u&255,o[s++]=u>>>24&15|16,o[s++]=u>>>16&255,o[s++]=r>>>8|128,o[s++]=r&255;for(let c=0;c<6;++c)o[s++]=i[c];return o}Us.default=EL});var Pv=h(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var ML=Ls(),CL=pn();function SL(e){let t=typeof e=="string"?(0,ML.default)(e):e,n=IL(t);return typeof e=="string"?(0,CL.unsafeStringify)(n):n}Nv.default=SL;function IL(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}});var UM=h(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});function OL(e){let t=xL(e),n=TL(t,e.length*8);return AL(n)}function AL(e){let t=new Uint8Array(e.length*4);for(let n=0;n<e.length*4;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}function qM(e){return(e+64>>>9<<4)+14+1}function TL(e,t){let n=new Uint32Array(qM(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let r=1732584193,i=-271733879,o=-1732584194,s=271733878;for(let a=0;a<e.length;a+=16){let u=r,c=i,l=o,d=s;r=xe(r,i,o,s,e[a],7,-680876936),s=xe(s,r,i,o,e[a+1],12,-389564586),o=xe(o,s,r,i,e[a+2],17,606105819),i=xe(i,o,s,r,e[a+3],22,-1044525330),r=xe(r,i,o,s,e[a+4],7,-176418897),s=xe(s,r,i,o,e[a+5],12,1200080426),o=xe(o,s,r,i,e[a+6],17,-1473231341),i=xe(i,o,s,r,e[a+7],22,-45705983),r=xe(r,i,o,s,e[a+8],7,1770035416),s=xe(s,r,i,o,e[a+9],12,-1958414417),o=xe(o,s,r,i,e[a+10],17,-42063),i=xe(i,o,s,r,e[a+11],22,-1990404162),r=xe(r,i,o,s,e[a+12],7,1804603682),s=xe(s,r,i,o,e[a+13],12,-40341101),o=xe(o,s,r,i,e[a+14],17,-1502002290),i=xe(i,o,s,r,e[a+15],22,1236535329),r=Ne(r,i,o,s,e[a+1],5,-165796510),s=Ne(s,r,i,o,e[a+6],9,-1069501632),o=Ne(o,s,r,i,e[a+11],14,643717713),i=Ne(i,o,s,r,e[a],20,-373897302),r=Ne(r,i,o,s,e[a+5],5,-701558691),s=Ne(s,r,i,o,e[a+10],9,38016083),o=Ne(o,s,r,i,e[a+15],14,-660478335),i=Ne(i,o,s,r,e[a+4],20,-405537848),r=Ne(r,i,o,s,e[a+9],5,568446438),s=Ne(s,r,i,o,e[a+14],9,-1019803690),o=Ne(o,s,r,i,e[a+3],14,-187363961),i=Ne(i,o,s,r,e[a+8],20,1163531501),r=Ne(r,i,o,s,e[a+13],5,-1444681467),s=Ne(s,r,i,o,e[a+2],9,-51403784),o=Ne(o,s,r,i,e[a+7],14,1735328473),i=Ne(i,o,s,r,e[a+12],20,-1926607734),r=Pe(r,i,o,s,e[a+5],4,-378558),s=Pe(s,r,i,o,e[a+8],11,-2022574463),o=Pe(o,s,r,i,e[a+11],16,1839030562),i=Pe(i,o,s,r,e[a+14],23,-35309556),r=Pe(r,i,o,s,e[a+1],4,-1530992060),s=Pe(s,r,i,o,e[a+4],11,1272893353),o=Pe(o,s,r,i,e[a+7],16,-155497632),i=Pe(i,o,s,r,e[a+10],23,-1094730640),r=Pe(r,i,o,s,e[a+13],4,681279174),s=Pe(s,r,i,o,e[a],11,-358537222),o=Pe(o,s,r,i,e[a+3],16,-722521979),i=Pe(i,o,s,r,e[a+6],23,76029189),r=Pe(r,i,o,s,e[a+9],4,-640364487),s=Pe(s,r,i,o,e[a+12],11,-421815835),o=Pe(o,s,r,i,e[a+15],16,530742520),i=Pe(i,o,s,r,e[a+2],23,-995338651),r=Fe(r,i,o,s,e[a],6,-198630844),s=Fe(s,r,i,o,e[a+7],10,1126891415),o=Fe(o,s,r,i,e[a+14],15,-1416354905),i=Fe(i,o,s,r,e[a+5],21,-57434055),r=Fe(r,i,o,s,e[a+12],6,1700485571),s=Fe(s,r,i,o,e[a+3],10,-1894986606),o=Fe(o,s,r,i,e[a+10],15,-1051523),i=Fe(i,o,s,r,e[a+1],21,-2054922799),r=Fe(r,i,o,s,e[a+8],6,1873313359),s=Fe(s,r,i,o,e[a+15],10,-30611744),o=Fe(o,s,r,i,e[a+6],15,-1560198380),i=Fe(i,o,s,r,e[a+13],21,1309151649),r=Fe(r,i,o,s,e[a+4],6,-145523070),s=Fe(s,r,i,o,e[a+11],10,-1120210379),o=Fe(o,s,r,i,e[a+2],15,718787259),i=Fe(i,o,s,r,e[a+9],21,-343485551),r=zn(r,u),i=zn(i,c),o=zn(o,l),s=zn(s,d)}return Uint32Array.of(r,i,o,s)}function xL(e){if(e.length===0)return new Uint32Array;let t=new Uint32Array(qM(e.length*8)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(e[n]&255)<<n%4*8;return t}function zn(e,t){let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}function NL(e,t){return e<<t|e>>>32-t}function nl(e,t,n,r,i,o){return zn(NL(zn(zn(t,e),zn(r,o)),i),n)}function xe(e,t,n,r,i,o,s){return nl(t&n|~t&r,e,t,i,o,s)}function Ne(e,t,n,r,i,o,s){return nl(t&r|n&~r,e,t,i,o,s)}function Pe(e,t,n,r,i,o,s){return nl(t^n^r,e,t,i,o,s)}function Fe(e,t,n,r,i,o,s){return nl(n^(t|~r),e,t,i,o,s)}Fv.default=OL});var $s=h(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.URL=gn.DNS=gn.stringToBytes=void 0;var $M=Ls(),PL=pn();function BM(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}gn.stringToBytes=BM;gn.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8";gn.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function FL(e,t,n,r,i,o){let s=typeof n=="string"?BM(n):n,a=typeof r=="string"?(0,$M.default)(r):r;if(typeof r=="string"&&(r=(0,$M.default)(r)),r?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+s.length);if(u.set(a),u.set(s,a.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,i){o=o||0;for(let c=0;c<16;++c)i[o+c]=u[c];return i}return(0,PL.unsafeStringify)(u)}gn.default=FL});var zM=h(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.URL=Lr.DNS=void 0;var RL=UM(),Rv=$s(),HM=$s();Object.defineProperty(Lr,"DNS",{enumerable:!0,get:function(){return HM.DNS}});Object.defineProperty(Lr,"URL",{enumerable:!0,get:function(){return HM.URL}});function kv(e,t,n,r){return(0,Rv.default)(48,RL.default,e,t,n,r)}kv.DNS=Rv.DNS;kv.URL=Rv.URL;Lr.default=kv});var WM=h(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});var kL=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);jv.default={randomUUID:kL}});var ZM=h(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});var GM=WM(),jL=tl(),LL=pn();function VL(e,t,n){if(GM.default.randomUUID&&!t&&!e)return GM.default.randomUUID();e=e||{};let r=e.random??e.rng?.()??(0,jL.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return(0,LL.unsafeStringify)(r)}Lv.default=VL});var YM=h(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});function qL(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Vv(e,t){return e<<t|e>>>32-t}function UL(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let a=0;a<o;++a){let u=new Uint32Array(16);for(let c=0;c<16;++c)u[c]=e[a*64+c*4]<<24|e[a*64+c*4+1]<<16|e[a*64+c*4+2]<<8|e[a*64+c*4+3];s[a]=u}s[o-1][14]=(e.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8&4294967295;for(let a=0;a<o;++a){let u=new Uint32Array(80);for(let m=0;m<16;++m)u[m]=s[a][m];for(let m=16;m<80;++m)u[m]=Vv(u[m-3]^u[m-8]^u[m-14]^u[m-16],1);let c=n[0],l=n[1],d=n[2],p=n[3],g=n[4];for(let m=0;m<80;++m){let v=Math.floor(m/20),y=Vv(c,5)+qL(v,l,d,p)+g+t[v]+u[m]>>>0;g=p,p=d,d=Vv(l,30)>>>0,l=c,c=y}n[0]=n[0]+c>>>0,n[1]=n[1]+l>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+p>>>0,n[4]=n[4]+g>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}qv.default=UL});var JM=h(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.URL=Vr.DNS=void 0;var $L=YM(),Uv=$s(),QM=$s();Object.defineProperty(Vr,"DNS",{enumerable:!0,get:function(){return QM.DNS}});Object.defineProperty(Vr,"URL",{enumerable:!0,get:function(){return QM.URL}});function $v(e,t,n,r){return(0,Uv.default)(80,$L.default,e,t,n,r)}$v.DNS=Uv.DNS;$v.URL=Uv.URL;Vr.default=$v});var KM=h(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});var BL=pn(),HL=xv(),zL=Pv();function WL(e,t,n){e??={},n??=0;let r=(0,HL.default)(B(D({},e),{_v6:!0}),new Uint8Array(16));if(r=(0,zL.default)(r),t){for(let i=0;i<16;i++)t[n+i]=r[i];return t}return(0,BL.unsafeStringify)(r)}Bv.default=WL});var XM=h(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});var GL=Ls(),ZL=pn();function YL(e){let t=typeof e=="string"?(0,GL.default)(e):e,n=QL(t);return typeof e=="string"?(0,ZL.unsafeStringify)(n):n}Hv.default=YL;function QL(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}});var rC=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.updateV7State=void 0;var eC=tl(),JL=pn(),zv={};function KL(e,t,n){let r;if(e)r=tC(e.random??e.rng?.()??(0,eC.default)(),e.msecs,e.seq,t,n);else{let i=Date.now(),o=(0,eC.default)();nC(zv,i,o),r=tC(o,zv.msecs,zv.seq,t,n)}return t??(0,JL.unsafeStringify)(r)}function nC(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}Bs.updateV7State=nC;function tC(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}Bs.default=KL});var iC=h(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});var XL=js();function eV(e){if(!(0,XL.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}Wv.default=eV});var oC=h(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.version=J.validate=J.v7=J.v6ToV1=J.v6=J.v5=J.v4=J.v3=J.v1ToV6=J.v1=J.stringify=J.parse=J.NIL=J.MAX=void 0;var tV=PM();Object.defineProperty(J,"MAX",{enumerable:!0,get:function(){return tV.default}});var nV=FM();Object.defineProperty(J,"NIL",{enumerable:!0,get:function(){return nV.default}});var rV=Ls();Object.defineProperty(J,"parse",{enumerable:!0,get:function(){return rV.default}});var iV=pn();Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return iV.default}});var oV=xv();Object.defineProperty(J,"v1",{enumerable:!0,get:function(){return oV.default}});var sV=Pv();Object.defineProperty(J,"v1ToV6",{enumerable:!0,get:function(){return sV.default}});var aV=zM();Object.defineProperty(J,"v3",{enumerable:!0,get:function(){return aV.default}});var uV=ZM();Object.defineProperty(J,"v4",{enumerable:!0,get:function(){return uV.default}});var cV=JM();Object.defineProperty(J,"v5",{enumerable:!0,get:function(){return cV.default}});var lV=KM();Object.defineProperty(J,"v6",{enumerable:!0,get:function(){return lV.default}});var dV=XM();Object.defineProperty(J,"v6ToV1",{enumerable:!0,get:function(){return dV.default}});var fV=rC();Object.defineProperty(J,"v7",{enumerable:!0,get:function(){return fV.default}});var hV=js();Object.defineProperty(J,"validate",{enumerable:!0,get:function(){return hV.default}});var pV=iC();Object.defineProperty(J,"version",{enumerable:!0,get:function(){return pV.default}})});var aC=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.DyFM_UUID=void 0;var gV=(Jm(),Ob(Qm)),sC=gV.__importStar(oC()),Gv=class{static generate(t){let n=sC.v4();if(t)for(;t.includes(n);)n=sC.v4();return n}};rl.DyFM_UUID=Gv});var Yv=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.DyFM_Trigonometry=void 0;var Zv=class{static getClamp(t,n){return n=n!==void 0?n:45,Math.sin(this.angleToRadians(n))*t}static getClampByClampAndHypotenuse(t,n){if(t>n)throw{errorMessage:`getClampByClampAndHypotenuse error hypotenuse is smaller than clamp (a:${t} > c:${n})`};return Math.sqrt(n*n-t*t)}static getHypotenuse(t,n){return n=n!==void 0?n:t,Math.sqrt(t*t+n*n)}static angleToRadians(t){return t*Math.PI/180}static radiansToAngle(t){return t/Math.PI*180}};il.DyFM_Trigonometry=Zv});var Jv=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.DyFM_Vector2_Util=void 0;var uC=Rs(),ol=Yv(),Qv=class e{isVector2Util=!0;_x=0;set x(t){this._x=t,this.calcMagnitude()}get x(){return this._x}_y=0;set y(t){this._y=t,this.calcMagnitude()}get y(){return this._y}_magintude=0;get magintude(){return this._magintude}static zero={x:0,y:0};static up={x:0,y:1};static down={x:0,y:-1};static right={x:1,y:0};static left={x:-1,y:0};constructor(t=0,n){typeof t=="object"&&t.x!==void 0&&t.y!==void 0?(this._x=t.x,this._y=t.y):n===void 0?(this._x=t,this._y=t):(this._x=t,this._y=n),this.calcMagnitude()}constructed(){return!0}static distance(t,n){return this.minus(t,n).magintude}distance(t){return e.distance(this,t)}static minus(t,n){return this.plus(t,this.negative(n))}minus(t){return this.plus(e.negative(t)),this}static plus(t,n){return new e(t.x+n.x,t.y+n.y)}plus(t){return this.newValues(e.plus(this,t)),this}static add=this.plus;add=this.plus;static multiply(t,n){return new e(t.x*n,t.y*n)}multiply(t){return this.newValues(e.multiply(this,t))}static divide(t,n){return new e(t.x/n,t.y/n)}divide(t){return this.newValues(e.divide(this,t)),this}static negative(t){return new e(-t.x,-t.y)}getNegative(){return e.negative(this)}negate(){return this.newValues(e.negative(this)),this}static rebase(t,n,r){return this.plus(t,this.minus(r,n))}rebase(t,n){return this.newValues(e.rebase(this,t,n)),this}static rotate(t,n){let r=ol.DyFM_Trigonometry.angleToRadians(n);return this.rotateRad(t,r)}static rotateRad(t,n){let r=Math.cos(n),i=Math.sin(n),o=t.x*r-t.y*i,s=t.x*i+t.y*r;return new e(o,s)}rotate(t){return this.newValues(e.rotate(this,t)),this}rotateRad(t){return this.newValues(e.rotateRad(this,t)),this}newValues(t){return this.newXY(t.x,t.y),this}newXY(t,n){return this._x=t,this._y=n,this.calcMagnitude(),this}static newValues(t,n){return t.x=n.x,t.y=n.y,t}static newXY=this.newValues;static angle(t,n){return ol.DyFM_Trigonometry.radiansToAngle(e.angleRad(t,n))}static angleRad(t,n){return Math.atan2(n.y-t.y,n.x-t.x)}angle(t,n){return e.angle(t,n)}static deg(t){return ol.DyFM_Trigonometry.radiansToAngle(e.rad(t))}static rad(t){return Math.atan2(t.y,t.x)}deg(){return e.deg(this)}static floor(t){return new e(Math.floor(t.x),Math.floor(t.y))}floor(){return e.floor(this)}static direction(t,n){return e.minus(n,t)}direction(t){return e.direction(this,t)}static normalize(t){let n=new e(t);return n.multiply(1/n.magintude)}normalize(){this.newValues(e.normalize(this))}normalized(){return e.normalize(this)}calcMagnitude(){this._magintude=ol.DyFM_Trigonometry.getHypotenuse(this._x,this._y)}clone(){return new e(this._x,this._y)}static isChanged(t,n){return t.x!==n.x||t.y!==n.y}static isEqual(t,n){return t.x===n.x&&t.y===n.y}static vectorChanged(t,n){return t.x!==n.x||t.y!==n.y}static abs(t){return new e(Math.abs(t.x),Math.abs(t.y))}abs(){return this.newXY(Math.abs(this.x),Math.abs(this.y))}static round(t,n=0){return new e(uC.DyFM_Math.round(t.x,n),uC.DyFM_Math.round(t.y,n))}static toVector2(t){return new e(t).get()}get(){return{x:this.x,y:this.y}}getVector2=this.get;toVector2=this.get;static clone(t){return{x:t.x,y:t.y}}};sl.DyFM_Vector2_Util=Qv});var cC=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.DyFM_BoxBounds_Util=void 0;var Hs=Jv(),Kv=class e{_pos;set pos(t){this._pos.newValues(t),this.calcCenter()}get pos(){return this._pos}_size;set size(t){this._size.newValues(t),this.calcCenter()}get size(){return this._size}_center;get center(){return this._center}_centerMargin;get centerMargin(){return this._centerMargin}constructor(t,n){this._pos=new Hs.DyFM_Vector2_Util(t),this._size=new Hs.DyFM_Vector2_Util(n),this.calcCenter()}constructed(){return!0}newValues(t,n){if(t===void 0)throw new Error("new position is undefined!");if(n===void 0)throw new Error("new size is undefined!");this._pos.newValues(t),this._size.newValues(n),this.calcCenter()}static bounds(t,n){return t.pos.x<=n.x&&n.x<=t.pos.x+t.size.x&&t.pos.y<=n.y&&n.y<=t.pos.y+t.size.y}bounds(t){return e.bounds(this,t)}calcCenter(){let t=Hs.DyFM_Vector2_Util.divide(this.size,2);this._center=Hs.DyFM_Vector2_Util.plus(this.pos,t),this._centerMargin=Hs.DyFM_Vector2_Util.negative(t)}get(){return{pos:this._pos.get(),size:this._size.get(),center:this._center.get(),centerMargin:this._centerMargin.get()}}getBoxBounds=this.get;toBoxBounds=this.get;clone(){return new e(this._pos.clone(),this._size.clone())}};al.DyFM_BoxBounds_Util=Kv});var lC=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.DyFM_Random=void 0;var mV=qt(),Xv=class{static getRandomWeightedInt(t,n,r){r=r.sort((u,c)=>c.chance-u.chance);let i=0;r.forEach(u=>{i+=u.chance}),1<i&&r.forEach(u=>{u.chance=u.chance/i});let o=Math.random(),s,a=0;for(let u=0;u<r.length&&s===void 0;u++)a+=r[u].chance,o<a&&(s=r[u].result);return s!==void 0?s:this.getRandomInt(t,n)}static getRandomInt(t,n){return t+Math.round((n-t)*Math.random())}static getRandomListElement(t){return 0<t.length?t[this.getRandomInt(0,t.length-1)]:null}static getRandomWeighted(t){if(!t?.length)return null;t=t.sort((s,a)=>a.chance-s.chance);let n=0;t.forEach(s=>{n+=s.chance}),t.forEach(s=>{s.chance=s.chance/n});let r=Math.random(),i,o=0;for(let s=0;s<t.length&&i===void 0;s++)o+=t[s].chance,r<o&&(i=t[s].result);return i===void 0?(mV.DyFM_Log.error("DyFM_Random failed to get a random weighted element from the list"),null):i}};ul.DyFM_Random=Xv});var dC=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.DyFM_passwordRegex=void 0;zs.DyFM_getPasswordErrors=vV;zs.DyFM_passwordRegex=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*]){6,}");function vV(e){let t=[];return yV.forEach(n=>{n.regex.test(e)||t.push(n.message)}),t}var yV=[{regex:new RegExp("^(?=.*[a-z])"),code:"pwErrorLowercase",message:"Password must include at least one lowercase letter."},{regex:new RegExp("^(?=.*[A-Z])"),code:"pwErrorUppercase",message:"Password must include at least one uppercase letter."},{regex:new RegExp("^(?=.*[0-9])"),code:"pwErrorDigit",message:"Password must include at least one digit."},{regex:new RegExp("^(?=.*[!@#$%^&*])"),code:"pwErrorSpecialChar",message:"Password must include at least one of the !@#$%^&* characters."},{regex:new RegExp("^(?=.{6,})"),code:"pwErrorLength",message:"Password must be at least 6 characters long."}]});var fC=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.DyFM_emailRegex=void 0;cl.DyFM_emailRegex=new RegExp("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$")});var hC=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.DyFM_usernameRegex=void 0;ll.DyFM_usernameRegex=new RegExp("^[a-zA-Z0-9-_#$%&^|*]{6,}$");var Qoe=[{regex:new RegExp("^(?=.{6,})"),code:"usernameErrorLength"},{regex:new RegExp("^(?=.*[a-zA-Z0-9-_#$%&^|*])"),code:"usernameErrorSpecialChar"}]});var ty=h(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.DyFM_allDataModelTypes=Hi.DyFM_DataModel_Type=void 0;var ey=function(e){return e.data="data-model",e.control="control-model",e.interface="interface",e}(ey||(Hi.DyFM_DataModel_Type=ey={}));Hi.DyFM_allDataModelTypes=Object.values(ey)});var pC=h(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.DyFM_allEnvironmentFlags=zi.DyFM_EnvironmentFlag=void 0;var ny=function(e){return e.local="local",e.dev="dev",e.test="test",e.prod="prod",e}(ny||(zi.DyFM_EnvironmentFlag=ny={}));zi.DyFM_allEnvironmentFlags=Object.values(ny)});var ry=h(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.DyFM_ErrorLevel=void 0;var gC=function(e){return e.user="user",e.debug="debug",e.info="info",e.known="known",e.warning="warning",e.error="error",e.serious="serious",e.critical="critical",e.fatal="fatal",e}(gC||(dl.DyFM_ErrorLevel=gC={}))});var vC=h(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.DyFM_ServerConnection_Status=void 0;var mC=function(e){return e.accessible="accessible",e.unaccessible="unaccessible",e}(mC||(fl.DyFM_ServerConnection_Status=mC={}))});var bC=h(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.DyFM_HttpEncodeType=Wi.DyFM_HttpCallType=void 0;var yC=function(e){return e.get="get",e.post="post",e.put="put",e.patch="patch",e.delete="delete",e.head="head",e.options="options",e.purge="purge",e.link="link",e.unlink="unlink",e}(yC||(Wi.DyFM_HttpCallType=yC={})),_C=function(e){return e.ascii="ascii",e.ansi="ansi",e.binary="binary",e.base64="base64",e.base64url="base64url",e.hex="hex",e.latin1="latin1",e.ucs2="ucs2",e.utf8="utf8",e.utf16le="utf16le",e}(_C||(Wi.DyFM_HttpEncodeType=_C={}))});var wC=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.DyFM_HttpEventType=void 0;var DC=function(e){return e[e.sent=0]="sent",e[e.uploadProgress=1]="uploadProgress",e[e.responseHeader=2]="responseHeader",e[e.downloadProgress=3]="downloadProgress",e[e.response=4]="response",e[e.user=5]="user",e}(DC||(hl.DyFM_HttpEventType=DC={}))});var MC=h(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.DyFM_HttpResponseType=void 0;var EC=function(e){return e.arraybuffer="arraybuffer",e.blob="blob",e.document="document",e.json="json",e.text="text",e.stream="stream",e.formData="formData",e}(EC||(pl.DyFM_HttpResponseType=EC={}))});var Gi=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.DyFM_Metadata=void 0;var iy=class{_id;__created;__createdBy;__lastModified;__lastModifiedBy;__v;_deleted;_deletedBy;_archived;_originalId;constructor(t,n){t&&(!t._id&&t._id!==void 0&&(t._id=void 0),this._id=t._id,this.__created=t.__created,this.__createdBy=t.__createdBy,this.__lastModified=t.__lastModified,this.__lastModifiedBy=t.__lastModifiedBy,this.__v=t.__v,t._archived&&(this._archived=t._archived,this._originalId=t._originalId)),this.__created||(this.__created=new Date),this.__lastModified||(this.__lastModified=new Date),this.__v||(this.__v=0),n&&(!this._id&&n?.id&&(this._id=n.id),n?.issuer&&(this.__createdBy||(this.__createdBy=n.issuer),this.__lastModifiedBy||(this.__lastModifiedBy=n.issuer)))}static updateMetadata(t,n,r){if(!t)return t;if(t._deleted)throw new Error("Cannot update metadata of deleted data");return!t._id&&r&&(t._id=r),t.__created||(t.__created=new Date),t.__createdBy||(t.__createdBy=n),t.__lastModified=new Date,t.__lastModifiedBy=n,t.__v=t.__v?t.__v+1:1,t}};gl.DyFM_Metadata=iy});var sy=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.DyFM_DataProperty_Params=Qi.DyFM_DataProperty_Settings=void 0;var Zi=qt(),Yi=Bi(),Ws=ks(),ml=class{key;type;nonBasicType;default;unique;readonly;required;index;forbidden;dependencyDataName;archiveable;archiveListAfter;vectorizedFrom;embeddingModel;vectorizeAlways;vectorizeUseIndex;minlength;maxlength;subObjectParams;additionalValidators};Qi.DyFM_DataProperty_Settings=ml;var oy=class extends ml{additionalValidators=[];constructor(t,n){super(),t?(!t.type&&!t.forbidden&&Zi.DyFM_Log.error("DYNAMO ERROR: ",`
|
|
136
|
+
type is missing from DynamoNTSDataPropertyParams at "${t.key}" in "${n?.dataName}" model.
|
|
137
|
+
stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.dependencyDataName&&(t.required===!1?Zi.DyFM_Log.warn("DYNAMO WARNING: ",`
|
|
138
|
+
required is not recommended to be false if dependency is set at "${t.key}" in "${n?.dataName}" model.
|
|
139
|
+
stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`):t.required===void 0&&(Zi.DyFM_Log.warn("DYNAMO WARNING: ",`
|
|
140
|
+
required is recommended to be set if dependency is set at "${t.key}" in "${n?.dataName}" model.
|
|
141
|
+
(it is required or it is not a dependency)
|
|
142
|
+
It will be set to true by while you are not setting it.
|
|
143
|
+
stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.required=!0)),t.vectorizedFrom&&(t.index&&(Zi.DyFM_Log.warn("DYNAMO WARNING: ",`
|
|
144
|
+
vectorizedFrom and index are not recommended to be set at the same time at "${t.key}" in "${n?.dataName}" model.
|
|
145
|
+
It will be set to false by while you are not setting it.
|
|
146
|
+
stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.index=!1),t.vectorizeUseIndex||(Zi.DyFM_Log.S_warn("DYNAMO WARNING: ",`
|
|
147
|
+
vectorizeUseIndex is required if vectorizedFrom is set at "${t.key}" in "${n?.dataName}" model. (It will be set to "${t.key}" by default)
|
|
148
|
+
stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.vectorizeUseIndex=t.key)),Object.assign(this,t)):Zi.DyFM_Log.error("DYNAMO ERROR: ",`
|
|
149
|
+
MISSING DynamoNTSDataPropertyParams constructor input at "${this.key}"!
|
|
150
|
+
stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`)}constructed(){return!0}getBEType(){switch(this.type){case Ws.DyFM_BasicProperty_Type.string:return String;case Ws.DyFM_BasicProperty_Type.number:return Number;case Ws.DyFM_BasicProperty_Type.boolean:return Boolean;case Ws.DyFM_BasicProperty_Type.date:return Date;case Ws.DyFM_BasicProperty_Type.object:default:return this.type?.includes("[]")?Array:this.type?.includes("=>")||this.type?.includes("function")?Function:Object}}};Qi.DyFM_DataProperty_Params=oy});var uy=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.DyFM_HttpHeaders=void 0;var ay=class{headers={};normalizedNames;lazyInit;lazyUpdate;constructor(t){t&&(this.headers=t)}};vl.DyFM_HttpHeaders=ay});var ly=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.DyFM_HttpResponseBase=void 0;var _V=uy(),cy=class{headers=new _V.DyFM_HttpHeaders;status=200;statusText="OK";url;ok;type;constructor(t){t&&Object.assign(this,t)}};yl.DyFM_HttpResponseBase=cy});var fy=h(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.DyFM_HttpErrorResponse=Wn.DyFM_httpErrorResponse_name=void 0;var bV=ly();Wn.DyFM_httpErrorResponse_name="HttpErrorResponse";var dy=class extends bV.DyFM_HttpResponseBase{name=Wn.DyFM_httpErrorResponse_name;message;error;ok=!1;constructor(t){super(t),t&&Object.assign(this,t)}static isHttpErrorResponse(t){return t?.name===Wn.DyFM_httpErrorResponse_name}};Wn.DyFM_HttpErrorResponse=dy});var _l=h(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.DyFM_Error=Bt.DyFM_error\u0110FlagParts=Bt.DyFM_errorFlag=void 0;var $e=Xm(),be=qt(),DV=Yc(),wV=Bi(),EV=ry(),CC=Fs(),MV=Gi(),SC=fy();Bt.DyFM_errorFlag="DYNAMO-ERROR-OBJECT";Bt.DyFM_error\u0110FlagParts=["DyNTS-","DyFM-","DyNX_","DyNM_","DyBu_","DyCLI_"];var hy=class e extends MV.DyFM_Metadata{flag=Bt.DyFM_errorFlag+"-v2";_errorCode;_errorCodes=[];_message;_messages=[];__userMessage;__userMessages=[];__userMessageTranslateCode;___handled;___logged;___status;___issuer;___issuerSystem;___issuerService;___systemVersion;error;errors=[];validationErrors;stack;__localStack;level;levelUpThis;additionalContent={};confidentialContent={};constructor(t){super(t,{issuer:t?.issuerService??t?.error?.___issuerService??$e.DyFM_error_defaults.issuerService});try{if(t||(t={}),this.___handled=!!(t.handled??t.error?.___handled),this.___status=t.status??t.error?.___status,this.___issuer=t.issuer??t.error?.___issuer??$e.DyFM_error_defaults.issuer,this.___issuerSystem=t.issuerSystem??t.error?.___issuerSystem??$e.DyFM_error_defaults.issuerSystem,this.___issuerService=t.issuerService??t.error?.___issuerService??$e.DyFM_error_defaults.issuerService,this.___systemVersion=t.systemVersion??t.error?.___systemVersion??$e.DyFM_error_defaults.systemVersion,this.__localStack=t?.__localStack??t.error?.__localStack??(0,wV.DyFM_getLocalStackLocation)(),this.validationErrors=t.validationErrors??t.error?.validationErrors,this.level=t.level??t.error?.level??EV.DyFM_ErrorLevel.error,this.levelUpThis=t.levelUpThis,t.allowCircular=t.allowCircular??t.additionalContent?.allowCircular??t.error?.additionalContent?.allowCircular??!1,t.allowCircular&&(this.additionalContent.allowCircular=!0),t?.error?.___logged&&(this.___logged=!0),!t.allowCircular&&t.additionalContent&&Object.keys(t.additionalContent)?.length)try{JSON.stringify(t.additionalContent)}catch{be.DyFM_Log.error("Internal Dynamo ERROR: additionalContent is not JSON.stringifyable... (it will be removed!)",`
|
|
151
|
+
errorCode:`,t.errorCode),delete t.additionalContent}if(!t.allowCircular&&!t.additionalContent?.allowCircular&&t.error?.additionalContent&&!t.error?.additionalContent?.allowCircular&&Object.keys(t.error?.additionalContent)?.length)try{JSON.stringify(t.error?.additionalContent)}catch{be.DyFM_Log.error("Internal Dynamo ERROR: additionalContent is not JSON.stringifyable... (it will be removed!)",`
|
|
152
|
+
errorCode:`,t.errorCode),delete t.error?.additionalContent}if(t.error?.additionalContent&&Object.assign(this.additionalContent,t.error?.additionalContent),t.additionalContent&&Object.assign(this.additionalContent,t.additionalContent),t.error?.confidentialContent&&Object.assign(this.confidentialContent,t.error?.confidentialContent),t.confidentialContent&&Object.assign(this.confidentialContent,t.confidentialContent),t.errorCode||(t.errorCode=$e.DyFM_error_defaults.errorCode),!t.error){t.error=new Error;let u=t.error.stack?.split(`
|
|
153
|
+
`);u.splice(1,1),t.error.stack=u.join(`
|
|
154
|
+
`)}t?.stack?this.stack=t?.stack:t.error?.stack?this.stack=t.error?.stack:t.error?.name===SC.DyFM_httpErrorResponse_name&&t.error?.error?.stack?this.stack=t.error?.error?.stack:this.stack=new Error().stack;let n=[];t.error?._errorCodes&&n.push(...t.error?._errorCodes??[]),t.errorCode||(t.errorCode=$e.DyFM_error_defaults.errorCode),n=n.filter(u=>u!==t.errorCode),this._errorCodes=[...n,t.errorCode].filter(Boolean);let r=this._errorCodes.filter(u=>u&&u!==$e.DyFM_error_defaults.errorCode&&!Bt.DyFM_error\u0110FlagParts.some(c=>u.includes(c)));this._errorCode=r[0]??this._errorCodes?.[0];let i=this._errorCodes.findIndex(u=>u===r?.[0]);if(!t.message){if(typeof t.error=="string")t.message=t.error;else if(!t.error?.flag?.includes("DYNAMO")&&t.error?.message)t.message=t.error?.message;else if(t.error.stack){let u=t.error.stack?.split(`
|
|
155
|
+
`)?.[1]?.split("\\");u?.[u?.length-1]?t.message=$e.DyFM_error_defaults.message+"; "+u[u.length-1]:t.message=$e.DyFM_error_defaults.message}}let o=[];t.error?._messages?o.push(...t.error?._messages??[]):t.error?.message&&n.push(t.error?.message),o=o.filter(u=>u!==t.message),this._messages=[...o,t.message].filter(Boolean),-1<i&&this._messages[i]&&this._messages[i]!==$e.DyFM_error_defaults.message?this._message=this._messages[i]:this._message=this._messages?.[0];let s=[];t.error?.__userMessages&&s.push(...t.error?.__userMessages??[]),t.userMessage||(t.userMessage=$e.DyFM_error_defaults.userMessage),t.addECToUserMsg&&t.userMessage!==$e.DyFM_error_defaults.userMessage&&t.errorCode&&(t.userMessage+=`
|
|
156
|
+
ErrorCode: ${t.errorCode}`),s=s.filter(u=>u!==t.userMessage),this.__userMessages=[...s,t.userMessage].filter(Boolean),-1<i&&this.__userMessages[i]&&this.__userMessages[i]!==$e.DyFM_error_defaults.userMessage?this.__userMessage=this.__userMessages[i]:this.__userMessage=this.__userMessages.filter(u=>u&&u!==$e.DyFM_error_defaults.userMessage)?.[0],t.userMessageTranslateCode=t.userMessageTranslateCode??t.error?.__userMessageTranslateCode;let a=[];t.error?.errors?.length?a.push(...t.error.errors):typeof t.error?.errors=="object"&&(this.additionalContent.errors=t.error.errors),a=a.filter(u=>u!==t.error),this.errors=[...a,t.error].filter(Boolean),t.errors&&(0<this.errors.length?this.errors.push(...t.errors??[]):this.errors.push(new Error("there are multiple errors. check errors after this one"),...t.errors??[])),this.error=this.errors?.[0],this.errors=this.errors.map(u=>(u?.errors&&(u=D({},u),delete u.errors,delete u.additionalContent),u.error?.errors&&(u.error=D({},u.error),delete u.error.errors,delete u.error.additionalContent),u)),this.errors=this.errors.filter(u=>!!u&&(u instanceof Error||!!Object.keys(u).length)),DV.DyFM_Object.safeCleanObject(this),t.allowCircular||(this.errors=this.errors.filter(u=>{if(u instanceof Error)return!0;try{return JSON.stringify(u),!0}catch{return be.DyFM_Log.error("Internal Dynamo ERROR: error is not JSON.stringifyable... (it will be removed!)",`
|
|
157
|
+
errorCode:`,u?._errorCode),!1}})),t.modestLog&&console.error(this._message??this.__userMessage??this.error),t.log&&console.error(this)}catch(n){be.DyFM_Log.H_error(`Internal Dynamo ERROR: Failed to create DyFM_Error...error:
|
|
158
|
+
`,n,"stack:",new Error().stack,"set:",t)}}getErrorSimplified(){return{errorCode:this._errorCode,message:this._message,userMessage:this.__userMessage,stack:this.stack}}getErrorsFlat(){let t=D({},this);return t.error?.error&&delete t.error.error,t.error?.errors&&delete t.error.errors,t.errors=t.errors.map(n=>t instanceof Error?t:D({},n)),t.errors.forEach(n=>{n.errors&&delete n.errors,n.error?.errors&&delete n.error.errors,n.error?.error&&delete n.error.error,n.additionalContent&&delete n.additionalContent}),t}logShort(t,n,r){if(this.___logged&&!r){be.DyFM_Log.warn(`logShort: already logged (${this._errorCode})`);return}be.DyFM_Log.testError(t,`
|
|
159
|
+
ErrorCode:`,this._errorCode,`
|
|
160
|
+
Message:`,this._message?.replaceAll?.(`
|
|
161
|
+
`,`
|
|
162
|
+
`)),n&&(this.___logged=!0)}warnShort(t,n,r){if(this.___logged&&!r){be.DyFM_Log.warn(`warnShort: already logged (${this._errorCode})`);return}be.DyFM_Log.testWarn(t,`
|
|
163
|
+
ErrorCode:`,this._errorCode,`
|
|
164
|
+
Message:`,this._message?.replaceAll?.(`
|
|
165
|
+
`,`
|
|
166
|
+
`)),n&&(this.___logged=!0)}logSimple(t,n,r,i){if(this.___logged&&!r){be.DyFM_Log.warn(`logSimple: already logged ${t} (${this._message}; ${this._errorCode})`);return}be.DyFM_Log.H_error(t,`
|
|
167
|
+
${be.DyFM_Log.errorStyle}ErrorCode:`,this._errorCode,`
|
|
168
|
+
${be.DyFM_Log.errorStyle}${CC.DyFM_LogStyle.bold}Message:`,this._message?.replaceAll?.(`
|
|
169
|
+
`,`
|
|
170
|
+
`),`
|
|
171
|
+
|
|
172
|
+
${CC.DyFM_LogStyle.reset}${be.DyFM_Log.errorStyle}UserMessage:`,this.__userMessage?.replaceAll?.(`
|
|
173
|
+
`,`
|
|
174
|
+
`),this.__localStack?`
|
|
175
|
+
${be.DyFM_Log.errorStyle}LocalStack:
|
|
176
|
+
`+this.__localStack:"",`
|
|
177
|
+
|
|
178
|
+
${be.DyFM_Log.errorStyle}Stack:`,this.stack?.replaceAll?.(`
|
|
179
|
+
`,`
|
|
180
|
+
`),n&&this.additionalContent?`
|
|
181
|
+
|
|
182
|
+
${be.DyFM_Log.errorStyle}AdditionalContent:
|
|
183
|
+
`+this.additionalContent:""),this.___logged=!0}getParsable(){try{let t=this.getErrorsFlat();return JSON.stringify(t)}catch(t){return be.DyFM_Log.error("Error getting parsable error",t),JSON.stringify(this.getErrorSimplified())}}static logSimple(t,n){n instanceof e?n.logSimple(t):be.DyFM_Log.T_error(t,n)}static getErrorMessage(t){return t?._message??t?.message??t?.error?._message??t?.error?.message}static getAnyMessage(t){return this.getErrorMessage(t)??this.getUserMessage(t)}static getUserMessage(t){return t?.__userMessage??t?.error?.__userMessage??t?.userMessage}static getAnyUserMessage(t){return this.getUserMessage(t)??this.getErrorMessage(t)}static getErrorStatus(t){return t?.___status??t?.status??t?.error?.___status??500}static getErrorCode(t){return t?._errorCode??t?.error?._errorCode??t?.errorCode??t?.error?.errorCode??t?.code??t?.error?.code}static getErrorStack(t){return t?.stack??t?.error?.stack}static isDyFMError(t){return t?.flag?.includes("DYNAMO")}static isAnyDyFMError(t){return this.isDyFMError(t)||t?.name===SC.DyFM_httpErrorResponse_name||t instanceof Error}static deleteErrorContent(t){delete t.confidentialContent,delete t.additionalContent,delete t.error,delete t.errors,delete t.stack}static getStatusText(t){switch(t){case 100:return"Continue";case 101:return"Switching Protocols";case 102:return"Processing";case 103:return"Early Hints";case 200:return"OK";case 201:return"Created";case 202:return"Accepted";case 203:return"Non-Authoritative Information";case 204:return"No Content";case 205:return"Reset Content";case 206:return"Partial Content";case 207:return"Multi-Status";case 208:return"Already Reported";case 226:return"IM Used";case 300:return"Multiple Choices";case 301:return"Moved Permanently";case 302:return"Found";case 303:return"See Other";case 304:return"Not Modified";case 305:return"Use Proxy";case 306:return"Switch Proxy";case 307:return"Temporary Redirect";case 308:return"Permanent Redirect";case 400:return"Bad Request";case 401:return"Unauthorized";case 402:return"Payment Required";case 403:return"Forbidden";case 404:return"Not Found";case 405:return"Method Not Allowed";case 406:return"Not Acceptable";case 407:return"Proxy Authentication Required";case 408:return"Request Timeout";case 409:return"Conflict";case 410:return"Gone";case 411:return"Length Required";case 412:return"Precondition Failed";case 413:return"Payload Too Large";case 414:return"URI Too Long";case 415:return"Unsupported Media Type";case 416:return"Range Not Satisfiable";case 417:return"Expectation Failed";case 418:return"I'm a teapot";case 421:return"Misdirected Request";case 422:return"Unprocessable Entity";case 423:return"Locked";case 424:return"Failed Dependency";case 425:return"Too Early";case 426:return"Upgrade Required";case 428:return"Precondition Required";case 429:return"Too Many Requests";case 431:return"Request Header Fields Too Large";case 451:return"Unavailable For Legal Reasons";case 500:return"Internal Server Error";case 501:return"Not Implemented";case 502:return"Bad Gateway";case 503:return"Service Unavailable";case 504:return"Gateway Timeout";case 505:return"HTTP Version Not Supported";case 506:return"Variant Also Negotiates";case 507:return"Insufficient Storage";case 508:return"Loop Detected";case 510:return"Not Extended";case 511:return"Network Authentication Required";default:return"Unknown"}}};Bt.DyFM_Error=hy});var gy=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.DyFM_DataModel_Params=Ji.DyFM_DataModel_Settings=void 0;var St=qt(),CV=Yc(),SV=Bi(),IC=Ev(),IV=ks(),OC=ty(),OV=Gi(),AV=sy(),TV=_l(),bl=class extends OV.DyFM_Metadata{dataName;modelType;addArchive;forbidModify;forbidDelete;properties};Ji.DyFM_DataModel_Settings=bl;var py=class extends bl{stackLocation;constructor(t){super(t);try{t&&Object.assign(this,t),this.stackLocation=(0,SV.DyFM_getConstructionStackLocation)(),(!this.properties||typeof this.properties!="object")&&(St.DyFM_Log.error(`DyFM_DataModel_Params.constructor: Properties are missing in "${this.dataName}" model.
|
|
184
|
+
stackLocation: ${this.stackLocation}
|
|
185
|
+
`),this.properties={});let n=Object.keys(this.properties);n.forEach(r=>{r||St.DyFM_Log.error(`DyFM_DataModel_Params.constructor: A property key is missing in "${this.dataName}" model.
|
|
186
|
+
stackLocation: ${this.stackLocation}
|
|
187
|
+
`);let i=new AV.DyFM_DataProperty_Params(B(D({},this.properties[r]),{key:r}),this),o=(0,IC.DyFM_getBasicPropertyType)(i.type);o!==i.type&&(i.nonBasicType=i.type,i.type=o),this.properties[r]=i,i.subObjectParams&&this.setKeysForSubObjectParams(i)}),n.forEach(r=>{let i=this.properties[r];i.vectorizedFrom&&(i.vectorizedFrom.forEach(o=>{this.properties[o]||St.DyFM_Log.error(`Vectorized from property "${o}" is not found in "${this.dataName}" model.
|
|
188
|
+
stackLocation: ${this.stackLocation}
|
|
189
|
+
`)}),i.type!==IV.DyFM_BasicProperty_Type.array&&St.DyFM_Log.error(`Vectorized from property "${i.vectorizedFrom}" is not a number[] property in "${this.dataName}" model.
|
|
190
|
+
stackLocation: ${this.stackLocation}
|
|
191
|
+
`),i.nonBasicType!=="number[]"&&St.DyFM_Log.error(`Vectorized from property "${i.vectorizedFrom}" is not a number[] property in "${this.dataName}" model.
|
|
192
|
+
stackLocation: ${this.stackLocation}
|
|
193
|
+
`),i.vectorizeUseIndex||St.DyFM_Log.error(`vectorizeUseIndex is required if vectorizedFrom is set. "${this.dataName}" model.
|
|
194
|
+
stackLocation: ${this.stackLocation}
|
|
195
|
+
`),i.index&&St.DyFM_Log.warn(`index is not recommended to be set for vectorized properties in "${this.dataName}" model.
|
|
196
|
+
(you should set it in the Atlas and vectorizeUseIndex, more info at DyFM_DataProperty_Params.vectorizeUseIndex))
|
|
197
|
+
stackLocation: ${this.stackLocation}
|
|
198
|
+
`))}),(!this?.modelType||this?.modelType==OC.DyFM_DataModel_Type.data)&&(this.modelType=OC.DyFM_DataModel_Type.data),this.dataName||(St.DyFM_Log.error(`DyFM_DataModel_Params.constructor: dataName is missing in "${this.dataName}" model.
|
|
199
|
+
stackLocation: ${this.stackLocation}
|
|
200
|
+
`),this.dataName="UNNAMED_MODEL"),this.dataName.includes("-")&&St.DyFM_Log.warn(`DyFM_DataModel_Params.constructor: dataName should be in snake_case in "${this.dataName}" model.For future compatibility.
|
|
201
|
+
stackLocation: ${this.stackLocation}
|
|
202
|
+
`),CV.DyFM_Object.cleanObject(this)}catch(n){TV.DyFM_Error.logSimple("DyFM_DataModel_Params.constructor error:",n),St.DyFM_Log.warn(`Due to the error, the Params contruction failed, therefore the model is not constructed properly. ("${this.dataName}" model)
|
|
203
|
+
stackLocation: ${this.stackLocation}`)}}constructed(){return!0}setKeysForSubObjectParams(t){t.subObjectParams&&Object.keys(t.subObjectParams).forEach(n=>{n||St.DyFM_Log.error(`DyFM_DataModel_Params.setKeysForSubObjectParams: A subObjectParams key is missing in "${this.dataName}" model.
|
|
204
|
+
stackLocation: ${this.stackLocation}
|
|
205
|
+
`);let r=t.subObjectParams[n];r.key=n;let i=(0,IC.DyFM_getBasicPropertyType)(r.type);i!==r.type&&(r.nonBasicType=r.type,r.type=i),r.subObjectParams&&this.setKeysForSubObjectParams(r)})}};Ji.DyFM_DataModel_Params=py});var ee=h(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.isFunction=void 0;function xV(e){return typeof e=="function"}Dl.isFunction=xV});var Gn=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.createErrorClass=void 0;function NV(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}wl.createErrorClass=NV});var my=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.UnsubscriptionError=void 0;var PV=Gn();El.UnsubscriptionError=PV.createErrorClass(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
206
|
+
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
207
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}})});var mn=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.arrRemove=void 0;function FV(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}Ml.arrRemove=FV});var rt=h(Qe=>{"use strict";var AC=Qe&&Qe.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TC=Qe&&Qe.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},xC=Qe&&Qe.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isSubscription=Qe.EMPTY_SUBSCRIPTION=Qe.Subscription=void 0;var Gs=ee(),vy=my(),NC=mn(),yy=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=AC(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(Gs.isFunction(l))try{l()}catch(v){o=v instanceof vy.UnsubscriptionError?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=AC(d),g=p.next();!g.done;g=p.next()){var m=g.value;try{PC(m)}catch(v){o=o??[],v instanceof vy.UnsubscriptionError?o=xC(xC([],TC(o)),TC(v.errors)):o.push(v)}}}catch(v){r={error:v}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}if(o)throw new vy.UnsubscriptionError(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)PC(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&NC.arrRemove(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&NC.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();Qe.Subscription=yy;Qe.EMPTY_SUBSCRIPTION=yy.EMPTY;function RV(e){return e instanceof yy||e&&"closed"in e&&Gs.isFunction(e.remove)&&Gs.isFunction(e.add)&&Gs.isFunction(e.unsubscribe)}Qe.isSubscription=RV;function PC(e){Gs.isFunction(e)?e():e.unsubscribe()}});var Ki=h(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.config=void 0;Cl.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var _y=h(Ht=>{"use strict";var FC=Ht&&Ht.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},RC=Ht&&Ht.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.timeoutProvider=void 0;Ht.timeoutProvider={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ht.timeoutProvider.delegate;return i?.setTimeout?i.setTimeout.apply(i,RC([e,t],FC(n))):setTimeout.apply(void 0,RC([e,t],FC(n)))},clearTimeout:function(e){var t=Ht.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0}});var by=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.reportUnhandledError=void 0;var kV=Ki(),jV=_y();function LV(e){jV.timeoutProvider.setTimeout(function(){var t=kV.config.onUnhandledError;if(t)t(e);else throw e})}Sl.reportUnhandledError=LV});var Ce=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.noop=void 0;function VV(){}Il.noop=VV});var kC=h(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.createNotification=zt.nextNotification=zt.errorNotification=zt.COMPLETE_NOTIFICATION=void 0;zt.COMPLETE_NOTIFICATION=function(){return Ol("C",void 0,void 0)}();function qV(e){return Ol("E",void 0,e)}zt.errorNotification=qV;function UV(e){return Ol("N",e,void 0)}zt.nextNotification=UV;function Ol(e,t,n){return{kind:e,value:t,error:n}}zt.createNotification=Ol});var Al=h(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.captureError=Xi.errorContext=void 0;var jC=Ki(),qr=null;function $V(e){if(jC.config.useDeprecatedSynchronousErrorHandling){var t=!qr;if(t&&(qr={errorThrown:!1,error:null}),e(),t){var n=qr,r=n.errorThrown,i=n.error;if(qr=null,r)throw i}}else e()}Xi.errorContext=$V;function BV(e){jC.config.useDeprecatedSynchronousErrorHandling&&qr&&(qr.errorThrown=!0,qr.error=e)}Xi.captureError=BV});var eo=h(It=>{"use strict";var qC=It&&It.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(It,"__esModule",{value:!0});It.EMPTY_OBSERVER=It.SafeSubscriber=It.Subscriber=void 0;var HV=ee(),LC=rt(),My=Ki(),zV=by(),VC=Ce(),Dy=kC(),WV=_y(),GV=Al(),UC=function(e){qC(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,LC.isSubscription(n)&&n.add(r)):r.destination=It.EMPTY_OBSERVER,r}return t.create=function(n,r,i){return new $C(n,r,i)},t.prototype.next=function(n){this.isStopped?Ey(Dy.nextNotification(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?Ey(Dy.errorNotification(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?Ey(Dy.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(LC.Subscription);It.Subscriber=UC;var ZV=Function.prototype.bind;function wy(e,t){return ZV.call(e,t)}var YV=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Tl(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Tl(r)}else Tl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Tl(n)}},e}(),$C=function(e){qC(t,e);function t(n,r,i){var o=e.call(this)||this,s;if(HV.isFunction(n)||!n)s={next:n??void 0,error:r??void 0,complete:i??void 0};else{var a;o&&My.config.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},s={next:n.next&&wy(n.next,a),error:n.error&&wy(n.error,a),complete:n.complete&&wy(n.complete,a)}):s=n}return o.destination=new YV(s),o}return t}(UC);It.SafeSubscriber=$C;function Tl(e){My.config.useDeprecatedSynchronousErrorHandling?GV.captureError(e):zV.reportUnhandledError(e)}function QV(e){throw e}function Ey(e,t){var n=My.config.onStoppedNotification;n&&WV.timeoutProvider.setTimeout(function(){return n(e,t)})}It.EMPTY_OBSERVER={closed:!0,next:VC.noop,error:QV,complete:VC.noop}});var Zs=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.observable=void 0;xl.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var Se=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.identity=void 0;function JV(e){return e}Nl.identity=JV});var Ys=h(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.pipeFromArray=to.pipe=void 0;var KV=Se();function XV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return BC(e)}to.pipe=XV;function BC(e){return e.length===0?KV.identity:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}to.pipeFromArray=BC});var ne=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.Observable=void 0;var Sy=eo(),eq=rt(),tq=Zs(),nq=Ys(),rq=Ki(),Cy=ee(),iq=Al(),oq=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=aq(t)?t:new Sy.SafeSubscriber(t,n,r);return iq.errorContext(function(){var s=i,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=HC(n),new n(function(i,o){var s=new Sy.SafeSubscriber({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[tq.observable]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nq.pipeFromArray(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=HC(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();Pl.Observable=oq;function HC(e){var t;return(t=e??rq.config.Promise)!==null&&t!==void 0?t:Promise}function sq(e){return e&&Cy.isFunction(e.next)&&Cy.isFunction(e.error)&&Cy.isFunction(e.complete)}function aq(e){return e&&e instanceof Sy.Subscriber||sq(e)&&eq.isSubscription(e)}});var w=h(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.operate=no.hasLift=void 0;var uq=ee();function zC(e){return uq.isFunction(e?.lift)}no.hasLift=zC;function cq(e){return function(t){if(zC(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}no.operate=cq});var I=h(Zn=>{"use strict";var lq=Zn&&Zn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.OperatorSubscriber=Zn.createOperatorSubscriber=void 0;var dq=eo();function fq(e,t,n,r,i){return new WC(e,t,n,r,i)}Zn.createOperatorSubscriber=fq;var WC=function(e){lq(t,e);function t(n,r,i,o,s,a){var u=e.call(this,n)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=r?function(c){try{r(c)}catch(l){n.error(l)}}:e.prototype._next,u._error=o?function(c){try{o(c)}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(dq.Subscriber);Zn.OperatorSubscriber=WC});var Iy=h(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.refCount=void 0;var hq=w(),pq=I();function gq(){return hq.operate(function(e,t){var n=null;e._refCount++;var r=pq.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}Fl.refCount=gq});var Qs=h(ro=>{"use strict";var mq=ro&&ro.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(ro,"__esModule",{value:!0});ro.ConnectableObservable=void 0;var vq=ne(),GC=rt(),yq=Iy(),_q=I(),bq=w(),Dq=function(e){mq(t,e);function t(n,r){var i=e.call(this)||this;return i.source=n,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,bq.hasLift(n)&&(i.lift=n.lift),i}return t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,n?.unsubscribe()},t.prototype.connect=function(){var n=this,r=this._connection;if(!r){r=this._connection=new GC.Subscription;var i=this.getSubject();r.add(this.source.subscribe(_q.createOperatorSubscriber(i,void 0,function(){n._teardown(),i.complete()},function(o){n._teardown(),i.error(o)},function(){return n._teardown()}))),r.closed&&(this._connection=null,r=GC.Subscription.EMPTY)}return r},t.prototype.refCount=function(){return yq.refCount()(this)},t}(vq.Observable);ro.ConnectableObservable=Dq});var ZC=h(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.performanceTimestampProvider=void 0;Js.performanceTimestampProvider={now:function(){return(Js.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Oy=h(Ot=>{"use strict";var YC=Ot&&Ot.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},QC=Ot&&Ot.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.animationFrameProvider=void 0;var wq=rt();Ot.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=Ot.animationFrameProvider.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t(function(o){n=void 0,e(o)});return new wq.Subscription(function(){return n?.(i)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ot.animationFrameProvider.delegate;return(n?.requestAnimationFrame||requestAnimationFrame).apply(void 0,QC([],YC(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ot.animationFrameProvider.delegate;return(n?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,QC([],YC(e)))},delegate:void 0}});var XC=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.animationFrames=void 0;var Eq=ne(),Mq=ZC(),JC=Oy();function Cq(e){return e?KC(e):Sq}Rl.animationFrames=Cq;function KC(e){return new Eq.Observable(function(t){var n=e||Mq.performanceTimestampProvider,r=n.now(),i=0,o=function(){t.closed||(i=JC.animationFrameProvider.requestAnimationFrame(function(s){i=0;var a=n.now();t.next({timestamp:e?a:s,elapsed:a-r}),o()}))};return o(),function(){i&&JC.animationFrameProvider.cancelAnimationFrame(i)}})}var Sq=KC()});var Ay=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.ObjectUnsubscribedError=void 0;var Iq=Gn();kl.ObjectUnsubscribedError=Iq.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var Ie=h(Wt=>{"use strict";var tS=Wt&&Wt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oq=Wt&&Wt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.AnonymousSubject=Wt.Subject=void 0;var eS=ne(),xy=rt(),Aq=Ay(),Tq=mn(),Ty=Al(),nS=function(e){tS(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Ny(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Aq.ObjectUnsubscribedError},t.prototype.next=function(n){var r=this;Ty.errorContext(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Oq(r.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(n)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Ty.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ty.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?xy.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(n),new xy.Subscription(function(){r.currentObservers=null,Tq.arrRemove(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new eS.Observable;return n.source=this,n},t.create=function(n,r){return new Ny(n,r)},t}(eS.Observable);Wt.Subject=nS;var Ny=function(e){tS(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:xy.EMPTY_SUBSCRIPTION},t}(nS);Wt.AnonymousSubject=Ny});var Py=h(io=>{"use strict";var xq=io&&io.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(io,"__esModule",{value:!0});io.BehaviorSubject=void 0;var Nq=Ie(),Pq=function(e){xq(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,o=n._value;if(r)throw i;return this._throwIfClosed(),o},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Nq.Subject);io.BehaviorSubject=Pq});var jl=h(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.dateTimestampProvider=void 0;Ks.dateTimestampProvider={now:function(){return(Ks.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Ll=h(oo=>{"use strict";var Fq=oo&&oo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(oo,"__esModule",{value:!0});oo.ReplaySubject=void 0;var Rq=Ie(),kq=jl(),jq=function(e){Fq(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=kq.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),u=0;u<a.length&&!n.closed;u+=o?1:2)n.next(a[u]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=i.now(),c=0,l=1;l<o.length&&o[l]<=u;l+=2)c=l;c&&o.splice(0,c+1)}},t}(Rq.Subject);oo.ReplaySubject=jq});var Vl=h(so=>{"use strict";var Lq=so&&so.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(so,"__esModule",{value:!0});so.AsyncSubject=void 0;var Vq=Ie(),qq=function(e){Lq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}return t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r._hasValue,s=r._value,a=r.thrownError,u=r.isStopped,c=r._isComplete;i?n.error(a):(u||c)&&(o&&n.next(s),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var n=this,r=n._hasValue,i=n._value,o=n._isComplete;o||(this._isComplete=!0,r&&e.prototype.next.call(this,i),e.prototype.complete.call(this))},t}(Vq.Subject);so.AsyncSubject=qq});var rS=h(ao=>{"use strict";var Uq=ao&&ao.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(ao,"__esModule",{value:!0});ao.Action=void 0;var $q=rt(),Bq=function(e){Uq(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),this},t}($q.Subscription);ao.Action=Bq});var sS=h(Gt=>{"use strict";var iS=Gt&&Gt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},oS=Gt&&Gt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.intervalProvider=void 0;Gt.intervalProvider={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Gt.intervalProvider.delegate;return i?.setInterval?i.setInterval.apply(i,oS([e,t],iS(n))):setInterval.apply(void 0,oS([e,t],iS(n)))},clearInterval:function(e){var t=Gt.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0}});var co=h(uo=>{"use strict";var Hq=uo&&uo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(uo,"__esModule",{value:!0});uo.AsyncAction=void 0;var zq=rS(),aS=sS(),Wq=mn(),Gq=function(e){Hq(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),aS.intervalProvider.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&aS.intervalProvider.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,o;try{this.work(n)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Wq.arrRemove(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(zq.Action);uo.AsyncAction=Gq});var cS=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.TestTools=lo.Immediate=void 0;var Zq=1,Fy,ql={};function uS(e){return e in ql?(delete ql[e],!0):!1}lo.Immediate={setImmediate:function(e){var t=Zq++;return ql[t]=!0,Fy||(Fy=Promise.resolve()),Fy.then(function(){return uS(t)&&e()}),t},clearImmediate:function(e){uS(e)}};lo.TestTools={pending:function(){return Object.keys(ql).length}}});var dS=h(Zt=>{"use strict";var Yq=Zt&&Zt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Qq=Zt&&Zt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.immediateProvider=void 0;var lS=cS(),Jq=lS.Immediate.setImmediate,Kq=lS.Immediate.clearImmediate;Zt.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Zt.immediateProvider.delegate;return(n?.setImmediate||Jq).apply(void 0,Qq([],Yq(e)))},clearImmediate:function(e){var t=Zt.immediateProvider.delegate;return(t?.clearImmediate||Kq)(e)},delegate:void 0}});var hS=h(fo=>{"use strict";var Xq=fo&&fo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(fo,"__esModule",{value:!0});fo.AsapAction=void 0;var eU=co(),fS=dS(),tU=function(e){Xq(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=fS.immediateProvider.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);var s=n.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(fS.immediateProvider.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},t}(eU.AsyncAction);fo.AsapAction=tU});var Ry=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.Scheduler=void 0;var nU=jl(),rU=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=nU.dateTimestampProvider.now,e}();Ul.Scheduler=rU});var po=h(ho=>{"use strict";var iU=ho&&ho.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(ho,"__esModule",{value:!0});ho.AsyncScheduler=void 0;var pS=Ry(),oU=function(e){iU(t,e);function t(n,r){r===void 0&&(r=pS.Scheduler.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(pS.Scheduler);ho.AsyncScheduler=oU});var gS=h(go=>{"use strict";var sU=go&&go.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(go,"__esModule",{value:!0});go.AsapScheduler=void 0;var aU=po(),uU=function(e){sU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;n=n||i.shift();do if(o=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw o}},t}(aU.AsyncScheduler);go.AsapScheduler=uU});var mS=h(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.asap=Ur.asapScheduler=void 0;var cU=hS(),lU=gS();Ur.asapScheduler=new lU.AsapScheduler(cU.AsapAction);Ur.asap=Ur.asapScheduler});var Je=h($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.async=$r.asyncScheduler=void 0;var dU=co(),fU=po();$r.asyncScheduler=new fU.AsyncScheduler(dU.AsyncAction);$r.async=$r.asyncScheduler});var vS=h(mo=>{"use strict";var hU=mo&&mo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(mo,"__esModule",{value:!0});mo.QueueAction=void 0;var pU=co(),gU=function(e){hU(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,n,r):(this.delay=r,this.state=n,this.scheduler.flush(this),this)},t.prototype.execute=function(n,r){return r>0||this.closed?e.prototype.execute.call(this,n,r):this._execute(n,r)},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.flush(this),0)},t}(pU.AsyncAction);mo.QueueAction=gU});var yS=h(vo=>{"use strict";var mU=vo&&vo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(vo,"__esModule",{value:!0});vo.QueueScheduler=void 0;var vU=po(),yU=function(e){mU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(vU.AsyncScheduler);vo.QueueScheduler=yU});var _S=h(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.queue=Br.queueScheduler=void 0;var _U=vS(),bU=yS();Br.queueScheduler=new bU.QueueScheduler(_U.QueueAction);Br.queue=Br.queueScheduler});var DS=h(yo=>{"use strict";var DU=yo&&yo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(yo,"__esModule",{value:!0});yo.AnimationFrameAction=void 0;var wU=co(),bS=Oy(),EU=function(e){DU(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=bS.animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},t.prototype.recycleAsyncId=function(n,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);var s=n.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(bS.animationFrameProvider.cancelAnimationFrame(r),n._scheduled=void 0)},t}(wU.AsyncAction);yo.AnimationFrameAction=EU});var wS=h(_o=>{"use strict";var MU=_o&&_o.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(_o,"__esModule",{value:!0});_o.AnimationFrameScheduler=void 0;var CU=po(),SU=function(e){MU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;n=n||i.shift();do if(o=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw o}},t}(CU.AsyncScheduler);_o.AnimationFrameScheduler=SU});var ES=h(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.animationFrame=Hr.animationFrameScheduler=void 0;var IU=DS(),OU=wS();Hr.animationFrameScheduler=new OU.AnimationFrameScheduler(IU.AnimationFrameAction);Hr.animationFrame=Hr.animationFrameScheduler});var SS=h(Yn=>{"use strict";var MS=Yn&&Yn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.VirtualAction=Yn.VirtualTimeScheduler=void 0;var AU=co(),TU=rt(),xU=po(),NU=function(e){MS(t,e);function t(n,r){n===void 0&&(n=CS),r===void 0&&(r=1/0);var i=e.call(this,n,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var n=this,r=n.actions,i=n.maxFrames,o,s;(s=r[0])&&s.delay<=i&&(r.shift(),this.frame=s.delay,!(o=s.execute(s.state,s.delay))););if(o){for(;s=r.shift();)s.unsubscribe();throw o}},t.frameTimeFactor=10,t}(xU.AsyncScheduler);Yn.VirtualTimeScheduler=NU;var CS=function(e){MS(t,e);function t(n,r,i){i===void 0&&(i=n.index+=1);var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.index=i,o.active=!0,o.index=n.index=i,o}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}else return TU.Subscription.EMPTY},t.prototype.requestAsyncId=function(n,r,i){i===void 0&&(i=0),this.delay=n.frame+i;var o=n.actions;return o.push(this),o.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,r,i){i===void 0&&(i=0)},t.prototype._execute=function(n,r){if(this.active===!0)return e.prototype._execute.call(this,n,r)},t.sortActions=function(n,r){return n.delay===r.delay?n.index===r.index?0:n.index>r.index?1:-1:n.delay>r.delay?1:-1},t}(AU.AsyncAction);Yn.VirtualAction=CS});var At=h(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.empty=zr.EMPTY=void 0;var IS=ne();zr.EMPTY=new IS.Observable(function(e){return e.complete()});function PU(e){return e?FU(e):zr.EMPTY}zr.empty=PU;function FU(e){return new IS.Observable(function(t){return e.schedule(function(){return t.complete()})})}});var Xs=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.isScheduler=void 0;var RU=ee();function kU(e){return e&&RU.isFunction(e.schedule)}$l.isScheduler=kU});var Ke=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.popNumber=Qn.popScheduler=Qn.popResultSelector=void 0;var jU=ee(),LU=Xs();function ky(e){return e[e.length-1]}function VU(e){return jU.isFunction(ky(e))?e.pop():void 0}Qn.popResultSelector=VU;function qU(e){return LU.isScheduler(ky(e))?e.pop():void 0}Qn.popScheduler=qU;function UU(e,t){return typeof ky(e)=="number"?e.pop():t}Qn.popNumber=UU});var Hl=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isArrayLike=void 0;Bl.isArrayLike=function(e){return e&&typeof e.length=="number"&&typeof e!="function"}});var jy=h(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.isPromise=void 0;var $U=ee();function BU(e){return $U.isFunction(e?.then)}zl.isPromise=BU});var Ly=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.isInteropObservable=void 0;var HU=Zs(),zU=ee();function WU(e){return zU.isFunction(e[HU.observable])}Wl.isInteropObservable=WU});var Vy=h(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.isAsyncIterable=void 0;var GU=ee();function ZU(e){return Symbol.asyncIterator&&GU.isFunction(e?.[Symbol.asyncIterator])}Gl.isAsyncIterable=ZU});var qy=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.createInvalidObservableTypeError=void 0;function YU(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Zl.createInvalidObservableTypeError=YU});var Uy=h(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.iterator=bo.getSymbolIterator=void 0;function OS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}bo.getSymbolIterator=OS;bo.iterator=OS()});var $y=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.isIterable=void 0;var QU=Uy(),JU=ee();function KU(e){return JU.isFunction(e?.[QU.iterator])}Yl.isIterable=KU});var Ql=h(pt=>{"use strict";var XU=pt&&pt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Do=pt&&pt.__await||function(e){return this instanceof Do?(this.v=e,this):new Do(e)},e2=pt&&pt.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(g){return new Promise(function(m,v){o.push([p,g,m,v])>1||a(p,g)})})}function a(p,g){try{u(r[p](g))}catch(m){d(o[0][3],m)}}function u(p){p.value instanceof Do?Promise.resolve(p.value.v).then(c,l):d(o[0][2],p)}function c(p){a("next",p)}function l(p){a("throw",p)}function d(p,g){p(g),o.shift(),o.length&&a(o[0][0],o[0][1])}};Object.defineProperty(pt,"__esModule",{value:!0});pt.isReadableStreamLike=pt.readableStreamLikeToAsyncGenerator=void 0;var t2=ee();function n2(e){return e2(this,arguments,function(){var n,r,i,o;return XU(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Do(n.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,Do(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Do(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}pt.readableStreamLikeToAsyncGenerator=n2;function r2(e){return t2.isFunction(e?.getReader)}pt.isReadableStreamLike=r2});var q=h(ue=>{"use strict";var i2=ue&&ue.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})},o2=ue&&ue.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},s2=ue&&ue.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof By=="function"?By(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}},By=ue&&ue.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ue,"__esModule",{value:!0});ue.fromReadableStreamLike=ue.fromAsyncIterable=ue.fromIterable=ue.fromPromise=ue.fromArrayLike=ue.fromInteropObservable=ue.innerFrom=void 0;var a2=Hl(),u2=jy(),wo=ne(),c2=Ly(),l2=Vy(),d2=qy(),f2=$y(),AS=Ql(),h2=ee(),p2=by(),g2=Zs();function m2(e){if(e instanceof wo.Observable)return e;if(e!=null){if(c2.isInteropObservable(e))return TS(e);if(a2.isArrayLike(e))return xS(e);if(u2.isPromise(e))return NS(e);if(l2.isAsyncIterable(e))return Hy(e);if(f2.isIterable(e))return PS(e);if(AS.isReadableStreamLike(e))return FS(e)}throw d2.createInvalidObservableTypeError(e)}ue.innerFrom=m2;function TS(e){return new wo.Observable(function(t){var n=e[g2.observable]();if(h2.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}ue.fromInteropObservable=TS;function xS(e){return new wo.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}ue.fromArrayLike=xS;function NS(e){return new wo.Observable(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,p2.reportUnhandledError)})}ue.fromPromise=NS;function PS(e){return new wo.Observable(function(t){var n,r;try{for(var i=By(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}ue.fromIterable=PS;function Hy(e){return new wo.Observable(function(t){v2(e,t).catch(function(n){return t.error(n)})})}ue.fromAsyncIterable=Hy;function FS(e){return Hy(AS.readableStreamLikeToAsyncGenerator(e))}ue.fromReadableStreamLike=FS;function v2(e,t){var n,r,i,o;return i2(this,void 0,void 0,function(){var s,a;return o2(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=s2(e),u.label=1;case 1:return[4,n.next()];case 2:if(r=u.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),i={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}});var vn=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.executeSchedule=void 0;function y2(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}Jl.executeSchedule=y2});var ea=h(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.observeOn=void 0;var zy=vn(),_2=w(),b2=I();function D2(e,t){return t===void 0&&(t=0),_2.operate(function(n,r){n.subscribe(b2.createOperatorSubscriber(r,function(i){return zy.executeSchedule(r,e,function(){return r.next(i)},t)},function(){return zy.executeSchedule(r,e,function(){return r.complete()},t)},function(i){return zy.executeSchedule(r,e,function(){return r.error(i)},t)}))})}Kl.observeOn=D2});var ta=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.subscribeOn=void 0;var w2=w();function E2(e,t){return t===void 0&&(t=0),w2.operate(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}Xl.subscribeOn=E2});var RS=h(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.scheduleObservable=void 0;var M2=q(),C2=ea(),S2=ta();function I2(e,t){return M2.innerFrom(e).pipe(S2.subscribeOn(t),C2.observeOn(t))}ed.scheduleObservable=I2});var kS=h(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.schedulePromise=void 0;var O2=q(),A2=ea(),T2=ta();function x2(e,t){return O2.innerFrom(e).pipe(T2.subscribeOn(t),A2.observeOn(t))}td.schedulePromise=x2});var jS=h(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.scheduleArray=void 0;var N2=ne();function P2(e,t){return new N2.Observable(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}nd.scheduleArray=P2});var Wy=h(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.scheduleIterable=void 0;var F2=ne(),R2=Uy(),k2=ee(),LS=vn();function j2(e,t){return new F2.Observable(function(n){var r;return LS.executeSchedule(n,t,function(){r=e[R2.iterator](),LS.executeSchedule(n,t,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(a){n.error(a);return}s?n.complete():n.next(o)},0,!0)}),function(){return k2.isFunction(r?.return)&&r.return()}})}rd.scheduleIterable=j2});var Gy=h(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.scheduleAsyncIterable=void 0;var L2=ne(),VS=vn();function V2(e,t){if(!e)throw new Error("Iterable cannot be null");return new L2.Observable(function(n){VS.executeSchedule(n,t,function(){var r=e[Symbol.asyncIterator]();VS.executeSchedule(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}id.scheduleAsyncIterable=V2});var qS=h(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.scheduleReadableStreamLike=void 0;var q2=Gy(),U2=Ql();function $2(e,t){return q2.scheduleAsyncIterable(U2.readableStreamLikeToAsyncGenerator(e),t)}od.scheduleReadableStreamLike=$2});var Zy=h(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.scheduled=void 0;var B2=RS(),H2=kS(),z2=jS(),W2=Wy(),G2=Gy(),Z2=Ly(),Y2=jy(),Q2=Hl(),J2=$y(),K2=Vy(),X2=qy(),e$=Ql(),t$=qS();function n$(e,t){if(e!=null){if(Z2.isInteropObservable(e))return B2.scheduleObservable(e,t);if(Q2.isArrayLike(e))return z2.scheduleArray(e,t);if(Y2.isPromise(e))return H2.schedulePromise(e,t);if(K2.isAsyncIterable(e))return G2.scheduleAsyncIterable(e,t);if(J2.isIterable(e))return W2.scheduleIterable(e,t);if(e$.isReadableStreamLike(e))return t$.scheduleReadableStreamLike(e,t)}throw X2.createInvalidObservableTypeError(e)}sd.scheduled=n$});var yn=h(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.from=void 0;var r$=Zy(),i$=q();function o$(e,t){return t?r$.scheduled(e,t):i$.innerFrom(e)}ad.from=o$});var cd=h(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.of=void 0;var s$=Ke(),a$=yn();function u$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s$.popScheduler(e);return a$.from(e,n)}ud.of=u$});var Yy=h(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.throwError=void 0;var c$=ne(),l$=ee();function d$(e,t){var n=l$.isFunction(e)?e:function(){return e},r=function(i){return i.error(n())};return new c$.Observable(t?function(i){return t.schedule(r,0,i)}:r)}ld.throwError=d$});var dd=h(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.observeNotification=_n.Notification=_n.NotificationKind=void 0;var f$=At(),h$=cd(),p$=Yy(),g$=ee(),m$;(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(m$=_n.NotificationKind||(_n.NotificationKind={}));var v$=function(){function e(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}return e.prototype.observe=function(t){return US(this,t)},e.prototype.do=function(t,n,r){var i=this,o=i.kind,s=i.value,a=i.error;return o==="N"?t?.(s):o==="E"?n?.(a):r?.()},e.prototype.accept=function(t,n,r){var i;return g$.isFunction((i=t)===null||i===void 0?void 0:i.next)?this.observe(t):this.do(t,n,r)},e.prototype.toObservable=function(){var t=this,n=t.kind,r=t.value,i=t.error,o=n==="N"?h$.of(r):n==="E"?p$.throwError(function(){return i}):n==="C"?f$.EMPTY:0;if(!o)throw new TypeError("Unexpected notification kind "+n);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();_n.Notification=v$;function US(e,t){var n,r,i,o=e,s=o.kind,a=o.value,u=o.error;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(n=t.next)===null||n===void 0||n.call(t,a):s==="E"?(r=t.error)===null||r===void 0||r.call(t,u):(i=t.complete)===null||i===void 0||i.call(t)}_n.observeNotification=US});var BS=h(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.isObservable=void 0;var y$=ne(),$S=ee();function _$(e){return!!e&&(e instanceof y$.Observable||$S.isFunction(e.lift)&&$S.isFunction(e.subscribe))}fd.isObservable=_$});var Jn=h(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.EmptyError=void 0;var b$=Gn();hd.EmptyError=b$.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})});var HS=h(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.lastValueFrom=void 0;var D$=Jn();function w$(e,t){var n=typeof t=="object";return new Promise(function(r,i){var o=!1,s;e.subscribe({next:function(a){s=a,o=!0},error:i,complete:function(){o?r(s):n?r(t.defaultValue):i(new D$.EmptyError)}})})}pd.lastValueFrom=w$});var zS=h(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.firstValueFrom=void 0;var E$=Jn(),M$=eo();function C$(e,t){var n=typeof t=="object";return new Promise(function(r,i){var o=new M$.SafeSubscriber({next:function(s){r(s),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new E$.EmptyError)}});e.subscribe(o)})}gd.firstValueFrom=C$});var Qy=h(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.ArgumentOutOfRangeError=void 0;var S$=Gn();md.ArgumentOutOfRangeError=S$.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Jy=h(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.NotFoundError=void 0;var I$=Gn();vd.NotFoundError=I$.createErrorClass(function(e){return function(n){e(this),this.name="NotFoundError",this.message=n}})});var Ky=h(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.SequenceError=void 0;var O$=Gn();yd.SequenceError=O$.createErrorClass(function(e){return function(n){e(this),this.name="SequenceError",this.message=n}})});var bd=h(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.isValidDate=void 0;function A$(e){return e instanceof Date&&!isNaN(e)}_d.isValidDate=A$});var Dd=h(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.timeout=Wr.TimeoutError=void 0;var T$=Je(),x$=bd(),N$=w(),P$=q(),F$=Gn(),R$=I(),k$=vn();Wr.TimeoutError=F$.createErrorClass(function(e){return function(n){n===void 0&&(n=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function j$(e,t){var n=x$.isValidDate(e)?{first:e}:typeof e=="number"?{each:e}:e,r=n.first,i=n.each,o=n.with,s=o===void 0?L$:o,a=n.scheduler,u=a===void 0?t??T$.asyncScheduler:a,c=n.meta,l=c===void 0?null:c;if(r==null&&i==null)throw new TypeError("No timeout provided.");return N$.operate(function(d,p){var g,m,v=null,y=0,_=function(S){m=k$.executeSchedule(p,u,function(){try{g.unsubscribe(),P$.innerFrom(s({meta:l,lastValue:v,seen:y})).subscribe(p)}catch(N){p.error(N)}},S)};g=d.subscribe(R$.createOperatorSubscriber(p,function(S){m?.unsubscribe(),y++,p.next(v=S),i>0&&_(i)},void 0,void 0,function(){m?.closed||m?.unsubscribe(),v=null})),!y&&_(r!=null?typeof r=="number"?r:+r-u.now():i)})}Wr.timeout=j$;function L$(e){throw new Wr.TimeoutError(e)}});var Kn=h(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.map=void 0;var V$=w(),q$=I();function U$(e,t){return V$.operate(function(n,r){var i=0;n.subscribe(q$.createOperatorSubscriber(r,function(o){r.next(e.call(t,o,i++))}))})}wd.map=U$});var er=h(Xn=>{"use strict";var $$=Xn&&Xn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},B$=Xn&&Xn.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.mapOneOrManyArgs=void 0;var H$=Kn(),z$=Array.isArray;function W$(e,t){return z$(t)?e.apply(void 0,B$([],$$(t))):e(t)}function G$(e){return H$.map(function(t){return W$(e,t)})}Xn.mapOneOrManyArgs=G$});var e_=h(tr=>{"use strict";var Z$=tr&&tr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},WS=tr&&tr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(tr,"__esModule",{value:!0});tr.bindCallbackInternals=void 0;var Y$=Xs(),Q$=ne(),J$=ta(),K$=er(),X$=ea(),eB=Vl();function Xy(e,t,n,r){if(n)if(Y$.isScheduler(n))r=n;else return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Xy(e,t,r).apply(this,i).pipe(K$.mapOneOrManyArgs(n))};return r?function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Xy(e,t).apply(this,i).pipe(J$.subscribeOn(r),X$.observeOn(r))}:function(){for(var i=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new eB.AsyncSubject,u=!0;return new Q$.Observable(function(c){var l=a.subscribe(c);if(u){u=!1;var d=!1,p=!1;t.apply(i,WS(WS([],Z$(o)),[function(){for(var g=[],m=0;m<arguments.length;m++)g[m]=arguments[m];if(e){var v=g.shift();if(v!=null){a.error(v);return}}a.next(1<g.length?g:g[0]),p=!0,d&&a.complete()}])),p&&a.complete(),d=!0}return l})}}tr.bindCallbackInternals=Xy});var GS=h(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.bindCallback=void 0;var tB=e_();function nB(e,t,n){return tB.bindCallbackInternals(!1,e,t,n)}Ed.bindCallback=nB});var ZS=h(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.bindNodeCallback=void 0;var rB=e_();function iB(e,t,n){return rB.bindCallbackInternals(!0,e,t,n)}Md.bindNodeCallback=iB});var t_=h(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.argsArgArrayOrObject=void 0;var oB=Array.isArray,sB=Object.getPrototypeOf,aB=Object.prototype,uB=Object.keys;function cB(e){if(e.length===1){var t=e[0];if(oB(t))return{args:t,keys:null};if(lB(t)){var n=uB(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}Cd.argsArgArrayOrObject=cB;function lB(e){return e&&typeof e=="object"&&sB(e)===aB}});var n_=h(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.createObject=void 0;function dB(e,t){return e.reduce(function(n,r,i){return n[r]=t[i],n},{})}Sd.createObject=dB});var Id=h(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.combineLatestInit=Eo.combineLatest=void 0;var fB=ne(),hB=t_(),JS=yn(),KS=Se(),pB=er(),YS=Ke(),gB=n_(),mB=I(),vB=vn();function yB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=YS.popScheduler(e),r=YS.popResultSelector(e),i=hB.argsArgArrayOrObject(e),o=i.args,s=i.keys;if(o.length===0)return JS.from([],n);var a=new fB.Observable(XS(o,n,s?function(u){return gB.createObject(s,u)}:KS.identity));return r?a.pipe(pB.mapOneOrManyArgs(r)):a}Eo.combineLatest=yB;function XS(e,t,n){return n===void 0&&(n=KS.identity),function(r){QS(t,function(){for(var i=e.length,o=new Array(i),s=i,a=i,u=function(l){QS(t,function(){var d=JS.from(e[l],t),p=!1;d.subscribe(mB.createOperatorSubscriber(r,function(g){o[l]=g,p||(p=!0,a--),a||r.next(n(o.slice()))},function(){--s||r.complete()}))},r)},c=0;c<i;c++)u(c)},r)}}Eo.combineLatestInit=XS;function QS(e,t,n){e?vB.executeSchedule(n,e,t):t()}});var Ad=h(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.mergeInternals=void 0;var _B=q(),bB=vn(),eI=I();function DB(e,t,n,r,i,o,s,a){var u=[],c=0,l=0,d=!1,p=function(){d&&!u.length&&!c&&t.complete()},g=function(v){return c<r?m(v):u.push(v)},m=function(v){o&&t.next(v),c++;var y=!1;_B.innerFrom(n(v,l++)).subscribe(eI.createOperatorSubscriber(t,function(_){i?.(_),o?g(_):t.next(_)},function(){y=!0},void 0,function(){if(y)try{c--;for(var _=function(){var S=u.shift();s?bB.executeSchedule(t,s,function(){return m(S)}):m(S)};u.length&&c<r;)_();p()}catch(S){t.error(S)}}))};return e.subscribe(eI.createOperatorSubscriber(t,g,function(){d=!0,p()})),function(){a?.()}}Od.mergeInternals=DB});var bn=h(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.mergeMap=void 0;var wB=Kn(),EB=q(),MB=w(),CB=Ad(),SB=ee();function tI(e,t,n){return n===void 0&&(n=1/0),SB.isFunction(t)?tI(function(r,i){return wB.map(function(o,s){return t(r,o,i,s)})(EB.innerFrom(e(r,i)))},n):(typeof t=="number"&&(n=t),MB.operate(function(r,i){return CB.mergeInternals(r,i,e,n)}))}Td.mergeMap=tI});var na=h(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.mergeAll=void 0;var IB=bn(),OB=Se();function AB(e){return e===void 0&&(e=1/0),IB.mergeMap(OB.identity,e)}xd.mergeAll=AB});var Pd=h(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.concatAll=void 0;var TB=na();function xB(){return TB.mergeAll(1)}Nd.concatAll=xB});var ra=h(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.concat=void 0;var NB=Pd(),PB=Ke(),FB=yn();function RB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return NB.concatAll()(FB.from(e,PB.popScheduler(e)))}Fd.concat=RB});var ia=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.defer=void 0;var kB=ne(),jB=q();function LB(e){return new kB.Observable(function(t){jB.innerFrom(e()).subscribe(t)})}Rd.defer=LB});var nI=h(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.connectable=void 0;var VB=Ie(),qB=ne(),UB=ia(),$B={connector:function(){return new VB.Subject},resetOnDisconnect:!0};function BB(e,t){t===void 0&&(t=$B);var n=null,r=t.connector,i=t.resetOnDisconnect,o=i===void 0?!0:i,s=r(),a=new qB.Observable(function(u){return s.subscribe(u)});return a.connect=function(){return(!n||n.closed)&&(n=UB.defer(function(){return e}).subscribe(s),o&&n.add(function(){return s=r()})),n},a}kd.connectable=BB});var rI=h(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.forkJoin=void 0;var HB=ne(),zB=t_(),WB=q(),GB=Ke(),ZB=I(),YB=er(),QB=n_();function JB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=GB.popResultSelector(e),r=zB.argsArgArrayOrObject(e),i=r.args,o=r.keys,s=new HB.Observable(function(a){var u=i.length;if(!u){a.complete();return}for(var c=new Array(u),l=u,d=u,p=function(m){var v=!1;WB.innerFrom(i[m]).subscribe(ZB.createOperatorSubscriber(a,function(y){v||(v=!0,d--),c[m]=y},function(){return l--},void 0,function(){(!l||!v)&&(d||a.next(o?QB.createObject(o,c):c),a.complete())}))},g=0;g<u;g++)p(g)});return n?s.pipe(YB.mapOneOrManyArgs(n)):s}jd.forkJoin=JB});var oI=h(Mo=>{"use strict";var KB=Mo&&Mo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.fromEvent=void 0;var XB=q(),eH=ne(),tH=bn(),nH=Hl(),Gr=ee(),rH=er(),iH=["addListener","removeListener"],oH=["addEventListener","removeEventListener"],sH=["on","off"];function r_(e,t,n,r){if(Gr.isFunction(n)&&(r=n,n=void 0),r)return r_(e,t,n).pipe(rH.mapOneOrManyArgs(r));var i=KB(cH(e)?oH.map(function(a){return function(u){return e[a](t,u,n)}}):aH(e)?iH.map(iI(e,t)):uH(e)?sH.map(iI(e,t)):[],2),o=i[0],s=i[1];if(!o&&nH.isArrayLike(e))return tH.mergeMap(function(a){return r_(a,t,n)})(XB.innerFrom(e));if(!o)throw new TypeError("Invalid event target");return new eH.Observable(function(a){var u=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return a.next(1<c.length?c:c[0])};return o(u),function(){return s(u)}})}Mo.fromEvent=r_;function iI(e,t){return function(n){return function(r){return e[n](t,r)}}}function aH(e){return Gr.isFunction(e.addListener)&&Gr.isFunction(e.removeListener)}function uH(e){return Gr.isFunction(e.on)&&Gr.isFunction(e.off)}function cH(e){return Gr.isFunction(e.addEventListener)&&Gr.isFunction(e.removeEventListener)}});var aI=h(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.fromEventPattern=void 0;var lH=ne(),dH=ee(),fH=er();function sI(e,t,n){return n?sI(e,t).pipe(fH.mapOneOrManyArgs(n)):new lH.Observable(function(r){var i=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r.next(s.length===1?s[0]:s)},o=e(i);return dH.isFunction(t)?function(){return t(i,o)}:void 0})}Ld.fromEventPattern=sI});var cI=h(Co=>{"use strict";var hH=Co&&Co.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Co,"__esModule",{value:!0});Co.generate=void 0;var uI=Se(),pH=Xs(),gH=ia(),mH=Wy();function vH(e,t,n,r,i){var o,s,a,u;arguments.length===1?(o=e,u=o.initialState,t=o.condition,n=o.iterate,s=o.resultSelector,a=s===void 0?uI.identity:s,i=o.scheduler):(u=e,!r||pH.isScheduler(r)?(a=uI.identity,i=r):a=r);function c(){var l;return hH(this,function(d){switch(d.label){case 0:l=u,d.label=1;case 1:return!t||t(l)?[4,a(l)]:[3,4];case 2:d.sent(),d.label=3;case 3:return l=n(l),[3,1];case 4:return[2]}})}return gH.defer(i?function(){return mH.scheduleIterable(c(),i)}:c)}Co.generate=vH});var lI=h(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.iif=void 0;var yH=ia();function _H(e,t,n){return yH.defer(function(){return e()?t:n})}Vd.iif=_H});var nr=h(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.timer=void 0;var bH=ne(),DH=Je(),wH=Xs(),EH=bd();function MH(e,t,n){e===void 0&&(e=0),n===void 0&&(n=DH.async);var r=-1;return t!=null&&(wH.isScheduler(t)?n=t:r=t),new bH.Observable(function(i){var o=EH.isValidDate(e)?+e-n.now():e;o<0&&(o=0);var s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}qd.timer=MH});var i_=h(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.interval=void 0;var CH=Je(),SH=nr();function IH(e,t){return e===void 0&&(e=0),t===void 0&&(t=CH.asyncScheduler),e<0&&(e=0),SH.timer(e,e,t)}Ud.interval=IH});var fI=h($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.merge=void 0;var OH=na(),AH=q(),TH=At(),dI=Ke(),xH=yn();function NH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=dI.popScheduler(e),r=dI.popNumber(e,1/0),i=e;return i.length?i.length===1?AH.innerFrom(i[0]):OH.mergeAll(r)(xH.from(i,n)):TH.EMPTY}$d.merge=NH});var o_=h(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.never=Zr.NEVER=void 0;var PH=ne(),FH=Ce();Zr.NEVER=new PH.Observable(FH.noop);function RH(){return Zr.NEVER}Zr.never=RH});var Yr=h(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.argsOrArgArray=void 0;var kH=Array.isArray;function jH(e){return e.length===1&&kH(e[0])?e[0]:e}Bd.argsOrArgArray=jH});var s_=h(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.onErrorResumeNext=void 0;var LH=ne(),VH=Yr(),qH=I(),hI=Ce(),UH=q();function $H(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=VH.argsOrArgArray(e);return new LH.Observable(function(r){var i=0,o=function(){if(i<n.length){var s=void 0;try{s=UH.innerFrom(n[i++])}catch{o();return}var a=new qH.OperatorSubscriber(r,void 0,hI.noop,hI.noop);s.subscribe(a),a.add(o)}else r.complete()};o()})}Hd.onErrorResumeNext=$H});var pI=h(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.pairs=void 0;var BH=yn();function HH(e,t){return BH.from(Object.entries(e),t)}zd.pairs=HH});var gI=h(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.not=void 0;function zH(e,t){return function(n,r){return!e.call(t,n,r)}}Wd.not=zH});var Qr=h(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.filter=void 0;var WH=w(),GH=I();function ZH(e,t){return WH.operate(function(n,r){var i=0;n.subscribe(GH.createOperatorSubscriber(r,function(o){return e.call(t,o,i++)&&r.next(o)}))})}Gd.filter=ZH});var yI=h(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.partition=void 0;var YH=gI(),mI=Qr(),vI=q();function QH(e,t,n){return[mI.filter(t,n)(vI.innerFrom(e)),mI.filter(YH.not(t,n))(vI.innerFrom(e))]}Zd.partition=QH});var a_=h(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.raceInit=So.race=void 0;var JH=ne(),_I=q(),KH=Yr(),XH=I();function e3(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=KH.argsOrArgArray(e),e.length===1?_I.innerFrom(e[0]):new JH.Observable(bI(e))}So.race=e3;function bI(e){return function(t){for(var n=[],r=function(o){n.push(_I.innerFrom(e[o]).subscribe(XH.createOperatorSubscriber(t,function(s){if(n){for(var a=0;a<n.length;a++)a!==o&&n[a].unsubscribe();n=null}t.next(s)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}So.raceInit=bI});var DI=h(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.range=void 0;var t3=ne(),n3=At();function r3(e,t,n){if(t==null&&(t=e,e=0),t<=0)return n3.EMPTY;var r=t+e;return new t3.Observable(n?function(i){var o=e;return n.schedule(function(){o<r?(i.next(o++),this.schedule()):i.complete()})}:function(i){for(var o=e;o<r&&!i.closed;)i.next(o++);i.complete()})}Yd.range=r3});var wI=h(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.using=void 0;var i3=ne(),o3=q(),s3=At();function a3(e,t){return new i3.Observable(function(n){var r=e(),i=t(r),o=i?o3.innerFrom(i):s3.EMPTY;return o.subscribe(n),function(){r&&r.unsubscribe()}})}Qd.using=a3});var Jd=h(rr=>{"use strict";var u3=rr&&rr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},c3=rr&&rr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(rr,"__esModule",{value:!0});rr.zip=void 0;var l3=ne(),d3=q(),f3=Yr(),h3=At(),p3=I(),g3=Ke();function m3(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=g3.popResultSelector(e),r=f3.argsOrArgArray(e);return r.length?new l3.Observable(function(i){var o=r.map(function(){return[]}),s=r.map(function(){return!1});i.add(function(){o=s=null});for(var a=function(c){d3.innerFrom(r[c]).subscribe(p3.createOperatorSubscriber(i,function(l){if(o[c].push(l),o.every(function(p){return p.length})){var d=o.map(function(p){return p.shift()});i.next(n?n.apply(void 0,c3([],u3(d))):d),o.some(function(p,g){return!p.length&&s[g]})&&i.complete()}},function(){s[c]=!0,!o[c].length&&i.complete()}))},u=0;!i.closed&&u<r.length;u++)a(u);return function(){o=s=null}}):h3.EMPTY}rr.zip=m3});var MI=h(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0})});var u_=h(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.audit=void 0;var v3=w(),y3=q(),CI=I();function _3(e){return v3.operate(function(t,n){var r=!1,i=null,o=null,s=!1,a=function(){if(o?.unsubscribe(),o=null,r){r=!1;var c=i;i=null,n.next(c)}s&&n.complete()},u=function(){o=null,s&&n.complete()};t.subscribe(CI.createOperatorSubscriber(n,function(c){r=!0,i=c,o||y3.innerFrom(e(c)).subscribe(o=CI.createOperatorSubscriber(n,a,u))},function(){s=!0,(!r||!o||o.closed)&&n.complete()}))})}Kd.audit=_3});var SI=h(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.auditTime=void 0;var b3=Je(),D3=u_(),w3=nr();function E3(e,t){return t===void 0&&(t=b3.asyncScheduler),D3.audit(function(){return w3.timer(e,t)})}Xd.auditTime=E3});var OI=h(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.buffer=void 0;var M3=w(),C3=Ce(),II=I(),S3=q();function I3(e){return M3.operate(function(t,n){var r=[];return t.subscribe(II.createOperatorSubscriber(n,function(i){return r.push(i)},function(){n.next(r),n.complete()})),S3.innerFrom(e).subscribe(II.createOperatorSubscriber(n,function(){var i=r;r=[],n.next(i)},C3.noop)),function(){r=null}})}ef.buffer=I3});var AI=h(Io=>{"use strict";var c_=Io&&Io.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Io,"__esModule",{value:!0});Io.bufferCount=void 0;var O3=w(),A3=I(),T3=mn();function x3(e,t){return t===void 0&&(t=null),t=t??e,O3.operate(function(n,r){var i=[],o=0;n.subscribe(A3.createOperatorSubscriber(r,function(s){var a,u,c,l,d=null;o++%t===0&&i.push([]);try{for(var p=c_(i),g=p.next();!g.done;g=p.next()){var m=g.value;m.push(s),e<=m.length&&(d=d??[],d.push(m))}}catch(_){a={error:_}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}if(d)try{for(var v=c_(d),y=v.next();!y.done;y=v.next()){var m=y.value;T3.arrRemove(i,m),r.next(m)}}catch(_){c={error:_}}finally{try{y&&!y.done&&(l=v.return)&&l.call(v)}finally{if(c)throw c.error}}},function(){var s,a;try{for(var u=c_(i),c=u.next();!c.done;c=u.next()){var l=c.value;r.next(l)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}r.complete()},void 0,function(){i=null}))})}Io.bufferCount=x3});var xI=h(Oo=>{"use strict";var N3=Oo&&Oo.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.bufferTime=void 0;var P3=rt(),F3=w(),R3=I(),k3=mn(),j3=Je(),L3=Ke(),TI=vn();function V3(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=(t=L3.popScheduler(r))!==null&&t!==void 0?t:j3.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return F3.operate(function(u,c){var l=[],d=!1,p=function(v){var y=v.buffer,_=v.subs;_.unsubscribe(),k3.arrRemove(l,v),c.next(y),d&&g()},g=function(){if(l){var v=new P3.Subscription;c.add(v);var y=[],_={buffer:y,subs:v};l.push(_),TI.executeSchedule(v,o,function(){return p(_)},e)}};s!==null&&s>=0?TI.executeSchedule(c,o,g,s,!0):d=!0,g();var m=R3.createOperatorSubscriber(c,function(v){var y,_,S=l.slice();try{for(var N=N3(S),P=N.next();!P.done;P=N.next()){var L=P.value,R=L.buffer;R.push(v),a<=R.length&&p(L)}}catch(ve){y={error:ve}}finally{try{P&&!P.done&&(_=N.return)&&_.call(N)}finally{if(y)throw y.error}}},function(){for(;l?.length;)c.next(l.shift().buffer);m?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return l=null});u.subscribe(m)})}Oo.bufferTime=V3});var FI=h(Ao=>{"use strict";var q3=Ao&&Ao.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.bufferToggle=void 0;var U3=rt(),$3=w(),NI=q(),l_=I(),PI=Ce(),B3=mn();function H3(e,t){return $3.operate(function(n,r){var i=[];NI.innerFrom(e).subscribe(l_.createOperatorSubscriber(r,function(o){var s=[];i.push(s);var a=new U3.Subscription,u=function(){B3.arrRemove(i,s),r.next(s),a.unsubscribe()};a.add(NI.innerFrom(t(o)).subscribe(l_.createOperatorSubscriber(r,u,PI.noop)))},PI.noop)),n.subscribe(l_.createOperatorSubscriber(r,function(o){var s,a;try{for(var u=q3(i),c=u.next();!c.done;c=u.next()){var l=c.value;l.push(o)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}},function(){for(;i.length>0;)r.next(i.shift());r.complete()}))})}Ao.bufferToggle=H3});var kI=h(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.bufferWhen=void 0;var z3=w(),W3=Ce(),RI=I(),G3=q();function Z3(e){return z3.operate(function(t,n){var r=null,i=null,o=function(){i?.unsubscribe();var s=r;r=[],s&&n.next(s),G3.innerFrom(e()).subscribe(i=RI.createOperatorSubscriber(n,o,W3.noop))};o(),t.subscribe(RI.createOperatorSubscriber(n,function(s){return r?.push(s)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=i=null}))})}tf.bufferWhen=Z3});var LI=h(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.catchError=void 0;var Y3=q(),Q3=I(),J3=w();function jI(e){return J3.operate(function(t,n){var r=null,i=!1,o;r=t.subscribe(Q3.createOperatorSubscriber(n,void 0,void 0,function(s){o=Y3.innerFrom(e(s,jI(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}nf.catchError=jI});var d_=h(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.scanInternals=void 0;var K3=I();function X3(e,t,n,r,i){return function(o,s){var a=n,u=t,c=0;o.subscribe(K3.createOperatorSubscriber(s,function(l){var d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&function(){a&&s.next(u),s.complete()}))}}rf.scanInternals=X3});var To=h(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.reduce=void 0;var e4=d_(),t4=w();function n4(e,t){return t4.operate(e4.scanInternals(e,t,arguments.length>=2,!1,!0))}of.reduce=n4});var f_=h(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.toArray=void 0;var r4=To(),i4=w(),o4=function(e,t){return e.push(t),e};function s4(){return i4.operate(function(e,t){r4.reduce(o4,[])(e).subscribe(t)})}sf.toArray=s4});var h_=h(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.joinAllInternals=void 0;var a4=Se(),u4=er(),c4=Ys(),l4=bn(),d4=f_();function f4(e,t){return c4.pipe(d4.toArray(),l4.mergeMap(function(n){return e(n)}),t?u4.mapOneOrManyArgs(t):a4.identity)}af.joinAllInternals=f4});var p_=h(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.combineLatestAll=void 0;var h4=Id(),p4=h_();function g4(e){return p4.joinAllInternals(h4.combineLatest,e)}uf.combineLatestAll=g4});var VI=h(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.combineAll=void 0;var m4=p_();cf.combineAll=m4.combineLatestAll});var BI=h(ir=>{"use strict";var qI=ir&&ir.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},UI=ir&&ir.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(ir,"__esModule",{value:!0});ir.combineLatest=void 0;var v4=Id(),y4=w(),_4=Yr(),b4=er(),D4=Ys(),w4=Ke();function $I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=w4.popResultSelector(e);return n?D4.pipe($I.apply(void 0,UI([],qI(e))),b4.mapOneOrManyArgs(n)):y4.operate(function(r,i){v4.combineLatestInit(UI([r],qI(_4.argsOrArgArray(e))))(i)})}ir.combineLatest=$I});var HI=h(or=>{"use strict";var E4=or&&or.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},M4=or&&or.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(or,"__esModule",{value:!0});or.combineLatestWith=void 0;var C4=BI();function S4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return C4.combineLatest.apply(void 0,M4([],E4(e)))}or.combineLatestWith=S4});var g_=h(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.concatMap=void 0;var zI=bn(),I4=ee();function O4(e,t){return I4.isFunction(t)?zI.mergeMap(e,t,1):zI.mergeMap(e,1)}lf.concatMap=O4});var GI=h(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.concatMapTo=void 0;var WI=g_(),A4=ee();function T4(e,t){return A4.isFunction(t)?WI.concatMap(function(){return e},t):WI.concatMap(function(){return e})}df.concatMapTo=T4});var ZI=h(sr=>{"use strict";var x4=sr&&sr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},N4=sr&&sr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(sr,"__esModule",{value:!0});sr.concat=void 0;var P4=w(),F4=Pd(),R4=Ke(),k4=yn();function j4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=R4.popScheduler(e);return P4.operate(function(r,i){F4.concatAll()(k4.from(N4([r],x4(e)),n)).subscribe(i)})}sr.concat=j4});var YI=h(ar=>{"use strict";var L4=ar&&ar.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},V4=ar&&ar.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(ar,"__esModule",{value:!0});ar.concatWith=void 0;var q4=ZI();function U4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return q4.concat.apply(void 0,V4([],L4(e)))}ar.concatWith=U4});var QI=h(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.fromSubscribable=void 0;var $4=ne();function B4(e){return new $4.Observable(function(t){return e.subscribe(t)})}ff.fromSubscribable=B4});var pf=h(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.connect=void 0;var H4=Ie(),z4=q(),W4=w(),G4=QI(),Z4={connector:function(){return new H4.Subject}};function Y4(e,t){t===void 0&&(t=Z4);var n=t.connector;return W4.operate(function(r,i){var o=n();z4.innerFrom(e(G4.fromSubscribable(o))).subscribe(i),i.add(r.subscribe(o))})}hf.connect=Y4});var JI=h(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.count=void 0;var Q4=To();function J4(e){return Q4.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}gf.count=J4});var XI=h(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.debounce=void 0;var K4=w(),X4=Ce(),KI=I(),e8=q();function t8(e){return K4.operate(function(t,n){var r=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,r){r=!1;var a=i;i=null,n.next(a)}};t.subscribe(KI.createOperatorSubscriber(n,function(a){o?.unsubscribe(),r=!0,i=a,o=KI.createOperatorSubscriber(n,s,X4.noop),e8.innerFrom(e(a)).subscribe(o)},function(){s(),n.complete()},void 0,function(){i=o=null}))})}mf.debounce=t8});var eO=h(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.debounceTime=void 0;var n8=Je(),r8=w(),i8=I();function o8(e,t){return t===void 0&&(t=n8.asyncScheduler),r8.operate(function(n,r){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function u(){var c=s+e,l=t.now();if(l<c){i=this.schedule(void 0,c-l),r.add(i);return}a()}n.subscribe(i8.createOperatorSubscriber(r,function(c){o=c,s=t.now(),i||(i=t.schedule(u,e),r.add(i))},function(){a(),r.complete()},void 0,function(){o=i=null}))})}vf.debounceTime=o8});var oa=h(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.defaultIfEmpty=void 0;var s8=w(),a8=I();function u8(e){return s8.operate(function(t,n){var r=!1;t.subscribe(a8.createOperatorSubscriber(n,function(i){r=!0,n.next(i)},function(){r||n.next(e),n.complete()}))})}yf.defaultIfEmpty=u8});var sa=h(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.take=void 0;var c8=At(),l8=w(),d8=I();function f8(e){return e<=0?function(){return c8.EMPTY}:l8.operate(function(t,n){var r=0;t.subscribe(d8.createOperatorSubscriber(n,function(i){++r<=e&&(n.next(i),e<=r&&n.complete())}))})}_f.take=f8});var m_=h(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.ignoreElements=void 0;var h8=w(),p8=I(),g8=Ce();function m8(){return h8.operate(function(e,t){e.subscribe(p8.createOperatorSubscriber(t,g8.noop))})}bf.ignoreElements=m8});var v_=h(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.mapTo=void 0;var v8=Kn();function y8(e){return v8.map(function(){return e})}Df.mapTo=y8});var y_=h(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.delayWhen=void 0;var _8=ra(),tO=sa(),b8=m_(),D8=v_(),w8=bn(),E8=q();function nO(e,t){return t?function(n){return _8.concat(t.pipe(tO.take(1),b8.ignoreElements()),n.pipe(nO(e)))}:w8.mergeMap(function(n,r){return E8.innerFrom(e(n,r)).pipe(tO.take(1),D8.mapTo(n))})}wf.delayWhen=nO});var rO=h(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.delay=void 0;var M8=Je(),C8=y_(),S8=nr();function I8(e,t){t===void 0&&(t=M8.asyncScheduler);var n=S8.timer(e,t);return C8.delayWhen(function(){return n})}Ef.delay=I8});var iO=h(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.dematerialize=void 0;var O8=dd(),A8=w(),T8=I();function x8(){return A8.operate(function(e,t){e.subscribe(T8.createOperatorSubscriber(t,function(n){return O8.observeNotification(n,t)}))})}Mf.dematerialize=x8});var sO=h(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.distinct=void 0;var N8=w(),oO=I(),P8=Ce(),F8=q();function R8(e,t){return N8.operate(function(n,r){var i=new Set;n.subscribe(oO.createOperatorSubscriber(r,function(o){var s=e?e(o):o;i.has(s)||(i.add(s),r.next(o))})),t&&F8.innerFrom(t).subscribe(oO.createOperatorSubscriber(r,function(){return i.clear()},P8.noop))})}Cf.distinct=R8});var __=h(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.distinctUntilChanged=void 0;var k8=Se(),j8=w(),L8=I();function V8(e,t){return t===void 0&&(t=k8.identity),e=e??q8,j8.operate(function(n,r){var i,o=!0;n.subscribe(L8.createOperatorSubscriber(r,function(s){var a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}Sf.distinctUntilChanged=V8;function q8(e,t){return e===t}});var aO=h(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.distinctUntilKeyChanged=void 0;var U8=__();function $8(e,t){return U8.distinctUntilChanged(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}If.distinctUntilKeyChanged=$8});var aa=h(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.throwIfEmpty=void 0;var B8=Jn(),H8=w(),z8=I();function W8(e){return e===void 0&&(e=G8),H8.operate(function(t,n){var r=!1;t.subscribe(z8.createOperatorSubscriber(n,function(i){r=!0,n.next(i)},function(){return r?n.complete():n.error(e())}))})}Of.throwIfEmpty=W8;function G8(){return new B8.EmptyError}});var cO=h(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.elementAt=void 0;var uO=Qy(),Z8=Qr(),Y8=aa(),Q8=oa(),J8=sa();function K8(e,t){if(e<0)throw new uO.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(r){return r.pipe(Z8.filter(function(i,o){return o===e}),J8.take(1),n?Q8.defaultIfEmpty(t):Y8.throwIfEmpty(function(){return new uO.ArgumentOutOfRangeError}))}}Af.elementAt=K8});var lO=h(ur=>{"use strict";var X8=ur&&ur.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},ez=ur&&ur.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(ur,"__esModule",{value:!0});ur.endWith=void 0;var tz=ra(),nz=cd();function rz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return tz.concat(n,nz.of.apply(void 0,ez([],X8(e))))}}ur.endWith=rz});var dO=h(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.every=void 0;var iz=w(),oz=I();function sz(e,t){return iz.operate(function(n,r){var i=0;n.subscribe(oz.createOperatorSubscriber(r,function(o){e.call(t,o,i++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}Tf.every=sz});var b_=h(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.exhaustMap=void 0;var az=Kn(),fO=q(),uz=w(),hO=I();function pO(e,t){return t?function(n){return n.pipe(pO(function(r,i){return fO.innerFrom(e(r,i)).pipe(az.map(function(o,s){return t(r,o,i,s)}))}))}:uz.operate(function(n,r){var i=0,o=null,s=!1;n.subscribe(hO.createOperatorSubscriber(r,function(a){o||(o=hO.createOperatorSubscriber(r,void 0,function(){o=null,s&&r.complete()}),fO.innerFrom(e(a,i++)).subscribe(o))},function(){s=!0,!o&&r.complete()}))})}xf.exhaustMap=pO});var D_=h(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.exhaustAll=void 0;var cz=b_(),lz=Se();function dz(){return cz.exhaustMap(lz.identity)}Nf.exhaustAll=dz});var gO=h(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.exhaust=void 0;var fz=D_();Pf.exhaust=fz.exhaustAll});var mO=h(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.expand=void 0;var hz=w(),pz=Ad();function gz(e,t,n){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,hz.operate(function(r,i){return pz.mergeInternals(r,i,e,t,void 0,!0,n)})}Ff.expand=gz});var vO=h(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.finalize=void 0;var mz=w();function vz(e){return mz.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}Rf.finalize=vz});var w_=h(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.createFind=xo.find=void 0;var yz=w(),_z=I();function bz(e,t){return yz.operate(yO(e,t,"value"))}xo.find=bz;function yO(e,t,n){var r=n==="index";return function(i,o){var s=0;i.subscribe(_z.createOperatorSubscriber(o,function(a){var u=s++;e.call(t,a,u,i)&&(o.next(r?u:a),o.complete())},function(){o.next(r?-1:void 0),o.complete()}))}}xo.createFind=yO});var _O=h(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.findIndex=void 0;var Dz=w(),wz=w_();function Ez(e,t){return Dz.operate(wz.createFind(e,t,"index"))}kf.findIndex=Ez});var bO=h(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.first=void 0;var Mz=Jn(),Cz=Qr(),Sz=sa(),Iz=oa(),Oz=aa(),Az=Se();function Tz(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Cz.filter(function(i,o){return e(i,o,r)}):Az.identity,Sz.take(1),n?Iz.defaultIfEmpty(t):Oz.throwIfEmpty(function(){return new Mz.EmptyError}))}}jf.first=Tz});var wO=h(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.groupBy=void 0;var xz=ne(),Nz=q(),Pz=Ie(),Fz=w(),DO=I();function Rz(e,t,n,r){return Fz.operate(function(i,o){var s;!t||typeof t=="function"?s=t:(n=t.duration,s=t.element,r=t.connector);var a=new Map,u=function(m){a.forEach(m),m(o)},c=function(m){return u(function(v){return v.error(m)})},l=0,d=!1,p=new DO.OperatorSubscriber(o,function(m){try{var v=e(m),y=a.get(v);if(!y){a.set(v,y=r?r():new Pz.Subject);var _=g(v,y);if(o.next(_),n){var S=DO.createOperatorSubscriber(y,function(){y.complete(),S?.unsubscribe()},void 0,void 0,function(){return a.delete(v)});p.add(Nz.innerFrom(n(_)).subscribe(S))}}y.next(s?s(m):m)}catch(N){c(N)}},function(){return u(function(m){return m.complete()})},c,function(){return a.clear()},function(){return d=!0,l===0});i.subscribe(p);function g(m,v){var y=new xz.Observable(function(_){l++;var S=v.subscribe(_);return function(){S.unsubscribe(),--l===0&&d&&p.unsubscribe()}});return y.key=m,y}})}Lf.groupBy=Rz});var EO=h(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.isEmpty=void 0;var kz=w(),jz=I();function Lz(){return kz.operate(function(e,t){e.subscribe(jz.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}Vf.isEmpty=Lz});var E_=h(No=>{"use strict";var Vz=No&&No.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(No,"__esModule",{value:!0});No.takeLast=void 0;var qz=At(),Uz=w(),$z=I();function Bz(e){return e<=0?function(){return qz.EMPTY}:Uz.operate(function(t,n){var r=[];t.subscribe($z.createOperatorSubscriber(n,function(i){r.push(i),e<r.length&&r.shift()},function(){var i,o;try{for(var s=Vz(r),a=s.next();!a.done;a=s.next()){var u=a.value;n.next(u)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}n.complete()},void 0,function(){r=null}))})}No.takeLast=Bz});var MO=h(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.last=void 0;var Hz=Jn(),zz=Qr(),Wz=E_(),Gz=aa(),Zz=oa(),Yz=Se();function Qz(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?zz.filter(function(i,o){return e(i,o,r)}):Yz.identity,Wz.takeLast(1),n?Zz.defaultIfEmpty(t):Gz.throwIfEmpty(function(){return new Hz.EmptyError}))}}qf.last=Qz});var CO=h(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.materialize=void 0;var M_=dd(),Jz=w(),Kz=I();function Xz(){return Jz.operate(function(e,t){e.subscribe(Kz.createOperatorSubscriber(t,function(n){t.next(M_.Notification.createNext(n))},function(){t.next(M_.Notification.createComplete()),t.complete()},function(n){t.next(M_.Notification.createError(n)),t.complete()}))})}Uf.materialize=Xz});var SO=h($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.max=void 0;var eW=To(),tW=ee();function nW(e){return eW.reduce(tW.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(t,n){return t>n?t:n})}$f.max=nW});var IO=h(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.flatMap=void 0;var rW=bn();Bf.flatMap=rW.mergeMap});var AO=h(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.mergeMapTo=void 0;var OO=bn(),iW=ee();function oW(e,t,n){return n===void 0&&(n=1/0),iW.isFunction(t)?OO.mergeMap(function(){return e},t,n):(typeof t=="number"&&(n=t),OO.mergeMap(function(){return e},n))}Hf.mergeMapTo=oW});var TO=h(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.mergeScan=void 0;var sW=w(),aW=Ad();function uW(e,t,n){return n===void 0&&(n=1/0),sW.operate(function(r,i){var o=t;return aW.mergeInternals(r,i,function(s,a){return e(o,s,a)},n,function(s){o=s},!1,void 0,function(){return o=null})})}zf.mergeScan=uW});var NO=h(cr=>{"use strict";var cW=cr&&cr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},lW=cr&&cr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(cr,"__esModule",{value:!0});cr.merge=void 0;var dW=w(),fW=Yr(),hW=na(),xO=Ke(),pW=yn();function gW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xO.popScheduler(e),r=xO.popNumber(e,1/0);return e=fW.argsOrArgArray(e),dW.operate(function(i,o){hW.mergeAll(r)(pW.from(lW([i],cW(e)),n)).subscribe(o)})}cr.merge=gW});var PO=h(lr=>{"use strict";var mW=lr&&lr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},vW=lr&&lr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(lr,"__esModule",{value:!0});lr.mergeWith=void 0;var yW=NO();function _W(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yW.merge.apply(void 0,vW([],mW(e)))}lr.mergeWith=_W});var FO=h(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.min=void 0;var bW=To(),DW=ee();function wW(e){return bW.reduce(DW.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(t,n){return t<n?t:n})}Wf.min=wW});var Zf=h(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.multicast=void 0;var EW=Qs(),RO=ee(),MW=pf();function CW(e,t){var n=RO.isFunction(e)?e:function(){return e};return RO.isFunction(t)?MW.connect(t,{connector:n}):function(r){return new EW.ConnectableObservable(r,n)}}Gf.multicast=CW});var jO=h(Yt=>{"use strict";var SW=Yt&&Yt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},IW=Yt&&Yt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.onErrorResumeNext=Yt.onErrorResumeNextWith=void 0;var OW=Yr(),AW=s_();function kO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=OW.argsOrArgArray(e);return function(r){return AW.onErrorResumeNext.apply(void 0,IW([r],SW(n)))}}Yt.onErrorResumeNextWith=kO;Yt.onErrorResumeNext=kO});var LO=h(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.pairwise=void 0;var TW=w(),xW=I();function NW(){return TW.operate(function(e,t){var n,r=!1;e.subscribe(xW.createOperatorSubscriber(t,function(i){var o=n;n=i,r&&t.next([o,i]),r=!0}))})}Yf.pairwise=NW});var VO=h(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.pluck=void 0;var PW=Kn();function FW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return PW.map(function(r){for(var i=r,o=0;o<n;o++){var s=i?.[e[o]];if(typeof s<"u")i=s;else return}return i})}Qf.pluck=FW});var qO=h(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.publish=void 0;var RW=Ie(),kW=Zf(),jW=pf();function LW(e){return e?function(t){return jW.connect(e)(t)}:function(t){return kW.multicast(new RW.Subject)(t)}}Jf.publish=LW});var UO=h(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.publishBehavior=void 0;var VW=Py(),qW=Qs();function UW(e){return function(t){var n=new VW.BehaviorSubject(e);return new qW.ConnectableObservable(t,function(){return n})}}Kf.publishBehavior=UW});var $O=h(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.publishLast=void 0;var $W=Vl(),BW=Qs();function HW(){return function(e){var t=new $W.AsyncSubject;return new BW.ConnectableObservable(e,function(){return t})}}Xf.publishLast=HW});var HO=h(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.publishReplay=void 0;var zW=Ll(),WW=Zf(),BO=ee();function GW(e,t,n,r){n&&!BO.isFunction(n)&&(r=n);var i=BO.isFunction(n)?n:void 0;return function(o){return WW.multicast(new zW.ReplaySubject(e,t,r),i)(o)}}eh.publishReplay=GW});var zO=h(dr=>{"use strict";var ZW=dr&&dr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},YW=dr&&dr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(dr,"__esModule",{value:!0});dr.raceWith=void 0;var QW=a_(),JW=w(),KW=Se();function XW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?JW.operate(function(n,r){QW.raceInit(YW([n],ZW(e)))(r)}):KW.identity}dr.raceWith=XW});var GO=h(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.repeat=void 0;var eG=At(),tG=w(),WO=I(),nG=q(),rG=nr();function iG(e){var t,n=1/0,r;return e!=null&&(typeof e=="object"?(t=e.count,n=t===void 0?1/0:t,r=e.delay):n=e),n<=0?function(){return eG.EMPTY}:tG.operate(function(i,o){var s=0,a,u=function(){if(a?.unsubscribe(),a=null,r!=null){var l=typeof r=="number"?rG.timer(r):nG.innerFrom(r(s)),d=WO.createOperatorSubscriber(o,function(){d.unsubscribe(),c()});l.subscribe(d)}else c()},c=function(){var l=!1;a=i.subscribe(WO.createOperatorSubscriber(o,void 0,function(){++s<n?a?u():l=!0:o.complete()})),l&&u()};c()})}th.repeat=iG});var YO=h(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.repeatWhen=void 0;var oG=q(),sG=Ie(),aG=w(),ZO=I();function uG(e){return aG.operate(function(t,n){var r,i=!1,o,s=!1,a=!1,u=function(){return a&&s&&(n.complete(),!0)},c=function(){return o||(o=new sG.Subject,oG.innerFrom(e(o)).subscribe(ZO.createOperatorSubscriber(n,function(){r?l():i=!0},function(){s=!0,u()}))),o},l=function(){a=!1,r=t.subscribe(ZO.createOperatorSubscriber(n,void 0,function(){a=!0,!u()&&c().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}nh.repeatWhen=uG});var JO=h(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.retry=void 0;var cG=w(),QO=I(),lG=Se(),dG=nr(),fG=q();function hG(e){e===void 0&&(e=1/0);var t;e&&typeof e=="object"?t=e:t={count:e};var n=t.count,r=n===void 0?1/0:n,i=t.delay,o=t.resetOnSuccess,s=o===void 0?!1:o;return r<=0?lG.identity:cG.operate(function(a,u){var c=0,l,d=function(){var p=!1;l=a.subscribe(QO.createOperatorSubscriber(u,function(g){s&&(c=0),u.next(g)},void 0,function(g){if(c++<r){var m=function(){l?(l.unsubscribe(),l=null,d()):p=!0};if(i!=null){var v=typeof i=="number"?dG.timer(i):fG.innerFrom(i(g,c)),y=QO.createOperatorSubscriber(u,function(){y.unsubscribe(),m()},function(){u.complete()});v.subscribe(y)}else m()}else u.error(g)})),p&&(l.unsubscribe(),l=null,d())};d()})}rh.retry=hG});var XO=h(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.retryWhen=void 0;var pG=q(),gG=Ie(),mG=w(),KO=I();function vG(e){return mG.operate(function(t,n){var r,i=!1,o,s=function(){r=t.subscribe(KO.createOperatorSubscriber(n,void 0,void 0,function(a){o||(o=new gG.Subject,pG.innerFrom(e(o)).subscribe(KO.createOperatorSubscriber(n,function(){return r?s():i=!0}))),o&&o.next(a)})),i&&(r.unsubscribe(),r=null,i=!1,s())};s()})}ih.retryWhen=vG});var C_=h(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.sample=void 0;var yG=q(),_G=w(),bG=Ce(),eA=I();function DG(e){return _G.operate(function(t,n){var r=!1,i=null;t.subscribe(eA.createOperatorSubscriber(n,function(o){r=!0,i=o})),yG.innerFrom(e).subscribe(eA.createOperatorSubscriber(n,function(){if(r){r=!1;var o=i;i=null,n.next(o)}},bG.noop))})}oh.sample=DG});var tA=h(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.sampleTime=void 0;var wG=Je(),EG=C_(),MG=i_();function CG(e,t){return t===void 0&&(t=wG.asyncScheduler),EG.sample(MG.interval(e,t))}sh.sampleTime=CG});var nA=h(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.scan=void 0;var SG=w(),IG=d_();function OG(e,t){return SG.operate(IG.scanInternals(e,t,arguments.length>=2,!0))}ah.scan=OG});var iA=h(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.sequenceEqual=void 0;var AG=w(),TG=I(),xG=q();function NG(e,t){return t===void 0&&(t=function(n,r){return n===r}),AG.operate(function(n,r){var i=rA(),o=rA(),s=function(u){r.next(u),r.complete()},a=function(u,c){var l=TG.createOperatorSubscriber(r,function(d){var p=c.buffer,g=c.complete;p.length===0?g?s(!1):u.buffer.push(d):!t(d,p.shift())&&s(!1)},function(){u.complete=!0;var d=c.complete,p=c.buffer;d&&s(p.length===0),l?.unsubscribe()});return l};n.subscribe(a(i,o)),xG.innerFrom(e).subscribe(a(o,i))})}uh.sequenceEqual=NG;function rA(){return{buffer:[],complete:!1}}});var I_=h(fr=>{"use strict";var PG=fr&&fr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},FG=fr&&fr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(fr,"__esModule",{value:!0});fr.share=void 0;var oA=q(),RG=Ie(),sA=eo(),kG=w();function jG(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new RG.Subject}:t,r=e.resetOnError,i=r===void 0?!0:r,o=e.resetOnComplete,s=o===void 0?!0:o,a=e.resetOnRefCountZero,u=a===void 0?!0:a;return function(c){var l,d,p,g=0,m=!1,v=!1,y=function(){d?.unsubscribe(),d=void 0},_=function(){y(),l=p=void 0,m=v=!1},S=function(){var N=l;_(),N?.unsubscribe()};return kG.operate(function(N,P){g++,!v&&!m&&y();var L=p=p??n();P.add(function(){g--,g===0&&!v&&!m&&(d=S_(S,u))}),L.subscribe(P),!l&&g>0&&(l=new sA.SafeSubscriber({next:function(R){return L.next(R)},error:function(R){v=!0,y(),d=S_(_,i,R),L.error(R)},complete:function(){m=!0,y(),d=S_(_,s),L.complete()}}),oA.innerFrom(N).subscribe(l))})(c)}}fr.share=jG;function S_(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var i=new sA.SafeSubscriber({next:function(){i.unsubscribe(),e()}});return oA.innerFrom(t.apply(void 0,FG([],PG(n)))).subscribe(i)}}});var aA=h(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.shareReplay=void 0;var LG=Ll(),VG=I_();function qG(e,t,n){var r,i,o,s,a=!1;return e&&typeof e=="object"?(r=e.bufferSize,s=r===void 0?1/0:r,i=e.windowTime,t=i===void 0?1/0:i,o=e.refCount,a=o===void 0?!1:o,n=e.scheduler):s=e??1/0,VG.share({connector:function(){return new LG.ReplaySubject(s,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}ch.shareReplay=qG});var uA=h(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.single=void 0;var UG=Jn(),$G=Ky(),BG=Jy(),HG=w(),zG=I();function WG(e){return HG.operate(function(t,n){var r=!1,i,o=!1,s=0;t.subscribe(zG.createOperatorSubscriber(n,function(a){o=!0,(!e||e(a,s++,t))&&(r&&n.error(new $G.SequenceError("Too many matching values")),r=!0,i=a)},function(){r?(n.next(i),n.complete()):n.error(o?new BG.NotFoundError("No matching values"):new UG.EmptyError)}))})}lh.single=WG});var cA=h(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.skip=void 0;var GG=Qr();function ZG(e){return GG.filter(function(t,n){return e<=n})}dh.skip=ZG});var lA=h(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.skipLast=void 0;var YG=Se(),QG=w(),JG=I();function KG(e){return e<=0?YG.identity:QG.operate(function(t,n){var r=new Array(e),i=0;return t.subscribe(JG.createOperatorSubscriber(n,function(o){var s=i++;if(s<e)r[s]=o;else{var a=s%e,u=r[a];r[a]=o,n.next(u)}})),function(){r=null}})}fh.skipLast=KG});var fA=h(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.skipUntil=void 0;var XG=w(),dA=I(),e6=q(),t6=Ce();function n6(e){return XG.operate(function(t,n){var r=!1,i=dA.createOperatorSubscriber(n,function(){i?.unsubscribe(),r=!0},t6.noop);e6.innerFrom(e).subscribe(i),t.subscribe(dA.createOperatorSubscriber(n,function(o){return r&&n.next(o)}))})}hh.skipUntil=n6});var hA=h(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.skipWhile=void 0;var r6=w(),i6=I();function o6(e){return r6.operate(function(t,n){var r=!1,i=0;t.subscribe(i6.createOperatorSubscriber(n,function(o){return(r||(r=!e(o,i++)))&&n.next(o)}))})}ph.skipWhile=o6});var gA=h(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.startWith=void 0;var pA=ra(),s6=Ke(),a6=w();function u6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s6.popScheduler(e);return a6.operate(function(r,i){(n?pA.concat(e,r,n):pA.concat(e,r)).subscribe(i)})}gh.startWith=u6});var ua=h(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.switchMap=void 0;var c6=q(),l6=w(),mA=I();function d6(e,t){return l6.operate(function(n,r){var i=null,o=0,s=!1,a=function(){return s&&!i&&r.complete()};n.subscribe(mA.createOperatorSubscriber(r,function(u){i?.unsubscribe();var c=0,l=o++;c6.innerFrom(e(u,l)).subscribe(i=mA.createOperatorSubscriber(r,function(d){return r.next(t?t(u,d,l,c++):d)},function(){i=null,a()}))},function(){s=!0,a()}))})}mh.switchMap=d6});var vA=h(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.switchAll=void 0;var f6=ua(),h6=Se();function p6(){return f6.switchMap(h6.identity)}vh.switchAll=p6});var _A=h(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.switchMapTo=void 0;var yA=ua(),g6=ee();function m6(e,t){return g6.isFunction(t)?yA.switchMap(function(){return e},t):yA.switchMap(function(){return e})}yh.switchMapTo=m6});var bA=h(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.switchScan=void 0;var v6=ua(),y6=w();function _6(e,t){return y6.operate(function(n,r){var i=t;return v6.switchMap(function(o,s){return e(i,o,s)},function(o,s){return i=s,s})(n).subscribe(r),function(){i=null}})}_h.switchScan=_6});var DA=h(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.takeUntil=void 0;var b6=w(),D6=I(),w6=q(),E6=Ce();function M6(e){return b6.operate(function(t,n){w6.innerFrom(e).subscribe(D6.createOperatorSubscriber(n,function(){return n.complete()},E6.noop)),!n.closed&&t.subscribe(n)})}bh.takeUntil=M6});var wA=h(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.takeWhile=void 0;var C6=w(),S6=I();function I6(e,t){return t===void 0&&(t=!1),C6.operate(function(n,r){var i=0;n.subscribe(S6.createOperatorSubscriber(r,function(o){var s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}Dh.takeWhile=I6});var EA=h(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.tap=void 0;var O6=ee(),A6=w(),T6=I(),x6=Se();function N6(e,t,n){var r=O6.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return r?A6.operate(function(i,o){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var a=!0;i.subscribe(T6.createOperatorSubscriber(o,function(u){var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},function(){var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},function(u){var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},function(){var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):x6.identity}wh.tap=N6});var O_=h(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.throttle=void 0;var P6=w(),MA=I(),F6=q();function R6(e,t){return P6.operate(function(n,r){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,u=a===void 0?!1:a,c=!1,l=null,d=null,p=!1,g=function(){d?.unsubscribe(),d=null,u&&(y(),p&&r.complete())},m=function(){d=null,p&&r.complete()},v=function(_){return d=F6.innerFrom(e(_)).subscribe(MA.createOperatorSubscriber(r,g,m))},y=function(){if(c){c=!1;var _=l;l=null,r.next(_),!p&&v(_)}};n.subscribe(MA.createOperatorSubscriber(r,function(_){c=!0,l=_,!(d&&!d.closed)&&(s?y():v(_))},function(){p=!0,!(u&&c&&d&&!d.closed)&&r.complete()}))})}Eh.throttle=R6});var CA=h(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.throttleTime=void 0;var k6=Je(),j6=O_(),L6=nr();function V6(e,t,n){t===void 0&&(t=k6.asyncScheduler);var r=L6.timer(e,t);return j6.throttle(function(){return r},n)}Mh.throttleTime=V6});var IA=h(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.TimeInterval=Po.timeInterval=void 0;var q6=Je(),U6=w(),$6=I();function B6(e){return e===void 0&&(e=q6.asyncScheduler),U6.operate(function(t,n){var r=e.now();t.subscribe($6.createOperatorSubscriber(n,function(i){var o=e.now(),s=o-r;r=o,n.next(new SA(i,s))}))})}Po.timeInterval=B6;var SA=function(){function e(t,n){this.value=t,this.interval=n}return e}();Po.TimeInterval=SA});var OA=h(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.timeoutWith=void 0;var H6=Je(),z6=bd(),W6=Dd();function G6(e,t,n){var r,i,o;if(n=n??H6.async,z6.isValidDate(e)?r=e:typeof e=="number"&&(i=e),t)o=function(){return t};else throw new TypeError("No observable provided to switch to");if(r==null&&i==null)throw new TypeError("No timeout provided.");return W6.timeout({first:r,each:i,scheduler:n,with:o})}Ch.timeoutWith=G6});var AA=h(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.timestamp=void 0;var Z6=jl(),Y6=Kn();function Q6(e){return e===void 0&&(e=Z6.dateTimestampProvider),Y6.map(function(t){return{value:t,timestamp:e.now()}})}Sh.timestamp=Q6});var NA=h(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.window=void 0;var TA=Ie(),J6=w(),xA=I(),K6=Ce(),X6=q();function e5(e){return J6.operate(function(t,n){var r=new TA.Subject;n.next(r.asObservable());var i=function(o){r.error(o),n.error(o)};return t.subscribe(xA.createOperatorSubscriber(n,function(o){return r?.next(o)},function(){r.complete(),n.complete()},i)),X6.innerFrom(e).subscribe(xA.createOperatorSubscriber(n,function(){r.complete(),n.next(r=new TA.Subject)},K6.noop,i)),function(){r?.unsubscribe(),r=null}})}Ih.window=e5});var FA=h(Fo=>{"use strict";var t5=Fo&&Fo.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.windowCount=void 0;var PA=Ie(),n5=w(),r5=I();function i5(e,t){t===void 0&&(t=0);var n=t>0?t:e;return n5.operate(function(r,i){var o=[new PA.Subject],s=[],a=0;i.next(o[0].asObservable()),r.subscribe(r5.createOperatorSubscriber(i,function(u){var c,l;try{for(var d=t5(o),p=d.next();!p.done;p=d.next()){var g=p.value;g.next(u)}}catch(y){c={error:y}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(c)throw c.error}}var m=a-e+1;if(m>=0&&m%n===0&&o.shift().complete(),++a%n===0){var v=new PA.Subject;o.push(v),i.next(v.asObservable())}},function(){for(;o.length>0;)o.shift().complete();i.complete()},function(u){for(;o.length>0;)o.shift().error(u);i.error(u)},function(){s=null,o=null}))})}Fo.windowCount=i5});var kA=h(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.windowTime=void 0;var o5=Ie(),s5=Je(),a5=rt(),u5=w(),c5=I(),l5=mn(),d5=Ke(),RA=vn();function f5(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=(t=d5.popScheduler(r))!==null&&t!==void 0?t:s5.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return u5.operate(function(u,c){var l=[],d=!1,p=function(y){var _=y.window,S=y.subs;_.complete(),S.unsubscribe(),l5.arrRemove(l,y),d&&g()},g=function(){if(l){var y=new a5.Subscription;c.add(y);var _=new o5.Subject,S={window:_,subs:y,seen:0};l.push(S),c.next(_.asObservable()),RA.executeSchedule(y,o,function(){return p(S)},e)}};s!==null&&s>=0?RA.executeSchedule(c,o,g,s,!0):d=!0,g();var m=function(y){return l.slice().forEach(y)},v=function(y){m(function(_){var S=_.window;return y(S)}),y(c),c.unsubscribe()};return u.subscribe(c5.createOperatorSubscriber(c,function(y){m(function(_){_.window.next(y),a<=++_.seen&&p(_)})},function(){return v(function(y){return y.complete()})},function(y){return v(function(_){return _.error(y)})})),function(){l=null}})}Oh.windowTime=f5});var VA=h(Ro=>{"use strict";var h5=Ro&&Ro.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.windowToggle=void 0;var p5=Ie(),g5=rt(),m5=w(),jA=q(),A_=I(),LA=Ce(),v5=mn();function y5(e,t){return m5.operate(function(n,r){var i=[],o=function(s){for(;0<i.length;)i.shift().error(s);r.error(s)};jA.innerFrom(e).subscribe(A_.createOperatorSubscriber(r,function(s){var a=new p5.Subject;i.push(a);var u=new g5.Subscription,c=function(){v5.arrRemove(i,a),a.complete(),u.unsubscribe()},l;try{l=jA.innerFrom(t(s))}catch(d){o(d);return}r.next(a.asObservable()),u.add(l.subscribe(A_.createOperatorSubscriber(r,c,LA.noop,o)))},LA.noop)),n.subscribe(A_.createOperatorSubscriber(r,function(s){var a,u,c=i.slice();try{for(var l=h5(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.next(s)}}catch(g){a={error:g}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}},function(){for(;0<i.length;)i.shift().complete();r.complete()},o,function(){for(;0<i.length;)i.shift().unsubscribe()}))})}Ro.windowToggle=y5});var UA=h(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.windowWhen=void 0;var _5=Ie(),b5=w(),qA=I(),D5=q();function w5(e){return b5.operate(function(t,n){var r,i,o=function(a){r.error(a),n.error(a)},s=function(){i?.unsubscribe(),r?.complete(),r=new _5.Subject,n.next(r.asObservable());var a;try{a=D5.innerFrom(e())}catch(u){o(u);return}a.subscribe(i=qA.createOperatorSubscriber(n,s,s,o))};s(),t.subscribe(qA.createOperatorSubscriber(n,function(a){return r.next(a)},function(){r.complete(),n.complete()},o,function(){i?.unsubscribe(),r=null}))})}Ah.windowWhen=w5});var zA=h(hr=>{"use strict";var $A=hr&&hr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},BA=hr&&hr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(hr,"__esModule",{value:!0});hr.withLatestFrom=void 0;var E5=w(),HA=I(),M5=q(),C5=Se(),S5=Ce(),I5=Ke();function O5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=I5.popResultSelector(e);return E5.operate(function(r,i){for(var o=e.length,s=new Array(o),a=e.map(function(){return!1}),u=!1,c=function(d){M5.innerFrom(e[d]).subscribe(HA.createOperatorSubscriber(i,function(p){s[d]=p,!u&&!a[d]&&(a[d]=!0,(u=a.every(C5.identity))&&(a=null))},S5.noop))},l=0;l<o;l++)c(l);r.subscribe(HA.createOperatorSubscriber(i,function(d){if(u){var p=BA([d],$A(s));i.next(n?n.apply(void 0,BA([],$A(p))):p)}}))})}hr.withLatestFrom=O5});var WA=h(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.zipAll=void 0;var A5=Jd(),T5=h_();function x5(e){return T5.joinAllInternals(A5.zip,e)}Th.zipAll=x5});var GA=h(pr=>{"use strict";var N5=pr&&pr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},P5=pr&&pr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(pr,"__esModule",{value:!0});pr.zip=void 0;var F5=Jd(),R5=w();function k5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return R5.operate(function(n,r){F5.zip.apply(void 0,P5([n],N5(e))).subscribe(r)})}pr.zip=k5});var ZA=h(gr=>{"use strict";var j5=gr&&gr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},L5=gr&&gr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(gr,"__esModule",{value:!0});gr.zipWith=void 0;var V5=GA();function q5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return V5.zip.apply(void 0,L5([],j5(e)))}gr.zipWith=q5});var tT=h(f=>{"use strict";var U5=f&&f.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),$5=f&&f.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&U5(t,e,n)};Object.defineProperty(f,"__esModule",{value:!0});f.interval=f.iif=f.generate=f.fromEventPattern=f.fromEvent=f.from=f.forkJoin=f.empty=f.defer=f.connectable=f.concat=f.combineLatest=f.bindNodeCallback=f.bindCallback=f.UnsubscriptionError=f.TimeoutError=f.SequenceError=f.ObjectUnsubscribedError=f.NotFoundError=f.EmptyError=f.ArgumentOutOfRangeError=f.firstValueFrom=f.lastValueFrom=f.isObservable=f.identity=f.noop=f.pipe=f.NotificationKind=f.Notification=f.Subscriber=f.Subscription=f.Scheduler=f.VirtualAction=f.VirtualTimeScheduler=f.animationFrameScheduler=f.animationFrame=f.queueScheduler=f.queue=f.asyncScheduler=f.async=f.asapScheduler=f.asap=f.AsyncSubject=f.ReplaySubject=f.BehaviorSubject=f.Subject=f.animationFrames=f.observable=f.ConnectableObservable=f.Observable=void 0;f.filter=f.expand=f.exhaustMap=f.exhaustAll=f.exhaust=f.every=f.endWith=f.elementAt=f.distinctUntilKeyChanged=f.distinctUntilChanged=f.distinct=f.dematerialize=f.delayWhen=f.delay=f.defaultIfEmpty=f.debounceTime=f.debounce=f.count=f.connect=f.concatWith=f.concatMapTo=f.concatMap=f.concatAll=f.combineLatestWith=f.combineLatestAll=f.combineAll=f.catchError=f.bufferWhen=f.bufferToggle=f.bufferTime=f.bufferCount=f.buffer=f.auditTime=f.audit=f.config=f.NEVER=f.EMPTY=f.scheduled=f.zip=f.using=f.timer=f.throwError=f.range=f.race=f.partition=f.pairs=f.onErrorResumeNext=f.of=f.never=f.merge=void 0;f.switchMap=f.switchAll=f.subscribeOn=f.startWith=f.skipWhile=f.skipUntil=f.skipLast=f.skip=f.single=f.shareReplay=f.share=f.sequenceEqual=f.scan=f.sampleTime=f.sample=f.refCount=f.retryWhen=f.retry=f.repeatWhen=f.repeat=f.reduce=f.raceWith=f.publishReplay=f.publishLast=f.publishBehavior=f.publish=f.pluck=f.pairwise=f.onErrorResumeNextWith=f.observeOn=f.multicast=f.min=f.mergeWith=f.mergeScan=f.mergeMapTo=f.mergeMap=f.flatMap=f.mergeAll=f.max=f.materialize=f.mapTo=f.map=f.last=f.isEmpty=f.ignoreElements=f.groupBy=f.first=f.findIndex=f.find=f.finalize=void 0;f.zipWith=f.zipAll=f.withLatestFrom=f.windowWhen=f.windowToggle=f.windowTime=f.windowCount=f.window=f.toArray=f.timestamp=f.timeoutWith=f.timeout=f.timeInterval=f.throwIfEmpty=f.throttleTime=f.throttle=f.tap=f.takeWhile=f.takeUntil=f.takeLast=f.take=f.switchScan=f.switchMapTo=void 0;var B5=ne();Object.defineProperty(f,"Observable",{enumerable:!0,get:function(){return B5.Observable}});var H5=Qs();Object.defineProperty(f,"ConnectableObservable",{enumerable:!0,get:function(){return H5.ConnectableObservable}});var z5=Zs();Object.defineProperty(f,"observable",{enumerable:!0,get:function(){return z5.observable}});var W5=XC();Object.defineProperty(f,"animationFrames",{enumerable:!0,get:function(){return W5.animationFrames}});var G5=Ie();Object.defineProperty(f,"Subject",{enumerable:!0,get:function(){return G5.Subject}});var Z5=Py();Object.defineProperty(f,"BehaviorSubject",{enumerable:!0,get:function(){return Z5.BehaviorSubject}});var Y5=Ll();Object.defineProperty(f,"ReplaySubject",{enumerable:!0,get:function(){return Y5.ReplaySubject}});var Q5=Vl();Object.defineProperty(f,"AsyncSubject",{enumerable:!0,get:function(){return Q5.AsyncSubject}});var YA=mS();Object.defineProperty(f,"asap",{enumerable:!0,get:function(){return YA.asap}});Object.defineProperty(f,"asapScheduler",{enumerable:!0,get:function(){return YA.asapScheduler}});var QA=Je();Object.defineProperty(f,"async",{enumerable:!0,get:function(){return QA.async}});Object.defineProperty(f,"asyncScheduler",{enumerable:!0,get:function(){return QA.asyncScheduler}});var JA=_S();Object.defineProperty(f,"queue",{enumerable:!0,get:function(){return JA.queue}});Object.defineProperty(f,"queueScheduler",{enumerable:!0,get:function(){return JA.queueScheduler}});var KA=ES();Object.defineProperty(f,"animationFrame",{enumerable:!0,get:function(){return KA.animationFrame}});Object.defineProperty(f,"animationFrameScheduler",{enumerable:!0,get:function(){return KA.animationFrameScheduler}});var XA=SS();Object.defineProperty(f,"VirtualTimeScheduler",{enumerable:!0,get:function(){return XA.VirtualTimeScheduler}});Object.defineProperty(f,"VirtualAction",{enumerable:!0,get:function(){return XA.VirtualAction}});var J5=Ry();Object.defineProperty(f,"Scheduler",{enumerable:!0,get:function(){return J5.Scheduler}});var K5=rt();Object.defineProperty(f,"Subscription",{enumerable:!0,get:function(){return K5.Subscription}});var X5=eo();Object.defineProperty(f,"Subscriber",{enumerable:!0,get:function(){return X5.Subscriber}});var eT=dd();Object.defineProperty(f,"Notification",{enumerable:!0,get:function(){return eT.Notification}});Object.defineProperty(f,"NotificationKind",{enumerable:!0,get:function(){return eT.NotificationKind}});var e9=Ys();Object.defineProperty(f,"pipe",{enumerable:!0,get:function(){return e9.pipe}});var t9=Ce();Object.defineProperty(f,"noop",{enumerable:!0,get:function(){return t9.noop}});var n9=Se();Object.defineProperty(f,"identity",{enumerable:!0,get:function(){return n9.identity}});var r9=BS();Object.defineProperty(f,"isObservable",{enumerable:!0,get:function(){return r9.isObservable}});var i9=HS();Object.defineProperty(f,"lastValueFrom",{enumerable:!0,get:function(){return i9.lastValueFrom}});var o9=zS();Object.defineProperty(f,"firstValueFrom",{enumerable:!0,get:function(){return o9.firstValueFrom}});var s9=Qy();Object.defineProperty(f,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return s9.ArgumentOutOfRangeError}});var a9=Jn();Object.defineProperty(f,"EmptyError",{enumerable:!0,get:function(){return a9.EmptyError}});var u9=Jy();Object.defineProperty(f,"NotFoundError",{enumerable:!0,get:function(){return u9.NotFoundError}});var c9=Ay();Object.defineProperty(f,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return c9.ObjectUnsubscribedError}});var l9=Ky();Object.defineProperty(f,"SequenceError",{enumerable:!0,get:function(){return l9.SequenceError}});var d9=Dd();Object.defineProperty(f,"TimeoutError",{enumerable:!0,get:function(){return d9.TimeoutError}});var f9=my();Object.defineProperty(f,"UnsubscriptionError",{enumerable:!0,get:function(){return f9.UnsubscriptionError}});var h9=GS();Object.defineProperty(f,"bindCallback",{enumerable:!0,get:function(){return h9.bindCallback}});var p9=ZS();Object.defineProperty(f,"bindNodeCallback",{enumerable:!0,get:function(){return p9.bindNodeCallback}});var g9=Id();Object.defineProperty(f,"combineLatest",{enumerable:!0,get:function(){return g9.combineLatest}});var m9=ra();Object.defineProperty(f,"concat",{enumerable:!0,get:function(){return m9.concat}});var v9=nI();Object.defineProperty(f,"connectable",{enumerable:!0,get:function(){return v9.connectable}});var y9=ia();Object.defineProperty(f,"defer",{enumerable:!0,get:function(){return y9.defer}});var _9=At();Object.defineProperty(f,"empty",{enumerable:!0,get:function(){return _9.empty}});var b9=rI();Object.defineProperty(f,"forkJoin",{enumerable:!0,get:function(){return b9.forkJoin}});var D9=yn();Object.defineProperty(f,"from",{enumerable:!0,get:function(){return D9.from}});var w9=oI();Object.defineProperty(f,"fromEvent",{enumerable:!0,get:function(){return w9.fromEvent}});var E9=aI();Object.defineProperty(f,"fromEventPattern",{enumerable:!0,get:function(){return E9.fromEventPattern}});var M9=cI();Object.defineProperty(f,"generate",{enumerable:!0,get:function(){return M9.generate}});var C9=lI();Object.defineProperty(f,"iif",{enumerable:!0,get:function(){return C9.iif}});var S9=i_();Object.defineProperty(f,"interval",{enumerable:!0,get:function(){return S9.interval}});var I9=fI();Object.defineProperty(f,"merge",{enumerable:!0,get:function(){return I9.merge}});var O9=o_();Object.defineProperty(f,"never",{enumerable:!0,get:function(){return O9.never}});var A9=cd();Object.defineProperty(f,"of",{enumerable:!0,get:function(){return A9.of}});var T9=s_();Object.defineProperty(f,"onErrorResumeNext",{enumerable:!0,get:function(){return T9.onErrorResumeNext}});var x9=pI();Object.defineProperty(f,"pairs",{enumerable:!0,get:function(){return x9.pairs}});var N9=yI();Object.defineProperty(f,"partition",{enumerable:!0,get:function(){return N9.partition}});var P9=a_();Object.defineProperty(f,"race",{enumerable:!0,get:function(){return P9.race}});var F9=DI();Object.defineProperty(f,"range",{enumerable:!0,get:function(){return F9.range}});var R9=Yy();Object.defineProperty(f,"throwError",{enumerable:!0,get:function(){return R9.throwError}});var k9=nr();Object.defineProperty(f,"timer",{enumerable:!0,get:function(){return k9.timer}});var j9=wI();Object.defineProperty(f,"using",{enumerable:!0,get:function(){return j9.using}});var L9=Jd();Object.defineProperty(f,"zip",{enumerable:!0,get:function(){return L9.zip}});var V9=Zy();Object.defineProperty(f,"scheduled",{enumerable:!0,get:function(){return V9.scheduled}});var q9=At();Object.defineProperty(f,"EMPTY",{enumerable:!0,get:function(){return q9.EMPTY}});var U9=o_();Object.defineProperty(f,"NEVER",{enumerable:!0,get:function(){return U9.NEVER}});$5(MI(),f);var $9=Ki();Object.defineProperty(f,"config",{enumerable:!0,get:function(){return $9.config}});var B9=u_();Object.defineProperty(f,"audit",{enumerable:!0,get:function(){return B9.audit}});var H9=SI();Object.defineProperty(f,"auditTime",{enumerable:!0,get:function(){return H9.auditTime}});var z9=OI();Object.defineProperty(f,"buffer",{enumerable:!0,get:function(){return z9.buffer}});var W9=AI();Object.defineProperty(f,"bufferCount",{enumerable:!0,get:function(){return W9.bufferCount}});var G9=xI();Object.defineProperty(f,"bufferTime",{enumerable:!0,get:function(){return G9.bufferTime}});var Z9=FI();Object.defineProperty(f,"bufferToggle",{enumerable:!0,get:function(){return Z9.bufferToggle}});var Y9=kI();Object.defineProperty(f,"bufferWhen",{enumerable:!0,get:function(){return Y9.bufferWhen}});var Q9=LI();Object.defineProperty(f,"catchError",{enumerable:!0,get:function(){return Q9.catchError}});var J9=VI();Object.defineProperty(f,"combineAll",{enumerable:!0,get:function(){return J9.combineAll}});var K9=p_();Object.defineProperty(f,"combineLatestAll",{enumerable:!0,get:function(){return K9.combineLatestAll}});var X9=HI();Object.defineProperty(f,"combineLatestWith",{enumerable:!0,get:function(){return X9.combineLatestWith}});var e7=Pd();Object.defineProperty(f,"concatAll",{enumerable:!0,get:function(){return e7.concatAll}});var t7=g_();Object.defineProperty(f,"concatMap",{enumerable:!0,get:function(){return t7.concatMap}});var n7=GI();Object.defineProperty(f,"concatMapTo",{enumerable:!0,get:function(){return n7.concatMapTo}});var r7=YI();Object.defineProperty(f,"concatWith",{enumerable:!0,get:function(){return r7.concatWith}});var i7=pf();Object.defineProperty(f,"connect",{enumerable:!0,get:function(){return i7.connect}});var o7=JI();Object.defineProperty(f,"count",{enumerable:!0,get:function(){return o7.count}});var s7=XI();Object.defineProperty(f,"debounce",{enumerable:!0,get:function(){return s7.debounce}});var a7=eO();Object.defineProperty(f,"debounceTime",{enumerable:!0,get:function(){return a7.debounceTime}});var u7=oa();Object.defineProperty(f,"defaultIfEmpty",{enumerable:!0,get:function(){return u7.defaultIfEmpty}});var c7=rO();Object.defineProperty(f,"delay",{enumerable:!0,get:function(){return c7.delay}});var l7=y_();Object.defineProperty(f,"delayWhen",{enumerable:!0,get:function(){return l7.delayWhen}});var d7=iO();Object.defineProperty(f,"dematerialize",{enumerable:!0,get:function(){return d7.dematerialize}});var f7=sO();Object.defineProperty(f,"distinct",{enumerable:!0,get:function(){return f7.distinct}});var h7=__();Object.defineProperty(f,"distinctUntilChanged",{enumerable:!0,get:function(){return h7.distinctUntilChanged}});var p7=aO();Object.defineProperty(f,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return p7.distinctUntilKeyChanged}});var g7=cO();Object.defineProperty(f,"elementAt",{enumerable:!0,get:function(){return g7.elementAt}});var m7=lO();Object.defineProperty(f,"endWith",{enumerable:!0,get:function(){return m7.endWith}});var v7=dO();Object.defineProperty(f,"every",{enumerable:!0,get:function(){return v7.every}});var y7=gO();Object.defineProperty(f,"exhaust",{enumerable:!0,get:function(){return y7.exhaust}});var _7=D_();Object.defineProperty(f,"exhaustAll",{enumerable:!0,get:function(){return _7.exhaustAll}});var b7=b_();Object.defineProperty(f,"exhaustMap",{enumerable:!0,get:function(){return b7.exhaustMap}});var D7=mO();Object.defineProperty(f,"expand",{enumerable:!0,get:function(){return D7.expand}});var w7=Qr();Object.defineProperty(f,"filter",{enumerable:!0,get:function(){return w7.filter}});var E7=vO();Object.defineProperty(f,"finalize",{enumerable:!0,get:function(){return E7.finalize}});var M7=w_();Object.defineProperty(f,"find",{enumerable:!0,get:function(){return M7.find}});var C7=_O();Object.defineProperty(f,"findIndex",{enumerable:!0,get:function(){return C7.findIndex}});var S7=bO();Object.defineProperty(f,"first",{enumerable:!0,get:function(){return S7.first}});var I7=wO();Object.defineProperty(f,"groupBy",{enumerable:!0,get:function(){return I7.groupBy}});var O7=m_();Object.defineProperty(f,"ignoreElements",{enumerable:!0,get:function(){return O7.ignoreElements}});var A7=EO();Object.defineProperty(f,"isEmpty",{enumerable:!0,get:function(){return A7.isEmpty}});var T7=MO();Object.defineProperty(f,"last",{enumerable:!0,get:function(){return T7.last}});var x7=Kn();Object.defineProperty(f,"map",{enumerable:!0,get:function(){return x7.map}});var N7=v_();Object.defineProperty(f,"mapTo",{enumerable:!0,get:function(){return N7.mapTo}});var P7=CO();Object.defineProperty(f,"materialize",{enumerable:!0,get:function(){return P7.materialize}});var F7=SO();Object.defineProperty(f,"max",{enumerable:!0,get:function(){return F7.max}});var R7=na();Object.defineProperty(f,"mergeAll",{enumerable:!0,get:function(){return R7.mergeAll}});var k7=IO();Object.defineProperty(f,"flatMap",{enumerable:!0,get:function(){return k7.flatMap}});var j7=bn();Object.defineProperty(f,"mergeMap",{enumerable:!0,get:function(){return j7.mergeMap}});var L7=AO();Object.defineProperty(f,"mergeMapTo",{enumerable:!0,get:function(){return L7.mergeMapTo}});var V7=TO();Object.defineProperty(f,"mergeScan",{enumerable:!0,get:function(){return V7.mergeScan}});var q7=PO();Object.defineProperty(f,"mergeWith",{enumerable:!0,get:function(){return q7.mergeWith}});var U7=FO();Object.defineProperty(f,"min",{enumerable:!0,get:function(){return U7.min}});var $7=Zf();Object.defineProperty(f,"multicast",{enumerable:!0,get:function(){return $7.multicast}});var B7=ea();Object.defineProperty(f,"observeOn",{enumerable:!0,get:function(){return B7.observeOn}});var H7=jO();Object.defineProperty(f,"onErrorResumeNextWith",{enumerable:!0,get:function(){return H7.onErrorResumeNextWith}});var z7=LO();Object.defineProperty(f,"pairwise",{enumerable:!0,get:function(){return z7.pairwise}});var W7=VO();Object.defineProperty(f,"pluck",{enumerable:!0,get:function(){return W7.pluck}});var G7=qO();Object.defineProperty(f,"publish",{enumerable:!0,get:function(){return G7.publish}});var Z7=UO();Object.defineProperty(f,"publishBehavior",{enumerable:!0,get:function(){return Z7.publishBehavior}});var Y7=$O();Object.defineProperty(f,"publishLast",{enumerable:!0,get:function(){return Y7.publishLast}});var Q7=HO();Object.defineProperty(f,"publishReplay",{enumerable:!0,get:function(){return Q7.publishReplay}});var J7=zO();Object.defineProperty(f,"raceWith",{enumerable:!0,get:function(){return J7.raceWith}});var K7=To();Object.defineProperty(f,"reduce",{enumerable:!0,get:function(){return K7.reduce}});var X7=GO();Object.defineProperty(f,"repeat",{enumerable:!0,get:function(){return X7.repeat}});var eZ=YO();Object.defineProperty(f,"repeatWhen",{enumerable:!0,get:function(){return eZ.repeatWhen}});var tZ=JO();Object.defineProperty(f,"retry",{enumerable:!0,get:function(){return tZ.retry}});var nZ=XO();Object.defineProperty(f,"retryWhen",{enumerable:!0,get:function(){return nZ.retryWhen}});var rZ=Iy();Object.defineProperty(f,"refCount",{enumerable:!0,get:function(){return rZ.refCount}});var iZ=C_();Object.defineProperty(f,"sample",{enumerable:!0,get:function(){return iZ.sample}});var oZ=tA();Object.defineProperty(f,"sampleTime",{enumerable:!0,get:function(){return oZ.sampleTime}});var sZ=nA();Object.defineProperty(f,"scan",{enumerable:!0,get:function(){return sZ.scan}});var aZ=iA();Object.defineProperty(f,"sequenceEqual",{enumerable:!0,get:function(){return aZ.sequenceEqual}});var uZ=I_();Object.defineProperty(f,"share",{enumerable:!0,get:function(){return uZ.share}});var cZ=aA();Object.defineProperty(f,"shareReplay",{enumerable:!0,get:function(){return cZ.shareReplay}});var lZ=uA();Object.defineProperty(f,"single",{enumerable:!0,get:function(){return lZ.single}});var dZ=cA();Object.defineProperty(f,"skip",{enumerable:!0,get:function(){return dZ.skip}});var fZ=lA();Object.defineProperty(f,"skipLast",{enumerable:!0,get:function(){return fZ.skipLast}});var hZ=fA();Object.defineProperty(f,"skipUntil",{enumerable:!0,get:function(){return hZ.skipUntil}});var pZ=hA();Object.defineProperty(f,"skipWhile",{enumerable:!0,get:function(){return pZ.skipWhile}});var gZ=gA();Object.defineProperty(f,"startWith",{enumerable:!0,get:function(){return gZ.startWith}});var mZ=ta();Object.defineProperty(f,"subscribeOn",{enumerable:!0,get:function(){return mZ.subscribeOn}});var vZ=vA();Object.defineProperty(f,"switchAll",{enumerable:!0,get:function(){return vZ.switchAll}});var yZ=ua();Object.defineProperty(f,"switchMap",{enumerable:!0,get:function(){return yZ.switchMap}});var _Z=_A();Object.defineProperty(f,"switchMapTo",{enumerable:!0,get:function(){return _Z.switchMapTo}});var bZ=bA();Object.defineProperty(f,"switchScan",{enumerable:!0,get:function(){return bZ.switchScan}});var DZ=sa();Object.defineProperty(f,"take",{enumerable:!0,get:function(){return DZ.take}});var wZ=E_();Object.defineProperty(f,"takeLast",{enumerable:!0,get:function(){return wZ.takeLast}});var EZ=DA();Object.defineProperty(f,"takeUntil",{enumerable:!0,get:function(){return EZ.takeUntil}});var MZ=wA();Object.defineProperty(f,"takeWhile",{enumerable:!0,get:function(){return MZ.takeWhile}});var CZ=EA();Object.defineProperty(f,"tap",{enumerable:!0,get:function(){return CZ.tap}});var SZ=O_();Object.defineProperty(f,"throttle",{enumerable:!0,get:function(){return SZ.throttle}});var IZ=CA();Object.defineProperty(f,"throttleTime",{enumerable:!0,get:function(){return IZ.throttleTime}});var OZ=aa();Object.defineProperty(f,"throwIfEmpty",{enumerable:!0,get:function(){return OZ.throwIfEmpty}});var AZ=IA();Object.defineProperty(f,"timeInterval",{enumerable:!0,get:function(){return AZ.timeInterval}});var TZ=Dd();Object.defineProperty(f,"timeout",{enumerable:!0,get:function(){return TZ.timeout}});var xZ=OA();Object.defineProperty(f,"timeoutWith",{enumerable:!0,get:function(){return xZ.timeoutWith}});var NZ=AA();Object.defineProperty(f,"timestamp",{enumerable:!0,get:function(){return NZ.timestamp}});var PZ=f_();Object.defineProperty(f,"toArray",{enumerable:!0,get:function(){return PZ.toArray}});var FZ=NA();Object.defineProperty(f,"window",{enumerable:!0,get:function(){return FZ.window}});var RZ=FA();Object.defineProperty(f,"windowCount",{enumerable:!0,get:function(){return RZ.windowCount}});var kZ=kA();Object.defineProperty(f,"windowTime",{enumerable:!0,get:function(){return kZ.windowTime}});var jZ=VA();Object.defineProperty(f,"windowToggle",{enumerable:!0,get:function(){return jZ.windowToggle}});var LZ=UA();Object.defineProperty(f,"windowWhen",{enumerable:!0,get:function(){return LZ.windowWhen}});var VZ=zA();Object.defineProperty(f,"withLatestFrom",{enumerable:!0,get:function(){return VZ.withLatestFrom}});var qZ=WA();Object.defineProperty(f,"zipAll",{enumerable:!0,get:function(){return qZ.zipAll}});var UZ=ZA();Object.defineProperty(f,"zipWith",{enumerable:!0,get:function(){return UZ.zipWith}})});var rT=h(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.DyFM_Poll=void 0;var $Z=tT(),xh=_l(),nT=Ps(),BZ=fv(),T_=class{name;poll;running;pollDo;pollWhile;pollEnd;pollDoError;args;pollDelay=0;pollPeriod=3*nT.second;stopOnFail=!1;delayFirst=!1;constructor(t){try{Object.assign(this,t),t.pollPeriod===0&&(console.error("DYNAMO ERROR: creating polls with 0ms period is not supported! (it will reset to 1000ms (1s))"),this.pollPeriod=1*nT.second),this.pollPeriod<300&&console.warn("DYNAMO WARNING: creating polls with less than 300ms period is not recommended!"),this.name=t.name??"Unnamed DyFM_Poll",this.stopOnFail=t.stopOnFail,this.startPoll(this.args)}catch{throw new xh.DyFM_Error({message:"DyFM_Poll construcion failed."})}}startPoll(...t){return we(this,null,function*(){try{this.delayFirst&&(yield BZ.DyFM_Async.wait(this.pollDelay)),this.poll=(0,$Z.timer)(this.pollDelay,this.pollPeriod).subscribe(()=>we(this,null,function*(){yield this.pollDo(...t).then(n=>{this.pollWhile(n)||this.end(n)}).catch(n=>{if(this.stopOnFail&&this.stop(),this.pollDoError)this.pollDoError(n);else throw new xh.DyFM_Error({message:`DYNAMO ERROR:
|
|
208
|
+
DynamoPoll: "${this.name}" pollDo was UNSUCCESSFUL`,error:n})})})),this.running=!0}catch(n){throw new xh.DyFM_Error({message:`DYNAMO ERROR:
|
|
209
|
+
DynamoPoll: startPoll was UNSUCCESSFUL`,error:n})}})}restartPoll(t){try{t?this.startPoll(t):this.startPoll(this.args)}catch(n){throw new xh.DyFM_Error({message:`DYNAMO ERROR:
|
|
210
|
+
DynamoPoll: restartPoll was UNSUCCESSFUL`,error:n})}}stop(){this.poll.unsubscribe(),this.running=!1}end(t){this.poll.unsubscribe(),this.pollEnd?.(t),this.running=!1}};Nh.DyFM_Poll=T_});var iT=h(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.DyFM_RangeValue=void 0;var x_=class e{isRange=!0;from;to;constructor(t,n){if(t?.isRange){this.from=t.from,this.to=t.to;return}else this.from=t,this.to=n??t}constructed(){return!0}newValues(t){this.from=t.from,this.to=t.to}addRange(t){this.from+=t.from,this.to+=t.to}subtractRange(t){this.from-=t.from,this.to-=t.to}multiplyRange(t){this.from*=t.from,this.to*=t.to}divideRange(t){this.from/=t.from,this.to/=t.to}add(t){this.from+=t,this.to+=t}subtract(t){this.from-=t,this.to-=t}multiply(t){this.from*=t,this.to*=t}divide(t){this.from/=t,this.to/=t}clone(){return new e(this.from,this.to)}applyTransform(t){return new e(t(this.from),t(this.to))}toString=this.stringify;stringify(t=!0,n=!0){return n&&this.from===this.to?`${this.from}`:t?`${this.from} - ${this.to}`:`${this.from}-${this.to}`}static reType(t){return new e(t.from,t.to)}static addRange(t,n){return new e(t.from+n.from,t.to+n.to)}static subtractRange(t,n){return new e(t.from-n.from,t.to-n.to)}static multiplyRange(t,n){return new e(t.from*n.from,t.to*n.to)}static divideRange(t,n){return new e(t.from/n.from,t.to/n.to)}static add(t,n){return new e(t.from+n,t.to+n)}static subtract(t,n){return new e(t.from-n,t.to-n)}static multiply(t,n){return new e(t.from*n,t.to*n)}static divide(t,n){return new e(t.from/n,t.to/n)}static isInRange(t,n){return n.from<=t&&t<=n.to}};Ph.DyFM_RangeValue=x_});var oT=h(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DyFM_serverStatus_dataParams=ko.DyFM_ServerStatus=void 0;var HZ=sT(),zZ=Gi(),N_=class extends zZ.DyFM_Metadata{status;systemName;systemShortCode;clientVersionOk;latestClientVersion;latestClientVersionNumeric;serverVersion;serverNumericVersion;uptime;serverMessage;memoryUsage;cpuUsage;serverConnections;constructor(t){super(t),t&&Object.assign(this,t)}};ko.DyFM_ServerStatus=N_;ko.DyFM_serverStatus_dataParams=new HZ.DyFM_DataModel_Params({dataName:"server_status",properties:{status:{type:"string"},systemName:{type:"string"},systemShortCode:{type:"string"},clientVersionOk:{type:"boolean"},latestClientVersion:{type:"string"},latestClientVersionNumeric:{type:"number"},serverVersion:{type:"string"},serverNumericVersion:{type:"number"},uptime:{type:"number"},serverMessage:{type:"string"},memoryUsage:{type:"object"},cpuUsage:{type:"object"},serverConnections:{type:"object"}}})});var uT=h(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DyFM_API_Input_Type=mr.DyFM_ServerRoute_SettingsBase=mr.DyFM_Endpoint_SettingsBase=void 0;var WZ=Bi(),Fh=class{name;type;endpoint;pathParamKeys=[];constructor(t){if(!t.endpoint)throw new Error(`endpoint not setted up for this endpoint (${t.name??(0,WZ.DyFM_getConstructionStackLocation)()})`);t.endpoint.includes("{")&&(console.warn(`using {param} brackets in endpoint definitions will be deprecated...
|
|
211
|
+
use :param instead ({pathParam} --> :pathParam) (${t.name})`),t.endpoint=t.endpoint.replace(/{/g,":").replace(/}/g,"")),Object.assign(this,t),this.pathParamKeys=this.endpoint.split("/").filter(n=>n.startsWith(":")).map(n=>n.replace(":",""))}};mr.DyFM_Endpoint_SettingsBase=Fh;var P_=class extends Fh{preProcesses;tasks;simpleTask;constructor(t){super(t),Object.assign(this,t)}};mr.DyFM_ServerRoute_SettingsBase=P_;var aT=function(e){return e.body="body",e.queryParams="queryParams",e}(aT||(mr.DyFM_API_Input_Type=aT={}))});var cT=h(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.DyFM_errors_dataParams=Dn.DyFM_Errors=Dn.DyFM_errorsFlag=void 0;var GZ=gy(),ZZ=Gi();Dn.DyFM_errorsFlag="DyFM-ERRORS-OBJECT";var F_=class extends ZZ.DyFM_Metadata{flag=Dn.DyFM_errorsFlag;source;issuer;username;version;localTime;region;message;exception;exceptionObj;stackTrace;error;count=1;d_error;additionalContent;level;priority;duplications=[];constructor(t){super(t),t&&Object.assign(this,t)}};Dn.DyFM_Errors=F_;Dn.DyFM_errors_dataParams=new GZ.DyFM_DataModel_Params({dataName:"errors",properties:{flag:{type:"string"},issuer:{type:"string"},username:{type:"string"},version:{type:"string"},localTime:{type:"string"},region:{type:"string"},message:{type:"string"},exception:{type:"string"},exceptionObj:{type:"any"},stackTrace:{type:"string[]"},error:{type:"any"},count:{type:"number"},d_error:{type:"DyFM_Error"},additionalContent:{type:"any"},level:{type:"DyFM_ErrorLevel"},priority:{type:"number"},duplications:{type:"DyNTS_Error[]"}}})});var dT=h(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0})});var hT=h(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0})});var gT=h(pT=>{"use strict";Object.defineProperty(pT,"__esModule",{value:!0})});var vT=h(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0})});var _T=h(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0})});var DT=h(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0})});var ET=h(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0})});var CT=h(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0})});var IT=h(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0})});var AT=h(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0})});var xT=h(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:!0})});var PT=h(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0})});var RT=h(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0})});var jT=h(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.DyFM_SpecialSearch_Type=void 0;var kT=function(e){return e.stringListSearchAny="stringListSearchAny",e.stringListSearch="stringListSearch",e.stringListSearchOrdered="stringListSearchOrdered",e}(kT||(Rh.DyFM_SpecialSearch_Type=kT={}))});var VT=h(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0})});var sT=h(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var M=(Jm(),Ob(Qm));M.__exportStar(Km(),E);M.__exportStar(Xm(),E);M.__exportStar(EM(),E);M.__exportStar(MM(),E);M.__exportStar(Ps(),E);M.__exportStar(CM(),E);M.__exportStar(fv(),E);M.__exportStar(AM(),E);M.__exportStar(gv(),E);M.__exportStar(qt(),E);M.__exportStar(TM(),E);M.__exportStar(Yc(),E);M.__exportStar(Bi(),E);M.__exportStar(bv(),E);M.__exportStar(yv(),E);M.__exportStar(cv(),E);M.__exportStar(xM(),E);M.__exportStar(Ev(),E);M.__exportStar(aC(),E);M.__exportStar(cC(),E);M.__exportStar(Rs(),E);M.__exportStar(lC(),E);M.__exportStar(Yv(),E);M.__exportStar(Jv(),E);M.__exportStar(dC(),E);M.__exportStar(fC(),E);M.__exportStar(hC(),E);M.__exportStar(ks(),E);M.__exportStar(ty(),E);M.__exportStar(pC(),E);M.__exportStar(ry(),E);M.__exportStar(Fs(),E);M.__exportStar(vC(),E);M.__exportStar(bC(),E);M.__exportStar(wC(),E);M.__exportStar(MC(),E);M.__exportStar(iv(),E);M.__exportStar(rv(),E);M.__exportStar(ov(),E);M.__exportStar(gy(),E);M.__exportStar(sy(),E);M.__exportStar(_l(),E);M.__exportStar(rT(),E);M.__exportStar(iT(),E);M.__exportStar(oT(),E);M.__exportStar(uT(),E);M.__exportStar(fy(),E);M.__exportStar(uy(),E);M.__exportStar(ly(),E);M.__exportStar(cT(),E);M.__exportStar(Gi(),E);M.__exportStar(dT(),E);M.__exportStar(hT(),E);M.__exportStar(gT(),E);M.__exportStar(vT(),E);M.__exportStar(_T(),E);M.__exportStar(DT(),E);M.__exportStar(ET(),E);M.__exportStar(CT(),E);M.__exportStar(IT(),E);M.__exportStar(AT(),E);M.__exportStar(xT(),E);M.__exportStar(PT(),E);M.__exportStar(RT(),E);M.__exportStar(jT(),E);M.__exportStar(VT(),E)});function Ab(e,t){return Object.is(e,t)}var ge=null,Ra=!1,ka=1,Kt=Symbol("SIGNAL");function W(e){let t=ge;return ge=e,t}function Tb(){return ge}var es={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function fp(e){if(Ra)throw new Error("");if(ge===null)return;ge.consumerOnSignalRead(e);let t=ge.nextProducerIndex++;if(qa(ge),t<ge.producerNode.length&&ge.producerNode[t]!==e&&Xo(ge)){let n=ge.producerNode[t];Va(n,ge.producerIndexOfThis[t])}ge.producerNode[t]!==e&&(ge.producerNode[t]=e,ge.producerIndexOfThis[t]=Xo(ge)?Fb(e,ge,t):0),ge.producerLastReadVersion[t]=e.version}function a1(){ka++}function xb(e){if(!(Xo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ka)){if(!e.producerMustRecompute(e)&&!pp(e)){e.dirty=!1,e.lastCleanEpoch=ka;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ka}}function Nb(e){if(e.liveConsumerNode===void 0)return;let t=Ra;Ra=!0;try{for(let n of e.liveConsumerNode)n.dirty||u1(n)}finally{Ra=t}}function Pb(){return ge?.consumerAllowSignalWrites!==!1}function u1(e){e.dirty=!0,Nb(e),e.consumerMarkedDirty?.(e)}function La(e){return e&&(e.nextProducerIndex=0),W(e)}function hp(e,t){if(W(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Xo(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Va(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function pp(e){qa(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(xb(n),r!==n.version))return!0}return!1}function gp(e){if(qa(e),Xo(e))for(let t=0;t<e.producerNode.length;t++)Va(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Fb(e,t,n){if(Rb(e),e.liveConsumerNode.length===0&&kb(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Fb(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Va(e,t){if(Rb(e),e.liveConsumerNode.length===1&&kb(e))for(let r=0;r<e.producerNode.length;r++)Va(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];qa(i),i.producerIndexOfThis[r]=t}}function Xo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function qa(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Rb(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function kb(e){return e.producerNode!==void 0}function jb(e){let t=Object.create(c1);t.computation=e;let n=()=>{if(xb(t),fp(t),t.value===ja)throw t.error;return t.value};return n[Kt]=t,n}var lp=Symbol("UNSET"),dp=Symbol("COMPUTING"),ja=Symbol("ERRORED"),c1=B(D({},es),{value:lp,dirty:!0,error:null,equal:Ab,producerMustRecompute(e){return e.value===lp||e.value===dp},producerRecomputeValue(e){if(e.value===dp)throw new Error("Detected cycle in computations.");let t=e.value;e.value=dp;let n=La(e),r;try{r=e.computation()}catch(i){r=ja,e.error=i}finally{hp(e,n)}if(t!==lp&&t!==ja&&r!==ja&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function l1(){throw new Error}var Lb=l1;function Vb(){Lb()}function qb(e){Lb=e}var d1=null;function Ub(e){let t=Object.create(Bb);t.value=e;let n=()=>(fp(t),t.value);return n[Kt]=t,n}function mp(e,t){Pb()||Vb(),e.equal(e.value,t)||(e.value=t,f1(e))}function $b(e,t){Pb()||Vb(),mp(e,t(e.value))}var Bb=B(D({},es),{equal:Ab,value:void 0});function f1(e){e.version++,a1(),Nb(e),d1?.()}function j(e){return typeof e=="function"}function ti(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ua=ti(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
212
|
+
${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
|
|
213
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function ts(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var de=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(j(r))try{r()}catch(o){t=o instanceof Ua?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Hb(o)}catch(s){t=t??[],s instanceof Ua?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ua(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Hb(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ts(n,t)}remove(t){let{_finalizers:n}=this;n&&ts(n,t),t instanceof e&&t._removeParent(this)}};de.EMPTY=(()=>{let e=new de;return e.closed=!0,e})();var vp=de.EMPTY;function $a(e){return e instanceof de||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function Hb(e){j(e)?e():e.unsubscribe()}var mt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ni={setTimeout(e,t,...n){let{delegate:r}=ni;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ni;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ba(e){ni.setTimeout(()=>{let{onUnhandledError:t}=mt;if(t)t(e);else throw e})}function ns(){}var zb=yp("C",void 0,void 0);function Wb(e){return yp("E",void 0,e)}function Gb(e){return yp("N",e,void 0)}function yp(e,t,n){return{kind:e,value:t,error:n}}var Dr=null;function ri(e){if(mt.useDeprecatedSynchronousErrorHandling){let t=!Dr;if(t&&(Dr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Dr;if(Dr=null,n)throw r}}else e()}function Zb(e){mt.useDeprecatedSynchronousErrorHandling&&Dr&&(Dr.errorThrown=!0,Dr.error=e)}var wr=class extends de{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,$a(t)&&t.add(this)):this.destination=g1}static create(t,n,r){return new Mn(t,n,r)}next(t){this.isStopped?bp(Gb(t),this):this._next(t)}error(t){this.isStopped?bp(Wb(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?bp(zb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},h1=Function.prototype.bind;function _p(e,t){return h1.call(e,t)}var Dp=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ha(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ha(r)}else Ha(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ha(n)}}},Mn=class extends wr{constructor(t,n,r){super();let i;if(j(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&mt.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&_p(t.next,o),error:t.error&&_p(t.error,o),complete:t.complete&&_p(t.complete,o)}):i=t}this.destination=new Dp(i)}};function Ha(e){mt.useDeprecatedSynchronousErrorHandling?Zb(e):Ba(e)}function p1(e){throw e}function bp(e,t){let{onStoppedNotification:n}=mt;n&&ni.setTimeout(()=>n(e,t))}var g1={closed:!0,next:ns,error:p1,complete:ns};var ii=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xe(e){return e}function wp(...e){return Ep(e)}function Ep(e){return e.length===0?Xe:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var Z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=v1(n)?n:new Mn(n,r,i);return ri(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Yb(r),new r((i,o)=>{let s=new Mn({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ii](){return this}pipe(...n){return Ep(n)(this)}toPromise(n){return n=Yb(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Yb(e){var t;return(t=e??mt.Promise)!==null&&t!==void 0?t:Promise}function m1(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}function v1(e){return e&&e instanceof wr||m1(e)&&$a(e)}function Mp(e){return j(e?.lift)}function Y(e){return t=>{if(Mp(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function G(e,t,n,r,i){return new Cp(e,t,n,r,i)}var Cp=class extends wr{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function oi(){return Y((e,t)=>{let n=null;e._refCount++;let r=G(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var si=class extends Z{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Mp(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new de;let n=this.getSubject();t.add(this.source.subscribe(G(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=de.EMPTY)}return t}refCount(){return oi()(this)}};var Qb=ti(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class e extends Z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new za(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Qb}next(n){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?vp:(this.currentObservers=null,o.push(n),new de(()=>{this.currentObservers=null,ts(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new Z;return n.source=this,n}}return e.create=(t,n)=>new za(t,n),e})(),za=class extends ye{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:vp}};var Ee=class extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var et=new Z(e=>e.complete());function Jb(e){return e&&j(e.schedule)}function Kb(e){return e[e.length-1]}function Wa(e){return j(Kb(e))?e.pop():void 0}function Cn(e){return Jb(Kb(e))?e.pop():void 0}function e0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Xb(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Er(e){return this instanceof Er?(this.v=e,this):new Er(e)}function t0(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(g){return new Promise(function(m,v){o.push([p,g,m,v])>1||a(p,g)})})}function a(p,g){try{u(r[p](g))}catch(m){d(o[0][3],m)}}function u(p){p.value instanceof Er?Promise.resolve(p.value.v).then(c,l):d(o[0][2],p)}function c(p){a("next",p)}function l(p){a("throw",p)}function d(p,g){p(g),o.shift(),o.length&&a(o[0][0],o[0][1])}}function n0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Xb=="function"?Xb(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ga=e=>e&&typeof e.length=="number"&&typeof e!="function";function Za(e){return j(e?.then)}function Ya(e){return j(e[ii])}function Qa(e){return Symbol.asyncIterator&&j(e?.[Symbol.asyncIterator])}function Ja(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function y1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ka=y1();function Xa(e){return j(e?.[Ka])}function eu(e){return t0(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Er(n.read());if(i)return yield Er(void 0);yield yield Er(r)}}finally{n.releaseLock()}})}function tu(e){return j(e?.getReader)}function fe(e){if(e instanceof Z)return e;if(e!=null){if(Ya(e))return _1(e);if(Ga(e))return b1(e);if(Za(e))return D1(e);if(Qa(e))return r0(e);if(Xa(e))return w1(e);if(tu(e))return E1(e)}throw Ja(e)}function _1(e){return new Z(t=>{let n=e[ii]();if(j(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function b1(e){return new Z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function D1(e){return new Z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ba)})}function w1(e){return new Z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function r0(e){return new Z(t=>{M1(e,t).catch(n=>t.error(n))})}function E1(e){return r0(eu(e))}function M1(e,t){var n,r,i,o;return e0(this,void 0,void 0,function*(){try{for(n=n0(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Be(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function nu(e,t=0){return Y((n,r)=>{n.subscribe(G(r,i=>Be(r,e,()=>r.next(i),t),()=>Be(r,e,()=>r.complete(),t),i=>Be(r,e,()=>r.error(i),t)))})}function ru(e,t=0){return Y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function i0(e,t){return fe(e).pipe(ru(t),nu(t))}function o0(e,t){return fe(e).pipe(ru(t),nu(t))}function s0(e,t){return new Z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function a0(e,t){return new Z(n=>{let r;return Be(n,t,()=>{r=e[Ka](),Be(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>j(r?.return)&&r.return()})}function iu(e,t){if(!e)throw new Error("Iterable cannot be null");return new Z(n=>{Be(n,t,()=>{let r=e[Symbol.asyncIterator]();Be(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function u0(e,t){return iu(eu(e),t)}function c0(e,t){if(e!=null){if(Ya(e))return i0(e,t);if(Ga(e))return s0(e,t);if(Za(e))return o0(e,t);if(Qa(e))return iu(e,t);if(Xa(e))return a0(e,t);if(tu(e))return u0(e,t)}throw Ja(e)}function ae(e,t){return t?c0(e,t):fe(e)}function F(...e){let t=Cn(e);return ae(e,t)}function ai(e,t){let n=j(e)?e:()=>e,r=i=>i.error(n());return new Z(t?i=>t.schedule(r,0,i):r)}function Sp(e){return!!e&&(e instanceof Z||j(e.lift)&&j(e.subscribe))}var vt=ti(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function C1(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=new Mn({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new vt)}});e.subscribe(o)})}function V(e,t){return Y((n,r)=>{let i=0;n.subscribe(G(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:S1}=Array;function I1(e,t){return S1(t)?e(...t):e(t)}function ou(e){return V(t=>I1(e,t))}var{isArray:O1}=Array,{getPrototypeOf:A1,prototype:T1,keys:x1}=Object;function su(e){if(e.length===1){let t=e[0];if(O1(t))return{args:t,keys:null};if(N1(t)){let n=x1(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function N1(e){return e&&typeof e=="object"&&A1(e)===T1}function au(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function rs(...e){let t=Cn(e),n=Wa(e),{args:r,keys:i}=su(e);if(r.length===0)return ae([],t);let o=new Z(P1(r,t,i?s=>au(i,s):Xe));return n?o.pipe(ou(n)):o}function P1(e,t,n=Xe){return r=>{l0(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u<i;u++)l0(t,()=>{let c=ae(e[u],t),l=!1;c.subscribe(G(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function l0(e,t,n){e?Be(n,e,t):t()}function d0(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},g=v=>c<r?m(v):u.push(v),m=v=>{o&&t.next(v),c++;let y=!1;fe(n(v,l++)).subscribe(G(t,_=>{i?.(_),o?g(_):t.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;u.length&&c<r;){let _=u.shift();s?Be(t,s,()=>m(_)):m(_)}p()}catch(_){t.error(_)}}))};return e.subscribe(G(t,g,()=>{d=!0,p()})),()=>{a?.()}}function he(e,t,n=1/0){return j(t)?he((r,i)=>V((o,s)=>t(r,o,i,s))(fe(e(r,i))),n):(typeof t=="number"&&(n=t),Y((r,i)=>d0(r,i,e,n)))}function ui(e=1/0){return he(Xe,e)}function f0(){return ui(1)}function ci(...e){return f0()(ae(e,Cn(e)))}function uu(e){return new Z(t=>{fe(e()).subscribe(t)})}function Ip(...e){let t=Wa(e),{args:n,keys:r}=su(e),i=new Z(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l<s;l++){let d=!1;fe(n[l]).subscribe(G(o,p=>{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?au(r,a):a),o.complete())}))}});return t?i.pipe(ou(t)):i}function He(e,t){return Y((n,r)=>{let i=0;n.subscribe(G(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Sn(e){return Y((t,n)=>{let r=null,i=!1,o;r=t.subscribe(G(n,void 0,void 0,s=>{o=fe(e(s,Sn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function h0(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(G(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function Xt(e,t){return j(t)?he(e,t,1):he(e,1)}function In(e){return Y((t,n)=>{let r=!1;t.subscribe(G(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function en(e){return e<=0?()=>et:Y((t,n)=>{let r=0;t.subscribe(G(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Op(e){return V(()=>e)}function cu(e=F1){return Y((t,n)=>{let r=!1;t.subscribe(G(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function F1(){return new vt}function On(e){return Y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Nt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?He((i,o)=>e(i,o,r)):Xe,en(1),n?In(t):cu(()=>new vt))}function li(e){return e<=0?()=>et:Y((t,n)=>{let r=[];t.subscribe(G(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Ap(e,t){let n=arguments.length>=2;return r=>r.pipe(e?He((i,o)=>e(i,o,r)):Xe,li(1),n?In(t):cu(()=>new vt))}function Tp(e,t){return Y(h0(e,t,arguments.length>=2,!0))}function xp(...e){let t=Cn(e);return Y((n,r)=>{(t?ci(e,n,t):ci(e,n)).subscribe(r)})}function ze(e,t){return Y((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(G(r,u=>{i?.unsubscribe();let c=0,l=o++;fe(e(u,l)).subscribe(i=G(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Np(e){return Y((t,n)=>{fe(e).subscribe(G(n,()=>n.complete(),ns)),!n.closed&&t.subscribe(n)})}function _e(e,t,n){let r=j(e)||t||n?{next:e,error:t,complete:n}:e;return r?Y((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(G(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Xe}var K0="https://g.co/ng/security#xss",O=class extends Error{constructor(t,n){super(Zu(t,n)),this.code=t}};function Zu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function vs(e){return{toString:e}.toString()}var lu="__parameters__";function R1(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function X0(e,t,n){return vs(()=>{let r=R1(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(lu)?u[lu]:Object.defineProperty(u,lu,{value:[]})[lu];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var bt=globalThis;function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function k1(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function We(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(We).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
|
|
214
|
+
`);return n===-1?t:t.substring(0,n)}function p0(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var j1=re({__forward_ref__:re});function Nr(e){return e.__forward_ref__=Nr,e.toString=function(){return We(this())},e}function Re(e){return eD(e)?e():e}function eD(e){return typeof e=="function"&&e.hasOwnProperty(j1)&&e.__forward_ref__===Nr}function T(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function lt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yu(e){return g0(e,nD)||g0(e,rD)}function tD(e){return Yu(e)!==null}function g0(e,t){return e.hasOwnProperty(t)?e[t]:null}function L1(e){let t=e&&(e[nD]||e[rD]);return t||null}function m0(e){return e&&(e.hasOwnProperty(v0)||e.hasOwnProperty(V1))?e[v0]:null}var nD=re({\u0275prov:re}),v0=re({\u0275inj:re}),rD=re({ngInjectableDef:re}),V1=re({ngInjectorDef:re}),C=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=T({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function iD(e){return e&&!!e.\u0275providers}var q1=re({\u0275cmp:re}),U1=re({\u0275dir:re}),$1=re({\u0275pipe:re}),B1=re({\u0275mod:re}),bu=re({\u0275fac:re}),os=re({__NG_ELEMENT_ID__:re}),y0=re({__NG_ENV_ID__:re});function Mr(e){return typeof e=="string"?e:e==null?"":String(e)}function H1(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Mr(e)}function z1(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new O(-200,e)}function jg(e,t){throw new O(-201,!1)}var H=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(H||{}),Gp;function oD(){return Gp}function st(e){let t=Gp;return Gp=e,t}function sD(e,t,n){let r=Yu(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&H.Optional)return null;if(t!==void 0)return t;jg(e,"Injector")}var W1={},as=W1,Zp="__NG_DI_FLAG__",Du="ngTempTokenPath",G1="ngTokenPath",Z1=/\n/gm,Y1="\u0275",_0="__source",gi;function Q1(){return gi}function An(e){let t=gi;return gi=e,t}function J1(e,t=H.Default){if(gi===void 0)throw new O(-203,!1);return gi===null?sD(e,void 0,t):gi.get(e,t&H.Optional?null:void 0,t)}function x(e,t=H.Default){return(oD()||J1)(Re(e),t)}function b(e,t=H.Default){return x(e,Qu(t))}function Qu(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Yp(e){let t=[];for(let n=0;n<e.length;n++){let r=Re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new O(900,!1);let i,o=H.Default;for(let s=0;s<r.length;s++){let a=r[s],u=K1(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}t.push(x(i,o))}else t.push(x(r))}return t}function aD(e,t){return e[Zp]=t,e.prototype[Zp]=t,e}function K1(e){return e[Zp]}function X1(e,t,n,r){let i=e[Du];throw t[_0]&&i.unshift(t[_0]),e.message=eN(`
|
|
215
|
+
`+e.message,i,n,r),e[G1]=i,e[Du]=null,e}function eN(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
216
|
+
`&&e.charAt(1)==Y1?e.slice(2):e;let i=We(t);if(Array.isArray(t))i=t.map(We).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):We(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Z1,`
|
|
217
|
+
`)}`}var Lg=aD(X0("Optional"),8);var uD=aD(X0("SkipSelf"),4);function vi(e,t){let n=e.hasOwnProperty(bu);return n?e[bu]:null}function Vg(e,t){e.forEach(n=>Array.isArray(n)?Vg(n,t):t(n))}function cD(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wu(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function tN(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function nN(e,t,n){let r=ys(e,t);return r>=0?e[r|1]=n:(r=~r,tN(e,r,t,n)),r}function Pp(e,t){let n=ys(e,t);if(n>=0)return e[n|1]}function ys(e,t){return rN(e,t,1)}function rN(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var yi={},at=[],_i=new C(""),lD=new C("",-1),dD=new C(""),Eu=class{get(t,n=as){if(n===as){let r=new Error(`NullInjectorError: No provider for ${We(t)}!`);throw r.name="NullInjectorError",r}return n}},fD=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(fD||{}),Rt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Rt||{}),Nn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Nn||{});function iN(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Qp(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];oN(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function hD(e){return e===3||e===4||e===6}function oN(e){return e.charCodeAt(0)===64}function us(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?b0(e,n,i,null,t[++r]):b0(e,n,i,null,null))}}return e}function b0(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var pD="ng-template";function sN(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&iN(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(qg(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function qg(e){return e.type===4&&e.value!==pD}function aN(e,t,n){let r=e.type===4&&!n?pD:e.value;return t===r}function uN(e,t,n){let r=4,i=e.attrs,o=i!==null?dN(i):0,s=!1;for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="number"){if(!s&&!yt(r)&&!yt(u))return!1;if(s&&yt(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!aN(e,u,n)||u===""&&t.length===1){if(yt(r))return!1;s=!0}}else if(r&8){if(i===null||!sN(e,i,u,n)){if(yt(r))return!1;s=!0}}else{let c=t[++a],l=cN(u,i,qg(e),n);if(l===-1){if(yt(r))return!1;s=!0;continue}if(c!==""){let d;if(l>o?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(yt(r))return!1;s=!0}}}}return yt(r)||s}function yt(e){return(e&1)===0}function cN(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return fN(t,e)}function lN(e,t,n=!1){for(let r=0;r<t.length;r++)if(uN(e,t[r],n))return!0;return!1}function dN(e){for(let t=0;t<e.length;t++){let n=e[t];if(hD(n))return t}return e.length}function fN(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function D0(e,t){return e?":not("+t.trim()+")":t}function hN(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!yt(s)&&(t+=D0(o,i),i=""),r=s,o=o||!yt(r);n++}return i!==""&&(t+=D0(o,i)),t}function pN(e){return e.map(hN).join(",")}function gN(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!yt(i))break;i=o}r++}return{attrs:t,classes:n}}function gD(e){return vs(()=>{let t=bD(e),n=B(D({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===fD.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Rt.Emulated,styles:e.styles||at,_:null,schemas:e.schemas||null,tView:null,id:""});DD(n);let r=e.dependencies;return n.directiveDefs=E0(r,!1),n.pipeDefs=E0(r,!0),n.id=yN(n),n})}function mN(e){return Pn(e)||mD(e)}function vN(e){return e!==null}function dt(e){return vs(()=>({type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function w0(e,t){if(e==null)return yi;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=Nn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Nn.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Ve(e){return vs(()=>{let t=bD(e);return DD(t),t})}function Pn(e){return e[q1]||null}function mD(e){return e[U1]||null}function vD(e){return e[$1]||null}function yD(e){let t=Pn(e)||mD(e)||vD(e);return t!==null?t.standalone:!1}function _D(e,t){let n=e[B1]||null;if(!n&&t===!0)throw new Error(`Type ${We(e)} does not have '\u0275mod' property.`);return n}function bD(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||yi,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:w0(e.inputs,t),outputs:w0(e.outputs),debugInfo:null}}function DD(e){e.features?.forEach(t=>t(e))}function E0(e,t){if(!e)return null;let n=t?vD:mN;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(vN)}function yN(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ju(e){return{\u0275providers:e}}function _N(...e){return{\u0275providers:wD(!0,e),\u0275fromNgModule:!0}}function wD(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return Vg(t,s=>{let a=s;Jp(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&ED(i,o),n}function ED(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Ug(i,o=>{t(o,r)})}}function Jp(e,t,n,r){if(e=Re(e),!e)return!1;let i=null,o=m0(e),s=!o&&Pn(e);if(!o&&!s){let u=e.ngModule;if(o=m0(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Jp(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{Vg(o.imports,l=>{Jp(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&ED(c,t)}if(!a){let c=vi(i)||(()=>new i);t({provide:i,useFactory:c,deps:at},i),t({provide:dD,useValue:i,multi:!0},i),t({provide:_i,useValue:()=>x(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;Ug(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Ug(e,t){for(let n of e)iD(n)&&(n=n.\u0275providers),Array.isArray(n)?Ug(n,t):t(n)}var bN=re({provide:String,useValue:re});function MD(e){return e!==null&&typeof e=="object"&&bN in e}function DN(e){return!!(e&&e.useExisting)}function wN(e){return!!(e&&e.useFactory)}function bi(e){return typeof e=="function"}function EN(e){return!!e.useClass}var Ku=new C(""),mu={},MN={},Fp;function $g(){return Fp===void 0&&(Fp=new Eu),Fp}var je=class{},cs=class extends je{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Xp(t,s=>this.processProvider(s)),this.records.set(lD,di(void 0,this)),i.has("environment")&&this.records.set(je,di(void 0,this));let o=this.records.get(Ku);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dD,at,H.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=W(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),W(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=An(this),r=st(void 0),i;try{return t()}finally{An(n),st(r)}}get(t,n=as,r=H.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(y0))return t[y0](this);r=Qu(r);let i,o=An(this),s=st(void 0);try{if(!(r&H.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=AN(t)&&Yu(t);c&&this.injectableDefInScope(c)?u=di(Kp(t),mu):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&H.Self?$g():this.parent;return n=r&H.Optional&&n===as?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Du]=a[Du]||[]).unshift(We(t)),o)throw a;return X1(a,t,"R3InjectorError",this.source)}else throw a}finally{st(s),An(o)}}resolveInjectorInitializers(){let t=W(null),n=An(this),r=st(void 0),i;try{let o=this.get(_i,at,H.Self);for(let s of o)s()}finally{An(n),st(r),W(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(We(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){t=Re(t);let n=bi(t)?t:Re(t&&t.provide),r=SN(t);if(!bi(t)&&t.multi===!0){let i=this.records.get(n);i||(i=di(void 0,mu,!0),i.factory=()=>Yp(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=W(null);try{return n.value===mu&&(n.value=MN,n.value=n.factory()),typeof n.value=="object"&&n.value&&ON(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{W(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Kp(e){let t=Yu(e),n=t!==null?t.factory:vi(e);if(n!==null)return n;if(e instanceof C)throw new O(204,!1);if(e instanceof Function)return CN(e);throw new O(204,!1)}function CN(e){if(e.length>0)throw new O(204,!1);let n=L1(e);return n!==null?()=>n.factory(e):()=>new e}function SN(e){if(MD(e))return di(void 0,e.useValue);{let t=CD(e);return di(t,mu)}}function CD(e,t,n){let r;if(bi(e)){let i=Re(e);return vi(i)||Kp(i)}else if(MD(e))r=()=>Re(e.useValue);else if(wN(e))r=()=>e.useFactory(...Yp(e.deps||[]));else if(DN(e))r=()=>x(Re(e.useExisting));else{let i=Re(e&&(e.useClass||e.provide));if(IN(e))r=()=>new i(...Yp(e.deps));else return vi(i)||Kp(i)}return r}function di(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function IN(e){return!!e.deps}function ON(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function AN(e){return typeof e=="function"||typeof e=="object"&&e instanceof C}function Xp(e,t){for(let n of e)Array.isArray(n)?Xp(n,t):n&&iD(n)?Xp(n.\u0275providers,t):t(n)}function ft(e,t){e instanceof cs&&e.assertNotDestroyed();let n,r=An(e),i=st(void 0);try{return t()}finally{An(r),st(i)}}function SD(){return oD()!==void 0||Q1()!=null}function TN(e){if(!SD())throw new O(-203,!1)}function xN(e){let t=bt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function NN(e){return typeof e=="function"}var rn=0,$=1,k=2,Le=3,_t=4,Et=5,ls=6,Mu=7,Oe=8,Di=9,kt=10,me=11,ds=12,M0=13,Ni=14,Dt=15,wi=16,fi=17,Ei=18,Xu=19,ID=20,Tn=21,Rp=22,ut=23,wt=25,OD=1;var Sr=7,Cu=8,Su=9,ke=10,Iu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Iu||{});function xn(e){return Array.isArray(e)&&typeof e[OD]=="object"}function on(e){return Array.isArray(e)&&e[OD]===!0}function AD(e){return(e.flags&4)!==0}function ec(e){return e.componentOffset>-1}function Bg(e){return(e.flags&1)===1}function Fn(e){return!!e.template}function eg(e){return(e[k]&512)!==0}var tg=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function TD(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Pr(){return xD}function xD(e){return e.type.prototype.ngOnChanges&&(e.setInput=FN),PN}Pr.ngInherit=!0;function PN(){let e=PD(this),t=e?.current;if(t){let n=e.previous;if(n===yi)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function FN(e,t,n,r,i){let o=this.declaredInputs[r],s=PD(e)||RN(e,{previous:yi,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new tg(c&&c.currentValue,n,u===yi),TD(e,t,i,n)}var ND="__ngSimpleChanges__";function PD(e){return e[ND]||null}function RN(e,t){return e[ND]=t}var C0=null;var Pt=function(e,t,n){C0?.(e,t,n)},kN="svg",jN="math";function jt(e){for(;Array.isArray(e);)e=e[rn];return e}function FD(e,t){return jt(t[e])}function ht(e,t){return jt(t[e.index])}function Hg(e,t){return e.data[t]}function kn(e,t){let n=t[e];return xn(n)?n:n[rn]}function zg(e){return(e[k]&128)===128}function LN(e){return on(e[Le])}function Mi(e,t){return t==null?null:e[t]}function RD(e){e[fi]=0}function kD(e){e[k]&1024||(e[k]|=1024,zg(e)&&nc(e))}function VN(e,t){for(;e>0;)t=t[Ni],e--;return t}function tc(e){return!!(e[k]&9216||e[ut]?.dirty)}function ng(e){e[kt].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),tc(e)&&nc(e)}function nc(e){e[kt].changeDetectionScheduler?.notify(0);let t=Ir(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!zg(t)));)t=Ir(t)}function jD(e,t){if((e[k]&256)===256)throw new O(911,!1);e[Tn]===null&&(e[Tn]=[]),e[Tn].push(t)}function qN(e,t){if(e[Tn]===null)return;let n=e[Tn].indexOf(t);n!==-1&&e[Tn].splice(n,1)}function Ir(e){let t=e[Le];return on(t)?t[Le]:t}var z={lFrame:GD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var LD=!1;function UN(){return z.lFrame.elementDepthCount}function $N(){z.lFrame.elementDepthCount++}function BN(){z.lFrame.elementDepthCount--}function VD(){return z.bindingsEnabled}function HN(){return z.skipHydrationRootTNode!==null}function zN(e){return z.skipHydrationRootTNode===e}function WN(){z.skipHydrationRootTNode=null}function Q(){return z.lFrame.lView}function Ge(){return z.lFrame.tView}function bre(e){return z.lFrame.contextLView=e,e[Oe]}function Dre(e){return z.lFrame.contextLView=null,e}function Ze(){let e=qD();for(;e!==null&&e.type===64;)e=e.parent;return e}function qD(){return z.lFrame.currentTNode}function GN(){let e=z.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _s(e,t){let n=z.lFrame;n.currentTNode=e,n.isParent=t}function UD(){return z.lFrame.isParent}function ZN(){z.lFrame.isParent=!1}function $D(){return LD}function S0(e){LD=e}function rc(){let e=z.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function YN(){return z.lFrame.bindingIndex}function QN(e){return z.lFrame.bindingIndex=e}function Pi(){return z.lFrame.bindingIndex++}function BD(e){let t=z.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function JN(){return z.lFrame.inI18n}function KN(e,t){let n=z.lFrame;n.bindingIndex=n.bindingRootIndex=e,rg(t)}function XN(){return z.lFrame.currentDirectiveIndex}function rg(e){z.lFrame.currentDirectiveIndex=e}function eP(e){let t=z.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function HD(e){z.lFrame.currentQueryIndex=e}function tP(e){let t=e[$];return t.type===2?t.declTNode:t.type===1?e[Et]:null}function zD(e,t,n){if(n&H.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&H.Host);)if(i=tP(o),i===null||(o=o[Ni],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=z.lFrame=WD();return r.currentTNode=t,r.lView=e,!0}function Wg(e){let t=WD(),n=e[$];z.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function WD(){let e=z.lFrame,t=e===null?null:e.child;return t===null?GD(e):t}function GD(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ZD(){let e=z.lFrame;return z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var YD=ZD;function Gg(){let e=ZD();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function nP(e){return(z.lFrame.contextLView=VN(e,z.lFrame.contextLView))[Oe]}function jn(){return z.lFrame.selectedIndex}function Or(e){z.lFrame.selectedIndex=e}function Zg(){let e=z.lFrame;return Hg(e.tView,e.selectedIndex)}function rP(){return z.lFrame.currentNamespace}var QD=!0;function Yg(){return QD}function Qg(e){QD=e}function iP(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=xD(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Jg(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:c,ngOnDestroy:l}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),u&&(e.viewHooks??=[]).push(-n,u),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function vu(e,t,n){JD(e,t,3,n)}function yu(e,t,n,r){(e[k]&3)===n&&JD(e,t,n,r)}function kp(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function JD(e,t,n,r){let i=r!==void 0?e[fi]&65535:0,o=r??-1,s=t.length-1,a=0;for(let u=i;u<s;u++)if(typeof t[u+1]=="number"){if(a=t[u],r!=null&&a>=r)break}else t[u]<0&&(e[fi]+=65536),(a<o||o==-1)&&(oP(e,n,t,u),e[fi]=(e[fi]&4294901760)+u+2),u++}function I0(e,t){Pt(4,e,t);let n=W(null);try{t.call(e)}finally{W(n),Pt(5,e,t)}}function oP(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[k]>>14<e[fi]>>16&&(e[k]&3)===t&&(e[k]+=16384,I0(a,o)):I0(a,o)}var mi=-1,Ar=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function sP(e){return e instanceof Ar}function aP(e){return(e.flags&8)!==0}function uP(e){return(e.flags&16)!==0}var jp={},ig=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Qu(r);let i=this.injector.get(t,jp,r);return i!==jp||n===jp?i:this.parentInjector.get(t,n,r)}};function KD(e){return e!==mi}function Ou(e){return e&32767}function cP(e){return e>>16}function Au(e,t){let n=cP(e),r=t;for(;n>0;)r=r[Ni],n--;return r}var og=!0;function O0(e){let t=og;return og=e,t}var lP=256,XD=lP-1,ew=5,dP=0,Ft={};function fP(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(os)&&(r=n[os]),r==null&&(r=n[os]=dP++);let i=r&XD,o=1<<i;t.data[e+(i>>ew)]|=o}function Tu(e,t){let n=tw(e,t);if(n!==-1)return n;let r=t[$];r.firstCreatePass&&(e.injectorIndex=t.length,Lp(r.data,e),Lp(t,null),Lp(r.blueprint,null));let i=Kg(e,t),o=e.injectorIndex;if(KD(i)){let s=Ou(i),a=Au(i,t),u=a[$].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function Lp(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tw(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Kg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=sw(i),r===null)return mi;if(n++,i=i[Ni],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return mi}function sg(e,t,n){fP(e,t,n)}function hP(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,i=0;for(;i<r;){let o=n[i];if(hD(o))break;if(o===0)i=i+2;else if(typeof o=="number")for(i++;i<r&&typeof n[i]=="string";)i++;else{if(o===t)return n[i+1];i=i+2}}}return null}function nw(e,t,n){if(n&H.Optional||e!==void 0)return e;jg(t,"NodeInjector")}function rw(e,t,n,r){if(n&H.Optional&&r===void 0&&(r=null),!(n&(H.Self|H.Host))){let i=e[Di],o=st(void 0);try{return i?i.get(t,r,n&H.Optional):sD(t,r,n&H.Optional)}finally{st(o)}}return nw(r,t,n)}function iw(e,t,n,r=H.Default,i){if(e!==null){if(t[k]&2048&&!(r&H.Self)){let s=yP(e,t,n,r,Ft);if(s!==Ft)return s}let o=ow(e,t,n,r,Ft);if(o!==Ft)return o}return rw(t,n,r,i)}function ow(e,t,n,r,i){let o=mP(n);if(typeof o=="function"){if(!zD(t,e,r))return r&H.Host?nw(i,n,r):rw(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&H.Optional))jg(n);else return s}finally{YD()}}else if(typeof o=="number"){let s=null,a=tw(e,t),u=mi,c=r&H.Host?t[Dt][Et]:null;for((a===-1||r&H.SkipSelf)&&(u=a===-1?Kg(e,t):t[a+8],u===mi||!T0(r,!1)?a=-1:(s=t[$],a=Ou(u),t=Au(u,t)));a!==-1;){let l=t[$];if(A0(o,a,l.data)){let d=pP(a,t,n,s,r,c);if(d!==Ft)return d}u=t[a+8],u!==mi&&T0(r,t[$].data[a+8]===c)&&A0(o,a,t)?(s=l,a=Ou(u),t=Au(u,t)):a=-1}}return i}function pP(e,t,n,r,i,o){let s=t[$],a=s.data[e+8],u=r==null?ec(a)&&og:r!=s&&(a.type&3)!==0,c=i&H.Host&&o===a,l=gP(a,s,n,u,c);return l!==null?Ci(t,s,l,a):Ft}function gP(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,u=e.directiveStart,c=e.directiveEnd,l=o>>20,d=r?a:a+l,p=i?a+l:c;for(let g=d;g<p;g++){let m=s[g];if(g<u&&n===m||g>=u&&m.type===n)return g}if(i){let g=s[u];if(g&&Fn(g)&&g.type===n)return u}return null}function Ci(e,t,n,r){let i=e[n],o=t.data;if(sP(i)){let s=i;s.resolving&&z1(H1(o[n]));let a=O0(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?st(s.injectImpl):null,l=zD(e,r,H.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&iP(n,o[n],t)}finally{c!==null&&st(c),O0(a),s.resolving=!1,YD()}}return i}function mP(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(os)?e[os]:void 0;return typeof t=="number"?t>=0?t&XD:vP:t}function A0(e,t,n){let r=1<<e;return!!(n[t+(e>>ew)]&r)}function T0(e,t){return!(e&H.Self)&&!(e&H.Host&&t)}var Cr=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return iw(this._tNode,this._lView,t,Qu(r),n)}};function vP(){return new Cr(Ze(),Q())}function Fi(e){return vs(()=>{let t=e.prototype.constructor,n=t[bu]||ag(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[bu]||ag(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ag(e){return eD(e)?()=>{let t=ag(Re(e));return t&&t()}:vi(e)}function yP(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[k]&2048&&!(s[k]&512);){let a=ow(o,s,n,r|H.Self,Ft);if(a!==Ft)return a;let u=o.parent;if(!u){let c=s[ID];if(c){let l=c.get(n,Ft,r);if(l!==Ft)return l}u=sw(s),s=s[Ni]}o=u}return i}function sw(e){let t=e[$],n=t.type;return n===2?t.declTNode:n===1?e[Et]:null}function Xg(e){return hP(Ze(),e)}function x0(e,t=null,n=null,r){let i=aw(e,t,n,r);return i.resolveInjectorInitializers(),i}function aw(e,t=null,n=null,r,i=new Set){let o=[n||at,_N(e)];return r=r||(typeof e=="object"?void 0:We(e)),new cs(o,t||$g(),r||null,i)}var tt=class e{static{this.THROW_IF_NOT_FOUND=as}static{this.NULL=new Eu}static create(t,n){if(Array.isArray(t))return x0({name:""},n,t,"");{let r=t.name??"";return x0({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=T({token:e,providedIn:"any",factory:()=>x(lD)})}static{this.__NG_ELEMENT_ID__=-1}};var _P=new C("");_P.__NG_ELEMENT_ID__=e=>{let t=Ze();if(t===null)throw new O(204,!1);if(t.type&2)return t.value;if(e&H.Optional)return null;throw new O(204,!1)};var bP="ngOriginalError";function Vp(e){return e[bP]}var uw=!0,em=(()=>{class e{static{this.__NG_ELEMENT_ID__=DP}static{this.__NG_ENV_ID__=n=>n}}return e})(),ug=class extends em{constructor(t){super(),this._lView=t}onDestroy(t){return jD(this._lView,t),()=>qN(this._lView,t)}};function DP(){return new ug(Q())}var sn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ee(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}}return e})();var cg=class extends ye{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,SD()&&(this.destroyRef=b(em,{optional:!0})??void 0,this.pendingTasks=b(sn,{optional:!0})??void 0)}emit(t){let n=W(null);try{super.next(t)}finally{W(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof de&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=cg;function xu(...e){}function cw(e){let t,n;function r(){e=xu;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function N0(e){return queueMicrotask(()=>e()),()=>{e=xu}}var tm="isAngularZone",Nu=tm+"_ID",wP=0,te=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=uw}=t;if(typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,CP(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(tm)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new O(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,EP,xu,xu);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},EP={};function nm(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function MP(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){cw(()=>{e.callbackScheduled=!1,lg(e),e.isCheckStableRunning=!0,nm(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),lg(e)}function CP(e){let t=()=>{MP(e)},n=wP++;e._inner=e._inner.fork({name:"angular",properties:{[tm]:!0,[Nu]:n,[Nu+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(SP(u))return r.invokeTask(o,s,a,u);try{return P0(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),F0(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return P0(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!IP(u)&&t(),F0(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,lg(e),nm(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function lg(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function P0(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function F0(e){e._nesting--,nm(e)}var Pu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function SP(e){return lw(e,"__ignore_ng_zone__")}function IP(e){return lw(e,"__scheduler_tick__")}function lw(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function OP(e="zone.js",t){return e==="noop"?new Pu:e==="zone.js"?new te(t):e}var tn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Vp(t);for(;n&&Vp(n);)n=Vp(n);return n||null}},AP=new C("",{providedIn:"root",factory:()=>{let e=b(te),t=b(tn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function TP(){return rm(Ze(),Q())}function rm(e,t){return new an(ht(e,t))}var an=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=TP}}return e})();function dw(e){return(e.flags&128)===128}var fw=new Map,xP=0;function NP(){return xP++}function PP(e){fw.set(e[Xu],e)}function dg(e){fw.delete(e[Xu])}var R0="__ngContext__";function Tr(e,t){xn(t)?(e[R0]=t[Xu],PP(t)):e[R0]=t}function hw(e){return gw(e[ds])}function pw(e){return gw(e[_t])}function gw(e){for(;e!==null&&!on(e);)e=e[_t];return e}var fg;function mw(e){fg=e}function FP(){if(fg!==void 0)return fg;if(typeof document<"u")return document;throw new O(210,!1)}var ic=new C("",{providedIn:"root",factory:()=>RP}),RP="ng",im=new C(""),Lt=new C("",{providedIn:"platform",factory:()=>"unknown"});var om=new C("",{providedIn:"root",factory:()=>FP().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var kP="h",jP="b";var LP=()=>null;function sm(e,t,n=!1){return LP(e,t,n)}var vw=!1,VP=new C("",{providedIn:"root",factory:()=>vw});var du;function qP(){if(du===void 0&&(du=null,bt.trustedTypes))try{du=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return du}function k0(e){return qP()?.createScriptURL(e)||e}var Fu=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${K0})`}};function bs(e){return e instanceof Fu?e.changingThisBreaksApplicationSecurity:e}function am(e,t){let n=UP(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${K0})`)}return n===t}function UP(e){return e instanceof Fu&&e.getTypeName()||null}var $P=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yw(e){return e=String(e),e.match($P)?e:"unsafe:"+e}var oc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(oc||{});function BP(e){let t=bw();return t?t.sanitize(oc.URL,e)||"":am(e,"URL")?bs(e):yw(Mr(e))}function HP(e){let t=bw();if(t)return k0(t.sanitize(oc.RESOURCE_URL,e)||"");if(am(e,"ResourceURL"))return k0(bs(e));throw new O(904,!1)}function zP(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?HP:BP}function _w(e,t,n){return zP(t,n)(e)}function bw(){let e=Q();return e&&e[kt].sanitizer}function Dw(e){return e instanceof Function?e():e}function WP(e){return(e??b(tt)).get(Lt)==="browser"}var nn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(nn||{}),GP;function um(e,t){return GP(e,t)}function hi(e,t,n,r,i){if(r!=null){let o,s=!1;on(r)?o=r:xn(r)&&(s=!0,r=r[rn]);let a=jt(r);e===0&&n!==null?i==null?Cw(t,n,a):Ru(t,n,a,i||null,!0):e===1&&n!==null?Ru(t,n,a,i||null,!0):e===2?uF(t,a,s):e===3&&t.destroyNode(a),o!=null&&lF(t,e,o,n,i)}}function ZP(e,t){return e.createText(t)}function YP(e,t,n){e.setValue(t,n)}function ww(e,t,n){return e.createElement(t,n)}function QP(e,t){Ew(e,t),t[rn]=null,t[Et]=null}function JP(e,t,n,r,i,o){r[rn]=i,r[Et]=t,ac(e,r,n,1,i,o)}function Ew(e,t){t[kt].changeDetectionScheduler?.notify(9),ac(e,t,t[me],2,null,null)}function KP(e){let t=e[ds];if(!t)return qp(e[$],e);for(;t;){let n=null;if(xn(t))n=t[ds];else{let r=t[ke];r&&(n=r)}if(!n){for(;t&&!t[_t]&&t!==e;)xn(t)&&qp(t[$],t),t=t[Le];t===null&&(t=e),xn(t)&&qp(t[$],t),n=t&&t[_t]}t=n}}function XP(e,t,n,r){let i=ke+r,o=n.length;r>0&&(n[i-1][_t]=t),r<o-ke?(t[_t]=n[i],cD(n,ke+r,t)):(n.push(t),t[_t]=null),t[Le]=n;let s=t[wi];s!==null&&n!==s&&Mw(s,t);let a=t[Ei];a!==null&&a.insertView(e),ng(t),t[k]|=128}function Mw(e,t){let n=e[Su],r=t[Le];if(xn(r))e[k]|=Iu.HasTransplantedViews;else{let i=r[Le][Dt];t[Dt]!==i&&(e[k]|=Iu.HasTransplantedViews)}n===null?e[Su]=[t]:n.push(t)}function cm(e,t){let n=e[Su],r=n.indexOf(t);n.splice(r,1)}function fs(e,t){if(e.length<=ke)return;let n=ke+t,r=e[n];if(r){let i=r[wi];i!==null&&i!==e&&cm(i,r),t>0&&(e[n-1][_t]=r[_t]);let o=wu(e,ke+t);QP(r[$],r);let s=o[Ei];s!==null&&s.detachView(o[$]),r[Le]=null,r[_t]=null,r[k]&=-129}return r}function sc(e,t){if(!(t[k]&256)){let n=t[me];n.destroyNode&&ac(e,t,n,3,null,null),KP(t)}}function qp(e,t){if(t[k]&256)return;let n=W(null);try{t[k]&=-129,t[k]|=256,t[ut]&&gp(t[ut]),tF(e,t),eF(e,t),t[$].type===1&&t[me].destroy();let r=t[wi];if(r!==null&&on(t[Le])){r!==t[Le]&&cm(r,t);let i=t[Ei];i!==null&&i.detachView(e)}dg(t)}finally{W(n)}}function eF(e,t){let n=e.cleanup,r=t[Mu];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Mu]=null);let i=t[Tn];if(i!==null){t[Tn]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function tF(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Ar)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];Pt(4,a,u);try{u.call(a)}finally{Pt(5,a,u)}}else{Pt(4,i,o);try{o.call(i)}finally{Pt(5,i,o)}}}}}function nF(e,t,n){return rF(e,t.parent,n)}function rF(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[rn];{let{componentOffset:i}=r;if(i>-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Rt.None||o===Rt.Emulated)return null}return ht(r,n)}}function Ru(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Cw(e,t,n){e.appendChild(t,n)}function j0(e,t,n,r,i){r!==null?Ru(e,t,n,r,i):Cw(e,t,n)}function Sw(e,t){return e.parentNode(t)}function iF(e,t){return e.nextSibling(t)}function oF(e,t,n){return aF(e,t,n)}function sF(e,t,n){return e.type&40?ht(e,n):null}var aF=sF,L0;function lm(e,t,n,r){let i=nF(e,r,t),o=t[me],s=r.parent||t[Et],a=oF(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)j0(o,i,n[u],a,!1);else j0(o,i,n,a,!1);L0!==void 0&&L0(o,r,t,n,i)}function is(e,t){if(t!==null){let n=t.type;if(n&3)return ht(t,e);if(n&4)return hg(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return is(e,r);{let i=e[t.index];return on(i)?hg(-1,i):jt(i)}}else{if(n&128)return is(e,t.next);if(n&32)return um(t,e)()||jt(e[t.index]);{let r=Iw(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Ir(e[Dt]);return is(i,r)}else return is(e,t.next)}}}return null}function Iw(e,t){if(t!==null){let r=e[Dt][Et],i=t.projection;return r.projection[i]}return null}function hg(e,t){let n=ke+e+1;if(n<t.length){let r=t[n],i=r[$].firstChild;if(i!==null)return is(r,i)}return t[Sr]}function uF(e,t,n){e.removeChild(null,t,n)}function dm(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&t===0&&(a&&Tr(jt(a),r),n.flags|=2),(n.flags&32)!==32)if(u&8)dm(e,t,n.child,r,i,o,!1),hi(t,e,i,a,o);else if(u&32){let c=um(n,r),l;for(;l=c();)hi(t,e,i,l,o);hi(t,e,i,a,o)}else u&16?cF(e,t,r,n,i,o):hi(t,e,i,a,o);n=s?n.projectionNext:n.next}}function ac(e,t,n,r,i,o){dm(n,r,e.firstChild,t,i,o,!1)}function cF(e,t,n,r,i,o){let s=n[Dt],u=s[Et].projection[r.projection];if(Array.isArray(u))for(let c=0;c<u.length;c++){let l=u[c];hi(t,e,i,l,o)}else{let c=u,l=s[Le];dw(r)&&(c.flags|=128),dm(e,t,c,l,i,o,!0)}}function lF(e,t,n,r,i){let o=n[Sr],s=jt(n);o!==s&&hi(t,e,r,o,i);for(let a=ke;a<n.length;a++){let u=n[a];ac(u[$],u,e,t,r,o)}}function dF(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:nn.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=nn.Important),e.setStyle(n,r,i,o))}}function fF(e,t,n){e.setAttribute(t,"style",n)}function Ow(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Aw(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Qp(e,t,r),i!==null&&Ow(e,t,i),o!==null&&fF(e,t,o)}var Mt={};function wre(e=1){Tw(Ge(),Q(),jn()+e,!1)}function Tw(e,t,n,r){if(!r)if((t[k]&3)===3){let o=e.preOrderCheckHooks;o!==null&&vu(t,o,n)}else{let o=e.preOrderHooks;o!==null&&yu(t,o,0,n)}Or(n)}function X(e,t=H.Default){let n=Q();if(n===null)return x(e,t);let r=Ze();return iw(r,n,Re(e),t)}function xw(){let e="invalid";throw new Error(e)}function Nw(e,t,n,r,i,o){let s=W(null);try{let a=null;i&Nn.SignalBased&&(a=t[r][Kt]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&Nn.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),e.setInput!==null?e.setInput(t,a,o,n,r):TD(t,a,r,o)}finally{W(s)}}function hF(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Or(~i);else{let o=i,s=n[++r],a=n[++r];KN(s,o);let u=t[o];a(2,u)}}}finally{Or(-1)}}function uc(e,t,n,r,i,o,s,a,u,c,l){let d=t.blueprint.slice();return d[rn]=i,d[k]=r|4|128|8|64,(c!==null||e&&e[k]&2048)&&(d[k]|=2048),RD(d),d[Le]=d[Ni]=e,d[Oe]=n,d[kt]=s||e&&e[kt],d[me]=a||e&&e[me],d[Di]=u||e&&e[Di]||null,d[Et]=o,d[Xu]=NP(),d[ls]=l,d[ID]=c,d[Dt]=t.type==2?e[Dt]:d,d}function cc(e,t,n,r,i){let o=e.data[t];if(o===null)o=pF(e,t,n,r,i),JN()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=GN();o.injectorIndex=s===null?-1:s.injectorIndex}return _s(o,!0),o}function pF(e,t,n,r,i){let o=qD(),s=UD(),a=s?o:o&&o.parent,u=e.data[t]=_F(e,a,n,t,r,i);return e.firstChild===null&&(e.firstChild=u),o!==null&&(s?o.child==null&&u.parent!==null&&(o.child=u):o.next===null&&(o.next=u,u.prev=o)),u}function Pw(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Fw(e,t,n,r,i){let o=jn(),s=r&2;try{Or(-1),s&&t.length>wt&&Tw(e,t,wt,!1),Pt(s?2:0,i),n(r,i)}finally{Or(o),Pt(s?3:1,i)}}function Rw(e,t,n){if(AD(t)){let r=W(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{W(r)}}}function kw(e,t,n){VD()&&(CF(e,t,n,ht(n,t)),(n.flags&64)===64&&$w(e,t,n))}function jw(e,t,n=ht){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function Lw(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=fm(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function fm(e,t,n,r,i,o,s,a,u,c,l){let d=wt+r,p=d+i,g=gF(d,p),m=typeof c=="function"?c():c;return g[$]={type:e,blueprint:g,template:n,queries:null,viewQuery:a,declTNode:t,data:g.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:u,consts:m,incompleteFirstPass:!1,ssrId:l}}function gF(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Mt);return n}function mF(e,t,n,r){let o=r.get(VP,vw)||n===Rt.ShadowDom,s=e.selectRootElement(t,o);return vF(s),s}function vF(e){yF(e)}var yF=()=>null;function _F(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return HN()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function V0(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=Nn.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?q0(r,n,c,a,u):q0(r,n,c,a)}return r}function q0(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function bF(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l<i;l++){let d=o[l],p=n?n.get(d):null,g=p?p.inputs:null,m=p?p.outputs:null;u=V0(0,d.inputs,l,u,g),c=V0(1,d.outputs,l,c,m);let v=u!==null&&s!==null&&!qg(t)?kF(u,l,s):null;a.push(v)}u!==null&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=c}function DF(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Vw(e,t,n,r,i,o,s,a){let u=ht(t,n),c=t.inputs,l;!a&&c!=null&&(l=c[r])?(hm(e,n,l,r,i),ec(t)&&wF(n,t.index)):t.type&3?(r=DF(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(u,r,i)):t.type&12}function wF(e,t){let n=kn(t,e);n[k]&16||(n[k]|=64)}function qw(e,t,n,r){if(VD()){let i=r===null?null:{"":-1},o=IF(e,n),s,a;o===null?s=a=null:[s,a]=o,s!==null&&Uw(e,t,n,s,i,a),i&&OF(n,r,i)}n.mergedAttrs=us(n.mergedAttrs,n.attrs)}function Uw(e,t,n,r,i,o){for(let c=0;c<r.length;c++)sg(Tu(n,t),e,r[c].type);TF(n,e.data.length,r.length);for(let c=0;c<r.length;c++){let l=r[c];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,u=Pw(e,t,r.length,null);for(let c=0;c<r.length;c++){let l=r[c];n.mergedAttrs=us(n.mergedAttrs,l.hostAttrs),xF(e,n,t,u,l),AF(u,l,i),l.contentQueries!==null&&(n.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(n.flags|=64);let d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}bF(e,n,o)}function EF(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;MF(s)!=a&&s.push(a),s.push(n,r,o)}}function MF(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function CF(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;ec(n)&&NF(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Tu(n,t),Tr(r,t);let s=n.initialInputs;for(let a=i;a<o;a++){let u=e.data[a],c=Ci(t,e,a,n);if(Tr(c,t),s!==null&&RF(t,a-i,c,u,n,s),Fn(u)){let l=kn(n.index,t);l[Oe]=Ci(t,e,a,n)}}}function $w(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=XN();try{Or(o);for(let a=r;a<i;a++){let u=e.data[a],c=t[a];rg(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&SF(u,c)}}finally{Or(-1),rg(s)}}function SF(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function IF(e,t){let n=e.directiveRegistry,r=null,i=null;if(n)for(let o=0;o<n.length;o++){let s=n[o];if(lN(t,s.selectors,!1))if(r||(r=[]),Fn(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s);let u=a.length;pg(e,t,u)}else r.unshift(s),pg(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return r===null?null:[r,i]}function pg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function OF(e,t,n){if(t){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new O(-301,!1);r.push(t[i],o)}}}function AF(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Fn(t)&&(n[""]=e)}}function TF(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function xF(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=vi(i.type,!0)),s=new Ar(o,Fn(i),X);e.blueprint[r]=s,n[r]=s,EF(e,t,r,Pw(e,n,i.hostVars,Mt),i)}function NF(e,t,n){let r=ht(t,e),i=Lw(n),o=e[kt].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=lc(e,uc(e,i,null,s,r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=a}function PF(e,t,n,r,i,o){let s=ht(e,t);FF(t[me],s,o,e.value,n,r,i)}function FF(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Mr(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function RF(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let u=s[a++],c=s[a++],l=s[a++],d=s[a++];Nw(r,n,u,c,l,d)}}function kF(e,t,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){r===null&&(r=[]);let s=e[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(o,s[a+1],s[a+2],n[i+1]);break}}i+=2}return r}function Bw(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Hw(e,t){let n=e.contentQueries;if(n!==null){let r=W(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];HD(o),a.contentQueries(2,t[s],s)}}}finally{W(r)}}}function lc(e,t){return e[ds]?e[M0][_t]=t:e[ds]=t,e[M0]=t,t}function gg(e,t,n){HD(0);let r=W(null);try{t(e,n)}finally{W(r)}}function jF(e){return e[Mu]??=[]}function LF(e){return e.cleanup??=[]}function zw(e,t){let n=e[Di],r=n?n.get(tn,null):null;r&&r.handleError(t)}function hm(e,t,n,r,i){for(let o=0;o<n.length;){let s=n[o++],a=n[o++],u=n[o++],c=t[s],l=e.data[s];Nw(l,c,r,a,u,i)}}function Ww(e,t,n){let r=FD(t,e);YP(e[me],r,n)}function VF(e,t){let n=kn(t,e),r=n[$];qF(r,n);let i=n[rn];i!==null&&n[ls]===null&&(n[ls]=sm(i,n[Di])),pm(r,n,n[Oe])}function qF(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function pm(e,t,n){Wg(t);try{let r=e.viewQuery;r!==null&&gg(1,r,n);let i=e.template;i!==null&&Fw(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ei]?.finishViewCreation(e),e.staticContentQueries&&Hw(e,t),e.staticViewQueries&&gg(2,e.viewQuery,n);let o=e.components;o!==null&&UF(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,Gg()}}function UF(e,t){for(let n=0;n<t.length;n++)VF(e,t[n])}function gm(e,t,n,r){let i=W(null);try{let o=t.tView,a=e[k]&4096?4096:16,u=uc(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];u[wi]=c;let l=e[Ei];return l!==null&&(u[Ei]=l.createEmbeddedView(o)),pm(o,u,n),u}finally{W(i)}}function Gw(e,t){let n=ke+t;if(n<e.length)return e[n]}function hs(e,t){return!t||t.firstChild===null||dw(e)}function dc(e,t,n,r=!0){let i=t[$];if(XP(i,t,e,n),r){let s=hg(n,e),a=t[me],u=Sw(a,e[Sr]);u!==null&&JP(i,e[Et],a,t,u,s)}let o=t[ls];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Zw(e,t){let n=fs(e,t);return n!==void 0&&sc(n[$],n),n}function ku(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(jt(o)),on(o)&&$F(o,r);let s=n.type;if(s&8)ku(e,t,n.child,r);else if(s&32){let a=um(n,t),u;for(;u=a();)r.push(u)}else if(s&16){let a=Iw(t,n);if(Array.isArray(a))r.push(...a);else{let u=Ir(t[Dt]);ku(u[$],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function $F(e,t){for(let n=ke;n<e.length;n++){let r=e[n],i=r[$].firstChild;i!==null&&ku(r[$],r,i,t)}e[Sr]!==e[rn]&&t.push(e[Sr])}var Yw=[];function BF(e){return e[ut]??HF(e)}function HF(e){let t=Yw.pop()??Object.create(WF);return t.lView=e,t}function zF(e){e.lView[ut]!==e&&(e.lView=null,Yw.push(e))}var WF=B(D({},es),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{nc(e.lView)},consumerOnSignalRead(){this.lView[ut]=this}});function GF(e){let t=e[ut]??Object.create(ZF);return t.lView=e,t}var ZF=B(D({},es),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ir(e.lView);for(;t&&!Qw(t[$]);)t=Ir(t);t&&kD(t)},consumerOnSignalRead(){this.lView[ut]=this}});function Qw(e){return e.type!==2}var YF=100;function Jw(e,t=!0,n=0){let r=e[kt],i=r.rendererFactory,o=!1;o||i.begin?.();try{QF(e,n)}catch(s){throw t&&zw(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function QF(e,t){let n=$D();try{S0(!0),mg(e,t);let r=0;for(;tc(e);){if(r===YF)throw new O(103,!1);r++,mg(e,1)}}finally{S0(n)}}function JF(e,t,n,r){let i=t[k];if((i&256)===256)return;let o=!1,s=!1;!o&&t[kt].inlineEffectRunner?.flush(),Wg(t);let a=!0,u=null,c=null;o||(Qw(e)?(c=BF(t),u=La(c)):Tb()===null?(a=!1,c=GF(t),u=La(c)):t[ut]&&(gp(t[ut]),t[ut]=null));try{RD(t),QN(e.bindingStartIndex),n!==null&&Fw(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let g=e.preOrderCheckHooks;g!==null&&vu(t,g,null)}else{let g=e.preOrderHooks;g!==null&&yu(t,g,0,null),kp(t,0)}if(s||KF(t),Kw(t,0),e.contentQueries!==null&&Hw(e,t),!o)if(l){let g=e.contentCheckHooks;g!==null&&vu(t,g)}else{let g=e.contentHooks;g!==null&&yu(t,g,1),kp(t,1)}hF(e,t);let d=e.components;d!==null&&eE(t,d,0);let p=e.viewQuery;if(p!==null&&gg(2,p,r),!o)if(l){let g=e.viewCheckHooks;g!==null&&vu(t,g)}else{let g=e.viewHooks;g!==null&&yu(t,g,2),kp(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Rp]){for(let g of t[Rp])g();t[Rp]=null}o||(t[k]&=-73)}catch(l){throw o||nc(t),l}finally{c!==null&&(hp(c,u),a&&zF(c)),Gg()}}function Kw(e,t){for(let n=hw(e);n!==null;n=pw(n))for(let r=ke;r<n.length;r++){let i=n[r];Xw(i,t)}}function KF(e){for(let t=hw(e);t!==null;t=pw(t)){if(!(t[k]&Iu.HasTransplantedViews))continue;let n=t[Su];for(let r=0;r<n.length;r++){let i=n[r];kD(i)}}}function XF(e,t,n){let r=kn(t,e);Xw(r,n)}function Xw(e,t){zg(e)&&mg(e,t)}function mg(e,t){let r=e[$],i=e[k],o=e[ut],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&pp(o)),s||=!1,o&&(o.dirty=!1),e[k]&=-9217,s)JF(r,e,r.template,e[Oe]);else if(i&8192){Kw(e,1);let a=r.components;a!==null&&eE(e,a,1)}}function eE(e,t,n){for(let r=0;r<t.length;r++)XF(e,t[r],n)}function mm(e,t){let n=$D()?64:1088;for(e[kt].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=Ir(e);if(eg(e)&&!r)return e;e=r}return null}var Si=class{get rootNodes(){let t=this._lView,n=t[$];return ku(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Oe]}set context(t){this._lView[Oe]=t}get destroyed(){return(this._lView[k]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Le];if(on(t)){let n=t[Cu],r=n?n.indexOf(this):-1;r>-1&&(fs(t,r),wu(n,r))}this._attachedToViewContainer=!1}sc(this._lView[$],this._lView)}onDestroy(t){jD(this._lView,t)}markForCheck(){mm(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){ng(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,Jw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=eg(this._lView),n=this._lView[wi];n!==null&&!t&&cm(n,this._lView),Ew(this._lView[$],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t;let n=eg(this._lView),r=this._lView[wi];r!==null&&!n&&Mw(r,this._lView),ng(this._lView)}};var Ere=new RegExp(`^(\\d+)*(${jP}|${kP})*(.*)`);var eR=()=>null;function ps(e,t){return eR(e,t)}var Ii=class{},vm=new C("",{providedIn:"root",factory:()=>!1});var tE=new C(""),nE=new C(""),vg=class{},ju=class{};function tR(e){let t=Error(`No component factory found for ${We(e)}.`);return t[nR]=e,t}var nR="ngComponent";var yg=class{resolveComponentFactory(t){throw tR(t)}},Oi=class{static{this.NULL=new yg}},Ai=class{},Ln=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>rR()}}return e})();function rR(){let e=Q(),t=Ze(),n=kn(t.index,e);return(xn(n)?n:e)[me]}var iR=(()=>{class e{static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>null})}}return e})();function _g(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=p0(i,a);else if(o==2){let u=a,c=t[++s];r=p0(r,u+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var Lu=class extends Oi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Pn(t);return new Ti(n,this.ngModule)}};function U0(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let i=e[r];if(i===void 0)continue;let o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:Nn.None;t?n.push({propName:s,templateName:r,isSignal:(a&Nn.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function oR(e){let t=e.toLowerCase();return t==="svg"?kN:t==="math"?jN:null}var Ti=class extends ju{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=U0(t.inputs,!0);if(n!==null)for(let i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return U0(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=pN(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=W(null);try{i=i||this.ngModule;let s=i instanceof je?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ig(t,s):t,u=a.get(Ai,null);if(u===null)throw new O(407,!1);let c=a.get(iR,null),l=a.get(Ii,null),d={rendererFactory:u,sanitizer:c,inlineEffectRunner:null,changeDetectionScheduler:l},p=u.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",m=r?mF(p,r,this.componentDef.encapsulation,a):ww(p,g,oR(g)),v=512;this.componentDef.signals?v|=4096:this.componentDef.onPush||(v|=16);let y=null;m!==null&&(y=sm(m,a,!0));let _=fm(0,null,null,1,0,null,null,null,null,null,null),S=uc(null,_,null,v,null,null,d,p,a,null,y);Wg(S);let N,P,L=null;try{let R=this.componentDef,ve,xt=null;R.findHostDirectiveDefs?(ve=[],xt=new Map,R.findHostDirectiveDefs(R,ve,xt),ve.push(R)):ve=[R];let br=sR(S,m);L=aR(br,m,R,ve,S,d,p),P=Hg(_,wt),m&&lR(p,R,m,r),n!==void 0&&dR(P,this.ngContentSelectors,n),N=cR(L,R,ve,xt,S,[fR]),pm(_,S,null)}catch(R){throw L!==null&&dg(L),dg(S),R}finally{Gg()}return new bg(this.componentType,N,rm(P,S),S,P)}finally{W(o)}}},bg=class extends vg{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Si(i,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;hm(o[$],o,i,t,n),this.previousInputValues.set(t,n);let s=kn(this._tNode.index,o);mm(s,1)}}get injector(){return new Cr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function sR(e,t){let n=e[$],r=wt;return e[r]=t,cc(n,r,2,"#host",null)}function aR(e,t,n,r,i,o,s){let a=i[$];uR(r,e,t,s);let u=null;t!==null&&(u=sm(t,i[Di]));let c=o.rendererFactory.createRenderer(t,n),l=16;n.signals?l=4096:n.onPush&&(l=64);let d=uc(i,Lw(n),null,l,i[e.index],e,o,c,null,null,u);return a.firstCreatePass&&pg(a,e,r.length-1),lc(i,d),i[e.index]=d}function uR(e,t,n,r){for(let i of e)t.mergedAttrs=us(t.mergedAttrs,i.hostAttrs);t.mergedAttrs!==null&&(_g(t,t.mergedAttrs,!0),n!==null&&Aw(r,n,t))}function cR(e,t,n,r,i,o){let s=Ze(),a=i[$],u=ht(s,i);Uw(a,i,s,n,null,r);for(let l=0;l<n.length;l++){let d=s.directiveStart+l,p=Ci(i,a,d,s);Tr(p,i)}$w(a,i,s),u&&Tr(u,i);let c=Ci(i,a,s.directiveStart+s.componentOffset,s);if(e[Oe]=i[Oe]=c,o!==null)for(let l of o)l(c,t);return Rw(a,s,i),c}function lR(e,t,n,r){if(r)Qp(e,n,["ng-version","18.2.14"]);else{let{attrs:i,classes:o}=gN(t.selectors[0]);i&&Qp(e,n,i),o&&o.length>0&&Ow(e,n,o.join(" "))}}function dR(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null?Array.from(o):null)}}function fR(){let e=Ze();Jg(Q()[$],e)}var fc=(()=>{class e{static{this.__NG_ELEMENT_ID__=hR}}return e})();function hR(){let e=Ze();return gR(e,Q())}var pR=fc,rE=class extends pR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return rm(this._hostTNode,this._hostLView)}get injector(){return new Cr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Kg(this._hostTNode,this._hostLView);if(KD(t)){let n=Au(t,this._hostLView),r=Ou(t),i=n[$].data[r+8];return new Cr(i,n)}else return new Cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=$0(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ke}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ps(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,hs(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!NN(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?t:new Ti(Pn(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let v=(s?c:this.parentInjector).get(je,null);v&&(o=v)}let l=Pn(u.componentType??{}),d=ps(this._lContainer,l?.id??null),p=d?.firstChild??null,g=u.create(c,i,p,o);return this.insertImpl(g.hostView,a,hs(this._hostTNode,d)),g}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(LN(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[Le],c=new rE(u,u[Et],u[Le]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return dc(s,i,o,r),t.attachToViewContainerRef(),cD(Up(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=$0(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=fs(this._lContainer,n);r&&(wu(Up(this._lContainer),n),sc(r[$],r))}detach(t){let n=this._adjustIndex(t,-1),r=fs(this._lContainer,n);return r&&wu(Up(this._lContainer),n)!=null?new Si(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function $0(e){return e[Cu]}function Up(e){return e[Cu]||(e[Cu]=[])}function gR(e,t){let n,r=t[e.index];return on(r)?n=r:(n=Bw(r,t,null,e),t[e.index]=n,lc(t,n)),vR(n,t,e,r),new rE(n,e,t)}function mR(e,t){let n=e[me],r=n.createComment(""),i=ht(t,e),o=Sw(n,i);return Ru(n,o,r,iF(n,i),!1),r}var vR=bR,yR=()=>!1;function _R(e,t,n){return yR(e,t,n)}function bR(e,t,n,r){if(e[Sr])return;let i;n.type&8?i=jt(r):i=mR(t,n),e[Sr]=i}var B0=new Set;function Vn(e){B0.has(e)||(B0.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function DR(e){return typeof e=="function"&&e[Kt]!==void 0}function Ds(e,t){Vn("NgSignals");let n=Ub(e),r=n[Kt];return t?.equal&&(r.equal=t.equal),n.set=i=>mp(r,i),n.update=i=>$b(r,i),n.asReadonly=wR.bind(n),n}function wR(){let e=this[Kt];if(e.readonlyFn===void 0){let t=()=>this();t[Kt]=e,e.readonlyFn=t}return e.readonlyFn}function iE(e){return DR(e)&&typeof e.set=="function"}function ER(e){let t=[],n=new Map;function r(i){let o=n.get(i);if(!o){let s=e(i);n.set(i,o=s.then(IR))}return o}return Vu.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,p)=>{a.push(""),s.push(r(d).then(g=>{a[c+p]=g,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>OR(o));t.push(u)}),CR(),Promise.all(t).then(()=>{})}var Vu=new Map,MR=new Set;function CR(){let e=Vu;return Vu=new Map,e}function SR(){return Vu.size===0}function IR(e){return typeof e=="string"?e:e.text()}function OR(e){MR.delete(e)}function AR(e){return Object.getPrototypeOf(e.prototype).constructor}function un(e){let t=AR(e.type),n=!0,r=[e];for(;t;){let i;if(Fn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new O(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=fu(e.inputs),s.inputTransforms=fu(e.inputTransforms),s.declaredInputs=fu(e.declaredInputs),s.outputs=fu(e.outputs);let a=i.hostBindings;a&&FR(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&NR(e,u),c&&PR(e,c),TR(e,i),k1(e.outputs,i.outputs),Fn(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===un&&(n=!1)}}t=Object.getPrototypeOf(t)}xR(r)}function TR(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let i=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=t.inputTransforms[i]}}}function xR(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=us(i.hostAttrs,n=us(n,i.hostAttrs))}}function fu(e){return e===yi?{}:e===at?[]:e}function NR(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function PR(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function FR(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function ym(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}var Rn=class{},gs=class{};var qu=class extends Rn{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Lu(this);let o=_D(t);this._bootstrapComponents=Dw(o.bootstrap),this._r3Injector=aw(t,n,[{provide:Rn,useValue:this},{provide:Oi,useValue:this.componentFactoryResolver},...r],We(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Uu=class extends gs{constructor(t){super(),this.moduleType=t}create(t){return new qu(this.moduleType,t,[])}};function RR(e,t,n){return new qu(e,t,n,!1)}var Dg=class extends Rn{constructor(t){super(),this.componentFactoryResolver=new Lu(this),this.instance=null;let n=new cs([...t.providers,{provide:Rn,useValue:this},{provide:Oi,useValue:this.componentFactoryResolver}],t.parent||$g(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function hc(e,t,n=null){return new Dg({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function pc(e,t,n){return e[t]=n}function oE(e,t){return e[t]}function ct(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function wg(e,t,n,r){let i=ct(e,t,n);return ct(e,t+1,r)||i}function sE(e,t,n,r,i){let o=wg(e,t,n,r);return ct(e,t+2,i)||o}function kR(e,t,n,r,i,o){let s=wg(e,t,n,r);return wg(e,t+2,i,o)||s}function jR(e){return(e.flags&32)===32}function LR(e,t,n,r,i,o,s,a,u){let c=t.consts,l=cc(t,e,4,s||null,a||null);qw(t,n,l,Mi(c,u)),Jg(t,l);let d=l.tView=fm(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Eg(e,t,n,r,i,o,s,a,u,c){let l=n+wt,d=t.firstCreatePass?LR(l,t,e,r,i,o,s,a,u):t.data[l];_s(d,!1);let p=qR(t,e,d,n);Yg()&&lm(t,e,p,d),Tr(p,e);let g=Bw(p,e,p,d);return e[l]=g,lc(e,g),_R(g,d,e),Bg(d)&&kw(t,e,d),u!=null&&jw(e,d,c),d}function VR(e,t,n,r,i,o,s,a){let u=Q(),c=Ge(),l=Mi(c.consts,o);return Eg(u,c,e,t,n,r,i,l,s,a),VR}var qR=UR;function UR(e,t,n,r){return Qg(!0),t[me].createComment("")}var pi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(pi||{}),aE=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Mg=class e{constructor(){this.ngZone=b(te),this.scheduler=b(Ii),this.errorHandler=b(tn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[pi.EarlyRead,pi.Write,pi.MixedReadWrite,pi.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}},Cg=class{constructor(t,n,r,i){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function _m(e,t){!t?.injector&&TN(_m);let n=t?.injector??b(tt);return WP(n)?(Vn("NgAfterNextRender"),BR(e,n,t,!0)):HR}function $R(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function BR(e,t,n,r){let i=t.get(aE);i.impl??=t.get(Mg);let o=n?.phase??pi.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(em):null,a=new Cg(i.impl,$R(e,o),r,s);return i.impl.register(a),a}var HR={destroy(){}};function gc(e,t,n,r){let i=Q(),o=Pi();if(ct(i,o,t)){let s=Ge(),a=Zg();PF(a,i,e,t,n,r)}return gc}function zR(e,t,n,r){return ct(e,Pi(),n)?t+Mr(n)+r:Mt}function WR(e,t,n,r,i,o,s,a){let u=YN(),c=sE(e,u,n,i,s);return BD(3),c?t+Mr(n)+r+Mr(i)+o+Mr(s)+a:Mt}function hu(e,t){return e<<17|t<<2}function xr(e){return e>>17&32767}function GR(e){return(e&2)==2}function ZR(e,t){return e&131071|t<<17}function Sg(e){return e|2}function xi(e){return(e&131068)>>2}function $p(e,t){return e&-131069|t<<2}function YR(e){return(e&1)===1}function Ig(e){return e|1}function QR(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=xr(s),u=xi(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ys(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let p=xr(e[a+1]);e[r+1]=hu(p,a),p!==0&&(e[p+1]=$p(e[p+1],r)),e[a+1]=ZR(e[a+1],r)}else e[r+1]=hu(a,0),a!==0&&(e[a+1]=$p(e[a+1],r)),a=r;else e[r+1]=hu(u,0),a===0?a=r:e[u+1]=$p(e[u+1],r),u=r;c&&(e[r+1]=Sg(e[r+1])),H0(e,l,r,!0),H0(e,l,r,!1),JR(t,l,e,r,o),s=hu(a,u),o?t.classBindings=s:t.styleBindings=s}function JR(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&ys(o,t)>=0&&(n[r+1]=Ig(n[r+1]))}function H0(e,t,n,r){let i=e[n+1],o=t===null,s=r?xr(i):xi(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];KR(u,t)&&(a=!0,e[s+1]=r?Ig(c):Sg(c)),s=r?xr(c):xi(c)}a&&(e[n+1]=r?Sg(i):Ig(i))}function KR(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ys(e,t)>=0:!1}function XR(e,t,n){let r=Q(),i=Pi();if(ct(r,i,t)){let o=Ge(),s=Zg();Vw(o,s,r,e,t,r[me],n,!1)}return XR}function z0(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";hm(e,n,o[s],s,r)}function mc(e,t){return ek(e,t,null,!0),mc}function ek(e,t,n,r){let i=Q(),o=Ge(),s=BD(2);if(o.firstUpdatePass&&nk(o,e,s,r),t!==Mt&&ct(i,s,t)){let a=o.data[jn()];ak(o,a,i,i[me],e,i[s+1]=uk(t,n),r,s)}}function tk(e,t){return t>=e.expandoStartIndex}function nk(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[jn()],s=tk(e,n);ck(o,r)&&t===null&&!s&&(t=!1),t=rk(i,o,t,r),QR(i,o,t,n,s,r)}}function rk(e,t,n,r){let i=eP(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Bp(null,e,t,n,r),n=ms(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Bp(i,e,t,n,r),o===null){let u=ik(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Bp(null,e,t,u[1],r),u=ms(u,t.attrs,r),ok(e,t,r,u))}else o=sk(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function ik(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xi(r)!==0)return e[xr(r)]}function ok(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[xr(i)]=r}function sk(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=ms(r,s,n)}return ms(r,t.attrs,n)}function Bp(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=ms(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ms(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),nN(e,s,n?!0:t[++o]))}return e===void 0?null:e}function ak(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let u=e.data,c=u[a+1],l=YR(c)?W0(u,t,n,i,xi(c),s):void 0;if(!$u(l)){$u(o)||GR(c)&&(o=W0(u,null,n,i,a,s));let d=FD(jn(),n);dF(r,s,d,i,o)}}function W0(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[i+1];p===Mt&&(p=d?at:void 0);let g=d?Pp(p,r):l===r?p:void 0;if(c&&!$u(g)&&(g=Pp(u,r)),$u(g)&&(a=g,s))return a;let m=e[i+1];i=s?xr(m):xi(m)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Pp(u,r))}return a}function $u(e){return e!==void 0}function uk(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=We(bs(e)))),e}function ck(e,t){return(e.flags&(t?8:16))!==0}var Og=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function Hp(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function lk(e,t,n){let r,i,o=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;o<=s&&o<=u;){let c=e.at(o),l=t[o],d=Hp(o,c,o,l,n);if(d!==0){d<0&&e.updateValue(o,l),o++;continue}let p=e.at(s),g=t[u],m=Hp(s,p,u,g,n);if(m!==0){m<0&&e.updateValue(s,g),s--,u--;continue}let v=n(o,c),y=n(s,p),_=n(o,l);if(Object.is(_,y)){let S=n(u,g);Object.is(S,v)?(e.swap(o,s),e.updateValue(s,g),u--,s--):e.move(s,o),e.updateValue(o,l),o++;continue}if(r??=new Bu,i??=Z0(e,o,s,n),Ag(e,r,o,_))e.updateValue(o,l),o++,s++;else if(i.has(_))r.set(v,e.detach(o)),s--;else{let S=e.create(o,t[o]);e.attach(o,S),o++,s++}}for(;o<=u;)G0(e,r,n,o,t[o]),o++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&o<=s;){let l=e.at(o),d=c.value,p=Hp(o,l,o,d,n);if(p!==0)p<0&&e.updateValue(o,d),o++,c=u.next();else{r??=new Bu,i??=Z0(e,o,s,n);let g=n(o,d);if(Ag(e,r,o,g))e.updateValue(o,d),o++,s++,c=u.next();else if(!i.has(g))e.attach(o,e.create(o,d)),o++,s++,c=u.next();else{let m=n(o,l);r.set(m,e.detach(o)),s--}}}for(;!c.done;)G0(e,r,n,e.length,c.value),c=u.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function Ag(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function G0(e,t,n,r,i){if(Ag(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Z0(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Bu=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function Cre(e,t){Vn("NgControlFlow");let n=Q(),r=Pi(),i=n[r]!==Mt?n[r]:-1,o=i!==-1?Hu(n,wt+i):void 0,s=0;if(ct(n,r,e)){let a=W(null);try{if(o!==void 0&&Zw(o,s),e!==-1){let u=wt+e,c=Hu(n,u),l=Pg(n[$],u),d=ps(c,l.tView.ssrId),p=gm(n,l,t,{dehydratedView:d});dc(c,p,s,hs(l,d))}}finally{W(a)}}else if(o!==void 0){let a=Gw(o,s);a!==void 0&&(a[Oe]=t)}}var Tg=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ke}};function Sre(e){return e}function Ire(e,t){return t}var xg=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Ore(e,t,n,r,i,o,s,a,u,c,l,d,p){Vn("NgControlFlow");let g=Q(),m=Ge(),v=u!==void 0,y=Q(),_=a?s.bind(y[Dt][Oe]):s,S=new xg(v,_);y[wt+e]=S,Eg(g,m,e+1,t,n,r,i,Mi(m.consts,o)),v&&Eg(g,m,e+2,u,c,l,d,Mi(m.consts,p))}var Ng=class extends Og{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ke}at(t){return this.getLView(t)[Oe].$implicit}attach(t,n){let r=n[ls];this.needsIndexUpdate||=t!==this.length,dc(this.lContainer,n,t,hs(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,dk(this.lContainer,t)}create(t,n){let r=ps(this.lContainer,this.templateTNode.tView.ssrId),i=gm(this.hostLView,this.templateTNode,new Tg(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(t){sc(t[$],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Oe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Oe].$index=t}getLView(t){return fk(this.lContainer,t)}};function Are(e){let t=W(null),n=jn();try{let r=Q(),i=r[$],o=r[n],s=n+1,a=Hu(r,s);if(o.liveCollection===void 0){let c=Pg(i,s);o.liveCollection=new Ng(a,r,c)}else o.liveCollection.reset();let u=o.liveCollection;if(lk(u,e,o.trackByFn),u.updateIndexes(),o.hasEmptyBlock){let c=Pi(),l=u.length===0;if(ct(r,c,l)){let d=n+2,p=Hu(r,d);if(l){let g=Pg(i,d),m=ps(p,g.tView.ssrId),v=gm(r,g,void 0,{dehydratedView:m});dc(p,v,0,hs(g,m))}else Zw(p,0)}}}finally{W(t)}}function Hu(e,t){return e[t]}function dk(e,t){return fs(e,t)}function fk(e,t){return Gw(e,t)}function Pg(e,t){return Hg(e,t)}function hk(e,t,n,r,i,o){let s=t.consts,a=Mi(s,i),u=cc(t,e,2,r,a);return qw(t,n,u,Mi(s,o)),u.attrs!==null&&_g(u,u.attrs,!1),u.mergedAttrs!==null&&_g(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function uE(e,t,n,r){let i=Q(),o=Ge(),s=wt+e,a=i[me],u=o.firstCreatePass?hk(s,o,i,t,n,r):o.data[s],c=pk(o,i,u,a,t,e);i[s]=c;let l=Bg(u);return _s(u,!0),Aw(a,c,u),!jR(u)&&Yg()&&lm(o,i,c,u),UN()===0&&Tr(c,i),$N(),l&&(kw(o,i,u),Rw(o,u,i)),r!==null&&jw(i,u),uE}function cE(){let e=Ze();UD()?ZN():(e=e.parent,_s(e,!1));let t=e;zN(t)&&WN(),BN();let n=Ge();return n.firstCreatePass&&(Jg(n,e),AD(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&aP(t)&&z0(n,t,Q(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&uP(t)&&z0(n,t,Q(),t.stylesWithoutHost,!1),cE}function bm(e,t,n,r){return uE(e,t,n,r),cE(),bm}var pk=(e,t,n,r,i,o)=>(Qg(!0),ww(r,i,rP()));function Tre(){return Q()}var zu="en-US";var gk=zu;function mk(e){typeof e=="string"&&(gk=e.toLowerCase().replace(/_/g,"-"))}var vk=(e,t,n)=>{};function Fr(e,t,n,r){let i=Q(),o=Ge(),s=Ze();return lE(o,i,i[me],s,e,t,r),Fr}function yk(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Mu],u=i[o+2];return a.length>u?a[u]:null}typeof s=="string"&&(o+=2)}return null}function lE(e,t,n,r,i,o,s){let a=Bg(r),c=e.firstCreatePass&&LF(e),l=t[Oe],d=jF(t),p=!0;if(r.type&3||s){let v=ht(r,t),y=s?s(v):v,_=d.length,S=s?P=>s(jt(P[r.index])):r.index,N=null;if(!s&&a&&(N=yk(e,t,i,r.index)),N!==null){let P=N.__ngLastListenerFn__||N;P.__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,p=!1}else{o=Q0(r,t,l,o),vk(v,i,o);let P=n.listen(y,i,o);d.push(o,P),c&&c.push(i,S,_,_+1)}}else o=Q0(r,t,l,o);let g=r.outputs,m;if(p&&g!==null&&(m=g[i])){let v=m.length;if(v)for(let y=0;y<v;y+=2){let _=m[y],S=m[y+1],L=t[_][S].subscribe(o),R=d.length;d.push(o,L),c&&c.push(i,r.index,R,-(R+1))}}}function Y0(e,t,n,r){let i=W(null);try{return Pt(6,t,n),n(r)!==!1}catch(o){return zw(e,o),!1}finally{Pt(7,t,n),W(i)}}function Q0(e,t,n,r){return function i(o){if(o===Function)return r;let s=e.componentOffset>-1?kn(e.index,t):t;mm(s,5);let a=Y0(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=Y0(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function xre(e=1){return nP(e)}function Nre(e,t=""){let n=Q(),r=Ge(),i=e+wt,o=r.firstCreatePass?cc(r,i,1,t,null):r.data[i],s=_k(r,n,o,t,e);n[i]=s,Yg()&&lm(r,n,s,o),_s(o,!1)}var _k=(e,t,n,r,i)=>(Qg(!0),ZP(t[me],r));function bk(e){return dE("",e,""),bk}function dE(e,t,n){let r=Q(),i=zR(r,e,t,n);return i!==Mt&&Ww(r,jn(),i),dE}function Dk(e,t,n,r,i,o,s){let a=Q(),u=WR(a,e,t,n,r,i,o,s);return u!==Mt&&Ww(a,jn(),u),Dk}function wk(e,t,n){iE(t)&&(t=t());let r=Q(),i=Pi();if(ct(r,i,t)){let o=Ge(),s=Zg();Vw(o,s,r,e,t,r[me],n,!1)}return wk}function Pre(e,t){let n=iE(e);return n&&e.set(t),n}function Ek(e,t){let n=Q(),r=Ge(),i=Ze();return lE(r,n,n[me],i,e,t),Ek}function Mk(e,t,n){let r=Ge();if(r.firstCreatePass){let i=Fn(e);Fg(n,r.data,r.blueprint,i,!0),Fg(t,r.data,r.blueprint,i,!1)}}function Fg(e,t,n,r,i){if(e=Re(e),Array.isArray(e))for(let o=0;o<e.length;o++)Fg(e[o],t,n,r,i);else{let o=Ge(),s=Q(),a=Ze(),u=bi(e)?e:Re(e.provide),c=CD(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(bi(e)||!e.multi){let g=new Ar(c,i,X),m=Wp(u,t,i?l:l+p,d);m===-1?(sg(Tu(a,s),o,u),zp(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(g),s.push(g)):(n[m]=g,s[m]=g)}else{let g=Wp(u,t,l+p,d),m=Wp(u,t,l,l+p),v=g>=0&&n[g],y=m>=0&&n[m];if(i&&!y||!i&&!v){sg(Tu(a,s),o,u);let _=Ik(i?Sk:Ck,n.length,i,r,c);!i&&y&&(n[m].providerFactory=_),zp(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=fE(n[i?m:g],c,!i&&r);zp(o,e,g>-1?g:m,_)}!i&&r&&y&&n[m].componentProviders++}}}function zp(e,t,n,r){let i=bi(t),o=EN(t);if(i||o){let u=(o?Re(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function fE(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Wp(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Ck(e,t,n,r){return Rg(this.multi,[])}function Sk(e,t,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Ci(n,n[$],this.providerFactory.index,r);o=a.slice(0,s),Rg(i,o);for(let u=s;u<a.length;u++)o.push(a[u])}else o=[],Rg(i,o);return o}function Rg(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Ik(e,t,n,r,i){let o=new Ar(e,n,X);return o.multi=[],o.index=t,o.componentProviders=0,fE(o,i,r&&!n),o}function ws(e,t=[]){return n=>{n.providersResolver=(r,i)=>Mk(r,i?i(e):e,t)}}var Ok=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=wD(!1,n.type),i=r.length>0?hc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(x(je))})}}return e})();function hE(e){Vn("NgStandalone"),e.getStandaloneInjector=t=>t.get(Ok).getOrCreateStandaloneInjector(e)}function Fre(e,t,n){let r=rc()+e,i=Q();return i[r]===Mt?pc(i,r,n?t.call(n):t()):oE(i,r)}function Rre(e,t,n,r){return Ak(Q(),rc(),e,t,n,r)}function kre(e,t,n,r,i,o){return Tk(Q(),rc(),e,t,n,r,i,o)}function jre(e,t,n,r,i,o,s,a){let u=rc()+e,c=Q(),l=kR(c,u,n,r,i,o);return ct(c,u+4,s)||l?pc(c,u+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):oE(c,u+5)}function pE(e,t){let n=e[t];return n===Mt?void 0:n}function Ak(e,t,n,r,i,o){let s=t+n;return ct(e,s,i)?pc(e,s+1,o?r.call(o,i):r(i)):pE(e,s+1)}function Tk(e,t,n,r,i,o,s,a){let u=t+n;return sE(e,u,i,o,s)?pc(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):pE(e,u+3)}var pu=null;function xk(e){pu!==null&&(e.defaultEncapsulation!==pu.defaultEncapsulation||e.preserveWhitespaces!==pu.preserveWhitespaces)||(pu=e)}var vc=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Dm=new C(""),Es=new C(""),yc=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,wm||(Nk(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static{this.\u0275fac=function(r){return new(r||e)(x(te),x(_c),x(Es))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),_c=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return wm?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function Nk(e){wm=e}var wm;function Rr(e){return!!e&&typeof e.then=="function"}function gE(e){return!!e&&typeof e.subscribe=="function"}var bc=new C(""),mE=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=b(bc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(Rr(o))n.push(o);else if(gE(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Dc=new C("");function Pk(){qb(()=>{throw new O(600,!1)})}function Fk(e){return e.isBoundToModule}var Rk=10;function kk(e,t,n){try{let r=n();return Rr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function vE(e,t){return Array.isArray(t)?t.reduce(vE,e):D(D({},e),t)}var cn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(AP),this.afterRenderManager=b(aE),this.zonelessEnabled=b(vm),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ye,this.afterTick=new ye,this.componentTypes=[],this.components=[],this.isStable=b(sn).hasPendingTasks.pipe(V(n=>!n)),this._injector=b(je)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof ju;if(!this._injector.get(mE).done){let p=!i&&yD(n),g=!1;throw new O(405,g)}let s;i?s=n:s=this._injector.get(Oi).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Fk(s)?void 0:this._injector.get(Rn),u=r||s.selector,c=s.create(tt.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(Dm,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),_u(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new O(101,!1);let n=W(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,W(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Ai,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<Rk;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)jk(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>tc(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;_u(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Dc,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>_u(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _u(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function jk(e,t,n,r){if(!n&&!tc(e))return;Jw(e,t,n&&!r?0:1)}var kg=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},wc=(()=>{class e{compileModuleSync(n){return new Uu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=_D(n),o=Dw(i.declarations).reduce((s,a)=>{let u=Pn(a);return u&&s.push(new Ti(u)),s},[]);return new kg(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Lk=new C("");function Vk(e,t,n){let r=new Uu(n);return Promise.resolve(r)}function J0(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var qk=(()=>{class e{constructor(){this.zone=b(te),this.changeDetectionScheduler=b(Ii),this.applicationRef=b(cn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Uk({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new te(B(D({},yE()),{scheduleInRootZone:n})),[{provide:te,useFactory:e},{provide:_i,multi:!0,useFactory:()=>{let r=b(qk,{optional:!0});return()=>r.initialize()}},{provide:_i,multi:!0,useFactory:()=>{let r=b($k);return()=>{r.initialize()}}},t===!0?{provide:tE,useValue:!0}:[],{provide:nE,useValue:n??uw}]}function yE(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var $k=(()=>{class e{constructor(){this.subscription=new de,this.initialized=!1,this.zone=b(te),this.pendingTasks=b(sn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Bk=(()=>{class e{constructor(){this.appRef=b(cn),this.taskService=b(sn),this.ngZone=b(te),this.zonelessEnabled=b(vm),this.disableScheduling=b(tE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new de,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Nu):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(nE,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Pu||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?N0:cw;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Nu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,N0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Hk(){return typeof $localize<"u"&&$localize.locale||zu}var Em=new C("",{providedIn:"root",factory:()=>b(Em,H.Optional|H.SkipSelf)||Hk()});var Wu=new C("");function gu(e){return!e.moduleRef}function zk(e){let t=gu(e)?e.r3Injector:e.moduleRef.injector,n=t.get(te);return n.run(()=>{gu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(tn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),gu(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Wu);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Wu);s.add(o),e.moduleRef.onDestroy(()=>{_u(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return kk(r,n,()=>{let o=t.get(mE);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Em,zu);if(mk(s||zu),gu(e)){let a=t.get(cn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Wk(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Wk(e,t){let n=e.injector.get(cn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new O(-403,!1);t.push(e)}var _E=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let i=r?.scheduleInRootZone,o=()=>OP(r?.ngZone,B(D({},yE({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),s=r?.ignoreChangesOutsideZone,a=[Uk({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:Ii,useExisting:Bk}],u=RR(n.moduleType,this.injector,a);return zk({moduleRef:u,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let i=vE({},r);return Vk(this.injector,i,n).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Wu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(x(tt))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),ss=null,Gu=new C("");function Gk(e){if(Cm())throw new O(400,!1);Pk(),ss=e.get(Gu,!1)?null:e;let n=e.get(_E);return Qk(e),n}function Mm(e,t,n=[]){let r=`Platform: ${t}`,i=new C(r);return(o=[])=>{let s=Cm();if(!s||s.injector.get(Gu,!1)){let u=[...n,...o,{provide:i,useValue:!0}];s=e?.(u)??Gk(Zk(u,r))}return s.injector.get(Gu,!1)?s:Yk(i)}}function Zk(e=[],t){return tt.create({name:t,providers:[{provide:Ku,useValue:"platform"},{provide:Wu,useValue:new Set([()=>ss=null])},...e]})}function Yk(e){let t=Cm();if(!t)throw new O(401,!1);return t}function Cm(){return ss&&ss.get(Gu,!1)?null:ss?.get(_E)??null}function Qk(e){e.get(im,null)?.forEach(n=>n())}var kr=(()=>{class e{static{this.__NG_ELEMENT_ID__=Jk}}return e})();function Jk(e){return Kk(Ze(),Q(),(e&16)===16)}function Kk(e,t,n){if(ec(e)&&!n){let r=kn(e.index,t);return new Si(r,r)}else if(e.type&175){let r=t[Dt];return new Si(r,t)}return null}var bE=Mm(null,"core",[]),DE=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(x(cn))}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({})}}return e})();function jr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Ms(e,t){Vn("NgSignals");let n=jb(e);return t?.equal&&(n[Kt].equal=t.equal),n}function ln(e){let t=W(null);try{return e()}finally{W(t)}}function wE(e){let t=Pn(e);if(!t)return null;let n=new Ti(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var SE=null;function Vt(){return SE}function IE(e){SE??=e}var Ec=class{};var Ae=new C(""),Tm=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(ej),providedIn:"platform"})}}return e})(),OE=new C(""),ej=(()=>{class e extends Tm{constructor(){super(),this._doc=b(Ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Vt().getBaseHref(this._doc)}onPopState(n){let r=Vt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Vt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function xm(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function EE(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function dn(e){return e&&e[0]!=="?"?"?"+e:e}var fn=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(Nm),providedIn:"root"})}}return e})(),AE=new C(""),Nm=(()=>{class e extends fn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??b(Ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return xm(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+dn(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+dn(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+dn(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(x(Tm),x(AE,8))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),TE=(()=>{class e extends fn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=xm(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+dn(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+dn(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(x(Tm),x(AE,8))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),ki=(()=>{class e{constructor(n){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=rj(EE(ME(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+dn(r))}normalize(n){return e.stripTrailingSlash(nj(this._basePath,ME(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dn(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=dn}static{this.joinWithSlash=xm}static{this.stripTrailingSlash=EE}static{this.\u0275fac=function(r){return new(r||e)(x(fn))}}static{this.\u0275prov=T({token:e,factory:()=>tj(),providedIn:"root"})}}return e})();function tj(){return new ki(x(fn))}function nj(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function ME(e){return e.replace(/\/index.html$/,"")}function rj(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Mc(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Sm=/\s+/,CE=[],die=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=CE,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Sm):CE}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Sm):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Sm).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||e)(X(an),X(Ln))}}static{this.\u0275dir=Ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var xE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({})}}return e})(),Pm="browser",ij="server";function oj(e){return e===Pm}function Cc(e){return e===ij}var NE=(()=>{class e{static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>oj(b(Lt))?new Im(b(Ae),window):new Om})}}return e})(),Im=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=sj(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function sj(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}var Om=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Ri=class{};var Is=class{},Ic=class{},hn=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
218
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Rm=class{encodeKey(t){return FE(t)}encodeValue(t){return FE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function aj(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var uj=/%(\d[a-f0-9])/gi,cj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function FE(e){return encodeURIComponent(e).replace(uj,(t,n)=>cj[n]??t)}function Sc(e){return`${e}`}var Un=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Rm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=aj(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(Sc):[Sc(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Sc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(Sc(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var km=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function lj(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function RE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function kE(e){return typeof Blob<"u"&&e instanceof Blob}function jE(e){return typeof FormData<"u"&&e instanceof FormData}function dj(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Ss=class e{constructor(t,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(lj(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new hn,this.context??=new km,!this.params)this.params=new Un,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||RE(this.body)||kE(this.body)||jE(this.body)||dj(this.body)?this.body:this.body instanceof Un?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||jE(this.body)?null:kE(this.body)?this.body.type||null:RE(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Un?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,u=t.reportProgress??this.reportProgress,c=t.headers||this.headers,l=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,g)=>p.set(g,t.setHeaders[g]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((p,g)=>p.set(g,t.setParams[g]),l)),new e(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},$n=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}($n||{}),Os=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new hn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Oc=class e extends Os{constructor(t={}){super(t),this.type=$n.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},As=class e extends Os{constructor(t={}){super(t),this.type=$n.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},qn=class extends Os{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},$E=200,fj=204;function Fm(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var hj=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Ss)o=n;else{let u;i.headers instanceof hn?u=i.headers:u=new hn(i.headers);let c;i.params&&(i.params instanceof Un?c=i.params:c=new Un({fromObject:i.params})),o=new Ss(n,r,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=F(o).pipe(Xt(u=>this.handler.handle(u)));if(n instanceof Ss||i.observe==="events")return s;let a=s.pipe(He(u=>u instanceof As));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(V(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(V(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(V(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return a.pipe(V(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Un().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Fm(i,r))}post(n,r,i={}){return this.request("POST",n,Fm(i,r))}put(n,r,i={}){return this.request("PUT",n,Fm(i,r))}static{this.\u0275fac=function(r){return new(r||e)(x(Is))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),pj=/^\)\]\}',?\n/,gj="X-Request-URL";function LE(e){if(e.url)return e.url;let t=gj.toLocaleLowerCase();return e.headers.get(t)}var mj=(()=>{class e{constructor(){this.fetchImpl=b(jm,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=b(te)}handle(n){return new Z(r=>{let i=new AbortController;return this.doRequest(n,i.signal,r).then(Lm,o=>r.error(new qn({error:o}))),()=>i.abort()})}doRequest(n,r,i){return we(this,null,function*(){let o=this.createRequestInit(n),s;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,D({signal:r},o)));vj(g),i.next({type:$n.Sent}),s=yield g}catch(g){i.error(new qn({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let a=new hn(s.headers),u=s.statusText,c=LE(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&i.next(new Oc({headers:a,status:l,statusText:u,url:c})),s.body){let g=s.headers.get("content-length"),m=[],v=s.body.getReader(),y=0,_,S,N=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>we(this,null,function*(){for(;;){let{done:L,value:R}=yield v.read();if(L)break;if(m.push(R),y+=R.length,n.reportProgress){S=n.responseType==="text"?(S??"")+(_??=new TextDecoder).decode(R,{stream:!0}):void 0;let ve=()=>i.next({type:$n.DownloadProgress,total:g?+g:void 0,loaded:y,partialText:S});N?N.run(ve):ve()}}}));let P=this.concatChunks(m,y);try{let L=s.headers.get("Content-Type")??"";d=this.parseBody(n,P,L)}catch(L){i.error(new qn({error:L,headers:new hn(s.headers),status:s.status,statusText:s.statusText,url:LE(s)??n.urlWithParams}));return}}l===0&&(l=d?$E:0),l>=200&&l<300?(i.next(new As({body:d,headers:a,status:l,statusText:u,url:c})),i.complete()):i.error(new qn({error:d,headers:a,status:l,statusText:u,url:c}))})}parseBody(n,r,i){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(pj,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),jm=class{};function Lm(){}function vj(e){e.then(Lm,Lm)}function BE(e,t){return t(e)}function yj(e,t){return(n,r)=>t.intercept(n,{handle:i=>e(i,r)})}function _j(e,t,n){return(r,i)=>ft(n,()=>t(r,o=>e(o,i)))}var bj=new C(""),Vm=new C(""),Dj=new C(""),HE=new C("",{providedIn:"root",factory:()=>!0});function wj(){let e=null;return(t,n)=>{e===null&&(e=(b(bj,{optional:!0})??[]).reduceRight(yj,BE));let r=b(sn);if(b(HE)){let o=r.add();return e(t,n).pipe(On(()=>r.remove(o)))}else return e(t,n)}}var VE=(()=>{class e extends Is{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=b(sn),this.contributeToStability=b(HE)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Vm),...this.injector.get(Dj,[])]));this.chain=r.reduceRight((i,o)=>_j(i,o,this.injector),BE)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(On(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(x(Ic),x(je))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();var Ej=/^\)\]\}',?\n/;function Mj(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var qE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new O(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ae(r.\u0275loadImpl()):F(null)).pipe(ze(()=>new Z(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,y)=>s.setRequestHeader(v,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),u=null,c=()=>{if(u!==null)return u;let v=s.statusText||"OK",y=new hn(s.getAllResponseHeaders()),_=Mj(s)||n.url;return u=new Oc({headers:y,status:s.status,statusText:v,url:_}),u},l=()=>{let{headers:v,status:y,statusText:_,url:S}=c(),N=null;y!==fj&&(N=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=N?$E:0);let P=y>=200&&y<300;if(n.responseType==="json"&&typeof N=="string"){let L=N;N=N.replace(Ej,"");try{N=N!==""?JSON.parse(N):null}catch(R){N=L,P&&(P=!1,N={error:R,text:N})}}P?(o.next(new As({body:N,headers:v,status:y,statusText:_,url:S||void 0})),o.complete()):o.error(new qn({error:N,headers:v,status:y,statusText:_,url:S||void 0}))},d=v=>{let{url:y}=c(),_=new qn({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});o.error(_)},p=!1,g=v=>{p||(o.next(c()),p=!0);let y={type:$n.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),o.next(y)},m=v=>{let y={type:$n.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),o.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:$n.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(x(Ri))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),zE=new C(""),Cj="XSRF-TOKEN",Sj=new C("",{providedIn:"root",factory:()=>Cj}),Ij="X-XSRF-TOKEN",Oj=new C("",{providedIn:"root",factory:()=>Ij}),Ac=class{},Aj=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mc(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(x(Ae),x(Lt),x(Sj))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function Tj(e,t){let n=e.url.toLowerCase();if(!b(zE)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=b(Ac).getToken(),i=b(Oj);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var WE=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(WE||{});function xj(e,t){return{\u0275kind:e,\u0275providers:t}}function Nj(...e){let t=[hj,qE,VE,{provide:Is,useExisting:VE},{provide:Ic,useFactory:()=>b(mj,{optional:!0})??b(qE)},{provide:Vm,useValue:Tj,multi:!0},{provide:zE,useValue:!0},{provide:Ac,useClass:Aj}];for(let n of e)t.push(...n.\u0275providers);return Ju(t)}var UE=new C("");function Pj(){return xj(WE.LegacyInterceptors,[{provide:UE,useFactory:wj},{provide:Vm,useExisting:UE,multi:!0}])}var Cie=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({providers:[Nj(Pj())]})}}return e})();var $m=class extends Ec{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Bm=class e extends $m{static makeCurrent(){IE(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Fj();return n==null?null:Rj(n)}resetBaseElement(){Ts=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Mc(document.cookie,t)}},Ts=null;function Fj(){return Ts=Ts||document.querySelector("base"),Ts?Ts.getAttribute("href"):null}function Rj(e){return new URL(e,document.baseURI).pathname}var Hm=class{addToWindow(t){bt.getAngularTestability=(r,i=!0)=>{let o=t.findTestabilityInTree(r,i);if(o==null)throw new O(5103,!1);return o},bt.getAllAngularTestabilities=()=>t.getAllTestabilities(),bt.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let i=bt.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};bt.frameworkStabilizers||(bt.frameworkStabilizers=[]),bt.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let i=t.getTestability(n);return i??(r?Vt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},kj=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),zm=new C(""),QE=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(x(zm),x(te))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),Tc=class{constructor(t){this._doc=t}},qm="ng-app-id",JE=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Cc(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${qm}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute(qm),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(qm,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(x(Ae),x(ic),x(om,8),x(Lt))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),Um={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Gm=/%COMP%/g,KE="%COMP%",jj=`_nghost-${KE}`,Lj=`_ngcontent-${KE}`,Vj=!0,qj=new C("",{providedIn:"root",factory:()=>Vj});function Uj(e){return Lj.replace(Gm,e)}function $j(e){return jj.replace(Gm,e)}function XE(e,t){return t.map(n=>n.replace(Gm,e))}var GE=(()=>{class e{constructor(n,r,i,o,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Cc(a),this.defaultRenderer=new xs(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Rt.ShadowDom&&(r=B(D({},r),{encapsulation:Rt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof xc?i.applyToHost(n):i instanceof Ns&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Rt.Emulated:o=new xc(u,c,r,this.appId,l,s,a,d);break;case Rt.ShadowDom:return new Wm(u,c,n,r,s,a,this.nonce,d);default:o=new Ns(u,c,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(x(QE),x(JE),x(ic),x(qj),x(Ae),x(Lt),x(te),x(om))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),xs=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Um[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ZE(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ZE(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new O(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Um[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Um[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(nn.DashCase|nn.Important)?t.style.setProperty(n,r,i&nn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&nn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function ZE(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Wm=class extends xs{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=XE(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ns=class extends xs{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?XE(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},xc=class extends Ns{constructor(t,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(t,n,r,o,s,a,u,c),this.contentAttr=Uj(c),this.hostAttr=$j(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Bj=(()=>{class e extends Tc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(x(Ae))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),YE=["alt","control","meta","shift"],Hj={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zj={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Wj=(()=>{class e extends Tc{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vt().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),YE.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=Hj[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),YE.forEach(s=>{if(s!==i){let a=zj[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(x(Ae))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function Gj(){Bm.makeCurrent()}function Zj(){return new tn}function Yj(){return mw(document),document}var Qj=[{provide:Lt,useValue:Pm},{provide:im,useValue:Gj,multi:!0},{provide:Ae,useFactory:Yj,deps:[]}],Wie=Mm(bE,"browser",Qj),Jj=new C(""),Kj=[{provide:Es,useClass:Hm,deps:[]},{provide:Dm,useClass:yc,deps:[te,_c,Es]},{provide:yc,useClass:yc,deps:[te,_c,Es]}],Xj=[{provide:Ku,useValue:"root"},{provide:tn,useFactory:Zj,deps:[]},{provide:zm,useClass:Bj,multi:!0,deps:[Ae,te,Lt]},{provide:zm,useClass:Wj,multi:!0,deps:[Ae]},GE,JE,QE,{provide:Ai,useExisting:GE},{provide:Ri,useClass:kj,deps:[]},[]],Gie=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ic,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(x(Jj,12))}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({providers:[...Xj,...Kj],imports:[xE,DE]})}}return e})();var eM=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(x(Ae))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var U="primary",wa=Symbol("RouteTitle"),V_=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function $o(e){return new V_(e)}function YZ(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function QZ(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Qt(e[n],t[n]))return!1;return!0}function Qt(e,t){let n=e?q_(e):void 0,r=t?q_(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!QT(e[i],t[i]))return!1;return!0}function q_(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function QT(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}else return e===t}function JT(e){return e.length>0?e[e.length-1]:null}function _r(e){return Sp(e)?e:Rr(e)?ae(Promise.resolve(e)):F(e)}var JZ={exact:XT,subset:ex},KT={exact:KZ,subset:XZ,ignored:()=>!0};function qT(e,t,n){return JZ[n.paths](e.root,t.root,n.matrixParams)&&KT[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function KZ(e,t){return Qt(e,t)}function XT(e,t,n){if(!Kr(e.segments,t.segments)||!Lh(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!XT(e.children[r],t.children[r],n))return!1;return!0}function XZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>QT(e[n],t[n]))}function ex(e,t,n){return tx(e,t,t.segments,n)}function tx(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Kr(i,n)||t.hasChildren()||!Lh(i,n,r))}else if(e.segments.length===n.length){if(!Kr(e.segments,n)||!Lh(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!ex(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!Kr(e.segments,i)||!Lh(e.segments,i,r)||!e.children[U]?!1:tx(e.children[U],t,o,r)}}function Lh(e,t,n){return t.every((r,i)=>KT[n](e[i].parameters,r.parameters))}var En=class{constructor(t=new K([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=$o(this.queryParams),this._queryParamMap}toString(){return nY.serialize(this)}},K=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vh(this)}},Jr=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=$o(this.parameters),this._parameterMap}toString(){return rx(this)}};function eY(e,t){return Kr(e,t)&&e.every((n,r)=>Qt(n.parameters,t[r].parameters))}function Kr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function tY(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===U&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==U&&(n=n.concat(t(i,r)))}),n}var Ea=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>new Bo,providedIn:"root"})}}return e})(),Bo=class{parse(t){let n=new $_(t);return new En(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${ca(t.root,!0)}`,r=oY(t.queryParams),i=typeof t.fragment=="string"?`#${rY(t.fragment)}`:"";return`${n}${r}${i}`}},nY=new Bo;function Vh(e){return e.segments.map(t=>rx(t)).join("/")}function ca(e,t){if(!e.hasChildren())return Vh(e);if(t){let n=e.children[U]?ca(e.children[U],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==U&&r.push(`${i}:${ca(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=tY(e,(r,i)=>i===U?[ca(e.children[U],!1)]:[`${i}:${ca(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[U]!=null?`${Vh(e)}/${n[0]}`:`${Vh(e)}/(${n.join("//")})`}}function nx(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kh(e){return nx(e).replace(/%3B/gi,";")}function rY(e){return encodeURI(e)}function U_(e){return nx(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qh(e){return decodeURIComponent(e)}function UT(e){return qh(e.replace(/\+/g,"%20"))}function rx(e){return`${U_(e.path)}${iY(e.parameters)}`}function iY(e){return Object.entries(e).map(([t,n])=>`;${U_(t)}=${U_(n)}`).join("")}function oY(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${kh(n)}=${kh(i)}`).join("&"):`${kh(n)}=${kh(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var sY=/^[^\/()?;#]+/;function R_(e){let t=e.match(sY);return t?t[0]:""}var aY=/^[^\/()?;=#]+/;function uY(e){let t=e.match(aY);return t?t[0]:""}var cY=/^[^=?&#]+/;function lY(e){let t=e.match(cY);return t?t[0]:""}var dY=/^[^&#]+/;function fY(e){let t=e.match(dY);return t?t[0]:""}var $_=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new K([],{}):new K([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[U]=new K(t,n)),r}parseSegment(){let t=R_(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new O(4009,!1);return this.capture(t),new Jr(qh(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=uY(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=R_(this.remaining);i&&(r=i,this.capture(r))}t[qh(n)]=qh(r)}parseQueryParam(t){let n=lY(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=fY(this.remaining);s&&(r=s,this.capture(r))}let i=UT(n),o=UT(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=R_(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new O(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=U);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[U]:new K([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new O(4011,!1)}};function ix(e){return e.segments.length>0?new K([],{[U]:e}):e}function ox(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=ox(i);if(r===U&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new K(e.segments,t);return hY(n)}function hY(e){if(e.numberOfChildren===1&&e.children[U]){let t=e.children[U];return new K(e.segments.concat(t.segments),t.children)}return e}function Xr(e){return e instanceof En}function pY(e,t,n=null,r=null){let i=sx(e);return ax(i,t,n,r)}function sx(e){let t;function n(o){let s={};for(let u of o.children){let c=n(u);s[u.outlet]=c}let a=new K(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=ix(r);return t??i}function ax(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return k_(i,i,i,n,r);let o=gY(t);if(o.toRoot())return k_(i,i,new K([],{}),n,r);let s=mY(o,i,e),a=s.processChildren?fa(s.segmentGroup,s.index,o.commands):cx(s.segmentGroup,s.index,o.commands);return k_(i,s.segmentGroup,a,n,r)}function Uh(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ga(e){return typeof e=="object"&&e!=null&&e.outlets}function k_(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=ux(e,t,n);let a=ix(ox(s));return new En(a,o,i)}function ux(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=ux(o,t,n)}),new K(e.segments,r)}var $h=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Uh(r[0]))throw new O(4003,!1);let i=r.find(ga);if(i&&i!==JT(r))throw new O(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gY(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new $h(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new $h(n,t,r)}var Vo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function mY(e,t,n){if(e.isAbsolute)return new Vo(t,!0,0);if(!n)return new Vo(t,!1,NaN);if(n.parent===null)return new Vo(n,!0,0);let r=Uh(e.commands[0])?0:1,i=n.segments.length-1+r;return vY(n,i,e.numberOfDoubleDots)}function vY(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new O(4005,!1);i=r.segments.length}return new Vo(r,!1,i-o)}function yY(e){return ga(e[0])?e[0].outlets:{[U]:e}}function cx(e,t,n){if(e??=new K([],{}),e.segments.length===0&&e.hasChildren())return fa(e,t,n);let r=_Y(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new K(e.segments.slice(0,r.pathIndex),{});return o.children[U]=new K(e.segments.slice(r.pathIndex),e.children),fa(o,0,i)}else return r.match&&i.length===0?new K(e.segments,{}):r.match&&!e.hasChildren()?B_(e,t,n):r.match?fa(e,0,i):B_(e,t,n)}function fa(e,t,n){if(n.length===0)return new K(e.segments,{});{let r=yY(n),i={};if(Object.keys(r).some(o=>o!==U)&&e.children[U]&&e.numberOfChildren===1&&e.children[U].segments.length===0){let o=fa(e.children[U],t,n);return new K(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=cx(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new K(e.segments,i)}}function _Y(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(ga(a))break;let u=`${a}`,c=r<n.length-1?n[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!BT(u,c,s))return o;r+=2}else{if(!BT(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function B_(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(ga(o)){let u=bY(o.outlets);return new K(r,u)}if(i===0&&Uh(n[0])){let u=e.segments[t];r.push(new Jr(u.path,$T(n[0]))),i++;continue}let s=ga(o)?o.outlets[U]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&Uh(a)?(r.push(new Jr(s,$T(a))),i+=2):(r.push(new Jr(s,{})),i++)}return new K(r,{})}function bY(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=B_(new K([],{}),0,r))}),t}function $T(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function BT(e,t,n){return e==n.path&&Qt(t,n.parameters)}var ha="imperative",De=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(De||{}),gt=class{constructor(t,n){this.id=t,this.url=n}},Ho=class extends gt{constructor(t,n,r="imperative",i=null){super(t,n),this.type=De.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Jt=class extends gt{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=De.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ot=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ot||{}),Bh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Bh||{}),wn=class extends gt{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=De.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},vr=class extends gt{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=De.NavigationSkipped}},ma=class extends gt{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=De.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hh=class extends gt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},H_=class extends gt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},z_=class extends gt{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=De.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},W_=class extends gt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},G_=class extends gt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Z_=class{constructor(t){this.route=t,this.type=De.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Y_=class{constructor(t){this.route=t,this.type=De.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Q_=class{constructor(t){this.snapshot=t,this.type=De.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},J_=class{constructor(t){this.snapshot=t,this.type=De.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},K_=class{constructor(t){this.snapshot=t,this.type=De.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},X_=class{constructor(t){this.snapshot=t,this.type=De.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zh=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=De.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},va=class{},zo=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function DY(e,t){return e.providers&&!e._injector&&(e._injector=hc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Tt(e){return e.outlet||U}function wY(e,t){let n=e.filter(r=>Tt(r)===t);return n.push(...e.filter(r=>Tt(r)!==t)),n}function Ma(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var eb=class{get injector(){return Ma(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ca(this.rootInjector),this.attachRef=null}},Ca=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new eb(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(x(je))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wh=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=tb(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=tb(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=nb(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return nb(t,this._root).map(n=>n.value)}};function tb(e,t){if(e===t.value)return t;for(let n of t.children){let r=tb(e,n);if(r)return r}return null}function nb(e,t){if(e===t.value)return[t];for(let n of t.children){let r=nb(e,n);if(r.length)return r.unshift(t),r}return[]}var it=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Lo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Gh=class extends Wh{constructor(t,n){super(t),this.snapshot=n,db(this,t)}toString(){return this.snapshot.toString()}};function lx(e){let t=EY(e),n=new Ee([new Jr("",{})]),r=new Ee({}),i=new Ee({}),o=new Ee({}),s=new Ee(""),a=new ei(n,r,o,s,i,U,e,t.root);return a.snapshot=t.root,new Gh(new it(a,[]),t)}function EY(e){let t={},n={},r={},i="",o=new qo([],t,r,i,n,U,e,null,{});return new Yh("",new it(o,[]))}var ei=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(V(c=>c[wa]))??F(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(V(t=>$o(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>$o(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zh(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:D(D({},t.params),e.params),data:D(D({},t.data),e.data),resolve:D(D(D(D({},e.data),t.data),i?.data),e._resolvedData)}:r={params:D({},e.params),data:D({},e.data),resolve:D(D({},e.data),e._resolvedData??{})},i&&fx(i)&&(r.resolve[wa]=i.title),r}var qo=class{get title(){return this.data?.[wa]}constructor(t,n,r,i,o,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=$o(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$o(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Yh=class extends Wh{constructor(t,n){super(n),this.url=t,db(this,n)}toString(){return dx(this._root)}};function db(e,t){t.value._routerState=e,t.children.forEach(n=>db(e,n))}function dx(e){let t=e.children.length>0?` { ${e.children.map(dx).join(", ")} } `:"";return`${e.value}${t}`}function j_(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Qt(t.params,n.params)||e.paramsSubject.next(n.params),QZ(t.url,n.url)||e.urlSubject.next(n.url),Qt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function rb(e,t){let n=Qt(e.params,t.params)&&eY(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||rb(e.parent,t.parent))}function fx(e){return typeof e.title=="string"||e.title===null}var MY=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=U,this.activateEvents=new pe,this.deactivateEvents=new pe,this.attachEvents=new pe,this.detachEvents=new pe,this.parentContexts=b(Ca),this.location=b(fc),this.changeDetector=b(kr),this.inputBinder=b(ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new O(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new O(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new O(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new O(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ib(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Ve({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Pr]})}}return e})(),ib=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ei?this.route:t===Ca?this.childContexts:this.parent.get(t,n)}},ep=new C(""),HT=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,i=rs([r.queryParams,r.params,r.data]).pipe(ze(([o,s,a],u)=>(a=D(D(D({},o),s),a),u===0?F(a):Promise.resolve(a)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=wE(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(n,i)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function CY(e,t,n){let r=ya(e,t._root,n?n._root:void 0);return new Gh(r,t)}function ya(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=SY(e,t,n);return new it(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ya(e,a)),s}}let r=IY(t.value),i=t.children.map(o=>ya(e,o));return new it(r,i)}}function SY(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ya(e,r,i);return ya(e,r)})}function IY(e){return new ei(new Ee(e.url),new Ee(e.params),new Ee(e.queryParams),new Ee(e.fragment),new Ee(e.data),e.outlet,e.component,e)}var _a=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},hx="ngNavigationCancelingError";function Qh(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Xr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=px(!1,ot.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function px(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[hx]=!0,n.cancellationCode=t,n}function OY(e){return gx(e)&&Xr(e.url)}function gx(e){return!!e&&e[hx]}var AY=(e,t,n,r)=>V(i=>(new ob(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),ob=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),j_(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Lo(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Lo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Lo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Lo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new X_(o.value.snapshot))}),t.children.length&&this.forwardEvent(new J_(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(j_(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),j_(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Jh=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Uo=class{constructor(t,n){this.component=t,this.route=n}};function TY(e,t,n){let r=e._root,i=t?t._root:null;return la(r,i,n,[r.value])}function xY(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Go(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!tD(e)?e:t.get(e):r}function la(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Lo(t);return e.children.forEach(s=>{NY(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>pa(a,n.getContext(s),i)),i}function NY(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=PY(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Jh(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?la(e,t,a?a.children:null,r,i):la(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Uo(a.outlet.component,s))}else s&&pa(t,a,i),i.canActivateChecks.push(new Jh(r)),o.component?la(e,null,a?a.children:null,r,i):la(e,null,n,r,i);return i}function PY(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Kr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Kr(e.url,t.url)||!Qt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!rb(e,t)||!Qt(e.queryParams,t.queryParams);case"paramsChange":default:return!rb(e,t)}}function pa(e,t,n){let r=Lo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?pa(s,t.children.getContext(o),n):pa(s,null,n):pa(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Uo(t.outlet.component,i)):n.canDeactivateChecks.push(new Uo(null,i)):n.canDeactivateChecks.push(new Uo(null,i))}function Sa(e){return typeof e=="function"}function FY(e){return typeof e=="boolean"}function RY(e){return e&&Sa(e.canLoad)}function kY(e){return e&&Sa(e.canActivate)}function jY(e){return e&&Sa(e.canActivateChild)}function LY(e){return e&&Sa(e.canDeactivate)}function VY(e){return e&&Sa(e.canMatch)}function mx(e){return e instanceof vt||e?.name==="EmptyError"}var jh=Symbol("INITIAL_VALUE");function Wo(){return ze(e=>rs(e.map(t=>t.pipe(en(1),xp(jh)))).pipe(V(t=>{for(let n of t)if(n!==!0){if(n===jh)return jh;if(n===!1||qY(n))return n}return!0}),He(t=>t!==jh),en(1)))}function qY(e){return Xr(e)||e instanceof _a}function UY(e,t){return he(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?F(B(D({},n),{guardsResult:!0})):$Y(s,r,i,e).pipe(he(a=>a&&FY(a)?BY(r,o,e,t):F(a)),V(a=>B(D({},n),{guardsResult:a})))})}function $Y(e,t,n,r){return ae(e).pipe(he(i=>ZY(i.component,i.route,n,t,r)),Nt(i=>i!==!0,!0))}function BY(e,t,n,r){return ae(t).pipe(Xt(i=>ci(zY(i.route.parent,r),HY(i.route,r),GY(e,i.path,n),WY(e,i.route,n))),Nt(i=>i!==!0,!0))}function HY(e,t){return e!==null&&t&&t(new K_(e)),F(!0)}function zY(e,t){return e!==null&&t&&t(new Q_(e)),F(!0)}function WY(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return F(!0);let i=r.map(o=>uu(()=>{let s=Ma(t)??n,a=Go(o,s),u=kY(a)?a.canActivate(t,e):ft(s,()=>a(t,e));return _r(u).pipe(Nt())}));return F(i).pipe(Wo())}function GY(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>xY(s)).filter(s=>s!==null).map(s=>uu(()=>{let a=s.guards.map(u=>{let c=Ma(s.node)??n,l=Go(u,c),d=jY(l)?l.canActivateChild(r,e):ft(c,()=>l(r,e));return _r(d).pipe(Nt())});return F(a).pipe(Wo())}));return F(o).pipe(Wo())}function ZY(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return F(!0);let s=o.map(a=>{let u=Ma(t)??i,c=Go(a,u),l=LY(c)?c.canDeactivate(e,t,n,r):ft(u,()=>c(e,t,n,r));return _r(l).pipe(Nt())});return F(s).pipe(Wo())}function YY(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return F(!0);let o=i.map(s=>{let a=Go(s,e),u=RY(a)?a.canLoad(t,n):ft(e,()=>a(t,n));return _r(u)});return F(o).pipe(Wo(),vx(r))}function vx(e){return wp(_e(t=>{if(typeof t!="boolean")throw Qh(e,t)}),V(t=>t===!0))}function QY(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return F(!0);let o=i.map(s=>{let a=Go(s,e),u=VY(a)?a.canMatch(t,n):ft(e,()=>a(t,n));return _r(u)});return F(o).pipe(Wo(),vx(r))}var ba=class{constructor(t){this.segmentGroup=t||null}},Da=class extends Error{constructor(t){super(),this.urlTree=t}};function jo(e){return ai(new ba(e))}function JY(e){return ai(new O(4e3,!1))}function KY(e){return ai(px(!1,ot.GuardRejected))}var sb=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return F(r);if(i.numberOfChildren>1||!i.children[U])return JY(`${t.redirectTo}`);i=i.children[U]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,params:g,data:m,title:v}=i,y=ft(o,()=>a({params:g,data:m,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,title:v}));if(y instanceof En)throw new Da(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Da(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new En(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new K(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new O(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},ab={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function XY(e,t,n,r,i){let o=yx(e,t,n);return o.matched?(r=DY(t,r),QY(r,t,n,i).pipe(V(s=>s===!0?o:D({},ab)))):F(o)}function yx(e,t,n){if(t.path==="**")return eQ(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?D({},ab):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||YZ)(n,e,t);if(!i)return D({},ab);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?D(D({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function eQ(e){return{matched:!0,parameters:e.length>0?JT(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zT(e,t,n,r){return n.length>0&&rQ(e,n,r)?{segmentGroup:new K(t,nQ(r,new K(n,e.children))),slicedSegments:[]}:n.length===0&&iQ(e,n,r)?{segmentGroup:new K(e.segments,tQ(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new K(e.segments,e.children),slicedSegments:n}}function tQ(e,t,n,r){let i={};for(let o of n)if(tp(e,t,o)&&!r[Tt(o)]){let s=new K([],{});i[Tt(o)]=s}return D(D({},r),i)}function nQ(e,t){let n={};n[U]=t;for(let r of e)if(r.path===""&&Tt(r)!==U){let i=new K([],{});n[Tt(r)]=i}return n}function rQ(e,t,n){return n.some(r=>tp(e,t,r)&&Tt(r)!==U)}function iQ(e,t,n){return n.some(r=>tp(e,t,r))}function tp(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function oQ(e,t,n){return t.length===0&&!e.children[n]}var ub=class{};function sQ(e,t,n,r,i,o,s="emptyOnly"){return new cb(e,t,n,r,i,s,o).recognize()}var aQ=31,cb=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new sb(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new O(4002,`'${t.segmentGroup}'`)}recognize(){let t=zT(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(V(({children:n,rootSnapshot:r})=>{let i=new it(r,n),o=new Yh("",i),s=pY(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new qo([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),U,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,U,n).pipe(V(r=>({children:r,rootSnapshot:n})),Sn(r=>{if(r instanceof Da)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ba?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(V(s=>s instanceof it?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ae(o).pipe(Xt(s=>{let a=r.children[s],u=wY(n,s);return this.processSegmentGroup(t,u,a,s,i)}),Tp((s,a)=>(s.push(...a),s)),In(null),Ap(),he(s=>{if(s===null)return jo(r);let a=_x(s);return uQ(a),F(a)}))}processSegment(t,n,r,i,o,s,a){return ae(n).pipe(Xt(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(Sn(c=>{if(c instanceof ba)return F(null);throw c}))),Nt(u=>!!u),Sn(u=>{if(mx(u))return oQ(r,i,o)?F(new ub):jo(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return Tt(r)!==s&&(s===U||!tp(i,o,r))?jo(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):jo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=yx(n,i,o);if(!u)return jo(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aQ&&(this.allowRedirects=!1));let g=new qo(o,c,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,WT(i),Tt(i),i.component??i._loadedComponent??null,i,GT(i)),m=Zh(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let v=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,g,t);return this.applyRedirects.lineralizeSegments(i,v).pipe(he(y=>this.processSegment(t,r,n,y.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=XY(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ze(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(ze(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:g}=u,m=new qo(p,d,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,WT(r),Tt(r),r.component??r._loadedComponent??null,r,GT(r)),v=Zh(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(v.params),m.data=Object.freeze(v.data);let{segmentGroup:y,slicedSegments:_}=zT(n,p,g,c);if(_.length===0&&y.hasChildren())return this.processChildren(l,c,y,m).pipe(V(N=>new it(m,N)));if(c.length===0&&_.length===0)return F(new it(m,[]));let S=Tt(r)===o;return this.processSegment(l,c,y,_,S?U:o,!0,m).pipe(V(N=>new it(m,N instanceof it?[N]:[])))}))):jo(n)))}getChildConfig(t,n,r){return n.children?F({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?F({routes:n._loadedRoutes,injector:n._loadedInjector}):YY(t,n,r,this.urlSerializer).pipe(he(i=>i?this.configLoader.loadChildren(t,n).pipe(_e(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):KY(n))):F({routes:[],injector:t})}};function uQ(e){e.sort((t,n)=>t.value.outlet===U?-1:n.value.outlet===U?1:t.value.outlet.localeCompare(n.value.outlet))}function cQ(e){let t=e.value.routeConfig;return t&&t.path===""}function _x(e){let t=[],n=new Set;for(let r of e){if(!cQ(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=_x(r.children);t.push(new it(r.value,i))}return t.filter(r=>!n.has(r))}function WT(e){return e.data||{}}function GT(e){return e.resolve||{}}function lQ(e,t,n,r,i,o){return he(s=>sQ(e,t,n,r,s.extractedUrl,i,o).pipe(V(({state:a,tree:u})=>B(D({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function dQ(e,t){return he(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return F(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of bx(u))s.add(c);let a=0;return ae(s).pipe(Xt(u=>o.has(u)?fQ(u,r,e,t):(u.data=Zh(u,u.parent,e).resolve,F(void 0))),_e(()=>a++),li(1),he(u=>a===s.size?F(n):et))})}function bx(e){let t=e.children.map(n=>bx(n)).flat();return[e,...t]}function fQ(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!fx(i)&&(o[wa]=i.title),hQ(o,e,t,r).pipe(V(s=>(e._resolvedData=s,e.data=Zh(e,e.parent,n).resolve,null)))}function hQ(e,t,n,r){let i=q_(e);if(i.length===0)return F({});let o={};return ae(i).pipe(he(s=>pQ(e[s],t,n,r).pipe(Nt(),_e(a=>{if(a instanceof _a)throw Qh(new Bo,a);o[s]=a}))),li(1),Op(o),Sn(s=>mx(s)?et:ai(s)))}function pQ(e,t,n,r){let i=Ma(t)??r,o=Go(e,i),s=o.resolve?o.resolve(t,n):ft(i,()=>o(t,n));return _r(s)}function L_(e){return ze(t=>{let n=e(t);return n?ae(n).pipe(V(()=>t)):F(t)})}var Dx=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===U);return r}getResolvedTitleForRoute(n){return n.data[wa]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(gQ),providedIn:"root"})}}return e})(),gQ=(()=>{class e extends Dx{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(x(eM))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ia=new C("",{providedIn:"root",factory:()=>({})}),mQ=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=gD({type:e,selectors:[["ng-component"]],standalone:!0,features:[hE],decls:1,vars:0,template:function(r,i){r&1&&bm(0,"router-outlet")},dependencies:[MY],encapsulation:2})}}return e})();function fb(e){let t=e.children&&e.children.map(fb),n=t?B(D({},e),{children:t}):D({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==U&&(n.component=mQ),n}var Kh=new C(""),hb=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(wc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return F(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=_r(n.loadComponent()).pipe(V(wx),_e(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),On(()=>{this.componentLoaders.delete(n)})),i=new si(r,()=>new ye).pipe(oi());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return F({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=vQ(r,this.compiler,n,this.onLoadEndListener).pipe(On(()=>{this.childrenLoaders.delete(r)})),s=new si(o,()=>new ye).pipe(oi());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function vQ(e,t,n,r){return _r(e.loadChildren()).pipe(V(wx),he(i=>i instanceof gs||Array.isArray(i)?F(i):ae(t.compileModuleAsync(i))),V(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Kh,[],{optional:!0,self:!0}).flat()),{routes:s.map(fb),injector:o}}))}function yQ(e){return e&&typeof e=="object"&&"default"in e}function wx(e){return yQ(e)?e.default:e}var pb=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(_Q),providedIn:"root"})}}return e})(),_Q=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ex=new C(""),Mx=new C("");function bQ(e,t,n){let r=e.get(Mx),i=e.get(Ae);return e.get(te).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),DQ(e))),{onViewTransitionCreated:u}=r;return u&&ft(e,()=>u({transition:a,from:t,to:n})),s})}function DQ(e){return new Promise(t=>{_m({read:()=>setTimeout(t)},{injector:e})})}var wQ=new C(""),gb=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=b(hb),this.environmentInjector=b(je),this.urlSerializer=b(Ea),this.rootContexts=b(Ca),this.location=b(ki),this.inputBindingEnabled=b(ep,{optional:!0})!==null,this.titleStrategy=b(Dx),this.options=b(Ia,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(pb),this.createViewTransition=b(Ex,{optional:!0}),this.navigationErrorHandler=b(wQ,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>F(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Z_(i)),r=i=>this.events.next(new Y_(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(B(D(D({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new Ee({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ha,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(He(o=>o.id!==0),V(o=>B(D({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return F(o).pipe(ze(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ot.SupersededByNewNavigation),et;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?B(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new vr(u.id,this.urlSerializer.serialize(u.rawUrl),d,Bh.IgnoredSameUrlNavigation)),u.resolve(!1),et}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return F(u).pipe(ze(d=>{let p=this.transitions?.getValue();return this.events.next(new Ho(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions?.getValue()?et:Promise.resolve(d)}),lQ(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),_e(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=B(D({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let p=new Hh(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:p,source:g,restoredState:m,extras:v}=u,y=new Ho(d,this.urlSerializer.serialize(p),g,m);this.events.next(y);let _=lx(this.rootComponentType).snapshot;return this.currentTransition=o=B(D({},u),{targetSnapshot:_,urlAfterRedirects:p,extras:B(D({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,F(o)}else{let d="";return this.events.next(new vr(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Bh.IgnoredByUrlHandlingStrategy)),u.resolve(!1),et}}),_e(u=>{let c=new H_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),V(u=>(this.currentTransition=o=B(D({},u),{guards:TY(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),UY(this.environmentInjector,u=>this.events.next(u)),_e(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Qh(this.urlSerializer,u.guardsResult);let c=new z_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),He(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ot.GuardRejected),!1)),L_(u=>{if(u.guards.canActivateChecks.length)return F(u).pipe(_e(c=>{let l=new W_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ze(c=>{let l=!1;return F(c).pipe(dQ(this.paramsInheritanceStrategy,this.environmentInjector),_e({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",ot.NoDataFromResolver)}}))}),_e(c=>{let l=new G_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),L_(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(_e(p=>{l.component=p}),V(()=>{})));for(let p of l.children)d.push(...c(p));return d};return rs(c(u.targetSnapshot.root)).pipe(In(null),en(1))}),L_(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?ae(l).pipe(V(()=>o)):F(o)}),V(u=>{let c=CY(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=B(D({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),_e(()=>{this.events.next(new va)}),AY(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),en(1),_e({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Jt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Np(this.transitionAbortSubject.pipe(_e(u=>{throw u}))),On(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ot.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Sn(u=>{if(a=!0,gx(u))this.events.next(new wn(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),OY(u)?this.events.next(new zo(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let c=new ma(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let l=ft(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof _a){let{message:d,cancellationCode:p}=Qh(this.urlSerializer,l);this.events.next(new wn(o.id,this.urlSerializer.serialize(o.extractedUrl),d,p)),this.events.next(new zo(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return et}))}))}cancelNavigationTransition(n,r,i){let o=new wn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function EQ(e){return e!==ha}var MQ=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(CQ),providedIn:"root"})}}return e})(),lb=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},CQ=(()=>{class e extends lb{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Cx=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(SQ),providedIn:"root"})}}return e})(),SQ=(()=>{class e extends Cx{constructor(){super(...arguments),this.location=b(ki),this.urlSerializer=b(Ea),this.options=b(Ia,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(pb),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new En,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=lx(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Ho)this.stateMemento=this.createStateMemento();else if(n instanceof vr)this.rawUrlTree=r.initialUrl;else if(n instanceof Hh){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof va?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof wn&&(n.code===ot.GuardRejected||n.code===ot.NoDataFromResolver)?this.restoreHistory(r):n instanceof ma?this.restoreHistory(r,!0):n instanceof Jt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof En?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=D(D({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=D(D({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),da=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(da||{});function Sx(e,t){e.events.pipe(He(n=>n instanceof Jt||n instanceof wn||n instanceof ma||n instanceof vr),V(n=>n instanceof Jt||n instanceof vr?da.COMPLETE:(n instanceof wn?n.code===ot.Redirect||n.code===ot.SupersededByNewNavigation:!1)?da.REDIRECTING:da.FAILED),He(n=>n!==da.REDIRECTING),en(1)).subscribe(()=>{t()})}function IQ(e){throw e}var OQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},AQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},yr=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=b(vc),this.stateManager=b(Cx),this.options=b(Ia,{optional:!0})||{},this.pendingTasks=b(sn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(gb),this.urlSerializer=b(Ea),this.location=b(ki),this.urlHandlingStrategy=b(pb),this._events=new ye,this.errorHandler=this.options.errorHandler||IQ,this.navigated=!1,this.routeReuseStrategy=b(MQ),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(Kh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(ep,{optional:!0}),this.eventsSubscription=new de,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof wn&&r.code!==ot.Redirect&&r.code!==ot.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Jt)this.navigated=!0;else if(r instanceof zo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=D({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||EQ(i.source)},s);this.scheduleNavigation(a,ha,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}xQ(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ha,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=D({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(fb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=D(D({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let p=i?i.snapshot:this.routerState.snapshot.root;d=sx(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return ax(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Xr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ha,null,r)}navigate(n,r={skipLocationChange:!1}){return TQ(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=D({},OQ):r===!1?i=D({},AQ):i=r,Xr(n))return qT(this.currentUrlTree,n,i);let o=this.parseUrl(n);return qT(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,p)=>{a=d,u=p});let l=this.pendingTasks.add();return Sx(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function TQ(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new O(4008,!1)}function xQ(e){return!(e instanceof va)&&!(e instanceof zo)}var ude=(()=>{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(c=>{c instanceof Jt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Xr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:_w(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,n,r):i.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:Xr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(X(yr),X(ei),Xg("tabindex"),X(Ln),X(an),X(fn))}}static{this.\u0275dir=Ve({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Fr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&gc("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",jr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",jr],replaceUrl:[2,"replaceUrl","replaceUrl",jr],routerLink:"routerLink"},standalone:!0,features:[ym,Pr]})}}return e})();var Xh=class{};var NQ=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(He(n=>n instanceof Jt),Xt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=hc(o.providers,n,`Route: ${o.path}`));let s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ae(i).pipe(ui())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(n,r):i=F(null);let o=i.pipe(he(s=>s===null?F(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return ae([o,s]).pipe(ui())}else return o})}static{this.\u0275fac=function(r){return new(r||e)(x(yr),x(wc),x(je),x(Xh),x(hb))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ix=new C(""),PQ=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Ho?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Jt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof vr&&n.code===Bh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof zh&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new zh(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){xw()}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function FQ(e){return e.routerState.root}function Oa(e,t){return{\u0275kind:e,\u0275providers:t}}function RQ(){let e=b(tt);return t=>{let n=e.get(cn);if(t!==n.components[0])return;let r=e.get(yr),i=e.get(Ox);e.get(mb)===1&&r.initialNavigation(),e.get(Ax,null,H.Optional)?.setUpPreloading(),e.get(Ix,null,H.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ox=new C("",{factory:()=>new ye}),mb=new C("",{providedIn:"root",factory:()=>1});function kQ(){return Oa(2,[{provide:mb,useValue:0},{provide:bc,multi:!0,deps:[tt],useFactory:t=>{let n=t.get(OE,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let i=t.get(yr),o=t.get(Ox);Sx(i,()=>{r(!0)}),t.get(gb).afterPreactivation=()=>(r(!0),o.closed?F(void 0):o),i.initialNavigation()}))}}])}function jQ(){return Oa(3,[{provide:bc,multi:!0,useFactory:()=>{let t=b(yr);return()=>{t.setUpLocationChangeListener()}}},{provide:mb,useValue:2}])}var Ax=new C("");function LQ(e){return Oa(0,[{provide:Ax,useExisting:NQ},{provide:Xh,useExisting:e}])}function VQ(){return Oa(8,[HT,{provide:ep,useExisting:HT}])}function qQ(e){let t=[{provide:Ex,useValue:bQ},{provide:Mx,useValue:D({skipNextTransition:!!e?.skipInitialTransition},e)}];return Oa(9,t)}var ZT=new C("ROUTER_FORROOT_GUARD"),UQ=[ki,{provide:Ea,useClass:Bo},yr,Ca,{provide:ei,useFactory:FQ,deps:[yr]},hb,[]],cde=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[UQ,[],{provide:Kh,multi:!0,useValue:n},{provide:ZT,useFactory:zQ,deps:[[yr,new Lg,new uD]]},{provide:Ia,useValue:r||{}},r?.useHash?BQ():HQ(),$Q(),r?.preloadingStrategy?LQ(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?WQ(r):[],r?.bindToComponentInputs?VQ().\u0275providers:[],r?.enableViewTransitions?qQ().\u0275providers:[],GQ()]}}static forChild(n){return{ngModule:e,providers:[{provide:Kh,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(x(ZT,8))}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({})}}return e})();function $Q(){return{provide:Ix,useFactory:()=>{let e=b(NE),t=b(te),n=b(Ia),r=b(gb),i=b(Ea);return n.scrollOffset&&e.setOffset(n.scrollOffset),new PQ(i,r,e,t,n)}}}function BQ(){return{provide:fn,useClass:TE}}function HQ(){return{provide:fn,useClass:Nm}}function zQ(e){return"guarded"}function WQ(e){return[e.initialNavigation==="disabled"?jQ().\u0275providers:[],e.initialNavigation==="enabledBlocking"?kQ().\u0275providers:[]]}var YT=new C("");function GQ(){return[{provide:YT,useFactory:RQ},{provide:Dc,multi:!0,useExisting:YT}]}var jx=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(X(Ln),X(an))}}static{this.\u0275dir=Ve({type:e})}}return e})(),Lx=(()=>{class e extends jx{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275dir=Ve({type:e,features:[un]})}}return e})(),yb=new C(""),ZQ={provide:yb,useExisting:Nr(()=>YQ),multi:!0},YQ=(()=>{class e extends Lx{writeValue(n){this.setProperty("checked",n)}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275dir=Ve({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&Fr("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[ws([ZQ]),un]})}}return e})(),QQ={provide:yb,useExisting:Nr(()=>Vx),multi:!0};function JQ(){let e=Vt()?Vt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var KQ=new C(""),Vx=(()=>{class e extends jx{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!JQ())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(X(Ln),X(an),X(KQ,8))}}static{this.\u0275dir=Ve({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&Fr("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[ws([QQ]),un]})}}return e})();var qx=new C(""),Ux=new C("");function $x(e){return e!=null}function Bx(e){return Rr(e)?ae(e):e}function Hx(e){let t={};return e.forEach(n=>{t=n!=null?D(D({},t),n):t}),Object.keys(t).length===0?null:t}function zx(e,t){return t.map(n=>n(e))}function XQ(e){return!e.validate}function Wx(e){return e.map(t=>XQ(t)?t:n=>t.validate(n))}function eJ(e){if(!e)return null;let t=e.filter($x);return t.length==0?null:function(n){return Hx(zx(n,t))}}function _b(e){return e!=null?eJ(Wx(e)):null}function tJ(e){if(!e)return null;let t=e.filter($x);return t.length==0?null:function(n){let r=zx(n,t).map(Bx);return Ip(r).pipe(V(Hx))}}function bb(e){return e!=null?tJ(Wx(e)):null}function Tx(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function nJ(e){return e._rawValidators}function rJ(e){return e._rawAsyncValidators}function vb(e){return e?Array.isArray(e)?e:[e]:[]}function rp(e,t){return Array.isArray(e)?e.includes(t):e===t}function xx(e,t){let n=vb(t);return vb(e).forEach(i=>{rp(n,i)||n.push(i)}),n}function Nx(e,t){return vb(t).filter(n=>!rp(e,n))}var ip=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=_b(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=bb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Qo=class extends ip{get formDirective(){return null}get path(){return null}},Fa=class extends ip{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},op=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},iJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ide=B(D({},iJ),{"[class.ng-submitted]":"isSubmitted"}),Ode=(()=>{class e extends op{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(X(Fa,2))}}static{this.\u0275dir=Ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&mc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[un]})}}return e})(),Ade=(()=>{class e extends op{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(X(Qo,10))}}static{this.\u0275dir=Ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&mc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[un]})}}return e})();var Aa="VALID",np="INVALID",Zo="PENDING",Ta="DISABLED",Jo=class{},sp=class extends Jo{constructor(t,n){super(),this.value=t,this.source=n}},Na=class extends Jo{constructor(t,n){super(),this.pristine=t,this.source=n}},Pa=class extends Jo{constructor(t,n){super(),this.touched=t,this.source=n}},Yo=class extends Jo{constructor(t,n){super(),this.status=t,this.source=n}};function Gx(e){return(cp(e)?e.validators:e)||null}function oJ(e){return Array.isArray(e)?_b(e):e||null}function Zx(e,t){return(cp(t)?t.asyncValidators:e)||null}function sJ(e){return Array.isArray(e)?bb(e):e||null}function cp(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function aJ(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new O(1e3,"");if(!r[n])throw new O(1001,"")}function uJ(e,t,n){e._forEachChild((r,i)=>{if(n[i]===void 0)throw new O(1002,"")})}var ap=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ms(()=>this.statusReactive()),this.statusReactive=Ds(void 0),this._pristine=Ms(()=>this.pristineReactive()),this.pristineReactive=Ds(!0),this._touched=Ms(()=>this.touchedReactive()),this.touchedReactive=Ds(!1),this._events=new ye,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ln(this.statusReactive)}set status(t){ln(()=>this.statusReactive.set(t))}get valid(){return this.status===Aa}get invalid(){return this.status===np}get pending(){return this.status==Zo}get disabled(){return this.status===Ta}get enabled(){return this.status!==Ta}get pristine(){return ln(this.pristineReactive)}set pristine(t){ln(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return ln(this.touchedReactive)}set touched(t){ln(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(xx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(xx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Nx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Nx(t,this._rawAsyncValidators))}hasValidator(t){return rp(this._rawValidators,t)}hasAsyncValidator(t){return rp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(B(D({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Pa(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Pa(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(B(D({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Na(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Na(!0,r))}markAsPending(t={}){this.status=Zo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Yo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(B(D({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ta,this.errors=null,this._forEachChild(i=>{i.disable(B(D({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new sp(this.value,r)),this._events.next(new Yo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(B(D({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Aa,this._forEachChild(r=>{r.enable(B(D({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(B(D({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Aa||this.status===Zo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new sp(this.value,n)),this._events.next(new Yo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(B(D({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ta:Aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Zo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Bx(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Yo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?Ta:this.errors?np:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zo)?Zo:this._anyControlsHaveStatus(np)?np:Aa}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new Na(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Pa(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){cp(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=oJ(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=sJ(this._rawAsyncValidators)}},up=class extends ap{constructor(t,n,r){super(Gx(n),Zx(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){uJ(this,!0,t),Object.keys(t).forEach(r=>{aJ(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t?t[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Db=new C("CallSetDisabledState",{providedIn:"root",factory:()=>wb}),wb="always";function cJ(e,t){return[...t.path,e]}function Yx(e,t,n=wb){Qx(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),dJ(e,t),hJ(e,t),fJ(e,t),lJ(e,t)}function Px(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function lJ(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Qx(e,t){let n=nJ(e);t.validator!==null?e.setValidators(Tx(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=rJ(e);t.asyncValidator!==null?e.setAsyncValidators(Tx(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Px(t._rawValidators,i),Px(t._rawAsyncValidators,i)}function dJ(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Jx(e,t)})}function fJ(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Jx(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Jx(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function hJ(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function pJ(e,t){e==null,Qx(e,t)}function gJ(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function mJ(e){return Object.getPrototypeOf(e.constructor)===Lx}function vJ(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function yJ(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===Vx?n=o:mJ(o)?r=o:i=o}),i||r||n||null}var _J={provide:Qo,useExisting:Nr(()=>bJ)},xa=Promise.resolve(),bJ=(()=>{class e extends Qo{get submitted(){return ln(this.submittedReactive)}constructor(n,r,i){super(),this.callSetDisabledState=i,this._submitted=Ms(()=>this.submittedReactive()),this.submittedReactive=Ds(!1),this._directives=new Set,this.ngSubmit=new pe,this.form=new up({},_b(n),bb(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){xa.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Yx(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){xa.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){xa.then(()=>{let r=this._findContainer(n.path),i=new up({});pJ(i,n),r.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){xa.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){xa.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),vJ(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static{this.\u0275fac=function(r){return new(r||e)(X(qx,10),X(Ux,10),X(Db,8))}}static{this.\u0275dir=Ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){r&1&&Fr("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ws([_J]),un]})}}return e})();function Fx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rx(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var DJ=class extends ap{constructor(t=null,n,r){super(Gx(n),Zx(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cp(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Rx(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Fx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Fx(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Rx(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var wJ={provide:Fa,useExisting:Nr(()=>EJ)},kx=Promise.resolve(),EJ=(()=>{class e extends Fa{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new DJ,this._registered=!1,this.name="",this.update=new pe,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=yJ(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),gJ(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Yx(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){kx.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&jr(r);kx.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?cJ(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(X(Qo,9),X(qx,10),X(Ux,10),X(yb,10),X(kr,8),X(Db,8))}}static{this.\u0275dir=Ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ws([wJ]),un,Pr]})}}return e})(),xde=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();var MJ=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({})}}return e})();var Nde=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Db,useValue:n.callSetDisabledState??wb}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=lt({imports:[MJ]})}}return e})();var Rde={baseUrl:"MISSING",api:{baseUrl:"MISSING"},production:!1};export{s1 as a,SJ as b,we as c,Ee as d,C1 as e,T as f,lt as g,x as h,gD as i,dt as j,Pr as k,bre as l,Dre as m,pe as n,BP as o,wre as p,X as q,VR as r,XR as s,mc as t,Cre as u,Sre as v,Ire as w,Ore as x,Are as y,uE as z,cE as A,bm as B,Tre as C,Fr as D,xre as E,Nre as F,bk as G,dE as H,Dk as I,wk as J,Pre as K,Ek as L,Fre as M,Rre as N,kre as O,jre as P,die as Q,xE as R,hj as S,Cie as T,Wie as U,Gie as V,sT as W,ei as X,MY as Y,yr as Z,ude as _,cde as $,YQ as aa,Vx as ba,Ode as ca,Ade as da,bJ as ea,EJ as fa,xde as ga,Nde as ha,Rde as ia};
|