homebridge-config-ui-x 5.4.2-beta.32 → 5.4.2-beta.34

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/dist/main.js +14 -7
  3. package/dist/main.js.map +1 -1
  4. package/package.json +1 -1
  5. package/public/{chunk-ARN3DIZU.js → chunk-2QIBEJ2P.js} +1 -1
  6. package/public/{chunk-6LW2MKTG.js → chunk-3YTDUGW7.js} +1 -1
  7. package/public/{chunk-OVGKFDFW.js → chunk-45OZYP45.js} +1 -1
  8. package/public/{chunk-KLBR7SHV.js → chunk-4DKOKZK5.js} +1 -1
  9. package/public/{chunk-EECWUK4D.js → chunk-4KCBR6KN.js} +1 -1
  10. package/public/{chunk-OUV3RPSD.js → chunk-4QMPZEU2.js} +1 -1
  11. package/public/{chunk-UP5UKGFD.js → chunk-4VANYPAJ.js} +1 -1
  12. package/public/{chunk-7QJGKHFT.js → chunk-4X7L4KQL.js} +1 -1
  13. package/public/{chunk-J3RGOSBR.js → chunk-5CK36DGM.js} +1 -1
  14. package/public/{chunk-DZDDCNNF.js → chunk-64F5HSDQ.js} +1 -1
  15. package/public/{chunk-UE6YZHXO.js → chunk-6LIDOYQ5.js} +1 -1
  16. package/public/{chunk-PB7GD56Y.js → chunk-7F4X6BE3.js} +1 -1
  17. package/public/{chunk-ITOVHYB6.js → chunk-7NV4KY6W.js} +1 -1
  18. package/public/{chunk-WBNKUBXJ.js → chunk-AEDYX7QW.js} +1 -1
  19. package/public/{chunk-7QONSWT2.js → chunk-AHMEX5XD.js} +1 -1
  20. package/public/{chunk-7TO7GIHF.js → chunk-AVBJ5EMT.js} +1 -1
  21. package/public/{chunk-Q2C3O22T.js → chunk-AWE7H5PY.js} +1 -1
  22. package/public/{chunk-JQMMQ5EO.js → chunk-B4YN4FBB.js} +1 -1
  23. package/public/{chunk-32GFMPDQ.js → chunk-BDITCHXY.js} +1 -1
  24. package/public/{chunk-CIKB3CBW.js → chunk-BJAULSY4.js} +1 -1
  25. package/public/{chunk-CE6QU262.js → chunk-ENYL2YPO.js} +1 -1
  26. package/public/{chunk-YT7YOJIG.js → chunk-ET6IVHAD.js} +1 -1
  27. package/public/{chunk-RN26J2ZA.js → chunk-F54OPRBZ.js} +1 -1
  28. package/public/{chunk-DDZQDKFI.js → chunk-GTZIY7WT.js} +1 -1
  29. package/public/{chunk-IRIC45XO.js → chunk-HC6M5EBC.js} +1 -1
  30. package/public/{chunk-3HJ7QT3X.js → chunk-HFGCMLED.js} +1 -1
  31. package/public/chunk-HSA6M4GG.js +1 -0
  32. package/public/{chunk-TSP2UOFU.js → chunk-JFZ2A252.js} +1 -1
  33. package/public/{chunk-LS6V4MTS.js → chunk-JMWLREAW.js} +1 -1
  34. package/public/{chunk-W5MMQVTG.js → chunk-KCDOWEBJ.js} +1 -1
  35. package/public/{chunk-HHSNLXO5.js → chunk-KRWZHVHO.js} +1 -1
  36. package/public/{chunk-DLAG45D4.js → chunk-LI7O67NH.js} +1 -1
  37. package/public/{chunk-NKNRTCHV.js → chunk-NHBQVYGJ.js} +2 -2
  38. package/public/{chunk-PMS4BD4M.js → chunk-NRHD2BXN.js} +1 -1
  39. package/public/{chunk-GFZHIIGP.js → chunk-NVM7LIBV.js} +1 -1
  40. package/public/{chunk-Y6WDDABX.js → chunk-O5GV34LY.js} +1 -1
  41. package/public/{chunk-A7HEK7KJ.js → chunk-QMNQ4FAL.js} +1 -1
  42. package/public/{chunk-SMAWZV6A.js → chunk-QTZTX2XP.js} +1 -1
  43. package/public/{chunk-DF6PV5NA.js → chunk-R2L5QSSW.js} +1 -1
  44. package/public/{chunk-VSLFV67W.js → chunk-RCM5XFVU.js} +1 -1
  45. package/public/{chunk-HR4MENA5.js → chunk-RZHE43I6.js} +1 -1
  46. package/public/{chunk-ZA4OKVHE.js → chunk-S7XHIZ2C.js} +1 -1
  47. package/public/{chunk-X6V22YXW.js → chunk-SQLHNVND.js} +1 -1
  48. package/public/{chunk-F65FCGRR.js → chunk-TST4TLQB.js} +1 -1
  49. package/public/{chunk-77NQK5FT.js → chunk-U6RUTZFH.js} +1 -1
  50. package/public/{chunk-BAJTXDJ3.js → chunk-W4QA6YCR.js} +1 -1
  51. package/public/{chunk-TJKYWYK2.js → chunk-WFDBV66D.js} +1 -1
  52. package/public/{chunk-L4H6B7QI.js → chunk-XRASUEWC.js} +1 -1
  53. package/public/{chunk-6BN6PZTG.js → chunk-XY46FVZF.js} +1 -1
  54. package/public/{chunk-DHH6BC7C.js → chunk-YM7YGOQM.js} +1 -1
  55. package/public/{chunk-QLRP45O7.js → chunk-Z3AQIRMS.js} +1 -1
  56. package/public/{chunk-Q2WJQ7WK.js → chunk-ZJHKGKFK.js} +1 -1
  57. package/public/index.html +1 -1
  58. package/public/{main-YXL27P3U.js → main-X3XBQQT2.js} +1 -1
  59. package/public/chunk-XGUYU34S.js +0 -1
