vibedoc 1.0.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 (201) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-build-manifest.json +92 -0
  3. package/.next/app-path-routes-manifest.json +1 -0
  4. package/.next/build-manifest.json +32 -0
  5. package/.next/package.json +1 -0
  6. package/.next/prerender-manifest.js +1 -0
  7. package/.next/prerender-manifest.json +1 -0
  8. package/.next/react-loadable-manifest.json +282 -0
  9. package/.next/required-server-files.json +1 -0
  10. package/.next/routes-manifest.json +1 -0
  11. package/.next/server/app/(app)/activity/page.js +1 -0
  12. package/.next/server/app/(app)/activity/page.js.nft.json +1 -0
  13. package/.next/server/app/(app)/activity/page_client-reference-manifest.js +1 -0
  14. package/.next/server/app/(app)/board/page.js +2 -0
  15. package/.next/server/app/(app)/board/page.js.nft.json +1 -0
  16. package/.next/server/app/(app)/board/page_client-reference-manifest.js +1 -0
  17. package/.next/server/app/(app)/docs/page.js +2 -0
  18. package/.next/server/app/(app)/docs/page.js.nft.json +1 -0
  19. package/.next/server/app/(app)/docs/page_client-reference-manifest.js +1 -0
  20. package/.next/server/app/(app)/memory/page.js +7 -0
  21. package/.next/server/app/(app)/memory/page.js.nft.json +1 -0
  22. package/.next/server/app/(app)/memory/page_client-reference-manifest.js +1 -0
  23. package/.next/server/app/(app)/settings/page.js +21 -0
  24. package/.next/server/app/(app)/settings/page.js.nft.json +1 -0
  25. package/.next/server/app/(app)/settings/page_client-reference-manifest.js +1 -0
  26. package/.next/server/app/(app)/setup/page.js +1 -0
  27. package/.next/server/app/(app)/setup/page.js.nft.json +1 -0
  28. package/.next/server/app/(app)/setup/page_client-reference-manifest.js +1 -0
  29. package/.next/server/app/_not-found/page.js +1 -0
  30. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  31. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  32. package/.next/server/app/_not-found.html +1 -0
  33. package/.next/server/app/_not-found.meta +6 -0
  34. package/.next/server/app/_not-found.rsc +9 -0
  35. package/.next/server/app/activity.html +1 -0
  36. package/.next/server/app/activity.meta +5 -0
  37. package/.next/server/app/activity.rsc +13 -0
  38. package/.next/server/app/api/activity/route.js +1 -0
  39. package/.next/server/app/api/activity/route.js.nft.json +1 -0
  40. package/.next/server/app/api/backlinks/route.js +1 -0
  41. package/.next/server/app/api/backlinks/route.js.nft.json +1 -0
  42. package/.next/server/app/api/context/route.js +1 -0
  43. package/.next/server/app/api/context/route.js.nft.json +1 -0
  44. package/.next/server/app/api/decisions/route.js +1 -0
  45. package/.next/server/app/api/decisions/route.js.nft.json +1 -0
  46. package/.next/server/app/api/docs/route.js +1 -0
  47. package/.next/server/app/api/docs/route.js.nft.json +1 -0
  48. package/.next/server/app/api/events/route.js +3 -0
  49. package/.next/server/app/api/events/route.js.nft.json +1 -0
  50. package/.next/server/app/api/mcp/route.js +103 -0
  51. package/.next/server/app/api/mcp/route.js.nft.json +1 -0
  52. package/.next/server/app/api/memory/route.js +1 -0
  53. package/.next/server/app/api/memory/route.js.nft.json +1 -0
  54. package/.next/server/app/api/projects/route.js +1 -0
  55. package/.next/server/app/api/projects/route.js.nft.json +1 -0
  56. package/.next/server/app/api/projects.body +1 -0
  57. package/.next/server/app/api/projects.meta +1 -0
  58. package/.next/server/app/api/settings/route.js +1 -0
  59. package/.next/server/app/api/settings/route.js.nft.json +1 -0
  60. package/.next/server/app/api/setup/generate/route.js +130 -0
  61. package/.next/server/app/api/setup/generate/route.js.nft.json +1 -0
  62. package/.next/server/app/api/setup/write/route.js +1 -0
  63. package/.next/server/app/api/setup/write/route.js.nft.json +1 -0
  64. package/.next/server/app/api/summary/route.js +1 -0
  65. package/.next/server/app/api/summary/route.js.nft.json +1 -0
  66. package/.next/server/app/api/tasks/route.js +1 -0
  67. package/.next/server/app/api/tasks/route.js.nft.json +1 -0
  68. package/.next/server/app/board.html +1 -0
  69. package/.next/server/app/board.meta +5 -0
  70. package/.next/server/app/board.rsc +13 -0
  71. package/.next/server/app/docs.html +1 -0
  72. package/.next/server/app/docs.meta +5 -0
  73. package/.next/server/app/docs.rsc +13 -0
  74. package/.next/server/app/index.html +1 -0
  75. package/.next/server/app/index.meta +6 -0
  76. package/.next/server/app/index.rsc +6 -0
  77. package/.next/server/app/memory.html +1 -0
  78. package/.next/server/app/memory.meta +5 -0
  79. package/.next/server/app/memory.rsc +13 -0
  80. package/.next/server/app/page.js +1 -0
  81. package/.next/server/app/page.js.nft.json +1 -0
  82. package/.next/server/app/page_client-reference-manifest.js +1 -0
  83. package/.next/server/app/settings.html +1 -0
  84. package/.next/server/app/settings.meta +5 -0
  85. package/.next/server/app/settings.rsc +13 -0
  86. package/.next/server/app/setup.html +1 -0
  87. package/.next/server/app/setup.meta +5 -0
  88. package/.next/server/app/setup.rsc +13 -0
  89. package/.next/server/app-paths-manifest.json +24 -0
  90. package/.next/server/chunks/191.js +91 -0
  91. package/.next/server/chunks/357.js +2 -0
  92. package/.next/server/chunks/486.js +12 -0
  93. package/.next/server/chunks/491.js +2 -0
  94. package/.next/server/chunks/778.js +9 -0
  95. package/.next/server/chunks/80.js +60 -0
  96. package/.next/server/chunks/900.js +6 -0
  97. package/.next/server/chunks/945.js +20 -0
  98. package/.next/server/chunks/font-manifest.json +1 -0
  99. package/.next/server/font-manifest.json +1 -0
  100. package/.next/server/functions-config-manifest.json +1 -0
  101. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  102. package/.next/server/middleware-build-manifest.js +1 -0
  103. package/.next/server/middleware-manifest.json +6 -0
  104. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  105. package/.next/server/next-font-manifest.js +1 -0
  106. package/.next/server/next-font-manifest.json +1 -0
  107. package/.next/server/pages/404.html +1 -0
  108. package/.next/server/pages/500.html +1 -0
  109. package/.next/server/pages/_app.js +1 -0
  110. package/.next/server/pages/_app.js.nft.json +1 -0
  111. package/.next/server/pages/_document.js +1 -0
  112. package/.next/server/pages/_document.js.nft.json +1 -0
  113. package/.next/server/pages/_error.js +1 -0
  114. package/.next/server/pages/_error.js.nft.json +1 -0
  115. package/.next/server/pages-manifest.json +1 -0
  116. package/.next/server/server-reference-manifest.js +1 -0
  117. package/.next/server/server-reference-manifest.json +1 -0
  118. package/.next/server/webpack-runtime.js +1 -0
  119. package/.next/static/chunks/1088.464d783cc5eea9de.js +1 -0
  120. package/.next/static/chunks/1222.e874d92bfc1bc6c7.js +1 -0
  121. package/.next/static/chunks/1347.3e7d2ed21b663e48.js +1 -0
  122. package/.next/static/chunks/1433.2f2e32dffc1c27c8.js +1 -0
  123. package/.next/static/chunks/1472.5e71f95e6296fd63.js +36 -0
  124. package/.next/static/chunks/1594.09677134642da9ff.js +93 -0
  125. package/.next/static/chunks/1638.2e37b49b302bcb6a.js +174 -0
  126. package/.next/static/chunks/2244.cf7a2544ebeb1e19.js +82 -0
  127. package/.next/static/chunks/228-e44243a26f6475e2.js +9 -0
  128. package/.next/static/chunks/2306.509ed7c364442601.js +2 -0
  129. package/.next/static/chunks/2412.949844de7f2bbdc3.js +262 -0
  130. package/.next/static/chunks/2565.eb3605e7c90e3c7e.js +131 -0
  131. package/.next/static/chunks/2591.56cbda5d4e6e2943.js +56 -0
  132. package/.next/static/chunks/2597.ba1681ae114a4aa7.js +29 -0
  133. package/.next/static/chunks/2647.011471b532619487.js +59 -0
  134. package/.next/static/chunks/2794.65caa79043b402f7.js +1 -0
  135. package/.next/static/chunks/2861.4fff66e909869a6d.js +148 -0
  136. package/.next/static/chunks/2894.5a2b6bbc2c48843d.js +43 -0
  137. package/.next/static/chunks/3795.50eafedfcd5f01d6.js +24 -0
  138. package/.next/static/chunks/3904.54baab606637ae6e.js +1 -0
  139. package/.next/static/chunks/4236.17567db90ef651b7.js +1 -0
  140. package/.next/static/chunks/4316-6345e1b4bb694a29.js +1 -0
  141. package/.next/static/chunks/490-ed8ba8bf24ab2f3d.js +1 -0
  142. package/.next/static/chunks/4982.9f5dde29b741d6dd.js +63 -0
  143. package/.next/static/chunks/5083.ffcecc2fefa6de50.js +55 -0
  144. package/.next/static/chunks/5218.35990037cf2fd97c.js +155 -0
  145. package/.next/static/chunks/5340.5ddd859da4765a69.js +1 -0
  146. package/.next/static/chunks/5453.47f6d134b08a854e.js +4 -0
  147. package/.next/static/chunks/5808.d42ab07c5de599fd.js +1 -0
  148. package/.next/static/chunks/6429.08e2027051a6966c.js +1 -0
  149. package/.next/static/chunks/6482.03215b09c8639bc2.js +7 -0
  150. package/.next/static/chunks/6842-aed3c9b445ee77d1.js +2 -0
  151. package/.next/static/chunks/6864.4be1f9d162073932.js +1 -0
  152. package/.next/static/chunks/6886.f44c1de05dae9abc.js +1 -0
  153. package/.next/static/chunks/68bc8b64.37fd49721fa7b320.js +136 -0
  154. package/.next/static/chunks/6bded0d7-aec80afe2d60204d.js +1 -0
  155. package/.next/static/chunks/7123.fdc5241f4c912578.js +62 -0
  156. package/.next/static/chunks/7235.d4cff43d3f970540.js +1 -0
  157. package/.next/static/chunks/7241.499111c9d51ab606.js +1 -0
  158. package/.next/static/chunks/7251.17e3ab4cd5935b2e.js +166 -0
  159. package/.next/static/chunks/7283.d294d5aebfe1c65f.js +215 -0
  160. package/.next/static/chunks/7292.0dfaab300ca1050a.js +1 -0
  161. package/.next/static/chunks/7527.0ccae900ac492b8c.js +1 -0
  162. package/.next/static/chunks/7697-812a5639d661760b.js +1 -0
  163. package/.next/static/chunks/7722.d7a4456b068af3c0.js +24 -0
  164. package/.next/static/chunks/7725-63beec2ffb219859.js +16 -0
  165. package/.next/static/chunks/8130.609cf9a280803973.js +1 -0
  166. package/.next/static/chunks/8338.2415ec79a5f31092.js +1 -0
  167. package/.next/static/chunks/845-0e3438196b5ef62c.js +1 -0
  168. package/.next/static/chunks/8836.71b3f39cb9a95d62.js +5 -0
  169. package/.next/static/chunks/942c9eea.2013b980eeaebb14.js +53 -0
  170. package/.next/static/chunks/94c12b52-436125ce5f9c910a.js +1 -0
  171. package/.next/static/chunks/9528.4d4672f83c5035ab.js +1 -0
  172. package/.next/static/chunks/9580.942737df82878943.js +1 -0
  173. package/.next/static/chunks/9672.cb194a5bbad5f696.js +1 -0
  174. package/.next/static/chunks/app/(app)/activity/page-91b9d738c33e19b5.js +1 -0
  175. package/.next/static/chunks/app/(app)/board/page-33f5e3998a8445ca.js +1 -0
  176. package/.next/static/chunks/app/(app)/docs/page-17670ed46c3594e6.js +1 -0
  177. package/.next/static/chunks/app/(app)/layout-34b4046ccf919d3f.js +1 -0
  178. package/.next/static/chunks/app/(app)/memory/page-b3aa8c5e028caf75.js +1 -0
  179. package/.next/static/chunks/app/(app)/settings/page-f264516b9005f933.js +16 -0
  180. package/.next/static/chunks/app/(app)/setup/page-9fd82b10016eca64.js +16 -0
  181. package/.next/static/chunks/app/_not-found/page-73e8eefca2388c5f.js +1 -0
  182. package/.next/static/chunks/app/layout-7054561bfe7eec9c.js +1 -0
  183. package/.next/static/chunks/app/page-f71834a10930be30.js +1 -0
  184. package/.next/static/chunks/b09b44eb.fa180e586fdf600b.js +1 -0
  185. package/.next/static/chunks/ea0025a9.12db9045daafb0c1.js +1 -0
  186. package/.next/static/chunks/efcceb14.8fc58c5c4428a08e.js +1 -0
  187. package/.next/static/chunks/framework-20afca218c33ed8b.js +33 -0
  188. package/.next/static/chunks/main-6224705d81e790a3.js +1 -0
  189. package/.next/static/chunks/main-app-02ed5dd91baaafdc.js +1 -0
  190. package/.next/static/chunks/pages/_app-db7a259df1c8778b.js +1 -0
  191. package/.next/static/chunks/pages/_error-76163253f7e717d4.js +1 -0
  192. package/.next/static/chunks/polyfills-78c92fac7aa8fdd8.js +1 -0
  193. package/.next/static/chunks/webpack-648d3cb0a281bce5.js +1 -0
  194. package/.next/static/css/615004f0fff77145.css +5 -0
  195. package/.next/static/r-2w-yCd6mM7TOOETgGaA/_buildManifest.js +1 -0
  196. package/.next/static/r-2w-yCd6mM7TOOETgGaA/_ssgManifest.js +1 -0
  197. package/README.md +160 -0
  198. package/bin/vibedoc.js +54 -0
  199. package/next.config.js +7 -0
  200. package/package.json +80 -0
  201. package/ws-server.js +12 -0
