@astrojs/cloudflare 1.0.1 → 2.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.
@@ -1,5 +1,5 @@
1
- @astrojs/cloudflare:build: cache hit, replaying output 03c6faddfb08a8f8
2
- @astrojs/cloudflare:build: 
3
- @astrojs/cloudflare:build: > @astrojs/cloudflare@1.0.1 build /Users/matthew/dev/astro/packages/integrations/cloudflare
4
- @astrojs/cloudflare:build: > astro-scripts build "src/**/*.ts" && tsc
5
- @astrojs/cloudflare:build: 
1
+ @astrojs/cloudflare:build: cache hit, replaying output 77d2b45b1cd7ea2d
2
+ @astrojs/cloudflare:build: 
3
+ @astrojs/cloudflare:build: > @astrojs/cloudflare@2.0.0 build /home/runner/work/astro/astro/packages/integrations/cloudflare
4
+ @astrojs/cloudflare:build: > astro-scripts build "src/**/*.ts" && tsc
5
+ @astrojs/cloudflare:build: 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @astrojs/cloudflare
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#4815](https://github.com/withastro/astro/pull/4815) [`ce0b92ba7`](https://github.com/withastro/astro/commit/ce0b92ba73072c0f0143829a53f870155ad4c7ff) Thanks [@AirBorne04](https://github.com/AirBorne04)! - adjusted esbuild config to work with worker environment (fixing solid js ssr)
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#4558](https://github.com/withastro/astro/pull/4558) [`742966456`](https://github.com/withastro/astro/commit/7429664566f05ecebf6d57906f950627e62e690c) Thanks [@tony-sull](https://github.com/tony-sull)! - Adding the `withastro` keyword to include the adapters on the [Integrations Catalog](https://astro.build/integrations)
14
+
3
15
  ## 1.0.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -2,9 +2,25 @@
2
2
 
3
3
  An SSR adapter for use with Cloudflare Pages Functions targets. Write your code in Astro/Javascript and deploy to Cloudflare Pages.
4
4
 
5
- In your `astro.config.mjs` use:
5
+ ## Install
6
6
 
7
- ```js
7
+ Add the Cloudflare adapter to enable SSR in your Astro project with the following `astro add` command. This will install the adapter and make the appropriate changes to your `astro.config.mjs` file in one step.
8
+
9
+ ```bash
10
+ npx astro add cloudflare
11
+ ```
12
+
13
+ If you prefer to install the adapter manually instead, complete the following two steps:
14
+
15
+ 1. Add the Cloudflare adapter to your project's dependencies using your preferred package manager. If you’re using npm or aren’t sure, run this in the terminal:
16
+
17
+ ```bash
18
+ npm install @astrojs/cloudflare
19
+ ```
20
+
21
+ 2. Add the following to your `astro.config.mjs` file:
22
+
23
+ ```js title="astro.config.mjs" ins={2, 5-6}
8
24
  import { defineConfig } from 'astro/config';
9
25
  import cloudflare from '@astrojs/cloudflare';
10
26
 
@@ -55,3 +71,17 @@ In order to work around this:
55
71
  - install the `"web-streams-polyfill"` package
56
72
  - add `import "web-streams-polyfill/es2018";` to the top of the front matter of every page which requires streams, such as server rendering a React component.
57
73
 
74
+ ## Environment Variables
75
+
76
+ As Cloudflare Pages Functions [provides environment variables differently](https://developers.cloudflare.com/pages/platform/functions/#adding-environment-variables-locally), private environment variables needs to be set through [`vite.define`](https://vitejs.dev/config/shared-options.html#define) to work in builds.
77
+
78
+ ```js
79
+ // astro.config.mjs
80
+ export default {
81
+ vite: {
82
+ define: {
83
+ 'process.env.MY_SECRET': JSON.stringify(process.env.MY_SECRET),
84
+ },
85
+ },
86
+ }
87
+ ```
package/dist/index.js CHANGED
@@ -52,8 +52,8 @@ function createIntegration(args) {
52
52
  }
53
53
  }
54
54
  vite.ssr = {
55
- target: "webworker",
56
- noExternal: true
55
+ ...vite.ssr,
56
+ target: "webworker"
57
57
  };
58
58
  }
59
59
  },
@@ -62,7 +62,9 @@ function createIntegration(args) {
62
62
  const pkg = fileURLToPath(entryUrl);
63
63
  await esbuild.build({
64
64
  target: "es2020",
65
- platform: "browser",
65
+ platform: "neutral",
66
+ mainFields: ["main", "module"],
67
+ conditions: ["worker", "node"],
66
68
  entryPoints: [pkg],
67
69
  outfile: pkg,
68
70
  allowOverwrite: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to cloudflare pages functions",
4
- "version": "1.0.1",
4
+ "version": "2.0.0",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -12,6 +12,7 @@
12
12
  "directory": "packages/integrations/cloudflare"
13
13
  },
14
14
  "keywords": [
15
+ "withastro",
15
16
  "astro-adapter"
16
17
  ],
17
18
  "bugs": "https://github.com/withastro/astro/issues",
@@ -26,7 +27,7 @@
26
27
  "esbuild": "^0.14.42"
27
28
  },
28
29
  "devDependencies": {
29
- "astro": "1.0.2",
30
+ "astro": "1.2.8",
30
31
  "astro-scripts": "0.0.7",
31
32
  "wrangler": "^2.0.23"
32
33
  },
package/src/index.ts CHANGED
@@ -67,8 +67,8 @@ export default function createIntegration(args?: Options): AstroIntegration {
67
67
  }
68
68
 
69
69
  vite.ssr = {
70
+ ...vite.ssr,
70
71
  target: 'webworker',
71
- noExternal: true,
72
72
  };
73
73
  }
74
74
  },
