tanya-chatbot 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tanya-chatbot.es.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { useEffect as lt, forwardRef as
|
|
1
|
+
import { useEffect as lt, forwardRef as pr, useState as L, createElement as fe, useRef as Pt } from "react";
|
|
2
2
|
import { jsx as l, jsxs as p, Fragment as pe } from "react/jsx-runtime";
|
|
3
|
-
import { createHttpLink as
|
|
4
|
-
import { Provider as
|
|
5
|
-
import { createSlice as
|
|
6
|
-
import * as
|
|
3
|
+
import { createHttpLink as Qr, ApolloClient as Xr, InMemoryCache as Zr, ApolloProvider as tn } from "@apollo/client";
|
|
4
|
+
import { Provider as en, useDispatch as hr, useSelector as Wt } from "react-redux";
|
|
5
|
+
import { createSlice as mr, configureStore as rn } from "@reduxjs/toolkit";
|
|
6
|
+
import * as gr from "@radix-ui/react-popover";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "tailwind-merge";
|
|
9
9
|
import z from "axios";
|
|
10
10
|
import "crypto-js";
|
|
11
11
|
import { Icon as Le } from "@iconify/react";
|
|
12
12
|
import { toast as W } from "react-toastify";
|
|
13
|
-
const on = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}';
|
|
14
|
-
function
|
|
13
|
+
const nn = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}';
|
|
14
|
+
function pa() {
|
|
15
15
|
return lt(() => {
|
|
16
16
|
if (typeof document < "u") {
|
|
17
17
|
const t = document.createElement("style");
|
|
18
|
-
return t.textContent =
|
|
18
|
+
return t.textContent = nn, document.head.appendChild(t), () => {
|
|
19
19
|
document.head.removeChild(t);
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
}, []), null;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const on = {
|
|
25
25
|
store: {
|
|
26
26
|
storeCode: "",
|
|
27
27
|
storeName: "",
|
|
@@ -55,30 +55,30 @@ const an = {
|
|
|
55
55
|
mobile: []
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, wr = mr({
|
|
59
59
|
name: "store",
|
|
60
|
-
initialState:
|
|
60
|
+
initialState: on,
|
|
61
61
|
reducers: {
|
|
62
62
|
setStore: (t, e) => {
|
|
63
63
|
t.store = e.payload;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
}), { setStore:
|
|
66
|
+
}), { setStore: ha } = wr.actions, an = wr.reducer, sn = {
|
|
67
67
|
product: null
|
|
68
|
-
},
|
|
68
|
+
}, yr = mr({
|
|
69
69
|
name: "product",
|
|
70
|
-
initialState:
|
|
70
|
+
initialState: sn,
|
|
71
71
|
reducers: {
|
|
72
72
|
setProduct: (t, e) => {
|
|
73
73
|
t.product = e.payload;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
}), { setProduct: he } =
|
|
76
|
+
}), { setProduct: he } = yr.actions, cn = yr.reducer, ln = rn({
|
|
77
77
|
reducer: {
|
|
78
|
-
store:
|
|
79
|
-
product:
|
|
78
|
+
store: an,
|
|
79
|
+
product: cn
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), un = ({ children: t }) => /* @__PURE__ */ l(en, { store: ln, children: t }), _t = (t) => {
|
|
82
82
|
const e = new CustomEvent("reactCartUpdated", {
|
|
83
83
|
detail: {
|
|
84
84
|
cartUpdated: !0,
|
|
@@ -88,18 +88,18 @@ const an = {
|
|
|
88
88
|
});
|
|
89
89
|
window.dispatchEvent(e);
|
|
90
90
|
};
|
|
91
|
-
function
|
|
91
|
+
function dn({
|
|
92
92
|
...t
|
|
93
93
|
}) {
|
|
94
|
-
return /* @__PURE__ */ l(
|
|
94
|
+
return /* @__PURE__ */ l(gr.Root, { "data-slot": "popover", ...t });
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function fn({
|
|
97
97
|
...t
|
|
98
98
|
}) {
|
|
99
|
-
return /* @__PURE__ */ l(
|
|
99
|
+
return /* @__PURE__ */ l(gr.Trigger, { "data-slot": "popover-trigger", ...t });
|
|
100
100
|
}
|
|
101
|
-
const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "
|
|
102
|
-
const t = "
|
|
101
|
+
const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "https://tanya-sfcc-server.vercel.app/", basePath: "sc-api" }), br = async () => {
|
|
102
|
+
const t = "https://tanya-sfcc-server.vercel.app/";
|
|
103
103
|
try {
|
|
104
104
|
const e = await z.post(
|
|
105
105
|
`${t}api/auth/token-bm-grant?baseUrl=${ut()}&siteId=${et()}`
|
|
@@ -108,8 +108,8 @@ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
|
|
|
108
108
|
} catch (e) {
|
|
109
109
|
return z.isAxiosError(e) ? console.error("Error fetching token:", e.response || e.message) : console.error("Unexpected error:", e), null;
|
|
110
110
|
}
|
|
111
|
-
},
|
|
112
|
-
const e = "
|
|
111
|
+
}, xr = async (t) => {
|
|
112
|
+
const e = "https://tanya-sfcc-server.vercel.app/";
|
|
113
113
|
try {
|
|
114
114
|
const r = JSON.parse(sessionStorage.getItem("customerData") || "{}").dwsid, n = await z.post(
|
|
115
115
|
`${e}api/auth/token-existing-guest-customer?dwsid=${r}&baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
|
|
@@ -127,23 +127,23 @@ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
|
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
async function Ut() {
|
|
130
|
-
var
|
|
131
|
-
const t = localStorage.getItem("expires_in"), e = localStorage.getItem("access_token"), r = ((
|
|
130
|
+
var i;
|
|
131
|
+
const t = localStorage.getItem("expires_in"), e = localStorage.getItem("access_token"), r = ((i = JSON.parse(sessionStorage.getItem("customerData") || "{}")) == null ? void 0 : i.isGuest) || !0;
|
|
132
132
|
if (t && e && (/* @__PURE__ */ new Date()).getTime() < parseInt(t) && (r === localStorage.getItem("isGuest") || !0))
|
|
133
133
|
return console.log("access token found in local storage"), { access_token: e, expires_in: t };
|
|
134
134
|
const { serverUrl: n } = wt(), o = JSON.parse(
|
|
135
135
|
sessionStorage.getItem("customerData") || "{}"
|
|
136
|
-
).dwsid,
|
|
136
|
+
).dwsid, a = JSON.parse(
|
|
137
137
|
sessionStorage.getItem("customerData") || "{}"
|
|
138
138
|
).usrRef;
|
|
139
139
|
try {
|
|
140
140
|
const c = r ? "unregister-auth" : "register-auth", s = await z.get(
|
|
141
|
-
`${n}sc-api/${c}?dwsid=${o}&email=${
|
|
141
|
+
`${n}sc-api/${c}?dwsid=${o}&email=${a}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}&siteId=${et()}&token=true`,
|
|
142
142
|
{
|
|
143
143
|
withCredentials: !0
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
|
-
return
|
|
146
|
+
return localStorage.setItem("access_token", s.data.access_token), localStorage.setItem(
|
|
147
147
|
"expires_in",
|
|
148
148
|
String((/* @__PURE__ */ new Date()).getTime() + s.data.expires_in * 1e3)
|
|
149
149
|
), localStorage.setItem("isGuest", r ? "true" : "false"), s.data;
|
|
@@ -173,7 +173,7 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
|
|
|
173
173
|
} catch (o) {
|
|
174
174
|
throw console.error("Error fetching search results:", o), o;
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, vr = async (t) => {
|
|
177
177
|
if (!t) throw new Error("Product ID is required");
|
|
178
178
|
const { serverUrl: e, basePath: r } = wt(), n = ut();
|
|
179
179
|
console.log("calling access");
|
|
@@ -187,21 +187,21 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
)).data;
|
|
190
|
-
},
|
|
190
|
+
}, pn = async (t) => {
|
|
191
191
|
if (!t) throw new Error("customerId is required");
|
|
192
|
-
const e = await
|
|
192
|
+
const e = await br(), { customer_token: r } = await xr(
|
|
193
193
|
e
|
|
194
|
-
), { serverUrl: n, basePath: o } = wt(),
|
|
194
|
+
), { serverUrl: n, basePath: o } = wt(), i = (await Ut()).access_token;
|
|
195
195
|
return (await z.get(
|
|
196
196
|
`${n}${o}/get-interest?baseUrl=${ut()}&customerId=${t}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
|
|
197
197
|
{
|
|
198
198
|
headers: {
|
|
199
199
|
"Content-Type": "application/json",
|
|
200
|
-
Authorization: `Bearer ${
|
|
200
|
+
Authorization: `Bearer ${i}`
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
)).data;
|
|
204
|
-
}, ze = (t) => String(typeof t == "string" ? t : t["en-US"] || t), Me = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url),
|
|
204
|
+
}, ze = (t) => String(typeof t == "string" ? t : t["en-US"] || t), Me = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), hn = (t, e) => t.toLocaleString("en-US", {
|
|
205
205
|
style: "currency",
|
|
206
206
|
currency: e || "USD"
|
|
207
207
|
}), Ue = (t) => {
|
|
@@ -213,24 +213,24 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
|
|
|
213
213
|
centAmount: (r = t.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
|
|
214
214
|
currencyCode: (n = t.masterVariant) == null ? void 0 : n.prices[0].value.currencyCode
|
|
215
215
|
};
|
|
216
|
-
},
|
|
216
|
+
}, mn = (t) => t.charAt(0).toUpperCase() + t.slice(1), Be = (t, e) => t.length < e ? t : t.slice(0, e) + "...", ae = (t) => t.split("\\n").map((e, r) => {
|
|
217
217
|
const n = e.match(/^(\d+)\.\s(.+)/);
|
|
218
218
|
return n ? `<p key=${r} class="mb-2"><strong>${n[1]}.</strong> ${n[2]}</p>` : e.trim() ? `<p key=${r} class="mb-2">${e}</p>` : "<br/>";
|
|
219
219
|
}).join("");
|
|
220
|
-
function
|
|
220
|
+
function gn(t, e) {
|
|
221
221
|
const r = t.icons, n = t.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
222
|
-
function i
|
|
223
|
-
if (r[
|
|
224
|
-
if (!(
|
|
225
|
-
o[
|
|
226
|
-
const c = n[
|
|
227
|
-
s && (o[
|
|
222
|
+
function a(i) {
|
|
223
|
+
if (r[i]) return o[i] = [];
|
|
224
|
+
if (!(i in o)) {
|
|
225
|
+
o[i] = null;
|
|
226
|
+
const c = n[i] && n[i].parent, s = c && a(c);
|
|
227
|
+
s && (o[i] = [c].concat(s));
|
|
228
228
|
}
|
|
229
|
-
return o[
|
|
229
|
+
return o[i];
|
|
230
230
|
}
|
|
231
|
-
return Object.keys(r).concat(Object.keys(n)).forEach(
|
|
231
|
+
return Object.keys(r).concat(Object.keys(n)).forEach(a), o;
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const kr = Object.freeze({
|
|
234
234
|
left: 0,
|
|
235
235
|
top: 0,
|
|
236
236
|
width: 16,
|
|
@@ -240,73 +240,73 @@ const Sr = Object.freeze({
|
|
|
240
240
|
vFlip: !1,
|
|
241
241
|
hFlip: !1
|
|
242
242
|
}), Se = Object.freeze({
|
|
243
|
-
...
|
|
243
|
+
...kr,
|
|
244
244
|
...Qt
|
|
245
245
|
}), me = Object.freeze({
|
|
246
246
|
...Se,
|
|
247
247
|
body: "",
|
|
248
248
|
hidden: !1
|
|
249
249
|
});
|
|
250
|
-
function
|
|
250
|
+
function wn(t, e) {
|
|
251
251
|
const r = {};
|
|
252
252
|
!t.hFlip != !e.hFlip && (r.hFlip = !0), !t.vFlip != !e.vFlip && (r.vFlip = !0);
|
|
253
253
|
const n = ((t.rotate || 0) + (e.rotate || 0)) % 4;
|
|
254
254
|
return n && (r.rotate = n), r;
|
|
255
255
|
}
|
|
256
256
|
function qe(t, e) {
|
|
257
|
-
const r =
|
|
257
|
+
const r = wn(t, e);
|
|
258
258
|
for (const n in me) n in Qt ? n in t && !(n in r) && (r[n] = Qt[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]);
|
|
259
259
|
return r;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function yn(t, e, r) {
|
|
262
262
|
const n = t.icons, o = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
263
|
-
let
|
|
264
|
-
function
|
|
265
|
-
|
|
263
|
+
let a = {};
|
|
264
|
+
function i(c) {
|
|
265
|
+
a = qe(n[c] || o[c], a);
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return i(e), r.forEach(i), qe(t, a);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Sr(t, e) {
|
|
270
270
|
const r = [];
|
|
271
271
|
if (typeof t != "object" || typeof t.icons != "object") return r;
|
|
272
272
|
t.not_found instanceof Array && t.not_found.forEach((o) => {
|
|
273
273
|
e(o, null), r.push(o);
|
|
274
274
|
});
|
|
275
|
-
const n =
|
|
275
|
+
const n = gn(t);
|
|
276
276
|
for (const o in n) {
|
|
277
|
-
const
|
|
278
|
-
|
|
277
|
+
const a = n[o];
|
|
278
|
+
a && (e(o, yn(t, o, a)), r.push(o));
|
|
279
279
|
}
|
|
280
280
|
return r;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
282
|
+
const bn = {
|
|
283
283
|
provider: "",
|
|
284
284
|
aliases: {},
|
|
285
285
|
not_found: {},
|
|
286
|
-
...
|
|
286
|
+
...kr
|
|
287
287
|
};
|
|
288
|
-
function
|
|
288
|
+
function ie(t, e) {
|
|
289
289
|
for (const r in e) if (r in t && typeof t[r] != typeof e[r]) return !1;
|
|
290
290
|
return !0;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ir(t) {
|
|
293
293
|
if (typeof t != "object" || t === null) return null;
|
|
294
294
|
const e = t;
|
|
295
|
-
if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !
|
|
295
|
+
if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !ie(t, bn)) return null;
|
|
296
296
|
const r = e.icons;
|
|
297
297
|
for (const o in r) {
|
|
298
|
-
const
|
|
299
|
-
if (!o || typeof
|
|
298
|
+
const a = r[o];
|
|
299
|
+
if (!o || typeof a.body != "string" || !ie(a, me)) return null;
|
|
300
300
|
}
|
|
301
301
|
const n = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
302
302
|
for (const o in n) {
|
|
303
|
-
const
|
|
304
|
-
if (!o || typeof
|
|
303
|
+
const a = n[o], i = a.parent;
|
|
304
|
+
if (!o || typeof i != "string" || !r[i] && !n[i] || !ie(a, me)) return null;
|
|
305
305
|
}
|
|
306
306
|
return e;
|
|
307
307
|
}
|
|
308
308
|
const Re = /* @__PURE__ */ Object.create(null);
|
|
309
|
-
function
|
|
309
|
+
function xn(t, e) {
|
|
310
310
|
return {
|
|
311
311
|
provider: t,
|
|
312
312
|
prefix: e,
|
|
@@ -316,14 +316,14 @@ function vn(t, e) {
|
|
|
316
316
|
}
|
|
317
317
|
function Nt(t, e) {
|
|
318
318
|
const r = Re[t] || (Re[t] = /* @__PURE__ */ Object.create(null));
|
|
319
|
-
return r[e] || (r[e] =
|
|
319
|
+
return r[e] || (r[e] = xn(t, e));
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
return
|
|
321
|
+
function Cr(t, e) {
|
|
322
|
+
return Ir(e) ? Sr(e, (r, n) => {
|
|
323
323
|
n ? t.icons[r] = n : t.missing.add(r);
|
|
324
324
|
}) : [];
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function vn(t, e, r) {
|
|
327
327
|
try {
|
|
328
328
|
if (typeof r.body == "string")
|
|
329
329
|
return t.icons[e] = { ...r }, !0;
|
|
@@ -331,7 +331,7 @@ function kn(t, e, r) {
|
|
|
331
331
|
}
|
|
332
332
|
return !1;
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const _r = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
|
|
335
335
|
const o = t.split(":");
|
|
336
336
|
if (t.slice(0, 1) === "@") {
|
|
337
337
|
if (o.length < 2 || o.length > 3) return null;
|
|
@@ -346,12 +346,12 @@ const Fr = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
|
|
|
346
346
|
};
|
|
347
347
|
return e && !Jt(d) ? null : d;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
349
|
+
const a = o[0], i = a.split("-");
|
|
350
|
+
if (i.length > 1) {
|
|
351
351
|
const c = {
|
|
352
352
|
provider: n,
|
|
353
|
-
prefix:
|
|
354
|
-
name:
|
|
353
|
+
prefix: i.shift(),
|
|
354
|
+
name: i.join("-")
|
|
355
355
|
};
|
|
356
356
|
return e && !Jt(c) ? null : c;
|
|
357
357
|
}
|
|
@@ -359,14 +359,14 @@ const Fr = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
|
|
|
359
359
|
const c = {
|
|
360
360
|
provider: n,
|
|
361
361
|
prefix: "",
|
|
362
|
-
name:
|
|
362
|
+
name: a
|
|
363
363
|
};
|
|
364
364
|
return e && !Jt(c, r) ? null : c;
|
|
365
365
|
}
|
|
366
366
|
return null;
|
|
367
367
|
}, Jt = (t, e) => t ? !!((e && t.prefix === "" || t.prefix) && t.name) : !1;
|
|
368
368
|
let zt = !1;
|
|
369
|
-
function
|
|
369
|
+
function Fr(t) {
|
|
370
370
|
return typeof t == "boolean" && (zt = t), zt;
|
|
371
371
|
}
|
|
372
372
|
function He(t) {
|
|
@@ -376,18 +376,18 @@ function He(t) {
|
|
|
376
376
|
return r.icons[n] || (r.missing.has(n) ? null : void 0);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function kn(t, e) {
|
|
380
380
|
const r = ee(t, !0, zt);
|
|
381
381
|
if (!r) return !1;
|
|
382
382
|
const n = Nt(r.provider, r.prefix);
|
|
383
|
-
return e ?
|
|
383
|
+
return e ? vn(n, r.name, e) : (n.missing.add(r.name), !0);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Sn(t, e) {
|
|
386
386
|
if (typeof t != "object") return !1;
|
|
387
387
|
if (typeof e != "string" && (e = t.provider || ""), zt && !e && !t.prefix) {
|
|
388
388
|
let o = !1;
|
|
389
|
-
return
|
|
390
|
-
|
|
389
|
+
return Ir(t) && (t.prefix = "", Sr(t, (a, i) => {
|
|
390
|
+
kn(a, i) && (o = !0);
|
|
391
391
|
})), o;
|
|
392
392
|
}
|
|
393
393
|
const r = t.prefix;
|
|
@@ -396,61 +396,61 @@ function In(t, e) {
|
|
|
396
396
|
name: "a"
|
|
397
397
|
})) return !1;
|
|
398
398
|
const n = Nt(e, r);
|
|
399
|
-
return !!
|
|
399
|
+
return !!Cr(n, t);
|
|
400
400
|
}
|
|
401
|
-
const
|
|
401
|
+
const Nr = Object.freeze({
|
|
402
402
|
width: null,
|
|
403
403
|
height: null
|
|
404
|
-
}),
|
|
405
|
-
...
|
|
404
|
+
}), Er = Object.freeze({
|
|
405
|
+
...Nr,
|
|
406
406
|
...Qt
|
|
407
|
-
}),
|
|
407
|
+
}), In = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Cn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
408
408
|
function Ve(t, e, r) {
|
|
409
409
|
if (e === 1) return t;
|
|
410
410
|
if (r = r || 100, typeof t == "number") return Math.ceil(t * e * r) / r;
|
|
411
411
|
if (typeof t != "string") return t;
|
|
412
|
-
const n = t.split(
|
|
412
|
+
const n = t.split(In);
|
|
413
413
|
if (n === null || !n.length) return t;
|
|
414
414
|
const o = [];
|
|
415
|
-
let
|
|
415
|
+
let a = n.shift(), i = Cn.test(a);
|
|
416
416
|
for (; ; ) {
|
|
417
|
-
if (
|
|
418
|
-
const c = parseFloat(
|
|
419
|
-
isNaN(c) ? o.push(
|
|
420
|
-
} else o.push(
|
|
421
|
-
if (
|
|
422
|
-
|
|
417
|
+
if (i) {
|
|
418
|
+
const c = parseFloat(a);
|
|
419
|
+
isNaN(c) ? o.push(a) : o.push(Math.ceil(c * e * r) / r);
|
|
420
|
+
} else o.push(a);
|
|
421
|
+
if (a = n.shift(), a === void 0) return o.join("");
|
|
422
|
+
i = !i;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function _n(t, e = "defs") {
|
|
426
426
|
let r = "";
|
|
427
427
|
const n = t.indexOf("<" + e);
|
|
428
428
|
for (; n >= 0; ) {
|
|
429
|
-
const o = t.indexOf(">", n),
|
|
430
|
-
if (o === -1 ||
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
433
|
-
r += t.slice(o + 1,
|
|
429
|
+
const o = t.indexOf(">", n), a = t.indexOf("</" + e);
|
|
430
|
+
if (o === -1 || a === -1) break;
|
|
431
|
+
const i = t.indexOf(">", a);
|
|
432
|
+
if (i === -1) break;
|
|
433
|
+
r += t.slice(o + 1, a).trim(), t = t.slice(0, n).trim() + t.slice(i + 1);
|
|
434
434
|
}
|
|
435
435
|
return {
|
|
436
436
|
defs: r,
|
|
437
437
|
content: t
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Fn(t, e) {
|
|
441
441
|
return t ? "<defs>" + t + "</defs>" + e : e;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const n =
|
|
445
|
-
return
|
|
443
|
+
function Nn(t, e, r) {
|
|
444
|
+
const n = _n(t);
|
|
445
|
+
return Fn(n.defs, e + n.content + r);
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
function
|
|
447
|
+
const En = (t) => t === "unset" || t === "undefined" || t === "none";
|
|
448
|
+
function Tn(t, e) {
|
|
449
449
|
const r = {
|
|
450
450
|
...Se,
|
|
451
451
|
...t
|
|
452
452
|
}, n = {
|
|
453
|
-
...
|
|
453
|
+
...Er,
|
|
454
454
|
...e
|
|
455
455
|
}, o = {
|
|
456
456
|
left: r.left,
|
|
@@ -458,7 +458,7 @@ function Pn(t, e) {
|
|
|
458
458
|
width: r.width,
|
|
459
459
|
height: r.height
|
|
460
460
|
};
|
|
461
|
-
let
|
|
461
|
+
let a = r.body;
|
|
462
462
|
[r, n].forEach((T) => {
|
|
463
463
|
const w = [], k = T.hFlip, M = T.vFlip;
|
|
464
464
|
let O = T.rotate;
|
|
@@ -475,13 +475,13 @@ function Pn(t, e) {
|
|
|
475
475
|
P = o.width / 2 + o.left, w.unshift("rotate(-90 " + P.toString() + " " + P.toString() + ")");
|
|
476
476
|
break;
|
|
477
477
|
}
|
|
478
|
-
O % 2 === 1 && (o.left !== o.top && (P = o.left, o.left = o.top, o.top = P), o.width !== o.height && (P = o.width, o.width = o.height, o.height = P)), w.length && (
|
|
478
|
+
O % 2 === 1 && (o.left !== o.top && (P = o.left, o.left = o.top, o.top = P), o.width !== o.height && (P = o.width, o.width = o.height, o.height = P)), w.length && (a = Nn(a, '<g transform="' + w.join(" ") + '">', "</g>"));
|
|
479
479
|
});
|
|
480
|
-
const
|
|
480
|
+
const i = n.width, c = n.height, s = o.width, d = o.height;
|
|
481
481
|
let f, h;
|
|
482
|
-
|
|
482
|
+
i === null ? (h = c === null ? "1em" : c === "auto" ? d : c, f = Ve(h, s / d)) : (f = i === "auto" ? s : i, h = c === null ? Ve(f, d / s) : c === "auto" ? d : c);
|
|
483
483
|
const m = {}, g = (T, w) => {
|
|
484
|
-
|
|
484
|
+
En(w) || (m[T] = w.toString());
|
|
485
485
|
};
|
|
486
486
|
g("width", f), g("height", h);
|
|
487
487
|
const S = [
|
|
@@ -493,24 +493,24 @@ function Pn(t, e) {
|
|
|
493
493
|
return m.viewBox = S.join(" "), {
|
|
494
494
|
attributes: m,
|
|
495
495
|
viewBox: S,
|
|
496
|
-
body:
|
|
496
|
+
body: a
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
const
|
|
500
|
-
let
|
|
501
|
-
function
|
|
499
|
+
const Pn = /\sid="(\S+)"/g, On = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
500
|
+
let jn = 0;
|
|
501
|
+
function $n(t, e = On) {
|
|
502
502
|
const r = [];
|
|
503
503
|
let n;
|
|
504
|
-
for (; n =
|
|
504
|
+
for (; n = Pn.exec(t); ) r.push(n[1]);
|
|
505
505
|
if (!r.length) return t;
|
|
506
506
|
const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
507
|
-
return r.forEach((
|
|
508
|
-
const
|
|
509
|
-
t = t.replace(new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"), "$1" +
|
|
507
|
+
return r.forEach((a) => {
|
|
508
|
+
const i = typeof e == "function" ? e(a) : e + (jn++).toString(), c = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
509
|
+
t = t.replace(new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"), "$1" + i + o + "$3");
|
|
510
510
|
}), t = t.replace(new RegExp(o, "g"), ""), t;
|
|
511
511
|
}
|
|
512
512
|
const ge = /* @__PURE__ */ Object.create(null);
|
|
513
|
-
function
|
|
513
|
+
function An(t, e) {
|
|
514
514
|
ge[t] = e;
|
|
515
515
|
}
|
|
516
516
|
function we(t) {
|
|
@@ -534,78 +534,78 @@ function Ie(t) {
|
|
|
534
534
|
const Ce = /* @__PURE__ */ Object.create(null), Ot = ["https://api.simplesvg.com", "https://api.unisvg.com"], Kt = [];
|
|
535
535
|
for (; Ot.length > 0; ) Ot.length === 1 || Math.random() > 0.5 ? Kt.push(Ot.shift()) : Kt.push(Ot.pop());
|
|
536
536
|
Ce[""] = Ie({ resources: ["https://api.iconify.design"].concat(Kt) });
|
|
537
|
-
function
|
|
537
|
+
function Ln(t, e) {
|
|
538
538
|
const r = Ie(e);
|
|
539
539
|
return r === null ? !1 : (Ce[t] = r, !0);
|
|
540
540
|
}
|
|
541
541
|
function _e(t) {
|
|
542
542
|
return Ce[t];
|
|
543
543
|
}
|
|
544
|
-
const
|
|
544
|
+
const Dn = () => {
|
|
545
545
|
let t;
|
|
546
546
|
try {
|
|
547
547
|
if (t = fetch, typeof t == "function") return t;
|
|
548
548
|
} catch {
|
|
549
549
|
}
|
|
550
550
|
};
|
|
551
|
-
let Ye =
|
|
552
|
-
function
|
|
551
|
+
let Ye = Dn();
|
|
552
|
+
function zn(t, e) {
|
|
553
553
|
const r = _e(t);
|
|
554
554
|
if (!r) return 0;
|
|
555
555
|
let n;
|
|
556
556
|
if (!r.maxURL) n = 0;
|
|
557
557
|
else {
|
|
558
558
|
let o = 0;
|
|
559
|
-
r.resources.forEach((
|
|
560
|
-
o = Math.max(o,
|
|
559
|
+
r.resources.forEach((i) => {
|
|
560
|
+
o = Math.max(o, i.length);
|
|
561
561
|
});
|
|
562
|
-
const
|
|
563
|
-
n = r.maxURL - o - r.path.length -
|
|
562
|
+
const a = e + ".json?icons=";
|
|
563
|
+
n = r.maxURL - o - r.path.length - a.length;
|
|
564
564
|
}
|
|
565
565
|
return n;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Mn(t) {
|
|
568
568
|
return t === 404;
|
|
569
569
|
}
|
|
570
|
-
const
|
|
571
|
-
const n = [], o =
|
|
572
|
-
let
|
|
573
|
-
type:
|
|
570
|
+
const Un = (t, e, r) => {
|
|
571
|
+
const n = [], o = zn(t, e), a = "icons";
|
|
572
|
+
let i = {
|
|
573
|
+
type: a,
|
|
574
574
|
provider: t,
|
|
575
575
|
prefix: e,
|
|
576
576
|
icons: []
|
|
577
577
|
}, c = 0;
|
|
578
578
|
return r.forEach((s, d) => {
|
|
579
|
-
c += s.length + 1, c >= o && d > 0 && (n.push(
|
|
580
|
-
type:
|
|
579
|
+
c += s.length + 1, c >= o && d > 0 && (n.push(i), i = {
|
|
580
|
+
type: a,
|
|
581
581
|
provider: t,
|
|
582
582
|
prefix: e,
|
|
583
583
|
icons: []
|
|
584
|
-
}, c = s.length),
|
|
585
|
-
}), n.push(
|
|
584
|
+
}, c = s.length), i.icons.push(s);
|
|
585
|
+
}), n.push(i), n;
|
|
586
586
|
};
|
|
587
|
-
function
|
|
587
|
+
function Bn(t) {
|
|
588
588
|
if (typeof t == "string") {
|
|
589
589
|
const e = _e(t);
|
|
590
590
|
if (e) return e.path;
|
|
591
591
|
}
|
|
592
592
|
return "/";
|
|
593
593
|
}
|
|
594
|
-
const
|
|
594
|
+
const qn = (t, e, r) => {
|
|
595
595
|
if (!Ye) {
|
|
596
596
|
r("abort", 424);
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
|
-
let n =
|
|
599
|
+
let n = Bn(e.provider);
|
|
600
600
|
switch (e.type) {
|
|
601
601
|
case "icons": {
|
|
602
|
-
const
|
|
603
|
-
n +=
|
|
602
|
+
const a = e.prefix, c = e.icons.join(","), s = new URLSearchParams({ icons: c });
|
|
603
|
+
n += a + ".json?" + s.toString();
|
|
604
604
|
break;
|
|
605
605
|
}
|
|
606
606
|
case "custom": {
|
|
607
|
-
const
|
|
608
|
-
n +=
|
|
607
|
+
const a = e.uri;
|
|
608
|
+
n += a.slice(0, 1) === "/" ? a.slice(1) : a;
|
|
609
609
|
break;
|
|
610
610
|
}
|
|
611
611
|
default:
|
|
@@ -613,56 +613,56 @@ const Rn = (t, e, r) => {
|
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
615
|
let o = 503;
|
|
616
|
-
Ye(t + n).then((
|
|
617
|
-
const
|
|
618
|
-
if (
|
|
616
|
+
Ye(t + n).then((a) => {
|
|
617
|
+
const i = a.status;
|
|
618
|
+
if (i !== 200) {
|
|
619
619
|
setTimeout(() => {
|
|
620
|
-
r(
|
|
620
|
+
r(Mn(i) ? "abort" : "next", i);
|
|
621
621
|
});
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
|
-
return o = 501,
|
|
625
|
-
}).then((
|
|
626
|
-
if (typeof
|
|
624
|
+
return o = 501, a.json();
|
|
625
|
+
}).then((a) => {
|
|
626
|
+
if (typeof a != "object" || a === null) {
|
|
627
627
|
setTimeout(() => {
|
|
628
|
-
|
|
628
|
+
a === 404 ? r("abort", a) : r("next", o);
|
|
629
629
|
});
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
632
|
setTimeout(() => {
|
|
633
|
-
r("success",
|
|
633
|
+
r("success", a);
|
|
634
634
|
});
|
|
635
635
|
}).catch(() => {
|
|
636
636
|
r("next", o);
|
|
637
637
|
});
|
|
638
|
-
},
|
|
639
|
-
prepare:
|
|
640
|
-
send:
|
|
638
|
+
}, Rn = {
|
|
639
|
+
prepare: Un,
|
|
640
|
+
send: qn
|
|
641
641
|
};
|
|
642
|
-
function
|
|
642
|
+
function Tr(t, e) {
|
|
643
643
|
t.forEach((r) => {
|
|
644
644
|
const n = r.loaderCallbacks;
|
|
645
645
|
n && (r.loaderCallbacks = n.filter((o) => o.id !== e));
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Hn(t) {
|
|
649
649
|
t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
650
650
|
t.pendingCallbacksFlag = !1;
|
|
651
651
|
const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
|
|
652
652
|
if (!e.length) return;
|
|
653
653
|
let r = !1;
|
|
654
654
|
const n = t.provider, o = t.prefix;
|
|
655
|
-
e.forEach((
|
|
656
|
-
const
|
|
657
|
-
|
|
655
|
+
e.forEach((a) => {
|
|
656
|
+
const i = a.icons, c = i.pending.length;
|
|
657
|
+
i.pending = i.pending.filter((s) => {
|
|
658
658
|
if (s.prefix !== o) return !0;
|
|
659
659
|
const d = s.name;
|
|
660
|
-
if (t.icons[d])
|
|
660
|
+
if (t.icons[d]) i.loaded.push({
|
|
661
661
|
provider: n,
|
|
662
662
|
prefix: o,
|
|
663
663
|
name: d
|
|
664
664
|
});
|
|
665
|
-
else if (t.missing.has(d))
|
|
665
|
+
else if (t.missing.has(d)) i.missing.push({
|
|
666
666
|
provider: n,
|
|
667
667
|
prefix: o,
|
|
668
668
|
name: d
|
|
@@ -670,31 +670,31 @@ function Vn(t) {
|
|
|
670
670
|
else
|
|
671
671
|
return r = !0, !0;
|
|
672
672
|
return !1;
|
|
673
|
-
}),
|
|
673
|
+
}), i.pending.length !== c && (r || Tr([t], a.id), a.callback(i.loaded.slice(0), i.missing.slice(0), i.pending.slice(0), a.abort));
|
|
674
674
|
});
|
|
675
675
|
}));
|
|
676
676
|
}
|
|
677
|
-
let
|
|
678
|
-
function
|
|
679
|
-
const n =
|
|
677
|
+
let Vn = 0;
|
|
678
|
+
function Yn(t, e, r) {
|
|
679
|
+
const n = Vn++, o = Tr.bind(null, r, n);
|
|
680
680
|
if (!e.pending.length) return o;
|
|
681
|
-
const
|
|
681
|
+
const a = {
|
|
682
682
|
id: n,
|
|
683
683
|
icons: e,
|
|
684
684
|
callback: t,
|
|
685
685
|
abort: o
|
|
686
686
|
};
|
|
687
|
-
return r.forEach((
|
|
688
|
-
(
|
|
687
|
+
return r.forEach((i) => {
|
|
688
|
+
(i.loaderCallbacks || (i.loaderCallbacks = [])).push(a);
|
|
689
689
|
}), o;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Jn(t) {
|
|
692
692
|
const e = {
|
|
693
693
|
loaded: [],
|
|
694
694
|
missing: [],
|
|
695
695
|
pending: []
|
|
696
696
|
}, r = /* @__PURE__ */ Object.create(null);
|
|
697
|
-
t.sort((o,
|
|
697
|
+
t.sort((o, a) => o.provider !== a.provider ? o.provider.localeCompare(a.provider) : o.prefix !== a.prefix ? o.prefix.localeCompare(a.prefix) : o.name.localeCompare(a.name));
|
|
698
698
|
let n = {
|
|
699
699
|
provider: "",
|
|
700
700
|
prefix: "",
|
|
@@ -703,25 +703,25 @@ function Kn(t) {
|
|
|
703
703
|
return t.forEach((o) => {
|
|
704
704
|
if (n.name === o.name && n.prefix === o.prefix && n.provider === o.provider) return;
|
|
705
705
|
n = o;
|
|
706
|
-
const
|
|
706
|
+
const a = o.provider, i = o.prefix, c = o.name, s = r[a] || (r[a] = /* @__PURE__ */ Object.create(null)), d = s[i] || (s[i] = Nt(a, i));
|
|
707
707
|
let f;
|
|
708
|
-
c in d.icons ? f = e.loaded :
|
|
708
|
+
c in d.icons ? f = e.loaded : i === "" || d.missing.has(c) ? f = e.missing : f = e.pending;
|
|
709
709
|
const h = {
|
|
710
|
-
provider:
|
|
711
|
-
prefix:
|
|
710
|
+
provider: a,
|
|
711
|
+
prefix: i,
|
|
712
712
|
name: c
|
|
713
713
|
};
|
|
714
714
|
f.push(h);
|
|
715
715
|
}), e;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Kn(t, e = !0, r = !1) {
|
|
718
718
|
const n = [];
|
|
719
719
|
return t.forEach((o) => {
|
|
720
|
-
const
|
|
721
|
-
|
|
720
|
+
const a = typeof o == "string" ? ee(o, e, r) : o;
|
|
721
|
+
a && n.push(a);
|
|
722
722
|
}), n;
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Gn = {
|
|
725
725
|
resources: [],
|
|
726
726
|
index: 0,
|
|
727
727
|
timeout: 2e3,
|
|
@@ -729,17 +729,17 @@ const Wn = {
|
|
|
729
729
|
random: !1,
|
|
730
730
|
dataAfterTimeout: !1
|
|
731
731
|
};
|
|
732
|
-
function
|
|
733
|
-
const o = t.resources.length,
|
|
734
|
-
let
|
|
732
|
+
function Wn(t, e, r, n) {
|
|
733
|
+
const o = t.resources.length, a = t.random ? Math.floor(Math.random() * o) : t.index;
|
|
734
|
+
let i;
|
|
735
735
|
if (t.random) {
|
|
736
736
|
let _ = t.resources.slice(0);
|
|
737
|
-
for (
|
|
737
|
+
for (i = []; _.length > 1; ) {
|
|
738
738
|
const j = Math.floor(Math.random() * _.length);
|
|
739
|
-
|
|
739
|
+
i.push(_[j]), _ = _.slice(0, j).concat(_.slice(j + 1));
|
|
740
740
|
}
|
|
741
|
-
|
|
742
|
-
} else
|
|
741
|
+
i = i.concat(_);
|
|
742
|
+
} else i = t.resources.slice(a).concat(t.resources.slice(0, a));
|
|
743
743
|
const c = Date.now();
|
|
744
744
|
let s = "pending", d = 0, f, h = null, m = [], g = [];
|
|
745
745
|
typeof n == "function" && g.push(n);
|
|
@@ -791,7 +791,7 @@ function Qn(t, e, r, n) {
|
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
793
793
|
if (X) {
|
|
794
|
-
f = V, m.length || (
|
|
794
|
+
f = V, m.length || (i.length ? Q() : M());
|
|
795
795
|
return;
|
|
796
796
|
}
|
|
797
797
|
if (S(), O(), !t.random) {
|
|
@@ -805,7 +805,7 @@ function Qn(t, e, r, n) {
|
|
|
805
805
|
function Q() {
|
|
806
806
|
if (s !== "pending") return;
|
|
807
807
|
S();
|
|
808
|
-
const _ =
|
|
808
|
+
const _ = i.shift();
|
|
809
809
|
if (_ === void 0) {
|
|
810
810
|
if (m.length) {
|
|
811
811
|
h = setTimeout(() => {
|
|
@@ -827,9 +827,9 @@ function Qn(t, e, r, n) {
|
|
|
827
827
|
}
|
|
828
828
|
return setTimeout(Q), k;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Pr(t) {
|
|
831
831
|
const e = {
|
|
832
|
-
...
|
|
832
|
+
...Gn,
|
|
833
833
|
...t
|
|
834
834
|
};
|
|
835
835
|
let r = [];
|
|
@@ -837,17 +837,17 @@ function Or(t) {
|
|
|
837
837
|
r = r.filter((c) => c().status === "pending");
|
|
838
838
|
}
|
|
839
839
|
function o(c, s, d) {
|
|
840
|
-
const f =
|
|
840
|
+
const f = Wn(e, c, s, (h, m) => {
|
|
841
841
|
n(), d && d(h, m);
|
|
842
842
|
});
|
|
843
843
|
return r.push(f), f;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function a(c) {
|
|
846
846
|
return r.find((s) => c(s)) || null;
|
|
847
847
|
}
|
|
848
848
|
return {
|
|
849
849
|
query: o,
|
|
850
|
-
find:
|
|
850
|
+
find: a,
|
|
851
851
|
setIndex: (c) => {
|
|
852
852
|
e.index = c;
|
|
853
853
|
},
|
|
@@ -858,11 +858,11 @@ function Or(t) {
|
|
|
858
858
|
function Je() {
|
|
859
859
|
}
|
|
860
860
|
const se = /* @__PURE__ */ Object.create(null);
|
|
861
|
-
function
|
|
861
|
+
function Qn(t) {
|
|
862
862
|
if (!se[t]) {
|
|
863
863
|
const e = _e(t);
|
|
864
864
|
if (!e) return;
|
|
865
|
-
const r =
|
|
865
|
+
const r = Pr(e), n = {
|
|
866
866
|
config: e,
|
|
867
867
|
redundancy: r
|
|
868
868
|
};
|
|
@@ -870,20 +870,20 @@ function Xn(t) {
|
|
|
870
870
|
}
|
|
871
871
|
return se[t];
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function Xn(t, e, r) {
|
|
874
874
|
let n, o;
|
|
875
875
|
if (typeof t == "string") {
|
|
876
|
-
const
|
|
877
|
-
if (!
|
|
876
|
+
const a = we(t);
|
|
877
|
+
if (!a)
|
|
878
878
|
return r(void 0, 424), Je;
|
|
879
|
-
o =
|
|
880
|
-
const
|
|
881
|
-
|
|
879
|
+
o = a.send;
|
|
880
|
+
const i = Qn(t);
|
|
881
|
+
i && (n = i.redundancy);
|
|
882
882
|
} else {
|
|
883
|
-
const
|
|
884
|
-
if (
|
|
885
|
-
n =
|
|
886
|
-
const
|
|
883
|
+
const a = Ie(t);
|
|
884
|
+
if (a) {
|
|
885
|
+
n = Pr(a);
|
|
886
|
+
const i = t.resources ? t.resources[0] : "", c = we(i);
|
|
887
887
|
c && (o = c.send);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
@@ -891,15 +891,15 @@ function Zn(t, e, r) {
|
|
|
891
891
|
}
|
|
892
892
|
function Ke() {
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Zn(t) {
|
|
895
895
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
896
|
-
t.iconsLoaderFlag = !1,
|
|
896
|
+
t.iconsLoaderFlag = !1, Hn(t);
|
|
897
897
|
}));
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function to(t) {
|
|
900
900
|
const e = [], r = [];
|
|
901
901
|
return t.forEach((n) => {
|
|
902
|
-
(n.match(
|
|
902
|
+
(n.match(_r) ? e : r).push(n);
|
|
903
903
|
}), {
|
|
904
904
|
valid: e,
|
|
905
905
|
invalid: r
|
|
@@ -908,19 +908,19 @@ function eo(t) {
|
|
|
908
908
|
function jt(t, e, r) {
|
|
909
909
|
function n() {
|
|
910
910
|
const o = t.pendingIcons;
|
|
911
|
-
e.forEach((
|
|
912
|
-
o && o.delete(
|
|
911
|
+
e.forEach((a) => {
|
|
912
|
+
o && o.delete(a), t.icons[a] || t.missing.add(a);
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
if (r && typeof r == "object") try {
|
|
916
|
-
if (!
|
|
916
|
+
if (!Cr(t, r).length) {
|
|
917
917
|
n();
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
920
|
} catch (o) {
|
|
921
921
|
console.error(o);
|
|
922
922
|
}
|
|
923
|
-
n(),
|
|
923
|
+
n(), Zn(t);
|
|
924
924
|
}
|
|
925
925
|
function Ge(t, e) {
|
|
926
926
|
t instanceof Promise ? t.then((r) => {
|
|
@@ -929,21 +929,21 @@ function Ge(t, e) {
|
|
|
929
929
|
e(null);
|
|
930
930
|
}) : e(t);
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function eo(t, e) {
|
|
933
933
|
t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
|
|
934
934
|
t.iconsQueueFlag = !1;
|
|
935
935
|
const { provider: r, prefix: n } = t, o = t.iconsToLoad;
|
|
936
936
|
if (delete t.iconsToLoad, !o || !o.length) return;
|
|
937
|
-
const
|
|
938
|
-
if (t.loadIcons && (o.length > 1 || !
|
|
937
|
+
const a = t.loadIcon;
|
|
938
|
+
if (t.loadIcons && (o.length > 1 || !a)) {
|
|
939
939
|
Ge(t.loadIcons(o, n, r), (f) => {
|
|
940
940
|
jt(t, o, f);
|
|
941
941
|
});
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
|
-
if (
|
|
944
|
+
if (a) {
|
|
945
945
|
o.forEach((f) => {
|
|
946
|
-
const h =
|
|
946
|
+
const h = a(f, n, r);
|
|
947
947
|
Ge(h, (m) => {
|
|
948
948
|
const g = m ? {
|
|
949
949
|
prefix: n,
|
|
@@ -954,22 +954,22 @@ function ro(t, e) {
|
|
|
954
954
|
});
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
|
-
const { valid:
|
|
958
|
-
if (c.length && jt(t, c, null), !
|
|
959
|
-
const s = n.match(
|
|
957
|
+
const { valid: i, invalid: c } = to(o);
|
|
958
|
+
if (c.length && jt(t, c, null), !i.length) return;
|
|
959
|
+
const s = n.match(_r) ? we(r) : null;
|
|
960
960
|
if (!s) {
|
|
961
|
-
jt(t,
|
|
961
|
+
jt(t, i, null);
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
|
-
s.prepare(r, n,
|
|
965
|
-
|
|
964
|
+
s.prepare(r, n, i).forEach((f) => {
|
|
965
|
+
Xn(r, f, (h) => {
|
|
966
966
|
jt(t, f.icons, h);
|
|
967
967
|
});
|
|
968
968
|
});
|
|
969
969
|
}));
|
|
970
970
|
}
|
|
971
|
-
const
|
|
972
|
-
const r =
|
|
971
|
+
const ro = (t, e) => {
|
|
972
|
+
const r = Kn(t, !0, Fr()), n = Jn(r);
|
|
973
973
|
if (!n.pending.length) {
|
|
974
974
|
let s = !0;
|
|
975
975
|
return e && setTimeout(() => {
|
|
@@ -978,33 +978,33 @@ const no = (t, e) => {
|
|
|
978
978
|
s = !1;
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
const o = /* @__PURE__ */ Object.create(null),
|
|
982
|
-
let
|
|
981
|
+
const o = /* @__PURE__ */ Object.create(null), a = [];
|
|
982
|
+
let i, c;
|
|
983
983
|
return n.pending.forEach((s) => {
|
|
984
984
|
const { provider: d, prefix: f } = s;
|
|
985
|
-
if (f === c && d ===
|
|
986
|
-
|
|
985
|
+
if (f === c && d === i) return;
|
|
986
|
+
i = d, c = f, a.push(Nt(d, f));
|
|
987
987
|
const h = o[d] || (o[d] = /* @__PURE__ */ Object.create(null));
|
|
988
988
|
h[f] || (h[f] = []);
|
|
989
989
|
}), n.pending.forEach((s) => {
|
|
990
990
|
const { provider: d, prefix: f, name: h } = s, m = Nt(d, f), g = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
|
991
991
|
g.has(h) || (g.add(h), o[d][f].push(h));
|
|
992
|
-
}),
|
|
992
|
+
}), a.forEach((s) => {
|
|
993
993
|
const d = o[s.provider][s.prefix];
|
|
994
|
-
d.length &&
|
|
995
|
-
}), e ?
|
|
994
|
+
d.length && eo(s, d);
|
|
995
|
+
}), e ? Yn(e, n, a) : Ke;
|
|
996
996
|
};
|
|
997
|
-
function
|
|
997
|
+
function no(t, e) {
|
|
998
998
|
const r = { ...t };
|
|
999
999
|
for (const n in e) {
|
|
1000
|
-
const o = e[n],
|
|
1001
|
-
n in
|
|
1000
|
+
const o = e[n], a = typeof o;
|
|
1001
|
+
n in Nr ? (o === null || o && (a === "string" || a === "number")) && (r[n] = o) : a === typeof r[n] && (r[n] = n === "rotate" ? o % 4 : o);
|
|
1002
1002
|
}
|
|
1003
1003
|
return r;
|
|
1004
1004
|
}
|
|
1005
|
-
const
|
|
1005
|
+
const oo = /[\s,]+/;
|
|
1006
1006
|
function ao(t, e) {
|
|
1007
|
-
e.split(
|
|
1007
|
+
e.split(oo).forEach((r) => {
|
|
1008
1008
|
switch (r.trim()) {
|
|
1009
1009
|
case "horizontal":
|
|
1010
1010
|
t.hFlip = !0;
|
|
@@ -1015,7 +1015,7 @@ function ao(t, e) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function io(t, e = 0) {
|
|
1019
1019
|
const r = t.replace(/^-?[0-9.]*/, "");
|
|
1020
1020
|
function n(o) {
|
|
1021
1021
|
for (; o < 0; ) o += 4;
|
|
@@ -1034,50 +1034,50 @@ function so(t, e = 0) {
|
|
|
1034
1034
|
o = 90;
|
|
1035
1035
|
}
|
|
1036
1036
|
if (o) {
|
|
1037
|
-
let
|
|
1038
|
-
return isNaN(
|
|
1037
|
+
let a = parseFloat(t.slice(0, t.length - r.length));
|
|
1038
|
+
return isNaN(a) ? 0 : (a = a / o, a % 1 === 0 ? n(a) : 0);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
1041
|
return e;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function so(t, e) {
|
|
1044
1044
|
let r = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1045
1045
|
for (const n in e) r += " " + n + '="' + e[n] + '"';
|
|
1046
1046
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + r + ">" + t + "</svg>";
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function co(t) {
|
|
1049
1049
|
return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return "data:image/svg+xml," +
|
|
1051
|
+
function lo(t) {
|
|
1052
|
+
return "data:image/svg+xml," + co(t);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
return 'url("' +
|
|
1054
|
+
function uo(t) {
|
|
1055
|
+
return 'url("' + lo(t) + '")';
|
|
1056
1056
|
}
|
|
1057
1057
|
let Dt;
|
|
1058
|
-
function
|
|
1058
|
+
function fo() {
|
|
1059
1059
|
try {
|
|
1060
1060
|
Dt = window.trustedTypes.createPolicy("iconify", { createHTML: (t) => t });
|
|
1061
1061
|
} catch {
|
|
1062
1062
|
Dt = null;
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return Dt === void 0 &&
|
|
1065
|
+
function po(t) {
|
|
1066
|
+
return Dt === void 0 && fo(), Dt ? Dt.createHTML(t) : t;
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1069
|
-
...
|
|
1068
|
+
const Or = {
|
|
1069
|
+
...Er,
|
|
1070
1070
|
inline: !1
|
|
1071
|
-
},
|
|
1071
|
+
}, ho = {
|
|
1072
1072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1073
1073
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
1074
1074
|
"aria-hidden": !0,
|
|
1075
1075
|
role: "img"
|
|
1076
|
-
},
|
|
1076
|
+
}, mo = {
|
|
1077
1077
|
display: "inline-block"
|
|
1078
1078
|
}, ye = {
|
|
1079
1079
|
backgroundColor: "currentColor"
|
|
1080
|
-
},
|
|
1080
|
+
}, jr = {
|
|
1081
1081
|
backgroundColor: "transparent"
|
|
1082
1082
|
}, We = {
|
|
1083
1083
|
Image: "var(--svg)",
|
|
@@ -1086,23 +1086,23 @@ const jr = {
|
|
|
1086
1086
|
}, Qe = {
|
|
1087
1087
|
WebkitMask: ye,
|
|
1088
1088
|
mask: ye,
|
|
1089
|
-
background:
|
|
1089
|
+
background: jr
|
|
1090
1090
|
};
|
|
1091
1091
|
for (const t in Qe) {
|
|
1092
1092
|
const e = Qe[t];
|
|
1093
1093
|
for (const r in We)
|
|
1094
1094
|
e[t + r] = We[r];
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1097
|
-
...
|
|
1096
|
+
const go = {
|
|
1097
|
+
...Or,
|
|
1098
1098
|
inline: !0
|
|
1099
1099
|
};
|
|
1100
1100
|
function Xe(t) {
|
|
1101
1101
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1102
1102
|
}
|
|
1103
|
-
const
|
|
1104
|
-
const n = e.inline ?
|
|
1105
|
-
...
|
|
1103
|
+
const wo = (t, e, r) => {
|
|
1104
|
+
const n = e.inline ? go : Or, o = no(n, e), a = e.mode || "svg", i = {}, c = e.style || {}, s = {
|
|
1105
|
+
...a === "svg" ? ho : {}
|
|
1106
1106
|
};
|
|
1107
1107
|
if (r) {
|
|
1108
1108
|
const w = ee(r, !1, !0);
|
|
@@ -1149,11 +1149,11 @@ const yo = (t, e, r) => {
|
|
|
1149
1149
|
break;
|
|
1150
1150
|
// Color: copy to style
|
|
1151
1151
|
case "color":
|
|
1152
|
-
|
|
1152
|
+
i.color = k;
|
|
1153
1153
|
break;
|
|
1154
1154
|
// Rotation as string
|
|
1155
1155
|
case "rotate":
|
|
1156
|
-
typeof k == "string" ? o[w] =
|
|
1156
|
+
typeof k == "string" ? o[w] = io(k) : typeof k == "number" && (o[w] = k);
|
|
1157
1157
|
break;
|
|
1158
1158
|
// Remove aria-hidden
|
|
1159
1159
|
case "ariaHidden":
|
|
@@ -1165,34 +1165,34 @@ const yo = (t, e, r) => {
|
|
|
1165
1165
|
n[w] === void 0 && (s[w] = k);
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
const d =
|
|
1169
|
-
if (o.inline && (
|
|
1168
|
+
const d = Tn(t, o), f = d.attributes;
|
|
1169
|
+
if (o.inline && (i.verticalAlign = "-0.125em"), a === "svg") {
|
|
1170
1170
|
s.style = {
|
|
1171
|
-
...
|
|
1171
|
+
...i,
|
|
1172
1172
|
...c
|
|
1173
1173
|
}, Object.assign(s, f);
|
|
1174
1174
|
let w = 0, k = e.id;
|
|
1175
1175
|
return typeof k == "string" && (k = k.replace(/-/g, "_")), s.dangerouslySetInnerHTML = {
|
|
1176
|
-
__html:
|
|
1176
|
+
__html: po($n(d.body, k ? () => k + "ID" + w++ : "iconifyReact"))
|
|
1177
1177
|
}, fe("svg", s);
|
|
1178
1178
|
}
|
|
1179
|
-
const { body: h, width: m, height: g } = t, S =
|
|
1179
|
+
const { body: h, width: m, height: g } = t, S = a === "mask" || (a === "bg" ? !1 : h.indexOf("currentColor") !== -1), T = so(h, {
|
|
1180
1180
|
...f,
|
|
1181
1181
|
width: m + "",
|
|
1182
1182
|
height: g + ""
|
|
1183
1183
|
});
|
|
1184
1184
|
return s.style = {
|
|
1185
|
-
...
|
|
1186
|
-
"--svg":
|
|
1185
|
+
...i,
|
|
1186
|
+
"--svg": uo(T),
|
|
1187
1187
|
width: Xe(f.width),
|
|
1188
1188
|
height: Xe(f.height),
|
|
1189
|
-
...
|
|
1190
|
-
...S ? ye :
|
|
1189
|
+
...mo,
|
|
1190
|
+
...S ? ye : jr,
|
|
1191
1191
|
...c
|
|
1192
1192
|
}, fe("span", s);
|
|
1193
1193
|
};
|
|
1194
|
-
|
|
1195
|
-
|
|
1194
|
+
Fr(!0);
|
|
1195
|
+
An("", Rn);
|
|
1196
1196
|
if (typeof document < "u" && typeof window < "u") {
|
|
1197
1197
|
const t = window;
|
|
1198
1198
|
if (t.IconifyPreload !== void 0) {
|
|
@@ -1202,7 +1202,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1202
1202
|
// Check if item is an object and not null/array
|
|
1203
1203
|
(typeof n != "object" || n === null || n instanceof Array || // Check for 'icons' and 'prefix'
|
|
1204
1204
|
typeof n.icons != "object" || typeof n.prefix != "string" || // Add icon set
|
|
1205
|
-
!
|
|
1205
|
+
!Sn(n)) && console.error(r);
|
|
1206
1206
|
} catch {
|
|
1207
1207
|
console.error(r);
|
|
1208
1208
|
}
|
|
@@ -1217,16 +1217,16 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1217
1217
|
const o = e[r];
|
|
1218
1218
|
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1219
1219
|
continue;
|
|
1220
|
-
|
|
1220
|
+
Ln(r, o) || console.error(n);
|
|
1221
1221
|
} catch {
|
|
1222
1222
|
console.error(n);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function $r(t) {
|
|
1228
1228
|
const [e, r] = L(!!t.ssr), [n, o] = L({});
|
|
1229
|
-
function
|
|
1229
|
+
function a(g) {
|
|
1230
1230
|
if (g) {
|
|
1231
1231
|
const S = t.icon;
|
|
1232
1232
|
if (typeof S == "object")
|
|
@@ -1245,13 +1245,13 @@ function Ar(t) {
|
|
|
1245
1245
|
name: ""
|
|
1246
1246
|
};
|
|
1247
1247
|
}
|
|
1248
|
-
const [
|
|
1248
|
+
const [i, c] = L(a(!!t.ssr));
|
|
1249
1249
|
function s() {
|
|
1250
1250
|
const g = n.callback;
|
|
1251
1251
|
g && (g(), o({}));
|
|
1252
1252
|
}
|
|
1253
1253
|
function d(g) {
|
|
1254
|
-
if (JSON.stringify(
|
|
1254
|
+
if (JSON.stringify(i) !== JSON.stringify(g))
|
|
1255
1255
|
return s(), c(g), !0;
|
|
1256
1256
|
}
|
|
1257
1257
|
function f() {
|
|
@@ -1270,7 +1270,7 @@ function Ar(t) {
|
|
|
1270
1270
|
data: T
|
|
1271
1271
|
}))
|
|
1272
1272
|
if (T === void 0) {
|
|
1273
|
-
const w =
|
|
1273
|
+
const w = ro([S], f);
|
|
1274
1274
|
o({
|
|
1275
1275
|
callback: w
|
|
1276
1276
|
});
|
|
@@ -1279,50 +1279,50 @@ function Ar(t) {
|
|
|
1279
1279
|
lt(() => (r(!0), s), []), lt(() => {
|
|
1280
1280
|
e && f();
|
|
1281
1281
|
}, [t.icon, e]);
|
|
1282
|
-
const { name: h, data: m } =
|
|
1283
|
-
return m ?
|
|
1282
|
+
const { name: h, data: m } = i;
|
|
1283
|
+
return m ? wo({
|
|
1284
1284
|
...Se,
|
|
1285
1285
|
...m
|
|
1286
1286
|
}, t, h) : t.children ? t.children : t.fallback ? t.fallback : fe("span", {});
|
|
1287
1287
|
}
|
|
1288
|
-
|
|
1288
|
+
pr((t, e) => $r({
|
|
1289
1289
|
...t,
|
|
1290
1290
|
_ref: e
|
|
1291
1291
|
}));
|
|
1292
|
-
|
|
1292
|
+
pr((t, e) => $r({
|
|
1293
1293
|
inline: !0,
|
|
1294
1294
|
...t,
|
|
1295
1295
|
_ref: e
|
|
1296
1296
|
}));
|
|
1297
|
-
function
|
|
1297
|
+
function yo() {
|
|
1298
1298
|
const t = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [e, r] = L(t);
|
|
1299
1299
|
return lt(() => {
|
|
1300
1300
|
const n = () => r(t());
|
|
1301
1301
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
1302
1302
|
}, []), e;
|
|
1303
1303
|
}
|
|
1304
|
-
const
|
|
1304
|
+
const bo = ({
|
|
1305
1305
|
product: t
|
|
1306
1306
|
}) => {
|
|
1307
|
-
const e =
|
|
1307
|
+
const e = hr(), r = yo(), [n, o] = L(0), a = () => {
|
|
1308
1308
|
o(
|
|
1309
1309
|
(s) => s + r >= t.length ? 0 : s + r
|
|
1310
1310
|
);
|
|
1311
|
-
},
|
|
1311
|
+
}, i = () => {
|
|
1312
1312
|
o(
|
|
1313
1313
|
(s) => s - r < 0 ? t.length - (t.length % r || r) : s - r
|
|
1314
1314
|
);
|
|
1315
1315
|
}, c = async (s) => {
|
|
1316
|
-
const d = await
|
|
1316
|
+
const d = await vr(s);
|
|
1317
1317
|
e(he(d));
|
|
1318
1318
|
};
|
|
1319
1319
|
return /* @__PURE__ */ l("div", { className: "mt-2 overflow-x-hidden", children: /* @__PURE__ */ p("div", { className: "flex items-center justify-center gap-4 relative", children: [
|
|
1320
1320
|
(t == null ? void 0 : t.length) > r && /* @__PURE__ */ l(
|
|
1321
1321
|
"button",
|
|
1322
1322
|
{
|
|
1323
|
-
onClick:
|
|
1323
|
+
onClick: i,
|
|
1324
1324
|
className: "absolute z-50 left-0 text-[#000000] bg-[#ffffff] rounded-full p-2 flex items-center h-fit",
|
|
1325
|
-
children:
|
|
1325
|
+
children: "<"
|
|
1326
1326
|
}
|
|
1327
1327
|
),
|
|
1328
1328
|
/* @__PURE__ */ l("div", { className: "flex gap-5 justify-center flex-1 overflow-hidden", children: t.slice(n, n + r).map((s) => {
|
|
@@ -1373,7 +1373,7 @@ const xo = ({
|
|
|
1373
1373
|
)
|
|
1374
1374
|
] }),
|
|
1375
1375
|
/* @__PURE__ */ p("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
|
|
1376
|
-
/* @__PURE__ */ l("p", { children:
|
|
1376
|
+
/* @__PURE__ */ l("p", { children: hn(
|
|
1377
1377
|
s != null && s.price ? Number(s == null ? void 0 : s.price) : Ue(s).centAmount || 0,
|
|
1378
1378
|
(m = Ue(s)) == null ? void 0 : m.currencyCode
|
|
1379
1379
|
) }),
|
|
@@ -1393,13 +1393,13 @@ const xo = ({
|
|
|
1393
1393
|
(t == null ? void 0 : t.length) > r && /* @__PURE__ */ l(
|
|
1394
1394
|
"button",
|
|
1395
1395
|
{
|
|
1396
|
-
onClick:
|
|
1396
|
+
onClick: a,
|
|
1397
1397
|
className: "absolute z-50 right-0 text-[#000000] bg-[#ffffff] rounded-full p-2 flex items-center h-fit",
|
|
1398
|
-
children:
|
|
1398
|
+
children: ">"
|
|
1399
1399
|
}
|
|
1400
1400
|
)
|
|
1401
1401
|
] }) });
|
|
1402
|
-
},
|
|
1402
|
+
}, xo = ({ chat: t, storeDetails: e }) => /* @__PURE__ */ l("div", { className: "bg-[#FFFFFF] px-7 py-4 rounded-r-xl rounded-bl-2xl w-full", children: t.map((r, n) => /* @__PURE__ */ p(
|
|
1403
1403
|
"div",
|
|
1404
1404
|
{
|
|
1405
1405
|
className: "mb-4 p-3 rounded-xl",
|
|
@@ -1412,11 +1412,11 @@ const xo = ({
|
|
|
1412
1412
|
"div",
|
|
1413
1413
|
{
|
|
1414
1414
|
className: "font-nunitoSans font-bold text-sm text-[#494949] p-2 w-fit rounded-[20px]",
|
|
1415
|
-
children:
|
|
1415
|
+
children: mn(r.keyword) || "No keyword"
|
|
1416
1416
|
}
|
|
1417
1417
|
),
|
|
1418
1418
|
/* @__PURE__ */ l(
|
|
1419
|
-
|
|
1419
|
+
bo,
|
|
1420
1420
|
{
|
|
1421
1421
|
product: r.items,
|
|
1422
1422
|
storeDetails: e
|
|
@@ -1425,7 +1425,7 @@ const xo = ({
|
|
|
1425
1425
|
]
|
|
1426
1426
|
},
|
|
1427
1427
|
n
|
|
1428
|
-
)) }),
|
|
1428
|
+
)) }), Ar = async (t, e) => {
|
|
1429
1429
|
const { serverUrl: r, basePath: n } = wt(), o = `${r}`;
|
|
1430
1430
|
console.log(`customer_token
|
|
1431
1431
|
`, t);
|
|
@@ -1440,14 +1440,14 @@ const xo = ({
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
)).data;
|
|
1443
|
-
} catch (
|
|
1444
|
-
return z.isAxiosError(
|
|
1443
|
+
} catch (a) {
|
|
1444
|
+
return z.isAxiosError(a) ? console.error("Error creating basket:", a.response || a.message) : console.error("Unexpected error:", a), null;
|
|
1445
1445
|
}
|
|
1446
1446
|
}, Xt = async (t, e, r) => {
|
|
1447
|
-
const { serverUrl: n, basePath: o } = wt(),
|
|
1447
|
+
const { serverUrl: n, basePath: o } = wt(), a = `${n}`;
|
|
1448
1448
|
try {
|
|
1449
|
-
const
|
|
1450
|
-
`${
|
|
1449
|
+
const i = await z.post(
|
|
1450
|
+
`${a}${o}/basket/add-product/${t}?baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
|
|
1451
1451
|
e,
|
|
1452
1452
|
{
|
|
1453
1453
|
headers: {
|
|
@@ -1456,21 +1456,21 @@ const xo = ({
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
);
|
|
1459
|
-
return
|
|
1460
|
-
} catch (
|
|
1461
|
-
return z.isAxiosError(
|
|
1459
|
+
return i.status === 200 && i.data ? i.data : null;
|
|
1460
|
+
} catch (i) {
|
|
1461
|
+
return z.isAxiosError(i) ? console.error(
|
|
1462
1462
|
"Error adding products to basket:",
|
|
1463
|
-
|
|
1464
|
-
) : console.error("Unexpected error:",
|
|
1463
|
+
i.response || i.message
|
|
1464
|
+
) : console.error("Unexpected error:", i), null;
|
|
1465
1465
|
}
|
|
1466
|
-
},
|
|
1466
|
+
}, Lr = async ({
|
|
1467
1467
|
basketId: t,
|
|
1468
1468
|
customer_token: e
|
|
1469
1469
|
}) => {
|
|
1470
|
-
var
|
|
1470
|
+
var a;
|
|
1471
1471
|
const { serverUrl: r, basePath: n } = wt(), o = `${r}`;
|
|
1472
1472
|
try {
|
|
1473
|
-
const
|
|
1473
|
+
const i = await z.get(
|
|
1474
1474
|
`${o}${n}/basket/${t}?baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
|
|
1475
1475
|
{
|
|
1476
1476
|
headers: {
|
|
@@ -1479,35 +1479,35 @@ const xo = ({
|
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
);
|
|
1482
|
-
return { status:
|
|
1483
|
-
} catch (
|
|
1484
|
-
return z.isAxiosError(
|
|
1482
|
+
return { status: i.status, data: i.data };
|
|
1483
|
+
} catch (i) {
|
|
1484
|
+
return z.isAxiosError(i) ? { status: (a = i.response) == null ? void 0 : a.status, data: null } : { status: null, data: null };
|
|
1485
1485
|
}
|
|
1486
|
-
},
|
|
1486
|
+
}, Ze = "sfcc_basket_id", tr = "sfcc_customer_token", Mt = "sfcc_token_expiry", vo = 300 * 1e3, $t = "1.0.0";
|
|
1487
1487
|
const Ft = (t) => {
|
|
1488
1488
|
try {
|
|
1489
|
-
t ? localStorage.setItem(
|
|
1489
|
+
t ? localStorage.setItem(Ze, t) : localStorage.removeItem(Ze);
|
|
1490
1490
|
} catch (e) {
|
|
1491
1491
|
console.error("Error saving basket ID to storage:", e);
|
|
1492
1492
|
}
|
|
1493
1493
|
}, Zt = (t) => {
|
|
1494
1494
|
try {
|
|
1495
1495
|
if (t) {
|
|
1496
|
-
localStorage.setItem(
|
|
1497
|
-
const e = Date.now() +
|
|
1496
|
+
localStorage.setItem(tr, t);
|
|
1497
|
+
const e = Date.now() + vo;
|
|
1498
1498
|
localStorage.setItem(Mt, e.toString());
|
|
1499
1499
|
} else
|
|
1500
|
-
localStorage.removeItem(
|
|
1500
|
+
localStorage.removeItem(tr);
|
|
1501
1501
|
} catch (e) {
|
|
1502
1502
|
console.error("Error storing token:", e);
|
|
1503
1503
|
}
|
|
1504
|
-
},
|
|
1504
|
+
}, er = 300, ko = () => {
|
|
1505
1505
|
var c, s, d, f, h, m;
|
|
1506
|
-
const t =
|
|
1506
|
+
const t = hr(), e = Wt((g) => g.product.product), r = Wt((g) => g.store.store), [n, o] = L(!!e);
|
|
1507
1507
|
if (lt(() => {
|
|
1508
1508
|
o(!!e);
|
|
1509
1509
|
}, [e]), !e) return null;
|
|
1510
|
-
const
|
|
1510
|
+
const a = async () => {
|
|
1511
1511
|
var g, S, T, w, k, M, O, P, Q, _, j, V, X, U, B, yt;
|
|
1512
1512
|
console.log(e, "the prod");
|
|
1513
1513
|
try {
|
|
@@ -1540,17 +1540,17 @@ const Ft = (t) => {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
const qt = rt + 300 * 1e3;
|
|
1542
1542
|
if (Zt(R), localStorage.setItem(Mt, qt.toString()), ht) {
|
|
1543
|
-
const ot = await
|
|
1543
|
+
const ot = await Lr({
|
|
1544
1544
|
basketId: ht,
|
|
1545
1545
|
customer_token: R
|
|
1546
1546
|
});
|
|
1547
1547
|
if (console.log(ht, "basket id from customer"), ot.status === 200 && ot) {
|
|
1548
|
-
const
|
|
1548
|
+
const at = await Xt(
|
|
1549
1549
|
ht,
|
|
1550
1550
|
y,
|
|
1551
1551
|
R
|
|
1552
1552
|
);
|
|
1553
|
-
(((O =
|
|
1553
|
+
(((O = at == null ? void 0 : at.product_items) == null ? void 0 : O.length) > 0 || ((P = at == null ? void 0 : at.productItems) == null ? void 0 : P.length) > 0) && (W.success("Added to cart", {
|
|
1554
1554
|
position: "bottom-right",
|
|
1555
1555
|
autoClose: 3e3,
|
|
1556
1556
|
hideProgressBar: !1,
|
|
@@ -1570,7 +1570,7 @@ const Ft = (t) => {
|
|
|
1570
1570
|
]
|
|
1571
1571
|
};
|
|
1572
1572
|
console.log("before create basket");
|
|
1573
|
-
const v = await
|
|
1573
|
+
const v = await Ar(R, ne);
|
|
1574
1574
|
if (console.log(
|
|
1575
1575
|
v,
|
|
1576
1576
|
v == null ? void 0 : v.basket_id,
|
|
@@ -1612,7 +1612,7 @@ const Ft = (t) => {
|
|
|
1612
1612
|
} finally {
|
|
1613
1613
|
_t();
|
|
1614
1614
|
}
|
|
1615
|
-
},
|
|
1615
|
+
}, i = () => {
|
|
1616
1616
|
e && (window.location.href = e.c_pdpUrl);
|
|
1617
1617
|
};
|
|
1618
1618
|
return console.log(e, "the prod"), /* @__PURE__ */ p(pe, { children: [
|
|
@@ -1621,7 +1621,7 @@ const Ft = (t) => {
|
|
|
1621
1621
|
{
|
|
1622
1622
|
className: "fixed inset-0 z-40 bg-black/30",
|
|
1623
1623
|
onClick: () => {
|
|
1624
|
-
o(!1), setTimeout(() => t(he(null)),
|
|
1624
|
+
o(!1), setTimeout(() => t(he(null)), er);
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
1627
|
),
|
|
@@ -1646,7 +1646,7 @@ const Ft = (t) => {
|
|
|
1646
1646
|
onClick: () => {
|
|
1647
1647
|
o(!1), setTimeout(
|
|
1648
1648
|
() => t(he(null)),
|
|
1649
|
-
|
|
1649
|
+
er
|
|
1650
1650
|
);
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
@@ -1741,7 +1741,7 @@ const Ft = (t) => {
|
|
|
1741
1741
|
{
|
|
1742
1742
|
className: "rounded-[5px] shadow-sm text-[#FBFBFC] bg-[#6851C6] p-2 w-full text-center cursor-pointer",
|
|
1743
1743
|
style: { backgroundColor: r.tanyaThemeColor },
|
|
1744
|
-
onClick:
|
|
1744
|
+
onClick: a,
|
|
1745
1745
|
children: "Add to Cart"
|
|
1746
1746
|
}
|
|
1747
1747
|
),
|
|
@@ -1750,7 +1750,7 @@ const Ft = (t) => {
|
|
|
1750
1750
|
{
|
|
1751
1751
|
className: "rounded-[5px] shadow-sm text-[#FBFBFC] bg-[#6851C6] p-2 w-full text-center cursor-pointer mb-16",
|
|
1752
1752
|
style: { backgroundColor: r.tanyaThemeColor },
|
|
1753
|
-
onClick:
|
|
1753
|
+
onClick: i,
|
|
1754
1754
|
children: "View more"
|
|
1755
1755
|
}
|
|
1756
1756
|
)
|
|
@@ -1761,7 +1761,7 @@ const Ft = (t) => {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
)
|
|
1763
1763
|
] });
|
|
1764
|
-
},
|
|
1764
|
+
}, So = ({
|
|
1765
1765
|
tanyaConfig: t
|
|
1766
1766
|
}) => {
|
|
1767
1767
|
const e = [
|
|
@@ -1778,7 +1778,7 @@ const Ft = (t) => {
|
|
|
1778
1778
|
"Niece/Nephew": "his/her niece/nephew",
|
|
1779
1779
|
"My Friends": "his/her friends",
|
|
1780
1780
|
Others: "others"
|
|
1781
|
-
}, n = Pt(null), o = Pt(null),
|
|
1781
|
+
}, n = Pt(null), o = Pt(null), a = Pt(null), i = Pt(null), [c, s] = L(null), [d, f] = L(!1), [h, m] = L(!1), [g, S] = L(!1), [T, w] = L(!1), [k, M] = L(!1), [O, P] = L(!1), [Q, _] = L(""), [j, V] = L(""), X = (u) => ({
|
|
1782
1782
|
id: u.id,
|
|
1783
1783
|
title: u.name,
|
|
1784
1784
|
image: u.image ?? "",
|
|
@@ -1840,7 +1840,7 @@ const Ft = (t) => {
|
|
|
1840
1840
|
const u = JSON.parse(
|
|
1841
1841
|
sessionStorage.getItem("customerData") || "{}"
|
|
1842
1842
|
).customerId;
|
|
1843
|
-
return (await
|
|
1843
|
+
return (await pn(u || "")).c_interests;
|
|
1844
1844
|
}, nt = async (u, E) => {
|
|
1845
1845
|
console.log("in secondary flow", $t);
|
|
1846
1846
|
const I = await v();
|
|
@@ -1884,9 +1884,9 @@ const Ft = (t) => {
|
|
|
1884
1884
|
const tt = J.split(`
|
|
1885
1885
|
`);
|
|
1886
1886
|
J = tt.pop() || "";
|
|
1887
|
-
for (const
|
|
1888
|
-
if (
|
|
1889
|
-
const x =
|
|
1887
|
+
for (const it of tt)
|
|
1888
|
+
if (it.startsWith("data:")) {
|
|
1889
|
+
const x = it.slice(5).trim();
|
|
1890
1890
|
try {
|
|
1891
1891
|
const G = JSON.parse(x);
|
|
1892
1892
|
G.index === 0 && B(
|
|
@@ -1913,7 +1913,7 @@ const Ft = (t) => {
|
|
|
1913
1913
|
}, ot = async (u) => {
|
|
1914
1914
|
const E = u || Q.trim();
|
|
1915
1915
|
if (E) {
|
|
1916
|
-
M(!0), _(""), n.current = null, o.current = null,
|
|
1916
|
+
M(!0), _(""), n.current = null, o.current = null, a.current = null, i.current = null, B((I) => [
|
|
1917
1917
|
...I,
|
|
1918
1918
|
{
|
|
1919
1919
|
query: E,
|
|
@@ -1956,10 +1956,10 @@ const Ft = (t) => {
|
|
|
1956
1956
|
const { done: Z, value: tt } = await vt.read();
|
|
1957
1957
|
if (Z) break;
|
|
1958
1958
|
J += kt.decode(tt, { stream: !0 });
|
|
1959
|
-
const
|
|
1959
|
+
const it = J.split(`
|
|
1960
1960
|
`);
|
|
1961
|
-
J =
|
|
1962
|
-
for (const x of
|
|
1961
|
+
J = it.pop() || "";
|
|
1962
|
+
for (const x of it)
|
|
1963
1963
|
if (x.startsWith("data:")) {
|
|
1964
1964
|
const G = x.slice(5).trim();
|
|
1965
1965
|
try {
|
|
@@ -1977,19 +1977,19 @@ const Ft = (t) => {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
|
|
1980
|
+
Yr(at(K));
|
|
1981
1981
|
} catch (I) {
|
|
1982
1982
|
console.error("Error sending message to Tanya:", I);
|
|
1983
1983
|
} finally {
|
|
1984
1984
|
M(!1);
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
|
-
},
|
|
1987
|
+
}, at = (u) => {
|
|
1988
1988
|
const E = u.match(
|
|
1989
1989
|
/top five relevant product or category names are: (.*)/i
|
|
1990
1990
|
), b = (E ? E[1] : u).split(", ").map((H) => H.replace(/\s*(Toys|Bags|Miniature|etc\.*)\s*/gi, "").trim());
|
|
1991
1991
|
return [...new Set(b)].filter(Boolean).join(",");
|
|
1992
|
-
},
|
|
1992
|
+
}, Yr = async (u) => {
|
|
1993
1993
|
if (typeof u == "string") {
|
|
1994
1994
|
console.log(u, "keywords");
|
|
1995
1995
|
const E = u.split(",");
|
|
@@ -2009,9 +2009,9 @@ const Ft = (t) => {
|
|
|
2009
2009
|
)
|
|
2010
2010
|
), !n.current || o.current == null)) {
|
|
2011
2011
|
const b = F[0];
|
|
2012
|
-
n.current = String((b == null ? void 0 : b.product_name) ?? ""),
|
|
2012
|
+
n.current = String((b == null ? void 0 : b.product_name) ?? ""), a.current = b.image.link, o.current = b.product_id;
|
|
2013
2013
|
const C = typeof (b == null ? void 0 : b.price) == "number" ? b.price : void 0;
|
|
2014
|
-
|
|
2014
|
+
i.current = typeof C == "number" && Number.isFinite(C) ? C : null;
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
} else
|
|
@@ -2039,8 +2039,8 @@ const Ft = (t) => {
|
|
|
2039
2039
|
productSnapshot: {
|
|
2040
2040
|
id: o.current,
|
|
2041
2041
|
name: n.current,
|
|
2042
|
-
image:
|
|
2043
|
-
price:
|
|
2042
|
+
image: a.current,
|
|
2043
|
+
price: i.current ?? null,
|
|
2044
2044
|
points: 0,
|
|
2045
2045
|
quantity: 1
|
|
2046
2046
|
}
|
|
@@ -2053,11 +2053,11 @@ const Ft = (t) => {
|
|
|
2053
2053
|
(E == null ? void 0 : E.isGuest) == !1 ? (console.log("running secondary flow", $t), nt(n.current, 0)) : console.log("not running secondary flow", $t);
|
|
2054
2054
|
}
|
|
2055
2055
|
P(!1);
|
|
2056
|
-
},
|
|
2057
|
-
var I, F, b, C, H, bt, xt, Y, vt, kt, J, K, Z, tt,
|
|
2056
|
+
}, Jr = async (u, E) => {
|
|
2057
|
+
var I, F, b, C, H, bt, xt, Y, vt, kt, J, K, Z, tt, it;
|
|
2058
2058
|
w(!0);
|
|
2059
2059
|
try {
|
|
2060
|
-
const x = await
|
|
2060
|
+
const x = await vr(u.id);
|
|
2061
2061
|
if (!((F = (I = x == null ? void 0 : x.variants) == null ? void 0 : I[0]) != null && F.product_id || (C = (b = x == null ? void 0 : x.variants) == null ? void 0 : b[0]) != null && C.productId) && !(x.type.item || x.type.bundle)) {
|
|
2062
2062
|
w(!1), W.error("Variants not found", {
|
|
2063
2063
|
position: "bottom-right",
|
|
@@ -2076,17 +2076,17 @@ const Ft = (t) => {
|
|
|
2076
2076
|
sessionStorage.getItem("customerData") || "{}"
|
|
2077
2077
|
), q = $ == null ? void 0 : $.basketId, st = !1, Rt = localStorage.getItem(Mt), $e = Date.now();
|
|
2078
2078
|
if (!st || !Rt || $e >= parseInt(Rt)) {
|
|
2079
|
-
const
|
|
2080
|
-
let { customer_token: mt } = await
|
|
2081
|
-
|
|
2079
|
+
const Kr = await br();
|
|
2080
|
+
let { customer_token: mt } = await xr(
|
|
2081
|
+
Kr
|
|
2082
2082
|
);
|
|
2083
2083
|
if (mt = "Bearer " + c.access_token, !mt) {
|
|
2084
2084
|
console.error("Failed to get customer_token");
|
|
2085
2085
|
return;
|
|
2086
2086
|
}
|
|
2087
|
-
const
|
|
2088
|
-
if (Zt(mt), localStorage.setItem(Mt,
|
|
2089
|
-
const Ae = await
|
|
2087
|
+
const Gr = $e + 300 * 1e3;
|
|
2088
|
+
if (Zt(mt), localStorage.setItem(Mt, Gr.toString()), q) {
|
|
2089
|
+
const Ae = await Lr({
|
|
2090
2090
|
basketId: q,
|
|
2091
2091
|
customer_token: mt
|
|
2092
2092
|
});
|
|
@@ -2107,14 +2107,14 @@ const Ft = (t) => {
|
|
|
2107
2107
|
return;
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
|
-
const
|
|
2110
|
+
const Wr = {
|
|
2111
2111
|
productItems: [
|
|
2112
2112
|
{
|
|
2113
2113
|
productId: ((Y = x.variants) == null ? void 0 : Y[0].product_id) || ((vt = x.variants) == null ? void 0 : vt[0].productId) || (x == null ? void 0 : x.id),
|
|
2114
2114
|
quantity: 1
|
|
2115
2115
|
}
|
|
2116
2116
|
]
|
|
2117
|
-
}, N = await
|
|
2117
|
+
}, N = await Ar(mt, Wr);
|
|
2118
2118
|
if (console.log(
|
|
2119
2119
|
N,
|
|
2120
2120
|
N == null ? void 0 : N.basket_id,
|
|
@@ -2146,7 +2146,7 @@ const Ft = (t) => {
|
|
|
2146
2146
|
position: "bottom-right",
|
|
2147
2147
|
autoClose: 3e3
|
|
2148
2148
|
}), ((K = x == null ? void 0 : x.response) == null ? void 0 : K.status) === 404 || // Basket not found
|
|
2149
|
-
((Z = x == null ? void 0 : x.response) == null ? void 0 : Z.status) === 401 ? (((tt = x == null ? void 0 : x.response) == null ? void 0 : tt.status) === 404 && Ft(null), ((
|
|
2149
|
+
((Z = x == null ? void 0 : x.response) == null ? void 0 : Z.status) === 401 ? (((tt = x == null ? void 0 : x.response) == null ? void 0 : tt.status) === 404 && Ft(null), ((it = x == null ? void 0 : x.response) == null ? void 0 : it.status) === 401 && (Ft(null), Zt(null))) : (console.error("Failed to add product to basket:", x.message), W.error("Failed to add product to cart", {
|
|
2150
2150
|
position: "bottom-right",
|
|
2151
2151
|
autoClose: 3e3
|
|
2152
2152
|
}));
|
|
@@ -2155,9 +2155,9 @@ const Ft = (t) => {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
w(!1);
|
|
2157
2157
|
};
|
|
2158
|
-
return /* @__PURE__ */ l("div", { className: "relative flex justify-center", children: /* @__PURE__ */ p(
|
|
2158
|
+
return /* @__PURE__ */ l("div", { className: "relative flex justify-center", children: /* @__PURE__ */ p(dn, { open: d, onOpenChange: f, children: [
|
|
2159
2159
|
/* @__PURE__ */ l(
|
|
2160
|
-
|
|
2160
|
+
fn,
|
|
2161
2161
|
{
|
|
2162
2162
|
onClick: () => f(!0),
|
|
2163
2163
|
style: {
|
|
@@ -2406,7 +2406,7 @@ const Ft = (t) => {
|
|
|
2406
2406
|
{
|
|
2407
2407
|
className: "font-nunitoSans animate-pulse font-bold text-sm text-[#494949] bg-[#FFFFFF] px-7 py-1 rounded-r-xl rounded-bl-2xl w-full",
|
|
2408
2408
|
dangerouslySetInnerHTML: {
|
|
2409
|
-
__html:
|
|
2409
|
+
__html: ae(u.response)
|
|
2410
2410
|
}
|
|
2411
2411
|
}
|
|
2412
2412
|
) }) : /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
@@ -2414,13 +2414,13 @@ const Ft = (t) => {
|
|
|
2414
2414
|
{
|
|
2415
2415
|
className: "font-nunitoSans font-bold text-sm text-[#494949] bg-[#FFFFFF] px-7 py-1 rounded-r-xl rounded-bl-2xl w-full",
|
|
2416
2416
|
dangerouslySetInnerHTML: {
|
|
2417
|
-
__html:
|
|
2417
|
+
__html: ae(u.response)
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
2420
|
) }),
|
|
2421
2421
|
O && !u.response.includes("Thinking") && ((I = u.products) == null ? void 0 : I.length) == 0 && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("p", { className: "text-sm animate-pulse font-nunitoSans font-bold text-[#000000] bg-[#E2DBFF] border border-[#C9C2DE] rounded-l-xl p-2 m-3 mb-4 rounded-br-xl max-w-[75%]", children: "Finding best products for you" }) }),
|
|
2422
2422
|
(u == null ? void 0 : u.products) && ((F = u == null ? void 0 : u.products) == null ? void 0 : F.length) > 0 && /* @__PURE__ */ l(
|
|
2423
|
-
|
|
2423
|
+
xo,
|
|
2424
2424
|
{
|
|
2425
2425
|
chat: u.products,
|
|
2426
2426
|
storeDetails: y
|
|
@@ -2490,7 +2490,7 @@ const Ft = (t) => {
|
|
|
2490
2490
|
backgroundColor: y.tanyaThemeColorLight
|
|
2491
2491
|
},
|
|
2492
2492
|
dangerouslySetInnerHTML: {
|
|
2493
|
-
__html:
|
|
2493
|
+
__html: ae(
|
|
2494
2494
|
u.secondaryResponse
|
|
2495
2495
|
)
|
|
2496
2496
|
}
|
|
@@ -2598,7 +2598,7 @@ const Ft = (t) => {
|
|
|
2598
2598
|
"button",
|
|
2599
2599
|
{
|
|
2600
2600
|
onClick: () => {
|
|
2601
|
-
|
|
2601
|
+
Jr(
|
|
2602
2602
|
X(
|
|
2603
2603
|
u.productSnapshot
|
|
2604
2604
|
),
|
|
@@ -2689,7 +2689,7 @@ const Ft = (t) => {
|
|
|
2689
2689
|
]
|
|
2690
2690
|
}
|
|
2691
2691
|
),
|
|
2692
|
-
/* @__PURE__ */ l(
|
|
2692
|
+
/* @__PURE__ */ l(ko, {})
|
|
2693
2693
|
] })
|
|
2694
2694
|
]
|
|
2695
2695
|
}
|
|
@@ -2704,7 +2704,7 @@ var be = function(t, e) {
|
|
|
2704
2704
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
2705
2705
|
}, be(t, e);
|
|
2706
2706
|
};
|
|
2707
|
-
function
|
|
2707
|
+
function Io(t, e) {
|
|
2708
2708
|
if (typeof e != "function" && e !== null)
|
|
2709
2709
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
2710
2710
|
be(t, e);
|
|
@@ -2717,12 +2717,12 @@ var ct = function() {
|
|
|
2717
2717
|
return ct = Object.assign || function(e) {
|
|
2718
2718
|
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
2719
2719
|
r = arguments[n];
|
|
2720
|
-
for (var
|
|
2720
|
+
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
|
|
2721
2721
|
}
|
|
2722
2722
|
return e;
|
|
2723
2723
|
}, ct.apply(this, arguments);
|
|
2724
2724
|
};
|
|
2725
|
-
function
|
|
2725
|
+
function Co(t, e) {
|
|
2726
2726
|
var r = {};
|
|
2727
2727
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
2728
2728
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2730,28 +2730,28 @@ function _o(t, e) {
|
|
|
2730
2730
|
e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (r[n[o]] = t[n[o]]);
|
|
2731
2731
|
return r;
|
|
2732
2732
|
}
|
|
2733
|
-
var ce = "Invariant Violation",
|
|
2733
|
+
var ce = "Invariant Violation", rr = Object.setPrototypeOf, _o = rr === void 0 ? function(t, e) {
|
|
2734
2734
|
return t.__proto__ = e, t;
|
|
2735
|
-
} :
|
|
2735
|
+
} : rr, Dr = (
|
|
2736
2736
|
/** @class */
|
|
2737
2737
|
(function(t) {
|
|
2738
|
-
|
|
2738
|
+
Io(e, t);
|
|
2739
2739
|
function e(r) {
|
|
2740
2740
|
r === void 0 && (r = ce);
|
|
2741
2741
|
var n = t.call(this, typeof r == "number" ? ce + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
2742
|
-
return n.framesToPop = 1, n.name = ce,
|
|
2742
|
+
return n.framesToPop = 1, n.name = ce, _o(n, e.prototype), n;
|
|
2743
2743
|
}
|
|
2744
2744
|
return e;
|
|
2745
2745
|
})(Error)
|
|
2746
2746
|
);
|
|
2747
2747
|
function gt(t, e) {
|
|
2748
2748
|
if (!t)
|
|
2749
|
-
throw new
|
|
2749
|
+
throw new Dr(e);
|
|
2750
2750
|
}
|
|
2751
|
-
var
|
|
2751
|
+
var zr = ["debug", "log", "warn", "error", "silent"], Fo = zr.indexOf("log");
|
|
2752
2752
|
function Ht(t) {
|
|
2753
2753
|
return function() {
|
|
2754
|
-
if (
|
|
2754
|
+
if (zr.indexOf(t) >= Fo) {
|
|
2755
2755
|
var e = console[t] || console.log;
|
|
2756
2756
|
return e.apply(console, arguments);
|
|
2757
2757
|
}
|
|
@@ -2760,7 +2760,7 @@ function Ht(t) {
|
|
|
2760
2760
|
(function(t) {
|
|
2761
2761
|
t.debug = Ht("debug"), t.log = Ht("log"), t.warn = Ht("warn"), t.error = Ht("error");
|
|
2762
2762
|
})(gt || (gt = {}));
|
|
2763
|
-
var
|
|
2763
|
+
var Mr = "3.14.0";
|
|
2764
2764
|
function It(t) {
|
|
2765
2765
|
try {
|
|
2766
2766
|
return t();
|
|
@@ -2784,13 +2784,13 @@ const xe = It(function() {
|
|
|
2784
2784
|
It(function() {
|
|
2785
2785
|
return It.constructor("return this")();
|
|
2786
2786
|
});
|
|
2787
|
-
var
|
|
2788
|
-
function
|
|
2789
|
-
var e =
|
|
2790
|
-
return
|
|
2787
|
+
var nr = /* @__PURE__ */ new Map();
|
|
2788
|
+
function No(t) {
|
|
2789
|
+
var e = nr.get(t) || 1;
|
|
2790
|
+
return nr.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
|
|
2791
2791
|
}
|
|
2792
|
-
function
|
|
2793
|
-
var r =
|
|
2792
|
+
function Eo(t, e) {
|
|
2793
|
+
var r = No("stringifyForDisplay");
|
|
2794
2794
|
return JSON.stringify(t, function(n, o) {
|
|
2795
2795
|
return o === void 0 ? r : o;
|
|
2796
2796
|
}, e).split(JSON.stringify(r)).join("<undefined>");
|
|
@@ -2816,34 +2816,34 @@ var le = Object.assign(function(e, r) {
|
|
|
2816
2816
|
warn: Vt(gt.warn),
|
|
2817
2817
|
error: Vt(gt.error)
|
|
2818
2818
|
});
|
|
2819
|
-
function
|
|
2819
|
+
function Ur(t) {
|
|
2820
2820
|
for (var e = [], r = 1; r < arguments.length; r++)
|
|
2821
2821
|
e[r - 1] = arguments[r];
|
|
2822
|
-
return new
|
|
2822
|
+
return new Dr(Fe(t, e) || Ne(t, e));
|
|
2823
2823
|
}
|
|
2824
|
-
var
|
|
2825
|
-
function
|
|
2824
|
+
var or = Symbol.for("ApolloErrorMessageHandler_" + Mr);
|
|
2825
|
+
function Br(t) {
|
|
2826
2826
|
if (typeof t == "string")
|
|
2827
2827
|
return t;
|
|
2828
2828
|
try {
|
|
2829
|
-
return
|
|
2829
|
+
return Eo(t, 2).slice(0, 1e3);
|
|
2830
2830
|
} catch {
|
|
2831
2831
|
return "<non-serializable>";
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
2834
2834
|
function Fe(t, e) {
|
|
2835
2835
|
if (e === void 0 && (e = []), !!t)
|
|
2836
|
-
return xe[
|
|
2836
|
+
return xe[or] && xe[or](t, e.map(Br));
|
|
2837
2837
|
}
|
|
2838
2838
|
function Ne(t, e) {
|
|
2839
2839
|
if (e === void 0 && (e = []), !!t)
|
|
2840
2840
|
return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
|
|
2841
|
-
version:
|
|
2841
|
+
version: Mr,
|
|
2842
2842
|
message: t,
|
|
2843
|
-
args: e.map(
|
|
2843
|
+
args: e.map(Br)
|
|
2844
2844
|
})));
|
|
2845
2845
|
}
|
|
2846
|
-
function
|
|
2846
|
+
function To(t) {
|
|
2847
2847
|
return t.definitions.filter(function(e) {
|
|
2848
2848
|
return e.kind === "OperationDefinition" && !!e.name;
|
|
2849
2849
|
}).map(function(e) {
|
|
@@ -2852,12 +2852,12 @@ function Po(t) {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
let A = null;
|
|
2854
2854
|
const ar = {};
|
|
2855
|
-
let
|
|
2856
|
-
const
|
|
2855
|
+
let Po = 1;
|
|
2856
|
+
const Oo = () => class {
|
|
2857
2857
|
constructor() {
|
|
2858
2858
|
this.id = [
|
|
2859
2859
|
"slot",
|
|
2860
|
-
|
|
2860
|
+
Po++,
|
|
2861
2861
|
Date.now(),
|
|
2862
2862
|
Math.random().toString(36).slice(2)
|
|
2863
2863
|
].join(":");
|
|
@@ -2877,15 +2877,15 @@ const jo = () => class {
|
|
|
2877
2877
|
return A.slots[this.id];
|
|
2878
2878
|
}
|
|
2879
2879
|
withValue(e, r, n, o) {
|
|
2880
|
-
const
|
|
2880
|
+
const a = {
|
|
2881
2881
|
__proto__: null,
|
|
2882
2882
|
[this.id]: e
|
|
2883
|
-
},
|
|
2884
|
-
A = { parent:
|
|
2883
|
+
}, i = A;
|
|
2884
|
+
A = { parent: i, slots: a };
|
|
2885
2885
|
try {
|
|
2886
2886
|
return r.apply(o, n);
|
|
2887
2887
|
} finally {
|
|
2888
|
-
A =
|
|
2888
|
+
A = i;
|
|
2889
2889
|
}
|
|
2890
2890
|
}
|
|
2891
2891
|
// Capture the current context and wrap a callback function so that it
|
|
@@ -2914,27 +2914,27 @@ const jo = () => class {
|
|
|
2914
2914
|
return e.apply(n, r);
|
|
2915
2915
|
}
|
|
2916
2916
|
};
|
|
2917
|
-
function
|
|
2917
|
+
function ir(t) {
|
|
2918
2918
|
try {
|
|
2919
2919
|
return t();
|
|
2920
2920
|
} catch {
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
|
-
const ue = "@wry/context:Slot",
|
|
2923
|
+
const ue = "@wry/context:Slot", jo = (
|
|
2924
2924
|
// Prefer globalThis when available.
|
|
2925
2925
|
// https://github.com/benjamn/wryware/issues/347
|
|
2926
|
-
|
|
2926
|
+
ir(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
|
|
2927
2927
|
// bundlers to the appropriate identifier (window, self, ...) depending on the
|
|
2928
2928
|
// bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224
|
|
2929
|
-
|
|
2929
|
+
ir(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
|
|
2930
2930
|
// back to using the Array constructor as a namespace, but that was flagged in
|
|
2931
2931
|
// https://github.com/benjamn/wryware/issues/347, and can be avoided.
|
|
2932
2932
|
/* @__PURE__ */ Object.create(null)
|
|
2933
|
-
),
|
|
2933
|
+
), sr = jo, Ee = sr[ue] || // Earlier versions of this package stored the globalKey property on the Array
|
|
2934
2934
|
// constructor, so we check there as well, to prevent Slot class duplication.
|
|
2935
2935
|
Array[ue] || (function(t) {
|
|
2936
2936
|
try {
|
|
2937
|
-
Object.defineProperty(
|
|
2937
|
+
Object.defineProperty(sr, ue, {
|
|
2938
2938
|
value: t,
|
|
2939
2939
|
enumerable: !1,
|
|
2940
2940
|
writable: !1,
|
|
@@ -2949,12 +2949,12 @@ Array[ue] || (function(t) {
|
|
|
2949
2949
|
} finally {
|
|
2950
2950
|
return t;
|
|
2951
2951
|
}
|
|
2952
|
-
})(
|
|
2952
|
+
})(Oo()), { bind: ga, noContext: wa } = Ee;
|
|
2953
2953
|
new Ee();
|
|
2954
|
-
function
|
|
2954
|
+
function $o(t, e) {
|
|
2955
2955
|
var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2956
2956
|
if (r) return (r = r.call(t)).next.bind(r);
|
|
2957
|
-
if (Array.isArray(t) || (r =
|
|
2957
|
+
if (Array.isArray(t) || (r = Ao(t)) || e) {
|
|
2958
2958
|
r && (t = r);
|
|
2959
2959
|
var n = 0;
|
|
2960
2960
|
return function() {
|
|
@@ -2964,28 +2964,28 @@ function Ao(t, e) {
|
|
|
2964
2964
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2965
2965
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2966
2966
|
}
|
|
2967
|
-
function
|
|
2967
|
+
function Ao(t, e) {
|
|
2968
2968
|
if (t) {
|
|
2969
|
-
if (typeof t == "string") return
|
|
2969
|
+
if (typeof t == "string") return cr(t, e);
|
|
2970
2970
|
var r = Object.prototype.toString.call(t).slice(8, -1);
|
|
2971
2971
|
if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t);
|
|
2972
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
2972
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return cr(t, e);
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function cr(t, e) {
|
|
2976
2976
|
(e == null || e > t.length) && (e = t.length);
|
|
2977
2977
|
for (var r = 0, n = new Array(e); r < e; r++)
|
|
2978
2978
|
n[r] = t[r];
|
|
2979
2979
|
return n;
|
|
2980
2980
|
}
|
|
2981
|
-
function
|
|
2981
|
+
function lr(t, e) {
|
|
2982
2982
|
for (var r = 0; r < e.length; r++) {
|
|
2983
2983
|
var n = e[r];
|
|
2984
2984
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
|
|
2985
2985
|
}
|
|
2986
2986
|
}
|
|
2987
2987
|
function Te(t, e, r) {
|
|
2988
|
-
return e &&
|
|
2988
|
+
return e && lr(t.prototype, e), r && lr(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2989
2989
|
}
|
|
2990
2990
|
var Pe = function() {
|
|
2991
2991
|
return typeof Symbol == "function";
|
|
@@ -2995,7 +2995,7 @@ var Pe = function() {
|
|
|
2995
2995
|
return Oe(t) ? Symbol[t] : "@@" + t;
|
|
2996
2996
|
};
|
|
2997
2997
|
Pe() && !Oe("observable") && (Symbol.observable = Symbol("observable"));
|
|
2998
|
-
var
|
|
2998
|
+
var Lo = je("iterator"), ve = je("observable"), qr = je("species");
|
|
2999
2999
|
function te(t, e) {
|
|
3000
3000
|
var r = t[e];
|
|
3001
3001
|
if (r != null) {
|
|
@@ -3005,9 +3005,9 @@ function te(t, e) {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
function At(t) {
|
|
3007
3007
|
var e = t.constructor;
|
|
3008
|
-
return e !== void 0 && (e = e[
|
|
3008
|
+
return e !== void 0 && (e = e[qr], e === null && (e = void 0)), e !== void 0 ? e : D;
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function Do(t) {
|
|
3011
3011
|
return t instanceof D;
|
|
3012
3012
|
}
|
|
3013
3013
|
function Et(t) {
|
|
@@ -3024,7 +3024,7 @@ function Gt(t) {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
});
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3027
|
+
function Rr(t) {
|
|
3028
3028
|
var e = t._cleanup;
|
|
3029
3029
|
if (e !== void 0 && (t._cleanup = void 0, !!e))
|
|
3030
3030
|
try {
|
|
@@ -3041,15 +3041,15 @@ function Hr(t) {
|
|
|
3041
3041
|
function ke(t) {
|
|
3042
3042
|
t._observer = void 0, t._queue = void 0, t._state = "closed";
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function zo(t) {
|
|
3045
3045
|
var e = t._queue;
|
|
3046
3046
|
if (e) {
|
|
3047
3047
|
t._queue = void 0, t._state = "ready";
|
|
3048
|
-
for (var r = 0; r < e.length && (
|
|
3048
|
+
for (var r = 0; r < e.length && (Hr(t, e[r].type, e[r].value), t._state !== "closed"); ++r)
|
|
3049
3049
|
;
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
3052
|
-
function
|
|
3052
|
+
function Hr(t, e, r) {
|
|
3053
3053
|
t._state = "running";
|
|
3054
3054
|
var n = t._observer;
|
|
3055
3055
|
try {
|
|
@@ -3066,10 +3066,10 @@ function Vr(t, e, r) {
|
|
|
3066
3066
|
ke(t), o && o.call(n);
|
|
3067
3067
|
break;
|
|
3068
3068
|
}
|
|
3069
|
-
} catch (
|
|
3070
|
-
Et(
|
|
3069
|
+
} catch (a) {
|
|
3070
|
+
Et(a);
|
|
3071
3071
|
}
|
|
3072
|
-
t._state === "closed" ?
|
|
3072
|
+
t._state === "closed" ? Rr(t) : t._state === "running" && (t._state = "ready");
|
|
3073
3073
|
}
|
|
3074
3074
|
function de(t, e, r) {
|
|
3075
3075
|
if (t._state !== "closed") {
|
|
@@ -3085,34 +3085,34 @@ function de(t, e, r) {
|
|
|
3085
3085
|
type: e,
|
|
3086
3086
|
value: r
|
|
3087
3087
|
}], Gt(function() {
|
|
3088
|
-
return
|
|
3088
|
+
return zo(t);
|
|
3089
3089
|
});
|
|
3090
3090
|
return;
|
|
3091
3091
|
}
|
|
3092
|
-
|
|
3092
|
+
Hr(t, e, r);
|
|
3093
3093
|
}
|
|
3094
3094
|
}
|
|
3095
|
-
var
|
|
3095
|
+
var Mo = /* @__PURE__ */ (function() {
|
|
3096
3096
|
function t(r, n) {
|
|
3097
3097
|
this._cleanup = void 0, this._observer = r, this._queue = void 0, this._state = "initializing";
|
|
3098
|
-
var o = new
|
|
3098
|
+
var o = new Uo(this);
|
|
3099
3099
|
try {
|
|
3100
3100
|
this._cleanup = n.call(void 0, o);
|
|
3101
|
-
} catch (
|
|
3102
|
-
o.error(
|
|
3101
|
+
} catch (a) {
|
|
3102
|
+
o.error(a);
|
|
3103
3103
|
}
|
|
3104
3104
|
this._state === "initializing" && (this._state = "ready");
|
|
3105
3105
|
}
|
|
3106
3106
|
var e = t.prototype;
|
|
3107
3107
|
return e.unsubscribe = function() {
|
|
3108
|
-
this._state !== "closed" && (ke(this),
|
|
3108
|
+
this._state !== "closed" && (ke(this), Rr(this));
|
|
3109
3109
|
}, Te(t, [{
|
|
3110
3110
|
key: "closed",
|
|
3111
3111
|
get: function() {
|
|
3112
3112
|
return this._state === "closed";
|
|
3113
3113
|
}
|
|
3114
3114
|
}]), t;
|
|
3115
|
-
})(),
|
|
3115
|
+
})(), Uo = /* @__PURE__ */ (function() {
|
|
3116
3116
|
function t(r) {
|
|
3117
3117
|
this._subscription = r;
|
|
3118
3118
|
}
|
|
@@ -3141,82 +3141,82 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3141
3141
|
next: n,
|
|
3142
3142
|
error: arguments[1],
|
|
3143
3143
|
complete: arguments[2]
|
|
3144
|
-
}), new
|
|
3144
|
+
}), new Mo(n, this._subscriber);
|
|
3145
3145
|
}, e.forEach = function(n) {
|
|
3146
3146
|
var o = this;
|
|
3147
|
-
return new Promise(function(
|
|
3147
|
+
return new Promise(function(a, i) {
|
|
3148
3148
|
if (typeof n != "function") {
|
|
3149
|
-
|
|
3149
|
+
i(new TypeError(n + " is not a function"));
|
|
3150
3150
|
return;
|
|
3151
3151
|
}
|
|
3152
3152
|
function c() {
|
|
3153
|
-
s.unsubscribe(),
|
|
3153
|
+
s.unsubscribe(), a();
|
|
3154
3154
|
}
|
|
3155
3155
|
var s = o.subscribe({
|
|
3156
3156
|
next: function(d) {
|
|
3157
3157
|
try {
|
|
3158
3158
|
n(d, c);
|
|
3159
3159
|
} catch (f) {
|
|
3160
|
-
|
|
3160
|
+
i(f), s.unsubscribe();
|
|
3161
3161
|
}
|
|
3162
3162
|
},
|
|
3163
|
-
error:
|
|
3164
|
-
complete:
|
|
3163
|
+
error: i,
|
|
3164
|
+
complete: a
|
|
3165
3165
|
});
|
|
3166
3166
|
});
|
|
3167
3167
|
}, e.map = function(n) {
|
|
3168
3168
|
var o = this;
|
|
3169
3169
|
if (typeof n != "function") throw new TypeError(n + " is not a function");
|
|
3170
|
-
var
|
|
3171
|
-
return new
|
|
3170
|
+
var a = At(this);
|
|
3171
|
+
return new a(function(i) {
|
|
3172
3172
|
return o.subscribe({
|
|
3173
3173
|
next: function(c) {
|
|
3174
3174
|
try {
|
|
3175
3175
|
c = n(c);
|
|
3176
3176
|
} catch (s) {
|
|
3177
|
-
return
|
|
3177
|
+
return i.error(s);
|
|
3178
3178
|
}
|
|
3179
|
-
|
|
3179
|
+
i.next(c);
|
|
3180
3180
|
},
|
|
3181
3181
|
error: function(c) {
|
|
3182
|
-
|
|
3182
|
+
i.error(c);
|
|
3183
3183
|
},
|
|
3184
3184
|
complete: function() {
|
|
3185
|
-
|
|
3185
|
+
i.complete();
|
|
3186
3186
|
}
|
|
3187
3187
|
});
|
|
3188
3188
|
});
|
|
3189
3189
|
}, e.filter = function(n) {
|
|
3190
3190
|
var o = this;
|
|
3191
3191
|
if (typeof n != "function") throw new TypeError(n + " is not a function");
|
|
3192
|
-
var
|
|
3193
|
-
return new
|
|
3192
|
+
var a = At(this);
|
|
3193
|
+
return new a(function(i) {
|
|
3194
3194
|
return o.subscribe({
|
|
3195
3195
|
next: function(c) {
|
|
3196
3196
|
try {
|
|
3197
3197
|
if (!n(c)) return;
|
|
3198
3198
|
} catch (s) {
|
|
3199
|
-
return
|
|
3199
|
+
return i.error(s);
|
|
3200
3200
|
}
|
|
3201
|
-
|
|
3201
|
+
i.next(c);
|
|
3202
3202
|
},
|
|
3203
3203
|
error: function(c) {
|
|
3204
|
-
|
|
3204
|
+
i.error(c);
|
|
3205
3205
|
},
|
|
3206
3206
|
complete: function() {
|
|
3207
|
-
|
|
3207
|
+
i.complete();
|
|
3208
3208
|
}
|
|
3209
3209
|
});
|
|
3210
3210
|
});
|
|
3211
3211
|
}, e.reduce = function(n) {
|
|
3212
3212
|
var o = this;
|
|
3213
3213
|
if (typeof n != "function") throw new TypeError(n + " is not a function");
|
|
3214
|
-
var
|
|
3215
|
-
return new
|
|
3214
|
+
var a = At(this), i = arguments.length > 1, c = !1, s = arguments[1], d = s;
|
|
3215
|
+
return new a(function(f) {
|
|
3216
3216
|
return o.subscribe({
|
|
3217
3217
|
next: function(h) {
|
|
3218
3218
|
var m = !c;
|
|
3219
|
-
if (c = !0, !m ||
|
|
3219
|
+
if (c = !0, !m || i)
|
|
3220
3220
|
try {
|
|
3221
3221
|
d = n(d, h);
|
|
3222
3222
|
} catch (g) {
|
|
@@ -3229,14 +3229,14 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3229
3229
|
f.error(h);
|
|
3230
3230
|
},
|
|
3231
3231
|
complete: function() {
|
|
3232
|
-
if (!c && !
|
|
3232
|
+
if (!c && !i) return f.error(new TypeError("Cannot reduce an empty sequence"));
|
|
3233
3233
|
f.next(d), f.complete();
|
|
3234
3234
|
}
|
|
3235
3235
|
});
|
|
3236
3236
|
});
|
|
3237
3237
|
}, e.concat = function() {
|
|
3238
|
-
for (var n = this, o = arguments.length,
|
|
3239
|
-
i
|
|
3238
|
+
for (var n = this, o = arguments.length, a = new Array(o), i = 0; i < o; i++)
|
|
3239
|
+
a[i] = arguments[i];
|
|
3240
3240
|
var c = At(this);
|
|
3241
3241
|
return new c(function(s) {
|
|
3242
3242
|
var d, f = 0;
|
|
@@ -3249,7 +3249,7 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3249
3249
|
s.error(g);
|
|
3250
3250
|
},
|
|
3251
3251
|
complete: function() {
|
|
3252
|
-
f ===
|
|
3252
|
+
f === a.length ? (d = void 0, s.complete()) : h(c.from(a[f++]));
|
|
3253
3253
|
}
|
|
3254
3254
|
});
|
|
3255
3255
|
}
|
|
@@ -3260,22 +3260,22 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3260
3260
|
}, e.flatMap = function(n) {
|
|
3261
3261
|
var o = this;
|
|
3262
3262
|
if (typeof n != "function") throw new TypeError(n + " is not a function");
|
|
3263
|
-
var
|
|
3264
|
-
return new
|
|
3263
|
+
var a = At(this);
|
|
3264
|
+
return new a(function(i) {
|
|
3265
3265
|
var c = [], s = o.subscribe({
|
|
3266
3266
|
next: function(f) {
|
|
3267
3267
|
if (n)
|
|
3268
3268
|
try {
|
|
3269
3269
|
f = n(f);
|
|
3270
3270
|
} catch (m) {
|
|
3271
|
-
return
|
|
3271
|
+
return i.error(m);
|
|
3272
3272
|
}
|
|
3273
|
-
var h =
|
|
3273
|
+
var h = a.from(f).subscribe({
|
|
3274
3274
|
next: function(m) {
|
|
3275
|
-
|
|
3275
|
+
i.next(m);
|
|
3276
3276
|
},
|
|
3277
3277
|
error: function(m) {
|
|
3278
|
-
|
|
3278
|
+
i.error(m);
|
|
3279
3279
|
},
|
|
3280
3280
|
complete: function() {
|
|
3281
3281
|
var m = c.indexOf(h);
|
|
@@ -3285,14 +3285,14 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3285
3285
|
c.push(h);
|
|
3286
3286
|
},
|
|
3287
3287
|
error: function(f) {
|
|
3288
|
-
|
|
3288
|
+
i.error(f);
|
|
3289
3289
|
},
|
|
3290
3290
|
complete: function() {
|
|
3291
3291
|
d();
|
|
3292
3292
|
}
|
|
3293
3293
|
});
|
|
3294
3294
|
function d() {
|
|
3295
|
-
s.closed && c.length === 0 &&
|
|
3295
|
+
s.closed && c.length === 0 && i.complete();
|
|
3296
3296
|
}
|
|
3297
3297
|
return function() {
|
|
3298
3298
|
c.forEach(function(f) {
|
|
@@ -3305,19 +3305,19 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3305
3305
|
}, t.from = function(n) {
|
|
3306
3306
|
var o = typeof this == "function" ? this : t;
|
|
3307
3307
|
if (n == null) throw new TypeError(n + " is not an object");
|
|
3308
|
-
var
|
|
3309
|
-
if (
|
|
3310
|
-
var
|
|
3311
|
-
if (Object(
|
|
3312
|
-
return
|
|
3313
|
-
return
|
|
3308
|
+
var a = te(n, ve);
|
|
3309
|
+
if (a) {
|
|
3310
|
+
var i = a.call(n);
|
|
3311
|
+
if (Object(i) !== i) throw new TypeError(i + " is not an object");
|
|
3312
|
+
return Do(i) && i.constructor === o ? i : new o(function(c) {
|
|
3313
|
+
return i.subscribe(c);
|
|
3314
3314
|
});
|
|
3315
3315
|
}
|
|
3316
|
-
if (Oe("iterator") && (
|
|
3316
|
+
if (Oe("iterator") && (a = te(n, Lo), a))
|
|
3317
3317
|
return new o(function(c) {
|
|
3318
3318
|
Gt(function() {
|
|
3319
3319
|
if (!c.closed) {
|
|
3320
|
-
for (var s =
|
|
3320
|
+
for (var s = $o(a.call(n)), d; !(d = s()).done; ) {
|
|
3321
3321
|
var f = d.value;
|
|
3322
3322
|
if (c.next(f), c.closed) return;
|
|
3323
3323
|
}
|
|
@@ -3337,10 +3337,10 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3337
3337
|
});
|
|
3338
3338
|
throw new TypeError(n + " is not observable");
|
|
3339
3339
|
}, t.of = function() {
|
|
3340
|
-
for (var n = arguments.length, o = new Array(n),
|
|
3341
|
-
o[
|
|
3342
|
-
var
|
|
3343
|
-
return new
|
|
3340
|
+
for (var n = arguments.length, o = new Array(n), a = 0; a < n; a++)
|
|
3341
|
+
o[a] = arguments[a];
|
|
3342
|
+
var i = typeof this == "function" ? this : t;
|
|
3343
|
+
return new i(function(c) {
|
|
3344
3344
|
Gt(function() {
|
|
3345
3345
|
if (!c.closed) {
|
|
3346
3346
|
for (var s = 0; s < o.length; ++s)
|
|
@@ -3350,7 +3350,7 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3350
3350
|
});
|
|
3351
3351
|
});
|
|
3352
3352
|
}, Te(t, null, [{
|
|
3353
|
-
key:
|
|
3353
|
+
key: qr,
|
|
3354
3354
|
get: function() {
|
|
3355
3355
|
return this;
|
|
3356
3356
|
}
|
|
@@ -3363,7 +3363,7 @@ Pe() && Object.defineProperty(D, Symbol("extensions"), {
|
|
|
3363
3363
|
},
|
|
3364
3364
|
configurable: !0
|
|
3365
3365
|
});
|
|
3366
|
-
function
|
|
3366
|
+
function Bo(t) {
|
|
3367
3367
|
var e, r = t.Symbol;
|
|
3368
3368
|
if (typeof r == "function")
|
|
3369
3369
|
if (r.observable)
|
|
@@ -3381,12 +3381,12 @@ function qo(t) {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
var Ct;
|
|
3383
3383
|
typeof self < "u" ? Ct = self : typeof window < "u" ? Ct = window : typeof global < "u" ? Ct = global : typeof module < "u" ? Ct = module : Ct = Function("return this")();
|
|
3384
|
-
|
|
3385
|
-
var
|
|
3386
|
-
dr
|
|
3384
|
+
Bo(Ct);
|
|
3385
|
+
var ur = D.prototype, dr = "@@observable";
|
|
3386
|
+
ur[dr] || (ur[dr] = function() {
|
|
3387
3387
|
return this;
|
|
3388
3388
|
});
|
|
3389
|
-
function
|
|
3389
|
+
function qo(t) {
|
|
3390
3390
|
for (var e = [
|
|
3391
3391
|
"query",
|
|
3392
3392
|
"operationName",
|
|
@@ -3396,13 +3396,13 @@ function Ro(t) {
|
|
|
3396
3396
|
], r = 0, n = Object.keys(t); r < n.length; r++) {
|
|
3397
3397
|
var o = n[r];
|
|
3398
3398
|
if (e.indexOf(o) < 0)
|
|
3399
|
-
throw
|
|
3399
|
+
throw Ur(58, o);
|
|
3400
3400
|
}
|
|
3401
3401
|
return t;
|
|
3402
3402
|
}
|
|
3403
|
-
function
|
|
3404
|
-
var r = ct({}, t), n = function(
|
|
3405
|
-
typeof
|
|
3403
|
+
function Ro(t, e) {
|
|
3404
|
+
var r = ct({}, t), n = function(a) {
|
|
3405
|
+
typeof a == "function" ? r = ct(ct({}, r), a(r)) : r = ct(ct({}, r), a);
|
|
3406
3406
|
}, o = function() {
|
|
3407
3407
|
return ct({}, r);
|
|
3408
3408
|
};
|
|
@@ -3414,32 +3414,32 @@ function Ho(t, e) {
|
|
|
3414
3414
|
value: o
|
|
3415
3415
|
}), e;
|
|
3416
3416
|
}
|
|
3417
|
-
function
|
|
3417
|
+
function Ho(t) {
|
|
3418
3418
|
var e = {
|
|
3419
3419
|
variables: t.variables || {},
|
|
3420
3420
|
extensions: t.extensions || {},
|
|
3421
3421
|
operationName: t.operationName,
|
|
3422
3422
|
query: t.query
|
|
3423
3423
|
};
|
|
3424
|
-
return e.operationName || (e.operationName = typeof e.query != "string" ?
|
|
3424
|
+
return e.operationName || (e.operationName = typeof e.query != "string" ? To(e.query) || void 0 : ""), e;
|
|
3425
3425
|
}
|
|
3426
|
-
var
|
|
3427
|
-
function
|
|
3428
|
-
return
|
|
3426
|
+
var Vo = Symbol.for("apollo.deprecations"), Yo = xe, Jo = new Ee();
|
|
3427
|
+
function Ko(t) {
|
|
3428
|
+
return Yo[Vo] || (Jo.getValue() || []).includes(t);
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3431
|
-
|
|
3430
|
+
function Go(t, e) {
|
|
3431
|
+
Ko(t) || e();
|
|
3432
3432
|
}
|
|
3433
|
-
function
|
|
3433
|
+
function fr(t, e) {
|
|
3434
3434
|
return e ? e(t) : D.of();
|
|
3435
3435
|
}
|
|
3436
3436
|
function Lt(t) {
|
|
3437
|
-
return typeof t == "function" ? new
|
|
3437
|
+
return typeof t == "function" ? new Vr(t) : t;
|
|
3438
3438
|
}
|
|
3439
3439
|
function Yt(t) {
|
|
3440
3440
|
return t.request.length <= 1;
|
|
3441
3441
|
}
|
|
3442
|
-
var
|
|
3442
|
+
var Vr = (
|
|
3443
3443
|
/** @class */
|
|
3444
3444
|
(function() {
|
|
3445
3445
|
function t(e) {
|
|
@@ -3454,36 +3454,36 @@ var Yr = (
|
|
|
3454
3454
|
return r.concat(n);
|
|
3455
3455
|
});
|
|
3456
3456
|
}, t.split = function(e, r, n) {
|
|
3457
|
-
var o = Lt(r),
|
|
3458
|
-
return Yt(o) && Yt(
|
|
3459
|
-
return e(c) ? o.request(c) || D.of() :
|
|
3460
|
-
}) :
|
|
3461
|
-
return e(c) ? o.request(c, s) || D.of() :
|
|
3462
|
-
}), Object.assign(
|
|
3457
|
+
var o = Lt(r), a = Lt(n || new t(fr)), i;
|
|
3458
|
+
return Yt(o) && Yt(a) ? i = new t(function(c) {
|
|
3459
|
+
return e(c) ? o.request(c) || D.of() : a.request(c) || D.of();
|
|
3460
|
+
}) : i = new t(function(c, s) {
|
|
3461
|
+
return e(c) ? o.request(c, s) || D.of() : a.request(c, s) || D.of();
|
|
3462
|
+
}), Object.assign(i, { left: o, right: a });
|
|
3463
3463
|
}, t.execute = function(e, r) {
|
|
3464
|
-
return e.request(
|
|
3464
|
+
return e.request(Ro(r.context, Ho(qo(r)))) || D.of();
|
|
3465
3465
|
}, t.concat = function(e, r) {
|
|
3466
3466
|
var n = Lt(e);
|
|
3467
3467
|
if (Yt(n))
|
|
3468
3468
|
return globalThis.__DEV__ !== !1 && le.warn(47, n), n;
|
|
3469
|
-
var o = Lt(r),
|
|
3470
|
-
return Yt(o) ?
|
|
3471
|
-
return n.request(
|
|
3469
|
+
var o = Lt(r), a;
|
|
3470
|
+
return Yt(o) ? a = new t(function(i) {
|
|
3471
|
+
return n.request(i, function(c) {
|
|
3472
3472
|
return o.request(c) || D.of();
|
|
3473
3473
|
}) || D.of();
|
|
3474
|
-
}) :
|
|
3475
|
-
return n.request(
|
|
3474
|
+
}) : a = new t(function(i, c) {
|
|
3475
|
+
return n.request(i, function(s) {
|
|
3476
3476
|
return o.request(s, c) || D.of();
|
|
3477
3477
|
}) || D.of();
|
|
3478
|
-
}), Object.assign(
|
|
3478
|
+
}), Object.assign(a, { left: n, right: o });
|
|
3479
3479
|
}, t.prototype.split = function(e, r, n) {
|
|
3480
|
-
return this.concat(t.split(e, r, n || new t(
|
|
3480
|
+
return this.concat(t.split(e, r, n || new t(fr)));
|
|
3481
3481
|
}, t.prototype.concat = function(e) {
|
|
3482
3482
|
return t.concat(this, e);
|
|
3483
3483
|
}, t.prototype.request = function(e, r) {
|
|
3484
|
-
throw
|
|
3484
|
+
throw Ur(48);
|
|
3485
3485
|
}, t.prototype.onError = function(e, r) {
|
|
3486
|
-
if (globalThis.__DEV__ !== !1 &&
|
|
3486
|
+
if (globalThis.__DEV__ !== !1 && Go("onError", function() {
|
|
3487
3487
|
globalThis.__DEV__ !== !1 && le.warn(49);
|
|
3488
3488
|
}), r && r.error)
|
|
3489
3489
|
return r.error(e), !1;
|
|
@@ -3493,26 +3493,26 @@ var Yr = (
|
|
|
3493
3493
|
}, t;
|
|
3494
3494
|
})()
|
|
3495
3495
|
);
|
|
3496
|
-
function
|
|
3497
|
-
return new
|
|
3498
|
-
var n =
|
|
3496
|
+
function Wo(t) {
|
|
3497
|
+
return new Vr(function(e, r) {
|
|
3498
|
+
var n = Co(e, []);
|
|
3499
3499
|
return new D(function(o) {
|
|
3500
|
-
var
|
|
3500
|
+
var a, i = !1;
|
|
3501
3501
|
return Promise.resolve(n).then(function(c) {
|
|
3502
3502
|
return t(c, e.getContext());
|
|
3503
3503
|
}).then(e.setContext).then(function() {
|
|
3504
|
-
|
|
3504
|
+
i || (a = r(e).subscribe({
|
|
3505
3505
|
next: o.next.bind(o),
|
|
3506
3506
|
error: o.error.bind(o),
|
|
3507
3507
|
complete: o.complete.bind(o)
|
|
3508
3508
|
}));
|
|
3509
3509
|
}).catch(o.error.bind(o)), function() {
|
|
3510
|
-
|
|
3510
|
+
i = !0, a && a.unsubscribe();
|
|
3511
3511
|
};
|
|
3512
3512
|
});
|
|
3513
3513
|
});
|
|
3514
3514
|
}
|
|
3515
|
-
const
|
|
3515
|
+
const Qo = async () => {
|
|
3516
3516
|
const t = "https://auth.australia-southeast1.gcp.commercetools.com/oauth/token", n = "Basic " + btoa(encodeURIComponent("tfegsSBVOYnR7e_yE-AjxVVN") + ":" + encodeURIComponent("pyKWgHuTxuMwDygh9JH1ehLEaLvAhBo4"));
|
|
3517
3517
|
try {
|
|
3518
3518
|
const o = await z.post(
|
|
@@ -3530,30 +3530,30 @@ const Xo = async () => {
|
|
|
3530
3530
|
} catch (o) {
|
|
3531
3531
|
return z.isAxiosError(o) ? console.error("Error fetching token:", o.response || o.message) : console.error("Unexpected error:", o), null;
|
|
3532
3532
|
}
|
|
3533
|
-
},
|
|
3534
|
-
uri: `${
|
|
3535
|
-
}),
|
|
3536
|
-
const r = await
|
|
3533
|
+
}, Xo = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", Zo = Qr({
|
|
3534
|
+
uri: `${Xo}`
|
|
3535
|
+
}), ta = Wo(async (t, { headers: e }) => {
|
|
3536
|
+
const r = await Qo();
|
|
3537
3537
|
return {
|
|
3538
3538
|
headers: {
|
|
3539
3539
|
...e,
|
|
3540
3540
|
authorization: `Bearer ${r}`
|
|
3541
3541
|
}
|
|
3542
3542
|
};
|
|
3543
|
-
}),
|
|
3544
|
-
link:
|
|
3545
|
-
cache: new
|
|
3543
|
+
}), ea = new Xr({
|
|
3544
|
+
link: ta.concat(Zo),
|
|
3545
|
+
cache: new Zr(),
|
|
3546
3546
|
defaultOptions: {
|
|
3547
3547
|
watchQuery: {
|
|
3548
3548
|
fetchPolicy: "cache-and-network"
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
}),
|
|
3551
|
+
}), ya = (t) => {
|
|
3552
3552
|
const { tanyaConfig: e } = t;
|
|
3553
|
-
return /* @__PURE__ */ l(
|
|
3553
|
+
return /* @__PURE__ */ l(tn, { client: ea, children: /* @__PURE__ */ l(un, { children: /* @__PURE__ */ l(So, { tanyaConfig: e }) }) });
|
|
3554
3554
|
};
|
|
3555
3555
|
export {
|
|
3556
|
-
|
|
3557
|
-
|
|
3556
|
+
ya as TanyaChatbot,
|
|
3557
|
+
pa as TanyaChatbotProvider
|
|
3558
3558
|
};
|
|
3559
3559
|
//# sourceMappingURL=tanya-chatbot.es.js.map
|