gemi 0.41.4 → 0.42.0

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 (124) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/app/index.js.map +1 -1
  3. package/dist/bin/gemi.js +98 -18
  4. package/dist/bin/gemi.js.map +4 -4
  5. package/dist/broadcasting/index.js +1 -1
  6. package/dist/bun/plugin.js +1 -1
  7. package/dist/bun/preload.js +1 -1
  8. package/dist/{chunk-4e4ax9bs.js → chunk-0pjn1a5d.js} +2 -2
  9. package/dist/{chunk-4e4ax9bs.js.map → chunk-0pjn1a5d.js.map} +1 -1
  10. package/dist/{chunk-awscq13h.js → chunk-1kmbs8cd.js} +3 -3
  11. package/dist/{chunk-awscq13h.js.map → chunk-1kmbs8cd.js.map} +1 -1
  12. package/dist/{chunk-4f45pw0v.js → chunk-22pr1w8v.js} +2 -2
  13. package/dist/{chunk-4f45pw0v.js.map → chunk-22pr1w8v.js.map} +1 -1
  14. package/dist/{chunk-xdk56snm.js → chunk-358x9aca.js} +3 -3
  15. package/dist/{chunk-xdk56snm.js.map → chunk-358x9aca.js.map} +1 -1
  16. package/dist/{chunk-9nfdjzen.js → chunk-522q81af.js} +4 -4
  17. package/dist/{chunk-9nfdjzen.js.map → chunk-522q81af.js.map} +1 -1
  18. package/dist/{chunk-8rm601h3.js → chunk-81yxskss.js} +2 -2
  19. package/dist/{chunk-8rm601h3.js.map → chunk-81yxskss.js.map} +1 -1
  20. package/dist/{chunk-jt0z45dn.js → chunk-8cqkdzyh.js} +4 -4
  21. package/dist/{chunk-jt0z45dn.js.map → chunk-8cqkdzyh.js.map} +1 -1
  22. package/dist/{chunk-r9p9g2x9.js → chunk-8mgsjrcc.js} +2 -2
  23. package/dist/{chunk-r9p9g2x9.js.map → chunk-8mgsjrcc.js.map} +1 -1
  24. package/dist/{chunk-c1bjq2ss.js → chunk-9byxbqnn.js} +2 -2
  25. package/dist/{chunk-c1bjq2ss.js.map → chunk-9byxbqnn.js.map} +1 -1
  26. package/dist/{chunk-1g3qpb60.js → chunk-ayjtdck4.js} +2 -2
  27. package/dist/{chunk-1g3qpb60.js.map → chunk-ayjtdck4.js.map} +1 -1
  28. package/dist/{chunk-6b1abejc.js → chunk-b3qebxqh.js} +3 -3
  29. package/dist/{chunk-6b1abejc.js.map → chunk-b3qebxqh.js.map} +1 -1
  30. package/dist/{chunk-c1hsc4aa.js → chunk-bfnh3gwv.js} +2 -2
  31. package/dist/{chunk-c1hsc4aa.js.map → chunk-bfnh3gwv.js.map} +1 -1
  32. package/dist/{chunk-agvzqxv7.js → chunk-cwq1vdcb.js} +2 -2
  33. package/dist/{chunk-21r4g9h0.js.map → chunk-cwq1vdcb.js.map} +1 -1
  34. package/dist/{chunk-b4xfh9pg.js → chunk-cx38xsyf.js} +2 -2
  35. package/dist/{chunk-b4xfh9pg.js.map → chunk-cx38xsyf.js.map} +1 -1
  36. package/dist/{chunk-q3wpyr9y.js → chunk-gsvzrj5r.js} +2 -2
  37. package/dist/{chunk-q3wpyr9y.js.map → chunk-gsvzrj5r.js.map} +1 -1
  38. package/dist/{chunk-s3zn2vas.js → chunk-hzw2y2rz.js} +3 -3
  39. package/dist/{chunk-s3zn2vas.js.map → chunk-hzw2y2rz.js.map} +1 -1
  40. package/dist/{chunk-xnhktttd.js → chunk-n1xpxhm0.js} +2 -2
  41. package/dist/{chunk-xnhktttd.js.map → chunk-n1xpxhm0.js.map} +1 -1
  42. package/dist/{chunk-3hjfype8.js → chunk-n78kxce1.js} +2 -2
  43. package/dist/{chunk-3hjfype8.js.map → chunk-n78kxce1.js.map} +1 -1
  44. package/dist/{chunk-c74f9zbq.js → chunk-pfaq2mer.js} +2 -2
  45. package/dist/{chunk-c74f9zbq.js.map → chunk-pfaq2mer.js.map} +1 -1
  46. package/dist/chunk-pjgfvdr6.js +79 -0
  47. package/dist/{chunk-88fb6hzq.js.map → chunk-pjgfvdr6.js.map} +5 -4
  48. package/dist/{chunk-4cqg9kg4.js → chunk-pr3pvtmh.js} +2 -2
  49. package/dist/{chunk-4cqg9kg4.js.map → chunk-pr3pvtmh.js.map} +1 -1
  50. package/dist/{chunk-wfbgtbae.js → chunk-pxcv9ccp.js} +3 -3
  51. package/dist/{chunk-wfbgtbae.js.map → chunk-pxcv9ccp.js.map} +1 -1
  52. package/dist/{chunk-yk9aw128.js → chunk-pygcsw1f.js} +2 -2
  53. package/dist/{chunk-yk9aw128.js.map → chunk-pygcsw1f.js.map} +1 -1
  54. package/dist/{chunk-1nm4bfjq.js → chunk-q0y425d3.js} +3 -3
  55. package/dist/{chunk-1nm4bfjq.js.map → chunk-q0y425d3.js.map} +1 -1
  56. package/dist/{chunk-y7qsts67.js → chunk-qeq8hv3t.js} +2 -2
  57. package/dist/{chunk-y7qsts67.js.map → chunk-qeq8hv3t.js.map} +1 -1
  58. package/dist/chunk-qprvfg0b.js +5 -0
  59. package/dist/chunk-qprvfg0b.js.map +12 -0
  60. package/dist/{chunk-kd4whs4z.js → chunk-qyn10pv7.js} +1 -1
  61. package/dist/{chunk-h465ja8n.js → chunk-qzemjynx.js} +3 -3
  62. package/dist/{chunk-h465ja8n.js.map → chunk-qzemjynx.js.map} +1 -1
  63. package/dist/{chunk-rm5y1v00.js → chunk-ratbccpg.js} +2 -2
  64. package/dist/{chunk-rm5y1v00.js.map → chunk-ratbccpg.js.map} +1 -1
  65. package/dist/{chunk-p9qt93zk.js → chunk-rrwtgt86.js} +2 -2
  66. package/dist/{chunk-agvzqxv7.js.map → chunk-rrwtgt86.js.map} +1 -1
  67. package/dist/{chunk-wzxsj3cp.js → chunk-s2tm33hd.js} +2 -2
  68. package/dist/{chunk-wzxsj3cp.js.map → chunk-s2tm33hd.js.map} +2 -2
  69. package/dist/{chunk-sns685hn.js → chunk-s4seq23x.js} +2 -2
  70. package/dist/{chunk-sns685hn.js.map → chunk-s4seq23x.js.map} +1 -1
  71. package/dist/{chunk-p6ezs2w7.js → chunk-sbmg0hfr.js} +3 -3
  72. package/dist/{chunk-p6ezs2w7.js.map → chunk-sbmg0hfr.js.map} +1 -1
  73. package/dist/{chunk-3hgk4fxz.js → chunk-shpca068.js} +3 -3
  74. package/dist/{chunk-3hgk4fxz.js.map → chunk-shpca068.js.map} +1 -1
  75. package/dist/{chunk-vfvetfjg.js → chunk-syaxsp9y.js} +3 -3
  76. package/dist/{chunk-vfvetfjg.js.map → chunk-syaxsp9y.js.map} +1 -1
  77. package/dist/chunk-tb8yy4rf.js +5 -0
  78. package/dist/{chunk-emt6gz1d.js.map → chunk-tb8yy4rf.js.map} +1 -1
  79. package/dist/{chunk-sgv88qqn.js → chunk-wa84ybnt.js} +5 -5
  80. package/dist/{chunk-sgv88qqn.js.map → chunk-wa84ybnt.js.map} +1 -1
  81. package/dist/{chunk-rkf1stc0.js → chunk-x3vy6dbw.js} +2 -2
  82. package/dist/{chunk-rkf1stc0.js.map → chunk-x3vy6dbw.js.map} +1 -1
  83. package/dist/chunk-xpk460d1.js +4 -0
  84. package/dist/{chunk-p9qt93zk.js.map → chunk-xpk460d1.js.map} +1 -1
  85. package/dist/{chunk-q91708he.js → chunk-xzr4t6k9.js} +3 -3
  86. package/dist/{chunk-q91708he.js.map → chunk-xzr4t6k9.js.map} +1 -1
  87. package/dist/chunk-yeqwzeq7.js +4 -0
  88. package/dist/{chunk-a8wmfnw6.js.map → chunk-yeqwzeq7.js.map} +3 -3
  89. package/dist/{chunk-85hzphk5.js → chunk-z9vdcpqr.js} +2 -2
  90. package/dist/{chunk-85hzphk5.js.map → chunk-z9vdcpqr.js.map} +1 -1
  91. package/dist/{chunk-kw1g4bjh.js → chunk-zaa3yt2w.js} +3 -3
  92. package/dist/{chunk-kw1g4bjh.js.map → chunk-zaa3yt2w.js.map} +1 -1
  93. package/dist/config/index.js +1 -1
  94. package/dist/email/index.js +2 -2
  95. package/dist/email/index.js.map +1 -1
  96. package/dist/facades/index.js +2 -2
  97. package/dist/facades/index.js.map +1 -1
  98. package/dist/http/ViewRouter.d.ts +29 -5
  99. package/dist/http/ViewRouter.d.ts.map +1 -1
  100. package/dist/http/index.d.ts +2 -2
  101. package/dist/http/index.d.ts.map +1 -1
  102. package/dist/http/index.js +2 -2
  103. package/dist/http/index.js.map +1 -1
  104. package/dist/i18n/index.js +2 -2
  105. package/dist/i18n/index.js.map +2 -2
  106. package/dist/kernel/index.js +2 -2
  107. package/dist/kernel/index.js.map +2 -2
  108. package/dist/server/httpProd.d.ts.map +1 -1
  109. package/dist/server/index.js +2 -2
  110. package/dist/server/index.js.map +2 -2
  111. package/dist/services/index.js +2 -2
  112. package/dist/services/index.js.map +1 -1
  113. package/dist/services/router/ViewRouterServiceContainer.d.ts +9 -0
  114. package/dist/services/router/ViewRouterServiceContainer.d.ts.map +1 -1
  115. package/package.json +1 -1
  116. package/dist/chunk-21r4g9h0.js +0 -4
  117. package/dist/chunk-88fb6hzq.js +0 -79
  118. package/dist/chunk-a8wmfnw6.js +0 -4
  119. package/dist/chunk-c9wa4rtm.js +0 -5
  120. package/dist/chunk-c9wa4rtm.js.map +0 -10
  121. package/dist/chunk-emt6gz1d.js +0 -5
  122. package/dist/chunk-kyw5n83x.js +0 -5
  123. package/dist/chunk-kyw5n83x.js.map +0 -12
  124. /package/dist/{chunk-kd4whs4z.js.map → chunk-qyn10pv7.js.map} +0 -0
