@w6w/ui 0.2.56 → 0.2.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/CallTargetForm.d.ts +10 -0
- package/dist/{CodeBlock-CymlfyeA.cjs → CodeBlock-BSX1pi6W.cjs} +2 -2
- package/dist/{CodeBlock-CymlfyeA.cjs.map → CodeBlock-BSX1pi6W.cjs.map} +1 -1
- package/dist/{CodeBlock-C-oIIYfC.js → CodeBlock-CPKXSNEs.js} +7 -3
- package/dist/{CodeBlock-C-oIIYfC.js.map → CodeBlock-CPKXSNEs.js.map} +1 -1
- package/dist/CodeEditor.d.ts +2 -0
- package/dist/JsonEditor.d.ts +1 -3
- package/dist/Markdown.d.ts +3 -1
- package/dist/StepBuilderModal.d.ts +2 -3
- package/dist/TriggerSampleButton.d.ts +11 -0
- package/dist/WorkflowFlowEditor.d.ts +48 -0
- package/dist/YamlEditor.d.ts +1 -2
- package/dist/callable-fields.d.ts +4 -0
- package/dist/code.cjs +1 -1
- package/dist/code.mjs +1 -1
- package/dist/components/ConfirmModal.d.ts +7 -1
- package/dist/components/DataEntryList.d.ts +2 -0
- package/dist/components/ResultViewer.d.ts +1 -2
- package/dist/connection-app-meta-BeYDm-cs.cjs +24 -0
- package/dist/connection-app-meta-BeYDm-cs.cjs.map +1 -0
- package/dist/{connection-app-meta-ZCPakGjD.js → connection-app-meta-aURFNTx_.js} +6115 -5806
- package/dist/connection-app-meta-aURFNTx_.js.map +1 -0
- package/dist/flow.cjs +4 -3
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.mjs +1820 -1753
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +306 -305
- package/dist/index.mjs.map +1 -1
- package/dist/provider.d.ts +3 -0
- package/package.json +2 -1
- package/src/code.css +24 -0
- package/src/styles/_code-editor.scss +16 -0
- package/src/styles/_copyable.scss +22 -0
- package/src/styles/_data-vars.scss +11 -0
- package/src/styles.css +54 -0
- package/dist/connection-app-meta-BEXlKBgV.cjs +0 -22
- package/dist/connection-app-meta-BEXlKBgV.cjs.map +0 -1
- package/dist/connection-app-meta-ZCPakGjD.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.57
|
|
4
|
+
|
|
5
|
+
- Use the app's sample event from the Run node modal.
|
|
6
|
+
- Choose the trigger and inputs on the Call node.
|
|
7
|
+
- Copy buttons stay visible across results, logs and editors.
|
|
8
|
+
- Keyboard focus stays in place through the node delete confirm.
|
|
9
|
+
- Expand a JSON variable into an editor modal; the row shows a one-line preview.
|
|
10
|
+
|
|
3
11
|
## 0.2.56
|
|
4
12
|
|
|
5
13
|
- Save pasted credentials with Save; switch OAuth connections to a key/token method while preserving workflow references. Remove the action tester footer divider.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Shared by the add flow and the saved call node's Setup / Configure tabs. */
|
|
2
|
+
export declare function CallTargetForm({ values, onChange, readOnly, setupOnly, onValidityChange, targetLabel, fixedTarget, }: {
|
|
3
|
+
values: Record<string, unknown>;
|
|
4
|
+
onChange: (values: Record<string, unknown>) => void;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
setupOnly?: boolean;
|
|
7
|
+
onValidityChange?: (valid: boolean) => void;
|
|
8
|
+
targetLabel?: string;
|
|
9
|
+
fixedTarget?: boolean;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -11,5 +11,5 @@ prismjs/prism.js:
|
|
|
11
11
|
* @namespace
|
|
12
12
|
* @public
|
|
13
13
|
*)
|
|
14
|
-
*/function Et(){const e=`w6w-py-eyes-${T.useId()}`;return t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"Python"}),t.jsxs("mask",{id:e,children:[t.jsx("rect",{x:"0",y:"0",width:"24",height:"24",fill:"white"}),t.jsx("circle",{cx:"9.1",cy:"5.2",r:"1",fill:"black"}),t.jsx("circle",{cx:"14.9",cy:"18.8",r:"1",fill:"black"})]}),t.jsxs("g",{mask:`url(#${e})`,fill:"currentColor",children:[t.jsx("path",{d:"M11.6 2.6c-3 0-4.9.7-4.9 2.6v2.2h5v.9H5.2C3.2 8.3 2 9.9 2 12v1.4c0 2 1.2 3.5 3.2 3.5h1.6v-2.5c0-2 1.6-3.6 3.6-3.6h4.3c1.6 0 2.9-1.3 2.9-2.9V5.2c0-1.8-1.8-2.6-4.8-2.6z"}),t.jsx("path",{d:"M12.4 21.4c3 0 4.9-.7 4.9-2.6v-2.2h-5v-.9h6.5c2 0 3.2-1.6 3.2-3.6v-1.4c0-2-1.2-3.5-3.2-3.5h-1.6v2.5c0 2-1.6 3.6-3.6 3.6H9.3c-1.6 0-2.9 1.3-2.9 2.9v3.3c0 1.8 1.8 2.6 4.8 2.6z"})]})]})}const ue={edit:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M12 20h9"}),t.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"})]})},"edit-2":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})})},delete:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"3 6 5 6 21 6"}),t.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),t.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),t.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})},copy:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),t.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})},check:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polyline",{points:"20 6 9 17 4 12"})})},close:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},info:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})},history:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58l-3.12-3.11zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6l2.72 4.08zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18l-4.69 7.4z"})})},clock:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9"}),t.jsx("polyline",{points:"12 7 12 12 15.5 14"})]})},json:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M8 3c-1.5 0-2 .8-2 2v3c0 1-.5 1.5-2 1.5v1c1.5 0 2 .5 2 1.5v3c0 1.2.5 2 2 2"}),t.jsx("path",{d:"M16 3c1.5 0 2 .8 2 2v3c0 1 .5 1.5 2 1.5v1c-1.5 0-2 .5-2 1.5v3c0 1.2-.5 2-2 2"})]})},code:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"16 18 22 12 16 6"}),t.jsx("polyline",{points:"8 6 2 12 8 18"})]})},sync:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"23 4 23 10 17 10"}),t.jsx("polyline",{points:"1 20 1 14 7 14"}),t.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]})},"cloud-download":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M8 17l4 4 4-4"}),t.jsx("path",{d:"M12 12v9"}),t.jsx("path",{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"})]})},eye:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z"}),t.jsx("circle",{cx:"12",cy:"12",r:"3"})]})},play:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})},stop:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("rect",{x:"5",y:"5",width:"14",height:"14",rx:"1"})})},warning:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})},"file-text":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),t.jsx("polyline",{points:"14 2 14 8 20 8"}),t.jsx("line",{x1:"8",y1:"13",x2:"16",y2:"13"}),t.jsx("line",{x1:"8",y1:"17",x2:"16",y2:"17"})]})},settings:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M10.09 2.18h3.82l-.47 2.76 2.53 1.06 1.62-2.29 2.7 2.7-2.29 1.62 1.06 2.53 2.76-.47v3.82l-2.76-.47-1.06 2.53 2.29 1.62-2.7 2.7-1.62-2.29-2.53 1.06.47 2.76h-3.82l.47-2.76-2.53-1.06-1.62 2.29-2.7-2.7 2.29-1.62-1.06-2.53-2.76.47v-3.82l2.76.47 1.06-2.53-2.29-1.62 2.7-2.7 1.62 2.29 2.53-1.06-.47-2.76ZM12 8.8a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4Z"})})},github:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 0 0 7.86 10.92c.58.11.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.78 2.72 1.26 3.38.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.51-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.2-1.49 3.17-1.18 3.17-1.18.62 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.15v3.18c0 .31.21.68.8.56A11.5 11.5 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z"})})},bot:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M11 2h2v2h4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h4V2ZM9 9.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM8 15v1.5h8V15H8ZM2 10h1v5H2v-5Zm19 0h1v5h-1v-5Z"})})},user:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z"})})},users:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4 0-7 2-7 4.5V20h14v-1.5C16 16 13 14 9 14Zm8.5-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 2c-.7 0-1.36.1-1.96.3 1.2.98 1.96 2.4 1.96 4.2V20h5v-1.5c0-2.2-2.4-4-5-4Z"})})},logout:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M4 3h9v2H6v14h7v2H4V3Zm10.3 4.3 1.4-1.4L21.8 12l-6.1 6.1-1.4-1.4 3.7-3.7H9v-2h9l-3.7-3.7Z"})})},"id-card":{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm3 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-3 8c0-2 2-3 3-3s3 1 3 3H4Zm10-8h6v2h-6V8Zm0 4h6v2h-6v-2Z"})})},dashboard:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M3 3h8v6H3V3Zm0 8h8v10H3V11Zm10 4h8v6h-8v-6Zm0-12h8v10h-8V3Z"})})},pulse:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M2 11h4.4l2-5 3.4 12 3-9 1.8 2H22v2h-6.4l-1-1.2-3.4 10.2-3.4-12-1 3H2v-2Z"})})},workflow:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M2 3h7v7H2V3Zm13 0h7v7h-7V3ZM9 5.5h6v2H9v-2ZM15 15h7v7h-7v-7Zm2.5-5h2v5h-2v-5Z"})})},globe:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:1.75,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9"}),t.jsx("path",{d:"M3 12h18"}),t.jsx("path",{d:"M12 3c2.4 2.4 3.8 5.8 3.8 9s-1.4 6.6-3.8 9c-2.4-2.4-3.8-5.8-3.8-9s1.4-6.6 3.8-9Z"})]})},lambda:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M14 3a3 3 0 0 0-3 3v3H8v2h3v4a1 1 0 0 1-1 1H8v2h2a3 3 0 0 0 3-3v-4h3V9h-3V6a1 1 0 0 1 1-1h2V3h-2Z"})})},sliders:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:1.75,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M3 6h9M17 6h4M3 12h4M11 12h10M3 18h13M20 18h1"}),t.jsx("circle",{cx:"13",cy:"6",r:"2.25",fill:"currentColor",stroke:"none"}),t.jsx("circle",{cx:"7.5",cy:"12",r:"2.25",fill:"currentColor",stroke:"none"}),t.jsx("circle",{cx:"16.5",cy:"18",r:"2.25",fill:"currentColor",stroke:"none"})]})},file:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm7 1.5V7h3.5L13 3.5ZM8 12h8v2H8v-2Zm0 4h8v2H8v-2Z"})})},plug:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M8 2h2v4H8V2Zm6 0h2v4h-2V2ZM6 6h12v4a4 4 0 0 1-4 4h-1v5h-2v-5h-1a4 4 0 0 1-4-4V6Z"})})},grid:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M3 3h8v8H3V3Zm10 0h8v8h-8V3ZM3 13h8v8H3v-8Zm10 0h8v8h-8v-8Z"})})},folder:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M3 5a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2 2v10h14V7H5Z"})})},"git-branch":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),t.jsx("circle",{cx:"18",cy:"6",r:"3"}),t.jsx("circle",{cx:"6",cy:"18",r:"3"}),t.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]})},coin:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12Zm0 3.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z"})})},building:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M5 21V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v17h4v2H3v-2h2Zm2-15v2h2V6H7Zm0 4v2h2v-2H7Zm0 4v2h2v-2H7Zm4-8v2h2V6h-2Zm0 4v2h2v-2h-2Zm0 4v2h2v-2h-2Z"})})},server:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M4 4h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM4 13h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"})})},"price-tag":{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12.41 2H4a2 2 0 0 0-2 2v8.41a2 2 0 0 0 .59 1.41l9 9a2 2 0 0 0 2.82 0l7.59-7.59a2 2 0 0 0 0-2.82l-9-9A2 2 0 0 0 12.41 2ZM7 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4.5 8.5-1-1L15 11l1 1-4.5 4.5Z"})})},"lang-node":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"Node"}),t.jsx("path",{d:"M12 2.4 20.4 7.2v9.6L12 21.6 3.6 16.8V7.2z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),t.jsx("path",{d:"M9.4 15.4V8.9l5.2 6.2V8.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})},terminal:{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"CLI"}),t.jsx("rect",{x:"2.6",y:"4.4",width:"18.8",height:"15.2",rx:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),t.jsx("polyline",{points:"6.8 9.6 9.8 12 6.8 14.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"12.4",y1:"15",x2:"17",y2:"15",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})},"lang-python":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsx(Et,{})},"lang-curl":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"curl"}),t.jsx("path",{d:"M3 15.5c2.4 0 3.6-2.2 5.1-4.6C9.8 8.2 11.3 5.5 14 5.5c2.6 0 4 2 4 4.2 0 2.1-1.4 3.6-3.2 3.6-1.5 0-2.5-1-2.5-2.2 0-1.1.8-1.9 1.8-1.9",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"}),t.jsx("circle",{cx:"4.4",cy:"18.6",r:"1.5",fill:"currentColor"}),t.jsx("circle",{cx:"20",cy:"18.6",r:"1.5",fill:"currentColor"}),t.jsx("line",{x1:"7.4",y1:"18.6",x2:"17",y2:"18.6",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeDasharray:"0.1 3.6"})]})},sun:{viewBox:"0 0 24 24",variant:"stroke",body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"5"}),t.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),t.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),t.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),t.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),t.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),t.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),t.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),t.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})},moon:{viewBox:"0 0 24 24",variant:"stroke",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79Z"})})},"circle-half":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"2"}),t.jsx("path",{d:"M12 3a9 9 0 0 1 0 18V3Z",fill:"currentColor"})]})},layout:{viewBox:"0 0 24 24",variant:"mixed",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M9 3h6v6H9zM11 9h2v2h-2zM4 11h16v2H4zM4 13h2v2H4zM18 13h2v2h-2zM2 15h6v6H2zM16 15h6v6h-6z"})})},run:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polygon",{points:"6 4 20 12 6 20 6 4"})})},pause:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),t.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})},ban:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"})]})},trash:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"3 6 5 6 21 6"}),t.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})},maximize:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"15 3 21 3 21 9"}),t.jsx("polyline",{points:"9 21 3 21 3 15"}),t.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),t.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})},form:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),t.jsx("line",{x1:"7",y1:"8",x2:"17",y2:"8"}),t.jsx("line",{x1:"7",y1:"12",x2:"17",y2:"12"}),t.jsx("line",{x1:"7",y1:"16",x2:"13",y2:"16"})]})},braces:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"9 4 7 4 7 10 5 12 7 14 7 20 9 20"}),t.jsx("polyline",{points:"15 4 17 4 17 10 19 12 17 14 17 20 15 20"})]})},"settings-2":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"3"}),t.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},"sticky-note":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z"}),t.jsx("path",{d:"M15 3v4a2 2 0 0 0 2 2h4"})]})},frame:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"22",y1:"6",x2:"2",y2:"6"}),t.jsx("line",{x1:"22",y1:"18",x2:"2",y2:"18"}),t.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"22"}),t.jsx("line",{x1:"18",y1:"2",x2:"18",y2:"22"})]})},bold:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2.5,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"}),t.jsx("path",{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"})]})},grip:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"9",cy:"12",r:"1"}),t.jsx("circle",{cx:"9",cy:"5",r:"1"}),t.jsx("circle",{cx:"9",cy:"19",r:"1"}),t.jsx("circle",{cx:"15",cy:"12",r:"1"}),t.jsx("circle",{cx:"15",cy:"5",r:"1"}),t.jsx("circle",{cx:"15",cy:"19",r:"1"})]})},"chevron-down":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})},database:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),t.jsx("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),t.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})]})}},At=Object.keys(ue);function Ft(e){return e.variant==="fill"?{fill:"currentColor"}:e.variant==="stroke"?{fill:"none",stroke:"currentColor",strokeWidth:e.strokeWidth??2,strokeLinecap:"round",strokeLinejoin:"round"}:{}}function X(e){const{name:a,size:r=16,label:i,className:u}=e,x=ue[a],p=!!i;return t.jsx("svg",{className:["w6w-icon",u??""].filter(Boolean).join(" "),width:r,height:r,viewBox:x.viewBox,...Ft(x),role:p?"img":void 0,"aria-label":p?i:void 0,"aria-hidden":p?void 0:"true",focusable:p?void 0:"false",children:x.body})}const pe=1500;function de(e,a=pe){const[r,i]=T.useState(!1),u=T.useRef(null);T.useEffect(()=>()=>{u.current!==null&&clearTimeout(u.current)},[]);const x=T.useCallback(async()=>{var p;try{await((p=navigator.clipboard)==null?void 0:p.writeText(e)),i(!0),u.current!==null&&clearTimeout(u.current),u.current=setTimeout(()=>i(!1),a)}catch{}},[e,a]);return{copied:r,copy:x}}function ge(){return t.jsx(X,{name:"copy",size:14})}function ye(){return t.jsx(X,{name:"check",size:14})}function fe(e){const{value:a,copiedMs:r=pe,readOnly:i=!1,label:u="Copy",className:x,children:p}=e,{copied:m,copy:g}=de(a,r),f=T.useRef(null),h=T.useCallback(()=>{var v;const d=(v=f.current)==null?void 0:v.querySelector("input, textarea");d==null||d.select()},[]);return T.useEffect(()=>{if(!i)return;const d=f.current;if(!d)return;const v=w=>{var l;const n=w.target;if((l=n==null?void 0:n.closest)!=null&&l.call(n,"button"))return;const o=window.getSelection();o&&!o.isCollapsed&&d.contains(o.anchorNode)||(g(),h())};return d.addEventListener("click",v),()=>d.removeEventListener("click",v)},[i,g,h]),t.jsxs("div",{ref:f,className:["w6w-copyable",x??""].filter(Boolean).join(" "),children:[p,t.jsx("button",{type:"button",className:`w6w-icon-btn w6w-copyable-btn${m?" is-copied":""}`,"aria-label":u,onClick:()=>void g(),children:m?t.jsx(ye,{}):t.jsx(ge,{})}),t.jsx("span",{className:"w6w-copyable-status","aria-live":"polite",children:m?"Copied":""})]})}const jt={comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},continuation:{pattern:/\\$/m,alias:"punctuation"},string:[{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0}],variable:/\$(?:\{[^}]*\}|[A-Za-z_]\w*)/,parameter:{pattern:/(^|\s)--?[\w-]+/,lookbehind:!0,alias:"keyword"},function:{pattern:/(^|[|&;]\s*)[\w./-]+/m,lookbehind:!0},operator:/\|\||&&|[|&;<>]/,punctuation:/[{}[\]()]/};s.languages.shell||(s.languages.shell=jt,s.languages.bash=s.languages.shell,s.languages.sh=s.languages.shell);const St={plain:{color:"var(--w6w-text)",backgroundColor:"transparent"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"var(--w6w-code-comment)",fontStyle:"italic"}},{types:["punctuation","continuation"],style:{color:"var(--w6w-code-punctuation)"}},{types:["property","tag","constant","symbol","deleted"],style:{color:"var(--w6w-code-keyword)"}},{types:["boolean","number"],style:{color:"var(--w6w-code-number)"}},{types:["selector","attr-name","string","char","builtin","inserted"],style:{color:"var(--w6w-code-string)"}},{types:["operator","entity","url","variable"],style:{color:"var(--w6w-code-variable)"}},{types:["atrule","attr-value","keyword","parameter"],style:{color:"var(--w6w-code-keyword)"}},{types:["function","class-name"],style:{color:"var(--w6w-code-function)"}},{types:["regex","important"],style:{color:"var(--w6w-code-number)"}}]};function _t(e){const{code:a,language:r="plaintext",wrap:i,showLineNumbers:u,maxHeight:x,className:p,copyable:m=!0,copiedMs:g}=e,f=a.replace(/\n+$/,"");return t.jsx(wt,{theme:St,code:f,language:r,children:({className:h,style:d,tokens:v,getLineProps:w,getTokenProps:n})=>{const o=t.jsx("pre",{className:["w6w-code-block",i?"w6w-code-block--wrap":"",u?"w6w-code-block--numbered":"",h,p??""].filter(Boolean).join(" "),style:{...d,...x?{maxHeight:x,overflowY:"auto"}:null},"aria-label":e["aria-label"]??`${r} code`,children:t.jsx("code",{children:(()=>{let l=0;return v.map((y,c)=>{const b=w({line:y}),k=`w6w-code-line ${b.className??""}`,E=`L${l}`;let F=l;const A=y.map((j,S)=>{const I=n({token:j}),L=`T${F}-${S}`;return F+=j.content.length,T.createElement("span",{...I,key:L})});return l=F+1,T.createElement("span",{...b,key:E,className:k},u&&t.jsx("span",{className:"w6w-code-line-no","aria-hidden":"true",children:c+1}),t.jsx("span",{className:"w6w-code-line-text",children:A}))})})()})});return m?t.jsx(fe,{value:f,copiedMs:g,readOnly:!0,children:o}):o}})}exports.CheckGlyph=ye;exports.CodeBlock=_t;exports.CopyGlyph=ge;exports.Copyable=fe;exports.Icon=X;exports.iconNames=At;exports.useCopyToClipboard=de;
|
|
15
|
-
//# sourceMappingURL=CodeBlock-
|
|
14
|
+
*/function Et(){const e=`w6w-py-eyes-${T.useId()}`;return t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"Python"}),t.jsxs("mask",{id:e,children:[t.jsx("rect",{x:"0",y:"0",width:"24",height:"24",fill:"white"}),t.jsx("circle",{cx:"9.1",cy:"5.2",r:"1",fill:"black"}),t.jsx("circle",{cx:"14.9",cy:"18.8",r:"1",fill:"black"})]}),t.jsxs("g",{mask:`url(#${e})`,fill:"currentColor",children:[t.jsx("path",{d:"M11.6 2.6c-3 0-4.9.7-4.9 2.6v2.2h5v.9H5.2C3.2 8.3 2 9.9 2 12v1.4c0 2 1.2 3.5 3.2 3.5h1.6v-2.5c0-2 1.6-3.6 3.6-3.6h4.3c1.6 0 2.9-1.3 2.9-2.9V5.2c0-1.8-1.8-2.6-4.8-2.6z"}),t.jsx("path",{d:"M12.4 21.4c3 0 4.9-.7 4.9-2.6v-2.2h-5v-.9h6.5c2 0 3.2-1.6 3.2-3.6v-1.4c0-2-1.2-3.5-3.2-3.5h-1.6v2.5c0 2-1.6 3.6-3.6 3.6H9.3c-1.6 0-2.9 1.3-2.9 2.9v3.3c0 1.8 1.8 2.6 4.8 2.6z"})]})]})}const ue={edit:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M12 20h9"}),t.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"})]})},"edit-2":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})})},delete:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"3 6 5 6 21 6"}),t.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),t.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),t.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})},copy:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),t.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})},check:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polyline",{points:"20 6 9 17 4 12"})})},close:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})},info:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),t.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})},history:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58l-3.12-3.11zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6l2.72 4.08zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18l-4.69 7.4z"})})},clock:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9"}),t.jsx("polyline",{points:"12 7 12 12 15.5 14"})]})},json:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M8 3c-1.5 0-2 .8-2 2v3c0 1-.5 1.5-2 1.5v1c1.5 0 2 .5 2 1.5v3c0 1.2.5 2 2 2"}),t.jsx("path",{d:"M16 3c1.5 0 2 .8 2 2v3c0 1 .5 1.5 2 1.5v1c-1.5 0-2 .5-2 1.5v3c0 1.2-.5 2-2 2"})]})},code:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"16 18 22 12 16 6"}),t.jsx("polyline",{points:"8 6 2 12 8 18"})]})},sync:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"23 4 23 10 17 10"}),t.jsx("polyline",{points:"1 20 1 14 7 14"}),t.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]})},"cloud-download":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M8 17l4 4 4-4"}),t.jsx("path",{d:"M12 12v9"}),t.jsx("path",{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"})]})},eye:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z"}),t.jsx("circle",{cx:"12",cy:"12",r:"3"})]})},play:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})},stop:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("rect",{x:"5",y:"5",width:"14",height:"14",rx:"1"})})},warning:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),t.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),t.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})},"file-text":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),t.jsx("polyline",{points:"14 2 14 8 20 8"}),t.jsx("line",{x1:"8",y1:"13",x2:"16",y2:"13"}),t.jsx("line",{x1:"8",y1:"17",x2:"16",y2:"17"})]})},settings:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M10.09 2.18h3.82l-.47 2.76 2.53 1.06 1.62-2.29 2.7 2.7-2.29 1.62 1.06 2.53 2.76-.47v3.82l-2.76-.47-1.06 2.53 2.29 1.62-2.7 2.7-1.62-2.29-2.53 1.06.47 2.76h-3.82l.47-2.76-2.53-1.06-1.62 2.29-2.7-2.7 2.29-1.62-1.06-2.53-2.76.47v-3.82l2.76.47 1.06-2.53-2.29-1.62 2.7-2.7 1.62 2.29 2.53-1.06-.47-2.76ZM12 8.8a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4Z"})})},github:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 0 0 7.86 10.92c.58.11.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.78 2.72 1.26 3.38.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.51-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.2-1.49 3.17-1.18 3.17-1.18.62 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.15v3.18c0 .31.21.68.8.56A11.5 11.5 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z"})})},bot:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M11 2h2v2h4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h4V2ZM9 9.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM8 15v1.5h8V15H8ZM2 10h1v5H2v-5Zm19 0h1v5h-1v-5Z"})})},user:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z"})})},users:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4 0-7 2-7 4.5V20h14v-1.5C16 16 13 14 9 14Zm8.5-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 2c-.7 0-1.36.1-1.96.3 1.2.98 1.96 2.4 1.96 4.2V20h5v-1.5c0-2.2-2.4-4-5-4Z"})})},logout:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M4 3h9v2H6v14h7v2H4V3Zm10.3 4.3 1.4-1.4L21.8 12l-6.1 6.1-1.4-1.4 3.7-3.7H9v-2h9l-3.7-3.7Z"})})},"id-card":{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm3 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-3 8c0-2 2-3 3-3s3 1 3 3H4Zm10-8h6v2h-6V8Zm0 4h6v2h-6v-2Z"})})},dashboard:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M3 3h8v6H3V3Zm0 8h8v10H3V11Zm10 4h8v6h-8v-6Zm0-12h8v10h-8V3Z"})})},pulse:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M2 11h4.4l2-5 3.4 12 3-9 1.8 2H22v2h-6.4l-1-1.2-3.4 10.2-3.4-12-1 3H2v-2Z"})})},workflow:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M2 3h7v7H2V3Zm13 0h7v7h-7V3ZM9 5.5h6v2H9v-2ZM15 15h7v7h-7v-7Zm2.5-5h2v5h-2v-5Z"})})},globe:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:1.75,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9"}),t.jsx("path",{d:"M3 12h18"}),t.jsx("path",{d:"M12 3c2.4 2.4 3.8 5.8 3.8 9s-1.4 6.6-3.8 9c-2.4-2.4-3.8-5.8-3.8-9s1.4-6.6 3.8-9Z"})]})},lambda:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M14 3a3 3 0 0 0-3 3v3H8v2h3v4a1 1 0 0 1-1 1H8v2h2a3 3 0 0 0 3-3v-4h3V9h-3V6a1 1 0 0 1 1-1h2V3h-2Z"})})},sliders:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:1.75,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M3 6h9M17 6h4M3 12h4M11 12h10M3 18h13M20 18h1"}),t.jsx("circle",{cx:"13",cy:"6",r:"2.25",fill:"currentColor",stroke:"none"}),t.jsx("circle",{cx:"7.5",cy:"12",r:"2.25",fill:"currentColor",stroke:"none"}),t.jsx("circle",{cx:"16.5",cy:"18",r:"2.25",fill:"currentColor",stroke:"none"})]})},file:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm7 1.5V7h3.5L13 3.5ZM8 12h8v2H8v-2Zm0 4h8v2H8v-2Z"})})},plug:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M8 2h2v4H8V2Zm6 0h2v4h-2V2ZM6 6h12v4a4 4 0 0 1-4 4h-1v5h-2v-5h-1a4 4 0 0 1-4-4V6Z"})})},grid:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M3 3h8v8H3V3Zm10 0h8v8h-8V3ZM3 13h8v8H3v-8Zm10 0h8v8h-8v-8Z"})})},folder:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M3 5a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2 2v10h14V7H5Z"})})},"git-branch":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),t.jsx("circle",{cx:"18",cy:"6",r:"3"}),t.jsx("circle",{cx:"6",cy:"18",r:"3"}),t.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]})},coin:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12Zm0 3.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z"})})},building:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M5 21V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v17h4v2H3v-2h2Zm2-15v2h2V6H7Zm0 4v2h2v-2H7Zm0 4v2h2v-2H7Zm4-8v2h2V6h-2Zm0 4v2h2v-2h-2Zm0 4v2h2v-2h-2Z"})})},server:{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M4 4h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM4 13h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"})})},"price-tag":{viewBox:"0 0 24 24",variant:"fill",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M12.41 2H4a2 2 0 0 0-2 2v8.41a2 2 0 0 0 .59 1.41l9 9a2 2 0 0 0 2.82 0l7.59-7.59a2 2 0 0 0 0-2.82l-9-9A2 2 0 0 0 12.41 2ZM7 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4.5 8.5-1-1L15 11l1 1-4.5 4.5Z"})})},"lang-node":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"Node"}),t.jsx("path",{d:"M12 2.4 20.4 7.2v9.6L12 21.6 3.6 16.8V7.2z",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinejoin:"round"}),t.jsx("path",{d:"M9.4 15.4V8.9l5.2 6.2V8.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})},terminal:{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"CLI"}),t.jsx("rect",{x:"2.6",y:"4.4",width:"18.8",height:"15.2",rx:"2.2",fill:"none",stroke:"currentColor",strokeWidth:"1.6"}),t.jsx("polyline",{points:"6.8 9.6 9.8 12 6.8 14.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("line",{x1:"12.4",y1:"15",x2:"17",y2:"15",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})},"lang-python":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsx(Et,{})},"lang-curl":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("title",{children:"curl"}),t.jsx("path",{d:"M3 15.5c2.4 0 3.6-2.2 5.1-4.6C9.8 8.2 11.3 5.5 14 5.5c2.6 0 4 2 4 4.2 0 2.1-1.4 3.6-3.2 3.6-1.5 0-2.5-1-2.5-2.2 0-1.1.8-1.9 1.8-1.9",fill:"none",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"}),t.jsx("circle",{cx:"4.4",cy:"18.6",r:"1.5",fill:"currentColor"}),t.jsx("circle",{cx:"20",cy:"18.6",r:"1.5",fill:"currentColor"}),t.jsx("line",{x1:"7.4",y1:"18.6",x2:"17",y2:"18.6",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeDasharray:"0.1 3.6"})]})},sun:{viewBox:"0 0 24 24",variant:"stroke",body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"5"}),t.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),t.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),t.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),t.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),t.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),t.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),t.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),t.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})},moon:{viewBox:"0 0 24 24",variant:"stroke",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79Z"})})},"circle-half":{viewBox:"0 0 24 24",variant:"mixed",body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"2"}),t.jsx("path",{d:"M12 3a9 9 0 0 1 0 18V3Z",fill:"currentColor"})]})},layout:{viewBox:"0 0 24 24",variant:"mixed",body:t.jsx(t.Fragment,{children:t.jsx("path",{d:"M9 3h6v6H9zM11 9h2v2h-2zM4 11h16v2H4zM4 13h2v2H4zM18 13h2v2h-2zM2 15h6v6H2zM16 15h6v6h-6z"})})},run:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polygon",{points:"6 4 20 12 6 20 6 4"})})},pause:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"6",y:"4",width:"4",height:"16"}),t.jsx("rect",{x:"14",y:"4",width:"4",height:"16"})]})},ban:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"10"}),t.jsx("line",{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"})]})},trash:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"3 6 5 6 21 6"}),t.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]})},maximize:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"15 3 21 3 21 9"}),t.jsx("polyline",{points:"9 21 3 21 3 15"}),t.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),t.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})},form:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),t.jsx("line",{x1:"7",y1:"8",x2:"17",y2:"8"}),t.jsx("line",{x1:"7",y1:"12",x2:"17",y2:"12"}),t.jsx("line",{x1:"7",y1:"16",x2:"13",y2:"16"})]})},braces:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("polyline",{points:"9 4 7 4 7 10 5 12 7 14 7 20 9 20"}),t.jsx("polyline",{points:"15 4 17 4 17 10 19 12 17 14 17 20 15 20"})]})},"settings-2":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"12",cy:"12",r:"3"}),t.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},"sticky-note":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z"}),t.jsx("path",{d:"M15 3v4a2 2 0 0 0 2 2h4"})]})},frame:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:"22",y1:"6",x2:"2",y2:"6"}),t.jsx("line",{x1:"22",y1:"18",x2:"2",y2:"18"}),t.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"22"}),t.jsx("line",{x1:"18",y1:"2",x2:"18",y2:"22"})]})},bold:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2.5,body:t.jsxs(t.Fragment,{children:[t.jsx("path",{d:"M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"}),t.jsx("path",{d:"M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"})]})},grip:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("circle",{cx:"9",cy:"12",r:"1"}),t.jsx("circle",{cx:"9",cy:"5",r:"1"}),t.jsx("circle",{cx:"9",cy:"19",r:"1"}),t.jsx("circle",{cx:"15",cy:"12",r:"1"}),t.jsx("circle",{cx:"15",cy:"5",r:"1"}),t.jsx("circle",{cx:"15",cy:"19",r:"1"})]})},"chevron-down":{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsx(t.Fragment,{children:t.jsx("polyline",{points:"6 9 12 15 18 9"})})},database:{viewBox:"0 0 24 24",variant:"stroke",strokeWidth:2,body:t.jsxs(t.Fragment,{children:[t.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),t.jsx("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),t.jsx("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"})]})}},At=Object.keys(ue);function Ft(e){return e.variant==="fill"?{fill:"currentColor"}:e.variant==="stroke"?{fill:"none",stroke:"currentColor",strokeWidth:e.strokeWidth??2,strokeLinecap:"round",strokeLinejoin:"round"}:{}}function X(e){const{name:a,size:r=16,label:i,className:u}=e,x=ue[a],p=!!i;return t.jsx("svg",{className:["w6w-icon",u??""].filter(Boolean).join(" "),width:r,height:r,viewBox:x.viewBox,...Ft(x),role:p?"img":void 0,"aria-label":p?i:void 0,"aria-hidden":p?void 0:"true",focusable:p?void 0:"false",children:x.body})}const pe=1500;function de(e,a=pe){const[r,i]=T.useState(!1),u=T.useRef(null);T.useEffect(()=>()=>{u.current!==null&&clearTimeout(u.current)},[]);const x=T.useCallback(async()=>{var p;try{if(!((p=navigator.clipboard)!=null&&p.writeText))return;await navigator.clipboard.writeText(e),i(!0),u.current!==null&&clearTimeout(u.current),u.current=setTimeout(()=>i(!1),a)}catch{}},[e,a]);return{copied:r,copy:x}}function ge(){return t.jsx(X,{name:"copy",size:14})}function ye(){return t.jsx(X,{name:"check",size:14})}function fe(e){const{value:a,copiedMs:r=pe,readOnly:i=!1,label:u="Copy",className:x,children:p}=e,{copied:m,copy:g}=de(a,r),f=T.useRef(null),h=T.useCallback(()=>{var v;const d=(v=f.current)==null?void 0:v.querySelector("input, textarea");d==null||d.select()},[]);return T.useEffect(()=>{if(!i)return;const d=f.current;if(!d)return;const v=w=>{var l;const n=w.target;if((l=n==null?void 0:n.closest)!=null&&l.call(n,"button"))return;const o=window.getSelection();o&&!o.isCollapsed&&d.contains(o.anchorNode)||(g(),h())};return d.addEventListener("click",v),()=>d.removeEventListener("click",v)},[i,g,h]),t.jsxs("div",{ref:f,className:["w6w-copyable",x??""].filter(Boolean).join(" "),children:[p,t.jsx("button",{type:"button",className:`w6w-icon-btn w6w-copyable-btn${m?" is-copied":""}`,"aria-label":u,onPointerDown:d=>d.stopPropagation(),onClick:d=>{d.stopPropagation(),g()},children:m?t.jsx(ye,{}):t.jsx(ge,{})}),t.jsx("span",{className:"w6w-copyable-status","aria-live":"polite",children:m?"Copied":""})]})}const jt={comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},continuation:{pattern:/\\$/m,alias:"punctuation"},string:[{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0}],variable:/\$(?:\{[^}]*\}|[A-Za-z_]\w*)/,parameter:{pattern:/(^|\s)--?[\w-]+/,lookbehind:!0,alias:"keyword"},function:{pattern:/(^|[|&;]\s*)[\w./-]+/m,lookbehind:!0},operator:/\|\||&&|[|&;<>]/,punctuation:/[{}[\]()]/};s.languages.shell||(s.languages.shell=jt,s.languages.bash=s.languages.shell,s.languages.sh=s.languages.shell);const St={plain:{color:"var(--w6w-text)",backgroundColor:"transparent"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"var(--w6w-code-comment)",fontStyle:"italic"}},{types:["punctuation","continuation"],style:{color:"var(--w6w-code-punctuation)"}},{types:["property","tag","constant","symbol","deleted"],style:{color:"var(--w6w-code-keyword)"}},{types:["boolean","number"],style:{color:"var(--w6w-code-number)"}},{types:["selector","attr-name","string","char","builtin","inserted"],style:{color:"var(--w6w-code-string)"}},{types:["operator","entity","url","variable"],style:{color:"var(--w6w-code-variable)"}},{types:["atrule","attr-value","keyword","parameter"],style:{color:"var(--w6w-code-keyword)"}},{types:["function","class-name"],style:{color:"var(--w6w-code-function)"}},{types:["regex","important"],style:{color:"var(--w6w-code-number)"}}]};function _t(e){const{code:a,language:r="plaintext",wrap:i,showLineNumbers:u,maxHeight:x,className:p,copyable:m=!0,copiedMs:g}=e,f=a.replace(/\n+$/,"");return t.jsx(wt,{theme:St,code:f,language:r,children:({className:h,style:d,tokens:v,getLineProps:w,getTokenProps:n})=>{const o=t.jsx("pre",{className:["w6w-code-block",i?"w6w-code-block--wrap":"",u?"w6w-code-block--numbered":"",h,p??""].filter(Boolean).join(" "),style:{...d,...x?{maxHeight:x,overflowY:"auto"}:null},"aria-label":e["aria-label"]??`${r} code`,children:t.jsx("code",{children:(()=>{let l=0;return v.map((y,c)=>{const b=w({line:y}),k=`w6w-code-line ${b.className??""}`,E=`L${l}`;let F=l;const A=y.map((j,S)=>{const I=n({token:j}),L=`T${F}-${S}`;return F+=j.content.length,T.createElement("span",{...I,key:L})});return l=F+1,T.createElement("span",{...b,key:E,className:k},u&&t.jsx("span",{className:"w6w-code-line-no","aria-hidden":"true",children:c+1}),t.jsx("span",{className:"w6w-code-line-text",children:A}))})})()})});return m?t.jsx(fe,{value:f,copiedMs:g,readOnly:!0,children:o}):o}})}exports.CheckGlyph=ye;exports.CodeBlock=_t;exports.CopyGlyph=ge;exports.Copyable=fe;exports.Icon=X;exports.iconNames=At;exports.useCopyToClipboard=de;
|
|
15
|
+
//# sourceMappingURL=CodeBlock-BSX1pi6W.cjs.map
|