@@ -1 +1 @@
1
- import{k as v,l as E,n as _,q as h}from"./chunk-PMS4BD4M.js";import{Ib as u,La as n,Vb as o,Wa as d,Wb as a,ja as l,lb as c,mb as x,mc as p,nc as s,vb as i,wb as e,xb as f}from"./chunk-V2XN5VIX.js";function y(t,w){if(t&1&&(i(0,"div",7),o(1),e()),t&2){let r=u();n(),a(r.error)}}function C(t,w){t&1&&(i(0,"p",8),o(1),p(2,"translate"),e()),t&2&&(n(),a(s(2,1,"platform.linux.server_will_power_down")))}var B=(()=>{class t{$api=l(h);$toastr=l(_);$translate=l(v);error=!1;ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(m){return new(m||t)};static \u0275cmp=d({type:t,selectors:[["ng-component"]],decls:13,vars:7,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"grey-text"]],template:function(m,S){m&1&&(i(0,"div",0)(1,"h3",1),o(2),p(3,"translate"),e()(),i(4,"div",2)(5,"div",3),f(6,"i",4),e(),i(7,"div",5)(8,"h4",6),o(9),p(10,"translate"),e(),c(11,y,2,1,"div",7)(12,C,3,3,"p",8),e()()),m&2&&(n(2),a(s(3,3,"menu.restart.title")),n(7),a(s(10,5,"platform.linux.shutting_down_server")),n(2),x(S.error?11:12))},dependencies:[E],encapsulation:2})}return t})();export{B as ShutdownLinuxComponent};
1
+ import{k as v,l as E,n as _,q as h}from"./chunk-NRHD2BXN.js";import{Ib as u,La as n,Vb as o,Wa as d,Wb as a,ja as l,lb as c,mb as x,mc as p,nc as s,vb as i,wb as e,xb as f}from"./chunk-V2XN5VIX.js";function y(t,w){if(t&1&&(i(0,"div",7),o(1),e()),t&2){let r=u();n(),a(r.error)}}function C(t,w){t&1&&(i(0,"p",8),o(1),p(2,"translate"),e()),t&2&&(n(),a(s(2,1,"platform.linux.server_will_power_down")))}var B=(()=>{class t{$api=l(h);$toastr=l(_);$translate=l(v);error=!1;ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(m){return new(m||t)};static \u0275cmp=d({type:t,selectors:[["ng-component"]],decls:13,vars:7,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"grey-text"]],template:function(m,S){m&1&&(i(0,"div",0)(1,"h3",1),o(2),p(3,"translate"),e()(),i(4,"div",2)(5,"div",3),f(6,"i",4),e(),i(7,"div",5)(8,"h4",6),o(9),p(10,"translate"),e(),c(11,y,2,1,"div",7)(12,C,3,3,"p",8),e()()),m&2&&(n(2),a(s(3,3,"menu.restart.title")),n(7),a(s(10,5,"platform.linux.shutting_down_server")),n(2),x(S.error?11:12))},dependencies:[E],encapsulation:2})}return t})();export{B as ShutdownLinuxComponent};
@@ -1 +1 @@
1
- import{a as w}from"./chunk-DLAG45D4.js";import"./chunk-7QJGKHFT.js";import{d as $}from"./chunk-YMAWYUA6.js";import{b as S}from"./chunk-DZDDCNNF.js";import{k as g,l as _,n as E,q as y}from"./chunk-PMS4BD4M.js";import{Ib as v,La as n,Vb as a,Wa as h,Wb as s,ja as o,lb as c,mb as d,mc as m,nc as l,vb as r,wb as i,xb as f}from"./chunk-V2XN5VIX.js";function T(t,u){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=v();n(),s(e.error)}}function C(t,u){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),f(5,"i",12),i()()),t&2&&(n(),s(l(2,1,"restart.please_wait_while_server_restarts")))}function k(t,u){t&1&&(r(0,"div",8),a(1),m(2,"translate"),i()),t&2&&(n(),s(l(2,1,"platform.linux.long_time")))}var z=(()=>{class t{$api=o(y);$router=o($);$settings=o(S);$toastr=o(E);$translate=o(g);$ws=o(w);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=h({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"]],template:function(p,x){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),f(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),c(11,T,2,1,"div",7)(12,C,6,3),c(13,k,3,3,"div",8),i()()),p&2&&(n(2),s(l(3,4,"menu.restart.title")),n(7),s(l(10,6,"platform.linux.restarting_server")),n(2),d(x.error?11:12),n(2),d(x.timeout?13:-1))},dependencies:[_],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{z as RestartLinuxComponent};
1
+ import{a as w}from"./chunk-LI7O67NH.js";import"./chunk-4X7L4KQL.js";import{d as $}from"./chunk-YMAWYUA6.js";import{b as S}from"./chunk-64F5HSDQ.js";import{k as g,l as _,n as E,q as y}from"./chunk-NRHD2BXN.js";import{Ib as v,La as n,Vb as a,Wa as h,Wb as s,ja as o,lb as c,mb as d,mc as m,nc as l,vb as r,wb as i,xb as f}from"./chunk-V2XN5VIX.js";function T(t,u){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=v();n(),s(e.error)}}function C(t,u){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),f(5,"i",12),i()()),t&2&&(n(),s(l(2,1,"restart.please_wait_while_server_restarts")))}function k(t,u){t&1&&(r(0,"div",8),a(1),m(2,"translate"),i()),t&2&&(n(),s(l(2,1,"platform.linux.long_time")))}var z=(()=>{class t{$api=o(y);$router=o($);$settings=o(S);$toastr=o(E);$translate=o(g);$ws=o(w);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=h({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"]],template:function(p,x){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),f(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),c(11,T,2,1,"div",7)(12,C,6,3),c(13,k,3,3,"div",8),i()()),p&2&&(n(2),s(l(3,4,"menu.restart.title")),n(7),s(l(10,6,"platform.linux.restarting_server")),n(2),d(x.error?11:12),n(2),d(x.timeout?13:-1))},dependencies:[_],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{z as RestartLinuxComponent};
@@ -1,4 +1,4 @@
1
- import{a as Gv}from"./chunk-LS6V4MTS.js";import{a as xp,c as Vv,d as Kv,e as un,f as qs,g as hR}from"./chunk-F65FCGRR.js";import{a as Mv}from"./chunk-ECQJTOVP.js";import{a as qv}from"./chunk-I5TETZ3I.js";import{a as Lv}from"./chunk-ZA4OKVHE.js";import{a as Rv,b as Fv,c as Ov}from"./chunk-YOAZTJFX.js";import{a as Pa}from"./chunk-KT4VIVBF.js";import{a as $v}from"./chunk-SGN6BUCA.js";import{a as cd,b as gd}from"./chunk-ZZ3PNQCV.js";import{a as dd,b as ud}from"./chunk-74ETBIBO.js";import{a as Uv}from"./chunk-ARN3DIZU.js";import{a as sd,b as od,c as rd,d as nd,e as ad,f as ld,g as dn,m as zt,n as ei,o as jv,p as Nv,q as Dv,r as Bv,s as Ev,t as Ko}from"./chunk-LXFVNKLD.js";import{A as Av,B as Cs,C as Ta,a as Hv,b as Fo,c as kr,e as ci,f as Sv,h as Cv,i as xv,j as Iv,k as Tv,l as cs,m as Pv,o as zv,p as Oo,s as cn,t as qo,u as Cp,v as Vo}from"./chunk-F7ZV2JBO.js";import{a as Lo}from"./chunk-DLAG45D4.js";import{d as Os}from"./chunk-YMAWYUA6.js";import{b as jt}from"./chunk-DZDDCNNF.js";import{k as gt,l as At,n as pt,p as $o,q as ot}from"./chunk-PMS4BD4M.js";import{$ as Ca,$c as kv,Ac as vv,Ba as nn,D as cv,Db as ae,Ga as qe,Gb as Q,Hb as ed,Ib as C,Ka as mv,Kc as ls,La as m,Lc as Ro,M as on,Mb as kp,Mc as li,Nb as Hp,Ob as Sp,Pa as Yc,Pb as Eo,Qa as uo,Qb as Mo,Rb as fv,Sa as br,Sb as Hs,Tb as Fs,Tc as id,Ub as fe,Vb as A,Wa as we,Wb as le,Xa as an,Xb as ie,Xc as wv,Y as wp,Ya as yr,Yb as vr,Za as hv,Zb as td,a as ye,ab as Ie,ac as lt,b as nt,bb as _v,bc as ct,c as ov,cb as Jc,cc as dt,da as dv,dc as bv,e as w,ea as Gi,ec as yv,fa as rn,fc as ut,g as at,gc as Ss,h as he,ha as uv,hc as wr,ia as gv,ic as as,ja as q,jc as ln,k as rv,kb as pe,lb as R,mb as F,mc as N,n as Li,nc as M,o as vp,oa as J,ob as wi,oc as Et,pa as Z,pb as ki,q as nv,qb as Hi,rb as I,sb as y,tb as b,ub as E,v as av,vb as Zc,vc as Si,w as Ee,wa as Wc,wb as Qc,wc as re,x as lv,xb as Xc,xc as Uo,ya as Bo,yb as xa,za as pv,zb as Ia}from"./chunk-V2XN5VIX.js";var tw=w(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.formatNames=Ks.fastFormats=Ks.fullFormats=void 0;function Vs(e,i){return{validate:e,compare:i}}Ks.fullFormats={date:Vs(Zv,zp),time:Vs(Tp(!0),Ap),"date-time":Vs(Wv(!0),Xv),"iso-time":Vs(Tp(),Qv),"iso-date-time":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a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:kR,int32:{type:"number",validate:CR},int64:{type:"number",validate:xR},float:{type:"number",validate:Jv},double:{type:"number",validate:Jv},password:!0,binary:!0};Ks.fastFormats=nt(ye({},Ks.fullFormats),{date:Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,zp),time:Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ap),"date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Xv),"iso-time":Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Qv),"iso-date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ew),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});Ks.formatNames=Object.keys(Ks.fullFormats);function _R(e){return e%4===0&&(e%100!==0||e%400===0)}var fR=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,bR=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Zv(e){let i=fR.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],o=+i[3];return s>=1&&s<=12&&o>=1&&o<=(s===2&&_R(t)?29:bR[s])}function zp(e,i){if(e&&i)return e>i?1:e<i?-1:0}var Ip=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Tp(e){return function(t){let s=Ip.exec(t);if(!s)return!1;let o=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),h=+(s[7]||0);if(p>23||h>59||e&&!c)return!1;if(o<=23&&n<=59&&l<60)return!0;let f=n-h*u,S=o-p*u-(f<0?1:0);return(S===23||S===-1)&&(f===59||f===-1)&&l<61}}function Ap(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function Qv(e,i){if(!(e&&i))return;let t=Ip.exec(e),s=Ip.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var Pp=/t|\s/i;function Wv(e){let i=Tp(e);return function(s){let o=s.split(Pp);return o.length===2&&Zv(o[0])&&i(o[1])}}function Xv(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function ew(e,i){if(!(e&&i))return;let[t,s]=e.split(Pp),[o,n]=i.split(Pp),l=zp(t,o);if(l!==void 0)return l||Ap(s,n)}var yR=/\/|:/,vR=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[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R(e){return Yv.lastIndex=0,Yv.test(e)}var HR=-(2**31),SR=2**31-1;function CR(e){return Number.isInteger(e)&&e<=SR&&e>=HR}function xR(e){return Number.isInteger(e)}function Jv(){return!0}var IR=/[^\\]\\Z/;function TR(e){if(IR.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ja=w(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.regexpCode=Xe.getEsmExportName=Xe.getProperty=Xe.safeStringify=Xe.stringify=Xe.strConcat=Xe.addCodeArg=Xe.str=Xe._=Xe.nil=Xe._Code=Xe.Name=Xe.IDENTIFIER=Xe._CodeOrName=void 0;var za=class{};Xe._CodeOrName=za;Xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Hr=class extends za{constructor(i){if(super(),!Xe.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Xe.Name=Hr;var ds=class extends za{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof Hr&&(t[s.str]=(t[s.str]||0)+1),t),{})}};Xe._Code=ds;Xe.nil=new ds("");function iw(e,...i){let t=[e[0]],s=0;for(;s<i.length;)Np(t,i[s]),t.push(e[++s]);return new ds(t)}Xe._=iw;var jp=new ds("+");function sw(e,...i){let t=[Aa(e[0])],s=0;for(;s<i.length;)t.push(jp),Np(t,i[s]),t.push(jp,Aa(e[++s]));return PR(t),new ds(t)}Xe.str=sw;function Np(e,i){i instanceof ds?e.push(...i._items):i instanceof Hr?e.push(i):e.push(jR(i))}Xe.addCodeArg=Np;function PR(e){let i=1;for(;i<e.length-1;){if(e[i]===jp){let t=zR(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function zR(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof Hr||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof Hr))return`"${e}${i.slice(1)}`}function AR(e,i){return i.emptyStr()?e:e.emptyStr()?i:sw`${e}${i}`}Xe.strConcat=AR;function jR(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Aa(Array.isArray(e)?e.join(","):e)}function NR(e){return new ds(Aa(e))}Xe.stringify=NR;function Aa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Xe.safeStringify=Aa;function DR(e){return typeof e=="string"&&Xe.IDENTIFIER.test(e)?new ds(`.${e}`):iw`[${e}]`}Xe.getProperty=DR;function BR(e){if(typeof e=="string"&&Xe.IDENTIFIER.test(e))return new ds(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Xe.getEsmExportName=BR;function ER(e){return new ds(e.toString())}Xe.regexpCode=ER});var Ep=w(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var ji=ja(),Dp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},pd=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(pd||(Ni.UsedValueState=pd={}));Ni.varKinds={const:new ji.Name("const"),let:new ji.Name("let"),var:new ji.Name("var")};var md=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof ji.Name?i:this.name(i)}name(i){return new ji.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Ni.Scope=md;var hd=class extends ji.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,ji._)`.${new ji.Name(t)}[${s}]`}};Ni.ValueScopeName=hd;var MR=(0,ji._)`\n`,Bp=class extends md{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=nt(ye({},i),{_n:i.lines?MR:ji.nil})}get(){return this._scope}name(i){return new hd(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(i),{prefix:n}=o,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let h=c.get(l);if(h)return h}else c=this._values[n]=new Map;c.set(l,o);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,o.setValue(t,{property:n,itemIndex:p}),o}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,ji._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let n=ji.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,pd.Started);let h=t(p);if(h){let f=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;n=(0,ji._)`${n}${f} ${p} = ${h};${this.opts._n}`}else if(h=o?.(p))n=(0,ji._)`${n}${h}${this.opts._n}`;else throw new Dp(p);u.set(p,pd.Completed)})}return n}};Ni.ValueScope=Bp});var ke=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.regexpCode=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var Je=ja(),xs=Ep(),Go=ja();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Go._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Go.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Go.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Go.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Go.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Go.stringify}});Object.defineProperty(Oe,"regexpCode",{enumerable:!0,get:function(){return Go.regexpCode}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Go.Name}});var vd=Ep();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return vd.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return vd.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return vd.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return vd.varKinds}});Oe.operators={GT:new Je._Code(">"),GTE:new Je._Code(">="),LT:new Je._Code("<"),LTE:new Je._Code("<="),EQ:new Je._Code("==="),NEQ:new Je._Code("!=="),NOT:new Je._Code("!"),OR:new Je._Code("||"),AND:new Je._Code("&&"),ADD:new Je._Code("+")};var go=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},Mp=class extends go{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?xs.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=gn(this.rhs,i,t)),this}get names(){return this.rhs instanceof Je._CodeOrName?this.rhs.names:{}}},fd=class extends go{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof Je.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=gn(this.rhs,i,t),this}get names(){let i=this.lhs instanceof Je.Name?{}:ye({},this.lhs.names);return yd(i,this.rhs)}},Up=class extends fd{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},Rp=class extends go{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},Fp=class extends go{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},Op=class extends go{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},qp=class extends go{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=gn(this.code,i,t),this}get names(){return this.code instanceof Je._CodeOrName?this.code.names:{}}},Na=class extends go{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,o=s.length;for(;o--;){let n=s[o];n.optimizeNames(i,t)||(UR(i,n.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>Sr(i,t.names),{})}},po=class extends Na{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},Vp=class extends Na{},Kp=(()=>{class e extends po{}return e.kind="else",e})(),_d=(()=>{class e extends po{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let o=s.optimizeNodes();s=this.else=Array.isArray(o)?new Kp(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(lw(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=gn(this.condition,t,s),this}get names(){let t=super.names;return yd(t,this.condition),this.else&&Sr(t,this.else.names),t}}return e.kind="if",e})(),wd=(()=>{class e extends po{}return e.kind="for",e})(),$p=class extends wd{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=gn(this.iteration,i,t),this}get names(){return Sr(super.names,this.iteration.names)}},Lp=class extends wd{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?xs.varKinds.var:this.varKind,{name:s,from:o,to:n}=this;return`for(${t} ${s}=${o}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=yd(super.names,this.from);return yd(i,this.to)}},bd=class extends wd{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=gn(this.iterable,i,t),this}get names(){return Sr(super.names,this.iterable.names)}},ow=(()=>{class e extends po{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),rw=(()=>{class e extends Na{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Gp=class extends po{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&Sr(i,this.catch.names),this.finally&&Sr(i,this.finally.names),i}},nw=(()=>{class e extends po{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),aw=(()=>{class e extends po{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Wp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=nt(ye({},t),{_n:t.lines?`
1
+ import{a as Gv}from"./chunk-JMWLREAW.js";import{a as xp,c as Vv,d as Kv,e as un,f as qs,g as hR}from"./chunk-TST4TLQB.js";import{a as Mv}from"./chunk-ECQJTOVP.js";import{a as qv}from"./chunk-I5TETZ3I.js";import{a as Lv}from"./chunk-S7XHIZ2C.js";import{a as Rv,b as Fv,c as Ov}from"./chunk-YOAZTJFX.js";import{a as Pa}from"./chunk-KT4VIVBF.js";import{a as $v}from"./chunk-SGN6BUCA.js";import{a as cd,b as gd}from"./chunk-ZZ3PNQCV.js";import{a as dd,b as ud}from"./chunk-74ETBIBO.js";import{a as Uv}from"./chunk-2QIBEJ2P.js";import{a as sd,b as od,c as rd,d as nd,e as ad,f as ld,g as dn,m as zt,n as ei,o as jv,p as Nv,q as Dv,r as Bv,s as Ev,t as Ko}from"./chunk-LXFVNKLD.js";import{A as Av,B as Cs,C as Ta,a as Hv,b as Fo,c as kr,e as ci,f as Sv,h as Cv,i as xv,j as Iv,k as Tv,l as cs,m as Pv,o as zv,p as Oo,s as cn,t as qo,u as Cp,v as Vo}from"./chunk-F7ZV2JBO.js";import{a as Lo}from"./chunk-LI7O67NH.js";import{d as Os}from"./chunk-YMAWYUA6.js";import{b as jt}from"./chunk-64F5HSDQ.js";import{k as gt,l as At,n as pt,p as $o,q as ot}from"./chunk-NRHD2BXN.js";import{$ as Ca,$c as kv,Ac as vv,Ba as nn,D as cv,Db as ae,Ga as qe,Gb as Q,Hb as ed,Ib as C,Ka as mv,Kc as ls,La as m,Lc as Ro,M as on,Mb as kp,Mc as li,Nb as Hp,Ob as Sp,Pa as Yc,Pb as Eo,Qa as uo,Qb as Mo,Rb as fv,Sa as br,Sb as Hs,Tb as Fs,Tc as id,Ub as fe,Vb as A,Wa as we,Wb as le,Xa as an,Xb as ie,Xc as wv,Y as wp,Ya as yr,Yb as vr,Za as hv,Zb as td,a as ye,ab as Ie,ac as lt,b as nt,bb as _v,bc as ct,c as ov,cb as Jc,cc as dt,da as dv,dc as bv,e as w,ea as Gi,ec as yv,fa as rn,fc as ut,g as at,gc as Ss,h as he,ha as uv,hc as wr,ia as gv,ic as as,ja as q,jc as ln,k as rv,kb as pe,lb as R,mb as F,mc as N,n as Li,nc as M,o as vp,oa as J,ob as wi,oc as Et,pa as Z,pb as ki,q as nv,qb as Hi,rb as I,sb as y,tb as b,ub as E,v as av,vb as Zc,vc as Si,w as Ee,wa as Wc,wb as Qc,wc as re,x as lv,xb as Xc,xc as Uo,ya as Bo,yb as xa,za as pv,zb as Ia}from"./chunk-V2XN5VIX.js";var tw=w(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.formatNames=Ks.fastFormats=Ks.fullFormats=void 0;function Vs(e,i){return{validate:e,compare:i}}Ks.fullFormats={date:Vs(Zv,zp),time:Vs(Tp(!0),Ap),"date-time":Vs(Wv(!0),Xv),"iso-time":Vs(Tp(),Qv),"iso-date-time":Vs(Wv(),ew),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:wR,"uri-reference":/^(?:[a-z][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2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:TR,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:kR,int32:{type:"number",validate:CR},int64:{type:"number",validate:xR},float:{type:"number",validate:Jv},double:{type:"number",validate:Jv},password:!0,binary:!0};Ks.fastFormats=nt(ye({},Ks.fullFormats),{date:Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,zp),time:Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Ap),"date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Xv),"iso-time":Vs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Qv),"iso-date-time":Vs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,ew),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i});Ks.formatNames=Object.keys(Ks.fullFormats);function _R(e){return e%4===0&&(e%100!==0||e%400===0)}var fR=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,bR=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Zv(e){let i=fR.exec(e);if(!i)return!1;let t=+i[1],s=+i[2],o=+i[3];return s>=1&&s<=12&&o>=1&&o<=(s===2&&_R(t)?29:bR[s])}function zp(e,i){if(e&&i)return e>i?1:e<i?-1:0}var Ip=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function Tp(e){return function(t){let s=Ip.exec(t);if(!s)return!1;let o=+s[1],n=+s[2],l=+s[3],c=s[4],u=s[5]==="-"?-1:1,p=+(s[6]||0),h=+(s[7]||0);if(p>23||h>59||e&&!c)return!1;if(o<=23&&n<=59&&l<60)return!0;let f=n-h*u,S=o-p*u-(f<0?1:0);return(S===23||S===-1)&&(f===59||f===-1)&&l<61}}function Ap(e,i){if(!(e&&i))return;let t=new Date("2020-01-01T"+e).valueOf(),s=new Date("2020-01-01T"+i).valueOf();if(t&&s)return t-s}function Qv(e,i){if(!(e&&i))return;let t=Ip.exec(e),s=Ip.exec(i);if(t&&s)return e=t[1]+t[2]+t[3],i=s[1]+s[2]+s[3],e>i?1:e<i?-1:0}var Pp=/t|\s/i;function Wv(e){let i=Tp(e);return function(s){let o=s.split(Pp);return o.length===2&&Zv(o[0])&&i(o[1])}}function Xv(e,i){if(!(e&&i))return;let t=new Date(e).valueOf(),s=new Date(i).valueOf();if(t&&s)return t-s}function ew(e,i){if(!(e&&i))return;let[t,s]=e.split(Pp),[o,n]=i.split(Pp),l=zp(t,o);if(l!==void 0)return l||Ap(s,n)}var yR=/\/|:/,vR=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function wR(e){return yR.test(e)&&vR.test(e)}var Yv=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function kR(e){return Yv.lastIndex=0,Yv.test(e)}var HR=-(2**31),SR=2**31-1;function CR(e){return Number.isInteger(e)&&e<=SR&&e>=HR}function xR(e){return Number.isInteger(e)}function Jv(){return!0}var IR=/[^\\]\\Z/;function TR(e){if(IR.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ja=w(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.regexpCode=Xe.getEsmExportName=Xe.getProperty=Xe.safeStringify=Xe.stringify=Xe.strConcat=Xe.addCodeArg=Xe.str=Xe._=Xe.nil=Xe._Code=Xe.Name=Xe.IDENTIFIER=Xe._CodeOrName=void 0;var za=class{};Xe._CodeOrName=za;Xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Hr=class extends za{constructor(i){if(super(),!Xe.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Xe.Name=Hr;var ds=class extends za{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof Hr&&(t[s.str]=(t[s.str]||0)+1),t),{})}};Xe._Code=ds;Xe.nil=new ds("");function iw(e,...i){let t=[e[0]],s=0;for(;s<i.length;)Np(t,i[s]),t.push(e[++s]);return new ds(t)}Xe._=iw;var jp=new ds("+");function sw(e,...i){let t=[Aa(e[0])],s=0;for(;s<i.length;)t.push(jp),Np(t,i[s]),t.push(jp,Aa(e[++s]));return PR(t),new ds(t)}Xe.str=sw;function Np(e,i){i instanceof ds?e.push(...i._items):i instanceof Hr?e.push(i):e.push(jR(i))}Xe.addCodeArg=Np;function PR(e){let i=1;for(;i<e.length-1;){if(e[i]===jp){let t=zR(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function zR(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof Hr||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof Hr))return`"${e}${i.slice(1)}`}function AR(e,i){return i.emptyStr()?e:e.emptyStr()?i:sw`${e}${i}`}Xe.strConcat=AR;function jR(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Aa(Array.isArray(e)?e.join(","):e)}function NR(e){return new ds(Aa(e))}Xe.stringify=NR;function Aa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Xe.safeStringify=Aa;function DR(e){return typeof e=="string"&&Xe.IDENTIFIER.test(e)?new ds(`.${e}`):iw`[${e}]`}Xe.getProperty=DR;function BR(e){if(typeof e=="string"&&Xe.IDENTIFIER.test(e))return new ds(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Xe.getEsmExportName=BR;function ER(e){return new ds(e.toString())}Xe.regexpCode=ER});var Ep=w(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.ValueScope=Ni.ValueScopeName=Ni.Scope=Ni.varKinds=Ni.UsedValueState=void 0;var ji=ja(),Dp=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},pd=(function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e})(pd||(Ni.UsedValueState=pd={}));Ni.varKinds={const:new ji.Name("const"),let:new ji.Name("let"),var:new ji.Name("var")};var md=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof ji.Name?i:this.name(i)}name(i){return new ji.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};Ni.Scope=md;var hd=class extends ji.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,ji._)`.${new ji.Name(t)}[${s}]`}};Ni.ValueScopeName=hd;var MR=(0,ji._)`\n`,Bp=class extends md{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=nt(ye({},i),{_n:i.lines?MR:ji.nil})}get(){return this._scope}name(i){return new hd(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(i),{prefix:n}=o,l=(s=t.key)!==null&&s!==void 0?s:t.ref,c=this._values[n];if(c){let h=c.get(l);if(h)return h}else c=this._values[n]=new Map;c.set(l,o);let u=this._scope[n]||(this._scope[n]=[]),p=u.length;return u[p]=t.ref,o.setValue(t,{property:n,itemIndex:p}),o}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,ji._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let n=ji.nil;for(let l in i){let c=i[l];if(!c)continue;let u=s[l]=s[l]||new Map;c.forEach(p=>{if(u.has(p))return;u.set(p,pd.Started);let h=t(p);if(h){let f=this.opts.es5?Ni.varKinds.var:Ni.varKinds.const;n=(0,ji._)`${n}${f} ${p} = ${h};${this.opts._n}`}else if(h=o?.(p))n=(0,ji._)`${n}${h}${this.opts._n}`;else throw new Dp(p);u.set(p,pd.Completed)})}return n}};Ni.ValueScope=Bp});var ke=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.or=Oe.and=Oe.not=Oe.CodeGen=Oe.operators=Oe.varKinds=Oe.ValueScopeName=Oe.ValueScope=Oe.Scope=Oe.Name=Oe.regexpCode=Oe.stringify=Oe.getProperty=Oe.nil=Oe.strConcat=Oe.str=Oe._=void 0;var Je=ja(),xs=Ep(),Go=ja();Object.defineProperty(Oe,"_",{enumerable:!0,get:function(){return Go._}});Object.defineProperty(Oe,"str",{enumerable:!0,get:function(){return Go.str}});Object.defineProperty(Oe,"strConcat",{enumerable:!0,get:function(){return Go.strConcat}});Object.defineProperty(Oe,"nil",{enumerable:!0,get:function(){return Go.nil}});Object.defineProperty(Oe,"getProperty",{enumerable:!0,get:function(){return Go.getProperty}});Object.defineProperty(Oe,"stringify",{enumerable:!0,get:function(){return Go.stringify}});Object.defineProperty(Oe,"regexpCode",{enumerable:!0,get:function(){return Go.regexpCode}});Object.defineProperty(Oe,"Name",{enumerable:!0,get:function(){return Go.Name}});var vd=Ep();Object.defineProperty(Oe,"Scope",{enumerable:!0,get:function(){return vd.Scope}});Object.defineProperty(Oe,"ValueScope",{enumerable:!0,get:function(){return vd.ValueScope}});Object.defineProperty(Oe,"ValueScopeName",{enumerable:!0,get:function(){return vd.ValueScopeName}});Object.defineProperty(Oe,"varKinds",{enumerable:!0,get:function(){return vd.varKinds}});Oe.operators={GT:new Je._Code(">"),GTE:new Je._Code(">="),LT:new Je._Code("<"),LTE:new Je._Code("<="),EQ:new Je._Code("==="),NEQ:new Je._Code("!=="),NOT:new Je._Code("!"),OR:new Je._Code("||"),AND:new Je._Code("&&"),ADD:new Je._Code("+")};var go=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},Mp=class extends go{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?xs.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=gn(this.rhs,i,t)),this}get names(){return this.rhs instanceof Je._CodeOrName?this.rhs.names:{}}},fd=class extends go{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof Je.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=gn(this.rhs,i,t),this}get names(){let i=this.lhs instanceof Je.Name?{}:ye({},this.lhs.names);return yd(i,this.rhs)}},Up=class extends fd{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},Rp=class extends go{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},Fp=class extends go{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},Op=class extends go{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},qp=class extends go{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=gn(this.code,i,t),this}get names(){return this.code instanceof Je._CodeOrName?this.code.names:{}}},Na=class extends go{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,o=s.length;for(;o--;){let n=s[o];n.optimizeNames(i,t)||(UR(i,n.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>Sr(i,t.names),{})}},po=class extends Na{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},Vp=class extends Na{},Kp=(()=>{class e extends po{}return e.kind="else",e})(),_d=(()=>{class e extends po{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let o=s.optimizeNodes();s=this.else=Array.isArray(o)?new Kp(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(lw(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=gn(this.condition,t,s),this}get names(){let t=super.names;return yd(t,this.condition),this.else&&Sr(t,this.else.names),t}}return e.kind="if",e})(),wd=(()=>{class e extends po{}return e.kind="for",e})(),$p=class extends wd{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=gn(this.iteration,i,t),this}get names(){return Sr(super.names,this.iteration.names)}},Lp=class extends wd{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?xs.varKinds.var:this.varKind,{name:s,from:o,to:n}=this;return`for(${t} ${s}=${o}; ${s}<${n}; ${s}++)`+super.render(i)}get names(){let i=yd(super.names,this.from);return yd(i,this.to)}},bd=class extends wd{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=gn(this.iterable,i,t),this}get names(){return Sr(super.names,this.iterable.names)}},ow=(()=>{class e extends po{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),rw=(()=>{class e extends Na{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Gp=class extends po{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&Sr(i,this.catch.names),this.finally&&Sr(i,this.finally.names),i}},nw=(()=>{class e extends po{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),aw=(()=>{class e extends po{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Wp=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=nt(ye({},t),{_n:t.lines?`
2
2
  `:""}),this._extScope=i,this._scope=new xs.Scope({parent:i}),this._nodes=[new Vp]}toString(){return this._root.render(this.opts)}name(i){return this._scope.name(i)}scopeName(i){return this._extScope.name(i)}scopeValue(i,t){let s=this._extScope.value(i,t);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(i,t){return this._extScope.getValue(i,t)}scopeRefs(i){return this._extScope.scopeRefs(i,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(i,t,s,o){let n=this._scope.toName(t);return s!==void 0&&o&&(this._constants[n.str]=s),this._leafNode(new Mp(i,n,s)),n}const(i,t,s){return this._def(xs.varKinds.const,i,t,s)}let(i,t,s){return this._def(xs.varKinds.let,i,t,s)}var(i,t,s){return this._def(xs.varKinds.var,i,t,s)}assign(i,t,s){return this._leafNode(new fd(i,t,s))}add(i,t){return this._leafNode(new Up(i,Oe.operators.ADD,t))}code(i){return typeof i=="function"?i():i!==Je.nil&&this._leafNode(new qp(i)),this}object(...i){let t=["{"];for(let[s,o]of i)t.length>1&&t.push(","),t.push(s),(s!==o||this.opts.es5)&&(t.push(":"),(0,Je.addCodeArg)(t,o));return t.push("}"),new Je._Code(t)}if(i,t,s){if(this._blockNode(new _d(i)),t&&s)this.code(t).else().code(s).endIf();else if(t)this.code(t).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(i){return this._elseNode(new _d(i))}else(){return this._elseNode(new Kp)}endIf(){return this._endBlockNode(_d,Kp)}_for(i,t){return this._blockNode(i),t&&this.code(t).endFor(),this}for(i,t){return this._for(new $p(i),t)}forRange(i,t,s,o,n=this.opts.es5?xs.varKinds.var:xs.varKinds.let){let l=this._scope.toName(i);return this._for(new Lp(n,l,t,s),()=>o(l))}forOf(i,t,s,o=xs.varKinds.const){let n=this._scope.toName(i);if(this.opts.es5){let l=t instanceof Je.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,Je._)`${l}.length`,c=>{this.var(n,(0,Je._)`${l}[${c}]`),s(n)})}return this._for(new bd("of",o,n,t),()=>s(n))}forIn(i,t,s,o=this.opts.es5?xs.varKinds.var:xs.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,(0,Je._)`Object.keys(${t})`,s);let n=this._scope.toName(i);return this._for(new bd("in",o,n,t),()=>s(n))}endFor(){return this._endBlockNode(wd)}label(i){return this._leafNode(new Rp(i))}break(i){return this._leafNode(new Fp(i))}return(i){let t=new rw;if(this._blockNode(t),this.code(i),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(rw)}try(i,t,s){if(!t&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Gp;if(this._blockNode(o),this.code(i),t){let n=this.name("e");this._currNode=o.catch=new nw(n),t(n)}return s&&(this._currNode=o.finally=new aw,this.code(s)),this._endBlockNode(nw,aw)}throw(i){return this._leafNode(new Op(i))}block(i,t){return this._blockStarts.push(this._nodes.length),i&&this.code(i).endBlock(t),this}endBlock(i){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-t;if(s<0||i!==void 0&&s!==i)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${i} expected`);return this._nodes.length=t,this}func(i,t=Je.nil,s,o){return this._blockNode(new ow(i,t,s)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(ow)}optimize(i=1){for(;i-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(i){return this._currNode.nodes.push(i),this}_blockNode(i){this._currNode.nodes.push(i),this._nodes.push(i)}_endBlockNode(i,t){let s=this._currNode;if(s instanceof i||t&&s instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${i.kind}/${t.kind}`:i.kind}"`)}_elseNode(i){let t=this._currNode;if(!(t instanceof _d))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=i,this}get _root(){return this._nodes[0]}get _currNode(){let i=this._nodes;return i[i.length-1]}set _currNode(i){let t=this._nodes;t[t.length-1]=i}};Oe.CodeGen=Wp;function Sr(e,i){for(let t in i)e[t]=(e[t]||0)+(i[t]||0);return e}function yd(e,i){return i instanceof Je._CodeOrName?Sr(e,i.names):e}function gn(e,i,t){if(e instanceof Je.Name)return s(e);if(!o(e))return e;return new Je._Code(e._items.reduce((n,l)=>(l instanceof Je.Name&&(l=s(l)),l instanceof Je._Code?n.push(...l._items):n.push(l),n),[]));function s(n){let l=t[n.str];return l===void 0||i[n.str]!==1?n:(delete i[n.str],l)}function o(n){return n instanceof Je._Code&&n._items.some(l=>l instanceof Je.Name&&i[l.str]===1&&t[l.str]!==void 0)}}function UR(e,i){for(let t in i)e[t]=(e[t]||0)-(i[t]||0)}function lw(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Je._)`!${Yp(e)}`}Oe.not=lw;var RR=cw(Oe.operators.AND);function FR(...e){return e.reduce(RR)}Oe.and=FR;var OR=cw(Oe.operators.OR);function qR(...e){return e.reduce(OR)}Oe.or=qR;function cw(e){return(i,t)=>i===Je.nil?t:t===Je.nil?i:(0,Je._)`${Yp(i)} ${e} ${Yp(t)}`}function Yp(e){return e instanceof Je.Name?e:(0,Je._)`(${e})`}});var $e=w(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.checkStrictMode=Ve.getErrorPath=Ve.Type=Ve.useFunc=Ve.setEvaluated=Ve.evaluatedPropsToName=Ve.mergeEvaluated=Ve.eachItem=Ve.unescapeJsonPointer=Ve.escapeJsonPointer=Ve.escapeFragment=Ve.unescapeFragment=Ve.schemaRefOrVal=Ve.schemaHasRulesButRef=Ve.schemaHasRules=Ve.checkUnknownRules=Ve.alwaysValidSchema=Ve.toHash=void 0;var ft=ke(),VR=ja();function KR(e){let i={};for(let t of e)i[t]=!0;return i}Ve.toHash=KR;function $R(e,i){return typeof i=="boolean"?i:Object.keys(i).length===0?!0:(gw(e,i),!pw(i,e.self.RULES.all))}Ve.alwaysValidSchema=$R;function gw(e,i=e.schema){let{opts:t,self:s}=e;if(!t.strictSchema||typeof i=="boolean")return;let o=s.RULES.keywords;for(let n in i)o[n]||_w(e,`unknown keyword: "${n}"`)}Ve.checkUnknownRules=gw;function pw(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(i[t])return!0;return!1}Ve.schemaHasRules=pw;function LR(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&i.all[t])return!0;return!1}Ve.schemaHasRulesButRef=LR;function GR({topSchemaRef:e,schemaPath:i},t,s,o){if(!o){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,ft._)`${t}`}return(0,ft._)`${e}${i}${(0,ft.getProperty)(s)}`}Ve.schemaRefOrVal=GR;function WR(e){return mw(decodeURIComponent(e))}Ve.unescapeFragment=WR;function YR(e){return encodeURIComponent(Zp(e))}Ve.escapeFragment=YR;function Zp(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Ve.escapeJsonPointer=Zp;function mw(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Ve.unescapeJsonPointer=mw;function JR(e,i){if(Array.isArray(e))for(let t of e)i(t);else i(e)}Ve.eachItem=JR;function dw({mergeNames:e,mergeToName:i,mergeValues:t,resultToName:s}){return(o,n,l,c)=>{let u=l===void 0?n:l instanceof ft.Name?(n instanceof ft.Name?e(o,n,l):i(o,n,l),l):n instanceof ft.Name?(i(o,l,n),n):t(n,l);return c===ft.Name&&!(u instanceof ft.Name)?s(o,u):u}}Ve.mergeEvaluated={props:dw({mergeNames:(e,i,t)=>e.if((0,ft._)`${t} !== true && ${i} !== undefined`,()=>{e.if((0,ft._)`${i} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,ft._)`${t} || {}`).code((0,ft._)`Object.assign(${t}, ${i})`))}),mergeToName:(e,i,t)=>e.if((0,ft._)`${t} !== true`,()=>{i===!0?e.assign(t,!0):(e.assign(t,(0,ft._)`${t} || {}`),Qp(e,t,i))}),mergeValues:(e,i)=>e===!0?!0:ye(ye({},e),i),resultToName:hw}),items:dw({mergeNames:(e,i,t)=>e.if((0,ft._)`${t} !== true && ${i} !== undefined`,()=>e.assign(t,(0,ft._)`${i} === true ? true : ${t} > ${i} ? ${t} : ${i}`)),mergeToName:(e,i,t)=>e.if((0,ft._)`${t} !== true`,()=>e.assign(t,i===!0?!0:(0,ft._)`${t} > ${i} ? ${t} : ${i}`)),mergeValues:(e,i)=>e===!0?!0:Math.max(e,i),resultToName:(e,i)=>e.var("items",i)})};function hw(e,i){if(i===!0)return e.var("props",!0);let t=e.var("props",(0,ft._)`{}`);return i!==void 0&&Qp(e,t,i),t}Ve.evaluatedPropsToName=hw;function Qp(e,i,t){Object.keys(t).forEach(s=>e.assign((0,ft._)`${i}${(0,ft.getProperty)(s)}`,!0))}Ve.setEvaluated=Qp;var uw={};function ZR(e,i){return e.scopeValue("func",{ref:i,code:uw[i.code]||(uw[i.code]=new VR._Code(i.code))})}Ve.useFunc=ZR;var Jp=(function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e})(Jp||(Ve.Type=Jp={}));function QR(e,i,t){if(e instanceof ft.Name){let s=i===Jp.Num;return t?s?(0,ft._)`"[" + ${e} + "]"`:(0,ft._)`"['" + ${e} + "']"`:s?(0,ft._)`"/" + ${e}`:(0,ft._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,ft.getProperty)(e).toString():"/"+Zp(e)}Ve.getErrorPath=QR;function _w(e,i,t=e.opts.strictSchema){if(t){if(i=`strict mode: ${i}`,t===!0)throw new Error(i);e.self.logger.warn(i)}}Ve.checkStrictMode=_w});var us=w(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});var di=ke(),XR={data:new di.Name("data"),valCxt:new di.Name("valCxt"),instancePath:new di.Name("instancePath"),parentData:new di.Name("parentData"),parentDataProperty:new di.Name("parentDataProperty"),rootData:new di.Name("rootData"),dynamicAnchors:new di.Name("dynamicAnchors"),vErrors:new di.Name("vErrors"),errors:new di.Name("errors"),this:new di.Name("this"),self:new di.Name("self"),scope:new di.Name("scope"),json:new di.Name("json"),jsonPos:new di.Name("jsonPos"),jsonLen:new di.Name("jsonLen"),jsonPart:new di.Name("jsonPart")};Xp.default=XR});var Da=w(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.extendErrors=ui.resetErrorsCount=ui.reportExtraError=ui.reportError=ui.keyword$DataError=ui.keywordError=void 0;var Qe=ke(),kd=$e(),Ci=us();ui.keywordError={message:({keyword:e})=>(0,Qe.str)`must pass "${e}" keyword validation`};ui.keyword$DataError={message:({keyword:e,schemaType:i})=>i?(0,Qe.str)`"${e}" keyword must be ${i} ($data)`:(0,Qe.str)`"${e}" keyword is invalid ($data)`};function eF(e,i=ui.keywordError,t,s){let{it:o}=e,{gen:n,compositeRule:l,allErrors:c}=o,u=yw(e,i,t);s??(l||c)?fw(n,u):bw(o,(0,Qe._)`[${u}]`)}ui.reportError=eF;function tF(e,i=ui.keywordError,t){let{it:s}=e,{gen:o,compositeRule:n,allErrors:l}=s,c=yw(e,i,t);fw(o,c),n||l||bw(s,Ci.default.vErrors)}ui.reportExtraError=tF;function iF(e,i){e.assign(Ci.default.errors,i),e.if((0,Qe._)`${Ci.default.vErrors} !== null`,()=>e.if(i,()=>e.assign((0,Qe._)`${Ci.default.vErrors}.length`,i),()=>e.assign(Ci.default.vErrors,null)))}ui.resetErrorsCount=iF;function sF({gen:e,keyword:i,schemaValue:t,data:s,errsCount:o,it:n}){if(o===void 0)throw new Error("ajv implementation error");let l=e.name("err");e.forRange("i",o,Ci.default.errors,c=>{e.const(l,(0,Qe._)`${Ci.default.vErrors}[${c}]`),e.if((0,Qe._)`${l}.instancePath === undefined`,()=>e.assign((0,Qe._)`${l}.instancePath`,(0,Qe.strConcat)(Ci.default.instancePath,n.errorPath))),e.assign((0,Qe._)`${l}.schemaPath`,(0,Qe.str)`${n.errSchemaPath}/${i}`),n.opts.verbose&&(e.assign((0,Qe._)`${l}.schema`,t),e.assign((0,Qe._)`${l}.data`,s))})}ui.extendErrors=sF;function fw(e,i){let t=e.const("err",i);e.if((0,Qe._)`${Ci.default.vErrors} === null`,()=>e.assign(Ci.default.vErrors,(0,Qe._)`[${t}]`),(0,Qe._)`${Ci.default.vErrors}.push(${t})`),e.code((0,Qe._)`${Ci.default.errors}++`)}function bw(e,i){let{gen:t,validateName:s,schemaEnv:o}=e;o.$async?t.throw((0,Qe._)`new ${e.ValidationError}(${i})`):(t.assign((0,Qe._)`${s}.errors`,i),t.return(!1))}var Cr={keyword:new Qe.Name("keyword"),schemaPath:new Qe.Name("schemaPath"),params:new Qe.Name("params"),propertyName:new Qe.Name("propertyName"),message:new Qe.Name("message"),schema:new Qe.Name("schema"),parentSchema:new Qe.Name("parentSchema")};function yw(e,i,t){let{createErrors:s}=e.it;return s===!1?(0,Qe._)`{}`:oF(e,i,t)}function oF(e,i,t={}){let{gen:s,it:o}=e,n=[rF(o,t),nF(e,t)];return aF(e,i,n),s.object(...n)}function rF({errorPath:e},{instancePath:i}){let t=i?(0,Qe.str)`${e}${(0,kd.getErrorPath)(i,kd.Type.Str)}`:e;return[Ci.default.instancePath,(0,Qe.strConcat)(Ci.default.instancePath,t)]}function nF({keyword:e,it:{errSchemaPath:i}},{schemaPath:t,parentSchema:s}){let o=s?i:(0,Qe.str)`${i}/${e}`;return t&&(o=(0,Qe.str)`${o}${(0,kd.getErrorPath)(t,kd.Type.Str)}`),[Cr.schemaPath,o]}function aF(e,{params:i,message:t},s){let{keyword:o,data:n,schemaValue:l,it:c}=e,{opts:u,propertyName:p,topSchemaRef:h,schemaPath:f}=c;s.push([Cr.keyword,o],[Cr.params,typeof i=="function"?i(e):i||(0,Qe._)`{}`]),u.messages&&s.push([Cr.message,typeof t=="function"?t(e):t]),u.verbose&&s.push([Cr.schema,l],[Cr.parentSchema,(0,Qe._)`${h}${f}`],[Ci.default.data,n]),p&&s.push([Cr.propertyName,p])}});var ww=w(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.boolOrEmptySchema=pn.topBoolOrEmptySchema=void 0;var lF=Da(),cF=ke(),dF=us(),uF={message:"boolean schema is false"};function gF(e){let{gen:i,schema:t,validateName:s}=e;t===!1?vw(e,!1):typeof t=="object"&&t.$async===!0?i.return(dF.default.data):(i.assign((0,cF._)`${s}.errors`,null),i.return(!0))}pn.topBoolOrEmptySchema=gF;function pF(e,i){let{gen:t,schema:s}=e;s===!1?(t.var(i,!1),vw(e)):t.var(i,!0)}pn.boolOrEmptySchema=pF;function vw(e,i){let{gen:t,data:s}=e,o={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,lF.reportError)(o,uF,void 0,i)}});var em=w(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getRules=mn.isJSONType=void 0;var mF=["string","number","integer","boolean","null","object","array"],hF=new Set(mF);function _F(e){return typeof e=="string"&&hF.has(e)}mn.isJSONType=_F;function fF(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:nt(ye({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}mn.getRules=fF});var tm=w(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.shouldUseRule=Wo.shouldUseGroup=Wo.schemaHasRulesForType=void 0;function bF({schema:e,self:i},t){let s=i.RULES.types[t];return s&&s!==!0&&kw(e,s)}Wo.schemaHasRulesForType=bF;function kw(e,i){return i.rules.some(t=>Hw(e,t))}Wo.shouldUseGroup=kw;function Hw(e,i){var t;return e[i.keyword]!==void 0||((t=i.definition.implements)===null||t===void 0?void 0:t.some(s=>e[s]!==void 0))}Wo.shouldUseRule=Hw});var Ba=w(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.reportTypeError=gi.checkDataTypes=gi.checkDataType=gi.coerceAndCheckDataType=gi.getJSONTypes=gi.getSchemaTypes=gi.DataType=void 0;var yF=em(),vF=tm(),wF=Da(),Me=ke(),Sw=$e(),hn=(function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e})(hn||(gi.DataType=hn={}));function kF(e){let i=Cw(e.type);if(i.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!i.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&i.push("null")}return i}gi.getSchemaTypes=kF;function Cw(e){let i=Array.isArray(e)?e:e?[e]:[];if(i.every(yF.isJSONType))return i;throw new Error("type must be JSONType or JSONType[]: "+i.join(","))}gi.getJSONTypes=Cw;function HF(e,i){let{gen:t,data:s,opts:o}=e,n=SF(i,o.coerceTypes),l=i.length>0&&!(n.length===0&&i.length===1&&(0,vF.schemaHasRulesForType)(e,i[0]));if(l){let c=sm(i,s,o.strictNumbers,hn.Wrong);t.if(c,()=>{n.length?CF(e,i,n):om(e)})}return l}gi.coerceAndCheckDataType=HF;var xw=new Set(["string","number","integer","boolean","null"]);function SF(e,i){return i?e.filter(t=>xw.has(t)||i==="array"&&t==="array"):[]}function CF(e,i,t){let{gen:s,data:o,opts:n}=e,l=s.let("dataType",(0,Me._)`typeof ${o}`),c=s.let("coerced",(0,Me._)`undefined`);n.coerceTypes==="array"&&s.if((0,Me._)`${l} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>s.assign(o,(0,Me._)`${o}[0]`).assign(l,(0,Me._)`typeof ${o}`).if(sm(i,o,n.strictNumbers),()=>s.assign(c,o))),s.if((0,Me._)`${c} !== undefined`);for(let p of t)(xw.has(p)||p==="array"&&n.coerceTypes==="array")&&u(p);s.else(),om(e),s.endIf(),s.if((0,Me._)`${c} !== undefined`,()=>{s.assign(o,c),xF(e,c)});function u(p){switch(p){case"string":s.elseIf((0,Me._)`${l} == "number" || ${l} == "boolean"`).assign(c,(0,Me._)`"" + ${o}`).elseIf((0,Me._)`${o} === null`).assign(c,(0,Me._)`""`);return;case"number":s.elseIf((0,Me._)`${l} == "boolean" || ${o} === null
3
3
  || (${l} == "string" && ${o} && ${o} == +${o})`).assign(c,(0,Me._)`+${o}`);return;case"integer":s.elseIf((0,Me._)`${l} === "boolean" || ${o} === null
4
4
  || (${l} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,(0,Me._)`+${o}`);return;case"boolean":s.elseIf((0,Me._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf((0,Me._)`${o} === "true" || ${o} === 1`).assign(c,!0);return;case"null":s.elseIf((0,Me._)`${o} === "" || ${o} === 0 || ${o} === false`),s.assign(c,null);return;case"array":s.elseIf((0,Me._)`${l} === "string" || ${l} === "number"