Initial commit
This commit is contained in:
parent
6b64d2bfd8
commit
a397cf8ee7
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.DS_Store
|
132
firmware/cre.yaml
Normal file
132
firmware/cre.yaml
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
esphome:
|
||||||
|
name: cre-laptop-thing
|
||||||
|
|
||||||
|
esp32:
|
||||||
|
board: esp32-c3-devkitm-1
|
||||||
|
framework:
|
||||||
|
type: arduino
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
password: ""
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
{}
|
||||||
|
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
|
web_server:
|
||||||
|
port: 80
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: esp32_rmt_led_strip
|
||||||
|
id: rgb_light
|
||||||
|
name: "RGB Light"
|
||||||
|
pin: GPIO3
|
||||||
|
rmt_channel: 0
|
||||||
|
default_transition_length: 0s
|
||||||
|
chipset: WS2812
|
||||||
|
num_leds: 1
|
||||||
|
rgb_order: grb
|
||||||
|
effects:
|
||||||
|
- pulse:
|
||||||
|
name: "Slow Pulse"
|
||||||
|
transition_length: 1000ms
|
||||||
|
update_interval: 1000ms
|
||||||
|
min_brightness: 50%
|
||||||
|
max_brightness: 100%
|
||||||
|
- pulse:
|
||||||
|
name: "Fast Pulse"
|
||||||
|
transition_length: 100ms
|
||||||
|
update_interval: 100ms
|
||||||
|
min_brightness: 50%
|
||||||
|
max_brightness: 100%
|
||||||
|
|
||||||
|
button:
|
||||||
|
- platform: restart
|
||||||
|
icon: mdi:power-cycle
|
||||||
|
name: "ESP Reboot"
|
||||||
|
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: internal_temperature
|
||||||
|
name: "ESP Temperature"
|
||||||
|
id: sys_esp_temperature
|
||||||
|
|
||||||
|
- platform: uptime
|
||||||
|
name: Uptime
|
||||||
|
id: sys_uptime
|
||||||
|
update_interval: 60s
|
||||||
|
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: RSSI
|
||||||
|
id: wifi_signal_db
|
||||||
|
update_interval: 60s
|
||||||
|
entity_category: "diagnostic"
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO6
|
||||||
|
inverted: true
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
name: "Button 1"
|
||||||
|
filters:
|
||||||
|
- delayed_on: 10ms
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO7
|
||||||
|
inverted: true
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
name: "Button 2"
|
||||||
|
filters:
|
||||||
|
- delayed_on: 10ms
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO10
|
||||||
|
inverted: true
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
name: "Button 3"
|
||||||
|
filters:
|
||||||
|
- delayed_on: 10ms
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO5
|
||||||
|
inverted: true
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
name: "Button 4"
|
||||||
|
filters:
|
||||||
|
- delayed_on: 10ms
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO4
|
||||||
|
inverted: true
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
pullup: true
|
||||||
|
name: "Button 5"
|
||||||
|
filters:
|
||||||
|
- delayed_on: 10ms
|
||||||
|
|
||||||
|
improv_serial:
|
||||||
|
esp32_improv:
|
||||||
|
authorizer: none
|
||||||
|
|
1
web/node_modules/.bin/acorn
generated
vendored
Symbolic link
1
web/node_modules/.bin/acorn
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../acorn/bin/acorn
|
1
web/node_modules/.bin/autoprefixer
generated
vendored
Symbolic link
1
web/node_modules/.bin/autoprefixer
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../autoprefixer/bin/autoprefixer
|
1
web/node_modules/.bin/browserslist
generated
vendored
Symbolic link
1
web/node_modules/.bin/browserslist
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../browserslist/cli.js
|
1
web/node_modules/.bin/cssesc
generated
vendored
Symbolic link
1
web/node_modules/.bin/cssesc
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../cssesc/bin/cssesc
|
1
web/node_modules/.bin/esbuild
generated
vendored
Symbolic link
1
web/node_modules/.bin/esbuild
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../esbuild/bin/esbuild
|
1
web/node_modules/.bin/glob
generated
vendored
Symbolic link
1
web/node_modules/.bin/glob
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../glob/dist/esm/bin.mjs
|
1
web/node_modules/.bin/jiti
generated
vendored
Symbolic link
1
web/node_modules/.bin/jiti
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../jiti/bin/jiti.js
|
1
web/node_modules/.bin/nanoid
generated
vendored
Symbolic link
1
web/node_modules/.bin/nanoid
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../nanoid/bin/nanoid.cjs
|
1
web/node_modules/.bin/node-which
generated
vendored
Symbolic link
1
web/node_modules/.bin/node-which
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../which/bin/node-which
|
1
web/node_modules/.bin/resolve
generated
vendored
Symbolic link
1
web/node_modules/.bin/resolve
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../resolve/bin/resolve
|
1
web/node_modules/.bin/rollup
generated
vendored
Symbolic link
1
web/node_modules/.bin/rollup
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../rollup/dist/bin/rollup
|
1
web/node_modules/.bin/sucrase
generated
vendored
Symbolic link
1
web/node_modules/.bin/sucrase
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../sucrase/bin/sucrase
|
1
web/node_modules/.bin/sucrase-node
generated
vendored
Symbolic link
1
web/node_modules/.bin/sucrase-node
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../sucrase/bin/sucrase-node
|
1
web/node_modules/.bin/svelte-check
generated
vendored
Symbolic link
1
web/node_modules/.bin/svelte-check
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../svelte-check/bin/svelte-check
|
1
web/node_modules/.bin/tailwind
generated
vendored
Symbolic link
1
web/node_modules/.bin/tailwind
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../tailwindcss/lib/cli.js
|
1
web/node_modules/.bin/tailwindcss
generated
vendored
Symbolic link
1
web/node_modules/.bin/tailwindcss
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../tailwindcss/lib/cli.js
|
1
web/node_modules/.bin/tsc
generated
vendored
Symbolic link
1
web/node_modules/.bin/tsc
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../typescript/bin/tsc
|
1
web/node_modules/.bin/tsserver
generated
vendored
Symbolic link
1
web/node_modules/.bin/tsserver
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../typescript/bin/tsserver
|
1
web/node_modules/.bin/update-browserslist-db
generated
vendored
Symbolic link
1
web/node_modules/.bin/update-browserslist-db
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../update-browserslist-db/cli.js
|
1
web/node_modules/.bin/vite
generated
vendored
Symbolic link
1
web/node_modules/.bin/vite
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../vite/bin/vite.js
|
1
web/node_modules/.bin/yaml
generated
vendored
Symbolic link
1
web/node_modules/.bin/yaml
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../yaml/bin.mjs
|
2254
web/node_modules/.package-lock.json
generated
vendored
Normal file
2254
web/node_modules/.package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
32
web/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts
generated
vendored
Normal file
32
web/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
declare namespace svelteNative.JSX {
|
||||||
|
|
||||||
|
// Every namespace eligible for use needs to implement the following two functions
|
||||||
|
function mapElementTag(
|
||||||
|
tag: string
|
||||||
|
): any;
|
||||||
|
|
||||||
|
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements>(
|
||||||
|
element: Key | undefined | null, attrs: Elements[Key]
|
||||||
|
): any;
|
||||||
|
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements, T>(
|
||||||
|
element: Key | undefined | null, attrEnhancers: T, attrs: Elements[Key] & T
|
||||||
|
): any;
|
||||||
|
|
||||||
|
|
||||||
|
/* svelte specific */
|
||||||
|
interface ElementClass {
|
||||||
|
$$prop_def: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ElementAttributesProperty {
|
||||||
|
$$prop_def: any; // specify the property name to use
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add empty IntrinsicAttributes to prevent fallback to the one in the JSX namespace
|
||||||
|
interface IntrinsicAttributes {
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IntrinsicElements {
|
||||||
|
[name: string]: { [name: string]: any };
|
||||||
|
}
|
||||||
|
}
|
287
web/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts
generated
vendored
Normal file
287
web/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts
generated
vendored
Normal file
@ -0,0 +1,287 @@
|
|||||||
|
// Whenever a ambient declaration changes, its number should be increased
|
||||||
|
// This way, we avoid the situation where multiple ambient versions of svelte2tsx
|
||||||
|
// are loaded and their declarations conflict each other
|
||||||
|
// See https://github.com/sveltejs/language-tools/issues/1059 for an example bug that stems from it
|
||||||
|
// If you change anything in this file, think about whether or not it should be backported to svelte-shims.d.ts
|
||||||
|
|
||||||
|
type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T;
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteActionReturnType = {
|
||||||
|
update?: (args: any) => void,
|
||||||
|
destroy?: () => void
|
||||||
|
} | void
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteTransitionConfig = {
|
||||||
|
delay?: number,
|
||||||
|
duration?: number,
|
||||||
|
easing?: (t: number) => number,
|
||||||
|
css?: (t: number, u: number) => string,
|
||||||
|
tick?: (t: number, u: number) => void
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteTransitionReturnType = SvelteTransitionConfig | (() => SvelteTransitionConfig)
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteAnimationReturnType = {
|
||||||
|
delay?: number,
|
||||||
|
duration?: number,
|
||||||
|
easing?: (t: number) => number,
|
||||||
|
css?: (t: number, u: number) => string,
|
||||||
|
tick?: (t: number, u: number) => void
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteWithOptionalProps<Props, Keys extends keyof Props> = Omit<Props, Keys> & Partial<Pick<Props, Keys>>;
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteAllProps = { [index: string]: any }
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SveltePropsAnyFallback<Props> = {[K in keyof Props]: Props[K] extends never ? never : Props[K] extends undefined ? any : Props[K]}
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteSlotsAnyFallback<Slots> = {[K in keyof Slots]: {[S in keyof Slots[K]]: Slots[K][S] extends undefined ? any : Slots[K][S]}}
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteRestProps = { [index: string]: any }
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteSlots = { [index: string]: any }
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type SvelteStore<T> = { subscribe: (run: (value: T) => any, invalidate?: any) => any }
|
||||||
|
|
||||||
|
// Forces TypeScript to look into the type which results in a better representation of it
|
||||||
|
// which helps for error messages and is necessary for d.ts file transformation so that
|
||||||
|
// no ambient type references are left in the output
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type KeysMatching<Obj, V> = {[K in keyof Obj]-?: Obj[K] extends V ? K : never}[keyof Obj]
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
declare type __sveltets_2_CustomEvents<T> = {[K in KeysMatching<T, CustomEvent>]: T[K] extends CustomEvent ? T[K]['detail']: T[K]}
|
||||||
|
|
||||||
|
declare function __sveltets_2_ensureRightProps<Props>(props: Props): {};
|
||||||
|
declare function __sveltets_2_instanceOf<T = any>(type: AConstructorTypeOf<T>): T;
|
||||||
|
declare function __sveltets_2_allPropsType(): SvelteAllProps
|
||||||
|
declare function __sveltets_2_restPropsType(): SvelteRestProps
|
||||||
|
declare function __sveltets_2_slotsType<Slots, Key extends keyof Slots>(slots: Slots): Record<Key, boolean>;
|
||||||
|
|
||||||
|
// Overload of the following two functions is necessary.
|
||||||
|
// An empty array of optionalProps makes OptionalProps type any, which means we lose the prop typing.
|
||||||
|
// optionalProps need to be first or its type cannot be infered correctly.
|
||||||
|
|
||||||
|
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
|
||||||
|
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
): {props: Expand<SveltePropsAnyFallback<Props>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
|
||||||
|
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string, OptionalProps extends keyof Props = any>(
|
||||||
|
optionalProps: OptionalProps[],
|
||||||
|
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
|
||||||
|
|
||||||
|
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
|
||||||
|
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
): {props: Expand<SveltePropsAnyFallback<Props> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
|
||||||
|
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string, OptionalProps extends keyof Props = any>(
|
||||||
|
optionalProps: OptionalProps[],
|
||||||
|
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
|
||||||
|
|
||||||
|
|
||||||
|
declare function __sveltets_2_with_any<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
|
||||||
|
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
): {props: Expand<Props & SvelteAllProps>, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
|
||||||
|
declare function __sveltets_2_with_any_event<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
|
||||||
|
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
): {props: Props, events: Events & {[evt: string]: CustomEvent<any>;}, slots: Slots, exports?: Exports, bindings?: Bindings }
|
||||||
|
|
||||||
|
declare function __sveltets_2_store_get<T = any>(store: SvelteStore<T>): T
|
||||||
|
declare function __sveltets_2_store_get<Store extends SvelteStore<any> | undefined | null>(store: Store): Store extends SvelteStore<infer T> ? T : Store;
|
||||||
|
declare function __sveltets_2_any(dummy: any): any;
|
||||||
|
declare function __sveltets_2_invalidate<T>(getValue: () => T): T
|
||||||
|
|
||||||
|
declare function __sveltets_2_mapWindowEvent<K extends keyof HTMLBodyElementEventMap>(
|
||||||
|
event: K
|
||||||
|
): HTMLBodyElementEventMap[K];
|
||||||
|
declare function __sveltets_2_mapBodyEvent<K extends keyof WindowEventMap>(
|
||||||
|
event: K
|
||||||
|
): WindowEventMap[K];
|
||||||
|
declare function __sveltets_2_mapElementEvent<K extends keyof HTMLElementEventMap>(
|
||||||
|
event: K
|
||||||
|
): HTMLElementEventMap[K];
|
||||||
|
|
||||||
|
declare function __sveltets_2_bubbleEventDef<Events, K extends keyof Events>(
|
||||||
|
events: Events, eventKey: K
|
||||||
|
): Events[K];
|
||||||
|
declare function __sveltets_2_bubbleEventDef(
|
||||||
|
events: any, eventKey: string
|
||||||
|
): any;
|
||||||
|
|
||||||
|
declare const __sveltets_2_customEvent: CustomEvent<any>;
|
||||||
|
declare function __sveltets_2_toEventTypings<Typings>(): {[Key in keyof Typings]: CustomEvent<Typings[Key]>};
|
||||||
|
|
||||||
|
declare function __sveltets_2_unionType<T1, T2>(t1: T1, t2: T2): T1 | T2;
|
||||||
|
declare function __sveltets_2_unionType<T1, T2, T3>(t1: T1, t2: T2, t3: T3): T1 | T2 | T3;
|
||||||
|
declare function __sveltets_2_unionType<T1, T2, T3, T4>(t1: T1, t2: T2, t3: T3, t4: T4): T1 | T2 | T3 | T4;
|
||||||
|
declare function __sveltets_2_unionType(...types: any[]): any;
|
||||||
|
|
||||||
|
declare function __sveltets_2_createSvelte2TsxComponent<Props extends {}, Events extends {}, Slots extends {}>(
|
||||||
|
render: {props: Props, events: Events, slots: Slots }
|
||||||
|
): typeof import("svelte").SvelteComponent<Props, Events, Slots>;
|
||||||
|
|
||||||
|
declare function __sveltets_2_unwrapArr<T>(arr: ArrayLike<T>): T
|
||||||
|
declare function __sveltets_2_unwrapPromiseLike<T>(promise: PromiseLike<T> | T): T
|
||||||
|
|
||||||
|
// v2
|
||||||
|
declare function __sveltets_2_createCreateSlot<Slots = Record<string, Record<string, any>>>(): <SlotName extends keyof Slots>(slotName: SlotName, attrs: Slots[SlotName]) => Record<string, any>;
|
||||||
|
declare function __sveltets_2_createComponentAny(props: Record<string, any>): import("svelte").SvelteComponent<any, any, any>;
|
||||||
|
|
||||||
|
declare function __sveltets_2_any(...dummy: any[]): any;
|
||||||
|
declare function __sveltets_2_empty(...dummy: any[]): {};
|
||||||
|
declare function __sveltets_2_union<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(t1:T1,t2?:T2,t3?:T3,t4?:T4,t5?:T5,t6?:T6,t7?:T7,t8?:T8,t9?:T9,t10?:T10): T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9 & T10;
|
||||||
|
declare function __sveltets_2_nonNullable<T>(type: T): NonNullable<T>;
|
||||||
|
|
||||||
|
declare function __sveltets_2_cssProp(prop: Record<string, any>): {};
|
||||||
|
|
||||||
|
// @ts-ignore Svelte v3/v4 don't have this
|
||||||
|
declare function __sveltets_2_ensureSnippet(val: ReturnType<import('svelte').Snippet> | undefined | null): any;
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type __sveltets_2_SvelteAnimationReturnType = {
|
||||||
|
delay?: number,
|
||||||
|
duration?: number,
|
||||||
|
easing?: (t: number) => number,
|
||||||
|
css?: (t: number, u: number) => string,
|
||||||
|
tick?: (t: number, u: number) => void
|
||||||
|
}
|
||||||
|
declare var __sveltets_2_AnimationMove: { from: DOMRect, to: DOMRect }
|
||||||
|
declare function __sveltets_2_ensureAnimation(animationCall: __sveltets_2_SvelteAnimationReturnType): {};
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type __sveltets_2_SvelteActionReturnType = {
|
||||||
|
update?: (args: any) => void,
|
||||||
|
destroy?: () => void,
|
||||||
|
$$_attributes?: Record<string, any>,
|
||||||
|
} | void
|
||||||
|
declare function __sveltets_2_ensureAction<T extends __sveltets_2_SvelteActionReturnType>(actionCall: T): T extends {$$_attributes?: any} ? T['$$_attributes'] : {};
|
||||||
|
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type __sveltets_2_SvelteTransitionConfig = {
|
||||||
|
delay?: number,
|
||||||
|
duration?: number,
|
||||||
|
easing?: (t: number) => number,
|
||||||
|
css?: (t: number, u: number) => string,
|
||||||
|
tick?: (t: number, u: number) => void
|
||||||
|
}
|
||||||
|
/** @internal PRIVATE API, DO NOT USE */
|
||||||
|
type __sveltets_2_SvelteTransitionReturnType = __sveltets_2_SvelteTransitionConfig | (() => __sveltets_2_SvelteTransitionConfig)
|
||||||
|
declare function __sveltets_2_ensureTransition(transitionCall: __sveltets_2_SvelteTransitionReturnType): {};
|
||||||
|
|
||||||
|
// Includes undefined and null for all types as all usages also allow these
|
||||||
|
declare function __sveltets_2_ensureType<T>(type: AConstructorTypeOf<T>, el: T | undefined | null): {};
|
||||||
|
declare function __sveltets_2_ensureType<T1, T2>(type1: AConstructorTypeOf<T1>, type2: AConstructorTypeOf<T2>, el: T1 | T2 | undefined | null): {};
|
||||||
|
|
||||||
|
// The following is necessary because there are two clashing errors that can't be solved at the same time
|
||||||
|
// when using Svelte2TsxComponent, more precisely the event typings in
|
||||||
|
// __sveltets_2_ensureComponent<T extends new (..) => _SvelteComponent<any,||any||<-this,any>>(type: T): T;
|
||||||
|
// If we type it as "any", we have an error when using sth like {a: CustomEvent<any>}
|
||||||
|
// If we type it as "{}", we have an error when using sth like {[evt: string]: CustomEvent<any>}
|
||||||
|
// If we type it as "unknown", we get all kinds of follow up errors which we want to avoid
|
||||||
|
// Therefore introduce two more base classes just for this case.
|
||||||
|
/**
|
||||||
|
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT
|
||||||
|
*/
|
||||||
|
declare type ATypedSvelteComponent = {
|
||||||
|
/**
|
||||||
|
* @internal This is for type checking capabilities only
|
||||||
|
* and does not exist at runtime. Don't use this property.
|
||||||
|
*/
|
||||||
|
$$prop_def: any;
|
||||||
|
/**
|
||||||
|
* @internal This is for type checking capabilities only
|
||||||
|
* and does not exist at runtime. Don't use this property.
|
||||||
|
*/
|
||||||
|
$$events_def: any;
|
||||||
|
/**
|
||||||
|
* @internal This is for type checking capabilities only
|
||||||
|
* and does not exist at runtime. Don't use this property.
|
||||||
|
*/
|
||||||
|
$$slot_def: any;
|
||||||
|
|
||||||
|
$on(event: string, handler: any): () => void;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT.
|
||||||
|
*
|
||||||
|
* If you're looking for the type of a Svelte Component, use `SvelteComponent` and `ComponentType` instead:
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* import type { ComponentType, SvelteComponent } from "svelte";
|
||||||
|
* let myComponentConstructor: ComponentType<SvelteComponent> = ..;
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
declare type ConstructorOfATypedSvelteComponent = new (args: {target: any, props?: any}) => ATypedSvelteComponent
|
||||||
|
// Usage note: Cannot properly transform generic function components to class components due to TypeScript limitations
|
||||||
|
declare function __sveltets_2_ensureComponent<
|
||||||
|
T extends
|
||||||
|
| ConstructorOfATypedSvelteComponent
|
||||||
|
| (typeof import('svelte') extends { mount: any }
|
||||||
|
? // @ts-ignore svelte.Component doesn't exist in Svelte 4
|
||||||
|
import('svelte').Component<any, any, any>
|
||||||
|
: never)
|
||||||
|
| null
|
||||||
|
| undefined
|
||||||
|
>(
|
||||||
|
type: T
|
||||||
|
): NonNullable<
|
||||||
|
T extends ConstructorOfATypedSvelteComponent
|
||||||
|
? T
|
||||||
|
: typeof import('svelte') extends { mount: any }
|
||||||
|
? // @ts-ignore svelte.Component doesn't exist in Svelte 4
|
||||||
|
T extends import('svelte').Component<
|
||||||
|
infer Props extends Record<string, any>,
|
||||||
|
infer Exports extends Record<string, any>,
|
||||||
|
infer Bindings extends string
|
||||||
|
>
|
||||||
|
? new (
|
||||||
|
options: import('svelte').ComponentConstructorOptions<Props>
|
||||||
|
) => import('svelte').SvelteComponent<Props, Props['$$events'], Props['$$slots']> &
|
||||||
|
Exports & { $$bindings: Bindings }
|
||||||
|
: never
|
||||||
|
: never
|
||||||
|
>;
|
||||||
|
|
||||||
|
declare function __sveltets_2_ensureArray<T extends ArrayLike<unknown> | Iterable<unknown>>(array: T): T extends ArrayLike<infer U> ? U[] : T extends Iterable<infer U> ? Iterable<U> : any[];
|
||||||
|
|
||||||
|
type __sveltets_2_PropsWithChildren<Props, Slots> = Props &
|
||||||
|
(Slots extends { default: any }
|
||||||
|
// This is unfortunate because it means "accepts no props" turns into "accepts any prop"
|
||||||
|
// but the alternative is non-fixable type errors because of the way TypeScript index
|
||||||
|
// signatures work (they will always take precedence and make an impossible-to-satisfy children type).
|
||||||
|
? Props extends Record<string, never>
|
||||||
|
? any
|
||||||
|
: { children?: any }
|
||||||
|
: {});
|
||||||
|
declare function __sveltets_2_runes_constructor<Props extends {}>(render: {props: Props }): import("svelte").ComponentConstructorOptions<Props>;
|
||||||
|
|
||||||
|
declare function __sveltets_2_get_set_binding<T>(get: (() => T) | null | undefined, set: (t: T) => void): T;
|
||||||
|
|
||||||
|
declare function __sveltets_$$bindings<Bindings extends string[]>(...bindings: Bindings): Bindings[number];
|
||||||
|
|
||||||
|
declare function __sveltets_2_fn_component<
|
||||||
|
Props extends Record<string, any>, Exports extends Record<string, any>, Bindings extends string
|
||||||
|
// @ts-ignore Svelte 5 only
|
||||||
|
>(klass: {props: Props, exports?: Exports, bindings?: Bindings }): import('svelte').Component<Props, Exports, Bindings>;
|
||||||
|
|
||||||
|
interface __sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
||||||
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings } & Exports;
|
||||||
|
(internal: unknown, props: Props extends Record<string, never> ? {$$events?: Events, $$slots?: Slots} : Props & {$$events?: Events, $$slots?: Slots}): Exports & { $set?: any, $on?: any };
|
||||||
|
z_$$bindings?: Bindings;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare function __sveltets_2_isomorphic_component<
|
||||||
|
Props extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>, Exports extends Record<string, any>, Bindings extends string
|
||||||
|
>(klass: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }): __sveltets_2_IsomorphicComponent<Props, Events, Slots, Exports, Bindings>;
|
||||||
|
|
||||||
|
declare function __sveltets_2_isomorphic_component_slots<
|
||||||
|
Props extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>, Exports extends Record<string, any>, Bindings extends string
|
||||||
|
>(klass: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }): __sveltets_2_IsomorphicComponent<__sveltets_2_PropsWithChildren<Props, Slots>, Events, Slots, Exports, Bindings>;
|
1
web/node_modules/.vite/_svelte_metadata.json
generated
vendored
Normal file
1
web/node_modules/.vite/_svelte_metadata.json
generated
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"compilerOptions":{"css":"external","dev":true,"hmr":true},"configFile":"/Users/thomascole/Laptop-Thing/web/web/web/svelte.config.js","extensions":[".svelte"],"preprocess":{"name":"vite-preprocess","style":"async ({ attributes, content, filename = '' }) => {\n\t\tconst ext = attributes.lang ? `.${attributes.lang}` : '.css';\n\t\tif (attributes.lang && !isCSSRequest(ext)) return;\n\t\tif (!cssTransform) {\n\t\t\tcssTransform = createCssTransform(style, config).then((t) => (cssTransform = t));\n\t\t}\n\t\tconst transform = await cssTransform;\n\t\tconst suffix = `${lang_sep}${ext}`;\n\t\tconst moduleId = `${filename}${suffix}`;\n\t\tconst { code, map, deps } = await transform(content, moduleId);\n\t\tremoveLangSuffix(map, suffix);\n\t\tmapToRelative(map, filename);\n\t\tconst dependencies = deps ? Array.from(deps).filter((d) => !d.endsWith(suffix)) : undefined;\n\t\treturn {\n\t\t\tcode,\n\t\t\tmap: map ?? undefined,\n\t\t\tdependencies\n\t\t};\n\t}"}}
|
112
web/node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
112
web/node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
{
|
||||||
|
"hash": "ff7eeb21",
|
||||||
|
"configHash": "13082586",
|
||||||
|
"lockfileHash": "916b03e8",
|
||||||
|
"browserHash": "ab048a09",
|
||||||
|
"optimized": {
|
||||||
|
"svelte": {
|
||||||
|
"src": "../../svelte/src/index-client.js",
|
||||||
|
"file": "svelte.js",
|
||||||
|
"fileHash": "a9620f20",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/animate": {
|
||||||
|
"src": "../../svelte/src/animate/index.js",
|
||||||
|
"file": "svelte_animate.js",
|
||||||
|
"fileHash": "4ccba3e2",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/easing": {
|
||||||
|
"src": "../../svelte/src/easing/index.js",
|
||||||
|
"file": "svelte_easing.js",
|
||||||
|
"fileHash": "5dd4ea18",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/internal": {
|
||||||
|
"src": "../../svelte/src/internal/index.js",
|
||||||
|
"file": "svelte_internal.js",
|
||||||
|
"fileHash": "711dfbe0",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"svelte/internal/client": {
|
||||||
|
"src": "../../svelte/src/internal/client/index.js",
|
||||||
|
"file": "svelte_internal_client.js",
|
||||||
|
"fileHash": "798326b7",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/internal/disclose-version": {
|
||||||
|
"src": "../../svelte/src/internal/disclose-version.js",
|
||||||
|
"file": "svelte_internal_disclose-version.js",
|
||||||
|
"fileHash": "c3978ebc",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/internal/flags/legacy": {
|
||||||
|
"src": "../../svelte/src/internal/flags/legacy.js",
|
||||||
|
"file": "svelte_internal_flags_legacy.js",
|
||||||
|
"fileHash": "4987cddc",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/legacy": {
|
||||||
|
"src": "../../svelte/src/legacy/legacy-client.js",
|
||||||
|
"file": "svelte_legacy.js",
|
||||||
|
"fileHash": "5307e4df",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/motion": {
|
||||||
|
"src": "../../svelte/src/motion/index.js",
|
||||||
|
"file": "svelte_motion.js",
|
||||||
|
"fileHash": "d1fa0b2a",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/reactivity": {
|
||||||
|
"src": "../../svelte/src/reactivity/index-client.js",
|
||||||
|
"file": "svelte_reactivity.js",
|
||||||
|
"fileHash": "63dcc5b2",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/store": {
|
||||||
|
"src": "../../svelte/src/store/index-client.js",
|
||||||
|
"file": "svelte_store.js",
|
||||||
|
"fileHash": "02ce6b12",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/transition": {
|
||||||
|
"src": "../../svelte/src/transition/index.js",
|
||||||
|
"file": "svelte_transition.js",
|
||||||
|
"fileHash": "3ae71dac",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"svelte/events": {
|
||||||
|
"src": "../../svelte/src/events/index.js",
|
||||||
|
"file": "svelte_events.js",
|
||||||
|
"fileHash": "0a15059c",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {
|
||||||
|
"chunk-XWMO4EC7": {
|
||||||
|
"file": "chunk-XWMO4EC7.js"
|
||||||
|
},
|
||||||
|
"chunk-6NVL6SYI": {
|
||||||
|
"file": "chunk-6NVL6SYI.js"
|
||||||
|
},
|
||||||
|
"chunk-YERFD2CZ": {
|
||||||
|
"file": "chunk-YERFD2CZ.js"
|
||||||
|
},
|
||||||
|
"chunk-XI64PIGS": {
|
||||||
|
"file": "chunk-XI64PIGS.js"
|
||||||
|
},
|
||||||
|
"chunk-FZEWDNFU": {
|
||||||
|
"file": "chunk-FZEWDNFU.js"
|
||||||
|
},
|
||||||
|
"chunk-OTO7APUV": {
|
||||||
|
"file": "chunk-OTO7APUV.js"
|
||||||
|
},
|
||||||
|
"chunk-EXIRPMAV": {
|
||||||
|
"file": "chunk-EXIRPMAV.js"
|
||||||
|
},
|
||||||
|
"chunk-UGBVNEQM": {
|
||||||
|
"file": "chunk-UGBVNEQM.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
13
web/node_modules/.vite/deps/chunk-6NVL6SYI.js
generated
vendored
Normal file
13
web/node_modules/.vite/deps/chunk-6NVL6SYI.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import {
|
||||||
|
set
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/reactivity/utils.js
|
||||||
|
function increment(source) {
|
||||||
|
set(source, source.v + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
increment
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-6NVL6SYI.js.map
|
7
web/node_modules/.vite/deps/chunk-6NVL6SYI.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-6NVL6SYI.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/reactivity/utils.js"],
|
||||||
|
"sourcesContent": ["/** @import { Source } from '#client' */\nimport { set } from '../internal/client/reactivity/sources.js';\n\n/** @param {Source<number>} source */\nexport function increment(source) {\n\tset(source, source.v + 1);\n}\n"],
|
||||||
|
"mappings": ";;;;;AAIO,SAAS,UAAU,QAAQ;AACjC,MAAI,QAAQ,OAAO,IAAI,CAAC;AACzB;",
|
||||||
|
"names": []
|
||||||
|
}
|
11
web/node_modules/.vite/deps/chunk-EXIRPMAV.js
generated
vendored
Normal file
11
web/node_modules/.vite/deps/chunk-EXIRPMAV.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// node_modules/svelte/src/internal/flags/index.js
|
||||||
|
var legacy_mode_flag = false;
|
||||||
|
function enable_legacy_mode_flag() {
|
||||||
|
legacy_mode_flag = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
legacy_mode_flag,
|
||||||
|
enable_legacy_mode_flag
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-EXIRPMAV.js.map
|
7
web/node_modules/.vite/deps/chunk-EXIRPMAV.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-EXIRPMAV.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/internal/flags/index.js"],
|
||||||
|
"sourcesContent": ["export let legacy_mode_flag = false;\n\nexport function enable_legacy_mode_flag() {\n\tlegacy_mode_flag = true;\n}\n"],
|
||||||
|
"mappings": ";AAAO,IAAI,mBAAmB;AAEvB,SAAS,0BAA0B;AACzC,qBAAmB;AACpB;",
|
||||||
|
"names": []
|
||||||
|
}
|
863
web/node_modules/.vite/deps/chunk-FZEWDNFU.js
generated
vendored
Normal file
863
web/node_modules/.vite/deps/chunk-FZEWDNFU.js
generated
vendored
Normal file
@ -0,0 +1,863 @@
|
|||||||
|
import {
|
||||||
|
DEV,
|
||||||
|
DIRTY,
|
||||||
|
FILENAME,
|
||||||
|
HEAD_EFFECT,
|
||||||
|
HYDRATION_END,
|
||||||
|
HYDRATION_ERROR,
|
||||||
|
HYDRATION_START,
|
||||||
|
LEGACY_PROPS,
|
||||||
|
MAYBE_DIRTY,
|
||||||
|
TEMPLATE_FRAGMENT,
|
||||||
|
TEMPLATE_USE_IMPORT_NODE,
|
||||||
|
active_effect,
|
||||||
|
all_registered_events,
|
||||||
|
array_from,
|
||||||
|
block,
|
||||||
|
branch,
|
||||||
|
clear_text_content,
|
||||||
|
component_context,
|
||||||
|
create_text,
|
||||||
|
define_property,
|
||||||
|
dev_current_component_function,
|
||||||
|
effect_root,
|
||||||
|
flush_sync,
|
||||||
|
get,
|
||||||
|
get_first_child,
|
||||||
|
get_next_sibling,
|
||||||
|
handle_event_propagation,
|
||||||
|
hydrate_next,
|
||||||
|
hydrate_node,
|
||||||
|
hydrating,
|
||||||
|
hydration_failed,
|
||||||
|
hydration_mismatch,
|
||||||
|
init_operations,
|
||||||
|
is_array,
|
||||||
|
legacy_recursive_reactive_block,
|
||||||
|
lifecycle_double_unmount,
|
||||||
|
lifecycle_outside_component,
|
||||||
|
mutable_source,
|
||||||
|
noop,
|
||||||
|
on,
|
||||||
|
pop,
|
||||||
|
push,
|
||||||
|
root_event_handles,
|
||||||
|
set,
|
||||||
|
set_hydrate_node,
|
||||||
|
set_hydrating,
|
||||||
|
set_signal_status,
|
||||||
|
user_pre_effect
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
import {
|
||||||
|
__privateAdd,
|
||||||
|
__privateGet,
|
||||||
|
__privateSet
|
||||||
|
} from "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js
|
||||||
|
var head_anchor;
|
||||||
|
function reset_head_anchor() {
|
||||||
|
head_anchor = void 0;
|
||||||
|
}
|
||||||
|
function head(render_fn) {
|
||||||
|
let previous_hydrate_node = null;
|
||||||
|
let was_hydrating = hydrating;
|
||||||
|
var anchor;
|
||||||
|
if (hydrating) {
|
||||||
|
previous_hydrate_node = hydrate_node;
|
||||||
|
if (head_anchor === void 0) {
|
||||||
|
head_anchor = /** @type {TemplateNode} */
|
||||||
|
get_first_child(document.head);
|
||||||
|
}
|
||||||
|
while (head_anchor !== null && (head_anchor.nodeType !== 8 || /** @type {Comment} */
|
||||||
|
head_anchor.data !== HYDRATION_START)) {
|
||||||
|
head_anchor = /** @type {TemplateNode} */
|
||||||
|
get_next_sibling(head_anchor);
|
||||||
|
}
|
||||||
|
if (head_anchor === null) {
|
||||||
|
set_hydrating(false);
|
||||||
|
} else {
|
||||||
|
head_anchor = set_hydrate_node(
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
get_next_sibling(head_anchor)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!hydrating) {
|
||||||
|
anchor = document.head.appendChild(create_text());
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
block(() => render_fn(anchor), HEAD_EFFECT);
|
||||||
|
} finally {
|
||||||
|
if (was_hydrating) {
|
||||||
|
set_hydrating(true);
|
||||||
|
head_anchor = hydrate_node;
|
||||||
|
set_hydrate_node(
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
previous_hydrate_node
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/client/dom/reconciler.js
|
||||||
|
function create_fragment_from_html(html) {
|
||||||
|
var elem = document.createElement("template");
|
||||||
|
elem.innerHTML = html;
|
||||||
|
return elem.content;
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/client/dom/template.js
|
||||||
|
function assign_nodes(start, end) {
|
||||||
|
var effect = (
|
||||||
|
/** @type {Effect} */
|
||||||
|
active_effect
|
||||||
|
);
|
||||||
|
if (effect.nodes_start === null) {
|
||||||
|
effect.nodes_start = start;
|
||||||
|
effect.nodes_end = end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function template(content, flags) {
|
||||||
|
var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
|
||||||
|
var use_import_node = (flags & TEMPLATE_USE_IMPORT_NODE) !== 0;
|
||||||
|
var node;
|
||||||
|
var has_start = !content.startsWith("<!>");
|
||||||
|
return () => {
|
||||||
|
if (hydrating) {
|
||||||
|
assign_nodes(hydrate_node, null);
|
||||||
|
return hydrate_node;
|
||||||
|
}
|
||||||
|
if (node === void 0) {
|
||||||
|
node = create_fragment_from_html(has_start ? content : "<!>" + content);
|
||||||
|
if (!is_fragment) node = /** @type {Node} */
|
||||||
|
get_first_child(node);
|
||||||
|
}
|
||||||
|
var clone = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
use_import_node ? document.importNode(node, true) : node.cloneNode(true)
|
||||||
|
);
|
||||||
|
if (is_fragment) {
|
||||||
|
var start = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
get_first_child(clone)
|
||||||
|
);
|
||||||
|
var end = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
clone.lastChild
|
||||||
|
);
|
||||||
|
assign_nodes(start, end);
|
||||||
|
} else {
|
||||||
|
assign_nodes(clone, clone);
|
||||||
|
}
|
||||||
|
return clone;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function template_with_script(content, flags) {
|
||||||
|
var fn = template(content, flags);
|
||||||
|
return () => run_scripts(
|
||||||
|
/** @type {Element | DocumentFragment} */
|
||||||
|
fn()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function ns_template(content, flags, ns = "svg") {
|
||||||
|
var has_start = !content.startsWith("<!>");
|
||||||
|
var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
|
||||||
|
var wrapped = `<${ns}>${has_start ? content : "<!>" + content}</${ns}>`;
|
||||||
|
var node;
|
||||||
|
return () => {
|
||||||
|
if (hydrating) {
|
||||||
|
assign_nodes(hydrate_node, null);
|
||||||
|
return hydrate_node;
|
||||||
|
}
|
||||||
|
if (!node) {
|
||||||
|
var fragment = (
|
||||||
|
/** @type {DocumentFragment} */
|
||||||
|
create_fragment_from_html(wrapped)
|
||||||
|
);
|
||||||
|
var root = (
|
||||||
|
/** @type {Element} */
|
||||||
|
get_first_child(fragment)
|
||||||
|
);
|
||||||
|
if (is_fragment) {
|
||||||
|
node = document.createDocumentFragment();
|
||||||
|
while (get_first_child(root)) {
|
||||||
|
node.appendChild(
|
||||||
|
/** @type {Node} */
|
||||||
|
get_first_child(root)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
node = /** @type {Element} */
|
||||||
|
get_first_child(root);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var clone = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
node.cloneNode(true)
|
||||||
|
);
|
||||||
|
if (is_fragment) {
|
||||||
|
var start = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
get_first_child(clone)
|
||||||
|
);
|
||||||
|
var end = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
clone.lastChild
|
||||||
|
);
|
||||||
|
assign_nodes(start, end);
|
||||||
|
} else {
|
||||||
|
assign_nodes(clone, clone);
|
||||||
|
}
|
||||||
|
return clone;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function svg_template_with_script(content, flags) {
|
||||||
|
var fn = ns_template(content, flags);
|
||||||
|
return () => run_scripts(
|
||||||
|
/** @type {Element | DocumentFragment} */
|
||||||
|
fn()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function mathml_template(content, flags) {
|
||||||
|
return ns_template(content, flags, "math");
|
||||||
|
}
|
||||||
|
function run_scripts(node) {
|
||||||
|
if (hydrating) return node;
|
||||||
|
const is_fragment = node.nodeType === 11;
|
||||||
|
const scripts = (
|
||||||
|
/** @type {HTMLElement} */
|
||||||
|
node.tagName === "SCRIPT" ? [
|
||||||
|
/** @type {HTMLScriptElement} */
|
||||||
|
node
|
||||||
|
] : node.querySelectorAll("script")
|
||||||
|
);
|
||||||
|
const effect = (
|
||||||
|
/** @type {Effect} */
|
||||||
|
active_effect
|
||||||
|
);
|
||||||
|
for (const script of scripts) {
|
||||||
|
const clone = document.createElement("script");
|
||||||
|
for (var attribute of script.attributes) {
|
||||||
|
clone.setAttribute(attribute.name, attribute.value);
|
||||||
|
}
|
||||||
|
clone.textContent = script.textContent;
|
||||||
|
if (is_fragment ? node.firstChild === script : node === script) {
|
||||||
|
effect.nodes_start = clone;
|
||||||
|
}
|
||||||
|
if (is_fragment ? node.lastChild === script : node === script) {
|
||||||
|
effect.nodes_end = clone;
|
||||||
|
}
|
||||||
|
script.replaceWith(clone);
|
||||||
|
}
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
function text(value = "") {
|
||||||
|
if (!hydrating) {
|
||||||
|
var t = create_text(value + "");
|
||||||
|
assign_nodes(t, t);
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
var node = hydrate_node;
|
||||||
|
if (node.nodeType !== 3) {
|
||||||
|
node.before(node = create_text());
|
||||||
|
set_hydrate_node(node);
|
||||||
|
}
|
||||||
|
assign_nodes(node, node);
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
function comment() {
|
||||||
|
if (hydrating) {
|
||||||
|
assign_nodes(hydrate_node, null);
|
||||||
|
return hydrate_node;
|
||||||
|
}
|
||||||
|
var frag = document.createDocumentFragment();
|
||||||
|
var start = document.createComment("");
|
||||||
|
var anchor = create_text();
|
||||||
|
frag.append(start, anchor);
|
||||||
|
assign_nodes(start, anchor);
|
||||||
|
return frag;
|
||||||
|
}
|
||||||
|
function append(anchor, dom) {
|
||||||
|
if (hydrating) {
|
||||||
|
active_effect.nodes_end = hydrate_node;
|
||||||
|
hydrate_next();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (anchor === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
anchor.before(
|
||||||
|
/** @type {Node} */
|
||||||
|
dom
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/utils.js
|
||||||
|
var regex_return_characters = /\r/g;
|
||||||
|
function hash(str) {
|
||||||
|
str = str.replace(regex_return_characters, "");
|
||||||
|
let hash2 = 5381;
|
||||||
|
let i = str.length;
|
||||||
|
while (i--) hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i);
|
||||||
|
return (hash2 >>> 0).toString(36);
|
||||||
|
}
|
||||||
|
var VOID_ELEMENT_NAMES = [
|
||||||
|
"area",
|
||||||
|
"base",
|
||||||
|
"br",
|
||||||
|
"col",
|
||||||
|
"command",
|
||||||
|
"embed",
|
||||||
|
"hr",
|
||||||
|
"img",
|
||||||
|
"input",
|
||||||
|
"keygen",
|
||||||
|
"link",
|
||||||
|
"meta",
|
||||||
|
"param",
|
||||||
|
"source",
|
||||||
|
"track",
|
||||||
|
"wbr"
|
||||||
|
];
|
||||||
|
function is_void(name) {
|
||||||
|
return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === "!doctype";
|
||||||
|
}
|
||||||
|
function is_capture_event(name) {
|
||||||
|
return name.endsWith("capture") && name !== "gotpointercapture" && name !== "lostpointercapture";
|
||||||
|
}
|
||||||
|
var DELEGATED_EVENTS = [
|
||||||
|
"beforeinput",
|
||||||
|
"click",
|
||||||
|
"change",
|
||||||
|
"dblclick",
|
||||||
|
"contextmenu",
|
||||||
|
"focusin",
|
||||||
|
"focusout",
|
||||||
|
"input",
|
||||||
|
"keydown",
|
||||||
|
"keyup",
|
||||||
|
"mousedown",
|
||||||
|
"mousemove",
|
||||||
|
"mouseout",
|
||||||
|
"mouseover",
|
||||||
|
"mouseup",
|
||||||
|
"pointerdown",
|
||||||
|
"pointermove",
|
||||||
|
"pointerout",
|
||||||
|
"pointerover",
|
||||||
|
"pointerup",
|
||||||
|
"touchend",
|
||||||
|
"touchmove",
|
||||||
|
"touchstart"
|
||||||
|
];
|
||||||
|
function is_delegated(event_name) {
|
||||||
|
return DELEGATED_EVENTS.includes(event_name);
|
||||||
|
}
|
||||||
|
var DOM_BOOLEAN_ATTRIBUTES = [
|
||||||
|
"allowfullscreen",
|
||||||
|
"async",
|
||||||
|
"autofocus",
|
||||||
|
"autoplay",
|
||||||
|
"checked",
|
||||||
|
"controls",
|
||||||
|
"default",
|
||||||
|
"disabled",
|
||||||
|
"formnovalidate",
|
||||||
|
"hidden",
|
||||||
|
"indeterminate",
|
||||||
|
"ismap",
|
||||||
|
"loop",
|
||||||
|
"multiple",
|
||||||
|
"muted",
|
||||||
|
"nomodule",
|
||||||
|
"novalidate",
|
||||||
|
"open",
|
||||||
|
"playsinline",
|
||||||
|
"readonly",
|
||||||
|
"required",
|
||||||
|
"reversed",
|
||||||
|
"seamless",
|
||||||
|
"selected",
|
||||||
|
"webkitdirectory"
|
||||||
|
];
|
||||||
|
var ATTRIBUTE_ALIASES = {
|
||||||
|
// no `class: 'className'` because we handle that separately
|
||||||
|
formnovalidate: "formNoValidate",
|
||||||
|
ismap: "isMap",
|
||||||
|
nomodule: "noModule",
|
||||||
|
playsinline: "playsInline",
|
||||||
|
readonly: "readOnly",
|
||||||
|
srcobject: "srcObject"
|
||||||
|
};
|
||||||
|
function normalize_attribute(name) {
|
||||||
|
name = name.toLowerCase();
|
||||||
|
return ATTRIBUTE_ALIASES[name] ?? name;
|
||||||
|
}
|
||||||
|
var DOM_PROPERTIES = [
|
||||||
|
...DOM_BOOLEAN_ATTRIBUTES,
|
||||||
|
"formNoValidate",
|
||||||
|
"isMap",
|
||||||
|
"noModule",
|
||||||
|
"playsInline",
|
||||||
|
"readOnly",
|
||||||
|
"value",
|
||||||
|
"inert",
|
||||||
|
"volume",
|
||||||
|
"srcObject"
|
||||||
|
];
|
||||||
|
var PASSIVE_EVENTS = ["touchstart", "touchmove"];
|
||||||
|
function is_passive_event(name) {
|
||||||
|
return PASSIVE_EVENTS.includes(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/client/render.js
|
||||||
|
var should_intro = true;
|
||||||
|
function set_should_intro(value) {
|
||||||
|
should_intro = value;
|
||||||
|
}
|
||||||
|
function set_text(text2, value) {
|
||||||
|
var str = value == null ? "" : typeof value === "object" ? value + "" : value;
|
||||||
|
if (str !== (text2.__t ?? (text2.__t = text2.nodeValue))) {
|
||||||
|
text2.__t = str;
|
||||||
|
text2.nodeValue = str == null ? "" : str + "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function mount(component, options) {
|
||||||
|
return _mount(component, options);
|
||||||
|
}
|
||||||
|
function hydrate(component, options) {
|
||||||
|
init_operations();
|
||||||
|
options.intro = options.intro ?? false;
|
||||||
|
const target = options.target;
|
||||||
|
const was_hydrating = hydrating;
|
||||||
|
const previous_hydrate_node = hydrate_node;
|
||||||
|
try {
|
||||||
|
var anchor = (
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
get_first_child(target)
|
||||||
|
);
|
||||||
|
while (anchor && (anchor.nodeType !== 8 || /** @type {Comment} */
|
||||||
|
anchor.data !== HYDRATION_START)) {
|
||||||
|
anchor = /** @type {TemplateNode} */
|
||||||
|
get_next_sibling(anchor);
|
||||||
|
}
|
||||||
|
if (!anchor) {
|
||||||
|
throw HYDRATION_ERROR;
|
||||||
|
}
|
||||||
|
set_hydrating(true);
|
||||||
|
set_hydrate_node(
|
||||||
|
/** @type {Comment} */
|
||||||
|
anchor
|
||||||
|
);
|
||||||
|
hydrate_next();
|
||||||
|
const instance = _mount(component, { ...options, anchor });
|
||||||
|
if (hydrate_node === null || hydrate_node.nodeType !== 8 || /** @type {Comment} */
|
||||||
|
hydrate_node.data !== HYDRATION_END) {
|
||||||
|
hydration_mismatch();
|
||||||
|
throw HYDRATION_ERROR;
|
||||||
|
}
|
||||||
|
set_hydrating(false);
|
||||||
|
return (
|
||||||
|
/** @type {Exports} */
|
||||||
|
instance
|
||||||
|
);
|
||||||
|
} catch (error) {
|
||||||
|
if (error === HYDRATION_ERROR) {
|
||||||
|
if (options.recover === false) {
|
||||||
|
hydration_failed();
|
||||||
|
}
|
||||||
|
init_operations();
|
||||||
|
clear_text_content(target);
|
||||||
|
set_hydrating(false);
|
||||||
|
return mount(component, options);
|
||||||
|
}
|
||||||
|
throw error;
|
||||||
|
} finally {
|
||||||
|
set_hydrating(was_hydrating);
|
||||||
|
set_hydrate_node(previous_hydrate_node);
|
||||||
|
reset_head_anchor();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var document_listeners = /* @__PURE__ */ new Map();
|
||||||
|
function _mount(Component, { target, anchor, props = {}, events, context, intro = true }) {
|
||||||
|
init_operations();
|
||||||
|
var registered_events = /* @__PURE__ */ new Set();
|
||||||
|
var event_handle = (events2) => {
|
||||||
|
for (var i = 0; i < events2.length; i++) {
|
||||||
|
var event_name = events2[i];
|
||||||
|
if (registered_events.has(event_name)) continue;
|
||||||
|
registered_events.add(event_name);
|
||||||
|
var passive2 = is_passive_event(event_name);
|
||||||
|
target.addEventListener(event_name, handle_event_propagation, { passive: passive2 });
|
||||||
|
var n = document_listeners.get(event_name);
|
||||||
|
if (n === void 0) {
|
||||||
|
document.addEventListener(event_name, handle_event_propagation, { passive: passive2 });
|
||||||
|
document_listeners.set(event_name, 1);
|
||||||
|
} else {
|
||||||
|
document_listeners.set(event_name, n + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
event_handle(array_from(all_registered_events));
|
||||||
|
root_event_handles.add(event_handle);
|
||||||
|
var component = void 0;
|
||||||
|
var unmount2 = effect_root(() => {
|
||||||
|
var anchor_node = anchor ?? target.appendChild(create_text());
|
||||||
|
branch(() => {
|
||||||
|
if (context) {
|
||||||
|
push({});
|
||||||
|
var ctx = (
|
||||||
|
/** @type {ComponentContext} */
|
||||||
|
component_context
|
||||||
|
);
|
||||||
|
ctx.c = context;
|
||||||
|
}
|
||||||
|
if (events) {
|
||||||
|
props.$$events = events;
|
||||||
|
}
|
||||||
|
if (hydrating) {
|
||||||
|
assign_nodes(
|
||||||
|
/** @type {TemplateNode} */
|
||||||
|
anchor_node,
|
||||||
|
null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
should_intro = intro;
|
||||||
|
component = Component(anchor_node, props) || {};
|
||||||
|
should_intro = true;
|
||||||
|
if (hydrating) {
|
||||||
|
active_effect.nodes_end = hydrate_node;
|
||||||
|
}
|
||||||
|
if (context) {
|
||||||
|
pop();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return () => {
|
||||||
|
var _a;
|
||||||
|
for (var event_name of registered_events) {
|
||||||
|
target.removeEventListener(event_name, handle_event_propagation);
|
||||||
|
var n = (
|
||||||
|
/** @type {number} */
|
||||||
|
document_listeners.get(event_name)
|
||||||
|
);
|
||||||
|
if (--n === 0) {
|
||||||
|
document.removeEventListener(event_name, handle_event_propagation);
|
||||||
|
document_listeners.delete(event_name);
|
||||||
|
} else {
|
||||||
|
document_listeners.set(event_name, n);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root_event_handles.delete(event_handle);
|
||||||
|
mounted_components.delete(component);
|
||||||
|
if (anchor_node !== anchor) {
|
||||||
|
(_a = anchor_node.parentNode) == null ? void 0 : _a.removeChild(anchor_node);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
mounted_components.set(component, unmount2);
|
||||||
|
return component;
|
||||||
|
}
|
||||||
|
var mounted_components = /* @__PURE__ */ new WeakMap();
|
||||||
|
function unmount(component) {
|
||||||
|
const fn = mounted_components.get(component);
|
||||||
|
if (fn) {
|
||||||
|
fn();
|
||||||
|
} else if (DEV) {
|
||||||
|
lifecycle_double_unmount();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js
|
||||||
|
function trusted(fn) {
|
||||||
|
return function(...args) {
|
||||||
|
var event = (
|
||||||
|
/** @type {Event} */
|
||||||
|
args[0]
|
||||||
|
);
|
||||||
|
if (event.isTrusted) {
|
||||||
|
fn == null ? void 0 : fn.apply(this, args);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function self(fn) {
|
||||||
|
return function(...args) {
|
||||||
|
var event = (
|
||||||
|
/** @type {Event} */
|
||||||
|
args[0]
|
||||||
|
);
|
||||||
|
if (event.target === this) {
|
||||||
|
fn == null ? void 0 : fn.apply(this, args);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function stopPropagation(fn) {
|
||||||
|
return function(...args) {
|
||||||
|
var event = (
|
||||||
|
/** @type {Event} */
|
||||||
|
args[0]
|
||||||
|
);
|
||||||
|
event.stopPropagation();
|
||||||
|
return fn == null ? void 0 : fn.apply(this, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function once(fn) {
|
||||||
|
var ran = false;
|
||||||
|
return function(...args) {
|
||||||
|
if (ran) return;
|
||||||
|
ran = true;
|
||||||
|
return fn == null ? void 0 : fn.apply(this, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function stopImmediatePropagation(fn) {
|
||||||
|
return function(...args) {
|
||||||
|
var event = (
|
||||||
|
/** @type {Event} */
|
||||||
|
args[0]
|
||||||
|
);
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
return fn == null ? void 0 : fn.apply(this, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function preventDefault(fn) {
|
||||||
|
return function(...args) {
|
||||||
|
var event = (
|
||||||
|
/** @type {Event} */
|
||||||
|
args[0]
|
||||||
|
);
|
||||||
|
event.preventDefault();
|
||||||
|
return fn == null ? void 0 : fn.apply(this, args);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function passive(node, [event, handler]) {
|
||||||
|
user_pre_effect(() => {
|
||||||
|
return on(node, event, handler() ?? noop, {
|
||||||
|
passive: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function nonpassive(node, [event, handler]) {
|
||||||
|
user_pre_effect(() => {
|
||||||
|
return on(node, event, handler() ?? noop, {
|
||||||
|
passive: false
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/legacy/legacy-client.js
|
||||||
|
function createClassComponent(options) {
|
||||||
|
return new Svelte4Component(options);
|
||||||
|
}
|
||||||
|
function asClassComponent(component) {
|
||||||
|
return class extends Svelte4Component {
|
||||||
|
/** @param {any} options */
|
||||||
|
constructor(options) {
|
||||||
|
super({
|
||||||
|
component,
|
||||||
|
...options
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var _events, _instance;
|
||||||
|
var Svelte4Component = class {
|
||||||
|
/**
|
||||||
|
* @param {ComponentConstructorOptions & {
|
||||||
|
* component: any;
|
||||||
|
* }} options
|
||||||
|
*/
|
||||||
|
constructor(options) {
|
||||||
|
/** @type {any} */
|
||||||
|
__privateAdd(this, _events);
|
||||||
|
/** @type {Record<string, any>} */
|
||||||
|
__privateAdd(this, _instance);
|
||||||
|
var _a;
|
||||||
|
var sources = /* @__PURE__ */ new Map();
|
||||||
|
var add_source = (key, value) => {
|
||||||
|
var s = mutable_source(value);
|
||||||
|
sources.set(key, s);
|
||||||
|
return s;
|
||||||
|
};
|
||||||
|
const props = new Proxy(
|
||||||
|
{ ...options.props || {}, $$events: {} },
|
||||||
|
{
|
||||||
|
get(target, prop) {
|
||||||
|
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
||||||
|
},
|
||||||
|
has(target, prop) {
|
||||||
|
if (prop === LEGACY_PROPS) return true;
|
||||||
|
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
||||||
|
return Reflect.has(target, prop);
|
||||||
|
},
|
||||||
|
set(target, prop, value) {
|
||||||
|
set(sources.get(prop) ?? add_source(prop, value), value);
|
||||||
|
return Reflect.set(target, prop, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
__privateSet(this, _instance, (options.hydrate ? hydrate : mount)(options.component, {
|
||||||
|
target: options.target,
|
||||||
|
anchor: options.anchor,
|
||||||
|
props,
|
||||||
|
context: options.context,
|
||||||
|
intro: options.intro ?? false,
|
||||||
|
recover: options.recover
|
||||||
|
}));
|
||||||
|
if (!((_a = options == null ? void 0 : options.props) == null ? void 0 : _a.$$host) || options.sync === false) {
|
||||||
|
flush_sync();
|
||||||
|
}
|
||||||
|
__privateSet(this, _events, props.$$events);
|
||||||
|
for (const key of Object.keys(__privateGet(this, _instance))) {
|
||||||
|
if (key === "$set" || key === "$destroy" || key === "$on") continue;
|
||||||
|
define_property(this, key, {
|
||||||
|
get() {
|
||||||
|
return __privateGet(this, _instance)[key];
|
||||||
|
},
|
||||||
|
/** @param {any} value */
|
||||||
|
set(value) {
|
||||||
|
__privateGet(this, _instance)[key] = value;
|
||||||
|
},
|
||||||
|
enumerable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
__privateGet(this, _instance).$set = /** @param {Record<string, any>} next */
|
||||||
|
(next) => {
|
||||||
|
Object.assign(props, next);
|
||||||
|
};
|
||||||
|
__privateGet(this, _instance).$destroy = () => {
|
||||||
|
unmount(__privateGet(this, _instance));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/** @param {Record<string, any>} props */
|
||||||
|
$set(props) {
|
||||||
|
__privateGet(this, _instance).$set(props);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} event
|
||||||
|
* @param {(...args: any[]) => any} callback
|
||||||
|
* @returns {any}
|
||||||
|
*/
|
||||||
|
$on(event, callback) {
|
||||||
|
__privateGet(this, _events)[event] = __privateGet(this, _events)[event] || [];
|
||||||
|
const cb = (...args) => callback.call(this, ...args);
|
||||||
|
__privateGet(this, _events)[event].push(cb);
|
||||||
|
return () => {
|
||||||
|
__privateGet(this, _events)[event] = __privateGet(this, _events)[event].filter(
|
||||||
|
/** @param {any} fn */
|
||||||
|
(fn) => fn !== cb
|
||||||
|
);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$destroy() {
|
||||||
|
__privateGet(this, _instance).$destroy();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_events = new WeakMap();
|
||||||
|
_instance = new WeakMap();
|
||||||
|
function run(fn) {
|
||||||
|
user_pre_effect(() => {
|
||||||
|
var _a;
|
||||||
|
fn();
|
||||||
|
var effect = (
|
||||||
|
/** @type {import('#client').Effect} */
|
||||||
|
active_effect
|
||||||
|
);
|
||||||
|
if ((effect.f & DIRTY) !== 0) {
|
||||||
|
let filename = "a file (we can't know which one)";
|
||||||
|
if (DEV) {
|
||||||
|
filename = ((_a = dev_current_component_function) == null ? void 0 : _a[FILENAME]) ?? filename;
|
||||||
|
}
|
||||||
|
legacy_recursive_reactive_block(filename);
|
||||||
|
set_signal_status(effect, MAYBE_DIRTY);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function handlers(...handlers2) {
|
||||||
|
return function(event) {
|
||||||
|
const { stopImmediatePropagation: stopImmediatePropagation2 } = event;
|
||||||
|
let stopped = false;
|
||||||
|
event.stopImmediatePropagation = () => {
|
||||||
|
stopped = true;
|
||||||
|
stopImmediatePropagation2.call(event);
|
||||||
|
};
|
||||||
|
const errors = [];
|
||||||
|
for (const handler of handlers2) {
|
||||||
|
try {
|
||||||
|
handler == null ? void 0 : handler.call(this, event);
|
||||||
|
} catch (e) {
|
||||||
|
errors.push(e);
|
||||||
|
}
|
||||||
|
if (stopped) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (let error of errors) {
|
||||||
|
queueMicrotask(() => {
|
||||||
|
throw error;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function createBubbler() {
|
||||||
|
const active_component_context = component_context;
|
||||||
|
if (active_component_context === null) {
|
||||||
|
lifecycle_outside_component("createBubbler");
|
||||||
|
}
|
||||||
|
return (type) => (event) => {
|
||||||
|
var _a;
|
||||||
|
const events = (
|
||||||
|
/** @type {Record<string, Function | Function[]>} */
|
||||||
|
(_a = active_component_context.s.$$events) == null ? void 0 : _a[
|
||||||
|
/** @type {any} */
|
||||||
|
type
|
||||||
|
]
|
||||||
|
);
|
||||||
|
if (events) {
|
||||||
|
const callbacks = is_array(events) ? events.slice() : [events];
|
||||||
|
for (const fn of callbacks) {
|
||||||
|
fn.call(active_component_context.x, event);
|
||||||
|
}
|
||||||
|
return !event.defaultPrevented;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
head,
|
||||||
|
create_fragment_from_html,
|
||||||
|
assign_nodes,
|
||||||
|
template,
|
||||||
|
template_with_script,
|
||||||
|
ns_template,
|
||||||
|
svg_template_with_script,
|
||||||
|
mathml_template,
|
||||||
|
text,
|
||||||
|
comment,
|
||||||
|
append,
|
||||||
|
hash,
|
||||||
|
is_void,
|
||||||
|
is_capture_event,
|
||||||
|
is_delegated,
|
||||||
|
normalize_attribute,
|
||||||
|
should_intro,
|
||||||
|
set_should_intro,
|
||||||
|
set_text,
|
||||||
|
mount,
|
||||||
|
hydrate,
|
||||||
|
unmount,
|
||||||
|
trusted,
|
||||||
|
self,
|
||||||
|
stopPropagation,
|
||||||
|
once,
|
||||||
|
stopImmediatePropagation,
|
||||||
|
preventDefault,
|
||||||
|
passive,
|
||||||
|
nonpassive,
|
||||||
|
createClassComponent,
|
||||||
|
asClassComponent,
|
||||||
|
run,
|
||||||
|
handlers,
|
||||||
|
createBubbler
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-FZEWDNFU.js.map
|
7
web/node_modules/.vite/deps/chunk-FZEWDNFU.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-FZEWDNFU.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2919
web/node_modules/.vite/deps/chunk-OTO7APUV.js
generated
vendored
Normal file
2919
web/node_modules/.vite/deps/chunk-OTO7APUV.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
web/node_modules/.vite/deps/chunk-OTO7APUV.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-OTO7APUV.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
23
web/node_modules/.vite/deps/chunk-UGBVNEQM.js
generated
vendored
Normal file
23
web/node_modules/.vite/deps/chunk-UGBVNEQM.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __reflectGet = Reflect.get;
|
||||||
|
var __typeError = (msg) => {
|
||||||
|
throw TypeError(msg);
|
||||||
|
};
|
||||||
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
||||||
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
||||||
|
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
||||||
|
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
||||||
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
||||||
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
||||||
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
||||||
|
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
||||||
|
|
||||||
|
export {
|
||||||
|
__publicField,
|
||||||
|
__privateGet,
|
||||||
|
__privateAdd,
|
||||||
|
__privateSet,
|
||||||
|
__privateMethod,
|
||||||
|
__superGet
|
||||||
|
};
|
7
web/node_modules/.vite/deps/chunk-UGBVNEQM.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-UGBVNEQM.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
3605
web/node_modules/.vite/deps/chunk-XI64PIGS.js
generated
vendored
Normal file
3605
web/node_modules/.vite/deps/chunk-XI64PIGS.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
web/node_modules/.vite/deps/chunk-XI64PIGS.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-XI64PIGS.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
131
web/node_modules/.vite/deps/chunk-XWMO4EC7.js
generated
vendored
Normal file
131
web/node_modules/.vite/deps/chunk-XWMO4EC7.js
generated
vendored
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
import {
|
||||||
|
subscribe_to_store
|
||||||
|
} from "./chunk-XI64PIGS.js";
|
||||||
|
import {
|
||||||
|
noop,
|
||||||
|
run_all,
|
||||||
|
safe_not_equal
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/store/shared/index.js
|
||||||
|
var subscriber_queue = [];
|
||||||
|
function readable(value, start) {
|
||||||
|
return {
|
||||||
|
subscribe: writable(value, start).subscribe
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function writable(value, start = noop) {
|
||||||
|
let stop = null;
|
||||||
|
const subscribers = /* @__PURE__ */ new Set();
|
||||||
|
function set(new_value) {
|
||||||
|
if (safe_not_equal(value, new_value)) {
|
||||||
|
value = new_value;
|
||||||
|
if (stop) {
|
||||||
|
const run_queue = !subscriber_queue.length;
|
||||||
|
for (const subscriber of subscribers) {
|
||||||
|
subscriber[1]();
|
||||||
|
subscriber_queue.push(subscriber, value);
|
||||||
|
}
|
||||||
|
if (run_queue) {
|
||||||
|
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
||||||
|
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
||||||
|
}
|
||||||
|
subscriber_queue.length = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function update(fn) {
|
||||||
|
set(fn(
|
||||||
|
/** @type {T} */
|
||||||
|
value
|
||||||
|
));
|
||||||
|
}
|
||||||
|
function subscribe(run, invalidate = noop) {
|
||||||
|
const subscriber = [run, invalidate];
|
||||||
|
subscribers.add(subscriber);
|
||||||
|
if (subscribers.size === 1) {
|
||||||
|
stop = start(set, update) || noop;
|
||||||
|
}
|
||||||
|
run(
|
||||||
|
/** @type {T} */
|
||||||
|
value
|
||||||
|
);
|
||||||
|
return () => {
|
||||||
|
subscribers.delete(subscriber);
|
||||||
|
if (subscribers.size === 0 && stop) {
|
||||||
|
stop();
|
||||||
|
stop = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { set, update, subscribe };
|
||||||
|
}
|
||||||
|
function derived(stores, fn, initial_value) {
|
||||||
|
const single = !Array.isArray(stores);
|
||||||
|
const stores_array = single ? [stores] : stores;
|
||||||
|
if (!stores_array.every(Boolean)) {
|
||||||
|
throw new Error("derived() expects stores as input, got a falsy value");
|
||||||
|
}
|
||||||
|
const auto = fn.length < 2;
|
||||||
|
return readable(initial_value, (set, update) => {
|
||||||
|
let started = false;
|
||||||
|
const values = [];
|
||||||
|
let pending = 0;
|
||||||
|
let cleanup = noop;
|
||||||
|
const sync = () => {
|
||||||
|
if (pending) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
cleanup();
|
||||||
|
const result = fn(single ? values[0] : values, set, update);
|
||||||
|
if (auto) {
|
||||||
|
set(result);
|
||||||
|
} else {
|
||||||
|
cleanup = typeof result === "function" ? result : noop;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const unsubscribers = stores_array.map(
|
||||||
|
(store, i) => subscribe_to_store(
|
||||||
|
store,
|
||||||
|
(value) => {
|
||||||
|
values[i] = value;
|
||||||
|
pending &= ~(1 << i);
|
||||||
|
if (started) {
|
||||||
|
sync();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
pending |= 1 << i;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
started = true;
|
||||||
|
sync();
|
||||||
|
return function stop() {
|
||||||
|
run_all(unsubscribers);
|
||||||
|
cleanup();
|
||||||
|
started = false;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function readonly(store) {
|
||||||
|
return {
|
||||||
|
// @ts-expect-error TODO i suspect the bind is unnecessary
|
||||||
|
subscribe: store.subscribe.bind(store)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function get(store) {
|
||||||
|
let value;
|
||||||
|
subscribe_to_store(store, (_) => value = _)();
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
readable,
|
||||||
|
writable,
|
||||||
|
derived,
|
||||||
|
readonly,
|
||||||
|
get
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-XWMO4EC7.js.map
|
7
web/node_modules/.vite/deps/chunk-XWMO4EC7.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-XWMO4EC7.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
148
web/node_modules/.vite/deps/chunk-YERFD2CZ.js
generated
vendored
Normal file
148
web/node_modules/.vite/deps/chunk-YERFD2CZ.js
generated
vendored
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
// node_modules/svelte/src/easing/index.js
|
||||||
|
function linear(t) {
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
function backInOut(t) {
|
||||||
|
const s = 1.70158 * 1.525;
|
||||||
|
if ((t *= 2) < 1) return 0.5 * (t * t * ((s + 1) * t - s));
|
||||||
|
return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);
|
||||||
|
}
|
||||||
|
function backIn(t) {
|
||||||
|
const s = 1.70158;
|
||||||
|
return t * t * ((s + 1) * t - s);
|
||||||
|
}
|
||||||
|
function backOut(t) {
|
||||||
|
const s = 1.70158;
|
||||||
|
return --t * t * ((s + 1) * t + s) + 1;
|
||||||
|
}
|
||||||
|
function bounceOut(t) {
|
||||||
|
const a = 4 / 11;
|
||||||
|
const b = 8 / 11;
|
||||||
|
const c = 9 / 10;
|
||||||
|
const ca = 4356 / 361;
|
||||||
|
const cb = 35442 / 1805;
|
||||||
|
const cc = 16061 / 1805;
|
||||||
|
const t2 = t * t;
|
||||||
|
return t < a ? 7.5625 * t2 : t < b ? 9.075 * t2 - 9.9 * t + 3.4 : t < c ? ca * t2 - cb * t + cc : 10.8 * t * t - 20.52 * t + 10.72;
|
||||||
|
}
|
||||||
|
function bounceInOut(t) {
|
||||||
|
return t < 0.5 ? 0.5 * (1 - bounceOut(1 - t * 2)) : 0.5 * bounceOut(t * 2 - 1) + 0.5;
|
||||||
|
}
|
||||||
|
function bounceIn(t) {
|
||||||
|
return 1 - bounceOut(1 - t);
|
||||||
|
}
|
||||||
|
function circInOut(t) {
|
||||||
|
if ((t *= 2) < 1) return -0.5 * (Math.sqrt(1 - t * t) - 1);
|
||||||
|
return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
||||||
|
}
|
||||||
|
function circIn(t) {
|
||||||
|
return 1 - Math.sqrt(1 - t * t);
|
||||||
|
}
|
||||||
|
function circOut(t) {
|
||||||
|
return Math.sqrt(1 - --t * t);
|
||||||
|
}
|
||||||
|
function cubicInOut(t) {
|
||||||
|
return t < 0.5 ? 4 * t * t * t : 0.5 * Math.pow(2 * t - 2, 3) + 1;
|
||||||
|
}
|
||||||
|
function cubicIn(t) {
|
||||||
|
return t * t * t;
|
||||||
|
}
|
||||||
|
function cubicOut(t) {
|
||||||
|
const f = t - 1;
|
||||||
|
return f * f * f + 1;
|
||||||
|
}
|
||||||
|
function elasticInOut(t) {
|
||||||
|
return t < 0.5 ? 0.5 * Math.sin(13 * Math.PI / 2 * 2 * t) * Math.pow(2, 10 * (2 * t - 1)) : 0.5 * Math.sin(-13 * Math.PI / 2 * (2 * t - 1 + 1)) * Math.pow(2, -10 * (2 * t - 1)) + 1;
|
||||||
|
}
|
||||||
|
function elasticIn(t) {
|
||||||
|
return Math.sin(13 * t * Math.PI / 2) * Math.pow(2, 10 * (t - 1));
|
||||||
|
}
|
||||||
|
function elasticOut(t) {
|
||||||
|
return Math.sin(-13 * (t + 1) * Math.PI / 2) * Math.pow(2, -10 * t) + 1;
|
||||||
|
}
|
||||||
|
function expoInOut(t) {
|
||||||
|
return t === 0 || t === 1 ? t : t < 0.5 ? 0.5 * Math.pow(2, 20 * t - 10) : -0.5 * Math.pow(2, 10 - t * 20) + 1;
|
||||||
|
}
|
||||||
|
function expoIn(t) {
|
||||||
|
return t === 0 ? t : Math.pow(2, 10 * (t - 1));
|
||||||
|
}
|
||||||
|
function expoOut(t) {
|
||||||
|
return t === 1 ? t : 1 - Math.pow(2, -10 * t);
|
||||||
|
}
|
||||||
|
function quadInOut(t) {
|
||||||
|
t /= 0.5;
|
||||||
|
if (t < 1) return 0.5 * t * t;
|
||||||
|
t--;
|
||||||
|
return -0.5 * (t * (t - 2) - 1);
|
||||||
|
}
|
||||||
|
function quadIn(t) {
|
||||||
|
return t * t;
|
||||||
|
}
|
||||||
|
function quadOut(t) {
|
||||||
|
return -t * (t - 2);
|
||||||
|
}
|
||||||
|
function quartInOut(t) {
|
||||||
|
return t < 0.5 ? 8 * Math.pow(t, 4) : -8 * Math.pow(t - 1, 4) + 1;
|
||||||
|
}
|
||||||
|
function quartIn(t) {
|
||||||
|
return Math.pow(t, 4);
|
||||||
|
}
|
||||||
|
function quartOut(t) {
|
||||||
|
return Math.pow(t - 1, 3) * (1 - t) + 1;
|
||||||
|
}
|
||||||
|
function quintInOut(t) {
|
||||||
|
if ((t *= 2) < 1) return 0.5 * t * t * t * t * t;
|
||||||
|
return 0.5 * ((t -= 2) * t * t * t * t + 2);
|
||||||
|
}
|
||||||
|
function quintIn(t) {
|
||||||
|
return t * t * t * t * t;
|
||||||
|
}
|
||||||
|
function quintOut(t) {
|
||||||
|
return --t * t * t * t * t + 1;
|
||||||
|
}
|
||||||
|
function sineInOut(t) {
|
||||||
|
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
||||||
|
}
|
||||||
|
function sineIn(t) {
|
||||||
|
const v = Math.cos(t * Math.PI * 0.5);
|
||||||
|
if (Math.abs(v) < 1e-14) return 1;
|
||||||
|
else return 1 - v;
|
||||||
|
}
|
||||||
|
function sineOut(t) {
|
||||||
|
return Math.sin(t * Math.PI / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
linear,
|
||||||
|
backInOut,
|
||||||
|
backIn,
|
||||||
|
backOut,
|
||||||
|
bounceOut,
|
||||||
|
bounceInOut,
|
||||||
|
bounceIn,
|
||||||
|
circInOut,
|
||||||
|
circIn,
|
||||||
|
circOut,
|
||||||
|
cubicInOut,
|
||||||
|
cubicIn,
|
||||||
|
cubicOut,
|
||||||
|
elasticInOut,
|
||||||
|
elasticIn,
|
||||||
|
elasticOut,
|
||||||
|
expoInOut,
|
||||||
|
expoIn,
|
||||||
|
expoOut,
|
||||||
|
quadInOut,
|
||||||
|
quadIn,
|
||||||
|
quadOut,
|
||||||
|
quartInOut,
|
||||||
|
quartIn,
|
||||||
|
quartOut,
|
||||||
|
quintInOut,
|
||||||
|
quintIn,
|
||||||
|
quintOut,
|
||||||
|
sineInOut,
|
||||||
|
sineIn,
|
||||||
|
sineOut
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=chunk-YERFD2CZ.js.map
|
7
web/node_modules/.vite/deps/chunk-YERFD2CZ.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/chunk-YERFD2CZ.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
web/node_modules/.vite/deps/package.json
generated
vendored
Normal file
3
web/node_modules/.vite/deps/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
42
web/node_modules/.vite/deps/svelte.js
generated
vendored
Normal file
42
web/node_modules/.vite/deps/svelte.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
import {
|
||||||
|
afterUpdate,
|
||||||
|
beforeUpdate,
|
||||||
|
createEventDispatcher,
|
||||||
|
createRawSnippet,
|
||||||
|
flushSync,
|
||||||
|
onDestroy,
|
||||||
|
onMount
|
||||||
|
} from "./chunk-XI64PIGS.js";
|
||||||
|
import {
|
||||||
|
hydrate,
|
||||||
|
mount,
|
||||||
|
unmount
|
||||||
|
} from "./chunk-FZEWDNFU.js";
|
||||||
|
import {
|
||||||
|
getAllContexts,
|
||||||
|
getContext,
|
||||||
|
hasContext,
|
||||||
|
setContext,
|
||||||
|
tick,
|
||||||
|
untrack
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
export {
|
||||||
|
afterUpdate,
|
||||||
|
beforeUpdate,
|
||||||
|
createEventDispatcher,
|
||||||
|
createRawSnippet,
|
||||||
|
flushSync,
|
||||||
|
getAllContexts,
|
||||||
|
getContext,
|
||||||
|
hasContext,
|
||||||
|
hydrate,
|
||||||
|
mount,
|
||||||
|
onDestroy,
|
||||||
|
onMount,
|
||||||
|
setContext,
|
||||||
|
tick,
|
||||||
|
unmount,
|
||||||
|
untrack
|
||||||
|
};
|
7
web/node_modules/.vite/deps/svelte.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
49
web/node_modules/.vite/deps/svelte_animate.js
generated
vendored
Normal file
49
web/node_modules/.vite/deps/svelte_animate.js
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
import {
|
||||||
|
cubicOut
|
||||||
|
} from "./chunk-YERFD2CZ.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/animate/index.js
|
||||||
|
function flip(node, { from, to }, params = {}) {
|
||||||
|
var style = getComputedStyle(node);
|
||||||
|
var zoom = get_zoom(node);
|
||||||
|
var transform = style.transform === "none" ? "" : style.transform;
|
||||||
|
var [ox, oy] = style.transformOrigin.split(" ").map(parseFloat);
|
||||||
|
var dsx = from.width / to.width;
|
||||||
|
var dsy = from.height / to.height;
|
||||||
|
var dx = (from.left + dsx * ox - (to.left + ox)) / zoom;
|
||||||
|
var dy = (from.top + dsy * oy - (to.top + oy)) / zoom;
|
||||||
|
var { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration: typeof duration === "function" ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,
|
||||||
|
easing,
|
||||||
|
css: (t, u) => {
|
||||||
|
var x = u * dx;
|
||||||
|
var y = u * dy;
|
||||||
|
var sx = t + u * dsx;
|
||||||
|
var sy = t + u * dsy;
|
||||||
|
return `transform: ${transform} scale(${sx}, ${sy}) translate(${x}px, ${y}px);`;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function get_zoom(element) {
|
||||||
|
if ("currentCSSZoom" in element) {
|
||||||
|
return (
|
||||||
|
/** @type {number} */
|
||||||
|
element.currentCSSZoom
|
||||||
|
);
|
||||||
|
}
|
||||||
|
var current = element;
|
||||||
|
var zoom = 1;
|
||||||
|
while (current !== null) {
|
||||||
|
zoom *= +getComputedStyle(current).zoom;
|
||||||
|
current = /** @type {Element | null} */
|
||||||
|
current.parentElement;
|
||||||
|
}
|
||||||
|
return zoom;
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
flip
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=svelte_animate.js.map
|
7
web/node_modules/.vite/deps/svelte_animate.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_animate.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/animate/index.js"],
|
||||||
|
"sourcesContent": ["/** @import { FlipParams, AnimationConfig } from './public.js' */\nimport { cubicOut } from '../easing/index.js';\n\n/**\n * The flip function calculates the start and end position of an element and animates between them, translating the x and y values.\n * `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/).\n *\n * @param {Element} node\n * @param {{ from: DOMRect; to: DOMRect }} fromTo\n * @param {FlipParams} params\n * @returns {AnimationConfig}\n */\nexport function flip(node, { from, to }, params = {}) {\n\tvar style = getComputedStyle(node);\n\tvar zoom = get_zoom(node); // https://drafts.csswg.org/css-viewport/#effective-zoom\n\n\tvar transform = style.transform === 'none' ? '' : style.transform;\n\tvar [ox, oy] = style.transformOrigin.split(' ').map(parseFloat);\n\tvar dsx = from.width / to.width;\n\tvar dsy = from.height / to.height;\n\n\tvar dx = (from.left + dsx * ox - (to.left + ox)) / zoom;\n\tvar dy = (from.top + dsy * oy - (to.top + oy)) / zoom;\n\tvar { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;\n\n\treturn {\n\t\tdelay,\n\t\tduration: typeof duration === 'function' ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,\n\t\teasing,\n\t\tcss: (t, u) => {\n\t\t\tvar x = u * dx;\n\t\t\tvar y = u * dy;\n\t\t\tvar sx = t + u * dsx;\n\t\t\tvar sy = t + u * dsy;\n\t\t\treturn `transform: ${transform} scale(${sx}, ${sy}) translate(${x}px, ${y}px);`;\n\t\t}\n\t};\n}\n\n/**\n * @param {Element} element\n */\nfunction get_zoom(element) {\n\tif ('currentCSSZoom' in element) {\n\t\treturn /** @type {number} */ (element.currentCSSZoom);\n\t}\n\n\t/** @type {Element | null} */\n\tvar current = element;\n\tvar zoom = 1;\n\n\twhile (current !== null) {\n\t\tzoom *= +getComputedStyle(current).zoom;\n\t\tcurrent = /** @type {Element | null} */ (current.parentElement);\n\t}\n\n\treturn zoom;\n}\n"],
|
||||||
|
"mappings": ";;;;;;AAYO,SAAS,KAAK,MAAM,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,GAAG;AACrD,MAAI,QAAQ,iBAAiB,IAAI;AACjC,MAAI,OAAO,SAAS,IAAI;AAExB,MAAI,YAAY,MAAM,cAAc,SAAS,KAAK,MAAM;AACxD,MAAI,CAAC,IAAI,EAAE,IAAI,MAAM,gBAAgB,MAAM,GAAG,EAAE,IAAI,UAAU;AAC9D,MAAI,MAAM,KAAK,QAAQ,GAAG;AAC1B,MAAI,MAAM,KAAK,SAAS,GAAG;AAE3B,MAAI,MAAM,KAAK,OAAO,MAAM,MAAM,GAAG,OAAO,OAAO;AACnD,MAAI,MAAM,KAAK,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO;AACjD,MAAI,EAAE,QAAQ,GAAG,WAAW,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI,KAAK,SAAS,SAAS,IAAI;AAE7E,SAAO;AAAA,IACN;AAAA,IACA,UAAU,OAAO,aAAa,aAAa,SAAS,KAAK,KAAK,KAAK,KAAK,KAAK,EAAE,CAAC,IAAI;AAAA,IACpF;AAAA,IACA,KAAK,CAAC,GAAG,MAAM;AACd,UAAI,IAAI,IAAI;AACZ,UAAI,IAAI,IAAI;AACZ,UAAI,KAAK,IAAI,IAAI;AACjB,UAAI,KAAK,IAAI,IAAI;AACjB,aAAO,cAAc,SAAS,UAAU,EAAE,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;AAAA,IAC1E;AAAA,EACD;AACD;AAKA,SAAS,SAAS,SAAS;AAC1B,MAAI,oBAAoB,SAAS;AAChC;AAAA;AAAA,MAA8B,QAAQ;AAAA;AAAA,EACvC;AAGA,MAAI,UAAU;AACd,MAAI,OAAO;AAEX,SAAO,YAAY,MAAM;AACxB,YAAQ,CAAC,iBAAiB,OAAO,EAAE;AACnC;AAAA,IAAyC,QAAQ;AAAA,EAClD;AAEA,SAAO;AACR;",
|
||||||
|
"names": []
|
||||||
|
}
|
67
web/node_modules/.vite/deps/svelte_easing.js
generated
vendored
Normal file
67
web/node_modules/.vite/deps/svelte_easing.js
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
import {
|
||||||
|
backIn,
|
||||||
|
backInOut,
|
||||||
|
backOut,
|
||||||
|
bounceIn,
|
||||||
|
bounceInOut,
|
||||||
|
bounceOut,
|
||||||
|
circIn,
|
||||||
|
circInOut,
|
||||||
|
circOut,
|
||||||
|
cubicIn,
|
||||||
|
cubicInOut,
|
||||||
|
cubicOut,
|
||||||
|
elasticIn,
|
||||||
|
elasticInOut,
|
||||||
|
elasticOut,
|
||||||
|
expoIn,
|
||||||
|
expoInOut,
|
||||||
|
expoOut,
|
||||||
|
linear,
|
||||||
|
quadIn,
|
||||||
|
quadInOut,
|
||||||
|
quadOut,
|
||||||
|
quartIn,
|
||||||
|
quartInOut,
|
||||||
|
quartOut,
|
||||||
|
quintIn,
|
||||||
|
quintInOut,
|
||||||
|
quintOut,
|
||||||
|
sineIn,
|
||||||
|
sineInOut,
|
||||||
|
sineOut
|
||||||
|
} from "./chunk-YERFD2CZ.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
export {
|
||||||
|
backIn,
|
||||||
|
backInOut,
|
||||||
|
backOut,
|
||||||
|
bounceIn,
|
||||||
|
bounceInOut,
|
||||||
|
bounceOut,
|
||||||
|
circIn,
|
||||||
|
circInOut,
|
||||||
|
circOut,
|
||||||
|
cubicIn,
|
||||||
|
cubicInOut,
|
||||||
|
cubicOut,
|
||||||
|
elasticIn,
|
||||||
|
elasticInOut,
|
||||||
|
elasticOut,
|
||||||
|
expoIn,
|
||||||
|
expoInOut,
|
||||||
|
expoOut,
|
||||||
|
linear,
|
||||||
|
quadIn,
|
||||||
|
quadInOut,
|
||||||
|
quadOut,
|
||||||
|
quartIn,
|
||||||
|
quartInOut,
|
||||||
|
quartOut,
|
||||||
|
quintIn,
|
||||||
|
quintInOut,
|
||||||
|
quintOut,
|
||||||
|
sineIn,
|
||||||
|
sineInOut,
|
||||||
|
sineOut
|
||||||
|
};
|
7
web/node_modules/.vite/deps/svelte_easing.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_easing.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
8
web/node_modules/.vite/deps/svelte_events.js
generated
vendored
Normal file
8
web/node_modules/.vite/deps/svelte_events.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import {
|
||||||
|
on
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
export {
|
||||||
|
on
|
||||||
|
};
|
7
web/node_modules/.vite/deps/svelte_events.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_events.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
5
web/node_modules/.vite/deps/svelte_internal.js
generated
vendored
Normal file
5
web/node_modules/.vite/deps/svelte_internal.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// node_modules/svelte/src/internal/index.js
|
||||||
|
throw new Error(
|
||||||
|
`Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5. It is not intended to be public API. If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case.`
|
||||||
|
);
|
||||||
|
//# sourceMappingURL=svelte_internal.js.map
|
7
web/node_modules/.vite/deps/svelte_internal.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_internal.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/internal/index.js"],
|
||||||
|
"sourcesContent": ["// TODO we may, on a best-effort basis, reimplement some of the legacy private APIs here so that certain libraries continue to work. Those APIs will be marked as deprecated (and should noisily warn the user) and will be removed in a future version of Svelte.\n\nthrow new Error(\n\t`Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5. It is not intended to be public API. If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case.`\n);\n"],
|
||||||
|
"mappings": ";AAEA,MAAM,IAAI;AAAA,EACT;AACD;",
|
||||||
|
"names": []
|
||||||
|
}
|
356
web/node_modules/.vite/deps/svelte_internal_client.js
generated
vendored
Normal file
356
web/node_modules/.vite/deps/svelte_internal_client.js
generated
vendored
Normal file
@ -0,0 +1,356 @@
|
|||||||
|
import {
|
||||||
|
action,
|
||||||
|
add_legacy_event_listener,
|
||||||
|
add_locations,
|
||||||
|
animation,
|
||||||
|
append_styles,
|
||||||
|
attr,
|
||||||
|
await_block,
|
||||||
|
bind_active_element,
|
||||||
|
bind_buffered,
|
||||||
|
bind_checked,
|
||||||
|
bind_content_editable,
|
||||||
|
bind_current_time,
|
||||||
|
bind_element_size,
|
||||||
|
bind_ended,
|
||||||
|
bind_files,
|
||||||
|
bind_focused,
|
||||||
|
bind_group,
|
||||||
|
bind_muted,
|
||||||
|
bind_online,
|
||||||
|
bind_paused,
|
||||||
|
bind_playback_rate,
|
||||||
|
bind_played,
|
||||||
|
bind_prop,
|
||||||
|
bind_property,
|
||||||
|
bind_ready_state,
|
||||||
|
bind_resize_observer,
|
||||||
|
bind_seekable,
|
||||||
|
bind_seeking,
|
||||||
|
bind_select_value,
|
||||||
|
bind_this,
|
||||||
|
bind_value,
|
||||||
|
bind_volume,
|
||||||
|
bind_window_scroll,
|
||||||
|
bind_window_size,
|
||||||
|
bubble_event,
|
||||||
|
check_target,
|
||||||
|
cleanup_styles,
|
||||||
|
component,
|
||||||
|
create_custom_element,
|
||||||
|
css_props,
|
||||||
|
each,
|
||||||
|
element,
|
||||||
|
handle_lazy_img,
|
||||||
|
hmr,
|
||||||
|
html,
|
||||||
|
if_block,
|
||||||
|
index,
|
||||||
|
init,
|
||||||
|
init_select,
|
||||||
|
inspect,
|
||||||
|
invalidate_store,
|
||||||
|
key_block,
|
||||||
|
legacy_api,
|
||||||
|
legacy_rest_props,
|
||||||
|
log_if_contains_state,
|
||||||
|
mark_store_binding,
|
||||||
|
prop,
|
||||||
|
raf,
|
||||||
|
reactive_import,
|
||||||
|
remove_input_defaults,
|
||||||
|
rest_props,
|
||||||
|
sanitize_slots,
|
||||||
|
select_option,
|
||||||
|
set_attribute,
|
||||||
|
set_attributes,
|
||||||
|
set_checked,
|
||||||
|
set_class,
|
||||||
|
set_custom_element_data,
|
||||||
|
set_mathml_class,
|
||||||
|
set_style,
|
||||||
|
set_svg_class,
|
||||||
|
set_value,
|
||||||
|
set_xlink_attribute,
|
||||||
|
setup_stores,
|
||||||
|
slot,
|
||||||
|
snapshot,
|
||||||
|
snippet,
|
||||||
|
spread_props,
|
||||||
|
store_get,
|
||||||
|
store_mutate,
|
||||||
|
store_set,
|
||||||
|
store_unsub,
|
||||||
|
toggle_class,
|
||||||
|
transition,
|
||||||
|
update_legacy_props,
|
||||||
|
update_pre_prop,
|
||||||
|
update_pre_store,
|
||||||
|
update_prop,
|
||||||
|
update_store,
|
||||||
|
validate_binding,
|
||||||
|
validate_dynamic_element_tag,
|
||||||
|
validate_each_keys,
|
||||||
|
validate_prop_bindings,
|
||||||
|
validate_store,
|
||||||
|
validate_void_dynamic_element,
|
||||||
|
wrap_snippet
|
||||||
|
} from "./chunk-XI64PIGS.js";
|
||||||
|
import {
|
||||||
|
append,
|
||||||
|
comment,
|
||||||
|
head,
|
||||||
|
mathml_template,
|
||||||
|
ns_template,
|
||||||
|
once,
|
||||||
|
preventDefault,
|
||||||
|
self,
|
||||||
|
set_text,
|
||||||
|
stopImmediatePropagation,
|
||||||
|
stopPropagation,
|
||||||
|
svg_template_with_script,
|
||||||
|
template,
|
||||||
|
template_with_script,
|
||||||
|
text,
|
||||||
|
trusted
|
||||||
|
} from "./chunk-FZEWDNFU.js";
|
||||||
|
import {
|
||||||
|
$document,
|
||||||
|
$window,
|
||||||
|
ADD_OWNER,
|
||||||
|
FILENAME,
|
||||||
|
HMR,
|
||||||
|
NAMESPACE_SVG,
|
||||||
|
add_owner,
|
||||||
|
add_owner_effect,
|
||||||
|
apply,
|
||||||
|
autofocus,
|
||||||
|
child,
|
||||||
|
deep_read,
|
||||||
|
deep_read_state,
|
||||||
|
delegate,
|
||||||
|
derived,
|
||||||
|
derived_safe_equal,
|
||||||
|
effect,
|
||||||
|
effect_root,
|
||||||
|
effect_tracking,
|
||||||
|
equals,
|
||||||
|
event,
|
||||||
|
exclude_from_object,
|
||||||
|
fallback,
|
||||||
|
first_child,
|
||||||
|
flush_sync,
|
||||||
|
get,
|
||||||
|
getAllContexts,
|
||||||
|
getContext,
|
||||||
|
hasContext,
|
||||||
|
hydrate_template,
|
||||||
|
invalid_default_snippet,
|
||||||
|
invalidate_inner_signals,
|
||||||
|
legacy_pre_effect,
|
||||||
|
legacy_pre_effect_reset,
|
||||||
|
mark_module_end,
|
||||||
|
mark_module_start,
|
||||||
|
mutable_state,
|
||||||
|
mutate,
|
||||||
|
next,
|
||||||
|
noop,
|
||||||
|
pop,
|
||||||
|
proxy,
|
||||||
|
push,
|
||||||
|
remove_textarea_child,
|
||||||
|
render_effect,
|
||||||
|
replay_events,
|
||||||
|
reset,
|
||||||
|
safe_get,
|
||||||
|
set,
|
||||||
|
setContext,
|
||||||
|
sibling,
|
||||||
|
skip_ownership_validation,
|
||||||
|
state,
|
||||||
|
strict_equals,
|
||||||
|
template_effect,
|
||||||
|
tick,
|
||||||
|
untrack,
|
||||||
|
update,
|
||||||
|
update_pre,
|
||||||
|
user_effect,
|
||||||
|
user_pre_effect
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
export {
|
||||||
|
ADD_OWNER,
|
||||||
|
FILENAME,
|
||||||
|
HMR,
|
||||||
|
NAMESPACE_SVG,
|
||||||
|
action,
|
||||||
|
add_legacy_event_listener,
|
||||||
|
add_locations,
|
||||||
|
add_owner,
|
||||||
|
add_owner_effect,
|
||||||
|
animation,
|
||||||
|
append,
|
||||||
|
append_styles,
|
||||||
|
apply,
|
||||||
|
attr,
|
||||||
|
autofocus,
|
||||||
|
await_block as await,
|
||||||
|
bind_active_element,
|
||||||
|
bind_buffered,
|
||||||
|
bind_checked,
|
||||||
|
bind_content_editable,
|
||||||
|
bind_current_time,
|
||||||
|
bind_element_size,
|
||||||
|
bind_ended,
|
||||||
|
bind_files,
|
||||||
|
bind_focused,
|
||||||
|
bind_group,
|
||||||
|
bind_muted,
|
||||||
|
bind_online,
|
||||||
|
bind_paused,
|
||||||
|
bind_playback_rate,
|
||||||
|
bind_played,
|
||||||
|
bind_prop,
|
||||||
|
bind_property,
|
||||||
|
bind_ready_state,
|
||||||
|
bind_resize_observer,
|
||||||
|
bind_seekable,
|
||||||
|
bind_seeking,
|
||||||
|
bind_select_value,
|
||||||
|
bind_this,
|
||||||
|
bind_value,
|
||||||
|
bind_volume,
|
||||||
|
bind_window_scroll,
|
||||||
|
bind_window_size,
|
||||||
|
bubble_event,
|
||||||
|
check_target,
|
||||||
|
child,
|
||||||
|
cleanup_styles,
|
||||||
|
comment,
|
||||||
|
component,
|
||||||
|
create_custom_element,
|
||||||
|
css_props,
|
||||||
|
deep_read,
|
||||||
|
deep_read_state,
|
||||||
|
delegate,
|
||||||
|
derived,
|
||||||
|
derived_safe_equal,
|
||||||
|
$document as document,
|
||||||
|
each,
|
||||||
|
effect,
|
||||||
|
effect_root,
|
||||||
|
effect_tracking,
|
||||||
|
element,
|
||||||
|
equals,
|
||||||
|
event,
|
||||||
|
exclude_from_object,
|
||||||
|
fallback,
|
||||||
|
first_child,
|
||||||
|
flush_sync,
|
||||||
|
get,
|
||||||
|
getAllContexts,
|
||||||
|
getContext,
|
||||||
|
handle_lazy_img,
|
||||||
|
hasContext,
|
||||||
|
head,
|
||||||
|
hmr,
|
||||||
|
html,
|
||||||
|
hydrate_template,
|
||||||
|
if_block as if,
|
||||||
|
index,
|
||||||
|
init,
|
||||||
|
init_select,
|
||||||
|
inspect,
|
||||||
|
invalid_default_snippet,
|
||||||
|
invalidate_inner_signals,
|
||||||
|
invalidate_store,
|
||||||
|
key_block as key,
|
||||||
|
legacy_api,
|
||||||
|
legacy_pre_effect,
|
||||||
|
legacy_pre_effect_reset,
|
||||||
|
legacy_rest_props,
|
||||||
|
log_if_contains_state,
|
||||||
|
mark_module_end,
|
||||||
|
mark_module_start,
|
||||||
|
mark_store_binding,
|
||||||
|
mathml_template,
|
||||||
|
mutable_state,
|
||||||
|
mutate,
|
||||||
|
next,
|
||||||
|
noop,
|
||||||
|
ns_template,
|
||||||
|
once,
|
||||||
|
pop,
|
||||||
|
preventDefault,
|
||||||
|
prop,
|
||||||
|
proxy,
|
||||||
|
push,
|
||||||
|
raf,
|
||||||
|
reactive_import,
|
||||||
|
remove_input_defaults,
|
||||||
|
remove_textarea_child,
|
||||||
|
render_effect,
|
||||||
|
replay_events,
|
||||||
|
reset,
|
||||||
|
rest_props,
|
||||||
|
safe_get,
|
||||||
|
sanitize_slots,
|
||||||
|
select_option,
|
||||||
|
self,
|
||||||
|
set,
|
||||||
|
setContext,
|
||||||
|
set_attribute,
|
||||||
|
set_attributes,
|
||||||
|
set_checked,
|
||||||
|
set_class,
|
||||||
|
set_custom_element_data,
|
||||||
|
set_mathml_class,
|
||||||
|
set_style,
|
||||||
|
set_svg_class,
|
||||||
|
set_text,
|
||||||
|
set_value,
|
||||||
|
set_xlink_attribute,
|
||||||
|
setup_stores,
|
||||||
|
sibling,
|
||||||
|
skip_ownership_validation,
|
||||||
|
slot,
|
||||||
|
snapshot,
|
||||||
|
snippet,
|
||||||
|
spread_props,
|
||||||
|
state,
|
||||||
|
stopImmediatePropagation,
|
||||||
|
stopPropagation,
|
||||||
|
store_get,
|
||||||
|
store_mutate,
|
||||||
|
store_set,
|
||||||
|
store_unsub,
|
||||||
|
strict_equals,
|
||||||
|
svg_template_with_script,
|
||||||
|
template,
|
||||||
|
template_effect,
|
||||||
|
template_with_script,
|
||||||
|
text,
|
||||||
|
tick,
|
||||||
|
toggle_class,
|
||||||
|
transition,
|
||||||
|
trusted,
|
||||||
|
untrack,
|
||||||
|
update,
|
||||||
|
update_legacy_props,
|
||||||
|
update_pre,
|
||||||
|
update_pre_prop,
|
||||||
|
update_pre_store,
|
||||||
|
update_prop,
|
||||||
|
update_store,
|
||||||
|
user_effect,
|
||||||
|
user_pre_effect,
|
||||||
|
validate_binding,
|
||||||
|
validate_dynamic_element_tag,
|
||||||
|
validate_each_keys,
|
||||||
|
validate_prop_bindings,
|
||||||
|
validate_store,
|
||||||
|
validate_void_dynamic_element,
|
||||||
|
$window as window,
|
||||||
|
wrap_snippet
|
||||||
|
};
|
7
web/node_modules/.vite/deps/svelte_internal_client.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_internal_client.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
9
web/node_modules/.vite/deps/svelte_internal_disclose-version.js
generated
vendored
Normal file
9
web/node_modules/.vite/deps/svelte_internal_disclose-version.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/version.js
|
||||||
|
var PUBLIC_VERSION = "5";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/disclose-version.js
|
||||||
|
if (typeof window !== "undefined")
|
||||||
|
(window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION);
|
||||||
|
//# sourceMappingURL=svelte_internal_disclose-version.js.map
|
7
web/node_modules/.vite/deps/svelte_internal_disclose-version.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_internal_disclose-version.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/version.js", "../../svelte/src/internal/disclose-version.js"],
|
||||||
|
"sourcesContent": ["// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n *\n * https://svelte.dev/docs/svelte-compiler#svelte-version\n * @type {string}\n */\nexport const VERSION = '5.2.9';\nexport const PUBLIC_VERSION = '5';\n", "import { PUBLIC_VERSION } from '../version.js';\n\nif (typeof window !== 'undefined')\n\t// @ts-ignore\n\t(window.__svelte ||= { v: new Set() }).v.add(PUBLIC_VERSION);\n"],
|
||||||
|
"mappings": ";;;AASO,IAAM,iBAAiB;;;ACP9B,IAAI,OAAO,WAAW;AAErB,GAAC,OAAO,aAAP,OAAO,WAAa,EAAE,GAAG,oBAAI,IAAI,EAAE,IAAG,EAAE,IAAI,cAAc;",
|
||||||
|
"names": []
|
||||||
|
}
|
8
web/node_modules/.vite/deps/svelte_internal_flags_legacy.js
generated
vendored
Normal file
8
web/node_modules/.vite/deps/svelte_internal_flags_legacy.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import {
|
||||||
|
enable_legacy_mode_flag
|
||||||
|
} from "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/internal/flags/legacy.js
|
||||||
|
enable_legacy_mode_flag();
|
||||||
|
//# sourceMappingURL=svelte_internal_flags_legacy.js.map
|
7
web/node_modules/.vite/deps/svelte_internal_flags_legacy.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_internal_flags_legacy.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/internal/flags/legacy.js"],
|
||||||
|
"sourcesContent": ["import { enable_legacy_mode_flag } from './index.js';\n\nenable_legacy_mode_flag();\n"],
|
||||||
|
"mappings": ";;;;;;AAEA,wBAAwB;",
|
||||||
|
"names": []
|
||||||
|
}
|
33
web/node_modules/.vite/deps/svelte_legacy.js
generated
vendored
Normal file
33
web/node_modules/.vite/deps/svelte_legacy.js
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import {
|
||||||
|
asClassComponent,
|
||||||
|
createBubbler,
|
||||||
|
createClassComponent,
|
||||||
|
handlers,
|
||||||
|
nonpassive,
|
||||||
|
once,
|
||||||
|
passive,
|
||||||
|
preventDefault,
|
||||||
|
run,
|
||||||
|
self,
|
||||||
|
stopImmediatePropagation,
|
||||||
|
stopPropagation,
|
||||||
|
trusted
|
||||||
|
} from "./chunk-FZEWDNFU.js";
|
||||||
|
import "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
export {
|
||||||
|
asClassComponent,
|
||||||
|
createBubbler,
|
||||||
|
createClassComponent,
|
||||||
|
handlers,
|
||||||
|
nonpassive,
|
||||||
|
once,
|
||||||
|
passive,
|
||||||
|
preventDefault,
|
||||||
|
run,
|
||||||
|
self,
|
||||||
|
stopImmediatePropagation,
|
||||||
|
stopPropagation,
|
||||||
|
trusted
|
||||||
|
};
|
7
web/node_modules/.vite/deps/svelte_legacy.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_legacy.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
261
web/node_modules/.vite/deps/svelte_motion.js
generated
vendored
Normal file
261
web/node_modules/.vite/deps/svelte_motion.js
generated
vendored
Normal file
@ -0,0 +1,261 @@
|
|||||||
|
import {
|
||||||
|
writable
|
||||||
|
} from "./chunk-XWMO4EC7.js";
|
||||||
|
import {
|
||||||
|
linear
|
||||||
|
} from "./chunk-YERFD2CZ.js";
|
||||||
|
import {
|
||||||
|
loop,
|
||||||
|
raf
|
||||||
|
} from "./chunk-XI64PIGS.js";
|
||||||
|
import "./chunk-FZEWDNFU.js";
|
||||||
|
import "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/motion/utils.js
|
||||||
|
function is_date(obj) {
|
||||||
|
return Object.prototype.toString.call(obj) === "[object Date]";
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/motion/spring.js
|
||||||
|
function tick_spring(ctx, last_value, current_value, target_value) {
|
||||||
|
if (typeof current_value === "number" || is_date(current_value)) {
|
||||||
|
const delta = target_value - current_value;
|
||||||
|
const velocity = (current_value - last_value) / (ctx.dt || 1 / 60);
|
||||||
|
const spring2 = ctx.opts.stiffness * delta;
|
||||||
|
const damper = ctx.opts.damping * velocity;
|
||||||
|
const acceleration = (spring2 - damper) * ctx.inv_mass;
|
||||||
|
const d = (velocity + acceleration) * ctx.dt;
|
||||||
|
if (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) {
|
||||||
|
return target_value;
|
||||||
|
} else {
|
||||||
|
ctx.settled = false;
|
||||||
|
return is_date(current_value) ? new Date(current_value.getTime() + d) : current_value + d;
|
||||||
|
}
|
||||||
|
} else if (Array.isArray(current_value)) {
|
||||||
|
return current_value.map(
|
||||||
|
(_, i) => (
|
||||||
|
// @ts-ignore
|
||||||
|
tick_spring(ctx, last_value[i], current_value[i], target_value[i])
|
||||||
|
)
|
||||||
|
);
|
||||||
|
} else if (typeof current_value === "object") {
|
||||||
|
const next_value = {};
|
||||||
|
for (const k in current_value) {
|
||||||
|
next_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);
|
||||||
|
}
|
||||||
|
return next_value;
|
||||||
|
} else {
|
||||||
|
throw new Error(`Cannot spring ${typeof current_value} values`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function spring(value, opts = {}) {
|
||||||
|
const store = writable(value);
|
||||||
|
const { stiffness = 0.15, damping = 0.8, precision = 0.01 } = opts;
|
||||||
|
let last_time;
|
||||||
|
let task;
|
||||||
|
let current_token;
|
||||||
|
let last_value = (
|
||||||
|
/** @type {T} */
|
||||||
|
value
|
||||||
|
);
|
||||||
|
let target_value = (
|
||||||
|
/** @type {T | undefined} */
|
||||||
|
value
|
||||||
|
);
|
||||||
|
let inv_mass = 1;
|
||||||
|
let inv_mass_recovery_rate = 0;
|
||||||
|
let cancel_task = false;
|
||||||
|
function set(new_value, opts2 = {}) {
|
||||||
|
target_value = new_value;
|
||||||
|
const token = current_token = {};
|
||||||
|
if (value == null || opts2.hard || spring2.stiffness >= 1 && spring2.damping >= 1) {
|
||||||
|
cancel_task = true;
|
||||||
|
last_time = raf.now();
|
||||||
|
last_value = new_value;
|
||||||
|
store.set(value = target_value);
|
||||||
|
return Promise.resolve();
|
||||||
|
} else if (opts2.soft) {
|
||||||
|
const rate = opts2.soft === true ? 0.5 : +opts2.soft;
|
||||||
|
inv_mass_recovery_rate = 1 / (rate * 60);
|
||||||
|
inv_mass = 0;
|
||||||
|
}
|
||||||
|
if (!task) {
|
||||||
|
last_time = raf.now();
|
||||||
|
cancel_task = false;
|
||||||
|
task = loop((now) => {
|
||||||
|
if (cancel_task) {
|
||||||
|
cancel_task = false;
|
||||||
|
task = null;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);
|
||||||
|
const ctx = {
|
||||||
|
inv_mass,
|
||||||
|
opts: spring2,
|
||||||
|
settled: true,
|
||||||
|
dt: (now - last_time) * 60 / 1e3
|
||||||
|
};
|
||||||
|
const next_value = tick_spring(ctx, last_value, value, target_value);
|
||||||
|
last_time = now;
|
||||||
|
last_value = /** @type {T} */
|
||||||
|
value;
|
||||||
|
store.set(value = /** @type {T} */
|
||||||
|
next_value);
|
||||||
|
if (ctx.settled) {
|
||||||
|
task = null;
|
||||||
|
}
|
||||||
|
return !ctx.settled;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return new Promise((fulfil) => {
|
||||||
|
task.promise.then(() => {
|
||||||
|
if (token === current_token) fulfil();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const spring2 = {
|
||||||
|
set,
|
||||||
|
update: (fn, opts2) => set(fn(
|
||||||
|
/** @type {T} */
|
||||||
|
target_value,
|
||||||
|
/** @type {T} */
|
||||||
|
value
|
||||||
|
), opts2),
|
||||||
|
subscribe: store.subscribe,
|
||||||
|
stiffness,
|
||||||
|
damping,
|
||||||
|
precision
|
||||||
|
};
|
||||||
|
return spring2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// node_modules/svelte/src/motion/tweened.js
|
||||||
|
function get_interpolator(a, b) {
|
||||||
|
if (a === b || a !== a) return () => a;
|
||||||
|
const type = typeof a;
|
||||||
|
if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) {
|
||||||
|
throw new Error("Cannot interpolate values of different type");
|
||||||
|
}
|
||||||
|
if (Array.isArray(a)) {
|
||||||
|
const arr = (
|
||||||
|
/** @type {Array<any>} */
|
||||||
|
b.map((bi, i) => {
|
||||||
|
return get_interpolator(
|
||||||
|
/** @type {Array<any>} */
|
||||||
|
a[i],
|
||||||
|
bi
|
||||||
|
);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
return (t) => arr.map((fn) => fn(t));
|
||||||
|
}
|
||||||
|
if (type === "object") {
|
||||||
|
if (!a || !b) {
|
||||||
|
throw new Error("Object cannot be null");
|
||||||
|
}
|
||||||
|
if (is_date(a) && is_date(b)) {
|
||||||
|
const an = a.getTime();
|
||||||
|
const bn = b.getTime();
|
||||||
|
const delta = bn - an;
|
||||||
|
return (t) => new Date(an + t * delta);
|
||||||
|
}
|
||||||
|
const keys = Object.keys(b);
|
||||||
|
const interpolators = {};
|
||||||
|
keys.forEach((key) => {
|
||||||
|
interpolators[key] = get_interpolator(a[key], b[key]);
|
||||||
|
});
|
||||||
|
return (t) => {
|
||||||
|
const result = {};
|
||||||
|
keys.forEach((key) => {
|
||||||
|
result[key] = interpolators[key](t);
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (type === "number") {
|
||||||
|
const delta = (
|
||||||
|
/** @type {number} */
|
||||||
|
b - /** @type {number} */
|
||||||
|
a
|
||||||
|
);
|
||||||
|
return (t) => a + t * delta;
|
||||||
|
}
|
||||||
|
throw new Error(`Cannot interpolate ${type} values`);
|
||||||
|
}
|
||||||
|
function tweened(value, defaults = {}) {
|
||||||
|
const store = writable(value);
|
||||||
|
let task;
|
||||||
|
let target_value = value;
|
||||||
|
function set(new_value, opts) {
|
||||||
|
target_value = new_value;
|
||||||
|
if (value == null) {
|
||||||
|
store.set(value = new_value);
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
|
let previous_task = task;
|
||||||
|
let started = false;
|
||||||
|
let {
|
||||||
|
delay = 0,
|
||||||
|
duration = 400,
|
||||||
|
easing = linear,
|
||||||
|
interpolate = get_interpolator
|
||||||
|
} = { ...defaults, ...opts };
|
||||||
|
if (duration === 0) {
|
||||||
|
if (previous_task) {
|
||||||
|
previous_task.abort();
|
||||||
|
previous_task = null;
|
||||||
|
}
|
||||||
|
store.set(value = target_value);
|
||||||
|
return Promise.resolve();
|
||||||
|
}
|
||||||
|
const start = raf.now() + delay;
|
||||||
|
let fn;
|
||||||
|
task = loop((now) => {
|
||||||
|
if (now < start) return true;
|
||||||
|
if (!started) {
|
||||||
|
fn = interpolate(
|
||||||
|
/** @type {any} */
|
||||||
|
value,
|
||||||
|
new_value
|
||||||
|
);
|
||||||
|
if (typeof duration === "function")
|
||||||
|
duration = duration(
|
||||||
|
/** @type {any} */
|
||||||
|
value,
|
||||||
|
new_value
|
||||||
|
);
|
||||||
|
started = true;
|
||||||
|
}
|
||||||
|
if (previous_task) {
|
||||||
|
previous_task.abort();
|
||||||
|
previous_task = null;
|
||||||
|
}
|
||||||
|
const elapsed = now - start;
|
||||||
|
if (elapsed > /** @type {number} */
|
||||||
|
duration) {
|
||||||
|
store.set(value = new_value);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
store.set(value = fn(easing(elapsed / duration)));
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
return task.promise;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
set,
|
||||||
|
update: (fn, opts) => set(fn(
|
||||||
|
/** @type {any} */
|
||||||
|
target_value,
|
||||||
|
/** @type {any} */
|
||||||
|
value
|
||||||
|
), opts),
|
||||||
|
subscribe: store.subscribe
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
spring,
|
||||||
|
tweened
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=svelte_motion.js.map
|
7
web/node_modules/.vite/deps/svelte_motion.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_motion.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
637
web/node_modules/.vite/deps/svelte_reactivity.js
generated
vendored
Normal file
637
web/node_modules/.vite/deps/svelte_reactivity.js
generated
vendored
Normal file
@ -0,0 +1,637 @@
|
|||||||
|
import {
|
||||||
|
increment
|
||||||
|
} from "./chunk-6NVL6SYI.js";
|
||||||
|
import "./chunk-XI64PIGS.js";
|
||||||
|
import "./chunk-FZEWDNFU.js";
|
||||||
|
import {
|
||||||
|
DESTROYED,
|
||||||
|
DEV,
|
||||||
|
derived,
|
||||||
|
get,
|
||||||
|
set,
|
||||||
|
source
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import {
|
||||||
|
__privateAdd,
|
||||||
|
__privateGet,
|
||||||
|
__privateMethod,
|
||||||
|
__privateSet,
|
||||||
|
__superGet
|
||||||
|
} from "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/reactivity/date.js
|
||||||
|
var inited = false;
|
||||||
|
var _time, _deriveds, _SvelteDate_instances, init_fn;
|
||||||
|
var _SvelteDate = class _SvelteDate extends Date {
|
||||||
|
/** @param {any[]} params */
|
||||||
|
constructor(...params) {
|
||||||
|
super(...params);
|
||||||
|
__privateAdd(this, _SvelteDate_instances);
|
||||||
|
__privateAdd(this, _time, source(super.getTime()));
|
||||||
|
/** @type {Map<keyof Date, Source<unknown>>} */
|
||||||
|
__privateAdd(this, _deriveds, /* @__PURE__ */ new Map());
|
||||||
|
if (!inited) __privateMethod(this, _SvelteDate_instances, init_fn).call(this);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_time = new WeakMap();
|
||||||
|
_deriveds = new WeakMap();
|
||||||
|
_SvelteDate_instances = new WeakSet();
|
||||||
|
init_fn = function() {
|
||||||
|
inited = true;
|
||||||
|
var proto = _SvelteDate.prototype;
|
||||||
|
var date_proto = Date.prototype;
|
||||||
|
var methods = (
|
||||||
|
/** @type {Array<keyof Date & string>} */
|
||||||
|
Object.getOwnPropertyNames(date_proto)
|
||||||
|
);
|
||||||
|
for (const method of methods) {
|
||||||
|
if (method.startsWith("get") || method.startsWith("to") || method === "valueOf") {
|
||||||
|
proto[method] = function(...args) {
|
||||||
|
if (args.length > 0) {
|
||||||
|
get(__privateGet(this, _time));
|
||||||
|
return date_proto[method].apply(this, args);
|
||||||
|
}
|
||||||
|
var d = __privateGet(this, _deriveds).get(method);
|
||||||
|
if (d === void 0 || (d.f & DESTROYED) !== 0) {
|
||||||
|
d = derived(() => {
|
||||||
|
get(__privateGet(this, _time));
|
||||||
|
return date_proto[method].apply(this, args);
|
||||||
|
});
|
||||||
|
__privateGet(this, _deriveds).set(method, d);
|
||||||
|
}
|
||||||
|
return get(d);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (method.startsWith("set")) {
|
||||||
|
proto[method] = function(...args) {
|
||||||
|
var result = date_proto[method].apply(this, args);
|
||||||
|
set(__privateGet(this, _time), date_proto.getTime.call(this));
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var SvelteDate = _SvelteDate;
|
||||||
|
|
||||||
|
// node_modules/svelte/src/reactivity/set.js
|
||||||
|
var read_methods = ["forEach", "isDisjointFrom", "isSubsetOf", "isSupersetOf"];
|
||||||
|
var set_like_methods = ["difference", "intersection", "symmetricDifference", "union"];
|
||||||
|
var inited2 = false;
|
||||||
|
var _sources, _version, _size, _SvelteSet_instances, init_fn2;
|
||||||
|
var _SvelteSet = class _SvelteSet extends Set {
|
||||||
|
/**
|
||||||
|
* @param {Iterable<T> | null | undefined} [value]
|
||||||
|
*/
|
||||||
|
constructor(value) {
|
||||||
|
super();
|
||||||
|
__privateAdd(this, _SvelteSet_instances);
|
||||||
|
/** @type {Map<T, Source<boolean>>} */
|
||||||
|
__privateAdd(this, _sources, /* @__PURE__ */ new Map());
|
||||||
|
__privateAdd(this, _version, source(0));
|
||||||
|
__privateAdd(this, _size, source(0));
|
||||||
|
if (DEV) value = new Set(value);
|
||||||
|
if (value) {
|
||||||
|
for (var element of value) {
|
||||||
|
super.add(element);
|
||||||
|
}
|
||||||
|
__privateGet(this, _size).v = super.size;
|
||||||
|
}
|
||||||
|
if (!inited2) __privateMethod(this, _SvelteSet_instances, init_fn2).call(this);
|
||||||
|
}
|
||||||
|
/** @param {T} value */
|
||||||
|
has(value) {
|
||||||
|
var has = super.has(value);
|
||||||
|
var sources = __privateGet(this, _sources);
|
||||||
|
var s = sources.get(value);
|
||||||
|
if (s === void 0) {
|
||||||
|
if (!has) {
|
||||||
|
get(__privateGet(this, _version));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
s = source(true);
|
||||||
|
sources.set(value, s);
|
||||||
|
}
|
||||||
|
get(s);
|
||||||
|
return has;
|
||||||
|
}
|
||||||
|
/** @param {T} value */
|
||||||
|
add(value) {
|
||||||
|
if (!super.has(value)) {
|
||||||
|
super.add(value);
|
||||||
|
set(__privateGet(this, _size), super.size);
|
||||||
|
increment(__privateGet(this, _version));
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/** @param {T} value */
|
||||||
|
delete(value) {
|
||||||
|
var deleted = super.delete(value);
|
||||||
|
var sources = __privateGet(this, _sources);
|
||||||
|
var s = sources.get(value);
|
||||||
|
if (s !== void 0) {
|
||||||
|
sources.delete(value);
|
||||||
|
set(s, false);
|
||||||
|
}
|
||||||
|
if (deleted) {
|
||||||
|
set(__privateGet(this, _size), super.size);
|
||||||
|
increment(__privateGet(this, _version));
|
||||||
|
}
|
||||||
|
return deleted;
|
||||||
|
}
|
||||||
|
clear() {
|
||||||
|
if (super.size === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
super.clear();
|
||||||
|
var sources = __privateGet(this, _sources);
|
||||||
|
for (var s of sources.values()) {
|
||||||
|
set(s, false);
|
||||||
|
}
|
||||||
|
sources.clear();
|
||||||
|
set(__privateGet(this, _size), 0);
|
||||||
|
increment(__privateGet(this, _version));
|
||||||
|
}
|
||||||
|
keys() {
|
||||||
|
return this.values();
|
||||||
|
}
|
||||||
|
values() {
|
||||||
|
get(__privateGet(this, _version));
|
||||||
|
return super.values();
|
||||||
|
}
|
||||||
|
entries() {
|
||||||
|
get(__privateGet(this, _version));
|
||||||
|
return super.entries();
|
||||||
|
}
|
||||||
|
[Symbol.iterator]() {
|
||||||
|
return this.keys();
|
||||||
|
}
|
||||||
|
get size() {
|
||||||
|
return get(__privateGet(this, _size));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_sources = new WeakMap();
|
||||||
|
_version = new WeakMap();
|
||||||
|
_size = new WeakMap();
|
||||||
|
_SvelteSet_instances = new WeakSet();
|
||||||
|
// We init as part of the first instance so that we can treeshake this class
|
||||||
|
init_fn2 = function() {
|
||||||
|
inited2 = true;
|
||||||
|
var proto = _SvelteSet.prototype;
|
||||||
|
var set_proto = Set.prototype;
|
||||||
|
for (const method of read_methods) {
|
||||||
|
proto[method] = function(...v) {
|
||||||
|
get(__privateGet(this, _version));
|
||||||
|
return set_proto[method].apply(this, v);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
for (const method of set_like_methods) {
|
||||||
|
proto[method] = function(...v) {
|
||||||
|
get(__privateGet(this, _version));
|
||||||
|
var set2 = (
|
||||||
|
/** @type {Set<T>} */
|
||||||
|
set_proto[method].apply(this, v)
|
||||||
|
);
|
||||||
|
return new _SvelteSet(set2);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var SvelteSet = _SvelteSet;
|
||||||
|
|
||||||
|
// node_modules/svelte/src/reactivity/map.js
|
||||||
|
var _sources2, _version2, _size2, _SvelteMap_instances, read_all_fn;
|
||||||
|
var _SvelteMap = class _SvelteMap extends Map {
|
||||||
|
/**
|
||||||
|
* @param {Iterable<readonly [K, V]> | null | undefined} [value]
|
||||||
|
*/
|
||||||
|
constructor(value) {
|
||||||
|
super();
|
||||||
|
__privateAdd(this, _SvelteMap_instances);
|
||||||
|
/** @type {Map<K, Source<number>>} */
|
||||||
|
__privateAdd(this, _sources2, /* @__PURE__ */ new Map());
|
||||||
|
__privateAdd(this, _version2, source(0));
|
||||||
|
__privateAdd(this, _size2, source(0));
|
||||||
|
if (DEV) value = new Map(value);
|
||||||
|
if (value) {
|
||||||
|
for (var [key, v] of value) {
|
||||||
|
super.set(key, v);
|
||||||
|
}
|
||||||
|
__privateGet(this, _size2).v = super.size;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/** @param {K} key */
|
||||||
|
has(key) {
|
||||||
|
var sources = __privateGet(this, _sources2);
|
||||||
|
var s = sources.get(key);
|
||||||
|
if (s === void 0) {
|
||||||
|
var ret = super.get(key);
|
||||||
|
if (ret !== void 0) {
|
||||||
|
s = source(0);
|
||||||
|
sources.set(key, s);
|
||||||
|
} else {
|
||||||
|
get(__privateGet(this, _version2));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get(s);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {(value: V, key: K, map: Map<K, V>) => void} callbackfn
|
||||||
|
* @param {any} [this_arg]
|
||||||
|
*/
|
||||||
|
forEach(callbackfn, this_arg) {
|
||||||
|
__privateMethod(this, _SvelteMap_instances, read_all_fn).call(this);
|
||||||
|
super.forEach(callbackfn, this_arg);
|
||||||
|
}
|
||||||
|
/** @param {K} key */
|
||||||
|
get(key) {
|
||||||
|
var sources = __privateGet(this, _sources2);
|
||||||
|
var s = sources.get(key);
|
||||||
|
if (s === void 0) {
|
||||||
|
var ret = super.get(key);
|
||||||
|
if (ret !== void 0) {
|
||||||
|
s = source(0);
|
||||||
|
sources.set(key, s);
|
||||||
|
} else {
|
||||||
|
get(__privateGet(this, _version2));
|
||||||
|
return void 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
get(s);
|
||||||
|
return super.get(key);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {K} key
|
||||||
|
* @param {V} value
|
||||||
|
* */
|
||||||
|
set(key, value) {
|
||||||
|
var _a;
|
||||||
|
var sources = __privateGet(this, _sources2);
|
||||||
|
var s = sources.get(key);
|
||||||
|
var prev_res = super.get(key);
|
||||||
|
var res = super.set(key, value);
|
||||||
|
var version = __privateGet(this, _version2);
|
||||||
|
if (s === void 0) {
|
||||||
|
sources.set(key, source(0));
|
||||||
|
set(__privateGet(this, _size2), super.size);
|
||||||
|
increment(version);
|
||||||
|
} else if (prev_res !== value) {
|
||||||
|
increment(s);
|
||||||
|
var v_reactions = version.reactions === null ? null : new Set(version.reactions);
|
||||||
|
var needs_version_increase = v_reactions === null || !((_a = s.reactions) == null ? void 0 : _a.every(
|
||||||
|
(r) => (
|
||||||
|
/** @type {NonNullable<typeof v_reactions>} */
|
||||||
|
v_reactions.has(r)
|
||||||
|
)
|
||||||
|
));
|
||||||
|
if (needs_version_increase) {
|
||||||
|
increment(version);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
/** @param {K} key */
|
||||||
|
delete(key) {
|
||||||
|
var sources = __privateGet(this, _sources2);
|
||||||
|
var s = sources.get(key);
|
||||||
|
var res = super.delete(key);
|
||||||
|
if (s !== void 0) {
|
||||||
|
sources.delete(key);
|
||||||
|
set(__privateGet(this, _size2), super.size);
|
||||||
|
set(s, -1);
|
||||||
|
increment(__privateGet(this, _version2));
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
clear() {
|
||||||
|
if (super.size === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
super.clear();
|
||||||
|
var sources = __privateGet(this, _sources2);
|
||||||
|
set(__privateGet(this, _size2), 0);
|
||||||
|
for (var s of sources.values()) {
|
||||||
|
set(s, -1);
|
||||||
|
}
|
||||||
|
increment(__privateGet(this, _version2));
|
||||||
|
sources.clear();
|
||||||
|
}
|
||||||
|
keys() {
|
||||||
|
get(__privateGet(this, _version2));
|
||||||
|
return super.keys();
|
||||||
|
}
|
||||||
|
values() {
|
||||||
|
__privateMethod(this, _SvelteMap_instances, read_all_fn).call(this);
|
||||||
|
return super.values();
|
||||||
|
}
|
||||||
|
entries() {
|
||||||
|
__privateMethod(this, _SvelteMap_instances, read_all_fn).call(this);
|
||||||
|
return super.entries();
|
||||||
|
}
|
||||||
|
[Symbol.iterator]() {
|
||||||
|
return this.entries();
|
||||||
|
}
|
||||||
|
get size() {
|
||||||
|
get(__privateGet(this, _size2));
|
||||||
|
return super.size;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_sources2 = new WeakMap();
|
||||||
|
_version2 = new WeakMap();
|
||||||
|
_size2 = new WeakMap();
|
||||||
|
_SvelteMap_instances = new WeakSet();
|
||||||
|
read_all_fn = function() {
|
||||||
|
get(__privateGet(this, _version2));
|
||||||
|
var sources = __privateGet(this, _sources2);
|
||||||
|
if (__privateGet(this, _size2).v !== sources.size) {
|
||||||
|
for (var key of __superGet(_SvelteMap.prototype, this, "keys").call(this)) {
|
||||||
|
if (!sources.has(key)) {
|
||||||
|
sources.set(key, source(0));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (var [, s] of __privateGet(this, _sources2)) {
|
||||||
|
get(s);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var SvelteMap = _SvelteMap;
|
||||||
|
|
||||||
|
// node_modules/svelte/src/reactivity/url-search-params.js
|
||||||
|
var REPLACE = Symbol();
|
||||||
|
var _version3, _url, _updating, _SvelteURLSearchParams_instances, update_url_fn;
|
||||||
|
var SvelteURLSearchParams = class extends URLSearchParams {
|
||||||
|
constructor() {
|
||||||
|
super(...arguments);
|
||||||
|
__privateAdd(this, _SvelteURLSearchParams_instances);
|
||||||
|
__privateAdd(this, _version3, source(0));
|
||||||
|
__privateAdd(this, _url, get_current_url());
|
||||||
|
__privateAdd(this, _updating, false);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {URLSearchParams} params
|
||||||
|
*/
|
||||||
|
[REPLACE](params) {
|
||||||
|
if (__privateGet(this, _updating)) return;
|
||||||
|
__privateSet(this, _updating, true);
|
||||||
|
for (const key of [...super.keys()]) {
|
||||||
|
super.delete(key);
|
||||||
|
}
|
||||||
|
for (const [key, value] of params) {
|
||||||
|
super.append(key, value);
|
||||||
|
}
|
||||||
|
increment(__privateGet(this, _version3));
|
||||||
|
__privateSet(this, _updating, false);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @param {string} value
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
append(name, value) {
|
||||||
|
super.append(name, value);
|
||||||
|
__privateMethod(this, _SvelteURLSearchParams_instances, update_url_fn).call(this);
|
||||||
|
increment(__privateGet(this, _version3));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @param {string=} value
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
delete(name, value) {
|
||||||
|
var has_value = super.has(name, value);
|
||||||
|
super.delete(name, value);
|
||||||
|
if (has_value) {
|
||||||
|
__privateMethod(this, _SvelteURLSearchParams_instances, update_url_fn).call(this);
|
||||||
|
increment(__privateGet(this, _version3));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @returns {string|null}
|
||||||
|
*/
|
||||||
|
get(name) {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.get(name);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @returns {string[]}
|
||||||
|
*/
|
||||||
|
getAll(name) {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.getAll(name);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @param {string=} value
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
has(name, value) {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.has(name, value);
|
||||||
|
}
|
||||||
|
keys() {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.keys();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @param {string} name
|
||||||
|
* @param {string} value
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
set(name, value) {
|
||||||
|
var previous = super.getAll(name).join("");
|
||||||
|
super.set(name, value);
|
||||||
|
if (previous !== super.getAll(name).join("")) {
|
||||||
|
__privateMethod(this, _SvelteURLSearchParams_instances, update_url_fn).call(this);
|
||||||
|
increment(__privateGet(this, _version3));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
sort() {
|
||||||
|
super.sort();
|
||||||
|
__privateMethod(this, _SvelteURLSearchParams_instances, update_url_fn).call(this);
|
||||||
|
increment(__privateGet(this, _version3));
|
||||||
|
}
|
||||||
|
toString() {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.toString();
|
||||||
|
}
|
||||||
|
values() {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.values();
|
||||||
|
}
|
||||||
|
entries() {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.entries();
|
||||||
|
}
|
||||||
|
[Symbol.iterator]() {
|
||||||
|
return this.entries();
|
||||||
|
}
|
||||||
|
get size() {
|
||||||
|
get(__privateGet(this, _version3));
|
||||||
|
return super.size;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_version3 = new WeakMap();
|
||||||
|
_url = new WeakMap();
|
||||||
|
_updating = new WeakMap();
|
||||||
|
_SvelteURLSearchParams_instances = new WeakSet();
|
||||||
|
update_url_fn = function() {
|
||||||
|
if (!__privateGet(this, _url) || __privateGet(this, _updating)) return;
|
||||||
|
__privateSet(this, _updating, true);
|
||||||
|
const search = this.toString();
|
||||||
|
__privateGet(this, _url).search = search && `?${search}`;
|
||||||
|
__privateSet(this, _updating, false);
|
||||||
|
};
|
||||||
|
|
||||||
|
// node_modules/svelte/src/reactivity/url.js
|
||||||
|
var current_url = null;
|
||||||
|
function get_current_url() {
|
||||||
|
return current_url;
|
||||||
|
}
|
||||||
|
var _protocol, _username, _password, _hostname, _port, _pathname, _hash, _search, _searchParams;
|
||||||
|
var SvelteURL = class extends URL {
|
||||||
|
/**
|
||||||
|
* @param {string | URL} url
|
||||||
|
* @param {string | URL} [base]
|
||||||
|
*/
|
||||||
|
constructor(url, base) {
|
||||||
|
url = new URL(url, base);
|
||||||
|
super(url);
|
||||||
|
__privateAdd(this, _protocol, source(super.protocol));
|
||||||
|
__privateAdd(this, _username, source(super.username));
|
||||||
|
__privateAdd(this, _password, source(super.password));
|
||||||
|
__privateAdd(this, _hostname, source(super.hostname));
|
||||||
|
__privateAdd(this, _port, source(super.port));
|
||||||
|
__privateAdd(this, _pathname, source(super.pathname));
|
||||||
|
__privateAdd(this, _hash, source(super.hash));
|
||||||
|
__privateAdd(this, _search, source(super.search));
|
||||||
|
__privateAdd(this, _searchParams);
|
||||||
|
current_url = this;
|
||||||
|
__privateSet(this, _searchParams, new SvelteURLSearchParams(url.searchParams));
|
||||||
|
current_url = null;
|
||||||
|
}
|
||||||
|
get hash() {
|
||||||
|
return get(__privateGet(this, _hash));
|
||||||
|
}
|
||||||
|
set hash(value) {
|
||||||
|
super.hash = value;
|
||||||
|
set(__privateGet(this, _hash), super.hash);
|
||||||
|
}
|
||||||
|
get host() {
|
||||||
|
get(__privateGet(this, _hostname));
|
||||||
|
get(__privateGet(this, _port));
|
||||||
|
return super.host;
|
||||||
|
}
|
||||||
|
set host(value) {
|
||||||
|
super.host = value;
|
||||||
|
set(__privateGet(this, _hostname), super.hostname);
|
||||||
|
set(__privateGet(this, _port), super.port);
|
||||||
|
}
|
||||||
|
get hostname() {
|
||||||
|
return get(__privateGet(this, _hostname));
|
||||||
|
}
|
||||||
|
set hostname(value) {
|
||||||
|
super.hostname = value;
|
||||||
|
set(__privateGet(this, _hostname), super.hostname);
|
||||||
|
}
|
||||||
|
get href() {
|
||||||
|
get(__privateGet(this, _protocol));
|
||||||
|
get(__privateGet(this, _username));
|
||||||
|
get(__privateGet(this, _password));
|
||||||
|
get(__privateGet(this, _hostname));
|
||||||
|
get(__privateGet(this, _port));
|
||||||
|
get(__privateGet(this, _pathname));
|
||||||
|
get(__privateGet(this, _hash));
|
||||||
|
get(__privateGet(this, _search));
|
||||||
|
return super.href;
|
||||||
|
}
|
||||||
|
set href(value) {
|
||||||
|
super.href = value;
|
||||||
|
set(__privateGet(this, _protocol), super.protocol);
|
||||||
|
set(__privateGet(this, _username), super.username);
|
||||||
|
set(__privateGet(this, _password), super.password);
|
||||||
|
set(__privateGet(this, _hostname), super.hostname);
|
||||||
|
set(__privateGet(this, _port), super.port);
|
||||||
|
set(__privateGet(this, _pathname), super.pathname);
|
||||||
|
set(__privateGet(this, _hash), super.hash);
|
||||||
|
set(__privateGet(this, _search), super.search);
|
||||||
|
__privateGet(this, _searchParams)[REPLACE](super.searchParams);
|
||||||
|
}
|
||||||
|
get password() {
|
||||||
|
return get(__privateGet(this, _password));
|
||||||
|
}
|
||||||
|
set password(value) {
|
||||||
|
super.password = value;
|
||||||
|
set(__privateGet(this, _password), super.password);
|
||||||
|
}
|
||||||
|
get pathname() {
|
||||||
|
return get(__privateGet(this, _pathname));
|
||||||
|
}
|
||||||
|
set pathname(value) {
|
||||||
|
super.pathname = value;
|
||||||
|
set(__privateGet(this, _pathname), super.pathname);
|
||||||
|
}
|
||||||
|
get port() {
|
||||||
|
return get(__privateGet(this, _port));
|
||||||
|
}
|
||||||
|
set port(value) {
|
||||||
|
super.port = value;
|
||||||
|
set(__privateGet(this, _port), super.port);
|
||||||
|
}
|
||||||
|
get protocol() {
|
||||||
|
return get(__privateGet(this, _protocol));
|
||||||
|
}
|
||||||
|
set protocol(value) {
|
||||||
|
super.protocol = value;
|
||||||
|
set(__privateGet(this, _protocol), super.protocol);
|
||||||
|
}
|
||||||
|
get search() {
|
||||||
|
return get(__privateGet(this, _search));
|
||||||
|
}
|
||||||
|
set search(value) {
|
||||||
|
super.search = value;
|
||||||
|
set(__privateGet(this, _search), value);
|
||||||
|
__privateGet(this, _searchParams)[REPLACE](super.searchParams);
|
||||||
|
}
|
||||||
|
get username() {
|
||||||
|
return get(__privateGet(this, _username));
|
||||||
|
}
|
||||||
|
set username(value) {
|
||||||
|
super.username = value;
|
||||||
|
set(__privateGet(this, _username), super.username);
|
||||||
|
}
|
||||||
|
get origin() {
|
||||||
|
get(__privateGet(this, _protocol));
|
||||||
|
get(__privateGet(this, _hostname));
|
||||||
|
get(__privateGet(this, _port));
|
||||||
|
return super.origin;
|
||||||
|
}
|
||||||
|
get searchParams() {
|
||||||
|
return __privateGet(this, _searchParams);
|
||||||
|
}
|
||||||
|
toString() {
|
||||||
|
return this.href;
|
||||||
|
}
|
||||||
|
toJSON() {
|
||||||
|
return this.href;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
_protocol = new WeakMap();
|
||||||
|
_username = new WeakMap();
|
||||||
|
_password = new WeakMap();
|
||||||
|
_hostname = new WeakMap();
|
||||||
|
_port = new WeakMap();
|
||||||
|
_pathname = new WeakMap();
|
||||||
|
_hash = new WeakMap();
|
||||||
|
_search = new WeakMap();
|
||||||
|
_searchParams = new WeakMap();
|
||||||
|
export {
|
||||||
|
SvelteDate,
|
||||||
|
SvelteMap,
|
||||||
|
SvelteSet,
|
||||||
|
SvelteURL,
|
||||||
|
SvelteURLSearchParams
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=svelte_reactivity.js.map
|
7
web/node_modules/.vite/deps/svelte_reactivity.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_reactivity.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
109
web/node_modules/.vite/deps/svelte_store.js
generated
vendored
Normal file
109
web/node_modules/.vite/deps/svelte_store.js
generated
vendored
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
import {
|
||||||
|
derived,
|
||||||
|
get as get2,
|
||||||
|
readable,
|
||||||
|
readonly,
|
||||||
|
writable
|
||||||
|
} from "./chunk-XWMO4EC7.js";
|
||||||
|
import {
|
||||||
|
increment
|
||||||
|
} from "./chunk-6NVL6SYI.js";
|
||||||
|
import "./chunk-XI64PIGS.js";
|
||||||
|
import "./chunk-FZEWDNFU.js";
|
||||||
|
import {
|
||||||
|
effect_root,
|
||||||
|
effect_tracking,
|
||||||
|
get,
|
||||||
|
noop,
|
||||||
|
render_effect,
|
||||||
|
source,
|
||||||
|
tick
|
||||||
|
} from "./chunk-OTO7APUV.js";
|
||||||
|
import "./chunk-EXIRPMAV.js";
|
||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/store/index-client.js
|
||||||
|
function toStore(get3, set) {
|
||||||
|
let init_value = get3();
|
||||||
|
const store = writable(init_value, (set2) => {
|
||||||
|
let ran = init_value !== get3();
|
||||||
|
const teardown = effect_root(() => {
|
||||||
|
render_effect(() => {
|
||||||
|
const value = get3();
|
||||||
|
if (ran) set2(value);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
ran = true;
|
||||||
|
return teardown;
|
||||||
|
});
|
||||||
|
if (set) {
|
||||||
|
return {
|
||||||
|
set,
|
||||||
|
update: (fn) => set(fn(get3())),
|
||||||
|
subscribe: store.subscribe
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
subscribe: store.subscribe
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function fromStore(store) {
|
||||||
|
let value = (
|
||||||
|
/** @type {V} */
|
||||||
|
void 0
|
||||||
|
);
|
||||||
|
let version = source(0);
|
||||||
|
let subscribers = 0;
|
||||||
|
let unsubscribe = noop;
|
||||||
|
function current() {
|
||||||
|
if (effect_tracking()) {
|
||||||
|
get(version);
|
||||||
|
render_effect(() => {
|
||||||
|
if (subscribers === 0) {
|
||||||
|
let ran = false;
|
||||||
|
unsubscribe = store.subscribe((v) => {
|
||||||
|
value = v;
|
||||||
|
if (ran) increment(version);
|
||||||
|
});
|
||||||
|
ran = true;
|
||||||
|
}
|
||||||
|
subscribers += 1;
|
||||||
|
return () => {
|
||||||
|
tick().then(() => {
|
||||||
|
subscribers -= 1;
|
||||||
|
if (subscribers === 0) {
|
||||||
|
unsubscribe();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
});
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
return get2(store);
|
||||||
|
}
|
||||||
|
if ("set" in store) {
|
||||||
|
return {
|
||||||
|
get current() {
|
||||||
|
return current();
|
||||||
|
},
|
||||||
|
set current(v) {
|
||||||
|
store.set(v);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
get current() {
|
||||||
|
return current();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
derived,
|
||||||
|
fromStore,
|
||||||
|
get2 as get,
|
||||||
|
readable,
|
||||||
|
readonly,
|
||||||
|
toStore,
|
||||||
|
writable
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=svelte_store.js.map
|
7
web/node_modules/.vite/deps/svelte_store.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_store.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../svelte/src/store/index-client.js"],
|
||||||
|
"sourcesContent": ["/** @import { Readable, Writable } from './public.js' */\nimport { noop } from '../internal/shared/utils.js';\nimport {\n\teffect_root,\n\teffect_tracking,\n\trender_effect\n} from '../internal/client/reactivity/effects.js';\nimport { source } from '../internal/client/reactivity/sources.js';\nimport { get as get_source, tick } from '../internal/client/runtime.js';\nimport { increment } from '../reactivity/utils.js';\nimport { get, writable } from './shared/index.js';\n\nexport { derived, get, readable, readonly, writable } from './shared/index.js';\n\n/**\n * @template V\n * @overload\n * @param {() => V} get\n * @param {(v: V) => void} set\n * @returns {Writable<V>}\n */\n/**\n * @template V\n * @overload\n * @param {() => V} get\n * @returns {Readable<V>}\n */\n/**\n * Create a store from a function that returns state, and (to make a writable store), an\n * optional second function that sets state.\n *\n * ```ts\n * import { toStore } from 'svelte/store';\n *\n * let count = $state(0);\n *\n * const store = toStore(() => count, (v) => (count = v));\n * ```\n * @template V\n * @param {() => V} get\n * @param {(v: V) => void} [set]\n * @returns {Writable<V> | Readable<V>}\n */\nexport function toStore(get, set) {\n\tlet init_value = get();\n\tconst store = writable(init_value, (set) => {\n\t\t// If the value has changed before we call subscribe, then\n\t\t// we need to treat the value as already having run\n\t\tlet ran = init_value !== get();\n\n\t\t// TODO do we need a different implementation on the server?\n\t\tconst teardown = effect_root(() => {\n\t\t\trender_effect(() => {\n\t\t\t\tconst value = get();\n\t\t\t\tif (ran) set(value);\n\t\t\t});\n\t\t});\n\n\t\tran = true;\n\n\t\treturn teardown;\n\t});\n\n\tif (set) {\n\t\treturn {\n\t\t\tset,\n\t\t\tupdate: (fn) => set(fn(get())),\n\t\t\tsubscribe: store.subscribe\n\t\t};\n\t}\n\n\treturn {\n\t\tsubscribe: store.subscribe\n\t};\n}\n\n/**\n * @template V\n * @overload\n * @param {Writable<V>} store\n * @returns {{ current: V }}\n */\n/**\n * @template V\n * @overload\n * @param {Readable<V>} store\n * @returns {{ readonly current: V }}\n */\n/**\n * Convert a store to an object with a reactive `current` property. If `store`\n * is a readable store, `current` will be a readonly property.\n *\n * ```ts\n * import { fromStore, get, writable } from 'svelte/store';\n *\n * const store = writable(0);\n *\n * const count = fromStore(store);\n *\n * count.current; // 0;\n * store.set(1);\n * count.current; // 1\n *\n * count.current += 1;\n * get(store); // 2\n * ```\n * @template V\n * @param {Writable<V> | Readable<V>} store\n */\nexport function fromStore(store) {\n\tlet value = /** @type {V} */ (undefined);\n\tlet version = source(0);\n\tlet subscribers = 0;\n\n\tlet unsubscribe = noop;\n\n\tfunction current() {\n\t\tif (effect_tracking()) {\n\t\t\tget_source(version);\n\n\t\t\trender_effect(() => {\n\t\t\t\tif (subscribers === 0) {\n\t\t\t\t\tlet ran = false;\n\n\t\t\t\t\tunsubscribe = store.subscribe((v) => {\n\t\t\t\t\t\tvalue = v;\n\t\t\t\t\t\tif (ran) increment(version);\n\t\t\t\t\t});\n\n\t\t\t\t\tran = true;\n\t\t\t\t}\n\n\t\t\t\tsubscribers += 1;\n\n\t\t\t\treturn () => {\n\t\t\t\t\ttick().then(() => {\n\t\t\t\t\t\t// Only count down after timeout, else we would reach 0 before our own render effect reruns,\n\t\t\t\t\t\t// but reach 1 again when the tick callback of the prior teardown runs. That would mean we\n\t\t\t\t\t\t// re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up.\n\t\t\t\t\t\tsubscribers -= 1;\n\n\t\t\t\t\t\tif (subscribers === 0) {\n\t\t\t\t\t\t\tunsubscribe();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t});\n\n\t\t\treturn value;\n\t\t}\n\n\t\treturn get(store);\n\t}\n\n\tif ('set' in store) {\n\t\treturn {\n\t\t\tget current() {\n\t\t\t\treturn current();\n\t\t\t},\n\t\t\tset current(v) {\n\t\t\t\tstore.set(v);\n\t\t\t}\n\t\t};\n\t}\n\n\treturn {\n\t\tget current() {\n\t\t\treturn current();\n\t\t}\n\t};\n}\n"],
|
||||||
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AA2CO,SAAS,QAAQA,MAAK,KAAK;AACjC,MAAI,aAAaA,KAAI;AACrB,QAAM,QAAQ,SAAS,YAAY,CAACC,SAAQ;AAG3C,QAAI,MAAM,eAAeD,KAAI;AAG7B,UAAM,WAAW,YAAY,MAAM;AAClC,oBAAc,MAAM;AACnB,cAAM,QAAQA,KAAI;AAClB,YAAI,IAAK,CAAAC,KAAI,KAAK;AAAA,MACnB,CAAC;AAAA,IACF,CAAC;AAED,UAAM;AAEN,WAAO;AAAA,EACR,CAAC;AAED,MAAI,KAAK;AACR,WAAO;AAAA,MACN;AAAA,MACA,QAAQ,CAAC,OAAO,IAAI,GAAGD,KAAI,CAAC,CAAC;AAAA,MAC7B,WAAW,MAAM;AAAA,IAClB;AAAA,EACD;AAEA,SAAO;AAAA,IACN,WAAW,MAAM;AAAA,EAClB;AACD;AAmCO,SAAS,UAAU,OAAO;AAChC,MAAI;AAAA;AAAA,IAA0B;AAAA;AAC9B,MAAI,UAAU,OAAO,CAAC;AACtB,MAAI,cAAc;AAElB,MAAI,cAAc;AAElB,WAAS,UAAU;AAClB,QAAI,gBAAgB,GAAG;AACtB,UAAW,OAAO;AAElB,oBAAc,MAAM;AACnB,YAAI,gBAAgB,GAAG;AACtB,cAAI,MAAM;AAEV,wBAAc,MAAM,UAAU,CAAC,MAAM;AACpC,oBAAQ;AACR,gBAAI,IAAK,WAAU,OAAO;AAAA,UAC3B,CAAC;AAED,gBAAM;AAAA,QACP;AAEA,uBAAe;AAEf,eAAO,MAAM;AACZ,eAAK,EAAE,KAAK,MAAM;AAIjB,2BAAe;AAEf,gBAAI,gBAAgB,GAAG;AACtB,0BAAY;AAAA,YACb;AAAA,UACD,CAAC;AAAA,QACF;AAAA,MACD,CAAC;AAED,aAAO;AAAA,IACR;AAEA,WAAOA,KAAI,KAAK;AAAA,EACjB;AAEA,MAAI,SAAS,OAAO;AACnB,WAAO;AAAA,MACN,IAAI,UAAU;AACb,eAAO,QAAQ;AAAA,MAChB;AAAA,MACA,IAAI,QAAQ,GAAG;AACd,cAAM,IAAI,CAAC;AAAA,MACZ;AAAA,IACD;AAAA,EACD;AAEA,SAAO;AAAA,IACN,IAAI,UAAU;AACb,aAAO,QAAQ;AAAA,IAChB;AAAA,EACD;AACD;",
|
||||||
|
"names": ["get", "set"]
|
||||||
|
}
|
198
web/node_modules/.vite/deps/svelte_transition.js
generated
vendored
Normal file
198
web/node_modules/.vite/deps/svelte_transition.js
generated
vendored
Normal file
@ -0,0 +1,198 @@
|
|||||||
|
import "./chunk-UGBVNEQM.js";
|
||||||
|
|
||||||
|
// node_modules/svelte/src/transition/index.js
|
||||||
|
var linear = (x) => x;
|
||||||
|
function cubic_out(t) {
|
||||||
|
const f = t - 1;
|
||||||
|
return f * f * f + 1;
|
||||||
|
}
|
||||||
|
function cubic_in_out(t) {
|
||||||
|
return t < 0.5 ? 4 * t * t * t : 0.5 * Math.pow(2 * t - 2, 3) + 1;
|
||||||
|
}
|
||||||
|
function split_css_unit(value) {
|
||||||
|
const split = typeof value === "string" && value.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
||||||
|
return split ? [parseFloat(split[1]), split[2] || "px"] : [
|
||||||
|
/** @type {number} */
|
||||||
|
value,
|
||||||
|
"px"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
function blur(node, { delay = 0, duration = 400, easing = cubic_in_out, amount = 5, opacity = 0 } = {}) {
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
const target_opacity = +style.opacity;
|
||||||
|
const f = style.filter === "none" ? "" : style.filter;
|
||||||
|
const od = target_opacity * (1 - opacity);
|
||||||
|
const [value, unit] = split_css_unit(amount);
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
easing,
|
||||||
|
css: (_t, u) => `opacity: ${target_opacity - od * u}; filter: ${f} blur(${u * value}${unit});`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function fade(node, { delay = 0, duration = 400, easing = linear } = {}) {
|
||||||
|
const o = +getComputedStyle(node).opacity;
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
easing,
|
||||||
|
css: (t) => `opacity: ${t * o}`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function fly(node, { delay = 0, duration = 400, easing = cubic_out, x = 0, y = 0, opacity = 0 } = {}) {
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
const target_opacity = +style.opacity;
|
||||||
|
const transform = style.transform === "none" ? "" : style.transform;
|
||||||
|
const od = target_opacity * (1 - opacity);
|
||||||
|
const [x_value, x_unit] = split_css_unit(x);
|
||||||
|
const [y_value, y_unit] = split_css_unit(y);
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
easing,
|
||||||
|
css: (t, u) => `
|
||||||
|
transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});
|
||||||
|
opacity: ${target_opacity - od * u}`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function slide(node, { delay = 0, duration = 400, easing = cubic_out, axis = "y" } = {}) {
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
const opacity = +style.opacity;
|
||||||
|
const primary_property = axis === "y" ? "height" : "width";
|
||||||
|
const primary_property_value = parseFloat(style[primary_property]);
|
||||||
|
const secondary_properties = axis === "y" ? ["top", "bottom"] : ["left", "right"];
|
||||||
|
const capitalized_secondary_properties = secondary_properties.map(
|
||||||
|
(e) => (
|
||||||
|
/** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
|
||||||
|
`${e[0].toUpperCase()}${e.slice(1)}`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
const padding_start_value = parseFloat(style[`padding${capitalized_secondary_properties[0]}`]);
|
||||||
|
const padding_end_value = parseFloat(style[`padding${capitalized_secondary_properties[1]}`]);
|
||||||
|
const margin_start_value = parseFloat(style[`margin${capitalized_secondary_properties[0]}`]);
|
||||||
|
const margin_end_value = parseFloat(style[`margin${capitalized_secondary_properties[1]}`]);
|
||||||
|
const border_width_start_value = parseFloat(
|
||||||
|
style[`border${capitalized_secondary_properties[0]}Width`]
|
||||||
|
);
|
||||||
|
const border_width_end_value = parseFloat(
|
||||||
|
style[`border${capitalized_secondary_properties[1]}Width`]
|
||||||
|
);
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
easing,
|
||||||
|
css: (t) => `overflow: hidden;opacity: ${Math.min(t * 20, 1) * opacity};${primary_property}: ${t * primary_property_value}px;padding-${secondary_properties[0]}: ${t * padding_start_value}px;padding-${secondary_properties[1]}: ${t * padding_end_value}px;margin-${secondary_properties[0]}: ${t * margin_start_value}px;margin-${secondary_properties[1]}: ${t * margin_end_value}px;border-${secondary_properties[0]}-width: ${t * border_width_start_value}px;border-${secondary_properties[1]}-width: ${t * border_width_end_value}px;`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function scale(node, { delay = 0, duration = 400, easing = cubic_out, start = 0, opacity = 0 } = {}) {
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
const target_opacity = +style.opacity;
|
||||||
|
const transform = style.transform === "none" ? "" : style.transform;
|
||||||
|
const sd = 1 - start;
|
||||||
|
const od = target_opacity * (1 - opacity);
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
easing,
|
||||||
|
css: (_t, u) => `
|
||||||
|
transform: ${transform} scale(${1 - sd * u});
|
||||||
|
opacity: ${target_opacity - od * u}
|
||||||
|
`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function draw(node, { delay = 0, speed, duration, easing = cubic_in_out } = {}) {
|
||||||
|
let len = node.getTotalLength();
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
if (style.strokeLinecap !== "butt") {
|
||||||
|
len += parseInt(style.strokeWidth);
|
||||||
|
}
|
||||||
|
if (duration === void 0) {
|
||||||
|
if (speed === void 0) {
|
||||||
|
duration = 800;
|
||||||
|
} else {
|
||||||
|
duration = len / speed;
|
||||||
|
}
|
||||||
|
} else if (typeof duration === "function") {
|
||||||
|
duration = duration(len);
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
easing,
|
||||||
|
css: (_, u) => `
|
||||||
|
stroke-dasharray: ${len};
|
||||||
|
stroke-dashoffset: ${u * len};
|
||||||
|
`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function assign(tar, src) {
|
||||||
|
for (const k in src) tar[k] = src[k];
|
||||||
|
return (
|
||||||
|
/** @type {T & S} */
|
||||||
|
tar
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function crossfade({ fallback, ...defaults }) {
|
||||||
|
const to_receive = /* @__PURE__ */ new Map();
|
||||||
|
const to_send = /* @__PURE__ */ new Map();
|
||||||
|
function crossfade2(from_node, node, params) {
|
||||||
|
const {
|
||||||
|
delay = 0,
|
||||||
|
duration = (
|
||||||
|
/** @param {number} d */
|
||||||
|
(d2) => Math.sqrt(d2) * 30
|
||||||
|
),
|
||||||
|
easing = cubic_out
|
||||||
|
} = assign(assign({}, defaults), params);
|
||||||
|
const from = from_node.getBoundingClientRect();
|
||||||
|
const to = node.getBoundingClientRect();
|
||||||
|
const dx = from.left - to.left;
|
||||||
|
const dy = from.top - to.top;
|
||||||
|
const dw = from.width / to.width;
|
||||||
|
const dh = from.height / to.height;
|
||||||
|
const d = Math.sqrt(dx * dx + dy * dy);
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
const transform = style.transform === "none" ? "" : style.transform;
|
||||||
|
const opacity = +style.opacity;
|
||||||
|
return {
|
||||||
|
delay,
|
||||||
|
duration: typeof duration === "function" ? duration(d) : duration,
|
||||||
|
easing,
|
||||||
|
css: (t, u) => `
|
||||||
|
opacity: ${t * opacity};
|
||||||
|
transform-origin: top left;
|
||||||
|
transform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});
|
||||||
|
`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function transition(items, counterparts, intro) {
|
||||||
|
return (node, params) => {
|
||||||
|
items.set(params.key, node);
|
||||||
|
return () => {
|
||||||
|
if (counterparts.has(params.key)) {
|
||||||
|
const other_node = counterparts.get(params.key);
|
||||||
|
counterparts.delete(params.key);
|
||||||
|
return crossfade2(
|
||||||
|
/** @type {Element} */
|
||||||
|
other_node,
|
||||||
|
node,
|
||||||
|
params
|
||||||
|
);
|
||||||
|
}
|
||||||
|
items.delete(params.key);
|
||||||
|
return fallback && fallback(node, params, intro);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return [transition(to_send, to_receive, false), transition(to_receive, to_send, true)];
|
||||||
|
}
|
||||||
|
export {
|
||||||
|
blur,
|
||||||
|
crossfade,
|
||||||
|
draw,
|
||||||
|
fade,
|
||||||
|
fly,
|
||||||
|
scale,
|
||||||
|
slide
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=svelte_transition.js.map
|
7
web/node_modules/.vite/deps/svelte_transition.js.map
generated
vendored
Normal file
7
web/node_modules/.vite/deps/svelte_transition.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
128
web/node_modules/@alloc/quick-lru/index.d.ts
generated
vendored
Normal file
128
web/node_modules/@alloc/quick-lru/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
declare namespace QuickLRU {
|
||||||
|
interface Options<KeyType, ValueType> {
|
||||||
|
/**
|
||||||
|
The maximum number of milliseconds an item should remain in the cache.
|
||||||
|
|
||||||
|
@default Infinity
|
||||||
|
|
||||||
|
By default, `maxAge` will be `Infinity`, which means that items will never expire.
|
||||||
|
Lazy expiration upon the next write or read call.
|
||||||
|
|
||||||
|
Individual expiration of an item can be specified by the `set(key, value, maxAge)` method.
|
||||||
|
*/
|
||||||
|
readonly maxAge?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The maximum number of items before evicting the least recently used items.
|
||||||
|
*/
|
||||||
|
readonly maxSize: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Called right before an item is evicted from the cache.
|
||||||
|
|
||||||
|
Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`).
|
||||||
|
*/
|
||||||
|
onEviction?: (key: KeyType, value: ValueType) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
declare class QuickLRU<KeyType, ValueType>
|
||||||
|
implements Iterable<[KeyType, ValueType]> {
|
||||||
|
/**
|
||||||
|
The stored item count.
|
||||||
|
*/
|
||||||
|
readonly size: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Simple ["Least Recently Used" (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29).
|
||||||
|
|
||||||
|
The instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop.
|
||||||
|
|
||||||
|
@example
|
||||||
|
```
|
||||||
|
import QuickLRU = require('quick-lru');
|
||||||
|
|
||||||
|
const lru = new QuickLRU({maxSize: 1000});
|
||||||
|
|
||||||
|
lru.set('🦄', '🌈');
|
||||||
|
|
||||||
|
lru.has('🦄');
|
||||||
|
//=> true
|
||||||
|
|
||||||
|
lru.get('🦄');
|
||||||
|
//=> '🌈'
|
||||||
|
```
|
||||||
|
*/
|
||||||
|
constructor(options: QuickLRU.Options<KeyType, ValueType>);
|
||||||
|
|
||||||
|
[Symbol.iterator](): IterableIterator<[KeyType, ValueType]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set an item. Returns the instance.
|
||||||
|
|
||||||
|
Individual expiration of an item can be specified with the `maxAge` option. If not specified, the global `maxAge` value will be used in case it is specified in the constructor, otherwise the item will never expire.
|
||||||
|
|
||||||
|
@returns The list instance.
|
||||||
|
*/
|
||||||
|
set(key: KeyType, value: ValueType, options?: {maxAge?: number}): this;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get an item.
|
||||||
|
|
||||||
|
@returns The stored item or `undefined`.
|
||||||
|
*/
|
||||||
|
get(key: KeyType): ValueType | undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Check if an item exists.
|
||||||
|
*/
|
||||||
|
has(key: KeyType): boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get an item without marking it as recently used.
|
||||||
|
|
||||||
|
@returns The stored item or `undefined`.
|
||||||
|
*/
|
||||||
|
peek(key: KeyType): ValueType | undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Delete an item.
|
||||||
|
|
||||||
|
@returns `true` if the item is removed or `false` if the item doesn't exist.
|
||||||
|
*/
|
||||||
|
delete(key: KeyType): boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Delete all items.
|
||||||
|
*/
|
||||||
|
clear(): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Update the `maxSize` in-place, discarding items as necessary. Insertion order is mostly preserved, though this is not a strong guarantee.
|
||||||
|
|
||||||
|
Useful for on-the-fly tuning of cache sizes in live systems.
|
||||||
|
*/
|
||||||
|
resize(maxSize: number): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Iterable for all the keys.
|
||||||
|
*/
|
||||||
|
keys(): IterableIterator<KeyType>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Iterable for all the values.
|
||||||
|
*/
|
||||||
|
values(): IterableIterator<ValueType>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Iterable for all entries, starting with the oldest (ascending in recency).
|
||||||
|
*/
|
||||||
|
entriesAscending(): IterableIterator<[KeyType, ValueType]>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Iterable for all entries, starting with the newest (descending in recency).
|
||||||
|
*/
|
||||||
|
entriesDescending(): IterableIterator<[KeyType, ValueType]>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export = QuickLRU;
|
263
web/node_modules/@alloc/quick-lru/index.js
generated
vendored
Normal file
263
web/node_modules/@alloc/quick-lru/index.js
generated
vendored
Normal file
@ -0,0 +1,263 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class QuickLRU {
|
||||||
|
constructor(options = {}) {
|
||||||
|
if (!(options.maxSize && options.maxSize > 0)) {
|
||||||
|
throw new TypeError('`maxSize` must be a number greater than 0');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.maxAge === 'number' && options.maxAge === 0) {
|
||||||
|
throw new TypeError('`maxAge` must be a number greater than 0');
|
||||||
|
}
|
||||||
|
|
||||||
|
this.maxSize = options.maxSize;
|
||||||
|
this.maxAge = options.maxAge || Infinity;
|
||||||
|
this.onEviction = options.onEviction;
|
||||||
|
this.cache = new Map();
|
||||||
|
this.oldCache = new Map();
|
||||||
|
this._size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
_emitEvictions(cache) {
|
||||||
|
if (typeof this.onEviction !== 'function') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const [key, item] of cache) {
|
||||||
|
this.onEviction(key, item.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_deleteIfExpired(key, item) {
|
||||||
|
if (typeof item.expiry === 'number' && item.expiry <= Date.now()) {
|
||||||
|
if (typeof this.onEviction === 'function') {
|
||||||
|
this.onEviction(key, item.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.delete(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
_getOrDeleteIfExpired(key, item) {
|
||||||
|
const deleted = this._deleteIfExpired(key, item);
|
||||||
|
if (deleted === false) {
|
||||||
|
return item.value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_getItemValue(key, item) {
|
||||||
|
return item.expiry ? this._getOrDeleteIfExpired(key, item) : item.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
_peek(key, cache) {
|
||||||
|
const item = cache.get(key);
|
||||||
|
|
||||||
|
return this._getItemValue(key, item);
|
||||||
|
}
|
||||||
|
|
||||||
|
_set(key, value) {
|
||||||
|
this.cache.set(key, value);
|
||||||
|
this._size++;
|
||||||
|
|
||||||
|
if (this._size >= this.maxSize) {
|
||||||
|
this._size = 0;
|
||||||
|
this._emitEvictions(this.oldCache);
|
||||||
|
this.oldCache = this.cache;
|
||||||
|
this.cache = new Map();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
_moveToRecent(key, item) {
|
||||||
|
this.oldCache.delete(key);
|
||||||
|
this._set(key, item);
|
||||||
|
}
|
||||||
|
|
||||||
|
* _entriesAscending() {
|
||||||
|
for (const item of this.oldCache) {
|
||||||
|
const [key, value] = item;
|
||||||
|
if (!this.cache.has(key)) {
|
||||||
|
const deleted = this._deleteIfExpired(key, value);
|
||||||
|
if (deleted === false) {
|
||||||
|
yield item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const item of this.cache) {
|
||||||
|
const [key, value] = item;
|
||||||
|
const deleted = this._deleteIfExpired(key, value);
|
||||||
|
if (deleted === false) {
|
||||||
|
yield item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
get(key) {
|
||||||
|
if (this.cache.has(key)) {
|
||||||
|
const item = this.cache.get(key);
|
||||||
|
|
||||||
|
return this._getItemValue(key, item);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.oldCache.has(key)) {
|
||||||
|
const item = this.oldCache.get(key);
|
||||||
|
if (this._deleteIfExpired(key, item) === false) {
|
||||||
|
this._moveToRecent(key, item);
|
||||||
|
return item.value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
set(key, value, {maxAge = this.maxAge === Infinity ? undefined : Date.now() + this.maxAge} = {}) {
|
||||||
|
if (this.cache.has(key)) {
|
||||||
|
this.cache.set(key, {
|
||||||
|
value,
|
||||||
|
maxAge
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this._set(key, {value, expiry: maxAge});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
has(key) {
|
||||||
|
if (this.cache.has(key)) {
|
||||||
|
return !this._deleteIfExpired(key, this.cache.get(key));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.oldCache.has(key)) {
|
||||||
|
return !this._deleteIfExpired(key, this.oldCache.get(key));
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
peek(key) {
|
||||||
|
if (this.cache.has(key)) {
|
||||||
|
return this._peek(key, this.cache);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.oldCache.has(key)) {
|
||||||
|
return this._peek(key, this.oldCache);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
delete(key) {
|
||||||
|
const deleted = this.cache.delete(key);
|
||||||
|
if (deleted) {
|
||||||
|
this._size--;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.oldCache.delete(key) || deleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
clear() {
|
||||||
|
this.cache.clear();
|
||||||
|
this.oldCache.clear();
|
||||||
|
this._size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
resize(newSize) {
|
||||||
|
if (!(newSize && newSize > 0)) {
|
||||||
|
throw new TypeError('`maxSize` must be a number greater than 0');
|
||||||
|
}
|
||||||
|
|
||||||
|
const items = [...this._entriesAscending()];
|
||||||
|
const removeCount = items.length - newSize;
|
||||||
|
if (removeCount < 0) {
|
||||||
|
this.cache = new Map(items);
|
||||||
|
this.oldCache = new Map();
|
||||||
|
this._size = items.length;
|
||||||
|
} else {
|
||||||
|
if (removeCount > 0) {
|
||||||
|
this._emitEvictions(items.slice(0, removeCount));
|
||||||
|
}
|
||||||
|
|
||||||
|
this.oldCache = new Map(items.slice(removeCount));
|
||||||
|
this.cache = new Map();
|
||||||
|
this._size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.maxSize = newSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
* keys() {
|
||||||
|
for (const [key] of this) {
|
||||||
|
yield key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
* values() {
|
||||||
|
for (const [, value] of this) {
|
||||||
|
yield value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
* [Symbol.iterator]() {
|
||||||
|
for (const item of this.cache) {
|
||||||
|
const [key, value] = item;
|
||||||
|
const deleted = this._deleteIfExpired(key, value);
|
||||||
|
if (deleted === false) {
|
||||||
|
yield [key, value.value];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const item of this.oldCache) {
|
||||||
|
const [key, value] = item;
|
||||||
|
if (!this.cache.has(key)) {
|
||||||
|
const deleted = this._deleteIfExpired(key, value);
|
||||||
|
if (deleted === false) {
|
||||||
|
yield [key, value.value];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
* entriesDescending() {
|
||||||
|
let items = [...this.cache];
|
||||||
|
for (let i = items.length - 1; i >= 0; --i) {
|
||||||
|
const item = items[i];
|
||||||
|
const [key, value] = item;
|
||||||
|
const deleted = this._deleteIfExpired(key, value);
|
||||||
|
if (deleted === false) {
|
||||||
|
yield [key, value.value];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
items = [...this.oldCache];
|
||||||
|
for (let i = items.length - 1; i >= 0; --i) {
|
||||||
|
const item = items[i];
|
||||||
|
const [key, value] = item;
|
||||||
|
if (!this.cache.has(key)) {
|
||||||
|
const deleted = this._deleteIfExpired(key, value);
|
||||||
|
if (deleted === false) {
|
||||||
|
yield [key, value.value];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
* entriesAscending() {
|
||||||
|
for (const [key, value] of this._entriesAscending()) {
|
||||||
|
yield [key, value.value];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
get size() {
|
||||||
|
if (!this._size) {
|
||||||
|
return this.oldCache.size;
|
||||||
|
}
|
||||||
|
|
||||||
|
let oldCacheSize = 0;
|
||||||
|
for (const key of this.oldCache.keys()) {
|
||||||
|
if (!this.cache.has(key)) {
|
||||||
|
oldCacheSize++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return Math.min(this._size + oldCacheSize, this.maxSize);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = QuickLRU;
|
9
web/node_modules/@alloc/quick-lru/license
generated
vendored
Normal file
9
web/node_modules/@alloc/quick-lru/license
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
43
web/node_modules/@alloc/quick-lru/package.json
generated
vendored
Normal file
43
web/node_modules/@alloc/quick-lru/package.json
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"name": "@alloc/quick-lru",
|
||||||
|
"version": "5.2.0",
|
||||||
|
"description": "Simple “Least Recently Used” (LRU) cache",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": "sindresorhus/quick-lru",
|
||||||
|
"funding": "https://github.com/sponsors/sindresorhus",
|
||||||
|
"author": {
|
||||||
|
"name": "Sindre Sorhus",
|
||||||
|
"email": "sindresorhus@gmail.com",
|
||||||
|
"url": "https://sindresorhus.com"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "xo && nyc ava && tsd"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"index.js",
|
||||||
|
"index.d.ts"
|
||||||
|
],
|
||||||
|
"keywords": [
|
||||||
|
"lru",
|
||||||
|
"quick",
|
||||||
|
"cache",
|
||||||
|
"caching",
|
||||||
|
"least",
|
||||||
|
"recently",
|
||||||
|
"used",
|
||||||
|
"fast",
|
||||||
|
"map",
|
||||||
|
"hash",
|
||||||
|
"buffer"
|
||||||
|
],
|
||||||
|
"devDependencies": {
|
||||||
|
"ava": "^2.0.0",
|
||||||
|
"coveralls": "^3.0.3",
|
||||||
|
"nyc": "^15.0.0",
|
||||||
|
"tsd": "^0.11.0",
|
||||||
|
"xo": "^0.26.0"
|
||||||
|
}
|
||||||
|
}
|
139
web/node_modules/@alloc/quick-lru/readme.md
generated
vendored
Normal file
139
web/node_modules/@alloc/quick-lru/readme.md
generated
vendored
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
# quick-lru [![Build Status](https://travis-ci.org/sindresorhus/quick-lru.svg?branch=master)](https://travis-ci.org/sindresorhus/quick-lru) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/quick-lru/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/quick-lru?branch=master)
|
||||||
|
|
||||||
|
> Simple [“Least Recently Used” (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29)
|
||||||
|
|
||||||
|
Useful when you need to cache something and limit memory usage.
|
||||||
|
|
||||||
|
Inspired by the [`hashlru` algorithm](https://github.com/dominictarr/hashlru#algorithm), but instead uses [`Map`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map) to support keys of any type, not just strings, and values can be `undefined`.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install quick-lru
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```js
|
||||||
|
const QuickLRU = require('quick-lru');
|
||||||
|
|
||||||
|
const lru = new QuickLRU({maxSize: 1000});
|
||||||
|
|
||||||
|
lru.set('🦄', '🌈');
|
||||||
|
|
||||||
|
lru.has('🦄');
|
||||||
|
//=> true
|
||||||
|
|
||||||
|
lru.get('🦄');
|
||||||
|
//=> '🌈'
|
||||||
|
```
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
### new QuickLRU(options?)
|
||||||
|
|
||||||
|
Returns a new instance.
|
||||||
|
|
||||||
|
### options
|
||||||
|
|
||||||
|
Type: `object`
|
||||||
|
|
||||||
|
#### maxSize
|
||||||
|
|
||||||
|
*Required*\
|
||||||
|
Type: `number`
|
||||||
|
|
||||||
|
The maximum number of items before evicting the least recently used items.
|
||||||
|
|
||||||
|
#### maxAge
|
||||||
|
|
||||||
|
Type: `number`\
|
||||||
|
Default: `Infinity`
|
||||||
|
|
||||||
|
The maximum number of milliseconds an item should remain in cache.
|
||||||
|
By default maxAge will be Infinity, which means that items will never expire.
|
||||||
|
|
||||||
|
Lazy expiration happens upon the next `write` or `read` call.
|
||||||
|
|
||||||
|
Individual expiration of an item can be specified by the `set(key, value, options)` method.
|
||||||
|
|
||||||
|
#### onEviction
|
||||||
|
|
||||||
|
*Optional*\
|
||||||
|
Type: `(key, value) => void`
|
||||||
|
|
||||||
|
Called right before an item is evicted from the cache.
|
||||||
|
|
||||||
|
Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`).
|
||||||
|
|
||||||
|
### Instance
|
||||||
|
|
||||||
|
The instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop.
|
||||||
|
|
||||||
|
Both `key` and `value` can be of any type.
|
||||||
|
|
||||||
|
#### .set(key, value, options?)
|
||||||
|
|
||||||
|
Set an item. Returns the instance.
|
||||||
|
|
||||||
|
Individual expiration of an item can be specified with the `maxAge` option. If not specified, the global `maxAge` value will be used in case it is specified on the constructor, otherwise the item will never expire.
|
||||||
|
|
||||||
|
#### .get(key)
|
||||||
|
|
||||||
|
Get an item.
|
||||||
|
|
||||||
|
#### .has(key)
|
||||||
|
|
||||||
|
Check if an item exists.
|
||||||
|
|
||||||
|
#### .peek(key)
|
||||||
|
|
||||||
|
Get an item without marking it as recently used.
|
||||||
|
|
||||||
|
#### .delete(key)
|
||||||
|
|
||||||
|
Delete an item.
|
||||||
|
|
||||||
|
Returns `true` if the item is removed or `false` if the item doesn't exist.
|
||||||
|
|
||||||
|
#### .clear()
|
||||||
|
|
||||||
|
Delete all items.
|
||||||
|
|
||||||
|
#### .resize(maxSize)
|
||||||
|
|
||||||
|
Update the `maxSize`, discarding items as necessary. Insertion order is mostly preserved, though this is not a strong guarantee.
|
||||||
|
|
||||||
|
Useful for on-the-fly tuning of cache sizes in live systems.
|
||||||
|
|
||||||
|
#### .keys()
|
||||||
|
|
||||||
|
Iterable for all the keys.
|
||||||
|
|
||||||
|
#### .values()
|
||||||
|
|
||||||
|
Iterable for all the values.
|
||||||
|
|
||||||
|
#### .entriesAscending()
|
||||||
|
|
||||||
|
Iterable for all entries, starting with the oldest (ascending in recency).
|
||||||
|
|
||||||
|
#### .entriesDescending()
|
||||||
|
|
||||||
|
Iterable for all entries, starting with the newest (descending in recency).
|
||||||
|
|
||||||
|
#### .size
|
||||||
|
|
||||||
|
The stored item count.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<b>
|
||||||
|
<a href="https://tidelift.com/subscription/pkg/npm-quick-lru?utm_source=npm-quick-lru&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||||
|
</b>
|
||||||
|
<br>
|
||||||
|
<sub>
|
||||||
|
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||||
|
</sub>
|
||||||
|
</div>
|
202
web/node_modules/@ampproject/remapping/LICENSE
generated
vendored
Normal file
202
web/node_modules/@ampproject/remapping/LICENSE
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
218
web/node_modules/@ampproject/remapping/README.md
generated
vendored
Normal file
218
web/node_modules/@ampproject/remapping/README.md
generated
vendored
Normal file
@ -0,0 +1,218 @@
|
|||||||
|
# @ampproject/remapping
|
||||||
|
|
||||||
|
> Remap sequential sourcemaps through transformations to point at the original source code
|
||||||
|
|
||||||
|
Remapping allows you to take the sourcemaps generated through transforming your code and "remap"
|
||||||
|
them to the original source locations. Think "my minified code, transformed with babel and bundled
|
||||||
|
with webpack", all pointing to the correct location in your original source code.
|
||||||
|
|
||||||
|
With remapping, none of your source code transformations need to be aware of the input's sourcemap,
|
||||||
|
they only need to generate an output sourcemap. This greatly simplifies building custom
|
||||||
|
transformations (think a find-and-replace).
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install @ampproject/remapping
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
function remapping(
|
||||||
|
map: SourceMap | SourceMap[],
|
||||||
|
loader: (file: string, ctx: LoaderContext) => (SourceMap | null | undefined),
|
||||||
|
options?: { excludeContent: boolean, decodedMappings: boolean }
|
||||||
|
): SourceMap;
|
||||||
|
|
||||||
|
// LoaderContext gives the loader the importing sourcemap, tree depth, the ability to override the
|
||||||
|
// "source" location (where child sources are resolved relative to, or the location of original
|
||||||
|
// source), and the ability to override the "content" of an original source for inclusion in the
|
||||||
|
// output sourcemap.
|
||||||
|
type LoaderContext = {
|
||||||
|
readonly importer: string;
|
||||||
|
readonly depth: number;
|
||||||
|
source: string;
|
||||||
|
content: string | null | undefined;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
`remapping` takes the final output sourcemap, and a `loader` function. For every source file pointer
|
||||||
|
in the sourcemap, the `loader` will be called with the resolved path. If the path itself represents
|
||||||
|
a transformed file (it has a sourcmap associated with it), then the `loader` should return that
|
||||||
|
sourcemap. If not, the path will be treated as an original, untransformed source code.
|
||||||
|
|
||||||
|
```js
|
||||||
|
// Babel transformed "helloworld.js" into "transformed.js"
|
||||||
|
const transformedMap = JSON.stringify({
|
||||||
|
file: 'transformed.js',
|
||||||
|
// 1st column of 2nd line of output file translates into the 1st source
|
||||||
|
// file, line 3, column 2
|
||||||
|
mappings: ';CAEE',
|
||||||
|
sources: ['helloworld.js'],
|
||||||
|
version: 3,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Uglify minified "transformed.js" into "transformed.min.js"
|
||||||
|
const minifiedTransformedMap = JSON.stringify({
|
||||||
|
file: 'transformed.min.js',
|
||||||
|
// 0th column of 1st line of output file translates into the 1st source
|
||||||
|
// file, line 2, column 1.
|
||||||
|
mappings: 'AACC',
|
||||||
|
names: [],
|
||||||
|
sources: ['transformed.js'],
|
||||||
|
version: 3,
|
||||||
|
});
|
||||||
|
|
||||||
|
const remapped = remapping(
|
||||||
|
minifiedTransformedMap,
|
||||||
|
(file, ctx) => {
|
||||||
|
|
||||||
|
// The "transformed.js" file is an transformed file.
|
||||||
|
if (file === 'transformed.js') {
|
||||||
|
// The root importer is empty.
|
||||||
|
console.assert(ctx.importer === '');
|
||||||
|
// The depth in the sourcemap tree we're currently loading.
|
||||||
|
// The root `minifiedTransformedMap` is depth 0, and its source children are depth 1, etc.
|
||||||
|
console.assert(ctx.depth === 1);
|
||||||
|
|
||||||
|
return transformedMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Loader will be called to load transformedMap's source file pointers as well.
|
||||||
|
console.assert(file === 'helloworld.js');
|
||||||
|
// `transformed.js`'s sourcemap points into `helloworld.js`.
|
||||||
|
console.assert(ctx.importer === 'transformed.js');
|
||||||
|
// This is a source child of `transformed`, which is a source child of `minifiedTransformedMap`.
|
||||||
|
console.assert(ctx.depth === 2);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(remapped);
|
||||||
|
// {
|
||||||
|
// file: 'transpiled.min.js',
|
||||||
|
// mappings: 'AAEE',
|
||||||
|
// sources: ['helloworld.js'],
|
||||||
|
// version: 3,
|
||||||
|
// };
|
||||||
|
```
|
||||||
|
|
||||||
|
In this example, `loader` will be called twice:
|
||||||
|
|
||||||
|
1. `"transformed.js"`, the first source file pointer in the `minifiedTransformedMap`. We return the
|
||||||
|
associated sourcemap for it (its a transformed file, after all) so that sourcemap locations can
|
||||||
|
be traced through it into the source files it represents.
|
||||||
|
2. `"helloworld.js"`, our original, unmodified source code. This file does not have a sourcemap, so
|
||||||
|
we return `null`.
|
||||||
|
|
||||||
|
The `remapped` sourcemap now points from `transformed.min.js` into locations in `helloworld.js`. If
|
||||||
|
you were to read the `mappings`, it says "0th column of the first line output line points to the 1st
|
||||||
|
column of the 2nd line of the file `helloworld.js`".
|
||||||
|
|
||||||
|
### Multiple transformations of a file
|
||||||
|
|
||||||
|
As a convenience, if you have multiple single-source transformations of a file, you may pass an
|
||||||
|
array of sourcemap files in the order of most-recent transformation sourcemap first. Note that this
|
||||||
|
changes the `importer` and `depth` of each call to our loader. So our above example could have been
|
||||||
|
written as:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const remapped = remapping(
|
||||||
|
[minifiedTransformedMap, transformedMap],
|
||||||
|
() => null
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(remapped);
|
||||||
|
// {
|
||||||
|
// file: 'transpiled.min.js',
|
||||||
|
// mappings: 'AAEE',
|
||||||
|
// sources: ['helloworld.js'],
|
||||||
|
// version: 3,
|
||||||
|
// };
|
||||||
|
```
|
||||||
|
|
||||||
|
### Advanced control of the loading graph
|
||||||
|
|
||||||
|
#### `source`
|
||||||
|
|
||||||
|
The `source` property can overridden to any value to change the location of the current load. Eg,
|
||||||
|
for an original source file, it allows us to change the location to the original source regardless
|
||||||
|
of what the sourcemap source entry says. And for transformed files, it allows us to change the
|
||||||
|
relative resolving location for child sources of the loaded sourcemap.
|
||||||
|
|
||||||
|
```js
|
||||||
|
const remapped = remapping(
|
||||||
|
minifiedTransformedMap,
|
||||||
|
(file, ctx) => {
|
||||||
|
|
||||||
|
if (file === 'transformed.js') {
|
||||||
|
// We pretend the transformed.js file actually exists in the 'src/' directory. When the nested
|
||||||
|
// source files are loaded, they will now be relative to `src/`.
|
||||||
|
ctx.source = 'src/transformed.js';
|
||||||
|
return transformedMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.assert(file === 'src/helloworld.js');
|
||||||
|
// We could futher change the source of this original file, eg, to be inside a nested directory
|
||||||
|
// itself. This will be reflected in the remapped sourcemap.
|
||||||
|
ctx.source = 'src/nested/transformed.js';
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(remapped);
|
||||||
|
// {
|
||||||
|
// …,
|
||||||
|
// sources: ['src/nested/helloworld.js'],
|
||||||
|
// };
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### `content`
|
||||||
|
|
||||||
|
The `content` property can be overridden when we encounter an original source file. Eg, this allows
|
||||||
|
you to manually provide the source content of the original file regardless of whether the
|
||||||
|
`sourcesContent` field is present in the parent sourcemap. It can also be set to `null` to remove
|
||||||
|
the source content.
|
||||||
|
|
||||||
|
```js
|
||||||
|
const remapped = remapping(
|
||||||
|
minifiedTransformedMap,
|
||||||
|
(file, ctx) => {
|
||||||
|
|
||||||
|
if (file === 'transformed.js') {
|
||||||
|
// transformedMap does not include a `sourcesContent` field, so usually the remapped sourcemap
|
||||||
|
// would not include any `sourcesContent` values.
|
||||||
|
return transformedMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.assert(file === 'helloworld.js');
|
||||||
|
// We can read the file to provide the source content.
|
||||||
|
ctx.content = fs.readFileSync(file, 'utf8');
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log(remapped);
|
||||||
|
// {
|
||||||
|
// …,
|
||||||
|
// sourcesContent: [
|
||||||
|
// 'console.log("Hello world!")',
|
||||||
|
// ],
|
||||||
|
// };
|
||||||
|
```
|
||||||
|
|
||||||
|
### Options
|
||||||
|
|
||||||
|
#### excludeContent
|
||||||
|
|
||||||
|
By default, `excludeContent` is `false`. Passing `{ excludeContent: true }` will exclude the
|
||||||
|
`sourcesContent` field from the returned sourcemap. This is mainly useful when you want to reduce
|
||||||
|
the size out the sourcemap.
|
||||||
|
|
||||||
|
#### decodedMappings
|
||||||
|
|
||||||
|
By default, `decodedMappings` is `false`. Passing `{ decodedMappings: true }` will leave the
|
||||||
|
`mappings` field in a [decoded state](https://github.com/rich-harris/sourcemap-codec) instead of
|
||||||
|
encoding into a VLQ string.
|
197
web/node_modules/@ampproject/remapping/dist/remapping.mjs
generated
vendored
Normal file
197
web/node_modules/@ampproject/remapping/dist/remapping.mjs
generated
vendored
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
import { decodedMappings, traceSegment, TraceMap } from '@jridgewell/trace-mapping';
|
||||||
|
import { GenMapping, maybeAddSegment, setSourceContent, setIgnore, toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping';
|
||||||
|
|
||||||
|
const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);
|
||||||
|
const EMPTY_SOURCES = [];
|
||||||
|
function SegmentObject(source, line, column, name, content, ignore) {
|
||||||
|
return { source, line, column, name, content, ignore };
|
||||||
|
}
|
||||||
|
function Source(map, sources, source, content, ignore) {
|
||||||
|
return {
|
||||||
|
map,
|
||||||
|
sources,
|
||||||
|
source,
|
||||||
|
content,
|
||||||
|
ignore,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
||||||
|
* (which may themselves be SourceMapTrees).
|
||||||
|
*/
|
||||||
|
function MapSource(map, sources) {
|
||||||
|
return Source(map, sources, '', null, false);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
||||||
|
* segment tracing ends at the `OriginalSource`.
|
||||||
|
*/
|
||||||
|
function OriginalSource(source, content, ignore) {
|
||||||
|
return Source(null, EMPTY_SOURCES, source, content, ignore);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
||||||
|
* resolving each mapping in terms of the original source files.
|
||||||
|
*/
|
||||||
|
function traceMappings(tree) {
|
||||||
|
// TODO: Eventually support sourceRoot, which has to be removed because the sources are already
|
||||||
|
// fully resolved. We'll need to make sources relative to the sourceRoot before adding them.
|
||||||
|
const gen = new GenMapping({ file: tree.map.file });
|
||||||
|
const { sources: rootSources, map } = tree;
|
||||||
|
const rootNames = map.names;
|
||||||
|
const rootMappings = decodedMappings(map);
|
||||||
|
for (let i = 0; i < rootMappings.length; i++) {
|
||||||
|
const segments = rootMappings[i];
|
||||||
|
for (let j = 0; j < segments.length; j++) {
|
||||||
|
const segment = segments[j];
|
||||||
|
const genCol = segment[0];
|
||||||
|
let traced = SOURCELESS_MAPPING;
|
||||||
|
// 1-length segments only move the current generated column, there's no source information
|
||||||
|
// to gather from it.
|
||||||
|
if (segment.length !== 1) {
|
||||||
|
const source = rootSources[segment[1]];
|
||||||
|
traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : '');
|
||||||
|
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
|
||||||
|
// respective segment into an original source.
|
||||||
|
if (traced == null)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const { column, line, name, content, source, ignore } = traced;
|
||||||
|
maybeAddSegment(gen, i, genCol, source, line, column, name);
|
||||||
|
if (source && content != null)
|
||||||
|
setSourceContent(gen, source, content);
|
||||||
|
if (ignore)
|
||||||
|
setIgnore(gen, source, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return gen;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
||||||
|
* child SourceMapTrees, until we find the original source map.
|
||||||
|
*/
|
||||||
|
function originalPositionFor(source, line, column, name) {
|
||||||
|
if (!source.map) {
|
||||||
|
return SegmentObject(source.source, line, column, name, source.content, source.ignore);
|
||||||
|
}
|
||||||
|
const segment = traceSegment(source.map, line, column);
|
||||||
|
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
|
||||||
|
if (segment == null)
|
||||||
|
return null;
|
||||||
|
// 1-length segments only move the current generated column, there's no source information
|
||||||
|
// to gather from it.
|
||||||
|
if (segment.length === 1)
|
||||||
|
return SOURCELESS_MAPPING;
|
||||||
|
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
|
||||||
|
}
|
||||||
|
|
||||||
|
function asArray(value) {
|
||||||
|
if (Array.isArray(value))
|
||||||
|
return value;
|
||||||
|
return [value];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Recursively builds a tree structure out of sourcemap files, with each node
|
||||||
|
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
||||||
|
* `OriginalSource`s and `SourceMapTree`s.
|
||||||
|
*
|
||||||
|
* Every sourcemap is composed of a collection of source files and mappings
|
||||||
|
* into locations of those source files. When we generate a `SourceMapTree` for
|
||||||
|
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
||||||
|
* does not have an associated sourcemap, it is considered an original,
|
||||||
|
* unmodified source file.
|
||||||
|
*/
|
||||||
|
function buildSourceMapTree(input, loader) {
|
||||||
|
const maps = asArray(input).map((m) => new TraceMap(m, ''));
|
||||||
|
const map = maps.pop();
|
||||||
|
for (let i = 0; i < maps.length; i++) {
|
||||||
|
if (maps[i].sources.length > 1) {
|
||||||
|
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
|
||||||
|
'Did you specify these with the most recent transformation maps first?');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let tree = build(map, loader, '', 0);
|
||||||
|
for (let i = maps.length - 1; i >= 0; i--) {
|
||||||
|
tree = MapSource(maps[i], [tree]);
|
||||||
|
}
|
||||||
|
return tree;
|
||||||
|
}
|
||||||
|
function build(map, loader, importer, importerDepth) {
|
||||||
|
const { resolvedSources, sourcesContent, ignoreList } = map;
|
||||||
|
const depth = importerDepth + 1;
|
||||||
|
const children = resolvedSources.map((sourceFile, i) => {
|
||||||
|
// The loading context gives the loader more information about why this file is being loaded
|
||||||
|
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||||
|
// sourcemap/original source, or to override the content in the sourcesContent field if it's
|
||||||
|
// an unmodified source file.
|
||||||
|
const ctx = {
|
||||||
|
importer,
|
||||||
|
depth,
|
||||||
|
source: sourceFile || '',
|
||||||
|
content: undefined,
|
||||||
|
ignore: undefined,
|
||||||
|
};
|
||||||
|
// Use the provided loader callback to retrieve the file's sourcemap.
|
||||||
|
// TODO: We should eventually support async loading of sourcemap files.
|
||||||
|
const sourceMap = loader(ctx.source, ctx);
|
||||||
|
const { source, content, ignore } = ctx;
|
||||||
|
// If there is a sourcemap, then we need to recurse into it to load its source files.
|
||||||
|
if (sourceMap)
|
||||||
|
return build(new TraceMap(sourceMap, source), loader, source, depth);
|
||||||
|
// Else, it's an unmodified source file.
|
||||||
|
// The contents of this unmodified source file can be overridden via the loader context,
|
||||||
|
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
|
||||||
|
// the importing sourcemap's `sourcesContent` field.
|
||||||
|
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
|
||||||
|
const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
|
||||||
|
return OriginalSource(source, sourceContent, ignored);
|
||||||
|
});
|
||||||
|
return MapSource(map, children);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
||||||
|
* provided to it.
|
||||||
|
*/
|
||||||
|
class SourceMap {
|
||||||
|
constructor(map, options) {
|
||||||
|
const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map);
|
||||||
|
this.version = out.version; // SourceMap spec says this should be first.
|
||||||
|
this.file = out.file;
|
||||||
|
this.mappings = out.mappings;
|
||||||
|
this.names = out.names;
|
||||||
|
this.ignoreList = out.ignoreList;
|
||||||
|
this.sourceRoot = out.sourceRoot;
|
||||||
|
this.sources = out.sources;
|
||||||
|
if (!options.excludeContent) {
|
||||||
|
this.sourcesContent = out.sourcesContent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
toString() {
|
||||||
|
return JSON.stringify(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Traces through all the mappings in the root sourcemap, through the sources
|
||||||
|
* (and their sourcemaps), all the way back to the original source location.
|
||||||
|
*
|
||||||
|
* `loader` will be called every time we encounter a source file. If it returns
|
||||||
|
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
||||||
|
* it returns a falsey value, that source file is treated as an original,
|
||||||
|
* unmodified source file.
|
||||||
|
*
|
||||||
|
* Pass `excludeContent` to exclude any self-containing source file content
|
||||||
|
* from the output sourcemap.
|
||||||
|
*
|
||||||
|
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
||||||
|
* VLQ encoded) mappings.
|
||||||
|
*/
|
||||||
|
function remapping(input, loader, options) {
|
||||||
|
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };
|
||||||
|
const tree = buildSourceMapTree(input, loader);
|
||||||
|
return new SourceMap(traceMappings(tree), opts);
|
||||||
|
}
|
||||||
|
|
||||||
|
export { remapping as default };
|
||||||
|
//# sourceMappingURL=remapping.mjs.map
|
1
web/node_modules/@ampproject/remapping/dist/remapping.mjs.map
generated
vendored
Normal file
1
web/node_modules/@ampproject/remapping/dist/remapping.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
202
web/node_modules/@ampproject/remapping/dist/remapping.umd.js
generated
vendored
Normal file
202
web/node_modules/@ampproject/remapping/dist/remapping.umd.js
generated
vendored
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@jridgewell/trace-mapping'), require('@jridgewell/gen-mapping')) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['@jridgewell/trace-mapping', '@jridgewell/gen-mapping'], factory) :
|
||||||
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.remapping = factory(global.traceMapping, global.genMapping));
|
||||||
|
})(this, (function (traceMapping, genMapping) { 'use strict';
|
||||||
|
|
||||||
|
const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);
|
||||||
|
const EMPTY_SOURCES = [];
|
||||||
|
function SegmentObject(source, line, column, name, content, ignore) {
|
||||||
|
return { source, line, column, name, content, ignore };
|
||||||
|
}
|
||||||
|
function Source(map, sources, source, content, ignore) {
|
||||||
|
return {
|
||||||
|
map,
|
||||||
|
sources,
|
||||||
|
source,
|
||||||
|
content,
|
||||||
|
ignore,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
||||||
|
* (which may themselves be SourceMapTrees).
|
||||||
|
*/
|
||||||
|
function MapSource(map, sources) {
|
||||||
|
return Source(map, sources, '', null, false);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
||||||
|
* segment tracing ends at the `OriginalSource`.
|
||||||
|
*/
|
||||||
|
function OriginalSource(source, content, ignore) {
|
||||||
|
return Source(null, EMPTY_SOURCES, source, content, ignore);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
||||||
|
* resolving each mapping in terms of the original source files.
|
||||||
|
*/
|
||||||
|
function traceMappings(tree) {
|
||||||
|
// TODO: Eventually support sourceRoot, which has to be removed because the sources are already
|
||||||
|
// fully resolved. We'll need to make sources relative to the sourceRoot before adding them.
|
||||||
|
const gen = new genMapping.GenMapping({ file: tree.map.file });
|
||||||
|
const { sources: rootSources, map } = tree;
|
||||||
|
const rootNames = map.names;
|
||||||
|
const rootMappings = traceMapping.decodedMappings(map);
|
||||||
|
for (let i = 0; i < rootMappings.length; i++) {
|
||||||
|
const segments = rootMappings[i];
|
||||||
|
for (let j = 0; j < segments.length; j++) {
|
||||||
|
const segment = segments[j];
|
||||||
|
const genCol = segment[0];
|
||||||
|
let traced = SOURCELESS_MAPPING;
|
||||||
|
// 1-length segments only move the current generated column, there's no source information
|
||||||
|
// to gather from it.
|
||||||
|
if (segment.length !== 1) {
|
||||||
|
const source = rootSources[segment[1]];
|
||||||
|
traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : '');
|
||||||
|
// If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a
|
||||||
|
// respective segment into an original source.
|
||||||
|
if (traced == null)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const { column, line, name, content, source, ignore } = traced;
|
||||||
|
genMapping.maybeAddSegment(gen, i, genCol, source, line, column, name);
|
||||||
|
if (source && content != null)
|
||||||
|
genMapping.setSourceContent(gen, source, content);
|
||||||
|
if (ignore)
|
||||||
|
genMapping.setIgnore(gen, source, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return gen;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
||||||
|
* child SourceMapTrees, until we find the original source map.
|
||||||
|
*/
|
||||||
|
function originalPositionFor(source, line, column, name) {
|
||||||
|
if (!source.map) {
|
||||||
|
return SegmentObject(source.source, line, column, name, source.content, source.ignore);
|
||||||
|
}
|
||||||
|
const segment = traceMapping.traceSegment(source.map, line, column);
|
||||||
|
// If we couldn't find a segment, then this doesn't exist in the sourcemap.
|
||||||
|
if (segment == null)
|
||||||
|
return null;
|
||||||
|
// 1-length segments only move the current generated column, there's no source information
|
||||||
|
// to gather from it.
|
||||||
|
if (segment.length === 1)
|
||||||
|
return SOURCELESS_MAPPING;
|
||||||
|
return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name);
|
||||||
|
}
|
||||||
|
|
||||||
|
function asArray(value) {
|
||||||
|
if (Array.isArray(value))
|
||||||
|
return value;
|
||||||
|
return [value];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Recursively builds a tree structure out of sourcemap files, with each node
|
||||||
|
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
||||||
|
* `OriginalSource`s and `SourceMapTree`s.
|
||||||
|
*
|
||||||
|
* Every sourcemap is composed of a collection of source files and mappings
|
||||||
|
* into locations of those source files. When we generate a `SourceMapTree` for
|
||||||
|
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
||||||
|
* does not have an associated sourcemap, it is considered an original,
|
||||||
|
* unmodified source file.
|
||||||
|
*/
|
||||||
|
function buildSourceMapTree(input, loader) {
|
||||||
|
const maps = asArray(input).map((m) => new traceMapping.TraceMap(m, ''));
|
||||||
|
const map = maps.pop();
|
||||||
|
for (let i = 0; i < maps.length; i++) {
|
||||||
|
if (maps[i].sources.length > 1) {
|
||||||
|
throw new Error(`Transformation map ${i} must have exactly one source file.\n` +
|
||||||
|
'Did you specify these with the most recent transformation maps first?');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let tree = build(map, loader, '', 0);
|
||||||
|
for (let i = maps.length - 1; i >= 0; i--) {
|
||||||
|
tree = MapSource(maps[i], [tree]);
|
||||||
|
}
|
||||||
|
return tree;
|
||||||
|
}
|
||||||
|
function build(map, loader, importer, importerDepth) {
|
||||||
|
const { resolvedSources, sourcesContent, ignoreList } = map;
|
||||||
|
const depth = importerDepth + 1;
|
||||||
|
const children = resolvedSources.map((sourceFile, i) => {
|
||||||
|
// The loading context gives the loader more information about why this file is being loaded
|
||||||
|
// (eg, from which importer). It also allows the loader to override the location of the loaded
|
||||||
|
// sourcemap/original source, or to override the content in the sourcesContent field if it's
|
||||||
|
// an unmodified source file.
|
||||||
|
const ctx = {
|
||||||
|
importer,
|
||||||
|
depth,
|
||||||
|
source: sourceFile || '',
|
||||||
|
content: undefined,
|
||||||
|
ignore: undefined,
|
||||||
|
};
|
||||||
|
// Use the provided loader callback to retrieve the file's sourcemap.
|
||||||
|
// TODO: We should eventually support async loading of sourcemap files.
|
||||||
|
const sourceMap = loader(ctx.source, ctx);
|
||||||
|
const { source, content, ignore } = ctx;
|
||||||
|
// If there is a sourcemap, then we need to recurse into it to load its source files.
|
||||||
|
if (sourceMap)
|
||||||
|
return build(new traceMapping.TraceMap(sourceMap, source), loader, source, depth);
|
||||||
|
// Else, it's an unmodified source file.
|
||||||
|
// The contents of this unmodified source file can be overridden via the loader context,
|
||||||
|
// allowing it to be explicitly null or a string. If it remains undefined, we fall back to
|
||||||
|
// the importing sourcemap's `sourcesContent` field.
|
||||||
|
const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;
|
||||||
|
const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;
|
||||||
|
return OriginalSource(source, sourceContent, ignored);
|
||||||
|
});
|
||||||
|
return MapSource(map, children);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
||||||
|
* provided to it.
|
||||||
|
*/
|
||||||
|
class SourceMap {
|
||||||
|
constructor(map, options) {
|
||||||
|
const out = options.decodedMappings ? genMapping.toDecodedMap(map) : genMapping.toEncodedMap(map);
|
||||||
|
this.version = out.version; // SourceMap spec says this should be first.
|
||||||
|
this.file = out.file;
|
||||||
|
this.mappings = out.mappings;
|
||||||
|
this.names = out.names;
|
||||||
|
this.ignoreList = out.ignoreList;
|
||||||
|
this.sourceRoot = out.sourceRoot;
|
||||||
|
this.sources = out.sources;
|
||||||
|
if (!options.excludeContent) {
|
||||||
|
this.sourcesContent = out.sourcesContent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
toString() {
|
||||||
|
return JSON.stringify(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Traces through all the mappings in the root sourcemap, through the sources
|
||||||
|
* (and their sourcemaps), all the way back to the original source location.
|
||||||
|
*
|
||||||
|
* `loader` will be called every time we encounter a source file. If it returns
|
||||||
|
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
||||||
|
* it returns a falsey value, that source file is treated as an original,
|
||||||
|
* unmodified source file.
|
||||||
|
*
|
||||||
|
* Pass `excludeContent` to exclude any self-containing source file content
|
||||||
|
* from the output sourcemap.
|
||||||
|
*
|
||||||
|
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
||||||
|
* VLQ encoded) mappings.
|
||||||
|
*/
|
||||||
|
function remapping(input, loader, options) {
|
||||||
|
const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };
|
||||||
|
const tree = buildSourceMapTree(input, loader);
|
||||||
|
return new SourceMap(traceMappings(tree), opts);
|
||||||
|
}
|
||||||
|
|
||||||
|
return remapping;
|
||||||
|
|
||||||
|
}));
|
||||||
|
//# sourceMappingURL=remapping.umd.js.map
|
1
web/node_modules/@ampproject/remapping/dist/remapping.umd.js.map
generated
vendored
Normal file
1
web/node_modules/@ampproject/remapping/dist/remapping.umd.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
14
web/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts
generated
vendored
Normal file
14
web/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import type { MapSource as MapSourceType } from './source-map-tree';
|
||||||
|
import type { SourceMapInput, SourceMapLoader } from './types';
|
||||||
|
/**
|
||||||
|
* Recursively builds a tree structure out of sourcemap files, with each node
|
||||||
|
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
||||||
|
* `OriginalSource`s and `SourceMapTree`s.
|
||||||
|
*
|
||||||
|
* Every sourcemap is composed of a collection of source files and mappings
|
||||||
|
* into locations of those source files. When we generate a `SourceMapTree` for
|
||||||
|
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
||||||
|
* does not have an associated sourcemap, it is considered an original,
|
||||||
|
* unmodified source file.
|
||||||
|
*/
|
||||||
|
export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType;
|
20
web/node_modules/@ampproject/remapping/dist/types/remapping.d.ts
generated
vendored
Normal file
20
web/node_modules/@ampproject/remapping/dist/types/remapping.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import SourceMap from './source-map';
|
||||||
|
import type { SourceMapInput, SourceMapLoader, Options } from './types';
|
||||||
|
export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types';
|
||||||
|
export type { SourceMap };
|
||||||
|
/**
|
||||||
|
* Traces through all the mappings in the root sourcemap, through the sources
|
||||||
|
* (and their sourcemaps), all the way back to the original source location.
|
||||||
|
*
|
||||||
|
* `loader` will be called every time we encounter a source file. If it returns
|
||||||
|
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
||||||
|
* it returns a falsey value, that source file is treated as an original,
|
||||||
|
* unmodified source file.
|
||||||
|
*
|
||||||
|
* Pass `excludeContent` to exclude any self-containing source file content
|
||||||
|
* from the output sourcemap.
|
||||||
|
*
|
||||||
|
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
||||||
|
* VLQ encoded) mappings.
|
||||||
|
*/
|
||||||
|
export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap;
|
45
web/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
generated
vendored
Normal file
45
web/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
import { GenMapping } from '@jridgewell/gen-mapping';
|
||||||
|
import type { TraceMap } from '@jridgewell/trace-mapping';
|
||||||
|
export declare type SourceMapSegmentObject = {
|
||||||
|
column: number;
|
||||||
|
line: number;
|
||||||
|
name: string;
|
||||||
|
source: string;
|
||||||
|
content: string | null;
|
||||||
|
ignore: boolean;
|
||||||
|
};
|
||||||
|
export declare type OriginalSource = {
|
||||||
|
map: null;
|
||||||
|
sources: Sources[];
|
||||||
|
source: string;
|
||||||
|
content: string | null;
|
||||||
|
ignore: boolean;
|
||||||
|
};
|
||||||
|
export declare type MapSource = {
|
||||||
|
map: TraceMap;
|
||||||
|
sources: Sources[];
|
||||||
|
source: string;
|
||||||
|
content: null;
|
||||||
|
ignore: false;
|
||||||
|
};
|
||||||
|
export declare type Sources = OriginalSource | MapSource;
|
||||||
|
/**
|
||||||
|
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
||||||
|
* (which may themselves be SourceMapTrees).
|
||||||
|
*/
|
||||||
|
export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource;
|
||||||
|
/**
|
||||||
|
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
||||||
|
* segment tracing ends at the `OriginalSource`.
|
||||||
|
*/
|
||||||
|
export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource;
|
||||||
|
/**
|
||||||
|
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
||||||
|
* resolving each mapping in terms of the original source files.
|
||||||
|
*/
|
||||||
|
export declare function traceMappings(tree: MapSource): GenMapping;
|
||||||
|
/**
|
||||||
|
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
||||||
|
* child SourceMapTrees, until we find the original source map.
|
||||||
|
*/
|
||||||
|
export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null;
|
18
web/node_modules/@ampproject/remapping/dist/types/source-map.d.ts
generated
vendored
Normal file
18
web/node_modules/@ampproject/remapping/dist/types/source-map.d.ts
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import type { GenMapping } from '@jridgewell/gen-mapping';
|
||||||
|
import type { DecodedSourceMap, EncodedSourceMap, Options } from './types';
|
||||||
|
/**
|
||||||
|
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
||||||
|
* provided to it.
|
||||||
|
*/
|
||||||
|
export default class SourceMap {
|
||||||
|
file?: string | null;
|
||||||
|
mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];
|
||||||
|
sourceRoot?: string;
|
||||||
|
names: string[];
|
||||||
|
sources: (string | null)[];
|
||||||
|
sourcesContent?: (string | null)[];
|
||||||
|
version: 3;
|
||||||
|
ignoreList: number[] | undefined;
|
||||||
|
constructor(map: GenMapping, options: Options);
|
||||||
|
toString(): string;
|
||||||
|
}
|
15
web/node_modules/@ampproject/remapping/dist/types/types.d.ts
generated
vendored
Normal file
15
web/node_modules/@ampproject/remapping/dist/types/types.d.ts
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import type { SourceMapInput } from '@jridgewell/trace-mapping';
|
||||||
|
export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping';
|
||||||
|
export type { SourceMapInput };
|
||||||
|
export declare type LoaderContext = {
|
||||||
|
readonly importer: string;
|
||||||
|
readonly depth: number;
|
||||||
|
source: string;
|
||||||
|
content: string | null | undefined;
|
||||||
|
ignore: boolean | undefined;
|
||||||
|
};
|
||||||
|
export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void;
|
||||||
|
export declare type Options = {
|
||||||
|
excludeContent?: boolean;
|
||||||
|
decodedMappings?: boolean;
|
||||||
|
};
|
75
web/node_modules/@ampproject/remapping/package.json
generated
vendored
Normal file
75
web/node_modules/@ampproject/remapping/package.json
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
{
|
||||||
|
"name": "@ampproject/remapping",
|
||||||
|
"version": "2.3.0",
|
||||||
|
"description": "Remap sequential sourcemaps through transformations to point at the original source code",
|
||||||
|
"keywords": [
|
||||||
|
"source",
|
||||||
|
"map",
|
||||||
|
"remap"
|
||||||
|
],
|
||||||
|
"main": "dist/remapping.umd.js",
|
||||||
|
"module": "dist/remapping.mjs",
|
||||||
|
"types": "dist/types/remapping.d.ts",
|
||||||
|
"exports": {
|
||||||
|
".": [
|
||||||
|
{
|
||||||
|
"types": "./dist/types/remapping.d.ts",
|
||||||
|
"browser": "./dist/remapping.umd.js",
|
||||||
|
"require": "./dist/remapping.umd.js",
|
||||||
|
"import": "./dist/remapping.mjs"
|
||||||
|
},
|
||||||
|
"./dist/remapping.umd.js"
|
||||||
|
],
|
||||||
|
"./package.json": "./package.json"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
],
|
||||||
|
"author": "Justin Ridgewell <jridgewell@google.com>",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/ampproject/remapping.git"
|
||||||
|
},
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build": "run-s -n build:*",
|
||||||
|
"build:rollup": "rollup -c rollup.config.js",
|
||||||
|
"build:ts": "tsc --project tsconfig.build.json",
|
||||||
|
"lint": "run-s -n lint:*",
|
||||||
|
"lint:prettier": "npm run test:lint:prettier -- --write",
|
||||||
|
"lint:ts": "npm run test:lint:ts -- --fix",
|
||||||
|
"prebuild": "rm -rf dist",
|
||||||
|
"prepublishOnly": "npm run preversion",
|
||||||
|
"preversion": "run-s test build",
|
||||||
|
"test": "run-s -n test:lint test:only",
|
||||||
|
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
||||||
|
"test:lint": "run-s -n test:lint:*",
|
||||||
|
"test:lint:prettier": "prettier --check '{src,test}/**/*.ts'",
|
||||||
|
"test:lint:ts": "eslint '{src,test}/**/*.ts'",
|
||||||
|
"test:only": "jest --coverage",
|
||||||
|
"test:watch": "jest --coverage --watch"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@rollup/plugin-typescript": "8.3.2",
|
||||||
|
"@types/jest": "27.4.1",
|
||||||
|
"@typescript-eslint/eslint-plugin": "5.20.0",
|
||||||
|
"@typescript-eslint/parser": "5.20.0",
|
||||||
|
"eslint": "8.14.0",
|
||||||
|
"eslint-config-prettier": "8.5.0",
|
||||||
|
"jest": "27.5.1",
|
||||||
|
"jest-config": "27.5.1",
|
||||||
|
"npm-run-all": "4.1.5",
|
||||||
|
"prettier": "2.6.2",
|
||||||
|
"rollup": "2.70.2",
|
||||||
|
"ts-jest": "27.1.4",
|
||||||
|
"tslib": "2.4.0",
|
||||||
|
"typescript": "4.6.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/gen-mapping": "^0.3.5",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.24"
|
||||||
|
}
|
||||||
|
}
|
3
web/node_modules/@esbuild/darwin-arm64/README.md
generated
vendored
Normal file
3
web/node_modules/@esbuild/darwin-arm64/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# esbuild
|
||||||
|
|
||||||
|
This is the macOS ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
|
BIN
web/node_modules/@esbuild/darwin-arm64/bin/esbuild
generated
vendored
Executable file
BIN
web/node_modules/@esbuild/darwin-arm64/bin/esbuild
generated
vendored
Executable file
Binary file not shown.
20
web/node_modules/@esbuild/darwin-arm64/package.json
generated
vendored
Normal file
20
web/node_modules/@esbuild/darwin-arm64/package.json
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"name": "@esbuild/darwin-arm64",
|
||||||
|
"version": "0.24.0",
|
||||||
|
"description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/evanw/esbuild.git"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"preferUnplugged": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"os": [
|
||||||
|
"darwin"
|
||||||
|
],
|
||||||
|
"cpu": [
|
||||||
|
"arm64"
|
||||||
|
]
|
||||||
|
}
|
14
web/node_modules/@isaacs/cliui/LICENSE.txt
generated
vendored
Normal file
14
web/node_modules/@isaacs/cliui/LICENSE.txt
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Copyright (c) 2015, Contributors
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software
|
||||||
|
for any purpose with or without fee is hereby granted, provided
|
||||||
|
that the above copyright notice and this permission notice
|
||||||
|
appear in all copies.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||||
|
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
||||||
|
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
||||||
|
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
|
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
143
web/node_modules/@isaacs/cliui/README.md
generated
vendored
Normal file
143
web/node_modules/@isaacs/cliui/README.md
generated
vendored
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
# @isaacs/cliui
|
||||||
|
|
||||||
|
Temporary fork of [cliui](http://npm.im/cliui).
|
||||||
|
|
||||||
|
![ci](https://github.com/yargs/cliui/workflows/ci/badge.svg)
|
||||||
|
[![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui)
|
||||||
|
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
|
||||||
|
![nycrc config on GitHub](https://img.shields.io/nycrc/yargs/cliui)
|
||||||
|
|
||||||
|
easily create complex multi-column command-line-interfaces.
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```js
|
||||||
|
const ui = require('cliui')()
|
||||||
|
|
||||||
|
ui.div('Usage: $0 [command] [options]')
|
||||||
|
|
||||||
|
ui.div({
|
||||||
|
text: 'Options:',
|
||||||
|
padding: [2, 0, 1, 0]
|
||||||
|
})
|
||||||
|
|
||||||
|
ui.div(
|
||||||
|
{
|
||||||
|
text: "-f, --file",
|
||||||
|
width: 20,
|
||||||
|
padding: [0, 4, 0, 4]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "the file to load." +
|
||||||
|
chalk.green("(if this description is long it wraps).")
|
||||||
|
,
|
||||||
|
width: 20
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: chalk.red("[required]"),
|
||||||
|
align: 'right'
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
console.log(ui.toString())
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deno/ESM Support
|
||||||
|
|
||||||
|
As of `v7` `cliui` supports [Deno](https://github.com/denoland/deno) and
|
||||||
|
[ESM](https://nodejs.org/api/esm.html#esm_ecmascript_modules):
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import cliui from "https://deno.land/x/cliui/deno.ts";
|
||||||
|
|
||||||
|
const ui = cliui({})
|
||||||
|
|
||||||
|
ui.div('Usage: $0 [command] [options]')
|
||||||
|
|
||||||
|
ui.div({
|
||||||
|
text: 'Options:',
|
||||||
|
padding: [2, 0, 1, 0]
|
||||||
|
})
|
||||||
|
|
||||||
|
ui.div({
|
||||||
|
text: "-f, --file",
|
||||||
|
width: 20,
|
||||||
|
padding: [0, 4, 0, 4]
|
||||||
|
})
|
||||||
|
|
||||||
|
console.log(ui.toString())
|
||||||
|
```
|
||||||
|
|
||||||
|
<img width="500" src="screenshot.png">
|
||||||
|
|
||||||
|
## Layout DSL
|
||||||
|
|
||||||
|
cliui exposes a simple layout DSL:
|
||||||
|
|
||||||
|
If you create a single `ui.div`, passing a string rather than an
|
||||||
|
object:
|
||||||
|
|
||||||
|
* `\n`: characters will be interpreted as new rows.
|
||||||
|
* `\t`: characters will be interpreted as new columns.
|
||||||
|
* `\s`: characters will be interpreted as padding.
|
||||||
|
|
||||||
|
**as an example...**
|
||||||
|
|
||||||
|
```js
|
||||||
|
var ui = require('./')({
|
||||||
|
width: 60
|
||||||
|
})
|
||||||
|
|
||||||
|
ui.div(
|
||||||
|
'Usage: node ./bin/foo.js\n' +
|
||||||
|
' <regex>\t provide a regex\n' +
|
||||||
|
' <glob>\t provide a glob\t [required]'
|
||||||
|
)
|
||||||
|
|
||||||
|
console.log(ui.toString())
|
||||||
|
```
|
||||||
|
|
||||||
|
**will output:**
|
||||||
|
|
||||||
|
```shell
|
||||||
|
Usage: node ./bin/foo.js
|
||||||
|
<regex> provide a regex
|
||||||
|
<glob> provide a glob [required]
|
||||||
|
```
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
```js
|
||||||
|
cliui = require('cliui')
|
||||||
|
```
|
||||||
|
|
||||||
|
### cliui({width: integer})
|
||||||
|
|
||||||
|
Specify the maximum width of the UI being generated.
|
||||||
|
If no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`.
|
||||||
|
|
||||||
|
### cliui({wrap: boolean})
|
||||||
|
|
||||||
|
Enable or disable the wrapping of text in a column.
|
||||||
|
|
||||||
|
### cliui.div(column, column, column)
|
||||||
|
|
||||||
|
Create a row with any number of columns, a column
|
||||||
|
can either be a string, or an object with the following
|
||||||
|
options:
|
||||||
|
|
||||||
|
* **text:** some text to place in the column.
|
||||||
|
* **width:** the width of a column.
|
||||||
|
* **align:** alignment, `right` or `center`.
|
||||||
|
* **padding:** `[top, right, bottom, left]`.
|
||||||
|
* **border:** should a border be placed around the div?
|
||||||
|
|
||||||
|
### cliui.span(column, column, column)
|
||||||
|
|
||||||
|
Similar to `div`, except the next row will be appended without
|
||||||
|
a new line being created.
|
||||||
|
|
||||||
|
### cliui.resetOutput()
|
||||||
|
|
||||||
|
Resets the UI elements of the current cliui instance, maintaining the values
|
||||||
|
set for `width` and `wrap`.
|
317
web/node_modules/@isaacs/cliui/build/index.cjs
generated
vendored
Normal file
317
web/node_modules/@isaacs/cliui/build/index.cjs
generated
vendored
Normal file
@ -0,0 +1,317 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const align = {
|
||||||
|
right: alignRight,
|
||||||
|
center: alignCenter
|
||||||
|
};
|
||||||
|
const top = 0;
|
||||||
|
const right = 1;
|
||||||
|
const bottom = 2;
|
||||||
|
const left = 3;
|
||||||
|
class UI {
|
||||||
|
constructor(opts) {
|
||||||
|
var _a;
|
||||||
|
this.width = opts.width;
|
||||||
|
/* c8 ignore start */
|
||||||
|
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
this.rows = [];
|
||||||
|
}
|
||||||
|
span(...args) {
|
||||||
|
const cols = this.div(...args);
|
||||||
|
cols.span = true;
|
||||||
|
}
|
||||||
|
resetOutput() {
|
||||||
|
this.rows = [];
|
||||||
|
}
|
||||||
|
div(...args) {
|
||||||
|
if (args.length === 0) {
|
||||||
|
this.div('');
|
||||||
|
}
|
||||||
|
if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
|
||||||
|
return this.applyLayoutDSL(args[0]);
|
||||||
|
}
|
||||||
|
const cols = args.map(arg => {
|
||||||
|
if (typeof arg === 'string') {
|
||||||
|
return this.colFromString(arg);
|
||||||
|
}
|
||||||
|
return arg;
|
||||||
|
});
|
||||||
|
this.rows.push(cols);
|
||||||
|
return cols;
|
||||||
|
}
|
||||||
|
shouldApplyLayoutDSL(...args) {
|
||||||
|
return args.length === 1 && typeof args[0] === 'string' &&
|
||||||
|
/[\t\n]/.test(args[0]);
|
||||||
|
}
|
||||||
|
applyLayoutDSL(str) {
|
||||||
|
const rows = str.split('\n').map(row => row.split('\t'));
|
||||||
|
let leftColumnWidth = 0;
|
||||||
|
// simple heuristic for layout, make sure the
|
||||||
|
// second column lines up along the left-hand.
|
||||||
|
// don't allow the first column to take up more
|
||||||
|
// than 50% of the screen.
|
||||||
|
rows.forEach(columns => {
|
||||||
|
if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
|
||||||
|
leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// generate a table:
|
||||||
|
// replacing ' ' with padding calculations.
|
||||||
|
// using the algorithmically generated width.
|
||||||
|
rows.forEach(columns => {
|
||||||
|
this.div(...columns.map((r, i) => {
|
||||||
|
return {
|
||||||
|
text: r.trim(),
|
||||||
|
padding: this.measurePadding(r),
|
||||||
|
width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
return this.rows[this.rows.length - 1];
|
||||||
|
}
|
||||||
|
colFromString(text) {
|
||||||
|
return {
|
||||||
|
text,
|
||||||
|
padding: this.measurePadding(text)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
measurePadding(str) {
|
||||||
|
// measure padding without ansi escape codes
|
||||||
|
const noAnsi = mixin.stripAnsi(str);
|
||||||
|
return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
|
||||||
|
}
|
||||||
|
toString() {
|
||||||
|
const lines = [];
|
||||||
|
this.rows.forEach(row => {
|
||||||
|
this.rowToString(row, lines);
|
||||||
|
});
|
||||||
|
// don't display any lines with the
|
||||||
|
// hidden flag set.
|
||||||
|
return lines
|
||||||
|
.filter(line => !line.hidden)
|
||||||
|
.map(line => line.text)
|
||||||
|
.join('\n');
|
||||||
|
}
|
||||||
|
rowToString(row, lines) {
|
||||||
|
this.rasterize(row).forEach((rrow, r) => {
|
||||||
|
let str = '';
|
||||||
|
rrow.forEach((col, c) => {
|
||||||
|
const { width } = row[c]; // the width with padding.
|
||||||
|
const wrapWidth = this.negatePadding(row[c]); // the width without padding.
|
||||||
|
let ts = col; // temporary string used during alignment/padding.
|
||||||
|
if (wrapWidth > mixin.stringWidth(col)) {
|
||||||
|
ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
|
||||||
|
}
|
||||||
|
// align the string within its column.
|
||||||
|
if (row[c].align && row[c].align !== 'left' && this.wrap) {
|
||||||
|
const fn = align[row[c].align];
|
||||||
|
ts = fn(ts, wrapWidth);
|
||||||
|
if (mixin.stringWidth(ts) < wrapWidth) {
|
||||||
|
/* c8 ignore start */
|
||||||
|
const w = width || 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// apply border and padding to string.
|
||||||
|
const padding = row[c].padding || [0, 0, 0, 0];
|
||||||
|
if (padding[left]) {
|
||||||
|
str += ' '.repeat(padding[left]);
|
||||||
|
}
|
||||||
|
str += addBorder(row[c], ts, '| ');
|
||||||
|
str += ts;
|
||||||
|
str += addBorder(row[c], ts, ' |');
|
||||||
|
if (padding[right]) {
|
||||||
|
str += ' '.repeat(padding[right]);
|
||||||
|
}
|
||||||
|
// if prior row is span, try to render the
|
||||||
|
// current row on the prior line.
|
||||||
|
if (r === 0 && lines.length > 0) {
|
||||||
|
str = this.renderInline(str, lines[lines.length - 1]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// remove trailing whitespace.
|
||||||
|
lines.push({
|
||||||
|
text: str.replace(/ +$/, ''),
|
||||||
|
span: row.span
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return lines;
|
||||||
|
}
|
||||||
|
// if the full 'source' can render in
|
||||||
|
// the target line, do so.
|
||||||
|
renderInline(source, previousLine) {
|
||||||
|
const match = source.match(/^ */);
|
||||||
|
/* c8 ignore start */
|
||||||
|
const leadingWhitespace = match ? match[0].length : 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
const target = previousLine.text;
|
||||||
|
const targetTextWidth = mixin.stringWidth(target.trimEnd());
|
||||||
|
if (!previousLine.span) {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
// if we're not applying wrapping logic,
|
||||||
|
// just always append to the span.
|
||||||
|
if (!this.wrap) {
|
||||||
|
previousLine.hidden = true;
|
||||||
|
return target + source;
|
||||||
|
}
|
||||||
|
if (leadingWhitespace < targetTextWidth) {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
previousLine.hidden = true;
|
||||||
|
return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
|
||||||
|
}
|
||||||
|
rasterize(row) {
|
||||||
|
const rrows = [];
|
||||||
|
const widths = this.columnWidths(row);
|
||||||
|
let wrapped;
|
||||||
|
// word wrap all columns, and create
|
||||||
|
// a data-structure that is easy to rasterize.
|
||||||
|
row.forEach((col, c) => {
|
||||||
|
// leave room for left and right padding.
|
||||||
|
col.width = widths[c];
|
||||||
|
if (this.wrap) {
|
||||||
|
wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
wrapped = col.text.split('\n');
|
||||||
|
}
|
||||||
|
if (col.border) {
|
||||||
|
wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
|
||||||
|
wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
|
||||||
|
}
|
||||||
|
// add top and bottom padding.
|
||||||
|
if (col.padding) {
|
||||||
|
wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
|
||||||
|
wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
|
||||||
|
}
|
||||||
|
wrapped.forEach((str, r) => {
|
||||||
|
if (!rrows[r]) {
|
||||||
|
rrows.push([]);
|
||||||
|
}
|
||||||
|
const rrow = rrows[r];
|
||||||
|
for (let i = 0; i < c; i++) {
|
||||||
|
if (rrow[i] === undefined) {
|
||||||
|
rrow.push('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rrow.push(str);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return rrows;
|
||||||
|
}
|
||||||
|
negatePadding(col) {
|
||||||
|
/* c8 ignore start */
|
||||||
|
let wrapWidth = col.width || 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
if (col.padding) {
|
||||||
|
wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
|
||||||
|
}
|
||||||
|
if (col.border) {
|
||||||
|
wrapWidth -= 4;
|
||||||
|
}
|
||||||
|
return wrapWidth;
|
||||||
|
}
|
||||||
|
columnWidths(row) {
|
||||||
|
if (!this.wrap) {
|
||||||
|
return row.map(col => {
|
||||||
|
return col.width || mixin.stringWidth(col.text);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
let unset = row.length;
|
||||||
|
let remainingWidth = this.width;
|
||||||
|
// column widths can be set in config.
|
||||||
|
const widths = row.map(col => {
|
||||||
|
if (col.width) {
|
||||||
|
unset--;
|
||||||
|
remainingWidth -= col.width;
|
||||||
|
return col.width;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
});
|
||||||
|
// any unset widths should be calculated.
|
||||||
|
/* c8 ignore start */
|
||||||
|
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
return widths.map((w, i) => {
|
||||||
|
if (w === undefined) {
|
||||||
|
return Math.max(unsetWidth, _minWidth(row[i]));
|
||||||
|
}
|
||||||
|
return w;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function addBorder(col, ts, style) {
|
||||||
|
if (col.border) {
|
||||||
|
if (/[.']-+[.']/.test(ts)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
if (ts.trim().length !== 0) {
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
return ' ';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
// calculates the minimum width of
|
||||||
|
// a column, based on padding preferences.
|
||||||
|
function _minWidth(col) {
|
||||||
|
const padding = col.padding || [];
|
||||||
|
const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
|
||||||
|
if (col.border) {
|
||||||
|
return minWidth + 4;
|
||||||
|
}
|
||||||
|
return minWidth;
|
||||||
|
}
|
||||||
|
function getWindowWidth() {
|
||||||
|
/* c8 ignore start */
|
||||||
|
if (typeof process === 'object' && process.stdout && process.stdout.columns) {
|
||||||
|
return process.stdout.columns;
|
||||||
|
}
|
||||||
|
return 80;
|
||||||
|
}
|
||||||
|
/* c8 ignore stop */
|
||||||
|
function alignRight(str, width) {
|
||||||
|
str = str.trim();
|
||||||
|
const strWidth = mixin.stringWidth(str);
|
||||||
|
if (strWidth < width) {
|
||||||
|
return ' '.repeat(width - strWidth) + str;
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
function alignCenter(str, width) {
|
||||||
|
str = str.trim();
|
||||||
|
const strWidth = mixin.stringWidth(str);
|
||||||
|
/* c8 ignore start */
|
||||||
|
if (strWidth >= width) {
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
/* c8 ignore stop */
|
||||||
|
return ' '.repeat((width - strWidth) >> 1) + str;
|
||||||
|
}
|
||||||
|
let mixin;
|
||||||
|
function cliui(opts, _mixin) {
|
||||||
|
mixin = _mixin;
|
||||||
|
return new UI({
|
||||||
|
/* c8 ignore start */
|
||||||
|
width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
|
||||||
|
wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
|
||||||
|
/* c8 ignore stop */
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bootstrap cliui with CommonJS dependencies:
|
||||||
|
const stringWidth = require('string-width-cjs');
|
||||||
|
const stripAnsi = require('strip-ansi-cjs');
|
||||||
|
const wrap = require('wrap-ansi-cjs');
|
||||||
|
function ui(opts) {
|
||||||
|
return cliui(opts, {
|
||||||
|
stringWidth,
|
||||||
|
stripAnsi,
|
||||||
|
wrap
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = ui;
|
43
web/node_modules/@isaacs/cliui/build/index.d.cts
generated
vendored
Normal file
43
web/node_modules/@isaacs/cliui/build/index.d.cts
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
interface UIOptions {
|
||||||
|
width: number;
|
||||||
|
wrap?: boolean;
|
||||||
|
rows?: string[];
|
||||||
|
}
|
||||||
|
interface Column {
|
||||||
|
text: string;
|
||||||
|
width?: number;
|
||||||
|
align?: "right" | "left" | "center";
|
||||||
|
padding: number[];
|
||||||
|
border?: boolean;
|
||||||
|
}
|
||||||
|
interface ColumnArray extends Array<Column> {
|
||||||
|
span: boolean;
|
||||||
|
}
|
||||||
|
interface Line {
|
||||||
|
hidden?: boolean;
|
||||||
|
text: string;
|
||||||
|
span?: boolean;
|
||||||
|
}
|
||||||
|
declare class UI {
|
||||||
|
width: number;
|
||||||
|
wrap: boolean;
|
||||||
|
rows: ColumnArray[];
|
||||||
|
constructor(opts: UIOptions);
|
||||||
|
span(...args: ColumnArray): void;
|
||||||
|
resetOutput(): void;
|
||||||
|
div(...args: (Column | string)[]): ColumnArray;
|
||||||
|
private shouldApplyLayoutDSL;
|
||||||
|
private applyLayoutDSL;
|
||||||
|
private colFromString;
|
||||||
|
private measurePadding;
|
||||||
|
toString(): string;
|
||||||
|
rowToString(row: ColumnArray, lines: Line[]): Line[];
|
||||||
|
// if the full 'source' can render in
|
||||||
|
// the target line, do so.
|
||||||
|
private renderInline;
|
||||||
|
private rasterize;
|
||||||
|
private negatePadding;
|
||||||
|
private columnWidths;
|
||||||
|
}
|
||||||
|
declare function ui(opts: UIOptions): UI;
|
||||||
|
export { ui as default };
|
302
web/node_modules/@isaacs/cliui/build/lib/index.js
generated
vendored
Normal file
302
web/node_modules/@isaacs/cliui/build/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,302 @@
|
|||||||
|
'use strict';
|
||||||
|
const align = {
|
||||||
|
right: alignRight,
|
||||||
|
center: alignCenter
|
||||||
|
};
|
||||||
|
const top = 0;
|
||||||
|
const right = 1;
|
||||||
|
const bottom = 2;
|
||||||
|
const left = 3;
|
||||||
|
export class UI {
|
||||||
|
constructor(opts) {
|
||||||
|
var _a;
|
||||||
|
this.width = opts.width;
|
||||||
|
/* c8 ignore start */
|
||||||
|
this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
this.rows = [];
|
||||||
|
}
|
||||||
|
span(...args) {
|
||||||
|
const cols = this.div(...args);
|
||||||
|
cols.span = true;
|
||||||
|
}
|
||||||
|
resetOutput() {
|
||||||
|
this.rows = [];
|
||||||
|
}
|
||||||
|
div(...args) {
|
||||||
|
if (args.length === 0) {
|
||||||
|
this.div('');
|
||||||
|
}
|
||||||
|
if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') {
|
||||||
|
return this.applyLayoutDSL(args[0]);
|
||||||
|
}
|
||||||
|
const cols = args.map(arg => {
|
||||||
|
if (typeof arg === 'string') {
|
||||||
|
return this.colFromString(arg);
|
||||||
|
}
|
||||||
|
return arg;
|
||||||
|
});
|
||||||
|
this.rows.push(cols);
|
||||||
|
return cols;
|
||||||
|
}
|
||||||
|
shouldApplyLayoutDSL(...args) {
|
||||||
|
return args.length === 1 && typeof args[0] === 'string' &&
|
||||||
|
/[\t\n]/.test(args[0]);
|
||||||
|
}
|
||||||
|
applyLayoutDSL(str) {
|
||||||
|
const rows = str.split('\n').map(row => row.split('\t'));
|
||||||
|
let leftColumnWidth = 0;
|
||||||
|
// simple heuristic for layout, make sure the
|
||||||
|
// second column lines up along the left-hand.
|
||||||
|
// don't allow the first column to take up more
|
||||||
|
// than 50% of the screen.
|
||||||
|
rows.forEach(columns => {
|
||||||
|
if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) {
|
||||||
|
leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0]));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// generate a table:
|
||||||
|
// replacing ' ' with padding calculations.
|
||||||
|
// using the algorithmically generated width.
|
||||||
|
rows.forEach(columns => {
|
||||||
|
this.div(...columns.map((r, i) => {
|
||||||
|
return {
|
||||||
|
text: r.trim(),
|
||||||
|
padding: this.measurePadding(r),
|
||||||
|
width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
return this.rows[this.rows.length - 1];
|
||||||
|
}
|
||||||
|
colFromString(text) {
|
||||||
|
return {
|
||||||
|
text,
|
||||||
|
padding: this.measurePadding(text)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
measurePadding(str) {
|
||||||
|
// measure padding without ansi escape codes
|
||||||
|
const noAnsi = mixin.stripAnsi(str);
|
||||||
|
return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length];
|
||||||
|
}
|
||||||
|
toString() {
|
||||||
|
const lines = [];
|
||||||
|
this.rows.forEach(row => {
|
||||||
|
this.rowToString(row, lines);
|
||||||
|
});
|
||||||
|
// don't display any lines with the
|
||||||
|
// hidden flag set.
|
||||||
|
return lines
|
||||||
|
.filter(line => !line.hidden)
|
||||||
|
.map(line => line.text)
|
||||||
|
.join('\n');
|
||||||
|
}
|
||||||
|
rowToString(row, lines) {
|
||||||
|
this.rasterize(row).forEach((rrow, r) => {
|
||||||
|
let str = '';
|
||||||
|
rrow.forEach((col, c) => {
|
||||||
|
const { width } = row[c]; // the width with padding.
|
||||||
|
const wrapWidth = this.negatePadding(row[c]); // the width without padding.
|
||||||
|
let ts = col; // temporary string used during alignment/padding.
|
||||||
|
if (wrapWidth > mixin.stringWidth(col)) {
|
||||||
|
ts += ' '.repeat(wrapWidth - mixin.stringWidth(col));
|
||||||
|
}
|
||||||
|
// align the string within its column.
|
||||||
|
if (row[c].align && row[c].align !== 'left' && this.wrap) {
|
||||||
|
const fn = align[row[c].align];
|
||||||
|
ts = fn(ts, wrapWidth);
|
||||||
|
if (mixin.stringWidth(ts) < wrapWidth) {
|
||||||
|
/* c8 ignore start */
|
||||||
|
const w = width || 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
ts += ' '.repeat(w - mixin.stringWidth(ts) - 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// apply border and padding to string.
|
||||||
|
const padding = row[c].padding || [0, 0, 0, 0];
|
||||||
|
if (padding[left]) {
|
||||||
|
str += ' '.repeat(padding[left]);
|
||||||
|
}
|
||||||
|
str += addBorder(row[c], ts, '| ');
|
||||||
|
str += ts;
|
||||||
|
str += addBorder(row[c], ts, ' |');
|
||||||
|
if (padding[right]) {
|
||||||
|
str += ' '.repeat(padding[right]);
|
||||||
|
}
|
||||||
|
// if prior row is span, try to render the
|
||||||
|
// current row on the prior line.
|
||||||
|
if (r === 0 && lines.length > 0) {
|
||||||
|
str = this.renderInline(str, lines[lines.length - 1]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// remove trailing whitespace.
|
||||||
|
lines.push({
|
||||||
|
text: str.replace(/ +$/, ''),
|
||||||
|
span: row.span
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return lines;
|
||||||
|
}
|
||||||
|
// if the full 'source' can render in
|
||||||
|
// the target line, do so.
|
||||||
|
renderInline(source, previousLine) {
|
||||||
|
const match = source.match(/^ */);
|
||||||
|
/* c8 ignore start */
|
||||||
|
const leadingWhitespace = match ? match[0].length : 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
const target = previousLine.text;
|
||||||
|
const targetTextWidth = mixin.stringWidth(target.trimEnd());
|
||||||
|
if (!previousLine.span) {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
// if we're not applying wrapping logic,
|
||||||
|
// just always append to the span.
|
||||||
|
if (!this.wrap) {
|
||||||
|
previousLine.hidden = true;
|
||||||
|
return target + source;
|
||||||
|
}
|
||||||
|
if (leadingWhitespace < targetTextWidth) {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
previousLine.hidden = true;
|
||||||
|
return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart();
|
||||||
|
}
|
||||||
|
rasterize(row) {
|
||||||
|
const rrows = [];
|
||||||
|
const widths = this.columnWidths(row);
|
||||||
|
let wrapped;
|
||||||
|
// word wrap all columns, and create
|
||||||
|
// a data-structure that is easy to rasterize.
|
||||||
|
row.forEach((col, c) => {
|
||||||
|
// leave room for left and right padding.
|
||||||
|
col.width = widths[c];
|
||||||
|
if (this.wrap) {
|
||||||
|
wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
wrapped = col.text.split('\n');
|
||||||
|
}
|
||||||
|
if (col.border) {
|
||||||
|
wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.');
|
||||||
|
wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'");
|
||||||
|
}
|
||||||
|
// add top and bottom padding.
|
||||||
|
if (col.padding) {
|
||||||
|
wrapped.unshift(...new Array(col.padding[top] || 0).fill(''));
|
||||||
|
wrapped.push(...new Array(col.padding[bottom] || 0).fill(''));
|
||||||
|
}
|
||||||
|
wrapped.forEach((str, r) => {
|
||||||
|
if (!rrows[r]) {
|
||||||
|
rrows.push([]);
|
||||||
|
}
|
||||||
|
const rrow = rrows[r];
|
||||||
|
for (let i = 0; i < c; i++) {
|
||||||
|
if (rrow[i] === undefined) {
|
||||||
|
rrow.push('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rrow.push(str);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return rrows;
|
||||||
|
}
|
||||||
|
negatePadding(col) {
|
||||||
|
/* c8 ignore start */
|
||||||
|
let wrapWidth = col.width || 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
if (col.padding) {
|
||||||
|
wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0);
|
||||||
|
}
|
||||||
|
if (col.border) {
|
||||||
|
wrapWidth -= 4;
|
||||||
|
}
|
||||||
|
return wrapWidth;
|
||||||
|
}
|
||||||
|
columnWidths(row) {
|
||||||
|
if (!this.wrap) {
|
||||||
|
return row.map(col => {
|
||||||
|
return col.width || mixin.stringWidth(col.text);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
let unset = row.length;
|
||||||
|
let remainingWidth = this.width;
|
||||||
|
// column widths can be set in config.
|
||||||
|
const widths = row.map(col => {
|
||||||
|
if (col.width) {
|
||||||
|
unset--;
|
||||||
|
remainingWidth -= col.width;
|
||||||
|
return col.width;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
});
|
||||||
|
// any unset widths should be calculated.
|
||||||
|
/* c8 ignore start */
|
||||||
|
const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0;
|
||||||
|
/* c8 ignore stop */
|
||||||
|
return widths.map((w, i) => {
|
||||||
|
if (w === undefined) {
|
||||||
|
return Math.max(unsetWidth, _minWidth(row[i]));
|
||||||
|
}
|
||||||
|
return w;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function addBorder(col, ts, style) {
|
||||||
|
if (col.border) {
|
||||||
|
if (/[.']-+[.']/.test(ts)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
if (ts.trim().length !== 0) {
|
||||||
|
return style;
|
||||||
|
}
|
||||||
|
return ' ';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
// calculates the minimum width of
|
||||||
|
// a column, based on padding preferences.
|
||||||
|
function _minWidth(col) {
|
||||||
|
const padding = col.padding || [];
|
||||||
|
const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0);
|
||||||
|
if (col.border) {
|
||||||
|
return minWidth + 4;
|
||||||
|
}
|
||||||
|
return minWidth;
|
||||||
|
}
|
||||||
|
function getWindowWidth() {
|
||||||
|
/* c8 ignore start */
|
||||||
|
if (typeof process === 'object' && process.stdout && process.stdout.columns) {
|
||||||
|
return process.stdout.columns;
|
||||||
|
}
|
||||||
|
return 80;
|
||||||
|
}
|
||||||
|
/* c8 ignore stop */
|
||||||
|
function alignRight(str, width) {
|
||||||
|
str = str.trim();
|
||||||
|
const strWidth = mixin.stringWidth(str);
|
||||||
|
if (strWidth < width) {
|
||||||
|
return ' '.repeat(width - strWidth) + str;
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
function alignCenter(str, width) {
|
||||||
|
str = str.trim();
|
||||||
|
const strWidth = mixin.stringWidth(str);
|
||||||
|
/* c8 ignore start */
|
||||||
|
if (strWidth >= width) {
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
/* c8 ignore stop */
|
||||||
|
return ' '.repeat((width - strWidth) >> 1) + str;
|
||||||
|
}
|
||||||
|
let mixin;
|
||||||
|
export function cliui(opts, _mixin) {
|
||||||
|
mixin = _mixin;
|
||||||
|
return new UI({
|
||||||
|
/* c8 ignore start */
|
||||||
|
width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(),
|
||||||
|
wrap: opts === null || opts === void 0 ? void 0 : opts.wrap
|
||||||
|
/* c8 ignore stop */
|
||||||
|
});
|
||||||
|
}
|
14
web/node_modules/@isaacs/cliui/index.mjs
generated
vendored
Normal file
14
web/node_modules/@isaacs/cliui/index.mjs
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// Bootstrap cliui with ESM dependencies:
|
||||||
|
import { cliui } from './build/lib/index.js'
|
||||||
|
|
||||||
|
import stringWidth from 'string-width'
|
||||||
|
import stripAnsi from 'strip-ansi'
|
||||||
|
import wrap from 'wrap-ansi'
|
||||||
|
|
||||||
|
export default function ui (opts) {
|
||||||
|
return cliui(opts, {
|
||||||
|
stringWidth,
|
||||||
|
stripAnsi,
|
||||||
|
wrap
|
||||||
|
})
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user