Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- Dockerfile +16 -0
- README.md +12 -5
- __init__.py +0 -0
- app.py +14 -0
- requirements.txt +1 -0
- src/.gitignore +8 -0
- src/README.md +38 -0
- src/backend/gradio_iframe/__init__.py +4 -0
- src/backend/gradio_iframe/iframe.py +72 -0
- src/backend/gradio_iframe/iframe.pyi +111 -0
- src/backend/gradio_iframe/templates/component/index.js +2003 -0
- src/backend/gradio_iframe/templates/component/style.css +1 -0
- src/backend/gradio_iframe/templates/example/index.js +89 -0
- src/backend/gradio_iframe/templates/example/style.css +1 -0
- src/demo/__init__.py +0 -0
- src/demo/app.py +14 -0
- src/frontend/Example.svelte +20 -0
- src/frontend/Index.svelte +47 -0
- src/frontend/package-lock.json +934 -0
- src/frontend/package.json +20 -0
- src/frontend/shared/HTML.svelte +28 -0
- src/pyproject.toml +42 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
COPY --link --chown=1000 . .
|
7 |
+
|
8 |
+
RUN mkdir -p /tmp/cache/
|
9 |
+
RUN chmod a+rwx -R /tmp/cache/
|
10 |
+
ENV TRANSFORMERS_CACHE=/tmp/cache/
|
11 |
+
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
+
|
14 |
+
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
|
15 |
+
|
16 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -1,10 +1,17 @@
|
|
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
---
|
3 |
+
tags: [gradio-custom-component,gradio-template-HTML,HTML,iFrame]
|
4 |
+
title: gradio_iframe V0.0.1
|
5 |
+
colorFrom: gray
|
6 |
+
colorTo: green
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
+
license: apache-2.0
|
10 |
---
|
11 |
|
12 |
+
|
13 |
+
# Name: gradio_iframe
|
14 |
+
|
15 |
+
Description: Experimental empowered iFrame component based on existing HTML gradio component.
|
16 |
+
|
17 |
+
Install with: pip install gradio_iframe
|
__init__.py
ADDED
File without changes
|
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from gradio_iframe import iFrame
|
4 |
+
|
5 |
+
|
6 |
+
example = iFrame().example_inputs()
|
7 |
+
|
8 |
+
with gr.Blocks() as demo:
|
9 |
+
with gr.Row():
|
10 |
+
iFrame(label="Blank"), # blank component
|
11 |
+
iFrame(value=example, label="Populated"), # populated component
|
12 |
+
|
13 |
+
|
14 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio_iframe-0.0.1-py3-none-any.whl
|
src/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.eggs/
|
2 |
+
*.pyc
|
3 |
+
__pycache__/
|
4 |
+
*.py[cod]
|
5 |
+
*$py.class
|
6 |
+
__tmp/*
|
7 |
+
*.pyi
|
8 |
+
node_modules
|
src/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# gradio_iframe
|
2 |
+
A custom gradio component to embed an iframe in a gradio interface. This component is based on the [HTML]() component.
|
3 |
+
It's currently still a work in progress.
|
4 |
+
|
5 |
+
## Usage
|
6 |
+
|
7 |
+
The usage is similar to the HTML component. You can pass valid html and it will be rendered in the interface as an iframe, meaning you can embed any website or webapp that supports iframes.
|
8 |
+
Also, JavaScript should run normal.
|
9 |
+
|
10 |
+
You can still pass normal html that's not interactive.
|
11 |
+
|
12 |
+
### Example
|
13 |
+
|
14 |
+
```python
|
15 |
+
import gradio as gr
|
16 |
+
from gradio_iframe import iFrame
|
17 |
+
|
18 |
+
gr.Interface(
|
19 |
+
iFrame(
|
20 |
+
label="iFrame Example",
|
21 |
+
value=("https://www.youtube.com/watch?v=dQw4w9WgXcQ"),
|
22 |
+
show_label=True)
|
23 |
+
)
|
24 |
+
```
|
25 |
+
|
26 |
+
## Known Issues
|
27 |
+
|
28 |
+
**There are many reason why it's not a good idea to embed websites in an iframe.**
|
29 |
+
See [this](https://blog.bitsrc.io/4-security-concerns-with-iframes-every-web-developer-should-know-24c73e6a33e4), or just google "iframe security concerns" for more information. Also, iFrames will use additional computing power and memory, which can slow down the interface.
|
30 |
+
|
31 |
+
Also this component is still a work in progress and not fully tested. Use at your own risk.
|
32 |
+
|
33 |
+
### Other Issues
|
34 |
+
|
35 |
+
- Height does not grow according to the inner component.
|
36 |
+
- ...
|
37 |
+
|
38 |
+
|
src/backend/gradio_iframe/__init__.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
from .iframe import iFrame
|
3 |
+
|
4 |
+
__all__ = ['iFrame']
|
src/backend/gradio_iframe/iframe.py
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""gr.HTML() component."""
|
2 |
+
|
3 |
+
from __future__ import annotations
|
4 |
+
|
5 |
+
from typing import Any, Callable
|
6 |
+
|
7 |
+
from gradio_client.documentation import document, set_documentation_group
|
8 |
+
|
9 |
+
from gradio.components.base import Component
|
10 |
+
from gradio.events import Events
|
11 |
+
|
12 |
+
set_documentation_group("component")
|
13 |
+
|
14 |
+
|
15 |
+
@document()
|
16 |
+
class iFrame(Component):
|
17 |
+
"""
|
18 |
+
Used to display abitrary html output.
|
19 |
+
Preprocessing: this component does *not* accept input.
|
20 |
+
Postprocessing: expects a valid HTML {str}.
|
21 |
+
|
22 |
+
Demos: text_analysis
|
23 |
+
Guides: key-features
|
24 |
+
"""
|
25 |
+
|
26 |
+
EVENTS = [Events.change]
|
27 |
+
|
28 |
+
def __init__(
|
29 |
+
self,
|
30 |
+
value: str | Callable = "",
|
31 |
+
*,
|
32 |
+
label: str | None = None,
|
33 |
+
every: float | None = None,
|
34 |
+
show_label: bool | None = None,
|
35 |
+
visible: bool = True,
|
36 |
+
elem_id: str | None = None,
|
37 |
+
elem_classes: list[str] | str | None = None,
|
38 |
+
render: bool = True,
|
39 |
+
):
|
40 |
+
"""
|
41 |
+
Parameters:
|
42 |
+
value: Default value. If callable, the function will be called whenever the app loads to set the initial value of the component.
|
43 |
+
label: The label for this component. Is used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.
|
44 |
+
every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
|
45 |
+
show_label: This parameter has no effect.
|
46 |
+
visible: If False, component will be hidden.
|
47 |
+
elem_id: An optional string that is assigned as the id of this component in the iFrame DOM. Can be used for targeting CSS styles.
|
48 |
+
elem_classes: An optional list of strings that are assigned as the classes of this component in the iFrame DOM. Can be used for targeting CSS styles.
|
49 |
+
render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
|
50 |
+
"""
|
51 |
+
super().__init__(
|
52 |
+
label=label,
|
53 |
+
every=every,
|
54 |
+
show_label=show_label,
|
55 |
+
visible=visible,
|
56 |
+
elem_id=elem_id,
|
57 |
+
elem_classes=elem_classes,
|
58 |
+
render=render,
|
59 |
+
value=value,
|
60 |
+
)
|
61 |
+
|
62 |
+
def example_inputs(self) -> Any:
|
63 |
+
return "<p>Hello</p>"
|
64 |
+
|
65 |
+
def preprocess(self, payload: str | None) -> str | None:
|
66 |
+
return payload
|
67 |
+
|
68 |
+
def postprocess(self, value: str | None) -> str | None:
|
69 |
+
return value
|
70 |
+
|
71 |
+
def api_info(self) -> dict[str, Any]:
|
72 |
+
return {"type": "string"}
|
src/backend/gradio_iframe/iframe.pyi
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""gr.HTML() component."""
|
2 |
+
|
3 |
+
from __future__ import annotations
|
4 |
+
|
5 |
+
from typing import Any, Callable
|
6 |
+
|
7 |
+
from gradio_client.documentation import document, set_documentation_group
|
8 |
+
|
9 |
+
from gradio.components.base import Component
|
10 |
+
from gradio.events import Events
|
11 |
+
|
12 |
+
set_documentation_group("component")
|
13 |
+
|
14 |
+
from gradio.events import Dependency
|
15 |
+
|
16 |
+
@document()
|
17 |
+
class iFrame(Component):
|
18 |
+
"""
|
19 |
+
Used to display abitrary html output.
|
20 |
+
Preprocessing: this component does *not* accept input.
|
21 |
+
Postprocessing: expects a valid HTML {str}.
|
22 |
+
|
23 |
+
Demos: text_analysis
|
24 |
+
Guides: key-features
|
25 |
+
"""
|
26 |
+
|
27 |
+
EVENTS = [Events.change]
|
28 |
+
|
29 |
+
def __init__(
|
30 |
+
self,
|
31 |
+
value: str | Callable = "",
|
32 |
+
*,
|
33 |
+
label: str | None = None,
|
34 |
+
every: float | None = None,
|
35 |
+
show_label: bool | None = None,
|
36 |
+
visible: bool = True,
|
37 |
+
elem_id: str | None = None,
|
38 |
+
elem_classes: list[str] | str | None = None,
|
39 |
+
render: bool = True,
|
40 |
+
):
|
41 |
+
"""
|
42 |
+
Parameters:
|
43 |
+
value: Default value. If callable, the function will be called whenever the app loads to set the initial value of the component.
|
44 |
+
label: The label for this component. Is used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.
|
45 |
+
every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
|
46 |
+
show_label: This parameter has no effect.
|
47 |
+
visible: If False, component will be hidden.
|
48 |
+
elem_id: An optional string that is assigned as the id of this component in the iFrame DOM. Can be used for targeting CSS styles.
|
49 |
+
elem_classes: An optional list of strings that are assigned as the classes of this component in the iFrame DOM. Can be used for targeting CSS styles.
|
50 |
+
render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
|
51 |
+
"""
|
52 |
+
super().__init__(
|
53 |
+
label=label,
|
54 |
+
every=every,
|
55 |
+
show_label=show_label,
|
56 |
+
visible=visible,
|
57 |
+
elem_id=elem_id,
|
58 |
+
elem_classes=elem_classes,
|
59 |
+
render=render,
|
60 |
+
value=value,
|
61 |
+
)
|
62 |
+
|
63 |
+
def example_inputs(self) -> Any:
|
64 |
+
return "<p>Hello</p>"
|
65 |
+
|
66 |
+
def preprocess(self, payload: str | None) -> str | None:
|
67 |
+
return payload
|
68 |
+
|
69 |
+
def postprocess(self, value: str | None) -> str | None:
|
70 |
+
return value
|
71 |
+
|
72 |
+
def api_info(self) -> dict[str, Any]:
|
73 |
+
return {"type": "string"}
|
74 |
+
|
75 |
+
|
76 |
+
def change(self,
|
77 |
+
fn: Callable | None,
|
78 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
79 |
+
outputs: Component | Sequence[Component] | None = None,
|
80 |
+
api_name: str | None | Literal[False] = None,
|
81 |
+
status_tracker: None = None,
|
82 |
+
scroll_to_output: bool = False,
|
83 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
84 |
+
queue: bool | None = None,
|
85 |
+
batch: bool = False,
|
86 |
+
max_batch_size: int = 4,
|
87 |
+
preprocess: bool = True,
|
88 |
+
postprocess: bool = True,
|
89 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
90 |
+
every: float | None = None,
|
91 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
92 |
+
js: str | None = None,) -> Dependency:
|
93 |
+
"""
|
94 |
+
Parameters:
|
95 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
96 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
97 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
98 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
99 |
+
scroll_to_output: If True, will scroll to output component on completion
|
100 |
+
show_progress: If True, will show progress animation while pending
|
101 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
102 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
103 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
104 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
105 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
106 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
107 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
|
108 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` event) would allow a second submission after the pending event is complete.
|
109 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
110 |
+
"""
|
111 |
+
...
|
src/backend/gradio_iframe/templates/component/index.js
ADDED
@@ -0,0 +1,2003 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const {
|
2 |
+
SvelteComponent: nt,
|
3 |
+
append: it,
|
4 |
+
attr: B,
|
5 |
+
detach: st,
|
6 |
+
element: we,
|
7 |
+
init: ft,
|
8 |
+
insert: ot,
|
9 |
+
noop: ve,
|
10 |
+
safe_not_equal: at,
|
11 |
+
toggle_class: x
|
12 |
+
} = window.__gradio__svelte__internal, { createEventDispatcher: rt } = window.__gradio__svelte__internal;
|
13 |
+
function _t(n) {
|
14 |
+
let t, e, l;
|
15 |
+
return {
|
16 |
+
c() {
|
17 |
+
t = we("div"), e = we("iframe"), B(e, "title", "iframe component"), B(e, "width", "100%"), B(e, "height", "100%"), B(
|
18 |
+
e,
|
19 |
+
"srcdoc",
|
20 |
+
/*value*/
|
21 |
+
n[1]
|
22 |
+
), B(e, "allow", "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"), e.allowFullscreen = !0, B(t, "class", l = "prose " + /*elem_classes*/
|
23 |
+
n[0].join(" ") + " svelte-2qygph"), x(
|
24 |
+
t,
|
25 |
+
"min",
|
26 |
+
/*min_height*/
|
27 |
+
n[3]
|
28 |
+
), x(t, "hide", !/*visible*/
|
29 |
+
n[2]);
|
30 |
+
},
|
31 |
+
m(i, f) {
|
32 |
+
ot(i, t, f), it(t, e);
|
33 |
+
},
|
34 |
+
p(i, [f]) {
|
35 |
+
f & /*value*/
|
36 |
+
2 && B(
|
37 |
+
e,
|
38 |
+
"srcdoc",
|
39 |
+
/*value*/
|
40 |
+
i[1]
|
41 |
+
), f & /*elem_classes*/
|
42 |
+
1 && l !== (l = "prose " + /*elem_classes*/
|
43 |
+
i[0].join(" ") + " svelte-2qygph") && B(t, "class", l), f & /*elem_classes, min_height*/
|
44 |
+
9 && x(
|
45 |
+
t,
|
46 |
+
"min",
|
47 |
+
/*min_height*/
|
48 |
+
i[3]
|
49 |
+
), f & /*elem_classes, visible*/
|
50 |
+
5 && x(t, "hide", !/*visible*/
|
51 |
+
i[2]);
|
52 |
+
},
|
53 |
+
i: ve,
|
54 |
+
o: ve,
|
55 |
+
d(i) {
|
56 |
+
i && st(t);
|
57 |
+
}
|
58 |
+
};
|
59 |
+
}
|
60 |
+
function ct(n, t, e) {
|
61 |
+
let { elem_classes: l = [] } = t, { value: i } = t, { visible: f = !0 } = t, { min_height: o = !1 } = t;
|
62 |
+
const a = rt();
|
63 |
+
return n.$$set = (r) => {
|
64 |
+
"elem_classes" in r && e(0, l = r.elem_classes), "value" in r && e(1, i = r.value), "visible" in r && e(2, f = r.visible), "min_height" in r && e(3, o = r.min_height);
|
65 |
+
}, n.$$.update = () => {
|
66 |
+
n.$$.dirty & /*value*/
|
67 |
+
2 && a("change");
|
68 |
+
}, [l, i, f, o];
|
69 |
+
}
|
70 |
+
class ut extends nt {
|
71 |
+
constructor(t) {
|
72 |
+
super(), ft(this, t, ct, _t, at, {
|
73 |
+
elem_classes: 0,
|
74 |
+
value: 1,
|
75 |
+
visible: 2,
|
76 |
+
min_height: 3
|
77 |
+
});
|
78 |
+
}
|
79 |
+
}
|
80 |
+
function Y(n) {
|
81 |
+
let t = ["", "k", "M", "G", "T", "P", "E", "Z"], e = 0;
|
82 |
+
for (; n > 1e3 && e < t.length - 1; )
|
83 |
+
n /= 1e3, e++;
|
84 |
+
let l = t[e];
|
85 |
+
return (Number.isInteger(n) ? n : n.toFixed(1)) + l;
|
86 |
+
}
|
87 |
+
function te() {
|
88 |
+
}
|
89 |
+
function dt(n, t) {
|
90 |
+
return n != n ? t == t : n !== t || n && typeof n == "object" || typeof n == "function";
|
91 |
+
}
|
92 |
+
const Re = typeof window < "u";
|
93 |
+
let pe = Re ? () => window.performance.now() : () => Date.now(), Ue = Re ? (n) => requestAnimationFrame(n) : te;
|
94 |
+
const G = /* @__PURE__ */ new Set();
|
95 |
+
function Je(n) {
|
96 |
+
G.forEach((t) => {
|
97 |
+
t.c(n) || (G.delete(t), t.f());
|
98 |
+
}), G.size !== 0 && Ue(Je);
|
99 |
+
}
|
100 |
+
function mt(n) {
|
101 |
+
let t;
|
102 |
+
return G.size === 0 && Ue(Je), {
|
103 |
+
promise: new Promise((e) => {
|
104 |
+
G.add(t = { c: n, f: e });
|
105 |
+
}),
|
106 |
+
abort() {
|
107 |
+
G.delete(t);
|
108 |
+
}
|
109 |
+
};
|
110 |
+
}
|
111 |
+
const X = [];
|
112 |
+
function bt(n, t = te) {
|
113 |
+
let e;
|
114 |
+
const l = /* @__PURE__ */ new Set();
|
115 |
+
function i(a) {
|
116 |
+
if (dt(n, a) && (n = a, e)) {
|
117 |
+
const r = !X.length;
|
118 |
+
for (const s of l)
|
119 |
+
s[1](), X.push(s, n);
|
120 |
+
if (r) {
|
121 |
+
for (let s = 0; s < X.length; s += 2)
|
122 |
+
X[s][0](X[s + 1]);
|
123 |
+
X.length = 0;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
}
|
127 |
+
function f(a) {
|
128 |
+
i(a(n));
|
129 |
+
}
|
130 |
+
function o(a, r = te) {
|
131 |
+
const s = [a, r];
|
132 |
+
return l.add(s), l.size === 1 && (e = t(i, f) || te), a(n), () => {
|
133 |
+
l.delete(s), l.size === 0 && e && (e(), e = null);
|
134 |
+
};
|
135 |
+
}
|
136 |
+
return { set: i, update: f, subscribe: o };
|
137 |
+
}
|
138 |
+
function ye(n) {
|
139 |
+
return Object.prototype.toString.call(n) === "[object Date]";
|
140 |
+
}
|
141 |
+
function fe(n, t, e, l) {
|
142 |
+
if (typeof e == "number" || ye(e)) {
|
143 |
+
const i = l - e, f = (e - t) / (n.dt || 1 / 60), o = n.opts.stiffness * i, a = n.opts.damping * f, r = (o - a) * n.inv_mass, s = (f + r) * n.dt;
|
144 |
+
return Math.abs(s) < n.opts.precision && Math.abs(i) < n.opts.precision ? l : (n.settled = !1, ye(e) ? new Date(e.getTime() + s) : e + s);
|
145 |
+
} else {
|
146 |
+
if (Array.isArray(e))
|
147 |
+
return e.map(
|
148 |
+
(i, f) => fe(n, t[f], e[f], l[f])
|
149 |
+
);
|
150 |
+
if (typeof e == "object") {
|
151 |
+
const i = {};
|
152 |
+
for (const f in e)
|
153 |
+
i[f] = fe(n, t[f], e[f], l[f]);
|
154 |
+
return i;
|
155 |
+
} else
|
156 |
+
throw new Error(`Cannot spring ${typeof e} values`);
|
157 |
+
}
|
158 |
+
}
|
159 |
+
function ke(n, t = {}) {
|
160 |
+
const e = bt(n), { stiffness: l = 0.15, damping: i = 0.8, precision: f = 0.01 } = t;
|
161 |
+
let o, a, r, s = n, _ = n, u = 1, w = 0, h = !1;
|
162 |
+
function p(k, L = {}) {
|
163 |
+
_ = k;
|
164 |
+
const F = r = {};
|
165 |
+
return n == null || L.hard || C.stiffness >= 1 && C.damping >= 1 ? (h = !0, o = pe(), s = k, e.set(n = _), Promise.resolve()) : (L.soft && (w = 1 / ((L.soft === !0 ? 0.5 : +L.soft) * 60), u = 0), a || (o = pe(), h = !1, a = mt((c) => {
|
166 |
+
if (h)
|
167 |
+
return h = !1, a = null, !1;
|
168 |
+
u = Math.min(u + w, 1);
|
169 |
+
const y = {
|
170 |
+
inv_mass: u,
|
171 |
+
opts: C,
|
172 |
+
settled: !0,
|
173 |
+
dt: (c - o) * 60 / 1e3
|
174 |
+
}, m = fe(y, s, n, _);
|
175 |
+
return o = c, s = n, e.set(n = m), y.settled && (a = null), !y.settled;
|
176 |
+
})), new Promise((c) => {
|
177 |
+
a.promise.then(() => {
|
178 |
+
F === r && c();
|
179 |
+
});
|
180 |
+
}));
|
181 |
+
}
|
182 |
+
const C = {
|
183 |
+
set: p,
|
184 |
+
update: (k, L) => p(k(_, n), L),
|
185 |
+
subscribe: e.subscribe,
|
186 |
+
stiffness: l,
|
187 |
+
damping: i,
|
188 |
+
precision: f
|
189 |
+
};
|
190 |
+
return C;
|
191 |
+
}
|
192 |
+
const {
|
193 |
+
SvelteComponent: gt,
|
194 |
+
append: N,
|
195 |
+
attr: v,
|
196 |
+
component_subscribe: qe,
|
197 |
+
detach: ht,
|
198 |
+
element: wt,
|
199 |
+
init: vt,
|
200 |
+
insert: pt,
|
201 |
+
noop: Fe,
|
202 |
+
safe_not_equal: yt,
|
203 |
+
set_style: $,
|
204 |
+
svg_element: z,
|
205 |
+
toggle_class: Le
|
206 |
+
} = window.__gradio__svelte__internal, { onMount: kt } = window.__gradio__svelte__internal;
|
207 |
+
function qt(n) {
|
208 |
+
let t, e, l, i, f, o, a, r, s, _, u, w;
|
209 |
+
return {
|
210 |
+
c() {
|
211 |
+
t = wt("div"), e = z("svg"), l = z("g"), i = z("path"), f = z("path"), o = z("path"), a = z("path"), r = z("g"), s = z("path"), _ = z("path"), u = z("path"), w = z("path"), v(i, "d", "M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"), v(i, "fill", "#FF7C00"), v(i, "fill-opacity", "0.4"), v(i, "class", "svelte-43sxxs"), v(f, "d", "M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"), v(f, "fill", "#FF7C00"), v(f, "class", "svelte-43sxxs"), v(o, "d", "M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"), v(o, "fill", "#FF7C00"), v(o, "fill-opacity", "0.4"), v(o, "class", "svelte-43sxxs"), v(a, "d", "M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"), v(a, "fill", "#FF7C00"), v(a, "class", "svelte-43sxxs"), $(l, "transform", "translate(" + /*$top*/
|
212 |
+
n[1][0] + "px, " + /*$top*/
|
213 |
+
n[1][1] + "px)"), v(s, "d", "M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"), v(s, "fill", "#FF7C00"), v(s, "fill-opacity", "0.4"), v(s, "class", "svelte-43sxxs"), v(_, "d", "M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"), v(_, "fill", "#FF7C00"), v(_, "class", "svelte-43sxxs"), v(u, "d", "M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"), v(u, "fill", "#FF7C00"), v(u, "fill-opacity", "0.4"), v(u, "class", "svelte-43sxxs"), v(w, "d", "M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"), v(w, "fill", "#FF7C00"), v(w, "class", "svelte-43sxxs"), $(r, "transform", "translate(" + /*$bottom*/
|
214 |
+
n[2][0] + "px, " + /*$bottom*/
|
215 |
+
n[2][1] + "px)"), v(e, "viewBox", "-1200 -1200 3000 3000"), v(e, "fill", "none"), v(e, "xmlns", "http://www.w3.org/2000/svg"), v(e, "class", "svelte-43sxxs"), v(t, "class", "svelte-43sxxs"), Le(
|
216 |
+
t,
|
217 |
+
"margin",
|
218 |
+
/*margin*/
|
219 |
+
n[0]
|
220 |
+
);
|
221 |
+
},
|
222 |
+
m(h, p) {
|
223 |
+
pt(h, t, p), N(t, e), N(e, l), N(l, i), N(l, f), N(l, o), N(l, a), N(e, r), N(r, s), N(r, _), N(r, u), N(r, w);
|
224 |
+
},
|
225 |
+
p(h, [p]) {
|
226 |
+
p & /*$top*/
|
227 |
+
2 && $(l, "transform", "translate(" + /*$top*/
|
228 |
+
h[1][0] + "px, " + /*$top*/
|
229 |
+
h[1][1] + "px)"), p & /*$bottom*/
|
230 |
+
4 && $(r, "transform", "translate(" + /*$bottom*/
|
231 |
+
h[2][0] + "px, " + /*$bottom*/
|
232 |
+
h[2][1] + "px)"), p & /*margin*/
|
233 |
+
1 && Le(
|
234 |
+
t,
|
235 |
+
"margin",
|
236 |
+
/*margin*/
|
237 |
+
h[0]
|
238 |
+
);
|
239 |
+
},
|
240 |
+
i: Fe,
|
241 |
+
o: Fe,
|
242 |
+
d(h) {
|
243 |
+
h && ht(t);
|
244 |
+
}
|
245 |
+
};
|
246 |
+
}
|
247 |
+
function Ft(n, t, e) {
|
248 |
+
let l, i, { margin: f = !0 } = t;
|
249 |
+
const o = ke([0, 0]);
|
250 |
+
qe(n, o, (w) => e(1, l = w));
|
251 |
+
const a = ke([0, 0]);
|
252 |
+
qe(n, a, (w) => e(2, i = w));
|
253 |
+
let r;
|
254 |
+
async function s() {
|
255 |
+
await Promise.all([o.set([125, 140]), a.set([-125, -140])]), await Promise.all([o.set([-125, 140]), a.set([125, -140])]), await Promise.all([o.set([-125, 0]), a.set([125, -0])]), await Promise.all([o.set([125, 0]), a.set([-125, 0])]);
|
256 |
+
}
|
257 |
+
async function _() {
|
258 |
+
await s(), r || _();
|
259 |
+
}
|
260 |
+
async function u() {
|
261 |
+
await Promise.all([o.set([125, 0]), a.set([-125, 0])]), _();
|
262 |
+
}
|
263 |
+
return kt(() => (u(), () => r = !0)), n.$$set = (w) => {
|
264 |
+
"margin" in w && e(0, f = w.margin);
|
265 |
+
}, [f, l, i, o, a];
|
266 |
+
}
|
267 |
+
class Lt extends gt {
|
268 |
+
constructor(t) {
|
269 |
+
super(), vt(this, t, Ft, qt, yt, { margin: 0 });
|
270 |
+
}
|
271 |
+
}
|
272 |
+
const {
|
273 |
+
SvelteComponent: Ct,
|
274 |
+
append: H,
|
275 |
+
attr: T,
|
276 |
+
binding_callbacks: Ce,
|
277 |
+
check_outros: Ke,
|
278 |
+
create_component: Mt,
|
279 |
+
create_slot: Vt,
|
280 |
+
destroy_component: St,
|
281 |
+
destroy_each: Qe,
|
282 |
+
detach: b,
|
283 |
+
element: P,
|
284 |
+
empty: U,
|
285 |
+
ensure_array_like: le,
|
286 |
+
get_all_dirty_from_scope: Nt,
|
287 |
+
get_slot_changes: zt,
|
288 |
+
group_outros: We,
|
289 |
+
init: Tt,
|
290 |
+
insert: g,
|
291 |
+
mount_component: jt,
|
292 |
+
noop: oe,
|
293 |
+
safe_not_equal: Pt,
|
294 |
+
set_data: S,
|
295 |
+
set_style: D,
|
296 |
+
space: j,
|
297 |
+
text: q,
|
298 |
+
toggle_class: V,
|
299 |
+
transition_in: O,
|
300 |
+
transition_out: R,
|
301 |
+
update_slot_base: Zt
|
302 |
+
} = window.__gradio__svelte__internal, { tick: Bt } = window.__gradio__svelte__internal, { onDestroy: At } = window.__gradio__svelte__internal, Dt = (n) => ({}), Me = (n) => ({});
|
303 |
+
function Ve(n, t, e) {
|
304 |
+
const l = n.slice();
|
305 |
+
return l[38] = t[e], l[40] = e, l;
|
306 |
+
}
|
307 |
+
function Se(n, t, e) {
|
308 |
+
const l = n.slice();
|
309 |
+
return l[38] = t[e], l;
|
310 |
+
}
|
311 |
+
function Et(n) {
|
312 |
+
let t, e = (
|
313 |
+
/*i18n*/
|
314 |
+
n[1]("common.error") + ""
|
315 |
+
), l, i, f;
|
316 |
+
const o = (
|
317 |
+
/*#slots*/
|
318 |
+
n[29].error
|
319 |
+
), a = Vt(
|
320 |
+
o,
|
321 |
+
n,
|
322 |
+
/*$$scope*/
|
323 |
+
n[28],
|
324 |
+
Me
|
325 |
+
);
|
326 |
+
return {
|
327 |
+
c() {
|
328 |
+
t = P("span"), l = q(e), i = j(), a && a.c(), T(t, "class", "error svelte-1txqlrd");
|
329 |
+
},
|
330 |
+
m(r, s) {
|
331 |
+
g(r, t, s), H(t, l), g(r, i, s), a && a.m(r, s), f = !0;
|
332 |
+
},
|
333 |
+
p(r, s) {
|
334 |
+
(!f || s[0] & /*i18n*/
|
335 |
+
2) && e !== (e = /*i18n*/
|
336 |
+
r[1]("common.error") + "") && S(l, e), a && a.p && (!f || s[0] & /*$$scope*/
|
337 |
+
268435456) && Zt(
|
338 |
+
a,
|
339 |
+
o,
|
340 |
+
r,
|
341 |
+
/*$$scope*/
|
342 |
+
r[28],
|
343 |
+
f ? zt(
|
344 |
+
o,
|
345 |
+
/*$$scope*/
|
346 |
+
r[28],
|
347 |
+
s,
|
348 |
+
Dt
|
349 |
+
) : Nt(
|
350 |
+
/*$$scope*/
|
351 |
+
r[28]
|
352 |
+
),
|
353 |
+
Me
|
354 |
+
);
|
355 |
+
},
|
356 |
+
i(r) {
|
357 |
+
f || (O(a, r), f = !0);
|
358 |
+
},
|
359 |
+
o(r) {
|
360 |
+
R(a, r), f = !1;
|
361 |
+
},
|
362 |
+
d(r) {
|
363 |
+
r && (b(t), b(i)), a && a.d(r);
|
364 |
+
}
|
365 |
+
};
|
366 |
+
}
|
367 |
+
function It(n) {
|
368 |
+
let t, e, l, i, f, o, a, r, s, _ = (
|
369 |
+
/*variant*/
|
370 |
+
n[8] === "default" && /*show_eta_bar*/
|
371 |
+
n[18] && /*show_progress*/
|
372 |
+
n[6] === "full" && Ne(n)
|
373 |
+
);
|
374 |
+
function u(c, y) {
|
375 |
+
if (
|
376 |
+
/*progress*/
|
377 |
+
c[7]
|
378 |
+
)
|
379 |
+
return Yt;
|
380 |
+
if (
|
381 |
+
/*queue_position*/
|
382 |
+
c[2] !== null && /*queue_size*/
|
383 |
+
c[3] !== void 0 && /*queue_position*/
|
384 |
+
c[2] >= 0
|
385 |
+
)
|
386 |
+
return Xt;
|
387 |
+
if (
|
388 |
+
/*queue_position*/
|
389 |
+
c[2] === 0
|
390 |
+
)
|
391 |
+
return Ht;
|
392 |
+
}
|
393 |
+
let w = u(n), h = w && w(n), p = (
|
394 |
+
/*timer*/
|
395 |
+
n[5] && je(n)
|
396 |
+
);
|
397 |
+
const C = [Ut, Rt], k = [];
|
398 |
+
function L(c, y) {
|
399 |
+
return (
|
400 |
+
/*last_progress_level*/
|
401 |
+
c[15] != null ? 0 : (
|
402 |
+
/*show_progress*/
|
403 |
+
c[6] === "full" ? 1 : -1
|
404 |
+
)
|
405 |
+
);
|
406 |
+
}
|
407 |
+
~(f = L(n)) && (o = k[f] = C[f](n));
|
408 |
+
let F = !/*timer*/
|
409 |
+
n[5] && Ie(n);
|
410 |
+
return {
|
411 |
+
c() {
|
412 |
+
_ && _.c(), t = j(), e = P("div"), h && h.c(), l = j(), p && p.c(), i = j(), o && o.c(), a = j(), F && F.c(), r = U(), T(e, "class", "progress-text svelte-1txqlrd"), V(
|
413 |
+
e,
|
414 |
+
"meta-text-center",
|
415 |
+
/*variant*/
|
416 |
+
n[8] === "center"
|
417 |
+
), V(
|
418 |
+
e,
|
419 |
+
"meta-text",
|
420 |
+
/*variant*/
|
421 |
+
n[8] === "default"
|
422 |
+
);
|
423 |
+
},
|
424 |
+
m(c, y) {
|
425 |
+
_ && _.m(c, y), g(c, t, y), g(c, e, y), h && h.m(e, null), H(e, l), p && p.m(e, null), g(c, i, y), ~f && k[f].m(c, y), g(c, a, y), F && F.m(c, y), g(c, r, y), s = !0;
|
426 |
+
},
|
427 |
+
p(c, y) {
|
428 |
+
/*variant*/
|
429 |
+
c[8] === "default" && /*show_eta_bar*/
|
430 |
+
c[18] && /*show_progress*/
|
431 |
+
c[6] === "full" ? _ ? _.p(c, y) : (_ = Ne(c), _.c(), _.m(t.parentNode, t)) : _ && (_.d(1), _ = null), w === (w = u(c)) && h ? h.p(c, y) : (h && h.d(1), h = w && w(c), h && (h.c(), h.m(e, l))), /*timer*/
|
432 |
+
c[5] ? p ? p.p(c, y) : (p = je(c), p.c(), p.m(e, null)) : p && (p.d(1), p = null), (!s || y[0] & /*variant*/
|
433 |
+
256) && V(
|
434 |
+
e,
|
435 |
+
"meta-text-center",
|
436 |
+
/*variant*/
|
437 |
+
c[8] === "center"
|
438 |
+
), (!s || y[0] & /*variant*/
|
439 |
+
256) && V(
|
440 |
+
e,
|
441 |
+
"meta-text",
|
442 |
+
/*variant*/
|
443 |
+
c[8] === "default"
|
444 |
+
);
|
445 |
+
let m = f;
|
446 |
+
f = L(c), f === m ? ~f && k[f].p(c, y) : (o && (We(), R(k[m], 1, 1, () => {
|
447 |
+
k[m] = null;
|
448 |
+
}), Ke()), ~f ? (o = k[f], o ? o.p(c, y) : (o = k[f] = C[f](c), o.c()), O(o, 1), o.m(a.parentNode, a)) : o = null), /*timer*/
|
449 |
+
c[5] ? F && (F.d(1), F = null) : F ? F.p(c, y) : (F = Ie(c), F.c(), F.m(r.parentNode, r));
|
450 |
+
},
|
451 |
+
i(c) {
|
452 |
+
s || (O(o), s = !0);
|
453 |
+
},
|
454 |
+
o(c) {
|
455 |
+
R(o), s = !1;
|
456 |
+
},
|
457 |
+
d(c) {
|
458 |
+
c && (b(t), b(e), b(i), b(a), b(r)), _ && _.d(c), h && h.d(), p && p.d(), ~f && k[f].d(c), F && F.d(c);
|
459 |
+
}
|
460 |
+
};
|
461 |
+
}
|
462 |
+
function Ne(n) {
|
463 |
+
let t, e = `translateX(${/*eta_level*/
|
464 |
+
(n[17] || 0) * 100 - 100}%)`;
|
465 |
+
return {
|
466 |
+
c() {
|
467 |
+
t = P("div"), T(t, "class", "eta-bar svelte-1txqlrd"), D(t, "transform", e);
|
468 |
+
},
|
469 |
+
m(l, i) {
|
470 |
+
g(l, t, i);
|
471 |
+
},
|
472 |
+
p(l, i) {
|
473 |
+
i[0] & /*eta_level*/
|
474 |
+
131072 && e !== (e = `translateX(${/*eta_level*/
|
475 |
+
(l[17] || 0) * 100 - 100}%)`) && D(t, "transform", e);
|
476 |
+
},
|
477 |
+
d(l) {
|
478 |
+
l && b(t);
|
479 |
+
}
|
480 |
+
};
|
481 |
+
}
|
482 |
+
function Ht(n) {
|
483 |
+
let t;
|
484 |
+
return {
|
485 |
+
c() {
|
486 |
+
t = q("processing |");
|
487 |
+
},
|
488 |
+
m(e, l) {
|
489 |
+
g(e, t, l);
|
490 |
+
},
|
491 |
+
p: oe,
|
492 |
+
d(e) {
|
493 |
+
e && b(t);
|
494 |
+
}
|
495 |
+
};
|
496 |
+
}
|
497 |
+
function Xt(n) {
|
498 |
+
let t, e = (
|
499 |
+
/*queue_position*/
|
500 |
+
n[2] + 1 + ""
|
501 |
+
), l, i, f, o;
|
502 |
+
return {
|
503 |
+
c() {
|
504 |
+
t = q("queue: "), l = q(e), i = q("/"), f = q(
|
505 |
+
/*queue_size*/
|
506 |
+
n[3]
|
507 |
+
), o = q(" |");
|
508 |
+
},
|
509 |
+
m(a, r) {
|
510 |
+
g(a, t, r), g(a, l, r), g(a, i, r), g(a, f, r), g(a, o, r);
|
511 |
+
},
|
512 |
+
p(a, r) {
|
513 |
+
r[0] & /*queue_position*/
|
514 |
+
4 && e !== (e = /*queue_position*/
|
515 |
+
a[2] + 1 + "") && S(l, e), r[0] & /*queue_size*/
|
516 |
+
8 && S(
|
517 |
+
f,
|
518 |
+
/*queue_size*/
|
519 |
+
a[3]
|
520 |
+
);
|
521 |
+
},
|
522 |
+
d(a) {
|
523 |
+
a && (b(t), b(l), b(i), b(f), b(o));
|
524 |
+
}
|
525 |
+
};
|
526 |
+
}
|
527 |
+
function Yt(n) {
|
528 |
+
let t, e = le(
|
529 |
+
/*progress*/
|
530 |
+
n[7]
|
531 |
+
), l = [];
|
532 |
+
for (let i = 0; i < e.length; i += 1)
|
533 |
+
l[i] = Te(Se(n, e, i));
|
534 |
+
return {
|
535 |
+
c() {
|
536 |
+
for (let i = 0; i < l.length; i += 1)
|
537 |
+
l[i].c();
|
538 |
+
t = U();
|
539 |
+
},
|
540 |
+
m(i, f) {
|
541 |
+
for (let o = 0; o < l.length; o += 1)
|
542 |
+
l[o] && l[o].m(i, f);
|
543 |
+
g(i, t, f);
|
544 |
+
},
|
545 |
+
p(i, f) {
|
546 |
+
if (f[0] & /*progress*/
|
547 |
+
128) {
|
548 |
+
e = le(
|
549 |
+
/*progress*/
|
550 |
+
i[7]
|
551 |
+
);
|
552 |
+
let o;
|
553 |
+
for (o = 0; o < e.length; o += 1) {
|
554 |
+
const a = Se(i, e, o);
|
555 |
+
l[o] ? l[o].p(a, f) : (l[o] = Te(a), l[o].c(), l[o].m(t.parentNode, t));
|
556 |
+
}
|
557 |
+
for (; o < l.length; o += 1)
|
558 |
+
l[o].d(1);
|
559 |
+
l.length = e.length;
|
560 |
+
}
|
561 |
+
},
|
562 |
+
d(i) {
|
563 |
+
i && b(t), Qe(l, i);
|
564 |
+
}
|
565 |
+
};
|
566 |
+
}
|
567 |
+
function ze(n) {
|
568 |
+
let t, e = (
|
569 |
+
/*p*/
|
570 |
+
n[38].unit + ""
|
571 |
+
), l, i, f = " ", o;
|
572 |
+
function a(_, u) {
|
573 |
+
return (
|
574 |
+
/*p*/
|
575 |
+
_[38].length != null ? Ot : Gt
|
576 |
+
);
|
577 |
+
}
|
578 |
+
let r = a(n), s = r(n);
|
579 |
+
return {
|
580 |
+
c() {
|
581 |
+
s.c(), t = j(), l = q(e), i = q(" | "), o = q(f);
|
582 |
+
},
|
583 |
+
m(_, u) {
|
584 |
+
s.m(_, u), g(_, t, u), g(_, l, u), g(_, i, u), g(_, o, u);
|
585 |
+
},
|
586 |
+
p(_, u) {
|
587 |
+
r === (r = a(_)) && s ? s.p(_, u) : (s.d(1), s = r(_), s && (s.c(), s.m(t.parentNode, t))), u[0] & /*progress*/
|
588 |
+
128 && e !== (e = /*p*/
|
589 |
+
_[38].unit + "") && S(l, e);
|
590 |
+
},
|
591 |
+
d(_) {
|
592 |
+
_ && (b(t), b(l), b(i), b(o)), s.d(_);
|
593 |
+
}
|
594 |
+
};
|
595 |
+
}
|
596 |
+
function Gt(n) {
|
597 |
+
let t = Y(
|
598 |
+
/*p*/
|
599 |
+
n[38].index || 0
|
600 |
+
) + "", e;
|
601 |
+
return {
|
602 |
+
c() {
|
603 |
+
e = q(t);
|
604 |
+
},
|
605 |
+
m(l, i) {
|
606 |
+
g(l, e, i);
|
607 |
+
},
|
608 |
+
p(l, i) {
|
609 |
+
i[0] & /*progress*/
|
610 |
+
128 && t !== (t = Y(
|
611 |
+
/*p*/
|
612 |
+
l[38].index || 0
|
613 |
+
) + "") && S(e, t);
|
614 |
+
},
|
615 |
+
d(l) {
|
616 |
+
l && b(e);
|
617 |
+
}
|
618 |
+
};
|
619 |
+
}
|
620 |
+
function Ot(n) {
|
621 |
+
let t = Y(
|
622 |
+
/*p*/
|
623 |
+
n[38].index || 0
|
624 |
+
) + "", e, l, i = Y(
|
625 |
+
/*p*/
|
626 |
+
n[38].length
|
627 |
+
) + "", f;
|
628 |
+
return {
|
629 |
+
c() {
|
630 |
+
e = q(t), l = q("/"), f = q(i);
|
631 |
+
},
|
632 |
+
m(o, a) {
|
633 |
+
g(o, e, a), g(o, l, a), g(o, f, a);
|
634 |
+
},
|
635 |
+
p(o, a) {
|
636 |
+
a[0] & /*progress*/
|
637 |
+
128 && t !== (t = Y(
|
638 |
+
/*p*/
|
639 |
+
o[38].index || 0
|
640 |
+
) + "") && S(e, t), a[0] & /*progress*/
|
641 |
+
128 && i !== (i = Y(
|
642 |
+
/*p*/
|
643 |
+
o[38].length
|
644 |
+
) + "") && S(f, i);
|
645 |
+
},
|
646 |
+
d(o) {
|
647 |
+
o && (b(e), b(l), b(f));
|
648 |
+
}
|
649 |
+
};
|
650 |
+
}
|
651 |
+
function Te(n) {
|
652 |
+
let t, e = (
|
653 |
+
/*p*/
|
654 |
+
n[38].index != null && ze(n)
|
655 |
+
);
|
656 |
+
return {
|
657 |
+
c() {
|
658 |
+
e && e.c(), t = U();
|
659 |
+
},
|
660 |
+
m(l, i) {
|
661 |
+
e && e.m(l, i), g(l, t, i);
|
662 |
+
},
|
663 |
+
p(l, i) {
|
664 |
+
/*p*/
|
665 |
+
l[38].index != null ? e ? e.p(l, i) : (e = ze(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
666 |
+
},
|
667 |
+
d(l) {
|
668 |
+
l && b(t), e && e.d(l);
|
669 |
+
}
|
670 |
+
};
|
671 |
+
}
|
672 |
+
function je(n) {
|
673 |
+
let t, e = (
|
674 |
+
/*eta*/
|
675 |
+
n[0] ? `/${/*formatted_eta*/
|
676 |
+
n[19]}` : ""
|
677 |
+
), l, i;
|
678 |
+
return {
|
679 |
+
c() {
|
680 |
+
t = q(
|
681 |
+
/*formatted_timer*/
|
682 |
+
n[20]
|
683 |
+
), l = q(e), i = q("s");
|
684 |
+
},
|
685 |
+
m(f, o) {
|
686 |
+
g(f, t, o), g(f, l, o), g(f, i, o);
|
687 |
+
},
|
688 |
+
p(f, o) {
|
689 |
+
o[0] & /*formatted_timer*/
|
690 |
+
1048576 && S(
|
691 |
+
t,
|
692 |
+
/*formatted_timer*/
|
693 |
+
f[20]
|
694 |
+
), o[0] & /*eta, formatted_eta*/
|
695 |
+
524289 && e !== (e = /*eta*/
|
696 |
+
f[0] ? `/${/*formatted_eta*/
|
697 |
+
f[19]}` : "") && S(l, e);
|
698 |
+
},
|
699 |
+
d(f) {
|
700 |
+
f && (b(t), b(l), b(i));
|
701 |
+
}
|
702 |
+
};
|
703 |
+
}
|
704 |
+
function Rt(n) {
|
705 |
+
let t, e;
|
706 |
+
return t = new Lt({
|
707 |
+
props: { margin: (
|
708 |
+
/*variant*/
|
709 |
+
n[8] === "default"
|
710 |
+
) }
|
711 |
+
}), {
|
712 |
+
c() {
|
713 |
+
Mt(t.$$.fragment);
|
714 |
+
},
|
715 |
+
m(l, i) {
|
716 |
+
jt(t, l, i), e = !0;
|
717 |
+
},
|
718 |
+
p(l, i) {
|
719 |
+
const f = {};
|
720 |
+
i[0] & /*variant*/
|
721 |
+
256 && (f.margin = /*variant*/
|
722 |
+
l[8] === "default"), t.$set(f);
|
723 |
+
},
|
724 |
+
i(l) {
|
725 |
+
e || (O(t.$$.fragment, l), e = !0);
|
726 |
+
},
|
727 |
+
o(l) {
|
728 |
+
R(t.$$.fragment, l), e = !1;
|
729 |
+
},
|
730 |
+
d(l) {
|
731 |
+
St(t, l);
|
732 |
+
}
|
733 |
+
};
|
734 |
+
}
|
735 |
+
function Ut(n) {
|
736 |
+
let t, e, l, i, f, o = `${/*last_progress_level*/
|
737 |
+
n[15] * 100}%`, a = (
|
738 |
+
/*progress*/
|
739 |
+
n[7] != null && Pe(n)
|
740 |
+
);
|
741 |
+
return {
|
742 |
+
c() {
|
743 |
+
t = P("div"), e = P("div"), a && a.c(), l = j(), i = P("div"), f = P("div"), T(e, "class", "progress-level-inner svelte-1txqlrd"), T(f, "class", "progress-bar svelte-1txqlrd"), D(f, "width", o), T(i, "class", "progress-bar-wrap svelte-1txqlrd"), T(t, "class", "progress-level svelte-1txqlrd");
|
744 |
+
},
|
745 |
+
m(r, s) {
|
746 |
+
g(r, t, s), H(t, e), a && a.m(e, null), H(t, l), H(t, i), H(i, f), n[30](f);
|
747 |
+
},
|
748 |
+
p(r, s) {
|
749 |
+
/*progress*/
|
750 |
+
r[7] != null ? a ? a.p(r, s) : (a = Pe(r), a.c(), a.m(e, null)) : a && (a.d(1), a = null), s[0] & /*last_progress_level*/
|
751 |
+
32768 && o !== (o = `${/*last_progress_level*/
|
752 |
+
r[15] * 100}%`) && D(f, "width", o);
|
753 |
+
},
|
754 |
+
i: oe,
|
755 |
+
o: oe,
|
756 |
+
d(r) {
|
757 |
+
r && b(t), a && a.d(), n[30](null);
|
758 |
+
}
|
759 |
+
};
|
760 |
+
}
|
761 |
+
function Pe(n) {
|
762 |
+
let t, e = le(
|
763 |
+
/*progress*/
|
764 |
+
n[7]
|
765 |
+
), l = [];
|
766 |
+
for (let i = 0; i < e.length; i += 1)
|
767 |
+
l[i] = Ee(Ve(n, e, i));
|
768 |
+
return {
|
769 |
+
c() {
|
770 |
+
for (let i = 0; i < l.length; i += 1)
|
771 |
+
l[i].c();
|
772 |
+
t = U();
|
773 |
+
},
|
774 |
+
m(i, f) {
|
775 |
+
for (let o = 0; o < l.length; o += 1)
|
776 |
+
l[o] && l[o].m(i, f);
|
777 |
+
g(i, t, f);
|
778 |
+
},
|
779 |
+
p(i, f) {
|
780 |
+
if (f[0] & /*progress_level, progress*/
|
781 |
+
16512) {
|
782 |
+
e = le(
|
783 |
+
/*progress*/
|
784 |
+
i[7]
|
785 |
+
);
|
786 |
+
let o;
|
787 |
+
for (o = 0; o < e.length; o += 1) {
|
788 |
+
const a = Ve(i, e, o);
|
789 |
+
l[o] ? l[o].p(a, f) : (l[o] = Ee(a), l[o].c(), l[o].m(t.parentNode, t));
|
790 |
+
}
|
791 |
+
for (; o < l.length; o += 1)
|
792 |
+
l[o].d(1);
|
793 |
+
l.length = e.length;
|
794 |
+
}
|
795 |
+
},
|
796 |
+
d(i) {
|
797 |
+
i && b(t), Qe(l, i);
|
798 |
+
}
|
799 |
+
};
|
800 |
+
}
|
801 |
+
function Ze(n) {
|
802 |
+
let t, e, l, i, f = (
|
803 |
+
/*i*/
|
804 |
+
n[40] !== 0 && Jt()
|
805 |
+
), o = (
|
806 |
+
/*p*/
|
807 |
+
n[38].desc != null && Be(n)
|
808 |
+
), a = (
|
809 |
+
/*p*/
|
810 |
+
n[38].desc != null && /*progress_level*/
|
811 |
+
n[14] && /*progress_level*/
|
812 |
+
n[14][
|
813 |
+
/*i*/
|
814 |
+
n[40]
|
815 |
+
] != null && Ae()
|
816 |
+
), r = (
|
817 |
+
/*progress_level*/
|
818 |
+
n[14] != null && De(n)
|
819 |
+
);
|
820 |
+
return {
|
821 |
+
c() {
|
822 |
+
f && f.c(), t = j(), o && o.c(), e = j(), a && a.c(), l = j(), r && r.c(), i = U();
|
823 |
+
},
|
824 |
+
m(s, _) {
|
825 |
+
f && f.m(s, _), g(s, t, _), o && o.m(s, _), g(s, e, _), a && a.m(s, _), g(s, l, _), r && r.m(s, _), g(s, i, _);
|
826 |
+
},
|
827 |
+
p(s, _) {
|
828 |
+
/*p*/
|
829 |
+
s[38].desc != null ? o ? o.p(s, _) : (o = Be(s), o.c(), o.m(e.parentNode, e)) : o && (o.d(1), o = null), /*p*/
|
830 |
+
s[38].desc != null && /*progress_level*/
|
831 |
+
s[14] && /*progress_level*/
|
832 |
+
s[14][
|
833 |
+
/*i*/
|
834 |
+
s[40]
|
835 |
+
] != null ? a || (a = Ae(), a.c(), a.m(l.parentNode, l)) : a && (a.d(1), a = null), /*progress_level*/
|
836 |
+
s[14] != null ? r ? r.p(s, _) : (r = De(s), r.c(), r.m(i.parentNode, i)) : r && (r.d(1), r = null);
|
837 |
+
},
|
838 |
+
d(s) {
|
839 |
+
s && (b(t), b(e), b(l), b(i)), f && f.d(s), o && o.d(s), a && a.d(s), r && r.d(s);
|
840 |
+
}
|
841 |
+
};
|
842 |
+
}
|
843 |
+
function Jt(n) {
|
844 |
+
let t;
|
845 |
+
return {
|
846 |
+
c() {
|
847 |
+
t = q(" /");
|
848 |
+
},
|
849 |
+
m(e, l) {
|
850 |
+
g(e, t, l);
|
851 |
+
},
|
852 |
+
d(e) {
|
853 |
+
e && b(t);
|
854 |
+
}
|
855 |
+
};
|
856 |
+
}
|
857 |
+
function Be(n) {
|
858 |
+
let t = (
|
859 |
+
/*p*/
|
860 |
+
n[38].desc + ""
|
861 |
+
), e;
|
862 |
+
return {
|
863 |
+
c() {
|
864 |
+
e = q(t);
|
865 |
+
},
|
866 |
+
m(l, i) {
|
867 |
+
g(l, e, i);
|
868 |
+
},
|
869 |
+
p(l, i) {
|
870 |
+
i[0] & /*progress*/
|
871 |
+
128 && t !== (t = /*p*/
|
872 |
+
l[38].desc + "") && S(e, t);
|
873 |
+
},
|
874 |
+
d(l) {
|
875 |
+
l && b(e);
|
876 |
+
}
|
877 |
+
};
|
878 |
+
}
|
879 |
+
function Ae(n) {
|
880 |
+
let t;
|
881 |
+
return {
|
882 |
+
c() {
|
883 |
+
t = q("-");
|
884 |
+
},
|
885 |
+
m(e, l) {
|
886 |
+
g(e, t, l);
|
887 |
+
},
|
888 |
+
d(e) {
|
889 |
+
e && b(t);
|
890 |
+
}
|
891 |
+
};
|
892 |
+
}
|
893 |
+
function De(n) {
|
894 |
+
let t = (100 * /*progress_level*/
|
895 |
+
(n[14][
|
896 |
+
/*i*/
|
897 |
+
n[40]
|
898 |
+
] || 0)).toFixed(1) + "", e, l;
|
899 |
+
return {
|
900 |
+
c() {
|
901 |
+
e = q(t), l = q("%");
|
902 |
+
},
|
903 |
+
m(i, f) {
|
904 |
+
g(i, e, f), g(i, l, f);
|
905 |
+
},
|
906 |
+
p(i, f) {
|
907 |
+
f[0] & /*progress_level*/
|
908 |
+
16384 && t !== (t = (100 * /*progress_level*/
|
909 |
+
(i[14][
|
910 |
+
/*i*/
|
911 |
+
i[40]
|
912 |
+
] || 0)).toFixed(1) + "") && S(e, t);
|
913 |
+
},
|
914 |
+
d(i) {
|
915 |
+
i && (b(e), b(l));
|
916 |
+
}
|
917 |
+
};
|
918 |
+
}
|
919 |
+
function Ee(n) {
|
920 |
+
let t, e = (
|
921 |
+
/*p*/
|
922 |
+
(n[38].desc != null || /*progress_level*/
|
923 |
+
n[14] && /*progress_level*/
|
924 |
+
n[14][
|
925 |
+
/*i*/
|
926 |
+
n[40]
|
927 |
+
] != null) && Ze(n)
|
928 |
+
);
|
929 |
+
return {
|
930 |
+
c() {
|
931 |
+
e && e.c(), t = U();
|
932 |
+
},
|
933 |
+
m(l, i) {
|
934 |
+
e && e.m(l, i), g(l, t, i);
|
935 |
+
},
|
936 |
+
p(l, i) {
|
937 |
+
/*p*/
|
938 |
+
l[38].desc != null || /*progress_level*/
|
939 |
+
l[14] && /*progress_level*/
|
940 |
+
l[14][
|
941 |
+
/*i*/
|
942 |
+
l[40]
|
943 |
+
] != null ? e ? e.p(l, i) : (e = Ze(l), e.c(), e.m(t.parentNode, t)) : e && (e.d(1), e = null);
|
944 |
+
},
|
945 |
+
d(l) {
|
946 |
+
l && b(t), e && e.d(l);
|
947 |
+
}
|
948 |
+
};
|
949 |
+
}
|
950 |
+
function Ie(n) {
|
951 |
+
let t, e;
|
952 |
+
return {
|
953 |
+
c() {
|
954 |
+
t = P("p"), e = q(
|
955 |
+
/*loading_text*/
|
956 |
+
n[9]
|
957 |
+
), T(t, "class", "loading svelte-1txqlrd");
|
958 |
+
},
|
959 |
+
m(l, i) {
|
960 |
+
g(l, t, i), H(t, e);
|
961 |
+
},
|
962 |
+
p(l, i) {
|
963 |
+
i[0] & /*loading_text*/
|
964 |
+
512 && S(
|
965 |
+
e,
|
966 |
+
/*loading_text*/
|
967 |
+
l[9]
|
968 |
+
);
|
969 |
+
},
|
970 |
+
d(l) {
|
971 |
+
l && b(t);
|
972 |
+
}
|
973 |
+
};
|
974 |
+
}
|
975 |
+
function Kt(n) {
|
976 |
+
let t, e, l, i, f;
|
977 |
+
const o = [It, Et], a = [];
|
978 |
+
function r(s, _) {
|
979 |
+
return (
|
980 |
+
/*status*/
|
981 |
+
s[4] === "pending" ? 0 : (
|
982 |
+
/*status*/
|
983 |
+
s[4] === "error" ? 1 : -1
|
984 |
+
)
|
985 |
+
);
|
986 |
+
}
|
987 |
+
return ~(e = r(n)) && (l = a[e] = o[e](n)), {
|
988 |
+
c() {
|
989 |
+
t = P("div"), l && l.c(), T(t, "class", i = "wrap " + /*variant*/
|
990 |
+
n[8] + " " + /*show_progress*/
|
991 |
+
n[6] + " svelte-1txqlrd"), V(t, "hide", !/*status*/
|
992 |
+
n[4] || /*status*/
|
993 |
+
n[4] === "complete" || /*show_progress*/
|
994 |
+
n[6] === "hidden"), V(
|
995 |
+
t,
|
996 |
+
"translucent",
|
997 |
+
/*variant*/
|
998 |
+
n[8] === "center" && /*status*/
|
999 |
+
(n[4] === "pending" || /*status*/
|
1000 |
+
n[4] === "error") || /*translucent*/
|
1001 |
+
n[11] || /*show_progress*/
|
1002 |
+
n[6] === "minimal"
|
1003 |
+
), V(
|
1004 |
+
t,
|
1005 |
+
"generating",
|
1006 |
+
/*status*/
|
1007 |
+
n[4] === "generating"
|
1008 |
+
), V(
|
1009 |
+
t,
|
1010 |
+
"border",
|
1011 |
+
/*border*/
|
1012 |
+
n[12]
|
1013 |
+
), D(
|
1014 |
+
t,
|
1015 |
+
"position",
|
1016 |
+
/*absolute*/
|
1017 |
+
n[10] ? "absolute" : "static"
|
1018 |
+
), D(
|
1019 |
+
t,
|
1020 |
+
"padding",
|
1021 |
+
/*absolute*/
|
1022 |
+
n[10] ? "0" : "var(--size-8) 0"
|
1023 |
+
);
|
1024 |
+
},
|
1025 |
+
m(s, _) {
|
1026 |
+
g(s, t, _), ~e && a[e].m(t, null), n[31](t), f = !0;
|
1027 |
+
},
|
1028 |
+
p(s, _) {
|
1029 |
+
let u = e;
|
1030 |
+
e = r(s), e === u ? ~e && a[e].p(s, _) : (l && (We(), R(a[u], 1, 1, () => {
|
1031 |
+
a[u] = null;
|
1032 |
+
}), Ke()), ~e ? (l = a[e], l ? l.p(s, _) : (l = a[e] = o[e](s), l.c()), O(l, 1), l.m(t, null)) : l = null), (!f || _[0] & /*variant, show_progress*/
|
1033 |
+
320 && i !== (i = "wrap " + /*variant*/
|
1034 |
+
s[8] + " " + /*show_progress*/
|
1035 |
+
s[6] + " svelte-1txqlrd")) && T(t, "class", i), (!f || _[0] & /*variant, show_progress, status, show_progress*/
|
1036 |
+
336) && V(t, "hide", !/*status*/
|
1037 |
+
s[4] || /*status*/
|
1038 |
+
s[4] === "complete" || /*show_progress*/
|
1039 |
+
s[6] === "hidden"), (!f || _[0] & /*variant, show_progress, variant, status, translucent, show_progress*/
|
1040 |
+
2384) && V(
|
1041 |
+
t,
|
1042 |
+
"translucent",
|
1043 |
+
/*variant*/
|
1044 |
+
s[8] === "center" && /*status*/
|
1045 |
+
(s[4] === "pending" || /*status*/
|
1046 |
+
s[4] === "error") || /*translucent*/
|
1047 |
+
s[11] || /*show_progress*/
|
1048 |
+
s[6] === "minimal"
|
1049 |
+
), (!f || _[0] & /*variant, show_progress, status*/
|
1050 |
+
336) && V(
|
1051 |
+
t,
|
1052 |
+
"generating",
|
1053 |
+
/*status*/
|
1054 |
+
s[4] === "generating"
|
1055 |
+
), (!f || _[0] & /*variant, show_progress, border*/
|
1056 |
+
4416) && V(
|
1057 |
+
t,
|
1058 |
+
"border",
|
1059 |
+
/*border*/
|
1060 |
+
s[12]
|
1061 |
+
), _[0] & /*absolute*/
|
1062 |
+
1024 && D(
|
1063 |
+
t,
|
1064 |
+
"position",
|
1065 |
+
/*absolute*/
|
1066 |
+
s[10] ? "absolute" : "static"
|
1067 |
+
), _[0] & /*absolute*/
|
1068 |
+
1024 && D(
|
1069 |
+
t,
|
1070 |
+
"padding",
|
1071 |
+
/*absolute*/
|
1072 |
+
s[10] ? "0" : "var(--size-8) 0"
|
1073 |
+
);
|
1074 |
+
},
|
1075 |
+
i(s) {
|
1076 |
+
f || (O(l), f = !0);
|
1077 |
+
},
|
1078 |
+
o(s) {
|
1079 |
+
R(l), f = !1;
|
1080 |
+
},
|
1081 |
+
d(s) {
|
1082 |
+
s && b(t), ~e && a[e].d(), n[31](null);
|
1083 |
+
}
|
1084 |
+
};
|
1085 |
+
}
|
1086 |
+
let ee = [], se = !1;
|
1087 |
+
async function Qt(n, t = !0) {
|
1088 |
+
if (!(window.__gradio_mode__ === "website" || window.__gradio_mode__ !== "app" && t !== !0)) {
|
1089 |
+
if (ee.push(n), !se)
|
1090 |
+
se = !0;
|
1091 |
+
else
|
1092 |
+
return;
|
1093 |
+
await Bt(), requestAnimationFrame(() => {
|
1094 |
+
let e = [0, 0];
|
1095 |
+
for (let l = 0; l < ee.length; l++) {
|
1096 |
+
const f = ee[l].getBoundingClientRect();
|
1097 |
+
(l === 0 || f.top + window.scrollY <= e[0]) && (e[0] = f.top + window.scrollY, e[1] = l);
|
1098 |
+
}
|
1099 |
+
window.scrollTo({ top: e[0] - 20, behavior: "smooth" }), se = !1, ee = [];
|
1100 |
+
});
|
1101 |
+
}
|
1102 |
+
}
|
1103 |
+
function Wt(n, t, e) {
|
1104 |
+
let l, { $$slots: i = {}, $$scope: f } = t, { i18n: o } = t, { eta: a = null } = t, { queue: r = !1 } = t, { queue_position: s } = t, { queue_size: _ } = t, { status: u } = t, { scroll_to_output: w = !1 } = t, { timer: h = !0 } = t, { show_progress: p = "full" } = t, { message: C = null } = t, { progress: k = null } = t, { variant: L = "default" } = t, { loading_text: F = "Loading..." } = t, { absolute: c = !0 } = t, { translucent: y = !1 } = t, { border: m = !1 } = t, { autoscroll: ne } = t, J, K = !1, W = 0, E = 0, ie = null, de = 0, I = null, Q, Z = null, me = !0;
|
1105 |
+
const et = () => {
|
1106 |
+
e(25, W = performance.now()), e(26, E = 0), K = !0, be();
|
1107 |
+
};
|
1108 |
+
function be() {
|
1109 |
+
requestAnimationFrame(() => {
|
1110 |
+
e(26, E = (performance.now() - W) / 1e3), K && be();
|
1111 |
+
});
|
1112 |
+
}
|
1113 |
+
function ge() {
|
1114 |
+
e(26, E = 0), K && (K = !1);
|
1115 |
+
}
|
1116 |
+
At(() => {
|
1117 |
+
K && ge();
|
1118 |
+
});
|
1119 |
+
let he = null;
|
1120 |
+
function tt(d) {
|
1121 |
+
Ce[d ? "unshift" : "push"](() => {
|
1122 |
+
Z = d, e(16, Z), e(7, k), e(14, I), e(15, Q);
|
1123 |
+
});
|
1124 |
+
}
|
1125 |
+
function lt(d) {
|
1126 |
+
Ce[d ? "unshift" : "push"](() => {
|
1127 |
+
J = d, e(13, J);
|
1128 |
+
});
|
1129 |
+
}
|
1130 |
+
return n.$$set = (d) => {
|
1131 |
+
"i18n" in d && e(1, o = d.i18n), "eta" in d && e(0, a = d.eta), "queue" in d && e(21, r = d.queue), "queue_position" in d && e(2, s = d.queue_position), "queue_size" in d && e(3, _ = d.queue_size), "status" in d && e(4, u = d.status), "scroll_to_output" in d && e(22, w = d.scroll_to_output), "timer" in d && e(5, h = d.timer), "show_progress" in d && e(6, p = d.show_progress), "message" in d && e(23, C = d.message), "progress" in d && e(7, k = d.progress), "variant" in d && e(8, L = d.variant), "loading_text" in d && e(9, F = d.loading_text), "absolute" in d && e(10, c = d.absolute), "translucent" in d && e(11, y = d.translucent), "border" in d && e(12, m = d.border), "autoscroll" in d && e(24, ne = d.autoscroll), "$$scope" in d && e(28, f = d.$$scope);
|
1132 |
+
}, n.$$.update = () => {
|
1133 |
+
n.$$.dirty[0] & /*eta, old_eta, queue, timer_start*/
|
1134 |
+
169869313 && (a === null ? e(0, a = ie) : r && e(0, a = (performance.now() - W) / 1e3 + a), a != null && (e(19, he = a.toFixed(1)), e(27, ie = a))), n.$$.dirty[0] & /*eta, timer_diff*/
|
1135 |
+
67108865 && e(17, de = a === null || a <= 0 || !E ? null : Math.min(E / a, 1)), n.$$.dirty[0] & /*progress*/
|
1136 |
+
128 && k != null && e(18, me = !1), n.$$.dirty[0] & /*progress, progress_level, progress_bar, last_progress_level*/
|
1137 |
+
114816 && (k != null ? e(14, I = k.map((d) => {
|
1138 |
+
if (d.index != null && d.length != null)
|
1139 |
+
return d.index / d.length;
|
1140 |
+
if (d.progress != null)
|
1141 |
+
return d.progress;
|
1142 |
+
})) : e(14, I = null), I ? (e(15, Q = I[I.length - 1]), Z && (Q === 0 ? e(16, Z.style.transition = "0", Z) : e(16, Z.style.transition = "150ms", Z))) : e(15, Q = void 0)), n.$$.dirty[0] & /*status*/
|
1143 |
+
16 && (u === "pending" ? et() : ge()), n.$$.dirty[0] & /*el, scroll_to_output, status, autoscroll*/
|
1144 |
+
20979728 && J && w && (u === "pending" || u === "complete") && Qt(J, ne), n.$$.dirty[0] & /*status, message*/
|
1145 |
+
8388624, n.$$.dirty[0] & /*timer_diff*/
|
1146 |
+
67108864 && e(20, l = E.toFixed(1));
|
1147 |
+
}, [
|
1148 |
+
a,
|
1149 |
+
o,
|
1150 |
+
s,
|
1151 |
+
_,
|
1152 |
+
u,
|
1153 |
+
h,
|
1154 |
+
p,
|
1155 |
+
k,
|
1156 |
+
L,
|
1157 |
+
F,
|
1158 |
+
c,
|
1159 |
+
y,
|
1160 |
+
m,
|
1161 |
+
J,
|
1162 |
+
I,
|
1163 |
+
Q,
|
1164 |
+
Z,
|
1165 |
+
de,
|
1166 |
+
me,
|
1167 |
+
he,
|
1168 |
+
l,
|
1169 |
+
r,
|
1170 |
+
w,
|
1171 |
+
C,
|
1172 |
+
ne,
|
1173 |
+
W,
|
1174 |
+
E,
|
1175 |
+
ie,
|
1176 |
+
f,
|
1177 |
+
i,
|
1178 |
+
tt,
|
1179 |
+
lt
|
1180 |
+
];
|
1181 |
+
}
|
1182 |
+
class xt extends Ct {
|
1183 |
+
constructor(t) {
|
1184 |
+
super(), Tt(
|
1185 |
+
this,
|
1186 |
+
t,
|
1187 |
+
Wt,
|
1188 |
+
Kt,
|
1189 |
+
Pt,
|
1190 |
+
{
|
1191 |
+
i18n: 1,
|
1192 |
+
eta: 0,
|
1193 |
+
queue: 21,
|
1194 |
+
queue_position: 2,
|
1195 |
+
queue_size: 3,
|
1196 |
+
status: 4,
|
1197 |
+
scroll_to_output: 22,
|
1198 |
+
timer: 5,
|
1199 |
+
show_progress: 6,
|
1200 |
+
message: 23,
|
1201 |
+
progress: 7,
|
1202 |
+
variant: 8,
|
1203 |
+
loading_text: 9,
|
1204 |
+
absolute: 10,
|
1205 |
+
translucent: 11,
|
1206 |
+
border: 12,
|
1207 |
+
autoscroll: 24
|
1208 |
+
},
|
1209 |
+
null,
|
1210 |
+
[-1, -1]
|
1211 |
+
);
|
1212 |
+
}
|
1213 |
+
}
|
1214 |
+
const {
|
1215 |
+
SvelteComponent: $t,
|
1216 |
+
assign: el,
|
1217 |
+
create_slot: tl,
|
1218 |
+
detach: ll,
|
1219 |
+
element: nl,
|
1220 |
+
get_all_dirty_from_scope: il,
|
1221 |
+
get_slot_changes: sl,
|
1222 |
+
get_spread_update: fl,
|
1223 |
+
init: ol,
|
1224 |
+
insert: al,
|
1225 |
+
safe_not_equal: rl,
|
1226 |
+
set_dynamic_element_data: He,
|
1227 |
+
set_style: M,
|
1228 |
+
toggle_class: A,
|
1229 |
+
transition_in: xe,
|
1230 |
+
transition_out: $e,
|
1231 |
+
update_slot_base: _l
|
1232 |
+
} = window.__gradio__svelte__internal;
|
1233 |
+
function cl(n) {
|
1234 |
+
let t, e, l;
|
1235 |
+
const i = (
|
1236 |
+
/*#slots*/
|
1237 |
+
n[17].default
|
1238 |
+
), f = tl(
|
1239 |
+
i,
|
1240 |
+
n,
|
1241 |
+
/*$$scope*/
|
1242 |
+
n[16],
|
1243 |
+
null
|
1244 |
+
);
|
1245 |
+
let o = [
|
1246 |
+
{ "data-testid": (
|
1247 |
+
/*test_id*/
|
1248 |
+
n[7]
|
1249 |
+
) },
|
1250 |
+
{ id: (
|
1251 |
+
/*elem_id*/
|
1252 |
+
n[2]
|
1253 |
+
) },
|
1254 |
+
{
|
1255 |
+
class: e = "block " + /*elem_classes*/
|
1256 |
+
n[3].join(" ") + " svelte-1t38q2d"
|
1257 |
+
}
|
1258 |
+
], a = {};
|
1259 |
+
for (let r = 0; r < o.length; r += 1)
|
1260 |
+
a = el(a, o[r]);
|
1261 |
+
return {
|
1262 |
+
c() {
|
1263 |
+
t = nl(
|
1264 |
+
/*tag*/
|
1265 |
+
n[14]
|
1266 |
+
), f && f.c(), He(
|
1267 |
+
/*tag*/
|
1268 |
+
n[14]
|
1269 |
+
)(t, a), A(
|
1270 |
+
t,
|
1271 |
+
"hidden",
|
1272 |
+
/*visible*/
|
1273 |
+
n[10] === !1
|
1274 |
+
), A(
|
1275 |
+
t,
|
1276 |
+
"padded",
|
1277 |
+
/*padding*/
|
1278 |
+
n[6]
|
1279 |
+
), A(
|
1280 |
+
t,
|
1281 |
+
"border_focus",
|
1282 |
+
/*border_mode*/
|
1283 |
+
n[5] === "focus"
|
1284 |
+
), A(t, "hide-container", !/*explicit_call*/
|
1285 |
+
n[8] && !/*container*/
|
1286 |
+
n[9]), M(t, "height", typeof /*height*/
|
1287 |
+
n[0] == "number" ? (
|
1288 |
+
/*height*/
|
1289 |
+
n[0] + "px"
|
1290 |
+
) : void 0), M(t, "width", typeof /*width*/
|
1291 |
+
n[1] == "number" ? `calc(min(${/*width*/
|
1292 |
+
n[1]}px, 100%))` : void 0), M(
|
1293 |
+
t,
|
1294 |
+
"border-style",
|
1295 |
+
/*variant*/
|
1296 |
+
n[4]
|
1297 |
+
), M(
|
1298 |
+
t,
|
1299 |
+
"overflow",
|
1300 |
+
/*allow_overflow*/
|
1301 |
+
n[11] ? "visible" : "hidden"
|
1302 |
+
), M(
|
1303 |
+
t,
|
1304 |
+
"flex-grow",
|
1305 |
+
/*scale*/
|
1306 |
+
n[12]
|
1307 |
+
), M(t, "min-width", `calc(min(${/*min_width*/
|
1308 |
+
n[13]}px, 100%))`), M(t, "border-width", "var(--block-border-width)");
|
1309 |
+
},
|
1310 |
+
m(r, s) {
|
1311 |
+
al(r, t, s), f && f.m(t, null), l = !0;
|
1312 |
+
},
|
1313 |
+
p(r, s) {
|
1314 |
+
f && f.p && (!l || s & /*$$scope*/
|
1315 |
+
65536) && _l(
|
1316 |
+
f,
|
1317 |
+
i,
|
1318 |
+
r,
|
1319 |
+
/*$$scope*/
|
1320 |
+
r[16],
|
1321 |
+
l ? sl(
|
1322 |
+
i,
|
1323 |
+
/*$$scope*/
|
1324 |
+
r[16],
|
1325 |
+
s,
|
1326 |
+
null
|
1327 |
+
) : il(
|
1328 |
+
/*$$scope*/
|
1329 |
+
r[16]
|
1330 |
+
),
|
1331 |
+
null
|
1332 |
+
), He(
|
1333 |
+
/*tag*/
|
1334 |
+
r[14]
|
1335 |
+
)(t, a = fl(o, [
|
1336 |
+
(!l || s & /*test_id*/
|
1337 |
+
128) && { "data-testid": (
|
1338 |
+
/*test_id*/
|
1339 |
+
r[7]
|
1340 |
+
) },
|
1341 |
+
(!l || s & /*elem_id*/
|
1342 |
+
4) && { id: (
|
1343 |
+
/*elem_id*/
|
1344 |
+
r[2]
|
1345 |
+
) },
|
1346 |
+
(!l || s & /*elem_classes*/
|
1347 |
+
8 && e !== (e = "block " + /*elem_classes*/
|
1348 |
+
r[3].join(" ") + " svelte-1t38q2d")) && { class: e }
|
1349 |
+
])), A(
|
1350 |
+
t,
|
1351 |
+
"hidden",
|
1352 |
+
/*visible*/
|
1353 |
+
r[10] === !1
|
1354 |
+
), A(
|
1355 |
+
t,
|
1356 |
+
"padded",
|
1357 |
+
/*padding*/
|
1358 |
+
r[6]
|
1359 |
+
), A(
|
1360 |
+
t,
|
1361 |
+
"border_focus",
|
1362 |
+
/*border_mode*/
|
1363 |
+
r[5] === "focus"
|
1364 |
+
), A(t, "hide-container", !/*explicit_call*/
|
1365 |
+
r[8] && !/*container*/
|
1366 |
+
r[9]), s & /*height*/
|
1367 |
+
1 && M(t, "height", typeof /*height*/
|
1368 |
+
r[0] == "number" ? (
|
1369 |
+
/*height*/
|
1370 |
+
r[0] + "px"
|
1371 |
+
) : void 0), s & /*width*/
|
1372 |
+
2 && M(t, "width", typeof /*width*/
|
1373 |
+
r[1] == "number" ? `calc(min(${/*width*/
|
1374 |
+
r[1]}px, 100%))` : void 0), s & /*variant*/
|
1375 |
+
16 && M(
|
1376 |
+
t,
|
1377 |
+
"border-style",
|
1378 |
+
/*variant*/
|
1379 |
+
r[4]
|
1380 |
+
), s & /*allow_overflow*/
|
1381 |
+
2048 && M(
|
1382 |
+
t,
|
1383 |
+
"overflow",
|
1384 |
+
/*allow_overflow*/
|
1385 |
+
r[11] ? "visible" : "hidden"
|
1386 |
+
), s & /*scale*/
|
1387 |
+
4096 && M(
|
1388 |
+
t,
|
1389 |
+
"flex-grow",
|
1390 |
+
/*scale*/
|
1391 |
+
r[12]
|
1392 |
+
), s & /*min_width*/
|
1393 |
+
8192 && M(t, "min-width", `calc(min(${/*min_width*/
|
1394 |
+
r[13]}px, 100%))`);
|
1395 |
+
},
|
1396 |
+
i(r) {
|
1397 |
+
l || (xe(f, r), l = !0);
|
1398 |
+
},
|
1399 |
+
o(r) {
|
1400 |
+
$e(f, r), l = !1;
|
1401 |
+
},
|
1402 |
+
d(r) {
|
1403 |
+
r && ll(t), f && f.d(r);
|
1404 |
+
}
|
1405 |
+
};
|
1406 |
+
}
|
1407 |
+
function ul(n) {
|
1408 |
+
let t, e = (
|
1409 |
+
/*tag*/
|
1410 |
+
n[14] && cl(n)
|
1411 |
+
);
|
1412 |
+
return {
|
1413 |
+
c() {
|
1414 |
+
e && e.c();
|
1415 |
+
},
|
1416 |
+
m(l, i) {
|
1417 |
+
e && e.m(l, i), t = !0;
|
1418 |
+
},
|
1419 |
+
p(l, [i]) {
|
1420 |
+
/*tag*/
|
1421 |
+
l[14] && e.p(l, i);
|
1422 |
+
},
|
1423 |
+
i(l) {
|
1424 |
+
t || (xe(e, l), t = !0);
|
1425 |
+
},
|
1426 |
+
o(l) {
|
1427 |
+
$e(e, l), t = !1;
|
1428 |
+
},
|
1429 |
+
d(l) {
|
1430 |
+
e && e.d(l);
|
1431 |
+
}
|
1432 |
+
};
|
1433 |
+
}
|
1434 |
+
function dl(n, t, e) {
|
1435 |
+
let { $$slots: l = {}, $$scope: i } = t, { height: f = void 0 } = t, { width: o = void 0 } = t, { elem_id: a = "" } = t, { elem_classes: r = [] } = t, { variant: s = "solid" } = t, { border_mode: _ = "base" } = t, { padding: u = !0 } = t, { type: w = "normal" } = t, { test_id: h = void 0 } = t, { explicit_call: p = !1 } = t, { container: C = !0 } = t, { visible: k = !0 } = t, { allow_overflow: L = !0 } = t, { scale: F = null } = t, { min_width: c = 0 } = t, y = w === "fieldset" ? "fieldset" : "div";
|
1436 |
+
return n.$$set = (m) => {
|
1437 |
+
"height" in m && e(0, f = m.height), "width" in m && e(1, o = m.width), "elem_id" in m && e(2, a = m.elem_id), "elem_classes" in m && e(3, r = m.elem_classes), "variant" in m && e(4, s = m.variant), "border_mode" in m && e(5, _ = m.border_mode), "padding" in m && e(6, u = m.padding), "type" in m && e(15, w = m.type), "test_id" in m && e(7, h = m.test_id), "explicit_call" in m && e(8, p = m.explicit_call), "container" in m && e(9, C = m.container), "visible" in m && e(10, k = m.visible), "allow_overflow" in m && e(11, L = m.allow_overflow), "scale" in m && e(12, F = m.scale), "min_width" in m && e(13, c = m.min_width), "$$scope" in m && e(16, i = m.$$scope);
|
1438 |
+
}, [
|
1439 |
+
f,
|
1440 |
+
o,
|
1441 |
+
a,
|
1442 |
+
r,
|
1443 |
+
s,
|
1444 |
+
_,
|
1445 |
+
u,
|
1446 |
+
h,
|
1447 |
+
p,
|
1448 |
+
C,
|
1449 |
+
k,
|
1450 |
+
L,
|
1451 |
+
F,
|
1452 |
+
c,
|
1453 |
+
y,
|
1454 |
+
w,
|
1455 |
+
i,
|
1456 |
+
l
|
1457 |
+
];
|
1458 |
+
}
|
1459 |
+
class ml extends $t {
|
1460 |
+
constructor(t) {
|
1461 |
+
super(), ol(this, t, dl, ul, rl, {
|
1462 |
+
height: 0,
|
1463 |
+
width: 1,
|
1464 |
+
elem_id: 2,
|
1465 |
+
elem_classes: 3,
|
1466 |
+
variant: 4,
|
1467 |
+
border_mode: 5,
|
1468 |
+
padding: 6,
|
1469 |
+
type: 15,
|
1470 |
+
test_id: 7,
|
1471 |
+
explicit_call: 8,
|
1472 |
+
container: 9,
|
1473 |
+
visible: 10,
|
1474 |
+
allow_overflow: 11,
|
1475 |
+
scale: 12,
|
1476 |
+
min_width: 13
|
1477 |
+
});
|
1478 |
+
}
|
1479 |
+
}
|
1480 |
+
const bl = [
|
1481 |
+
{ color: "red", primary: 600, secondary: 100 },
|
1482 |
+
{ color: "green", primary: 600, secondary: 100 },
|
1483 |
+
{ color: "blue", primary: 600, secondary: 100 },
|
1484 |
+
{ color: "yellow", primary: 500, secondary: 100 },
|
1485 |
+
{ color: "purple", primary: 600, secondary: 100 },
|
1486 |
+
{ color: "teal", primary: 600, secondary: 100 },
|
1487 |
+
{ color: "orange", primary: 600, secondary: 100 },
|
1488 |
+
{ color: "cyan", primary: 600, secondary: 100 },
|
1489 |
+
{ color: "lime", primary: 500, secondary: 100 },
|
1490 |
+
{ color: "pink", primary: 600, secondary: 100 }
|
1491 |
+
], Xe = {
|
1492 |
+
inherit: "inherit",
|
1493 |
+
current: "currentColor",
|
1494 |
+
transparent: "transparent",
|
1495 |
+
black: "#000",
|
1496 |
+
white: "#fff",
|
1497 |
+
slate: {
|
1498 |
+
50: "#f8fafc",
|
1499 |
+
100: "#f1f5f9",
|
1500 |
+
200: "#e2e8f0",
|
1501 |
+
300: "#cbd5e1",
|
1502 |
+
400: "#94a3b8",
|
1503 |
+
500: "#64748b",
|
1504 |
+
600: "#475569",
|
1505 |
+
700: "#334155",
|
1506 |
+
800: "#1e293b",
|
1507 |
+
900: "#0f172a",
|
1508 |
+
950: "#020617"
|
1509 |
+
},
|
1510 |
+
gray: {
|
1511 |
+
50: "#f9fafb",
|
1512 |
+
100: "#f3f4f6",
|
1513 |
+
200: "#e5e7eb",
|
1514 |
+
300: "#d1d5db",
|
1515 |
+
400: "#9ca3af",
|
1516 |
+
500: "#6b7280",
|
1517 |
+
600: "#4b5563",
|
1518 |
+
700: "#374151",
|
1519 |
+
800: "#1f2937",
|
1520 |
+
900: "#111827",
|
1521 |
+
950: "#030712"
|
1522 |
+
},
|
1523 |
+
zinc: {
|
1524 |
+
50: "#fafafa",
|
1525 |
+
100: "#f4f4f5",
|
1526 |
+
200: "#e4e4e7",
|
1527 |
+
300: "#d4d4d8",
|
1528 |
+
400: "#a1a1aa",
|
1529 |
+
500: "#71717a",
|
1530 |
+
600: "#52525b",
|
1531 |
+
700: "#3f3f46",
|
1532 |
+
800: "#27272a",
|
1533 |
+
900: "#18181b",
|
1534 |
+
950: "#09090b"
|
1535 |
+
},
|
1536 |
+
neutral: {
|
1537 |
+
50: "#fafafa",
|
1538 |
+
100: "#f5f5f5",
|
1539 |
+
200: "#e5e5e5",
|
1540 |
+
300: "#d4d4d4",
|
1541 |
+
400: "#a3a3a3",
|
1542 |
+
500: "#737373",
|
1543 |
+
600: "#525252",
|
1544 |
+
700: "#404040",
|
1545 |
+
800: "#262626",
|
1546 |
+
900: "#171717",
|
1547 |
+
950: "#0a0a0a"
|
1548 |
+
},
|
1549 |
+
stone: {
|
1550 |
+
50: "#fafaf9",
|
1551 |
+
100: "#f5f5f4",
|
1552 |
+
200: "#e7e5e4",
|
1553 |
+
300: "#d6d3d1",
|
1554 |
+
400: "#a8a29e",
|
1555 |
+
500: "#78716c",
|
1556 |
+
600: "#57534e",
|
1557 |
+
700: "#44403c",
|
1558 |
+
800: "#292524",
|
1559 |
+
900: "#1c1917",
|
1560 |
+
950: "#0c0a09"
|
1561 |
+
},
|
1562 |
+
red: {
|
1563 |
+
50: "#fef2f2",
|
1564 |
+
100: "#fee2e2",
|
1565 |
+
200: "#fecaca",
|
1566 |
+
300: "#fca5a5",
|
1567 |
+
400: "#f87171",
|
1568 |
+
500: "#ef4444",
|
1569 |
+
600: "#dc2626",
|
1570 |
+
700: "#b91c1c",
|
1571 |
+
800: "#991b1b",
|
1572 |
+
900: "#7f1d1d",
|
1573 |
+
950: "#450a0a"
|
1574 |
+
},
|
1575 |
+
orange: {
|
1576 |
+
50: "#fff7ed",
|
1577 |
+
100: "#ffedd5",
|
1578 |
+
200: "#fed7aa",
|
1579 |
+
300: "#fdba74",
|
1580 |
+
400: "#fb923c",
|
1581 |
+
500: "#f97316",
|
1582 |
+
600: "#ea580c",
|
1583 |
+
700: "#c2410c",
|
1584 |
+
800: "#9a3412",
|
1585 |
+
900: "#7c2d12",
|
1586 |
+
950: "#431407"
|
1587 |
+
},
|
1588 |
+
amber: {
|
1589 |
+
50: "#fffbeb",
|
1590 |
+
100: "#fef3c7",
|
1591 |
+
200: "#fde68a",
|
1592 |
+
300: "#fcd34d",
|
1593 |
+
400: "#fbbf24",
|
1594 |
+
500: "#f59e0b",
|
1595 |
+
600: "#d97706",
|
1596 |
+
700: "#b45309",
|
1597 |
+
800: "#92400e",
|
1598 |
+
900: "#78350f",
|
1599 |
+
950: "#451a03"
|
1600 |
+
},
|
1601 |
+
yellow: {
|
1602 |
+
50: "#fefce8",
|
1603 |
+
100: "#fef9c3",
|
1604 |
+
200: "#fef08a",
|
1605 |
+
300: "#fde047",
|
1606 |
+
400: "#facc15",
|
1607 |
+
500: "#eab308",
|
1608 |
+
600: "#ca8a04",
|
1609 |
+
700: "#a16207",
|
1610 |
+
800: "#854d0e",
|
1611 |
+
900: "#713f12",
|
1612 |
+
950: "#422006"
|
1613 |
+
},
|
1614 |
+
lime: {
|
1615 |
+
50: "#f7fee7",
|
1616 |
+
100: "#ecfccb",
|
1617 |
+
200: "#d9f99d",
|
1618 |
+
300: "#bef264",
|
1619 |
+
400: "#a3e635",
|
1620 |
+
500: "#84cc16",
|
1621 |
+
600: "#65a30d",
|
1622 |
+
700: "#4d7c0f",
|
1623 |
+
800: "#3f6212",
|
1624 |
+
900: "#365314",
|
1625 |
+
950: "#1a2e05"
|
1626 |
+
},
|
1627 |
+
green: {
|
1628 |
+
50: "#f0fdf4",
|
1629 |
+
100: "#dcfce7",
|
1630 |
+
200: "#bbf7d0",
|
1631 |
+
300: "#86efac",
|
1632 |
+
400: "#4ade80",
|
1633 |
+
500: "#22c55e",
|
1634 |
+
600: "#16a34a",
|
1635 |
+
700: "#15803d",
|
1636 |
+
800: "#166534",
|
1637 |
+
900: "#14532d",
|
1638 |
+
950: "#052e16"
|
1639 |
+
},
|
1640 |
+
emerald: {
|
1641 |
+
50: "#ecfdf5",
|
1642 |
+
100: "#d1fae5",
|
1643 |
+
200: "#a7f3d0",
|
1644 |
+
300: "#6ee7b7",
|
1645 |
+
400: "#34d399",
|
1646 |
+
500: "#10b981",
|
1647 |
+
600: "#059669",
|
1648 |
+
700: "#047857",
|
1649 |
+
800: "#065f46",
|
1650 |
+
900: "#064e3b",
|
1651 |
+
950: "#022c22"
|
1652 |
+
},
|
1653 |
+
teal: {
|
1654 |
+
50: "#f0fdfa",
|
1655 |
+
100: "#ccfbf1",
|
1656 |
+
200: "#99f6e4",
|
1657 |
+
300: "#5eead4",
|
1658 |
+
400: "#2dd4bf",
|
1659 |
+
500: "#14b8a6",
|
1660 |
+
600: "#0d9488",
|
1661 |
+
700: "#0f766e",
|
1662 |
+
800: "#115e59",
|
1663 |
+
900: "#134e4a",
|
1664 |
+
950: "#042f2e"
|
1665 |
+
},
|
1666 |
+
cyan: {
|
1667 |
+
50: "#ecfeff",
|
1668 |
+
100: "#cffafe",
|
1669 |
+
200: "#a5f3fc",
|
1670 |
+
300: "#67e8f9",
|
1671 |
+
400: "#22d3ee",
|
1672 |
+
500: "#06b6d4",
|
1673 |
+
600: "#0891b2",
|
1674 |
+
700: "#0e7490",
|
1675 |
+
800: "#155e75",
|
1676 |
+
900: "#164e63",
|
1677 |
+
950: "#083344"
|
1678 |
+
},
|
1679 |
+
sky: {
|
1680 |
+
50: "#f0f9ff",
|
1681 |
+
100: "#e0f2fe",
|
1682 |
+
200: "#bae6fd",
|
1683 |
+
300: "#7dd3fc",
|
1684 |
+
400: "#38bdf8",
|
1685 |
+
500: "#0ea5e9",
|
1686 |
+
600: "#0284c7",
|
1687 |
+
700: "#0369a1",
|
1688 |
+
800: "#075985",
|
1689 |
+
900: "#0c4a6e",
|
1690 |
+
950: "#082f49"
|
1691 |
+
},
|
1692 |
+
blue: {
|
1693 |
+
50: "#eff6ff",
|
1694 |
+
100: "#dbeafe",
|
1695 |
+
200: "#bfdbfe",
|
1696 |
+
300: "#93c5fd",
|
1697 |
+
400: "#60a5fa",
|
1698 |
+
500: "#3b82f6",
|
1699 |
+
600: "#2563eb",
|
1700 |
+
700: "#1d4ed8",
|
1701 |
+
800: "#1e40af",
|
1702 |
+
900: "#1e3a8a",
|
1703 |
+
950: "#172554"
|
1704 |
+
},
|
1705 |
+
indigo: {
|
1706 |
+
50: "#eef2ff",
|
1707 |
+
100: "#e0e7ff",
|
1708 |
+
200: "#c7d2fe",
|
1709 |
+
300: "#a5b4fc",
|
1710 |
+
400: "#818cf8",
|
1711 |
+
500: "#6366f1",
|
1712 |
+
600: "#4f46e5",
|
1713 |
+
700: "#4338ca",
|
1714 |
+
800: "#3730a3",
|
1715 |
+
900: "#312e81",
|
1716 |
+
950: "#1e1b4b"
|
1717 |
+
},
|
1718 |
+
violet: {
|
1719 |
+
50: "#f5f3ff",
|
1720 |
+
100: "#ede9fe",
|
1721 |
+
200: "#ddd6fe",
|
1722 |
+
300: "#c4b5fd",
|
1723 |
+
400: "#a78bfa",
|
1724 |
+
500: "#8b5cf6",
|
1725 |
+
600: "#7c3aed",
|
1726 |
+
700: "#6d28d9",
|
1727 |
+
800: "#5b21b6",
|
1728 |
+
900: "#4c1d95",
|
1729 |
+
950: "#2e1065"
|
1730 |
+
},
|
1731 |
+
purple: {
|
1732 |
+
50: "#faf5ff",
|
1733 |
+
100: "#f3e8ff",
|
1734 |
+
200: "#e9d5ff",
|
1735 |
+
300: "#d8b4fe",
|
1736 |
+
400: "#c084fc",
|
1737 |
+
500: "#a855f7",
|
1738 |
+
600: "#9333ea",
|
1739 |
+
700: "#7e22ce",
|
1740 |
+
800: "#6b21a8",
|
1741 |
+
900: "#581c87",
|
1742 |
+
950: "#3b0764"
|
1743 |
+
},
|
1744 |
+
fuchsia: {
|
1745 |
+
50: "#fdf4ff",
|
1746 |
+
100: "#fae8ff",
|
1747 |
+
200: "#f5d0fe",
|
1748 |
+
300: "#f0abfc",
|
1749 |
+
400: "#e879f9",
|
1750 |
+
500: "#d946ef",
|
1751 |
+
600: "#c026d3",
|
1752 |
+
700: "#a21caf",
|
1753 |
+
800: "#86198f",
|
1754 |
+
900: "#701a75",
|
1755 |
+
950: "#4a044e"
|
1756 |
+
},
|
1757 |
+
pink: {
|
1758 |
+
50: "#fdf2f8",
|
1759 |
+
100: "#fce7f3",
|
1760 |
+
200: "#fbcfe8",
|
1761 |
+
300: "#f9a8d4",
|
1762 |
+
400: "#f472b6",
|
1763 |
+
500: "#ec4899",
|
1764 |
+
600: "#db2777",
|
1765 |
+
700: "#be185d",
|
1766 |
+
800: "#9d174d",
|
1767 |
+
900: "#831843",
|
1768 |
+
950: "#500724"
|
1769 |
+
},
|
1770 |
+
rose: {
|
1771 |
+
50: "#fff1f2",
|
1772 |
+
100: "#ffe4e6",
|
1773 |
+
200: "#fecdd3",
|
1774 |
+
300: "#fda4af",
|
1775 |
+
400: "#fb7185",
|
1776 |
+
500: "#f43f5e",
|
1777 |
+
600: "#e11d48",
|
1778 |
+
700: "#be123c",
|
1779 |
+
800: "#9f1239",
|
1780 |
+
900: "#881337",
|
1781 |
+
950: "#4c0519"
|
1782 |
+
}
|
1783 |
+
};
|
1784 |
+
bl.reduce(
|
1785 |
+
(n, { color: t, primary: e, secondary: l }) => ({
|
1786 |
+
...n,
|
1787 |
+
[t]: {
|
1788 |
+
primary: Xe[t][e],
|
1789 |
+
secondary: Xe[t][l]
|
1790 |
+
}
|
1791 |
+
}),
|
1792 |
+
{}
|
1793 |
+
);
|
1794 |
+
const {
|
1795 |
+
SvelteComponent: gl,
|
1796 |
+
assign: hl,
|
1797 |
+
attr: wl,
|
1798 |
+
create_component: ae,
|
1799 |
+
destroy_component: re,
|
1800 |
+
detach: Ye,
|
1801 |
+
element: vl,
|
1802 |
+
get_spread_object: pl,
|
1803 |
+
get_spread_update: yl,
|
1804 |
+
init: kl,
|
1805 |
+
insert: Ge,
|
1806 |
+
mount_component: _e,
|
1807 |
+
safe_not_equal: ql,
|
1808 |
+
space: Fl,
|
1809 |
+
toggle_class: Oe,
|
1810 |
+
transition_in: ce,
|
1811 |
+
transition_out: ue
|
1812 |
+
} = window.__gradio__svelte__internal;
|
1813 |
+
function Ll(n) {
|
1814 |
+
var r;
|
1815 |
+
let t, e, l, i, f;
|
1816 |
+
const o = [
|
1817 |
+
{ autoscroll: (
|
1818 |
+
/*gradio*/
|
1819 |
+
n[5].autoscroll
|
1820 |
+
) },
|
1821 |
+
{ i18n: (
|
1822 |
+
/*gradio*/
|
1823 |
+
n[5].i18n
|
1824 |
+
) },
|
1825 |
+
/*loading_status*/
|
1826 |
+
n[4],
|
1827 |
+
{ variant: "center" }
|
1828 |
+
];
|
1829 |
+
let a = {};
|
1830 |
+
for (let s = 0; s < o.length; s += 1)
|
1831 |
+
a = hl(a, o[s]);
|
1832 |
+
return t = new xt({ props: a }), i = new ut({
|
1833 |
+
props: {
|
1834 |
+
min_height: (
|
1835 |
+
/*loading_status*/
|
1836 |
+
n[4] && /*loading_status*/
|
1837 |
+
((r = n[4]) == null ? void 0 : r.status) !== "complete"
|
1838 |
+
),
|
1839 |
+
value: (
|
1840 |
+
/*value*/
|
1841 |
+
n[3]
|
1842 |
+
),
|
1843 |
+
elem_classes: (
|
1844 |
+
/*elem_classes*/
|
1845 |
+
n[1]
|
1846 |
+
),
|
1847 |
+
visible: (
|
1848 |
+
/*visible*/
|
1849 |
+
n[2]
|
1850 |
+
)
|
1851 |
+
}
|
1852 |
+
}), i.$on(
|
1853 |
+
"change",
|
1854 |
+
/*change_handler*/
|
1855 |
+
n[7]
|
1856 |
+
), {
|
1857 |
+
c() {
|
1858 |
+
var s;
|
1859 |
+
ae(t.$$.fragment), e = Fl(), l = vl("div"), ae(i.$$.fragment), wl(l, "class", "svelte-gqsrr7"), Oe(
|
1860 |
+
l,
|
1861 |
+
"pending",
|
1862 |
+
/*loading_status*/
|
1863 |
+
((s = n[4]) == null ? void 0 : s.status) === "pending"
|
1864 |
+
);
|
1865 |
+
},
|
1866 |
+
m(s, _) {
|
1867 |
+
_e(t, s, _), Ge(s, e, _), Ge(s, l, _), _e(i, l, null), f = !0;
|
1868 |
+
},
|
1869 |
+
p(s, _) {
|
1870 |
+
var h, p;
|
1871 |
+
const u = _ & /*gradio, loading_status*/
|
1872 |
+
48 ? yl(o, [
|
1873 |
+
_ & /*gradio*/
|
1874 |
+
32 && { autoscroll: (
|
1875 |
+
/*gradio*/
|
1876 |
+
s[5].autoscroll
|
1877 |
+
) },
|
1878 |
+
_ & /*gradio*/
|
1879 |
+
32 && { i18n: (
|
1880 |
+
/*gradio*/
|
1881 |
+
s[5].i18n
|
1882 |
+
) },
|
1883 |
+
_ & /*loading_status*/
|
1884 |
+
16 && pl(
|
1885 |
+
/*loading_status*/
|
1886 |
+
s[4]
|
1887 |
+
),
|
1888 |
+
o[3]
|
1889 |
+
]) : {};
|
1890 |
+
t.$set(u);
|
1891 |
+
const w = {};
|
1892 |
+
_ & /*loading_status*/
|
1893 |
+
16 && (w.min_height = /*loading_status*/
|
1894 |
+
s[4] && /*loading_status*/
|
1895 |
+
((h = s[4]) == null ? void 0 : h.status) !== "complete"), _ & /*value*/
|
1896 |
+
8 && (w.value = /*value*/
|
1897 |
+
s[3]), _ & /*elem_classes*/
|
1898 |
+
2 && (w.elem_classes = /*elem_classes*/
|
1899 |
+
s[1]), _ & /*visible*/
|
1900 |
+
4 && (w.visible = /*visible*/
|
1901 |
+
s[2]), i.$set(w), (!f || _ & /*loading_status*/
|
1902 |
+
16) && Oe(
|
1903 |
+
l,
|
1904 |
+
"pending",
|
1905 |
+
/*loading_status*/
|
1906 |
+
((p = s[4]) == null ? void 0 : p.status) === "pending"
|
1907 |
+
);
|
1908 |
+
},
|
1909 |
+
i(s) {
|
1910 |
+
f || (ce(t.$$.fragment, s), ce(i.$$.fragment, s), f = !0);
|
1911 |
+
},
|
1912 |
+
o(s) {
|
1913 |
+
ue(t.$$.fragment, s), ue(i.$$.fragment, s), f = !1;
|
1914 |
+
},
|
1915 |
+
d(s) {
|
1916 |
+
s && (Ye(e), Ye(l)), re(t, s), re(i);
|
1917 |
+
}
|
1918 |
+
};
|
1919 |
+
}
|
1920 |
+
function Cl(n) {
|
1921 |
+
let t, e;
|
1922 |
+
return t = new ml({
|
1923 |
+
props: {
|
1924 |
+
visible: (
|
1925 |
+
/*visible*/
|
1926 |
+
n[2]
|
1927 |
+
),
|
1928 |
+
elem_id: (
|
1929 |
+
/*elem_id*/
|
1930 |
+
n[0]
|
1931 |
+
),
|
1932 |
+
elem_classes: (
|
1933 |
+
/*elem_classes*/
|
1934 |
+
n[1]
|
1935 |
+
),
|
1936 |
+
container: !1,
|
1937 |
+
$$slots: { default: [Ll] },
|
1938 |
+
$$scope: { ctx: n }
|
1939 |
+
}
|
1940 |
+
}), {
|
1941 |
+
c() {
|
1942 |
+
ae(t.$$.fragment);
|
1943 |
+
},
|
1944 |
+
m(l, i) {
|
1945 |
+
_e(t, l, i), e = !0;
|
1946 |
+
},
|
1947 |
+
p(l, [i]) {
|
1948 |
+
const f = {};
|
1949 |
+
i & /*visible*/
|
1950 |
+
4 && (f.visible = /*visible*/
|
1951 |
+
l[2]), i & /*elem_id*/
|
1952 |
+
1 && (f.elem_id = /*elem_id*/
|
1953 |
+
l[0]), i & /*elem_classes*/
|
1954 |
+
2 && (f.elem_classes = /*elem_classes*/
|
1955 |
+
l[1]), i & /*$$scope, loading_status, value, elem_classes, visible, gradio*/
|
1956 |
+
318 && (f.$$scope = { dirty: i, ctx: l }), t.$set(f);
|
1957 |
+
},
|
1958 |
+
i(l) {
|
1959 |
+
e || (ce(t.$$.fragment, l), e = !0);
|
1960 |
+
},
|
1961 |
+
o(l) {
|
1962 |
+
ue(t.$$.fragment, l), e = !1;
|
1963 |
+
},
|
1964 |
+
d(l) {
|
1965 |
+
re(t, l);
|
1966 |
+
}
|
1967 |
+
};
|
1968 |
+
}
|
1969 |
+
function Ml(n, t, e) {
|
1970 |
+
let { label: l } = t, { elem_id: i = "" } = t, { elem_classes: f = [] } = t, { visible: o = !0 } = t, { value: a = "" } = t, { loading_status: r } = t, { gradio: s } = t;
|
1971 |
+
const _ = () => s.dispatch("change");
|
1972 |
+
return n.$$set = (u) => {
|
1973 |
+
"label" in u && e(6, l = u.label), "elem_id" in u && e(0, i = u.elem_id), "elem_classes" in u && e(1, f = u.elem_classes), "visible" in u && e(2, o = u.visible), "value" in u && e(3, a = u.value), "loading_status" in u && e(4, r = u.loading_status), "gradio" in u && e(5, s = u.gradio);
|
1974 |
+
}, n.$$.update = () => {
|
1975 |
+
n.$$.dirty & /*label, gradio*/
|
1976 |
+
96 && s.dispatch("change");
|
1977 |
+
}, [
|
1978 |
+
i,
|
1979 |
+
f,
|
1980 |
+
o,
|
1981 |
+
a,
|
1982 |
+
r,
|
1983 |
+
s,
|
1984 |
+
l,
|
1985 |
+
_
|
1986 |
+
];
|
1987 |
+
}
|
1988 |
+
class Vl extends gl {
|
1989 |
+
constructor(t) {
|
1990 |
+
super(), kl(this, t, Ml, Cl, ql, {
|
1991 |
+
label: 6,
|
1992 |
+
elem_id: 0,
|
1993 |
+
elem_classes: 1,
|
1994 |
+
visible: 2,
|
1995 |
+
value: 3,
|
1996 |
+
loading_status: 4,
|
1997 |
+
gradio: 5
|
1998 |
+
});
|
1999 |
+
}
|
2000 |
+
}
|
2001 |
+
export {
|
2002 |
+
Vl as default
|
2003 |
+
};
|
src/backend/gradio_iframe/templates/component/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.min.svelte-2qygph{min-height:var(--size-24)}.hide.svelte-2qygph{display:none}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-1txqlrd.svelte-1txqlrd{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-top);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden;pointer-events:none}.wrap.center.svelte-1txqlrd.svelte-1txqlrd{top:0;right:0;left:0}.wrap.default.svelte-1txqlrd.svelte-1txqlrd{top:0;right:0;bottom:0;left:0}.hide.svelte-1txqlrd.svelte-1txqlrd{opacity:0;pointer-events:none}.generating.svelte-1txqlrd.svelte-1txqlrd{animation:svelte-1txqlrd-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border:2px solid var(--color-accent);background:transparent}.translucent.svelte-1txqlrd.svelte-1txqlrd{background:none}@keyframes svelte-1txqlrd-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-1txqlrd.svelte-1txqlrd{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-1txqlrd.svelte-1txqlrd{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-1txqlrd.svelte-1txqlrd{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-1txqlrd.svelte-1txqlrd{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-1txqlrd.svelte-1txqlrd{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-1txqlrd.svelte-1txqlrd{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-1txqlrd.svelte-1txqlrd{position:absolute;top:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-1txqlrd.svelte-1txqlrd{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-1txqlrd.svelte-1txqlrd{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-1txqlrd .progress-text.svelte-1txqlrd{background:var(--block-background-fill)}.border.svelte-1txqlrd.svelte-1txqlrd{border:1px solid var(--border-color-primary)}.dropdown-arrow.svelte-145leq6{fill:currentColor}.toast-body.svelte-solcu7{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-solcu7{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-solcu7{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-title.svelte-solcu7{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm);text-transform:capitalize}.toast-title.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-title.error.svelte-solcu7{color:var(--color-red-50)}.toast-title.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-title.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-title.info.svelte-solcu7{color:var(--color-grey-50)}.toast-close.svelte-solcu7{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-close.error.svelte-solcu7{color:var(--color-red-500)}.toast-close.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-close.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-close.info.svelte-solcu7{color:var(--color-grey-500)}.toast-text.svelte-solcu7{font-size:var(--text-lg)}.toast-text.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-text.error.svelte-solcu7{color:var(--color-red-50)}.toast-text.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-text.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-text.info.svelte-solcu7{color:var(--color-grey-50)}.toast-details.svelte-solcu7{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-solcu7{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-icon.error.svelte-solcu7{color:var(--color-red-500)}.toast-icon.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-icon.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-solcu7{color:var(--color-grey-500)}@keyframes svelte-solcu7-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-solcu7{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-solcu7-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-solcu7{background:var(--color-red-700)}.dark .timer.error.svelte-solcu7{background:var(--color-red-500)}.timer.warning.svelte-solcu7{background:var(--color-yellow-700)}.dark .timer.warning.svelte-solcu7{background:var(--color-yellow-500)}.timer.info.svelte-solcu7{background:var(--color-grey-700)}.dark .timer.info.svelte-solcu7{background:var(--color-grey-500)}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}.block.svelte-1t38q2d{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.border_focus.svelte-1t38q2d{border-color:var(--color-accent)}.padded.svelte-1t38q2d{padding:var(--block-padding)}.hidden.svelte-1t38q2d{display:none}.hide-container.svelte-1t38q2d{margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}div.svelte-1hnfib2{margin-bottom:var(--spacing-lg);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}span.has-info.svelte-22c38v{margin-bottom:var(--spacing-xs)}span.svelte-22c38v:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-22c38v{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-22c38v{margin:0;height:0}label.svelte-9gxdi0{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--border-color-primary);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-9gxdi0{border-top-left-radius:0}label.float.svelte-9gxdi0{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-9gxdi0:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-9gxdi0{height:0}span.svelte-9gxdi0{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-9gxdi0{box-shadow:none;border-width:0;background:transparent;overflow:visible}button.svelte-lpi64a{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-sm);color:var(--block-label-text-color);border:1px solid transparent}button[disabled].svelte-lpi64a{opacity:.5;box-shadow:none}button[disabled].svelte-lpi64a:hover{cursor:not-allowed}.padded.svelte-lpi64a{padding:2px;background:var(--bg-color);box-shadow:var(--shadow-drop);border:1px solid var(--button-secondary-border-color)}button.svelte-lpi64a:hover,button.highlight.svelte-lpi64a{cursor:pointer;color:var(--color-accent)}.padded.svelte-lpi64a:hover{border:2px solid var(--button-secondary-border-color-hover);padding:1px;color:var(--block-label-text-color)}span.svelte-lpi64a{padding:0 1px;font-size:10px}div.svelte-lpi64a{padding:2px;display:flex;align-items:flex-end}.small.svelte-lpi64a{width:14px;height:14px}.large.svelte-lpi64a{width:22px;height:22px}.pending.svelte-lpi64a{animation:svelte-lpi64a-flash .5s infinite}@keyframes svelte-lpi64a-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-lpi64a{background:transparent;border:none;box-shadow:none}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.wrap.svelte-kzcjhc{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3)}.or.svelte-kzcjhc{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-kzcjhc{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-kzcjhc{font-size:var(--text-lg)}}.hovered.svelte-kzcjhc{color:var(--color-accent)}div.svelte-ipfyu7{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;padding-bottom:var(--spacing-xl);color:var(--block-label-text-color);flex-shrink:0;width:95%}.show_border.svelte-ipfyu7{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-lde7lt{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:95%;bottom:0;left:0;right:0;margin-left:auto;margin-right:auto;align-self:flex-end}.icon.svelte-lde7lt{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-lde7lt{color:var(--color-accent)}.icon.svelte-lde7lt:hover,.icon.svelte-lde7lt:focus{color:var(--color-accent)}div.svelte-gqsrr7{transition:.15s}.pending.svelte-gqsrr7{opacity:.2}
|
src/backend/gradio_iframe/templates/example/index.js
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const {
|
2 |
+
SvelteComponent: r,
|
3 |
+
append: d,
|
4 |
+
attr: s,
|
5 |
+
detach: u,
|
6 |
+
element: o,
|
7 |
+
init: g,
|
8 |
+
insert: m,
|
9 |
+
noop: _,
|
10 |
+
safe_not_equal: v,
|
11 |
+
toggle_class: c
|
12 |
+
} = window.__gradio__svelte__internal;
|
13 |
+
function y(n) {
|
14 |
+
let e, l;
|
15 |
+
return {
|
16 |
+
c() {
|
17 |
+
e = o("div"), l = o("iframe"), s(l, "title", "iframe component"), s(l, "width", "100%"), s(l, "height", "100%"), s(
|
18 |
+
l,
|
19 |
+
"srcdoc",
|
20 |
+
/*value*/
|
21 |
+
n[0]
|
22 |
+
), s(l, "allow", ""), s(e, "class", "prose svelte-180qqaf"), c(
|
23 |
+
e,
|
24 |
+
"table",
|
25 |
+
/*type*/
|
26 |
+
n[1] === "table"
|
27 |
+
), c(
|
28 |
+
e,
|
29 |
+
"gallery",
|
30 |
+
/*type*/
|
31 |
+
n[1] === "gallery"
|
32 |
+
), c(
|
33 |
+
e,
|
34 |
+
"selected",
|
35 |
+
/*selected*/
|
36 |
+
n[2]
|
37 |
+
);
|
38 |
+
},
|
39 |
+
m(t, a) {
|
40 |
+
m(t, e, a), d(e, l);
|
41 |
+
},
|
42 |
+
p(t, [a]) {
|
43 |
+
a & /*value*/
|
44 |
+
1 && s(
|
45 |
+
l,
|
46 |
+
"srcdoc",
|
47 |
+
/*value*/
|
48 |
+
t[0]
|
49 |
+
), a & /*type*/
|
50 |
+
2 && c(
|
51 |
+
e,
|
52 |
+
"table",
|
53 |
+
/*type*/
|
54 |
+
t[1] === "table"
|
55 |
+
), a & /*type*/
|
56 |
+
2 && c(
|
57 |
+
e,
|
58 |
+
"gallery",
|
59 |
+
/*type*/
|
60 |
+
t[1] === "gallery"
|
61 |
+
), a & /*selected*/
|
62 |
+
4 && c(
|
63 |
+
e,
|
64 |
+
"selected",
|
65 |
+
/*selected*/
|
66 |
+
t[2]
|
67 |
+
);
|
68 |
+
},
|
69 |
+
i: _,
|
70 |
+
o: _,
|
71 |
+
d(t) {
|
72 |
+
t && u(e);
|
73 |
+
}
|
74 |
+
};
|
75 |
+
}
|
76 |
+
function h(n, e, l) {
|
77 |
+
let { value: t } = e, { type: a } = e, { selected: f = !1 } = e;
|
78 |
+
return n.$$set = (i) => {
|
79 |
+
"value" in i && l(0, t = i.value), "type" in i && l(1, a = i.type), "selected" in i && l(2, f = i.selected);
|
80 |
+
}, [t, a, f];
|
81 |
+
}
|
82 |
+
class b extends r {
|
83 |
+
constructor(e) {
|
84 |
+
super(), g(this, e, h, y, v, { value: 0, type: 1, selected: 2 });
|
85 |
+
}
|
86 |
+
}
|
87 |
+
export {
|
88 |
+
b as default
|
89 |
+
};
|
src/backend/gradio_iframe/templates/example/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.gallery.svelte-180qqaf{padding:var(--size-2)}
|
src/demo/__init__.py
ADDED
File without changes
|
src/demo/app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from gradio_iframe import iFrame
|
4 |
+
|
5 |
+
|
6 |
+
example = iFrame().example_inputs()
|
7 |
+
|
8 |
+
with gr.Blocks() as demo:
|
9 |
+
with gr.Row():
|
10 |
+
iFrame(label="Blank"), # blank component
|
11 |
+
iFrame(value=example, label="Populated"), # populated component
|
12 |
+
|
13 |
+
|
14 |
+
demo.launch()
|
src/frontend/Example.svelte
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
export let value: string;
|
3 |
+
export let type: "gallery" | "table";
|
4 |
+
export let selected = false;
|
5 |
+
</script>
|
6 |
+
|
7 |
+
<div
|
8 |
+
class:table={type === "table"}
|
9 |
+
class:gallery={type === "gallery"}
|
10 |
+
class:selected
|
11 |
+
class="prose"
|
12 |
+
>
|
13 |
+
<iframe title="iframe component" width="100%" height="100%" srcdoc={value} allow=""></iframe>
|
14 |
+
</div>
|
15 |
+
|
16 |
+
<style>
|
17 |
+
.gallery {
|
18 |
+
padding: var(--size-2);
|
19 |
+
}
|
20 |
+
</style>
|
src/frontend/Index.svelte
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import type { Gradio } from "@gradio/utils";
|
3 |
+
import HTML from "./shared/HTML.svelte";
|
4 |
+
import { StatusTracker } from "@gradio/statustracker";
|
5 |
+
import type { LoadingStatus } from "@gradio/statustracker";
|
6 |
+
import { Block } from "@gradio/atoms";
|
7 |
+
|
8 |
+
export let label: string;
|
9 |
+
export let elem_id = "";
|
10 |
+
export let elem_classes: string[] = [];
|
11 |
+
export let visible = true;
|
12 |
+
export let value = "";
|
13 |
+
export let loading_status: LoadingStatus;
|
14 |
+
export let gradio: Gradio<{
|
15 |
+
change: never;
|
16 |
+
}>;
|
17 |
+
|
18 |
+
$: label, gradio.dispatch("change");
|
19 |
+
</script>
|
20 |
+
|
21 |
+
<Block {visible} {elem_id} {elem_classes} container={false}>
|
22 |
+
<StatusTracker
|
23 |
+
autoscroll={gradio.autoscroll}
|
24 |
+
i18n={gradio.i18n}
|
25 |
+
{...loading_status}
|
26 |
+
variant="center"
|
27 |
+
/>
|
28 |
+
<div class:pending={loading_status?.status === "pending"}>
|
29 |
+
<HTML
|
30 |
+
min_height={loading_status && loading_status?.status !== "complete"}
|
31 |
+
{value}
|
32 |
+
{elem_classes}
|
33 |
+
{visible}
|
34 |
+
on:change={() => gradio.dispatch("change")}
|
35 |
+
/>
|
36 |
+
</div>
|
37 |
+
</Block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atoms": "0.3.0",
|
13 |
+
"@gradio/statustracker": "0.4.0",
|
14 |
+
"@gradio/utils": "0.2.0"
|
15 |
+
}
|
16 |
+
},
|
17 |
+
"node_modules/@ampproject/remapping": {
|
18 |
+
"version": "2.2.1",
|
19 |
+
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
|
20 |
+
"integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
|
21 |
+
"peer": true,
|
22 |
+
"dependencies": {
|
23 |
+
"@jridgewell/gen-mapping": "^0.3.0",
|
24 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
25 |
+
},
|
26 |
+
"engines": {
|
27 |
+
"node": ">=6.0.0"
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"node_modules/@esbuild/aix-ppc64": {
|
31 |
+
"version": "0.19.11",
|
32 |
+
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz",
|
33 |
+
"integrity": "sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==",
|
34 |
+
"cpu": [
|
35 |
+
"ppc64"
|
36 |
+
],
|
37 |
+
"optional": true,
|
38 |
+
"os": [
|
39 |
+
"aix"
|
40 |
+
],
|
41 |
+
"engines": {
|
42 |
+
"node": ">=12"
|
43 |
+
}
|
44 |
+
},
|
45 |
+
"node_modules/@esbuild/android-arm": {
|
46 |
+
"version": "0.19.11",
|
47 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.11.tgz",
|
48 |
+
"integrity": "sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==",
|
49 |
+
"cpu": [
|
50 |
+
"arm"
|
51 |
+
],
|
52 |
+
"optional": true,
|
53 |
+
"os": [
|
54 |
+
"android"
|
55 |
+
],
|
56 |
+
"engines": {
|
57 |
+
"node": ">=12"
|
58 |
+
}
|
59 |
+
},
|
60 |
+
"node_modules/@esbuild/android-arm64": {
|
61 |
+
"version": "0.19.11",
|
62 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz",
|
63 |
+
"integrity": "sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==",
|
64 |
+
"cpu": [
|
65 |
+
"arm64"
|
66 |
+
],
|
67 |
+
"optional": true,
|
68 |
+
"os": [
|
69 |
+
"android"
|
70 |
+
],
|
71 |
+
"engines": {
|
72 |
+
"node": ">=12"
|
73 |
+
}
|
74 |
+
},
|
75 |
+
"node_modules/@esbuild/android-x64": {
|
76 |
+
"version": "0.19.11",
|
77 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.11.tgz",
|
78 |
+
"integrity": "sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==",
|
79 |
+
"cpu": [
|
80 |
+
"x64"
|
81 |
+
],
|
82 |
+
"optional": true,
|
83 |
+
"os": [
|
84 |
+
"android"
|
85 |
+
],
|
86 |
+
"engines": {
|
87 |
+
"node": ">=12"
|
88 |
+
}
|
89 |
+
},
|
90 |
+
"node_modules/@esbuild/darwin-arm64": {
|
91 |
+
"version": "0.19.11",
|
92 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz",
|
93 |
+
"integrity": "sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==",
|
94 |
+
"cpu": [
|
95 |
+
"arm64"
|
96 |
+
],
|
97 |
+
"optional": true,
|
98 |
+
"os": [
|
99 |
+
"darwin"
|
100 |
+
],
|
101 |
+
"engines": {
|
102 |
+
"node": ">=12"
|
103 |
+
}
|
104 |
+
},
|
105 |
+
"node_modules/@esbuild/darwin-x64": {
|
106 |
+
"version": "0.19.11",
|
107 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz",
|
108 |
+
"integrity": "sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==",
|
109 |
+
"cpu": [
|
110 |
+
"x64"
|
111 |
+
],
|
112 |
+
"optional": true,
|
113 |
+
"os": [
|
114 |
+
"darwin"
|
115 |
+
],
|
116 |
+
"engines": {
|
117 |
+
"node": ">=12"
|
118 |
+
}
|
119 |
+
},
|
120 |
+
"node_modules/@esbuild/freebsd-arm64": {
|
121 |
+
"version": "0.19.11",
|
122 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz",
|
123 |
+
"integrity": "sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==",
|
124 |
+
"cpu": [
|
125 |
+
"arm64"
|
126 |
+
],
|
127 |
+
"optional": true,
|
128 |
+
"os": [
|
129 |
+
"freebsd"
|
130 |
+
],
|
131 |
+
"engines": {
|
132 |
+
"node": ">=12"
|
133 |
+
}
|
134 |
+
},
|
135 |
+
"node_modules/@esbuild/freebsd-x64": {
|
136 |
+
"version": "0.19.11",
|
137 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz",
|
138 |
+
"integrity": "sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==",
|
139 |
+
"cpu": [
|
140 |
+
"x64"
|
141 |
+
],
|
142 |
+
"optional": true,
|
143 |
+
"os": [
|
144 |
+
"freebsd"
|
145 |
+
],
|
146 |
+
"engines": {
|
147 |
+
"node": ">=12"
|
148 |
+
}
|
149 |
+
},
|
150 |
+
"node_modules/@esbuild/linux-arm": {
|
151 |
+
"version": "0.19.11",
|
152 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz",
|
153 |
+
"integrity": "sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==",
|
154 |
+
"cpu": [
|
155 |
+
"arm"
|
156 |
+
],
|
157 |
+
"optional": true,
|
158 |
+
"os": [
|
159 |
+
"linux"
|
160 |
+
],
|
161 |
+
"engines": {
|
162 |
+
"node": ">=12"
|
163 |
+
}
|
164 |
+
},
|
165 |
+
"node_modules/@esbuild/linux-arm64": {
|
166 |
+
"version": "0.19.11",
|
167 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz",
|
168 |
+
"integrity": "sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==",
|
169 |
+
"cpu": [
|
170 |
+
"arm64"
|
171 |
+
],
|
172 |
+
"optional": true,
|
173 |
+
"os": [
|
174 |
+
"linux"
|
175 |
+
],
|
176 |
+
"engines": {
|
177 |
+
"node": ">=12"
|
178 |
+
}
|
179 |
+
},
|
180 |
+
"node_modules/@esbuild/linux-ia32": {
|
181 |
+
"version": "0.19.11",
|
182 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz",
|
183 |
+
"integrity": "sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==",
|
184 |
+
"cpu": [
|
185 |
+
"ia32"
|
186 |
+
],
|
187 |
+
"optional": true,
|
188 |
+
"os": [
|
189 |
+
"linux"
|
190 |
+
],
|
191 |
+
"engines": {
|
192 |
+
"node": ">=12"
|
193 |
+
}
|
194 |
+
},
|
195 |
+
"node_modules/@esbuild/linux-loong64": {
|
196 |
+
"version": "0.19.11",
|
197 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz",
|
198 |
+
"integrity": "sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==",
|
199 |
+
"cpu": [
|
200 |
+
"loong64"
|
201 |
+
],
|
202 |
+
"optional": true,
|
203 |
+
"os": [
|
204 |
+
"linux"
|
205 |
+
],
|
206 |
+
"engines": {
|
207 |
+
"node": ">=12"
|
208 |
+
}
|
209 |
+
},
|
210 |
+
"node_modules/@esbuild/linux-mips64el": {
|
211 |
+
"version": "0.19.11",
|
212 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz",
|
213 |
+
"integrity": "sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==",
|
214 |
+
"cpu": [
|
215 |
+
"mips64el"
|
216 |
+
],
|
217 |
+
"optional": true,
|
218 |
+
"os": [
|
219 |
+
"linux"
|
220 |
+
],
|
221 |
+
"engines": {
|
222 |
+
"node": ">=12"
|
223 |
+
}
|
224 |
+
},
|
225 |
+
"node_modules/@esbuild/linux-ppc64": {
|
226 |
+
"version": "0.19.11",
|
227 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz",
|
228 |
+
"integrity": "sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==",
|
229 |
+
"cpu": [
|
230 |
+
"ppc64"
|
231 |
+
],
|
232 |
+
"optional": true,
|
233 |
+
"os": [
|
234 |
+
"linux"
|
235 |
+
],
|
236 |
+
"engines": {
|
237 |
+
"node": ">=12"
|
238 |
+
}
|
239 |
+
},
|
240 |
+
"node_modules/@esbuild/linux-riscv64": {
|
241 |
+
"version": "0.19.11",
|
242 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz",
|
243 |
+
"integrity": "sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==",
|
244 |
+
"cpu": [
|
245 |
+
"riscv64"
|
246 |
+
],
|
247 |
+
"optional": true,
|
248 |
+
"os": [
|
249 |
+
"linux"
|
250 |
+
],
|
251 |
+
"engines": {
|
252 |
+
"node": ">=12"
|
253 |
+
}
|
254 |
+
},
|
255 |
+
"node_modules/@esbuild/linux-s390x": {
|
256 |
+
"version": "0.19.11",
|
257 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz",
|
258 |
+
"integrity": "sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==",
|
259 |
+
"cpu": [
|
260 |
+
"s390x"
|
261 |
+
],
|
262 |
+
"optional": true,
|
263 |
+
"os": [
|
264 |
+
"linux"
|
265 |
+
],
|
266 |
+
"engines": {
|
267 |
+
"node": ">=12"
|
268 |
+
}
|
269 |
+
},
|
270 |
+
"node_modules/@esbuild/linux-x64": {
|
271 |
+
"version": "0.19.11",
|
272 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz",
|
273 |
+
"integrity": "sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==",
|
274 |
+
"cpu": [
|
275 |
+
"x64"
|
276 |
+
],
|
277 |
+
"optional": true,
|
278 |
+
"os": [
|
279 |
+
"linux"
|
280 |
+
],
|
281 |
+
"engines": {
|
282 |
+
"node": ">=12"
|
283 |
+
}
|
284 |
+
},
|
285 |
+
"node_modules/@esbuild/netbsd-x64": {
|
286 |
+
"version": "0.19.11",
|
287 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz",
|
288 |
+
"integrity": "sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==",
|
289 |
+
"cpu": [
|
290 |
+
"x64"
|
291 |
+
],
|
292 |
+
"optional": true,
|
293 |
+
"os": [
|
294 |
+
"netbsd"
|
295 |
+
],
|
296 |
+
"engines": {
|
297 |
+
"node": ">=12"
|
298 |
+
}
|
299 |
+
},
|
300 |
+
"node_modules/@esbuild/openbsd-x64": {
|
301 |
+
"version": "0.19.11",
|
302 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz",
|
303 |
+
"integrity": "sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==",
|
304 |
+
"cpu": [
|
305 |
+
"x64"
|
306 |
+
],
|
307 |
+
"optional": true,
|
308 |
+
"os": [
|
309 |
+
"openbsd"
|
310 |
+
],
|
311 |
+
"engines": {
|
312 |
+
"node": ">=12"
|
313 |
+
}
|
314 |
+
},
|
315 |
+
"node_modules/@esbuild/sunos-x64": {
|
316 |
+
"version": "0.19.11",
|
317 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz",
|
318 |
+
"integrity": "sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==",
|
319 |
+
"cpu": [
|
320 |
+
"x64"
|
321 |
+
],
|
322 |
+
"optional": true,
|
323 |
+
"os": [
|
324 |
+
"sunos"
|
325 |
+
],
|
326 |
+
"engines": {
|
327 |
+
"node": ">=12"
|
328 |
+
}
|
329 |
+
},
|
330 |
+
"node_modules/@esbuild/win32-arm64": {
|
331 |
+
"version": "0.19.11",
|
332 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz",
|
333 |
+
"integrity": "sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==",
|
334 |
+
"cpu": [
|
335 |
+
"arm64"
|
336 |
+
],
|
337 |
+
"optional": true,
|
338 |
+
"os": [
|
339 |
+
"win32"
|
340 |
+
],
|
341 |
+
"engines": {
|
342 |
+
"node": ">=12"
|
343 |
+
}
|
344 |
+
},
|
345 |
+
"node_modules/@esbuild/win32-ia32": {
|
346 |
+
"version": "0.19.11",
|
347 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz",
|
348 |
+
"integrity": "sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==",
|
349 |
+
"cpu": [
|
350 |
+
"ia32"
|
351 |
+
],
|
352 |
+
"optional": true,
|
353 |
+
"os": [
|
354 |
+
"win32"
|
355 |
+
],
|
356 |
+
"engines": {
|
357 |
+
"node": ">=12"
|
358 |
+
}
|
359 |
+
},
|
360 |
+
"node_modules/@esbuild/win32-x64": {
|
361 |
+
"version": "0.19.11",
|
362 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz",
|
363 |
+
"integrity": "sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==",
|
364 |
+
"cpu": [
|
365 |
+
"x64"
|
366 |
+
],
|
367 |
+
"optional": true,
|
368 |
+
"os": [
|
369 |
+
"win32"
|
370 |
+
],
|
371 |
+
"engines": {
|
372 |
+
"node": ">=12"
|
373 |
+
}
|
374 |
+
},
|
375 |
+
"node_modules/@formatjs/ecma402-abstract": {
|
376 |
+
"version": "1.11.4",
|
377 |
+
"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
|
378 |
+
"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
|
379 |
+
"dependencies": {
|
380 |
+
"@formatjs/intl-localematcher": "0.2.25",
|
381 |
+
"tslib": "^2.1.0"
|
382 |
+
}
|
383 |
+
},
|
384 |
+
"node_modules/@formatjs/fast-memoize": {
|
385 |
+
"version": "1.2.1",
|
386 |
+
"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
|
387 |
+
"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
|
388 |
+
"dependencies": {
|
389 |
+
"tslib": "^2.1.0"
|
390 |
+
}
|
391 |
+
},
|
392 |
+
"node_modules/@formatjs/icu-messageformat-parser": {
|
393 |
+
"version": "2.1.0",
|
394 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
|
395 |
+
"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
|
396 |
+
"dependencies": {
|
397 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
398 |
+
"@formatjs/icu-skeleton-parser": "1.3.6",
|
399 |
+
"tslib": "^2.1.0"
|
400 |
+
}
|
401 |
+
},
|
402 |
+
"node_modules/@formatjs/icu-skeleton-parser": {
|
403 |
+
"version": "1.3.6",
|
404 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
|
405 |
+
"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
|
406 |
+
"dependencies": {
|
407 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
408 |
+
"tslib": "^2.1.0"
|
409 |
+
}
|
410 |
+
},
|
411 |
+
"node_modules/@formatjs/intl-localematcher": {
|
412 |
+
"version": "0.2.25",
|
413 |
+
"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
|
414 |
+
"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
|
415 |
+
"dependencies": {
|
416 |
+
"tslib": "^2.1.0"
|
417 |
+
}
|
418 |
+
},
|
419 |
+
"node_modules/@gradio/atoms": {
|
420 |
+
"version": "0.3.0",
|
421 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.3.0.tgz",
|
422 |
+
"integrity": "sha512-7WQktAb+d8wEjTIYGzyQ8OdWsFSr0NA8adp8G/jAKoMZILJEoAAZSTnahCTSSQcbYIomVdfYA0ZmM342RCd8gg==",
|
423 |
+
"dependencies": {
|
424 |
+
"@gradio/icons": "^0.3.0",
|
425 |
+
"@gradio/utils": "^0.2.0"
|
426 |
+
}
|
427 |
+
},
|
428 |
+
"node_modules/@gradio/column": {
|
429 |
+
"version": "0.1.0",
|
430 |
+
"resolved": "https://registry.npmjs.org/@gradio/column/-/column-0.1.0.tgz",
|
431 |
+
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
432 |
+
},
|
433 |
+
"node_modules/@gradio/icons": {
|
434 |
+
"version": "0.3.2",
|
435 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.3.2.tgz",
|
436 |
+
"integrity": "sha512-l0jGfSRFiZ/doAXz6L+JEp6MN/a1BTZm88kqVoSnYrKSytP6bnBLRWeF4UvOi2T2fbVrNKenAEt/lwxJE5vK4w=="
|
437 |
+
},
|
438 |
+
"node_modules/@gradio/statustracker": {
|
439 |
+
"version": "0.4.0",
|
440 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.4.0.tgz",
|
441 |
+
"integrity": "sha512-Kgk4R2edFX4IK2UBit4UwmRfSrmvkYjKbiMfupj3qxHFwiDHT4YH4rAOqBlvdEWbCYMmLN6EyqqFaYb2+0GwXA==",
|
442 |
+
"dependencies": {
|
443 |
+
"@gradio/atoms": "^0.3.0",
|
444 |
+
"@gradio/column": "^0.1.0",
|
445 |
+
"@gradio/icons": "^0.3.0",
|
446 |
+
"@gradio/utils": "^0.2.0"
|
447 |
+
}
|
448 |
+
},
|
449 |
+
"node_modules/@gradio/theme": {
|
450 |
+
"version": "0.2.0",
|
451 |
+
"resolved": "https://registry.npmjs.org/@gradio/theme/-/theme-0.2.0.tgz",
|
452 |
+
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
453 |
+
},
|
454 |
+
"node_modules/@gradio/utils": {
|
455 |
+
"version": "0.2.0",
|
456 |
+
"resolved": "https://registry.npmjs.org/@gradio/utils/-/utils-0.2.0.tgz",
|
457 |
+
"integrity": "sha512-YkwzXufi6IxQrlMW+1sFo8Yn6F9NLL69ZoBsbo7QEhms0v5L7pmOTw+dfd7M3dwbRP2lgjrb52i1kAIN3n6aqQ==",
|
458 |
+
"dependencies": {
|
459 |
+
"@gradio/theme": "^0.2.0",
|
460 |
+
"svelte-i18n": "^3.6.0"
|
461 |
+
}
|
462 |
+
},
|
463 |
+
"node_modules/@jridgewell/gen-mapping": {
|
464 |
+
"version": "0.3.3",
|
465 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
|
466 |
+
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
|
467 |
+
"peer": true,
|
468 |
+
"dependencies": {
|
469 |
+
"@jridgewell/set-array": "^1.0.1",
|
470 |
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
471 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
472 |
+
},
|
473 |
+
"engines": {
|
474 |
+
"node": ">=6.0.0"
|
475 |
+
}
|
476 |
+
},
|
477 |
+
"node_modules/@jridgewell/resolve-uri": {
|
478 |
+
"version": "3.1.1",
|
479 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
480 |
+
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
481 |
+
"peer": true,
|
482 |
+
"engines": {
|
483 |
+
"node": ">=6.0.0"
|
484 |
+
}
|
485 |
+
},
|
486 |
+
"node_modules/@jridgewell/set-array": {
|
487 |
+
"version": "1.1.2",
|
488 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
|
489 |
+
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
|
490 |
+
"peer": true,
|
491 |
+
"engines": {
|
492 |
+
"node": ">=6.0.0"
|
493 |
+
}
|
494 |
+
},
|
495 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
496 |
+
"version": "1.4.15",
|
497 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
498 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
499 |
+
"peer": true
|
500 |
+
},
|
501 |
+
"node_modules/@jridgewell/trace-mapping": {
|
502 |
+
"version": "0.3.22",
|
503 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz",
|
504 |
+
"integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==",
|
505 |
+
"peer": true,
|
506 |
+
"dependencies": {
|
507 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
508 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
509 |
+
}
|
510 |
+
},
|
511 |
+
"node_modules/@types/estree": {
|
512 |
+
"version": "1.0.5",
|
513 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz",
|
514 |
+
"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==",
|
515 |
+
"peer": true
|
516 |
+
},
|
517 |
+
"node_modules/acorn": {
|
518 |
+
"version": "8.11.3",
|
519 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
|
520 |
+
"integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
|
521 |
+
"peer": true,
|
522 |
+
"bin": {
|
523 |
+
"acorn": "bin/acorn"
|
524 |
+
},
|
525 |
+
"engines": {
|
526 |
+
"node": ">=0.4.0"
|
527 |
+
}
|
528 |
+
},
|
529 |
+
"node_modules/aria-query": {
|
530 |
+
"version": "5.3.0",
|
531 |
+
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
|
532 |
+
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
|
533 |
+
"peer": true,
|
534 |
+
"dependencies": {
|
535 |
+
"dequal": "^2.0.3"
|
536 |
+
}
|
537 |
+
},
|
538 |
+
"node_modules/axobject-query": {
|
539 |
+
"version": "4.0.0",
|
540 |
+
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
|
541 |
+
"integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
|
542 |
+
"peer": true,
|
543 |
+
"dependencies": {
|
544 |
+
"dequal": "^2.0.3"
|
545 |
+
}
|
546 |
+
},
|
547 |
+
"node_modules/cli-color": {
|
548 |
+
"version": "2.0.3",
|
549 |
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz",
|
550 |
+
"integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==",
|
551 |
+
"dependencies": {
|
552 |
+
"d": "^1.0.1",
|
553 |
+
"es5-ext": "^0.10.61",
|
554 |
+
"es6-iterator": "^2.0.3",
|
555 |
+
"memoizee": "^0.4.15",
|
556 |
+
"timers-ext": "^0.1.7"
|
557 |
+
},
|
558 |
+
"engines": {
|
559 |
+
"node": ">=0.10"
|
560 |
+
}
|
561 |
+
},
|
562 |
+
"node_modules/code-red": {
|
563 |
+
"version": "1.0.4",
|
564 |
+
"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",
|
565 |
+
"integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",
|
566 |
+
"peer": true,
|
567 |
+
"dependencies": {
|
568 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
569 |
+
"@types/estree": "^1.0.1",
|
570 |
+
"acorn": "^8.10.0",
|
571 |
+
"estree-walker": "^3.0.3",
|
572 |
+
"periscopic": "^3.1.0"
|
573 |
+
}
|
574 |
+
},
|
575 |
+
"node_modules/css-tree": {
|
576 |
+
"version": "2.3.1",
|
577 |
+
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
|
578 |
+
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
|
579 |
+
"peer": true,
|
580 |
+
"dependencies": {
|
581 |
+
"mdn-data": "2.0.30",
|
582 |
+
"source-map-js": "^1.0.1"
|
583 |
+
},
|
584 |
+
"engines": {
|
585 |
+
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
586 |
+
}
|
587 |
+
},
|
588 |
+
"node_modules/d": {
|
589 |
+
"version": "1.0.1",
|
590 |
+
"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
|
591 |
+
"integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
|
592 |
+
"dependencies": {
|
593 |
+
"es5-ext": "^0.10.50",
|
594 |
+
"type": "^1.0.1"
|
595 |
+
}
|
596 |
+
},
|
597 |
+
"node_modules/deepmerge": {
|
598 |
+
"version": "4.3.1",
|
599 |
+
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
600 |
+
"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
|
601 |
+
"engines": {
|
602 |
+
"node": ">=0.10.0"
|
603 |
+
}
|
604 |
+
},
|
605 |
+
"node_modules/dequal": {
|
606 |
+
"version": "2.0.3",
|
607 |
+
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
608 |
+
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
|
609 |
+
"peer": true,
|
610 |
+
"engines": {
|
611 |
+
"node": ">=6"
|
612 |
+
}
|
613 |
+
},
|
614 |
+
"node_modules/es5-ext": {
|
615 |
+
"version": "0.10.62",
|
616 |
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
|
617 |
+
"integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
|
618 |
+
"hasInstallScript": true,
|
619 |
+
"dependencies": {
|
620 |
+
"es6-iterator": "^2.0.3",
|
621 |
+
"es6-symbol": "^3.1.3",
|
622 |
+
"next-tick": "^1.1.0"
|
623 |
+
},
|
624 |
+
"engines": {
|
625 |
+
"node": ">=0.10"
|
626 |
+
}
|
627 |
+
},
|
628 |
+
"node_modules/es6-iterator": {
|
629 |
+
"version": "2.0.3",
|
630 |
+
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
631 |
+
"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
|
632 |
+
"dependencies": {
|
633 |
+
"d": "1",
|
634 |
+
"es5-ext": "^0.10.35",
|
635 |
+
"es6-symbol": "^3.1.1"
|
636 |
+
}
|
637 |
+
},
|
638 |
+
"node_modules/es6-symbol": {
|
639 |
+
"version": "3.1.3",
|
640 |
+
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
|
641 |
+
"integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
|
642 |
+
"dependencies": {
|
643 |
+
"d": "^1.0.1",
|
644 |
+
"ext": "^1.1.2"
|
645 |
+
}
|
646 |
+
},
|
647 |
+
"node_modules/es6-weak-map": {
|
648 |
+
"version": "2.0.3",
|
649 |
+
"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
|
650 |
+
"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
|
651 |
+
"dependencies": {
|
652 |
+
"d": "1",
|
653 |
+
"es5-ext": "^0.10.46",
|
654 |
+
"es6-iterator": "^2.0.3",
|
655 |
+
"es6-symbol": "^3.1.1"
|
656 |
+
}
|
657 |
+
},
|
658 |
+
"node_modules/esbuild": {
|
659 |
+
"version": "0.19.11",
|
660 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.11.tgz",
|
661 |
+
"integrity": "sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==",
|
662 |
+
"hasInstallScript": true,
|
663 |
+
"bin": {
|
664 |
+
"esbuild": "bin/esbuild"
|
665 |
+
},
|
666 |
+
"engines": {
|
667 |
+
"node": ">=12"
|
668 |
+
},
|
669 |
+
"optionalDependencies": {
|
670 |
+
"@esbuild/aix-ppc64": "0.19.11",
|
671 |
+
"@esbuild/android-arm": "0.19.11",
|
672 |
+
"@esbuild/android-arm64": "0.19.11",
|
673 |
+
"@esbuild/android-x64": "0.19.11",
|
674 |
+
"@esbuild/darwin-arm64": "0.19.11",
|
675 |
+
"@esbuild/darwin-x64": "0.19.11",
|
676 |
+
"@esbuild/freebsd-arm64": "0.19.11",
|
677 |
+
"@esbuild/freebsd-x64": "0.19.11",
|
678 |
+
"@esbuild/linux-arm": "0.19.11",
|
679 |
+
"@esbuild/linux-arm64": "0.19.11",
|
680 |
+
"@esbuild/linux-ia32": "0.19.11",
|
681 |
+
"@esbuild/linux-loong64": "0.19.11",
|
682 |
+
"@esbuild/linux-mips64el": "0.19.11",
|
683 |
+
"@esbuild/linux-ppc64": "0.19.11",
|
684 |
+
"@esbuild/linux-riscv64": "0.19.11",
|
685 |
+
"@esbuild/linux-s390x": "0.19.11",
|
686 |
+
"@esbuild/linux-x64": "0.19.11",
|
687 |
+
"@esbuild/netbsd-x64": "0.19.11",
|
688 |
+
"@esbuild/openbsd-x64": "0.19.11",
|
689 |
+
"@esbuild/sunos-x64": "0.19.11",
|
690 |
+
"@esbuild/win32-arm64": "0.19.11",
|
691 |
+
"@esbuild/win32-ia32": "0.19.11",
|
692 |
+
"@esbuild/win32-x64": "0.19.11"
|
693 |
+
}
|
694 |
+
},
|
695 |
+
"node_modules/estree-walker": {
|
696 |
+
"version": "3.0.3",
|
697 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
|
698 |
+
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
|
699 |
+
"peer": true,
|
700 |
+
"dependencies": {
|
701 |
+
"@types/estree": "^1.0.0"
|
702 |
+
}
|
703 |
+
},
|
704 |
+
"node_modules/event-emitter": {
|
705 |
+
"version": "0.3.5",
|
706 |
+
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
|
707 |
+
"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
|
708 |
+
"dependencies": {
|
709 |
+
"d": "1",
|
710 |
+
"es5-ext": "~0.10.14"
|
711 |
+
}
|
712 |
+
},
|
713 |
+
"node_modules/ext": {
|
714 |
+
"version": "1.7.0",
|
715 |
+
"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
|
716 |
+
"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
|
717 |
+
"dependencies": {
|
718 |
+
"type": "^2.7.2"
|
719 |
+
}
|
720 |
+
},
|
721 |
+
"node_modules/ext/node_modules/type": {
|
722 |
+
"version": "2.7.2",
|
723 |
+
"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
|
724 |
+
"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
|
725 |
+
},
|
726 |
+
"node_modules/globalyzer": {
|
727 |
+
"version": "0.1.0",
|
728 |
+
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
|
729 |
+
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
|
730 |
+
},
|
731 |
+
"node_modules/globrex": {
|
732 |
+
"version": "0.1.2",
|
733 |
+
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
734 |
+
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
|
735 |
+
},
|
736 |
+
"node_modules/intl-messageformat": {
|
737 |
+
"version": "9.13.0",
|
738 |
+
"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
|
739 |
+
"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
|
740 |
+
"dependencies": {
|
741 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
742 |
+
"@formatjs/fast-memoize": "1.2.1",
|
743 |
+
"@formatjs/icu-messageformat-parser": "2.1.0",
|
744 |
+
"tslib": "^2.1.0"
|
745 |
+
}
|
746 |
+
},
|
747 |
+
"node_modules/is-promise": {
|
748 |
+
"version": "2.2.2",
|
749 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
750 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
751 |
+
},
|
752 |
+
"node_modules/is-reference": {
|
753 |
+
"version": "3.0.2",
|
754 |
+
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",
|
755 |
+
"integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",
|
756 |
+
"peer": true,
|
757 |
+
"dependencies": {
|
758 |
+
"@types/estree": "*"
|
759 |
+
}
|
760 |
+
},
|
761 |
+
"node_modules/locate-character": {
|
762 |
+
"version": "3.0.0",
|
763 |
+
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
764 |
+
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
765 |
+
"peer": true
|
766 |
+
},
|
767 |
+
"node_modules/lru-queue": {
|
768 |
+
"version": "0.1.0",
|
769 |
+
"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
|
770 |
+
"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
|
771 |
+
"dependencies": {
|
772 |
+
"es5-ext": "~0.10.2"
|
773 |
+
}
|
774 |
+
},
|
775 |
+
"node_modules/magic-string": {
|
776 |
+
"version": "0.30.5",
|
777 |
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz",
|
778 |
+
"integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==",
|
779 |
+
"peer": true,
|
780 |
+
"dependencies": {
|
781 |
+
"@jridgewell/sourcemap-codec": "^1.4.15"
|
782 |
+
},
|
783 |
+
"engines": {
|
784 |
+
"node": ">=12"
|
785 |
+
}
|
786 |
+
},
|
787 |
+
"node_modules/mdn-data": {
|
788 |
+
"version": "2.0.30",
|
789 |
+
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
790 |
+
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
791 |
+
"peer": true
|
792 |
+
},
|
793 |
+
"node_modules/memoizee": {
|
794 |
+
"version": "0.4.15",
|
795 |
+
"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
|
796 |
+
"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
|
797 |
+
"dependencies": {
|
798 |
+
"d": "^1.0.1",
|
799 |
+
"es5-ext": "^0.10.53",
|
800 |
+
"es6-weak-map": "^2.0.3",
|
801 |
+
"event-emitter": "^0.3.5",
|
802 |
+
"is-promise": "^2.2.2",
|
803 |
+
"lru-queue": "^0.1.0",
|
804 |
+
"next-tick": "^1.1.0",
|
805 |
+
"timers-ext": "^0.1.7"
|
806 |
+
}
|
807 |
+
},
|
808 |
+
"node_modules/mri": {
|
809 |
+
"version": "1.2.0",
|
810 |
+
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
|
811 |
+
"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
|
812 |
+
"engines": {
|
813 |
+
"node": ">=4"
|
814 |
+
}
|
815 |
+
},
|
816 |
+
"node_modules/next-tick": {
|
817 |
+
"version": "1.1.0",
|
818 |
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
819 |
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
820 |
+
},
|
821 |
+
"node_modules/periscopic": {
|
822 |
+
"version": "3.1.0",
|
823 |
+
"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
|
824 |
+
"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
|
825 |
+
"peer": true,
|
826 |
+
"dependencies": {
|
827 |
+
"@types/estree": "^1.0.0",
|
828 |
+
"estree-walker": "^3.0.0",
|
829 |
+
"is-reference": "^3.0.0"
|
830 |
+
}
|
831 |
+
},
|
832 |
+
"node_modules/sade": {
|
833 |
+
"version": "1.8.1",
|
834 |
+
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
|
835 |
+
"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
836 |
+
"dependencies": {
|
837 |
+
"mri": "^1.1.0"
|
838 |
+
},
|
839 |
+
"engines": {
|
840 |
+
"node": ">=6"
|
841 |
+
}
|
842 |
+
},
|
843 |
+
"node_modules/source-map-js": {
|
844 |
+
"version": "1.0.2",
|
845 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
|
846 |
+
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
847 |
+
"peer": true,
|
848 |
+
"engines": {
|
849 |
+
"node": ">=0.10.0"
|
850 |
+
}
|
851 |
+
},
|
852 |
+
"node_modules/svelte": {
|
853 |
+
"version": "4.2.9",
|
854 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.9.tgz",
|
855 |
+
"integrity": "sha512-hsoB/WZGEPFXeRRLPhPrbRz67PhP6sqYgvwcAs+gWdSQSvNDw+/lTeUJSWe5h2xC97Fz/8QxAOqItwBzNJPU8w==",
|
856 |
+
"peer": true,
|
857 |
+
"dependencies": {
|
858 |
+
"@ampproject/remapping": "^2.2.1",
|
859 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
860 |
+
"@jridgewell/trace-mapping": "^0.3.18",
|
861 |
+
"@types/estree": "^1.0.1",
|
862 |
+
"acorn": "^8.9.0",
|
863 |
+
"aria-query": "^5.3.0",
|
864 |
+
"axobject-query": "^4.0.0",
|
865 |
+
"code-red": "^1.0.3",
|
866 |
+
"css-tree": "^2.3.1",
|
867 |
+
"estree-walker": "^3.0.3",
|
868 |
+
"is-reference": "^3.0.1",
|
869 |
+
"locate-character": "^3.0.0",
|
870 |
+
"magic-string": "^0.30.4",
|
871 |
+
"periscopic": "^3.1.0"
|
872 |
+
},
|
873 |
+
"engines": {
|
874 |
+
"node": ">=16"
|
875 |
+
}
|
876 |
+
},
|
877 |
+
"node_modules/svelte-i18n": {
|
878 |
+
"version": "3.7.4",
|
879 |
+
"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.4.tgz",
|
880 |
+
"integrity": "sha512-yGRCNo+eBT4cPuU7IVsYTYjxB7I2V8qgUZPlHnNctJj5IgbJgV78flsRzpjZ/8iUYZrS49oCt7uxlU3AZv/N5Q==",
|
881 |
+
"dependencies": {
|
882 |
+
"cli-color": "^2.0.3",
|
883 |
+
"deepmerge": "^4.2.2",
|
884 |
+
"esbuild": "^0.19.2",
|
885 |
+
"estree-walker": "^2",
|
886 |
+
"intl-messageformat": "^9.13.0",
|
887 |
+
"sade": "^1.8.1",
|
888 |
+
"tiny-glob": "^0.2.9"
|
889 |
+
},
|
890 |
+
"bin": {
|
891 |
+
"svelte-i18n": "dist/cli.js"
|
892 |
+
},
|
893 |
+
"engines": {
|
894 |
+
"node": ">= 16"
|
895 |
+
},
|
896 |
+
"peerDependencies": {
|
897 |
+
"svelte": "^3 || ^4"
|
898 |
+
}
|
899 |
+
},
|
900 |
+
"node_modules/svelte-i18n/node_modules/estree-walker": {
|
901 |
+
"version": "2.0.2",
|
902 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
903 |
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
904 |
+
},
|
905 |
+
"node_modules/timers-ext": {
|
906 |
+
"version": "0.1.7",
|
907 |
+
"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
|
908 |
+
"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
|
909 |
+
"dependencies": {
|
910 |
+
"es5-ext": "~0.10.46",
|
911 |
+
"next-tick": "1"
|
912 |
+
}
|
913 |
+
},
|
914 |
+
"node_modules/tiny-glob": {
|
915 |
+
"version": "0.2.9",
|
916 |
+
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
|
917 |
+
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
|
918 |
+
"dependencies": {
|
919 |
+
"globalyzer": "0.1.0",
|
920 |
+
"globrex": "^0.1.2"
|
921 |
+
}
|
922 |
+
},
|
923 |
+
"node_modules/tslib": {
|
924 |
+
"version": "2.6.2",
|
925 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
926 |
+
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
927 |
+
},
|
928 |
+
"node_modules/type": {
|
929 |
+
"version": "1.2.0",
|
930 |
+
"resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
|
931 |
+
"integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg=="
|
932 |
+
}
|
933 |
+
}
|
934 |
+
}
|
src/frontend/package.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_iframe",
|
3 |
+
"version": "0.1.3",
|
4 |
+
"description": "Gradio UI packages",
|
5 |
+
"type": "module",
|
6 |
+
"author": "",
|
7 |
+
"license": "ISC",
|
8 |
+
"private": false,
|
9 |
+
"main_changeset": true,
|
10 |
+
"dependencies": {
|
11 |
+
"@gradio/atoms": "0.3.0",
|
12 |
+
"@gradio/statustracker": "0.4.0",
|
13 |
+
"@gradio/utils": "0.2.0"
|
14 |
+
},
|
15 |
+
"exports": {
|
16 |
+
".": "./Index.svelte",
|
17 |
+
"./example": "./Example.svelte",
|
18 |
+
"./package.json": "./package.json"
|
19 |
+
}
|
20 |
+
}
|
src/frontend/shared/HTML.svelte
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import { createEventDispatcher } from "svelte";
|
3 |
+
export let elem_classes: string[] = [];
|
4 |
+
export let value: string;
|
5 |
+
export let visible = true;
|
6 |
+
export let min_height = false;
|
7 |
+
|
8 |
+
const dispatch = createEventDispatcher<{ change: undefined }>();
|
9 |
+
|
10 |
+
$: value, dispatch("change");
|
11 |
+
</script>
|
12 |
+
|
13 |
+
<div
|
14 |
+
class="prose {elem_classes.join(' ')}"
|
15 |
+
class:min={min_height}
|
16 |
+
class:hide={!visible}
|
17 |
+
>
|
18 |
+
<iframe title="iframe component" width="100%" height="100%" srcdoc={value} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
|
19 |
+
</div>
|
20 |
+
|
21 |
+
<style>
|
22 |
+
.min {
|
23 |
+
min-height: var(--size-24);
|
24 |
+
}
|
25 |
+
.hide {
|
26 |
+
display: none;
|
27 |
+
}
|
28 |
+
</style>
|
src/pyproject.toml
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[build-system]
|
2 |
+
requires = [
|
3 |
+
"hatchling",
|
4 |
+
"hatch-requirements-txt",
|
5 |
+
"hatch-fancy-pypi-readme>=22.5.0",
|
6 |
+
]
|
7 |
+
build-backend = "hatchling.build"
|
8 |
+
|
9 |
+
[project]
|
10 |
+
name = "gradio_iframe"
|
11 |
+
version = "0.0.2"
|
12 |
+
description = "Experimental empowered iFrame component based on existing HTML gradio component."
|
13 |
+
readme = "README.md"
|
14 |
+
license = "MIT"
|
15 |
+
requires-python = ">=3.8"
|
16 |
+
authors = [{ name = "Lennard Zündorf", email = "[email protected]" }]
|
17 |
+
keywords = ["gradio-custom-component", "gradio-template-HTML", "HTML", "iFrame"]
|
18 |
+
# Add dependencies here
|
19 |
+
dependencies = ["gradio>=4.0,<5.0"]
|
20 |
+
classifiers = [
|
21 |
+
'Development Status :: 3 - Alpha',
|
22 |
+
'License :: OSI Approved :: Apache Software License',
|
23 |
+
'Operating System :: OS Independent',
|
24 |
+
'Programming Language :: Python :: 3',
|
25 |
+
'Programming Language :: Python :: 3 :: Only',
|
26 |
+
'Programming Language :: Python :: 3.8',
|
27 |
+
'Programming Language :: Python :: 3.9',
|
28 |
+
'Programming Language :: Python :: 3.10',
|
29 |
+
'Programming Language :: Python :: 3.11',
|
30 |
+
'Topic :: Scientific/Engineering',
|
31 |
+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
32 |
+
'Topic :: Scientific/Engineering :: Visualization',
|
33 |
+
]
|
34 |
+
|
35 |
+
[project.optional-dependencies]
|
36 |
+
dev = ["build", "twine"]
|
37 |
+
|
38 |
+
[tool.hatch.build]
|
39 |
+
artifacts = ["/backend/gradio_iframe/templates", "*.pyi", "backend/gradio_iframe/templates", "home/lennard/.virtualenvs/thesis/lib/python3.11/site-packages/gradio_iframe/templates"]
|
40 |
+
|
41 |
+
[tool.hatch.build.targets.wheel]
|
42 |
+
packages = ["/backend/gradio_iframe"]
|