UNPKG

@activate-spritz-components/spritz-ui-components

Version:

This is shared components library for spritz projects.

16 lines 285 kB
import*as e from"react";import t,{useRef as n,useState as r,useEffect as o,Children as i,cloneElement as a,useMemo as l,forwardRef as u,useCallback as s,useImperativeHandle as c,useLayoutEffect as f,createContext as d,useContext as p,Fragment as v,isValidElement as h,createElement as m,useId as g,useReducer as y,useSyncExternalStore as b,createRef as x}from"react";import w from"react-inlinesvg";import*as _ from"react-dom";import j,{createPortal as E}from"react-dom";var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function O(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var k,S={exports:{}},C={};var T,P={}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */"production"===process.env.NODE_ENV?S.exports=function(){if(k)return C;k=1;var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var l,u={},s=null,c=null;for(l in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,l)&&!a.hasOwnProperty(l)&&(u[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps)void 0===u[l]&&(u[l]=t[l]);return{$$typeof:n,type:e,key:s,ref:c,props:u,_owner:i.current}}return C.Fragment=r,C.jsx=l,C.jsxs=l,C}():S.exports=(T||(T=1,"production"!==process.env.NODE_ENV&&function(){var e=t,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator",g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=g.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}var b,x=!1,w=!1,_=!1,j=!1,E=!1;function N(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return N(e)+".Consumer";case l:return N(e._context)+".Provider";case s:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case p:var n=e,v=n._payload,h=n._init;try{return O(h(v))}catch(e){return null}}return null}b=Symbol.for("react.module.reference");var k,S,C,T,D,L,A,F=Object.assign,I=0;function R(){}R.__reactDisabledLog=!0;var M,B=g.ReactCurrentDispatcher;function W(e,t,n){if(void 0===M)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||""}return"\n"+M+e}var H,$=!1,V="function"==typeof WeakMap?WeakMap:Map;function z(e,t){if(!e||$)return"";var n,r=H.get(e);if(void 0!==r)return r;$=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=B.current,B.current=null,function(){if(0===I){k=console.log,S=console.info,C=console.warn,T=console.error,D=console.group,L=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){n=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){n=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),u=n.stack.split("\n"),s=l.length-1,c=u.length-1;s>=1&&c>=0&&l[s]!==u[c];)c--;for(;s>=1&&c>=0;s--,c--)if(l[s]!==u[c]){if(1!==s||1!==c)do{if(s--,--c<0||l[s]!==u[c]){var f="\n"+l[s].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&H.set(e,f),f}}while(s>=1&&c>=0);break}}}finally{$=!1,B.current=o,function(){if(0==--I){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:k}),info:F({},e,{value:S}),warn:F({},e,{value:C}),error:F({},e,{value:T}),group:F({},e,{value:D}),groupCollapsed:F({},e,{value:L}),groupEnd:F({},e,{value:A})})}I<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var d=e?e.displayName||e.name:"",p=d?W(d):"";return"function"==typeof e&&H.set(e,p),p}function U(e,t,n){if(null==e)return"";if("function"==typeof e)return z(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return W(e);switch(e){case c:return W("Suspense");case f:return W("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return z(e.render,!1);case d:return U(e.type,t,n);case p:var o=e,i=o._payload,a=o._init;try{return U(a(i),t,n)}catch(e){}}return""}H=new V;var Y=Object.prototype.hasOwnProperty,G={},K=g.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);K.setExtraStackFrame(n)}else K.setExtraStackFrame(null)}var Z=Array.isArray;function X(e){return Z(e)}function J(e){return""+e}function Q(e){if(function(e){try{return J(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var ee,te,ne,re=g.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};ne={};var ie=function(e,t,r,o,i,a,l){var u={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function ae(e,t,n,r,o){var i,a={},l=null,u=null;for(i in void 0!==n&&(Q(n),l=""+n),function(e){if(Y.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(Q(t.key),l=""+t.key),function(e){if(Y.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(u=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var n=O(re.current.type);ne[n]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(re.current.type),e.ref),ne[n]=!0)}}(t,o)),t)Y.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var s=e.defaultProps;for(i in s)void 0===a[i]&&(a[i]=s[i])}if(l||u){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){ee||(ee=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),u&&function(e,t){var n=function(){te||(te=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return ie(e,l,u,o,r,re.current,a)}var le,ue=g.ReactCurrentOwner,se=g.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,n=U(e.type,e._source,t?t.type:null);se.setExtraStackFrame(n)}else se.setExtraStackFrame(null)}function fe(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function de(){if(ue.current){var e=O(ue.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}le=!1;var pe={};function ve(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=de();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!pe[n]){pe[n]=!0;var r="";e&&e._owner&&e._owner!==ue.current&&(r=" It was passed a child from "+O(e._owner.type)+"."),ce(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ce(null)}}}function he(e,t){if("object"==typeof e)if(X(e))for(var n=0;n<e.length;n++){var r=e[n];fe(r)&&ve(r,t)}else if(fe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)fe(i.value)&&ve(i.value,t)}}function me(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==s&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=O(n);!function(e,t,n,r,o){var i=Function.call.bind(Y);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var u=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(q(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),q(null)),l instanceof Error&&!(l.message in G)&&(G[l.message]=!0,q(o),y("Failed %s type: %s",n,l.message),q(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||le||(le=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ge={};function ye(e,t,r,h,m,g){var N=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||E||e===i||e===c||e===f||j||e===v||x||w||_)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===u||e.$$typeof===s||e.$$typeof===b||void 0!==e.getModuleId)}(e);if(!N){var k,S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S+=de(),null===e?k="null":X(e)?k="array":void 0!==e&&e.$$typeof===n?(k="<"+(O(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,S)}var C=ae(e,t,r,m,g);if(null==C)return C;if(N){var T=t.children;if(void 0!==T)if(h)if(X(T)){for(var P=0;P<T.length;P++)he(T[P],e);Object.freeze&&Object.freeze(T)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(T,e)}if(Y.call(t,"key")){var D=O(e),L=Object.keys(t).filter((function(e){return"key"!==e})),A=L.length>0?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}";ge[D+A]||(y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',A,D,L.length>0?"{"+L.join(": ..., ")+": ...}":"{}",D),ge[D+A]=!0)}return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ce(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ce(null);break}}null!==e.ref&&(ce(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(C):me(C),C}var be=function(e,t,n){return ye(e,t,n,!1)},xe=function(e,t,n){return ye(e,t,n,!0)};P.Fragment=o,P.jsx=be,P.jsxs=xe}()),P);var D,L=S.exports,A=function(e){var t=e.type,n=e.message;return L.jsx("div",{className:"p-4 text-white ".concat({success:"bg-green-500 text-center w-[216px]",warning:"bg-yellow-500 text-center w-[216px]",error:"bg-red-500 text-center w-[216px]"}[t]),children:n})},F={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ D=F,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}D.exports?(t.default=t,D.exports=t):window.classNames=t}();var I=O(F.exports),R=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return I.apply(void 0,e)},M=function(e){var t=e.badgeText,n=e.className,r=void 0===n?"bg-red-100 text-red-800 border-red-400":n;return L.jsx("span",{className:R([r,"mx-2 text-xs font-medium px-1.5 py-0.2 rounded border"]),children:t})},B=function(e){var t=e.className,n=void 0===t?"shadow-100 h-60 w-1/2":t,r=e.children;return L.jsx("div",{className:R([n]),children:r})},W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)};function H(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function $(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var V={"arrow.svg":"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' className='h-5 w-5'%3e%3cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd' /%3e%3c/svg%3e","plus.svg":"data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='cross-small-svgrepo-com (1) 1'%3e%3cpath id='Vector' d='M9.99999 2.92893V17.0711M2.92893 9.99999L17.0711 10' stroke='%230C0F13' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e","ellipse.svg":"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='8' fill='currentColor'/%3e%3c/svg%3e","close.svg":"data:image/svg+xml,%3csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.99988 1.70312L0.999878 9.70313M0.999887 1.70312L8.99988 9.70313' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e","tick.svg":"data:image/svg+xml,%3csvg width='21' height='20' viewBox='0 0 21 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='Icon'%3e%3cg id='Complete'%3e%3cg id='tick'%3e%3cpath id='Vector' d='M4.73608 11.5972L8.83331 14.8611L16.2639 5.1389' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e"},z=function(e){var t=e.src.split("/").pop()||"",n=V[t]||"",r=H(e,[]);return L.jsx(w,W({},r,{src:n}))};z.defaultProps={title:"",height:32,width:32,className:"none",description:"SVG Fallback Image",loader:"Loading...",alt:"SVG Fallback Image",cacheRequests:!0,uniquifyIDs:!0,uniqueHash:"".concat((new Date).getTime()),onError:function(){},onClick:function(){},onLoad:function(){}};var U=function(e){var t=e.svg,n=e.clickHandler,r=void 0===n?function(){}:n;return L.jsx("div",{className:"flex",children:L.jsx("button",{onClick:r,className:"flex",children:L.jsx(z,{src:t,width:120,height:28})})})},Y=function(e){var t=e.children,n=e.leftIcon,r=e.rightIcon,o=e.iconColor,i=e.type,a=void 0===i?"button":i,l=e.disabled,u=void 0!==l&&l,s=e.className,c=void 0===s?"px-1 py-1 text-center bg-primary-900 rounded-md text-white":s,f=e.id,d=void 0===f?"id-".concat(Math.random(),"-").concat(Math.random()):f,p=e.onClick,v=void 0===p?function(){}:p;return L.jsxs("button",{id:d,disabled:u,type:a,onClick:v,className:R([c,u&&"cursor-not-allowed","h-11 text-sm py-2.5 "]),children:[n&&L.jsx(z,{className:R(["text-center ",null!==t&&"mr-4"]),src:"../../assets/svg/".concat(n),width:20,height:20,color:"ffffff"}),t,r&&L.jsx(z,{className:R(["text-center ",null!==t&&"ml-4"]),src:"../../assets/svg/".concat(r),width:16,height:16,color:o})]})},G=function(e){var t=e.letter,n=e.className,r=void 0===n?"w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold cursor-pointer":n,o=e.selected,i=e.onClick;return L.jsx("div",{className:R([r,"w-10 h-10 rounded-full flex items-center justify-center text-sm font-bold cursor-pointer",o?"bg-indigo-500 text-white":"text-dark-400 bg-light-200"]),onClick:i,children:t})},K=function(e){var t=e.input,n=e.label,r=e.dataType,o=e.dataGroup,i=e.id,a=void 0===i?String((new Date).getTime()):i;return L.jsxs("div",{className:"flex items-center",children:[L.jsx("input",W({},t,{className:"relative w-4 h-4 text-sm text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600 cursor-pointer",datatype:r,"data-group":o,type:"checkbox",id:a})),L.jsx("label",{htmlFor:a,className:"ml-2 text-sm font-medium text-gray-900 dark:text-gray-300 cursor-pointer",children:n})]})},q=function(e){var t=e.input,n=e.options,r=e.label,o=e.id,i=void 0===o?String((new Date).getTime()):o,a=e.className,l=void 0===a?"w-40 rounded-md font-medium text-sm border-gray-400 justify-between bg-white text-black":a;return L.jsxs("div",{className:"relative w-full",children:[r&&L.jsx("label",{htmlFor:i,className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:r}),L.jsx("select",W({},t,{id:i,className:R([l]),children:n.map((function(e,t){return L.jsx("option",{value:e,children:e},t)}))}))]})},Z=function(e){var t=e.input,n=e.className,r=void 0===n?"w-full h-10 text-base text-gray-600 border-0 border-b border-gray-300":n,o=e.label,i=e.dataType,a=e.meta,l=a.touched,u=a.error,s=e.metaError,c=e.min,f=e.placeholder,d=void 0===f?" ":f,p=e.type,v=void 0===p?"text":p,h=e.step,m=void 0===h?"any":h,g=e.id,y=void 0===g?String((new Date).getTime()):g;return L.jsx(L.Fragment,{children:L.jsxs("div",{className:"relative",children:[L.jsx("input",W({},t,{type:v,className:R([r,"text-sm block py-2.5 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer"]),placeholder:d,maxLength:255,step:m,datatype:i,id:y,min:c})),l&&(u||s)&&L.jsx("p",{id:"filled_error_help",className:" absolute mt-1 text-xs text-red-600 dark:text-red-400 font-medium",children:u||s}),o&&L.jsx("label",{htmlFor:y,className:"absolute text-sm text-gray-400 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-4 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6",children:o})]})})},X=function(e){var t=e.className,i=e.dataType,a=e.options,l=e.input,u=e.meta,s=u.touched,c=u.error,f=e.metaError,d=e.id,p=void 0===d?String((new Date).getTime()):d,v=n(null),h=r(!1),m=h[0],g=h[1],y=r([]),b=y[0],x=y[1];o((function(){return document.addEventListener("click",w),function(){document.removeEventListener("click",w)}}),[]);var w=function(e){var t=e.target,n=v.current;!n||n.contains(t)||t.closest(".dd-container")?g(!0):g(!1)};return L.jsxs(L.Fragment,{children:[L.jsxs("div",{id:p,datatype:i,className:"relative",ref:v,children:[L.jsxs("div",{role:"button",onClick:function(){l.onBlur(),g(!m)},className:R(t,"h-[44px] px-3 w-full flex justify-between items-center border bg-light-200 border-gray-300 rounded-md"),children:[L.jsx("div",{className:"flex items-center [&>*:not(:last-child)]:mr-2",children:0===b.length?L.jsx("span",{className:"text-sm",children:"Select"}):b.length>0?b.map((function(e,t){return L.jsxs("div",{className:"dd-container bg-dark-100 w-auto flex items-center gap-3 py-1 px-2 rounded cursor-default",children:[L.jsx("span",{className:"text-sm",children:e}),L.jsx(z,{className:R(["text-center inline-block cursor-pointer"]),src:"../..../../assets/svg/close.svg",width:10,height:10,onClick:function(){return t=e,n=b.filter((function(e){return e!==t})),x(n),void l.onChange(n);var t,n}})]},t)})):void 0}),L.jsx(z,{className:R([m?"rotate-180":"","text-center inline-block"]),src:"../../assets/svg/arrow.svg",width:18,height:18})]}),m&&L.jsx("div",{className:"absolute z-50 w-full mt-1 bg-white border border-gray-300 rounded-md shadow-lg",children:L.jsx("ul",{className:"p-3 overflow-auto rounded-md shadow-md max-h-60 flex flex-wrap [&>*:not(:last-child)]:mb-2",children:a.map((function(e,t){return L.jsx("li",{className:R("select-none relative flex w-full","divider"===e.type&&"!py-0"),children:L.jsxs("label",{htmlFor:"checkbox-".concat(t),className:"flex w-full cursor-pointer justify-between",onClick:function(){return t=e.value,n=(n=b).includes(t)?n.filter((function(e){return e!==t})):$($([],n,!0),[t],!1),x(n),void l.onChange(n);var t,n},children:[L.jsx("div",{className:"",children:L.jsx("span",{className:"text-sm",children:e.name})}),L.jsx("div",{className:R(b.includes(e.value)?"bg-blue-500":"bg-white border border-gray-600 dark:border-gray-600 dark:bg-gray-700"," relative w-4 h-4 text-sm rounded cursor-pointer"),children:b.includes(e.value)&&L.jsx("svg",{className:"dd-container absolute inset-0 w-full h-full text-light-300",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M5 13l4 4L19 7"})})})]})},"key-".concat(String(t)))}))})})]}),s&&(c||f)&&L.jsx("p",{id:"filled_error_help",className:" absolute mt-1 text-xs text-red-600 dark:text-red-400 font-medium",children:c||f})]})},J=function(e){var t=e.input,n=e.className,r=e.label,o=e.dataType,i=e.labelClass,a=e.meta,l=a.touched,u=a.error,s=e.metaError,c=e.id,f=void 0===c?String((new Date).getTime()):c;return L.jsxs("div",{className:"flex items-center",children:[L.jsxs("label",{htmlFor:f,className:R([i,"flex items-center text-sm font-medium text-gray-900 dark:text-gray-300 cursor-pointer"]),children:[L.jsx("input",W({},t,{id:f,type:"radio",datatype:o,className:R([n,"w-4 h-4 mr-2 text-sm text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600 cursor-pointer"])})),r]}),l&&(u||s)&&L.jsx("p",{id:"filled_error_help",className:"mt-2 text-xs text-red-600 dark:text-red-400 font-medium",children:u||s})]})},Q=function(e){var t=e.options,n=e.onSelect,r=e.panelClass,o=void 0===r?"text-sm bg-white":r,i=e.optionClass,a=void 0===i?"hover:bg-gray-100 p-3":i;return L.jsx("ul",{className:R(o,"py-1.5 overflow-auto rounded-md shadow-md flex flex-wrap"),children:t.map((function(e,t){return L.jsxs("li",{className:R(a,"cursor-pointer select-none relative flex w-full","divider"===e.type&&"!py-0"),onClick:function(){return function(e){n&&n(e)}(e)},children:[e.icon&&L.jsx("div",{className:"flex items-start",children:L.jsx(z,{className:R(["text-center mr-3 inline-block"]),src:e.icon,width:20,height:20})}),e.color&&L.jsx("div",{className:"flex items-start pt-1",children:L.jsx(z,{className:R(["text-center mr-3.5 inline-block"]),src:"../../assets/svg/".concat(""===e.value?"plus.svg":"ellipse.svg"),width:16,height:16,color:e.color})}),e.logo&&L.jsx("div",{className:"w-5 h-5 mr-2 ",style:{backgroundImage:"url(".concat(e.logo,")"),backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}}),!e.type&&L.jsx("div",{className:"flex items-start",children:e.label}),"divider"===e.type&&L.jsx("hr",{className:"w-full"}),"footer"===e.type&&L.jsx("div",{className:"text-xs text-dark-600",onClick:function(e){e.stopPropagation()},children:e.label})]},t)}))})},ee=function(e){var t=e.options,i=e.selectedOption,a=e.panelClass,l=e.optionClass,u=e.color,s=void 0===u?"#111111":u,c=e.className,f=void 0===c?"w-40 rounded-md font-medium text-sm border-gray-400 justify-between bg-white text-black":c,d=e.onChange,p=void 0===d?function(){}:d,v=e.setAgentForInput,h=void 0===v?function(){}:v,m=r(!1),g=m[0],y=m[1],b=n(null),x=r(""),w=x[0],_=x[1],j=n(null);o((function(){var e=function(e){b.current&&!b.current.contains(e.target)&&y(!1)};return j.current&&j.current.focus(),document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[g]);var E=t.filter((function(e){return e.label.toLowerCase().includes(w.toLowerCase())}));return L.jsx("div",{className:"relative",ref:b,children:i&&L.jsxs(L.Fragment,{children:[L.jsxs("button",{type:"button",className:R(f,"z-10 rounded-md text-left flex items-center",0===t.length&&"cursor-default"),onClick:g?void 0:function(){t.length>0&&(y(!0),_(""))},children:[L.jsxs("span",{className:"".concat((null==i?void 0:i.logo)&&"text-base font-bold"," items-center line-clamp-1 flex"),children:[L.jsx(z,{className:R(["text-center inline-block",!g&&"mr-3.5"]),src:"../../assets/svg/".concat(""===i.value||g?"plus.svg":"ellipse.svg"),width:""===i.value?20:16,height:""===i.value?20:16,color:i.color}),g?L.jsx("input",{type:"text",value:w,ref:j,onChange:function(e){return _(e.target.value)},className:"w-40 bg-transparent border-none focus:ring-0 "}):L.jsx("span",{className:"max-w-[180px] overflow-hidden whitespace-nowrap overflow-ellipsis",children:null==i?void 0:i.label})]}),t.length>0&&L.jsx(z,{className:R([g?"rotate-180":"","text-center inline-block"]),src:"../../assets/svg/arrow.svg",width:18,height:18,color:s,onClick:function(){y(!1)}})]}),g&&t.length>0&&L.jsx("div",{className:"absolute mt-2 w-full rounded-md shadow-lg z-[100]",children:L.jsx(Q,{options:E,onSelect:function(e){y(!1),p&&p(e),h&&h(null)},panelClass:"overflow-hidden max-h-60\t".concat(a),optionClass:l})})]})})},te={exports:{}};!function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,l=32,u=64,s=128,c=256,f=1/0,d=9007199254740991,p=NaN,v=4294967295,h=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",l],["partialRight",u],["rearg",c]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",x="[object Error]",w="[object Function]",_="[object GeneratorFunction]",j="[object Map]",E="[object Number]",O="[object Object]",k="[object Promise]",S="[object RegExp]",C="[object Set]",T="[object String]",P="[object Symbol]",D="[object WeakMap]",L="[object ArrayBuffer]",A="[object DataView]",F="[object Float32Array]",I="[object Float64Array]",R="[object Int8Array]",M="[object Int16Array]",B="[object Int32Array]",W="[object Uint8Array]",H="[object Uint8ClampedArray]",$="[object Uint16Array]",V="[object Uint32Array]",z=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,q=RegExp(G.source),Z=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ne="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+je+"]",De="["+Ce+"]",Le="["+Ee+"]",Ae="\\d+",Fe="["+Ne+"]",Ie="["+Oe+"]",Re="[^"+je+Ce+Ae+Ne+Oe+ke+"]",Me="\\ud83c[\\udffb-\\udfff]",Be="[^"+je+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",$e="["+ke+"]",Ve="\\u200d",ze="(?:"+Ie+"|"+Re+")",Ue="(?:"+$e+"|"+Re+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Le+"|"+Me+")"+"?",qe="["+Se+"]?",Ze=qe+Ke+("(?:"+Ve+"(?:"+[Be,We,He].join("|")+")"+qe+Ke+")*"),Xe="(?:"+[Fe,We,He].join("|")+")"+Ze,Je="(?:"+[Be+Le+"?",Le,We,He,Pe].join("|")+")",Qe=RegExp(Te,"g"),et=RegExp(Le,"g"),tt=RegExp(Me+"(?="+Me+")|"+Je+Ze,"g"),nt=RegExp([$e+"?"+Ie+"+"+Ye+"(?="+[De,$e,"$"].join("|")+")",Ue+"+"+Ge+"(?="+[De,$e+ze,"$"].join("|")+")",$e+"?"+ze+"+"+Ye,$e+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Xe].join("|"),"g"),rt=RegExp("["+Ve+je+Ee+Se+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[F]=lt[I]=lt[R]=lt[M]=lt[B]=lt[W]=lt[H]=lt[$]=lt[V]=!0,lt[m]=lt[g]=lt[L]=lt[y]=lt[A]=lt[b]=lt[x]=lt[w]=lt[j]=lt[E]=lt[O]=lt[S]=lt[C]=lt[T]=lt[D]=!1;var ut={};ut[m]=ut[g]=ut[L]=ut[A]=ut[y]=ut[b]=ut[F]=ut[I]=ut[R]=ut[M]=ut[B]=ut[j]=ut[E]=ut[O]=ut[S]=ut[C]=ut[T]=ut[P]=ut[W]=ut[H]=ut[$]=ut[V]=!0,ut[x]=ut[w]=ut[D]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ft=parseInt,dt="object"==typeof N&&N&&N.Object===Object&&N,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,gt=mt&&mt.exports===ht,yt=gt&&dt.process,bt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),xt=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,_t=bt&&bt.isMap,jt=bt&&bt.isRegExp,Et=bt&&bt.isSet,Nt=bt&&bt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Dt(e,t){return!!(null==e?0:e.length)&&$t(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ft(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function It(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Rt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Yt("length");function Wt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ht(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function $t(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,zt,n)}function Vt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:p}function Yt(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function qt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,hn(e)+1).replace(ie,""):e}function Jt(e){return function(t){return e(t)}}function Qt(e,t){return At(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&$t(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&$t(t,e[n],0)>-1;);return n}var rn=Gt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+st[e]}function ln(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var l=e[n];l!==t&&l!==i||(e[n]=i,a[o++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Bt(e)}function vn(e){return ln(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var mn=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gn=function e(t){var N,ae=(t=null==t?vt:gn.defaults(vt.Object(),t,gn.pick(vt,it))).Array,je=t.Date,Ee=t.Error,Ne=t.Function,Oe=t.Math,ke=t.Object,Se=t.RegExp,Ce=t.String,Te=t.TypeError,Pe=ae.prototype,De=Ne.prototype,Le=ke.prototype,Ae=t["__core-js_shared__"],Fe=De.toString,Ie=Le.hasOwnProperty,Re=0,Me=(N=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",Be=Le.toString,We=Fe.call(ke),He=vt._,$e=Se("^"+Fe.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=gt?t.Buffer:n,ze=t.Symbol,Ue=t.Uint8Array,Ye=Ve?Ve.allocUnsafe:n,Ge=sn(ke.getPrototypeOf,ke),Ke=ke.create,qe=Le.propertyIsEnumerable,Ze=Pe.splice,Xe=ze?ze.isConcatSpreadable:n,Je=ze?ze.iterator:n,tt=ze?ze.toStringTag:n,rt=function(){try{var e=pi(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,dt=je&&je.now!==vt.Date.now&&je.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,ht=Oe.ceil,mt=Oe.floor,yt=ke.getOwnPropertySymbols,bt=Ve?Ve.isBuffer:n,Bt=t.isFinite,Gt=Pe.join,yn=sn(ke.keys,ke),bn=Oe.max,xn=Oe.min,wn=je.now,_n=t.parseInt,jn=Oe.random,En=Pe.reverse,Nn=pi(t,"DataView"),On=pi(t,"Map"),kn=pi(t,"Promise"),Sn=pi(t,"Set"),Cn=pi(t,"WeakMap"),Tn=pi(ke,"create"),Pn=Cn&&new Cn,Dn={},Ln=Bi(Nn),An=Bi(On),Fn=Bi(kn),In=Bi(Sn),Rn=Bi(Cn),Mn=ze?ze.prototype:n,Bn=Mn?Mn.valueOf:n,Wn=Mn?Mn.toString:n;function Hn(e){if(nl(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof zn)return e;if(Ie.call(e,"__wrapped__"))return Wi(e)}return new zn(e)}var $n=function(){function e(){}return function(t){if(!tl(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Vn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Xn(e,t){var n=Ua(e),r=!n&&za(e),o=!n&&!r&&qa(e),i=!n&&!r&&!o&&cl(e),a=n||r||o||i,l=a?Zt(e.length,Ce):[],u=l.length;for(var s in e)!t&&!Ie.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||xi(s,u))||l.push(s);return l}function Jn(e){var t=e.length;return t?e[qr(0,t-1)]:n}function Qn(e,t){return Ii(Po(e),ur(t,0,e.length))}function er(e){return Ii(Po(e))}function tr(e,t,r){(r!==n&&!Ha(e[t],r)||r===n&&!(t in e))&&ar(e,t,r)}function nr(e,t,r){var o=e[t];Ie.call(e,t)&&Ha(o,r)&&(r!==n||t in e)||ar(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Do(t,Dl(t),e)}function ar(e,t,n){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var r=-1,o=t.length,i=ae(o),a=null==e;++r<o;)i[r]=a?n:kl(e,t[r]);return i}function ur(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function sr(e,t,r,o,i,a){var l,u=1&t,s=2&t,c=4&t;if(r&&(l=i?r(e,o,i,a):r(e)),l!==n)return l;if(!tl(e))return e;var f=Ua(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Po(e,l)}else{var d=mi(e),p=d==w||d==_;if(qa(e))return No(e,u);if(d==O||d==m||p&&!i){if(l=s||p?{}:yi(e),!u)return s?function(e,t){return Do(e,hi(e),t)}(e,function(e,t){return e&&Do(t,Ll(t),e)}(l,e)):function(e,t){return Do(e,vi(e),t)}(e,ir(l,e))}else{if(!ut[d])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case L:return Oo(e);case y:case b:return new r(+e);case A:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case I:case R:case M:case B:case W:case H:case $:case V:return ko(e,n);case j:return new r;case E:case T:return new r(e);case S:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case P:return o=e,Bn?ke(Bn.call(o)):{}}var o}(e,d,u)}}a||(a=new Zn);var v=a.get(e);if(v)return v;a.set(e,l),ll(e)?e.forEach((function(n){l.add(sr(n,t,r,n,e,a))})):rl(e)&&e.forEach((function(n,o){l.set(o,sr(n,t,r,o,e,a))}));var h=f?n:(c?s?ai:ii:s?Ll:Dl)(e);return St(h||e,(function(n,o){h&&(n=e[o=n]),nr(l,o,sr(n,t,r,o,e,a))})),l}function cr(e,t,r){var o=r.length;if(null==e)return!o;for(e=ke(e);o--;){var i=r[o],a=t[i],l=e[i];if(l===n&&!(i in e)||!a(l))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new Te(r);return Di((function(){e.apply(n,o)}),t)}function dr(e,t,n,r){var o=-1,i=Dt,a=!0,l=e.length,u=[],s=t.length;if(!l)return u;n&&(t=At(t,Jt(n))),r?(i=Lt,a=!1):t.length>=200&&(i=en,a=!1,t=new qn(t));e:for(;++o<l;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=s;d--;)if(t[d]===f)continue e;u.push(c)}else i(t,f,r)||u.push(c)}return u}Hn.templateSettings={escape:X,evaluate:J,interpolate:Q,variable:"",imports:{_:Hn}},Hn.prototype=Vn.prototype,Hn.prototype.constructor=Hn,zn.prototype=$n(Vn.prototype),zn.prototype.constructor=zn,Un.prototype=$n(Vn.prototype),Un.prototype.constructor=Un,Yn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Tn){var r=t[e];return r===o?n:r}return Ie.call(t,e)?t[e]:n},Yn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==n:Ie.call(t,e)},Yn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tn&&t===n?o:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(On||Gn),string:new Yn}},Kn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return fi(this,e).get(e)},Kn.prototype.has=function(e){return fi(this,e).has(e)},Kn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,o),this},qn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var pr=Fo(wr),vr=Fo(_r,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(u===n?l==l&&!sl(l):r(l,u)))var u=l,s=a}return s}function gr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?yr(l,t-1,n,r,o):Ft(o,l):r||(o[o.length]=l)}return o}var br=Io(),xr=Io(!0);function wr(e,t){return e&&br(e,t,Dl)}function _r(e,t){return e&&xr(e,t,Dl)}function jr(e,t){return Pt(t,(function(t){return Ja(e[t])}))}function Er(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Mi(t[r++])];return r&&r==o?e:n}function Nr(e,t,n){var r=t(e);return Ua(e)?r:Ft(r,n(e))}function Or(e){return null==e?e===n?"[object Undefined]":"[object Null]":tt&&tt in ke(e)?function(e){var t=Ie.call(e,tt),r=e[tt];try{e[tt]=n;var o=!0}catch(e){}var i=Be.call(e);o&&(t?e[tt]=r:delete e[tt]);return i}(e):function(e){return Be.call(e)}(e)}function kr(e,t){return e>t}function Sr(e,t){return null!=e&&Ie.call(e,t)}function Cr(e,t){return null!=e&&t in ke(e)}function Tr(e,t,r){for(var o=r?Lt:Dt,i=e[0].length,a=e.length,l=a,u=ae(a),s=1/0,c=[];l--;){var f=e[l];l&&t&&(f=At(f,Jt(t))),s=xn(f.length,s),u[l]=!r&&(t||i>=120&&f.length>=120)?new qn(l&&f):n}f=e[0];var d=-1,p=u[0];e:for(;++d<i&&c.length<s;){var v=f[d],h=t?t(v):v;if(v=r||0!==v?v:0,!(p?en(p,h):o(c,h,r))){for(l=a;--l;){var m=u[l];if(!(m?en(m,h):o(e[l],h,r)))continue e}p&&p.push(h),c.push(v)}}return c}function Pr(e,t,r){var o=null==(e=Ci(e,t=wo(t,e)))?e:e[Mi(Xi(t))];return null==o?n:Ot(o,e,r)}function Dr(e){return nl(e)&&Or(e)==m}function Lr(e,t,r,o,i){return e===t||(null==e||null==t||!nl(e)&&!nl(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var l=Ua(e),u=Ua(t),s=l?g:mi(e),c=u?g:mi(t),f=(s=s==m?O:s)==O,d=(c=c==m?O:c)==O,p=s==c;if(p&&qa(e)){if(!qa(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new Zn),l||cl(e)?ri(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case y:case b:case E:return Ha(+e,+t);case x:return e.name==t.name&&e.message==t.message;case S:case T:return e==t+"";case j:var l=un;case C:var u=1&r;if(l||(l=fn),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=ri(l(e),l(t),r,o,i,a);return a.delete(e),c;case P:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,s,r,o,i,a);if(!(1&r)){var v=f&&Ie.call(e,"__wrapped__"),h=d&&Ie.call(t,"__wrapped__");if(v||h){var w=v?e.value():e,_=h?t.value():t;return a||(a=new Zn),i(w,_,r,o,a)}}if(!p)return!1;return a||(a=new Zn),function(e,t,r,o,i,a){var l=1&r,u=ii(e),s=u.length,c=ii(t),f=c.length;if(s!=f&&!l)return!1;var d=s;for(;d--;){var p=u[d];if(!(l?p in t:Ie.call(t,p)))return!1}var v=a.get(e),h=a.get(t);if(v&&h)return v==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<s;){var y=e[p=u[d]],b=t[p];if(o)var x=l?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(x===n?y===b||i(y,b,r,o,a):x)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,o,i,a)}(e,t,r,o,Lr,i))}function Ar(e,t,r,o){var i=r.length,a=i,l=!o;if(null==e)return!a;for(e=ke(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var s=(u=r[i])[0],c=e[s],f=u[1];if(l&&u[2]){if(c===n&&!(s in e))return!1}else{var d=new Zn;if(o)var p=o(c,f,s,e,t,d);if(!(p===n?Lr(f,c,3,o,d):p))return!1}}return!0}function Fr(e){return!(!tl(e)||(t=e,Me&&Me in t))&&(Ja(e)?$e:ge).test(Bi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?Ua(e)?$r(e[0],e[1]):Hr(e):pu(e)}function Rr(e){if(!Ni(e))return yn(e);var t=[];for(var n in ke(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Ni(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function Wr(e,t){var n=-1,r=Ga(e)?ae(e.length):[];return pr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Hr(e){var t=di(e);return 1==t.length&&t[0][2]?ki(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}f