@@ -0,0 +1,2 @@
1
+ exports.id=357,exports.ids=[357],exports.modules={3029:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bootstrap:function(){return s},error:function(){return u},event:function(){return g},info:function(){return p},prefixes:function(){return a},ready:function(){return d},trace:function(){return f},wait:function(){return c},warn:function(){return l},warnOnce:function(){return v}});let n=r(1800),a={wait:(0,n.white)((0,n.bold)("○")),error:(0,n.red)((0,n.bold)("⨯")),warn:(0,n.yellow)((0,n.bold)("⚠")),ready:"▲",info:(0,n.white)((0,n.bold)(" ")),event:(0,n.green)((0,n.bold)("✓")),trace:(0,n.magenta)((0,n.bold)("\xbb"))},o={log:"log",warn:"warn",error:"error"};function i(e,...t){(""===t[0]||void 0===t[0])&&1===t.length&&t.shift();let r=e in o?o[e]:"log",n=a[e];0===t.length?console[r](""):console[r](" "+n,...t)}function s(...e){console.log(" ",...e)}function c(...e){i("wait",...e)}function u(...e){i("error",...e)}function l(...e){i("warn",...e)}function d(...e){i("ready",...e)}function p(...e){i("info",...e)}function g(...e){i("event",...e)}function f(...e){i("trace",...e)}let _=new Set;function v(...e){_.has(e[0])||(_.add(e.join(" ")),l(...e))}},2855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DynamicServerError:function(){return n},isDynamicServerError:function(){return a}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=r}}function a(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{StaticGenBailoutError:function(){return n},isStaticGenBailoutError:function(){return a}});let r="NEXT_STATIC_GEN_BAILOUT";class n extends Error{constructor(...e){super(...e),this.code=r}}function a(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2660:e=>{(()=>{"use strict";var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),a=r(172),o=r(930),i="context",s=new n.NoopContextManager;class c{constructor(){}static getInstance(){return this._instance||(this._instance=new c),this._instance}setGlobalContextManager(e){return(0,a.registerGlobal)(i,e,o.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,a.getGlobal)(i)||s}disable(){this._getContextManager().disable(),(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.ContextAPI=c},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),a=r(912),o=r(957),i=r(172);class s{constructor(){function e(e){return function(...t){let r=(0,i.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:o.DiagLogLevel.INFO})=>{var n,s,c;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=e.stack)&&void 0!==n?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let u=(0,i.getGlobal)("diag"),l=(0,a.createLogLevelDiagLogger)(null!==(s=r.logLevel)&&void 0!==s?s:o.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(c=Error().stack)&&void 0!==c?c:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${e}`),l.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,i.registerGlobal)("diag",l,t,!0)},t.disable=()=>{(0,i.unregisterGlobal)("diag",t)},t.createComponentLogger=e=>new n.DiagComponentLogger(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}static instance(){return this._instance||(this._instance=new s),this._instance}}t.DiagAPI=s},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),a=r(172),o=r(930),i="metrics";class s{constructor(){}static getInstance(){return this._instance||(this._instance=new s),this._instance}setGlobalMeterProvider(e){return(0,a.registerGlobal)(i,e,o.DiagAPI.instance())}getMeterProvider(){return(0,a.getGlobal)(i)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,a.unregisterGlobal)(i,o.DiagAPI.instance())}}t.MetricsAPI=s},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),a=r(874),o=r(194),i=r(277),s=r(369),c=r(930),u="propagation",l=new a.NoopTextMapPropagator;class d{constructor(){this.createBaggage=s.createBaggage,this.getBaggage=i.getBaggage,this.getActiveBaggage=i.getActiveBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(u,e,c.DiagAPI.instance())}inject(e,t,r=o.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=o.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(u,c.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(u)||l}}t.PropagationAPI=d},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),a=r(846),o=r(139),i=r(607),s=r(930),c="trace";class u{constructor(){this._proxyTracerProvider=new a.ProxyTracerProvider,this.wrapSpanContext=o.wrapSpanContext,this.isSpanContextValid=o.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getActiveSpan=i.getActiveSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(c,this._proxyTracerProvider,s.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(c)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(c,s.DiagAPI.instance()),this._proxyTracerProvider=new a.ProxyTracerProvider}}t.TraceAPI=u},277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;let n=r(491),a=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function o(e){return e.getValue(a)||void 0}t.getBaggage=o,t.getActiveBaggage=function(){return o(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(a,t)},t.deleteBaggage=function(e){return e.deleteValue(a)}},993:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaggageImpl=void 0;class r{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map(([e,t])=>[e,t])}setEntry(e,t){let n=new r(this._entries);return n._entries.set(e,t),n}removeEntry(e){let t=new r(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new r(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new r}}t.BaggageImpl=r},830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataSymbol=void 0,t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataFromString=t.createBaggage=void 0;let n=r(930),a=r(993),o=r(830),i=n.DiagAPI.instance();t.createBaggage=function(e={}){return new a.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(i.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:o.baggageEntryMetadataSymbol,toString:()=>e}}},67:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.context=void 0;let n=r(491);t.context=n.ContextAPI.getInstance()},223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopContextManager=void 0;let n=r(780);class a{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=a},780:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONTEXT=t.createContextKey=void 0,t.createContextKey=function(e){return Symbol.for(e)};class r{constructor(e){let t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,n)=>{let a=new r(t._currentContext);return a._currentContext.set(e,n),a},t.deleteValue=e=>{let n=new r(t._currentContext);return n._currentContext.delete(e),n}}}t.ROOT_CONTEXT=new r},506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diag=void 0;let n=r(930);t.diag=n.DiagAPI.instance()},56:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagComponentLogger=void 0;let n=r(172);class a{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return o("debug",this._namespace,e)}error(...e){return o("error",this._namespace,e)}info(...e){return o("info",this._namespace,e)}warn(...e){return o("warn",this._namespace,e)}verbose(...e){return o("verbose",this._namespace,e)}}function o(e,t,r){let a=(0,n.getGlobal)("diag");if(a)return r.unshift(t),a[e](...r)}t.DiagComponentLogger=a},972:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagConsoleLogger=void 0;let r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class n{constructor(){for(let e=0;e<r.length;e++)this[r[e].n]=function(e){return function(...t){if(console){let r=console[e];if("function"!=typeof r&&(r=console.log),"function"==typeof r)return r.apply(console,t)}}}(r[e].c)}}t.DiagConsoleLogger=n},912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createLogLevelDiagLogger=void 0;let n=r(957);t.createLogLevelDiagLogger=function(e,t){function r(r,n){let a=t[r];return"function"==typeof a&&e>=n?a.bind(t):function(){}}return e<n.DiagLogLevel.NONE?e=n.DiagLogLevel.NONE:e>n.DiagLogLevel.ALL&&(e=n.DiagLogLevel.ALL),t=t||{},{error:r("error",n.DiagLogLevel.ERROR),warn:r("warn",n.DiagLogLevel.WARN),info:r("info",n.DiagLogLevel.INFO),debug:r("debug",n.DiagLogLevel.DEBUG),verbose:r("verbose",n.DiagLogLevel.VERBOSE)}}},957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagLogLevel=void 0,function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(t.DiagLogLevel||(t.DiagLogLevel={}))},172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;let n=r(200),a=r(521),o=r(130),i=a.VERSION.split(".")[0],s=Symbol.for(`opentelemetry.js.api.${i}`),c=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var o;let i=c[s]=null!==(o=c[s])&&void 0!==o?o:{version:a.VERSION};if(!n&&i[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(i.version!==a.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${i.version} for ${e} does not match previously registered API v${a.VERSION}`);return r.error(t.stack||t.message),!1}return i[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${a.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=c[s])||void 0===t?void 0:t.version;if(n&&(0,o.isCompatible)(n))return null===(r=c[s])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${a.VERSION}.`);let r=c[s];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),a=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function o(e){let t=new Set([e]),r=new Set,n=e.match(a);if(!n)return()=>!1;let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(t){return t===e};function i(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(a);if(!n)return i(e);let s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=s.prerelease||o.major!==s.major?i(e):0===o.major?o.minor===s.minor&&o.patch<=s.patch?(t.add(e),!0):i(e):o.minor<=s.minor?(t.add(e),!0):i(e)}}t._makeCompatibilityCheck=o,t.isCompatible=o(n.VERSION)},886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=void 0;let n=r(653);t.metrics=n.MetricsAPI.getInstance()},901:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueType=void 0,function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"}(t.ValueType||(t.ValueType={}))},102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class r{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=r;class n{}t.NoopMetric=n;class a extends n{add(e,t){}}t.NoopCounterMetric=a;class o extends n{add(e,t){}}t.NoopUpDownCounterMetric=o;class i extends n{record(e,t){}}t.NoopHistogramMetric=i;class s{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=s;class c extends s{}t.NoopObservableCounterMetric=c;class u extends s{}t.NoopObservableGaugeMetric=u;class l extends s{}t.NoopObservableUpDownCounterMetric=l,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new a,t.NOOP_HISTOGRAM_METRIC=new i,t.NOOP_UP_DOWN_COUNTER_METRIC=new o,t.NOOP_OBSERVABLE_COUNTER_METRIC=new c,t.NOOP_OBSERVABLE_GAUGE_METRIC=new u,t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new l,t.createNoopMeter=function(){return t.NOOP_METER}},660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;let n=r(102);class a{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=a,t.NOOP_METER_PROVIDER=new a},200:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:global},46:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(651),t)},939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propagation=void 0;let n=r(181);t.propagation=n.PropagationAPI.getInstance()},874:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTextMapPropagator=void 0;class r{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=r},194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTextMapSetter=t.defaultTextMapGetter=void 0,t.defaultTextMapGetter={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},t.defaultTextMapSetter={set(e,t,r){null!=e&&(e[t]=r)}}},845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trace=void 0;let n=r(997);t.trace=n.TraceAPI.getInstance()},403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonRecordingSpan=void 0;let n=r(476);class a{constructor(e=n.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}t.NonRecordingSpan=a},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),a=r(607),o=r(403),i=r(139),s=n.ContextAPI.getInstance();class c{startSpan(e,t,r=s.active()){if(null==t?void 0:t.root)return new o.NonRecordingSpan;let n=r&&(0,a.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,i.isSpanContextValid)(n)?new o.NonRecordingSpan(n):new o.NonRecordingSpan}startActiveSpan(e,t,r,n){let o,i,c;if(arguments.length<2)return;2==arguments.length?c=t:3==arguments.length?(o=t,c=r):(o=t,i=r,c=n);let u=null!=i?i:s.active(),l=this.startSpan(e,o,u),d=(0,a.setSpan)(u,l);return s.with(d,c,void 0,l)}}t.NoopTracer=c},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class a{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=a},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class a{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n}}t.ProxyTracer=a},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),a=new(r(124)).NoopTracerProvider;class o{getTracer(e,t,r){var a;return null!==(a=this.getDelegateTracer(e,t,r))&&void 0!==a?a:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:a}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)}}t.ProxyTracerProvider=o},996:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SamplingDecision=void 0,function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(t.SamplingDecision||(t.SamplingDecision={}))},607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;let n=r(780),a=r(403),o=r(491),i=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function s(e){return e.getValue(i)||void 0}function c(e,t){return e.setValue(i,t)}t.getSpan=s,t.getActiveSpan=function(){return s(o.ContextAPI.getInstance().active())},t.setSpan=c,t.deleteSpan=function(e){return e.deleteValue(i)},t.setSpanContext=function(e,t){return c(e,new a.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=s(e))||void 0===t?void 0:t.spanContext()}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceStateImpl=void 0;let n=r(564);class a{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let r=t.trim(),a=r.indexOf("=");if(-1!==a){let o=r.slice(0,a),i=r.slice(a+1,t.length);(0,n.validateKey)(o)&&(0,n.validateValue)(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new a;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=a},564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateValue=t.validateKey=void 0;let r="[_0-9a-z-*/]",n=`[a-z]${r}{0,255}`,a=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,o=RegExp(`^(?:${n}|${a})$`),i=/^[ -~]{0,255}[!-~]$/,s=/,|=/;t.validateKey=function(e){return o.test(e)},t.validateValue=function(e){return i.test(e)&&!s.test(e)}},98:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTraceState=void 0;let n=r(325);t.createTraceState=function(e){return new n.TraceStateImpl(e)}},476:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;let n=r(475);t.INVALID_SPANID="0000000000000000",t.INVALID_TRACEID="00000000000000000000000000000000",t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:n.TraceFlags.NONE}},357:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanKind=void 0,function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(t.SpanKind||(t.SpanKind={}))},139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;let n=r(476),a=r(403),o=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function s(e){return o.test(e)&&e!==n.INVALID_TRACEID}function c(e){return i.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=s,t.isValidSpanId=c,t.isSpanContextValid=function(e){return s(e.traceId)&&c(e.spanId)},t.wrapSpanContext=function(e){return new a.NonRecordingSpan(e)}},847:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatusCode=void 0,function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(t.SpanStatusCode||(t.SpanStatusCode={}))},475:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFlags=void 0,function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(t.TraceFlags||(t.TraceFlags={}))},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="1.6.0"}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}},i=!0;try{t[e].call(o.exports,o,o.exports,n),i=!1}finally{i&&delete r[e]}return o.exports}n.ab=__dirname+"/";var a={};(()=>{Object.defineProperty(a,"__esModule",{value:!0}),a.trace=a.propagation=a.metrics=a.diag=a.context=a.INVALID_SPAN_CONTEXT=a.INVALID_TRACEID=a.INVALID_SPANID=a.isValidSpanId=a.isValidTraceId=a.isSpanContextValid=a.createTraceState=a.TraceFlags=a.SpanStatusCode=a.SpanKind=a.SamplingDecision=a.ProxyTracerProvider=a.ProxyTracer=a.defaultTextMapSetter=a.defaultTextMapGetter=a.ValueType=a.createNoopMeter=a.DiagLogLevel=a.DiagConsoleLogger=a.ROOT_CONTEXT=a.createContextKey=a.baggageEntryMetadataFromString=void 0;var e=n(369);Object.defineProperty(a,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=n(780);Object.defineProperty(a,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(a,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=n(972);Object.defineProperty(a,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var o=n(957);Object.defineProperty(a,"DiagLogLevel",{enumerable:!0,get:function(){return o.DiagLogLevel}});var i=n(102);Object.defineProperty(a,"createNoopMeter",{enumerable:!0,get:function(){return i.createNoopMeter}});var s=n(901);Object.defineProperty(a,"ValueType",{enumerable:!0,get:function(){return s.ValueType}});var c=n(194);Object.defineProperty(a,"defaultTextMapGetter",{enumerable:!0,get:function(){return c.defaultTextMapGetter}}),Object.defineProperty(a,"defaultTextMapSetter",{enumerable:!0,get:function(){return c.defaultTextMapSetter}});var u=n(125);Object.defineProperty(a,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var l=n(846);Object.defineProperty(a,"ProxyTracerProvider",{enumerable:!0,get:function(){return l.ProxyTracerProvider}});var d=n(996);Object.defineProperty(a,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var p=n(357);Object.defineProperty(a,"SpanKind",{enumerable:!0,get:function(){return p.SpanKind}});var g=n(847);Object.defineProperty(a,"SpanStatusCode",{enumerable:!0,get:function(){return g.SpanStatusCode}});var f=n(475);Object.defineProperty(a,"TraceFlags",{enumerable:!0,get:function(){return f.TraceFlags}});var _=n(98);Object.defineProperty(a,"createTraceState",{enumerable:!0,get:function(){return _.createTraceState}});var v=n(139);Object.defineProperty(a,"isSpanContextValid",{enumerable:!0,get:function(){return v.isSpanContextValid}}),Object.defineProperty(a,"isValidTraceId",{enumerable:!0,get:function(){return v.isValidTraceId}}),Object.defineProperty(a,"isValidSpanId",{enumerable:!0,get:function(){return v.isValidSpanId}});var b=n(476);Object.defineProperty(a,"INVALID_SPANID",{enumerable:!0,get:function(){return b.INVALID_SPANID}}),Object.defineProperty(a,"INVALID_TRACEID",{enumerable:!0,get:function(){return b.INVALID_TRACEID}}),Object.defineProperty(a,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return b.INVALID_SPAN_CONTEXT}});let S=n(67);Object.defineProperty(a,"context",{enumerable:!0,get:function(){return S.context}});let h=n(506);Object.defineProperty(a,"diag",{enumerable:!0,get:function(){return h.diag}});let m=n(886);Object.defineProperty(a,"metrics",{enumerable:!0,get:function(){return m.metrics}});let E=n(939);Object.defineProperty(a,"propagation",{enumerable:!0,get:function(){return E.propagation}});let O=n(845);Object.defineProperty(a,"trace",{enumerable:!0,get:function(){return O.trace}}),a.default={context:S.context,diag:h.diag,metrics:m.metrics,propagation:E.propagation,trace:O.trace}})(),e.exports=a})()},8323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return s},APP_DIR_ALIAS:function(){return T},CACHE_ONE_YEAR:function(){return h},DOT_NEXT_ALIAS:function(){return R},ESLINT_DEFAULT_DIRS:function(){return k},ESLINT_PROMPT_VALUES:function(){return X},GSP_NO_RETURNED_VALUE:function(){return B},GSSP_COMPONENT_MEMBER_ERROR:function(){return F},GSSP_NO_RETURNED_VALUE:function(){return G},INSTRUMENTATION_HOOK_FILENAME:function(){return O},MIDDLEWARE_FILENAME:function(){return m},MIDDLEWARE_LOCATION_REGEXP:function(){return E},NEXT_BODY_SUFFIX:function(){return l},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return g},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return f},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return p},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return b},NEXT_CACHE_TAGS_HEADER:function(){return d},NEXT_CACHE_TAG_MAX_ITEMS:function(){return _},NEXT_CACHE_TAG_MAX_LENGTH:function(){return v},NEXT_DATA_SUFFIX:function(){return c},NEXT_META_SUFFIX:function(){return u},NEXT_QUERY_PARAM_PREFIX:function(){return r},NON_STANDARD_NODE_ENV:function(){return H},PAGES_DIR_ALIAS:function(){return P},PRERENDER_REVALIDATE_HEADER:function(){return n},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return M},ROOT_DIR_ALIAS:function(){return y},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return I},RSC_ACTION_ENCRYPTION_ALIAS:function(){return A},RSC_ACTION_PROXY_ALIAS:function(){return C},RSC_ACTION_VALIDATE_ALIAS:function(){return x},RSC_MOD_REF_PROXY_ALIAS:function(){return N},RSC_PREFETCH_SUFFIX:function(){return o},RSC_SUFFIX:function(){return i},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return w},SERVER_PROPS_SSG_CONFLICT:function(){return L},SERVER_RUNTIME:function(){return K},SSG_FALLBACK_EXPORT_ERROR:function(){return $},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return D},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return j},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return U},WEBPACK_LAYERS:function(){return Y},WEBPACK_RESOURCE_QUERIES:function(){return q}});let r="nxtP",n="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",o=".prefetch.rsc",i=".rsc",s=".action",c=".json",u=".meta",l=".body",d="x-next-cache-tags",p="x-next-cache-soft-tags",g="x-next-revalidated-tags",f="x-next-revalidate-tag-token",_=64,v=256,b=1024,S="_N_T_",h=31536e3,m="middleware",E=`(?:src/)?${m}`,O="instrumentation",P="private-next-pages",R="private-dot-next",y="private-next-root-dir",T="private-next-app-dir",N="next/dist/build/webpack/loaders/next-flight-loader/module-proxy",x="private-next-rsc-action-validate",C="private-next-rsc-server-reference",A="private-next-rsc-action-encryption",I="private-next-rsc-action-client-wrapper",M="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",D="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",w="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",L="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",j="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",B="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",G="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",U="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",F="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",H='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',$="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",k=["app","pages","components","lib","src"],X=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],K={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},W={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},Y={...W,GROUP:{serverOnly:[W.reactServerComponents,W.actionBrowser,W.appMetadataRoute,W.appRouteHandler,W.instrument],clientOnly:[W.serverSideRendering,W.appPagesBrowser],nonClientServerTarget:[W.middleware,W.api],app:[W.reactServerComponents,W.actionBrowser,W.appMetadataRoute,W.appRouteHandler,W.serverSideRendering,W.appPagesBrowser,W.shared,W.instrument]}},q={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},1800:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bgBlack:function(){return T},bgBlue:function(){return A},bgCyan:function(){return M},bgGreen:function(){return x},bgMagenta:function(){return I},bgRed:function(){return N},bgWhite:function(){return D},bgYellow:function(){return C},black:function(){return v},blue:function(){return m},bold:function(){return u},cyan:function(){return P},dim:function(){return l},gray:function(){return y},green:function(){return S},hidden:function(){return f},inverse:function(){return g},italic:function(){return d},magenta:function(){return E},purple:function(){return O},red:function(){return b},reset:function(){return c},strikethrough:function(){return _},underline:function(){return p},white:function(){return R},yellow:function(){return h}});let{env:n,stdout:a}=(null==(r=globalThis)?void 0:r.process)??{},o=n&&!n.NO_COLOR&&(n.FORCE_COLOR||(null==a?void 0:a.isTTY)&&!n.CI&&"dumb"!==n.TERM),i=(e,t,r,n)=>{let a=e.substring(0,n)+r,o=e.substring(n+t.length),s=o.indexOf(t);return~s?a+i(o,t,r,s):a+o},s=(e,t,r=e)=>o?n=>{let a=""+n,o=a.indexOf(t,e.length);return~o?e+i(a,t,r,o)+t:e+a+t}:String,c=o?e=>`\x1b[0m${e}\x1b[0m`:String,u=s("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),l=s("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),d=s("\x1b[3m","\x1b[23m"),p=s("\x1b[4m","\x1b[24m"),g=s("\x1b[7m","\x1b[27m"),f=s("\x1b[8m","\x1b[28m"),_=s("\x1b[9m","\x1b[29m"),v=s("\x1b[30m","\x1b[39m"),b=s("\x1b[31m","\x1b[39m"),S=s("\x1b[32m","\x1b[39m"),h=s("\x1b[33m","\x1b[39m"),m=s("\x1b[34m","\x1b[39m"),E=s("\x1b[35m","\x1b[39m"),O=s("\x1b[38;2;173;127;168m","\x1b[39m"),P=s("\x1b[36m","\x1b[39m"),R=s("\x1b[37m","\x1b[39m"),y=s("\x1b[90m","\x1b[39m"),T=s("\x1b[40m","\x1b[49m"),N=s("\x1b[41m","\x1b[49m"),x=s("\x1b[42m","\x1b[49m"),C=s("\x1b[43m","\x1b[49m"),A=s("\x1b[44m","\x1b[49m"),I=s("\x1b[45m","\x1b[49m"),M=s("\x1b[46m","\x1b[49m"),D=s("\x1b[47m","\x1b[49m")},6168:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").pathname}function n(e){return/https?:\/\//.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getPathname:function(){return r},isFullStringUrl:function(){return n}})},843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return u},trackDynamicDataAccessed:function(){return l},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return f}});let n=function(e){return e&&e.__esModule?e:{default:e}}(r(7914)),a=r(2855),o=r(2058),i=r(6168),s="function"==typeof n.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function u(e,t){let r=(0,i.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${r} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)g(e.prerenderState,t,r);else if(e.revalidate=0,e.isStaticGeneration){let n=new a.DynamicServerError(`Route ${r} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}}function l(e,t){let r=(0,i.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${r} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new o.StaticGenBailoutError(`Route ${r} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)g(e.prerenderState,t,r);else if(e.revalidate=0,e.isStaticGeneration){let n=new a.DynamicServerError(`Route ${r} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=n.stack,n}}function d({reason:e,prerenderState:t,pathname:r}){g(t,e,r)}function p(e,t){e.prerenderState&&g(e.prerenderState,t,e.urlPathname)}function g(e,t,r){v();let a=`Route ${r} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),n.default.unstable_postpone(a)}function f(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
2
+ ${t}`))}function v(){if(!s)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){v();let t=new AbortController;try{n.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},1854:(e,t)=>{"use strict";var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},9193:(e,t,r)=>{"use strict";e.exports=r(399)},7914:(e,t,r)=>{"use strict";e.exports=r(9193).vendored["react-rsc"].React},5579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addImplicitTags:function(){return p},patchFetch:function(){return f},validateRevalidate:function(){return u},validateTags:function(){return l}});let n=r(2988),a=r(6070),o=r(8323),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}(r(3029)),s=r(843);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function u(e,t){try{let r;if(!1===e)r=e;else if("number"==typeof e&&!isNaN(e)&&e>-1)r=e;else if(void 0!==e)throw Error(`Invalid revalidate value "${e}" on "${t}", must be a non-negative number or "false"`);return r}catch(e){if(e instanceof Error&&e.message.includes("Invalid revalidate"))throw e;return}}function l(e,t){let r=[],n=[];for(let a=0;a<e.length;a++){let i=e[a];if("string"!=typeof i?n.push({tag:i,reason:"invalid type, must be a string"}):i.length>o.NEXT_CACHE_TAG_MAX_LENGTH?n.push({tag:i,reason:`exceeded max length of ${o.NEXT_CACHE_TAG_MAX_LENGTH}`}):r.push(i),r.length>o.NEXT_CACHE_TAG_MAX_ITEMS){console.warn(`Warning: exceeded max tag count for ${t}, dropped tags:`,e.slice(a).join(", "));break}}if(n.length>0)for(let{tag:e,reason:r}of(console.warn(`Warning: invalid tags passed to ${t}: `),n))console.log(`tag: "${e}" ${r}`);return r}let d=e=>{let t=["/layout"];if(e.startsWith("/")){let r=e.split("/");for(let e=1;e<r.length+1;e++){let n=r.slice(0,e).join("/");n&&(n.endsWith("/page")||n.endsWith("/route")||(n=`${n}${n.endsWith("/")?"":"/"}layout`),t.push(n))}}return t};function p(e){var t,r;let n=[],{pagePath:a,urlPathname:i}=e;if(Array.isArray(e.tags)||(e.tags=[]),a)for(let r of d(a))r=`${o.NEXT_CACHE_IMPLICIT_TAG_ID}${r}`,(null==(t=e.tags)?void 0:t.includes(r))||e.tags.push(r),n.push(r);if(i){let t=new URL(i,"http://n").pathname,a=`${o.NEXT_CACHE_IMPLICIT_TAG_ID}${t}`;(null==(r=e.tags)?void 0:r.includes(a))||e.tags.push(a),n.push(a)}return n}function g(e,t){var r;e&&(null==(r=e.requestEndedState)||r.ended)}function f(e){var t;if("__nextPatched"in(t=globalThis.fetch)&&!0===t.__nextPatched)return;let r=globalThis.fetch;globalThis.fetch=function(e,{serverHooks:{DynamicServerError:t},staticGenerationAsyncStorage:r}){let c=async(c,d)=>{var f,_;let v;try{(v=new URL(c instanceof Request?c.url:c)).username="",v.password=""}catch{v=void 0}let b=(null==v?void 0:v.href)??"",S=Date.now(),h=(null==d?void 0:null==(f=d.method)?void 0:f.toUpperCase())||"GET",m=(null==d?void 0:null==(_=d.next)?void 0:_.internal)===!0,E="1"===process.env.NEXT_OTEL_FETCH_DISABLED;return(0,a.getTracer)().trace(m?n.NextNodeServerSpan.internalFetch:n.AppRenderSpan.fetch,{hideSpan:E,kind:a.SpanKind.CLIENT,spanName:["fetch",h,b].filter(Boolean).join(" "),attributes:{"http.url":b,"http.method":h,"net.peer.name":null==v?void 0:v.hostname,"net.peer.port":(null==v?void 0:v.port)||void 0}},async()=>{var n;let a,f,_;if(m)return e(c,d);let v=r.getStore();if(!v||v.isDraftMode)return e(c,d);let h=c&&"object"==typeof c&&"string"==typeof c.method,E=e=>(null==d?void 0:d[e])||(h?c[e]:null),O=e=>{var t,r,n;return void 0!==(null==d?void 0:null==(t=d.next)?void 0:t[e])?null==d?void 0:null==(r=d.next)?void 0:r[e]:h?null==(n=c.next)?void 0:n[e]:void 0},P=O("revalidate"),R=l(O("tags")||[],`fetch ${c.toString()}`);if(Array.isArray(R))for(let e of(v.tags||(v.tags=[]),R))v.tags.includes(e)||v.tags.push(e);let y=p(v),T=v.fetchCache,N=!!v.isUnstableNoStore,x=E("cache"),C="";"string"==typeof x&&void 0!==P&&(h&&"default"===x||i.warn(`fetch for ${b} on ${v.urlPathname} specified "cache: ${x}" and "revalidate: ${P}", only one should be specified.`),x=void 0),"force-cache"===x?P=!1:("no-cache"===x||"no-store"===x||"force-no-store"===T||"only-no-store"===T)&&(P=0),("no-cache"===x||"no-store"===x)&&(C=`cache: ${x}`),_=u(P,v.urlPathname);let A=E("headers"),I="function"==typeof(null==A?void 0:A.get)?A:new Headers(A||{}),M=I.get("authorization")||I.get("cookie"),D=!["get","head"].includes((null==(n=E("method"))?void 0:n.toLowerCase())||"get"),w=(M||D)&&0===v.revalidate;switch(T){case"force-no-store":C="fetchCache = force-no-store";break;case"only-no-store":if("force-cache"===x||void 0!==_&&(!1===_||_>0))throw Error(`cache: 'force-cache' used on fetch for ${b} with 'export const fetchCache = 'only-no-store'`);C="fetchCache = only-no-store";break;case"only-cache":if("no-store"===x)throw Error(`cache: 'no-store' used on fetch for ${b} with 'export const fetchCache = 'only-cache'`);break;case"force-cache":(void 0===P||0===P)&&(C="fetchCache = force-cache",_=!1)}void 0===_?"default-cache"===T?(_=!1,C="fetchCache = default-cache"):w?(_=0,C="auto no cache"):"default-no-store"===T?(_=0,C="fetchCache = default-no-store"):N?(_=0,C="noStore call"):(C="auto cache",_="boolean"!=typeof v.revalidate&&void 0!==v.revalidate&&v.revalidate):C||(C=`revalidate: ${_}`),v.forceStatic&&0===_||w||void 0!==v.revalidate&&("number"!=typeof _||!1!==v.revalidate&&("number"!=typeof v.revalidate||!(_<v.revalidate)))||(0===_&&(0,s.trackDynamicFetch)(v,"revalidate: 0"),v.revalidate=_);let L="number"==typeof _&&_>0||!1===_;if(v.incrementalCache&&L)try{a=await v.incrementalCache.fetchCacheKey(b,h?c:d)}catch(e){console.error("Failed to generate cache key for",c)}let j=v.nextFetchId??1;v.nextFetchId=j+1;let V="number"!=typeof _?o.CACHE_ONE_YEAR:_,B=async(t,r)=>{let n=["cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","window","duplex",...t?[]:["signal"]];if(h){let e=c,t={body:e._ogBody||e.body};for(let r of n)t[r]=e[r];c=new Request(e.url,t)}else if(d){let{_ogBody:e,body:r,signal:n,...a}=d;d={...a,body:e||r,signal:t?void 0:n}}let o={...d,next:{...null==d?void 0:d.next,fetchType:"origin",fetchIdx:j}};return e(c,o).then(async e=>{if(t||g(v,{start:S,url:b,cacheReason:r||C,cacheStatus:0===_||r?"skip":"miss",status:e.status,method:o.method||"GET"}),200===e.status&&v.incrementalCache&&a&&L){let t=Buffer.from(await e.arrayBuffer());try{await v.incrementalCache.set(a,{kind:"FETCH",data:{headers:Object.fromEntries(e.headers.entries()),body:t.toString("base64"),status:e.status,url:e.url},revalidate:V},{fetchCache:!0,revalidate:_,fetchUrl:b,fetchIdx:j,tags:R})}catch(e){console.warn("Failed to set fetch cache",c,e)}let r=new Response(t,{headers:new Headers(e.headers),status:e.status});return Object.defineProperty(r,"url",{value:e.url}),r}return e})},G=()=>Promise.resolve(),U=!1;if(a&&v.incrementalCache){G=await v.incrementalCache.lock(a);let e=v.isOnDemandRevalidate?null:await v.incrementalCache.get(a,{kindHint:"fetch",revalidate:_,fetchUrl:b,fetchIdx:j,tags:R,softTags:y});if(e?await G():f="cache-control: no-cache (hard refresh)",(null==e?void 0:e.value)&&"FETCH"===e.value.kind){if(v.isRevalidate&&e.isStale)U=!0;else{e.isStale&&(v.pendingRevalidates??={},v.pendingRevalidates[a]||(v.pendingRevalidates[a]=B(!0).catch(console.error).finally(()=>{v.pendingRevalidates??={},delete v.pendingRevalidates[a||""]})));let t=e.value.data;g(v,{start:S,url:b,cacheReason:C,cacheStatus:"hit",status:t.status||200,method:(null==d?void 0:d.method)||"GET"});let r=new Response(Buffer.from(t.body,"base64"),{headers:t.headers,status:t.status});return Object.defineProperty(r,"url",{value:e.value.data.url}),r}}}if(v.isStaticGeneration&&d&&"object"==typeof d){let{cache:e}=d;if(!v.forceStatic&&"no-store"===e){let e=`no-store fetch ${c}${v.urlPathname?` ${v.urlPathname}`:""}`;(0,s.trackDynamicFetch)(v,e),v.revalidate=0;let r=new t(e);throw v.dynamicUsageErr=r,v.dynamicUsageDescription=e,r}let r="next"in d,{next:n={}}=d;if("number"==typeof n.revalidate&&(void 0===v.revalidate||"number"==typeof v.revalidate&&n.revalidate<v.revalidate)){if(!v.forceDynamic&&!v.forceStatic&&0===n.revalidate){let e=`revalidate: 0 fetch ${c}${v.urlPathname?` ${v.urlPathname}`:""}`;(0,s.trackDynamicFetch)(v,e);let r=new t(e);throw v.dynamicUsageErr=r,v.dynamicUsageDescription=e,r}v.forceStatic&&0===n.revalidate||(v.revalidate=n.revalidate)}r&&delete d.next}if(!a||!U)return B(!1,f).finally(G);{v.pendingRevalidates??={};let e=v.pendingRevalidates[a];return e?(await e).clone():v.pendingRevalidates[a]=B(!0,f).finally(async()=>{v.pendingRevalidates??={},delete v.pendingRevalidates[a||""],await G()})}})};return c.__nextPatched=!0,c.__nextGetStaticStore=()=>r,c._nextOriginalFetch=e,c}(r,e)}},2988:(e,t)=>{"use strict";var r,n,a,o,i,s,c,u,l,d,p,g;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRenderSpan:function(){return c},AppRouteRouteHandlersSpan:function(){return d},BaseServerSpan:function(){return r},LoadComponentsSpan:function(){return n},LogSpanAllowList:function(){return _},MiddlewareSpan:function(){return g},NextNodeServerSpan:function(){return o},NextServerSpan:function(){return a},NextVanillaSpanAllowlist:function(){return f},NodeSpan:function(){return l},RenderSpan:function(){return s},ResolveMetadataSpan:function(){return p},RouterSpan:function(){return u},StartServerSpan:function(){return i}}),function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"}(r||(r={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(n||(n={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(a||(a={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.createComponentTree="NextNodeServer.createComponentTree",e.clientComponentLoading="NextNodeServer.clientComponentLoading",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.startResponse="NextNodeServer.startResponse",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(o||(o={})),(i||(i={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(s||(s={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(c||(c={})),(u||(u={})).executeRoute="Router.executeRoute",(l||(l={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(p||(p={})),(g||(g={})).execute="Middleware.execute";let f=["Middleware.execute","BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.createComponentTree","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule","NextNodeServer.startResponse","NextNodeServer.clientComponentLoading"],_=["NextNodeServer.findPageComponents","NextNodeServer.createComponentTree","NextNodeServer.clientComponentLoading"]},6070:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SpanKind:function(){return u},SpanStatusCode:function(){return c},getTracer:function(){return S}});let a=r(2988);try{n=r(2660)}catch(e){n=r(2660)}let{context:o,propagation:i,trace:s,SpanStatusCode:c,SpanKind:u,ROOT_CONTEXT:l}=n,d=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then,p=(e,t)=>{(null==t?void 0:t.bubble)===!0?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:c.ERROR,message:null==t?void 0:t.message})),e.end()},g=new Map,f=n.createContextKey("next.rootSpanId"),_=0,v=()=>_++;class b{getTracerInstance(){return s.getTracer("next.js","0.0.1")}getContext(){return o}getActiveScopeSpan(){return s.getSpan(null==o?void 0:o.active())}withPropagatedContext(e,t,r){let n=o.active();if(s.getSpanContext(n))return t();let a=i.extract(n,e,r);return o.with(a,t)}trace(...e){var t;let[r,n,i]=e,{fn:c,options:u}="function"==typeof n?{fn:n,options:{}}:{fn:i,options:{...n}},_=u.spanName??r;if(!a.NextVanillaSpanAllowlist.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||u.hideSpan)return c();let b=this.getSpanContext((null==u?void 0:u.parentSpan)??this.getActiveScopeSpan()),S=!1;b?(null==(t=s.getSpanContext(b))?void 0:t.isRemote)&&(S=!0):(b=(null==o?void 0:o.active())??l,S=!0);let h=v();return u.attributes={"next.span_name":_,"next.span_type":r,...u.attributes},o.with(b.setValue(f,h),()=>this.getTracerInstance().startActiveSpan(_,u,e=>{let t="performance"in globalThis?globalThis.performance.now():void 0,n=()=>{g.delete(h),t&&process.env.NEXT_OTEL_PERFORMANCE_PREFIX&&a.LogSpanAllowList.includes(r||"")&&performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-${(r.split(".").pop()||"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}`,{start:t,end:performance.now()})};S&&g.set(h,new Map(Object.entries(u.attributes??{})));try{if(c.length>1)return c(e,t=>p(e,t));let t=c(e);if(d(t))return t.then(t=>(e.end(),t)).catch(t=>{throw p(e,t),t}).finally(n);return e.end(),n(),t}catch(t){throw p(e,t),n(),t}}))}wrap(...e){let t=this,[r,n,i]=3===e.length?e:[e[0],{},e[1]];return a.NextVanillaSpanAllowlist.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof i&&(e=e.apply(this,arguments));let a=arguments.length-1,s=arguments[a];if("function"!=typeof s)return t.trace(r,e,()=>i.apply(this,arguments));{let n=t.getContext().bind(o.active(),s);return t.trace(r,e,(e,t)=>(arguments[a]=function(e){return null==t||t(e),n.apply(this,arguments)},i.apply(this,arguments)))}}:i}startSpan(...e){let[t,r]=e,n=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,n)}getSpanContext(e){return e?s.setSpan(o.active(),e):void 0}getRootSpanAttributes(){let e=o.active().getValue(f);return g.get(e)}}let S=(()=>{let e=new b;return()=>e})()}};
@@ -0,0 +1,12 @@
1
+ exports.id=486,exports.ids=[486],exports.modules={2507:(t,e,i)=>{"use strict";var s=i(1455);i.o(s,"NextResponse")&&i.d(e,{NextResponse:function(){return s.NextResponse}})},6473:t=>{"use strict";var e=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,n={};function o(t){var e;let i=["path"in t&&t.path&&`Path=${t.path}`,"expires"in t&&(t.expires||0===t.expires)&&`Expires=${("number"==typeof t.expires?new Date(t.expires):t.expires).toUTCString()}`,"maxAge"in t&&"number"==typeof t.maxAge&&`Max-Age=${t.maxAge}`,"domain"in t&&t.domain&&`Domain=${t.domain}`,"secure"in t&&t.secure&&"Secure","httpOnly"in t&&t.httpOnly&&"HttpOnly","sameSite"in t&&t.sameSite&&`SameSite=${t.sameSite}`,"partitioned"in t&&t.partitioned&&"Partitioned","priority"in t&&t.priority&&`Priority=${t.priority}`].filter(Boolean),s=`${t.name}=${encodeURIComponent(null!=(e=t.value)?e:"")}`;return 0===i.length?s:`${s}; ${i.join("; ")}`}function h(t){let e=new Map;for(let i of t.split(/; */)){if(!i)continue;let t=i.indexOf("=");if(-1===t){e.set(i,"true");continue}let[s,r]=[i.slice(0,t),i.slice(t+1)];try{e.set(s,decodeURIComponent(null!=r?r:"true"))}catch{}}return e}function a(t){var e,i;if(!t)return;let[[s,r],...n]=h(t),{domain:o,expires:a,httponly:c,maxage:p,path:d,samesite:f,secure:g,partitioned:m,priority:b}=Object.fromEntries(n.map(([t,e])=>[t.toLowerCase(),e]));return function(t){let e={};for(let i in t)t[i]&&(e[i]=t[i]);return e}({name:s,value:decodeURIComponent(r),domain:o,...a&&{expires:new Date(a)},...c&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:d,...f&&{sameSite:l.includes(e=(e=f).toLowerCase())?e:void 0},...g&&{secure:!0},...b&&{priority:u.includes(i=(i=b).toLowerCase())?i:void 0},...m&&{partitioned:!0}})}((t,i)=>{for(var s in i)e(t,s,{get:i[s],enumerable:!0})})(n,{RequestCookies:()=>c,ResponseCookies:()=>p,parseCookie:()=>h,parseSetCookie:()=>a,stringifyCookie:()=>o}),t.exports=((t,n,o,h)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let o of s(n))r.call(t,o)||void 0===o||e(t,o,{get:()=>n[o],enumerable:!(h=i(n,o))||h.enumerable});return t})(e({},"__esModule",{value:!0}),n);var l=["strict","lax","none"],u=["low","medium","high"],c=class{constructor(t){this._parsed=new Map,this._headers=t;let e=t.get("cookie");if(e)for(let[t,i]of h(e))this._parsed.set(t,{name:t,value:i})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...t){let e="string"==typeof t[0]?t[0]:t[0].name;return this._parsed.get(e)}getAll(...t){var e;let i=Array.from(this._parsed);if(!t.length)return i.map(([t,e])=>e);let s="string"==typeof t[0]?t[0]:null==(e=t[0])?void 0:e.name;return i.filter(([t])=>t===s).map(([t,e])=>e)}has(t){return this._parsed.has(t)}set(...t){let[e,i]=1===t.length?[t[0].name,t[0].value]:t,s=this._parsed;return s.set(e,{name:e,value:i}),this._headers.set("cookie",Array.from(s).map(([t,e])=>o(e)).join("; ")),this}delete(t){let e=this._parsed,i=Array.isArray(t)?t.map(t=>e.delete(t)):e.delete(t);return this._headers.set("cookie",Array.from(e).map(([t,e])=>o(e)).join("; ")),i}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(t=>`${t.name}=${encodeURIComponent(t.value)}`).join("; ")}},p=class{constructor(t){var e,i,s;this._parsed=new Map,this._headers=t;let r=null!=(s=null!=(i=null==(e=t.getSetCookie)?void 0:e.call(t))?i:t.get("set-cookie"))?s:[];for(let t of Array.isArray(r)?r:function(t){if(!t)return[];var e,i,s,r,n,o=[],h=0;function a(){for(;h<t.length&&/\s/.test(t.charAt(h));)h+=1;return h<t.length}for(;h<t.length;){for(e=h,n=!1;a();)if(","===(i=t.charAt(h))){for(s=h,h+=1,a(),r=h;h<t.length&&"="!==(i=t.charAt(h))&&";"!==i&&","!==i;)h+=1;h<t.length&&"="===t.charAt(h)?(n=!0,h=r,o.push(t.substring(e,s)),e=h):h=s+1}else h+=1;(!n||h>=t.length)&&o.push(t.substring(e,t.length))}return o}(r)){let e=a(t);e&&this._parsed.set(e.name,e)}}get(...t){let e="string"==typeof t[0]?t[0]:t[0].name;return this._parsed.get(e)}getAll(...t){var e;let i=Array.from(this._parsed.values());if(!t.length)return i;let s="string"==typeof t[0]?t[0]:null==(e=t[0])?void 0:e.name;return i.filter(t=>t.name===s)}has(t){return this._parsed.has(t)}set(...t){let[e,i,s]=1===t.length?[t[0].name,t[0].value,t[0]]:t,r=this._parsed;return r.set(e,function(t={name:"",value:""}){return"number"==typeof t.expires&&(t.expires=new Date(t.expires)),t.maxAge&&(t.expires=new Date(Date.now()+1e3*t.maxAge)),(null===t.path||void 0===t.path)&&(t.path="/"),t}({name:e,value:i,...s})),function(t,e){for(let[,i]of(e.delete("set-cookie"),t)){let t=o(i);e.append("set-cookie",t)}}(r,this._headers),this}delete(...t){let[e,i,s]="string"==typeof t[0]?[t[0]]:[t[0].name,t[0].path,t[0].domain];return this.set({name:e,path:i,domain:s,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(o).join("; ")}}},7402:(t,e,i)=>{var s;(()=>{var r={226:function(r,n){!function(o,h){"use strict";var a="function",l="undefined",u="object",c="string",p="major",d="model",f="name",g="type",m="vendor",b="version",w="architecture",y="console",v="mobile",S="tablet",x="smarttv",k="wearable",E="embedded",C="Amazon",P="Apple",O="ASUS",R="BlackBerry",A="Browser",_="Chrome",T="Firefox",L="Google",j="Huawei",M="Microsoft",N="Motorola",F="Opera",D="Samsung",W="Sharp",z="Sony",U="Xiaomi",I="Zebra",$="Facebook",B="Chromium OS",G="Mac OS",q=function(t,e){var i={};for(var s in t)e[s]&&e[s].length%2==0?i[s]=e[s].concat(t[s]):i[s]=t[s];return i},H=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].toUpperCase()]=t[i];return e},V=function(t,e){return typeof t===c&&-1!==Z(e).indexOf(Z(t))},Z=function(t){return t.toLowerCase()},J=function(t,e){if(typeof t===c)return t=t.replace(/^\s\s*/,""),typeof e===l?t:t.substring(0,350)},X=function(t,e){for(var i,s,r,n,o,l,c=0;c<e.length&&!o;){var p=e[c],d=e[c+1];for(i=s=0;i<p.length&&!o&&p[i];)if(o=p[i++].exec(t))for(r=0;r<d.length;r++)l=o[++s],typeof(n=d[r])===u&&n.length>0?2===n.length?typeof n[1]==a?this[n[0]]=n[1].call(this,l):this[n[0]]=n[1]:3===n.length?typeof n[1]!==a||n[1].exec&&n[1].test?this[n[0]]=l?l.replace(n[1],n[2]):void 0:this[n[0]]=l?n[1].call(this,l,n[2]):void 0:4===n.length&&(this[n[0]]=l?n[3].call(this,l.replace(n[1],n[2])):void 0):this[n]=l||h;c+=2}},K=function(t,e){for(var i in e)if(typeof e[i]===u&&e[i].length>0){for(var s=0;s<e[i].length;s++)if(V(e[i][s],t))return"?"===i?h:i}else if(V(e[i],t))return"?"===i?h:i;return t},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,b],[/opios[\/ ]+([\w\.]+)/i],[b,[f,F+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[f,F]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[f,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+A],b],[/\bfocus\/([\w\.]+)/i],[b,[f,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[f,F+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[f,F+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[f,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[b,[f,T]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+A]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+A],b],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,$],b],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[f,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,_+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[f,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[b,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[f,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,b],[/(cobalt)\/([\w\.]+)/i],[f,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,Z]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,D],[g,S]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,D],[g,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[m,P],[g,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,P],[g,S]],[/(macintosh);/i],[d,[m,P]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,W],[g,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,j],[g,S]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,j],[g,v]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[m,U],[g,v]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[m,U],[g,S]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,"OPPO"],[g,v]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,"Vivo"],[g,v]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[m,"Realme"],[g,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,N],[g,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,N],[g,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,"LG"],[g,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,"LG"],[g,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,"Lenovo"],[g,S]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[m,"Nokia"],[g,v]],[/(pixel c)\b/i],[d,[m,L],[g,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,L],[g,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,z],[g,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[m,z],[g,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,"OnePlus"],[g,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,C],[g,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[m,C],[g,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[g,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,R],[g,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,O],[g,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,O],[g,v]],[/(nexus 9)/i],[d,[m,"HTC"],[g,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g," "],[g,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,"Acer"],[g,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,"Meizu"],[g,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[g,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[g,S]],[/(surface duo)/i],[d,[m,M],[g,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,"Fairphone"],[g,v]],[/(u304aa)/i],[d,[m,"AT&T"],[g,v]],[/\bsie-(\w*)/i],[d,[m,"Siemens"],[g,v]],[/\b(rct\w+) b/i],[d,[m,"RCA"],[g,S]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,"Dell"],[g,S]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,"Verizon"],[g,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,"Barnes & Noble"],[g,S]],[/\b(tm\d{3}\w+) b/i],[d,[m,"NuVision"],[g,S]],[/\b(k88) b/i],[d,[m,"ZTE"],[g,S]],[/\b(nx\d{3}j) b/i],[d,[m,"ZTE"],[g,v]],[/\b(gen\d{3}) b.+49h/i],[d,[m,"Swiss"],[g,v]],[/\b(zur\d{3}) b/i],[d,[m,"Swiss"],[g,S]],[/\b((zeki)?tb.*\b) b/i],[d,[m,"Zeki"],[g,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],d,[g,S]],[/\b(ns-?\w{0,9}) b/i],[d,[m,"Insignia"],[g,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,"NextBook"],[g,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],d,[g,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],d,[g,v]],[/\b(ph-1) /i],[d,[m,"Essential"],[g,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,"Envizen"],[g,S]],[/\b(trio[-\w\. ]+) b/i],[d,[m,"MachSpeed"],[g,S]],[/\btu_(1491) b/i],[d,[m,"Rotor"],[g,S]],[/(shield[\w ]+) b/i],[d,[m,"Nvidia"],[g,S]],[/(sprint) (\w+)/i],[m,d,[g,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[m,M],[g,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,I],[g,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,I],[g,v]],[/smart-tv.+(samsung)/i],[m,[g,x]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[m,D],[g,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,"LG"],[g,x]],[/(apple) ?tv/i],[m,[d,P+" TV"],[g,x]],[/crkey/i],[[d,_+"cast"],[m,L],[g,x]],[/droid.+aft(\w)( bui|\))/i],[d,[m,C],[g,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,W],[g,x]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,z],[g,x]],[/(mitv-\w{5}) bui/i],[d,[m,U],[g,x]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[g,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,J],[d,J],[g,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[g,y]],[/droid.+; (shield) bui/i],[d,[m,"Nvidia"],[g,y]],[/(playstation [345portablevi]+)/i],[d,[m,z],[g,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,M],[g,y]],[/((pebble))app/i],[m,d,[g,k]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,P],[g,k]],[/droid.+; (glass) \d/i],[d,[m,L],[g,k]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,I],[g,k]],[/(quest( 2| pro)?)/i],[d,[m,$],[g,k]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[g,E]],[/(aeobc)\b/i],[d,[m,C],[g,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[g,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[g,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[b,K,Y]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[b,K,Y]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,G],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,b],[/\(bb(10);/i],[b,[f,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[f,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[f,_+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,B],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,b],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,b]]},tt=function(t,e){if(typeof t===u&&(e=t,t=h),!(this instanceof tt))return new tt(t,e).getResult();var i=typeof o!==l&&o.navigator?o.navigator:h,s=t||(i&&i.userAgent?i.userAgent:""),r=i&&i.userAgentData?i.userAgentData:h,n=e?q(Q,e):Q,y=i&&i.userAgent==s;return this.getBrowser=function(){var t,e={};return e[f]=h,e[b]=h,X.call(e,s,n.browser),e[p]=typeof(t=e[b])===c?t.replace(/[^\d\.]/g,"").split(".")[0]:h,y&&i&&i.brave&&typeof i.brave.isBrave==a&&(e[f]="Brave"),e},this.getCPU=function(){var t={};return t[w]=h,X.call(t,s,n.cpu),t},this.getDevice=function(){var t={};return t[m]=h,t[d]=h,t[g]=h,X.call(t,s,n.device),y&&!t[g]&&r&&r.mobile&&(t[g]=v),y&&"Macintosh"==t[d]&&i&&typeof i.standalone!==l&&i.maxTouchPoints&&i.maxTouchPoints>2&&(t[d]="iPad",t[g]=S),t},this.getEngine=function(){var t={};return t[f]=h,t[b]=h,X.call(t,s,n.engine),t},this.getOS=function(){var t={};return t[f]=h,t[b]=h,X.call(t,s,n.os),y&&!t[f]&&r&&"Unknown"!=r.platform&&(t[f]=r.platform.replace(/chrome os/i,B).replace(/macos/i,G)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return s},this.setUA=function(t){return s=typeof t===c&&t.length>350?J(t,350):t,this},this.setUA(s),this};tt.VERSION="1.0.35",tt.BROWSER=H([f,b,p]),tt.CPU=H([w]),tt.DEVICE=H([d,m,g,y,v,x,S,k,E]),tt.ENGINE=tt.OS=H([f,b]),typeof n!==l?(r.exports&&(n=r.exports=tt),n.UAParser=tt):i.amdO?void 0!==(s=(function(){return tt}).call(e,i,e,t))&&(t.exports=s):typeof o!==l&&(o.UAParser=tt);var te=typeof o!==l&&(o.jQuery||o.Zepto);if(te&&!te.ua){var ti=new tt;te.ua=ti.getResult(),te.ua.get=function(){return ti.getUA()},te.ua.set=function(t){ti.setUA(t);var e=ti.getResult();for(var i in e)te.ua[i]=e[i]}}}("object"==typeof window?window:this)}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}},s=!0;try{r[t].call(i.exports,i,i.exports,o),s=!1}finally{s&&delete n[t]}return i.exports}o.ab=__dirname+"/";var h=o(226);t.exports=h})()},6751:(t,e,i)=>{"use strict";t.exports=i(517)},4442:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{PageSignatureError:function(){return i},RemovedPageError:function(){return s},RemovedUAError:function(){return r}});class i extends Error{constructor({page:t}){super(`The middleware "${t}" accepts an async API directly with the form:
2
+
3
+ export function middleware(request, event) {
4
+ return NextResponse.redirect('/new-location')
5
+ }
6
+
7
+ Read more: https://nextjs.org/docs/messages/middleware-new-signature
8
+ `)}}class s extends Error{constructor(){super(`The request.page has been deprecated in favour of \`URLPattern\`.
9
+ Read more: https://nextjs.org/docs/messages/middleware-request-page
10
+ `)}}class r extends Error{constructor(){super(`The request.ua has been removed in favour of \`userAgent\` function.
11
+ Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
12
+ `)}}},1455:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{ImageResponse:function(){return s.ImageResponse},NextRequest:function(){return r.NextRequest},NextResponse:function(){return n.NextResponse},URLPattern:function(){return h.URLPattern},userAgent:function(){return o.userAgent},userAgentFromString:function(){return o.userAgentFromString}});let s=i(7306),r=i(6171),n=i(2458),o=i(9387),h=i(90)},1819:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NextURL",{enumerable:!0,get:function(){return u}});let s=i(3622),r=i(948),n=i(2962),o=i(4112),h=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function a(t,e){return new URL(String(t).replace(h,"localhost"),e&&String(e).replace(h,"localhost"))}let l=Symbol("NextURLInternal");class u{constructor(t,e,i){let s,r;"object"==typeof e&&"pathname"in e||"string"==typeof e?(s=e,r=i||{}):r=i||e||{},this[l]={url:a(t,s??r.base),options:r,basePath:""},this.analyze()}analyze(){var t,e,i,r,h;let a=(0,o.getNextPathnameInfo)(this[l].url.pathname,{nextConfig:this[l].options.nextConfig,parseData:!0,i18nProvider:this[l].options.i18nProvider}),u=(0,n.getHostname)(this[l].url,this[l].options.headers);this[l].domainLocale=this[l].options.i18nProvider?this[l].options.i18nProvider.detectDomainLocale(u):(0,s.detectDomainLocale)(null==(e=this[l].options.nextConfig)?void 0:null==(t=e.i18n)?void 0:t.domains,u);let c=(null==(i=this[l].domainLocale)?void 0:i.defaultLocale)||(null==(h=this[l].options.nextConfig)?void 0:null==(r=h.i18n)?void 0:r.defaultLocale);this[l].url.pathname=a.pathname,this[l].defaultLocale=c,this[l].basePath=a.basePath??"",this[l].buildId=a.buildId,this[l].locale=a.locale??c,this[l].trailingSlash=a.trailingSlash}formatPathname(){return(0,r.formatNextPathnameInfo)({basePath:this[l].basePath,buildId:this[l].buildId,defaultLocale:this[l].options.forceLocale?void 0:this[l].defaultLocale,locale:this[l].locale,pathname:this[l].url.pathname,trailingSlash:this[l].trailingSlash})}formatSearch(){return this[l].url.search}get buildId(){return this[l].buildId}set buildId(t){this[l].buildId=t}get locale(){return this[l].locale??""}set locale(t){var e,i;if(!this[l].locale||!(null==(i=this[l].options.nextConfig)?void 0:null==(e=i.i18n)?void 0:e.locales.includes(t)))throw TypeError(`The NextURL configuration includes no locale "${t}"`);this[l].locale=t}get defaultLocale(){return this[l].defaultLocale}get domainLocale(){return this[l].domainLocale}get searchParams(){return this[l].url.searchParams}get host(){return this[l].url.host}set host(t){this[l].url.host=t}get hostname(){return this[l].url.hostname}set hostname(t){this[l].url.hostname=t}get port(){return this[l].url.port}set port(t){this[l].url.port=t}get protocol(){return this[l].url.protocol}set protocol(t){this[l].url.protocol=t}get href(){let t=this.formatPathname(),e=this.formatSearch();return`${this.protocol}//${this.host}${t}${e}${this.hash}`}set href(t){this[l].url=a(t),this.analyze()}get origin(){return this[l].url.origin}get pathname(){return this[l].url.pathname}set pathname(t){this[l].url.pathname=t}get hash(){return this[l].url.hash}set hash(t){this[l].url.hash=t}get search(){return this[l].url.search}set search(t){this[l].url.search=t}get password(){return this[l].url.password}set password(t){this[l].url.password=t}get username(){return this[l].url.username}set username(t){this[l].url.username=t}get basePath(){return this[l].basePath}set basePath(t){this[l].basePath=t.startsWith("/")?t:`/${t}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new u(String(this),this[l].options)}}},4266:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{RequestCookies:function(){return s.RequestCookies},ResponseCookies:function(){return s.ResponseCookies}});let s=i(6473)},7306:(t,e)=>{"use strict";function i(){throw Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead')}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageResponse",{enumerable:!0,get:function(){return i}})},6171:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{INTERNALS:function(){return h},NextRequest:function(){return a}});let s=i(1819),r=i(2697),n=i(4442),o=i(4266),h=Symbol("internal request");class a extends Request{constructor(t,e={}){let i="string"!=typeof t&&"url"in t?t.url:String(t);(0,r.validateURL)(i),t instanceof Request?super(t,e):super(i,e);let n=new s.NextURL(i,{headers:(0,r.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:e.nextConfig});this[h]={cookies:new o.RequestCookies(this.headers),geo:e.geo||{},ip:e.ip,nextUrl:n,url:n.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,geo:this.geo,ip:this.ip,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[h].cookies}get geo(){return this[h].geo}get ip(){return this[h].ip}get nextUrl(){return this[h].nextUrl}get page(){throw new n.RemovedPageError}get ua(){throw new n.RemovedUAError}get url(){return this[h].url}}},2458:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NextResponse",{enumerable:!0,get:function(){return l}});let s=i(1819),r=i(2697),n=i(4266),o=Symbol("internal response"),h=new Set([301,302,303,307,308]);function a(t,e){var i;if(null==t?void 0:null==(i=t.request)?void 0:i.headers){if(!(t.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let i=[];for(let[s,r]of t.request.headers)e.set("x-middleware-request-"+s,r),i.push(s);e.set("x-middleware-override-headers",i.join(","))}}class l extends Response{constructor(t,e={}){super(t,e),this[o]={cookies:new n.ResponseCookies(this.headers),url:e.url?new s.NextURL(e.url,{headers:(0,r.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:e.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[o].cookies}static json(t,e){let i=Response.json(t,e);return new l(i.body,i)}static redirect(t,e){let i="number"==typeof e?e:(null==e?void 0:e.status)??307;if(!h.has(i))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let s="object"==typeof e?e:{},n=new Headers(null==s?void 0:s.headers);return n.set("Location",(0,r.validateURL)(t)),new l(null,{...s,headers:n,status:i})}static rewrite(t,e){let i=new Headers(null==e?void 0:e.headers);return i.set("x-middleware-rewrite",(0,r.validateURL)(t)),a(e,i),new l(null,{...e,headers:i})}static next(t){let e=new Headers(null==t?void 0:t.headers);return e.set("x-middleware-next","1"),a(t,e),new l(null,{...t,headers:e})}}},90:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"URLPattern",{enumerable:!0,get:function(){return i}});let i="undefined"==typeof URLPattern?void 0:URLPattern},9387:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{isBot:function(){return r},userAgent:function(){return o},userAgentFromString:function(){return n}});let s=function(t){return t&&t.__esModule?t:{default:t}}(i(7402));function r(t){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(t)}function n(t){return{...(0,s.default)(t),isBot:void 0!==t&&r(t)}}function o({headers:t}){return n(t.get("user-agent")||void 0)}},2697:(t,e)=>{"use strict";function i(t){let e=new Headers;for(let[i,s]of Object.entries(t))for(let t of Array.isArray(s)?s:[s])void 0!==t&&("number"==typeof t&&(t=t.toString()),e.append(i,t));return e}function s(t){var e,i,s,r,n,o=[],h=0;function a(){for(;h<t.length&&/\s/.test(t.charAt(h));)h+=1;return h<t.length}for(;h<t.length;){for(e=h,n=!1;a();)if(","===(i=t.charAt(h))){for(s=h,h+=1,a(),r=h;h<t.length&&"="!==(i=t.charAt(h))&&";"!==i&&","!==i;)h+=1;h<t.length&&"="===t.charAt(h)?(n=!0,h=r,o.push(t.substring(e,s)),e=h):h=s+1}else h+=1;(!n||h>=t.length)&&o.push(t.substring(e,t.length))}return o}function r(t){let e={},i=[];if(t)for(let[r,n]of t.entries())"set-cookie"===r.toLowerCase()?(i.push(...s(n)),e[r]=1===i.length?i[0]:i):e[r]=n;return e}function n(t){try{return String(new URL(String(t)))}catch(e){throw Error(`URL is malformed "${String(t)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:e})}}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{fromNodeOutgoingHttpHeaders:function(){return i},splitCookiesString:function(){return s},toNodeOutgoingHttpHeaders:function(){return r},validateURL:function(){return n}})},2962:(t,e)=>{"use strict";function i(t,e){let i;if((null==e?void 0:e.host)&&!Array.isArray(e.host))i=e.host.toString().split(":",1)[0];else{if(!t.hostname)return;i=t.hostname}return i.toLowerCase()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getHostname",{enumerable:!0,get:function(){return i}})},3622:(t,e)=>{"use strict";function i(t,e,i){if(t)for(let n of(i&&(i=i.toLowerCase()),t)){var s,r;if(e===(null==(s=n.domain)?void 0:s.split(":",1)[0].toLowerCase())||i===n.defaultLocale.toLowerCase()||(null==(r=n.locales)?void 0:r.some(t=>t.toLowerCase()===i)))return n}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return i}})},789:(t,e)=>{"use strict";function i(t,e){let i;let s=t.split("/");return(e||[]).some(e=>!!s[1]&&s[1].toLowerCase()===e.toLowerCase()&&(i=e,s.splice(1,1),t=s.join("/")||"/",!0)),{pathname:t,detectedLocale:i}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return i}})},8444:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});let s=i(4729),r=i(9106);function n(t,e,i,n){if(!e||e===i)return t;let o=t.toLowerCase();return!n&&((0,r.pathHasPrefix)(o,"/api")||(0,r.pathHasPrefix)(o,"/"+e.toLowerCase()))?t:(0,s.addPathPrefix)(t,"/"+e)}},4729:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});let s=i(7329);function r(t,e){if(!t.startsWith("/")||!e)return t;let{pathname:i,query:r,hash:n}=(0,s.parsePath)(t);return""+e+i+r+n}},3701:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathSuffix",{enumerable:!0,get:function(){return r}});let s=i(7329);function r(t,e){if(!t.startsWith("/")||!e)return t;let{pathname:i,query:r,hash:n}=(0,s.parsePath)(t);return""+i+e+r+n}},948:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatNextPathnameInfo",{enumerable:!0,get:function(){return h}});let s=i(5184),r=i(4729),n=i(3701),o=i(8444);function h(t){let e=(0,o.addLocale)(t.pathname,t.locale,t.buildId?void 0:t.defaultLocale,t.ignorePrefix);return(t.buildId||!t.trailingSlash)&&(e=(0,s.removeTrailingSlash)(e)),t.buildId&&(e=(0,n.addPathSuffix)((0,r.addPathPrefix)(e,"/_next/data/"+t.buildId),"/"===t.pathname?"index.json":".json")),e=(0,r.addPathPrefix)(e,t.basePath),!t.buildId&&t.trailingSlash?e.endsWith("/")?e:(0,n.addPathSuffix)(e,"/"):(0,s.removeTrailingSlash)(e)}},4112:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let s=i(789),r=i(7978),n=i(9106);function o(t,e){var i,o;let{basePath:h,i18n:a,trailingSlash:l}=null!=(i=e.nextConfig)?i:{},u={pathname:t,trailingSlash:"/"!==t?t.endsWith("/"):l};h&&(0,n.pathHasPrefix)(u.pathname,h)&&(u.pathname=(0,r.removePathPrefix)(u.pathname,h),u.basePath=h);let c=u.pathname;if(u.pathname.startsWith("/_next/data/")&&u.pathname.endsWith(".json")){let t=u.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),i=t[0];u.buildId=i,c="index"!==t[1]?"/"+t.slice(1).join("/"):"/",!0===e.parseData&&(u.pathname=c)}if(a){let t=e.i18nProvider?e.i18nProvider.analyze(u.pathname):(0,s.normalizeLocalePath)(u.pathname,a.locales);u.locale=t.detectedLocale,u.pathname=null!=(o=t.pathname)?o:u.pathname,!t.detectedLocale&&u.buildId&&(t=e.i18nProvider?e.i18nProvider.analyze(c):(0,s.normalizeLocalePath)(c,a.locales)).detectedLocale&&(u.locale=t.detectedLocale)}return u}},7329:(t,e)=>{"use strict";function i(t){let e=t.indexOf("#"),i=t.indexOf("?"),s=i>-1&&(e<0||i<e);return s||e>-1?{pathname:t.substring(0,s?i:e),query:s?t.substring(i,e>-1?e:void 0):"",hash:e>-1?t.slice(e):""}:{pathname:t,query:"",hash:""}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return i}})},9106:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});let s=i(7329);function r(t,e){if("string"!=typeof t)return!1;let{pathname:i}=(0,s.parsePath)(t);return i===e||i.startsWith(e+"/")}},7978:(t,e,i)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removePathPrefix",{enumerable:!0,get:function(){return r}});let s=i(9106);function r(t,e){if(!(0,s.pathHasPrefix)(t,e))return t;let i=t.slice(e.length);return i.startsWith("/")?i:"/"+i}},5184:(t,e)=>{"use strict";function i(t){return t.replace(/\/$/,"")||"/"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return i}})},5010:(t,e,i)=>{"use strict";i.d(e,{zA:()=>ig});let s=(t,e,i)=>{let s=t instanceof RegExp?r(t,i):t,o=e instanceof RegExp?r(e,i):e,h=null!==s&&null!=o&&n(s,o,i);return h&&{start:h[0],end:h[1],pre:i.slice(0,h[0]),body:i.slice(h[0]+s.length,h[1]),post:i.slice(h[1]+o.length)}},r=(t,e)=>{let i=e.match(t);return i?i[0]:null},n=(t,e,i)=>{let s,r,n,o,h;let a=i.indexOf(t),l=i.indexOf(e,a+1),u=a;if(a>=0&&l>0){if(t===e)return[a,l];for(s=[],n=i.length;u>=0&&!h;){if(u===a)s.push(u),a=i.indexOf(t,u+1);else if(1===s.length){let t=s.pop();void 0!==t&&(h=[t,l])}else void 0!==(r=s.pop())&&r<n&&(n=r,o=l),l=i.indexOf(e,u+1);u=a<l&&a>=0?a:l}s.length&&void 0!==o&&(h=[n,o])}return h},o="\0SLASH"+Math.random()+"\0",h="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0",c=RegExp(o,"g"),p=RegExp(h,"g"),d=RegExp(a,"g"),f=RegExp(l,"g"),g=RegExp(u,"g"),m=/\\\\/g,b=/\\{/g,w=/\\}/g,y=/\\,/g,v=/\\\./g;function S(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function x(t){return t.replace(c,"\\").replace(p,"{").replace(d,"}").replace(f,",").replace(g,".")}function k(t){return"{"+t+"}"}function E(t){return/^-?0\d/.test(t)}function C(t,e){return t<=e}function P(t,e){return t>=e}let O=t=>{if("string"!=typeof t)throw TypeError("invalid pattern");if(t.length>65536)throw TypeError("pattern is too long")},R={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},A=t=>t.replace(/[[\]\\-]/g,"\\$&"),_=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),T=t=>t.join(""),L=(t,e)=>{if("["!==t.charAt(e))throw Error("not in a brace expression");let i=[],s=[],r=e+1,n=!1,o=!1,h=!1,a=!1,l=e,u="";t:for(;r<t.length;){let c=t.charAt(r);if(("!"===c||"^"===c)&&r===e+1){a=!0,r++;continue}if("]"===c&&n&&!h){l=r+1;break}if(n=!0,"\\"===c&&!h){h=!0,r++;continue}if("["===c&&!h){for(let[n,[h,a,l]]of Object.entries(R))if(t.startsWith(n,r)){if(u)return["$.",!1,t.length-e,!0];r+=n.length,l?s.push(h):i.push(h),o=o||a;continue t}}if(h=!1,u){c>u?i.push(A(u)+"-"+A(c)):c===u&&i.push(A(c)),u="",r++;continue}if(t.startsWith("-]",r+1)){i.push(A(c+"-")),r+=2;continue}if(t.startsWith("-",r+1)){u=c,r+=2;continue}i.push(A(c)),r++}if(l<r)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,t.length-e,!0];if(0===s.length&&1===i.length&&/^\\?.$/.test(i[0])&&!a)return[_(2===i[0].length?i[0].slice(-1):i[0]),!1,l-e,!1];let c="["+(a?"^":"")+T(i)+"]",p="["+(a?"":"^")+T(s)+"]";return[i.length&&s.length?"("+c+"|"+p+")":i.length?c:p,o,l-e,!0]},j=(t,{windowsPathsNoEscape:e=!1,magicalBraces:i=!0}={})=>i?e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):e?t.replace(/\[([^\/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),M=new Set(["!","?","+","*","@"]),N=t=>M.has(t),F=t=>N(t.type),D=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),W=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),z=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),U=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),I="(?!\\.)",$=new Set(["[","."]),B=new Set(["..","."]),G=new Set("().*{}+?[]^$\\!"),q=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),H="[^/]",V=H+"*?",Z=H+"+?",J=0;class X{type;#t;#e;#i=!1;#s=[];#r;#n;#o;#h=!1;#a;#l;#u=!1;id=++J;get depth(){return(this.#r?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#t.id,parent:this.#r?.id,depth:this.depth,partsLength:this.#s.length,parts:this.#s}}constructor(t,e,i={}){this.type=t,t&&(this.#e=!0),this.#r=e,this.#t=this.#r?this.#r.#t:this,this.#a=this.#t===this?i:this.#t.#a,this.#o=this.#t===this?[]:this.#t.#o,"!"!==t||this.#t.#h||this.#o.push(this),this.#n=this.#r?this.#r.#s.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(let t of this.#s)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#l?this.#l:this.type?this.#l=this.type+"("+this.#s.map(t=>String(t)).join("|")+")":this.#l=this.#s.map(t=>String(t)).join("")}#c(){let t;if(this!==this.#t)throw Error("should only call on root");if(this.#h)return this;for(this.toString(),this.#h=!0;t=this.#o.pop();){if("!"!==t.type)continue;let e=t,i=e.#r;for(;i;){for(let s=e.#n+1;!i.type&&s<i.#s.length;s++)for(let e of t.#s){if("string"==typeof e)throw Error("string part in extglob AST??");e.copyIn(i.#s[s])}i=(e=i).#r}}return this}push(...t){for(let e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof tR&&e.#r===this))throw Error("invalid part: "+e);this.#s.push(e)}}toJSON(){let t=null===this.type?this.#s.slice().map(t=>"string"==typeof t?t:t.toJSON()):[this.type,...this.#s.map(t=>t.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#h&&this.#r?.type==="!")&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#r?.isStart())return!1;if(0===this.#n)return!0;let t=this.#r;for(let e=0;e<this.#n;e++){let i=t.#s[e];if(!(i instanceof tR&&"!"===i.type))return!1}return!0}isEnd(){if(this.#t===this||this.#r?.type==="!")return!0;if(!this.#r?.isEnd())return!1;if(!this.type)return this.#r?.isEnd();let t=this.#r?this.#r.#s.length:0;return this.#n===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){let e=new tR(this.type,t);for(let t of this.#s)e.copyIn(t);return e}static #p(t,e,i,s,r){let n=s.maxExtglobRecursion??2,o=!1,h=!1,a=-1,l=!1;if(null===e.type){let u=i,c="";for(;u<t.length;){let i=t.charAt(u++);if(o||"\\"===i){o=!o,c+=i;continue}if(h){u===a+1?("^"===i||"!"===i)&&(l=!0):"]"!==i||u===a+2&&l||(h=!1),c+=i;continue}if("["===i){h=!0,a=u,l=!1,c+=i;continue}if(!s.noext&&N(i)&&"("===t.charAt(u)&&r<=n){e.push(c),c="";let n=new tR(i,e);u=tR.#p(t,n,u,s,r+1),e.push(n);continue}c+=i}return e.push(c),u}let u=i+1,c=new tR(null,e),p=[],d="";for(;u<t.length;){let i=t.charAt(u++);if(o||"\\"===i){o=!o,d+=i;continue}if(h){u===a+1?("^"===i||"!"===i)&&(l=!0):"]"!==i||u===a+2&&l||(h=!1),d+=i;continue}if("["===i){h=!0,a=u,l=!1,d+=i;continue}if(!s.noext&&N(i)&&"("===t.charAt(u)&&(r<=n||e&&e.#d(i))){let n=e&&e.#d(i)?0:1;c.push(d),d="";let o=new tR(i,c);c.push(o),u=tR.#p(t,o,u,s,r+n);continue}if("|"===i){c.push(d),d="",p.push(c),c=new tR(null,e);continue}if(")"===i)return""===d&&0===e.#s.length&&(e.#u=!0),c.push(d),d="",e.push(...p,c),u;d+=i}return e.type=null,e.#e=void 0,e.#s=[t.substring(i-1)],u}#f(t){return this.#g(t,W)}#g(t,e=D){if(!t||"object"!=typeof t||null!==t.type||1!==t.#s.length||null===this.type)return!1;let i=t.#s[0];return!!i&&"object"==typeof i&&null!==i.type&&this.#d(i.type,e)}#d(t,e=z){return!!e.get(this.type)?.includes(t)}#m(t,e){let i=t.#s[0],s=new tR(null,i,this.options);s.#s.push(""),i.push(s),this.#b(t,e)}#b(t,e){let i=t.#s[0];for(let t of(this.#s.splice(e,1,...i.#s),i.#s))"object"==typeof t&&(t.#r=this);this.#l=void 0}#w(t){let e=U.get(this.type);return!!e?.has(t)}#y(t){if(!t||"object"!=typeof t||null!==t.type||1!==t.#s.length||null===this.type||1!==this.#s.length)return!1;let e=t.#s[0];return!!e&&"object"==typeof e&&null!==e.type&&this.#w(e.type)}#v(t){let e=U.get(this.type),i=t.#s[0],s=e?.get(i.type);if(!s)return!1;for(let t of(this.#s=i.#s,this.#s))"object"==typeof t&&(t.#r=this);this.type=s,this.#l=void 0,this.#u=!1}static fromGlob(t,e={}){let i=new tR(null,void 0,e);return tR.#p(t,i,0,e,0),i}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let t=this.toString(),[e,i,s,r]=this.toRegExpSource();return s||this.#e||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()?Object.assign(RegExp(`^${e}$`,(this.#a.nocase?"i":"")+(r?"u":"")),{_src:e,_glob:t}):i}get options(){return this.#a}toRegExpSource(t){let e=t??!!this.#a.dot;if(this.#t===this&&(this.#S(),this.#c()),!F(this)){let i=this.isStart()&&this.isEnd()&&!this.#s.some(t=>"string"!=typeof t),s=this.#s.map(e=>{let[s,r,n,o]="string"==typeof e?tR.#x(e,this.#e,i):e.toRegExpSource(t);return this.#e=this.#e||n,this.#i=this.#i||o,s}).join(""),r="";if(this.isStart()&&"string"==typeof this.#s[0]&&!(1===this.#s.length&&B.has(this.#s[0]))){let i=e&&$.has(s.charAt(0))||s.startsWith("\\.")&&$.has(s.charAt(2))||s.startsWith("\\.\\.")&&$.has(s.charAt(4)),n=!e&&!t&&$.has(s.charAt(0));r=i?"(?!(?:^|/)\\.\\.?(?:$|/))":n?I:""}let n="";return this.isEnd()&&this.#t.#h&&this.#r?.type==="!"&&(n="(?:$|\\/)"),[r+s+n,j(s),this.#e=!!this.#e,this.#i]}let i="*"===this.type||"+"===this.type,s="!"===this.type?"(?:(?!(?:":"(?:",r=this.#k(e);if(this.isStart()&&this.isEnd()&&!r&&"!"!==this.type){let t=this.toString();return this.#s=[t],this.type=null,this.#e=void 0,[t,j(this.toString()),!1,!1]}let n=!i||t||e||!I?"":this.#k(!0);return n===r&&(n=""),n&&(r=`(?:${r})(?:${n})*?`),["!"===this.type&&this.#u?(this.isStart()&&!e?I:"")+Z:s+r+("!"===this.type?"))"+(!this.isStart()||e||t?"":I)+V+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&n?")":"*"===this.type&&n?")?":`)${this.type}`),j(r),this.#e=!!this.#e,this.#i]}#S(){if(F(this)){let t=0,e=!1;do{e=!0;for(let t=0;t<this.#s.length;t++){let i=this.#s[t];"object"==typeof i&&(i.#S(),this.#g(i)?(e=!1,this.#b(i,t)):this.#f(i)?(e=!1,this.#m(i,t)):this.#y(i)&&(e=!1,this.#v(i)))}}while(!e&&++t<10)}else for(let t of this.#s)"object"==typeof t&&t.#S();this.#l=void 0}#k(t){return this.#s.map(e=>{if("string"==typeof e)throw Error("string type in extglob ast??");let[i,s,r,n]=e.toRegExpSource(t);return this.#i=this.#i||n,i}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static #x(t,e,i=!1){let s=!1,r="",n=!1,o=!1;for(let h=0;h<t.length;h++){let a=t.charAt(h);if(s){s=!1,r+=(G.has(a)?"\\":"")+a;continue}if("*"===a){if(o)continue;o=!0,r+=i&&/^[*]+$/.test(t)?Z:V,e=!0;continue}if(o=!1,"\\"===a){h===t.length-1?r+="\\\\":s=!0;continue}if("["===a){let[i,s,o,a]=L(t,h);if(o){r+=i,n=n||s,h+=o-1,e=e||a;continue}}if("?"===a){r+=H,e=!0;continue}r+=q(a)}return[r,j(t),!!e,n]}}tR=X;let K=(t,{windowsPathsNoEscape:e=!1,magicalBraces:i=!1}={})=>i?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),Y=(t,e,i={})=>(O(e),(!!i.nocomment||"#"!==e.charAt(0))&&new tO(e,i).match(t)),Q=/^\*+([^+@!?\*\[\(]*)$/,tt=t=>e=>!e.startsWith(".")&&e.endsWith(t),te=t=>e=>e.endsWith(t),ti=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),ts=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),tr=/^\*+\.\*+$/,tn=t=>!t.startsWith(".")&&t.includes("."),to=t=>"."!==t&&".."!==t&&t.includes("."),th=/^\.\*+$/,ta=t=>"."!==t&&".."!==t&&t.startsWith("."),tl=/^\*+$/,tu=t=>0!==t.length&&!t.startsWith("."),tc=t=>0!==t.length&&"."!==t&&".."!==t,tp=/^\?+([^+@!?\*\[\(]*)?$/,td=([t,e=""])=>{let i=tb([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},tf=([t,e=""])=>{let i=tw([t]);return e?(e=e.toLowerCase(),t=>i(t)&&t.toLowerCase().endsWith(e)):i},tg=([t,e=""])=>{let i=tw([t]);return e?t=>i(t)&&t.endsWith(e):i},tm=([t,e=""])=>{let i=tb([t]);return e?t=>i(t)&&t.endsWith(e):i},tb=([t])=>{let e=t.length;return t=>t.length===e&&!t.startsWith(".")},tw=([t])=>{let e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},ty="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",tv={win32:{sep:"\\"},posix:{sep:"/"}},tS="win32"===ty?tv.win32.sep:tv.posix.sep;Y.sep=tS;let tx=Symbol("globstar **");Y.GLOBSTAR=tx,Y.filter=(t,e={})=>i=>Y(i,t,e);let tk=(t,e={})=>Object.assign({},t,e);Y.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Y;let e=Y;return Object.assign((i,s,r={})=>e(i,s,tk(t,r)),{Minimatch:class extends e.Minimatch{constructor(e,i={}){super(e,tk(t,i))}static defaults(i){return e.defaults(tk(t,i)).Minimatch}},AST:class extends e.AST{constructor(e,i,s={}){super(e,i,tk(t,s))}static fromGlob(i,s={}){return e.AST.fromGlob(i,tk(t,s))}},unescape:(i,s={})=>e.unescape(i,tk(t,s)),escape:(i,s={})=>e.escape(i,tk(t,s)),filter:(i,s={})=>e.filter(i,tk(t,s)),defaults:i=>e.defaults(tk(t,i)),makeRe:(i,s={})=>e.makeRe(i,tk(t,s)),braceExpand:(i,s={})=>e.braceExpand(i,tk(t,s)),match:(i,s,r={})=>e.match(i,s,tk(t,r)),sep:e.sep,GLOBSTAR:tx})};let tE=(t,e={})=>(O(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t))?[t]:function(t,e={}){if(!t)return[];let{max:i=1e5}=e;return"{}"===t.slice(0,2)&&(t="\\{\\}"+t.slice(2)),(function t(e,i,r){let n=[],o=s("{","}",e);if(!o)return[e];let h=o.pre,l=o.post.length?t(o.post,i,!1):[""];if(/\$$/.test(o.pre))for(let t=0;t<l.length&&t<i;t++){let e=h+"{"+o.body+"}"+l[t];n.push(e)}else{let u,c;let p=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),f=p||d,g=o.body.indexOf(",")>=0;if(!f&&!g)return o.post.match(/,(?!,).*\}/)?t(e=o.pre+"{"+o.body+a+o.post,i,!0):[e];if(f)u=o.body.split(/\.\./);else if(1===(u=function t(e){if(!e)return[""];let i=[],r=s("{","}",e);if(!r)return e.split(",");let{pre:n,body:o,post:h}=r,a=n.split(",");a[a.length-1]+="{"+o+"}";let l=t(h);return h.length&&(a[a.length-1]+=l.shift(),a.push.apply(a,l)),i.push.apply(i,a),i}(o.body)).length&&void 0!==u[0]&&1===(u=t(u[0],i,!1).map(k)).length)return l.map(t=>o.pre+u[0]+t);if(f&&void 0!==u[0]&&void 0!==u[1]){let t=S(u[0]),e=S(u[1]),i=Math.max(u[0].length,u[1].length),s=3===u.length&&void 0!==u[2]?Math.abs(S(u[2])):1,r=C;e<t&&(s*=-1,r=P);let n=u.some(E);c=[];for(let o=t;r(o,e);o+=s){let t;if(d)"\\"===(t=String.fromCharCode(o))&&(t="");else if(t=String(o),n){let e=i-t.length;if(e>0){let i=Array(e+1).join("0");t=o<0?"-"+i+t.slice(1):i+t}}c.push(t)}}else{c=[];for(let e=0;e<u.length;e++)c.push.apply(c,t(u[e],i,!1))}for(let t=0;t<c.length;t++)for(let e=0;e<l.length&&n.length<i;e++){let i=h+c[t]+l[e];(!r||f||i)&&n.push(i)}}return n})(t.replace(m,o).replace(b,h).replace(w,a).replace(y,l).replace(v,u),i,!0).map(x)}(t,{max:e.braceExpandMax});Y.braceExpand=tE,Y.makeRe=(t,e={})=>new tO(t,e).makeRe(),Y.match=(t,e,i={})=>{let s=new tO(e,i);return t=t.filter(t=>s.match(t)),s.options.nonull&&!t.length&&t.push(e),t};let tC=/[?*]|[+@!]\(.*?\)|\[|\]/,tP=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class tO{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,e={}){O(t),e=e||{},this.options=e,this.maxGlobstarRecursion=e.maxGlobstarRecursion??200,this.pattern=t,this.platform=e.platform||ty,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){let t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0)){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(t=>this.slashSplit(t));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((t,e,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){let e=""===t[0]&&""===t[1]&&("?"===t[2]||!tC.test(t[2]))&&!tC.test(t[3]),i=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map(t=>this.parse(t))];if(i)return[t[0],...t.slice(1).map(t=>this.parse(t))]}return t.map(t=>this.parse(t))});if(this.debug(this.pattern,s),this.set=s.filter(t=>-1===t.indexOf(!1)),this.isWindows)for(let t=0;t<this.set.length;t++){let e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let i=0;i<t[e].length;i++)"**"===t[e][i]&&(t[e][i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let i=e;for(;"**"===t[i+1];)i++;i!==e&&t.splice(e,i-e)}return t})}levelOneOptimize(t){return t.map(t=>0===(t=t.reduce((t,e)=>{let i=t[t.length-1];return"**"===e&&"**"===i||(".."===e&&i&&".."!==i&&"."!==i&&"**"!==i?t.pop():t.push(e)),t},[])).length?[""]:t)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];(1!==i||""!==s||""!==t[0])&&("."===s||""===s)&&(e=!0,t.splice(i,1),i--)}"."===t[0]&&2===t.length&&("."===t[1]||""===t[1])&&(e=!0,t.pop())}let i=0;for(;-1!==(i=t.indexOf("..",i+1));){let s=t[i-1];s&&"."!==s&&".."!==s&&"**"!==s&&(e=!0,t.splice(i-1,2),i-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do for(let i of(e=!1,t)){let s=-1;for(;-1!==(s=i.indexOf("**",s+1));){let r=s;for(;"**"===i[r+1];)r++;r>s&&i.splice(s+1,r-s);let n=i[s+1],o=i[s+2],h=i[s+3];if(".."!==n||!o||"."===o||".."===o||!h||"."===h||".."===h)continue;e=!0,i.splice(s,1);let a=i.slice(0);a[s]="**",t.push(a),s--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){let s=i[t];(1!==t||""!==s||""!==i[0])&&("."===s||""===s)&&(e=!0,i.splice(t,1),t--)}"."===i[0]&&2===i.length&&("."===i[1]||""===i[1])&&(e=!0,i.pop())}let r=0;for(;-1!==(r=i.indexOf("..",r+1));){let t=i[r-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;let t=1===r&&"**"===i[r+1]?["."]:[];i.splice(r-1,2,...t),0===i.length&&i.push(""),r-=2}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let i=e+1;i<t.length;i++){let s=this.partsMatch(t[e],t[i],!this.preserveMultipleSlashes);if(s){t[e]=[],t[i]=s;break}}return t.filter(t=>t.length)}partsMatch(t,e,i=!1){let s=0,r=0,n=[],o="";for(;s<t.length&&r<e.length;)if(t[s]===e[r])n.push("b"===o?e[r]:t[s]),s++,r++;else if(i&&"**"===t[s]&&e[r]===t[s+1])n.push(t[s]),s++;else if(i&&"**"===e[r]&&t[s]===e[r+1])n.push(e[r]),r++;else if("*"===t[s]&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&"**"!==e[r]){if("b"===o)return!1;o="a",n.push(t[s]),s++,r++}else{if("*"!==e[r]||!t[s]||!this.options.dot&&t[s].startsWith(".")||"**"===t[s]||"a"===o)return!1;o="b",n.push(e[r]),s++,r++}return t.length===e.length&&n}parseNegate(){if(this.nonegate)return;let t=this.pattern,e=!1,i=0;for(let s=0;s<t.length&&"!"===t.charAt(s);s++)e=!e,i++;i&&(this.pattern=t.slice(i)),this.negate=e}matchOne(t,e,i=!1){let s=0,r=0;if(this.isWindows){let i="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),n=!i&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),o="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),h=!o&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3]),a=n?3:i?0:void 0,l=h?3:o?0:void 0;if("number"==typeof a&&"number"==typeof l){let[i,n]=[t[a],e[l]];i.toLowerCase()===n.toLowerCase()&&(e[l]=i,r=l,s=a)}}let{optimizationLevel:n=1}=this.options;return(n>=2&&(t=this.levelTwoFileOptimize(t)),e.includes(tx))?this.#E(t,e,i,s,r):this.#C(t,e,i,s,r)}#E(t,e,i,s,r){let n=e.indexOf(tx,r),o=e.lastIndexOf(tx),[h,a,l]=i?[e.slice(r,n),e.slice(n+1),[]]:[e.slice(r,n),e.slice(n+1,o),e.slice(o+1)];if(h.length){let e=t.slice(s,s+h.length);if(!this.#C(e,h,i,0,0))return!1;s+=h.length,r+=h.length}let u=0;if(l.length){if(l.length+s>t.length)return!1;let e=t.length-l.length;if(this.#C(t,l,i,e,0))u=l.length;else{if(""!==t[t.length-1]||s+l.length===t.length||(e--,!this.#C(t,l,i,e,0)))return!1;u=l.length+1}}if(!a.length){let e=!!u;for(let i=s;i<t.length-u;i++){let s=String(t[i]);if(e=!0,"."===s||".."===s||!this.options.dot&&s.startsWith("."))return!1}return i||e}let c=[[[],0]],p=c[0],d=0,f=[0];for(let t of a)t===tx?(f.push(d),p=[[],0],c.push(p)):(p[0].push(t),d++);let g=c.length-1,m=t.length-u;for(let t of c)t[1]=m-(f[g--]+t[0].length);return!!this.#P(t,c,s,0,i,0,!!u)}#P(t,e,i,s,r,n,o){let h=e[s];if(!h){for(let e=i;e<t.length;e++){o=!0;let i=t[e];if("."===i||".."===i||!this.options.dot&&i.startsWith("."))return!1}return o}let[a,l]=h;for(;i<=l;){if(this.#C(t.slice(0,i+a.length),a,r,i,0)&&n<this.maxGlobstarRecursion){let h=this.#P(t,e,i+a.length,s+1,r,n+1,o);if(!1!==h)return h}let h=t[i];if("."===h||".."===h||!this.options.dot&&h.startsWith("."))return!1;i++}return r||null}#C(t,e,i,s,r){let n,o,h,a;for(n=s,o=r,a=t.length,h=e.length;n<a&&o<h;n++,o++){let i;this.debug("matchOne loop");let s=e[o],r=t[n];if(this.debug(e,s,r),!1===s||s===tx||("string"==typeof s?(i=r===s,this.debug("string match",s,r,i)):(i=s.test(r),this.debug("pattern match",s,r,i)),!i))return!1}if(n===a&&o===h)return!0;if(n===a)return i;if(o===h)return n===a-1&&""===t[n];throw Error("wtf?")}braceExpand(){return tE(this.pattern,this.options)}parse(t){let e;O(t);let i=this.options;if("**"===t)return tx;if(""===t)return"";let s=null;(e=t.match(tl))?s=i.dot?tc:tu:(e=t.match(Q))?s=(i.nocase?i.dot?ts:ti:i.dot?te:tt)(e[1]):(e=t.match(tp))?s=(i.nocase?i.dot?tf:td:i.dot?tg:tm)(e):(e=t.match(tr))?s=i.dot?to:tn:(e=t.match(th))&&(s=ta);let r=X.fromGlob(t,this.options).toMMPattern();return s&&"object"==typeof r&&Reflect.defineProperty(r,"test",{value:s}),r}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let e=this.options,i=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",s=new Set(e.nocase?["i"]:[]),r=t.map(t=>{let e=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(""))s.add(e);return"string"==typeof t?tP(t):t===tx?tx:t._src});e.forEach((t,s)=>{let r=e[s+1],n=e[s-1];t===tx&&n!==tx&&(void 0===n?void 0!==r&&r!==tx?e[s+1]="(?:\\/|"+i+"\\/)?"+r:e[s]=i:void 0===r?e[s-1]=n+"(?:\\/|\\/"+i+")?":r!==tx&&(e[s-1]=n+"(?:\\/|\\/"+i+"\\/)"+r,e[s+1]=tx))});let r=e.filter(t=>t!==tx);if(this.partial&&r.length>=1){let t=[];for(let e=1;e<=r.length;e++)t.push(r.slice(0,e).join("/"));return"(?:"+t.join("|")+")"}return r.join("/")}).join("|"),[n,o]=t.length>1?["(?:",")"]:["",""];r="^"+n+r+o+"$",this.partial&&(r="^(?:\\/|"+n+r.slice(1,-1)+o+")$"),this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...s].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;let i=this.options;this.isWindows&&(t=t.split("\\").join("/"));let s=this.slashSplit(t);this.debug(this.pattern,"split",s);let r=this.set;this.debug(this.pattern,"set",r);let n=s[s.length-1];if(!n)for(let t=s.length-2;!n&&t>=0;t--)n=s[t];for(let t=0;t<r.length;t++){let o=r[t],h=s;if(i.matchBase&&1===o.length&&(h=[n]),this.matchOne(h,o,e)){if(i.flipNegate)return!0;return!this.negate}}return!i.flipNegate&&this.negate}static defaults(t){return Y.defaults(t).Minimatch}}Y.AST=X,Y.Minimatch=tO,Y.escape=K,Y.unescape=j;var tR,tA=i(1041),t_="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,tT=new Set,tL="object"==typeof process&&process?process:{},tj=(t,e,i,s)=>{"function"==typeof tL.emitWarning?tL.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)},tM=globalThis.AbortController,tN=globalThis.AbortSignal;if(typeof tM>"u"){tN=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},tM=class{constructor(){e()}signal=new tN;abort(t){if(!this.signal.aborted){for(let e of(this.signal.reason=t,this.signal.aborted=!0,this.signal._onabort))e(t);this.signal.onabort?.(t)}}};let t=tL.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,tj("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var tF=t=>!tT.has(t),tD=(Symbol("type"),t=>t&&t===Math.floor(t)&&t>0&&isFinite(t)),tW=t=>tD(t)?t<=256?Uint8Array:t<=65536?Uint16Array:t<=4294967296?Uint32Array:t<=Number.MAX_SAFE_INTEGER?tz:null:null,tz=class extends Array{constructor(t){super(t),this.fill(0)}},tU=class t{heap;length;static #O=!1;static create(e){let i=tW(e);if(!i)return[];t.#O=!0;let s=new t(e,i);return t.#O=!1,s}constructor(e,i){if(!t.#O)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},tI=class t{#O;#R;#A;#_;#T;#L;#j;#M;get perf(){return this.#M}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#N;#F;#D;#W;#z;#U;#I;#$;#B;#G;#q;#H;#V;#Z;#J;#X;#K;#Y;#Q;static unsafeExposeInternals(t){return{starts:t.#V,ttls:t.#Z,autopurgeTimers:t.#J,sizes:t.#H,keyMap:t.#D,keyList:t.#W,valList:t.#z,next:t.#U,prev:t.#I,get head(){return t.#$},get tail(){return t.#B},free:t.#G,isBackgroundFetch:e=>t.#tt(e),backgroundFetch:(e,i,s,r)=>t.#te(e,i,s,r),moveToTail:e=>t.#ti(e),indexes:e=>t.#ts(e),rindexes:e=>t.#tr(e),isStale:e=>t.#tn(e)}}get max(){return this.#O}get maxSize(){return this.#R}get calculatedSize(){return this.#F}get size(){return this.#N}get fetchMethod(){return this.#L}get memoMethod(){return this.#j}get dispose(){return this.#A}get onInsert(){return this.#_}get disposeAfter(){return this.#T}constructor(e){let{max:i=0,ttl:s,ttlResolution:r=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:h,allowStale:a,dispose:l,onInsert:u,disposeAfter:c,noDisposeOnSet:p,noUpdateTTL:d,maxSize:f=0,maxEntrySize:g=0,sizeCalculation:m,fetchMethod:b,memoMethod:w,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:x,ignoreFetchAbort:k,perf:E}=e;if(void 0!==E&&"function"!=typeof E?.now)throw TypeError("perf option must have a now() method if specified");if(this.#M=E??t_,0!==i&&!tD(i))throw TypeError("max option must be a nonnegative integer");let C=i?tW(i):Array;if(!C)throw Error("invalid max value: "+i);if(this.#O=i,this.#R=f,this.maxEntrySize=g||this.#R,this.sizeCalculation=m,this.sizeCalculation){if(!this.#R&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==w&&"function"!=typeof w)throw TypeError("memoMethod must be a function if defined");if(this.#j=w,void 0!==b&&"function"!=typeof b)throw TypeError("fetchMethod must be a function if specified");if(this.#L=b,this.#K=!!b,this.#D=new Map,this.#W=Array(i).fill(void 0),this.#z=Array(i).fill(void 0),this.#U=new C(i),this.#I=new C(i),this.#$=0,this.#B=0,this.#G=tU.create(i),this.#N=0,this.#F=0,"function"==typeof l&&(this.#A=l),"function"==typeof u&&(this.#_=u),"function"==typeof c?(this.#T=c,this.#q=[]):(this.#T=void 0,this.#q=void 0),this.#X=!!this.#A,this.#Q=!!this.#_,this.#Y=!!this.#T,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!k,0!==this.maxEntrySize){if(0!==this.#R&&!tD(this.#R))throw TypeError("maxSize must be a positive integer if specified");if(!tD(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#to()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!h,this.ttlResolution=tD(r)||0===r?r:1,this.ttlAutopurge=!!n,this.ttl=s||0,this.ttl){if(!tD(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#th()}if(0===this.#O&&0===this.ttl&&0===this.#R)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#O&&!this.#R){let e="LRU_CACHE_UNBOUNDED";tF(e)&&(tT.add(e),tj("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,t))}}getRemainingTTL(t){return this.#D.has(t)?1/0:0}#th(){let t=new tz(this.#O),e=new tz(this.#O);this.#Z=t,this.#V=e;let i=this.ttlAutopurge?Array(this.#O):void 0;this.#J=i,this.#ta=(s,r,n=this.#M.now())=>{if(e[s]=0!==r?n:0,t[s]=r,i?.[s]&&(clearTimeout(i[s]),i[s]=void 0),0!==r&&i){let t=setTimeout(()=>{this.#tn(s)&&this.#tl(this.#W[s],"expire")},r+1);t.unref&&t.unref(),i[s]=t}},this.#tu=i=>{e[i]=0!==t[i]?this.#M.now():0},this.#tc=(i,n)=>{if(t[n]){let o=t[n],h=e[n];if(!o||!h)return;i.ttl=o,i.start=h,i.now=s||r();let a=i.now-h;i.remainingTTL=o-a}};let s=0,r=()=>{let t=this.#M.now();if(this.ttlResolution>0){s=t;let e=setTimeout(()=>s=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=i=>{let n=this.#D.get(i);if(void 0===n)return 0;let o=t[n],h=e[n];return o&&h?o-((s||r())-h):1/0},this.#tn=i=>{let n=e[i],o=t[i];return!!o&&!!n&&(s||r())-n>o}}#tu=()=>{};#tc=()=>{};#ta=()=>{};#tn=()=>!1;#to(){let t=new tz(this.#O);this.#F=0,this.#H=t,this.#tp=e=>{this.#F-=t[e],t[e]=0},this.#td=(t,e,i,s)=>{if(this.#tt(e))return 0;if(!tD(i)){if(s){if("function"!=typeof s)throw TypeError("sizeCalculation must be a function");if(!tD(i=s(e,t)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return i},this.#tf=(e,i,s)=>{if(t[e]=i,this.#R){let i=this.#R-t[e];for(;this.#F>i;)this.#tg(!0)}this.#F+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#F)}}#tp=t=>{};#tf=(t,e,i)=>{};#td=(t,e,i,s)=>{if(i||s)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#ts({allowStale:t=this.allowStale}={}){if(this.#N)for(let e=this.#B;!(!this.#tm(e)||((t||!this.#tn(e))&&(yield e),e===this.#$));)e=this.#I[e]}*#tr({allowStale:t=this.allowStale}={}){if(this.#N)for(let e=this.#$;!(!this.#tm(e)||((t||!this.#tn(e))&&(yield e),e===this.#B));)e=this.#U[e]}#tm(t){return void 0!==t&&this.#D.get(this.#W[t])===t}*entries(){for(let t of this.#ts())void 0===this.#z[t]||void 0===this.#W[t]||this.#tt(this.#z[t])||(yield[this.#W[t],this.#z[t]])}*rentries(){for(let t of this.#tr())void 0===this.#z[t]||void 0===this.#W[t]||this.#tt(this.#z[t])||(yield[this.#W[t],this.#z[t]])}*keys(){for(let t of this.#ts()){let e=this.#W[t];void 0===e||this.#tt(this.#z[t])||(yield e)}}*rkeys(){for(let t of this.#tr()){let e=this.#W[t];void 0===e||this.#tt(this.#z[t])||(yield e)}}*values(){for(let t of this.#ts())void 0===this.#z[t]||this.#tt(this.#z[t])||(yield this.#z[t])}*rvalues(){for(let t of this.#tr())void 0===this.#z[t]||this.#tt(this.#z[t])||(yield this.#z[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(let i of this.#ts()){let s=this.#z[i],r=this.#tt(s)?s.__staleWhileFetching:s;if(void 0!==r&&t(r,this.#W[i],this))return this.get(this.#W[i],e)}}forEach(t,e=this){for(let i of this.#ts()){let s=this.#z[i],r=this.#tt(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#W[i],this)}}rforEach(t,e=this){for(let i of this.#tr()){let s=this.#z[i],r=this.#tt(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#W[i],this)}}purgeStale(){let t=!1;for(let e of this.#tr({allowStale:!0}))this.#tn(e)&&(this.#tl(this.#W[e],"expire"),t=!0);return t}info(t){let e=this.#D.get(t);if(void 0===e)return;let i=this.#z[e],s=this.#tt(i)?i.__staleWhileFetching:i;if(void 0===s)return;let r={value:s};if(this.#Z&&this.#V){let t=this.#Z[e],i=this.#V[e];if(t&&i){let e=t-(this.#M.now()-i);r.ttl=e,r.start=Date.now()}}return this.#H&&(r.size=this.#H[e]),r}dump(){let t=[];for(let e of this.#ts({allowStale:!0})){let i=this.#W[e],s=this.#z[e],r=this.#tt(s)?s.__staleWhileFetching:s;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#Z&&this.#V){n.ttl=this.#Z[e];let t=this.#M.now()-this.#V[e];n.start=Math.floor(Date.now()-t)}this.#H&&(n.size=this.#H[e]),t.unshift([i,n])}return t}load(t){for(let[e,i]of(this.clear(),t)){if(i.start){let t=Date.now()-i.start;i.start=this.#M.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;let{ttl:s=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:h}=i,{noUpdateTTL:a=this.noUpdateTTL}=i,l=this.#td(t,e,i.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#tl(t,"set"),this;let u=0===this.#N?void 0:this.#D.get(t);if(void 0===u)u=0===this.#N?this.#B:0!==this.#G.length?this.#G.pop():this.#N===this.#O?this.#tg(!1):this.#N,this.#W[u]=t,this.#z[u]=e,this.#D.set(t,u),this.#U[this.#B]=u,this.#I[u]=this.#B,this.#B=u,this.#N++,this.#tf(u,l,h),h&&(h.set="add"),a=!1,this.#Q&&this.#_?.(e,t,"add");else{this.#ti(u);let i=this.#z[u];if(e!==i){if(this.#K&&this.#tt(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:e}=i;void 0!==e&&!n&&(this.#X&&this.#A?.(e,t,"set"),this.#Y&&this.#q?.push([e,t,"set"]))}else n||(this.#X&&this.#A?.(i,t,"set"),this.#Y&&this.#q?.push([i,t,"set"]));if(this.#tp(u),this.#tf(u,l,h),this.#z[u]=e,h){h.set="replace";let t=i&&this.#tt(i)?i.__staleWhileFetching:i;void 0!==t&&(h.oldValue=t)}}else h&&(h.set="update");this.#Q&&this.onInsert?.(e,t,e===i?"update":"replace")}if(0===s||this.#Z||this.#th(),this.#Z&&(a||this.#ta(u,s,r),h&&this.#tc(h,u)),!n&&this.#Y&&this.#q){let t=this.#q,e;for(;e=t?.shift();)this.#T?.(...e)}return this}pop(){try{for(;this.#N;){let t=this.#z[this.#$];if(this.#tg(!0),this.#tt(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#Y&&this.#q){let t=this.#q,e;for(;e=t?.shift();)this.#T?.(...e)}}}#tg(t){let e=this.#$,i=this.#W[e],s=this.#z[e];return this.#K&&this.#tt(s)?s.__abortController.abort(Error("evicted")):(this.#X||this.#Y)&&(this.#X&&this.#A?.(s,i,"evict"),this.#Y&&this.#q?.push([s,i,"evict"])),this.#tp(e),this.#J?.[e]&&(clearTimeout(this.#J[e]),this.#J[e]=void 0),t&&(this.#W[e]=void 0,this.#z[e]=void 0,this.#G.push(e)),1===this.#N?(this.#$=this.#B=0,this.#G.length=0):this.#$=this.#U[e],this.#D.delete(i),this.#N--,e}has(t,e={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,r=this.#D.get(t);if(void 0!==r){let t=this.#z[r];if(this.#tt(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#tn(r))return i&&this.#tu(r),s&&(s.has="hit",this.#tc(s,r)),!0;s&&(s.has="stale",this.#tc(s,r))}else s&&(s.has="miss");return!1}peek(t,e={}){let{allowStale:i=this.allowStale}=e,s=this.#D.get(t);if(void 0===s||!i&&this.#tn(s))return;let r=this.#z[s];return this.#tt(r)?r.__staleWhileFetching:r}#te(t,e,i,s){let r=void 0===e?void 0:this.#z[e];if(this.#tt(r))return r;let n=new tM,{signal:o}=i;o?.addEventListener("abort",()=>n.abort(o.reason),{signal:n.signal});let h={signal:n.signal,options:i,context:s},a=(s,r=!1)=>{let{aborted:o}=n.signal,a=i.ignoreFetchAbort&&void 0!==s,c=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&void 0!==s);if(i.status&&(o&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!a&&!r)return l(n.signal.reason,c);let p=this.#z[e];return(p===u||a&&r&&void 0===p)&&(void 0===s?void 0!==u.__staleWhileFetching?this.#z[e]=u.__staleWhileFetching:this.#tl(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,h.options))),s},l=(s,r)=>{let{aborted:o}=n.signal,h=o&&i.allowStaleOnFetchAbort,a=h||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection;if(this.#z[e]===u&&(l&&(r||void 0!==u.__staleWhileFetching)?h||(this.#z[e]=u.__staleWhileFetching):this.#tl(t,"fetch")),a)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw s};i.status&&(i.status.fetchDispatched=!0);let u=new Promise((e,s)=>{let o=this.#L?.(t,r,h);o&&o instanceof Promise&&o.then(t=>e(void 0===t?void 0:t),s),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>a(t,!0)))})}).then(a,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),l(t,!1))),c=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,c,{...h.options,status:void 0}),e=this.#D.get(t)):this.#z[e]=c,c}#tt(t){return!!this.#K&&!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof tM}async fetch(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:h=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:g=!1,status:m,signal:b}=e;if(!this.#K)return m&&(m.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:m});let w={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:o,size:h,sizeCalculation:a,noUpdateTTL:l,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:m,signal:b},y=this.#D.get(t);if(void 0===y){m&&(m.fetch="miss");let e=this.#te(t,y,w,f);return e.__returned=e}{let e=this.#z[y];if(this.#tt(e)){let t=i&&void 0!==e.__staleWhileFetching;return m&&(m.fetch="inflight",t&&(m.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}let r=this.#tn(y);if(!g&&!r)return m&&(m.fetch="hit"),this.#ti(y),s&&this.#tu(y),m&&this.#tc(m,y),e;let n=this.#te(t,y,w,f),o=void 0!==n.__staleWhileFetching&&i;return m&&(m.fetch=r?"stale":"refresh",o&&r&&(m.returnedStale=!0)),o?n.__staleWhileFetching:n.__returned=n}}async forceFetch(t,e={}){let i=await this.fetch(t,e);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(t,e={}){let i=this.#j;if(!i)throw Error("no memoMethod provided to constructor");let{context:s,forceRefresh:r,...n}=e,o=this.get(t,n);if(!r&&void 0!==o)return o;let h=i(t,o,{options:n,context:s});return this.set(t,h,n),h}get(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,o=this.#D.get(t);if(void 0!==o){let e=this.#z[o],h=this.#tt(e);return n&&this.#tc(n,o),this.#tn(o)?(n&&(n.get="stale"),h?(n&&i&&void 0!==e.__staleWhileFetching&&(n.returnedStale=!0),i?e.__staleWhileFetching:void 0):(r||this.#tl(t,"expire"),n&&i&&(n.returnedStale=!0),i?e:void 0)):(n&&(n.get="hit"),h?e.__staleWhileFetching:(this.#ti(o),s&&this.#tu(o),e))}n&&(n.get="miss")}#tb(t,e){this.#I[e]=t,this.#U[t]=e}#ti(t){t!==this.#B&&(t===this.#$?this.#$=this.#U[t]:this.#tb(this.#I[t],this.#U[t]),this.#tb(this.#B,t),this.#B=t)}delete(t){return this.#tl(t,"delete")}#tl(t,e){let i=!1;if(0!==this.#N){let s=this.#D.get(t);if(void 0!==s){if(this.#J?.[s]&&(clearTimeout(this.#J?.[s]),this.#J[s]=void 0),i=!0,1===this.#N)this.#tw(e);else{this.#tp(s);let i=this.#z[s];if(this.#tt(i)?i.__abortController.abort(Error("deleted")):(this.#X||this.#Y)&&(this.#X&&this.#A?.(i,t,e),this.#Y&&this.#q?.push([i,t,e])),this.#D.delete(t),this.#W[s]=void 0,this.#z[s]=void 0,s===this.#B)this.#B=this.#I[s];else if(s===this.#$)this.#$=this.#U[s];else{let t=this.#I[s];this.#U[t]=this.#U[s];let e=this.#U[s];this.#I[e]=this.#I[s]}this.#N--,this.#G.push(s)}}}if(this.#Y&&this.#q?.length){let t=this.#q,e;for(;e=t?.shift();)this.#T?.(...e)}return i}clear(){return this.#tw("delete")}#tw(t){for(let e of this.#tr({allowStale:!0})){let i=this.#z[e];if(this.#tt(i))i.__abortController.abort(Error("deleted"));else{let s=this.#W[e];this.#X&&this.#A?.(i,s,t),this.#Y&&this.#q?.push([i,s,t])}}if(this.#D.clear(),this.#z.fill(void 0),this.#W.fill(void 0),this.#Z&&this.#V){for(let t of(this.#Z.fill(0),this.#V.fill(0),this.#J??[]))void 0!==t&&clearTimeout(t);this.#J?.fill(void 0)}if(this.#H&&this.#H.fill(0),this.#$=0,this.#B=0,this.#G.length=0,this.#F=0,this.#N=0,this.#Y&&this.#q){let t=this.#q,e;for(;e=t?.shift();)this.#T?.(...e)}}},t$=i(9411),tB=i(7147),tG=i(7561),tq=i.t(tG,2),tH=i(3977),tV=i(5673),tZ=i(4492),tJ=i(6915);let tX="object"==typeof process&&process?process:{stdout:null,stderr:null},tK=t=>!!t&&"object"==typeof t&&(t instanceof e_||t instanceof tZ||tY(t)||tQ(t)),tY=t=>!!t&&"object"==typeof t&&t instanceof tV.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==tZ.Writable.prototype.pipe,tQ=t=>!!t&&"object"==typeof t&&t instanceof tV.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end,t0=Symbol("EOF"),t1=Symbol("maybeEmitEnd"),t2=Symbol("emittedEnd"),t3=Symbol("emittingEnd"),t4=Symbol("emittedError"),t6=Symbol("closed"),t9=Symbol("read"),t5=Symbol("flush"),t8=Symbol("flushChunk"),t7=Symbol("encoding"),et=Symbol("decoder"),ee=Symbol("flowing"),ei=Symbol("paused"),es=Symbol("resume"),er=Symbol("buffer"),en=Symbol("pipes"),eo=Symbol("bufferLength"),eh=Symbol("bufferPush"),ea=Symbol("bufferShift"),el=Symbol("objectMode"),eu=Symbol("destroyed"),ec=Symbol("error"),ep=Symbol("emitData"),ed=Symbol("emitEnd"),ef=Symbol("emitEnd2"),eg=Symbol("async"),em=Symbol("abort"),eb=Symbol("aborted"),ew=Symbol("signal"),ey=Symbol("dataListeners"),ev=Symbol("discarded"),eS=t=>Promise.resolve().then(t),ex=t=>t(),ek=t=>"end"===t||"finish"===t||"prefinish"===t,eE=t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0,eC=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class eP{src;dest;opts;ondrain;constructor(t,e,i){this.src=t,this.dest=e,this.opts=i,this.ondrain=()=>t[es](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class eO extends eP{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,i){super(t,e,i),this.proxyErrors=t=>this.dest.emit("error",t),t.on("error",this.proxyErrors)}}let eR=t=>!!t.objectMode,eA=t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding;class e_ extends tV.EventEmitter{[ee]=!1;[ei]=!1;[en]=[];[er]=[];[el];[t7];[eg];[et];[t0]=!1;[t2]=!1;[t3]=!1;[t6]=!1;[t4]=null;[eo]=0;[eu]=!1;[ew];[eb]=!1;[ey]=0;[ev]=!1;writable=!0;readable=!0;constructor(...t){let e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw TypeError("Encoding and objectMode may not be used together");eR(e)?(this[el]=!0,this[t7]=null):eA(e)?(this[t7]=e.encoding,this[el]=!1):(this[el]=!1,this[t7]=null),this[eg]=!!e.async,this[et]=this[t7]?new tJ.StringDecoder(this[t7]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[er]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[en]});let{signal:i}=e;i&&(this[ew]=i,i.aborted?this[em]():i.addEventListener("abort",()=>this[em]()))}get bufferLength(){return this[eo]}get encoding(){return this[t7]}set encoding(t){throw Error("Encoding must be set at instantiation time")}setEncoding(t){throw Error("Encoding must be set at instantiation time")}get objectMode(){return this[el]}set objectMode(t){throw Error("objectMode must be set at instantiation time")}get async(){return this[eg]}set async(t){this[eg]=this[eg]||!!t}[em](){this[eb]=!0,this.emit("abort",this[ew]?.reason),this.destroy(this[ew]?.reason)}get aborted(){return this[eb]}set aborted(t){}write(t,e,i){if(this[eb])return!1;if(this[t0])throw Error("write after end");if(this[eu])return this.emit("error",Object.assign(Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(i=e,e="utf8"),e||(e="utf8");let s=this[eg]?eS:ex;if(!this[el]&&!Buffer.isBuffer(t)){if(eC(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(eE(t))t=Buffer.from(t);else if("string"!=typeof t)throw Error("Non-contiguous data written to non-objectMode stream")}return this[el]?(this[ee]&&0!==this[eo]&&this[t5](!0),this[ee]?this.emit("data",t):this[eh](t)):t.length&&("string"==typeof t&&(e!==this[t7]||this[et]?.lastNeed)&&(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[t7]&&(t=this[et].write(t)),this[ee]&&0!==this[eo]&&this[t5](!0),this[ee]?this.emit("data",t):this[eh](t)),0!==this[eo]&&this.emit("readable"),i&&s(i),this[ee]}read(t){if(this[eu])return null;if(this[ev]=!1,0===this[eo]||0===t||t&&t>this[eo])return this[t1](),null;this[el]&&(t=null),this[er].length>1&&!this[el]&&(this[er]=[this[t7]?this[er].join(""):Buffer.concat(this[er],this[eo])]);let e=this[t9](t||null,this[er][0]);return this[t1](),e}[t9](t,e){if(this[el])this[ea]();else{let i=e;t===i.length||null===t?this[ea]():("string"==typeof i?(this[er][0]=i.slice(t),e=i.slice(0,t)):(this[er][0]=i.subarray(t),e=i.subarray(0,t)),this[eo]-=t)}return this.emit("data",e),this[er].length||this[t0]||this.emit("drain"),e}end(t,e,i){return"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e="utf8"),void 0!==t&&this.write(t,e),i&&this.once("end",i),this[t0]=!0,this.writable=!1,(this[ee]||!this[ei])&&this[t1](),this}[es](){this[eu]||(this[ey]||this[en].length||(this[ev]=!0),this[ei]=!1,this[ee]=!0,this.emit("resume"),this[er].length?this[t5]():this[t0]?this[t1]():this.emit("drain"))}resume(){return this[es]()}pause(){this[ee]=!1,this[ei]=!0,this[ev]=!1}get destroyed(){return this[eu]}get flowing(){return this[ee]}get paused(){return this[ei]}[eh](t){this[el]?this[eo]+=1:this[eo]+=t.length,this[er].push(t)}[ea](){return this[el]?this[eo]-=1:this[eo]-=this[er][0].length,this[er].shift()}[t5](t=!1){do;while(this[t8](this[ea]())&&this[er].length);t||this[er].length||this[t0]||this.emit("drain")}[t8](t){return this.emit("data",t),this[ee]}pipe(t,e){if(this[eu])return t;this[ev]=!1;let i=this[t2];return e=e||{},t===tX.stdout||t===tX.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,i?e.end&&t.end():(this[en].push(e.proxyErrors?new eO(this,t,e):new eP(this,t,e)),this[eg]?eS(()=>this[es]()):this[es]()),t}unpipe(t){let e=this[en].find(e=>e.dest===t);e&&(1===this[en].length?(this[ee]&&0===this[ey]&&(this[ee]=!1),this[en]=[]):this[en].splice(this[en].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){let i=super.on(t,e);return"data"===t?(this[ev]=!1,this[ey]++,this[en].length||this[ee]||this[es]()):"readable"===t&&0!==this[eo]?super.emit("readable"):ek(t)&&this[t2]?(super.emit(t),this.removeAllListeners(t)):"error"===t&&this[t4]&&(this[eg]?eS(()=>e.call(this,this[t4])):e.call(this,this[t4])),i}removeListener(t,e){return this.off(t,e)}off(t,e){let i=super.off(t,e);return"data"!==t||(this[ey]=this.listeners("data").length,0!==this[ey]||this[ev]||this[en].length||(this[ee]=!1)),i}removeAllListeners(t){let e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[ey]=0,this[ev]||this[en].length||(this[ee]=!1)),e}get emittedEnd(){return this[t2]}[t1](){this[t3]||this[t2]||this[eu]||0!==this[er].length||!this[t0]||(this[t3]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[t6]&&this.emit("close"),this[t3]=!1)}emit(t,...e){let i=e[0];if("error"!==t&&"close"!==t&&t!==eu&&this[eu])return!1;if("data"===t)return(!!this[el]||!!i)&&(this[eg]?(eS(()=>this[ep](i)),!0):this[ep](i));if("end"===t)return this[ed]();if("close"===t){if(this[t6]=!0,!this[t2]&&!this[eu])return!1;let t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[t4]=i,super.emit(ec,i);let t=(!this[ew]||!!this.listeners("error").length)&&super.emit("error",i);return this[t1](),t}if("resume"===t){let t=super.emit("resume");return this[t1](),t}if("finish"===t||"prefinish"===t){let e=super.emit(t);return this.removeAllListeners(t),e}let s=super.emit(t,...e);return this[t1](),s}[ep](t){for(let e of this[en])!1===e.dest.write(t)&&this.pause();let e=!this[ev]&&super.emit("data",t);return this[t1](),e}[ed](){return!this[t2]&&(this[t2]=!0,this.readable=!1,this[eg]?(eS(()=>this[ef]()),!0):this[ef]())}[ef](){if(this[et]){let t=this[et].end();if(t){for(let e of this[en])e.dest.write(t);this[ev]||super.emit("data",t)}}for(let t of this[en])t.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[el]||(t.dataLength=0);let e=this.promise();return this.on("data",e=>{t.push(e),this[el]||(t.dataLength+=e.length)}),await e,t}async concat(){if(this[el])throw Error("cannot concat in objectMode");let t=await this.collect();return this[t7]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,e)=>{this.on(eu,()=>e(Error("stream destroyed"))),this.on("error",t=>e(t)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[ev]=!1;let t=!1,e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{let i,s;if(t)return e();let r=this.read();if(null!==r)return Promise.resolve({done:!1,value:r});if(this[t0])return e();let n=t=>{this.off("data",o),this.off("end",h),this.off(eu,a),e(),s(t)},o=t=>{this.off("error",n),this.off("end",h),this.off(eu,a),this.pause(),i({value:t,done:!!this[t0]})},h=()=>{this.off("error",n),this.off("data",o),this.off(eu,a),e(),i({done:!0,value:void 0})},a=()=>n(Error("stream destroyed"));return new Promise((t,e)=>{s=e,i=t,this.once(eu,a),this.once("error",n),this.once("end",h),this.once("data",o)})},throw:e,return:e,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[ev]=!1;let t=!1,e=()=>(this.pause(),this.off(ec,e),this.off(eu,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(ec,e),this.once(eu,e),{next:()=>{if(t)return e();let i=this.read();return null===i?e():{done:!1,value:i}},throw:e,return:e,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(t){return this[eu]||(this[eu]=!0,this[ev]=!0,this[er].length=0,this[eo]=0,"function"!=typeof this.close||this[t6]||this.close()),t?this.emit("error",t):this.emit(eu),this}static get isStream(){return tK}}let eT=tB.realpathSync.native,eL={lstatSync:tB.lstatSync,readdir:tB.readdir,readdirSync:tB.readdirSync,readlinkSync:tB.readlinkSync,realpathSync:eT,promises:{lstat:tH.lstat,readdir:tH.readdir,readlink:tH.readlink,realpath:tH.realpath}},ej=t=>t&&t!==eL&&t!==tq?{...eL,...t,promises:{...eL.promises,...t.promises||{}}}:eL,eM=/^\\\\\?\\([a-z]:)\\?$/i,eN=t=>t.replace(/\//g,"\\").replace(eM,"$1\\"),eF=/[\\\/]/,eD=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?10:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,eW=new tI({max:4096}),ez=t=>{let e=eW.get(t);if(e)return e;let i=t.normalize("NFKD");return eW.set(t,i),i},eU=new tI({max:4096}),eI=t=>{let e=eU.get(t);if(e)return e;let i=ez(t.toLowerCase());return eU.set(t,i),i};class e$ extends tI{constructor(){super({max:256})}}class eB extends tI{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}let eG=Symbol("PathScurry setAsCwd");class eq{name;root;roots;parent;nocase;isCWD=!1;#ty;#tv;get dev(){return this.#tv}#tS;get mode(){return this.#tS}#tx;get nlink(){return this.#tx}#tk;get uid(){return this.#tk}#tE;get gid(){return this.#tE}#tC;get rdev(){return this.#tC}#tP;get blksize(){return this.#tP}#tO;get ino(){return this.#tO}#tR;get size(){return this.#tR}#tA;get blocks(){return this.#tA}#t_;get atimeMs(){return this.#t_}#tT;get mtimeMs(){return this.#tT}#tL;get ctimeMs(){return this.#tL}#tj;get birthtimeMs(){return this.#tj}#tM;get atime(){return this.#tM}#tN;get mtime(){return this.#tN}#tF;get ctime(){return this.#tF}#tD;get birthtime(){return this.#tD}#tW;#tz;#tU;#tI;#t$;#tB;#tG;#tq;#tH;#tV;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,i,s,r,n,o){this.name=t,this.#tW=r?eI(t):ez(t),this.#tG=1023&e,this.nocase=r,this.roots=s,this.root=i||this,this.#tq=n,this.#tU=o.fullpath,this.#t$=o.relative,this.#tB=o.relativePosix,this.parent=o.parent,this.parent?this.#ty=this.parent.#ty:this.#ty=ej(o.fs)}depth(){return void 0!==this.#tz?this.#tz:this.parent?this.#tz=this.parent.depth()+1:this.#tz=0}childrenCache(){return this.#tq}resolve(t){if(!t)return this;let e=this.getRootString(t),i=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#tZ(i):this.#tZ(i)}#tZ(t){let e=this;for(let i of t)e=e.child(i);return e}children(){let t=this.#tq.get(this);if(t)return t;let e=Object.assign([],{provisional:0});return this.#tq.set(this,e),this.#tG&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;let i=this.children(),s=this.nocase?eI(t):ez(t);for(let t of i)if(t.#tW===s)return t;let r=this.parent?this.sep:"",n=this.#tU?this.#tU+r+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:n});return this.canReaddir()||(o.#tG|=128),i.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#t$)return this.#t$;let t=this.name,e=this.parent;if(!e)return this.#t$=this.name;let i=e.relative();return i+(i&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#tB)return this.#tB;let t=this.name,e=this.parent;if(!e)return this.#tB=this.fullpathPosix();let i=e.relativePosix();return i+(i&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#tU)return this.#tU;let t=this.name,e=this.parent;if(!e)return this.#tU=this.name;let i=e.fullpath()+(e.parent?this.sep:"")+t;return this.#tU=i}fullpathPosix(){if(void 0!==this.#tI)return this.#tI;if("/"===this.sep)return this.#tI=this.fullpath();if(!this.parent){let t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#tI=`//?/${t}`:this.#tI=t}let t=this.parent,e=t.fullpathPosix(),i=e+(e&&t.parent?"/":"")+this.name;return this.#tI=i}isUnknown(){return(15&this.#tG)==0}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(15&this.#tG)==8}isDirectory(){return(15&this.#tG)==4}isCharacterDevice(){return(15&this.#tG)==2}isBlockDevice(){return(15&this.#tG)==6}isFIFO(){return(15&this.#tG)==1}isSocket(){return(15&this.#tG)==12}isSymbolicLink(){return(10&this.#tG)==10}lstatCached(){return 32&this.#tG?this:void 0}readlinkCached(){return this.#tH}realpathCached(){return this.#tV}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#tH)return!0;if(!this.parent)return!1;let t=15&this.#tG;return!(0!==t&&10!==t||256&this.#tG||128&this.#tG)}calledReaddir(){return!!(16&this.#tG)}isENOENT(){return!!(128&this.#tG)}isNamed(t){return this.nocase?this.#tW===eI(t):this.#tW===ez(t)}async readlink(){let t=this.#tH;if(t)return t;if(this.canReadlink()&&this.parent)try{let t=await this.#ty.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#tH=e}catch(t){this.#tJ(t.code);return}}readlinkSync(){let t=this.#tH;if(t)return t;if(this.canReadlink()&&this.parent)try{let t=this.#ty.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#tH=e}catch(t){this.#tJ(t.code);return}}#tX(t){this.#tG|=16;for(let e=t.provisional;e<t.length;e++){let i=t[e];i&&i.#tK()}}#tK(){128&this.#tG||(this.#tG=(128|this.#tG)&-16,this.#tY())}#tY(){let t=this.children();for(let e of(t.provisional=0,t))e.#tK()}#tQ(){this.#tG|=512,this.#t0()}#t0(){if(64&this.#tG)return;let t=this.#tG;(15&t)==4&&(t&=-16),this.#tG=64|t,this.#tY()}#t1(t=""){"ENOTDIR"===t||"EPERM"===t?this.#t0():"ENOENT"===t?this.#tK():this.children().provisional=0}#t2(t=""){"ENOTDIR"===t?this.parent.#t0():"ENOENT"===t&&this.#tK()}#tJ(t=""){let e=this.#tG;e|=256,"ENOENT"===t&&(e|=128),("EINVAL"===t||"UNKNOWN"===t)&&(e&=-16),this.#tG=e,"ENOTDIR"===t&&this.parent&&this.parent.#t0()}#t3(t,e){return this.#t4(t,e)||this.#t6(t,e)}#t6(t,e){let i=eD(t),s=this.newChild(t.name,i,{parent:this}),r=15&s.#tG;return 4!==r&&10!==r&&0!==r&&(s.#tG|=64),e.unshift(s),e.provisional++,s}#t4(t,e){for(let i=e.provisional;i<e.length;i++){let s=e[i];if((this.nocase?eI(t.name):ez(t.name))===s.#tW)return this.#t9(t,s,i,e)}}#t9(t,e,i,s){let r=e.name;return e.#tG=-16&e.#tG|eD(t),r!==t.name&&(e.name=t.name),i!==s.provisional&&(i===s.length-1?s.pop():s.splice(i,1),s.unshift(e)),s.provisional++,e}async lstat(){if((128&this.#tG)==0)try{return this.#t5(await this.#ty.promises.lstat(this.fullpath())),this}catch(t){this.#t2(t.code)}}lstatSync(){if((128&this.#tG)==0)try{return this.#t5(this.#ty.lstatSync(this.fullpath())),this}catch(t){this.#t2(t.code)}}#t5(t){let{atime:e,atimeMs:i,birthtime:s,birthtimeMs:r,blksize:n,blocks:o,ctime:h,ctimeMs:a,dev:l,gid:u,ino:c,mode:p,mtime:d,mtimeMs:f,nlink:g,rdev:m,size:b,uid:w}=t;this.#tM=e,this.#t_=i,this.#tD=s,this.#tj=r,this.#tP=n,this.#tA=o,this.#tF=h,this.#tL=a,this.#tv=l,this.#tE=u,this.#tO=c,this.#tS=p,this.#tN=d,this.#tT=f,this.#tx=g,this.#tC=m,this.#tR=b,this.#tk=w;let y=eD(t);this.#tG=-16&this.#tG|y|32,0!==y&&4!==y&&10!==y&&(this.#tG|=64)}#t8=[];#t7=!1;#et(t){this.#t7=!1;let e=this.#t8.slice();this.#t8.length=0,e.forEach(e=>e(null,t))}readdirCB(t,e=!1){if(!this.canReaddir()){e?t(null,[]):queueMicrotask(()=>t(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);e?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#t8.push(t),this.#t7)return;this.#t7=!0;let s=this.fullpath();this.#ty.readdir(s,{withFileTypes:!0},(t,e)=>{if(t)this.#t1(t.code),i.provisional=0;else{for(let t of e)this.#t3(t,i);this.#tX(i)}this.#et(i.slice(0,i.provisional))})}#ee;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let e=this.fullpath();if(this.#ee)await this.#ee;else{let i=()=>{};this.#ee=new Promise(t=>i=t);try{for(let i of(await this.#ty.promises.readdir(e,{withFileTypes:!0})))this.#t3(i,t);this.#tX(t)}catch(e){this.#t1(e.code),t.provisional=0}this.#ee=void 0,i()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let e=this.fullpath();try{for(let i of this.#ty.readdirSync(e,{withFileTypes:!0}))this.#t3(i,t);this.#tX(t)}catch(e){this.#t1(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#tG)return!1;let t=15&this.#tG;return 0===t||4===t||10===t}shouldWalk(t,e){return(4&this.#tG)==4&&!(704&this.#tG)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#tV)return this.#tV;if(!(896&this.#tG))try{let t=await this.#ty.promises.realpath(this.fullpath());return this.#tV=this.resolve(t)}catch(t){this.#tQ()}}realpathSync(){if(this.#tV)return this.#tV;if(!(896&this.#tG))try{let t=this.#ty.realpathSync(this.fullpath());return this.#tV=this.resolve(t)}catch(t){this.#tQ()}}[eG](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let e=new Set([]),i=[],s=this;for(;s&&s.parent;)e.add(s),s.#t$=i.join(this.sep),s.#tB=i.join("/"),s=s.parent,i.push("..");for(s=t;s&&s.parent&&!e.has(s);)s.#t$=void 0,s.#tB=void 0,s=s.parent}}class eH extends eq{sep="\\";splitSep=eF;constructor(t,e=0,i,s,r,n,o){super(t,e,i,s,r,n,o)}newChild(t,e=0,i={}){return new eH(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return t$.win32.parse(t).root}getRoot(t){if((t=eN(t.toUpperCase()))===this.root.name)return this.root;for(let[e,i]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=i;return this.roots[t]=new eJ(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(eM,"$1\\"))===e}}class eV extends eq{splitSep="/";sep="/";constructor(t,e=0,i,s,r,n,o){super(t,e,i,s,r,n,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,i={}){return new eV(t,e,this.root,this.roots,this.nocase,this.childrenCache(),i)}}class eZ{root;rootPath;roots;cwd;#ei;#es;#tq;nocase;#ty;constructor(t=process.cwd(),e,i,{nocase:s,childrenCacheSize:r=16384,fs:n=eL}={}){this.#ty=ej(n),(t instanceof URL||t.startsWith("file://"))&&(t=(0,tA.fileURLToPath)(t));let o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#ei=new e$,this.#es=new e$,this.#tq=new eB(r);let h=o.substring(this.rootPath.length).split(i);if(1!==h.length||h[0]||h.pop(),void 0===s)throw TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#ty),this.roots[this.rootPath]=this.root;let a=this.root,l=h.length-1,u=e.sep,c=this.rootPath,p=!1;for(let t of h){let e=l--;a=a.child(t,{relative:Array(e).fill("..").join(u),relativePosix:Array(e).fill("..").join("/"),fullpath:c+=(p?"":u)+t}),p=!0}this.cwd=a}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#tq}resolve(...t){let e="";for(let i=t.length-1;i>=0;i--){let s=t[i];if(s&&"."!==s&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}let i=this.#ei.get(e);if(void 0!==i)return i;let s=this.cwd.resolve(e).fullpath();return this.#ei.set(e,s),s}resolvePosix(...t){let e="";for(let i=t.length-1;i>=0;i--){let s=t[i];if(s&&"."!==s&&(e=e?`${s}/${e}`:s,this.isAbsolute(s)))break}let i=this.#es.get(e);if(void 0!==i)return i;let s=this.cwd.resolve(e).fullpathPosix();return this.#es.set(e,s),s}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i}=e;if(!t.canReaddir())return[];{let e=await t.readdir();return i?e:e.map(t=>t.name)}}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i=!0}=e;return t.canReaddir()?i?t.readdirSync():t.readdirSync().map(t=>t.name):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t.withFileTypes,t=this.cwd);let i=await t.readlink();return e?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t.withFileTypes,t=this.cwd);let i=t.readlinkSync();return e?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t.withFileTypes,t=this.cwd);let i=await t.realpath();return e?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t.withFileTypes,t=this.cwd);let i=t.realpathSync();return e?i:i?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,o=[];(!r||r(t))&&o.push(i?t:t.fullpath());let h=new Set,a=(t,e)=>{h.add(t),t.readdirCB((t,l)=>{if(t)return e(t);let u=l.length;if(!u)return e();let c=()=>{0==--u&&e()};for(let t of l)(!r||r(t))&&o.push(i?t:t.fullpath()),s&&t.isSymbolicLink()?t.realpath().then(t=>t?.isUnknown()?t.lstat():t).then(t=>t?.shouldWalk(h,n)?a(t,c):c()):t.shouldWalk(h,n)?a(t,c):c()},!0)},l=t;return new Promise((t,e)=>{a(l,i=>{if(i)return e(i);t(o)})})}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,o=[];(!r||r(t))&&o.push(i?t:t.fullpath());let h=new Set([t]);for(let t of h)for(let e of t.readdirSync()){(!r||r(e))&&o.push(i?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(s&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(h,n)&&h.add(t)}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e;(!r||r(t))&&(yield i?t:t.fullpath());let o=new Set([t]);for(let t of o)for(let e of t.readdirSync()){(!r||r(e))&&(yield i?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(s&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,n)&&o.add(t)}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,o=new e_({objectMode:!0});(!r||r(t))&&o.write(i?t:t.fullpath());let h=new Set,a=[t],l=0,u=()=>{let t=!1;for(;!t;){let e=a.shift();if(!e){0===l&&o.end();return}l++,h.add(e);let c=(e,d,f=!1)=>{if(e)return o.emit("error",e);if(s&&!f){let t=[];for(let e of d)e.isSymbolicLink()&&t.push(e.realpath().then(t=>t?.isUnknown()?t.lstat():t));if(t.length){Promise.all(t).then(()=>c(null,d,!0));return}}for(let e of d)e&&(!r||r(e))&&!o.write(i?e:e.fullpath())&&(t=!0);for(let t of(l--,d)){let e=t.realpathCached()||t;e.shouldWalk(h,n)&&a.push(e)}t&&!o.flowing?o.once("drain",u):p||u()},p=!0;e.readdirCB(c,!0),p=!1}};return u(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof eq||(e=t,t=this.cwd);let{withFileTypes:i=!0,follow:s=!1,filter:r,walkFilter:n}=e,o=new e_({objectMode:!0}),h=new Set;(!r||r(t))&&o.write(i?t:t.fullpath());let a=[t],l=0,u=()=>{let t=!1;for(;!t;){let e=a.shift();if(!e){0===l&&o.end();return}l++,h.add(e);let u=e.readdirSync();for(let e of u)(!r||r(e))&&!o.write(i?e:e.fullpath())&&(t=!0);for(let t of(l--,u)){let e=t;if(t.isSymbolicLink()){if(!(s&&(e=t.realpathSync())))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(h,n)&&a.push(e)}}t&&!o.flowing&&o.once("drain",u)};return u(),o}chdir(t=this.cwd){let e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[eG](e)}}class eJ extends eZ{sep="\\";constructor(t=process.cwd(),e={}){let{nocase:i=!0}=e;super(t,t$.win32,"\\",{...e,nocase:i}),this.nocase=i;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return t$.win32.parse(t).root.toUpperCase()}newRoot(t){return new eH(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}class eX extends eZ{sep="/";constructor(t=process.cwd(),e={}){let{nocase:i=!1}=e;super(t,t$.posix,"/",{...e,nocase:i}),this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new eV(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}class eK extends eX{constructor(t=process.cwd(),e={}){let{nocase:i=!0}=e;super(t,{...e,nocase:i})}}process.platform;let eY="win32"===process.platform?eJ:"darwin"===process.platform?eK:eX,eQ=t=>t.length>=1,e0=t=>t.length>=1;class e1{#er;#en;#eo;length;#eh;#ea;#el;#eu;#ec;#ep;#ed=!0;constructor(t,e,i,s){if(!eQ(t))throw TypeError("empty pattern list");if(!e0(e))throw TypeError("empty glob list");if(e.length!==t.length)throw TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,i<0||i>=this.length)throw TypeError("index out of range");if(this.#er=t,this.#en=e,this.#eo=i,this.#eh=s,0===this.#eo){if(this.isUNC()){let[t,e,i,s,...r]=this.#er,[n,o,h,a,...l]=this.#en;""===r[0]&&(r.shift(),l.shift());let u=[t,e,i,s,""].join("/"),c=[n,o,h,a,""].join("/");this.#er=[u,...r],this.#en=[c,...l],this.length=this.#er.length}else if(this.isDrive()||this.isAbsolute()){let[t,...e]=this.#er,[i,...s]=this.#en;""===e[0]&&(e.shift(),s.shift()),this.#er=[t+"/",...e],this.#en=[i+"/",...s],this.length=this.#er.length}}}pattern(){return this.#er[this.#eo]}isString(){return"string"==typeof this.#er[this.#eo]}isGlobstar(){return this.#er[this.#eo]===tx}isRegExp(){return this.#er[this.#eo]instanceof RegExp}globString(){return this.#el=this.#el||(0===this.#eo?this.isAbsolute()?this.#en[0]+this.#en.slice(1).join("/"):this.#en.join("/"):this.#en.slice(this.#eo).join("/"))}hasMore(){return this.length>this.#eo+1}rest(){return void 0!==this.#ea?this.#ea:this.hasMore()?(this.#ea=new e1(this.#er,this.#en,this.#eo+1,this.#eh),this.#ea.#ep=this.#ep,this.#ea.#ec=this.#ec,this.#ea.#eu=this.#eu,this.#ea):this.#ea=null}isUNC(){let t=this.#er;return void 0!==this.#ec?this.#ec:this.#ec="win32"===this.#eh&&0===this.#eo&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){let t=this.#er;return void 0!==this.#eu?this.#eu:this.#eu="win32"===this.#eh&&0===this.#eo&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#er;return void 0!==this.#ep?this.#ep:this.#ep=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#er[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#eo?t:""}checkFollowGlobstar(){return!(0===this.#eo||!this.isGlobstar()||!this.#ed)}markFollowGlobstar(){return!!(0!==this.#eo&&this.isGlobstar())&&!!this.#ed&&(this.#ed=!1,!0)}}let e2="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class e3{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:i,noext:s,noglobstar:r,platform:n=e2}){for(let o of(this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=n,this.mmopts={dot:!0,nobrace:e,nocase:i,noext:s,noglobstar:r,optimizationLevel:2,platform:n,nocomment:!0,nonegate:!0},t))this.add(o)}add(t){let e=new tO(t,this.mmopts);for(let t=0;t<e.set.length;t++){let i=e.set[t],s=e.globParts[t];if(!i||!s)throw Error("invalid pattern object");for(;"."===i[0]&&"."===s[0];)i.shift(),s.shift();let r=new e1(i,s,0,this.platform),n=new tO(r.globString(),this.mmopts),o="**"===s[s.length-1],h=r.isAbsolute();h?this.absolute.push(n):this.relative.push(n),o&&(h?this.absoluteChildren.push(n):this.relativeChildren.push(n))}}ignored(t){let e=t.fullpath(),i=`${e}/`,s=t.relative()||".",r=`${s}/`;for(let t of this.relative)if(t.match(s)||t.match(r))return!0;for(let t of this.absolute)if(t.match(e)||t.match(i))return!0;return!1}childrenIgnored(t){let e=t.fullpath()+"/",i=(t.relative()||".")+"/";for(let t of this.relativeChildren)if(t.match(i))return!0;for(let t of this.absoluteChildren)if(t.match(e))return!0;return!1}}class e4{store;constructor(t=new Map){this.store=t}copy(){return new e4(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){let i=t.fullpath(),s=this.store.get(i);s?s.add(e.globString()):this.store.set(i,new Set([e.globString()]))}}class e6{store=new Map;add(t,e,i){let s=(e?2:0)|(i?1:0),r=this.store.get(t);this.store.set(t,void 0===r?s:s&r)}entries(){return[...this.store.entries()].map(([t,e])=>[t,!!(2&e),!!(1&e)])}}class e9{store=new Map;add(t,e){if(!t.canReaddir())return;let i=this.store.get(t);i?i.find(t=>t.globString()===e.globString())||i.push(e):this.store.set(t,[e])}get(t){let e=this.store.get(t);if(!e)throw Error("attempting to walk unknown path");return e}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}}class e5{hasWalkedCache;matches=new e6;subwalks=new e9;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new e4}processPatterns(t,e){for(let[i,s]of(this.patterns=e,e.map(e=>[t,e]))){let t,e;this.hasWalkedCache.storeWalked(i,s);let r=s.root(),n=s.isAbsolute()&&!1!==this.opts.absolute;if(r){i=i.resolve("/"===r&&void 0!==this.opts.root?this.opts.root:r);let t=s.rest();if(t)s=t;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let o=!1;for(;"string"==typeof(t=s.pattern())&&(e=s.rest());)i=i.resolve(t),s=e,o=!0;if(t=s.pattern(),e=s.rest(),o){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if("string"==typeof t){let e=".."===t||""===t||"."===t;this.matches.add(i.resolve(t),n,e);continue}if(t===tx){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let t=e?.pattern(),r=e?.rest();if(e&&(""!==t&&"."!==t||r)){if(".."===t){let t=i.parent||i;r?this.hasWalkedCache.hasWalked(t,r)||this.subwalks.add(t,r):this.matches.add(t,n,!0)}}else this.matches.add(i,n,""===t||"."===t)}else t instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e5(this.opts,this.hasWalkedCache)}filterEntries(t,e){let i=this.subwalks.get(t),s=this.child();for(let t of e)for(let e of i){let i=e.isAbsolute(),r=e.pattern(),n=e.rest();r===tx?s.testGlobstar(t,e,n,i):r instanceof RegExp?s.testRegExp(t,r,n,i):s.testString(t,r,n,i)}return s}testGlobstar(t,e,i,s){if((this.dot||!t.name.startsWith("."))&&(e.hasMore()||this.matches.add(t,s,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(i&&e.checkFollowGlobstar()?this.subwalks.add(t,i):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),i){let e=i.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,i.rest(),s);else if(".."===e){let e=t.parent||t;this.subwalks.add(e,i)}else e instanceof RegExp&&this.testRegExp(t,e,i.rest(),s)}}testRegExp(t,e,i,s){e.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}testString(t,e,i,s){t.isNamed(e)&&(i?this.subwalks.add(t,i):this.matches.add(t,s,!1))}}let e8=(t,e)=>"string"==typeof t?new e3([t],e):Array.isArray(t)?new e3(t,e):t;class e7{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#ef=[];#eg;#em;signal;maxDepth;includeChildMatches;constructor(t,e,i){if(this.patterns=t,this.path=e,this.opts=i,this.#em=i.posix||"win32"!==i.platform?"/":"\\",this.includeChildMatches=!1!==i.includeChildMatches,(i.ignore||!this.includeChildMatches)&&(this.#eg=e8(i.ignore??[],i),!this.includeChildMatches&&"function"!=typeof this.#eg.add))throw Error("cannot ignore child matches, ignore lacks add() method.");this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#ef.length=0}))}#eb(t){return this.seen.has(t)||!!this.#eg?.ignored?.(t)}#ew(t){return!!this.#eg?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){let t;if(!this.signal?.aborted)for(this.paused=!1;!this.paused&&(t=this.#ef.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#ef.push(t):t())}async matchCheck(t,e){let i;if(e&&this.opts.nodir)return;if(this.opts.realpath){if(!(i=t.realpathCached()||await t.realpath()))return;t=i}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let t=await s.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(s,e)}matchCheckTest(t,e){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!e||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#eb(t)?t:void 0}matchCheckSync(t,e){let i;if(e&&this.opts.nodir)return;if(this.opts.realpath){if(!(i=t.realpathCached()||t.realpathSync()))return;t=i}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let t=s.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(s,e)}matchFinish(t,e){if(this.#eb(t))return;if(!this.includeChildMatches&&this.#eg?.add){let e=`${t.relativePosix()}/**`;this.#eg.add(e)}let i=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);let s=this.opts.mark&&t.isDirectory()?this.#em:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(i){let e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+s)}else{let e=this.opts.posix?t.relativePosix():t.relative(),i=this.opts.dotRelative&&!e.startsWith(".."+this.#em)?"."+this.#em:"";this.matchEmit(e?i+e+s:"."+s)}}async match(t,e,i){let s=await this.matchCheck(t,i);s&&this.matchFinish(s,e)}matchSync(t,e,i){let s=this.matchCheckSync(t,i);s&&this.matchFinish(s,e)}walkCB(t,e,i){this.signal?.aborted&&i(),this.walkCB2(t,e,new e5(this.opts),i)}walkCB2(t,e,i,s){if(this.#ew(t))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2(t,e,i,s));return}i.processPatterns(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#eb(t)||(r++,this.match(t,e,s).then(()=>n()));for(let t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;r++;let e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,i,n):t.readdirCB((e,s)=>this.walkCB3(t,s,i,n),!0)}n()}walkCB3(t,e,i,s){i=i.filterEntries(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#eb(t)||(r++,this.match(t,e,s).then(()=>n()));for(let[t,e]of i.subwalks.entries())r++,this.walkCB2(t,e,i.child(),n);n()}walkCBSync(t,e,i){this.signal?.aborted&&i(),this.walkCB2Sync(t,e,new e5(this.opts),i)}walkCB2Sync(t,e,i,s){if(this.#ew(t))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2Sync(t,e,i,s));return}i.processPatterns(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#eb(t)||this.matchSync(t,e,s);for(let t of i.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;r++;let e=t.readdirSync();this.walkCB3Sync(t,e,i,n)}n()}walkCB3Sync(t,e,i,s){i=i.filterEntries(t,e);let r=1,n=()=>{0==--r&&s()};for(let[t,e,s]of i.matches.entries())this.#eb(t)||this.matchSync(t,e,s);for(let[t,e]of i.subwalks.entries())r++,this.walkCB2Sync(t,e,i.child(),n);n()}}class it extends e7{matches=new Set;constructor(t,e,i){super(t,e,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,e)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}class ie extends e7{results;constructor(t,e,i){super(t,e,i),this.results=new e_({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}let ii="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class is{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,e){if(!e)throw TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,tA.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=!1!==e.includeChildMatches,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map(t=>t.replace(/\\/g,"/"))),this.matchBase){if(e.noglobstar)throw TypeError("base matching requires globstar");t=t.map(t=>t.includes("/")?t:`./**/${t}`)}if(this.pattern=t,this.platform=e.platform||ii,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw Error("nocase option contradicts provided scurry option")}else{let t="win32"===e.platform?eJ:"darwin"===e.platform?eK:e.platform?eX:eY;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;let i="darwin"===this.platform||"win32"===this.platform,s={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[r,n]=this.pattern.map(t=>new tO(t,s)).reduce((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t),[[],[]]);this.patterns=r.map((t,e)=>{let i=n[e];if(!i)throw Error("invalid pattern object");return new e1(t,i,0,this.platform)})}async walk(){return[...await new it(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new it(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new ie(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new ie(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}function ir(t,e={}){return new is(t,e).streamSync()}function io(t,e={}){return new is(t,e).stream()}function ih(t,e={}){return new is(t,e).walkSync()}async function ia(t,e={}){return new is(t,e).walk()}function il(t,e={}){return new is(t,e).iterateSync()}function iu(t,e={}){return new is(t,e).iterate()}let ic=Object.assign(io,{sync:ir}),ip=Object.assign(iu,{sync:il}),id=Object.assign(ih,{stream:ir,iterate:il}),ig=Object.assign(ia,{glob:ia,globSync:ih,sync:id,globStream:io,stream:ic,globStreamSync:ir,streamSync:ir,globIterate:iu,iterate:ip,globIterateSync:il,iterateSync:il,Glob:is,hasMagic:(t,e={})=>{for(let i of(Array.isArray(t)||(t=[t]),t))if(new tO(i,e).hasMagic())return!0;return!1},escape:K,unescape:j});ig.glob=ig}};