@fileflow/sdk 0.1.22 → 0.1.24

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.
@@ -1,4 +1,4 @@
1
- "use strict";const dr=require("react/jsx-runtime"),P=require("react"),xi=require("react-dom"),da=`.ff-container{width:100%}@media (min-width: 640px){.ff-container{max-width:640px}}@media (min-width: 768px){.ff-container{max-width:768px}}@media (min-width: 1024px){.ff-container{max-width:1024px}}@media (min-width: 1280px){.ff-container{max-width:1280px}}@media (min-width: 1536px){.ff-container{max-width:1536px}}.fileflow-sdk-root{all:revert;isolation:isolate;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-size:16px;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;color:#21201d;background-color:transparent;text-align:left;direction:ltr;text-rendering:optimizeLegibility;margin:0;padding:0;--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fileflow-sdk-root *,.fileflow-sdk-root *:before,.fileflow-sdk-root *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.fileflow-sdk-root button,.fileflow-sdk-root input,.fileflow-sdk-root select,.fileflow-sdk-root textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}.fileflow-sdk-root button{cursor:pointer;background:none;border:none;padding:0}.fileflow-sdk-root img,.fileflow-sdk-root svg{display:block;max-width:100%}.fileflow-sdk-root a{color:inherit;text-decoration:inherit}.fileflow-sdk-root h1,.fileflow-sdk-root h2,.fileflow-sdk-root h3,.fileflow-sdk-root h4,.fileflow-sdk-root h5,.fileflow-sdk-root h6{font-size:inherit;font-weight:inherit;margin:0}.fileflow-sdk-root p,.fileflow-sdk-root ul,.fileflow-sdk-root ol{margin:0;padding:0}.fileflow-sdk-root ul,.fileflow-sdk-root ol{list-style:none}.fileflow-sdk-root{--ff-primary-10: #f9fafb;--ff-primary-20: #eef0f6;--ff-primary-30: #e2e6f0;--ff-primary-40: #dce1ec;--ff-primary-50: #d7e1f2;--ff-primary-60: #c6d6f0;--ff-primary-70: #c0d0ed;--ff-primary-80: #b9cbeb;--ff-primary-90: #728ab3;--ff-primary-100: #6980a5;--ff-primary-110: #4f6180;--ff-primary-120: #132036;--ff-primary-500: #d7e1f2;--ff-primary-600: #c0d0ed;--ff-brown-10: #f0ece8;--ff-brown-20: #d4c4ba;--ff-brown-30: #b59f8c;--ff-brown-40: #a68c74;--ff-brown-50: #97795d;--ff-brown-60: #8a6447;--ff-brown-70: #7a522f;--ff-brown-80: #6b3f18;--ff-brown-90: #613916;--ff-brown-100: #563213;--ff-brown-110: #4b2c11;--ff-brown-120: #36200c;--ff-primary-text: #6b3f18;--ff-gray-white: #ffffff;--ff-gray-10: #fcfcfb;--ff-gray-20: #f9f9f7;--ff-gray-30: #f0efed;--ff-gray-40: #e9e8e4;--ff-gray-50: #e2e0dd;--ff-gray-60: #dadad5;--ff-gray-70: #cfceca;--ff-gray-80: #bcbbb7;--ff-gray-90: #8e8d89;--ff-gray-100: #848280;--ff-gray-110: #656461;--ff-gray-120: #21201d;--ff-bg-primary: var(--ff-gray-white);--ff-bg-secondary: var(--ff-gray-10);--ff-bg-tertiary: var(--ff-gray-30);--ff-bg-brand: var(--ff-primary-50);--ff-bg-brand-light: var(--ff-primary-20);--ff-text-primary: var(--ff-gray-120);--ff-text-secondary: var(--ff-gray-110);--ff-text-muted: var(--ff-gray-90);--ff-text-supportive: var(--ff-gray-80);--ff-text-inverse: var(--ff-gray-white);--ff-text-link: var(--ff-primary-90);--ff-text-brand: var(--ff-brown-80);--ff-border-light: var(--ff-gray-30);--ff-border-default: var(--ff-gray-40);--ff-border-dark: var(--ff-gray-70);--ff-border-brand: var(--ff-brown-80);--ff-border-focus: var(--ff-primary-70);--ff-icon-default: var(--ff-gray-90);--ff-icon-active: var(--ff-gray-120);--ff-icon-muted: var(--ff-gray-80);--ff-icon-brand: var(--ff-brown-80);--ff-icon-inverse: var(--ff-gray-white);--ff-success-light: #e7f5e4;--ff-success: #298e33;--ff-success-dark: #1f3c20;--ff-warning-light: #ffe6c1;--ff-warning: #a86807;--ff-warning-dark: #4a3723;--ff-error-light: #fcdede;--ff-error: #d43338;--ff-error-dark: #641a1a;--ff-focus-ring: rgba(192, 208, 237, .5);--ff-focus-ring-accent: rgba(168, 85, 247, .25);--ff-accent-50: #faf5ff;--ff-accent-100: #f3e8ff;--ff-accent-200: #e9d5ff;--ff-accent-300: #d8b4fe;--ff-accent-400: #c084fc;--ff-accent-500: #a855f7;--ff-accent-600: #9333ea;--ff-accent-700: #7c3aed;--ff-accent-800: #6b21a8;--ff-accent-900: #581c87;--ff-navy-950: #1a2029}.fileflow-sdk-root .ff-container{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--ff-text-primary);font-feature-settings:"cv02","cv03","cv04","cv11"}.fileflow-sdk-root .ff-table-container{position:relative;overflow:auto;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light);background-color:var(--ff-bg-primary)}.fileflow-sdk-root .ff-table{width:100%;font-size:.875rem;line-height:1.25rem}.fileflow-sdk-root .ff-table thead{position:sticky;top:0;z-index:10;background-color:var(--ff-bg-secondary)}.fileflow-sdk-root .ff-table thead tr:first-child th:first-child{border-top-left-radius:1rem}.fileflow-sdk-root .ff-table thead tr:first-child th:last-child{border-top-right-radius:1rem}.fileflow-sdk-root .ff-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ff-text-secondary);border-bottom:2px solid var(--ff-border-light)}.fileflow-sdk-root .ff-table td{padding:.75rem 1rem;color:var(--ff-text-primary);border-bottom:1px solid var(--ff-border-light)}.fileflow-sdk-root .ff-table tbody tr{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-table tbody tr:hover{background-color:var(--ff-bg-secondary)}.fileflow-sdk-root .ff-cell-error{border-left-width:4px;background-color:var(--ff-error-light);border-left-color:var(--ff-error)}.fileflow-sdk-root .ff-cell-warning{border-left-width:4px;background-color:var(--ff-warning-light);border-left-color:var(--ff-warning)}.fileflow-sdk-root .ff-cell-editing{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);background-color:var(--ff-primary-50);--tw-ring-color: var(--ff-primary-400)}.fileflow-sdk-root .ff-cell-success{background-color:var(--ff-success-light)}.fileflow-sdk-root .ff-row-error{background-color:#d433381a}.fileflow-sdk-root .ff-edit-btn{color:var(--ff-text-muted);border-radius:.5rem;padding:.25rem}.fileflow-sdk-root .ff-edit-btn:hover{color:var(--ff-text-secondary);background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-delete-btn{border-radius:.75rem;padding:.375rem;color:var(--ff-gray-80);background-color:transparent;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-delete-btn svg{display:block;width:1rem;height:1rem}.fileflow-sdk-root .ff-delete-btn:hover{color:var(--ff-error);background-color:var(--ff-error-light)}.fileflow-sdk-root .ff-delete-btn:disabled{cursor:not-allowed;opacity:.3}.fileflow-sdk-root .ff-delete-btn:disabled:hover{color:var(--ff-gray-80);background-color:transparent}.fileflow-sdk-root .ff-input{width:100%;border-radius:.75rem;border-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary);color:var(--ff-text-primary);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.fileflow-sdk-root .ff-input::-moz-placeholder{color:var(--ff-text-muted)}.fileflow-sdk-root .ff-input::placeholder{color:var(--ff-text-muted)}.fileflow-sdk-root .ff-input:hover{border-color:var(--ff-border-dark)}.fileflow-sdk-root .ff-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);border-color:var(--ff-primary-500);--tw-ring-color: var(--ff-focus-ring)}.fileflow-sdk-root .ff-input-error{border-color:var(--ff-error)}.fileflow-sdk-root .ff-input-error:focus{border-color:var(--ff-error);--tw-ring-color: rgba(212, 51, 56, .2)}.fileflow-sdk-root .ff-select,.fileflow-sdk-root select.ff-input{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2.5rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:1.25em 1.25em}.fileflow-sdk-root .ff-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:600;padding:.625rem 1.25rem;border-radius:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-width:1px;border-color:transparent;cursor:pointer}.fileflow-sdk-root .ff-btn:focus{outline:2px solid transparent;outline-offset:2px}.fileflow-sdk-root .ff-btn:disabled{cursor:not-allowed;opacity:.5}.fileflow-sdk-root .ff-btn-primary{background-color:var(--ff-primary-110);color:var(--ff-gray-white)}.fileflow-sdk-root .ff-btn-primary:hover:not(:disabled){background-color:var(--ff-primary-120);transform:translateY(-1px);box-shadow:0 4px 12px -2px #0003}.fileflow-sdk-root .ff-btn-primary:active:not(:disabled){background-color:var(--ff-primary-130);transform:translateY(0)}.fileflow-sdk-root .ff-btn-primary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.fileflow-sdk-root .ff-btn-secondary{background-color:var(--ff-bg-primary);color:var(--ff-text-primary);border-color:var(--ff-border-default)}.fileflow-sdk-root .ff-btn-secondary:hover:not(:disabled){background-color:var(--ff-bg-secondary);border-color:var(--ff-border-dark)}.fileflow-sdk-root .ff-btn-secondary:active:not(:disabled){background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-btn-secondary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.fileflow-sdk-root .ff-btn-ghost{background-color:var(--ff-bg-primary);color:var(--ff-text-secondary);border-color:var(--ff-border-default)}.fileflow-sdk-root .ff-btn-ghost:hover:not(:disabled){background-color:var(--ff-bg-tertiary);color:var(--ff-text-primary);border-color:var(--ff-border-dark)}.fileflow-sdk-root .ff-btn-accent{background-color:var(--ff-accent-500);color:var(--ff-text-inverse)}.fileflow-sdk-root .ff-btn-accent:hover:not(:disabled){background-color:var(--ff-accent-600);transform:translateY(-1px);box-shadow:0 4px 12px -2px #a855f74d}.fileflow-sdk-root .ff-btn-accent:active:not(:disabled){background-color:var(--ff-accent-700);transform:translateY(0)}.fileflow-sdk-root .ff-btn-accent:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring-accent)}.fileflow-sdk-root .ff-btn-danger{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.fileflow-sdk-root .ff-btn-danger:hover:not(:disabled){--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1));transform:translateY(-1px)}.fileflow-sdk-root .ff-btn-link{background-color:transparent;color:var(--ff-primary-text);padding:.25rem .5rem}.fileflow-sdk-root .ff-btn-link:hover:not(:disabled){color:#4a2a10;text-decoration:underline}.fileflow-sdk-root .ff-btn-sm{border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem}.fileflow-sdk-root .ff-btn-lg{border-radius:1rem;padding:.75rem 1.5rem;font-size:1rem;line-height:1.5rem}.fileflow-sdk-root .ff-checkbox{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.5rem;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.fileflow-sdk-root .ff-checkbox:hover{border-color:var(--ff-primary-400)}.fileflow-sdk-root .ff-checkbox:checked{background-color:var(--ff-primary-500);border-color:var(--ff-primary-500);background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}.fileflow-sdk-root .ff-checkbox:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.fileflow-sdk-root .ff-radio{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:9999px;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.fileflow-sdk-root .ff-radio:checked{border-color:var(--ff-primary-500);border-width:6px}.fileflow-sdk-root .ff-radio:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.fileflow-sdk-root .ff-toggle{position:relative;height:1.5rem;width:2.75rem;cursor:pointer;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-border-default)}.fileflow-sdk-root .ff-toggle:after{position:absolute;top:.125rem;left:.125rem;height:1.25rem;width:1.25rem;border-radius:9999px;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;content:"";background-color:var(--ff-bg-primary);box-shadow:0 1px 3px #0000001a}.fileflow-sdk-root .ff-toggle:checked{background-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-toggle:checked:after{transform:translate(1.25rem)}.fileflow-sdk-root .ff-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;border-radius:1rem;border-width:2px;border-style:dashed;border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary);cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-dropzone *{pointer-events:none}.fileflow-sdk-root .ff-dropzone input{pointer-events:auto}.fileflow-sdk-root .ff-dropzone:hover{border-color:var(--ff-primary-70);background-color:var(--ff-primary-10)}.fileflow-sdk-root .ff-dropzone-active{border-color:var(--ff-primary-90);background-color:var(--ff-primary-20);--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.fileflow-sdk-root .ff-dropzone-icon-wrapper{margin-left:auto;margin-right:auto;margin-bottom:1rem;display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--ff-primary-20);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-dropzone-active .ff-dropzone-icon-wrapper{background-color:var(--ff-primary-30)}.fileflow-sdk-root .ff-dropzone-icon{height:1.75rem;width:1.75rem;color:var(--ff-primary-90);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-dropzone-active .ff-dropzone-icon{color:var(--ff-primary-110)}.fileflow-sdk-root .ff-dropzone-text{margin-bottom:.25rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-dropzone-hint{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-dropzone-formats{margin-top:.75rem;font-size:.75rem;line-height:1rem;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-badge{display:inline-flex;align-items:center;border-radius:9999px;padding:.25rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.fileflow-sdk-root .ff-badge-error{background-color:var(--ff-error-light);color:var(--ff-error)}.fileflow-sdk-root .ff-badge-warning{background-color:var(--ff-warning-light);color:var(--ff-warning)}.fileflow-sdk-root .ff-badge-success{background-color:var(--ff-success-light);color:var(--ff-success)}.fileflow-sdk-root .ff-badge-info{background-color:var(--ff-primary-20);color:var(--ff-primary-90)}.fileflow-sdk-root .ff-badge-neutral{background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.fileflow-sdk-root .ff-badge-primary{background-color:var(--ff-primary-100);color:var(--ff-primary-700)}.fileflow-sdk-root .ff-badge-accent{background-color:var(--ff-accent-100);color:var(--ff-accent-700)}.fileflow-sdk-root .ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background-color:#1c191780;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1rem;animation:ff-fade-in .2s ease-out;overflow-y:auto}@keyframes ff-fade-in{0%{opacity:0}to{opacity:1}}.fileflow-sdk-root .ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background-color:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem}.fileflow-sdk-root .ff-modal{background-color:var(--ff-bg-primary);border-radius:1.25rem;width:100%;max-width:56rem;display:flex;flex-direction:column;max-height:min(90vh,calc(100vh - 2rem));box-shadow:0 25px 50px -12px #00000040;animation:ff-scale-in .2s ease-out;margin-top:auto;margin-bottom:auto}.fileflow-sdk-root .ff-embed{background-color:var(--ff-bg-primary);display:flex;width:100%;flex-direction:column;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light)}.fileflow-sdk-root .ff-embed .ff-modal-header{border-top-left-radius:1rem;border-top-right-radius:1rem}.fileflow-sdk-root .ff-embed .ff-modal-footer{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}@keyframes ff-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fileflow-sdk-root .ff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--ff-border-light);flex-shrink:0;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem}.fileflow-sdk-root .ff-modal-header-left{display:flex;align-items:center;gap:1rem}.fileflow-sdk-root .ff-modal-icon{display:flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:.75rem;background-color:var(--ff-primary-20)}.fileflow-sdk-root .ff-modal-icon svg{height:1.25rem;width:1.25rem;color:var(--ff-primary-90)}.fileflow-sdk-root .ff-modal-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-modal-close{border-radius:.75rem;padding:.5rem;color:var(--ff-text-muted);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-modal-close:hover{color:var(--ff-text-primary);background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-modal-body{flex:1 1 0%;overflow-y:auto;padding:1.5rem}.fileflow-sdk-root .ff-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background-color:var(--ff-bg-secondary);border-top:1px solid var(--ff-border-light);flex-shrink:0;border-bottom-right-radius:1.25rem;border-bottom-left-radius:1.25rem}.fileflow-sdk-root .ff-steps{display:flex;align-items:center;gap:.5rem}.fileflow-sdk-root .ff-step{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:9999px;font-size:.875rem;line-height:1.25rem;font-weight:600;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-step-pending{background-color:var(--ff-bg-tertiary);color:var(--ff-text-muted)}.fileflow-sdk-root .ff-step-active{background-color:var(--ff-primary-50);color:var(--ff-primary-90);box-shadow:0 0 0 4px var(--ff-primary-20)}.fileflow-sdk-root .ff-step-complete{background-color:var(--ff-success);color:#fff}.fileflow-sdk-root .ff-step-connector{height:.125rem;width:2rem;background-color:var(--ff-border-default);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-step-connector-complete{background-color:var(--ff-success)}.fileflow-sdk-root .ff-progress{height:.5rem;overflow:hidden;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-progress-bar{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1);background-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-progress-bar-animated{background:linear-gradient(90deg,var(--ff-primary-400) 0%,var(--ff-primary-500) 50%,var(--ff-primary-400) 100%);background-size:200% 100%;animation:shimmer 2s linear infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.fileflow-sdk-root .ff-tooltip{position:absolute;z-index:50;border-radius:.75rem;padding:.5rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;visibility:hidden;opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-navy-950);color:var(--ff-text-inverse);box-shadow:0 4px 12px -2px #0003}.fileflow-sdk-root .ff-tooltip-visible{visibility:visible;opacity:1}.fileflow-sdk-root .ff-spinner{height:1.25rem;width:1.25rem}.fileflow-sdk-root .ff-spinner{animation:ff-spin 1s linear infinite;border-radius:9999px;border-width:2px;border-color:var(--ff-border-light);border-top-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-spinner-lg{height:2rem;width:2rem;border-width:3px}.fileflow-sdk-root .ff-document-preview{position:relative;overflow:hidden;border-radius:1rem;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-document-preview img{height:auto;width:100%;-o-object-fit:contain;object-fit:contain}.fileflow-sdk-root .ff-mapping-header{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}.fileflow-sdk-root .ff-mapping-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-mapping-subtitle{font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-mapping-legend{display:flex;align-items:center;gap:1rem;font-size:.875rem;line-height:1.25rem}.fileflow-sdk-root .ff-mapping-legend-item{display:flex;align-items:center;gap:.375rem}.fileflow-sdk-root .ff-mapping-legend-dot{height:.5rem;width:.5rem;border-radius:9999px}.fileflow-sdk-root .ff-mapping-row{display:flex;align-items:center;gap:1rem;border-radius:1rem;border-width:1px;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light)}.fileflow-sdk-root .ff-mapping-row:hover{border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary)}.fileflow-sdk-root .ff-mapping-row-success{border-color:var(--ff-success-light);background-color:#e7f5e480}.fileflow-sdk-root .ff-mapping-row-warning{border-color:var(--ff-warning-light);background-color:#ffe6c180}.fileflow-sdk-root .ff-mapping-source{flex:1 1 0%;border-radius:.75rem;padding:.625rem 1rem;font-family:JetBrains Mono,SF Mono,Monaco,monospace;font-size:.875rem;line-height:1.25rem;background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.fileflow-sdk-root .ff-mapping-arrow{flex-shrink:0;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-mapping-target{flex:1 1 0%}.fileflow-sdk-root .ff-mapping-status{display:flex;width:2rem;justify-content:center}.fileflow-sdk-root .ff-confidence{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem;line-height:1rem;font-weight:500}.fileflow-sdk-root .ff-confidence-high{color:var(--ff-success)}.fileflow-sdk-root .ff-confidence-medium{color:var(--ff-warning)}.fileflow-sdk-root .ff-confidence-low{color:var(--ff-error)}.fileflow-sdk-root .ff-confidence-bar{height:.375rem;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-confidence-bar-fill{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.fileflow-sdk-root .ff-validation-summary{border-radius:1rem;border-width:1px;padding:1rem}.fileflow-sdk-root .ff-validation-summary-error{background-color:var(--ff-error-light);border-color:var(--ff-error)}.fileflow-sdk-root .ff-validation-summary-warning{background-color:var(--ff-warning-light);border-color:var(--ff-warning)}.fileflow-sdk-root .ff-validation-summary-success{background-color:var(--ff-success-light);border-color:var(--ff-success)}.fileflow-sdk-root .ff-card{border-radius:1rem;border-width:1px;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light);box-shadow:0 2px 8px -2px #0000000a}.fileflow-sdk-root .ff-card-hover{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.fileflow-sdk-root .ff-card-hover:hover{border-color:var(--ff-border-default);box-shadow:0 8px 24px -4px #00000014;transform:translateY(-2px)}.fileflow-sdk-root .ff-status{display:inline-flex;align-items:center;gap:.5rem}.fileflow-sdk-root .ff-status-dot{height:.5rem;width:.5rem;border-radius:9999px}.fileflow-sdk-root .ff-status-dot-success{background-color:var(--ff-success)}.fileflow-sdk-root .ff-status-dot-warning{background-color:var(--ff-warning)}.fileflow-sdk-root .ff-status-dot-error{background-color:var(--ff-error)}.fileflow-sdk-root .ff-status-dot-pending{background-color:var(--ff-text-muted)}.fileflow-sdk-root .ff-status-dot-processing{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:var(--ff-primary-90)}.fileflow-sdk-root .ff-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:3rem;padding-bottom:3rem;text-align:center}.fileflow-sdk-root .ff-empty-state-icon{margin-bottom:1rem;height:4rem;width:4rem;color:var(--ff-border-default)}.fileflow-sdk-root .ff-empty-state-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-empty-state-description{max-width:24rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}@keyframes ff-pulse{50%{opacity:.5}}.fileflow-sdk-root .ff-skeleton{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:.5rem;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-skeleton-text{height:1rem;border-radius:.5rem}.fileflow-sdk-root .ff-skeleton-title{height:1.5rem;width:75%;border-radius:.5rem}.fileflow-sdk-root .ff-skeleton-avatar{height:2.5rem;width:2.5rem;border-radius:9999px}.fileflow-sdk-root .ff-pagination{display:flex;align-items:center;gap:.25rem}.fileflow-sdk-root .ff-pagination-btn{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:var(--ff-text-secondary)}.fileflow-sdk-root .ff-pagination-btn:hover{background-color:var(--ff-bg-secondary);color:var(--ff-text-primary)}.fileflow-sdk-root .ff-pagination-btn-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse)}.fileflow-sdk-root .ff-pagination-btn-active:hover{background-color:var(--ff-primary-600);color:var(--ff-text-inverse)}.fileflow-sdk-root .ff-selector-group{display:inline-flex;flex-wrap:wrap;gap:.5rem}.fileflow-sdk-root .ff-selector-item{display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;cursor:pointer;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-secondary);color:var(--ff-text-secondary);border:1px solid var(--ff-border-light)}.fileflow-sdk-root .ff-selector-item:hover{background-color:var(--ff-bg-tertiary);border-color:var(--ff-border-default)}.fileflow-sdk-root .ff-selector-item-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse);border-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-selector-item-active:hover{background-color:var(--ff-primary-600);border-color:var(--ff-primary-600)}.fileflow-sdk-root .ff-fade-in{animation:fadeIn .3s ease-out}.fileflow-sdk-root .ff-slide-up{animation:slideUp .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fileflow-sdk-root .ff-theme-accent{--ff-primary-50: var(--ff-accent-50);--ff-primary-100: var(--ff-accent-100);--ff-primary-200: var(--ff-accent-200);--ff-primary-300: var(--ff-accent-300);--ff-primary-400: var(--ff-accent-400);--ff-primary-500: var(--ff-accent-500);--ff-primary-600: var(--ff-accent-600);--ff-primary-700: var(--ff-accent-700);--ff-primary-800: var(--ff-accent-800);--ff-primary-900: var(--ff-accent-900);--ff-focus-ring: var(--ff-focus-ring-accent)}.ff-relative{position:relative}.ff-bottom-full{bottom:100%}.ff-left-1\\/2{left:50%}.ff-mx-auto{margin-left:auto;margin-right:auto}.ff-mb-2{margin-bottom:.5rem}.ff-mb-3{margin-bottom:.75rem}.ff-mb-4{margin-bottom:1rem}.ff-mb-6{margin-bottom:1.5rem}.ff-ml-4{margin-left:1rem}.ff-mr-1{margin-right:.25rem}.ff-mr-4{margin-right:1rem}.ff-mt-0\\.5{margin-top:.125rem}.ff-mt-1{margin-top:.25rem}.ff-mt-2{margin-top:.5rem}.ff-mt-3{margin-top:.75rem}.ff-block{display:block}.ff-inline-block{display:inline-block}.ff-flex{display:flex}.ff-table{display:table}.ff-grid{display:grid}.ff-aspect-\\[3\\/4\\]{aspect-ratio:3/4}.ff-h-10{height:2.5rem}.ff-h-12{height:3rem}.ff-h-16{height:4rem}.ff-h-20{height:5rem}.ff-h-3{height:.75rem}.ff-h-4{height:1rem}.ff-h-5{height:1.25rem}.ff-h-6{height:1.5rem}.ff-h-8{height:2rem}.ff-h-full{height:100%}.ff-max-h-96{max-height:24rem}.ff-max-h-\\[500px\\]{max-height:500px}.ff-w-10{width:2.5rem}.ff-w-12{width:3rem}.ff-w-16{width:4rem}.ff-w-20{width:5rem}.ff-w-3{width:.75rem}.ff-w-4{width:1rem}.ff-w-48{width:12rem}.ff-w-5{width:1.25rem}.ff-w-6{width:1.5rem}.ff-w-8{width:2rem}.ff-w-full{width:100%}.ff-min-w-0{min-width:0px}.ff-min-w-\\[160px\\]{min-width:160px}.ff-min-w-\\[280px\\]{min-width:280px}.ff-max-w-lg{max-width:32rem}.ff-max-w-md{max-width:28rem}.ff-max-w-xl{max-width:36rem}.ff-max-w-xs{max-width:20rem}.ff-flex-1{flex:1 1 0%}.ff-flex-shrink-0{flex-shrink:0}.ff--translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ff-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ff-spin{to{transform:rotate(360deg)}}.ff-animate-spin{animation:ff-spin 1s linear infinite}.ff-cursor-not-allowed{cursor:not-allowed}.ff-cursor-pointer{cursor:pointer}.ff-cursor-wait{cursor:wait}.ff-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ff-list-inside{list-style-position:inside}.ff-list-disc{list-style-type:disc}.ff-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ff-flex-col{flex-direction:column}.ff-flex-wrap{flex-wrap:wrap}.ff-items-start{align-items:flex-start}.ff-items-center{align-items:center}.ff-justify-center{justify-content:center}.ff-justify-between{justify-content:space-between}.ff-gap-1{gap:.25rem}.ff-gap-2{gap:.5rem}.ff-gap-3{gap:.75rem}.ff-gap-4{gap:1rem}.ff-gap-6{gap:1.5rem}.ff-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.ff-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.ff-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.ff-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ff-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.ff-overflow-hidden{overflow:hidden}.ff-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ff-whitespace-nowrap{white-space:nowrap}.ff-rounded{border-radius:.5rem}.ff-rounded-2xl{border-radius:1.25rem}.ff-rounded-full{border-radius:9999px}.ff-rounded-lg{border-radius:.75rem}.ff-rounded-xl{border-radius:1rem}.ff-border{border-width:1px}.ff-border-2{border-width:2px}.ff-border-transparent{border-color:transparent}.ff-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ff-object-contain{-o-object-fit:contain;object-fit:contain}.ff-p-1{padding:.25rem}.ff-p-1\\.5{padding:.375rem}.ff-p-2{padding:.5rem}.ff-p-3{padding:.75rem}.ff-p-4{padding:1rem}.ff-p-6{padding:1.5rem}.ff-p-8{padding:2rem}.ff-px-2{padding-left:.5rem;padding-right:.5rem}.ff-px-3{padding-left:.75rem;padding-right:.75rem}.ff-px-4{padding-left:1rem;padding-right:1rem}.ff-px-6{padding-left:1.5rem;padding-right:1.5rem}.ff-py-1{padding-top:.25rem;padding-bottom:.25rem}.ff-py-12{padding-top:3rem;padding-bottom:3rem}.ff-py-2{padding-top:.5rem;padding-bottom:.5rem}.ff-py-3{padding-top:.75rem;padding-bottom:.75rem}.ff-py-4{padding-top:1rem;padding-bottom:1rem}.ff-py-8{padding-top:2rem;padding-bottom:2rem}.ff-text-left{text-align:left}.ff-text-center{text-align:center}.ff-text-right{text-align:right}.ff-font-mono{font-family:JetBrains Mono,SF Mono,Monaco,monospace}.ff-text-2xl{font-size:1.5rem;line-height:2rem}.ff-text-lg{font-size:1.125rem;line-height:1.75rem}.ff-text-sm{font-size:.875rem;line-height:1.25rem}.ff-text-xl{font-size:1.25rem;line-height:1.75rem}.ff-text-xs{font-size:.75rem;line-height:1rem}.ff-font-bold{font-weight:700}.ff-font-medium{font-weight:500}.ff-font-semibold{font-weight:600}.ff-opacity-0{opacity:0}.ff-opacity-50{opacity:.5}.ff-shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ff-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-duration-150{transition-duration:.15s}.hover\\:ff-border-transparent:hover{border-color:transparent}.ff-group:hover .group-hover\\:ff-opacity-100{opacity:1}`,on="fileflow-sdk-styles";let pr=!1;function Dt(){if(pr||typeof document>"u")return;if(document.getElementById(on)){pr=!0;return}const t=document.createElement("style");t.id=on,t.setAttribute("data-fileflow-sdk","true"),t.textContent=da,document.head.appendChild(t),pr=!0}function wi(t){if(t.querySelector("style[data-fileflow-sdk]"))return;const e=document.createElement("style");e.setAttribute("data-fileflow-sdk","true"),e.textContent=da,t.appendChild(e)}function ki(t){if(!t)return;const e={};return t.primaryColor&&(e["--ff-primary-110"]=t.primaryColor),t.primaryHoverColor&&(e["--ff-primary-120"]=t.primaryHoverColor),t.primaryTextColor&&(e["--ff-gray-white"]=t.primaryTextColor),t.successColor&&(e["--ff-success"]=t.successColor),t.errorColor&&(e["--ff-error"]=t.errorColor),t.warningColor&&(e["--ff-warning"]=t.warningColor),t.backgroundColor&&(e["--ff-bg-primary"]=t.backgroundColor),t.textColor&&(e["--ff-text-primary"]=t.textColor),t.textMutedColor&&(e["--ff-text-muted"]=t.textMutedColor),t.borderColor&&(e["--ff-border-default"]=t.borderColor),Object.keys(e).length>0?e:void 0}const _i=({children:t,className:e="",theme:r,useShadowDom:n=!1})=>{const a=P.useRef(null),i=P.useRef(null),[o,s]=P.useState(!1),[d,l]=P.useState(!1),c=P.useCallback(()=>{if(!(!n||!a.current||i.current))try{i.current=a.current.attachShadow({mode:"open"}),wi(i.current),l(!0)}catch(b){console.error("[FileFlow SDK] Failed to create Shadow DOM:",b),l(!1)}},[n]);P.useEffect(()=>{n?c():Dt(),s(!0)},[n,c]),!o&&typeof window<"u"&&(n||Dt());const u=ki(r);return n?dr.jsx("div",{ref:a,"data-fileflow-sdk":"true","data-shadow-dom":"true",children:d&&i.current&&xi.createPortal(dr.jsx("div",{className:`fileflow-sdk-root ${e}`.trim(),style:u,children:t}),i.current)}):dr.jsx("div",{ref:a,className:`fileflow-sdk-root ${e}`.trim(),"data-fileflow-sdk":"true",style:u,children:t})};function Ei(){P.useEffect(()=>{Dt()},[])}function pa(t,e){return function(){return t.apply(e,arguments)}}const{toString:Si}=Object.prototype,{getPrototypeOf:Hr}=Object,{iterator:Jt,toStringTag:fa}=Symbol,Gt=(t=>e=>{const r=Si.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ce=t=>(t=t.toLowerCase(),e=>Gt(e)===t),Xt=t=>e=>typeof e===t,{isArray:ot}=Array,rt=Xt("undefined");function gt(t){return t!==null&&!rt(t)&&t.constructor!==null&&!rt(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ua=Ce("ArrayBuffer");function Ti(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ua(t.buffer),e}const Oi=Xt("string"),be=Xt("function"),ma=Xt("number"),vt=t=>t!==null&&typeof t=="object",Ci=t=>t===!0||t===!1,At=t=>{if(Gt(t)!=="object")return!1;const e=Hr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(fa in t)&&!(Jt in t)},Ai=t=>{if(!vt(t)||gt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Ri=Ce("Date"),ji=Ce("File"),Di=Ce("Blob"),Pi=Ce("FileList"),Ii=t=>vt(t)&&be(t.pipe),Ni=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((e=Gt(t))==="formdata"||e==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},Fi=Ce("URLSearchParams"),[zi,Li,Mi,qi]=["ReadableStream","Request","Response","Headers"].map(Ce),$i=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yt(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),ot(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{if(gt(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function ha(t,e){if(gt(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ga=t=>!rt(t)&&t!==Ue;function Cr(){const{caseless:t,skipUndefined:e}=ga(this)&&this||{},r={},n=(a,i)=>{const o=t&&ha(r,i)||i;At(r[o])&&At(a)?r[o]=Cr(r[o],a):At(a)?r[o]=Cr({},a):ot(a)?r[o]=a.slice():(!e||!rt(a))&&(r[o]=a)};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&yt(arguments[a],n);return r}const Bi=(t,e,r,{allOwnKeys:n}={})=>(yt(e,(a,i)=>{r&&be(a)?t[i]=pa(a,r):t[i]=a},{allOwnKeys:n}),t),Ui=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Zi=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Vi=(t,e,r,n)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&Hr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Hi=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Wi=t=>{if(!t)return null;if(ot(t))return t;let e=t.length;if(!ma(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Yi=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Hr(Uint8Array)),Ki=(t,e)=>{const n=(t&&t[Jt]).call(t);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},Ji=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Gi=Ce("HTMLFormElement"),Xi=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),sn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Qi=Ce("RegExp"),va=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};yt(r,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(n[i]=o||a)}),Object.defineProperties(t,n)},eo=t=>{va(t,(e,r)=>{if(be(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(be(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},to=(t,e)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return ot(t)?n(t):n(String(t).split(e)),r},ro=()=>{},no=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ao(t){return!!(t&&be(t.append)&&t[fa]==="FormData"&&t[Jt])}const io=t=>{const e=new Array(10),r=(n,a)=>{if(vt(n)){if(e.indexOf(n)>=0)return;if(gt(n))return n;if(!("toJSON"in n)){e[a]=n;const i=ot(n)?[]:{};return yt(n,(o,s)=>{const d=r(o,a+1);!rt(d)&&(i[s]=d)}),e[a]=void 0,i}}return n};return r(t,0)},oo=Ce("AsyncFunction"),so=t=>t&&(vt(t)||be(t))&&be(t.then)&&be(t.catch),ya=((t,e)=>t?setImmediate:e?((r,n)=>(Ue.addEventListener("message",({source:a,data:i})=>{a===Ue&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Ue.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",be(Ue.postMessage)),lo=typeof queueMicrotask<"u"?queueMicrotask.bind(Ue):typeof process<"u"&&process.nextTick||ya,co=t=>t!=null&&be(t[Jt]),p={isArray:ot,isArrayBuffer:ua,isBuffer:gt,isFormData:Ni,isArrayBufferView:Ti,isString:Oi,isNumber:ma,isBoolean:Ci,isObject:vt,isPlainObject:At,isEmptyObject:Ai,isReadableStream:zi,isRequest:Li,isResponse:Mi,isHeaders:qi,isUndefined:rt,isDate:Ri,isFile:ji,isBlob:Di,isRegExp:Qi,isFunction:be,isStream:Ii,isURLSearchParams:Fi,isTypedArray:Yi,isFileList:Pi,forEach:yt,merge:Cr,extend:Bi,trim:$i,stripBOM:Ui,inherits:Zi,toFlatObject:Vi,kindOf:Gt,kindOfTest:Ce,endsWith:Hi,toArray:Wi,forEachEntry:Ki,matchAll:Ji,isHTMLForm:Gi,hasOwnProperty:sn,hasOwnProp:sn,reduceDescriptors:va,freezeMethods:eo,toObjectSet:to,toCamelCase:Xi,noop:ro,toFiniteNumber:no,findKey:ha,global:Ue,isContextDefined:ga,isSpecCompliantForm:ao,toJSONObject:io,isAsyncFn:oo,isThenable:so,setImmediate:ya,asap:lo,isIterable:co};function M(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}p.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}});const ba=M.prototype,xa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{xa[t]={value:t}});Object.defineProperties(M,xa);Object.defineProperty(ba,"isAxiosError",{value:!0});M.from=(t,e,r,n,a,i)=>{const o=Object.create(ba);p.toFlatObject(t,o,function(c){return c!==Error.prototype},l=>l!=="isAxiosError");const s=t&&t.message?t.message:"Error",d=e==null&&t?t.code:e;return M.call(o,s,d,r,n,a),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",i&&Object.assign(o,i),o};const po=null;function Ar(t){return p.isPlainObject(t)||p.isArray(t)}function wa(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function ln(t,e,r){return t?t.concat(e).map(function(a,i){return a=wa(a),!r&&i?"["+a+"]":a}).join(r?".":""):e}function fo(t){return p.isArray(t)&&!t.some(Ar)}const uo=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(t,e,r){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=p.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!p.isUndefined(h[m])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(a))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(p.isDate(f))return f.toISOString();if(p.isBoolean(f))return f.toString();if(!d&&p.isBlob(f))throw new M("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(f)||p.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,m,h){let A=f;if(f&&!h&&typeof f=="object"){if(p.endsWith(m,"{}"))m=n?m:m.slice(0,-2),f=JSON.stringify(f);else if(p.isArray(f)&&fo(f)||(p.isFileList(f)||p.endsWith(m,"[]"))&&(A=p.toArray(f)))return m=wa(m),A.forEach(function(R,F){!(p.isUndefined(R)||R===null)&&e.append(o===!0?ln([m],F,i):o===null?m:m+"[]",l(R))}),!1}return Ar(f)?!0:(e.append(ln(h,m,i),l(f)),!1)}const u=[],b=Object.assign(uo,{defaultVisitor:c,convertValue:l,isVisitable:Ar});function x(f,m){if(!p.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(f),p.forEach(f,function(A,J){(!(p.isUndefined(A)||A===null)&&a.call(e,A,p.isString(J)?J.trim():J,m,b))===!0&&x(A,m?m.concat(J):[J])}),u.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return x(t),e}function cn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Wr(t,e){this._pairs=[],t&&Qt(t,this,e)}const ka=Wr.prototype;ka.append=function(e,r){this._pairs.push([e,r])};ka.toString=function(e){const r=e?function(n){return e.call(this,n,cn)}:cn;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function mo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _a(t,e,r){if(!e)return t;const n=r&&r.encode||mo;p.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(e,r):i=p.isURLSearchParams(e)?e.toString():new Wr(e,r).toString(n),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class dn{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ho=typeof URLSearchParams<"u"?URLSearchParams:Wr,go=typeof FormData<"u"?FormData:null,vo=typeof Blob<"u"?Blob:null,yo={isBrowser:!0,classes:{URLSearchParams:ho,FormData:go,Blob:vo},protocols:["http","https","file","blob","url","data"]},Yr=typeof window<"u"&&typeof document<"u",Rr=typeof navigator=="object"&&navigator||void 0,bo=Yr&&(!Rr||["ReactNative","NativeScript","NS"].indexOf(Rr.product)<0),xo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wo=Yr&&window.location.href||"http://localhost",ko=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yr,hasStandardBrowserEnv:bo,hasStandardBrowserWebWorkerEnv:xo,navigator:Rr,origin:wo},Symbol.toStringTag,{value:"Module"})),me={...ko,...yo};function _o(t,e){return Qt(t,new me.classes.URLSearchParams,{visitor:function(r,n,a,i){return me.isNode&&p.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function Eo(t){return p.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function So(t){const e={},r=Object.keys(t);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],e[i]=t[i];return e}function Sa(t){function e(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),d=i>=r.length;return o=!o&&p.isArray(a)?a.length:o,d?(p.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!p.isObject(a[o]))&&(a[o]=[]),e(r,n,a[o],i)&&p.isArray(a[o])&&(a[o]=So(a[o])),!s)}if(p.isFormData(t)&&p.isFunction(t.entries)){const r={};return p.forEachEntry(t,(n,a)=>{e(Eo(n),a,r,0)}),r}return null}function To(t,e,r){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const bt={transitional:Ea,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=p.isObject(e);if(i&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return a?JSON.stringify(Sa(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _o(e,this.formSerializer).toString();if((s=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Qt(s?{"files[]":e}:e,d&&new d,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),To(e)):e}],transformResponse:[function(e){const r=this.transitional||bt.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?M.from(s,M.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],t=>{bt.headers[t]={}});const Oo=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Co=t=>{const e={};let r,n,a;return t&&t.split(`
1
+ "use strict";const dr=require("react/jsx-runtime"),P=require("react"),xi=require("react-dom"),da=`.ff-container{width:100%}@media (min-width: 640px){.ff-container{max-width:640px}}@media (min-width: 768px){.ff-container{max-width:768px}}@media (min-width: 1024px){.ff-container{max-width:1024px}}@media (min-width: 1280px){.ff-container{max-width:1280px}}@media (min-width: 1536px){.ff-container{max-width:1536px}}.fileflow-sdk-root{all:revert;isolation:isolate;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-size:16px;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;color:#21201d;background-color:transparent;text-align:left;direction:ltr;text-rendering:optimizeLegibility;margin:0;padding:0;--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fileflow-sdk-root *,.fileflow-sdk-root *:before,.fileflow-sdk-root *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.fileflow-sdk-root button,.fileflow-sdk-root input,.fileflow-sdk-root select,.fileflow-sdk-root textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}.fileflow-sdk-root button{cursor:pointer;background:none;border:none;padding:0}.fileflow-sdk-root img,.fileflow-sdk-root svg{display:block;max-width:100%}.fileflow-sdk-root a{color:inherit;text-decoration:inherit}.fileflow-sdk-root h1,.fileflow-sdk-root h2,.fileflow-sdk-root h3,.fileflow-sdk-root h4,.fileflow-sdk-root h5,.fileflow-sdk-root h6{font-size:inherit;font-weight:inherit;margin:0}.fileflow-sdk-root p,.fileflow-sdk-root ul,.fileflow-sdk-root ol{margin:0;padding:0}.fileflow-sdk-root ul,.fileflow-sdk-root ol{list-style:none}.fileflow-sdk-root{--ff-primary-10: #f9fafb;--ff-primary-20: #eef0f6;--ff-primary-30: #e2e6f0;--ff-primary-40: #dce1ec;--ff-primary-50: #d7e1f2;--ff-primary-60: #c6d6f0;--ff-primary-70: #c0d0ed;--ff-primary-80: #b9cbeb;--ff-primary-90: #728ab3;--ff-primary-100: #6980a5;--ff-primary-110: #4f6180;--ff-primary-120: #132036;--ff-primary-500: #d7e1f2;--ff-primary-600: #c0d0ed;--ff-brown-10: #f0ece8;--ff-brown-20: #d4c4ba;--ff-brown-30: #b59f8c;--ff-brown-40: #a68c74;--ff-brown-50: #97795d;--ff-brown-60: #8a6447;--ff-brown-70: #7a522f;--ff-brown-80: #6b3f18;--ff-brown-90: #613916;--ff-brown-100: #563213;--ff-brown-110: #4b2c11;--ff-brown-120: #36200c;--ff-primary-text: #6b3f18;--ff-gray-white: #ffffff;--ff-gray-10: #fcfcfb;--ff-gray-20: #f9f9f7;--ff-gray-30: #f0efed;--ff-gray-40: #e9e8e4;--ff-gray-50: #e2e0dd;--ff-gray-60: #dadad5;--ff-gray-70: #cfceca;--ff-gray-80: #bcbbb7;--ff-gray-90: #8e8d89;--ff-gray-100: #848280;--ff-gray-110: #656461;--ff-gray-120: #21201d;--ff-bg-primary: var(--ff-gray-white);--ff-bg-secondary: var(--ff-gray-10);--ff-bg-tertiary: var(--ff-gray-30);--ff-bg-brand: var(--ff-primary-50);--ff-bg-brand-light: var(--ff-primary-20);--ff-text-primary: var(--ff-gray-120);--ff-text-secondary: var(--ff-gray-110);--ff-text-muted: var(--ff-gray-90);--ff-text-supportive: var(--ff-gray-80);--ff-text-inverse: var(--ff-gray-white);--ff-text-link: var(--ff-primary-90);--ff-text-brand: var(--ff-brown-80);--ff-border-light: var(--ff-gray-30);--ff-border-default: var(--ff-gray-40);--ff-border-dark: var(--ff-gray-70);--ff-border-brand: var(--ff-brown-80);--ff-border-focus: var(--ff-primary-70);--ff-icon-default: var(--ff-gray-90);--ff-icon-active: var(--ff-gray-120);--ff-icon-muted: var(--ff-gray-80);--ff-icon-brand: var(--ff-brown-80);--ff-icon-inverse: var(--ff-gray-white);--ff-success-light: #e7f5e4;--ff-success: #298e33;--ff-success-dark: #1f3c20;--ff-warning-light: #ffe6c1;--ff-warning: #a86807;--ff-warning-dark: #4a3723;--ff-error-light: #fcdede;--ff-error: #d43338;--ff-error-dark: #641a1a;--ff-focus-ring: rgba(192, 208, 237, .5);--ff-focus-ring-accent: rgba(168, 85, 247, .25);--ff-accent-50: #faf5ff;--ff-accent-100: #f3e8ff;--ff-accent-200: #e9d5ff;--ff-accent-300: #d8b4fe;--ff-accent-400: #c084fc;--ff-accent-500: #a855f7;--ff-accent-600: #9333ea;--ff-accent-700: #7c3aed;--ff-accent-800: #6b21a8;--ff-accent-900: #581c87;--ff-navy-950: #1a2029}.fileflow-sdk-root .ff-container{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--ff-text-primary);font-feature-settings:"cv02","cv03","cv04","cv11"}.fileflow-sdk-root .ff-table-container{position:relative;overflow:auto;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light);background-color:var(--ff-bg-primary)}.fileflow-sdk-root .ff-table{width:100%;font-size:.875rem;line-height:1.25rem}.fileflow-sdk-root .ff-table thead{position:sticky;top:0;z-index:10;background-color:var(--ff-bg-secondary)}.fileflow-sdk-root .ff-table thead tr:first-child th:first-child{border-top-left-radius:1rem}.fileflow-sdk-root .ff-table thead tr:first-child th:last-child{border-top-right-radius:1rem}.fileflow-sdk-root .ff-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ff-text-secondary);border-bottom:2px solid var(--ff-border-light)}.fileflow-sdk-root .ff-table td{padding:.75rem 1rem;color:var(--ff-text-primary);border-bottom:1px solid var(--ff-border-light)}.fileflow-sdk-root .ff-table tbody tr{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-table tbody tr:hover{background-color:var(--ff-bg-secondary)}.fileflow-sdk-root .ff-cell-error{border-left-width:4px;background-color:var(--ff-error-light);border-left-color:var(--ff-error)}.fileflow-sdk-root .ff-cell-warning{border-left-width:4px;background-color:var(--ff-warning-light);border-left-color:var(--ff-warning)}.fileflow-sdk-root .ff-cell-editing{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);background-color:var(--ff-primary-50);--tw-ring-color: var(--ff-primary-400)}.fileflow-sdk-root .ff-cell-success{background-color:var(--ff-success-light)}.fileflow-sdk-root .ff-row-error{background-color:#d433381a}.fileflow-sdk-root .ff-edit-btn{color:var(--ff-text-muted);border-radius:.5rem;padding:.25rem}.fileflow-sdk-root .ff-edit-btn:hover{color:var(--ff-text-secondary);background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-delete-btn{border-radius:.75rem;padding:.375rem;color:var(--ff-gray-80);background-color:transparent;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-delete-btn svg{display:block;width:1rem;height:1rem}.fileflow-sdk-root .ff-delete-btn:hover{color:var(--ff-error);background-color:var(--ff-error-light)}.fileflow-sdk-root .ff-delete-btn:disabled{cursor:not-allowed;opacity:.3}.fileflow-sdk-root .ff-delete-btn:disabled:hover{color:var(--ff-gray-80);background-color:transparent}.fileflow-sdk-root .ff-input{width:100%;border-radius:.75rem;border-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary);color:var(--ff-text-primary);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.fileflow-sdk-root .ff-input::-moz-placeholder{color:var(--ff-text-muted)}.fileflow-sdk-root .ff-input::placeholder{color:var(--ff-text-muted)}.fileflow-sdk-root .ff-input:hover{border-color:var(--ff-border-dark)}.fileflow-sdk-root .ff-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);border-color:var(--ff-primary-500);--tw-ring-color: var(--ff-focus-ring)}.fileflow-sdk-root .ff-input-error{border-color:var(--ff-error)}.fileflow-sdk-root .ff-input-error:focus{border-color:var(--ff-error);--tw-ring-color: rgba(212, 51, 56, .2)}.fileflow-sdk-root .ff-select,.fileflow-sdk-root select.ff-input{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2.5rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:1.25em 1.25em}.fileflow-sdk-root .ff-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:600;padding:.625rem 1.25rem;border-radius:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-width:1px;border-color:transparent;cursor:pointer}.fileflow-sdk-root .ff-btn:focus{outline:2px solid transparent;outline-offset:2px}.fileflow-sdk-root .ff-btn:disabled{cursor:not-allowed;opacity:.5}.fileflow-sdk-root .ff-btn-primary{background-color:var(--ff-primary-110);color:var(--ff-gray-white)}.fileflow-sdk-root .ff-btn-primary:hover:not(:disabled){background-color:var(--ff-primary-120);transform:translateY(-1px);box-shadow:0 4px 12px -2px #0003}.fileflow-sdk-root .ff-btn-primary:active:not(:disabled){background-color:var(--ff-primary-130);transform:translateY(0)}.fileflow-sdk-root .ff-btn-primary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.fileflow-sdk-root .ff-btn-secondary{background-color:var(--ff-bg-primary);color:var(--ff-text-primary);border-color:var(--ff-border-default)}.fileflow-sdk-root .ff-btn-secondary:hover:not(:disabled){background-color:var(--ff-bg-secondary);border-color:var(--ff-border-dark)}.fileflow-sdk-root .ff-btn-secondary:active:not(:disabled){background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-btn-secondary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.fileflow-sdk-root .ff-btn-ghost{background-color:var(--ff-bg-primary);color:var(--ff-text-secondary);border-color:var(--ff-border-default)}.fileflow-sdk-root .ff-btn-ghost:hover:not(:disabled){background-color:var(--ff-bg-tertiary);color:var(--ff-text-primary);border-color:var(--ff-border-dark)}.fileflow-sdk-root .ff-btn-accent{background-color:var(--ff-accent-500);color:var(--ff-text-inverse)}.fileflow-sdk-root .ff-btn-accent:hover:not(:disabled){background-color:var(--ff-accent-600);transform:translateY(-1px);box-shadow:0 4px 12px -2px #a855f74d}.fileflow-sdk-root .ff-btn-accent:active:not(:disabled){background-color:var(--ff-accent-700);transform:translateY(0)}.fileflow-sdk-root .ff-btn-accent:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring-accent)}.fileflow-sdk-root .ff-btn-danger{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.fileflow-sdk-root .ff-btn-danger:hover:not(:disabled){--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1));transform:translateY(-1px)}.fileflow-sdk-root .ff-btn-link{background-color:transparent;color:var(--ff-primary-text);padding:.25rem .5rem}.fileflow-sdk-root .ff-btn-link:hover:not(:disabled){color:#4a2a10;text-decoration:underline}.fileflow-sdk-root .ff-btn-sm{border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem}.fileflow-sdk-root .ff-btn-lg{border-radius:1rem;padding:.75rem 1.5rem;font-size:1rem;line-height:1.5rem}.fileflow-sdk-root .ff-checkbox{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.5rem;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.fileflow-sdk-root .ff-checkbox:hover{border-color:var(--ff-primary-400)}.fileflow-sdk-root .ff-checkbox:checked{background-color:var(--ff-primary-500);border-color:var(--ff-primary-500);background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}.fileflow-sdk-root .ff-checkbox:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.fileflow-sdk-root .ff-radio{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:9999px;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.fileflow-sdk-root .ff-radio:checked{border-color:var(--ff-primary-500);border-width:6px}.fileflow-sdk-root .ff-radio:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.fileflow-sdk-root .ff-toggle{position:relative;height:1.5rem;width:2.75rem;cursor:pointer;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-border-default)}.fileflow-sdk-root .ff-toggle:after{position:absolute;top:.125rem;left:.125rem;height:1.25rem;width:1.25rem;border-radius:9999px;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;content:"";background-color:var(--ff-bg-primary);box-shadow:0 1px 3px #0000001a}.fileflow-sdk-root .ff-toggle:checked{background-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-toggle:checked:after{transform:translate(1.25rem)}.fileflow-sdk-root .ff-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;border-radius:1rem;border-width:2px;border-style:dashed;border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary);cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-dropzone *{pointer-events:none}.fileflow-sdk-root .ff-dropzone input{pointer-events:auto}.fileflow-sdk-root .ff-dropzone:hover{border-color:var(--ff-primary-70);background-color:var(--ff-primary-10)}.fileflow-sdk-root .ff-dropzone-active{border-color:var(--ff-primary-90);background-color:var(--ff-primary-20);--tw-scale-x: 1.01;--tw-scale-y: 1.01;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.fileflow-sdk-root .ff-dropzone-icon-wrapper{margin-left:auto;margin-right:auto;margin-bottom:1rem;display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--ff-primary-20);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-dropzone-active .ff-dropzone-icon-wrapper{background-color:var(--ff-primary-30)}.fileflow-sdk-root .ff-dropzone-icon{height:1.75rem;width:1.75rem;color:var(--ff-primary-90);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-dropzone-active .ff-dropzone-icon{color:var(--ff-primary-110)}.fileflow-sdk-root .ff-dropzone-text{margin-bottom:.25rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-dropzone-hint{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-dropzone-formats{margin-top:.75rem;font-size:.75rem;line-height:1rem;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-badge{display:inline-flex;align-items:center;border-radius:9999px;padding:.25rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.fileflow-sdk-root .ff-badge-error{background-color:var(--ff-error-light);color:var(--ff-error)}.fileflow-sdk-root .ff-badge-warning{background-color:var(--ff-warning-light);color:var(--ff-warning)}.fileflow-sdk-root .ff-badge-success{background-color:var(--ff-success-light);color:var(--ff-success)}.fileflow-sdk-root .ff-badge-info{background-color:var(--ff-primary-20);color:var(--ff-primary-90)}.fileflow-sdk-root .ff-badge-neutral{background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.fileflow-sdk-root .ff-badge-primary{background-color:var(--ff-primary-100);color:var(--ff-primary-700)}.fileflow-sdk-root .ff-badge-accent{background-color:var(--ff-accent-100);color:var(--ff-accent-700)}.fileflow-sdk-root .ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background-color:#1c191780;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1rem;animation:ff-fade-in .2s ease-out;overflow-y:auto}@keyframes ff-fade-in{0%{opacity:0}to{opacity:1}}.fileflow-sdk-root .ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background-color:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem}.fileflow-sdk-root .ff-modal{background-color:var(--ff-bg-primary);border-radius:1.25rem;width:100%;max-width:56rem;display:flex;flex-direction:column;max-height:min(90vh,calc(100vh - 2rem));box-shadow:0 25px 50px -12px #00000040;animation:ff-scale-in .2s ease-out;margin-top:auto;margin-bottom:auto}.fileflow-sdk-root .ff-embed{background-color:var(--ff-bg-primary);display:flex;width:100%;flex-direction:column;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light)}.fileflow-sdk-root .ff-embed .ff-modal-header{border-top-left-radius:1rem;border-top-right-radius:1rem}.fileflow-sdk-root .ff-embed .ff-modal-footer{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}@keyframes ff-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fileflow-sdk-root .ff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--ff-border-light);flex-shrink:0;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem}.fileflow-sdk-root .ff-modal-header-left{display:flex;align-items:center;gap:1rem}.fileflow-sdk-root .ff-modal-icon{display:flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:.75rem;background-color:var(--ff-primary-20)}.fileflow-sdk-root .ff-modal-icon svg{height:1.25rem;width:1.25rem;color:var(--ff-primary-90)}.fileflow-sdk-root .ff-modal-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-modal-close{border-radius:.75rem;padding:.5rem;color:var(--ff-text-muted);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-modal-close:hover{color:var(--ff-text-primary);background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-modal-body{flex:1 1 0%;overflow-y:auto;padding:1.5rem}.fileflow-sdk-root .ff-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background-color:var(--ff-bg-secondary);border-top:1px solid var(--ff-border-light);flex-shrink:0;border-bottom-right-radius:1.25rem;border-bottom-left-radius:1.25rem}.fileflow-sdk-root .ff-steps{display:flex;align-items:center;gap:.5rem}.fileflow-sdk-root .ff-step{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:9999px;font-size:.875rem;line-height:1.25rem;font-weight:600;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-step-pending{background-color:var(--ff-bg-tertiary);color:var(--ff-text-muted)}.fileflow-sdk-root .ff-step-active{background-color:var(--ff-primary-50);color:var(--ff-primary-90);box-shadow:0 0 0 4px var(--ff-primary-20)}.fileflow-sdk-root .ff-step-complete{background-color:var(--ff-success);color:#fff}.fileflow-sdk-root .ff-step-connector{height:.125rem;width:2rem;background-color:var(--ff-border-default);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fileflow-sdk-root .ff-step-connector-complete{background-color:var(--ff-success)}.fileflow-sdk-root .ff-progress{height:.5rem;overflow:hidden;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-progress-bar{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1);background-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-progress-bar-animated{background:linear-gradient(90deg,var(--ff-primary-400) 0%,var(--ff-primary-500) 50%,var(--ff-primary-400) 100%);background-size:200% 100%;animation:shimmer 2s linear infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.fileflow-sdk-root .ff-tooltip{position:absolute;z-index:50;border-radius:.75rem;padding:.5rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;visibility:hidden;opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-navy-950);color:var(--ff-text-inverse);box-shadow:0 4px 12px -2px #0003}.fileflow-sdk-root .ff-tooltip-visible{visibility:visible;opacity:1}.fileflow-sdk-root .ff-spinner{height:1.25rem;width:1.25rem}.fileflow-sdk-root .ff-spinner{animation:ff-spin 1s linear infinite;border-radius:9999px;border-width:2px;border-color:var(--ff-border-light);border-top-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-spinner-lg{height:2rem;width:2rem;border-width:3px}.fileflow-sdk-root .ff-document-preview{position:relative;overflow:hidden;border-radius:1rem;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-document-preview img{height:auto;width:100%;-o-object-fit:contain;object-fit:contain}.fileflow-sdk-root .ff-mapping-header{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}.fileflow-sdk-root .ff-mapping-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-mapping-subtitle{font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-mapping-legend{display:flex;align-items:center;gap:1rem;font-size:.875rem;line-height:1.25rem}.fileflow-sdk-root .ff-mapping-legend-item{display:flex;align-items:center;gap:.375rem}.fileflow-sdk-root .ff-mapping-legend-dot{height:.5rem;width:.5rem;border-radius:9999px}.fileflow-sdk-root .ff-mapping-row{display:flex;align-items:center;gap:1rem;border-radius:1rem;border-width:1px;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light)}.fileflow-sdk-root .ff-mapping-row:hover{border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary)}.fileflow-sdk-root .ff-mapping-row-success{border-color:var(--ff-success-light);background-color:#e7f5e480}.fileflow-sdk-root .ff-mapping-row-warning{border-color:var(--ff-warning-light);background-color:#ffe6c180}.fileflow-sdk-root .ff-mapping-source{flex:1 1 0%;border-radius:.75rem;padding:.625rem 1rem;font-family:JetBrains Mono,SF Mono,Monaco,monospace;font-size:.875rem;line-height:1.25rem;background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.fileflow-sdk-root .ff-mapping-arrow{flex-shrink:0;color:var(--ff-text-muted)}.fileflow-sdk-root .ff-mapping-target{flex:1 1 0%}.fileflow-sdk-root .ff-mapping-status{display:flex;width:2rem;justify-content:center}.fileflow-sdk-root .ff-confidence{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem;line-height:1rem;font-weight:500}.fileflow-sdk-root .ff-confidence-high{color:var(--ff-success)}.fileflow-sdk-root .ff-confidence-medium{color:var(--ff-warning)}.fileflow-sdk-root .ff-confidence-low{color:var(--ff-error)}.fileflow-sdk-root .ff-confidence-bar{height:.375rem;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-confidence-bar-fill{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.fileflow-sdk-root .ff-validation-summary{border-radius:1rem;border-width:1px;padding:1rem}.fileflow-sdk-root .ff-validation-summary-error{background-color:var(--ff-error-light);border-color:var(--ff-error)}.fileflow-sdk-root .ff-validation-summary-warning{background-color:var(--ff-warning-light);border-color:var(--ff-warning)}.fileflow-sdk-root .ff-validation-summary-success{background-color:var(--ff-success-light);border-color:var(--ff-success)}.fileflow-sdk-root .ff-card{border-radius:1rem;border-width:1px;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light);box-shadow:0 2px 8px -2px #0000000a}.fileflow-sdk-root .ff-card-hover{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.fileflow-sdk-root .ff-card-hover:hover{border-color:var(--ff-border-default);box-shadow:0 8px 24px -4px #00000014;transform:translateY(-2px)}.fileflow-sdk-root .ff-status{display:inline-flex;align-items:center;gap:.5rem}.fileflow-sdk-root .ff-status-dot{height:.5rem;width:.5rem;border-radius:9999px}.fileflow-sdk-root .ff-status-dot-success{background-color:var(--ff-success)}.fileflow-sdk-root .ff-status-dot-warning{background-color:var(--ff-warning)}.fileflow-sdk-root .ff-status-dot-error{background-color:var(--ff-error)}.fileflow-sdk-root .ff-status-dot-pending{background-color:var(--ff-text-muted)}.fileflow-sdk-root .ff-status-dot-processing{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:var(--ff-primary-90)}.fileflow-sdk-root .ff-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:3rem;padding-bottom:3rem;text-align:center}.fileflow-sdk-root .ff-empty-state-icon{margin-bottom:1rem;height:4rem;width:4rem;color:var(--ff-border-default)}.fileflow-sdk-root .ff-empty-state-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.fileflow-sdk-root .ff-empty-state-description{max-width:24rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}@keyframes ff-pulse{50%{opacity:.5}}.fileflow-sdk-root .ff-skeleton{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:.5rem;background-color:var(--ff-bg-tertiary)}.fileflow-sdk-root .ff-skeleton-text{height:1rem;border-radius:.5rem}.fileflow-sdk-root .ff-skeleton-title{height:1.5rem;width:75%;border-radius:.5rem}.fileflow-sdk-root .ff-skeleton-avatar{height:2.5rem;width:2.5rem;border-radius:9999px}.fileflow-sdk-root .ff-pagination{display:flex;align-items:center;gap:.25rem}.fileflow-sdk-root .ff-pagination-btn{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:var(--ff-text-secondary)}.fileflow-sdk-root .ff-pagination-btn:hover{background-color:var(--ff-bg-secondary);color:var(--ff-text-primary)}.fileflow-sdk-root .ff-pagination-btn-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse)}.fileflow-sdk-root .ff-pagination-btn-active:hover{background-color:var(--ff-primary-600);color:var(--ff-text-inverse)}.fileflow-sdk-root .ff-selector-group{display:inline-flex;flex-wrap:wrap;gap:.5rem}.fileflow-sdk-root .ff-selector-item{display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;cursor:pointer;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-secondary);color:var(--ff-text-secondary);border:1px solid var(--ff-border-light)}.fileflow-sdk-root .ff-selector-item:hover{background-color:var(--ff-bg-tertiary);border-color:var(--ff-border-default)}.fileflow-sdk-root .ff-selector-item-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse);border-color:var(--ff-primary-500)}.fileflow-sdk-root .ff-selector-item-active:hover{background-color:var(--ff-primary-600);border-color:var(--ff-primary-600)}.fileflow-sdk-root .ff-fade-in{animation:fadeIn .3s ease-out}.fileflow-sdk-root .ff-slide-up{animation:slideUp .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fileflow-sdk-root .ff-theme-accent{--ff-primary-50: var(--ff-accent-50);--ff-primary-100: var(--ff-accent-100);--ff-primary-200: var(--ff-accent-200);--ff-primary-300: var(--ff-accent-300);--ff-primary-400: var(--ff-accent-400);--ff-primary-500: var(--ff-accent-500);--ff-primary-600: var(--ff-accent-600);--ff-primary-700: var(--ff-accent-700);--ff-primary-800: var(--ff-accent-800);--ff-primary-900: var(--ff-accent-900);--ff-focus-ring: var(--ff-focus-ring-accent)}.ff-relative{position:relative}.ff-bottom-full{bottom:100%}.ff-left-1\\/2{left:50%}.ff-mx-auto{margin-left:auto;margin-right:auto}.ff-mb-2{margin-bottom:.5rem}.ff-mb-3{margin-bottom:.75rem}.ff-mb-4{margin-bottom:1rem}.ff-mb-6{margin-bottom:1.5rem}.ff-ml-4{margin-left:1rem}.ff-mr-1{margin-right:.25rem}.ff-mr-4{margin-right:1rem}.ff-mt-0\\.5{margin-top:.125rem}.ff-mt-1{margin-top:.25rem}.ff-mt-2{margin-top:.5rem}.ff-mt-3{margin-top:.75rem}.ff-block{display:block}.ff-inline-block{display:inline-block}.ff-flex{display:flex}.ff-table{display:table}.ff-grid{display:grid}.ff-aspect-\\[3\\/4\\]{aspect-ratio:3/4}.ff-h-10{height:2.5rem}.ff-h-12{height:3rem}.ff-h-16{height:4rem}.ff-h-20{height:5rem}.ff-h-3{height:.75rem}.ff-h-4{height:1rem}.ff-h-5{height:1.25rem}.ff-h-6{height:1.5rem}.ff-h-8{height:2rem}.ff-h-full{height:100%}.ff-max-h-96{max-height:24rem}.ff-max-h-\\[250px\\]{max-height:250px}.ff-max-h-\\[500px\\]{max-height:500px}.ff-w-10{width:2.5rem}.ff-w-12{width:3rem}.ff-w-16{width:4rem}.ff-w-20{width:5rem}.ff-w-3{width:.75rem}.ff-w-4{width:1rem}.ff-w-48{width:12rem}.ff-w-5{width:1.25rem}.ff-w-6{width:1.5rem}.ff-w-8{width:2rem}.ff-w-full{width:100%}.ff-min-w-0{min-width:0px}.ff-min-w-\\[160px\\]{min-width:160px}.ff-min-w-\\[280px\\]{min-width:280px}.ff-max-w-\\[150px\\]{max-width:150px}.ff-max-w-lg{max-width:32rem}.ff-max-w-md{max-width:28rem}.ff-max-w-xl{max-width:36rem}.ff-max-w-xs{max-width:20rem}.ff-flex-1{flex:1 1 0%}.ff-flex-shrink-0{flex-shrink:0}.ff--translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ff-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ff-spin{to{transform:rotate(360deg)}}.ff-animate-spin{animation:ff-spin 1s linear infinite}.ff-cursor-not-allowed{cursor:not-allowed}.ff-cursor-pointer{cursor:pointer}.ff-cursor-wait{cursor:wait}.ff-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ff-list-inside{list-style-position:inside}.ff-list-disc{list-style-type:disc}.ff-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ff-flex-col{flex-direction:column}.ff-flex-wrap{flex-wrap:wrap}.ff-items-start{align-items:flex-start}.ff-items-center{align-items:center}.ff-justify-center{justify-content:center}.ff-justify-between{justify-content:space-between}.ff-gap-1{gap:.25rem}.ff-gap-2{gap:.5rem}.ff-gap-3{gap:.75rem}.ff-gap-4{gap:1rem}.ff-gap-6{gap:1.5rem}.ff-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.ff-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.ff-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.ff-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ff-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.ff-overflow-hidden{overflow:hidden}.ff-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ff-whitespace-nowrap{white-space:nowrap}.ff-rounded{border-radius:.5rem}.ff-rounded-2xl{border-radius:1.25rem}.ff-rounded-full{border-radius:9999px}.ff-rounded-lg{border-radius:.75rem}.ff-rounded-xl{border-radius:1rem}.ff-border{border-width:1px}.ff-border-2{border-width:2px}.ff-border-transparent{border-color:transparent}.ff-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ff-object-contain{-o-object-fit:contain;object-fit:contain}.ff-p-1{padding:.25rem}.ff-p-1\\.5{padding:.375rem}.ff-p-2{padding:.5rem}.ff-p-3{padding:.75rem}.ff-p-4{padding:1rem}.ff-p-6{padding:1.5rem}.ff-p-8{padding:2rem}.ff-px-2{padding-left:.5rem;padding-right:.5rem}.ff-px-3{padding-left:.75rem;padding-right:.75rem}.ff-px-4{padding-left:1rem;padding-right:1rem}.ff-px-6{padding-left:1.5rem;padding-right:1.5rem}.ff-py-1{padding-top:.25rem;padding-bottom:.25rem}.ff-py-12{padding-top:3rem;padding-bottom:3rem}.ff-py-2{padding-top:.5rem;padding-bottom:.5rem}.ff-py-3{padding-top:.75rem;padding-bottom:.75rem}.ff-py-4{padding-top:1rem;padding-bottom:1rem}.ff-py-8{padding-top:2rem;padding-bottom:2rem}.ff-text-left{text-align:left}.ff-text-center{text-align:center}.ff-text-right{text-align:right}.ff-font-mono{font-family:JetBrains Mono,SF Mono,Monaco,monospace}.ff-text-2xl{font-size:1.5rem;line-height:2rem}.ff-text-lg{font-size:1.125rem;line-height:1.75rem}.ff-text-sm{font-size:.875rem;line-height:1.25rem}.ff-text-xl{font-size:1.25rem;line-height:1.75rem}.ff-text-xs{font-size:.75rem;line-height:1rem}.ff-font-bold{font-weight:700}.ff-font-medium{font-weight:500}.ff-font-semibold{font-weight:600}.ff-uppercase{text-transform:uppercase}.ff-tracking-wider{letter-spacing:.05em}.ff-opacity-0{opacity:0}.ff-opacity-50{opacity:.5}.ff-shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ff-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-duration-150{transition-duration:.15s}.hover\\:ff-border-transparent:hover{border-color:transparent}.ff-group:hover .group-hover\\:ff-opacity-100{opacity:1}`,on="fileflow-sdk-styles";let pr=!1;function Dt(){if(pr||typeof document>"u")return;if(document.getElementById(on)){pr=!0;return}const t=document.createElement("style");t.id=on,t.setAttribute("data-fileflow-sdk","true"),t.textContent=da,document.head.appendChild(t),pr=!0}function wi(t){if(t.querySelector("style[data-fileflow-sdk]"))return;const e=document.createElement("style");e.setAttribute("data-fileflow-sdk","true"),e.textContent=da,t.appendChild(e)}function ki(t){if(!t)return;const e={};return t.primaryColor&&(e["--ff-primary-110"]=t.primaryColor),t.primaryHoverColor&&(e["--ff-primary-120"]=t.primaryHoverColor),t.primaryTextColor&&(e["--ff-gray-white"]=t.primaryTextColor),t.successColor&&(e["--ff-success"]=t.successColor),t.errorColor&&(e["--ff-error"]=t.errorColor),t.warningColor&&(e["--ff-warning"]=t.warningColor),t.backgroundColor&&(e["--ff-bg-primary"]=t.backgroundColor),t.textColor&&(e["--ff-text-primary"]=t.textColor),t.textMutedColor&&(e["--ff-text-muted"]=t.textMutedColor),t.borderColor&&(e["--ff-border-default"]=t.borderColor),Object.keys(e).length>0?e:void 0}const _i=({children:t,className:e="",theme:r,useShadowDom:n=!1})=>{const a=P.useRef(null),i=P.useRef(null),[o,s]=P.useState(!1),[d,l]=P.useState(!1),c=P.useCallback(()=>{if(!(!n||!a.current||i.current))try{i.current=a.current.attachShadow({mode:"open"}),wi(i.current),l(!0)}catch(b){console.error("[FileFlow SDK] Failed to create Shadow DOM:",b),l(!1)}},[n]);P.useEffect(()=>{n?c():Dt(),s(!0)},[n,c]),!o&&typeof window<"u"&&(n||Dt());const u=ki(r);return n?dr.jsx("div",{ref:a,"data-fileflow-sdk":"true","data-shadow-dom":"true",children:d&&i.current&&xi.createPortal(dr.jsx("div",{className:`fileflow-sdk-root ${e}`.trim(),style:u,children:t}),i.current)}):dr.jsx("div",{ref:a,className:`fileflow-sdk-root ${e}`.trim(),"data-fileflow-sdk":"true",style:u,children:t})};function Ei(){P.useEffect(()=>{Dt()},[])}function pa(t,e){return function(){return t.apply(e,arguments)}}const{toString:Si}=Object.prototype,{getPrototypeOf:Hr}=Object,{iterator:Jt,toStringTag:fa}=Symbol,Gt=(t=>e=>{const r=Si.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ce=t=>(t=t.toLowerCase(),e=>Gt(e)===t),Xt=t=>e=>typeof e===t,{isArray:ot}=Array,rt=Xt("undefined");function gt(t){return t!==null&&!rt(t)&&t.constructor!==null&&!rt(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ua=Ce("ArrayBuffer");function Ti(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ua(t.buffer),e}const Oi=Xt("string"),be=Xt("function"),ma=Xt("number"),vt=t=>t!==null&&typeof t=="object",Ci=t=>t===!0||t===!1,At=t=>{if(Gt(t)!=="object")return!1;const e=Hr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(fa in t)&&!(Jt in t)},Ai=t=>{if(!vt(t)||gt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Ri=Ce("Date"),ji=Ce("File"),Di=Ce("Blob"),Pi=Ce("FileList"),Ii=t=>vt(t)&&be(t.pipe),Ni=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((e=Gt(t))==="formdata"||e==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},Fi=Ce("URLSearchParams"),[zi,Li,Mi,qi]=["ReadableStream","Request","Response","Headers"].map(Ce),$i=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yt(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),ot(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{if(gt(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,t[s],s,t)}}function ha(t,e){if(gt(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}const Ue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ga=t=>!rt(t)&&t!==Ue;function Cr(){const{caseless:t,skipUndefined:e}=ga(this)&&this||{},r={},n=(a,i)=>{const o=t&&ha(r,i)||i;At(r[o])&&At(a)?r[o]=Cr(r[o],a):At(a)?r[o]=Cr({},a):ot(a)?r[o]=a.slice():(!e||!rt(a))&&(r[o]=a)};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&yt(arguments[a],n);return r}const Bi=(t,e,r,{allOwnKeys:n}={})=>(yt(e,(a,i)=>{r&&be(a)?t[i]=pa(a,r):t[i]=a},{allOwnKeys:n}),t),Ui=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Zi=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Vi=(t,e,r,n)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!n||n(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=r!==!1&&Hr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Hi=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Wi=t=>{if(!t)return null;if(ot(t))return t;let e=t.length;if(!ma(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Yi=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Hr(Uint8Array)),Ki=(t,e)=>{const n=(t&&t[Jt]).call(t);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},Ji=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Gi=Ce("HTMLFormElement"),Xi=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),sn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Qi=Ce("RegExp"),va=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};yt(r,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(n[i]=o||a)}),Object.defineProperties(t,n)},eo=t=>{va(t,(e,r)=>{if(be(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(be(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},to=(t,e)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return ot(t)?n(t):n(String(t).split(e)),r},ro=()=>{},no=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ao(t){return!!(t&&be(t.append)&&t[fa]==="FormData"&&t[Jt])}const io=t=>{const e=new Array(10),r=(n,a)=>{if(vt(n)){if(e.indexOf(n)>=0)return;if(gt(n))return n;if(!("toJSON"in n)){e[a]=n;const i=ot(n)?[]:{};return yt(n,(o,s)=>{const d=r(o,a+1);!rt(d)&&(i[s]=d)}),e[a]=void 0,i}}return n};return r(t,0)},oo=Ce("AsyncFunction"),so=t=>t&&(vt(t)||be(t))&&be(t.then)&&be(t.catch),ya=((t,e)=>t?setImmediate:e?((r,n)=>(Ue.addEventListener("message",({source:a,data:i})=>{a===Ue&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Ue.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",be(Ue.postMessage)),lo=typeof queueMicrotask<"u"?queueMicrotask.bind(Ue):typeof process<"u"&&process.nextTick||ya,co=t=>t!=null&&be(t[Jt]),p={isArray:ot,isArrayBuffer:ua,isBuffer:gt,isFormData:Ni,isArrayBufferView:Ti,isString:Oi,isNumber:ma,isBoolean:Ci,isObject:vt,isPlainObject:At,isEmptyObject:Ai,isReadableStream:zi,isRequest:Li,isResponse:Mi,isHeaders:qi,isUndefined:rt,isDate:Ri,isFile:ji,isBlob:Di,isRegExp:Qi,isFunction:be,isStream:Ii,isURLSearchParams:Fi,isTypedArray:Yi,isFileList:Pi,forEach:yt,merge:Cr,extend:Bi,trim:$i,stripBOM:Ui,inherits:Zi,toFlatObject:Vi,kindOf:Gt,kindOfTest:Ce,endsWith:Hi,toArray:Wi,forEachEntry:Ki,matchAll:Ji,isHTMLForm:Gi,hasOwnProperty:sn,hasOwnProp:sn,reduceDescriptors:va,freezeMethods:eo,toObjectSet:to,toCamelCase:Xi,noop:ro,toFiniteNumber:no,findKey:ha,global:Ue,isContextDefined:ga,isSpecCompliantForm:ao,toJSONObject:io,isAsyncFn:oo,isThenable:so,setImmediate:ya,asap:lo,isIterable:co};function M(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}p.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:p.toJSONObject(this.config),code:this.code,status:this.status}}});const ba=M.prototype,xa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{xa[t]={value:t}});Object.defineProperties(M,xa);Object.defineProperty(ba,"isAxiosError",{value:!0});M.from=(t,e,r,n,a,i)=>{const o=Object.create(ba);p.toFlatObject(t,o,function(c){return c!==Error.prototype},l=>l!=="isAxiosError");const s=t&&t.message?t.message:"Error",d=e==null&&t?t.code:e;return M.call(o,s,d,r,n,a),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",i&&Object.assign(o,i),o};const po=null;function Ar(t){return p.isPlainObject(t)||p.isArray(t)}function wa(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function ln(t,e,r){return t?t.concat(e).map(function(a,i){return a=wa(a),!r&&i?"["+a+"]":a}).join(r?".":""):e}function fo(t){return p.isArray(t)&&!t.some(Ar)}const uo=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Qt(t,e,r){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=p.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!p.isUndefined(h[m])});const n=r.metaTokens,a=r.visitor||c,i=r.dots,o=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(e);if(!p.isFunction(a))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(p.isDate(f))return f.toISOString();if(p.isBoolean(f))return f.toString();if(!d&&p.isBlob(f))throw new M("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(f)||p.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,m,h){let A=f;if(f&&!h&&typeof f=="object"){if(p.endsWith(m,"{}"))m=n?m:m.slice(0,-2),f=JSON.stringify(f);else if(p.isArray(f)&&fo(f)||(p.isFileList(f)||p.endsWith(m,"[]"))&&(A=p.toArray(f)))return m=wa(m),A.forEach(function(R,F){!(p.isUndefined(R)||R===null)&&e.append(o===!0?ln([m],F,i):o===null?m:m+"[]",l(R))}),!1}return Ar(f)?!0:(e.append(ln(h,m,i),l(f)),!1)}const u=[],b=Object.assign(uo,{defaultVisitor:c,convertValue:l,isVisitable:Ar});function x(f,m){if(!p.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(f),p.forEach(f,function(A,J){(!(p.isUndefined(A)||A===null)&&a.call(e,A,p.isString(J)?J.trim():J,m,b))===!0&&x(A,m?m.concat(J):[J])}),u.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return x(t),e}function cn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Wr(t,e){this._pairs=[],t&&Qt(t,this,e)}const ka=Wr.prototype;ka.append=function(e,r){this._pairs.push([e,r])};ka.toString=function(e){const r=e?function(n){return e.call(this,n,cn)}:cn;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function mo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _a(t,e,r){if(!e)return t;const n=r&&r.encode||mo;p.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(e,r):i=p.isURLSearchParams(e)?e.toString():new Wr(e,r).toString(n),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class dn{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){p.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ho=typeof URLSearchParams<"u"?URLSearchParams:Wr,go=typeof FormData<"u"?FormData:null,vo=typeof Blob<"u"?Blob:null,yo={isBrowser:!0,classes:{URLSearchParams:ho,FormData:go,Blob:vo},protocols:["http","https","file","blob","url","data"]},Yr=typeof window<"u"&&typeof document<"u",Rr=typeof navigator=="object"&&navigator||void 0,bo=Yr&&(!Rr||["ReactNative","NativeScript","NS"].indexOf(Rr.product)<0),xo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wo=Yr&&window.location.href||"http://localhost",ko=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yr,hasStandardBrowserEnv:bo,hasStandardBrowserWebWorkerEnv:xo,navigator:Rr,origin:wo},Symbol.toStringTag,{value:"Module"})),me={...ko,...yo};function _o(t,e){return Qt(t,new me.classes.URLSearchParams,{visitor:function(r,n,a,i){return me.isNode&&p.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function Eo(t){return p.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function So(t){const e={},r=Object.keys(t);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],e[i]=t[i];return e}function Sa(t){function e(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),d=i>=r.length;return o=!o&&p.isArray(a)?a.length:o,d?(p.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!p.isObject(a[o]))&&(a[o]=[]),e(r,n,a[o],i)&&p.isArray(a[o])&&(a[o]=So(a[o])),!s)}if(p.isFormData(t)&&p.isFunction(t.entries)){const r={};return p.forEachEntry(t,(n,a)=>{e(Eo(n),a,r,0)}),r}return null}function To(t,e,r){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const bt={transitional:Ea,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=p.isObject(e);if(i&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return a?JSON.stringify(Sa(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return _o(e,this.formSerializer).toString();if((s=p.isFileList(e))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Qt(s?{"files[]":e}:e,d&&new d,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),To(e)):e}],transformResponse:[function(e){const r=this.transitional||bt.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?M.from(s,M.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],t=>{bt.headers[t]={}});const Oo=p.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Co=t=>{const e={};let r,n,a;return t&&t.split(`
2
2
  `).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||e[r]&&Oo[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},pn=Symbol("internals");function pt(t){return t&&String(t).trim().toLowerCase()}function Rt(t){return t===!1||t==null?t:p.isArray(t)?t.map(Rt):String(t)}function Ao(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Ro=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function fr(t,e,r,n,a){if(p.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!p.isString(e)){if(p.isString(n))return e.indexOf(n)!==-1;if(p.isRegExp(n))return n.test(e)}}function jo(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Do(t,e){const r=p.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(a,i,o){return this[n].call(this,e,a,i,o)},configurable:!0})})}let xe=class{constructor(e){e&&this.set(e)}set(e,r,n){const a=this;function i(s,d,l){const c=pt(d);if(!c)throw new Error("header name must be a non-empty string");const u=p.findKey(a,c);(!u||a[u]===void 0||l===!0||l===void 0&&a[u]!==!1)&&(a[u||d]=Rt(s))}const o=(s,d)=>p.forEach(s,(l,c)=>i(l,c,d));if(p.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(p.isString(e)&&(e=e.trim())&&!Ro(e))o(Co(e),r);else if(p.isObject(e)&&p.isIterable(e)){let s={},d,l;for(const c of e){if(!p.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(d=s[l])?p.isArray(d)?[...d,c[1]]:[d,c[1]]:c[1]}o(s,r)}else e!=null&&i(r,e,n);return this}get(e,r){if(e=pt(e),e){const n=p.findKey(this,e);if(n){const a=this[n];if(!r)return a;if(r===!0)return Ao(a);if(p.isFunction(r))return r.call(this,a,n);if(p.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=pt(e),e){const n=p.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||fr(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let a=!1;function i(o){if(o=pt(o),o){const s=p.findKey(n,o);s&&(!r||fr(n,n[s],s,r))&&(delete n[s],a=!0)}}return p.isArray(e)?e.forEach(i):i(e),a}clear(e){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!e||fr(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const r=this,n={};return p.forEach(this,(a,i)=>{const o=p.findKey(n,i);if(o){r[o]=Rt(a),delete r[i];return}const s=e?jo(i):String(i).trim();s!==i&&delete r[i],r[s]=Rt(a),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return p.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&p.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
3
3
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[pn]=this[pn]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=pt(o);n[s]||(Do(a,o),n[s]=!0)}return p.isArray(e)?e.forEach(i):i(e),this}};xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(xe.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});p.freezeMethods(xe);function ur(t,e){const r=this||bt,n=e||r,a=xe.from(n.headers);let i=n.data;return p.forEach(t,function(s){i=s.call(r,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function Ta(t){return!!(t&&t.__CANCEL__)}function st(t,e,r){M.call(this,t??"canceled",M.ERR_CANCELED,e,r),this.name="CanceledError"}p.inherits(st,M,{__CANCEL__:!0});function Oa(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new M("Request failed with status code "+r.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Po(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Io(t,e){t=t||10;const r=new Array(t),n=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(d){const l=Date.now(),c=n[i];o||(o=l),r[a]=d,n[a]=l;let u=i,b=0;for(;u!==a;)b+=r[u++],u=u%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),l-o<e)return;const x=c&&l-c;return x?Math.round(b*1e3/x):void 0}}function No(t,e){let r=0,n=1e3/e,a,i;const o=(l,c=Date.now())=>{r=c,a=null,i&&(clearTimeout(i),i=null),t(...l)};return[(...l)=>{const c=Date.now(),u=c-r;u>=n?o(l,c):(a=l,i||(i=setTimeout(()=>{i=null,o(a)},n-u)))},()=>a&&o(a)]}const Pt=(t,e,r=3)=>{let n=0;const a=Io(50,250);return No(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,d=o-n,l=a(d),c=o<=s;n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:d,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(u)},r)},fn=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},un=t=>(...e)=>p.asap(()=>t(...e)),Fo=me.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,me.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,zo=me.hasStandardBrowserEnv?{write(t,e,r,n,a,i,o){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];p.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),p.isString(n)&&s.push(`path=${n}`),p.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),p.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Lo(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Mo(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ca(t,e,r){let n=!Lo(e);return t&&(n||r==!1)?Mo(t,e):e}const mn=t=>t instanceof xe?{...t}:t;function Ve(t,e){e=e||{};const r={};function n(l,c,u,b){return p.isPlainObject(l)&&p.isPlainObject(c)?p.merge.call({caseless:b},l,c):p.isPlainObject(c)?p.merge({},c):p.isArray(c)?c.slice():c}function a(l,c,u,b){if(p.isUndefined(c)){if(!p.isUndefined(l))return n(void 0,l,u,b)}else return n(l,c,u,b)}function i(l,c){if(!p.isUndefined(c))return n(void 0,c)}function o(l,c){if(p.isUndefined(c)){if(!p.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,u){if(u in e)return n(l,c);if(u in t)return n(void 0,l)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(l,c,u)=>a(mn(l),mn(c),u,!0)};return p.forEach(Object.keys({...t,...e}),function(c){const u=d[c]||a,b=u(t[c],e[c],c);p.isUndefined(b)&&u!==s||(r[c]=b)}),r}const Aa=t=>{const e=Ve({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;if(e.headers=o=xe.from(o),e.url=_a(Ca(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),p.isFormData(r)){if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(p.isFunction(r.getHeaders)){const d=r.getHeaders(),l=["content-type","content-length"];Object.entries(d).forEach(([c,u])=>{l.includes(c.toLowerCase())&&o.set(c,u)})}}if(me.hasStandardBrowserEnv&&(n&&p.isFunction(n)&&(n=n(e)),n||n!==!1&&Fo(e.url))){const d=a&&i&&zo.read(i);d&&o.set(a,d)}return e},qo=typeof XMLHttpRequest<"u",$o=qo&&function(t){return new Promise(function(r,n){const a=Aa(t);let i=a.data;const o=xe.from(a.headers).normalize();let{responseType:s,onUploadProgress:d,onDownloadProgress:l}=a,c,u,b,x,f;function m(){x&&x(),f&&f(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let h=new XMLHttpRequest;h.open(a.method.toUpperCase(),a.url,!0),h.timeout=a.timeout;function A(){if(!h)return;const R=xe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:R,config:t,request:h};Oa(function(U){r(U),m()},function(U){n(U),m()},y),h=null}"onloadend"in h?h.onloadend=A:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(A)},h.onabort=function(){h&&(n(new M("Request aborted",M.ECONNABORTED,t,h)),h=null)},h.onerror=function(F){const y=F&&F.message?F.message:"Network Error",B=new M(y,M.ERR_NETWORK,t,h);B.event=F||null,n(B),h=null},h.ontimeout=function(){let F=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const y=a.transitional||Ea;a.timeoutErrorMessage&&(F=a.timeoutErrorMessage),n(new M(F,y.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&p.forEach(o.toJSON(),function(F,y){h.setRequestHeader(y,F)}),p.isUndefined(a.withCredentials)||(h.withCredentials=!!a.withCredentials),s&&s!=="json"&&(h.responseType=a.responseType),l&&([b,f]=Pt(l,!0),h.addEventListener("progress",b)),d&&h.upload&&([u,x]=Pt(d),h.upload.addEventListener("progress",u),h.upload.addEventListener("loadend",x)),(a.cancelToken||a.signal)&&(c=R=>{h&&(n(!R||R.type?new st(null,t,h):R),h.abort(),h=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const J=Po(a.url);if(J&&me.protocols.indexOf(J)===-1){n(new M("Unsupported protocol "+J+":",M.ERR_BAD_REQUEST,t));return}h.send(i||null)})},Bo=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,a;const i=function(l){if(!a){a=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof M?c:new st(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const s=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:d}=n;return d.unsubscribe=()=>p.asap(s),d}},Uo=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,a;for(;n<r;)a=n+e,yield t.slice(n,a),n=a},Zo=async function*(t,e){for await(const r of Vo(t))yield*Uo(r,e)},Vo=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},hn=(t,e,r,n)=>{const a=Zo(t,e);let i=0,o,s=d=>{o||(o=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:l,value:c}=await a.next();if(l){s(),d.close();return}let u=c.byteLength;if(r){let b=i+=u;r(b)}d.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(d){return s(d),a.return()}},{highWaterMark:2})},gn=64*1024,{isFunction:St}=p,Ho=(({Request:t,Response:e})=>({Request:t,Response:e}))(p.global),{ReadableStream:vn,TextEncoder:yn}=p.global,bn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Wo=t=>{t=p.merge.call({skipUndefined:!0},Ho,t);const{fetch:e,Request:r,Response:n}=t,a=e?St(e):typeof fetch=="function",i=St(r),o=St(n);if(!a)return!1;const s=a&&St(vn),d=a&&(typeof yn=="function"?(f=>m=>f.encode(m))(new yn):async f=>new Uint8Array(await new r(f).arrayBuffer())),l=i&&s&&bn(()=>{let f=!1;const m=new r(me.origin,{body:new vn,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!m}),c=o&&s&&bn(()=>p.isReadableStream(new n("").body)),u={stream:c&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!u[f]&&(u[f]=(m,h)=>{let A=m&&m[f];if(A)return A.call(m);throw new M(`Response type '${f}' is not supported`,M.ERR_NOT_SUPPORT,h)})});const b=async f=>{if(f==null)return 0;if(p.isBlob(f))return f.size;if(p.isSpecCompliantForm(f))return(await new r(me.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(p.isArrayBufferView(f)||p.isArrayBuffer(f))return f.byteLength;if(p.isURLSearchParams(f)&&(f=f+""),p.isString(f))return(await d(f)).byteLength},x=async(f,m)=>{const h=p.toFiniteNumber(f.getContentLength());return h??b(m)};return async f=>{let{url:m,method:h,data:A,signal:J,cancelToken:R,timeout:F,onDownloadProgress:y,onUploadProgress:B,responseType:U,headers:fe,withCredentials:ve="same-origin",fetchOptions:Ee}=Aa(f),Ae=e||fetch;U=U?(U+"").toLowerCase():"text";let Se=Bo([J,R&&R.toAbortSignal()],F),ye=null;const X=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()});let ce;try{if(B&&l&&h!=="get"&&h!=="head"&&(ce=await x(fe,A))!==0){let k=new r(m,{method:"POST",body:A,duplex:"half"}),D;if(p.isFormData(A)&&(D=k.headers.get("content-type"))&&fe.setContentType(D),k.body){const[L,C]=fn(ce,Pt(un(B)));A=hn(k.body,gn,L,C)}}p.isString(ve)||(ve=ve?"include":"omit");const ne=i&&"credentials"in r.prototype,we={...Ee,signal:Se,method:h.toUpperCase(),headers:fe.normalize().toJSON(),body:A,duplex:"half",credentials:ne?ve:void 0};ye=i&&new r(m,we);let ue=await(i?Ae(ye,Ee):Ae(m,we));const oe=c&&(U==="stream"||U==="response");if(c&&(y||oe&&X)){const k={};["status","statusText","headers"].forEach(Z=>{k[Z]=ue[Z]});const D=p.toFiniteNumber(ue.headers.get("content-length")),[L,C]=y&&fn(D,Pt(un(y),!0))||[];ue=new n(hn(ue.body,gn,L,()=>{C&&C(),X&&X()}),k)}U=U||"text";let v=await u[p.findKey(u,U)||"text"](ue,f);return!oe&&X&&X(),await new Promise((k,D)=>{Oa(k,D,{data:v,headers:xe.from(ue.headers),status:ue.status,statusText:ue.statusText,config:f,request:ye})})}catch(ne){throw X&&X(),ne&&ne.name==="TypeError"&&/Load failed|fetch/i.test(ne.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,f,ye),{cause:ne.cause||ne}):M.from(ne,ne&&ne.code,f,ye)}}},Yo=new Map,Ra=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:a}=e,i=[n,a,r];let o=i.length,s=o,d,l,c=Yo;for(;s--;)d=i[s],l=c.get(d),l===void 0&&c.set(d,l=s?new Map:Wo(e)),c=l;return l};Ra();const Kr={http:po,xhr:$o,fetch:{get:Ra}};p.forEach(Kr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const xn=t=>`- ${t}`,Ko=t=>p.isFunction(t)||t===null||t===!1;function Jo(t,e){t=p.isArray(t)?t:[t];const{length:r}=t;let n,a;const i={};for(let o=0;o<r;o++){n=t[o];let s;if(a=n,!Ko(n)&&(a=Kr[(s=String(n)).toLowerCase()],a===void 0))throw new M(`Unknown adapter '${s}'`);if(a&&(p.isFunction(a)||(a=a.get(e))))break;i[s||"#"+o]=a}if(!a){const o=Object.entries(i).map(([d,l])=>`adapter ${d} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
4
4
  `+o.map(xn).join(`
@@ -139,4 +139,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
139
139
  * This source code is licensed under the MIT license found in the
140
140
  * LICENSE file in the root directory of this source tree.
141
141
  */var Kn;function Dl(){return Kn||(Kn=1,process.env.NODE_ENV!=="production"&&function(){function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=P,r=Qa(),n=typeof Object.is=="function"?Object.is:t,a=r.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,d=e.useDebugValue;Tr.useSyncExternalStoreWithSelector=function(l,c,u,b,x){var f=i(null);if(f.current===null){var m={hasValue:!1,value:null};f.current=m}else m=f.current;f=s(function(){function A(B){if(!J){if(J=!0,R=B,B=b(B),x!==void 0&&m.hasValue){var U=m.value;if(x(U,B))return F=U}return F=B}if(U=F,n(R,B))return U;var fe=b(B);return x!==void 0&&x(U,fe)?(R=B,U):(R=B,F=fe)}var J=!1,R,F,y=u===void 0?null:u;return[function(){return A(c())},y===null?void 0:function(){return A(y())}]},[c,u,b,x]);var h=a(l,f[0],f[1]);return o(function(){m.hasValue=!0,m.value=h},[h]),d(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Tr}process.env.NODE_ENV==="production"?Lr.exports=jl():Lr.exports=Dl();var Pl=Lr.exports;const Il=za(Pl),ei={},{useDebugValue:Nl}=P,{useSyncExternalStoreWithSelector:Fl}=Il;let Jn=!1;const zl=t=>t;function Ll(t,e=zl,r){(ei?"production":void 0)!=="production"&&r&&!Jn&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Jn=!0);const n=Fl(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,r);return Nl(n),n}const Gn=t=>{(ei?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?Cl(t):t,r=(n,a)=>Ll(e,n,a);return Object.assign(r,e),r},Ml=t=>t?Gn(t):Gn;var Y;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function r(a){throw new Error}t.assertNever=r,t.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},t.getValidEnumValues=a=>{const i=t.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return t.objectValues(o)},t.objectValues=a=>t.objectKeys(a).map(function(i){return a[i]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},t.find=(a,i)=>{for(const o of a)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=n,t.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Y||(Y={}));var Xn;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Xn||(Xn={}));const T=Y.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Me=t=>{switch(typeof t){case"undefined":return T.undefined;case"string":return T.string;case"number":return Number.isNaN(t)?T.nan:T.number;case"boolean":return T.boolean;case"function":return T.function;case"bigint":return T.bigint;case"symbol":return T.symbol;case"object":return Array.isArray(t)?T.array:t===null?T.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?T.promise:typeof Map<"u"&&t instanceof Map?T.map:typeof Set<"u"&&t instanceof Set?T.set:typeof Date<"u"&&t instanceof Date?T.date:T.object;default:return T.unknown}},g=Y.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ze extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}format(e){const r=e||function(i){return i.message},n={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let s=n,d=0;for(;d<o.path.length;){const l=o.path[d];d===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(r(o))):s[l]=s[l]||{_errors:[]},s=s[l],d++}}};return a(this),n}static assert(e){if(!(e instanceof ze))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Y.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){const r={},n=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];r[i]=r[i]||[],r[i].push(e(a))}else n.push(e(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}ze.create=t=>new ze(t);const Mr=(t,e)=>{let r;switch(t.code){case g.invalid_type:t.received===T.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case g.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Y.jsonStringifyReplacer)}`;break;case g.unrecognized_keys:r=`Unrecognized key(s) in object: ${Y.joinValues(t.keys,", ")}`;break;case g.invalid_union:r="Invalid input";break;case g.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Y.joinValues(t.options)}`;break;case g.invalid_enum_value:r=`Invalid enum value. Expected ${Y.joinValues(t.options)}, received '${t.received}'`;break;case g.invalid_arguments:r="Invalid function arguments";break;case g.invalid_return_type:r="Invalid function return type";break;case g.invalid_date:r="Invalid date";break;case g.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Y.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case g.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case g.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case g.custom:r="Invalid input";break;case g.invalid_intersection_types:r="Intersection results could not be merged";break;case g.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case g.not_finite:r="Number must be finite";break;default:r=e.defaultError,Y.assertNever(t)}return{message:r}};let ql=Mr;function $l(){return ql}const Bl=t=>{const{data:e,path:r,errorMaps:n,issueData:a}=t,i=[...r,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const d=n.filter(l=>!!l).slice().reverse();for(const l of d)s=l(o,{data:e,defaultError:s}).message;return{...a,path:i,message:s}};function _(t,e){const r=$l(),n=Bl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,r,r===Mr?void 0:Mr].filter(a=>!!a)});t.common.issues.push(n)}class he{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const n=[];for(const a of r){if(a.status==="aborted")return I;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){const n=[];for(const a of r){const i=await a.key,o=await a.value;n.push({key:i,value:o})}return he.mergeObjectSync(e,n)}static mergeObjectSync(e,r){const n={};for(const a of r){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return I;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}}const I=Object.freeze({status:"aborted"}),ft=t=>({status:"dirty",value:t}),Te=t=>({status:"valid",value:t}),Qn=t=>t.status==="aborted",ea=t=>t.status==="dirty",at=t=>t.status==="valid",Lt=t=>typeof Promise<"u"&&t instanceof Promise;var O;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(O||(O={}));class Pe{constructor(e,r,n,a){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ta=(t,e)=>{if(at(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ze(t.common.issues);return this._error=r,this._error}}};function q(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:n,description:a}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(o,s)=>{const{message:d}=t;return o.code==="invalid_enum_value"?{message:d??s.defaultError}:typeof s.data>"u"?{message:d??n??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:d??r??s.defaultError}},description:a}}class H{get description(){return this._def.description}_getType(e){return Me(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Me(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new he,ctx:{common:e.parent.common,data:e.data,parsedType:Me(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(Lt(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Me(e)},a=this._parseSync({data:e,path:n.path,parent:n});return ta(n,a)}"~validate"(e){var n,a;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Me(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:r});return at(i)?{value:i.value}:{issues:r.common.issues}}catch(i){(a=(n=i==null?void 0:i.message)==null?void 0:n.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(i=>at(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(e,r){const n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Me(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await(Lt(a)?a:Promise.resolve(a));return ta(n,i)}refine(e,r){const n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,i)=>{const o=e(a),s=()=>i.addIssue({code:g.custom,...n(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(d=>d?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(e,r){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(e){return new Ye({schema:this,typeName:N.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return Fe.create(this,this._def)}nullable(){return Ke.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return De.create(this)}promise(){return Vt.create(this,this._def)}or(e){return $t.create([this,e],this._def)}and(e){return Bt.create(this,e,this._def)}transform(e){return new Ye({...q(this._def),schema:this,typeName:N.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Ht({...q(this._def),innerType:this,defaultValue:r,typeName:N.ZodDefault})}brand(){return new ai({typeName:N.ZodBranded,type:this,...q(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new Wt({...q(this._def),innerType:this,catchValue:r,typeName:N.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Qr.create(this,e)}readonly(){return Yt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ul=/^c[^\s-]{8,}$/i,Zl=/^[0-9a-z]+$/,Vl=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Hl=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Wl=/^[a-z0-9_-]{21}$/i,Yl=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Kl=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Jl=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Gl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Or;const Xl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ql=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ec=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tc=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rc=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nc=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ti="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ac=new RegExp(`^${ti}$`);function ri(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const r=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`}function ic(t){return new RegExp(`^${ri(t)}$`)}function oc(t){let e=`${ti}T${ri(t)}`;const r=[];return r.push(t.local?"Z?":"Z"),t.offset&&r.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${r.join("|")})`,new RegExp(`^${e}$`)}function sc(t,e){return!!((e==="v4"||!e)&&Xl.test(t)||(e==="v6"||!e)&&ec.test(t))}function lc(t,e){if(!Yl.test(t))return!1;try{const[r]=t.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function cc(t,e){return!!((e==="v4"||!e)&&Ql.test(t)||(e==="v6"||!e)&&tc.test(t))}class Ne extends H{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==T.string){const i=this._getOrReturnCtx(e);return _(i,{code:g.invalid_type,expected:T.string,received:i.parsedType}),I}const n=new he;let a;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:g.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="max")e.data.length>i.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:g.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,s=e.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(e,a),o?_(a,{code:g.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&_(a,{code:g.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),n.dirty())}else if(i.kind==="email")Jl.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"email",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="emoji")Or||(Or=new RegExp(Gl,"u")),Or.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"emoji",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="uuid")Hl.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"uuid",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="nanoid")Wl.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"nanoid",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid")Ul.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"cuid",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="cuid2")Zl.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"cuid2",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="ulid")Vl.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"ulid",code:g.invalid_string,message:i.message}),n.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),_(a,{validation:"url",code:g.invalid_string,message:i.message}),n.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"regex",code:g.invalid_string,message:i.message}),n.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(e,a),_(a,{code:g.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),n.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(a=this._getOrReturnCtx(e,a),_(a,{code:g.invalid_string,validation:{startsWith:i.value},message:i.message}),n.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(a=this._getOrReturnCtx(e,a),_(a,{code:g.invalid_string,validation:{endsWith:i.value},message:i.message}),n.dirty()):i.kind==="datetime"?oc(i).test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{code:g.invalid_string,validation:"datetime",message:i.message}),n.dirty()):i.kind==="date"?ac.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{code:g.invalid_string,validation:"date",message:i.message}),n.dirty()):i.kind==="time"?ic(i).test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{code:g.invalid_string,validation:"time",message:i.message}),n.dirty()):i.kind==="duration"?Kl.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"duration",code:g.invalid_string,message:i.message}),n.dirty()):i.kind==="ip"?sc(e.data,i.version)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"ip",code:g.invalid_string,message:i.message}),n.dirty()):i.kind==="jwt"?lc(e.data,i.alg)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"jwt",code:g.invalid_string,message:i.message}),n.dirty()):i.kind==="cidr"?cc(e.data,i.version)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"cidr",code:g.invalid_string,message:i.message}),n.dirty()):i.kind==="base64"?rc.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"base64",code:g.invalid_string,message:i.message}),n.dirty()):i.kind==="base64url"?nc.test(e.data)||(a=this._getOrReturnCtx(e,a),_(a,{validation:"base64url",code:g.invalid_string,message:i.message}),n.dirty()):Y.assertNever(i);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(a=>e.test(a),{validation:r,code:g.invalid_string,...O.errToObj(n)})}_addCheck(e){return new Ne({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...O.errToObj(e)})}url(e){return this._addCheck({kind:"url",...O.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...O.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...O.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...O.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...O.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...O.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...O.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...O.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...O.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...O.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...O.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...O.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...O.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...O.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...O.errToObj(e)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...O.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...O.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...O.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...O.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...O.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...O.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...O.errToObj(r)})}nonempty(e){return this.min(1,O.errToObj(e))}trim(){return new Ne({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ne({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ne({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}Ne.create=t=>new Ne({checks:[],typeName:N.ZodString,coerce:(t==null?void 0:t.coerce)??!1,...q(t)});function dc(t,e){const r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=r>n?r:n,i=Number.parseInt(t.toFixed(a).replace(".","")),o=Number.parseInt(e.toFixed(a).replace(".",""));return i%o/10**a}class it extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==T.number){const i=this._getOrReturnCtx(e);return _(i,{code:g.invalid_type,expected:T.number,received:i.parsedType}),I}let n;const a=new he;for(const i of this._def.checks)i.kind==="int"?Y.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:g.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:g.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:g.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?dc(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),_(n,{code:g.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),_(n,{code:g.not_finite,message:i.message}),a.dirty()):Y.assertNever(i);return{status:a.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,O.toString(r))}gt(e,r){return this.setLimit("min",e,!1,O.toString(r))}lte(e,r){return this.setLimit("max",e,!0,O.toString(r))}lt(e,r){return this.setLimit("max",e,!1,O.toString(r))}setLimit(e,r,n,a){return new it({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:O.toString(a)}]})}_addCheck(e){return new it({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:O.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:O.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:O.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:O.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:O.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:O.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:O.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:O.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:O.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Y.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}}it.create=t=>new it({checks:[],typeName:N.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...q(t)});class mt extends H{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==T.bigint)return this._getInvalidInput(e);let n;const a=new he;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:g.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),_(n,{code:g.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),_(n,{code:g.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Y.assertNever(i);return{status:a.value,value:e.data}}_getInvalidInput(e){const r=this._getOrReturnCtx(e);return _(r,{code:g.invalid_type,expected:T.bigint,received:r.parsedType}),I}gte(e,r){return this.setLimit("min",e,!0,O.toString(r))}gt(e,r){return this.setLimit("min",e,!1,O.toString(r))}lte(e,r){return this.setLimit("max",e,!0,O.toString(r))}lt(e,r){return this.setLimit("max",e,!1,O.toString(r))}setLimit(e,r,n,a){return new mt({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:O.toString(a)}]})}_addCheck(e){return new mt({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:O.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:O.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:O.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:O.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:O.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}}mt.create=t=>new mt({checks:[],typeName:N.ZodBigInt,coerce:(t==null?void 0:t.coerce)??!1,...q(t)});class qr extends H{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==T.boolean){const n=this._getOrReturnCtx(e);return _(n,{code:g.invalid_type,expected:T.boolean,received:n.parsedType}),I}return Te(e.data)}}qr.create=t=>new qr({typeName:N.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...q(t)});class Mt extends H{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==T.date){const i=this._getOrReturnCtx(e);return _(i,{code:g.invalid_type,expected:T.date,received:i.parsedType}),I}if(Number.isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return _(i,{code:g.invalid_date}),I}const n=new he;let a;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:g.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),n.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(a=this._getOrReturnCtx(e,a),_(a,{code:g.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):Y.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Mt({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:O.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:O.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}}Mt.create=t=>new Mt({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:N.ZodDate,...q(t)});class ra extends H{_parse(e){if(this._getType(e)!==T.symbol){const n=this._getOrReturnCtx(e);return _(n,{code:g.invalid_type,expected:T.symbol,received:n.parsedType}),I}return Te(e.data)}}ra.create=t=>new ra({typeName:N.ZodSymbol,...q(t)});class $r extends H{_parse(e){if(this._getType(e)!==T.undefined){const n=this._getOrReturnCtx(e);return _(n,{code:g.invalid_type,expected:T.undefined,received:n.parsedType}),I}return Te(e.data)}}$r.create=t=>new $r({typeName:N.ZodUndefined,...q(t)});class qt extends H{_parse(e){if(this._getType(e)!==T.null){const n=this._getOrReturnCtx(e);return _(n,{code:g.invalid_type,expected:T.null,received:n.parsedType}),I}return Te(e.data)}}qt.create=t=>new qt({typeName:N.ZodNull,...q(t)});class na extends H{constructor(){super(...arguments),this._any=!0}_parse(e){return Te(e.data)}}na.create=t=>new na({typeName:N.ZodAny,...q(t)});class Br extends H{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Te(e.data)}}Br.create=t=>new Br({typeName:N.ZodUnknown,...q(t)});class qe extends H{_parse(e){const r=this._getOrReturnCtx(e);return _(r,{code:g.invalid_type,expected:T.never,received:r.parsedType}),I}}qe.create=t=>new qe({typeName:N.ZodNever,...q(t)});class aa extends H{_parse(e){if(this._getType(e)!==T.undefined){const n=this._getOrReturnCtx(e);return _(n,{code:g.invalid_type,expected:T.void,received:n.parsedType}),I}return Te(e.data)}}aa.create=t=>new aa({typeName:N.ZodVoid,...q(t)});class De extends H{_parse(e){const{ctx:r,status:n}=this._processInputParams(e),a=this._def;if(r.parsedType!==T.array)return _(r,{code:g.invalid_type,expected:T.array,received:r.parsedType}),I;if(a.exactLength!==null){const o=r.data.length>a.exactLength.value,s=r.data.length<a.exactLength.value;(o||s)&&(_(r,{code:o?g.too_big:g.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(_(r,{code:g.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(_(r,{code:g.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,s)=>a.type._parseAsync(new Pe(r,o,r.path,s)))).then(o=>he.mergeArray(n,o));const i=[...r.data].map((o,s)=>a.type._parseSync(new Pe(r,o,r.path,s)));return he.mergeArray(n,i)}get element(){return this._def.type}min(e,r){return new De({...this._def,minLength:{value:e,message:O.toString(r)}})}max(e,r){return new De({...this._def,maxLength:{value:e,message:O.toString(r)}})}length(e,r){return new De({...this._def,exactLength:{value:e,message:O.toString(r)}})}nonempty(e){return this.min(1,e)}}De.create=(t,e)=>new De({type:t,minLength:null,maxLength:null,exactLength:null,typeName:N.ZodArray,...q(e)});function et(t){if(t instanceof le){const e={};for(const r in t.shape){const n=t.shape[r];e[r]=Fe.create(et(n))}return new le({...t._def,shape:()=>e})}else return t instanceof De?new De({...t._def,type:et(t.element)}):t instanceof Fe?Fe.create(et(t.unwrap())):t instanceof Ke?Ke.create(et(t.unwrap())):t instanceof He?He.create(t.items.map(e=>et(e))):t}class le extends H{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=Y.objectKeys(e);return this._cached={shape:e,keys:r},this._cached}_parse(e){if(this._getType(e)!==T.object){const l=this._getOrReturnCtx(e);return _(l,{code:g.invalid_type,expected:T.object,received:l.parsedType}),I}const{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof qe&&this._def.unknownKeys==="strip"))for(const l in a.data)o.includes(l)||s.push(l);const d=[];for(const l of o){const c=i[l],u=a.data[l];d.push({key:{status:"valid",value:l},value:c._parse(new Pe(a,u,a.path,l)),alwaysSet:l in a.data})}if(this._def.catchall instanceof qe){const l=this._def.unknownKeys;if(l==="passthrough")for(const c of s)d.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(l==="strict")s.length>0&&(_(a,{code:g.unrecognized_keys,keys:s}),n.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const c of s){const u=a.data[c];d.push({key:{status:"valid",value:c},value:l._parse(new Pe(a,u,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const l=[];for(const c of d){const u=await c.key,b=await c.value;l.push({key:u,value:b,alwaysSet:c.alwaysSet})}return l}).then(l=>he.mergeObjectSync(n,l)):he.mergeObjectSync(n,d)}get shape(){return this._def.shape()}strict(e){return O.errToObj,new le({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,o;const a=((o=(i=this._def).errorMap)==null?void 0:o.call(i,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:O.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new le({...this._def,unknownKeys:"strip"})}passthrough(){return new le({...this._def,unknownKeys:"passthrough"})}extend(e){return new le({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new le({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:N.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new le({...this._def,catchall:e})}pick(e){const r={};for(const n of Y.objectKeys(e))e[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new le({...this._def,shape:()=>r})}omit(e){const r={};for(const n of Y.objectKeys(this.shape))e[n]||(r[n]=this.shape[n]);return new le({...this._def,shape:()=>r})}deepPartial(){return et(this)}partial(e){const r={};for(const n of Y.objectKeys(this.shape)){const a=this.shape[n];e&&!e[n]?r[n]=a:r[n]=a.optional()}return new le({...this._def,shape:()=>r})}required(e){const r={};for(const n of Y.objectKeys(this.shape))if(e&&!e[n])r[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Fe;)i=i._def.innerType;r[n]=i}return new le({...this._def,shape:()=>r})}keyof(){return ni(Y.objectKeys(this.shape))}}le.create=(t,e)=>new le({shape:()=>t,unknownKeys:"strip",catchall:qe.create(),typeName:N.ZodObject,...q(e)});le.strictCreate=(t,e)=>new le({shape:()=>t,unknownKeys:"strict",catchall:qe.create(),typeName:N.ZodObject,...q(e)});le.lazycreate=(t,e)=>new le({shape:t,unknownKeys:"strip",catchall:qe.create(),typeName:N.ZodObject,...q(e)});class $t extends H{_parse(e){const{ctx:r}=this._processInputParams(e),n=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new ze(s.ctx.common.issues));return _(r,{code:g.invalid_union,unionErrors:o}),I}if(r.common.async)return Promise.all(n.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const d of n){const l={...r,common:{...r.common,issues:[]},parent:null},c=d._parseSync({data:r.data,path:r.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(d=>new ze(d));return _(r,{code:g.invalid_union,unionErrors:s}),I}}get options(){return this._def.options}}$t.create=(t,e)=>new $t({options:t,typeName:N.ZodUnion,...q(e)});const Ie=t=>t instanceof Zr?Ie(t.schema):t instanceof Ye?Ie(t.innerType()):t instanceof Zt?[t.value]:t instanceof We?t.options:t instanceof Vr?Y.objectValues(t.enum):t instanceof Ht?Ie(t._def.innerType):t instanceof $r?[void 0]:t instanceof qt?[null]:t instanceof Fe?[void 0,...Ie(t.unwrap())]:t instanceof Ke?[null,...Ie(t.unwrap())]:t instanceof ai||t instanceof Yt?Ie(t.unwrap()):t instanceof Wt?Ie(t._def.innerType):[];class Xr extends H{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==T.object)return _(r,{code:g.invalid_type,expected:T.object,received:r.parsedType}),I;const n=this.discriminator,a=r.data[n],i=this.optionsMap.get(a);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(_(r,{code:g.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),I)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){const a=new Map;for(const i of r){const o=Ie(i.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);a.set(s,i)}}return new Xr({typeName:N.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a,...q(n)})}}function Ur(t,e){const r=Me(t),n=Me(e);if(t===e)return{valid:!0,data:t};if(r===T.object&&n===T.object){const a=Y.objectKeys(e),i=Y.objectKeys(t).filter(s=>a.indexOf(s)!==-1),o={...t,...e};for(const s of i){const d=Ur(t[s],e[s]);if(!d.valid)return{valid:!1};o[s]=d.data}return{valid:!0,data:o}}else if(r===T.array&&n===T.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let i=0;i<t.length;i++){const o=t[i],s=e[i],d=Ur(o,s);if(!d.valid)return{valid:!1};a.push(d.data)}return{valid:!0,data:a}}else return r===T.date&&n===T.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class Bt extends H{_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=(i,o)=>{if(Qn(i)||Qn(o))return I;const s=Ur(i.value,o.value);return s.valid?((ea(i)||ea(o))&&r.dirty(),{status:r.value,value:s.data}):(_(n,{code:g.invalid_intersection_types}),I)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Bt.create=(t,e,r)=>new Bt({left:t,right:e,typeName:N.ZodIntersection,...q(r)});class He extends H{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==T.array)return _(n,{code:g.invalid_type,expected:T.array,received:n.parsedType}),I;if(n.data.length<this._def.items.length)return _(n,{code:g.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),I;!this._def.rest&&n.data.length>this._def.items.length&&(_(n,{code:g.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...n.data].map((o,s)=>{const d=this._def.items[s]||this._def.rest;return d?d._parse(new Pe(n,o,n.path,s)):null}).filter(o=>!!o);return n.common.async?Promise.all(i).then(o=>he.mergeArray(r,o)):he.mergeArray(r,i)}get items(){return this._def.items}rest(e){return new He({...this._def,rest:e})}}He.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new He({items:t,typeName:N.ZodTuple,rest:null,...q(e)})};class Ut extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==T.object)return _(n,{code:g.invalid_type,expected:T.object,received:n.parsedType}),I;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in n.data)a.push({key:i._parse(new Pe(n,s,n.path,s)),value:o._parse(new Pe(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?he.mergeObjectAsync(r,a):he.mergeObjectSync(r,a)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof H?new Ut({keyType:e,valueType:r,typeName:N.ZodRecord,...q(n)}):new Ut({keyType:Ne.create(),valueType:e,typeName:N.ZodRecord,...q(r)})}}class ia extends H{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==T.map)return _(n,{code:g.invalid_type,expected:T.map,received:n.parsedType}),I;const a=this._def.keyType,i=this._def.valueType,o=[...n.data.entries()].map(([s,d],l)=>({key:a._parse(new Pe(n,s,n.path,[l,"key"])),value:i._parse(new Pe(n,d,n.path,[l,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const d of o){const l=await d.key,c=await d.value;if(l.status==="aborted"||c.status==="aborted")return I;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(l.value,c.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const d of o){const l=d.key,c=d.value;if(l.status==="aborted"||c.status==="aborted")return I;(l.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(l.value,c.value)}return{status:r.value,value:s}}}}ia.create=(t,e,r)=>new ia({valueType:e,keyType:t,typeName:N.ZodMap,...q(r)});class ht extends H{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==T.set)return _(n,{code:g.invalid_type,expected:T.set,received:n.parsedType}),I;const a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(_(n,{code:g.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(_(n,{code:g.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());const i=this._def.valueType;function o(d){const l=new Set;for(const c of d){if(c.status==="aborted")return I;c.status==="dirty"&&r.dirty(),l.add(c.value)}return{status:r.value,value:l}}const s=[...n.data.values()].map((d,l)=>i._parse(new Pe(n,d,n.path,l)));return n.common.async?Promise.all(s).then(d=>o(d)):o(s)}min(e,r){return new ht({...this._def,minSize:{value:e,message:O.toString(r)}})}max(e,r){return new ht({...this._def,maxSize:{value:e,message:O.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}ht.create=(t,e)=>new ht({valueType:t,minSize:null,maxSize:null,typeName:N.ZodSet,...q(e)});class Zr extends H{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Zr.create=(t,e)=>new Zr({getter:t,typeName:N.ZodLazy,...q(e)});class Zt extends H{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return _(r,{received:r.data,code:g.invalid_literal,expected:this._def.value}),I}return{status:"valid",value:e.data}}get value(){return this._def.value}}Zt.create=(t,e)=>new Zt({value:t,typeName:N.ZodLiteral,...q(e)});function ni(t,e){return new We({values:t,typeName:N.ZodEnum,...q(e)})}class We extends H{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),n=this._def.values;return _(r,{expected:Y.joinValues(n),received:r.parsedType,code:g.invalid_type}),I}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const r=this._getOrReturnCtx(e),n=this._def.values;return _(r,{received:r.data,code:g.invalid_enum_value,options:n}),I}return Te(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e,r=this._def){return We.create(e,{...this._def,...r})}exclude(e,r=this._def){return We.create(this.options.filter(n=>!e.includes(n)),{...this._def,...r})}}We.create=ni;class Vr extends H{_parse(e){const r=Y.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==T.string&&n.parsedType!==T.number){const a=Y.objectValues(r);return _(n,{expected:Y.joinValues(a),received:n.parsedType,code:g.invalid_type}),I}if(this._cache||(this._cache=new Set(Y.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=Y.objectValues(r);return _(n,{received:n.data,code:g.invalid_enum_value,options:a}),I}return Te(e.data)}get enum(){return this._def.values}}Vr.create=(t,e)=>new Vr({values:t,typeName:N.ZodNativeEnum,...q(e)});class Vt extends H{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==T.promise&&r.common.async===!1)return _(r,{code:g.invalid_type,expected:T.promise,received:r.parsedType}),I;const n=r.parsedType===T.promise?r.data:Promise.resolve(r.data);return Te(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Vt.create=(t,e)=>new Vt({type:t,typeName:N.ZodPromise,...q(e)});class Ye extends H{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===N.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:n}=this._processInputParams(e),a=this._def.effect||null,i={addIssue:o=>{_(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(n.data,i);if(n.common.async)return Promise.resolve(o).then(async s=>{if(r.value==="aborted")return I;const d=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return d.status==="aborted"?I:d.status==="dirty"||r.value==="dirty"?ft(d.value):d});{if(r.value==="aborted")return I;const s=this._def.schema._parseSync({data:o,path:n.path,parent:n});return s.status==="aborted"?I:s.status==="dirty"||r.value==="dirty"?ft(s.value):s}}if(a.type==="refinement"){const o=s=>{const d=a.refinement(s,i);if(n.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?I:(s.status==="dirty"&&r.dirty(),o(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?I:(s.status==="dirty"&&r.dirty(),o(s.value).then(()=>({status:r.value,value:s.value}))))}if(a.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!at(o))return I;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>at(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:r.value,value:s})):I);Y.assertNever(a)}}Ye.create=(t,e,r)=>new Ye({schema:t,typeName:N.ZodEffects,effect:e,...q(r)});Ye.createWithPreprocess=(t,e,r)=>new Ye({schema:e,effect:{type:"preprocess",transform:t},typeName:N.ZodEffects,...q(r)});class Fe extends H{_parse(e){return this._getType(e)===T.undefined?Te(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Fe.create=(t,e)=>new Fe({innerType:t,typeName:N.ZodOptional,...q(e)});class Ke extends H{_parse(e){return this._getType(e)===T.null?Te(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ke.create=(t,e)=>new Ke({innerType:t,typeName:N.ZodNullable,...q(e)});class Ht extends H{_parse(e){const{ctx:r}=this._processInputParams(e);let n=r.data;return r.parsedType===T.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Ht.create=(t,e)=>new Ht({innerType:t,typeName:N.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...q(e)});class Wt extends H{_parse(e){const{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Lt(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ze(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ze(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Wt.create=(t,e)=>new Wt({innerType:t,typeName:N.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...q(e)});class oa extends H{_parse(e){if(this._getType(e)!==T.nan){const n=this._getOrReturnCtx(e);return _(n,{code:g.invalid_type,expected:T.nan,received:n.parsedType}),I}return{status:"valid",value:e.data}}}oa.create=t=>new oa({typeName:N.ZodNaN,...q(t)});class ai extends H{_parse(e){const{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Qr extends H{_parse(e){const{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?I:i.status==="dirty"?(r.dirty(),ft(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{const a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?I:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,r){return new Qr({in:e,out:r,typeName:N.ZodPipeline})}}class Yt extends H{_parse(e){const r=this._def.innerType._parse(e),n=a=>(at(a)&&(a.value=Object.freeze(a.value)),a);return Lt(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}}Yt.create=(t,e)=>new Yt({innerType:t,typeName:N.ZodReadonly,...q(e)});var N;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(N||(N={}));const S=Ne.create,G=it.create,Oe=qr.create,en=qt.create,xt=Br.create;qe.create;const Ge=De.create,re=le.create,tn=$t.create,pc=Xr.create;Bt.create;He.create;const wt=Ut.create,tr=Zt.create,ge=We.create;Vt.create;Fe.create;Ke.create;var tt={colors:{primary:"#d7e1f2",primaryHover:"#c0d0ed",primaryLight:"#eef0f6",primaryText:"#6b3f18",background:"#fcfcfb",backgroundSecondary:"#f9f9f7",backgroundTertiary:"#f0efed",surface:"#ffffff",surfaceHover:"#fcfcfb",border:"#e9e8e4",borderHover:"#e2e0dd",textPrimary:"#21201d",textSecondary:"#656461",textMuted:"#8e8d89",textInverse:"#ffffff",success:"#298e33",successLight:"#e7f5e4",warning:"#a86807",warningLight:"#ffe6c1",error:"#d43338",errorLight:"#fcdede",info:"#728ab3",infoLight:"#eef0f6"}};({...tt.colors},{...tt.colors}),{...tt.colors},{...tt.colors},{...tt.colors};({...tt.colors});var fc=ge(["string","number","integer","float","boolean","date","datetime","email","phone","url","enum"]),ii=ge(["required","email","phone","url","date","number","integer","float","minLength","maxLength","min","max","pattern","enum","unique","custom"]),oi=ge(["error","warning","info"]),uc=re({type:ii,params:wt(xt()).optional(),message:S().optional(),severity:oi.optional().default("error")}),mc=ge(["trim","lowercase","uppercase","capitalize","toNumber","toDate","toBoolean","replace","custom"]),hc=re({type:mc,params:wt(xt()).optional()}),gc=re({key:S().min(1).max(100),label:S().min(1).max(200),type:fc,required:Oe().optional().default(!1),description:S().max(500).optional(),validators:Ge(uc).optional(),transform:hc.optional()}),vc=re({allowExtraColumns:Oe().optional().default(!1),skipEmptyRows:Oe().optional().default(!0),trimWhitespace:Oe().optional().default(!0),dateFormat:S().optional(),uniqueKeys:Ge(S()).optional(),maxRows:G().int().positive().optional().default(1e5)}),yc=re({columns:Ge(gc).min(1),options:vc.optional()});ge(["created","file_uploaded","parsing","parsed","mapping","mapped","validating","validated","editing","completed","failed","cancelled"]);re({schema:yc,metadata:wt(xt()).optional()});var bc=re({sourceColumn:S(),targetKey:S().nullable(),confidence:G().min(0).max(1),isAutoMapped:Oe(),reasoning:S().optional()});re({sessionId:S().uuid(),mappings:Ge(bc)});re({rowIndex:G().int().nonnegative(),columnKey:S(),value:tn([S(),G(),Oe(),en()]),severity:oi,validatorType:ii,message:S(),suggestion:S().optional()});re({sessionId:S().uuid(),rowIndex:G().int().nonnegative(),columnKey:S(),value:tn([S(),G(),Oe(),en()])});re({sessionId:S().uuid(),updates:Ge(re({rowIndex:G().int().nonnegative(),columnKey:S(),value:tn([S(),G(),Oe(),en()])}))});re({sessionId:S().uuid(),skipInvalidRows:Oe().optional().default(!1),acknowledgeWarnings:Oe().optional().default(!1)});var xc=/^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,wc=/^[A-Z]{2}\d{6}$/,rn={AB:{code:"AB",name:"Alberta",nameInFrench:"Alberta",isTerritory:!1,licenseFormat:/^\d{6,9}$/,licenseFormatDescription:"6-9 digits",licenseExampleFormat:"123456789"},BC:{code:"BC",name:"British Columbia",nameInFrench:"Colombie-Britannique",isTerritory:!1,licenseFormat:/^\d{7}$/,licenseFormatDescription:"7 digits",licenseExampleFormat:"1234567"},MB:{code:"MB",name:"Manitoba",nameInFrench:"Manitoba",isTerritory:!1,licenseFormat:/^[A-Z]{2}\d{6}[A-Z]?$/,licenseFormatDescription:"2 letters + 6 digits + optional letter",licenseExampleFormat:"AB123456C"},NB:{code:"NB",name:"New Brunswick",nameInFrench:"Nouveau-Brunswick",isTerritory:!1,licenseFormat:/^\d{7}$/,licenseFormatDescription:"7 digits",licenseExampleFormat:"1234567"},NL:{code:"NL",name:"Newfoundland and Labrador",nameInFrench:"Terre-Neuve-et-Labrador",isTerritory:!1,licenseFormat:/^[A-Z]\d{9}$/,licenseFormatDescription:"1 letter + 9 digits",licenseExampleFormat:"A123456789"},NS:{code:"NS",name:"Nova Scotia",nameInFrench:"Nouvelle-Écosse",isTerritory:!1,licenseFormat:/^[A-Z]{5}\d{9}$/,licenseFormatDescription:"5 letters + 9 digits",licenseExampleFormat:"ABCDE123456789"},NT:{code:"NT",name:"Northwest Territories",nameInFrench:"Territoires du Nord-Ouest",isTerritory:!0,licenseFormat:/^\d{6}$/,licenseFormatDescription:"6 digits",licenseExampleFormat:"123456"},NU:{code:"NU",name:"Nunavut",nameInFrench:"Nunavut",isTerritory:!0,licenseFormat:/^\d{6}$/,licenseFormatDescription:"6 digits",licenseExampleFormat:"123456"},ON:{code:"ON",name:"Ontario",nameInFrench:"Ontario",isTerritory:!1,licenseFormat:/^[A-Z]\d{4}-\d{5}-\d{5}$|^[A-Z]\d{14}$/,licenseFormatDescription:"1 letter + 14 digits (with or without dashes)",licenseExampleFormat:"A1234-56789-01234"},PE:{code:"PE",name:"Prince Edward Island",nameInFrench:"Île-du-Prince-Édouard",isTerritory:!1,licenseFormat:/^\d{5,6}$/,licenseFormatDescription:"5-6 digits",licenseExampleFormat:"123456"},QC:{code:"QC",name:"Quebec",nameInFrench:"Québec",isTerritory:!1,licenseFormat:/^[A-Z]\d{12}$/,licenseFormatDescription:"1 letter + 12 digits",licenseExampleFormat:"A123456789012"},SK:{code:"SK",name:"Saskatchewan",nameInFrench:"Saskatchewan",isTerritory:!1,licenseFormat:/^\d{8}$/,licenseFormatDescription:"8 digits",licenseExampleFormat:"12345678"},YT:{code:"YT",name:"Yukon",nameInFrench:"Yukon",isTerritory:!0,licenseFormat:/^\d{6}$/,licenseFormatDescription:"6 digits",licenseExampleFormat:"123456"}};Object.fromEntries(Object.entries(rn).map(([t,e])=>[t,e.name]));var si=ge(["AB","BC","MB","NB","NL","NS","NT","NU","ON","PE","QC","SK","YT"]),li=re({streetLine1:S().min(1).max(200),streetLine2:S().max(200).optional(),city:S().min(1).max(100),province:si,postalCode:S().regex(xc,"Invalid Canadian postal code format (A1A 1A1)"),country:tr("Canada")}),nn=ge(["passport","drivers_license","proof_of_address"]),kc=ge(["uploaded","processing","completed","failed","requires_review"]),_c=ge(["excellent","good","fair","poor"]),Ec=ge(["tesseract","textract","gpt4vision"]),ci=ge(["M","F","X"]),Sc=ge(["image_manipulation","poor_quality","inconsistent_data","expired_document","invalid_format","suspicious_pattern","missing_security_features","document_tampering"]),Tc=ge(["high","medium","low"]),Oc=re({type:Sc,severity:Tc,message:S(),field:S().optional(),details:wt(xt()).optional()}),Cc=re({fullName:G().min(0).max(1),passportNumber:G().min(0).max(1),dateOfBirth:G().min(0).max(1),dateOfIssue:G().min(0).max(1),dateOfExpiry:G().min(0).max(1),placeOfBirth:G().min(0).max(1),sex:G().min(0).max(1),nationality:G().min(0).max(1)}),Ac=re({documentType:tr("passport"),fullName:S().min(1),givenNames:S().min(1),surname:S().min(1),passportNumber:S().regex(wc,"Invalid Canadian passport number (format: AB123456)"),dateOfBirth:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format"),dateOfIssue:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format"),dateOfExpiry:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format"),placeOfBirth:S().min(1),sex:ci,nationality:S().min(1),photoBase64:S().optional(),mrzLine1:S().optional(),mrzLine2:S().optional(),confidence:Cc}),Rc=re({fullName:G().min(0).max(1),licenseNumber:G().min(0).max(1),dateOfBirth:G().min(0).max(1),expiryDate:G().min(0).max(1),address:G().min(0).max(1),province:G().min(0).max(1),licenseClass:G().min(0).max(1)}),di=re({documentType:tr("drivers_license"),fullName:S().min(1),firstName:S().min(1),lastName:S().min(1),middleName:S().optional(),licenseNumber:S().min(1),dateOfBirth:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format"),expiryDate:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format"),issueDate:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format").optional(),address:li,province:si,licenseClass:S().min(1),restrictions:S().optional(),endorsements:S().optional(),sex:ci.optional(),height:S().optional(),eyeColor:S().optional(),photoBase64:S().optional(),confidence:Rc});di.refine(t=>rn[t.province].licenseFormat.test(t.licenseNumber),{message:"License number format doesn't match the province requirements",path:["licenseNumber"]});var jc=ge(["utility_bill","bank_statement","government_letter","tax_statement","lease_agreement","insurance_statement","other"]),Dc=re({fullName:G().min(0).max(1),address:G().min(0).max(1),documentSubType:G().min(0).max(1),issuer:G().min(0).max(1),documentDate:G().min(0).max(1)}),pi=re({documentType:tr("proof_of_address"),fullName:S().min(1),address:li,documentSubType:jc,issuer:S().min(1),documentDate:S().regex(/^\d{4}-\d{2}-\d{2}$/,"Date must be in YYYY-MM-DD format"),accountNumber:S().max(4).optional(),statementPeriod:re({start:S(),end:S()}).optional(),confidence:Dc});pi.refine(t=>{const e=new Date(t.documentDate);return(new Date().getTime()-e.getTime())/(1e3*60*60*24)<=90},{message:"Proof of address must be dated within the last 90 days",path:["documentDate"]});var Pc=pc("documentType",[Ac,di,pi]);ge(["created","documents_pending","processing","review_required","completed","failed","cancelled"]);re({requiredDocuments:Ge(nn).min(1),metadata:wt(xt()).optional()});re({sessionId:S().uuid(),documentType:nn});re({id:S().uuid(),sessionId:S().uuid(),type:nn,status:kc,uploadedAt:S().datetime(),processedAt:S().datetime().optional(),originalFilename:S(),fileSize:G().int().positive(),mimeType:S(),s3Key:S(),extractedData:Pc.optional(),confidence:G().min(0).max(1),ocrQuality:_c,fraudFlags:Ge(Oc),processingTimeMs:G().int().optional(),ocrProvider:Ec.optional(),aiModel:S().optional()});re({sessionId:S().uuid(),acceptWarnings:Oe().optional().default(!1)});var sa=["payment","payout","subscription"],Kt=["credit_card","digital_cheque","etransfer_request_money","etransfer_standard","interac_online","online_banking","apple_pay","google_pay","ach_payment","etransfer_send_money","visa_direct","credit_send","master_card_send","direct_deposit","rtp_payout","ach_payout","wire_transfer"],la=["digital","physical"],ca=["daily","weekly","monthly","yearly"],fi=[{key:"sid",label:"Site ID",type:"integer",required:!0,description:"Your site's unique ID (whole number)",validators:[{type:"required",message:"Site ID is required"},{type:"integer",message:"Site ID must be a whole number"},{type:"min",params:{value:1},message:"Site ID must be a positive number"}]},{key:"type",label:"Transaction Type",type:"enum",required:!0,description:"Type of transaction: payment, payout, or subscription",validators:[{type:"required",message:"Transaction type is required"},{type:"enum",params:{values:sa},message:`Transaction type must be one of: ${sa.join(", ")}`}],transform:{type:"lowercase"}},{key:"methods",label:"Payment Methods",type:"string",required:!0,description:"Payment methods (comma-separated): credit_card, interac_online, etc.",validators:[{type:"required",message:"At least one payment method is required"},{type:"custom",params:{validatorName:"commaSeparatedEnum",allowedValues:Kt},message:`Payment methods must be comma-separated values from: ${Kt.join(", ")}`}],transform:{type:"lowercase"}},{key:"email",label:"Customer Email",type:"email",required:!0,description:"Customer's email address",validators:[{type:"required",message:"Customer email is required"},{type:"email",message:"Must be a valid email address"}],transform:{type:"trim"}},{key:"item_name",label:"Item Name",type:"string",required:!0,description:"Name of the product or service",validators:[{type:"required",message:"Item name is required"},{type:"minLength",params:{value:1},message:"Item name cannot be empty"},{type:"maxLength",params:{value:255},message:"Item name must be 255 characters or less"}],transform:{type:"trim"}},{key:"item_quantity",label:"Item Quantity",type:"integer",required:!0,description:"Number of items (whole number)",validators:[{type:"required",message:"Item quantity is required"},{type:"integer",message:"Item quantity must be a whole number"},{type:"min",params:{value:1},message:"Item quantity must be at least 1"}]},{key:"item_unit_price",label:"Item Unit Price",type:"float",required:!0,description:"Price per item (decimal number, no currency symbols)",validators:[{type:"required",message:"Item unit price is required"},{type:"float",message:"Item unit price must be a number"},{type:"min",params:{value:0},message:"Item unit price cannot be negative"},{type:"pattern",params:{regex:"^[0-9]+(\\.[0-9]{1,2})?$"},message:"Item unit price must be a number with up to 2 decimal places (no currency symbols)",severity:"warning"}]},{key:"item_type",label:"Item Type",type:"enum",required:!0,description:"Type of item: digital or physical",validators:[{type:"required",message:"Item type is required"},{type:"enum",params:{values:la},message:`Item type must be one of: ${la.join(", ")}`}],transform:{type:"lowercase"}},{key:"udf1",label:"Custom Reference (UDF1)",type:"string",required:!0,description:"Your internal reference (invoice number, order ID, etc.)",validators:[{type:"required",message:"Custom reference (UDF1) is required"},{type:"maxLength",params:{value:255},message:"Custom reference must be 255 characters or less"}],transform:{type:"trim"}}],Ic=[{key:"preferred_method",label:"Preferred Payment Method",type:"enum",required:!1,description:"Default payment method selected for customer",validators:[{type:"enum",params:{values:Kt},message:`Preferred method must be one of: ${Kt.join(", ")}`}],transform:{type:"lowercase"}}],Nc=[{key:"phone",label:"Phone Number",type:"phone",required:!1,description:"Customer phone number",validators:[{type:"phone",message:"Must be a valid phone number",severity:"warning"}],transform:{type:"trim"}},{key:"billing_first_name",label:"Billing First Name",type:"string",required:!1,description:"Customer billing first name",validators:[{type:"maxLength",params:{value:100},message:"First name must be 100 characters or less"}],transform:{type:"trim"}},{key:"billing_last_name",label:"Billing Last Name",type:"string",required:!1,description:"Customer billing last name",validators:[{type:"maxLength",params:{value:100},message:"Last name must be 100 characters or less"}],transform:{type:"trim"}},{key:"billing_address",label:"Billing Address",type:"string",required:!1,description:"Customer billing street address",validators:[{type:"maxLength",params:{value:255},message:"Address must be 255 characters or less"}],transform:{type:"trim"}},{key:"billing_unit_number",label:"Billing Unit Number",type:"string",required:!1,description:"Apartment, suite, or unit number",validators:[{type:"maxLength",params:{value:50},message:"Unit number must be 50 characters or less"}],transform:{type:"trim"}},{key:"billing_city",label:"Billing City",type:"string",required:!1,description:"Customer billing city",validators:[{type:"maxLength",params:{value:100},message:"City must be 100 characters or less"}],transform:{type:"trim"}},{key:"billing_state",label:"Billing State/Province",type:"string",required:!1,description:"State or province code (e.g., ON, BC, CA)",validators:[{type:"maxLength",params:{value:50},message:"State/Province must be 50 characters or less"}],transform:{type:"trim"}},{key:"billing_country",label:"Billing Country",type:"string",required:!1,description:"Country name or code",validators:[{type:"maxLength",params:{value:100},message:"Country must be 100 characters or less"}],transform:{type:"trim"}},{key:"billing_zip_code",label:"Billing Postal/ZIP Code",type:"string",required:!1,description:"Postal or ZIP code",validators:[{type:"maxLength",params:{value:20},message:"Postal code must be 20 characters or less"}],transform:{type:"trim"}},{key:"billing_company",label:"Billing Company",type:"string",required:!1,description:"Company or business name",validators:[{type:"maxLength",params:{value:255},message:"Company name must be 255 characters or less"}],transform:{type:"trim"}}],Fc=[{key:"shipping_first_name",label:"Shipping First Name",type:"string",required:!1,description:"Shipping recipient first name",transform:{type:"trim"}},{key:"shipping_last_name",label:"Shipping Last Name",type:"string",required:!1,description:"Shipping recipient last name",transform:{type:"trim"}},{key:"shipping_address",label:"Shipping Address",type:"string",required:!1,description:"Shipping street address",transform:{type:"trim"}},{key:"shipping_unit_number",label:"Shipping Unit Number",type:"string",required:!1,description:"Shipping apartment, suite, or unit number",transform:{type:"trim"}},{key:"shipping_city",label:"Shipping City",type:"string",required:!1,description:"Shipping city",transform:{type:"trim"}},{key:"shipping_state",label:"Shipping State/Province",type:"string",required:!1,description:"Shipping state or province",transform:{type:"trim"}},{key:"shipping_country",label:"Shipping Country",type:"string",required:!1,description:"Shipping country",transform:{type:"trim"}},{key:"shipping_zip_code",label:"Shipping Postal/ZIP Code",type:"string",required:!1,description:"Shipping postal or ZIP code",transform:{type:"trim"}}],zc=[{key:"item_description",label:"Item Description",type:"string",required:!1,description:"Detailed description of the item",validators:[{type:"maxLength",params:{value:1e3},message:"Description must be 1000 characters or less"}],transform:{type:"trim"}},{key:"item_sku",label:"Item SKU",type:"string",required:!1,description:"Product SKU or identifier",validators:[{type:"maxLength",params:{value:100},message:"SKU must be 100 characters or less"}],transform:{type:"trim"}},{key:"item_image_url",label:"Item Image URL",type:"url",required:!1,description:"URL to product image (must start with http:// or https://)",validators:[{type:"url",message:"Must be a valid URL starting with http:// or https://"}],transform:{type:"trim"}},{key:"additional_items",label:"Additional Items",type:"string",required:!1,description:"Additional items in JSON format",transform:{type:"trim"}}],Lc=[{key:"email_recipients",label:"Email Recipients",type:"string",required:!1,description:"Additional email recipients for notifications",validators:[{type:"custom",params:{validatorName:"commaSeparatedEmails"},message:"Must be valid comma-separated email addresses",severity:"warning"}],transform:{type:"trim"}},{key:"phone_recipients",label:"Phone Recipients",type:"string",required:!1,description:"SMS notification recipients",transform:{type:"trim"}},{key:"notification_info",label:"Notification Info",type:"string",required:!1,description:"Additional notification information",transform:{type:"trim"}}],Mc=[{key:"subscription_amount",label:"Subscription Amount",type:"float",required:!1,description:"Recurring subscription amount",validators:[{type:"float",message:"Subscription amount must be a number"},{type:"min",params:{value:0},message:"Amount cannot be negative"}]},{key:"billing_cycle_interval",label:"Billing Cycle Interval",type:"enum",required:!1,description:"Billing frequency: daily, weekly, monthly, yearly",validators:[{type:"enum",params:{values:ca},message:`Billing interval must be one of: ${ca.join(", ")}`}],transform:{type:"lowercase"}},{key:"billing_cycle_interval_count",label:"Billing Cycle Count",type:"integer",required:!1,description:"Number of intervals between billing",validators:[{type:"integer",message:"Must be a whole number"},{type:"min",params:{value:1},message:"Must be at least 1"}]},{key:"billing_cycle_month",label:"Billing Cycle Month",type:"integer",required:!1,description:"Month for yearly billing (1-12)",validators:[{type:"integer",message:"Must be a whole number"},{type:"min",params:{value:1},message:"Month must be 1-12"},{type:"max",params:{value:12},message:"Month must be 1-12"}]},{key:"billing_cycle_week",label:"Billing Cycle Week",type:"integer",required:!1,description:"Week number for billing",validators:[{type:"integer",message:"Must be a whole number"}]},{key:"billing_cycle_day_of_month",label:"Billing Day of Month",type:"integer",required:!1,description:"Day of month for billing (1-31)",validators:[{type:"integer",message:"Must be a whole number"},{type:"min",params:{value:1},message:"Day must be 1-31"},{type:"max",params:{value:31},message:"Day must be 1-31"}]},{key:"billing_cycle_day_of_week",label:"Billing Day of Week",type:"integer",required:!1,description:"Day of week for billing (0=Sunday, 6=Saturday)",validators:[{type:"integer",message:"Must be a whole number"},{type:"min",params:{value:0},message:"Day must be 0-6"},{type:"max",params:{value:6},message:"Day must be 0-6"}]},{key:"billing_cycle_expression",label:"Billing Cycle Expression",type:"string",required:!1,description:"Cron expression for custom billing schedule",transform:{type:"trim"}},{key:"billing_cycle_weekday",label:"Billing Cycle Weekday",type:"boolean",required:!1,description:"Whether to bill only on weekdays"},{key:"billing_cycle_start_at",label:"Billing Cycle Start Date",type:"datetime",required:!1,description:"Start date for billing cycle (ISO 8601 format)",validators:[{type:"date",message:"Must be a valid date/time"}]}],qc=[{key:"return_url",label:"Return URL",type:"url",required:!1,description:"URL to redirect after successful payment",validators:[{type:"url",message:"Must be a valid URL starting with http:// or https://"}],transform:{type:"trim"}},{key:"failed_return_url",label:"Failed Return URL",type:"url",required:!1,description:"URL to redirect after failed payment",validators:[{type:"url",message:"Must be a valid URL starting with http:// or https://"}],transform:{type:"trim"}},{key:"merchant_ntf_url",label:"Merchant Notification URL",type:"url",required:!1,description:"Webhook URL for payment notifications",validators:[{type:"url",message:"Must be a valid URL starting with http:// or https://"}],transform:{type:"trim"}}],$c=[{key:"convinience_fee",label:"Convenience Fee",type:"float",required:!1,description:"Additional convenience fee amount",validators:[{type:"float",message:"Fee must be a number"},{type:"min",params:{value:0},message:"Fee cannot be negative"}]},{key:"udf2",label:"Custom Field 2 (UDF2)",type:"string",required:!1,description:"Additional custom reference field",validators:[{type:"maxLength",params:{value:255},message:"Must be 255 characters or less"}],transform:{type:"trim"}},{key:"udf3",label:"Custom Field 3 (UDF3)",type:"string",required:!1,description:"Additional custom reference field",validators:[{type:"maxLength",params:{value:255},message:"Must be 255 characters or less"}],transform:{type:"trim"}}],ui={columns:[...fi,...Ic,...Nc,...Fc,...zc,...Lc,...Mc,...qc,...$c],options:{allowExtraColumns:!0,skipEmptyRows:!0,trimWhitespace:!0,uniqueKeys:["email"]}};fi.map(t=>t.key);ui.columns.map(t=>t.key);var Bc={columns:[{key:"email",label:"Email Address",type:"email",required:!0,description:"Contact's email address",validators:[{type:"required",message:"Email is required"},{type:"email",message:"Must be a valid email address"}]},{key:"firstName",label:"First Name",type:"string",required:!0,description:"Contact's first name",validators:[{type:"required",message:"First name is required"},{type:"maxLength",params:{value:100},message:"First name must be 100 characters or less"}]},{key:"lastName",label:"Last Name",type:"string",required:!0,description:"Contact's last name",validators:[{type:"required",message:"Last name is required"},{type:"maxLength",params:{value:100},message:"Last name must be 100 characters or less"}]},{key:"phone",label:"Phone Number",type:"phone",required:!1,description:"Contact's phone number",validators:[{type:"phone",message:"Must be a valid phone number",severity:"warning"}]},{key:"dateOfBirth",label:"Date of Birth",type:"date",required:!1,description:"Contact's date of birth"},{key:"company",label:"Company",type:"string",required:!1,description:"Company or organization name",validators:[{type:"maxLength",params:{value:255},message:"Company must be 255 characters or less"}]}],options:{uniqueKeys:["email"],skipEmptyRows:!0,trimWhitespace:!0}},lt={"sample-contact":{id:"sample-contact",name:"Sample Contact Import",description:"Basic contact information import (email, name, phone, company)",category:"general",schema:Bc,version:"1.0.0",sampleFile:"sample-contact-template.csv"},"payspace-batch":{id:"payspace-batch",name:"PaySpace Batch Upload",description:"Payment session bulk upload with full validation for PaySpace integration",category:"payments",schema:ui,version:"1.0.0",sampleFile:"payspace-batch-valid.csv"}};function mi(t){return lt[t]||null}function Uc(t){const e=mi(t);return(e==null?void 0:e.schema)||null}function Zc(){return Object.keys(lt)}function hi(){return Object.values(lt)}function Vc(t){return hi().filter(e=>e.category===t)}function Hc(t){return t in lt}var Wc=Object.keys(lt),Yc={passport:{type:"passport",label:"Canadian Passport",description:"A valid Canadian passport (not expired)",acceptedFormats:[".pdf",".jpg",".jpeg",".png"],maxFileSize:10*1024*1024,estimatedProcessingTime:8,requiredFields:["fullName","passportNumber","dateOfBirth","dateOfIssue","dateOfExpiry","placeOfBirth","sex","nationality"]},drivers_license:{type:"drivers_license",label:"Canadian Driver's License",description:"A valid Canadian provincial or territorial driver's license",acceptedFormats:[".pdf",".jpg",".jpeg",".png"],maxFileSize:10*1024*1024,estimatedProcessingTime:8,requiredFields:["fullName","licenseNumber","dateOfBirth","expiryDate","address","province","licenseClass"]},proof_of_address:{type:"proof_of_address",label:"Proof of Address",description:"A document showing your current Canadian address (dated within 90 days)",acceptedFormats:[".pdf",".jpg",".jpeg",".png"],maxFileSize:10*1024*1024,estimatedProcessingTime:10,requiredFields:["fullName","address","documentSubType","issuer","documentDate"]}};exports.CANADIAN_PROVINCES=rn;exports.ChevronRight=pl;exports.CircleAlert=ul;exports.CircleCheckBig=hl;exports.CircleX=vl;exports.DOCUMENT_TYPES=Yc;exports.FileFlowClient=Na;exports.FileFlowError=Fa;exports.IMPORT_TEMPLATES=lt;exports.LoaderCircle=bl;exports.StyleProvider=_i;exports.TriangleAlert=wl;exports.Upload=_l;exports.VALID_TEMPLATE_IDS=Wc;exports.X=Sl;exports.clsx=Tl;exports.create=Ml;exports.createLucideIcon=Le;exports.getAvailableTemplates=Zc;exports.getClient=rs;exports.getTemplate=mi;exports.getTemplateSchema=Uc;exports.getTemplatesByCategory=Vc;exports.initializeClient=ts;exports.injectStyles=Dt;exports.listTemplates=hi;exports.templateExists=Hc;exports.useDropzone=Ja;exports.useFileFlowStyles=Ei;
142
- //# sourceMappingURL=index-B03faN2u.js.map
142
+ //# sourceMappingURL=index-RFYSKfrk.js.map