@@ -77,7 +77,9 @@ export default function createIntegration(args?: Options): AstroIntegration {
77
77
  const pkg = fileURLToPath(entryUrl);
78
78
  await esbuild.build({
79
79
  target: 'es2020',
80
- platform: 'browser',
80
+ platform: 'neutral',
81
+ mainFields: ['main', 'module'],
82
+ conditions: ['worker', 'node'],
81
83
  entryPoints: [pkg],
82
84
  outfile: pkg,
83
85
  allowOverwrite: true,
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/Users/matthew/dev/astro/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="$NODE_PATH:/Users/matthew/dev/astro/node_modules/.pnpm/node_modules"
11
+ export NODE_PATH="$NODE_PATH:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../../../../../../../astro/astro.js" "$@"
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/Users/matthew/dev/astro/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="$NODE_PATH:/Users/matthew/dev/astro/node_modules/.pnpm/node_modules"
11
+ export NODE_PATH="$NODE_PATH:/home/runner/work/astro/astro/node_modules/.pnpm/node_modules"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../../../../../../../astro/astro.js" "$@"
package/.pnpm-debug.log DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "0 debug pnpm:scope": {
3
- "selected": 1,
4
- "workspacePrefix": "/Users/matthew/dev/astro"
5
- },
6
- "1 error pnpm": {
7
- "code": "ELIFECYCLE",
8
- "errno": "ENOENT",
9
- "syscall": "spawn",
10
- "file": "sh",
11
- "pkgid": "@astrojs/cloudflare@0.1.0",
12
- "stage": "dev",
13
- "script": "astro-scripts dev \"src/**/*.ts\"",
14
- "pkgname": "@astrojs/cloudflare",
15
- "err": {
16
- "name": "pnpm",
17
- "message": "@astrojs/cloudflare@0.1.0 dev: `astro-scripts dev \"src/**/*.ts\"`\nspawn ENOENT",
18
- "code": "ELIFECYCLE",
19
- "stack": "pnpm: @astrojs/cloudflare@0.1.0 dev: `astro-scripts dev \"src/**/*.ts\"`\nspawn ENOENT\n at ChildProcess.<anonymous> (/Users/matthew/.volta/tools/image/node/14.19.1/pnpm-global/5/node_modules/.pnpm/pnpm@7.0.1/node_modules/pnpm/dist/pnpm.cjs:93293:22)\n at ChildProcess.emit (events.js:400:28)\n at maybeClose (internal/child_process.js:1058:16)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)"
20
- }
21
- }
22
- }
package/dist/server.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import './shim.js';
2
- import type { SSRManifest } from 'astro';
3
- declare type Env = {
4
- ASSETS: {
5
- fetch: (req: Request) => Promise<Response>;
6
- };
7
- };
8
- export declare function createExports(manifest: SSRManifest): {
9
- default: {
10
- fetch: (request: Request, env: Env) => Promise<Response>;
11
- };
12
- };
13
- export {};
@@ -1,252 +0,0 @@
1
- globalThis.process = {
2
- argv: [],
3
- env: {},
4
- };
5
- var oi=Object.create;var Zt=Object.defineProperty;var si=Object.getOwnPropertyDescriptor;var pi=Object.getOwnPropertyNames;var ci=Object.getPrototypeOf,li=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var di=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pi(t))!li.call(e,r)&&r!==a&&Zt(e,r,{get:()=>t[r],enumerable:!(i=si(t,r))||i.enumerable});return e};var fi=(e,t,a)=>(a=e!=null?oi(ci(e)):{},di(t||!e||!e.__esModule?Zt(a,"default",{value:e,enumerable:!0}):a,e));var et=S((tp,Xt)=>{"use strict";Xt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},a=Symbol("test"),i=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;t[a]=r;for(a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==a||!Object.prototype.propertyIsEnumerable.call(t,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var n=Object.getOwnPropertyDescriptor(t,a);if(n.value!==r||n.enumerable!==!0)return!1}return!0}});var se=S((np,Qt)=>{"use strict";var ui=et();Qt.exports=function(){return ui()&&!!Symbol.toStringTag}});var nn=S((ap,tn)=>{"use strict";var en=typeof Symbol<"u"&&Symbol,mi=et();tn.exports=function(){return typeof en!="function"||typeof Symbol!="function"||typeof en("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:mi()}});var rn=S((ip,an)=>{"use strict";var xi="Function.prototype.bind called on incompatible ",tt=Array.prototype.slice,vi=Object.prototype.toString,yi="[object Function]";an.exports=function(t){var a=this;if(typeof a!="function"||vi.call(a)!==yi)throw new TypeError(xi+a);for(var i=tt.call(arguments,1),r,o=function(){if(this instanceof r){var d=a.apply(this,i.concat(tt.call(arguments)));return Object(d)===d?d:this}else return a.apply(t,i.concat(tt.call(arguments)))},n=Math.max(0,a.length-i.length),s=[],p=0;p<n;p++)s.push("$"+p);if(r=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(o),a.prototype){var c=function(){};c.prototype=a.prototype,r.prototype=new c,c.prototype=null}return r}});var we=S((rp,on)=>{"use strict";var gi=rn();on.exports=Function.prototype.bind||gi});var pn=S((op,sn)=>{"use strict";var hi=we();sn.exports=hi.call(Function.call,Object.prototype.hasOwnProperty)});var ke=S((sp,fn)=>{"use strict";var h,K=SyntaxError,dn=Function,V=TypeError,nt=function(e){try{return dn('"use strict"; return ('+e+").constructor;")()}catch{}},N=Object.getOwnPropertyDescriptor;if(N)try{N({},"")}catch{N=null}var at=function(){throw new V},bi=N?function(){try{return arguments.callee,at}catch{try{return N(arguments,"callee").get}catch{return at}}}():at,G=nn()(),B=Object.getPrototypeOf||function(e){return e.__proto__},J={},wi=typeof Uint8Array>"u"?h:B(Uint8Array),Y={"%AggregateError%":typeof AggregateError>"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":G?B([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":J,"%AsyncGenerator%":J,"%AsyncGeneratorFunction%":J,"%AsyncIteratorPrototype%":J,"%Atomics%":typeof Atomics>"u"?h:Atomics,"%BigInt%":typeof BigInt>"u"?h:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?h:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?h:Float32Array,"%Float64Array%":typeof Float64Array>"u"?h:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?h:FinalizationRegistry,"%Function%":dn,"%GeneratorFunction%":J,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G?B(B([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G?h:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G?h:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G?B(""[Symbol.iterator]()):h,"%Symbol%":G?Symbol:h,"%SyntaxError%":K,"%ThrowTypeError%":bi,"%TypedArray%":wi,"%TypeError%":V,"%Uint8Array%":typeof Uint8Array>"u"?h:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?h:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?h:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?h:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet},Ai=function e(t){var a;if(t==="%AsyncFunction%")a=nt("async function () {}");else if(t==="%GeneratorFunction%")a=nt("function* () {}");else if(t==="%AsyncGeneratorFunction%")a=nt("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(a=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var r=e("%AsyncGenerator%");r&&(a=B(r.prototype))}return Y[t]=a,a},cn={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pe=we(),Ae=pn(),Si=pe.call(Function.call,Array.prototype.concat),ki=pe.call(Function.apply,Array.prototype.splice),ln=pe.call(Function.call,String.prototype.replace),Se=pe.call(Function.call,String.prototype.slice),ji=pe.call(Function.call,RegExp.prototype.exec),Ei=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fi=/\\(\\)?/g,Pi=function(t){var a=Se(t,0,1),i=Se(t,-1);if(a==="%"&&i!=="%")throw new K("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&a!=="%")throw new K("invalid intrinsic syntax, expected opening `%`");var r=[];return ln(t,Ei,function(o,n,s,p){r[r.length]=s?ln(p,Fi,"$1"):n||o}),r},Oi=function(t,a){var i=t,r;if(Ae(cn,i)&&(r=cn[i],i="%"+r[0]+"%"),Ae(Y,i)){var o=Y[i];if(o===J&&(o=Ai(i)),typeof o>"u"&&!a)throw new V("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:o}}throw new K("intrinsic "+t+" does not exist!")};fn.exports=function(t,a){if(typeof t!="string"||t.length===0)throw new V("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new V('"allowMissing" argument must be a boolean');if(ji(/^%?[^%]*%?$/g,t)===null)throw new K("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Pi(t),r=i.length>0?i[0]:"",o=Oi("%"+r+"%",a),n=o.name,s=o.value,p=!1,c=o.alias;c&&(r=c[0],ki(i,Si([0,1],c)));for(var d=1,l=!0;d<i.length;d+=1){var u=i[d],w=Se(u,0,1),g=Se(u,-1);if((w==='"'||w==="'"||w==="`"||g==='"'||g==="'"||g==="`")&&w!==g)throw new K("property names with quotes must have matching quotes");if((u==="constructor"||!l)&&(p=!0),r+="."+u,n="%"+r+"%",Ae(Y,n))s=Y[n];else if(s!=null){if(!(u in s)){if(!a)throw new V("base intrinsic for "+t+" exists, but the property is not available.");return}if(N&&d+1>=i.length){var x=N(s,u);l=!!x,l&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[u]}else l=Ae(s,u),s=s[u];l&&!p&&(Y[n]=s)}}return s}});var gn=S((pp,je)=>{"use strict";var it=we(),Z=ke(),xn=Z("%Function.prototype.apply%"),vn=Z("%Function.prototype.call%"),yn=Z("%Reflect.apply%",!0)||it.call(vn,xn),un=Z("%Object.getOwnPropertyDescriptor%",!0),q=Z("%Object.defineProperty%",!0),Ci=Z("%Math.max%");if(q)try{q({},"a",{value:1})}catch{q=null}je.exports=function(t){var a=yn(it,vn,arguments);if(un&&q){var i=un(a,"length");i.configurable&&q(a,"length",{value:1+Ci(0,t.length-(arguments.length-1))})}return a};var mn=function(){return yn(it,xn,arguments)};q?q(je.exports,"apply",{value:mn}):je.exports.apply=mn});var Ee=S((cp,wn)=>{"use strict";var hn=ke(),bn=gn(),$i=bn(hn("String.prototype.indexOf"));wn.exports=function(t,a){var i=hn(t,!!a);return typeof i=="function"&&$i(t,".prototype.")>-1?bn(i):i}});var kn=S((lp,Sn)=>{"use strict";var Ti=se()(),Ri=Ee(),rt=Ri("Object.prototype.toString"),Fe=function(t){return Ti&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:rt(t)==="[object Arguments]"},An=function(t){return Fe(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&rt(t)!=="[object Array]"&&rt(t.callee)==="[object Function]"},Di=function(){return Fe(arguments)}();Fe.isLegacyArguments=An;Sn.exports=Di?Fe:An});var Fn=S((dp,En)=>{"use strict";var _i=Object.prototype.toString,zi=Function.prototype.toString,Bi=/^\s*(?:function)?\*/,jn=se()(),ot=Object.getPrototypeOf,Ii=function(){if(!jn)return!1;try{return Function("return function*() {}")()}catch{}},st;En.exports=function(t){if(typeof t!="function")return!1;if(Bi.test(zi.call(t)))return!0;if(!jn){var a=_i.call(t);return a==="[object GeneratorFunction]"}if(!ot)return!1;if(typeof st>"u"){var i=Ii();st=i?ot(i):!1}return ot(t)===st}});var $n=S((fp,Cn)=>{"use strict";var On=Function.prototype.toString,X=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,pt,Pe;if(typeof X=="function"&&typeof Object.defineProperty=="function")try{pt=Object.defineProperty({},"length",{get:function(){throw Pe}}),Pe={},X(function(){throw 42},null,pt)}catch(e){e!==Pe&&(X=null)}else X=null;var Mi=/^\s*class\b/,ct=function(t){try{var a=On.call(t);return Mi.test(a)}catch{return!1}},Ui=function(t){try{return ct(t)?!1:(On.call(t),!0)}catch{return!1}},Ni=Object.prototype.toString,qi="[object Function]",Li="[object GeneratorFunction]",Wi=typeof Symbol=="function"&&!!Symbol.toStringTag,Pn=typeof document=="object"&&typeof document.all>"u"&&document.all!==void 0?document.all:{};Cn.exports=X?function(t){if(t===Pn)return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(typeof t=="function"&&!t.prototype)return!0;try{X(t,null,pt)}catch(a){if(a!==Pe)return!1}return!ct(t)}:function(t){if(t===Pn)return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(typeof t=="function"&&!t.prototype)return!0;if(Wi)return Ui(t);if(ct(t))return!1;var a=Ni.call(t);return a===qi||a===Li}});var lt=S((up,Rn)=>{"use strict";var Hi=$n(),Gi=Object.prototype.toString,Tn=Object.prototype.hasOwnProperty,Ji=function(t,a,i){for(var r=0,o=t.length;r<o;r++)Tn.call(t,r)&&(i==null?a(t[r],r,t):a.call(i,t[r],r,t))},Vi=function(t,a,i){for(var r=0,o=t.length;r<o;r++)i==null?a(t.charAt(r),r,t):a.call(i,t.charAt(r),r,t)},Yi=function(t,a,i){for(var r in t)Tn.call(t,r)&&(i==null?a(t[r],r,t):a.call(i,t[r],r,t))},Ki=function(t,a,i){if(!Hi(a))throw new TypeError("iterator must be a function");var r;arguments.length>=3&&(r=i),Gi.call(t)==="[object Array]"?Ji(t,a,r):typeof t=="string"?Vi(t,a,r):Yi(t,a,r)};Rn.exports=Ki});var ft=S((mp,Dn)=>{"use strict";var dt=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Zi=typeof globalThis>"u"?global:globalThis;Dn.exports=function(){for(var t=[],a=0;a<dt.length;a++)typeof Zi[dt[a]]=="function"&&(t[t.length]=dt[a]);return t}});var ut=S((xp,_n)=>{"use strict";var Xi=ke(),Oe=Xi("%Object.getOwnPropertyDescriptor%",!0);if(Oe)try{Oe([],"length")}catch{Oe=null}_n.exports=Oe});var vt=S((vp,Un)=>{"use strict";var zn=lt(),Qi=ft(),xt=Ee(),er=xt("Object.prototype.toString"),Bn=se()(),tr=typeof globalThis>"u"?global:globalThis,In=Qi(),nr=xt("Array.prototype.indexOf",!0)||function(t,a){for(var i=0;i<t.length;i+=1)if(t[i]===a)return i;return-1},ar=xt("String.prototype.slice"),Mn={},Ce=ut(),mt=Object.getPrototypeOf;Bn&&Ce&&mt&&zn(In,function(e){var t=new tr[e];if(Symbol.toStringTag in t){var a=mt(t),i=Ce(a,Symbol.toStringTag);if(!i){var r=mt(a);i=Ce(r,Symbol.toStringTag)}Mn[e]=i.get}});var ir=function(t){var a=!1;return zn(Mn,function(i,r){if(!a)try{a=i.call(t)===r}catch{}}),a};Un.exports=function(t){if(!t||typeof t!="object")return!1;if(!Bn||!(Symbol.toStringTag in t)){var a=ar(er(t),8,-1);return nr(In,a)>-1}return Ce?ir(t):!1}});var Jn=S((yp,Gn)=>{"use strict";var qn=lt(),rr=ft(),Ln=Ee(),or=Ln("Object.prototype.toString"),Wn=se()(),Nn=typeof globalThis>"u"?global:globalThis,sr=rr(),pr=Ln("String.prototype.slice"),Hn={},yt=ut(),gt=Object.getPrototypeOf;Wn&&yt&&gt&&qn(sr,function(e){if(typeof Nn[e]=="function"){var t=new Nn[e];if(Symbol.toStringTag in t){var a=gt(t),i=yt(a,Symbol.toStringTag);if(!i){var r=gt(a);i=yt(r,Symbol.toStringTag)}Hn[e]=i.get}}});var cr=function(t){var a=!1;return qn(Hn,function(i,r){if(!a)try{var o=i.call(t);o===r&&(a=o)}catch{}}),a},lr=vt();Gn.exports=function(t){return lr(t)?!Wn||!(Symbol.toStringTag in t)?pr(or(t),8,-1):cr(t):!1}});var sa=S(v=>{"use strict";var dr=kn(),fr=Fn(),T=Jn(),Vn=vt();function Q(e){return e.call.bind(e)}var Yn=typeof BigInt<"u",Kn=typeof Symbol<"u",O=Q(Object.prototype.toString),ur=Q(Number.prototype.valueOf),mr=Q(String.prototype.valueOf),xr=Q(Boolean.prototype.valueOf);Yn&&(Zn=Q(BigInt.prototype.valueOf));var Zn;Kn&&(Xn=Q(Symbol.prototype.valueOf));var Xn;function le(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}v.isArgumentsObject=dr;v.isGeneratorFunction=fr;v.isTypedArray=Vn;function vr(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}v.isPromise=vr;function yr(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Vn(e)||ea(e)}v.isArrayBufferView=yr;function gr(e){return T(e)==="Uint8Array"}v.isUint8Array=gr;function hr(e){return T(e)==="Uint8ClampedArray"}v.isUint8ClampedArray=hr;function br(e){return T(e)==="Uint16Array"}v.isUint16Array=br;function wr(e){return T(e)==="Uint32Array"}v.isUint32Array=wr;function Ar(e){return T(e)==="Int8Array"}v.isInt8Array=Ar;function Sr(e){return T(e)==="Int16Array"}v.isInt16Array=Sr;function kr(e){return T(e)==="Int32Array"}v.isInt32Array=kr;function jr(e){return T(e)==="Float32Array"}v.isFloat32Array=jr;function Er(e){return T(e)==="Float64Array"}v.isFloat64Array=Er;function Fr(e){return T(e)==="BigInt64Array"}v.isBigInt64Array=Fr;function Pr(e){return T(e)==="BigUint64Array"}v.isBigUint64Array=Pr;function $e(e){return O(e)==="[object Map]"}$e.working=typeof Map<"u"&&$e(new Map);function Or(e){return typeof Map>"u"?!1:$e.working?$e(e):e instanceof Map}v.isMap=Or;function Te(e){return O(e)==="[object Set]"}Te.working=typeof Set<"u"&&Te(new Set);function Cr(e){return typeof Set>"u"?!1:Te.working?Te(e):e instanceof Set}v.isSet=Cr;function Re(e){return O(e)==="[object WeakMap]"}Re.working=typeof WeakMap<"u"&&Re(new WeakMap);function $r(e){return typeof WeakMap>"u"?!1:Re.working?Re(e):e instanceof WeakMap}v.isWeakMap=$r;function bt(e){return O(e)==="[object WeakSet]"}bt.working=typeof WeakSet<"u"&&bt(new WeakSet);function Tr(e){return bt(e)}v.isWeakSet=Tr;function De(e){return O(e)==="[object ArrayBuffer]"}De.working=typeof ArrayBuffer<"u"&&De(new ArrayBuffer);function Qn(e){return typeof ArrayBuffer>"u"?!1:De.working?De(e):e instanceof ArrayBuffer}v.isArrayBuffer=Qn;function _e(e){return O(e)==="[object DataView]"}_e.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&_e(new DataView(new ArrayBuffer(1),0,1));function ea(e){return typeof DataView>"u"?!1:_e.working?_e(e):e instanceof DataView}v.isDataView=ea;var ht=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ce(e){return O(e)==="[object SharedArrayBuffer]"}function ta(e){return typeof ht>"u"?!1:(typeof ce.working>"u"&&(ce.working=ce(new ht)),ce.working?ce(e):e instanceof ht)}v.isSharedArrayBuffer=ta;function Rr(e){return O(e)==="[object AsyncFunction]"}v.isAsyncFunction=Rr;function Dr(e){return O(e)==="[object Map Iterator]"}v.isMapIterator=Dr;function _r(e){return O(e)==="[object Set Iterator]"}v.isSetIterator=_r;function zr(e){return O(e)==="[object Generator]"}v.isGeneratorObject=zr;function Br(e){return O(e)==="[object WebAssembly.Module]"}v.isWebAssemblyCompiledModule=Br;function na(e){return le(e,ur)}v.isNumberObject=na;function aa(e){return le(e,mr)}v.isStringObject=aa;function ia(e){return le(e,xr)}v.isBooleanObject=ia;function ra(e){return Yn&&le(e,Zn)}v.isBigIntObject=ra;function oa(e){return Kn&&le(e,Xn)}v.isSymbolObject=oa;function Ir(e){return na(e)||aa(e)||ia(e)||ra(e)||oa(e)}v.isBoxedPrimitive=Ir;function Mr(e){return typeof Uint8Array<"u"&&(Qn(e)||ta(e))}v.isAnyArrayBuffer=Mr;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(v,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var ca=S((hp,pa)=>{pa.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var la=S((bp,wt)=>{typeof Object.create=="function"?wt.exports=function(t,a){a&&(t.super_=a,t.prototype=Object.create(a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:wt.exports=function(t,a){if(a){t.super_=a;var i=function(){};i.prototype=a.prototype,t.prototype=new i,t.prototype.constructor=t}}});var va=S(y=>{var da=Object.getOwnPropertyDescriptors||function(t){for(var a=Object.keys(t),i={},r=0;r<a.length;r++)i[a[r]]=Object.getOwnPropertyDescriptor(t,a[r]);return i},Ur=/%[sdj%]/g;y.format=function(e){if(!qe(e)){for(var t=[],a=0;a<arguments.length;a++)t.push(I(arguments[a]));return t.join(" ")}for(var a=1,i=arguments,r=i.length,o=String(e).replace(Ur,function(s){if(s==="%%")return"%";if(a>=r)return s;switch(s){case"%s":return String(i[a++]);case"%d":return Number(i[a++]);case"%j":try{return JSON.stringify(i[a++])}catch{return"[Circular]"}default:return s}}),n=i[a];a<r;n=i[++a])Ne(n)||!ee(n)?o+=" "+n:o+=" "+I(n);return o};y.deprecate=function(e,t){if(typeof process<"u"&&process.noDeprecation===!0)return e;if(typeof process>"u")return function(){return y.deprecate(e,t).apply(this,arguments)};var a=!1;function i(){if(!a){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),a=!0}return e.apply(this,arguments)}return i};var ze={},fa=/^$/;process.env.NODE_DEBUG&&(Be=process.env.NODE_DEBUG,Be=Be.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),fa=new RegExp("^"+Be+"$","i"));var Be;y.debuglog=function(e){if(e=e.toUpperCase(),!ze[e])if(fa.test(e)){var t=process.pid;ze[e]=function(){var a=y.format.apply(y,arguments);console.error("%s %d: %s",e,t,a)}}else ze[e]=function(){};return ze[e]};function I(e,t){var a={seen:[],stylize:qr};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),jt(t)?a.showHidden=t:t&&y._extend(a,t),W(a.showHidden)&&(a.showHidden=!1),W(a.depth)&&(a.depth=2),W(a.colors)&&(a.colors=!1),W(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=Nr),Me(a,e,a.depth)}y.inspect=I;I.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};I.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Nr(e,t){var a=I.styles[t];return a?"\x1B["+I.colors[a][0]+"m"+e+"\x1B["+I.colors[a][1]+"m":e}function qr(e,t){return e}function Lr(e){var t={};return e.forEach(function(a,i){t[a]=!0}),t}function Me(e,t,a){if(e.customInspect&&t&&Ie(t.inspect)&&t.inspect!==y.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(a,e);return qe(i)||(i=Me(e,i,a)),i}var r=Wr(e,t);if(r)return r;var o=Object.keys(t),n=Lr(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),fe(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return At(t);if(o.length===0){if(Ie(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(de(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Ue(t))return e.stylize(Date.prototype.toString.call(t),"date");if(fe(t))return At(t)}var p="",c=!1,d=["{","}"];if(ua(t)&&(c=!0,d=["[","]"]),Ie(t)){var l=t.name?": "+t.name:"";p=" [Function"+l+"]"}if(de(t)&&(p=" "+RegExp.prototype.toString.call(t)),Ue(t)&&(p=" "+Date.prototype.toUTCString.call(t)),fe(t)&&(p=" "+At(t)),o.length===0&&(!c||t.length==0))return d[0]+p+d[1];if(a<0)return de(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var u;return c?u=Hr(e,t,a,n,o):u=o.map(function(w){return kt(e,t,a,n,w,c)}),e.seen.pop(),Gr(u,p,d)}function Wr(e,t){if(W(t))return e.stylize("undefined","undefined");if(qe(t)){var a="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(a,"string")}if(ma(t))return e.stylize(""+t,"number");if(jt(t))return e.stylize(""+t,"boolean");if(Ne(t))return e.stylize("null","null")}function At(e){return"["+Error.prototype.toString.call(e)+"]"}function Hr(e,t,a,i,r){for(var o=[],n=0,s=t.length;n<s;++n)xa(t,String(n))?o.push(kt(e,t,a,i,String(n),!0)):o.push("");return r.forEach(function(p){p.match(/^\d+$/)||o.push(kt(e,t,a,i,p,!0))}),o}function kt(e,t,a,i,r,o){var n,s,p;if(p=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]},p.get?p.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):p.set&&(s=e.stylize("[Setter]","special")),xa(i,r)||(n="["+r+"]"),s||(e.seen.indexOf(p.value)<0?(Ne(a)?s=Me(e,p.value,null):s=Me(e,p.value,a-1),s.indexOf(`
6
- `)>-1&&(o?s=s.split(`
7
- `).map(function(c){return" "+c}).join(`
8
- `).substr(2):s=`
9
- `+s.split(`
10
- `).map(function(c){return" "+c}).join(`
11
- `))):s=e.stylize("[Circular]","special")),W(n)){if(o&&r.match(/^\d+$/))return s;n=JSON.stringify(""+r),n.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.substr(1,n.length-2),n=e.stylize(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),n=e.stylize(n,"string"))}return n+": "+s}function Gr(e,t,a){var i=0,r=e.reduce(function(o,n){return i++,n.indexOf(`
12
- `)>=0&&i++,o+n.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?a[0]+(t===""?"":t+`
13
- `)+" "+e.join(`,
14
- `)+" "+a[1]:a[0]+t+" "+e.join(", ")+" "+a[1]}y.types=sa();function ua(e){return Array.isArray(e)}y.isArray=ua;function jt(e){return typeof e=="boolean"}y.isBoolean=jt;function Ne(e){return e===null}y.isNull=Ne;function Jr(e){return e==null}y.isNullOrUndefined=Jr;function ma(e){return typeof e=="number"}y.isNumber=ma;function qe(e){return typeof e=="string"}y.isString=qe;function Vr(e){return typeof e=="symbol"}y.isSymbol=Vr;function W(e){return e===void 0}y.isUndefined=W;function de(e){return ee(e)&&Et(e)==="[object RegExp]"}y.isRegExp=de;y.types.isRegExp=de;function ee(e){return typeof e=="object"&&e!==null}y.isObject=ee;function Ue(e){return ee(e)&&Et(e)==="[object Date]"}y.isDate=Ue;y.types.isDate=Ue;function fe(e){return ee(e)&&(Et(e)==="[object Error]"||e instanceof Error)}y.isError=fe;y.types.isNativeError=fe;function Ie(e){return typeof e=="function"}y.isFunction=Ie;function Yr(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}y.isPrimitive=Yr;y.isBuffer=ca();function Et(e){return Object.prototype.toString.call(e)}function St(e){return e<10?"0"+e.toString(10):e.toString(10)}var Kr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Zr(){var e=new Date,t=[St(e.getHours()),St(e.getMinutes()),St(e.getSeconds())].join(":");return[e.getDate(),Kr[e.getMonth()],t].join(" ")}y.log=function(){console.log("%s - %s",Zr(),y.format.apply(y,arguments))};y.inherits=la();y._extend=function(e,t){if(!t||!ee(t))return e;for(var a=Object.keys(t),i=a.length;i--;)e[a[i]]=t[a[i]];return e};function xa(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var L=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;y.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var a=t[L];if(typeof a!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(a,L,{value:a,enumerable:!1,writable:!1,configurable:!0}),a}function a(){for(var i,r,o=new Promise(function(p,c){i=p,r=c}),n=[],s=0;s<arguments.length;s++)n.push(arguments[s]);n.push(function(p,c){p?r(p):i(c)});try{t.apply(this,n)}catch(p){r(p)}return o}return Object.setPrototypeOf(a,Object.getPrototypeOf(t)),L&&Object.defineProperty(a,L,{value:a,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(a,da(t))};y.promisify.custom=L;function Xr(e,t){if(!e){var a=new Error("Promise was rejected with a falsy value");a.reason=e,e=a}return t(e)}function Qr(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var a=[],i=0;i<arguments.length;i++)a.push(arguments[i]);var r=a.pop();if(typeof r!="function")throw new TypeError("The last argument must be of type Function");var o=this,n=function(){return r.apply(o,arguments)};e.apply(this,a).then(function(s){process.nextTick(n.bind(null,null,s))},function(s){process.nextTick(Xr.bind(null,s,n))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,da(e)),t}y.callbackify=Qr});var Da=fi(va());globalThis.process={argv:[],env:{}};function Ze(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Ze.prototype.define=function(e,t){for(let a in e){let i=e[a].map(function(r){return r.toLowerCase()});a=a.toLowerCase();for(let r=0;r<i.length;r++){let o=i[r];if(o[0]!=="*"){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+a+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+a+'".');this._types[o]=a}}if(t||!this._extensions[a]){let r=i[0];this._extensions[a]=r[0]!=="*"?r:r.substr(1)}}};Ze.prototype.getType=function(e){e=String(e);let t=e.replace(/^.*[/\\]/,"").toLowerCase(),a=t.replace(/^.*\./,"").toLowerCase(),i=t.length<e.length;return(a.length<t.length-1||!i)&&this._types[a]||null};Ze.prototype.getExtension=function(e){return e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1,e&&this._extensions[e.toLowerCase()]||null};var eo=Ze,to={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]},no={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]},ao=eo,io=new ao(to,no),{replace:ro}="",oo=/[&<>'"]/g,so={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},po=e=>so[e],co=e=>ro.call(e,oo,po),It=co,ie=class extends String{},j=e=>e instanceof ie?e:typeof e=="string"?new ie(e):e,_={Value:0,JSON:1,RegExp:2,Date:3,Map:4,Set:5,BigInt:6,URL:7};function Ft(e){return e.map(t=>za(t))}function _a(e){return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,za(a)]))}function za(e){switch(Object.prototype.toString.call(e)){case"[object Date]":return[_.Date,e.toISOString()];case"[object RegExp]":return[_.RegExp,e.source];case"[object Map]":return[_.Map,JSON.stringify(Ft(Array.from(e)))];case"[object Set]":return[_.Set,JSON.stringify(Ft(Array.from(e)))];case"[object BigInt]":return[_.BigInt,e.toString()];case"[object URL]":return[_.URL,e.toString()];case"[object Array]":return[_.JSON,JSON.stringify(Ft(e))];default:return e!==null&&typeof e=="object"?[_.Value,_a(e)]:[_.Value,e]}}function Ba(e){return JSON.stringify(_a(e))}function Ia(e){let t={};return a(e),Object.keys(t).join(" ");function a(i){i&&typeof i.forEach=="function"?i.forEach(a):i===Object(i)?Object.keys(i).forEach(r=>{i[r]&&a(r)}):(i=i===!1||i==null?"":String(i).trim(),i&&i.split(/\s+/).forEach(r=>{t[r]=!0}))}}var ya=["load","idle","media","visible","only"];function lo(e){let t={isPage:!1,hydration:null,props:{}};for(let[a,i]of Object.entries(e))if(a.startsWith("server:")&&a==="server:root"&&(t.isPage=!0),a.startsWith("client:"))switch(t.hydration||(t.hydration={directive:"",value:"",componentUrl:"",componentExport:{value:""}}),a){case"client:component-path":{t.hydration.componentUrl=i;break}case"client:component-export":{t.hydration.componentExport.value=i;break}case"client:component-hydration":break;case"client:display-name":break;default:{if(t.hydration.directive=a.split(":")[1],t.hydration.value=i,ya.indexOf(t.hydration.directive)<0)throw new Error(`Error: invalid hydration directive "${a}". Supported hydration methods: ${ya.map(r=>`"client:${r}"`).join(", ")}`);if(t.hydration.directive==="media"&&typeof t.hydration.value!="string")throw new Error('Error: Media query must be provided for "client:media", similar to client:media="(max-width: 600px)"');break}}else a==="class:list"?t.props[a.slice(0,-5)]=Ia(i):t.props[a]=i;return t}async function fo(e,t){let{renderer:a,result:i,astroId:r,props:o}=e,{hydrate:n,componentUrl:s,componentExport:p}=t;if(!p)throw new Error(`Unable to resolve a componentExport for "${t.displayName}"! Please open an issue.`);let c={children:"",props:{uid:r}};return c.props["component-url"]=await i.resolve(s),a.clientEntrypoint&&(c.props["component-export"]=p.value,c.props["renderer-url"]=await i.resolve(a.clientEntrypoint),c.props.props=It(Ba(o))),c.props.ssr="",c.props.client=n,c.props["before-hydration-url"]=await i.resolve("astro:scripts/before-hydration.js"),c.props.opts=It(JSON.stringify({name:t.displayName,value:t.hydrateArgs||""})),c}var Ma=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},ue=(e,t,a)=>(Ma(e,t,"read from private field"),a?a.call(e):t.get(e)),ga=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},ha=(e,t,a,i)=>(Ma(e,t,"write to private field"),i?i.call(e,a):t.set(e,a),a),Mt=typeof process=="object"&&Object.prototype.toString.call(process)==="[object process]",Ge;function uo(){var e,t,a;return Ge=(a=class extends Response{constructor(i,r){let o=i instanceof ReadableStream;super(o?null:i,r),ga(this,e,void 0),ga(this,t,void 0),ha(this,e,o),ha(this,t,i)}get body(){return ue(this,t)}async text(){if(ue(this,e)&&Mt){let i=new TextDecoder,r=ue(this,t),o="";for await(let n of r)o+=i.decode(n);return o}return super.text()}async arrayBuffer(){if(ue(this,e)&&Mt){let i=ue(this,t),r=[],o=0;for await(let p of i)r.push(p),o+=p.length;let n=new Uint8Array(o),s=0;for(let p of r)n.set(p,s),s+=p.length;return n}return super.arrayBuffer()}},e=new WeakMap,t=new WeakMap,a),Ge}var mo=Mt?(e,t)=>typeof e=="string"?new Response(e,t):typeof Ge>"u"?new(uo())(e,t):new Ge(e,t):(e,t)=>new Response(e,t),xo=`(self.Astro = self.Astro || {}).idle = (getHydrateCallback) => {
15
- const cb = async () => {
16
- let hydrate = await getHydrateCallback();
17
- await hydrate();
18
- };
19
- if ("requestIdleCallback" in window) {
20
- window.requestIdleCallback(cb);
21
- } else {
22
- setTimeout(cb, 200);
23
- }
24
- };`,vo=`(self.Astro = self.Astro || {}).load = (getHydrateCallback) => {
25
- (async () => {
26
- let hydrate = await getHydrateCallback();
27
- await hydrate();
28
- })();
29
- };`,yo=`(self.Astro = self.Astro || {}).media = (getHydrateCallback, options) => {
30
- const cb = async () => {
31
- let hydrate = await getHydrateCallback();
32
- await hydrate();
33
- };
34
- if (options.value) {
35
- const mql = matchMedia(options.value);
36
- if (mql.matches) {
37
- cb();
38
- } else {
39
- mql.addEventListener("change", cb, { once: true });
40
- }
41
- }
42
- };`,go=`(self.Astro = self.Astro || {}).only = (getHydrateCallback) => {
43
- (async () => {
44
- let hydrate = await getHydrateCallback();
45
- await hydrate();
46
- })();
47
- };`,ho=`(self.Astro = self.Astro || {}).visible = (getHydrateCallback, _opts, root) => {
48
- const cb = async () => {
49
- let hydrate = await getHydrateCallback();
50
- await hydrate();
51
- };
52
- let io = new IntersectionObserver((entries) => {
53
- for (const entry of entries) {
54
- if (!entry.isIntersecting)
55
- continue;
56
- io.disconnect();
57
- cb();
58
- break;
59
- }
60
- });
61
- for (let i = 0; i < root.children.length; i++) {
62
- const child = root.children[i];
63
- io.observe(child);
64
- }
65
- };`,bo=`var _a;
66
- {
67
- const propTypes = {
68
- 0: (value) => value,
69
- 1: (value) => JSON.parse(value, reviver),
70
- 2: (value) => new RegExp(value),
71
- 3: (value) => new Date(value),
72
- 4: (value) => new Map(JSON.parse(value, reviver)),
73
- 5: (value) => new Set(JSON.parse(value, reviver)),
74
- 6: (value) => BigInt(value),
75
- 7: (value) => new URL(value)
76
- };
77
- const reviver = (propKey, raw) => {
78
- if (propKey === "" || !Array.isArray(raw))
79
- return raw;
80
- const [type, value] = raw;
81
- return type in propTypes ? propTypes[type](value) : void 0;
82
- };
83
- if (!customElements.get("astro-island")) {
84
- customElements.define("astro-island", (_a = class extends HTMLElement {
85
- constructor() {
86
- super(...arguments);
87
- this.hydrate = () => {
88
- if (!this.hydrator || this.parentElement?.closest("astro-island[ssr]")) {
89
- return;
90
- }
91
- const slotted = this.querySelectorAll("astro-slot");
92
- const slots = {};
93
- const templates = this.querySelectorAll("template[data-astro-template]");
94
- for (const template of templates) {
95
- if (!template.closest(this.tagName)?.isSameNode(this))
96
- continue;
97
- slots[template.getAttribute("data-astro-template") || "default"] = template.innerHTML;
98
- template.remove();
99
- }
100
- for (const slot of slotted) {
101
- if (!slot.closest(this.tagName)?.isSameNode(this))
102
- continue;
103
- slots[slot.getAttribute("name") || "default"] = slot.innerHTML;
104
- }
105
- const props = this.hasAttribute("props") ? JSON.parse(this.getAttribute("props"), reviver) : {};
106
- this.hydrator(this)(this.Component, props, slots, {
107
- client: this.getAttribute("client")
108
- });
109
- this.removeAttribute("ssr");
110
- window.removeEventListener("astro:hydrate", this.hydrate);
111
- window.dispatchEvent(new CustomEvent("astro:hydrate"));
112
- };
113
- }
114
- connectedCallback() {
115
- if (!this.hasAttribute("await-children") || this.firstChild) {
116
- this.childrenConnectedCallback();
117
- } else {
118
- new MutationObserver((_, mo) => {
119
- mo.disconnect();
120
- this.childrenConnectedCallback();
121
- }).observe(this, { childList: true });
122
- }
123
- }
124
- async childrenConnectedCallback() {
125
- window.addEventListener("astro:hydrate", this.hydrate);
126
- await import(this.getAttribute("before-hydration-url"));
127
- const opts = JSON.parse(this.getAttribute("opts"));
128
- Astro[this.getAttribute("client")](async () => {
129
- const rendererUrl = this.getAttribute("renderer-url");
130
- const [componentModule, { default: hydrator }] = await Promise.all([
131
- import(this.getAttribute("component-url")),
132
- rendererUrl ? import(rendererUrl) : () => () => {
133
- }
134
- ]);
135
- this.Component = componentModule[this.getAttribute("component-export") || "default"];
136
- this.hydrator = hydrator;
137
- return this.hydrate;
138
- }, opts, this);
139
- }
140
- attributeChangedCallback() {
141
- if (this.hydrator)
142
- this.hydrate();
143
- }
144
- }, _a.observedAttributes = ["props"], _a));
145
- }
146
- }`,ba=new WeakSet;function wo(e){return ba.has(e)?!1:(ba.add(e),!0)}var wa={idle:xo,load:vo,only:go,media:yo,visible:ho},Pt=new Map;function Ao(e,t){Pt.has(t)||Pt.set(t,new WeakSet);let a=Pt.get(t);return a.has(e)?!1:(a.add(e),!0)}function Aa(e){if(!(e in wa))throw new Error(`Unknown directive: ${e}`);return wa[e]}function So(e,t){switch(e){case"both":return`<style>astro-island,astro-slot{display:contents}</style><script>${Aa(t)+bo}<\/script>`;case"directive":return`<script>${Aa(t)}<\/script>`}return""}var Ut="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY",Ot=Ut.length;function ko(e){let t=0;if(e.length===0)return t;for(let a=0;a<e.length;a++){let i=e.charCodeAt(a);t=(t<<5)-t+i,t=t&t}return t}function jo(e){let t,a="",i=ko(e),r=i<0?"Z":"";for(i=Math.abs(i);i>=Ot;)t=i%Ot,i=Math.floor(i/Ot),a=Ut[t]+a;return i>0&&(a=Ut[i]+a),r+a}var Nt=class{constructor(t,a){this.modules=a.modules,this.hoisted=a.hoisted,this.hydratedComponents=a.hydratedComponents,this.clientOnlyComponents=a.clientOnlyComponents,this.hydrationDirectives=a.hydrationDirectives,this.mockURL=new URL(t,"http://example.com"),this.metadataCache=new Map}resolvePath(t){if(t.startsWith(".")){let a=new URL(t,this.mockURL).pathname;return a.startsWith("/@fs")&&a.endsWith(".jsx")?a.slice(0,a.length-4):a}return t}getPath(t){let a=this.getComponentMetadata(t);return a?.componentUrl||null}getExport(t){let a=this.getComponentMetadata(t);return a?.componentExport||null}getComponentMetadata(t){if(this.metadataCache.has(t))return this.metadataCache.get(t);let a=this.findComponentMetadata(t);return this.metadataCache.set(t,a),a}findComponentMetadata(t){let a=typeof t=="string";for(let{module:i,specifier:r}of this.modules){let o=this.resolvePath(r);for(let[n,s]of Object.entries(i))if(a){if(n==="tagName"&&t===s)return{componentExport:n,componentUrl:o}}else if(t===s)return{componentExport:n,componentUrl:o}}return null}};function Eo(e,t){return new Nt(e,t)}var Ua=/^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i,Fo=/^(allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i,Po=/^(contenteditable|draggable|spellcheck|value)$/i,Oo=/^(autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/i;async function*ge(e){if(e=await e,e instanceof ie)yield e;else if(Array.isArray(e))for(let t of e)yield j(await ge(t));else typeof e=="function"?yield*ge(e()):typeof e=="string"?yield j(It(e)):!e&&e!==0||(e instanceof Je||Object.prototype.toString.call(e)==="[object AstroComponent]"?yield*Xe(e):typeof e=="object"&&Symbol.asyncIterator in e?yield*e:yield e)}var Je=class{constructor(t,a){this.htmlParts=t,this.expressions=a}get[Symbol.toStringTag](){return"AstroComponent"}async*[Symbol.asyncIterator](){let{htmlParts:t,expressions:a}=this;for(let i=0;i<t.length;i++){let r=t[i],o=a[i];yield j(r),yield*ge(o)}}};function Na(e){return typeof e=="object"&&Object.prototype.toString.call(e)==="[object AstroComponent]"}async function qa(e,...t){return new Je(e,t)}function Co(e){return e.isAstroComponentFactory=!0,e}async function H(e,t,a){if(t){let i=ge(t),r="";for await(let o of i)r+=o;return j(r)}return a}var $o=Symbol.for("astro:fragment"),Sa=Symbol.for("astro:renderer");function To(e){switch(e?.split(".").pop()){case"svelte":return["@astrojs/svelte"];case"vue":return["@astrojs/vue"];case"jsx":case"tsx":return["@astrojs/react","@astrojs/preact"];default:return["@astrojs/react","@astrojs/preact","@astrojs/vue","@astrojs/svelte"]}}function Ct(e){return e.length===1?e[0]:`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}var ka=new Map([["solid","solid-js"]]);async function Ro(e,t,a,i,r={}){var o;if(a=await a,a===$o){let f=await H(e,r?.default);return f==null?f:j(f)}if(a&&typeof a=="object"&&a["astro:html"]){let f={};r&&await Promise.all(Object.entries(r).map(([F,Qe])=>H(e,Qe).then(ri=>{f[F]=ri})));let b=a.render({slots:f});return j(b)}if(a&&a.isAstroComponentFactory){async function*f(){yield*await Ho(e,a,i,r)}return f()}if(!a&&!i["client:only"])throw new Error(`Unable to render ${t} because it is ${a}!
147
- Did you forget to import the component or is it possible there is a typo?`);let{renderers:n}=e._metadata,s={displayName:t},{hydration:p,isPage:c,props:d}=lo(i),l="",u=p&&wo(e),w=p&&Ao(e,p.directive);p&&(s.hydrate=p.directive,s.hydrateArgs=p.value,s.componentExport=p.componentExport,s.componentUrl=p.componentUrl);let g=To(s.componentUrl);if(Array.isArray(n)&&n.length===0&&typeof a!="string"&&!ja(a)){let f=`Unable to render ${s.displayName}!
148
-
149
- There are no \`integrations\` set in your \`astro.config.mjs\` file.
150
- Did you mean to add ${Ct(g.map(b=>"`"+b+"`"))}?`;throw new Error(f)}let x={};r&&await Promise.all(Object.entries(r).map(([f,b])=>H(e,b).then(F=>{x[f]=F})));let m;if(s.hydrate!=="only"){if(a&&a[Sa]){let f=a[Sa];m=n.find(({name:b})=>b===f)}if(!m){let f;for(let b of n)try{if(await b.ssr.check.call({result:e},a,d,x)){m=b;break}}catch(F){f??(f=F)}if(f)throw f}if(!m&&typeof HTMLElement=="function"&&ja(a))return Vo(e,a,i,r)}else{if(s.hydrateArgs){let f=s.hydrateArgs,b=ka.has(f)?ka.get(f):f;m=n.find(({name:F})=>F===`@astrojs/${b}`||F===b)}if(!m&&n.length===1&&(m=n[0]),!m){let f=(o=s.componentUrl)==null?void 0:o.split(".").pop();m=n.filter(({name:b})=>b===`@astrojs/${f}`||b===f)[0]}}if(m)s.hydrate==="only"?l=await H(e,r?.fallback):{html:l}=await m.ssr.renderToStaticMarkup.call({result:e},a,d,x,s);else{if(s.hydrate==="only")throw new Error(`Unable to render ${s.displayName}!
151
-
152
- Using the \`client:only\` hydration strategy, Astro needs a hint to use the correct renderer.
153
- Did you mean to pass <${s.displayName} client:only="${g.map(f=>f.replace("@astrojs/","")).join("|")}" />
154
- `);if(typeof a!="string"){let f=n.filter(F=>g.includes(F.name)),b=n.length>1;if(f.length===0)throw new Error(`Unable to render ${s.displayName}!
155
-
156
- There ${b?"are":"is"} ${n.length} renderer${b?"s":""} configured in your \`astro.config.mjs\` file,
157
- but ${b?"none were":"it was not"} able to server-side render ${s.displayName}.
158
-
159
- Did you mean to enable ${Ct(g.map(F=>"`"+F+"`"))}?`);if(f.length===1)m=f[0],{html:l}=await m.ssr.renderToStaticMarkup.call({result:e},a,d,x,s);else throw new Error(`Unable to render ${s.displayName}!
160
-
161
- This component likely uses ${Ct(g)},
162
- but Astro encountered an error during server-side rendering.
163
-
164
- Please ensure that ${s.displayName}:
165
- 1. Does not unconditionally access browser-specific globals like \`window\` or \`document\`.
166
- If this is unavoidable, use the \`client:only\` hydration directive.
167
- 2. Does not conditionally return \`null\` or \`undefined\` when rendered on the server.
168
-
169
- If you're still stuck, please open an issue on GitHub or join us at https://astro.build/chat.`)}}if(m&&!m.clientEntrypoint&&m.name!=="@astrojs/lit"&&s.hydrate)throw new Error(`${s.displayName} component has a \`client:${s.hydrate}\` directive, but no client entrypoint was provided by ${m.name}!`);if(!l&&typeof a=="string"){let f=Object.values(x).join(""),b=Xe(await qa`<${a}${qt(d)}${j(f===""&&Ua.test(a)?"/>":`>${f}</${a}>`)}`);l="";for await(let F of b)l+=F}if(!p)return c||m?.name==="astro:jsx"?l:j(l.replace(/\<\/?astro-slot\>/g,""));let A=jo(`<!--${s.componentExport.value}:${s.componentUrl}-->
170
- ${l}
171
- ${Ba(d)}`),k=await fo({renderer:m,result:e,astroId:A,props:d},s),C=[];if(l){if(Object.keys(x).length>0)for(let f of Object.keys(x))l.includes(f==="default"?"<astro-slot>":`<astro-slot name="${f}">`)||C.push(f)}else C=Object.keys(x);let $=C.length>0?C.map(f=>`<template data-astro-template${f!=="default"?`="${f}"`:""}>${x[f]}</template>`).join(""):"";k.children=`${l??""}${$}`,k.children&&(k.props["await-children"]="");let P=So(u?"both":w?"directive":null,p.directive);return j(P+We("astro-island",k,!1))}function Do(){return()=>{throw new Error("Deprecated: Astro.fetchContent() has been replaced with Astro.glob().")}}function _o(){return(t,a)=>{let i=[...Object.values(t)];if(i.length===0)throw new Error(`Astro.glob(${JSON.stringify(a())}) - no matches found.`);return Promise.all(i.map(r=>r()))}}function zo(e,t,a){let i=t?new URL(t):void 0,r=new URL(e,"http://localhost"),o=new URL(a);return{site:i,fetchContent:Do(),glob:_o(),resolve(...n){let s=n.reduce((p,c)=>new URL(c,p),r).pathname;return s.startsWith(o.pathname)&&(s="/"+s.slice(o.pathname.length)),s}}}var Le=(e,t=!0)=>t?String(e).replace(/&/g,"&#38;").replace(/"/g,"&#34;"):e,Bo=e=>e.toLowerCase()===e?e:e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),Io=e=>Object.entries(e).map(([t,a])=>`${Bo(t)}:${a}`).join(";"),Mo=new Set(["set:html","set:text"]);function Uo(e,t,a=!0){if(e==null)return"";if(e===!1)return Po.test(t)||Oo.test(t)?j(` ${t}="false"`):"";if(Mo.has(t))return console.warn(`[astro] The "${t}" directive cannot be applied dynamically at runtime. It will not be rendered as an attribute.
172
-
173
- Make sure to use the static attribute syntax (\`${t}={value}\`) instead of the dynamic spread syntax (\`{...{ "${t}": value }}\`).`),"";if(t==="class:list"){let i=Le(Ia(e));return i===""?"":j(` ${t.slice(0,-5)}="${i}"`)}return t==="style"&&!(e instanceof ie)&&typeof e=="object"?j(` ${t}="${Io(e)}"`):t==="className"?j(` class="${Le(e,a)}"`):e===!0&&(t.startsWith("data-")||Fo.test(t))?j(` ${t}`):j(` ${t}="${Le(e,a)}"`)}function qt(e,t=!0){let a="";for(let[i,r]of Object.entries(e))a+=Uo(r,i,t);return j(a)}var No=e=>e.trim().replace(/(?:(?<!^)\b\w|\s+|[^\w]+)/g,(t,a)=>/[^\w]|\s/.test(t)?"":a===0?t:t.toUpperCase());function qo(e){let t="";for(let[a,i]of Object.entries(e))t+=`let ${No(a)} = ${JSON.stringify(i)};
174
- `;return j(t)}function Lo(e,t){if(e[t])return e[t];if(t==="delete"&&e.del)return e.del;if(e.all)return e.all}async function Wo(e,t,a){var i;let r=(i=t.method)==null?void 0:i.toLowerCase(),o=Lo(e,r);if(!o||typeof o!="function")throw new Error(`Endpoint handler not found! Expected an exported function for "${r}"`);o.length>1&&console.warn(`
175
- API routes with 2 arguments have been deprecated. Instead they take a single argument in the form of:
176
-
177
- export function get({ params, request }) {
178
- //...
179
- }
180
-
181
- Update your code to remove this warning.`);let n={request:t,params:a},s=new Proxy(n,{get(p,c){return c in p?Reflect.get(p,c):c in a?(console.warn(`
182
- API routes no longer pass params as the first argument. Instead an object containing a params property is provided in the form of:
183
-
184
- export function get({ params }) {
185
- // ...
186
- }
187
-
188
- Update your code to remove this warning.`),Reflect.get(a,c)):void 0}});return o.call(e,s,t)}async function Ho(e,t,a,i){let r=await t(e,a,i);if(!Na(r))throw console.warn("Returning a Response is only supported inside of page components. Consider refactoring this logic into something like a function that can be used in the page."),r;return Xe(r)}var $t=new TextEncoder;async function Go(e,t,a,i,r){if(!t.isAstroComponentFactory){let n={...a??{},"server:root":!0},p=(await Ro(e,t.name,t,n,null)).toString();if(!/<!doctype html/i.test(p)){let c=p;p="<!DOCTYPE html>";for await(let d of Jo(e))p+=d;p+=c}return new Response(p,{headers:new Headers([["Content-Type","text/html; charset=utf-8"],["Content-Length",Buffer.byteLength(p,"utf-8").toString()]])})}let o=await t(e,a,i);if(Na(o)){let n=Xe(o),s=e.response,p=new Headers(s.headers),c;if(r)c=new ReadableStream({start(l){async function u(){let w=0;try{for await(let g of n){let x=g.toString();w===0&&(/<!doctype html/i.test(x)||l.enqueue($t.encode(`<!DOCTYPE html>
189
- `))),l.enqueue($t.encode(x)),w++}l.close()}catch(g){l.error(g)}}u()}});else{c="";let l=0;for await(let w of n){let g=w.toString();l===0&&(/<!doctype html/i.test(g)||(c+=`<!DOCTYPE html>
190
- `)),c+=w,l++}let u=$t.encode(c);p.set("Content-Length",u.byteLength.toString())}return mo(c,{...s,headers:p})}else return o}var Tt=(e,t,a)=>{let i=JSON.stringify(e.props),r=e.children;return t===a.findIndex(o=>JSON.stringify(o.props)===i&&o.children==r)},La=new WeakSet;function Wa(e){La.add(e);let t=Array.from(e.styles).filter(Tt).map(r=>We("style",r));e.styles.clear();let a=Array.from(e.scripts).filter(Tt).map((r,o)=>We("script",r,!1)),i=Array.from(e.links).filter(Tt).map(r=>We("link",r,!1));return j(i.join(`
191
- `)+t.join(`
192
- `)+a.join(`
193
- `))}async function*Jo(e){La.has(e)||(yield Wa(e))}async function*Xe(e){for await(let t of e)if(t||t===0)for await(let a of ge(t))yield j(a)}function ja(e){return typeof HTMLElement<"u"&&HTMLElement.isPrototypeOf(e)}async function Vo(e,t,a,i){let r=Yo(t),o="";for(let n in a)o+=` ${n}="${Le(await a[n])}"`;return j(`<${r}${o}>${await H(e,i?.default)}</${r}>`)}function Yo(e){let t=customElements.getName(e);return t||e.name.replace(/^HTML|Element$/g,"").replace(/[A-Z]/g,"-$&").toLowerCase().replace(/^-/,"html-")}function We(e,{props:t,children:a=""},i=!0){let{lang:r,"data-astro-id":o,"define:vars":n,...s}=t;return n&&(e==="style"&&(delete s["is:global"],delete s["is:scoped"]),e==="script"&&(delete s.hoist,a=qo(n)+`
194
- `+a)),(a==null||a=="")&&Ua.test(e)?`<${e}${qt(s,i)} />`:`<${e}${qt(s,i)}>${a}</${e}>`}var Lt,Ha,Ga,Ja,Va=!0;typeof process<"u"&&({FORCE_COLOR:Lt,NODE_DISABLE_COLORS:Ha,NO_COLOR:Ga,TERM:Ja}=process.env||{},Va=process.stdout&&process.stdout.isTTY);var Ko={enabled:!Ha&&Ga==null&&Ja!=="dumb"&&(Lt!=null&&Lt!=="0"||Va)};function oe(e,t){let a=new RegExp(`\\x1b\\[${t}m`,"g"),i=`\x1B[${e}m`,r=`\x1B[${t}m`;return function(o){return!Ko.enabled||o==null?o:i+(~(""+o).indexOf(r)?o.replace(a,r+i):o)+r}}var Zo=oe(0,0),ye=oe(1,22),Xo=oe(2,22),Qo=oe(31,39),Ea=oe(33,39),es=oe(36,39),ts={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(i){var r=i.charCodeAt(0),o=i.length==2?i.charCodeAt(1):0,n=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,n=r<<10|o,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},t.characterLength=function(i){var r=this.eastAsianWidth(i);return r=="F"||r=="W"||r=="A"?2:1};function a(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(i){for(var r=a(i),o=0,n=0;n<r.length;n++)o=o+this.characterLength(r[n]);return o},t.slice=function(i,r,o){textLen=t.length(i),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var n="",s=0,p=a(i),c=0;c<p.length;c++){var d=p[c],l=t.length(d);if(s>=r-(l==2?1:0))if(s+l<=o)n+=d;else break;s+=l}return n}})(ts);var ns=new Intl.DateTimeFormat([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),Ve={debug:20,info:30,warn:40,error:50,silent:90};function Ya(e,t,a,...i){let r=e.level,o=e.dest,n={type:a,level:t,args:i,message:""};Ve[r]>Ve[t]||o.write(n)}function ne(e,t,...a){return Ya(e,"warn",t,...a)}function as(e,t,...a){return Ya(e,"error",t,...a)}function is(...e){"_astroGlobalDebug"in globalThis&&globalThis._astroGlobalDebug(...e)}typeof process<"u"&&(process.argv.includes("--verbose")||process.argv.includes("--silent"));var rs=["string","number","undefined"];function os([e,t]){if(!rs.includes(typeof t))throw new Error(`[getStaticPaths] invalid route parameter for "${e}". Expected a string or number, received \`${t}\` ("${typeof t}")`)}function ss(e,{ssr:t}){if(e.createCollection)throw new Error("[createCollection] deprecated. Please use getStaticPaths() instead.");if(!e.getStaticPaths&&!t)throw new Error("[getStaticPaths] getStaticPaths() function is required. Make sure that you `export` the function from your component.")}function ps(e,t){if(!Array.isArray(e))throw new Error(`[getStaticPaths] invalid return value. Expected an array of path objects, but got \`${JSON.stringify(e)}\`.`);e.forEach(a=>{if(!a.params){ne(t,"getStaticPaths",`invalid path object. Expected an object with key \`params\`, but got \`${JSON.stringify(a)}\`. Skipped.`);return}for(let[i,r]of Object.entries(a.params))typeof r>"u"||typeof r=="string"||ne(t,"getStaticPaths",`invalid path param: ${i}. A string value was expected, but got \`${JSON.stringify(r)}\`.`),r===""&&ne(t,"getStaticPaths",`invalid path param: ${i}. \`undefined\` expected for an optional param, but got empty string.`)})}function cs(e){return a=>{let i={};return e.forEach((r,o)=>{r.startsWith("...")?i[r.slice(3)]=a[o+1]?decodeURIComponent(a[o+1]):void 0:i[r]=decodeURIComponent(a[o+1])}),i}}function Ka(e){let t=Object.entries(e).reduce((a,i)=>{os(i);let[r,o]=i;return a[r]=`${o}`,a},{});return JSON.stringify(t,Object.keys(e).sort())}var ls=new Set([".js",".ts"]),ds=new RegExp(`\\.(${Array.from(ls).map(e=>e.slice(1)).join("|")})($|\\?)`),fs=e=>ds.test(e),us=new Set([".css",".pcss",".postcss",".scss",".sass",".styl",".stylus",".less"]),ms=new RegExp(`\\.(${Array.from(us).map(e=>e.slice(1)).join("|")})($|\\?)`),xs=e=>ms.test(e),Za=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},R=(e,t,a)=>(Za(e,t,"read from private field"),a?a.call(e):t.get(e)),Rt=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},Fa=(e,t,a,i)=>(Za(e,t,"write to private field"),i?i.call(e,a):t.set(e,a),a),xe,ve,M,Pa=Symbol.for("astro.clientAddress");function vs(e){return function(){throw new Error(`Oops, you are trying to use ${e}, which is only available with SSR.`)}}function ys(e){var t;if(!!e&&((t=e.expressions)==null?void 0:t.length)===1)return e.expressions[0]}var Wt=class{constructor(t,a){if(Rt(this,xe,new Map),Rt(this,ve,void 0),Rt(this,M,void 0),Fa(this,ve,t),Fa(this,M,a),a)for(let i of Object.keys(a)){if(this[i]!==void 0)throw new Error(`Unable to create a slot named "${i}". "${i}" is a reserved slot name!
195
- Please update the name of this slot.`);Object.defineProperty(this,i,{get(){return!0},enumerable:!0})}}has(t){return R(this,M)?Boolean(R(this,M)[t]):!1}async render(t,a=[]){let i=a.length===0;if(!R(this,M))return;if(i&&R(this,xe).has(t))return R(this,xe).get(t);if(!this.has(t))return;if(!i){let o=await R(this,M)[t](),n=ys(o);if(n){let s=n(...a);return await H(R(this,ve),s).then(p=>p!=null?String(p):p)}}let r=await H(R(this,ve),R(this,M)[t]).then(o=>o!=null?String(o):o);return i&&R(this,xe).set(t,r),r}};xe=new WeakMap;ve=new WeakMap;M=new WeakMap;var Dt=null;function gs(e){let{markdown:t,params:a,pathname:i,props:r,renderers:o,request:n,resolve:s}=e,p=new URL(n.url),c=new Headers;e.streaming&&c.set("Transfer-Encoding","chunked"),c.set("Content-Type","text/html");let d={status:e.status,statusText:"OK",headers:c};Object.defineProperty(d,"headers",{value:d.headers,enumerable:!0,writable:!1});let l={styles:e.styles??new Set,scripts:e.scripts??new Set,links:e.links??new Set,createAstro(u,w,g){let x=new Wt(l,g),m={__proto__:u,get clientAddress(){if(!(Pa in n))throw e.adapterName?new Error(`Astro.clientAddress is not available in the ${e.adapterName} adapter. File an issue with the adapter to add support.`):new Error("Astro.clientAddress is not available in your environment. Ensure that you are using an SSR adapter that supports this feature.");return Reflect.get(n,Pa)},params:a,props:w,request:n,url:p,redirect:e.ssr?A=>new Response(null,{status:302,headers:{Location:A}}):vs("Astro.redirect"),resolve(A){let k=`This can be replaced with a dynamic import like so: await import("${A}")`;return xs(A)?k=`It looks like you are resolving styles. If you are adding a link tag, replace with this:
196
- ---
197
- import "${A}";
198
- ---
199
- `:fs(A)&&(k=`It looks like you are resolving scripts. If you are adding a script tag, replace with this:
200
-
201
- <script type="module" src={(await import("${A}?url")).default}><\/script>
202
-
203
- or consider make it a module like so:
204
-
205
- <script>
206
- import MyModule from "${A}";
207
- <\/script>
208
- `),ne(e.logging,"deprecation",`${ye("Astro.resolve()")} is deprecated. We see that you are trying to resolve ${A}.
209
- ${k}`),""},response:d,slots:x};return Object.defineProperty(m,"canonicalURL",{get:function(){return ne(e.logging,"deprecation",`${ye("Astro.canonicalURL")} is deprecated! Use \`Astro.url\` instead.
210
- Example:
211
-
212
- ---
213
- const canonicalURL = new URL(Astro.url.pathname, Astro.site);
214
- ---
215
- `),new URL(this.request.url.pathname,this.site)}}),Object.defineProperty(m,"__renderMarkdown",{enumerable:!1,writable:!1,value:async function(A,k){if(typeof Deno<"u")throw new Error("Markdown is not supported in Deno SSR");if(!Dt){let $="@astrojs/";$+="markdown-remark",Dt=(await import($)).renderMarkdown}let{code:C}=await Dt(A,{...t,...k??{}});return C}}),m},resolve:s,_metadata:{renderers:o,pathname:i},response:d};return l}function hs(e){return function(a,i={}){let{pageSize:r,params:o,props:n}=i,s=r||10,p="page",c=o||{},d=n||{},l;if(e.params.includes(`...${p}`))l=!1;else if(e.params.includes(`${p}`))l=!0;else throw new Error(`[paginate()] page number param \`${p}\` not found in your filepath.
216
- Rename your file to \`[...page].astro\` or customize the param name via the \`paginate([], {param: '...'}\` option.`);let u=Math.max(1,Math.ceil(a.length/s));return[...Array(u).keys()].map(g=>{let x=g+1,m=s===1/0?0:(x-1)*s,A=Math.min(m+s,a.length),k={...c,[p]:l||x>1?String(x):void 0};return{params:k,props:{...d,page:{data:a.slice(m,A),start:m,end:A-1,size:s,total:a.length,currentPage:x,lastPage:u,url:{current:e.generate({...k}),next:x===u?void 0:e.generate({...k,page:String(x+1)}),prev:x===1?void 0:e.generate({...k,page:!l&&x-1===1?void 0:String(x-1)})}}}}})}}async function bs({isValidate:e,logging:t,mod:a,route:i,ssr:r}){ss(a,{ssr:r});let o=[];a.getStaticPaths&&(o=(await a.getStaticPaths({paginate:hs(i),rss(){throw new Error("The RSS helper has been removed from getStaticPaths! Try the new @astrojs/rss package instead. See https://docs.astro.build/en/guides/rss/")}})).flat());let n=o;n.keyed=new Map;for(let s of n){let p=Ka(s.params);n.keyed.set(p,s)}return e&&ps(n,t),{staticPaths:n}}var Ht=class{constructor(t){this.cache={},this.logging=t}clearAll(){this.cache={}}set(t,a){this.cache[t.component]&&ne(this.logging,"routeCache",`Internal Warning: route cache overwritten. (${t.component})`),this.cache[t.component]=a}get(t){return this.cache[t.component]}};function ws(e,t){let a=Ka(t),i=e.keyed.get(a);if(i)return i;is("findPathItemByKey",`Unexpected cache miss looking for ${a}`),i=e.find(({params:r})=>JSON.stringify(r)===a)}var Xa=(e=>(e[e.NoMatchingStaticPath=0]="NoMatchingStaticPath",e))(Xa||{});async function Qa(e){let{logging:t,mod:a,route:i,routeCache:r,pathname:o,ssr:n}=e,s={},p;if(i&&!i.pathname){if(i.params.length){let l=i.pattern.exec(o);l&&(s=cs(i.params)(l))}let c=r.get(i);c||(c=await bs({mod:a,route:i,isValidate:!0,logging:t,ssr:n}),r.set(i,c));let d=ws(c.staticPaths,s);if(!d&&!n)return 0;p=d?.props?{...d.props}:{}}else p={};return[s,p]}async function As(e){let{adapterName:t,links:a,styles:i,logging:r,origin:o,markdown:n,mod:s,mode:p,pathname:c,scripts:d,renderers:l,request:u,resolve:w,route:g,routeCache:x,site:m,ssr:A,streaming:k,status:C=200}=e,$=await Qa({logging:r,mod:s,route:g,routeCache:x,pathname:c,ssr:A});if($===0)throw new Error(`[getStaticPath] route pattern matched, but no matching static path found. (${c})`);let[be,P]=$,f=await s.default;if(!f)throw new Error(`Expected an exported Astro component but received typeof ${typeof f}`);let b=gs({adapterName:t,links:a,styles:i,logging:r,markdown:n,mode:p,origin:o,params:be,props:P,pathname:c,resolve:w,renderers:l,request:u,site:m,scripts:d,ssr:A,streaming:k,status:C});return typeof s.components=="object"&&Object.assign(P,{components:s.components}),await Go(b,f,P,null,k)}async function Ss(e,t){let a=await Qa({...t,mod:e});if(a===Xa.NoMatchingStaticPath)throw new Error(`[getStaticPath] route pattern matched, but no matching static path found. (${t.pathname})`);let[i]=a,r=await Wo(e,t.request,i);return r instanceof Response?{type:"response",response:r}:{type:"simple",body:r.body}}var Oa,_t=1,ks={write(e){let t=console.error;Ve[e.level]<Ve.error&&(t=console.log);function a(){let o="",n=e.type;return n&&(o+=Xo(ns.format(new Date)+" "),e.level==="info"?n=ye(es(`[${n}]`)):e.level==="warn"?n=ye(Ea(`[${n}]`)):e.level==="error"&&(n=ye(Qo(`[${n}]`))),o+=`${n} `),Zo(o)}let i=(0,Da.format)(...e.args);i===Oa?(_t++,i=`${i} ${Ea(`(x${_t})`)}`):(Oa=i,_t=1);let r=a()+i;return t(r),!0}};function js(e){return e.endsWith("/")?e:e+"/"}function Es(e){return e[0]==="/"?e:"/"+e}function Fs(e){return e.replace(/^\/|\/$/g,"")}function Ps(e){return typeof e=="string"||e instanceof String}function Os(...e){return e.filter(Ps).map(Fs).join("/")}function D(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Ca(e,t){for(var a="",i=0,r=-1,o=0,n,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(n===47)break;n=47}if(n===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(a.length<2||i!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var p=a.lastIndexOf("/");if(p!==a.length-1){p===-1?(a="",i=0):(a=a.slice(0,p),i=a.length-1-a.lastIndexOf("/")),r=s,o=0;continue}}else if(a.length===2||a.length===1){a="",i=0,r=s,o=0;continue}}t&&(a.length>0?a+="/..":a="..",i=2)}else a.length>0?a+="/"+e.slice(r+1,s):a=e.slice(r+1,s),i=s-r-1;r=s,o=0}else n===46&&o!==-1?++o:o=-1}return a}function Cs(e,t){var a=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return a?a===t.root?a+i:a+e+i:i}var ae={resolve:function(){for(var t="",a=!1,i,r=arguments.length-1;r>=-1&&!a;r--){var o;r>=0?o=arguments[r]:(i===void 0&&(i=process.cwd()),o=i),D(o),o.length!==0&&(t=o+"/"+t,a=o.charCodeAt(0)===47)}return t=Ca(t,!a),a?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(D(t),t.length===0)return".";var a=t.charCodeAt(0)===47,i=t.charCodeAt(t.length-1)===47;return t=Ca(t,!a),t.length===0&&!a&&(t="."),t.length>0&&i&&(t+="/"),a?"/"+t:t},isAbsolute:function(t){return D(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,a=0;a<arguments.length;++a){var i=arguments[a];D(i),i.length>0&&(t===void 0?t=i:t+="/"+i)}return t===void 0?".":ae.normalize(t)},relative:function(t,a){if(D(t),D(a),t===a||(t=ae.resolve(t),a=ae.resolve(a),t===a))return"";for(var i=1;i<t.length&&t.charCodeAt(i)===47;++i);for(var r=t.length,o=r-i,n=1;n<a.length&&a.charCodeAt(n)===47;++n);for(var s=a.length,p=s-n,c=o<p?o:p,d=-1,l=0;l<=c;++l){if(l===c){if(p>c){if(a.charCodeAt(n+l)===47)return a.slice(n+l+1);if(l===0)return a.slice(n+l)}else o>c&&(t.charCodeAt(i+l)===47?d=l:l===0&&(d=0));break}var u=t.charCodeAt(i+l),w=a.charCodeAt(n+l);if(u!==w)break;u===47&&(d=l)}var g="";for(l=i+d+1;l<=r;++l)(l===r||t.charCodeAt(l)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+a.slice(n+d):(n+=d,a.charCodeAt(n)===47&&++n,a.slice(n))},_makeLong:function(t){return t},dirname:function(t){if(D(t),t.length===0)return".";for(var a=t.charCodeAt(0),i=a===47,r=-1,o=!0,n=t.length-1;n>=1;--n)if(a=t.charCodeAt(n),a===47){if(!o){r=n;break}}else o=!1;return r===-1?i?"/":".":i&&r===1?"//":t.slice(0,r)},basename:function(t,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');D(t);var i=0,r=-1,o=!0,n;if(a!==void 0&&a.length>0&&a.length<=t.length){if(a.length===t.length&&a===t)return"";var s=a.length-1,p=-1;for(n=t.length-1;n>=0;--n){var c=t.charCodeAt(n);if(c===47){if(!o){i=n+1;break}}else p===-1&&(o=!1,p=n+1),s>=0&&(c===a.charCodeAt(s)?--s===-1&&(r=n):(s=-1,r=p))}return i===r?r=p:r===-1&&(r=t.length),t.slice(i,r)}else{for(n=t.length-1;n>=0;--n)if(t.charCodeAt(n)===47){if(!o){i=n+1;break}}else r===-1&&(o=!1,r=n+1);return r===-1?"":t.slice(i,r)}},extname:function(t){D(t);for(var a=-1,i=0,r=-1,o=!0,n=0,s=t.length-1;s>=0;--s){var p=t.charCodeAt(s);if(p===47){if(!o){i=s+1;break}continue}r===-1&&(o=!1,r=s+1),p===46?a===-1?a=s:n!==1&&(n=1):a!==-1&&(n=-1)}return a===-1||r===-1||n===0||n===1&&a===r-1&&a===i+1?"":t.slice(a,r)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return Cs("/",t)},parse:function(t){D(t);var a={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return a;var i=t.charCodeAt(0),r=i===47,o;r?(a.root="/",o=1):o=0;for(var n=-1,s=0,p=-1,c=!0,d=t.length-1,l=0;d>=o;--d){if(i=t.charCodeAt(d),i===47){if(!c){s=d+1;break}continue}p===-1&&(c=!1,p=d+1),i===46?n===-1?n=d:l!==1&&(l=1):n!==-1&&(l=-1)}return n===-1||p===-1||l===0||l===1&&n===p-1&&n===s+1?p!==-1&&(s===0&&r?a.base=a.name=t.slice(1,p):a.base=a.name=t.slice(s,p)):(s===0&&r?(a.name=t.slice(1,n),a.base=t.slice(1,p)):(a.name=t.slice(s,n),a.base=t.slice(s,p)),a.ext=t.slice(n,p)),s>0?a.dir=t.slice(0,s-1):r&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};ae.posix=ae;var $s=ae;function Ts(e){return js(new URL(e||"http://localhost/").pathname)}function ei(e,t){return $s.posix.join(Ts(t),e)}function Rs(e,t){return{props:{rel:"stylesheet",href:ei(e,t)},children:""}}function Ds(e,t){return new Set(e.map(a=>Rs(a,t)))}function _s(e,t){return e.type==="external"?zs(e.value,t):{props:{type:"module"},children:e.value}}function zs(e,t){return{props:{type:"module",src:ei(e,t)},children:""}}function zt(e,t){return t.routes.find(a=>a.pattern.test(e))}function Bs(e){for(var t=[],a=0;a<e.length;){var i=e[a];if(i==="*"||i==="+"||i==="?"){t.push({type:"MODIFIER",index:a,value:e[a++]});continue}if(i==="\\"){t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});continue}if(i==="{"){t.push({type:"OPEN",index:a,value:e[a++]});continue}if(i==="}"){t.push({type:"CLOSE",index:a,value:e[a++]});continue}if(i===":"){for(var r="",o=a+1;o<e.length;){var n=e.charCodeAt(o);if(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===95){r+=e[o++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:r}),a=o;continue}if(i==="("){var s=1,p="",o=a+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){p+=e[o++]+e[o++];continue}if(e[o]===")"){if(s--,s===0){o++;break}}else if(e[o]==="("&&(s++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));p+=e[o++]}if(s)throw new TypeError("Unbalanced pattern at ".concat(a));if(!p)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:p}),a=o;continue}t.push({type:"CHAR",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}function Is(e,t){t===void 0&&(t={});for(var a=Bs(e),i=t.prefixes,r=i===void 0?"./":i,o="[^".concat(Ns(t.delimiter||"/#?"),"]+?"),n=[],s=0,p=0,c="",d=function(P){if(p<a.length&&a[p].type===P)return a[p++].value},l=function(P){var f=d(P);if(f!==void 0)return f;var b=a[p],F=b.type,Qe=b.index;throw new TypeError("Unexpected ".concat(F," at ").concat(Qe,", expected ").concat(P))},u=function(){for(var P="",f;f=d("CHAR")||d("ESCAPED_CHAR");)P+=f;return P};p<a.length;){var w=d("CHAR"),g=d("NAME"),x=d("PATTERN");if(g||x){var m=w||"";r.indexOf(m)===-1&&(c+=m,m=""),c&&(n.push(c),c=""),n.push({name:g||s++,prefix:m,suffix:"",pattern:x||o,modifier:d("MODIFIER")||""});continue}var A=w||d("ESCAPED_CHAR");if(A){c+=A;continue}c&&(n.push(c),c="");var k=d("OPEN");if(k){var m=u(),C=d("NAME")||"",$=d("PATTERN")||"",be=u();l("CLOSE"),n.push({name:C||($?s++:""),pattern:C&&!$?o:$,prefix:m,suffix:be,modifier:d("MODIFIER")||""});continue}l("END")}return n}function Ms(e,t){return Us(Is(e,t),t)}function Us(e,t){t===void 0&&(t={});var a=qs(t),i=t.encode,r=i===void 0?function(p){return p}:i,o=t.validate,n=o===void 0?!0:o,s=e.map(function(p){if(typeof p=="object")return new RegExp("^(?:".concat(p.pattern,")$"),a)});return function(p){for(var c="",d=0;d<e.length;d++){var l=e[d];if(typeof l=="string"){c+=l;continue}var u=p?p[l.name]:void 0,w=l.modifier==="?"||l.modifier==="*",g=l.modifier==="*"||l.modifier==="+";if(Array.isArray(u)){if(!g)throw new TypeError('Expected "'.concat(l.name,'" to not repeat, but got an array'));if(u.length===0){if(w)continue;throw new TypeError('Expected "'.concat(l.name,'" to not be empty'))}for(var x=0;x<u.length;x++){var m=r(u[x],l);if(n&&!s[d].test(m))throw new TypeError('Expected all "'.concat(l.name,'" to match "').concat(l.pattern,'", but got "').concat(m,'"'));c+=l.prefix+m+l.suffix}continue}if(typeof u=="string"||typeof u=="number"){var m=r(String(u),l);if(n&&!s[d].test(m))throw new TypeError('Expected "'.concat(l.name,'" to match "').concat(l.pattern,'", but got "').concat(m,'"'));c+=l.prefix+m+l.suffix;continue}if(!w){var A=g?"an array":"a string";throw new TypeError('Expected "'.concat(l.name,'" to be ').concat(A))}}return c}}function Ns(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function qs(e){return e&&e.sensitive?"":"i"}function Ls(e,t){let a=e.map(o=>o[0].spread?`/:${o[0].content.slice(3)}(.*)?`:"/"+o.map(n=>{if(n)return n.dynamic?`:${n.content}`:n.content.normalize().replace(/\?/g,"%3F").replace(/#/g,"%23").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")).join(""),i=t!=="never"&&e.length?"/":"";return Ms(a+i)}function $a(e){return{route:e.route,type:e.type,pattern:new RegExp(e.pattern),params:e.params,component:e.component,generate:Ls(e.segments,e._meta.trailingSlash),pathname:e.pathname||void 0,segments:e.segments}}function Ws(e){let t=[];for(let i of e.routes){t.push({...i,routeData:$a(i.routeData)});let r=i;r.routeData=$a(i.routeData)}let a=new Set(e.assets);return{...e,assets:a,routes:t}}var Yt=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},E=(e,t,a)=>(Yt(e,t,"read from private field"),a?a.call(e):t.get(e)),z=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},me=(e,t,a,i)=>(Yt(e,t,"write to private field"),i?i.call(e,a):t.set(e,a),a),Bt=(e,t,a)=>(Yt(e,t,"access private method"),a),U,te,Ye,he,Kt,re,Ke,He,Gt,Jt,ti,Vt=class{constructor(t,a=!0){z(this,He),z(this,Jt),z(this,U,void 0),z(this,te,void 0),z(this,Ye,void 0),z(this,he,void 0),z(this,Kt,new TextEncoder),z(this,re,{dest:ks,level:"info"}),z(this,Ke,void 0),me(this,U,t),me(this,te,{routes:t.routes.map(i=>i.routeData)}),me(this,Ye,new Map(t.routes.map(i=>[i.routeData,i]))),me(this,he,new Ht(E(this,re))),me(this,Ke,a)}match(t,{matchNotFound:a=!1}={}){let i=new URL(t.url);if(E(this,U).assets.has(i.pathname))return;let r=zt(i.pathname,E(this,te));return r||(a?zt("/404",E(this,te)):void 0)}async render(t,a){let i=200;if(!a&&(a=this.match(t),a||(i=404,a=this.match(t,{matchNotFound:!0})),!a))return new Response(null,{status:404,statusText:"Not found"});let r=E(this,U).pageMap.get(a.component);if(a.type==="page"){let o=await Bt(this,He,Gt).call(this,t,a,r,i);if(o.status===500){let n=zt("/500",E(this,te));if(n){r=E(this,U).pageMap.get(n.component);try{return await Bt(this,He,Gt).call(this,t,n,r,500)}catch{}}}return o}else{if(a.type==="endpoint")return Bt(this,Jt,ti).call(this,t,a,r,i);throw new Error(`Unsupported route type [${a.type}].`)}}};U=new WeakMap;te=new WeakMap;Ye=new WeakMap;he=new WeakMap;Kt=new WeakMap;re=new WeakMap;Ke=new WeakMap;He=new WeakSet;Gt=async function(e,t,a,i=200){let r=new URL(e.url),o=E(this,U),n=o.renderers,s=E(this,Ye).get(t),p=Ds(s.links,o.site),c=new Set;for(let d of s.scripts)"stage"in d?d.stage==="head-inline"&&c.add({props:{},children:d.children}):c.add(_s(d,o.site));try{return await As({adapterName:o.adapterName,links:p,logging:E(this,re),markdown:o.markdown,mod:a,mode:"production",origin:r.origin,pathname:r.pathname,scripts:c,renderers:n,async resolve(l){if(!(l in o.entryModules))throw new Error(`Unable to resolve [${l}]`);let u=o.entryModules[l];return u.startsWith("data:")?u:Es(Os(o.base,u))},route:t,routeCache:E(this,he),site:E(this,U).site,ssr:!0,request:e,streaming:E(this,Ke),status:i})}catch(d){return as(E(this,re),"ssr",d),new Response(null,{status:500,statusText:"Internal server error"})}};Jt=new WeakSet;ti=async function(e,t,a,i=200){let r=new URL(e.url),n=await Ss(a,{logging:E(this,re),origin:r.origin,pathname:r.pathname,request:e,route:t,routeCache:E(this,he),ssr:!0,status:i});if(n.type==="response")return n.response;{let s=n.body,p=new Headers,c=io.getType(r.pathname);c?p.set("Content-Type",`${c};charset=utf-8`):p.set("Content-Type","text/plain;charset=utf-8");let d=E(this,Kt).encode(s);return p.set("Content-Length",d.byteLength.toString()),new Response(d,{status:200,headers:p})}};function ni(e){let t=new Vt(e,!1);return{default:{fetch:async(i,r)=>{let{origin:o,pathname:n}=new URL(i.url);if(e.assets.has(n)){let p=new Request(`${o}/static${n}`,i);return r.ASSETS.fetch(p)}let s=t.match(i,{matchNotFound:!0});return s?(Reflect.set(i,Symbol.for("astro.clientAddress"),i.headers.get("cf-connecting-ip")),t.render(i,s)):new Response(null,{status:404,statusText:"Not found"})}}}}var Ta=Object.freeze(Object.defineProperty({__proto__:null,createExports:ni},Symbol.toStringTag,{value:"Module"})),Hs=Eo("/@fs/Users/matthew/dev/astro/packages/integrations/cloudflare/test/fixtures/basics/src/pages/index.astro",{modules:[],hydratedComponents:[],clientOnlyComponents:[],hydrationDirectives:new Set([]),hoisted:[]}),Gs=zo("/@fs/Users/matthew/dev/astro/packages/integrations/cloudflare/test/fixtures/basics/src/pages/index.astro","","file:///Users/matthew/dev/astro/packages/integrations/cloudflare/test/fixtures/basics/"),ai=Co(async(e,t,a)=>{let i=e.createAstro(Gs,t,a);return i.self=ai,qa`<html>
217
- <head>
218
- <title>Testing</title>
219
- ${Wa(e)}</head>
220
- <body>
221
- <h1>Testing</h1>
222
- </body></html>`}),Js="/Users/matthew/dev/astro/packages/integrations/cloudflare/test/fixtures/basics/src/pages/index.astro",Vs="",Ys=Object.freeze(Object.defineProperty({__proto__:null,$$metadata:Hs,default:ai,file:Js,url:Vs},Symbol.toStringTag,{value:"Module"})),Ks=new Map([["src/pages/index.astro",Ys]]),Zs=[],ii=Object.assign(Ws({adapterName:"@astrojs/cloudflare",routes:[{file:"",links:[],scripts:[],routeData:{route:"/",type:"page",pattern:"^\\/$",segments:[],params:[],component:"src/pages/index.astro",pathname:"/",_meta:{trailingSlash:"ignore"}}}],base:"/",markdown:{drafts:!1,syntaxHighlight:"shiki",shikiConfig:{langs:[],theme:"github-dark",wrap:!1},remarkPlugins:[],rehypePlugins:[],isAstroFlavoredMd:!1},pageMap:null,renderers:[],entryModules:{"\0@astrojs-ssr-virtual-entry":"_worker.js","astro:scripts/before-hydration.js":"data:text/javascript;charset=utf-8,//[no before-hydration script]"},assets:[]}),{pageMap:Ks,renderers:Zs}),Xs=void 0,Qs=ni(ii),Ap=Qs.default,Ra="start";Ra in Ta&&Ta[Ra](ii,Xs);export{Ap as default};
223
- /**
224
- * shortdash - https://github.com/bibig/node-shorthash
225
- *
226
- * @license
227
- *
228
- * (The MIT License)
229
- *
230
- * Copyright (c) 2013 Bibig <bibig@me.com>
231
- *
232
- * Permission is hereby granted, free of charge, to any person
233
- * obtaining a copy of this software and associated documentation
234
- * files (the "Software"), to deal in the Software without
235
- * restriction, including without limitation the rights to use,
236
- * copy, modify, merge, publish, distribute, sublicense, and/or sell
237
- * copies of the Software, and to permit persons to whom the
238
- * Software is furnished to do so, subject to the following
239
- * conditions:
240
- *
241
- * The above copyright notice and this permission notice shall be
242
- * included in all copies or substantial portions of the Software.
243
- *
244
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
245
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
246
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
247
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
248
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
249
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
250
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
251
- * OTHER DEALINGS IN THE SOFTWARE.
252
- */
@@ -1 +0,0 @@
1
- {"type":"module"}
@@ -1,4 +0,0 @@
1
- const pageMap = new Map([]);
2
- const renderers = [];
3
-
4
- export { pageMap, renderers };