@@ -1,4 +0,0 @@
1
- // @bun
2
- import{Kb as gt,Mb as vd,Nb as Hd}from"./chunk-xnhktttd.js";import{Pb as Wr}from"./chunk-c1hsc4aa.js";class zr{static kind="controller";constructor(){}}class Cd extends zr{}function Dd(t){return typeof t==="function"&&t.prototype!==void 0}import{AsyncLocalStorage as Ju}from"async_hooks";class Br{content={title:"Gemi App",description:null,openGraph:null};render(){return{title:this.content.title,description:this.content.description,openGraph:this.content.openGraph}}title(t){this.content.title=t}description(t){this.content.description=t}openGraph({title:t,description:s,type:a,url:r,image:i,imageAlt:o,imageWidth:d,imageHeight:l,twitterImage:n=i,twitterImageAlt:c=o,twitterImageWidth:u=d,twitterImageHeight:p=l}){let m=i,e=n;if(i&&!i.startsWith("http"))m=`${process.env.HOST_NAME}${i}`,e=`${process.env.HOST_NAME}${n}`;this.content.openGraph=Object.fromEntries(Object.entries({title:t,description:s,type:a,url:r,image:m,imageAlt:o,imageWidth:d,imageHeight:l,twitterImage:e,twitterImageAlt:c,twitterImageWidth:u,twitterImageHeight:p}).filter(([f,h])=>h!==void 0))}}function bd(t,s,a={}){return[`${t}=${s}`,a.maxAge?`Max-Age=${a.maxAge}`:"",a.httpOnly?"HttpOnly":"",a.secure?"Secure":"",a.sameSite?`SameSite=${a.sameSite}`:"SameSite=Strict",a.path?`Path=${a.path}`:"Path=/",a.domain?`Domain=${a.domain}`:"",a.expires?`Expires=${a.expires.toUTCString()}`:"",a.partitioned?"Partitioned":""].filter((r)=>r!=="").join("; ")}var Jr=new Ju;class Sd{req;cookies=new Set;headers=new Headers;prefetchedResources=new Map;prefetchPromiseQueue=new Set;user=null;csrfHmac=null;locale=null;metadata=new Br;constructor(t){this.req=t}setLocale(t){this.locale=t}renderMeta(){return this.metadata.render()}setCSRFHmac(t){this.csrfHmac=t}setCookie(t,s,a={}){this.cookies.add(bd(t,s,a))}deleteCookie(t){this.cookies.add(bd(t,"",{maxAge:-1}))}setHeaders(t,s){this.headers.set(t,s)}setUser(t){this.user=t}setRequest(t){this.req=t}destroy(){delete this.cookies,delete this.headers,delete this.prefetchedResources,delete this.prefetchPromiseQueue,delete this.user}}class cs{static getStore(){return Jr.getStore()}static setRequest(t){Jr.getStore().req=t}static run(t,s){return Jr.run(new Sd(t),s)}}class ta extends gt{errors={};constructor(t){super("Validation error");this.name="ValidationError",this.errors=t,this.payload={api:{status:400,data:{error:{kind:"validation_error",messages:t}},headers:{"Content-Type":"application/json"}},view:{status:400}}}}class Rs{data;constructor(t){this.data=t}get(t){return this.data[t]}has(t){return this.data[t]!==void 0}toJSON(){return this.data}}function _u(t){let[s,a]=t.match(/\d+|\D+/g)??[];if(!s||!a)return 0;let r=Number.parseInt(s);switch(a){case"B":return r;case"KB":return r*1024;case"MB":return r*1024*1024;case"GB":return r*1024*1024*1024;case"TB":return r*1024*1024*1024*1024;default:return 0}}function Qu(t){switch(t){case"image":return"image";case"png":return"image/png";case"jpg":return"image/jpeg";case"jpeg":return"image/jpeg";case"ttf":return"font/ttf";case"excel":return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";case"csv":return"text/csv";case"word":return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";case"pdf":return"application/pdf";case"json":return"application/json";default:return t}}function Xu(t){let[s,a]=t.split(":");switch(s){case"required":return(r)=>{if(r instanceof Blob)return r.size>0;return r!==null&&r!==void 0&&r?.length>0};case"password":return(r)=>{return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9]).{8,}$/.test(r)};case"number":return(r)=>{if(typeof r!=="number")return!1;return!Number.isNaN(r)};case"min":return(r)=>{return r?.length>=Number.parseInt(a)};case"max":return(r)=>{return r?.length<=Number.parseInt(a)};case"email":return(r)=>{return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)};case"file":return(r)=>{return r instanceof Blob};case"fileType":return(r)=>{if(r instanceof Blob){let i=Qu(a);return r.type.startsWith(i)}};case"fileSize":return(r)=>{if(r instanceof Blob){let i=_u(a);return r.size<=i}};default:return()=>!0}}class Nt{kind;rawRequest;headers;cookies;search;schema={};routePath;params;constructor(t,s,a,r){if(!t){let c=cs.getStore().req;this.params=c.params,this.rawRequest=c.rawRequest,this.kind=c.kind,this.routePath=c.routePath}else this.params=s,this.rawRequest=t,this.routePath=r,this.kind=a??"api";this.headers=this.rawRequest.headers;let i=this.rawRequest.headers.get("Cookie"),o=new Map;if(i){let c=i.split(";");for(let u of c){let[p,m]=u.split("=");o.set(p.trim(),m.trim())}}let d=new URL(this.rawRequest.url),l=new Map;for(let[c,u]of d.searchParams)if(l.has(c)){let p=l.get(c);if(Array.isArray(p))p.push(u),l.set(c,p);else l.set(c,[p,u])}else l.set(c,u);let n=Object.fromEntries(l.entries());this.search=new Rs(n),this.cookies=o}locale(){return cs.getStore().locale}ctx(){return cs.getStore()}refine(t){return{}}async parseBody(){let t=new Rs({});if(this.rawRequest.headers.get("Content-Type")==="application/json"){let s=await this.rawRequest.json();t=new Rs(s)}if(this.rawRequest.headers.get("Content-Type")==="application/x-www-form-urlencoded"){let s=await this.rawRequest.formData();t=new Rs(s)}if(this.rawRequest.headers.get("Content-Type")?.startsWith("multipart/form-data")){let s=await this.rawRequest.formData(),a=new Map;for(let[r,i]of s.entries())if(a.has(r)){let o=a.get(r);if(Array.isArray(o))o.push(i),a.set(r,o);else a.set(r,[o,i])}else a.set(r,i);t=new Rs(Object.fromEntries(a.entries()))}return t}validateInput(t){let s={};for(let[a,r]of Object.entries(this.schema))for(let[i,o]of Object.entries(r)){let d=Xu(i),l=o,n=!1;if(typeof o==="function")l=o(t.get(a)),n=typeof l>"u";else n=d(t.get(a));if(n)continue;if(!t.get(a)&&!Object.keys(r).includes("required"))continue;if(!s[a])s[a]=[];if(i==="required"){s[a]=[String(l)];continue}s[a].push(String(l))}for(let[a,r]of Object.entries(this.refine(t.toJSON())??{})){if(!s[a])s[a]=[];s[a]=[...s[a]??[],r]}if(Object.keys(s).length>0)throw new ta(s);return t}async input(){return this.validateInput(await this.parseBody())}async safeInput(){let t=await this.parseBody();try{return this.validateInput(t),{isValid:!0,errors:{},input:t}}catch(s){if(!(s instanceof ta))throw s;return{isValid:!1,errors:s.errors,input:t}}}}function Yu(t){return Dd(t)}class mt{method;handler;methodName;__internal_brand="RouteHandler";middlewares=[];constructor(t,s,a){this.method=t;this.handler=s;this.methodName=a;this.handler=s,this.methodName=a,this.method=t}__internal_use(){return{run:this.run.bind(this),middlewares:this.middlewares}}run(t){if(Yu(this.handler)){let s=new this.handler;return s[this.methodName].bind(s)()}return this.handler()}middleware(t){return this.middlewares=t,this}}class Rd{url;headers;__internal_brand="ProxyHandler";constructor(t,s){this.url=t;this.headers=s}run(){let t=new Nt;return fetch(this.url,{method:t.rawRequest.method,headers:{...t.headers.toJSON(),...this.headers},body:t.rawRequest.body})}}class Ad{constructor(...t){return new mt(...t)}}class Md{__internal_brand="ResourceRoutes";first;second;constructor(t){this.first={get:new mt("GET",t,"list"),post:new mt("POST",t,"store")},this.second={get:new mt("GET",t,"show"),put:new mt("PUT",t,"update"),delete:new mt("DELETE",t,"delete")}}middleware(t){if(t.list)this.first.get.middleware(t.list);if(t.store)this.first.post.middleware(t.store);if(t.show)this.second.get.middleware(t.show);if(t.update)this.second.put.middleware(t.update);if(t.delete)this.second.delete.middleware(t.delete);return this}}class Id{static __brand="ApiRouter";routes={};middlewares=[];middleware(t){}get(t,s){return new mt("GET",t,s)}post(t,s){return new mt("POST",t,s)}put(t,s){return new mt("PUT",t,s)}patch(t,s){return new mt("PATCH",t,s)}delete(t,s){return new mt("DELETE",t,s)}resource(t){return new Md(t)}file(t,s){return new Ad("GET",t,s)}proxy(t,s={}){return new Rd(t,s)}}class qd{kind="redirect";viewPath="REDIRECT";middlewares=[];handler;constructor(t){if(!t)this.handler=()=>({});else if(typeof t==="function")this.handler=t;else{let[s,a]=t,r=new s,i=r[a].bind(r);this.handler=(o)=>{return i()}}}async run(t,s){let{destination:a,permanent:r=!1,status:i=307}=await this.handler(t);if(!a)throw Error(`Redirect destination is required see ${s}`);return vd.to(a,{permanent:r,status:i}),{}}middleware(t){return this.middlewares=t,this}}class Fd{viewPath;middlewares=[];handler;constructor(t,s){this.viewPath=t;if(!s)this.handler=()=>({});else if(typeof s==="function")this.handler=s;else{let[a,r]=s,i=new a,o=i[r].bind(i);this.handler=(d)=>{return o()}}}async run(t,s){let a=await this.handler(t);if(this.viewPath==="FILE")return{FILE:a};return{[this.viewPath]:{...a,breadcrumb:{label:a?.breadcrumb??"",href:s}}}}middleware(t){return this.middlewares=t,this}}class Ed{viewPath;children;middlewares=[];handler=()=>({});constructor(t,s,a){this.viewPath=t;if(typeof s==="function")this.handler=s,this.children=class extends sa{routes=a??{}};else if(Array.isArray(s)){let[r,i]=s,o=new r,d=o[i].bind(o);this.handler=(l)=>{return d(l)},this.children=class extends sa{routes=a??{}}}else this.children=class extends sa{routes=s},this.handler=()=>({})}async run(t,s){let a=await this.handler(t);return{[this.viewPath]:{...a,breadcrumb:{label:a?.breadcrumb??"",href:s}}}}middleware(t){return this.middlewares=t,this}}class sa{middlewares=[];routes={};view(t,s){return new Fd(t,s)}redirect(t){return new qd(t)}layout(t,s,a){return new Ed(t,s,a)}}class et{req;config={};constructor(t){this.req=t}run(...t){return{}}static configure(t){let s=this;return class extends s{config=t}}}function tp(t){let s=t.headers.get("cookie");if(!s)return new Map;let a=new Map,r=s.split(";");for(let i of r){let[o,d]=i.split("=");a.set(o.trim(),d)}return a}class Zd extends Hd{aliases={};boot(){}}class jd extends gt{error;constructor(t="Not authorized"){super("Authentication error");this.name="AuthenticationError",this.error=t,this.payload={api:{status:401,data:{error:this.error}},view:{}}}}class Ld extends gt{error;constructor(t="Insufficient permissions"){super("Authentication error");this.name="AuthenticationError",this.error=t,this.payload={api:{status:401,data:{error:this.error}},view:{}}}}class aa extends gt{constructor(){super("Authentication error");this.name="AuthenticationError"}payload={api:{status:401,data:{error:"Authentication error"}},view:{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:"/auth/sign-in"}}}}import{randomBytes as je}from"crypto";function dt(t,s,a,r,i){return wt(s,tl(t,s),a,r,i)}function wt(t,s,a,r,i,o){let d=ti(s,a,r);if(i&&s!==d)throw RangeError(Lc(t,s,a,r,o));return d}function tl(t,s){let a=t[s];if(a===void 0)throw TypeError(Io(s));return a}function G(t){return t!==null&&/object|function/.test(typeof t)}function ct(t,s=Map){let a=new s;return(r,...i)=>{if(a.has(r))return a.get(r);let o=t(r,...i);return a.set(r,o),o}}function ni(t){return es({name:t},1)}function es(t,s){return Ot((a)=>({value:a,configurable:1,writable:!s}),t)}function sl(t){return Ot((s)=>({get:s,configurable:1}),t)}function za(t){return{[Symbol.toStringTag]:{value:t,configurable:1}}}function Es(t,s){let a={},r=t.length;for(let i of s)a[t[--r]]=i;return a}function Ot(t,s,a){let r={};for(let i in s)r[i]=t(s[i],i,a);return r}function pa(t,s,a){let r={};for(let i=0;i<s.length;i++){let o=s[i];r[o]=t(o,i,a)}return r}function sp(t,s,a){let r={};for(let i=0;i<t.length;i++)r[s[i]]=a[t[i]];return r}function pt(t,s){let a={};for(let r of t)a[r]=s[r];return a}function ci(t,s){let a={};for(let r in s)t.has(r)||(a[r]=s[r]);return a}function ui(t){t={...t};let s=Object.keys(t);for(let a of s)t[a]===void 0&&delete t[a];return t}function al(t,s){for(let a of s)if(!(a in t))return 0;return 1}function rl(t,s,a){for(let r of t)if(s[r]!==a[r])return 0;return 1}function il(t,s,a){let r={...a};for(let i=0;i<s;i++)r[t[i]]=0;return r}function y(t,...s){return(...a)=>t(...s,...a)}function Kd(t){return t[0].toUpperCase()+t.substring(1)}function ma(t){return t.slice().sort()}function La(t,s){return String(s).padStart(t,"0")}function Wt(t,s){return Math.sign(t-s)}function ti(t,s,a){return Math.min(Math.max(t,s),a)}function Zt(t,s){return[Math.floor(t/s),ia(t,s)]}function ia(t,s){return(t%s+s)%s}function Bt(t,s){return[Ba(t,s),pi(t,s)]}function Ba(t,s){return Math.trunc(t/s)||0}function pi(t,s){return t%s||0}function qa(t){return Math.abs(t%1)===0.5}function ol(t,s,a){let r=0,i=0;for(let l=0;l<=s;l++){let n=t[a[l]],c=Mt[l],u=D/c,[p,m]=Bt(n,u);r+=m*c,i+=p}let[o,d]=Bt(r,D);return[i+o,d]}function Ja(t,s,a){let r={};for(let i=s;i>=0;i--){let o=Mt[i];r[a[i]]=Ba(t,o),t=pi(t,o)}return r}function dl(t){return t===x?Mr:[]}function ll(t){return t===x?Oa:[]}function nl(t){return t===x?["year","day"]:[]}function cl(t){if(t!==void 0)return q(t)}function ul(t){if(t!==void 0)return Ct(t)}function mi(t){if(t!==void 0)return ea(t)}function Ct(t){return el(ea(t))}function ea(t){return ml(kp(t))}function ei(t){if(t==null)throw TypeError("Cannot be null or undefined");return t}function pl(t,s){if(s==null)throw RangeError(Io(t));return s}function Lt(t){if(!G(t))throw TypeError(jc);return t}function _a(t,s,a=t){if(typeof s!==t)throw TypeError(Ta(a,s));return s}function ml(t,s="number"){if(!Number.isInteger(t))throw RangeError(gp(s,t));return t||0}function el(t,s="number"){if(t<=0)throw RangeError(wp(s,t));return t}function fi(t){if(typeof t=="symbol")throw TypeError(Op);return String(t)}function Ka(t,s){return G(t)?String(t):q(t,s)}function Qa(t){if(typeof t=="string")return BigInt(t);if(typeof t!="bigint")throw TypeError(xp(t));return t}function fl(t,s="number"){if(typeof t=="bigint")throw TypeError(yp(s));if(t=Number(t),!Number.isFinite(t))throw RangeError(Tp(s,t));return t}function X(t,s){return Math.trunc(fl(t,s))||0}function hl(t,s){return ml(fl(t,s),s)}function $d(t,s){return el(X(t,s),s)}function hi(t,s){let[a,r]=Bt(s,D),i=t+a,o=Math.sign(i);return o&&o===-Math.sign(r)&&(i-=o,r+=o*D),[i,r]}function Ms(t,s,a=1){return hi(t[0]+s[0]*a,t[1]+s[1]*a)}function Is(t,s){return hi(t[0],t[1]+s)}function ft(t,s){return Ms(s,t,-1)}function tt(t,s){return Wt(t[0],s[0])||Wt(t[1],s[1])}function Pl(t,s,a){return tt(t,s)===-1||tt(t,a)===1}function Xa(t,s=1){let a=BigInt(D/s);return[Number(t/a),Number(t%a)*s]}function vs(t,s=1){let a=D/s,[r,i]=Bt(t,a);return[r,i*s]}function gl(t,s=1){let[a,r]=t,i=Math.floor(r/s),o=D/s;return BigInt(a)*BigInt(o)+BigInt(i)}function ht(t,s=1,a){let[r,i]=t,[o,d]=Bt(i,s);return r*(D/s)+(o+(a?d/s:0))}function Pi(t,s,a=Zt){let[r,i]=t,[o,d]=a(i,s);return[r*(D/s)+o,d]}function gi(t,s){let a=t.formatToParts(s),r={};for(let i of a)r[i.type]=i.value;return r}function wi(t){return dt(t,"isoYear",ua,ca,1),t.isoYear===ua?dt(t,"isoMonth",4,12,1):t.isoYear===ca&&dt(t,"isoMonth",1,9,1),t}function kt(t){return Kt({...t,...xt,isoHour:12}),t}function Kt(t){let s=dt(t,"isoYear",ua,ca,1),a=s===ua?1:s===ca?-1:0;return a&&Pt(Y({...t,isoDay:t.isoDay+a,isoNanosecond:t.isoNanosecond-a})),t}function Pt(t){if(!t||Pl(t,Yp,Xp))throw RangeError(br);return t}function Jt(t){return ol(t,5,Rt)[1]}function Ya(t){let[s,a]=Zt(t,D);return[Ja(a,5,Rt),s]}function wl(t){return Tl(t)[0]}function Tl(t){return Pi(t,yt)}function st(t){return Hs(t.isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond)}function Y(t){let s=st(t);if(s!==void 0){let[a,r]=Bt(s,nt);return[a,r*It+(t.isoMicrosecond||0)*Os+(t.isoNanosecond||0)]}}function Ti(t,s){let[a,r]=Ya(Jt(t)-s);return Pt(Y({...t,isoDay:t.isoDay+r,...a}))}function $a(...t){return Hs(...t)/Jc}function Hs(...t){let[s,a]=yl(...t),r=s.valueOf();if(!isNaN(r))return r-a*nt}function yl(t,s=1,a=1,r=0,i=0,o=0,d=0){let l=t===ua?1:t===ca?-1:0,n=new Date;return n.setUTCHours(r,i,o,d),n.setUTCFullYear(t,s-1,a+l),[n,l]}function Qt(t,s){let[a,r]=Is(t,s);r<0&&(r+=D,a-=1);let[i,o]=Zt(r,It),[d,l]=Zt(o,Os);return tr(a*nt+i,d,l)}function tr(t,s=0,a=0){let r=Math.ceil(Math.max(0,Math.abs(t)-Qp)/nt)*Math.sign(t),i=new Date(t-r*nt);return Es(vr,[i.getUTCFullYear(),i.getUTCMonth()+1,i.getUTCDate()+r,i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds(),s,a])}function xl(t){return[t.isoYear,t.isoMonth,t.isoDay]}function Ol(){return Ht}function yi(t,s){switch(s){case 2:return xi(t)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Cl(t){return xi(t)?366:365}function xi(t){return t%4==0&&(t%100!=0||t%400==0)}function Dl(t){let[s,a]=yl(t.isoYear,t.isoMonth,t.isoDay);return ia(s.getUTCDay()-a,7)||7}function bl({isoYear:t}){return t<1?["bce",1-t]:["ce",t]}function ap(t){let s=st(t);if(s<sm)return bl(t);let a=gi(Bo(qs),s),{era:r,eraYear:i}=jn(a,qs);return[r,i]}function sr(t){return fs(t),ar(t,1),t}function fs(t){return Sl(t,1),t}function Vd(t){return rl($o,t,Sl(t))}function Sl(t,s){let{isoYear:a}=t,r=dt(t,"isoMonth",1,Ol(),s);return{isoYear:a,isoMonth:r,isoDay:dt(t,"isoDay",1,yi(a,r),s)}}function ar(t,s){return Es(Rt,[dt(t,"isoHour",0,23,s),dt(t,"isoMinute",0,59,s),dt(t,"isoSecond",0,59,s),dt(t,"isoMillisecond",0,999,s),dt(t,"isoMicrosecond",0,999,s),dt(t,"isoNanosecond",0,999,s)])}function O(t){return t===void 0?0:mu(Lt(t))}function fa(t,s=0){t=Dt(t);let a=eu(t),r=pm(t,s);return[mu(t),r,a]}function Oi(t){return eu(Dt(t))}function Rl(t){return t=Dt(t),Go(t,9,6,1)}function Zs(t,s,a,r=9,i=0,o=4){s=Dt(s);let d=Go(s,r,i),l=bi(s),n=Da(s,o),c=Ca(s,r,i,1);return d==null?d=Math.max(a,c):vl(d,c),l=Si(l,c,1),t&&(n=((u)=>u<4?(u+2)%4:u)(n)),[d,c,l,n]}function rr(t,s=6,a){let r=bi(t=Ri(t,ka)),i=Da(t,7),o=Ca(t,s);return o=pl(ka,o),r=Si(r,o,void 0,a),[o,r,i]}function Ci(t){return No(Dt(t))}function Al(t,s){return Di(Dt(t),s)}function Di(t,s=4){let a=Il(t);return[Da(t,4),...Ml(Ca(t,s),a)]}function Ml(t,s){return t!=null?[Mt[t],t<4?9-3*t:-1]:[s===void 0?1:10**(9-s),s]}function bi(t){let s=t[oa];return s===void 0?1:X(s,oa)}function Si(t,s,a,r){let i=r?D:Mt[s+1];if(i){let o=Mt[s];if(i%((t=wt(oa,t,1,i/o-(r?0:1),1))*o))throw RangeError(Ta(oa,t))}else t=wt(oa,t,1,a?1e9:1,1);return t}function Il(t){let s=t[Yr];if(s!==void 0){if(typeof s!="number"){if(fi(s)==="auto")return;throw RangeError(Ta(Yr,s))}s=wt(Yr,Math.floor(s),0,9,1)}return s}function Dt(t){return t===void 0?{}:Lt(t)}function Ri(t,s){return typeof t=="string"?{[s]:t}:Lt(t)}function Z(t){if(t!==void 0){if(G(t))return Object.assign(Object.create(null),t);throw TypeError(jc)}}function ir(t,s){return t&&Object.assign(Object.create(null),t,{overflow:rm[s]})}function Ai(t,s,a=9,r=0,i){let o=s[t];if(o===void 0)return i?r:void 0;if(o=fi(o),o==="auto")return i?r:null;let d=ii[o];if(d===void 0&&(d=Jp[o]),d===void 0)throw RangeError(Vc(t,o,ii));return wt(t,d,r,a,1,xa),d}function hs(t,s,a,r=0){let i=a[t];if(i===void 0)return r;let o=fi(i),d=s[o];if(d===void 0)throw RangeError(Vc(t,o,s));return d}function vl(t,s){if(s>t)throw RangeError(Vp)}function N(t){return{branding:Fr,epochNanoseconds:t}}function B(t,s,a){return{branding:Gt,calendar:a,timeZone:s,epochNanoseconds:t}}function j(t,s=t.calendar){return{branding:Ds,calendar:s,...pt(nu,t)}}function L(t,s=t.calendar){return{branding:Cs,calendar:s,...pt(Vo,t)}}function ps(t,s=t.calendar){return{branding:Ns,calendar:s,...pt(Vo,t)}}function Va(t,s=t.calendar){return{branding:Ws,calendar:s,...pt(Vo,t)}}function bt(t){return{branding:qr,...pt(lu,t)}}function M(t){return{branding:Er,sign:Xt(t),...pt(jo,t)}}function ql(t){return wl(t.epochNanoseconds)}function or(t){return Pi(t.epochNanoseconds,It)[0]}function Fl(t){return gl(t.epochNanoseconds,Os)}function El(t){return gl(t.epochNanoseconds)}function Hl(t){return t.epochNanoseconds}function k(t){return typeof t=="string"?t:q(t.id)}function js(t,s){return t===s||k(t)===k(s)}function Zl(t,s,a,r,i){let o=ms(r),[d,l]=((P,w)=>{let g=w((P=Ri(P,li))[uu]),T=um(P);return T=pl(li,T),[T,g]})(i,t);if(la(Math.max(d,o),l))return Ud(r,d);if(!l)throw RangeError(Sr);let[n,c,u]=pr(s,a,l),p=Xi(u),m=mr(u),e=Yi(u),f=m(c,n,r),h=e(c,n,f,d);return la(d,l)?Ud(h,d):((P,w,g,T,H,I,A)=>{let v=Xt(P),[W,V]=Mi(T,Ko(g,P),g,v,H,I,A),Xs=Ii(w,W,V);return P[C[g]]+Xs*v})(h,p(f),d,c,n,p,m)}function Ud(t,s){return ht(U(t),Mt[s],1)}function Mi(t,s,a,r,i,o,d){let l=C[a],n={...s,[l]:s[l]+r},c=d(t,i,s),u=d(t,i,n);return[o(c),o(u)]}function Ii(t,s,a){let r=ht(ft(s,a));if(!r)throw RangeError(ya);return ht(ft(s,t))/r}function jl(t,s){let[a,r,i]=rr(s,5,1);return N(lr(t.epochNanoseconds,a,r,i,1))}function Ll(t,s,a){let{epochNanoseconds:r,timeZone:i,calendar:o}=s,[d,l,n]=rr(a);if(d===0&&l===1)return s;let c=t(i);if(d===6)r=((u,p,m,e)=>{let f=at(m,p),[h,P]=u(f),w=m.epochNanoseconds,g=ut(p,h),T=ut(p,P);if(Pl(w,g,T))throw RangeError(ya);return zl(Ii(w,g,T),e)?T:g})(Wl,c,s,n);else{let u=c.getOffsetNanosecondsFor(r);r=gs(c,Gl(Qt(r,u),d,l,n),u,2,0,1)}return B(r,i,o)}function Kl(t,s){return j(Gl(t,...rr(s)),t.calendar)}function $l(t,s){let[a,r,i]=rr(s,5);var o;return bt((o=i,vi(t,ha(a,r),o)[0]))}function Vl(t,s){let a=t(s.timeZone),r=at(s,a),[i,o]=Wl(r),d=ht(ft(ut(a,i),ut(a,o)),Ar,1);if(d<=0)throw RangeError(ya);return d}function Ul(t,s){let{timeZone:a,calendar:r}=s,i=((o,d,l)=>ut(d,o(at(l,d))))(kl,t(a),s);return B(i,a,r)}function Gl(t,s,a,r){return Nl(t,ha(s,a),r)}function Nl(t,s,a){let[r,i]=vi(t,s,a);return Kt({...ws(t,i),...r})}function vi(t,s,a){return Ya(_t(Jt(t),s,a))}function Ua(t){return _t(t,Rr,7)}function ha(t,s){return Mt[t]*s}function Wl(t){let s=kl(t);return[s,ws(s,1)]}function kl(t){return _p(6,t)}function rp(t,s,a){let r=Math.min(ms(t),6);return Ks(nr(U(t,r),s,a),r)}function dr(t,s,a,r,i,o,d,l,n,c){if(r===0&&i===1)return t;let u=la(r,l)?er(l)&&r<6&&a>=6?op:ip:dp,[p,m,e]=u(t,s,a,r,i,o,d,l,n,c);return e&&r!==7&&(p=((f,h,P,w,g,T,H,I)=>{let A=Xt(f);for(let v=w+1;v<=P;v++){if(v===7&&P!==7)continue;let W=Ko(v,f);W[C[v]]+=A;let V=ht(ft(H(I(g,T,W)),h));if(V&&Math.sign(V)!==A)break;f=W}return f})(p,m,a,Math.max(6,r),d,l,n,c)),p}function lr(t,s,a,r,i){if(s===6){let o=((d)=>d[0]+d[1]/D)(t);return[_t(o,a,r),0]}return nr(t,ha(s,a),r,i)}function nr(t,s,a,r){let[i,o]=t;r&&o<0&&(o+=D,i-=1);let[d,l]=Zt(_t(o,s,a),D);return hi(i+d,l)}function _t(t,s,a){return zl(t/s,a)*s}function zl(t,s){return fm[s](t)}function ip(t,s,a,r,i,o){let d=Xt(t),l=U(t),n=lr(l,r,i,o),c=ft(l,n),u=Math.sign(n[0]-l[0])===d,p=Ks(n,Math.min(a,6));return[{...t,...p},Ms(s,c),u]}function op(t,s,a,r,i,o,d,l,n,c){let u=Xt(t),p=ht(U(t,5)),m=ha(r,i),e=_t(p,m,o),[f,h]=Mi(d,{...t,...Lo},6,u,l,n,c),P=e-ht(ft(f,h)),w=0;P&&Math.sign(P)!==u?s=Is(f,e):(w+=u,e=_t(P,m,o),s=Is(h,e));let g=hr(e);return[{...t,...g,days:t.days+w},s,Boolean(w)]}function dp(t,s,a,r,i,o,d,l,n,c){let u=Xt(t),p=C[r],m=Ko(r,t);r===7&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)});let e=Ba(t[p],i)*i;m[p]=e;let[f,h]=Mi(d,m,r,i*u,l,n,c),P=e+Ii(s,f,h)*u*i,w=_t(P,i,o),g=Math.sign(w-P)===u;return m[p]=w,[m,g?h:f,g]}function qi(t,s,a,r){let[i,o,d,l]=((c)=>{let u=Di(c=Dt(c));return[c.timeZone,...u]})(r),n=i!==void 0;return((c,u,p,m,e,f)=>{p=nr(p,e,m,1);let h=u.getOffsetNanosecondsFor(p);return Ki(Qt(p,h),f)+(c?Ps(Ua(h)):"Z")})(n,s(n?t(i):bs),a.epochNanoseconds,o,d,l)}function Fi(t,s,a){let[r,i,o,d,l,n]=((c)=>{c=Dt(c);let u=No(c),p=Il(c),m=em(c),e=Da(c,4),f=Ca(c,4);return[u,mm(c),m,e,...Ml(f,p)]})(a);return((c,u,p,m,e,f,h,P,w,g)=>{m=nr(m,w,P,1);let T=c(p).getOffsetNanosecondsFor(m);return Ki(Qt(m,T),g)+Ps(Ua(T),h)+((H,I)=>I!==1?"["+(I===2?"!":"")+k(H)+"]":"")(p,f)+$i(u,e)})(t,s.calendar,s.timeZone,s.epochNanoseconds,r,i,o,d,l,n)}function Ei(t,s){let[a,r,i,o]=((c)=>(c=Dt(c),[No(c),...Di(c)]))(s);return d=t.calendar,l=a,n=o,Ki(Nl(t,i,r),n)+$i(d,l);var d,l,n}function Hi(t,s){return a=t.calendar,r=t,i=Ci(s),Ga(r)+$i(a,i);var a,r,i}function Zi(t,s){return Bl(t.calendar,Jl,t,Ci(s))}function ji(t,s){return Bl(t.calendar,lp,t,Ci(s))}function Li(t,s){let[a,r,i]=Al(s);return o=i,_l(vi(t,r,a)[0],o);var o}function cr(t,s){let[a,r,i]=Al(s,3);return r>1&&(t={...t,...rp(t,r,a)}),((o,d)=>{let{sign:l}=o,n=l===-1?rt(o):o,{hours:c,minutes:u}=n,[p,m]=Pi(U(n,3),yt,Bt);on(p);let e=Vi(m,d),f=d>=0||!l||e;return(l<0?"-":"")+"P"+Gd({Y:us(n.years),M:us(n.months),W:us(n.weeks),D:us(n.days)})+(c||u||p||f?"T"+Gd({H:us(c),M:us(u),S:us(p,f)+e}):"")})(t,i)}function Bl(t,s,a,r){let i=k(t),o=r>1||r===0&&i!==x;return r===1?i===x?s(a):Ga(a):o?Ga(a)+Ql(i,r===2):s(a)}function Gd(t){let s=[];for(let a in t){let r=t[a];r&&s.push(r,a)}return s.join("")}function Ki(t,s){return Ga(t)+"T"+_l(t,s)}function Ga(t){return Jl(t)+"-"+Tt(t.isoDay)}function Jl(t){let{isoYear:s}=t;return(s<0||s>9999?Xl(s)+La(6,Math.abs(s)):La(4,s))+"-"+Tt(t.isoMonth)}function lp(t){return Tt(t.isoMonth)+"-"+Tt(t.isoDay)}function _l(t,s){let a=[Tt(t.isoHour),Tt(t.isoMinute)];return s!==-1&&a.push(Tt(t.isoSecond)+((r,i,o,d)=>Vi(r*It+i*Os+o,d))(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,s)),a.join(":")}function Ps(t,s=0){if(s===1)return"";let[a,r]=Zt(Math.abs(t),Ar),[i,o]=Zt(r,Rr),[d,l]=Zt(o,yt);return Xl(t)+Tt(a)+":"+Tt(i)+(d||l?":"+Tt(d)+Vi(l):"")}function $i(t,s){if(s!==1){let a=k(t);if(s>1||s===0&&a!==x)return Ql(a,s===2)}return""}function Ql(t,s){return"["+(s?"!":"")+"u-ca="+t+"]"}function Vi(t,s){let a=La(9,t);return a=s===void 0?a.replace(gm,""):a.slice(0,s),a?"."+a:""}function Xl(t){return t<0?"-":"+"}function us(t,s){return t||s?t.toLocaleString("fullwide",{useGrouping:0}):""}function np(t,s){let{epochNanoseconds:a}=t,r=(s.getOffsetNanosecondsFor?s:s(t.timeZone)).getOffsetNanosecondsFor(a),i=Qt(a,r);return{calendar:t.calendar,...i,offsetNanoseconds:r}}function Yl(t,s){let a=at(s,t);return{calendar:s.calendar,...pt(nu,a),offset:Ps(a.offsetNanoseconds),timeZone:s.timeZone}}function gs(t,s,a,r=0,i=0,o,d){if(a!==void 0&&r===1&&(r===1||d))return Ti(s,a);let l=t.getPossibleInstantsFor(s);if(a!==void 0&&r!==3){let n=((c,u,p,m)=>{let e=Y(u);m&&(p=Ua(p));for(let f of c){let h=ht(ft(f,e));if(m&&(h=Ua(h)),h===p)return f}})(l,s,a,o);if(n!==void 0)return n;if(r===0)throw RangeError(Hp)}return d?Y(s):ut(t,s,i,l)}function ut(t,s,a=0,r=t.getPossibleInstantsFor(s)){if(r.length===1)return r[0];if(a===1)throw RangeError(Zp);if(r.length)return r[a===3?1:0];let i=Y(s),o=((l,n)=>{let c=l.getOffsetNanosecondsFor(Is(n,-D));return Gi(l.getOffsetNanosecondsFor(Is(n,D))-c)})(t,i),d=o*(a===2?-1:1);return(r=t.getPossibleInstantsFor(Qt(i,d)))[a===2?0:r.length-1]}function Ui(t){if(Math.abs(t)>=D)throw RangeError(Fp);return t}function Gi(t){if(t>D)throw RangeError(Ep);return t}function Ni(t,s,a){return N(Pt(Ms(s.epochNanoseconds,((r)=>{if(dn(r))throw RangeError(Kp);return U(r,5)})(t?rt(a):a))))}function Wi(t,s,a,r,i,o=Object.create(null)){let d=s(r.timeZone),l=t(r.calendar);return{...r,..._i(d,l,r,a?rt(i):i,o)}}function ki(t,s,a,r,i=Object.create(null)){let{calendar:o}=a;return j(Qi(t(o),a,s?rt(r):r,i),o)}function zi(t,s,a,r,i){let{calendar:o}=a;return L(ur(t(o),a,s?rt(r):r,i),o)}function Bi(t,s,a,r,i=Object.create(null)){let o=a.calendar,d=t(o),l=da(d,a);s&&(r=fr(r)),r.sign<0&&(l=d.dateAdd(l,{...z,months:1}),l=ws(l,-1));let n=d.dateAdd(l,r,i);return ps(da(d,n),o)}function Ji(t,s,a){return bt(tn(s,t?rt(a):a)[0])}function _i(t,s,a,r,i){let o=U(r,5),d=a.epochNanoseconds;if(dn(r)){let l=at(a,t);d=Ms(ut(t,{...ur(s,l,{...r,...Lo},i),...pt(Rt,l)}),o)}else d=Ms(d,o),O(i);return{epochNanoseconds:Pt(d)}}function Qi(t,s,a,r){let[i,o]=tn(s,a);return Kt({...ur(t,s,{...a,...Lo,days:a.days+o},r),...i})}function ur(t,s,a,r){if(a.years||a.months||a.weeks)return t.dateAdd(s,a,r);O(r);let i=a.days+U(a,5)[0];return i?kt(ws(s,i)):s}function da(t,s,a=1){return ws(s,a-t.day(s))}function tn(t,s){let[a,r]=U(s,5),[i,o]=Ya(Jt(t)+r);return[i,a+o]}function ws(t,s){return s?{...t,...tr(st(t)+s*nt)}:t}function pr(t,s,a){let r=t(a.calendar);return er(a)?[a,r,s(a.timeZone)]:[{...a,...xt},r]}function Xi(t){return t?Hl:Y}function mr(t){return t?y(_i,t):Qi}function Yi(t){return t?y(up,t):pp}function er(t){return t&&t.epochNanoseconds}function la(t,s){return t<=6-(er(s)?1:0)}function to(t,s,a,r,i,o,d){let l=t(Dt(d).relativeTo),n=Math.max(ms(i),ms(o));if(la(n,l))return M(Ls(((h,P,w,g)=>{let T=Ms(U(h),U(P),g?-1:1);if(!Number.isFinite(T[0]))throw RangeError(br);return{...z,...Ks(T,w)}})(i,o,n,r)));if(!l)throw RangeError(Sr);r&&(o=rt(o));let[c,u,p]=pr(s,a,l),m=mr(p),e=Yi(p),f=m(u,c,i);return M(e(u,c,m(u,f,o),n))}function sn(t,s,a,r,i){let o=ms(r),[d,l,n,c,u]=((A,v,W)=>{A=Ri(A,ka);let V=Go(A),Xs=W(A[uu]),Ys=bi(A),Bu=Da(A,7),ns=Ca(A);if(V===void 0&&ns===void 0)throw RangeError($p);return ns==null&&(ns=0),V==null&&(V=Math.max(ns,v)),vl(V,ns),Ys=Si(Ys,ns,1),[V,ns,Ys,Bu,Xs]})(i,o,t),p=Math.max(o,d);if(!er(u)&&p<=6)return M(Ls(((A,v,W,V,Xs)=>{let Ys=lr(U(A),W,V,Xs);return{...z,...Ks(Ys,v)}})(r,d,l,n,c)));if(!u)throw RangeError(Sr);let[m,e,f]=pr(s,a,u),h=Xi(f),P=mr(f),w=Yi(f),g=P(e,m,r),T=w(e,m,g,d),H=r.sign,I=Xt(T);if(H&&I&&H!==I)throw RangeError(ya);return I&&(T=dr(T,h(g),d,l,n,c,e,m,h,P)),M(T)}function an(t){return t.sign===-1?fr(t):t}function fr(t){return M(rt(t))}function rt(t){let s={};for(let a of C)s[a]=-1*t[a]||0;return s}function rn(t){return!t.sign}function Xt(t,s=C){let a=0;for(let r of s){let i=Math.sign(t[r]);if(i){if(a&&a!==i)throw RangeError(Lp);a=i}}return a}function Ls(t){for(let s of Bp)wt(s,t[s],-_d,_d,1);return on(ht(U(t),yt)),t}function on(t){if(!Number.isSafeInteger(t))throw RangeError(jp)}function U(t,s=6){return ol(t,s,C)}function Ks(t,s=6){let[a,r]=t,i=Ja(r,s,C);if(i[C[s]]+=a*(D/Mt[s]),!Number.isFinite(i[C[s]]))throw RangeError(br);return i}function hr(t,s=5){return Ja(t,s,C)}function dn(t){return Boolean(Xt(t,du))}function ms(t){let s=9;for(;s>0&&!t[C[s]];s--);return s}function cp(t,s){return[t,s]}function Nd(t){let s=Math.floor(t/Za)*Za;return[s,s+Za]}function ln(t){let s=Yt(t=Ka(t));if(!s)throw RangeError(lt(t));let a;if(s.m)a=0;else{if(!s.offset)throw RangeError(lt(t));a=$s(s.offset)}return s.timeZone&&io(s.timeZone,1),N(Ti(sr(s),a))}function nn(t){let s=Yt(q(t));if(!s)throw RangeError(lt(t));if(s.timeZone)return gn(s,s.offset?$s(s.offset):void 0);if(s.m)throw RangeError(lt(t));return Tn(s)}function cn(t,s){let a=Yt(q(t));if(!a||!a.timeZone)throw RangeError(lt(t));let{offset:r}=a,i=r?$s(r):void 0,[,o,d]=fa(s);return gn(a,i,o,d)}function $s(t){let s=io(t);if(s===void 0)throw RangeError(lt(t));return s}function un(t){let s=Yt(q(t));if(!s||s.m)throw RangeError(lt(t));return j(wn(s))}function Pr(t){let s=Yt(q(t));if(!s||s.m)throw RangeError(lt(t));return L(s.p?wn(s):Tn(s))}function pn(t,s){let a=ao(q(s));if(a)return so(a),ps(wi(fs(a)));let r=Pr(s);return ps(da(t(r.calendar),r))}function so(t){if(t.calendar!==x)throw RangeError(jt(t.calendar))}function mn(t,s){let a=ro(q(s));if(a)return so(a),Va(fs(a));let r=Pr(s),{calendar:i}=r,o=t(i),[d,l,n]=o.h(r),[c,u]=o.I(d,l),[p,m]=o.N(c,u,n);return Va(kt(o.P(p,m,n)),i)}function en(t){let s,a=((r)=>{let i=Om.exec(r);return i?(gr(i[10]),On(i)):void 0})(q(t));if(!a){if(a=Yt(t),!a)throw RangeError(lt(t));if(!a.p)throw RangeError(lt(t));if(a.m)throw RangeError(jt("Z"));so(a)}if((s=ao(t))&&Vd(s))throw RangeError(lt(t));if((s=ro(t))&&Vd(s))throw RangeError(lt(t));return bt(ar(a,1))}function fn(t){let s=((a)=>{let r=bm.exec(a);return r?((i)=>{function o(u,p,m){let e=0,f=0;if(m&&([e,n]=Zt(n,Mt[m])),u!==void 0){if(l)throw RangeError(jt(u));f=((h)=>{let P=parseInt(h);if(!Number.isFinite(P))throw RangeError(jt(h));return P})(u),d=1,p&&(n=oo(p)*(Mt[m]/yt),l=1)}return e+f}let d=0,l=0,n=0,c={...Es(C,[o(i[2]),o(i[3]),o(i[4]),o(i[5]),o(i[6],i[7],5),o(i[8],i[9],4),o(i[10],i[11],3)]),...Ja(n,2,C)};if(!d)throw RangeError(Kc(C));return lo(i[1])<0&&(c=rt(c)),c})(r):void 0})(q(t));if(!s)throw RangeError(lt(t));return M(Ls(s))}function hn(t){let s=Yt(t)||ao(t)||ro(t);return s?s.calendar:t}function Pn(t){let s=Yt(t);return s&&(s.timeZone||s.m&&bs||s.offset)||t}function gn(t,s,a=0,r=0){let i=wr(t.timeZone),o=Hr(i);return B(gs(o,sr(t),s,a,r,!o.v,t.m),i,Pa(t.calendar))}function wn(t){return yn(Kt(sr(t)))}function Tn(t){return yn(kt(fs(t)))}function yn(t){return{...t,calendar:Pa(t.calendar)}}function Yt(t){let s=xm.exec(t);return s?((a)=>{let r=a[10],i=(r||"").toUpperCase()==="Z";return{isoYear:xn(a),isoMonth:parseInt(a[4]),isoDay:parseInt(a[5]),...On(a.slice(5)),...gr(a[16]),p:Boolean(a[6]),m:i,offset:i?void 0:r}})(s):void 0}function ao(t){let s=Tm.exec(t);return s?((a)=>({isoYear:xn(a),isoMonth:parseInt(a[4]),isoDay:1,...gr(a[5])}))(s):void 0}function ro(t){let s=ym.exec(t);return s?((a)=>({isoYear:Fs,isoMonth:parseInt(a[1]),isoDay:parseInt(a[2]),...gr(a[3])}))(s):void 0}function io(t,s){let a=Cm.exec(t);return a?((r,i)=>{let o=r[4]||r[5];if(i&&o)throw RangeError(jt(o));return Ui((As(r[2])*Ar+As(r[3])*Rr+As(r[4])*yt+oo(r[5]||""))*lo(r[1]))})(a,s):void 0}function xn(t){let s=lo(t[1]),a=parseInt(t[2]||t[3]);if(s<0&&!a)throw RangeError(jt(-0));return s*a}function On(t){let s=As(t[3]);return{...Ya(oo(t[4]||""))[0],isoHour:As(t[1]),isoMinute:As(t[2]),isoSecond:s===60?59:s}}function gr(t){let s,a,r=[];if(t.replace(Dm,(i,o,d)=>{let l=Boolean(o),[n,c]=d.split("=").reverse();if(c){if(c==="u-ca")r.push(n),s||(s=l);else if(l||/[A-Z]/.test(c))throw RangeError(jt(i))}else{if(a)throw RangeError(jt(i));a=n}return""}),r.length>1&&s)throw RangeError(jt(t));return{timeZone:a,calendar:r[0]||x}}function oo(t){return parseInt(t.padEnd(9,"0"))}function Vs(t){return new RegExp(`^${t}$`,"i")}function lo(t){return t&&t!=="+"?-1:1}function As(t){return t===void 0?0:parseInt(t)}function Cn(t){return wr(q(t))}function wr(t){let s=no(t);return typeof s=="number"?Ps(s):s?((a)=>{if(Rm.test(a))throw RangeError(qp);return a.toLowerCase().split("/").map((r,i)=>(r.length<=3||/\d/.test(r))&&!/etc|yap/.test(r)?r.toUpperCase():r.replace(/baja|dumont|[a-z]+/g,(o,d)=>o.length<=2&&!i||o==="in"||o==="chat"?o.toUpperCase():o.length>2||!d?Kd(o).replace(/island|noronha|murdo|rivadavia|urville/,Kd):o)).join("/")})(t):bs}function Wd(t){let s=no(t);return typeof s=="number"?s:s?s.resolvedOptions().timeZone:bs}function no(t){let s=io(t=t.toUpperCase(),1);return s!==void 0?s:t!==bs?Sm(t):void 0}function co(t,s){return tt(t.epochNanoseconds,s.epochNanoseconds)}function uo(t,s){return tt(t.epochNanoseconds,s.epochNanoseconds)}function Dn(t,s,a,r,i,o){let d=t(Dt(o).relativeTo),l=Math.max(ms(r),ms(i));if(rl(C,r,i))return 0;if(la(l,d))return tt(U(r),U(i));if(!d)throw RangeError(Sr);let[n,c,u]=pr(s,a,d),p=Xi(u),m=mr(u);return tt(p(m(c,n,r)),p(m(c,n,i)))}function po(t,s){return Ts(t,s)||Tr(t,s)}function Ts(t,s){return Wt(st(t),st(s))}function Tr(t,s){return Wt(Jt(t),Jt(s))}function bn(t,s){return!co(t,s)}function Sn(t,s){return!uo(t,s)&&!!yr(t.timeZone,s.timeZone)&&js(t.calendar,s.calendar)}function Rn(t,s){return!po(t,s)&&js(t.calendar,s.calendar)}function An(t,s){return!Ts(t,s)&&js(t.calendar,s.calendar)}function Mn(t,s){return!Ts(t,s)&&js(t.calendar,s.calendar)}function In(t,s){return!Ts(t,s)&&js(t.calendar,s.calendar)}function vn(t,s){return!Tr(t,s)}function yr(t,s){if(t===s)return 1;let a=k(t),r=k(s);if(a===r)return 1;try{return Wd(a)===Wd(r)}catch(i){}}function mo(t,s,a,r){let i=Zs(t,Z(r),3,5),o=xr(s.epochNanoseconds,a.epochNanoseconds,...i);return M(t?rt(o):o)}function eo(t,s,a,r,i,o){let d=Cr(r.calendar,i.calendar),l=Z(o),[n,c,u,p]=Zs(a,l,5),m=r.epochNanoseconds,e=i.epochNanoseconds,f=tt(e,m),h;if(f)if(n<6)h=xr(m,e,n,c,u,p);else{let P=s(((g,T)=>{if(!yr(g,T))throw RangeError(Wc);return g})(r.timeZone,i.timeZone)),w=t(d);h=Fn(w,P,r,i,f,n,l),h=dr(h,e,n,c,u,p,w,r,Hl,y(_i,P))}else h=z;return M(a?rt(h):h)}function fo(t,s,a,r,i){let o=Cr(a.calendar,r.calendar),d=Z(i),[l,n,c,u]=Zs(s,d,6),p=Y(a),m=Y(r),e=tt(m,p),f;if(e)if(l<=6)f=xr(p,m,l,n,c,u);else{let h=t(o);f=En(h,a,r,e,l,d),f=dr(f,m,l,n,c,u,h,a,Y,Qi)}else f=z;return M(s?rt(f):f)}function ho(t,s,a,r,i){let o=Cr(a.calendar,r.calendar),d=Z(i);return qn(s,()=>t(o),a,r,...Zs(s,d,6,9,6),d)}function Po(t,s,a,r,i){let o=Cr(a.calendar,r.calendar),d=Z(i),l=Zs(s,d,9,9,8),n=t(o);return qn(s,()=>n,da(n,a),da(n,r),...l,d)}function qn(t,s,a,r,i,o,d,l,n){let c=Y(a),u=Y(r),p;if(tt(u,c))if(i===6)p=xr(c,u,i,o,d,l);else{let m=s();p=m.dateUntil(a,r,i,n),o===6&&d===1||(p=dr(p,u,i,o,d,l,m,a,Y,ur))}else p=z;return M(t?rt(p):p)}function go(t,s,a,r){let i=Z(r),[o,d,l,n]=Zs(t,i,5,5),c=_t(wo(s,a),ha(d,l),n),u={...z,...hr(c,o)};return M(t?rt(u):u)}function up(t,s,a,r,i,o){let d=tt(r.epochNanoseconds,a.epochNanoseconds);return d?i<6?Hn(a.epochNanoseconds,r.epochNanoseconds,i):Fn(s,t,a,r,d,i,o):z}function pp(t,s,a,r,i){let o=Y(s),d=Y(a),l=tt(d,o);return l?r<=6?Hn(o,d,r):En(t,s,a,l,r,i):z}function Fn(t,s,a,r,i,o,d){let[l,n,c]=((m,e,f,h)=>{function P(){return v={...ws(T,I++*-h),...g},W=ut(m,v),tt(H,W)===-h}let w=at(e,m),g=pt(Rt,w),T=at(f,m),H=f.epochNanoseconds,I=0,A=wo(w,T),v,W;if(Math.sign(A)===-h&&I++,P()&&(h===-1||P()))throw RangeError(ya);let V=ht(ft(W,H));return[w,v,V]})(s,a,r,i);var u,p;return{...o===6?(u=l,p=n,{...z,days:Zn(u,p)}):t.dateUntil(l,n,o,d),...hr(c)}}function En(t,s,a,r,i,o){let[d,l,n]=((c,u,p)=>{let m=u,e=wo(c,u);return Math.sign(e)===-p&&(m=ws(u,-p),e+=D*p),[c,m,e]})(s,a,r);return{...t.dateUntil(d,l,i,o),...hr(n)}}function xr(t,s,a,r,i,o){return{...z,...Ks(lr(ft(t,s),r,i,o),a)}}function Hn(t,s,a){return{...z,...Ks(ft(t,s),a)}}function Zn(t,s){return Or(st(t),st(s))}function Or(t,s){return Math.trunc((s-t)/nt)}function wo(t,s){return Jt(s)-Jt(t)}function Cr(t,s){if(!js(t,s))throw RangeError(Fo);return t}function mp(t){function s(i){return((o,d)=>({...jn(o,d),F:o.month,day:parseInt(o.day)}))(gi(a,i),r)}let a=Bo(t),r=Na(t);return{id:t,O:ep(s),B:fp(s)}}function ep(t){return ct((s)=>{let a=st(s);return t(a)},WeakMap)}function fp(t){let s=t(0).year-tm;return ct((a)=>{let r,i=Hs(a-s),o=[],d=[];do i+=400*nt;while((r=t(i)).year<=a);do i+=(1-r.day)*nt,r.year===a&&(o.push(i),d.push(r.F)),i-=nt;while((r=t(i)).year>=a);return{k:o.reverse(),C:Bc(d.reverse())}})}function jn(t,s){let a,r,i=Ln(t);if(t.era){let o=ru[s];o!==void 0&&(a=s==="islamic"?"ah":t.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),a==="bc"||a==="b"?a="bce":a!=="ad"&&a!=="a"||(a="ce"),r=i,i=Gn(r,o[a]||0))}return{era:a,eraYear:r,year:i}}function Ln(t){return parseInt(t.relatedYear||t.year)}function si(t){let{year:s,F:a,day:r}=this.O(t),{C:i}=this.B(s);return[s,i[a]+1,r]}function na(t,s=1,a=1){return this.B(t).k[s-1]+(a-1)*nt}function Fa(t){let s=zd(this,t),a=zd(this,t-1),r=s.length;if(r>a.length){let i=Nn(this);if(i<0)return-i;for(let o=0;o<r;o++)if(s[o]!==a[o])return o+1}}function Ea(t){return Or(na.call(this,t),na.call(this,t+1))}function kd(t,s){let{k:a}=this.B(t),r=s+1,i=a;return r>a.length&&(r=1,i=this.B(t+1).k),Or(a[s-1],i[r-1])}function Ha(t){return this.B(t).k.length}function zd(t,s){return Object.keys(t.B(s).C)}function Kn(t){return Pa(q(t))}function Pa(t){if((t=t.toLowerCase())!==x&&t!==Ir&&Na(t)!==Na(Bo(t).resolvedOptions().calendar))throw RangeError(vp(t));return t}function Na(t){return t==="islamicc"&&(t="islamic"),t.split("-")[0]}function $n(t){return this.R(t)[0]}function Vn(t){return this.R(t)[1]}function To(t){let[s]=this.h(t);return Or(this.q(s),st(t))+1}function Un(t){let s=Mm.exec(t);if(!s)throw RangeError(Mp(t));return[parseInt(s[1]),Boolean(s[2])]}function Wa(t,s,a){return t+(s||a&&t>=a?1:0)}function ai(t,s){return t-(s&&t>=s?1:0)}function Gn(t,s){return(s+t)*(Math.sign(s)||1)||0}function ri(t){return ru[Wn(t)]}function Nn(t){return Wp[Wn(t)]}function Wn(t){return Na(t.id||x)}function kn(t,s,a,r){let i=ts(a,r,St,[],Yc);if(i.timeZone!==void 0){let o=a.dateFromFields(i),d=ys(i),l=t(i.timeZone);return{epochNanoseconds:gs(s(l),{...o,...d},i.offset!==void 0?$s(i.offset):void 0),timeZone:l}}return{...a.dateFromFields(i),...xt}}function zn(t,s,a,r,i,o){let d=ts(a,i,St,Qc,Yc),l=t(d.timeZone),[n,c,u]=fa(o),p=a.dateFromFields(d,ir(o,n)),m=ys(d,n);return B(gs(s(l),{...p,...m},d.offset!==void 0?$s(d.offset):void 0,c,u),l,r)}function Bn(t,s,a){let r=ts(t,s,St,[],Ut),i=O(a);return j(Kt({...t.dateFromFields(r,ir(a,i)),...ys(r,i)}))}function yo(t,s,a,r=[]){let i=ts(t,s,St,r);return t.dateFromFields(i,a)}function xo(t,s,a,r){let i=ts(t,s,Zo,r);return t.yearMonthFromFields(i,a)}function Oo(t,s,a,r,i=[]){let o=ts(t,a,St,i);return s&&o.month!==void 0&&o.monthCode===void 0&&o.year===void 0&&(o.year=Fs),t.monthDayFromFields(o,r)}function Jn(t,s){let a=O(s);return bt(ys(At(t,oi,[],1),a))}function _n(t){let s=At(t,jo);return M(Ls({...z,...s}))}function ts(t,s,a,r=[],i=[]){return At(s,[...t.fields(a),...i].sort(),r)}function At(t,s,a,r=!a){let i={},o,d=0;for(let l of s){if(l===o)throw RangeError(Cp(l));if(l==="constructor"||l==="__proto__")throw RangeError(vo(l));let n=t[l];if(n!==void 0)d=1,Qd[l]&&(n=Qd[l](n,l)),i[l]=n;else if(a){if(a.includes(l))throw TypeError(Io(l));i[l]=au[l]}o=l}if(r&&!d)throw TypeError(Kc(s));return i}function ys(t,s){return ar(Fm({...au,...t}),s)}function Qn(t,s,a,r,i,o){let d=Z(o),{calendar:l,timeZone:n}=a;return B(((c,u,p,m,e)=>{let f=ga(c,p,m,St,Xc,_c),[h,P,w]=fa(e,2);return gs(u,{...c.dateFromFields(f,ir(e,h)),...ys(f,h)},$s(f.offset),P,w)})(t(l),s(n),r,i,d),n,l)}function Xn(t,s,a,r,i){let o=Z(i);return j(((d,l,n,c)=>{let u=ga(d,l,n,St,Ut),p=O(c);return Kt({...d.dateFromFields(u,ir(c,p)),...ys(u,p)})})(t(s.calendar),a,r,o))}function Yn(t,s,a,r,i){let o=Z(i);return((d,l,n,c)=>{let u=ga(d,l,n,St);return d.dateFromFields(u,c)})(t(s.calendar),a,r,o)}function tc(t,s,a,r,i){let o=Z(i);return ps(((d,l,n,c)=>{let u=ga(d,l,n,Zo);return d.yearMonthFromFields(u,c)})(t(s.calendar),a,r,o))}function sc(t,s,a,r,i){let o=Z(i);return((d,l,n,c)=>{let u=ga(d,l,n,St);return d.monthDayFromFields(u,c)})(t(s.calendar),a,r,o)}function ac(t,s,a){return bt(((r,i,o)=>{let d=O(o);return ys({...pt(oi,r),...At(i,oi)},d)})(t,s,a))}function rc(t,s){return M((a=t,r=s,Ls({...a,...At(r,jo)})));var a,r}function ga(t,s,a,r,i=[],o=[]){let d=[...t.fields(r),...i].sort(),l=At(s,d,o),n=At(a,d);return l=t.mergeFields(l,n),At(l,d,[])}function Co(t,s){let a=ts(t,s,su);return t.monthDayFromFields(a)}function Do(t,s,a){let r=ts(t,s,tu);return t.yearMonthFromFields(r,a)}function ic(t,s,a,r,i){s=pt(a=t.fields(a),s),r=At(r,i=t.fields(i),[]);let o=t.mergeFields(s,r);return o=At(o,[...a,...i].sort(),[]),t.dateFromFields(o)}function _r(t,s){let{era:a,eraYear:r,year:i}=s,o=ri(t);if(a!==void 0||r!==void 0){if(a===void 0||r===void 0)throw TypeError(bp);if(!o)throw RangeError(Dp);let d=o[a];if(d===void 0)throw RangeError(Rp(a));let l=Gn(r,d);if(i!==void 0&&i!==l)throw RangeError(Sp);i=l}else if(i===void 0)throw TypeError(Ap(o));return i}function Qr(t,s,a,r){let{month:i,monthCode:o}=s;if(o!==void 0){let d=((l,n,c,u)=>{let p=l.U(c),[m,e]=Un(n),f=Wa(m,e,p);if(e){let h=Nn(l);if(h===void 0)throw RangeError(ra);if(h>0){if(f>h)throw RangeError(ra);if(p===void 0){if(u===1)throw RangeError(ra);f--}}else{if(f!==-h)throw RangeError(ra);if(p===void 0&&u===1)throw RangeError(ra)}}return f})(t,o,a,r);if(i!==void 0&&i!==d)throw RangeError(Gc);i=d,r=1}else if(i===void 0)throw TypeError(Ip);return wt("month",i,1,t.L(a),r)}function Bd(t,s,a,r,i){return dt(s,"day",1,t.j(r,a),i)}function Xr(t,s,a,r){let i=0,o=[];for(let d of a)s[d]!==void 0?i=1:o.push(d);if(Object.assign(t,s),i)for(let d of r||o)delete t[d]}function oc(t){return N(Pt(Xa(Qa(t))))}function dc(t,s,a,r,i=x){return B(Pt(Xa(Qa(a))),s(r),t(i))}function lc(t,s,a,r,i=0,o=0,d=0,l=0,n=0,c=0,u=x){return j(Kt(sr(Ot(X,Es(vr,[s,a,r,i,o,d,l,n,c])))),t(u))}function nc(t,s,a,r,i=x){return L(kt(fs(Ot(X,{isoYear:s,isoMonth:a,isoDay:r}))),t(i))}function cc(t,s,a,r=x,i=1){let o=X(s),d=X(a),l=t(r);return ps(wi(fs({isoYear:o,isoMonth:d,isoDay:X(i)})),l)}function uc(t,s,a,r=x,i=Fs){let o=X(s),d=X(a),l=t(r);return Va(kt(fs({isoYear:X(i),isoMonth:o,isoDay:d})),l)}function pc(t=0,s=0,a=0,r=0,i=0,o=0){return bt(ar(Ot(X,Es(Rt,[t,s,a,r,i,o])),1))}function mc(t=0,s=0,a=0,r=0,i=0,o=0,d=0,l=0,n=0,c=0){return M(Ls(Ot(hl,Es(C,[t,s,a,r,i,o,d,l,n,c]))))}function bo(t,s,a=x){return B(t.epochNanoseconds,s,a)}function ec(t){return N(t.epochNanoseconds)}function So(t,s){return j(at(s,t))}function Ro(t,s){return L(at(s,t))}function fc(t,s,a){return Do(t(s.calendar),a)}function hc(t,s,a){return Co(t(s.calendar),a)}function Ao(t,s){return bt(at(s,t))}function Pc(t,s,a,r){let i=((o,d,l,n)=>{let c=Oi(n);return ut(o(d),l,c)})(t,a,s,r);return B(Pt(i),a,s.calendar)}function gc(t,s,a){let r=t(s.calendar);return ps({...s,...Do(r,a)})}function wc(t,s,a){return Co(t(s.calendar),a)}function Tc(t,s,a,r,i){let o=t(i.timeZone),d=i.plainTime,l=d!==void 0?s(d):xt;return B(ut(a(o),{...r,...l}),o,r.calendar)}function yc(t,s=xt){return j(Kt({...t,...s}))}function xc(t,s,a){return Do(t(s.calendar),a)}function Oc(t,s,a){return Co(t(s.calendar),a)}function Cc(t,s,a,r){return((i,o,d)=>ic(i,o,tu,Lt(d),Oa))(t(s.calendar),a,r)}function Dc(t,s,a,r){return((i,o,d)=>ic(i,o,su,Lt(d),Mr))(t(s.calendar),a,r)}function bc(t,s,a,r,i){let o=Lt(i),d=s(o.plainDate),l=t(o.timeZone);return B(ut(a(l),{...d,...r}),l,d.calendar)}function Sc(t,s){return j(Kt({...t,...s}))}function Rc(t){return N(Pt(vs(t,yt)))}function Ac(t){return N(Pt(vs(t,It)))}function Mc(t){return N(Pt(Xa(Qa(t),Os)))}function Ic(t){return N(Pt(Xa(Qa(t))))}function vc(t,s,a=xt){let r=s.timeZone,i=t(r),o={...at(s,i),...a};return B(gs(i,o,o.offsetNanoseconds,2),r,s.calendar)}function qc(t,s,a){let r=s.timeZone,i=t(r),o={...at(s,i),...a},d=Zc(s.calendar,a.calendar);return B(gs(i,o,o.offsetNanoseconds,2),r,d)}function Fc(t,s=xt){return j({...t,...s})}function Ec(t,s){return j({...t,...s},Zc(t.calendar,s.calendar))}function Dr(t,s){return{...t,calendar:s}}function Hc(t,s){return{...t,timeZone:s}}function Zc(t,s){if(t===s)return t;let a=k(t),r=k(s);if(a===r||a===x)return s;if(r===x)return t;throw RangeError(Fo)}function hp(t,s){return(a)=>a===x?t:a===Ir||a===qs?Object.assign(Object.create(t),{id:a}):Object.assign(Object.create(s),Am(a))}function xs(t,s,a){let r=new Set(a);return(i)=>(((o,d)=>{for(let l of d)if(l in o)return 1;return 0})(i=ci(r,i),t)||Object.assign(i,s),a&&(i.timeZone=bs,["full","long"].includes(i.timeStyle)&&(i.timeStyle="medium")),i)}function $t(t,s=Mo){let[a,,,r]=t;return(i,o=Jm,...d)=>{let l=s(r&&r(...d),i,o,a),n=l.resolvedOptions();return[l,...Pp(t,n,d)]}}function Mo(t,s,a,r){if(a=r(a),t){if(a.timeZone!==void 0)throw TypeError(Up);a.timeZone=t}return new ss(s,a)}function Pp(t,s,a){let[,r,i]=t;return a.map((o)=>(o.calendar&&((d,l,n)=>{if((n||d!==x)&&d!==l)throw RangeError(Fo)})(k(o.calendar),s.calendar,i),r(o,s)))}function Us(t){let s=wa();return Qt(s,t.getOffsetNanosecondsFor(s))}function wa(){return vs(Date.now(),It)}function Vt(){return Yd||(Yd=new ss().resolvedOptions().timeZone)}var gp=(t,s)=>`Non-integer ${t}: ${s}`,wp=(t,s)=>`Non-positive ${t}: ${s}`,Tp=(t,s)=>`Non-finite ${t}: ${s}`,yp=(t)=>`Cannot convert bigint to ${t}`,xp=(t)=>`Invalid bigint: ${t}`,Op="Cannot convert Symbol to string",jc="Invalid object",Lc=(t,s,a,r,i)=>i?Lc(t,i[s],i[a],i[r]):Ta(t,s)+`; must be between ${a}-${r}`,Ta=(t,s)=>`Invalid ${t}: ${s}`,Io=(t)=>`Missing ${t}`,vo=(t)=>`Invalid field ${t}`,Cp=(t)=>`Duplicate field ${t}`,Kc=(t)=>"No valid fields: "+t.join(),$c="Invalid bag",Vc=(t,s,a)=>Ta(t,s)+"; must be "+Object.keys(a).join(),Uc="Cannot use valueOf",qo="Invalid calling context",Dp="Forbidden era/eraYear",bp="Mismatching era/eraYear",Sp="Mismatching year/eraYear",Rp=(t)=>`Invalid era: ${t}`,Ap=(t)=>"Missing year"+(t?"/era/eraYear":""),Mp=(t)=>`Invalid monthCode: ${t}`,Gc="Mismatching month/monthCode",Ip="Missing month/monthCode",Jd="Cannot guess year",ra="Invalid leap month",Nc="Invalid protocol",ya="Invalid protocol results",Fo="Mismatching Calendars",vp=(t)=>`Invalid Calendar: ${t}`,Wc="Mismatching TimeZones",qp="Forbidden ICU TimeZone",Fp="Out-of-bounds offset",Ep="Out-of-bounds TimeZone gap",Hp="Invalid TimeZone offset",Zp="Ambiguous offset",br="Out-of-bounds date",jp="Out-of-bounds duration",Lp="Cannot mix duration signs",Sr="Missing relativeTo",Kp="Cannot use large units",$p="Required smallestUnit or largestUnit",Vp="smallestUnit > largestUnit",lt=(t)=>`Cannot parse: ${t}`,jt=(t)=>`Invalid substring: ${t}`,kc=(t)=>`Cannot format ${t}`,zc="Mismatching types for formatting",Up="Cannot specify TimeZone",Bc=y(pa,(t,s)=>s),Gs=y(pa,(t,s,a)=>a),Tt=y(La,2),ii={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},xa=Object.keys(ii),nt=86400000,Jc=1000,Os=1000,It=1e6,yt=1e9,Rr=60000000000,Ar=3600000000000,D=86400000000000,Mt=[1,Os,It,yt,Rr,Ar,D],Ut=xa.slice(0,6),oi=ma(Ut),_c=["offset"],Qc=["timeZone"],Xc=Ut.concat(_c),Yc=Xc.concat(Qc),di=["era","eraYear"],Gp=di.concat(["year"]),Mr=["year"],Eo=["monthCode"],Ho=["month"].concat(Eo),Oa=["day"],Zo=Ho.concat(Mr),tu=Eo.concat(Mr),St=Oa.concat(Zo),Np=Oa.concat(Ho),su=Oa.concat(Eo),au=Gs(Ut,0),x="iso8601",Ir="gregory",qs="japanese",ru={[Ir]:{bce:-1,ce:0},[qs]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Wp={chinese:13,dangi:13,hebrew:-6},q=y(_a,"string"),iu=y(_a,"boolean"),kp=y(_a,"number"),ou=y(_a,"function"),C=xa.map((t)=>t+"s"),jo=ma(C),zp=C.slice(0,6),du=C.slice(6),Bp=du.slice(1),Jp=Bc(C),z=Gs(C,0),Lo=Gs(zp,0),Ko=y(il,C),Rt=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],$o=["isoDay","isoMonth","isoYear"],vr=Rt.concat($o),Vo=ma($o),lu=ma(Rt),nu=ma(vr),xt=Gs(lu,0),_p=y(il,vr),ss=Intl.DateTimeFormat,cu="en-GB",Uo=1e8,Qp=Uo*nt,Xp=[Uo,0],Yp=[-Uo,0],ca=275760,ua=-271821,tm=1970,Fs=1972,Ht=12,sm=Hs(1868,9,8),am=ct(ap,WeakMap),ka="smallestUnit",li="unit",oa="roundingIncrement",Yr="fractionalSecondDigits",uu="relativeTo",pu={constrain:0,reject:1},rm=Object.keys(pu),im={compatible:0,reject:1,earlier:2,later:3},om={reject:0,use:1,prefer:2,ignore:3},dm={auto:0,never:1,critical:2,always:3},lm={auto:0,never:1,critical:2},nm={auto:0,never:1},cm={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Ca=y(Ai,ka),Go=y(Ai,"largestUnit"),um=y(Ai,li),mu=y(hs,"overflow",pu),eu=y(hs,"disambiguation",im),pm=y(hs,"offset",om),No=y(hs,"calendarName",dm),mm=y(hs,"timeZoneName",lm),em=y(hs,"offset",nm),Da=y(hs,"roundingMode",cm),Ns="PlainYearMonth",Ws="PlainMonthDay",Cs="PlainDate",Ds="PlainDateTime",qr="PlainTime",Gt="ZonedDateTime",Fr="Instant",Er="Duration",fm=[Math.floor,(t)=>qa(t)?Math.floor(t):Math.round(t),Math.ceil,(t)=>qa(t)?Math.ceil(t):Math.round(t),Math.trunc,(t)=>qa(t)?Math.trunc(t)||0:Math.round(t),(t)=>t<0?Math.floor(t):Math.ceil(t),(t)=>Math.sign(t)*Math.round(Math.abs(t))||0,(t)=>qa(t)?(t=Math.trunc(t)||0)+t%2:Math.round(t)],bs="UTC",Za=5184000,hm=$a(1847),Pm=$a(new Date().getUTCFullYear()+10),gm=/0+$/,at=ct(np,WeakMap),_d=4294967295,Hr=ct((t)=>{let s=no(t);return typeof s=="object"?new hu(s):new fu(s||0)});class fu{constructor(t){this.v=t}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(t){return[Ti(t,this.v)]}l(){}}class hu{constructor(t){this.$=((s)=>{function a(n){let c=ti(n,d,l),[u,p]=Nd(c),m=i(u),e=i(p);return m===e?m:r(o(u,p),m,e,n)}function r(n,c,u,p){let m,e;for(;(p===void 0||(m=p<n[0]?c:p>=n[1]?u:void 0)===void 0)&&(e=n[1]-n[0]);){let f=n[0]+Math.floor(e/2);s(f)===u?n[1]=f:n[0]=f+1}return m}let i=ct(s),o=ct(cp),d=hm,l=Pm;return{G(n){let c=a(n-86400),u=a(n+86400),p=n-c,m=n-u;if(c===u)return[p];let e=a(p);return e===a(m)?[n-e]:c>u?[p,m]:[]},V:a,l(n,c){let u=ti(n,d,l),[p,m]=Nd(u),e=Za*c,f=c<0?()=>m>d||(d=u,0):()=>p<l||(l=u,0);for(;f();){let h=i(p),P=i(m);if(h!==P){let w=o(p,m);r(w,h,P);let g=w[0];if((Wt(g,n)||1)===c)return g}p+=e,m+=e}}}})(((s)=>(a)=>{let r=gi(s,a*Jc);return $a(Ln(r),parseInt(r.month),parseInt(r.day),parseInt(r.hour),parseInt(r.minute),parseInt(r.second))-a})(t))}getOffsetNanosecondsFor(t){return this.$.V(wl(t))*yt}getPossibleInstantsFor(t){let[s,a]=[$a((r=t).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*It+r.isoMicrosecond*Os+r.isoNanosecond];var r;return this.$.G(s).map((i)=>Pt(Is(vs(i,yt),a)))}l(t,s){let[a,r]=Tl(t),i=this.$.l(a+(s>0||r?1:0),s);if(i!==void 0)return vs(i,yt)}}var Wo="([+\u2212-])",ja="(?:[.,](\\d{1,9}))?",Pu=`(?:(?:${Wo}(\\d{6}))|(\\d{4}))-?(\\d{2})`,ko="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+ja+")?)?",zo=Wo+ko,wm=Pu+"-?(\\d{2})(?:[T ]"+ko+"(Z|"+zo+")?)?",gu="\\[(!?)([^\\]]*)\\]",Zr=`((?:${gu}){0,9})`,Tm=Vs(Pu+Zr),ym=Vs("(?:--)?(\\d{2})-?(\\d{2})"+Zr),xm=Vs(wm+Zr),Om=Vs("T?"+ko+"(?:"+zo+")?"+Zr),Cm=Vs(zo),Dm=new RegExp(gu,"g"),bm=Vs(`${Wo}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${ja}H)?(?:(\\d+)${ja}M)?(?:(\\d+)${ja}S)?)?`),Sm=ct((t)=>new ss(cu,{timeZone:t,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),Rm=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,Am=ct(mp),Bo=ct((t)=>new ss(cu,{calendar:t,timeZone:bs,era:"short",year:"numeric",month:"short",day:"numeric"})),Mm=/^M(\d{2})(L?)$/,Im={era:Ka,eraYear:X,year:X,month:$d,monthCode:Ka,day:$d},vm=Gs(Ut,X),qm=Gs(C,hl),Qd=Object.assign({},Im,vm,qm,{offset:Ka}),Fm=y(sp,Ut,Rt),Xd={dateAdd(t,s,a){let r=O(a),i,{years:o,months:d,weeks:l,days:n}=s;if(n+=U(s,5)[0],o||d)i=((c,u,p,m,e)=>{let[f,h,P]=c.h(u);if(p){let[w,g]=c.I(f,h);f+=p,h=Wa(w,g,c.U(f)),h=wt("month",h,1,c.L(f),e)}return m&&([f,h]=c._(f,h,m)),P=wt("day",P,1,c.j(f,h),e),c.q(f,h,P)})(this,t,o,d,r);else{if(!l&&!n)return t;i=st(t)}return i+=(7*l+n)*nt,kt(tr(i))},dateUntil(t,s,a){if(a<=7){let n=0,c=Zn({...t,...xt},{...s,...xt});return a===7&&([n,c]=Bt(c,7)),{...z,weeks:n,days:c}}let r=this.h(t),i=this.h(s),[o,d,l]=((n,c,u,p,m,e,f)=>{let h=m-c,P=e-u,w=f-p;if(h||P){let g=Math.sign(h||P),T=n.j(m,e),H=0;if(Math.sign(w)===-g){let I=T;[m,e]=n._(m,e,-g),h=m-c,P=e-u,T=n.j(m,e),H=g<0?-I:T}if(w=f-Math.min(p,T)+H,h){let[I,A]=n.I(c,u),[v,W]=n.I(m,e);if(P=v-I||Number(W)-Number(A),Math.sign(P)===-g){let V=g<0&&-n.L(m);h=(m-=g)-c,P=e-Wa(I,A,n.U(m))+(V||n.L(m))}}}return[h,P,w]})(this,...r,...i);return a===8&&(d+=this.J(o,r[0]),o=0),{...z,years:o,months:d,days:l}},dateFromFields(t,s){let a=O(s),r=_r(this,t),i=Qr(this,t,r,a),o=Bd(this,t,i,r,a);return L(kt(this.P(r,i,o)),this.id||x)},yearMonthFromFields(t,s){let a=O(s),r=_r(this,t),i=Qr(this,t,r,a);return ps(wi(this.P(r,i,1)),this.id||x)},monthDayFromFields(t,s){let a=O(s),r=!this.id,{monthCode:i,year:o,month:d}=t,l,n,c,u,p;if(i!==void 0){[l,n]=Un(i),p=tl(t,"day");let m=this.N(l,n,p);if(!m)throw RangeError(Jd);if([c,u]=m,d!==void 0&&d!==u)throw RangeError(Gc);r&&(u=wt("month",u,1,Ht,1),p=wt("day",p,1,yi(o!==void 0?o:c,u),a))}else{c=o===void 0&&r?Fs:_r(this,t),u=Qr(this,t,c,a),p=Bd(this,t,u,c,a);let m=this.U(c);n=u===m,l=ai(u,m);let e=this.N(l,n,p);if(!e)throw RangeError(Jd);[c,u]=e}return Va(kt(this.P(c,u,p)),this.id||x)},fields(t){return ri(this)&&t.includes("year")?[...t,...di]:t},mergeFields(t,s){let a=Object.assign(Object.create(null),t);return Xr(a,s,Ho),ri(this)&&(Xr(a,s,Gp),this.id===qs&&Xr(a,s,Np,di)),a},inLeapYear(t){let[s]=this.h(t);return this.K(s)},monthsInYear(t){let[s]=this.h(t);return this.L(s)},daysInMonth(t){let[s,a]=this.h(t);return this.j(s,a)},daysInYear(t){let[s]=this.h(t);return this.X(s)},dayOfYear:To,era(t){return this.ee(t)[0]},eraYear(t){return this.ee(t)[1]},monthCode(t){let[s,a]=this.h(t),[r,i]=this.I(s,a);return((o,d)=>"M"+Tt(o)+(d?"L":""))(r,i)},dayOfWeek:Dl,daysInWeek(){return 7}},Em={dayOfYear:To,h:xl,q:Hs},Hm=Object.assign({},Em,{weekOfYear:$n,yearOfWeek:Vn,R(t){function s(e){return(7-e<r?7:0)-e}function a(e){let f=Cl(m+e),h=e||1,P=s(ia(n+f*h,7));return u=(f+(P-c)*h)/7}let r=this.id?1:4,i=Dl(t),o=this.dayOfYear(t),d=ia(i-1,7),l=o-1,n=ia(d-l,7),c=s(n),u,p=Math.floor((l-c)/7)+1,m=t.isoYear;return p?p>a(0)&&(p=1,m++):(p=a(-1),m--),[p,m,u]}}),Zm={dayOfYear:To,h:si,q:na,weekOfYear:$n,yearOfWeek:Vn,R(){return[]}},ks=hp(Object.assign({},Xd,Hm,{h:xl,ee(t){return this.id===Ir?bl(t):this.id===qs?am(t):[]},I:(t,s)=>[s,0],N(t,s){if(!s)return[Fs,t]},K:xi,U(){},L:Ol,J:(t)=>t*Ht,j:yi,X:Cl,P:(t,s,a)=>({isoYear:t,isoMonth:s,isoDay:a}),q:Hs,_:(t,s,a)=>(t+=Ba(a,Ht),(s+=pi(a,Ht))<1?(t--,s+=Ht):s>Ht&&(t++,s-=Ht),[t,s]),year(t){return t.isoYear},month(t){return t.isoMonth},day:(t)=>t.isoDay}),Object.assign({},Xd,Zm,{h:si,ee(t){let s=this.O(t);return[s.era,s.eraYear]},I(t,s){let a=Fa.call(this,t);return[ai(s,a),a===s]},N(t,s,a){let[r,i,o]=si.call(this,{isoYear:Fs,isoMonth:Ht,isoDay:31}),d=Fa.call(this,r),l=i===d;(Wt(t,ai(i,d))||Wt(Number(s),Number(l))||Wt(a,o))===1&&r--;for(let n=0;n<100;n++){let c=r-n,u=Fa.call(this,c),p=Wa(t,s,u);if(s===(p===u)&&a<=kd.call(this,c,p))return[c,p]}},K(t){let s=Ea.call(this,t);return s>Ea.call(this,t-1)&&s>Ea.call(this,t+1)},U:Fa,L:Ha,J(t,s){let a=s+t,r=Math.sign(t),i=r<0?-1:0,o=0;for(let d=s;d!==a;d+=r)o+=Ha.call(this,d+i);return o},j:kd,X:Ea,P(t,s,a){return tr(na.call(this,t,s,a))},q:na,_(t,s,a){if(a){if(s+=a,!Number.isSafeInteger(s))throw RangeError(br);if(a<0)for(;s<1;)s+=Ha.call(this,--t);else{let r;for(;s>(r=Ha.call(this,t));)s-=r,t++}}return[t,s]},year(t){return this.O(t).year},month(t){let{year:s,F:a}=this.O(t),{C:r}=this.B(s);return r[a]+1},day(t){return this.O(t).day}})),zt="numeric",zs=["timeZoneName"],wu={month:zt,day:zt},Jo={year:zt,month:zt},_o=Object.assign({},Jo,{day:zt}),Qo={hour:zt,minute:zt,second:zt},Xo=Object.assign({},_o,Qo),jm=Object.assign({},Xo,{timeZoneName:"short"}),Lm=Object.keys(Jo),Km=Object.keys(wu),$m=Object.keys(_o),Vm=Object.keys(Qo),Yo=["dateStyle"],Um=Lm.concat(Yo),Gm=Km.concat(Yo),td=$m.concat(Yo,["weekday"]),ba=Vm.concat(["dayPeriod","timeStyle"]),sd=td.concat(ba),Nm=sd.concat(zs),Wm=zs.concat(ba),km=zs.concat(td),zm=zs.concat(["day","weekday"],ba),Bm=zs.concat(["year","weekday"],ba),Jm={},ad=[xs(sd,Xo),or],Tu=[xs(Nm,jm),or,0,(t,s)=>{let a=k(t.timeZone);if(s&&k(s.timeZone)!==a)throw RangeError(Wc);return a}],rd=[xs(sd,Xo,zs),st],id=[xs(td,_o,Wm),st],od=[xs(ba,Qo,km),(t)=>Jt(t)/It],dd=[xs(Um,Jo,zm),st,1],ld=[xs(Gm,wu,Bm),st,1],Yd;function Ft(t,s,a,r,i){function o(...n){if(!(this instanceof o))throw TypeError(qo);Cu(this,s(...n))}function d(n,c){return Object.defineProperties(function(...u){return n.call(this,l(this),...u)},ni(c))}function l(n){let c=Q(n);if(!c||c.branding!==t)throw TypeError(qo);return c}return Object.defineProperties(o.prototype,{...sl(Ot(d,a)),...es(Ot(d,r)),...za("Temporal."+t)}),Object.defineProperties(o,{...es(i),...ni(t)}),[o,(n)=>{let c=Object.create(o.prototype);return Cu(c,n),c},l]}function Su(t){return t=t.concat("id").sort(),(s)=>{if(!al(s,t))throw TypeError(Nc);return s}}function Qs(t){if(Q(t)||t.calendar!==void 0||t.timeZone!==void 0)throw TypeError($c);return t}function jr(t,s){let a={};for(let r in t)a[r]=({o:i},o)=>{let d=Q(o)||{},{branding:l}=d,n=l===Cs||s.includes(l)?d:ot(o);return i[r](n)};return a}function ud(t){let s={};for(let a in t)s[a]=(r)=>{let{calendar:i}=r;return(o=i,typeof o=="string"?ks(o):(d=o,Object.assign(Object.create(pe),{i:d})))[a](r);var o,d};return s}function ds(){throw TypeError(Uc)}function Ra({calendar:t}){return typeof t=="string"?new Td(t):t}function yu(t,s){if(s=Z(s),G(t)){let r=Q(t);if(r&&r.branding===Ws)return O(s),r;let i=Mu(t);return Oo(Nr(i||x),!i,t,s)}let a=mn(ks,t);return O(s),a}function Ru(t,s,a){return r=s.call(t,it(N(a))),Ui(ea(r));var r}function Lr(t,s=Fu){let a=Object.keys(s).sort(),r={};for(let i of a)r[i]=y(s[i],t,ou(t[i]));return r}function b(t,s){return typeof t=="string"?Hr(t):Lr(t,s)}function $(t){return b(t,cd)}function vt(t){if(G(t)){let s=Q(t);if(s)switch(s.branding){case Fr:return s;case Gt:return N(s.epochNanoseconds)}}return ln(t)}function xu(t,s,a){let r=s.l(vt(a).epochNanoseconds,t);return r?it(N(r)):null}function R(t){return G(t)?(Q(t)||{}).timeZone||ge(t):((s)=>wr(Pn(q(s))))(t)}function as(t,s){if(G(t)){let a=Q(t)||{};switch(a.branding){case qr:return O(s),a;case Ds:return O(s),bt(a);case Gt:return O(s),Ao($,a)}return Jn(t,s)}return O(s),en(t)}function pd(t){return t===void 0?void 0:as(t)}function Bs(t,s){if(s=Z(s),G(t)){let r=Q(t);return r&&r.branding===Ns?(O(s),r):xo(Ur(Aa(t)),t,s)}let a=pn(ks,t);return O(s),a}function rs(t,s){if(s=Z(s),G(t)){let r=Q(t)||{};switch(r.branding){case Ds:return O(s),r;case Cs:return O(s),j({...r,...xt});case Gt:return O(s),So($,r)}return Bn(Gr(Aa(t)),t,s)}let a=un(t);return O(s),a}function ot(t,s){if(s=Z(s),G(t)){let r=Q(t)||{};switch(r.branding){case Cs:return O(s),r;case Ds:return O(s),L(r);case Gt:return O(s),Ro($,r)}return yo(Gr(Aa(t)),t,s)}let a=Pr(t);return O(s),a}function Au(t,s,a){return Ct(s.call(t,E(L(a,t))))}function Et(t){return(s)=>typeof s=="string"?ks(s):((a,r)=>{let i=Object.keys(r).sort(),o={};for(let d of i)o[d]=y(r[d],a,a[d]);return o})(s,t)}function F(t){if(G(t)){let s=Q(t);return s&&s.branding===Er?s:_n(t)}return fn(t)}function Sa(t){if(t!==void 0){if(G(t)){let s=Q(t)||{};switch(s.branding){case Gt:case Cs:return s;case Ds:return L(s)}let a=Aa(t);return{...kn(R,b,Gr(a),t),calendar:a}}return nn(t)}}function Aa(t){return Mu(t)||x}function Mu(t){let{calendar:s}=t;if(s!==void 0)return _(s)}function _(t){return G(t)?(Q(t)||{}).calendar||qe(t):((s)=>Pa(hn(q(s))))(t)}function Js(t,s){if(s=Z(s),G(t)){let a=Q(t);if(a&&a.branding===Gt)return fa(s),a;let r=Aa(t);return zn(R,b,Gr(r),r,t,s)}return cn(t,s)}function Ou(t){return Ot((s)=>(a)=>s(nd(a)),t)}function nd(t){return at(t,$)}function _m(){let t=ss.prototype,s=Object.getOwnPropertyDescriptors(t),a=Object.getOwnPropertyDescriptors(ss),r=function(i,o={}){if(!(this instanceof r))return new r(i,o);yd.set(this,((d,l={})=>{let n=new ss(d,l),c=n.resolvedOptions(),u=c.locale,p=pt(Object.keys(l),c),m=ct(Ym),e=(...f)=>{let h,P=f.map((w,g)=>{let T=Q(w),H=(T||{}).branding;if(g&&h&&h!==H)throw TypeError(zc);return h=H,T});return h?m(h)(u,p,...P):[n,...f]};return e.u=n,e})(i,o))};for(let i in s){let o=s[i],d=i.startsWith("format")&&Qm(i);typeof o.value=="function"?o.value=i==="constructor"?r:d||Xm(i):d&&(o.get=function(){return d.bind(this)})}return a.prototype.value=Object.create(t,s),Object.defineProperties(r,a),r}function Qm(t){return function(...s){let a=yd.get(this),[r,...i]=a(...s);return r[t](...i)}}function Xm(t){return function(...s){return yd.get(this).u[t](...s)}}function Ym(t){let s=te[t];if(!s)throw TypeError(kc(t));return $t(s,ct(Mo))}var te={Instant:ad,PlainDateTime:rd,PlainDate:id,PlainTime:od,PlainYearMonth:dd,PlainMonthDay:ld},se=$t(ad),ae=$t(Tu),re=$t(rd),ie=$t(id),oe=$t(od),de=$t(dd),le=$t(ld),md={era:cl,eraYear:mi,year:ea,month:Ct,daysInMonth:Ct,daysInYear:Ct,inLeapYear:iu,monthsInYear:Ct},$r={monthCode:q},ed={day:Ct},Iu={dayOfWeek:Ct,dayOfYear:Ct,weekOfYear:ul,yearOfWeek:mi,daysInWeek:Ct},vu=Object.assign({},md,$r,ed,Iu),Kr=new WeakMap,Q=Kr.get.bind(Kr),Cu=Kr.set.bind(Kr),ne={...jr(md,[Ns]),...jr(Iu,[]),...jr($r,[Ns,Ws]),...jr(ed,[Ws])},fd=ud(vu),ce=ud({...md,...$r}),ue=ud({...$r,...ed}),Ma={calendarId:(t)=>k(t.calendar)},pe=Ot((t,s)=>function(a){let{i:r}=this;return t(r[s](E(L(a,r))))},vu),me=pa((t)=>(s)=>s[t],C.concat("sign")),hd=pa((t,s)=>(a)=>a[Rt[s]],Ut),qu={epochSeconds:ql,epochMilliseconds:or,epochMicroseconds:Fl,epochNanoseconds:El},Ia=y(ci,new Set(["branding"])),[ee,_s,fe]=Ft(Ws,y(uc,_),{...Ma,...ue},{getISOFields:Ia,getCalendar:Ra,with(t,s,a){return _s(sc(Me,t,this,Qs(s),a))},equals:(t,s)=>In(t,yu(s)),toPlainDate(t,s){return E(Dc(va,t,this,s))},toLocaleString(t,s,a){let[r,i]=le(s,a,t);return r.format(i)},toString:ji,toJSON:(t)=>ji(t),valueOf:ds},{from:(t,s)=>_s(yu(t,s))}),Fu={getOffsetNanosecondsFor:Ru,getPossibleInstantsFor(t,s,a){let r=[...s.call(t,J(j(a,x)))].map((o)=>Pe(o).epochNanoseconds),i=r.length;return i>1&&(r.sort(tt),Gi(ht(ft(r[0],r[i-1])))),r}},cd={getOffsetNanosecondsFor:Ru},[he,it,Pe]=Ft(Fr,oc,qu,{add:(t,s)=>it(Ni(0,t,F(s))),subtract:(t,s)=>it(Ni(1,t,F(s))),until:(t,s,a)=>S(mo(0,t,vt(s),a)),since:(t,s,a)=>S(mo(1,t,vt(s),a)),round:(t,s)=>it(jl(t,s)),equals:(t,s)=>bn(t,vt(s)),toZonedDateTime(t,s){let a=Lt(s);return K(bo(t,R(a.timeZone),_(a.calendar)))},toZonedDateTimeISO:(t,s)=>K(bo(t,R(s))),toLocaleString(t,s,a){let[r,i]=se(s,a,t);return r.format(i)},toString:(t,s)=>qi(R,$,t,s),toJSON:(t)=>qi(R,$,t),valueOf:ds},{from:(t)=>it(vt(t)),fromEpochSeconds:(t)=>it(Rc(t)),fromEpochMilliseconds:(t)=>it(Ac(t)),fromEpochMicroseconds:(t)=>it(Mc(t)),fromEpochNanoseconds:(t)=>it(Ic(t)),compare:(t,s)=>co(vt(t),vt(s))}),[Vr,ff]=Ft("TimeZone",(t)=>{let s=Cn(t);return{branding:"TimeZone",id:s,o:Hr(s)}},{id:(t)=>t.id},{getPossibleInstantsFor:({o:t},s)=>t.getPossibleInstantsFor(rs(s)).map((a)=>it(N(a))),getOffsetNanosecondsFor:({o:t},s)=>t.getOffsetNanosecondsFor(vt(s).epochNanoseconds),getOffsetStringFor(t,s){let a=vt(s).epochNanoseconds,r=Lr(this,cd).getOffsetNanosecondsFor(a);return Ps(r)},getPlainDateTimeFor(t,s,a=x){let r=vt(s).epochNanoseconds,i=Lr(this,cd).getOffsetNanosecondsFor(r);return J(j(Qt(r,i),_(a)))},getInstantFor(t,s,a){let r=rs(s),i=Oi(a),o=Lr(this);return it(N(ut(o,r,i)))},getNextTransition:({o:t},s)=>xu(1,t,s),getPreviousTransition:({o:t},s)=>xu(-1,t,s),equals(t,s){return!!yr(this,R(s))},toString:(t)=>t.id,toJSON:(t)=>t.id},{from(t){let s=R(t);return typeof s=="string"?new Vr(s):s}}),ge=Su(Object.keys(Fu)),[we,is]=Ft(qr,pc,hd,{getISOFields:Ia,with(t,s,a){return is(ac(this,Qs(s),a))},add:(t,s)=>is(Ji(0,t,F(s))),subtract:(t,s)=>is(Ji(1,t,F(s))),until:(t,s,a)=>S(go(0,t,as(s),a)),since:(t,s,a)=>S(go(1,t,as(s),a)),round:(t,s)=>is($l(t,s)),equals:(t,s)=>vn(t,as(s)),toZonedDateTime:(t,s)=>K(bc(R,ot,b,t,s)),toPlainDateTime:(t,s)=>J(Sc(t,ot(s))),toLocaleString(t,s,a){let[r,i]=oe(s,a,t);return r.format(i)},toString:Li,toJSON:(t)=>Li(t),valueOf:ds},{from:(t,s)=>is(as(t,s)),compare:(t,s)=>Tr(as(t),as(s))}),[Te,os,ye]=Ft(Ns,y(cc,_),{...Ma,...ce},{getISOFields:Ia,getCalendar:Ra,with(t,s,a){return os(tc(Ae,t,this,Qs(s),a))},add:(t,s,a)=>os(Bi(Du,0,t,F(s),a)),subtract:(t,s,a)=>os(Bi(Du,1,t,F(s),a)),until:(t,s,a)=>S(Po(bu,0,t,Bs(s),a)),since:(t,s,a)=>S(Po(bu,1,t,Bs(s),a)),equals:(t,s)=>Mn(t,Bs(s)),toPlainDate(t,s){return E(Cc(va,t,this,s))},toLocaleString(t,s,a){let[r,i]=de(s,a,t);return r.format(i)},toString:Zi,toJSON:(t)=>Zi(t),valueOf:ds},{from:(t,s)=>os(Bs(t,s)),compare:(t,s)=>Ts(Bs(t),Bs(s))}),[xe,J]=Ft(Ds,y(lc,_),{...Ma,...fd,...hd},{getISOFields:Ia,getCalendar:Ra,with(t,s,a){return J(Xn(va,t,this,Qs(s),a))},withCalendar:(t,s)=>J(Dr(t,_(s))),withPlainDate:(t,s)=>J(Ec(t,ot(s))),withPlainTime:(t,s)=>J(Fc(t,pd(s))),add:(t,s,a)=>J(ki(Ss,0,t,F(s),a)),subtract:(t,s,a)=>J(ki(Ss,1,t,F(s),a)),until:(t,s,a)=>S(fo(qt,0,t,rs(s),a)),since:(t,s,a)=>S(fo(qt,1,t,rs(s),a)),round:(t,s)=>J(Kl(t,s)),equals:(t,s)=>Rn(t,rs(s)),toZonedDateTime:(t,s,a)=>K(Pc(b,t,R(s),a)),toPlainDate:(t)=>E(L(t)),toPlainTime:(t)=>is(bt(t)),toPlainYearMonth(t){return os(gc(Ur,t,this))},toPlainMonthDay(t){return _s(wc(Nr,t,this))},toLocaleString(t,s,a){let[r,i]=re(s,a,t);return r.format(i)},toString:Ei,toJSON:(t)=>Ei(t),valueOf:ds},{from:(t,s)=>J(rs(t,s)),compare:(t,s)=>po(rs(t),rs(s))}),[Oe,E,Eu]=Ft(Cs,y(nc,_),{...Ma,...fd},{getISOFields:Ia,getCalendar:Ra,with(t,s,a){return E(Yn(va,t,this,Qs(s),a))},withCalendar:(t,s)=>E(Dr(t,_(s))),add:(t,s,a)=>E(zi(Ss,0,t,F(s),a)),subtract:(t,s,a)=>E(zi(Ss,1,t,F(s),a)),until:(t,s,a)=>S(ho(qt,0,t,ot(s),a)),since:(t,s,a)=>S(ho(qt,1,t,ot(s),a)),equals:(t,s)=>An(t,ot(s)),toZonedDateTime(t,s){let a=!G(s)||s instanceof Vr?{timeZone:s}:s;return K(Tc(R,as,b,t,a))},toPlainDateTime:(t,s)=>J(yc(t,pd(s))),toPlainYearMonth(t){return os(xc(Ur,t,this))},toPlainMonthDay(t){return _s(Oc(Nr,t,this))},toLocaleString(t,s,a){let[r,i]=ie(s,a,t);return r.format(i)},toString:Hi,toJSON:(t)=>Hi(t),valueOf:ds},{from:(t,s)=>E(ot(t,s)),compare:(t,s)=>Ts(ot(t),ot(s))}),Pd={fields(t,s,a){return[...s.call(t,a)]}},Hu=Object.assign({dateFromFields(t,s,a,r){return Eu(s.call(t,Object.assign(Object.create(null),a),r))}},Pd),Zu=Object.assign({yearMonthFromFields(t,s,a,r){return ye(s.call(t,Object.assign(Object.create(null),a),r))}},Pd),ju=Object.assign({monthDayFromFields(t,s,a,r){return fe(s.call(t,Object.assign(Object.create(null),a),r))}},Pd),gd={mergeFields(t,s,a,r){return Lt(s.call(t,Object.assign(Object.create(null),a),Object.assign(Object.create(null),r)))}},Ce=Object.assign({},Hu,gd),De=Object.assign({},Zu,gd),be=Object.assign({},ju,gd),wd={dateAdd(t,s,a,r,i){return Eu(s.call(t,E(L(a,t)),S(M(r)),i))}},Lu=Object.assign({},wd,{dateUntil(t,s,a,r,i,o){return ve(s.call(t,E(L(a,t)),E(L(r,t)),Object.assign(Object.create(null),o,{largestUnit:xa[i]})))}}),Se=Object.assign({},wd,{day:Au}),Re=Object.assign({},Lu,{day:Au}),Ur=Et(Zu),Gr=Et(Hu),Nr=Et(ju),Ae=Et(De),va=Et(Ce),Me=Et(be),Ss=Et(wd),qt=Et(Lu),Du=Et(Se),bu=Et(Re),[Ie,S,ve]=Ft(Er,mc,{...me,blank:rn},{with:(t,s)=>S(rc(t,s)),negated:(t)=>S(fr(t)),abs:(t)=>S(an(t)),add:(t,s,a)=>S(to(Sa,qt,b,0,t,F(s),a)),subtract:(t,s,a)=>S(to(Sa,qt,b,1,t,F(s),a)),round:(t,s)=>S(sn(Sa,qt,b,t,s)),total:(t,s)=>Zl(Sa,qt,b,t,s),toLocaleString(t,s,a){return Intl.DurationFormat?new Intl.DurationFormat(s,a).format(this):cr(t)},toString:cr,toJSON:(t)=>cr(t),valueOf:ds},{from:(t)=>S(F(t)),compare:(t,s,a)=>Dn(Sa,Ss,b,F(t),F(s),a)}),Ku={toString:(t)=>t.id,toJSON:(t)=>t.id,...ne,dateAdd:({id:t,o:s},a,r,i)=>E(L(s.dateAdd(ot(a),F(r),i),t)),dateUntil:({o:t},s,a,r)=>S(M(t.dateUntil(ot(s),ot(a),Rl(r)))),dateFromFields:({id:t,o:s},a,r)=>E(yo(s,a,r,nl(t))),yearMonthFromFields:({id:t,o:s},a,r)=>os(xo(s,a,r,dl(t))),monthDayFromFields:({id:t,o:s},a,r)=>_s(Oo(s,0,a,r,ll(t))),fields({o:t},s){let a=new Set(St),r=[];for(let i of s){if(q(i),!a.has(i))throw RangeError(vo(i));a.delete(i),r.push(i)}return t.fields(r)},mergeFields:({o:t},s,a)=>t.mergeFields(ui(ei(s)),ui(ei(a)))},[Td]=Ft("Calendar",(t)=>{let s=Kn(t);return{branding:"Calendar",id:s,o:ks(s)}},{id:(t)=>t.id},Ku,{from(t){let s=_(t);return typeof s=="string"?new Td(s):s}}),qe=Su(Object.keys(Ku).slice(4)),[Fe,K]=Ft(Gt,y(dc,_,R),{...qu,...Ma,...Ou(fd),...Ou(hd),offset:(t)=>Ps(nd(t).offsetNanoseconds),offsetNanoseconds:(t)=>nd(t).offsetNanoseconds,timeZoneId:(t)=>k(t.timeZone),hoursInDay:(t)=>Vl(b,t)},{getISOFields:(t)=>Yl($,t),getCalendar:Ra,getTimeZone:({timeZone:t})=>typeof t=="string"?new Vr(t):t,with(t,s,a){return K(Qn(va,b,t,this,Qs(s),a))},withCalendar:(t,s)=>K(Dr(t,_(s))),withTimeZone:(t,s)=>K(Hc(t,R(s))),withPlainDate:(t,s)=>K(qc(b,t,ot(s))),withPlainTime:(t,s)=>K(vc(b,t,pd(s))),add:(t,s,a)=>K(Wi(Ss,b,0,t,F(s),a)),subtract:(t,s,a)=>K(Wi(Ss,b,1,t,F(s),a)),until:(t,s,a)=>S(M(eo(qt,b,0,t,Js(s),a))),since:(t,s,a)=>S(M(eo(qt,b,1,t,Js(s),a))),round:(t,s)=>K(Ll(b,t,s)),startOfDay:(t)=>K(Ul(b,t)),equals:(t,s)=>Sn(t,Js(s)),toInstant:(t)=>it(ec(t)),toPlainDateTime:(t)=>J(So($,t)),toPlainDate:(t)=>E(Ro($,t)),toPlainTime:(t)=>is(Ao($,t)),toPlainYearMonth(t){return os(fc(Ur,t,this))},toPlainMonthDay(t){return _s(hc(Nr,t,this))},toLocaleString(t,s,a={}){let[r,i]=ae(s,a,t);return r.format(i)},toString:(t,s)=>Fi($,t,s),toJSON:(t)=>Fi($,t),valueOf:ds},{from:(t,s)=>K(Js(t,s)),compare:(t,s)=>uo(Js(t),Js(s))}),Ee=Object.defineProperties({},{...za("Temporal.Now"),...es({timeZoneId:()=>Vt(),instant:()=>it(N(wa())),zonedDateTime:(t,s=Vt())=>K(B(wa(),R(s),_(t))),zonedDateTimeISO:(t=Vt())=>K(B(wa(),R(t),x)),plainDateTime:(t,s=Vt())=>J(j(Us($(R(s))),_(t))),plainDateTimeISO:(t=Vt())=>J(j(Us($(R(t))),x)),plainDate:(t,s=Vt())=>E(L(Us($(R(s))),_(t))),plainDateISO:(t=Vt())=>E(L(Us($(R(t))),x)),plainTimeISO:(t=Vt())=>is(bt(Us($(R(t)))))})}),ls=Object.defineProperties({},{...za("Temporal"),...es({PlainYearMonth:Te,PlainMonthDay:ee,PlainDate:Oe,PlainTime:we,PlainDateTime:xe,ZonedDateTime:Fe,Instant:he,Calendar:Td,TimeZone:Vr,Duration:Ie,Now:Ee})}),He=_m(),yd=new WeakMap,Ze=Object.defineProperties(Object.create(Intl),es({DateTimeFormat:He}));class kr extends Wr{provider;static _name="AuthenticationServiceContainer";constructor(t){super();this.provider=t}async getSession(t,s){let a=await this.provider.adapter.findSession({token:t,userAgent:s}),r=null;if(a?.user)r=await this.provider.extendSession(a.user),a.user.extension=r;return a}async generateMagicLink(t){}async upsertSession(t){await this.provider.adapter.findSession({token:"",userAgent:""})}async authenticate(t){try{let s=await this.provider.adapter.findUserByEmailAddress(t,!1);if(!s)throw Error(`User not found with email: ${t}`);let a=await this.createOrUpdateSession({email:t,id:s.id}),r=new Nt,i=new URL(r.rawRequest.url);if(r.ctx().setCookie("access_token",a.token,{expires:a.expiresAt,secure:!i.origin.includes("localhost"),httpOnly:!0}),a?.user)a.user.extension=await this.provider.extendSession(a.user);return a}catch(s){console.log(s)}}async createOrUpdateSessionV2(t){let s=this.provider,a=new Nt,r=a.headers.get("User-Agent"),i=new Bun.CryptoHasher("sha256");i.update(`${t.email}${r}`);let o=i.digest("hex"),d=await s.adapter.findSession({token:o,userAgent:Bun.env.NODE_ENV==="development"?"local":a.headers.get("User-Agent")});if(!d){let n=t.id;if(!n){let{id:c}=await s.adapter.findUserByEmailAddress(t.email,!1);n=c}d=await s.adapter.createSessionV2({token:o,userId:n,userAgent:Bun.env.NODE_ENV==="development"?"local":a.headers.get("User-Agent"),expiresAt:new Date(ls.Now.instant().add({hours:s.sessionExpiresInHours}).toString()),absoluteExpiresAt:new Date(ls.Now.instant().add({hours:s.sessionAbsoluteExpiresInHours}).toString())})}else d=await s.adapter.updateSession({token:o,expiresAt:new Date(ls.Now.instant().add({hours:s.sessionExpiresInHours}).toString())});let l=null;if(d?.user)l=await this.provider.extendSession(d.user),d.user.extension=l;return d}async createOrUpdateSession(t){let s=this.provider,a=new Nt,r=a.headers.get("User-Agent"),i=new Bun.CryptoHasher("sha256");i.update(`${t.email}${r}`);let o=i.digest("hex"),d=await s.adapter.findSession({token:o,userAgent:Bun.env.NODE_ENV==="development"?"local":a.headers.get("User-Agent")});if(!d){let l=t.id;if(!l){let{id:n}=await s.adapter.findUserByEmailAddress(t.email,!1);l=n}d=await s.adapter.createSessionV2({token:o,userId:l,userAgent:Bun.env.NODE_ENV==="development"?"local":a.headers.get("User-Agent"),expiresAt:new Date(ls.Now.instant().add({hours:s.sessionExpiresInHours}).toString()),absoluteExpiresAt:new Date(ls.Now.instant().add({hours:s.sessionAbsoluteExpiresInHours}).toString())})}else d=await s.adapter.updateSession({token:o,expiresAt:new Date(ls.Now.instant().add({hours:s.sessionExpiresInHours}).toString())});return d}async createMagicLinkToken(t){let s=kr.use()?.provider,a=await s.adapter.findUserByEmailAddress(t,!1);if(a){await s.adapter.deleteMagicLinkToken(t);let r=await s.generateMagicLinkToken(t),i=(Number.parseInt(je(4).toString("hex"),16)%1e6).toString().padStart(6,"0");return await s.adapter.createMagicLinkToken({email:t,token:r,pin:i}),{user:a,email:t,pin:i,token:r}}return{}}}class $u extends et{async run(t){let s=cs.getStore(),a=s.req.cookies.get("access_token"),r=s.req.headers.get("access_token"),i=a||r;if(!i)throw new aa;let o=s.user;if(!o){let d=await kr.use().getSession(i,s.req.headers.get("User-Agent"));if(!d)throw new aa;o=d?.user,s.setUser(o)}return{}}}class Vu extends et{async run(...t){let[s="public",a="864000",...r]=t,i=`${s}, max-age=${a}${r.length>0?", ":""}${r.join(", ")}`;if(t.length===0)i="public, max-age=864000, stale-while-revalidate=300, stale-if-error=600";if(t.length===1&&t[0]==="public")i="public, max-age=864000, stale-while-revalidate=300, stale-if-error=600";if(t.length===1&&t[0]==="private")i="private, max-age=0, stale-while-revalidate=300, stale-if-error=600";if(this.req.rawRequest.method==="GET")this.req.ctx().setHeaders("Cache-Control",i);return{}}}var Le={"Access-Control-Allow-Methods":"GET, POST, PUT, DELETE, OPTIONS","Access-Control-Allow-Headers":"Content-Type, Authorization, X-Requested-With","Access-Control-Allow-Credentials":"true"};class Uu extends et{config={origins:{"":{"Access-Control-Allow-Methods":"GET, POST, PUT, DELETE, OPTIONS","Access-Control-Allow-Headers":"Content-Type, Authorization, X-Requested-With","Access-Control-Allow-Credentials":"true"}}};run(){let t=this.req,s=t.rawRequest.headers.get("Origin");if(this.config.origins[s]){t.ctx().setHeaders("Access-Control-Allow-Origin",s);let a={...Le,...this.config.origins[s]};for(let[r,i]of Object.entries(a))t.ctx().setHeaders(r,i)}return{}}}class xd extends Wr{service;static _name="RateLimiterServiceContainer";constructor(t){super();this.service=t}}class Gu extends gt{constructor(){super("Rate limit exceeded");this.payload={api:{status:429,data:{error:{message:"Rate limit exceeded"}},headers:{"Content-Type":"application/json"}},view:{error:{message:"Rate limit exceeded"},status:429}}}}class Nu extends et{async run(t=1000){let s=this.req.headers.get("x-forwarded-for"),a=xd.use().service.driver;if(a.consume.call(a,s,this.req.routePath)>t)throw new Gu;return{}}}class Wu extends et{async run(){let t=this.req.cookies.get("csrf_token");if(!t)throw new Od;if(!["POST","PUT","PATCH","DELETE"].includes(this.req.rawRequest.method))return{};if(!Bun.CSRF.verify(t,{secret:process.env.SECRET}))throw new Od;return{}}}class Od extends gt{constructor(){super("Invalid CSRF token");this.name="InvalidCSRFTokenError"}payload={api:{status:403,data:{error:"Invalid CSRF token"}},view:{}}}class ku{policiesList={};constructor(){let t=this.register();for(let s of t){let a=new s;this.policiesList[s.name]=a}}register(){return[]}}class zu{all(t,s){return!0}}export{zr as N,Cd as O,Dd as P,cs as Q,ta as R,Nt as S,Id as T,sa as U,et as V,tp as W,Zd as X,jd as Y,Ld as Z,aa as _,ls as $,kr as aa,$u as ba,Vu as ca,Uu as da,xd as ea,Nu as fa,Wu as ga,ku as ha,zu as ia};
3
-
4
- //# debugId=01EA466284E06EFD64756E2164756E21
@@ -1,5 +0,0 @@
1
- // @bun
2
- var vt=Object.defineProperty,n=(t,e)=>vt(t,"name",{value:e,configurable:!0}),L=class{type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(t,e,r,i,c,u){this.type=t,this.name=e,this.prefix=r,this.value=i,this.suffix=c,this.modifier=u}hasCustomName(){return this.name!==""&&typeof this.name!="number"}};n(L,"Part");var xt=/[$_\p{ID_Start}]/u,Et=/[$_\u200C\u200D\p{ID_Continue}]/u,N=".*";function Q(t,e){return(e?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(t)}n(Q,"isASCII");function F(t,e=!1){let r=[],i=0;for(;i<t.length;){let c=t[i],u=n(function(o){if(!e)throw TypeError(o);r.push({type:"INVALID_CHAR",index:i,value:t[i++]})},"ErrorOrInvalid");if(c==="*"){r.push({type:"ASTERISK",index:i,value:t[i++]});continue}if(c==="+"||c==="?"){r.push({type:"OTHER_MODIFIER",index:i,value:t[i++]});continue}if(c==="\\"){r.push({type:"ESCAPED_CHAR",index:i++,value:t[i++]});continue}if(c==="{"){r.push({type:"OPEN",index:i,value:t[i++]});continue}if(c==="}"){r.push({type:"CLOSE",index:i,value:t[i++]});continue}if(c===":"){let o="",s=i+1;for(;s<t.length;){let h=t.substr(s,1);if(s===i+1&&xt.test(h)||s!==i+1&&Et.test(h)){o+=t[s++];continue}break}if(!o){u(`Missing parameter name at ${i}`);continue}r.push({type:"NAME",index:i,value:o}),i=s;continue}if(c==="("){let o=1,s="",h=i+1,a=!1;if(t[h]==="?"){u(`Pattern cannot start with "?" at ${h}`);continue}for(;h<t.length;){if(!Q(t[h],!1)){u(`Invalid character '${t[h]}' at ${h}.`),a=!0;break}if(t[h]==="\\"){s+=t[h++]+t[h++];continue}if(t[h]===")"){if(o--,o===0){h++;break}}else if(t[h]==="("&&(o++,t[h+1]!=="?")){u(`Capturing groups are not allowed at ${h}`),a=!0;break}s+=t[h++]}if(a)continue;if(o){u(`Unbalanced pattern at ${i}`);continue}if(!s){u(`Missing pattern at ${i}`);continue}r.push({type:"REGEX",index:i,value:s}),i=h;continue}r.push({type:"CHAR",index:i,value:t[i++]})}return r.push({type:"END",index:i,value:""}),r}n(F,"lexer");function M(t,e={}){let r=F(t);e.delimiter??="/#?",e.prefixes??="./";let i=`[^${d(e.delimiter)}]+?`,c=[],u=0,o=0,s="",h=new Set,a=n((p)=>{if(o<r.length&&r[o].type===p)return r[o++].value},"tryConsume"),f=n(()=>a("OTHER_MODIFIER")??a("ASTERISK"),"tryConsumeModifier"),b=n((p)=>{let l=a(p);if(l!==void 0)return l;let{type:m,index:P}=r[o];throw TypeError(`Unexpected ${m} at ${P}, expected ${p}`)},"mustConsume"),k=n(()=>{let p="",l;for(;l=a("CHAR")??a("ESCAPED_CHAR");)p+=l;return p},"consumeText"),wt=n((p)=>p,"DefaultEncodePart"),T=e.encodePart||wt,U="",O=n((p)=>{U+=p},"appendToPendingFixedValue"),D=n(()=>{U.length&&(c.push(new L(3,"","",T(U),"",3)),U="")},"maybeAddPartFromPendingFixedValue"),J=n((p,l,m,P,v)=>{let y=3;switch(v){case"?":y=1;break;case"*":y=0;break;case"+":y=2;break}if(!l&&!m&&y===3){O(p);return}if(D(),!l&&!m){if(!p)return;c.push(new L(3,"","",T(p),"",y));return}let g;m?m==="*"?g=N:g=m:g=i;let A=2;g===i?(A=1,g=""):g===N&&(A=0,g="");let x;if(l?x=l:m&&(x=u++),h.has(x))throw TypeError(`Duplicate name '${x}'.`);h.add(x),c.push(new L(A,x,T(p),g,T(P),y))},"addPart");for(;o<r.length;){let p=a("CHAR"),l=a("NAME"),m=a("REGEX");if(!l&&!m&&(m=a("ASTERISK")),l||m){let v=p??"";e.prefixes.indexOf(v)===-1&&(O(v),v=""),D();let y=f();J(v,l,m,"",y);continue}let P=p??a("ESCAPED_CHAR");if(P){O(P);continue}if(a("OPEN")){let v=k(),y=a("NAME"),g=a("REGEX");!y&&!g&&(g=a("ASTERISK"));let A=k();b("CLOSE");let x=f();J(v,y,g,A,x);continue}D(),b("END")}return c}n(M,"parse");function d(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}n(d,"escapeString");function j(t){return t&&t.ignoreCase?"ui":"u"}n(j,"flags");function Y(t,e,r){return z(M(t,r),e,r)}n(Y,"stringToRegexp");function R(t){switch(t){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}n(R,"modifierToString");function z(t,e,r={}){r.delimiter??="/#?",r.prefixes??="./",r.sensitive??=!1,r.strict??=!1,r.end??=!0,r.start??=!0,r.endsWith="";let i=r.start?"^":"";for(let s of t){if(s.type===3){s.modifier===3?i+=d(s.value):i+=`(?:${d(s.value)})${R(s.modifier)}`;continue}e&&e.push(s.name);let h=`[^${d(r.delimiter)}]+?`,a=s.value;if(s.type===1?a=h:s.type===0&&(a=N),!s.prefix.length&&!s.suffix.length){s.modifier===3||s.modifier===1?i+=`(${a})${R(s.modifier)}`:i+=`((?:${a})${R(s.modifier)})`;continue}if(s.modifier===3||s.modifier===1){i+=`(?:${d(s.prefix)}(${a})${d(s.suffix)})`,i+=R(s.modifier);continue}i+=`(?:${d(s.prefix)}`,i+=`((?:${a})(?:`,i+=d(s.suffix),i+=d(s.prefix),i+=`(?:${a}))*)${d(s.suffix)})`,s.modifier===0&&(i+="?")}let c=`[${d(r.endsWith)}]|$`,u=`[${d(r.delimiter)}]`;if(r.end)return r.strict||(i+=`${u}?`),r.endsWith.length?i+=`(?=${c})`:i+="$",new RegExp(i,j(r));r.strict||(i+=`(?:${u}(?=${c}))?`);let o=!1;if(t.length){let s=t[t.length-1];s.type===3&&s.modifier===3&&(o=r.delimiter.indexOf(s)>-1)}return o||(i+=`(?=${u}|${c})`),new RegExp(i,j(r))}n(z,"partsToRegexp");var $={delimiter:"",prefixes:"",sensitive:!0,strict:!0},$t={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Rt={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Z(t,e){return t.length?t[0]==="/"?!0:!e||t.length<2?!1:(t[0]=="\\"||t[0]=="{")&&t[1]=="/":!1}n(Z,"isAbsolutePathname");function W(t,e){return t.startsWith(e)?t.substring(e.length,t.length):t}n(W,"maybeStripPrefix");function tt(t,e){return t.endsWith(e)?t.substr(0,t.length-e.length):t}n(tt,"maybeStripSuffix");function G(t){return!t||t.length<2?!1:t[0]==="["||(t[0]==="\\"||t[0]==="{")&&t[1]==="["}n(G,"treatAsIPv6Hostname");var et=["ftp","file","http","https","ws","wss"];function K(t){if(!t)return!0;for(let e of et)if(t.test(e))return!0;return!1}n(K,"isSpecialScheme");function rt(t,e){if(t=W(t,"#"),e||t==="")return t;let r=new URL("https://example.com");return r.hash=t,r.hash?r.hash.substring(1,r.hash.length):""}n(rt,"canonicalizeHash");function st(t,e){if(t=W(t,"?"),e||t==="")return t;let r=new URL("https://example.com");return r.search=t,r.search?r.search.substring(1,r.search.length):""}n(st,"canonicalizeSearch");function it(t,e){return e||t===""?t:G(t)?B(t):X(t)}n(it,"canonicalizeHostname");function nt(t,e){if(e||t==="")return t;let r=new URL("https://example.com");return r.password=t,r.password}n(nt,"canonicalizePassword");function at(t,e){if(e||t==="")return t;let r=new URL("https://example.com");return r.username=t,r.username}n(at,"canonicalizeUsername");function ot(t,e,r){if(r||t==="")return t;if(e&&!et.includes(e))return new URL(`${e}:${t}`).pathname;let i=t[0]=="/";return t=new URL(i?t:"/-"+t,"https://example.com").pathname,i||(t=t.substring(2,t.length)),t}n(ot,"canonicalizePathname");function ht(t,e,r){return V(e)===t&&(t=""),r||t===""?t:q(t)}n(ht,"canonicalizePort");function ct(t,e){return t=tt(t,":"),e||t===""?t:I(t)}n(ct,"canonicalizeProtocol");function V(t){switch(t){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}n(V,"defaultPortForProtocol");function I(t){if(t==="")return t;if(/^[-+.A-Za-z0-9]*$/.test(t))return t.toLowerCase();throw TypeError(`Invalid protocol '${t}'.`)}n(I,"protocolEncodeCallback");function ut(t){if(t==="")return t;let e=new URL("https://example.com");return e.username=t,e.username}n(ut,"usernameEncodeCallback");function pt(t){if(t==="")return t;let e=new URL("https://example.com");return e.password=t,e.password}n(pt,"passwordEncodeCallback");function X(t){if(t==="")return t;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(t))throw TypeError(`Invalid hostname '${t}'`);let e=new URL("https://example.com");return e.hostname=t,e.hostname}n(X,"hostnameEncodeCallback");function B(t){if(t==="")return t;if(/[^0-9a-fA-F[\]:]/g.test(t))throw TypeError(`Invalid IPv6 hostname '${t}'`);return t.toLowerCase()}n(B,"ipv6HostnameEncodeCallback");function q(t){if(t===""||/^[0-9]*$/.test(t)&&parseInt(t)<=65535)return t;throw TypeError(`Invalid port '${t}'.`)}n(q,"portEncodeCallback");function lt(t){if(t==="")return t;let e=new URL("https://example.com");return e.pathname=t[0]!=="/"?"/-"+t:t,t[0]!=="/"?e.pathname.substring(2,e.pathname.length):e.pathname}n(lt,"standardURLPathnameEncodeCallback");function ft(t){return t===""?t:new URL(`data:${t}`).pathname}n(ft,"pathURLPathnameEncodeCallback");function mt(t){if(t==="")return t;let e=new URL("https://example.com");return e.search=t,e.search.substring(1,e.search.length)}n(mt,"searchEncodeCallback");function dt(t){if(t==="")return t;let e=new URL("https://example.com");return e.hash=t,e.hash.substring(1,e.hash.length)}n(dt,"hashEncodeCallback");var gt=class{#n;#s=[];#e={};#t=0;#i=1;#c=0;#o=0;#f=0;#m=0;#d=!1;constructor(t){this.#n=t}get result(){return this.#e}parse(){for(this.#s=F(this.#n,!0);this.#t<this.#s.length;this.#t+=this.#i){if(this.#i=1,this.#s[this.#t].type==="END"){if(this.#o===0){this.#w(),this.#u()?this.#r(9,1):this.#p()?this.#r(8,1):this.#r(7,0);continue}else if(this.#o===2){this.#l(5);continue}this.#r(10,0);break}if(this.#f>0)if(this.#P())this.#f-=1;else continue;if(this.#k()){this.#f+=1;continue}switch(this.#o){case 0:this.#v()&&this.#l(1);break;case 1:if(this.#v()){this.#L();let t=7,e=1;this.#E()?(t=2,e=3):this.#d&&(t=2),this.#r(t,e)}break;case 2:this.#y()?this.#l(3):(this.#b()||this.#p()||this.#u())&&this.#l(5);break;case 3:this.#$()?this.#r(4,1):this.#y()&&this.#r(5,1);break;case 4:this.#y()&&this.#r(5,1);break;case 5:this.#C()?this.#m+=1:this.#S()&&(this.#m-=1),this.#R()&&!this.#m?this.#r(6,1):this.#b()?this.#r(7,0):this.#p()?this.#r(8,1):this.#u()&&this.#r(9,1);break;case 6:this.#b()?this.#r(7,0):this.#p()?this.#r(8,1):this.#u()&&this.#r(9,1);break;case 7:this.#p()?this.#r(8,1):this.#u()&&this.#r(9,1);break;case 8:this.#u()&&this.#r(9,1);break;case 9:break;case 10:break}}this.#e.hostname!==void 0&&this.#e.port===void 0&&(this.#e.port="")}#r(t,e){switch(this.#o){case 0:break;case 1:this.#e.protocol=this.#h();break;case 2:break;case 3:this.#e.username=this.#h();break;case 4:this.#e.password=this.#h();break;case 5:this.#e.hostname=this.#h();break;case 6:this.#e.port=this.#h();break;case 7:this.#e.pathname=this.#h();break;case 8:this.#e.search=this.#h();break;case 9:this.#e.hash=this.#h();break;case 10:break}this.#o!==0&&t!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(t)&&(this.#e.hostname??=""),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(t)&&(this.#e.pathname??=this.#d?"/":""),[1,2,3,4,5,6,7].includes(this.#o)&&t===9&&(this.#e.search??="")),this.#x(t,e)}#x(t,e){this.#o=t,this.#c=this.#t+e,this.#t+=e,this.#i=0}#w(){this.#t=this.#c,this.#i=0}#l(t){this.#w(),this.#o=t}#g(t){return t<0&&(t=this.#s.length-t),t<this.#s.length?this.#s[t]:this.#s[this.#s.length-1]}#a(t,e){let r=this.#g(t);return r.value===e&&(r.type==="CHAR"||r.type==="ESCAPED_CHAR"||r.type==="INVALID_CHAR")}#v(){return this.#a(this.#t,":")}#E(){return this.#a(this.#t+1,"/")&&this.#a(this.#t+2,"/")}#y(){return this.#a(this.#t,"@")}#$(){return this.#a(this.#t,":")}#R(){return this.#a(this.#t,":")}#b(){return this.#a(this.#t,"/")}#p(){if(this.#a(this.#t,"?"))return!0;if(this.#s[this.#t].value!=="?")return!1;let t=this.#g(this.#t-1);return t.type!=="NAME"&&t.type!=="REGEX"&&t.type!=="CLOSE"&&t.type!=="ASTERISK"}#u(){return this.#a(this.#t,"#")}#k(){return this.#s[this.#t].type=="OPEN"}#P(){return this.#s[this.#t].type=="CLOSE"}#C(){return this.#a(this.#t,"[")}#S(){return this.#a(this.#t,"]")}#h(){let t=this.#s[this.#t],e=this.#g(this.#c).index;return this.#n.substring(e,t.index)}#L(){let t={};Object.assign(t,$),t.encodePart=I;let e=Y(this.#h(),void 0,t);this.#d=K(e)}};n(gt,"Parser");var H=["protocol","username","password","hostname","port","pathname","search","hash"],E="*";function _(t,e){if(typeof t!="string")throw TypeError("parameter 1 is not of type 'string'.");let r=new URL(t,e);return{protocol:r.protocol.substring(0,r.protocol.length-1),username:r.username,password:r.password,hostname:r.hostname,port:r.port,pathname:r.pathname,search:r.search!==""?r.search.substring(1,r.search.length):void 0,hash:r.hash!==""?r.hash.substring(1,r.hash.length):void 0}}n(_,"extractValues");function w(t,e){return e?S(t):t}n(w,"processBaseURLString");function C(t,e,r){let i;if(typeof e.baseURL=="string")try{i=new URL(e.baseURL),e.protocol===void 0&&(t.protocol=w(i.protocol.substring(0,i.protocol.length-1),r)),!r&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&(t.username=w(i.username,r)),!r&&e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.username===void 0&&e.password===void 0&&(t.password=w(i.password,r)),e.protocol===void 0&&e.hostname===void 0&&(t.hostname=w(i.hostname,r)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&(t.port=w(i.port,r)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&(t.pathname=w(i.pathname,r)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&(t.search=w(i.search.substring(1,i.search.length),r)),e.protocol===void 0&&e.hostname===void 0&&e.port===void 0&&e.pathname===void 0&&e.search===void 0&&e.hash===void 0&&(t.hash=w(i.hash.substring(1,i.hash.length),r))}catch{throw TypeError(`invalid baseURL '${e.baseURL}'.`)}if(typeof e.protocol=="string"&&(t.protocol=ct(e.protocol,r)),typeof e.username=="string"&&(t.username=at(e.username,r)),typeof e.password=="string"&&(t.password=nt(e.password,r)),typeof e.hostname=="string"&&(t.hostname=it(e.hostname,r)),typeof e.port=="string"&&(t.port=ht(e.port,t.protocol,r)),typeof e.pathname=="string"){if(t.pathname=e.pathname,i&&!Z(t.pathname,r)){let c=i.pathname.lastIndexOf("/");c>=0&&(t.pathname=w(i.pathname.substring(0,c+1),r)+t.pathname)}t.pathname=ot(t.pathname,t.protocol,r)}return typeof e.search=="string"&&(t.search=st(e.search,r)),typeof e.hash=="string"&&(t.hash=rt(e.hash,r)),t}n(C,"applyInit");function S(t){return t.replace(/([+*?:{}()\\])/g,"\\$1")}n(S,"escapePatternString");function yt(t){return t.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}n(yt,"escapeRegexpString");function bt(t,e){e.delimiter??="/#?",e.prefixes??="./",e.sensitive??=!1,e.strict??=!1,e.end??=!0,e.start??=!0,e.endsWith="";let r=".*",i=`[^${yt(e.delimiter)}]+?`,c=/[$_\u200C\u200D\p{ID_Continue}]/u,u="";for(let o=0;o<t.length;++o){let s=t[o];if(s.type===3){if(s.modifier===3){u+=S(s.value);continue}u+=`{${S(s.value)}}${R(s.modifier)}`;continue}let h=s.hasCustomName(),a=!!s.suffix.length||!!s.prefix.length&&(s.prefix.length!==1||!e.prefixes.includes(s.prefix)),f=o>0?t[o-1]:null,b=o<t.length-1?t[o+1]:null;if(!a&&h&&s.type===1&&s.modifier===3&&b&&!b.prefix.length&&!b.suffix.length)if(b.type===3){let k=b.value.length>0?b.value[0]:"";a=c.test(k)}else a=!b.hasCustomName();if(!a&&!s.prefix.length&&f&&f.type===3){let k=f.value[f.value.length-1];a=e.prefixes.includes(k)}a&&(u+="{"),u+=S(s.prefix),h&&(u+=`:${s.name}`),s.type===2?u+=`(${s.value})`:s.type===1?h||(u+=`(${i})`):s.type===0&&(!h&&(!f||f.type===3||f.modifier!==3||a||s.prefix!=="")?u+="*":u+=`(${r})`),s.type===1&&h&&s.suffix.length&&c.test(s.suffix[0])&&(u+="\\"),u+=S(s.suffix),a&&(u+="}"),s.modifier!==3&&(u+=R(s.modifier))}return u}n(bt,"partsToPattern");var kt=class{#n;#s={};#e={};#t={};#i={};#c=!1;constructor(t={},e,r){try{let i;if(typeof e=="string"?i=e:r=e,typeof t=="string"){let s=new gt(t);if(s.parse(),t=s.result,i===void 0&&typeof t.protocol!="string")throw TypeError("A base URL must be provided for a relative constructor string.");t.baseURL=i}else{if(!t||typeof t!="object")throw TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(i)throw TypeError("parameter 1 is not of type 'string'.")}typeof r>"u"&&(r={ignoreCase:!1});let c={ignoreCase:r.ignoreCase===!0},u={pathname:E,protocol:E,username:E,password:E,hostname:E,port:E,search:E,hash:E};this.#n=C(u,t,!0),V(this.#n.protocol)===this.#n.port&&(this.#n.port="");let o;for(o of H){if(!(o in this.#n))continue;let s={},h=this.#n[o];switch(this.#e[o]=[],o){case"protocol":Object.assign(s,$),s.encodePart=I;break;case"username":Object.assign(s,$),s.encodePart=ut;break;case"password":Object.assign(s,$),s.encodePart=pt;break;case"hostname":Object.assign(s,$t),G(h)?s.encodePart=B:s.encodePart=X;break;case"port":Object.assign(s,$),s.encodePart=q;break;case"pathname":K(this.#s.protocol)?(Object.assign(s,Rt,c),s.encodePart=lt):(Object.assign(s,$,c),s.encodePart=ft);break;case"search":Object.assign(s,$,c),s.encodePart=mt;break;case"hash":Object.assign(s,$,c),s.encodePart=dt;break}try{this.#i[o]=M(h,s),this.#s[o]=z(this.#i[o],this.#e[o],s),this.#t[o]=bt(this.#i[o],s),this.#c=this.#c||this.#i[o].some((a)=>a.type===2)}catch{throw TypeError(`invalid ${o} pattern '${this.#n[o]}'.`)}}}catch(i){throw TypeError(`Failed to construct 'URLPattern': ${i.message}`)}}get[Symbol.toStringTag](){return"URLPattern"}test(t={},e){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return!1;try{typeof t=="object"?r=C(r,t,!1):r=C(r,_(t,e),!1)}catch{return!1}let i;for(i of H)if(!this.#s[i].exec(r[i]))return!1;return!0}exec(t={},e){let r={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof t!="string"&&e)throw TypeError("parameter 1 is not of type 'string'.");if(typeof t>"u")return;try{typeof t=="object"?r=C(r,t,!1):r=C(r,_(t,e),!1)}catch{return null}let i={};e?i.inputs=[t,e]:i.inputs=[t];let c;for(c of H){let u=this.#s[c].exec(r[c]);if(!u)return null;let o={};for(let[s,h]of this.#e[c].entries())if(typeof h=="string"||typeof h=="number"){let a=u[s+1];o[h]=a}i[c]={input:r[c]??"",groups:o}}return i}static compareComponent(t,e,r){let i=n((s,h)=>{for(let a of["type","modifier","prefix","value","suffix"]){if(s[a]<h[a])return-1;if(s[a]===h[a])continue;return 1}return 0},"comparePart"),c=new L(3,"","","","",3),u=new L(0,"","","","",3),o=n((s,h)=>{let a=0;for(;a<Math.min(s.length,h.length);++a){let f=i(s[a],h[a]);if(f)return f}return s.length===h.length?0:i(s[a]??c,h[a]??c)},"comparePartList");return!e.#t[t]&&!r.#t[t]?0:e.#t[t]&&!r.#t[t]?o(e.#i[t],[u]):!e.#t[t]&&r.#t[t]?o([u],r.#i[t]):o(e.#i[t],r.#i[t])}get protocol(){return this.#t.protocol}get username(){return this.#t.username}get password(){return this.#t.password}get hostname(){return this.#t.hostname}get port(){return this.#t.port}get pathname(){return this.#t.pathname}get search(){return this.#t.search}get hash(){return this.#t.hash}get hasRegExpGroups(){return this.#c}};n(kt,"URLPattern");
3
- export{kt as M};
4
-
5
- //# debugId=616DC5D66F4859E364756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../node_modules/.bun/urlpattern-polyfill@10.1.0/node_modules/urlpattern-polyfill/dist/urlpattern.js"],
4
- "sourcesContent": [
5
- "var Pe=Object.defineProperty;var a=(e,t)=>Pe(e,\"name\",{value:t,configurable:!0});var P=class{type=3;name=\"\";prefix=\"\";value=\"\";suffix=\"\";modifier=3;constructor(t,r,n,c,l,f){this.type=t,this.name=r,this.prefix=n,this.value=c,this.suffix=l,this.modifier=f}hasCustomName(){return this.name!==\"\"&&typeof this.name!=\"number\"}};a(P,\"Part\");var Re=/[$_\\p{ID_Start}]/u,Ee=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,v=\".*\";function Oe(e,t){return(t?/^[\\x00-\\xFF]*$/:/^[\\x00-\\x7F]*$/).test(e)}a(Oe,\"isASCII\");function D(e,t=!1){let r=[],n=0;for(;n<e.length;){let c=e[n],l=a(function(f){if(!t)throw new TypeError(f);r.push({type:\"INVALID_CHAR\",index:n,value:e[n++]})},\"ErrorOrInvalid\");if(c===\"*\"){r.push({type:\"ASTERISK\",index:n,value:e[n++]});continue}if(c===\"+\"||c===\"?\"){r.push({type:\"OTHER_MODIFIER\",index:n,value:e[n++]});continue}if(c===\"\\\\\"){r.push({type:\"ESCAPED_CHAR\",index:n++,value:e[n++]});continue}if(c===\"{\"){r.push({type:\"OPEN\",index:n,value:e[n++]});continue}if(c===\"}\"){r.push({type:\"CLOSE\",index:n,value:e[n++]});continue}if(c===\":\"){let f=\"\",s=n+1;for(;s<e.length;){let i=e.substr(s,1);if(s===n+1&&Re.test(i)||s!==n+1&&Ee.test(i)){f+=e[s++];continue}break}if(!f){l(`Missing parameter name at ${n}`);continue}r.push({type:\"NAME\",index:n,value:f}),n=s;continue}if(c===\"(\"){let f=1,s=\"\",i=n+1,o=!1;if(e[i]===\"?\"){l(`Pattern cannot start with \"?\" at ${i}`);continue}for(;i<e.length;){if(!Oe(e[i],!1)){l(`Invalid character '${e[i]}' at ${i}.`),o=!0;break}if(e[i]===\"\\\\\"){s+=e[i++]+e[i++];continue}if(e[i]===\")\"){if(f--,f===0){i++;break}}else if(e[i]===\"(\"&&(f++,e[i+1]!==\"?\")){l(`Capturing groups are not allowed at ${i}`),o=!0;break}s+=e[i++]}if(o)continue;if(f){l(`Unbalanced pattern at ${n}`);continue}if(!s){l(`Missing pattern at ${n}`);continue}r.push({type:\"REGEX\",index:n,value:s}),n=i;continue}r.push({type:\"CHAR\",index:n,value:e[n++]})}return r.push({type:\"END\",index:n,value:\"\"}),r}a(D,\"lexer\");function F(e,t={}){let r=D(e);t.delimiter??=\"/#?\",t.prefixes??=\"./\";let n=`[^${x(t.delimiter)}]+?`,c=[],l=0,f=0,s=\"\",i=new Set,o=a(u=>{if(f<r.length&&r[f].type===u)return r[f++].value},\"tryConsume\"),h=a(()=>o(\"OTHER_MODIFIER\")??o(\"ASTERISK\"),\"tryConsumeModifier\"),p=a(u=>{let d=o(u);if(d!==void 0)return d;let{type:g,index:y}=r[f];throw new TypeError(`Unexpected ${g} at ${y}, expected ${u}`)},\"mustConsume\"),A=a(()=>{let u=\"\",d;for(;d=o(\"CHAR\")??o(\"ESCAPED_CHAR\");)u+=d;return u},\"consumeText\"),xe=a(u=>u,\"DefaultEncodePart\"),N=t.encodePart||xe,H=\"\",$=a(u=>{H+=u},\"appendToPendingFixedValue\"),M=a(()=>{H.length&&(c.push(new P(3,\"\",\"\",N(H),\"\",3)),H=\"\")},\"maybeAddPartFromPendingFixedValue\"),X=a((u,d,g,y,Z)=>{let m=3;switch(Z){case\"?\":m=1;break;case\"*\":m=0;break;case\"+\":m=2;break}if(!d&&!g&&m===3){$(u);return}if(M(),!d&&!g){if(!u)return;c.push(new P(3,\"\",\"\",N(u),\"\",m));return}let S;g?g===\"*\"?S=v:S=g:S=n;let k=2;S===n?(k=1,S=\"\"):S===v&&(k=0,S=\"\");let E;if(d?E=d:g&&(E=l++),i.has(E))throw new TypeError(`Duplicate name '${E}'.`);i.add(E),c.push(new P(k,E,N(u),S,N(y),m))},\"addPart\");for(;f<r.length;){let u=o(\"CHAR\"),d=o(\"NAME\"),g=o(\"REGEX\");if(!d&&!g&&(g=o(\"ASTERISK\")),d||g){let m=u??\"\";t.prefixes.indexOf(m)===-1&&($(m),m=\"\"),M();let S=h();X(m,d,g,\"\",S);continue}let y=u??o(\"ESCAPED_CHAR\");if(y){$(y);continue}if(o(\"OPEN\")){let m=A(),S=o(\"NAME\"),k=o(\"REGEX\");!S&&!k&&(k=o(\"ASTERISK\"));let E=A();p(\"CLOSE\");let be=h();X(m,S,k,E,be);continue}M(),p(\"END\")}return c}a(F,\"parse\");function x(e){return e.replace(/([.+*?^${}()[\\]|/\\\\])/g,\"\\\\$1\")}a(x,\"escapeString\");function B(e){return e&&e.ignoreCase?\"ui\":\"u\"}a(B,\"flags\");function q(e,t,r){return W(F(e,r),t,r)}a(q,\"stringToRegexp\");function T(e){switch(e){case 0:return\"*\";case 1:return\"?\";case 2:return\"+\";case 3:return\"\"}}a(T,\"modifierToString\");function W(e,t,r={}){r.delimiter??=\"/#?\",r.prefixes??=\"./\",r.sensitive??=!1,r.strict??=!1,r.end??=!0,r.start??=!0,r.endsWith=\"\";let n=r.start?\"^\":\"\";for(let s of e){if(s.type===3){s.modifier===3?n+=x(s.value):n+=`(?:${x(s.value)})${T(s.modifier)}`;continue}t&&t.push(s.name);let i=`[^${x(r.delimiter)}]+?`,o=s.value;if(s.type===1?o=i:s.type===0&&(o=v),!s.prefix.length&&!s.suffix.length){s.modifier===3||s.modifier===1?n+=`(${o})${T(s.modifier)}`:n+=`((?:${o})${T(s.modifier)})`;continue}if(s.modifier===3||s.modifier===1){n+=`(?:${x(s.prefix)}(${o})${x(s.suffix)})`,n+=T(s.modifier);continue}n+=`(?:${x(s.prefix)}`,n+=`((?:${o})(?:`,n+=x(s.suffix),n+=x(s.prefix),n+=`(?:${o}))*)${x(s.suffix)})`,s.modifier===0&&(n+=\"?\")}let c=`[${x(r.endsWith)}]|$`,l=`[${x(r.delimiter)}]`;if(r.end)return r.strict||(n+=`${l}?`),r.endsWith.length?n+=`(?=${c})`:n+=\"$\",new RegExp(n,B(r));r.strict||(n+=`(?:${l}(?=${c}))?`);let f=!1;if(e.length){let s=e[e.length-1];s.type===3&&s.modifier===3&&(f=r.delimiter.indexOf(s)>-1)}return f||(n+=`(?=${l}|${c})`),new RegExp(n,B(r))}a(W,\"partsToRegexp\");var b={delimiter:\"\",prefixes:\"\",sensitive:!0,strict:!0},J={delimiter:\".\",prefixes:\"\",sensitive:!0,strict:!0},Q={delimiter:\"/\",prefixes:\"/\",sensitive:!0,strict:!0};function ee(e,t){return e.length?e[0]===\"/\"?!0:!t||e.length<2?!1:(e[0]==\"\\\\\"||e[0]==\"{\")&&e[1]==\"/\":!1}a(ee,\"isAbsolutePathname\");function te(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}a(te,\"maybeStripPrefix\");function ke(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}a(ke,\"maybeStripSuffix\");function _(e){return!e||e.length<2?!1:e[0]===\"[\"||(e[0]===\"\\\\\"||e[0]===\"{\")&&e[1]===\"[\"}a(_,\"treatAsIPv6Hostname\");var re=[\"ftp\",\"file\",\"http\",\"https\",\"ws\",\"wss\"];function U(e){if(!e)return!0;for(let t of re)if(e.test(t))return!0;return!1}a(U,\"isSpecialScheme\");function ne(e,t){if(e=te(e,\"#\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.hash=e,r.hash?r.hash.substring(1,r.hash.length):\"\"}a(ne,\"canonicalizeHash\");function se(e,t){if(e=te(e,\"?\"),t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.search=e,r.search?r.search.substring(1,r.search.length):\"\"}a(se,\"canonicalizeSearch\");function ie(e,t){return t||e===\"\"?e:_(e)?K(e):j(e)}a(ie,\"canonicalizeHostname\");function ae(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.password=e,r.password}a(ae,\"canonicalizePassword\");function oe(e,t){if(t||e===\"\")return e;let r=new URL(\"https://example.com\");return r.username=e,r.username}a(oe,\"canonicalizeUsername\");function ce(e,t,r){if(r||e===\"\")return e;if(t&&!re.includes(t))return new URL(`${t}:${e}`).pathname;let n=e[0]==\"/\";return e=new URL(n?e:\"/-\"+e,\"https://example.com\").pathname,n||(e=e.substring(2,e.length)),e}a(ce,\"canonicalizePathname\");function le(e,t,r){return z(t)===e&&(e=\"\"),r||e===\"\"?e:G(e)}a(le,\"canonicalizePort\");function fe(e,t){return e=ke(e,\":\"),t||e===\"\"?e:w(e)}a(fe,\"canonicalizeProtocol\");function z(e){switch(e){case\"ws\":case\"http\":return\"80\";case\"wws\":case\"https\":return\"443\";case\"ftp\":return\"21\";default:return\"\"}}a(z,\"defaultPortForProtocol\");function w(e){if(e===\"\")return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}a(w,\"protocolEncodeCallback\");function he(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.username=e,t.username}a(he,\"usernameEncodeCallback\");function ue(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.password=e,t.password}a(ue,\"passwordEncodeCallback\");function j(e){if(e===\"\")return e;if(/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))throw new TypeError(`Invalid hostname '${e}'`);let t=new URL(\"https://example.com\");return t.hostname=e,t.hostname}a(j,\"hostnameEncodeCallback\");function K(e){if(e===\"\")return e;if(/[^0-9a-fA-F[\\]:]/g.test(e))throw new TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}a(K,\"ipv6HostnameEncodeCallback\");function G(e){if(e===\"\"||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw new TypeError(`Invalid port '${e}'.`)}a(G,\"portEncodeCallback\");function de(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.pathname=e[0]!==\"/\"?\"/-\"+e:e,e[0]!==\"/\"?t.pathname.substring(2,t.pathname.length):t.pathname}a(de,\"standardURLPathnameEncodeCallback\");function pe(e){return e===\"\"?e:new URL(`data:${e}`).pathname}a(pe,\"pathURLPathnameEncodeCallback\");function ge(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.search=e,t.search.substring(1,t.search.length)}a(ge,\"searchEncodeCallback\");function me(e){if(e===\"\")return e;let t=new URL(\"https://example.com\");return t.hash=e,t.hash.substring(1,t.hash.length)}a(me,\"hashEncodeCallback\");var C=class{#i;#n=[];#t={};#e=0;#s=1;#l=0;#o=0;#d=0;#p=0;#g=!1;constructor(t){this.#i=t}get result(){return this.#t}parse(){for(this.#n=D(this.#i,!0);this.#e<this.#n.length;this.#e+=this.#s){if(this.#s=1,this.#n[this.#e].type===\"END\"){if(this.#o===0){this.#b(),this.#f()?this.#r(9,1):this.#h()?this.#r(8,1):this.#r(7,0);continue}else if(this.#o===2){this.#u(5);continue}this.#r(10,0);break}if(this.#d>0)if(this.#A())this.#d-=1;else continue;if(this.#T()){this.#d+=1;continue}switch(this.#o){case 0:this.#P()&&this.#u(1);break;case 1:if(this.#P()){this.#C();let t=7,r=1;this.#E()?(t=2,r=3):this.#g&&(t=2),this.#r(t,r)}break;case 2:this.#S()?this.#u(3):(this.#x()||this.#h()||this.#f())&&this.#u(5);break;case 3:this.#O()?this.#r(4,1):this.#S()&&this.#r(5,1);break;case 4:this.#S()&&this.#r(5,1);break;case 5:this.#y()?this.#p+=1:this.#w()&&(this.#p-=1),this.#k()&&!this.#p?this.#r(6,1):this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 6:this.#x()?this.#r(7,0):this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 7:this.#h()?this.#r(8,1):this.#f()&&this.#r(9,1);break;case 8:this.#f()&&this.#r(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port=\"\")}#r(t,r){switch(this.#o){case 0:break;case 1:this.#t.protocol=this.#c();break;case 2:break;case 3:this.#t.username=this.#c();break;case 4:this.#t.password=this.#c();break;case 5:this.#t.hostname=this.#c();break;case 6:this.#t.port=this.#c();break;case 7:this.#t.pathname=this.#c();break;case 8:this.#t.search=this.#c();break;case 9:this.#t.hash=this.#c();break;case 10:break}this.#o!==0&&t!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(t)&&(this.#t.hostname??=\"\"),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(t)&&(this.#t.pathname??=this.#g?\"/\":\"\"),[1,2,3,4,5,6,7].includes(this.#o)&&t===9&&(this.#t.search??=\"\")),this.#R(t,r)}#R(t,r){this.#o=t,this.#l=this.#e+r,this.#e+=r,this.#s=0}#b(){this.#e=this.#l,this.#s=0}#u(t){this.#b(),this.#o=t}#m(t){return t<0&&(t=this.#n.length-t),t<this.#n.length?this.#n[t]:this.#n[this.#n.length-1]}#a(t,r){let n=this.#m(t);return n.value===r&&(n.type===\"CHAR\"||n.type===\"ESCAPED_CHAR\"||n.type===\"INVALID_CHAR\")}#P(){return this.#a(this.#e,\":\")}#E(){return this.#a(this.#e+1,\"/\")&&this.#a(this.#e+2,\"/\")}#S(){return this.#a(this.#e,\"@\")}#O(){return this.#a(this.#e,\":\")}#k(){return this.#a(this.#e,\":\")}#x(){return this.#a(this.#e,\"/\")}#h(){if(this.#a(this.#e,\"?\"))return!0;if(this.#n[this.#e].value!==\"?\")return!1;let t=this.#m(this.#e-1);return t.type!==\"NAME\"&&t.type!==\"REGEX\"&&t.type!==\"CLOSE\"&&t.type!==\"ASTERISK\"}#f(){return this.#a(this.#e,\"#\")}#T(){return this.#n[this.#e].type==\"OPEN\"}#A(){return this.#n[this.#e].type==\"CLOSE\"}#y(){return this.#a(this.#e,\"[\")}#w(){return this.#a(this.#e,\"]\")}#c(){let t=this.#n[this.#e],r=this.#m(this.#l).index;return this.#i.substring(r,t.index)}#C(){let t={};Object.assign(t,b),t.encodePart=w;let r=q(this.#c(),void 0,t);this.#g=U(r)}};a(C,\"Parser\");var V=[\"protocol\",\"username\",\"password\",\"hostname\",\"port\",\"pathname\",\"search\",\"hash\"],O=\"*\";function Se(e,t){if(typeof e!=\"string\")throw new TypeError(\"parameter 1 is not of type 'string'.\");let r=new URL(e,t);return{protocol:r.protocol.substring(0,r.protocol.length-1),username:r.username,password:r.password,hostname:r.hostname,port:r.port,pathname:r.pathname,search:r.search!==\"\"?r.search.substring(1,r.search.length):void 0,hash:r.hash!==\"\"?r.hash.substring(1,r.hash.length):void 0}}a(Se,\"extractValues\");function R(e,t){return t?I(e):e}a(R,\"processBaseURLString\");function L(e,t,r){let n;if(typeof t.baseURL==\"string\")try{n=new URL(t.baseURL),t.protocol===void 0&&(e.protocol=R(n.protocol.substring(0,n.protocol.length-1),r)),!r&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&(e.username=R(n.username,r)),!r&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&t.password===void 0&&(e.password=R(n.password,r)),t.protocol===void 0&&t.hostname===void 0&&(e.hostname=R(n.hostname,r)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&(e.port=R(n.port,r)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&(e.pathname=R(n.pathname,r)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&(e.search=R(n.search.substring(1,n.search.length),r)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&t.hash===void 0&&(e.hash=R(n.hash.substring(1,n.hash.length),r))}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}if(typeof t.protocol==\"string\"&&(e.protocol=fe(t.protocol,r)),typeof t.username==\"string\"&&(e.username=oe(t.username,r)),typeof t.password==\"string\"&&(e.password=ae(t.password,r)),typeof t.hostname==\"string\"&&(e.hostname=ie(t.hostname,r)),typeof t.port==\"string\"&&(e.port=le(t.port,e.protocol,r)),typeof t.pathname==\"string\"){if(e.pathname=t.pathname,n&&!ee(e.pathname,r)){let c=n.pathname.lastIndexOf(\"/\");c>=0&&(e.pathname=R(n.pathname.substring(0,c+1),r)+e.pathname)}e.pathname=ce(e.pathname,e.protocol,r)}return typeof t.search==\"string\"&&(e.search=se(t.search,r)),typeof t.hash==\"string\"&&(e.hash=ne(t.hash,r)),e}a(L,\"applyInit\");function I(e){return e.replace(/([+*?:{}()\\\\])/g,\"\\\\$1\")}a(I,\"escapePatternString\");function Te(e){return e.replace(/([.+*?^${}()[\\]|/\\\\])/g,\"\\\\$1\")}a(Te,\"escapeRegexpString\");function Ae(e,t){t.delimiter??=\"/#?\",t.prefixes??=\"./\",t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=\"\";let r=\".*\",n=`[^${Te(t.delimiter)}]+?`,c=/[$_\\u200C\\u200D\\p{ID_Continue}]/u,l=\"\";for(let f=0;f<e.length;++f){let s=e[f];if(s.type===3){if(s.modifier===3){l+=I(s.value);continue}l+=`{${I(s.value)}}${T(s.modifier)}`;continue}let i=s.hasCustomName(),o=!!s.suffix.length||!!s.prefix.length&&(s.prefix.length!==1||!t.prefixes.includes(s.prefix)),h=f>0?e[f-1]:null,p=f<e.length-1?e[f+1]:null;if(!o&&i&&s.type===1&&s.modifier===3&&p&&!p.prefix.length&&!p.suffix.length)if(p.type===3){let A=p.value.length>0?p.value[0]:\"\";o=c.test(A)}else o=!p.hasCustomName();if(!o&&!s.prefix.length&&h&&h.type===3){let A=h.value[h.value.length-1];o=t.prefixes.includes(A)}o&&(l+=\"{\"),l+=I(s.prefix),i&&(l+=`:${s.name}`),s.type===2?l+=`(${s.value})`:s.type===1?i||(l+=`(${n})`):s.type===0&&(!i&&(!h||h.type===3||h.modifier!==3||o||s.prefix!==\"\")?l+=\"*\":l+=`(${r})`),s.type===1&&i&&s.suffix.length&&c.test(s.suffix[0])&&(l+=\"\\\\\"),l+=I(s.suffix),o&&(l+=\"}\"),s.modifier!==3&&(l+=T(s.modifier))}return l}a(Ae,\"partsToPattern\");var Y=class{#i;#n={};#t={};#e={};#s={};#l=!1;constructor(t={},r,n){try{let c;if(typeof r==\"string\"?c=r:n=r,typeof t==\"string\"){let i=new C(t);if(i.parse(),t=i.result,c===void 0&&typeof t.protocol!=\"string\")throw new TypeError(\"A base URL must be provided for a relative constructor string.\");t.baseURL=c}else{if(!t||typeof t!=\"object\")throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");if(c)throw new TypeError(\"parameter 1 is not of type 'string'.\")}typeof n>\"u\"&&(n={ignoreCase:!1});let l={ignoreCase:n.ignoreCase===!0},f={pathname:O,protocol:O,username:O,password:O,hostname:O,port:O,search:O,hash:O};this.#i=L(f,t,!0),z(this.#i.protocol)===this.#i.port&&(this.#i.port=\"\");let s;for(s of V){if(!(s in this.#i))continue;let i={},o=this.#i[s];switch(this.#t[s]=[],s){case\"protocol\":Object.assign(i,b),i.encodePart=w;break;case\"username\":Object.assign(i,b),i.encodePart=he;break;case\"password\":Object.assign(i,b),i.encodePart=ue;break;case\"hostname\":Object.assign(i,J),_(o)?i.encodePart=K:i.encodePart=j;break;case\"port\":Object.assign(i,b),i.encodePart=G;break;case\"pathname\":U(this.#n.protocol)?(Object.assign(i,Q,l),i.encodePart=de):(Object.assign(i,b,l),i.encodePart=pe);break;case\"search\":Object.assign(i,b,l),i.encodePart=ge;break;case\"hash\":Object.assign(i,b,l),i.encodePart=me;break}try{this.#s[s]=F(o,i),this.#n[s]=W(this.#s[s],this.#t[s],i),this.#e[s]=Ae(this.#s[s],i),this.#l=this.#l||this.#s[s].some(h=>h.type===2)}catch{throw new TypeError(`invalid ${s} pattern '${this.#i[s]}'.`)}}}catch(c){throw new TypeError(`Failed to construct 'URLPattern': ${c.message}`)}}get[Symbol.toStringTag](){return\"URLPattern\"}test(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return!1;try{typeof t==\"object\"?n=L(n,t,!1):n=L(n,Se(t,r),!1)}catch{return!1}let c;for(c of V)if(!this.#n[c].exec(n[c]))return!1;return!0}exec(t={},r){let n={pathname:\"\",protocol:\"\",username:\"\",password:\"\",hostname:\"\",port:\"\",search:\"\",hash:\"\"};if(typeof t!=\"string\"&&r)throw new TypeError(\"parameter 1 is not of type 'string'.\");if(typeof t>\"u\")return;try{typeof t==\"object\"?n=L(n,t,!1):n=L(n,Se(t,r),!1)}catch{return null}let c={};r?c.inputs=[t,r]:c.inputs=[t];let l;for(l of V){let f=this.#n[l].exec(n[l]);if(!f)return null;let s={};for(let[i,o]of this.#t[l].entries())if(typeof o==\"string\"||typeof o==\"number\"){let h=f[i+1];s[o]=h}c[l]={input:n[l]??\"\",groups:s}}return c}static compareComponent(t,r,n){let c=a((i,o)=>{for(let h of[\"type\",\"modifier\",\"prefix\",\"value\",\"suffix\"]){if(i[h]<o[h])return-1;if(i[h]===o[h])continue;return 1}return 0},\"comparePart\"),l=new P(3,\"\",\"\",\"\",\"\",3),f=new P(0,\"\",\"\",\"\",\"\",3),s=a((i,o)=>{let h=0;for(;h<Math.min(i.length,o.length);++h){let p=c(i[h],o[h]);if(p)return p}return i.length===o.length?0:c(i[h]??l,o[h]??l)},\"comparePartList\");return!r.#e[t]&&!n.#e[t]?0:r.#e[t]&&!n.#e[t]?s(r.#s[t],[f]):!r.#e[t]&&n.#e[t]?s([f],n.#s[t]):s(r.#s[t],n.#s[t])}get protocol(){return this.#e.protocol}get username(){return this.#e.username}get password(){return this.#e.password}get hostname(){return this.#e.hostname}get port(){return this.#e.port}get pathname(){return this.#e.pathname}get search(){return this.#e.search}get hash(){return this.#e.hash}get hasRegExpGroups(){return this.#l}};a(Y,\"URLPattern\");export{Y as URLPattern};\n"
6
- ],
7
- "mappings": ";AAAA,IAAI,GAAG,OAAO,eAAmB,EAAE,CAAC,EAAE,IAAI,GAAG,EAAE,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,EAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,aAAa,EAAE,CAAC,OAAO,KAAK,OAAO,IAAI,OAAO,KAAK,MAAM,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,GAAG,oBAAoB,GAAG,mCAAmC,EAAE,KAAK,SAAS,CAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,kBAAkB,KAAK,CAAC,EAAE,EAAE,EAAG,SAAS,EAAE,SAAS,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,QAAQ,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AK,EAAE,KAAK,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,GAAG,iBAAiB,EAAE,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,EAAE,KAAM,SAAQ,EAAE,CAAC,OAAO,KAAK,GAAG,YAAa,SAAQ,EAAE,CAAC,OAAO,KAAK,GAAG,YAAa,SAAQ,EAAE,CAAC,OAAO,KAAK,GAAG,YAAa,SAAQ,EAAE,CAAC,OAAO,KAAK,GAAG,YAAa,KAAI,EAAE,CAAC,OAAO,KAAK,GAAG,QAAS,SAAQ,EAAE,CAAC,OAAO,KAAK,GAAG,YAAa,OAAM,EAAE,CAAC,OAAO,KAAK,GAAG,UAAW,KAAI,EAAE,CAAC,OAAO,KAAK,GAAG,QAAS,gBAAe,EAAE,CAAC,OAAO,KAAK,GAAG,EAAE,EAAE,GAAE,YAAY",
8
- "debugId": "616DC5D66F4859E364756E2164756E21",
9
- "names": []
10
- }
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{Pb as e}from"./chunk-c1hsc4aa.js";class r extends e{service;static _name="EmailServiceContainer";constructor(i){super();this.service=i}}
3
- export{r};
4
-
5
- //# debugId=A02F8BC0C946237464756E2164756E21
@@ -1,5 +0,0 @@
1
- // @bun
2
- import{h as W,i as g}from"./chunk-sns685hn.js";import"./chunk-ppt296ye.js";import{M as Y}from"./chunk-c9wa4rtm.js";import"./chunk-agvzqxv7.js";import{join as x}from"path";function V(T){let _=T.toString(),k=new Bun.CryptoHasher("sha1");return k.update(_),k.digest("hex")}if(!globalThis.URLPattern)globalThis.URLPattern=Y;import{exists as F}from"fs/promises";var u=process.env.GEMI_PROJECT_DIR??"",Z=x(process.cwd(),u),h=x(Z,"app"),Q=x(Z,"dist");async function a(T,_){let k=await import(`${Q}/client/.vite/manifest.json`),$=await import(`${Q}/server/.vite/manifest.json`);process.env.ROOT_DIR=Z,process.env.APP_DIR=h,process.env.DIST_DIR=Q;let A={},I={},P={},S=(L,U)=>`"${L}": () => import("${U}")`,C=[];for(let L of["404",...T.getFlatComponentTree.call(T)]){let U=$[`app/views/${L}.tsx`];if(!U?.file){console.log(`Server file not found for ${L}`),console.log(U);let B=Object.keys($),H=`app/views/${L}.tsx`;console.log(`${H} not found in server manifest`),console.log(B)}let z=await import(`${process.env.DIST_DIR}/server/${U?.file}`);A[L]=z.default,I[L]=z.OpenGraph;let G=k[`app/views/${L}.tsx`];if(G?.css&&G?.css.length>0)P[L]=G?.css;if(G)C.push(S(L,`/${G?.file}`))}let y=`{${C.join(",")}}`,N=k["app/client.tsx"]?.css??[],w=(await Promise.all(N.map((L)=>Bun.file(`${Q}/client/${L}`).text()))).join(`
3
- `);async function D(L){let{pathname:U}=new URL(L.url),z=new Y({pathname:"/*.:filetype(png|txt|js|css|jpg|svg|jpeg|avif|webp|ico|ttf|map)"}),G=U.startsWith("/.well-known"),B=z.test({pathname:U})||G,H=U.startsWith("/api");if(B&&!H){let R=new URL(L.url),J=L.url.replace(R.origin,"").split("?")[0],X=`${Q}/client${J.replace("/assets/assets","/assets")}`,O=await F(X);if(!O&&R.pathname.includes(".js"))return new Response(`if(caches){caches?.delete("${X}")}window.location.reload();export {}`,{headers:{"Content-Type":"application/javascript"}});if(!O)return new Response("Not found",{status:404});try{let b=Bun.file(X),K=V(b.lastModified);return new Response(b.stream(),{headers:{"Content-Type":b.type,"Cache-Control":"public, max-age=31536000, must-revalidate","Content-Length":String(b.size),ETag:K}})}catch(b){return T.onException?.(b),new Response("Not found",{status:404})}}let M=T.fetch.bind(T);try{let R=await M(L);if(R instanceof Response)return R;else{let J=[];return J.push({content:w}),await R({getStyles:async(O)=>{if(!O)return W([]);for(let b of O){let K=k[`app/views/${b}.tsx`];for(let E of K?.css??[]){let v=Bun.file(`${process.env.DIST_DIR}/client/${E}`);J.push({id:E,content:await v.text()})}}return W(J)},bootstrapModules:[`/${k["app/client.tsx"].file}`],loaders:y,viewImportMap:A,ogMap:I,cssManifest:P})}}catch(R){if(console.error(R),U.startsWith("/api"))return new Response(JSON.stringify({error:R.message}),{status:500,headers:{"Content-Type":"application/json"}});return T.onException?.(R),new Response(R.stack,{status:500})}}let j=Bun.serve({maxRequestBodySize:10737418240,fetch:async(L,U)=>{if(!L.headers.get("x-forwarded-for")){let z=U.requestIP(L);if(z)L.headers.set("x-forwarded-for",z.address)}return await _(L,D)},idleTimeout:Number(process.env.SERVER_IDLE_TIMEOUT??10),port:process.env.PORT||5173});return g({port:j.port,rootDir:Z}),j}export{a as httpProd};
4
-
5
- //# debugId=9746BCBA13C1DFAB64756E2164756E21
@@ -1,12 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../server/httpProd.ts", "../server/generateEtag.ts", "../../../node_modules/.bun/urlpattern-polyfill@10.1.0/node_modules/urlpattern-polyfill/index.js"],
4
- "sourcesContent": [
5
- "import { join } from \"node:path\";\nimport { generateETag } from \"./generateEtag\";\nimport { URLPattern } from \"urlpattern-polyfill\";\nimport { exists } from \"node:fs/promises\";\nimport { createStyles } from \"./styles\";\nimport type { App } from \"../app\";\nimport { Instrumentation } from \"./types\";\nimport { printStartupBanner } from \"./banner\";\n\nconst projectDir = process.env.GEMI_PROJECT_DIR ?? \"\";\nconst rootDir = join(process.cwd(), projectDir);\n\nconst appDir = join(rootDir, \"app\");\nconst distDir = join(rootDir, \"dist\");\n\n// `app` is built by `Server.start` (from the kernel) and passed in — same as\n// `httpDev` — so prod and dev share one construction path. What differs here is\n// that views/styles are served from the built `dist/` manifests instead of\n// Vite's dev SSR graph.\nexport async function httpProd(app: App, instrumentation: Instrumentation) {\n const manifest = await import(`${distDir}/client/.vite/manifest.json`);\n const serverManifest = await import(`${distDir}/server/.vite/manifest.json`);\n\n process.env.ROOT_DIR = rootDir;\n process.env.APP_DIR = appDir;\n process.env.DIST_DIR = distDir;\n\n const viewImportMap = {};\n const ogMap = {};\n const cssManifest = {};\n const template = (viewName: string, path: string) => `\"${viewName}\": () => import(\"${path}\")`;\n const templates = [];\n\n for (const fileName of [\"404\", ...app.getFlatComponentTree.call(app)]) {\n const serverFile = serverManifest[`app/views/${fileName}.tsx`];\n if (!serverFile?.file) {\n console.log(`Server file not found for ${fileName}`);\n console.log(serverFile);\n const files = Object.keys(serverManifest);\n const path = `app/views/${fileName}.tsx`;\n console.log(`${path} not found in server manifest`);\n console.log(files);\n }\n const mod = await import(`${process.env.DIST_DIR}/server/${serverFile?.file}`);\n viewImportMap[fileName] = mod.default;\n ogMap[fileName] = mod.OpenGraph;\n const clientFile = manifest[`app/views/${fileName}.tsx`];\n\n if (clientFile?.css && clientFile?.css.length > 0) {\n cssManifest[fileName] = clientFile?.css;\n }\n if (clientFile) {\n templates.push(template(fileName, `/${clientFile?.file}`));\n }\n }\n\n const loaders = `{${templates.join(\",\")}}`;\n\n // Vite's manifest `css` field is a `string[]` — a client entry can emit more\n // than one CSS chunk. Read and concatenate them all instead of interpolating\n // the array into a single path (which only works for a one-element array).\n const appCssFiles: string[] = manifest[\"app/client.tsx\"]?.css ?? [];\n const appCSSContent = (\n await Promise.all(\n appCssFiles.map((cssFile) => Bun.file(`${distDir}/client/${cssFile}`).text()),\n )\n ).join(\"\\n\");\n\n async function requestHandler(req: Request) {\n const { pathname } = new URL(req.url);\n\n const pattern = new URLPattern({\n pathname:\n \"/*.:filetype(png|txt|js|css|jpg|svg|jpeg|avif|webp|ico|ttf|map)\",\n });\n\n const isWellKnownFile = pathname.startsWith(\"/.well-known\");\n const isFileRequest = pattern.test({ pathname }) || isWellKnownFile;\n\n const isApi = pathname.startsWith(\"/api\");\n\n if (isFileRequest && !isApi) {\n const url = new URL(req.url);\n const filePath = req.url.replace(url.origin, \"\").split(\"?\")[0];\n const distPath = `${distDir}/client${filePath.replace(\"/assets/assets\", \"/assets\")}`;\n const doesExist = await exists(distPath);\n\n if (!doesExist && url.pathname.includes(\".js\")) {\n return new Response(\n `if(caches){caches?.delete(\"${distPath}\")}window.location.reload();export {}`,\n {\n headers: { \"Content-Type\": \"application/javascript\" },\n },\n );\n }\n\n // `Bun.file(path).stream()` is lazy — a missing file only throws ENOENT\n // once the body is streamed, which is *after* this handler has returned,\n // so the `try/catch` below can't catch it (it surfaces as an unhandled\n // rejection with the response already committed as 200). Bail out to a\n // clean 404 before we ever build the streaming Response.\n if (!doesExist) {\n return new Response(\"Not found\", { status: 404 });\n }\n\n try {\n const file = Bun.file(distPath);\n\n const etag = generateETag(file.lastModified);\n return new Response(file.stream(), {\n headers: {\n \"Content-Type\": file.type,\n \"Cache-Control\": \"public, max-age=31536000, must-revalidate\",\n \"Content-Length\": String(file.size),\n ETag: etag,\n },\n });\n } catch (error) {\n app.onException?.(error);\n return new Response(\"Not found\", { status: 404 });\n }\n }\n\n const handler = app.fetch.bind(app);\n\n try {\n const result = await handler(req);\n if (result instanceof Response) {\n return result;\n } else {\n const styles = [];\n\n styles.push({\n content: appCSSContent,\n });\n\n const getStyles = async (currentViews: string[]) => {\n if (!currentViews) {\n return createStyles([]);\n }\n for (const view of currentViews) {\n const clientFile = manifest[`app/views/${view}.tsx`];\n for (const cssFile of clientFile?.css ?? []) {\n const css = Bun.file(`${process.env.DIST_DIR}/client/${cssFile}`);\n styles.push({\n id: cssFile,\n content: await css.text(),\n });\n }\n }\n return createStyles(styles);\n };\n\n return await result({\n getStyles,\n bootstrapModules: [`/${manifest[\"app/client.tsx\"].file}`],\n loaders,\n viewImportMap,\n ogMap,\n cssManifest,\n });\n }\n } catch (err) {\n console.error(err);\n if (pathname.startsWith(\"/api\")) {\n return new Response(JSON.stringify({ error: err.message }), {\n status: 500,\n headers: { \"Content-Type\": \"application/json\" },\n });\n }\n app.onException?.(err);\n return new Response(err.stack, { status: 500 });\n }\n }\n\n const server = Bun.serve({\n maxRequestBodySize: 10 * 1024 * 1024 * 1024, // 10 GB\n fetch: async (req, server) => {\n if (!req.headers.get(\"x-forwarded-for\")) {\n // `requestIP` is null for closed/unix sockets — guard so it never\n // throws before the request is handled.\n const ip = server.requestIP(req);\n if (ip) req.headers.set(\"x-forwarded-for\", ip.address);\n }\n return await instrumentation(req, requestHandler);\n },\n idleTimeout: Number(process.env.SERVER_IDLE_TIMEOUT ?? 10),\n port: process.env.PORT || 5173,\n });\n\n printStartupBanner({ port: server.port, rootDir });\n\n return server;\n}\n",
6
- "export function generateETag(lastModified: number): string {\n // Assuming the last modified timestamp is in milliseconds\n const lastModifiedStr = lastModified.toString();\n\n const hasher = new Bun.CryptoHasher(\"sha1\");\n hasher.update(lastModifiedStr);\n const hash = hasher.digest(\"hex\");\n\n return hash;\n}\n",
7
- "import { URLPattern } from \"./dist/urlpattern.js\";\n\nexport { URLPattern };\n\nif (!globalThis.URLPattern) {\n globalThis.URLPattern = URLPattern;\n}\n"
8
- ],
9
- "mappings": ";iKAAA,SAAS,OCAF,GAAS,CAAY,CAAC,EAA8B,CAEzD,IAAM,EAAkB,EAAa,SAAS,EAExC,EAAS,IAAI,IAAI,aAAa,MAAM,EAI1C,OAHA,EAAO,OAAO,CAAe,EAChB,EAAO,OAAO,KAAK,ECFlC,GAAI,CAAC,WAAW,WACd,WAAW,WAAa,EFF1B,iBAAS,oBAMT,IAAM,EAAa,QAAQ,IAAI,kBAAoB,GAC7C,EAAU,EAAK,QAAQ,IAAI,EAAG,CAAU,EAExC,EAAS,EAAK,EAAS,KAAK,EAC5B,EAAU,EAAK,EAAS,MAAM,EAMpC,eAAsB,CAAQ,CAAC,EAAU,EAA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