automoby-kit 1.0.3 → 1.0.5
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/README.md +2 -10
- package/dist/cjs/Accordion.js +1 -0
- package/dist/cjs/Backdrop.js +1 -0
- package/dist/cjs/Breadcrumb.js +1 -0
- package/dist/cjs/Button.js +1 -0
- package/dist/cjs/Chips.js +1 -0
- package/dist/cjs/Divider.js +1 -0
- package/dist/cjs/Drawer.js +1 -0
- package/dist/cjs/Input.js +1 -0
- package/dist/cjs/Menu.js +1 -0
- package/dist/cjs/Pagination.js +1 -0
- package/dist/cjs/ProtectedComponent.js +1 -0
- package/dist/cjs/RadioGroup.js +1 -0
- package/dist/cjs/Tabs.js +1 -0
- package/dist/cjs/Typography.js +1 -0
- package/dist/cjs/chunks/MobileContext-eI2eV1-F.js +1 -0
- package/dist/cjs/chunks/chevron-left-Do__K6cA.js +1 -0
- package/dist/cjs/chunks/createLucideIcon-BqJVOzoK.js +1 -0
- package/dist/cjs/chunks/jsx-runtime-Bgd4cJfV.js +1 -0
- package/dist/cjs/contexts.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/licensing.js +1 -0
- package/dist/cjs/utils.js +1 -0
- package/dist/esm/Accordion.js +1 -0
- package/dist/esm/Backdrop.js +1 -0
- package/dist/esm/Breadcrumb.js +1 -0
- package/dist/esm/Button.js +1 -0
- package/dist/esm/Chips.js +1 -0
- package/dist/esm/Divider.js +1 -0
- package/dist/esm/Drawer.js +1 -0
- package/dist/esm/Input.js +1 -0
- package/dist/esm/Menu.js +1 -0
- package/dist/esm/Pagination.js +1 -0
- package/dist/esm/ProtectedComponent.js +1 -0
- package/dist/esm/RadioGroup.js +1 -0
- package/dist/esm/Tabs.js +1 -0
- package/dist/esm/Typography.js +1 -0
- package/dist/esm/chunks/MobileContext-BLAyX72S.js +1 -0
- package/dist/esm/chunks/chevron-left-4HSuTes3.js +1 -0
- package/dist/esm/chunks/createLucideIcon-DGp0SoUT.js +1 -0
- package/dist/esm/chunks/jsx-runtime-DZXOD2H9.js +1 -0
- package/dist/esm/contexts.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/licensing.js +1 -0
- package/dist/esm/utils.js +1 -0
- package/dist/types/Accordion.js +54 -0
- package/dist/types/Backdrop.js +24 -0
- package/dist/types/Breadcrumb.js +56 -0
- package/dist/types/Button.js +46 -0
- package/dist/types/Chips.js +109 -0
- package/dist/types/Divider.js +21 -0
- package/dist/types/Drawer.js +107 -0
- package/dist/types/Input.js +78 -0
- package/dist/types/Menu.js +120 -0
- package/dist/types/MobileContext-BkG7_94E.js +1478 -0
- package/dist/types/Pagination.js +183 -0
- package/dist/types/ProtectedComponent.js +33 -0
- package/dist/types/RadioGroup.js +68 -0
- package/dist/types/Tabs.js +49 -0
- package/dist/types/Typography.js +60 -0
- package/dist/types/chevron-left-Ck6O99eF.js +14 -0
- package/dist/types/contexts/MobileContext.d.ts +0 -1
- package/dist/types/contexts/index.d.ts +1 -1
- package/dist/types/contexts.js +3 -0
- package/dist/types/createLucideIcon-D-q73LTT.js +112 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.js +38 -0
- package/dist/types/jsx-runtime-BiC2V0nk.js +430 -0
- package/dist/types/licensing.js +125 -0
- package/dist/types/utils.js +7 -0
- package/package.json +90 -4
- package/dist/index.cjs.js +0 -1
- package/dist/index.esm.js +0 -1
package/dist/index.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";var e,t=require("react"),i={exports:{}},r={};var a,o,n={};function s(){return a||(a=1,"production"!==process.env.NODE_ENV&&function(){function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===C?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case h:return"Fragment";case f:return"Profiler";case m:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList";case N:return"Activity"}if("object"==typeof t)switch("number"==typeof t.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case b:return"Portal";case w:return(t.displayName||"Context")+".Provider";case x:return(t._context.displayName||"Context")+".Consumer";case v:var i=t.render;return(t=t.displayName)||(t=""!==(t=i.displayName||i.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case k:return null!==(i=t.displayName||null)?i:e(t.type)||"Memo";case j:i=t._payload,t=t._init;try{return e(t(i))}catch(e){}}return null}function i(e){return""+e}function r(e){try{i(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,a="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),i(e)}}function a(t){if(t===h)return"<>";if("object"==typeof t&&null!==t&&t.$$typeof===j)return"<...>";try{var i=e(t);return i?"<"+i+">":"<...>"}catch(e){return"<...>"}}function o(){return Error("react-stack-top-frame")}function s(){var t=e(this.type);return I[t]||(I[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(t=this.props.ref)?t:null}function l(t,i,a,o,n,l,u,b){var h,m=i.children;if(void 0!==m)if(o)if(_(m)){for(o=0;o<m.length;o++)d(m[o]);Object.freeze&&Object.freeze(m)}else console.error("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 d(m);if(z.call(i,"key")){m=e(t);var f=Object.keys(i).filter(function(e){return"key"!==e});o=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",T[m+o]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('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} />',o,m,f,m),T[m+o]=!0)}if(m=null,void 0!==a&&(r(a),m=""+a),function(e){if(z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(i)&&(r(i.key),m=""+i.key),"key"in i)for(var x in a={},i)"key"!==x&&(a[x]=i[x]);else a=i;return m&&function(e,t){function i(){c||(c=!0,console.error("%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://react.dev/link/special-props)",t))}i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}(a,"function"==typeof t?t.displayName||t.name||"Unknown":t),function(e,t,i,r,a,o,n,l){return i=o.ref,e={$$typeof:p,type:e,key:t,props:o,_owner:a},null!==(void 0!==i?i:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:s}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(t,m,l,0,null===(h=S.A)?null:h.getOwner(),a,u,b)}function d(e){"object"==typeof e&&null!==e&&e.$$typeof===p&&e._store&&(e._store.validated=1)}var c,u=t,p=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Object.prototype.hasOwnProperty,_=Array.isArray,A=console.createTask?console.createTask:function(){return null},I={},O=(u={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(u,o)(),E=A(a(o)),T={};n.Fragment=h,n.jsx=function(e,t,i,r,o){var n=1e4>S.recentlyCreatedOwnerStacks++;return l(e,t,i,!1,0,o,n?Error("react-stack-top-frame"):O,n?A(a(e)):E)},n.jsxs=function(e,t,i,r,o){var n=1e4>S.recentlyCreatedOwnerStacks++;return l(e,t,i,!0,0,o,n?Error("react-stack-top-frame"):O,n?A(a(e)):E)}}()),n}var l=(o||(o=1,"production"===process.env.NODE_ENV?i.exports=function(){if(e)return r;e=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function a(e,i,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==i.key&&(a=""+i.key),"key"in i)for(var o in r={},i)"key"!==o&&(r[o]=i[o]);else r=i;return i=r.ref,{$$typeof:t,type:e,key:a,ref:void 0!==i?i:null,props:r}}return r.Fragment=i,r.jsx=a,r.jsxs=a,r}():i.exports=s()),i.exports);class d{static instance;isInitialized=!1;isValid=!1;licenseKey=null;validKeys=["automoby-kit-war-key-2025"];constructor(){}static getInstance(){return d.instance||(d.instance=new d),d.instance}initialize(e){try{return this.licenseKey=e.key,this.isValid=this.validateLicense(e.key),this.isInitialized=!0,this.isValid?(console.log("✅ Automoby Kit initialized successfully"),!0):(console.error("❌ Invalid license key provided for Automoby Kit"),!1)}catch(e){return console.error("❌ Failed to initialize Automoby Kit:",e),this.isValid=!1,this.isInitialized=!0,!1}}validateLicense(e){return!(!e||""===e.trim())&&this.validKeys.includes(e)}canUseComponents(){return this.isInitialized?!!this.isValid||(console.error("❌ Invalid license key. Please contact support or provide a valid license key."),!1):(console.error("❌ Automoby Kit not initialized. Please call initializeAutomobiKit() with your license key."),!1)}getLicenseStatus(){return{initialized:this.isInitialized,valid:this.isValid,key:this.licenseKey?`${this.licenseKey.substring(0,8)}...`:null}}reset(){this.isInitialized=!1,this.isValid=!1,this.licenseKey=null}}function c(e,i){const r=t.forwardRef((t,r)=>d.getInstance().canUseComponents()?l.jsx(e,{...t,ref:r}):l.jsxs("div",{style:{padding:"16px",border:"2px dashed #ef4444",borderRadius:"8px",backgroundColor:"#fef2f2",color:"#dc2626",textAlign:"center",fontFamily:"system-ui, sans-serif",fontSize:"14px",maxWidth:"400px",margin:"16px auto"},children:[l.jsx("div",{style:{fontWeight:"bold",marginBottom:"8px"},children:"🔒 License Required"}),l.jsxs("div",{style:{marginBottom:"8px"},children:['Component "',i,'" requires a valid license key.']}),l.jsx("div",{style:{fontSize:"12px",opacity:.8},children:"Please initialize Automoby Kit with your license key before using components."})]}));return r.displayName=`Protected(${i})`,r}function u(e){var t,i,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=u(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function p(...e){return function(){for(var e,t,i=0,r="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=u(e))&&(r&&(r+=" "),r+=t);return r}(e)}const b={h1:"text-[36px] font-[var(--font-weight-fat)]",h2:"text-[32px] font-[var(--font-weight-fat)]",h3:"text-[28px] font-[var(--font-weight-fat)]",h4:"text-[24px] font-[var(--font-weight-heavy)]",h5:"text-[22px] font-[var(--font-weight-heavy)]",h6:"text-[20px] font-[var(--font-weight-heavy)]","body-xl-heavy":"text-[20px] font-[var(--font-weight-heavy)]","body-l-heavy":"text-[18px] font-[var(--font-weight-heavy)]","body-l-bold":"text-[18px] font-[var(--font-weight-bold)]","body-l-medium":"text-[18px] font-[var(--font-weight-medium)]","body-m-heavy":"text-[16px] font-[var(--font-weight-heavy)]","body-m-bold":"text-[16px] font-[var(--font-weight-bold)]","body-m-medium":"text-[16px] font-[var(--font-weight-medium)]","body-s-heavy":"text-[14px] font-[var(--font-weight-heavy)]","body-s-bold":"text-[14px] font-[var(--font-weight-bold)]","body-s-medium":"text-[14px] font-[var(--font-weight-medium)]","body-ms-bold":"text-[13px] font-[var(--font-weight-bold)]","body-ms-medium":"text-[13px] font-[var(--font-weight-medium)]","body-xs-bold":"text-[12px] font-[var(--font-weight-bold)]","body-xs-medium":"text-[12px] font-[var(--font-weight-medium)]","body-t-bold":"text-[10px] font-[var(--font-weight-bold)]","body-t-medium":"text-[10px] font-[var(--font-weight-medium)]","body-ss-medium":"text-[9px] font-[var(--font-weight-medium)]"},h=e=>b[e],m={primary:"text-[var(--color-primary)]",secondary:"text-[var(--color-secondary)]","neutral-darker":"text-[var(--color-neutral-darker)]","neutral-dark":"text-[var(--color-neutral-dark)]","neutral-main":"text-[var(--color-neutral-main)]",white:"text-[var(--color-white)]",inherit:"text-inherit"},f=t.forwardRef(({variant:e="body-m-medium",color:i="inherit",as:r,className:a,children:o,...n},s)=>{const l=r||(e=>e.startsWith("h")?e.split("-")[0]:"p")(e);return t.createElement(l,{ref:s,className:p(b[e],m[i],"leading-[var(--leading-default)]",a),...n},o)});f.displayName="Typography";const x={sm:"px-[16px] py-[7px]",md:"px-[16px] py-[9px]",lg:"px-[16px] py-[13px]",xl:"px-[20px] py-[13px]"},w={sm:"body-s-bold",md:"body-m-bold",lg:"body-l-bold",xl:"body-xl-heavy"},v={primary:"\n bg-[var(--color-primary)] text-white\n hover:bg-[var(--color-primary-dark)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n ",secondary:"\n bg-[var(--color-primary-lightest)] text-[var(--color-primary)]\n hover:bg-[var(--color-primary-lighter)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n ",tertiary:"\n bg-white border border-[var(--color-primary-light)] text-[var(--color-primary)]\n hover:bg-[var(--color-neutral-lighter)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n ",ghost:"\n bg-transparent text-[var(--color-primary)]\n hover:bg-[var(--color-primary-lightest)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n "},g=t.forwardRef(({className:e,variant:t="primary",size:i="md",icon:r,iconPosition:a="right",children:o,loading:n=!1,disabled:s,textVariant:d,...c},u)=>{const b=d||w[i];return l.jsxs("button",{ref:u,type:"button",className:p("inline-flex items-center justify-center rounded-[8px] transition-colors duration-200",x[i],v[t],h(b),s&&"opacity-50 pointer-events-none",e),disabled:s||n,...c,children:[r&&"left"===a&&l.jsx("span",{className:"mr-2 flex items-center",children:r}),n?"...":o,r&&"right"===a&&l.jsx("span",{className:"ml-2 flex items-center",children:r})]})});g.displayName="Button";const y=t.forwardRef(({state:e="default",label:i,value:r,onChange:a,helperText:o,startIcon:n,endIcon:s,type:d="text",isMobile:c,...u},b)=>{const[h,m]=t.useState(!1),f=t.useId(),x=h||""!==r&&null!=r,w="disabled"===e,v=p("relative flex items-center border rounded-lg transition-all duration-300 w-[360px]",{"h-[54px]":!c,"h-12":c,"border-neutral-light":"default"===e&&!h,"border-primary":"default"===e&&h,"border-error":"error"===e,"bg-white border-neutral-light cursor-not-allowed":w}),g=p("absolute pointer-events-none transition-all duration-300",{"top-[-10px] bg-white px-1 mx-3 font-medium":x,"text-s":!c&&x||c&&!x,"text-xs":c&&x,"text-m":!c&&!x,"right-1":n,"right-3":!n,"top-1/2 -translate-y-1/2 text-m font-medium":!x,"right-11":!x&&n,"right-4":!x&&!n,"text-neutral-main":!h&&"default"===e,"text-neutral-light":w,"text-primary":h&&"default"===e,"text-error":x&&"error"===e}),y=p("peer w-full h-full bg-transparent outline-none text-m font-medium disabled:text-neutral-light",{"pr-12":n,"pl-12":s,"px-4":!n&&!s,"pr-4 pl-12":!n&&s,"pl-4 pr-12":n&&!s,"cursor-not-allowed text-red-500":w,"text-neutral-dark":!h,"text-neutral-darker":h}),k=p("absolute h-5 w-5 transition-colors duration-300",{"text-neutral-main":"error"!==e&&!h,"text-primary":"default"===e&&h,"text-error":"error"===e,"text-neutral-light":w}),j=p("font-light mt-1 px-2 h-4",{"text-s":!c,"text-xs":c,"text-neutral-main":"default"===e,"text-primary":"default"===e&&h,"text-error":"error"===e,"text-neutral-light":w});return l.jsxs("div",{children:[l.jsxs("div",{className:v,children:[s&&l.jsx("span",{className:p(k,"left-4"),children:s}),l.jsx("label",{htmlFor:f,className:g,children:i}),l.jsx("input",{ref:b,id:f,type:d,value:r,onChange:a,onFocus:e=>{w||(m(!0),u.onFocus?.(e))},onBlur:e=>{w||(m(!1),u.onBlur?.(e))},disabled:w,className:y,...u}),n&&l.jsx("span",{className:p(k,"right-4"),children:n})]}),o&&l.jsx("p",{className:j,children:o})]})});y.displayName="Input";const k=(e,t,i,r)=>void 0===e?null:l.jsx("div",{className:p("flex items-center justify-center rounded-[5px] font-sans font-bold text-white","transition-colors duration-200",r?"size-6 text-[14px] pt-0.5":"size-[25px] text-[14px] pt-[3px]",i?"bg-midnight":t?"bg-primary":"bg-neutral-main"),children:l.jsx("p",{className:"leading-[24px] whitespace-pre",dir:"auto",children:e})}),j=(e,t,i)=>{const r=void 0!==e.count;return l.jsxs("div",{className:p("flex flex-row items-center justify-start transition-colors duration-200","gap-1.5"),children:[r&&k(e.count,t,e.disabled,i),l.jsx("div",{className:p("font-sans text-nowrap text-right transition-colors duration-200",i?"text-[14px]":t?"text-[16px]":"text-[18px]",e.disabled?"font-normal text-midnight":t?"font-bold text-primary":"font-normal text-neutral-main",i?"leading-[24px]":t?"leading-normal":"leading-[1.9]"),children:l.jsx("p",{className:"whitespace-pre",dir:"auto",children:e.label})})]})},N=t.forwardRef(({items:e,activeTab:t,onTabChange:i,className:r,isMobile:a,...o},n)=>l.jsxs("div",{ref:n,className:p("relative w-full",r),...o,children:[l.jsx("div",{className:"box-border flex flex-row items-center justify-end p-0 relative w-full",children:e.map(e=>((e,t,i,r)=>{const a=e.id===t;return l.jsxs("div",{className:p("box-border flex flex-col items-center justify-between relative shrink-0","cursor-pointer transition-all duration-200",i?"h-12 px-3":"h-14 px-4",a?i?"pt-[11px] pb-0":"pt-3.5 pb-0":"py-0 justify-center",e.disabled&&"cursor-not-allowed opacity-50",!e.disabled&&"hover:opacity-80"),onClick:()=>((e,t,i)=>{t||i(e)})(e.id,e.disabled,r),onKeyDown:t=>((e,t,i,r)=>{"Enter"!==e.key&&" "!==e.key||i||(e.preventDefault(),r(t))})(t,e.id,e.disabled,r),tabIndex:e.disabled?-1:0,role:"tab","aria-selected":a,"aria-disabled":e.disabled,children:[j(e,a,i),a&&l.jsx("div",{className:"bg-primary h-1 rounded-tl-[8px] rounded-tr-[8px] shrink-0 w-full"})]},e.id)})(e,t,a,i))}),l.jsx("div",{className:"absolute border-midnight-light border-[0px_0px_1px] border-solid bottom-[-0.5px] left-0 right-0 top-0 pointer-events-none"})]}));N.displayName="Tabs";const C=t.forwardRef(({children:e,direction:i="bottom",fullScreen:r=!1,isOpen:a=!1,onClose:o,className:n,isMobile:s,...d},c)=>{const u=t.useRef(null),b=t.useRef(null);t.useEffect(()=>{const e=e=>{"Escape"===e.key&&a&&o&&o()};return a&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="auto"}},[a,o]);const h=p("fixed inset-0 z-50 transition-all duration-300",{"bg-neutral-darker/50 backdrop-blur-sm":a,"bg-transparent pointer-events-none":!a}),m=p("fixed bg-white shadow-2xl transition-all duration-300 ease-out overflow-auto",(()=>{switch(i){case"top":return"top-0 left-0 right-0";case"bottom":default:return"bottom-0 left-0 right-0";case"left":return"top-0 left-0 bottom-0";case"right":return"top-0 right-0 bottom-0"}})(),(()=>{const e="top"===i||"bottom"===i;return r?"w-full h-full":e?"w-full max-h-[90vh]":"h-full max-w-[90vw]"})(),(()=>{if(!a)switch(i){case"top":return"-translate-y-full";case"bottom":default:return"translate-y-full";case"left":return"-translate-x-full";case"right":return"translate-x-full"}return"translate-x-0 translate-y-0"})(),{"rounded-t-2xl":"bottom"===i&&!r,"rounded-b-2xl":"top"===i&&!r,"rounded-r-2xl":"left"===i&&!r,"rounded-l-2xl":"right"===i&&!r,"p-6":!s,"p-4":s},n);return a?l.jsx("div",{ref:u,className:h,onClick:e=>{!r&&o&&u.current&&e.target===u.current&&o()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||!r&&o&&u.current&&e.target===u.current&&o()},tabIndex:-1,role:"button","aria-label":"Close drawer",children:l.jsx("div",{ref:c||b,className:m,role:"dialog","aria-modal":"true","aria-label":"Drawer",...d,children:e})}):null});C.displayName="Drawer";const S=t.forwardRef(({isOpen:e=!1,onClick:t,blur:i=!1,zIndex:r=51,className:a,children:o,...n},s)=>{const d=p("fixed inset-0 transition-all duration-300",{"opacity-100 pointer-events-auto":e,"opacity-0 pointer-events-none":!e,"backdrop-blur-sm":i},a),c={backgroundColor:"rgba(0, 0, 0, 0.60)",zIndex:r};return l.jsx("div",{ref:s,className:d,style:c,onClick:e=>{t&&e.target===e.currentTarget&&t()},role:"presentation","aria-hidden":!e,...n,children:o})});S.displayName="Backdrop";const z=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},_=(...e)=>e.filter((e,t,i)=>Boolean(e)&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),A=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var I={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const O=t.forwardRef(({color:e="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:s,...l},d)=>t.createElement("svg",{ref:d,...I,width:i,height:i,stroke:e,strokeWidth:a?24*Number(r)/Number(i):r,className:_("lucide",o),...!n&&!A(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,i])=>t.createElement(e,i)),...Array.isArray(n)?n:[n]])),E=(e,i)=>{const r=t.forwardRef(({className:r,...a},o)=>{return t.createElement(O,{ref:o,iconNode:i,className:_(`lucide-${n=z(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...a});var n});return r.displayName=z(e),r},T=E("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),R=E("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),M=E("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),P=E("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),D=E("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),q=E("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),B=E("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),$=E("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),V=t.forwardRef(({items:e,className:t,isMobile:i},r)=>l.jsx("nav",{ref:r,className:p("flex flex-row-reverse items-center",i?"gap-1 px-4 py-2.5":"gap-3 pr-1 pt-3 pb-4 pl-0",t),"aria-label":"Breadcrumb navigation",children:l.jsx("ol",{className:"flex flex-row-reverse items-center gap-inherit",children:e.map((t,r)=>{const a=r===e.length-1,o=!a&&(t.href||t.onClick),n=`${t.label}-${r}`;return l.jsxs("li",{className:"flex items-center gap-inherit",children:[o?l.jsx("a",{href:t.href||"#",className:p("whitespace-nowrap border-0 bg-transparent p-0 no-underline",i?"text-t":"text-s","text-neutral-main","cursor-pointer hover:text-neutral-dark transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 rounded-sm"),onClick:i=>((t,i,r)=>{i!==e.length-1&&t.onClick&&(r.preventDefault(),t.onClick())})(t,r,i),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.onClick&&t.onClick())},"aria-label":`Go to ${t.label}`,children:t.label}):l.jsx("span",{className:p("whitespace-nowrap",i?"text-t":"text-s","text-neutral-main","font-medium"),"aria-current":a?"page":void 0,"aria-label":a?`Current page: ${t.label}`:void 0,children:t.label}),!a&&l.jsx(R,{className:p("text-black flex-shrink-0",i?"w-2.5 h-2.5":"w-3 h-3"),"aria-hidden":"true"})]},n)})})}));function H({className:e,...t}){return l.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:p("mx-auto flex w-full justify-center",e),...t})}function U({className:e,device:t,...i}){return l.jsx("ul",{"data-slot":"pagination-content",className:p("flex flex-row items-center","mobile"===t?"gap-[6px]":"gap-2",e),...i})}function L({...e}){return l.jsx("li",{"data-slot":"pagination-item",...e})}function F({className:e,device:t,variant:i,isActive:r,...a}){return l.jsx("a",{"aria-current":r?"page":void 0,"data-slot":"pagination-link","data-active":r,className:p(X({variant:"nextPrev"===i?i:r?"active":"outline",device:t}),e),tabIndex:a["aria-disabled"]?-1:0,...a})}function W({className:e,device:t,variant:i,...r}){const a="mobile"===t,o={mobile:l.jsx(M,{size:18}),desktop:l.jsxs(l.Fragment,{children:[l.jsx(q,{size:20})," ",l.jsx("span",{children:"قبلی"})]})};return l.jsx(F,{"aria-label":"Go to previous page",className:a?"ml-2.5":"flex justify-center items-center gap-2 w-[89px] h-[48px] ml-4",device:t,variant:"nextPrev",...r,children:"mobile"===t?o.mobile:o.desktop})}function K({className:e,device:t,variant:i,...r}){const a="mobile"===t,o={mobile:l.jsx(R,{size:18}),desktop:l.jsxs(l.Fragment,{children:[l.jsx("span",{children:"بعدی"}),l.jsx(D,{size:20})]})};return l.jsx(F,{"aria-label":"Go to next page",className:a?"mr-2.5":"flex justify-center items-center gap-2 w-[89px] h-[48px] mr-4",device:t,variant:"nextPrev",...r,children:"mobile"===t?o.mobile:o.desktop})}function G({className:e,...t}){return l.jsx("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:p("flex size-9 items-center justify-center",e),...t,children:l.jsx(B,{className:"size-4"})})}function X({variant:e,device:t}){const i="mobile"===t;return[p({"flex items-center justify-center rounded-[6px]":!0,"w-[40px] h-[40px] text-s font-heavy":i,"w-[48px] h-[48px] text-l font-heavy":!i}),{outline:"border border-neutral-light bg-white text-neutral-darker",active:"bg-primary text-white",nextPrev:"border border-neutral-light bg-white text-neutral-darker"}[e]].join(" ")}V.displayName="Breadcrumb";const Y=t.forwardRef(({title:e,body:i,startIcon:r,isExpanded:a,onToggle:o,defaultExpanded:n=!1,className:s,id:d,disabled:c=!1,isMobile:u,...b},h)=>{const[m,x]=t.useState(n),w=void 0!==a?a:m,v=d||`accordion-${Math.random().toString(36).substr(2,9)}`,g=`${v}-header`,y=`${v}-content`,k=u?20:24,j=u?"body-s-heavy":"body-l-heavy",N=u?"body-s-medium":"body-m-medium";return l.jsxs("div",{ref:h,className:p("rounded-2xl border-0 overflow-hidden","transition-all duration-200 ease-in-out",s),...b,children:[l.jsxs("button",{id:g,type:"button",onClick:()=>{if(c)return;const e=!w;void 0===a&&x(e),o?.(e)},disabled:c,"aria-expanded":w,"aria-controls":y,className:p("w-full flex items-center justify-between",u?"p-3":"p-4","focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200 ease-in-out",!c&&"hover:bg-neutral-lighter"),children:[l.jsx("div",{className:"flex-shrink-0 mr-4",children:w?l.jsx(P,{size:k,className:"text-neutral-darker transition-transform duration-200","aria-hidden":"true"}):l.jsx(T,{size:k,className:"text-neutral-darker transition-transform duration-200","aria-hidden":"true"})}),l.jsxs("div",{className:p("flex items-center flex-1",u?"gap-3":"gap-4"),children:[l.jsx("div",{className:"flex-1 text-right",children:l.jsx(f,{variant:j,color:"neutral-darker",children:e})}),r&&l.jsx("div",{className:p("flex-shrink-0 flex items-center justify-center",u?"w-6 h-6":"w-8 h-8"),children:r})]})]}),l.jsx("div",{id:y,role:"region","aria-labelledby":g,className:p("w-full overflow-hidden transition-all duration-300 ease-in-out",w?"max-h-screen opacity-100":"max-h-0 opacity-0"),children:l.jsx("div",{className:p(u?"pb-3 mt-1":"pb-4 mt-1.5"),children:l.jsx("div",{className:p("bg-neutral-lighter rounded-lg",u?"p-3":"p-4"),children:l.jsx(f,{variant:N,color:"neutral-dark",children:i})})})})]})});Y.displayName="Accordion";const J=t.forwardRef(({width:e="100%",height:t=1,orientation:i="horizontal",variant:r="neutral-light",className:a,style:o,...n},s)=>{const d="horizontal"===i,c={width:d?e:t,height:d?t:e,...o};return l.jsx("div",{ref:s,className:p("shrink-0",{"neutral-light":"bg-neutral-light","neutral-main":"bg-neutral-main",primary:"bg-primary"}[r],a),style:c,role:"separator",...n})});J.displayName="Divider";const Z=({selected:e,disabled:t,isMobile:i})=>{const r=i?"size-5":"size-6";return e?l.jsxs("div",{className:p("relative flex items-center justify-center",r),children:[l.jsx("div",{className:p("absolute inset-0 rounded-full border-2",t?"bg-neutral-light border-neutral-light":"bg-primary border-primary")}),l.jsx("div",{className:p("absolute rounded-full bg-white",i?"inset-[5px]":"inset-1.5")})]}):l.jsx("div",{className:p("relative flex items-center justify-center",r),children:l.jsx("div",{className:p("absolute inset-0 rounded-full border",i?"border":"border-[1.5px]",t?"border-neutral-light":"border-midnight")})})},Q=({option:e,selected:i,disabled:r,onClick:a,name:o,isMobile:n})=>{const[s,d]=t.useState(!1),c=()=>r?"text-midnight":i?"text-primary":"text-neutral-dark";return l.jsx("div",{className:p("relative rounded-lg border-[1.5px] cursor-pointer transition-all duration-200",r?"bg-neutral-lighter":i?"bg-primary-lightest":s?"bg-primary-lightest/20":"bg-white",i?"border-primary":"border-transparent",r?"":"shadow-[0px_2px_4px_0px_rgba(0,0,0,0.08)]",r&&"cursor-not-allowed"),onClick:r?void 0:a,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||r||(e.preventDefault(),a())},tabIndex:r?-1:0,role:"radio","aria-checked":i,"aria-disabled":r,children:l.jsx("div",{className:"flex flex-row items-center justify-end relative w-full",children:l.jsx("div",{className:p("box-border flex flex-row items-center justify-end relative w-full",n?"gap-2 px-4 py-3":"gap-4 px-6 py-4"),children:l.jsxs("div",{className:p("flex flex-row items-center justify-end p-0 relative shrink-0",n?"gap-2":"gap-3"),children:[l.jsx("input",{type:"radio",name:o,value:e.id,checked:i,disabled:r,onChange:a,className:"sr-only","aria-label":e.label}),l.jsx("div",{className:"flex flex-col gap-0.5 items-end justify-start p-0 relative shrink-0",children:l.jsx("div",{className:p("font-sans font-bold text-nowrap text-right transition-colors duration-200",n?"text-[14px] leading-[24px]":"text-[16px] leading-normal",c()),children:l.jsx("p",{className:"whitespace-pre",dir:"auto",children:e.label})})}),e.icon&&l.jsx("div",{className:p("flex items-center justify-center shrink-0 transition-colors duration-200",n?"size-6":"size-7",c()),children:e.icon}),l.jsx("div",{className:"flex flex-col items-start justify-start p-0 relative shrink-0",children:l.jsx(Z,{selected:i,disabled:r,isMobile:n})})]})})})})},ee=t.forwardRef(({options:e,value:t,onChange:i,name:r,disabled:a=!1,className:o,isMobile:n,direction:s="vertical",...d},c)=>l.jsx("div",{ref:c,className:"horizontal"===s?p("flex flex-row gap-2",n?"flex-wrap":"flex-nowrap",o):p("flex flex-col gap-2",o),role:"radiogroup",...d,children:e.map(e=>l.jsx(Q,{option:e,selected:t===e.id,disabled:a||e.disabled,onClick:()=>{return t=e.id,void(!a&&i&&i(t));var t},name:r,isMobile:n},e.id))}));ee.displayName="RadioGroup";const te={purple:{background:"bg-[var(--color-primary-lightest)]",text:"text-[var(--color-primary-darkest)]",border:"border-[var(--color-primary-light)]"},red:{background:"bg-[var(--color-error-light)]",text:"text-[var(--color-error)]",border:"border-[#f0d6d6]"},green:{background:"bg-[var(--color-success-light)]",text:"text-[var(--color-success)]",border:"border-[#d4e8dc]"},orange:{background:"bg-[var(--color-warning-light)]",text:"text-[var(--color-warning)]",border:"border-[#f5e1d1]"},blue:{background:"bg-[var(--color-info-light)]",text:"text-[var(--color-info)]",border:"border-[#d3e9f2]"},white:{background:"bg-[var(--color-white)]",text:"text-[var(--color-neutral-darker)]",border:"border-[var(--color-neutral-light)]"},disabled:{background:"bg-[var(--color-neutral-lighter)]",text:"text-[var(--color-neutral-main)]",border:"border-[var(--color-neutral-light)]"}},ie={mobile:{padding:"px-2.5 py-1",gap:"gap-1",iconSize:"size-4",fontSize:"text-[12px]",lineHeight:"leading-[1.8]"},desktop:{padding:"px-3 py-1",gap:"gap-1.5",iconSize:"size-5",fontSize:"text-[14px]",lineHeight:"leading-[24px]"}},re=t.forwardRef(({variant:e="purple",size:t,children:i="متن پیشفرض",disabled:r=!1,onClick:a,onIconClick:o,className:n,isMobile:s,...d},c)=>{const u=te[r?"disabled":e],b=ie[t||(s?"mobile":"desktop")],h=e=>{e.stopPropagation(),o&&o()};return l.jsxs("div",{ref:c,className:p("relative rounded-[50px] border border-solid inline-flex","flex-row items-center justify-center","font-sans font-bold not-italic","text-nowrap text-right","transition-all duration-200",u.background,u.text,u.border,b.padding,b.gap,b.fontSize,b.lineHeight,a&&!r&&"cursor-pointer hover:opacity-80",r&&"cursor-not-allowed opacity-60",n),onClick:r?void 0:a,onKeyDown:a&&!r?e=>{"Enter"!==e.key&&" "!==e.key||!a||r||(e.preventDefault(),a())}:void 0,tabIndex:a&&!r?0:void 0,role:a?"button":void 0,...d,children:[l.jsx("span",{className:"text-center",children:i}),(()=>{const e=l.jsx($,{className:p(b.iconSize)});return o?l.jsx("button",{type:"button",onClick:h,disabled:r,className:p("flex items-center justify-center","hover:opacity-70 transition-opacity",r&&"cursor-not-allowed opacity-50"),"aria-label":"حذف",children:e}):e})()]})});re.displayName="Chips";var ae,oe="user-agent",ne="",se="function",le="undefined",de="object",ce="string",ue="browser",pe="cpu",be="device",he="engine",me="os",fe="result",xe="name",we="type",ve="vendor",ge="version",ye="architecture",ke="major",je="model",Ne="console",Ce="mobile",Se="tablet",ze="smarttv",_e="wearable",Ae="xr",Ie="embedded",Oe="inapp",Ee="brands",Te="formFactors",Re="fullVersionList",Me="platform",Pe="platformVersion",De="bitness",qe="sec-ch-ua",Be=qe+"-full-version-list",$e=qe+"-arch",Ve=qe+"-"+De,He=qe+"-form-factors",Ue=qe+"-"+Ce,Le=qe+"-"+je,Fe=qe+"-"+Me,We=Fe+"-version",Ke=[Ee,Re,Ce,je,Me,Pe,ye,Te,De],Ge="Amazon",Xe="Apple",Ye="ASUS",Je="BlackBerry",Ze="Google",Qe="Huawei",et="Lenovo",tt="Honor",it="LG",rt="Microsoft",at="Motorola",ot="Nvidia",nt="OnePlus",st="OPPO",lt="Samsung",dt="Sharp",ct="Sony",ut="Xiaomi",pt="Zebra",bt="Chrome",ht="Chromium",mt="Chromecast",ft="Edge",xt="Firefox",wt="Opera",vt="Facebook",gt="Sogou",yt="Mobile ",kt=" Browser",jt="Windows",Nt=typeof window!==le&&window.navigator?window.navigator:void 0,Ct=Nt&&Nt.userAgentData?Nt.userAgentData:void 0,St=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},zt=function(e,t){if(typeof e===de&&e.length>0){for(var i in e)if(Ot(t)==Ot(e[i]))return!0;return!1}return!!At(e)&&Ot(t)==Ot(e)},_t=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||!!t&&_t(e[i])},At=function(e){return typeof e===ce},It=function(e){if(e){for(var t=[],i=Rt(/\\?\"/g,e).split(","),r=0;r<i.length;r++)if(i[r].indexOf(";")>-1){var a=Pt(i[r]).split(";v=");t[r]={brand:a[0],version:a[1]}}else t[r]=Pt(i[r]);return t}},Ot=function(e){return At(e)?e.toLowerCase():e},Et=function(e){return At(e)?Rt(/[^\d\.]/g,e).split(".")[0]:void 0},Tt=function(e){for(var t in e){var i=e[t];typeof i==de&&2==i.length?this[i[0]]=i[1]:this[i]=void 0}return this},Rt=function(e,t){return At(t)?t.replace(e,ne):t},Mt=function(e){return Rt(/\\?\"/g,e)},Pt=function(e,t){if(At(e))return e=Rt(/^\s\s*/,e),typeof t===le?e:e.substring(0,500)},Dt=function(e,t){if(e&&t)for(var i,r,a,o,n,s,l=0;l<t.length&&!n;){var d=t[l],c=t[l+1];for(i=r=0;i<d.length&&!n&&d[i];)if(n=d[i++].exec(e))for(a=0;a<c.length;a++)s=n[++r],typeof(o=c[a])===de&&o.length>0?2===o.length?typeof o[1]==se?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]!==se||o[1].exec&&o[1].test?3==o.length?this[o[0]]=s?s.replace(o[1],o[2]):void 0:4==o.length?this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=s?o[3].apply(this,[s.replace(o[1],o[2])].concat(o.slice(4))):void 0):o.length>3?this[o[0]]=s?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0):this[o]=s||void 0;l+=2}},qt=function(e,t){for(var i in t)if(typeof t[i]===de&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(zt(t[i][r],e))return"?"===i?void 0:i}else if(zt(t[i],e))return"?"===i?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Bt={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},$t={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Vt={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Ht={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[ge,[xe,yt+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[ge,[xe,ft+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[ge,[xe,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[xe,ge],[/opios[\/ ]+([\w\.]+)/i],[ge,[xe,wt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[ge,[xe,wt+" GX"]],[/\bopr\/([\w\.]+)/i],[ge,[xe,wt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[ge,[xe,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[ge,[xe,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[xe,ge],[/quark(?:pc)?\/([-\w\.]+)/i],[ge,[xe,"Quark"]],[/\bddg\/([\w\.]+)/i],[ge,[xe,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[ge,[xe,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[ge,[xe,"WeChat"]],[/konqueror\/([\w\.]+)/i],[ge,[xe,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[ge,[xe,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[ge,[xe,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[ge,[xe,"Smart "+et+kt]],[/(avast|avg)\/([\w\.]+)/i],[[xe,/(.+)/,"$1 Secure"+kt],ge],[/\bfocus\/([\w\.]+)/i],[ge,[xe,xt+" Focus"]],[/\bopt\/([\w\.]+)/i],[ge,[xe,wt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[ge,[xe,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[ge,[xe,"Dolphin"]],[/coast\/([\w\.]+)/i],[ge,[xe,wt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[ge,[xe,"MIUI"+kt]],[/fxios\/([\w\.-]+)/i],[ge,[xe,yt+xt]],[/\bqihoobrowser\/?([\w\.]*)/i],[ge,[xe,"360"]],[/\b(qq)\/([\w\.]+)/i],[[xe,/(.+)/,"$1Browser"],ge],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[xe,/(.+)/,"$1"+kt],ge],[/samsungbrowser\/([\w\.]+)/i],[ge,[xe,lt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[ge,[xe,gt+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[xe,gt+" Mobile"],ge],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[xe,ge],[/(lbbrowser|rekonq)/i],[xe],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[ge,xe],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[xe,vt],ge,[we,Oe]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[xe,ge,[we,Oe]],[/\bgsa\/([\w\.]+) .*safari\//i],[ge,[xe,"GSA"],[we,Oe]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[ge,[xe,"TikTok"],[we,Oe]],[/\[(linkedin)app\]/i],[xe,[we,Oe]],[/(chromium)[\/ ]([-\w\.]+)/i],[xe,ge],[/headlesschrome(?:\/([\w\.]+)| )/i],[ge,[xe,bt+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[ge,[xe,ft+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[xe,bt+" WebView"],ge],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[ge,[xe,"Android"+kt]],[/chrome\/([\w\.]+) mobile/i],[ge,[xe,yt+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[xe,ge],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[ge,[xe,yt+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[xe,yt+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[ge,xe],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[xe,[ge,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[xe,ge],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[xe,yt+xt],ge],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[xe,"Netscape"],ge],[/(wolvic|librewolf)\/([\w\.]+)/i],[xe,ge],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[ge,[xe,xt+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[xe,[ge,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[xe,[ge,/[^\d\.]+./,ne]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[ye,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[ye,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[ye,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[ye,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[ye,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[ye,/ower/,ne,Ot]],[/ sun4\w[;\)]/i],[[ye,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[ye,Ot]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[je,[ve,lt],[we,Se]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[je,[ve,lt],[we,Ce]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[je,[ve,Xe],[we,Ce]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[je,[ve,Xe],[we,Se]],[/(macintosh);/i],[je,[ve,Xe]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[je,[ve,dt],[we,Ce]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[je,[ve,tt],[we,Se]],[/honor([-\w ]+)[;\)]/i],[je,[ve,tt],[we,Ce]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[je,[ve,Qe],[we,Se]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[je,[ve,Qe],[we,Ce]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[je,/_/g," "],[ve,ut],[we,Se]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[je,/_/g," "],[ve,ut],[we,Ce]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[je,[ve,nt],[we,Ce]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[je,[ve,st],[we,Ce]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[je,[ve,qt,{OnePlus:["203","304","403","404","413","415"],"*":st}],[we,Se]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[je,[ve,"BLU"],[we,Ce]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[je,[ve,"Vivo"],[we,Ce]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[je,[ve,"Realme"],[we,Ce]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[je,[ve,et],[we,Se]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[je,[ve,et],[we,Ce]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[je,[ve,at],[we,Ce]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[je,[ve,at],[we,Se]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[je,[ve,it],[we,Se]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[je,[ve,it],[we,Ce]],[/(nokia) (t[12][01])/i],[ve,je,[we,Se]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[je,/_/g," "],[we,Ce],[ve,"Nokia"]],[/(pixel (c|tablet))\b/i],[je,[ve,Ze],[we,Se]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[je,[ve,Ze],[we,Ce]],[/(google) (pixelbook( go)?)/i],[ve,je],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[je,[ve,ct],[we,Ce]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[je,"Xperia Tablet"],[ve,ct],[we,Se]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[je,[ve,Ge],[we,Se]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[je,/(.+)/g,"Fire Phone $1"],[ve,Ge],[we,Ce]],[/(playbook);[-\w\),; ]+(rim)/i],[je,ve,[we,Se]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[je,[ve,Je],[we,Ce]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[je,[ve,Ye],[we,Se]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[je,[ve,Ye],[we,Ce]],[/(nexus 9)/i],[je,[ve,"HTC"],[we,Se]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ve,[je,/_/g," "],[we,Ce]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[je,[ve,"TCL"],[we,Se]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[je,[ve,"TCL"],[we,Ce]],[/(itel) ((\w+))/i],[[ve,Ot],je,[we,qt,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[je,[ve,"Acer"],[we,Se]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[je,[ve,"Meizu"],[we,Ce]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[je,[ve,"Ulefone"],[we,Ce]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[je,[ve,"Energizer"],[we,Ce]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[je,[ve,"Cat"],[we,Ce]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[je,[ve,"Smartfren"],[we,Ce]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[je,[ve,"Nothing"],[we,Ce]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[je,[ve,"Archos"],[we,Se]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[je,[ve,"Archos"],[we,Ce]],[/; (n159v)/i],[je,[ve,"HMD"],[we,Ce]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[ve,je,[we,Se]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[ve,je,[we,Ce]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[ve,je,[we,Se]],[/(surface duo)/i],[je,[ve,rt],[we,Se]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[je,[ve,"Fairphone"],[we,Ce]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[je,[ve,ot],[we,Se]],[/(sprint) (\w+)/i],[ve,je,[we,Ce]],[/(kin\.[onetw]{3})/i],[[je,/\./g," "],[ve,rt],[we,Ce]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[je,[ve,pt],[we,Se]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[je,[ve,pt],[we,Ce]],[/smart-tv.+(samsung)/i],[ve,[we,ze]],[/hbbtv.+maple;(\d+)/i],[[je,/^/,"SmartTV"],[ve,lt],[we,ze]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[ve,je,[we,ze]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ve,it],[we,ze]],[/(apple) ?tv/i],[ve,[je,Xe+" TV"],[we,ze]],[/crkey.*devicetype\/chromecast/i],[[je,mt+" Third Generation"],[ve,Ze],[we,ze]],[/crkey.*devicetype\/([^/]*)/i],[[je,/^/,"Chromecast "],[ve,Ze],[we,ze]],[/fuchsia.*crkey/i],[[je,mt+" Nest Hub"],[ve,Ze],[we,ze]],[/crkey/i],[[je,mt],[ve,Ze],[we,ze]],[/(portaltv)/i],[je,[ve,vt],[we,ze]],[/droid.+aft(\w+)( bui|\))/i],[je,[ve,Ge],[we,ze]],[/(shield \w+ tv)/i],[je,[ve,ot],[we,ze]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[je,[ve,dt],[we,ze]],[/(bravia[\w ]+)( bui|\))/i],[je,[ve,ct],[we,ze]],[/(mi(tv|box)-?\w+) bui/i],[je,[ve,ut],[we,ze]],[/Hbbtv.*(technisat) (.*);/i],[ve,je,[we,ze]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ve,/.+\/(\w+)/,"$1",qt,{LG:"lge"}],[je,Pt],[we,ze]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[je,[we,ze]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[we,ze]],[/(playstation \w+)/i],[je,[ve,ct],[we,Ne]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[je,[ve,rt],[we,Ne]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[ve,je,[we,Ne]],[/droid.+; (shield)( bui|\))/i],[je,[ve,ot],[we,Ne]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[je,[ve,lt],[we,_e]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ve,je,[we,_e]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[je,[ve,st],[we,_e]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[je,[ve,Xe],[we,_e]],[/(opwwe\d{3})/i],[je,[ve,nt],[we,_e]],[/(moto 360)/i],[je,[ve,at],[we,_e]],[/(smartwatch 3)/i],[je,[ve,ct],[we,_e]],[/(g watch r)/i],[je,[ve,it],[we,_e]],[/droid.+; (wt63?0{2,3})\)/i],[je,[ve,pt],[we,_e]],[/droid.+; (glass) \d/i],[je,[ve,Ze],[we,Ae]],[/(pico) (4|neo3(?: link|pro)?)/i],[ve,je,[we,Ae]],[/(quest( \d| pro)?s?).+vr/i],[je,[ve,vt],[we,Ae]],[/mobile vr; rv.+firefox/i],[[we,Ae]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ve,[we,Ie]],[/(aeobc)\b/i],[je,[ve,Ge],[we,Ie]],[/(homepod).+mac os/i],[je,[ve,Xe],[we,Ie]],[/windows iot/i],[[we,Ie]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[je,[we,qt,{mobile:"Mobile",xr:"VR","*":Se}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[we,Se]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[we,Ce]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[je,[ve,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[ge,[xe,ft+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[xe,ge],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[ge,[xe,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[xe,ge],[/ladybird\//i],[[xe,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[ge,xe]],os:[[/(windows nt) (6\.[23]); arm/i],[[xe,/N/,"R"],[ge,qt,Bt]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[xe,ge],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[ge,/(;|\))/g,"",qt,Bt],[xe,jt]],[/(windows ce)\/?([\d\.]*)/i],[xe,ge],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[ge,/_/g,"."],[xe,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[xe,"macOS"],[ge,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[ge,[xe,mt+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[ge,[xe,mt+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[ge,[xe,mt+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[ge,[xe,mt+" Linux"]],[/crkey\/([\d\.]+)/i],[ge,[xe,mt]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[ge,xe],[/(ubuntu) ([\w\.]+) like android/i],[[xe,/(.+)/,"$1 Touch"],ge],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[xe,ge],[/\(bb(10);/i],[ge,[xe,Je]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[ge,[xe,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[ge,[xe,xt+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[ge,[xe,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[ge,qt,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[xe,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[ge,[xe,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[xe,"Chrome OS"],ge],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[xe,ge],[/(sunos) ?([\d\.]*)/i],[[xe,"Solaris"],ge],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[xe,ge]]},Ut=(Tt.call((ae={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[ue,[xe,ge,ke,we]],[pe,[ye]],[be,[we,je,ve]],[he,[xe,ge]],[me,[xe,ge]]]),Tt.call(ae.isIgnore,[[ue,[ge,ke]],[he,[ge]],[me,[ge]]]),Tt.call(ae.isIgnoreRgx,[[ue,/ ?browser$/i],[me,/ ?os$/i]]),Tt.call(ae.toString,[[ue,[xe,ge]],[pe,[ye]],[be,[ve,je]],[he,[xe,ge]],[me,[xe,ge]]]),ae),Lt=function(e,t){var i=Ut.init[t],r=Ut.isIgnore[t]||0,a=Ut.isIgnoreRgx[t]||0,o=Ut.toString[t]||0;function n(){Tt.call(this,i)}return n.prototype.getItem=function(){return e},n.prototype.withClientHints=function(){return Ct?Ct.getHighEntropyValues(Ke).then(function(t){return e.setCH(new Ft(t,!1)).parseCH().get()}):e.parseCH().get()},n.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=fe&&(n.prototype.is=function(e){var t=!1;for(var i in this)if(this.hasOwnProperty(i)&&!zt(r,i)&&Ot(a?Rt(a,this[i]):this[i])==Ot(a?Rt(a,e):e)){if(t=!0,e!=le)break}else if(e==le&&t){t=!t;break}return t},n.prototype.toString=function(){var e=ne;for(var t in o)typeof this[o[t]]!==le&&(e+=(e?" ":ne)+this[o[t]]);return e||le}),Ct||(n.prototype.then=function(e){var t=this,i=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};i.prototype={is:n.prototype.is,toString:n.prototype.toString};var r=new i;return e(r),r}),new n};function Ft(e,t){if(e=e||{},Tt.call(this,Ke),t)Tt.call(this,[[Ee,It(e[qe])],[Re,It(e[Be])],[Ce,/\?1/.test(e[Ue])],[je,Mt(e[Le])],[Me,Mt(e[Fe])],[Pe,Mt(e[We])],[ye,Mt(e[$e])],[Te,It(e[He])],[De,Mt(e[Ve])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==le&&(this[i]=e[i])}function Wt(e,t,i,r){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(Nt&&Nt.userAgent==this.ua)switch(this.itemType){case ue:Nt.brave&&typeof Nt.brave.isBrave==se&&this.set(xe,"Brave");break;case be:!this.get(we)&&Ct&&Ct[Ce]&&this.set(we,Ce),"Macintosh"==this.get(je)&&Nt&&typeof Nt.standalone!==le&&Nt.maxTouchPoints&&Nt.maxTouchPoints>2&&this.set(je,"iPad").set(we,Se);break;case me:!this.get(xe)&&Ct&&Ct[Me]&&this.set(xe,Ct[Me]);break;case fe:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(ue,t(ue)).set(pe,t(pe)).set(be,t(be)).set(he,t(he)).set(me,t(me))}return this},this.parseUA=function(){return this.itemType!=fe&&Dt.call(this.data,this.ua,this.rgxMap),this.itemType==ue&&this.set(ke,Et(this.get(ge))),this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case ue:case he:var i,r=e[Re]||e[Ee];if(r)for(var a in r){var o=r[a].brand||r[a],n=r[a].version;this.itemType==ue&&!/not.a.brand/i.test(o)&&(!i||/Chrom/.test(i)&&o!=ht||i==ft&&/WebView2/.test(o))&&(o=qt(o,Vt),(i=this.get(xe))&&!/Chrom/.test(i)&&/Chrom/.test(o)||this.set(xe,o).set(ge,n).set(ke,Et(n)),i=o),this.itemType==he&&o==ht&&this.set(ge,n)}break;case pe:var s=e[ye];s&&(s&&"64"==e[De]&&(s+="64"),Dt.call(this.data,s+";",t));break;case be:if(e[Ce]&&this.set(we,Ce),e[je]&&(this.set(je,e[je]),!this.get(we)||!this.get(ve))){var l={};Dt.call(l,"droid 9; "+e[je]+")",t),!this.get(we)&&l.type&&this.set(we,l.type),!this.get(ve)&&l.vendor&&this.set(ve,l.vendor)}if(e[Te]){var d;if("string"!=typeof e[Te])for(var c=0;!d&&c<e[Te].length;)d=qt(e[Te][c++],$t);else d=qt(e[Te],$t);this.set(we,d)}break;case me:var u=e[Me];if(u){var p=e[Pe];u==jt&&(p=parseInt(Et(p),10)>=13?"11":"10"),this.set(xe,u).set(ge,p)}this.get(xe)==jt&&"Xbox"==e[je]&&this.set(xe,"Xbox").set(ge,void 0);break;case fe:var b=this.data,h=function(t){return b[t].getItem().setCH(e).parseCH().get()};this.set(ue,h(ue)).set(pe,h(pe)).set(be,h(be)).set(he,h(he)).set(me,h(me))}return this},Tt.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",i],["data",Lt(this,e)]]),this}function Kt(e,t,i){if(typeof e===de?(_t(e,!0)?(typeof t===de&&(i=t),t=e):(i=e,t=void 0),e=void 0):typeof e!==ce||_t(t,!0)||(i=t,t=void 0),i&&typeof i.append===se){var r={};i.forEach(function(e,t){r[t]=e}),i=r}if(!(this instanceof Kt))return new Kt(e,t,i).getResult();var a=typeof e===ce?e:i&&i[oe]?i[oe]:Nt&&Nt.userAgent?Nt.userAgent:ne,o=new Ft(i,!0),n=t?function(e,t){var i={},r=t;if(!_t(t))for(var a in r={},t)for(var o in t[a])r[o]=t[a][o].concat(r[o]?r[o]:[]);for(var n in e)i[n]=r[n]&&r[n].length%2==0?r[n].concat(e[n]):e[n];return i}(Ht,t):Ht,s=function(e){return e==fe?function(){return new Wt(e,a,n,o).set("ua",a).set(ue,this.getBrowser()).set(pe,this.getCPU()).set(be,this.getDevice()).set(he,this.getEngine()).set(me,this.getOS()).get()}:function(){return new Wt(e,a,n[e],o).parseUA().get()}};return Tt.call(this,[["getBrowser",s(ue)],["getCPU",s(pe)],["getDevice",s(be)],["getEngine",s(he)],["getOS",s(me)],["getResult",s(fe)],["getUA",function(){return a}],["setUA",function(e){return At(e)&&(a=e.length>500?Pt(e,500):e),this}]]).setUA(a),this}Kt.VERSION="2.0.4",Kt.BROWSER=St([xe,ge,ke,we]),Kt.CPU=St([ye]),Kt.DEVICE=St([je,ve,we,Ne,Ce,ze,Se,_e,Ie]),Kt.ENGINE=Kt.OS=St([xe,ge]);const Gt=t.createContext(void 0),Xt=c(f,"Typography"),Yt=c(g,"Button"),Jt=c(y,"Input"),Zt=c(N,"Tabs"),Qt=c(C,"Drawer"),ei=c(S,"Backdrop"),ti=c(V,"Breadcrumb"),ii=c(({pageCount:e,page:i,defaultPage:r=1,onPageChange:a,className:o,isMobile:n,...s})=>{const d=void 0!==i,[c,u]=t.useState(r),p=d?i:c,b=n?"mobile":"desktop";t.useEffect(()=>{d||u(r)},[r,d]);const h=e=>{d||u(e),a?.(e)};return l.jsx(H,{className:o,...s,children:l.jsxs(U,{device:"mobile",children:[l.jsx(L,{children:l.jsx(W,{href:"#",onClick:e=>{e.preventDefault(),p>1&&h(p-1)},variant:"nextPrev",device:b,"aria-disabled":1===p,tabIndex:1===p?-1:0})}),function(){const t=[];if(e<=5)for(let i=1;i<=e;i++)t.push(l.jsx(L,{children:l.jsx(F,{href:"#",isActive:p===i,variant:"main",device:b,onClick:e=>{e.preventDefault(),p!==i&&h(i)},"aria-disabled":p===i,tabIndex:p===i?-1:0,children:i})},i));else{t.push(l.jsx(L,{children:l.jsx(F,{href:"#",isActive:1===p,device:b,variant:"main",onClick:e=>{e.preventDefault(),1!==p&&h(1)},"aria-disabled":1===p,tabIndex:1===p?-1:0,children:"1"})},1)),p>3&&t.push(l.jsx(L,{children:l.jsx(G,{})},"start-ellipsis"));const i=Math.max(2,p-1),r=Math.min(e-1,p+1);for(let e=i;e<=r;e++)t.push(l.jsx(L,{children:l.jsx(F,{href:"#",isActive:p===e,device:b,variant:"main",onClick:t=>{t.preventDefault(),p!==e&&h(e)},"aria-disabled":p===e,tabIndex:p===e?-1:0,children:e})},e));p<e-2&&t.push(l.jsx(L,{children:l.jsx(G,{})},"end-ellipsis")),t.push(l.jsx(L,{children:l.jsx(F,{href:"#",isActive:p===e,device:b,variant:"main",onClick:t=>{t.preventDefault(),p!==e&&h(e)},"aria-disabled":p===e,tabIndex:p===e?-1:0,children:e})},e))}return t}(),l.jsx(L,{children:l.jsx(K,{href:"#",onClick:t=>{t.preventDefault(),p<e&&h(p+1)},variant:"nextPrev",device:b,"aria-disabled":p===e,tabIndex:p===e?-1:0})})]})})},"Pagination"),ri=c(Y,"Accordion"),ai=c(J,"Divider"),oi=c(ee,"RadioGroup"),ni=c(re,"Chips");exports.Accordion=ri,exports.Backdrop=ei,exports.Breadcrumb=ti,exports.Button=Yt,exports.Chips=ni,exports.Divider=ai,exports.Drawer=Qt,exports.Input=Jt,exports.MobileProvider=({userAgent:e,children:i})=>{const r=(e=>{const t=new Kt;t.setUA(e);const i=t.getDevice();return"mobile"===i.type||"tablet"===i.type})(e),a=t.useMemo(()=>({isMobile:r,userAgent:e}),[r,e]);return l.jsx(Gt.Provider,{value:a,children:i})},exports.Pagination=ii,exports.RadioGroup=oi,exports.Tabs=Zt,exports.Typography=Xt,exports.initializeAutomobiKit=function(e){return d.getInstance().initialize(e)},exports.useMobile=e=>{const i=t.useContext(Gt);if(void 0===i)throw new Error("useMobile must be used within a MobileProvider");return void 0===e?i:{isMobile:e,userAgent:i.userAgent}};
|
package/dist/index.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import e,{useState as t,useId as i,useRef as r,useEffect as a,forwardRef as o,createElement as n,createContext as s,useMemo as l,useContext as d}from"react";var c,u={exports:{}},b={};var p,h,m={};function f(){return p||(p=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case f:return"Profiler";case h:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList";case N:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case b:return"Portal";case w:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case v:var i=e.render;return(e=e.displayName)||(e=""!==(e=i.displayName||i.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(i=e.displayName||null)?i:t(e.type)||"Memo";case j:i=e._payload,e=e._init;try{return t(e(i))}catch(e){}}return null}function i(e){return""+e}function r(e){try{i(e);var t=!1}catch(e){t=!0}if(t){var r=(t=console).error,a="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),i(e)}}function a(e){if(e===p)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===j)return"<...>";try{var i=t(e);return i?"<"+i+">":"<...>"}catch(e){return"<...>"}}function o(){return Error("react-stack-top-frame")}function n(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,i,a,o,s,c,b,p){var h,m=i.children;if(void 0!==m)if(o)if(_(m)){for(o=0;o<m.length;o++)l(m[o]);Object.freeze&&Object.freeze(m)}else console.error("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 l(m);if(S.call(i,"key")){m=t(e);var f=Object.keys(i).filter(function(e){return"key"!==e});o=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",E[m+o]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error('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} />',o,m,f,m),E[m+o]=!0)}if(m=null,void 0!==a&&(r(a),m=""+a),function(e){if(S.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(i)&&(r(i.key),m=""+i.key),"key"in i)for(var x in a={},i)"key"!==x&&(a[x]=i[x]);else a=i;return m&&function(e,t){function i(){d||(d=!0,console.error("%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://react.dev/link/special-props)",t))}i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}(a,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,i,r,a,o,s,l){return i=o.ref,e={$$typeof:u,type:e,key:t,props:o,_owner:a},null!==(void 0!==i?i:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:n}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,c,0,null===(h=z.A)?null:h.getOwner(),a,b,p)}function l(e){"object"==typeof e&&null!==e&&e.$$typeof===u&&e._store&&(e._store.validated=1)}var d,c=e,u=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),z=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.prototype.hasOwnProperty,_=Array.isArray,A=console.createTask?console.createTask:function(){return null},I={},O=(c={"react-stack-bottom-frame":function(e){return e()}})["react-stack-bottom-frame"].bind(c,o)(),T=A(a(o)),E={};m.Fragment=p,m.jsx=function(e,t,i,r,o){var n=1e4>z.recentlyCreatedOwnerStacks++;return s(e,t,i,!1,0,o,n?Error("react-stack-top-frame"):O,n?A(a(e)):T)},m.jsxs=function(e,t,i,r,o){var n=1e4>z.recentlyCreatedOwnerStacks++;return s(e,t,i,!0,0,o,n?Error("react-stack-top-frame"):O,n?A(a(e)):T)}}()),m}var x=(h||(h=1,"production"===process.env.NODE_ENV?u.exports=function(){if(c)return b;c=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(t,i,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==i.key&&(a=""+i.key),"key"in i)for(var o in r={},i)"key"!==o&&(r[o]=i[o]);else r=i;return i=r.ref,{$$typeof:e,type:t,key:a,ref:void 0!==i?i:null,props:r}}return b.Fragment=t,b.jsx=i,b.jsxs=i,b}():u.exports=f()),u.exports);class w{static instance;isInitialized=!1;isValid=!1;licenseKey=null;validKeys=["automoby-kit-war-key-2025"];constructor(){}static getInstance(){return w.instance||(w.instance=new w),w.instance}initialize(e){try{return this.licenseKey=e.key,this.isValid=this.validateLicense(e.key),this.isInitialized=!0,this.isValid?(console.log("✅ Automoby Kit initialized successfully"),!0):(console.error("❌ Invalid license key provided for Automoby Kit"),!1)}catch(e){return console.error("❌ Failed to initialize Automoby Kit:",e),this.isValid=!1,this.isInitialized=!0,!1}}validateLicense(e){return!(!e||""===e.trim())&&this.validKeys.includes(e)}canUseComponents(){return this.isInitialized?!!this.isValid||(console.error("❌ Invalid license key. Please contact support or provide a valid license key."),!1):(console.error("❌ Automoby Kit not initialized. Please call initializeAutomobiKit() with your license key."),!1)}getLicenseStatus(){return{initialized:this.isInitialized,valid:this.isValid,key:this.licenseKey?`${this.licenseKey.substring(0,8)}...`:null}}reset(){this.isInitialized=!1,this.isValid=!1,this.licenseKey=null}}function v(e){return w.getInstance().initialize(e)}function g(t,i){const r=e.forwardRef((e,r)=>w.getInstance().canUseComponents()?x.jsx(t,{...e,ref:r}):x.jsxs("div",{style:{padding:"16px",border:"2px dashed #ef4444",borderRadius:"8px",backgroundColor:"#fef2f2",color:"#dc2626",textAlign:"center",fontFamily:"system-ui, sans-serif",fontSize:"14px",maxWidth:"400px",margin:"16px auto"},children:[x.jsx("div",{style:{fontWeight:"bold",marginBottom:"8px"},children:"🔒 License Required"}),x.jsxs("div",{style:{marginBottom:"8px"},children:['Component "',i,'" requires a valid license key.']}),x.jsx("div",{style:{fontSize:"12px",opacity:.8},children:"Please initialize Automoby Kit with your license key before using components."})]}));return r.displayName=`Protected(${i})`,r}function y(e){var t,i,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=y(e[t]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function k(...e){return function(){for(var e,t,i=0,r="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=y(e))&&(r&&(r+=" "),r+=t);return r}(e)}const j={h1:"text-[36px] font-[var(--font-weight-fat)]",h2:"text-[32px] font-[var(--font-weight-fat)]",h3:"text-[28px] font-[var(--font-weight-fat)]",h4:"text-[24px] font-[var(--font-weight-heavy)]",h5:"text-[22px] font-[var(--font-weight-heavy)]",h6:"text-[20px] font-[var(--font-weight-heavy)]","body-xl-heavy":"text-[20px] font-[var(--font-weight-heavy)]","body-l-heavy":"text-[18px] font-[var(--font-weight-heavy)]","body-l-bold":"text-[18px] font-[var(--font-weight-bold)]","body-l-medium":"text-[18px] font-[var(--font-weight-medium)]","body-m-heavy":"text-[16px] font-[var(--font-weight-heavy)]","body-m-bold":"text-[16px] font-[var(--font-weight-bold)]","body-m-medium":"text-[16px] font-[var(--font-weight-medium)]","body-s-heavy":"text-[14px] font-[var(--font-weight-heavy)]","body-s-bold":"text-[14px] font-[var(--font-weight-bold)]","body-s-medium":"text-[14px] font-[var(--font-weight-medium)]","body-ms-bold":"text-[13px] font-[var(--font-weight-bold)]","body-ms-medium":"text-[13px] font-[var(--font-weight-medium)]","body-xs-bold":"text-[12px] font-[var(--font-weight-bold)]","body-xs-medium":"text-[12px] font-[var(--font-weight-medium)]","body-t-bold":"text-[10px] font-[var(--font-weight-bold)]","body-t-medium":"text-[10px] font-[var(--font-weight-medium)]","body-ss-medium":"text-[9px] font-[var(--font-weight-medium)]"},N=e=>j[e],C={primary:"text-[var(--color-primary)]",secondary:"text-[var(--color-secondary)]","neutral-darker":"text-[var(--color-neutral-darker)]","neutral-dark":"text-[var(--color-neutral-dark)]","neutral-main":"text-[var(--color-neutral-main)]",white:"text-[var(--color-white)]",inherit:"text-inherit"},z=e.forwardRef(({variant:t="body-m-medium",color:i="inherit",as:r,className:a,children:o,...n},s)=>{const l=r||(e=>e.startsWith("h")?e.split("-")[0]:"p")(t);return e.createElement(l,{ref:s,className:k(j[t],C[i],"leading-[var(--leading-default)]",a),...n},o)});z.displayName="Typography";const S={sm:"px-[16px] py-[7px]",md:"px-[16px] py-[9px]",lg:"px-[16px] py-[13px]",xl:"px-[20px] py-[13px]"},_={sm:"body-s-bold",md:"body-m-bold",lg:"body-l-bold",xl:"body-xl-heavy"},A={primary:"\n bg-[var(--color-primary)] text-white\n hover:bg-[var(--color-primary-dark)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n ",secondary:"\n bg-[var(--color-primary-lightest)] text-[var(--color-primary)]\n hover:bg-[var(--color-primary-lighter)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n ",tertiary:"\n bg-white border border-[var(--color-primary-light)] text-[var(--color-primary)]\n hover:bg-[var(--color-neutral-lighter)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n ",ghost:"\n bg-transparent text-[var(--color-primary)]\n hover:bg-[var(--color-primary-lightest)]\n disabled:bg-[var(--color-neutral-light)] disabled:text-[var(--color-neutral-darker)]\n "},I=e.forwardRef(({className:e,variant:t="primary",size:i="md",icon:r,iconPosition:a="right",children:o,loading:n=!1,disabled:s,textVariant:l,...d},c)=>{const u=l||_[i];return x.jsxs("button",{ref:c,type:"button",className:k("inline-flex items-center justify-center rounded-[8px] transition-colors duration-200",S[i],A[t],N(u),s&&"opacity-50 pointer-events-none",e),disabled:s||n,...d,children:[r&&"left"===a&&x.jsx("span",{className:"mr-2 flex items-center",children:r}),n?"...":o,r&&"right"===a&&x.jsx("span",{className:"ml-2 flex items-center",children:r})]})});I.displayName="Button";const O=e.forwardRef(({state:e="default",label:r,value:a,onChange:o,helperText:n,startIcon:s,endIcon:l,type:d="text",isMobile:c,...u},b)=>{const[p,h]=t(!1),m=i(),f=p||""!==a&&null!=a,w="disabled"===e,v=k("relative flex items-center border rounded-lg transition-all duration-300 w-[360px]",{"h-[54px]":!c,"h-12":c,"border-neutral-light":"default"===e&&!p,"border-primary":"default"===e&&p,"border-error":"error"===e,"bg-white border-neutral-light cursor-not-allowed":w}),g=k("absolute pointer-events-none transition-all duration-300",{"top-[-10px] bg-white px-1 mx-3 font-medium":f,"text-s":!c&&f||c&&!f,"text-xs":c&&f,"text-m":!c&&!f,"right-1":s,"right-3":!s,"top-1/2 -translate-y-1/2 text-m font-medium":!f,"right-11":!f&&s,"right-4":!f&&!s,"text-neutral-main":!p&&"default"===e,"text-neutral-light":w,"text-primary":p&&"default"===e,"text-error":f&&"error"===e}),y=k("peer w-full h-full bg-transparent outline-none text-m font-medium disabled:text-neutral-light",{"pr-12":s,"pl-12":l,"px-4":!s&&!l,"pr-4 pl-12":!s&&l,"pl-4 pr-12":s&&!l,"cursor-not-allowed text-red-500":w,"text-neutral-dark":!p,"text-neutral-darker":p}),j=k("absolute h-5 w-5 transition-colors duration-300",{"text-neutral-main":"error"!==e&&!p,"text-primary":"default"===e&&p,"text-error":"error"===e,"text-neutral-light":w}),N=k("font-light mt-1 px-2 h-4",{"text-s":!c,"text-xs":c,"text-neutral-main":"default"===e,"text-primary":"default"===e&&p,"text-error":"error"===e,"text-neutral-light":w});return x.jsxs("div",{children:[x.jsxs("div",{className:v,children:[l&&x.jsx("span",{className:k(j,"left-4"),children:l}),x.jsx("label",{htmlFor:m,className:g,children:r}),x.jsx("input",{ref:b,id:m,type:d,value:a,onChange:o,onFocus:e=>{w||(h(!0),u.onFocus?.(e))},onBlur:e=>{w||(h(!1),u.onBlur?.(e))},disabled:w,className:y,...u}),s&&x.jsx("span",{className:k(j,"right-4"),children:s})]}),n&&x.jsx("p",{className:N,children:n})]})});O.displayName="Input";const T=(e,t,i,r)=>void 0===e?null:x.jsx("div",{className:k("flex items-center justify-center rounded-[5px] font-sans font-bold text-white","transition-colors duration-200",r?"size-6 text-[14px] pt-0.5":"size-[25px] text-[14px] pt-[3px]",i?"bg-midnight":t?"bg-primary":"bg-neutral-main"),children:x.jsx("p",{className:"leading-[24px] whitespace-pre",dir:"auto",children:e})}),E=(e,t,i)=>{const r=void 0!==e.count;return x.jsxs("div",{className:k("flex flex-row items-center justify-start transition-colors duration-200","gap-1.5"),children:[r&&T(e.count,t,e.disabled,i),x.jsx("div",{className:k("font-sans text-nowrap text-right transition-colors duration-200",i?"text-[14px]":t?"text-[16px]":"text-[18px]",e.disabled?"font-normal text-midnight":t?"font-bold text-primary":"font-normal text-neutral-main",i?"leading-[24px]":t?"leading-normal":"leading-[1.9]"),children:x.jsx("p",{className:"whitespace-pre",dir:"auto",children:e.label})})]})},P=e.forwardRef(({items:e,activeTab:t,onTabChange:i,className:r,isMobile:a,...o},n)=>x.jsxs("div",{ref:n,className:k("relative w-full",r),...o,children:[x.jsx("div",{className:"box-border flex flex-row items-center justify-end p-0 relative w-full",children:e.map(e=>((e,t,i,r)=>{const a=e.id===t;return x.jsxs("div",{className:k("box-border flex flex-col items-center justify-between relative shrink-0","cursor-pointer transition-all duration-200",i?"h-12 px-3":"h-14 px-4",a?i?"pt-[11px] pb-0":"pt-3.5 pb-0":"py-0 justify-center",e.disabled&&"cursor-not-allowed opacity-50",!e.disabled&&"hover:opacity-80"),onClick:()=>((e,t,i)=>{t||i(e)})(e.id,e.disabled,r),onKeyDown:t=>((e,t,i,r)=>{"Enter"!==e.key&&" "!==e.key||i||(e.preventDefault(),r(t))})(t,e.id,e.disabled,r),tabIndex:e.disabled?-1:0,role:"tab","aria-selected":a,"aria-disabled":e.disabled,children:[E(e,a,i),a&&x.jsx("div",{className:"bg-primary h-1 rounded-tl-[8px] rounded-tr-[8px] shrink-0 w-full"})]},e.id)})(e,t,a,i))}),x.jsx("div",{className:"absolute border-midnight-light border-[0px_0px_1px] border-solid bottom-[-0.5px] left-0 right-0 top-0 pointer-events-none"})]}));P.displayName="Tabs";const M=e.forwardRef(({children:e,direction:t="bottom",fullScreen:i=!1,isOpen:o=!1,onClose:n,className:s,isMobile:l,...d},c)=>{const u=r(null),b=r(null);a(()=>{const e=e=>{"Escape"===e.key&&o&&n&&n()};return o&&(document.addEventListener("keydown",e),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.body.style.overflow="auto"}},[o,n]);const p=k("fixed inset-0 z-50 transition-all duration-300",{"bg-neutral-darker/50 backdrop-blur-sm":o,"bg-transparent pointer-events-none":!o}),h=k("fixed bg-white shadow-2xl transition-all duration-300 ease-out overflow-auto",(()=>{switch(t){case"top":return"top-0 left-0 right-0";case"bottom":default:return"bottom-0 left-0 right-0";case"left":return"top-0 left-0 bottom-0";case"right":return"top-0 right-0 bottom-0"}})(),(()=>{const e="top"===t||"bottom"===t;return i?"w-full h-full":e?"w-full max-h-[90vh]":"h-full max-w-[90vw]"})(),(()=>{if(!o)switch(t){case"top":return"-translate-y-full";case"bottom":default:return"translate-y-full";case"left":return"-translate-x-full";case"right":return"translate-x-full"}return"translate-x-0 translate-y-0"})(),{"rounded-t-2xl":"bottom"===t&&!i,"rounded-b-2xl":"top"===t&&!i,"rounded-r-2xl":"left"===t&&!i,"rounded-l-2xl":"right"===t&&!i,"p-6":!l,"p-4":l},s);return o?x.jsx("div",{ref:u,className:p,onClick:e=>{!i&&n&&u.current&&e.target===u.current&&n()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||!i&&n&&u.current&&e.target===u.current&&n()},tabIndex:-1,role:"button","aria-label":"Close drawer",children:x.jsx("div",{ref:c||b,className:h,role:"dialog","aria-modal":"true","aria-label":"Drawer",...d,children:e})}):null});M.displayName="Drawer";const R=e.forwardRef(({isOpen:e=!1,onClick:t,blur:i=!1,zIndex:r=51,className:a,children:o,...n},s)=>{const l=k("fixed inset-0 transition-all duration-300",{"opacity-100 pointer-events-auto":e,"opacity-0 pointer-events-none":!e,"backdrop-blur-sm":i},a),d={backgroundColor:"rgba(0, 0, 0, 0.60)",zIndex:r};return x.jsx("div",{ref:s,className:l,style:d,onClick:e=>{t&&e.target===e.currentTarget&&t()},role:"presentation","aria-hidden":!e,...n,children:o})});R.displayName="Backdrop";const D=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},q=(...e)=>e.filter((e,t,i)=>Boolean(e)&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),$=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var B={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const V=o(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:s,...l},d)=>n("svg",{ref:d,...B,width:t,height:t,stroke:e,strokeWidth:r?24*Number(i)/Number(t):i,className:q("lucide",a),...!o&&!$(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>n(e,t)),...Array.isArray(o)?o:[o]])),H=(e,t)=>{const i=o(({className:i,...r},a)=>{return n(V,{ref:a,iconNode:t,className:q(`lucide-${o=D(e),o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,i),...r});var o});return i.displayName=D(e),i},U=H("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),L=H("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),F=H("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),W=H("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),K=H("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),G=H("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),X=H("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Y=H("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),J=e.forwardRef(({items:e,className:t,isMobile:i},r)=>x.jsx("nav",{ref:r,className:k("flex flex-row-reverse items-center",i?"gap-1 px-4 py-2.5":"gap-3 pr-1 pt-3 pb-4 pl-0",t),"aria-label":"Breadcrumb navigation",children:x.jsx("ol",{className:"flex flex-row-reverse items-center gap-inherit",children:e.map((t,r)=>{const a=r===e.length-1,o=!a&&(t.href||t.onClick),n=`${t.label}-${r}`;return x.jsxs("li",{className:"flex items-center gap-inherit",children:[o?x.jsx("a",{href:t.href||"#",className:k("whitespace-nowrap border-0 bg-transparent p-0 no-underline",i?"text-t":"text-s","text-neutral-main","cursor-pointer hover:text-neutral-dark transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-1 rounded-sm"),onClick:i=>((t,i,r)=>{i!==e.length-1&&t.onClick&&(r.preventDefault(),t.onClick())})(t,r,i),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.onClick&&t.onClick())},"aria-label":`Go to ${t.label}`,children:t.label}):x.jsx("span",{className:k("whitespace-nowrap",i?"text-t":"text-s","text-neutral-main","font-medium"),"aria-current":a?"page":void 0,"aria-label":a?`Current page: ${t.label}`:void 0,children:t.label}),!a&&x.jsx(L,{className:k("text-black flex-shrink-0",i?"w-2.5 h-2.5":"w-3 h-3"),"aria-hidden":"true"})]},n)})})}));function Z({className:e,...t}){return x.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:k("mx-auto flex w-full justify-center",e),...t})}function Q({className:e,device:t,...i}){return x.jsx("ul",{"data-slot":"pagination-content",className:k("flex flex-row items-center","mobile"===t?"gap-[6px]":"gap-2",e),...i})}function ee({...e}){return x.jsx("li",{"data-slot":"pagination-item",...e})}function te({className:e,device:t,variant:i,isActive:r,...a}){return x.jsx("a",{"aria-current":r?"page":void 0,"data-slot":"pagination-link","data-active":r,className:k(oe({variant:"nextPrev"===i?i:r?"active":"outline",device:t}),e),tabIndex:a["aria-disabled"]?-1:0,...a})}function ie({className:e,device:t,variant:i,...r}){const a="mobile"===t,o={mobile:x.jsx(F,{size:18}),desktop:x.jsxs(x.Fragment,{children:[x.jsx(G,{size:20})," ",x.jsx("span",{children:"قبلی"})]})};return x.jsx(te,{"aria-label":"Go to previous page",className:a?"ml-2.5":"flex justify-center items-center gap-2 w-[89px] h-[48px] ml-4",device:t,variant:"nextPrev",...r,children:"mobile"===t?o.mobile:o.desktop})}function re({className:e,device:t,variant:i,...r}){const a="mobile"===t,o={mobile:x.jsx(L,{size:18}),desktop:x.jsxs(x.Fragment,{children:[x.jsx("span",{children:"بعدی"}),x.jsx(K,{size:20})]})};return x.jsx(te,{"aria-label":"Go to next page",className:a?"mr-2.5":"flex justify-center items-center gap-2 w-[89px] h-[48px] mr-4",device:t,variant:"nextPrev",...r,children:"mobile"===t?o.mobile:o.desktop})}function ae({className:e,...t}){return x.jsx("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:k("flex size-9 items-center justify-center",e),...t,children:x.jsx(X,{className:"size-4"})})}function oe({variant:e,device:t}){const i="mobile"===t;return[k({"flex items-center justify-center rounded-[6px]":!0,"w-[40px] h-[40px] text-s font-heavy":i,"w-[48px] h-[48px] text-l font-heavy":!i}),{outline:"border border-neutral-light bg-white text-neutral-darker",active:"bg-primary text-white",nextPrev:"border border-neutral-light bg-white text-neutral-darker"}[e]].join(" ")}J.displayName="Breadcrumb";const ne=e.forwardRef(({title:e,body:i,startIcon:r,isExpanded:a,onToggle:o,defaultExpanded:n=!1,className:s,id:l,disabled:d=!1,isMobile:c,...u},b)=>{const[p,h]=t(n),m=void 0!==a?a:p,f=l||`accordion-${Math.random().toString(36).substr(2,9)}`,w=`${f}-header`,v=`${f}-content`,g=c?20:24,y=c?"body-s-heavy":"body-l-heavy",j=c?"body-s-medium":"body-m-medium";return x.jsxs("div",{ref:b,className:k("rounded-2xl border-0 overflow-hidden","transition-all duration-200 ease-in-out",s),...u,children:[x.jsxs("button",{id:w,type:"button",onClick:()=>{if(d)return;const e=!m;void 0===a&&h(e),o?.(e)},disabled:d,"aria-expanded":m,"aria-controls":v,className:k("w-full flex items-center justify-between",c?"p-3":"p-4","focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2","disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200 ease-in-out",!d&&"hover:bg-neutral-lighter"),children:[x.jsx("div",{className:"flex-shrink-0 mr-4",children:m?x.jsx(W,{size:g,className:"text-neutral-darker transition-transform duration-200","aria-hidden":"true"}):x.jsx(U,{size:g,className:"text-neutral-darker transition-transform duration-200","aria-hidden":"true"})}),x.jsxs("div",{className:k("flex items-center flex-1",c?"gap-3":"gap-4"),children:[x.jsx("div",{className:"flex-1 text-right",children:x.jsx(z,{variant:y,color:"neutral-darker",children:e})}),r&&x.jsx("div",{className:k("flex-shrink-0 flex items-center justify-center",c?"w-6 h-6":"w-8 h-8"),children:r})]})]}),x.jsx("div",{id:v,role:"region","aria-labelledby":w,className:k("w-full overflow-hidden transition-all duration-300 ease-in-out",m?"max-h-screen opacity-100":"max-h-0 opacity-0"),children:x.jsx("div",{className:k(c?"pb-3 mt-1":"pb-4 mt-1.5"),children:x.jsx("div",{className:k("bg-neutral-lighter rounded-lg",c?"p-3":"p-4"),children:x.jsx(z,{variant:j,color:"neutral-dark",children:i})})})})]})});ne.displayName="Accordion";const se=e.forwardRef(({width:e="100%",height:t=1,orientation:i="horizontal",variant:r="neutral-light",className:a,style:o,...n},s)=>{const l="horizontal"===i,d={width:l?e:t,height:l?t:e,...o};return x.jsx("div",{ref:s,className:k("shrink-0",{"neutral-light":"bg-neutral-light","neutral-main":"bg-neutral-main",primary:"bg-primary"}[r],a),style:d,role:"separator",...n})});se.displayName="Divider";const le=({selected:e,disabled:t,isMobile:i})=>{const r=i?"size-5":"size-6";return e?x.jsxs("div",{className:k("relative flex items-center justify-center",r),children:[x.jsx("div",{className:k("absolute inset-0 rounded-full border-2",t?"bg-neutral-light border-neutral-light":"bg-primary border-primary")}),x.jsx("div",{className:k("absolute rounded-full bg-white",i?"inset-[5px]":"inset-1.5")})]}):x.jsx("div",{className:k("relative flex items-center justify-center",r),children:x.jsx("div",{className:k("absolute inset-0 rounded-full border",i?"border":"border-[1.5px]",t?"border-neutral-light":"border-midnight")})})},de=({option:t,selected:i,disabled:r,onClick:a,name:o,isMobile:n})=>{const[s,l]=e.useState(!1),d=()=>r?"text-midnight":i?"text-primary":"text-neutral-dark";return x.jsx("div",{className:k("relative rounded-lg border-[1.5px] cursor-pointer transition-all duration-200",r?"bg-neutral-lighter":i?"bg-primary-lightest":s?"bg-primary-lightest/20":"bg-white",i?"border-primary":"border-transparent",r?"":"shadow-[0px_2px_4px_0px_rgba(0,0,0,0.08)]",r&&"cursor-not-allowed"),onClick:r?void 0:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||r||(e.preventDefault(),a())},tabIndex:r?-1:0,role:"radio","aria-checked":i,"aria-disabled":r,children:x.jsx("div",{className:"flex flex-row items-center justify-end relative w-full",children:x.jsx("div",{className:k("box-border flex flex-row items-center justify-end relative w-full",n?"gap-2 px-4 py-3":"gap-4 px-6 py-4"),children:x.jsxs("div",{className:k("flex flex-row items-center justify-end p-0 relative shrink-0",n?"gap-2":"gap-3"),children:[x.jsx("input",{type:"radio",name:o,value:t.id,checked:i,disabled:r,onChange:a,className:"sr-only","aria-label":t.label}),x.jsx("div",{className:"flex flex-col gap-0.5 items-end justify-start p-0 relative shrink-0",children:x.jsx("div",{className:k("font-sans font-bold text-nowrap text-right transition-colors duration-200",n?"text-[14px] leading-[24px]":"text-[16px] leading-normal",d()),children:x.jsx("p",{className:"whitespace-pre",dir:"auto",children:t.label})})}),t.icon&&x.jsx("div",{className:k("flex items-center justify-center shrink-0 transition-colors duration-200",n?"size-6":"size-7",d()),children:t.icon}),x.jsx("div",{className:"flex flex-col items-start justify-start p-0 relative shrink-0",children:x.jsx(le,{selected:i,disabled:r,isMobile:n})})]})})})})},ce=e.forwardRef(({options:e,value:t,onChange:i,name:r,disabled:a=!1,className:o,isMobile:n,direction:s="vertical",...l},d)=>x.jsx("div",{ref:d,className:"horizontal"===s?k("flex flex-row gap-2",n?"flex-wrap":"flex-nowrap",o):k("flex flex-col gap-2",o),role:"radiogroup",...l,children:e.map(e=>x.jsx(de,{option:e,selected:t===e.id,disabled:a||e.disabled,onClick:()=>{return t=e.id,void(!a&&i&&i(t));var t},name:r,isMobile:n},e.id))}));ce.displayName="RadioGroup";const ue={purple:{background:"bg-[var(--color-primary-lightest)]",text:"text-[var(--color-primary-darkest)]",border:"border-[var(--color-primary-light)]"},red:{background:"bg-[var(--color-error-light)]",text:"text-[var(--color-error)]",border:"border-[#f0d6d6]"},green:{background:"bg-[var(--color-success-light)]",text:"text-[var(--color-success)]",border:"border-[#d4e8dc]"},orange:{background:"bg-[var(--color-warning-light)]",text:"text-[var(--color-warning)]",border:"border-[#f5e1d1]"},blue:{background:"bg-[var(--color-info-light)]",text:"text-[var(--color-info)]",border:"border-[#d3e9f2]"},white:{background:"bg-[var(--color-white)]",text:"text-[var(--color-neutral-darker)]",border:"border-[var(--color-neutral-light)]"},disabled:{background:"bg-[var(--color-neutral-lighter)]",text:"text-[var(--color-neutral-main)]",border:"border-[var(--color-neutral-light)]"}},be={mobile:{padding:"px-2.5 py-1",gap:"gap-1",iconSize:"size-4",fontSize:"text-[12px]",lineHeight:"leading-[1.8]"},desktop:{padding:"px-3 py-1",gap:"gap-1.5",iconSize:"size-5",fontSize:"text-[14px]",lineHeight:"leading-[24px]"}},pe=e.forwardRef(({variant:e="purple",size:t,children:i="متن پیشفرض",disabled:r=!1,onClick:a,onIconClick:o,className:n,isMobile:s,...l},d)=>{const c=ue[r?"disabled":e],u=be[t||(s?"mobile":"desktop")],b=e=>{e.stopPropagation(),o&&o()};return x.jsxs("div",{ref:d,className:k("relative rounded-[50px] border border-solid inline-flex","flex-row items-center justify-center","font-sans font-bold not-italic","text-nowrap text-right","transition-all duration-200",c.background,c.text,c.border,u.padding,u.gap,u.fontSize,u.lineHeight,a&&!r&&"cursor-pointer hover:opacity-80",r&&"cursor-not-allowed opacity-60",n),onClick:r?void 0:a,onKeyDown:a&&!r?e=>{"Enter"!==e.key&&" "!==e.key||!a||r||(e.preventDefault(),a())}:void 0,tabIndex:a&&!r?0:void 0,role:a?"button":void 0,...l,children:[x.jsx("span",{className:"text-center",children:i}),(()=>{const e=x.jsx(Y,{className:k(u.iconSize)});return o?x.jsx("button",{type:"button",onClick:b,disabled:r,className:k("flex items-center justify-center","hover:opacity-70 transition-opacity",r&&"cursor-not-allowed opacity-50"),"aria-label":"حذف",children:e}):e})()]})});pe.displayName="Chips";var he,me="user-agent",fe="",xe="function",we="undefined",ve="object",ge="string",ye="browser",ke="cpu",je="device",Ne="engine",Ce="os",ze="result",Se="name",_e="type",Ae="vendor",Ie="version",Oe="architecture",Te="major",Ee="model",Pe="console",Me="mobile",Re="tablet",De="smarttv",qe="wearable",$e="xr",Be="embedded",Ve="inapp",He="brands",Ue="formFactors",Le="fullVersionList",Fe="platform",We="platformVersion",Ke="bitness",Ge="sec-ch-ua",Xe=Ge+"-full-version-list",Ye=Ge+"-arch",Je=Ge+"-"+Ke,Ze=Ge+"-form-factors",Qe=Ge+"-"+Me,et=Ge+"-"+Ee,tt=Ge+"-"+Fe,it=tt+"-version",rt=[He,Le,Me,Ee,Fe,We,Oe,Ue,Ke],at="Amazon",ot="Apple",nt="ASUS",st="BlackBerry",lt="Google",dt="Huawei",ct="Lenovo",ut="Honor",bt="LG",pt="Microsoft",ht="Motorola",mt="Nvidia",ft="OnePlus",xt="OPPO",wt="Samsung",vt="Sharp",gt="Sony",yt="Xiaomi",kt="Zebra",jt="Chrome",Nt="Chromium",Ct="Chromecast",zt="Edge",St="Firefox",_t="Opera",At="Facebook",It="Sogou",Ot="Mobile ",Tt=" Browser",Et="Windows",Pt=typeof window!==we&&window.navigator?window.navigator:void 0,Mt=Pt&&Pt.userAgentData?Pt.userAgentData:void 0,Rt=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Dt=function(e,t){if(typeof e===ve&&e.length>0){for(var i in e)if(Vt(t)==Vt(e[i]))return!0;return!1}return!!$t(e)&&Vt(t)==Vt(e)},qt=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||!!t&&qt(e[i])},$t=function(e){return typeof e===ge},Bt=function(e){if(e){for(var t=[],i=Lt(/\\?\"/g,e).split(","),r=0;r<i.length;r++)if(i[r].indexOf(";")>-1){var a=Wt(i[r]).split(";v=");t[r]={brand:a[0],version:a[1]}}else t[r]=Wt(i[r]);return t}},Vt=function(e){return $t(e)?e.toLowerCase():e},Ht=function(e){return $t(e)?Lt(/[^\d\.]/g,e).split(".")[0]:void 0},Ut=function(e){for(var t in e){var i=e[t];typeof i==ve&&2==i.length?this[i[0]]=i[1]:this[i]=void 0}return this},Lt=function(e,t){return $t(t)?t.replace(e,fe):t},Ft=function(e){return Lt(/\\?\"/g,e)},Wt=function(e,t){if($t(e))return e=Lt(/^\s\s*/,e),typeof t===we?e:e.substring(0,500)},Kt=function(e,t){if(e&&t)for(var i,r,a,o,n,s,l=0;l<t.length&&!n;){var d=t[l],c=t[l+1];for(i=r=0;i<d.length&&!n&&d[i];)if(n=d[i++].exec(e))for(a=0;a<c.length;a++)s=n[++r],typeof(o=c[a])===ve&&o.length>0?2===o.length?typeof o[1]==xe?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]!==xe||o[1].exec&&o[1].test?3==o.length?this[o[0]]=s?s.replace(o[1],o[2]):void 0:4==o.length?this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=s?o[3].apply(this,[s.replace(o[1],o[2])].concat(o.slice(4))):void 0):o.length>3?this[o[0]]=s?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0):this[o]=s||void 0;l+=2}},Gt=function(e,t){for(var i in t)if(typeof t[i]===ve&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(Dt(t[i][r],e))return"?"===i?void 0:i}else if(Dt(t[i],e))return"?"===i?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Xt={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Yt={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Jt={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Zt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Ie,[Se,Ot+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[Ie,[Se,zt+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Ie,[Se,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[Se,Ie],[/opios[\/ ]+([\w\.]+)/i],[Ie,[Se,_t+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Ie,[Se,_t+" GX"]],[/\bopr\/([\w\.]+)/i],[Ie,[Se,_t]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Ie,[Se,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[Ie,[Se,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[Se,Ie],[/quark(?:pc)?\/([-\w\.]+)/i],[Ie,[Se,"Quark"]],[/\bddg\/([\w\.]+)/i],[Ie,[Se,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Ie,[Se,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Ie,[Se,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Ie,[Se,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Ie,[Se,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Ie,[Se,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Ie,[Se,"Smart "+ct+Tt]],[/(avast|avg)\/([\w\.]+)/i],[[Se,/(.+)/,"$1 Secure"+Tt],Ie],[/\bfocus\/([\w\.]+)/i],[Ie,[Se,St+" Focus"]],[/\bopt\/([\w\.]+)/i],[Ie,[Se,_t+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Ie,[Se,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Ie,[Se,"Dolphin"]],[/coast\/([\w\.]+)/i],[Ie,[Se,_t+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Ie,[Se,"MIUI"+Tt]],[/fxios\/([\w\.-]+)/i],[Ie,[Se,Ot+St]],[/\bqihoobrowser\/?([\w\.]*)/i],[Ie,[Se,"360"]],[/\b(qq)\/([\w\.]+)/i],[[Se,/(.+)/,"$1Browser"],Ie],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[Se,/(.+)/,"$1"+Tt],Ie],[/samsungbrowser\/([\w\.]+)/i],[Ie,[Se,wt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[Ie,[Se,It+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[Se,It+" Mobile"],Ie],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[Se,Ie],[/(lbbrowser|rekonq)/i],[Se],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[Ie,Se],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[Se,At],Ie,[_e,Ve]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[Se,Ie,[_e,Ve]],[/\bgsa\/([\w\.]+) .*safari\//i],[Ie,[Se,"GSA"],[_e,Ve]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Ie,[Se,"TikTok"],[_e,Ve]],[/\[(linkedin)app\]/i],[Se,[_e,Ve]],[/(chromium)[\/ ]([-\w\.]+)/i],[Se,Ie],[/headlesschrome(?:\/([\w\.]+)| )/i],[Ie,[Se,jt+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[Ie,[Se,zt+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[Se,jt+" WebView"],Ie],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Ie,[Se,"Android"+Tt]],[/chrome\/([\w\.]+) mobile/i],[Ie,[Se,Ot+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[Se,Ie],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[Ie,[Se,Ot+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[Se,Ot+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[Ie,Se],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[Se,[Ie,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[Se,Ie],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[Se,Ot+St],Ie],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[Se,"Netscape"],Ie],[/(wolvic|librewolf)\/([\w\.]+)/i],[Se,Ie],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Ie,[Se,St+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[Se,[Ie,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[Se,[Ie,/[^\d\.]+./,fe]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Oe,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Oe,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Oe,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Oe,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Oe,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Oe,/ower/,fe,Vt]],[/ sun4\w[;\)]/i],[[Oe,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Oe,Vt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[Ee,[Ae,wt],[_e,Re]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[Ee,[Ae,wt],[_e,Me]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[Ee,[Ae,ot],[_e,Me]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[Ee,[Ae,ot],[_e,Re]],[/(macintosh);/i],[Ee,[Ae,ot]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[Ee,[Ae,vt],[_e,Me]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[Ee,[Ae,ut],[_e,Re]],[/honor([-\w ]+)[;\)]/i],[Ee,[Ae,ut],[_e,Me]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[Ee,[Ae,dt],[_e,Re]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[Ee,[Ae,dt],[_e,Me]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[Ee,/_/g," "],[Ae,yt],[_e,Re]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[Ee,/_/g," "],[Ae,yt],[_e,Me]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[Ee,[Ae,ft],[_e,Me]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[Ee,[Ae,xt],[_e,Me]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[Ee,[Ae,Gt,{OnePlus:["203","304","403","404","413","415"],"*":xt}],[_e,Re]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[Ee,[Ae,"BLU"],[_e,Me]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[Ee,[Ae,"Vivo"],[_e,Me]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[Ee,[Ae,"Realme"],[_e,Me]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[Ee,[Ae,ct],[_e,Re]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[Ee,[Ae,ct],[_e,Me]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[Ee,[Ae,ht],[_e,Me]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[Ee,[Ae,ht],[_e,Re]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[Ee,[Ae,bt],[_e,Re]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[Ee,[Ae,bt],[_e,Me]],[/(nokia) (t[12][01])/i],[Ae,Ee,[_e,Re]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[Ee,/_/g," "],[_e,Me],[Ae,"Nokia"]],[/(pixel (c|tablet))\b/i],[Ee,[Ae,lt],[_e,Re]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[Ee,[Ae,lt],[_e,Me]],[/(google) (pixelbook( go)?)/i],[Ae,Ee],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[Ee,[Ae,gt],[_e,Me]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[Ee,"Xperia Tablet"],[Ae,gt],[_e,Re]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[Ee,[Ae,at],[_e,Re]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[Ee,/(.+)/g,"Fire Phone $1"],[Ae,at],[_e,Me]],[/(playbook);[-\w\),; ]+(rim)/i],[Ee,Ae,[_e,Re]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[Ee,[Ae,st],[_e,Me]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[Ee,[Ae,nt],[_e,Re]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[Ee,[Ae,nt],[_e,Me]],[/(nexus 9)/i],[Ee,[Ae,"HTC"],[_e,Re]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[Ae,[Ee,/_/g," "],[_e,Me]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[Ee,[Ae,"TCL"],[_e,Re]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[Ee,[Ae,"TCL"],[_e,Me]],[/(itel) ((\w+))/i],[[Ae,Vt],Ee,[_e,Gt,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[Ee,[Ae,"Acer"],[_e,Re]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[Ee,[Ae,"Meizu"],[_e,Me]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[Ee,[Ae,"Ulefone"],[_e,Me]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[Ee,[Ae,"Energizer"],[_e,Me]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[Ee,[Ae,"Cat"],[_e,Me]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[Ee,[Ae,"Smartfren"],[_e,Me]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[Ee,[Ae,"Nothing"],[_e,Me]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[Ee,[Ae,"Archos"],[_e,Re]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[Ee,[Ae,"Archos"],[_e,Me]],[/; (n159v)/i],[Ee,[Ae,"HMD"],[_e,Me]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[Ae,Ee,[_e,Re]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[Ae,Ee,[_e,Me]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[Ae,Ee,[_e,Re]],[/(surface duo)/i],[Ee,[Ae,pt],[_e,Re]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[Ee,[Ae,"Fairphone"],[_e,Me]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[Ee,[Ae,mt],[_e,Re]],[/(sprint) (\w+)/i],[Ae,Ee,[_e,Me]],[/(kin\.[onetw]{3})/i],[[Ee,/\./g," "],[Ae,pt],[_e,Me]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[Ee,[Ae,kt],[_e,Re]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[Ee,[Ae,kt],[_e,Me]],[/smart-tv.+(samsung)/i],[Ae,[_e,De]],[/hbbtv.+maple;(\d+)/i],[[Ee,/^/,"SmartTV"],[Ae,wt],[_e,De]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[Ae,Ee,[_e,De]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[Ae,bt],[_e,De]],[/(apple) ?tv/i],[Ae,[Ee,ot+" TV"],[_e,De]],[/crkey.*devicetype\/chromecast/i],[[Ee,Ct+" Third Generation"],[Ae,lt],[_e,De]],[/crkey.*devicetype\/([^/]*)/i],[[Ee,/^/,"Chromecast "],[Ae,lt],[_e,De]],[/fuchsia.*crkey/i],[[Ee,Ct+" Nest Hub"],[Ae,lt],[_e,De]],[/crkey/i],[[Ee,Ct],[Ae,lt],[_e,De]],[/(portaltv)/i],[Ee,[Ae,At],[_e,De]],[/droid.+aft(\w+)( bui|\))/i],[Ee,[Ae,at],[_e,De]],[/(shield \w+ tv)/i],[Ee,[Ae,mt],[_e,De]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[Ee,[Ae,vt],[_e,De]],[/(bravia[\w ]+)( bui|\))/i],[Ee,[Ae,gt],[_e,De]],[/(mi(tv|box)-?\w+) bui/i],[Ee,[Ae,yt],[_e,De]],[/Hbbtv.*(technisat) (.*);/i],[Ae,Ee,[_e,De]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[Ae,/.+\/(\w+)/,"$1",Gt,{LG:"lge"}],[Ee,Wt],[_e,De]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[Ee,[_e,De]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[_e,De]],[/(playstation \w+)/i],[Ee,[Ae,gt],[_e,Pe]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[Ee,[Ae,pt],[_e,Pe]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[Ae,Ee,[_e,Pe]],[/droid.+; (shield)( bui|\))/i],[Ee,[Ae,mt],[_e,Pe]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[Ee,[Ae,wt],[_e,qe]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[Ae,Ee,[_e,qe]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[Ee,[Ae,xt],[_e,qe]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[Ee,[Ae,ot],[_e,qe]],[/(opwwe\d{3})/i],[Ee,[Ae,ft],[_e,qe]],[/(moto 360)/i],[Ee,[Ae,ht],[_e,qe]],[/(smartwatch 3)/i],[Ee,[Ae,gt],[_e,qe]],[/(g watch r)/i],[Ee,[Ae,bt],[_e,qe]],[/droid.+; (wt63?0{2,3})\)/i],[Ee,[Ae,kt],[_e,qe]],[/droid.+; (glass) \d/i],[Ee,[Ae,lt],[_e,$e]],[/(pico) (4|neo3(?: link|pro)?)/i],[Ae,Ee,[_e,$e]],[/(quest( \d| pro)?s?).+vr/i],[Ee,[Ae,At],[_e,$e]],[/mobile vr; rv.+firefox/i],[[_e,$e]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[Ae,[_e,Be]],[/(aeobc)\b/i],[Ee,[Ae,at],[_e,Be]],[/(homepod).+mac os/i],[Ee,[Ae,ot],[_e,Be]],[/windows iot/i],[[_e,Be]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[Ee,[_e,Gt,{mobile:"Mobile",xr:"VR","*":Re}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_e,Re]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_e,Me]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[Ee,[Ae,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Ie,[Se,zt+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[Se,Ie],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Ie,[Se,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[Se,Ie],[/ladybird\//i],[[Se,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[Ie,Se]],os:[[/(windows nt) (6\.[23]); arm/i],[[Se,/N/,"R"],[Ie,Gt,Xt]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[Se,Ie],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[Ie,/(;|\))/g,"",Gt,Xt],[Se,Et]],[/(windows ce)\/?([\d\.]*)/i],[Se,Ie],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Ie,/_/g,"."],[Se,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[Se,"macOS"],[Ie,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[Ie,[Se,Ct+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[Ie,[Se,Ct+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[Ie,[Se,Ct+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[Ie,[Se,Ct+" Linux"]],[/crkey\/([\d\.]+)/i],[Ie,[Se,Ct]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[Ie,Se],[/(ubuntu) ([\w\.]+) like android/i],[[Se,/(.+)/,"$1 Touch"],Ie],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[Se,Ie],[/\(bb(10);/i],[Ie,[Se,st]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[Ie,[Se,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Ie,[Se,St+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[Ie,[Se,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[Ie,Gt,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[Se,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Ie,[Se,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[Se,"Chrome OS"],Ie],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[Se,Ie],[/(sunos) ?([\d\.]*)/i],[[Se,"Solaris"],Ie],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[Se,Ie]]},Qt=(Ut.call((he={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[ye,[Se,Ie,Te,_e]],[ke,[Oe]],[je,[_e,Ee,Ae]],[Ne,[Se,Ie]],[Ce,[Se,Ie]]]),Ut.call(he.isIgnore,[[ye,[Ie,Te]],[Ne,[Ie]],[Ce,[Ie]]]),Ut.call(he.isIgnoreRgx,[[ye,/ ?browser$/i],[Ce,/ ?os$/i]]),Ut.call(he.toString,[[ye,[Se,Ie]],[ke,[Oe]],[je,[Ae,Ee]],[Ne,[Se,Ie]],[Ce,[Se,Ie]]]),he),ei=function(e,t){var i=Qt.init[t],r=Qt.isIgnore[t]||0,a=Qt.isIgnoreRgx[t]||0,o=Qt.toString[t]||0;function n(){Ut.call(this,i)}return n.prototype.getItem=function(){return e},n.prototype.withClientHints=function(){return Mt?Mt.getHighEntropyValues(rt).then(function(t){return e.setCH(new ti(t,!1)).parseCH().get()}):e.parseCH().get()},n.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=ze&&(n.prototype.is=function(e){var t=!1;for(var i in this)if(this.hasOwnProperty(i)&&!Dt(r,i)&&Vt(a?Lt(a,this[i]):this[i])==Vt(a?Lt(a,e):e)){if(t=!0,e!=we)break}else if(e==we&&t){t=!t;break}return t},n.prototype.toString=function(){var e=fe;for(var t in o)typeof this[o[t]]!==we&&(e+=(e?" ":fe)+this[o[t]]);return e||we}),Mt||(n.prototype.then=function(e){var t=this,i=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};i.prototype={is:n.prototype.is,toString:n.prototype.toString};var r=new i;return e(r),r}),new n};function ti(e,t){if(e=e||{},Ut.call(this,rt),t)Ut.call(this,[[He,Bt(e[Ge])],[Le,Bt(e[Xe])],[Me,/\?1/.test(e[Qe])],[Ee,Ft(e[et])],[Fe,Ft(e[tt])],[We,Ft(e[it])],[Oe,Ft(e[Ye])],[Ue,Bt(e[Ze])],[Ke,Ft(e[Je])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==we&&(this[i]=e[i])}function ii(e,t,i,r){return this.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},this.set=function(e,t){return this.data[e]=t,this},this.setCH=function(e){return this.uaCH=e,this},this.detectFeature=function(){if(Pt&&Pt.userAgent==this.ua)switch(this.itemType){case ye:Pt.brave&&typeof Pt.brave.isBrave==xe&&this.set(Se,"Brave");break;case je:!this.get(_e)&&Mt&&Mt[Me]&&this.set(_e,Me),"Macintosh"==this.get(Ee)&&Pt&&typeof Pt.standalone!==we&&Pt.maxTouchPoints&&Pt.maxTouchPoints>2&&this.set(Ee,"iPad").set(_e,Re);break;case Ce:!this.get(Se)&&Mt&&Mt[Fe]&&this.set(Se,Mt[Fe]);break;case ze:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(ye,t(ye)).set(ke,t(ke)).set(je,t(je)).set(Ne,t(Ne)).set(Ce,t(Ce))}return this},this.parseUA=function(){return this.itemType!=ze&&Kt.call(this.data,this.ua,this.rgxMap),this.itemType==ye&&this.set(Te,Ht(this.get(Ie))),this},this.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case ye:case Ne:var i,r=e[Le]||e[He];if(r)for(var a in r){var o=r[a].brand||r[a],n=r[a].version;this.itemType==ye&&!/not.a.brand/i.test(o)&&(!i||/Chrom/.test(i)&&o!=Nt||i==zt&&/WebView2/.test(o))&&(o=Gt(o,Jt),(i=this.get(Se))&&!/Chrom/.test(i)&&/Chrom/.test(o)||this.set(Se,o).set(Ie,n).set(Te,Ht(n)),i=o),this.itemType==Ne&&o==Nt&&this.set(Ie,n)}break;case ke:var s=e[Oe];s&&(s&&"64"==e[Ke]&&(s+="64"),Kt.call(this.data,s+";",t));break;case je:if(e[Me]&&this.set(_e,Me),e[Ee]&&(this.set(Ee,e[Ee]),!this.get(_e)||!this.get(Ae))){var l={};Kt.call(l,"droid 9; "+e[Ee]+")",t),!this.get(_e)&&l.type&&this.set(_e,l.type),!this.get(Ae)&&l.vendor&&this.set(Ae,l.vendor)}if(e[Ue]){var d;if("string"!=typeof e[Ue])for(var c=0;!d&&c<e[Ue].length;)d=Gt(e[Ue][c++],Yt);else d=Gt(e[Ue],Yt);this.set(_e,d)}break;case Ce:var u=e[Fe];if(u){var b=e[We];u==Et&&(b=parseInt(Ht(b),10)>=13?"11":"10"),this.set(Se,u).set(Ie,b)}this.get(Se)==Et&&"Xbox"==e[Ee]&&this.set(Se,"Xbox").set(Ie,void 0);break;case ze:var p=this.data,h=function(t){return p[t].getItem().setCH(e).parseCH().get()};this.set(ye,h(ye)).set(ke,h(ke)).set(je,h(je)).set(Ne,h(Ne)).set(Ce,h(Ce))}return this},Ut.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",i],["data",ei(this,e)]]),this}function ri(e,t,i){if(typeof e===ve?(qt(e,!0)?(typeof t===ve&&(i=t),t=e):(i=e,t=void 0),e=void 0):typeof e!==ge||qt(t,!0)||(i=t,t=void 0),i&&typeof i.append===xe){var r={};i.forEach(function(e,t){r[t]=e}),i=r}if(!(this instanceof ri))return new ri(e,t,i).getResult();var a=typeof e===ge?e:i&&i[me]?i[me]:Pt&&Pt.userAgent?Pt.userAgent:fe,o=new ti(i,!0),n=t?function(e,t){var i={},r=t;if(!qt(t))for(var a in r={},t)for(var o in t[a])r[o]=t[a][o].concat(r[o]?r[o]:[]);for(var n in e)i[n]=r[n]&&r[n].length%2==0?r[n].concat(e[n]):e[n];return i}(Zt,t):Zt,s=function(e){return e==ze?function(){return new ii(e,a,n,o).set("ua",a).set(ye,this.getBrowser()).set(ke,this.getCPU()).set(je,this.getDevice()).set(Ne,this.getEngine()).set(Ce,this.getOS()).get()}:function(){return new ii(e,a,n[e],o).parseUA().get()}};return Ut.call(this,[["getBrowser",s(ye)],["getCPU",s(ke)],["getDevice",s(je)],["getEngine",s(Ne)],["getOS",s(Ce)],["getResult",s(ze)],["getUA",function(){return a}],["setUA",function(e){return $t(e)&&(a=e.length>500?Wt(e,500):e),this}]]).setUA(a),this}ri.VERSION="2.0.4",ri.BROWSER=Rt([Se,Ie,Te,_e]),ri.CPU=Rt([Oe]),ri.DEVICE=Rt([Ee,Ae,_e,Pe,Me,De,Re,qe,Be]),ri.ENGINE=ri.OS=Rt([Se,Ie]);const ai=s(void 0),oi=({userAgent:e,children:t})=>{const i=(e=>{const t=new ri;t.setUA(e);const i=t.getDevice();return"mobile"===i.type||"tablet"===i.type})(e),r=l(()=>({isMobile:i,userAgent:e}),[i,e]);return x.jsx(ai.Provider,{value:r,children:t})},ni=e=>{const t=d(ai);if(void 0===t)throw new Error("useMobile must be used within a MobileProvider");return void 0===e?t:{isMobile:e,userAgent:t.userAgent}},si=g(z,"Typography"),li=g(I,"Button"),di=g(O,"Input"),ci=g(P,"Tabs"),ui=g(M,"Drawer"),bi=g(R,"Backdrop"),pi=g(J,"Breadcrumb"),hi=g(({pageCount:e,page:i,defaultPage:r=1,onPageChange:o,className:n,isMobile:s,...l})=>{const d=void 0!==i,[c,u]=t(r),b=d?i:c,p=s?"mobile":"desktop";a(()=>{d||u(r)},[r,d]);const h=e=>{d||u(e),o?.(e)};return x.jsx(Z,{className:n,...l,children:x.jsxs(Q,{device:"mobile",children:[x.jsx(ee,{children:x.jsx(ie,{href:"#",onClick:e=>{e.preventDefault(),b>1&&h(b-1)},variant:"nextPrev",device:p,"aria-disabled":1===b,tabIndex:1===b?-1:0})}),function(){const t=[];if(e<=5)for(let i=1;i<=e;i++)t.push(x.jsx(ee,{children:x.jsx(te,{href:"#",isActive:b===i,variant:"main",device:p,onClick:e=>{e.preventDefault(),b!==i&&h(i)},"aria-disabled":b===i,tabIndex:b===i?-1:0,children:i})},i));else{t.push(x.jsx(ee,{children:x.jsx(te,{href:"#",isActive:1===b,device:p,variant:"main",onClick:e=>{e.preventDefault(),1!==b&&h(1)},"aria-disabled":1===b,tabIndex:1===b?-1:0,children:"1"})},1)),b>3&&t.push(x.jsx(ee,{children:x.jsx(ae,{})},"start-ellipsis"));const i=Math.max(2,b-1),r=Math.min(e-1,b+1);for(let e=i;e<=r;e++)t.push(x.jsx(ee,{children:x.jsx(te,{href:"#",isActive:b===e,device:p,variant:"main",onClick:t=>{t.preventDefault(),b!==e&&h(e)},"aria-disabled":b===e,tabIndex:b===e?-1:0,children:e})},e));b<e-2&&t.push(x.jsx(ee,{children:x.jsx(ae,{})},"end-ellipsis")),t.push(x.jsx(ee,{children:x.jsx(te,{href:"#",isActive:b===e,device:p,variant:"main",onClick:t=>{t.preventDefault(),b!==e&&h(e)},"aria-disabled":b===e,tabIndex:b===e?-1:0,children:e})},e))}return t}(),x.jsx(ee,{children:x.jsx(re,{href:"#",onClick:t=>{t.preventDefault(),b<e&&h(b+1)},variant:"nextPrev",device:p,"aria-disabled":b===e,tabIndex:b===e?-1:0})})]})})},"Pagination"),mi=g(ne,"Accordion"),fi=g(se,"Divider"),xi=g(ce,"RadioGroup"),wi=g(pe,"Chips");export{mi as Accordion,bi as Backdrop,pi as Breadcrumb,li as Button,wi as Chips,fi as Divider,ui as Drawer,di as Input,oi as MobileProvider,hi as Pagination,xi as RadioGroup,ci as Tabs,si as Typography,v as initializeAutomobiKit,ni as useMobile};
|