@wavy/react-ui 0.0.54 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.d.ts CHANGED
@@ -1653,6 +1653,7 @@ interface TextFieldProps extends AdditionalElements {
1653
1653
  borderColor?: BasicDivProps["borderColor"];
1654
1654
  backgroundColor?: BasicColor$1;
1655
1655
  color?: BasicColor$1;
1656
+ style?: BasicStyleProps["style"];
1656
1657
  /**@default "primary" */
1657
1658
  focusColor?: BasicColor$1;
1658
1659
  /**
@@ -1676,6 +1677,7 @@ interface TextFieldProps extends AdditionalElements {
1676
1677
  required?: boolean;
1677
1678
  /**@default Infinity */
1678
1679
  maxChars?: number;
1680
+ disableTransition?: boolean;
1679
1681
  showCharCounter?: boolean;
1680
1682
  helperText?: string;
1681
1683
  indent?: ElementDim | Partial<Record<"left" | "right", ElementDim>>;
@@ -2896,8 +2898,8 @@ type DateType = number | Date | (string & {});
2896
2898
  interface CalendarProps {
2897
2899
  /**@default "Jan 1, 1920"*/
2898
2900
  minDate?: DateType | "today";
2899
- /**@default "end-of-year" */
2900
- maxDate?: DateType | "today" | "end-of-year";
2901
+ /**@default "none" */
2902
+ maxDate?: DateType | "today" | "end-of-year" | "none";
2901
2903
  /**@default "after" */
2902
2904
  navLayout?: "after" | "around";
2903
2905
  formId?: string;
package/dist/main.js CHANGED
@@ -35,11 +35,11 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Drawer,Tool
35
35
 
36
36
  `);}y.write("payload.value = newResult;"),y.write("return payload;");let B=y.compile();return (k,F)=>B(h,k,F)},i,a=fr,l=!bt.jitless,u=l&&Sn.value,d=r.catchall,p;e._zod.parse=(h,y)=>{p??(p=n.value);let $=h.value;return a($)?l&&u&&y?.async===false&&y.jitless!==true?(i||(i=o(r.shape)),h=i(h,y),d?Tc([],$,h,y,p,e):h):t(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:$,inst:e}),h)};});function Ya(e,r,t,n){for(let i of e)if(i.issues.length===0)return r.value=i.value,r;let o=e.filter(i=>!Le(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>ve(a,n,xe())))}),r)}var Rc=v("$ZodUnion",(e,r)=>{V.init(e,r),N(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),N(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),N(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),N(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){let o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>jr(i.source)).join("|")})$`)}});let t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=false,l=[];for(let s of r.options){let u=s._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)l.push(u),a=true;else {if(u.issues.length===0)return u;l.push(u);}}return a?Promise.all(l).then(s=>Ya(s,o,e,i)):Ya(l,o,e,i)};});var jc=v("$ZodIntersection",(e,r)=>{V.init(e,r),e._zod.parse=(t,n)=>{let o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,u])=>qa(t,s,u)):qa(t,i,a)};});function Bn(e,r){if(e===r)return {valid:true,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return {valid:true,data:e};if(Ae(e)&&Ae(r)){let t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(let i of n){let a=Bn(e[i],r[i]);if(!a.valid)return {valid:false,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data;}return {valid:true,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return {valid:false,mergeErrorPath:[]};let t=[];for(let n=0;n<e.length;n++){let o=e[n],i=r[n],a=Bn(o,i);if(!a.valid)return {valid:false,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data);}return {valid:true,data:t}}return {valid:false,mergeErrorPath:[]}}function qa(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),Le(e))return e;let n=Bn(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var Fc=v("$ZodRecord",(e,r)=>{V.init(e,r),e._zod.parse=(t,n)=>{let o=t.value;if(!Ae(o))return t.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),t;let i=[],a=r.keyType._zod.values;if(a){t.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let d=r.valueType._zod.run({value:o[u],issues:[]},n);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&t.issues.push(...Ie(u,p.issues)),t.value[u]=p.value;})):(d.issues.length&&t.issues.push(...Ie(u,d.issues)),t.value[u]=d.value);}let s;for(let u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&t.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s});}else {t.value={};for(let l of Reflect.ownKeys(o)){if(l==="__proto__")continue;let s=r.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){r.mode==="loose"?t.value[l]=o[l]:t.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(d=>ve(d,n,xe())),input:l,path:[l],inst:e});continue}let u=r.valueType._zod.run({value:o[l],issues:[]},n);u instanceof Promise?i.push(u.then(d=>{d.issues.length&&t.issues.push(...Ie(l,d.issues)),t.value[s.value]=d.value;})):(u.issues.length&&t.issues.push(...Ie(l,u.issues)),t.value[s.value]=u.value);}}return i.length?Promise.all(i).then(()=>t):t};});var Nc=v("$ZodEnum",(e,r)=>{V.init(e,r);let t=Tr(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>Cn.has(typeof o)).map(o=>typeof o=="string"?Ue(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{let a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o};});var Ac=v("$ZodTransform",(e,r)=>{V.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new mr(e.constructor.name);let o=r.transform(t.value,t);if(n.async)return (o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new be;return t.value=o,t};});function Qa(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var Uc=v("$ZodOptional",(e,r)=>{V.init(e,r),e._zod.optin="optional",e._zod.optout="optional",N(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),N(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${jr(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Qa(i,t.value)):Qa(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)};}),Lc=v("$ZodNullable",(e,r)=>{V.init(e,r),N(e._zod,"optin",()=>r.innerType._zod.optin),N(e._zod,"optout",()=>r.innerType._zod.optout),N(e._zod,"pattern",()=>{let t=r.innerType._zod.pattern;return t?new RegExp(`^(${jr(t.source)}|null)$`):void 0}),N(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n);}),Zc=v("$ZodDefault",(e,r)=>{V.init(e,r),e._zod.optin="optional",N(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>ec(i,r)):ec(o,r)};});function ec(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var Vc=v("$ZodPrefault",(e,r)=>{V.init(e,r),e._zod.optin="optional",N(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n));}),Mc=v("$ZodNonOptional",(e,r)=>{V.init(e,r),N(e._zod,"values",()=>{let t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>rc(i,e)):rc(o,e)};});function rc(e,r){return !e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var Jc=v("$ZodCatch",(e,r)=>{V.init(e,r),N(e._zod,"optin",()=>r.innerType._zod.optin),N(e._zod,"optout",()=>r.innerType._zod.optout),N(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>ve(a,n,xe()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>ve(i,n,xe()))},input:t.value}),t.issues=[]),t)};});var Wc=v("$ZodPipe",(e,r)=>{V.init(e,r),N(e._zod,"values",()=>r.in._zod.values),N(e._zod,"optin",()=>r.in._zod.optin),N(e._zod,"optout",()=>r.out._zod.optout),N(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){let i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>zt(a,r.in,n)):zt(i,r.in,n)}let o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>zt(i,r.out,n)):zt(o,r.out,n)};});function zt(e,r,t){return e.issues.length?(e.aborted=true,e):r._zod.run({value:e.value,issues:e.issues},t)}var Hc=v("$ZodReadonly",(e,r)=>{V.init(e,r),N(e._zod,"propValues",()=>r.innerType._zod.propValues),N(e._zod,"values",()=>r.innerType._zod.values),N(e._zod,"optin",()=>r.innerType?._zod?.optin),N(e._zod,"optout",()=>r.innerType?._zod?.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);let o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(tc):tc(o)};});function tc(e){return e.value=Object.freeze(e.value),e}var Xc=v("$ZodCustom",(e,r)=>{Y.init(e,r),V.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{let n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>nc(i,t,n,e));nc(o,t,n,e);};});function nc(e,r,t,n){if(!e){let o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(gr(o));}}c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();c();var Gc,Tn=class{constructor(){this._map=new WeakMap,this._idmap=new Map;}add(r,...t){let n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r);}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){let t=r._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function np(){return new Tn}(Gc=globalThis).__zod_globalRegistry??(Gc.__zod_globalRegistry=np());var Ze=globalThis.__zod_globalRegistry;c();function Kc(e,r){return new e({type:"string",...z(r)})}function En(e,r){return new e({type:"string",format:"email",check:"string_format",abort:false,...z(r)})}function Rn(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:false,...z(r)})}function Yc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,...z(r)})}function qc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v4",...z(r)})}function Qc(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v6",...z(r)})}function el(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:false,version:"v7",...z(r)})}function rl(e,r){return new e({type:"string",format:"url",check:"string_format",abort:false,...z(r)})}function tl(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:false,...z(r)})}function nl(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:false,...z(r)})}function ol(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:false,...z(r)})}function il(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:false,...z(r)})}function al(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:false,...z(r)})}function cl(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:false,...z(r)})}function ll(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:false,...z(r)})}function sl(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:false,...z(r)})}function ul(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:false,...z(r)})}function dl(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:false,...z(r)})}function ml(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:false,...z(r)})}function fl(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:false,...z(r)})}function pl(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:false,...z(r)})}function gl(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:false,...z(r)})}function vl(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:false,...z(r)})}function hl(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:false,local:false,precision:null,...z(r)})}function yl(e,r){return new e({type:"string",format:"date",check:"string_format",...z(r)})}function _l(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(r)})}function bl(e,r){return new e({type:"string",format:"duration",check:"string_format",...z(r)})}function xl(e,r){return new e({type:"number",checks:[],...z(r)})}function Sl(e,r){return new e({type:"number",check:"number_format",abort:false,format:"safeint",...z(r)})}function Cl(e){return new e({type:"unknown"})}function Pl(e,r){return new e({type:"never",...z(r)})}function Dt(e,r){return new In({check:"less_than",...z(r),value:e,inclusive:false})}function Zr(e,r){return new In({check:"less_than",...z(r),value:e,inclusive:true})}function Bt(e,r){return new Dn({check:"greater_than",...z(r),value:e,inclusive:false})}function Vr(e,r){return new Dn({check:"greater_than",...z(r),value:e,inclusive:true})}function Ot(e,r){return new ja({check:"multiple_of",...z(r),value:e})}function Tt(e,r){return new Na({check:"max_length",...z(r),maximum:e})}function vr(e,r){return new Aa({check:"min_length",...z(r),minimum:e})}function Et(e,r){return new Ua({check:"length_equals",...z(r),length:e})}function jn(e,r){return new La({check:"string_format",format:"regex",...z(r),pattern:e})}function Fn(e){return new Za({check:"string_format",format:"lowercase",...z(e)})}function Nn(e){return new Va({check:"string_format",format:"uppercase",...z(e)})}function An(e,r){return new Ma({check:"string_format",format:"includes",...z(r),includes:e})}function Un(e,r){return new Ja({check:"string_format",format:"starts_with",...z(r),prefix:e})}function Ln(e,r){return new Wa({check:"string_format",format:"ends_with",...z(r),suffix:e})}function Ve(e){return new Ha({check:"overwrite",tx:e})}function Zn(e){return Ve(r=>r.normalize(e))}function Vn(){return Ve(e=>e.trim())}function Mn(){return Ve(e=>e.toLowerCase())}function Jn(){return Ve(e=>e.toUpperCase())}function Wn(){return Ve(e=>xn(e))}function kl(e,r,t){return new e({type:"array",element:r,...z(t)})}function $l(e,r,t){return new e({type:"custom",check:"custom",fn:r,...z(t)})}function wl(e){let r=cp(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(gr(n,t.value,r._zod.def));else {let o=n;o.fatal&&(o.continue=false),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(gr(o));}},e(t.value,t)));return r}function cp(e,r){let t=new Y({check:"custom",...z(r)});return t._zod.check=e,t}c();function Rt(e){let r=e?.target??"draft-2020-12";return r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ze,target:r,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function W(e,r,t={path:[],schemaPath:[]}){var n;let o=e._zod.def,i=r.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};r.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else {let d={...t,schemaPath:[...t.schemaPath,e],path:t.path},p=e._zod.parent;if(p)a.ref=p,W(p,r,d),r.seen.get(p).isParent=true;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(r,a.schema,d);else {let h=a.schema,y=r.processors[o.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);y(e,r,h,d);}}let s=r.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),r.io==="input"&&Q(e)&&(delete a.schema.examples,delete a.schema.default),r.io==="input"&&a.schema._prefault&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,r.seen.get(e).schema}function jt(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,p=e.external.uri??(y=>y);if(d)return {ref:p(d)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${p("__shared")}#/${a}/${h}`}}if(i[1]===t)return {ref:"#"};let s=`#/${a}/`,u=i[1].schema.id??`__schema${e.counter++}`;return {defId:u,ref:s+u}},o=i=>{if(i[1].schema.$ref)return;let a=i[1],{ref:l,defId:s}=n(i);a.def={...a.schema},s&&(a.defId=s);let u=a.schema;for(let d in u)delete u[d];u.$ref=l;};if(e.cycles==="throw")for(let i of e.seen.entries()){let a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
37
37
 
38
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(r===i[0]){o(i);continue}if(e.external){let s=e.external.registry.get(i[0])?.id;if(r!==i[0]&&s){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function Ft(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let l=e.seen.get(a),s=l.def??l.schema,u={...s};if(l.ref===null)return;let d=l.ref;if(l.ref=null,d){n(d);let p=e.seen.get(d).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):(Object.assign(s,p),Object.assign(s,u));}l.isParent||e.override({zodSchema:a,jsonSchema:s,path:l.path??[]});};for(let a of [...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a);}Object.assign(o,t.def??t.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def);}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:Mr(r,"input"),output:Mr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Q(e,r){let t=r??{seen:new Set};if(t.seen.has(e))return false;t.seen.add(e);let n=e._zod.def;if(n.type==="transform")return true;if(n.type==="array")return Q(n.element,t);if(n.type==="set")return Q(n.valueType,t);if(n.type==="lazy")return Q(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Q(n.innerType,t);if(n.type==="intersection")return Q(n.left,t)||Q(n.right,t);if(n.type==="record"||n.type==="map")return Q(n.keyType,t)||Q(n.valueType,t);if(n.type==="pipe")return Q(n.in,t)||Q(n.out,t);if(n.type==="object"){for(let o in n.shape)if(Q(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(Q(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(Q(o,t))return true;return !!(n.rest&&Q(n.rest,t))}return false}var zl=(e,r={})=>t=>{let n=Rt({...t,processors:r});return W(e,n),jt(n,e),Ft(n,e)},Mr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Rt({...n??{},target:o,io:r,processors:{}});return W(e,i),jt(i,e),Ft(i,e)};c();var lp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Il=(e,r,t,n)=>{let o=t;o.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=lp[l]??l,o.format===""&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){let d=[...s];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Dl=(e,r,t,n)=>{let o=t,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=true):o.exclusiveMinimum=d),typeof i=="number"&&(o.minimum=i,typeof d=="number"&&r.target!=="draft-04"&&(d>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=true):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&r.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof s=="number"&&(o.multipleOf=s);};var Bl=(e,r,t,n)=>{t.not={};};var Ol=(e,r,t,n)=>{};var Tl=(e,r,t,n)=>{let o=e._zod.def,i=Tr(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var El=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Rl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var jl=(e,r,t,n)=>{let o=t,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=W(i.element,r,{...n,path:[...n.path,"items"]});},Fl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let u in a)o.properties[u]=W(a[u],r,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let d=i.shape[u]._zod;return r.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(o.required=Array.from(s)),i.catchall?._zod.def.type==="never"?o.additionalProperties=false:i.catchall?i.catchall&&(o.additionalProperties=W(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},Nl=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>W(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},Al=(e,r,t,n)=>{let o=e._zod.def,i=W(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=W(o.right,r,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];t.allOf=s;};var Ul=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",(r.target==="draft-07"||r.target==="draft-2020-12")&&(o.propertyNames=W(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=W(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},Ll=(e,r,t,n)=>{let o=e._zod.def,i=W(o.innerType,r,n),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=o.innerType,t.nullable=true):t.anyOf=[i,{type:"null"}];},Zl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},Vl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},Ml=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,r.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(o.defaultValue)));},Jl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=a;},Wl=(e,r,t,n)=>{let o=e._zod.def,i=r.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;W(i,r,n);let a=r.seen.get(e);a.ref=i;},Hl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var Xl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var gp=v("ZodISODateTime",(e,r)=>{gc.init(e,r),L.init(e,r);});function Gl(e){return hl(gp,e)}var vp=v("ZodISODate",(e,r)=>{vc.init(e,r),L.init(e,r);});function Kl(e){return yl(vp,e)}var hp=v("ZodISOTime",(e,r)=>{hc.init(e,r),L.init(e,r);});function Yl(e){return _l(hp,e)}var yp=v("ZodISODuration",(e,r)=>{yc.init(e,r),L.init(e,r);});function ql(e){return bl(yp,e)}c();c();var Ql=(e,r)=>{Ct.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>qi(e,t)},flatten:{value:t=>Yi(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,pr,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,pr,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",Ql);var oe=v("ZodError",Ql,{Parent:Error});var es=Pt(oe),rs=kt(oe),ts=Nr(oe),ns=Ar(oe),os=ra(oe),is=ta(oe),as=na(oe),cs=oa(oe),ls=ia(oe),ss=aa(oe),us=ca(oe),ds=la(oe);var X=v("ZodType",(e,r)=>(V.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:Mr(e,"input"),output:Mr(e,"output")}}),e.toJSONSchema=zl(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(_.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>ge(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>es(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ts(e,t,n),e.parseAsync=async(t,n)=>rs(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ns(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>os(e,t,n),e.decode=(t,n)=>is(e,t,n),e.encodeAsync=async(t,n)=>as(e,t,n),e.decodeAsync=async(t,n)=>cs(e,t,n),e.safeEncode=(t,n)=>ls(e,t,n),e.safeDecode=(t,n)=>ss(e,t,n),e.safeEncodeAsync=async(t,n)=>us(e,t,n),e.safeDecodeAsync=async(t,n)=>ds(e,t,n),e.refine=(t,n)=>e.check(ug(t,n)),e.superRefine=t=>e.check(dg(t)),e.overwrite=t=>e.check(Ve(t)),e.optional=()=>gs(e),e.nullable=()=>vs(e),e.nullish=()=>gs(vs(e)),e.nonoptional=t=>ng(e,t),e.array=()=>Ut(e),e.or=t=>Wp([e,t]),e.and=t=>Xp(e,t),e.transform=t=>hs(e,Yp(t)),e.default=t=>eg(e,t),e.prefault=t=>tg(e,t),e.catch=t=>ig(e,t),e.pipe=t=>hs(e,t),e.readonly=()=>lg(e),e.describe=t=>{let n=e.clone();return Ze.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Ze.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Ze.get(e);let n=e.clone();return Ze.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ys=v("_ZodString",(e,r)=>{Lr.init(e,r),X.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Il(e,n,o);let t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(jn(...n)),e.includes=(...n)=>e.check(An(...n)),e.startsWith=(...n)=>e.check(Un(...n)),e.endsWith=(...n)=>e.check(Ln(...n)),e.min=(...n)=>e.check(vr(...n)),e.max=(...n)=>e.check(Tt(...n)),e.length=(...n)=>e.check(Et(...n)),e.nonempty=(...n)=>e.check(vr(1,...n)),e.lowercase=n=>e.check(Fn(n)),e.uppercase=n=>e.check(Nn(n)),e.trim=()=>e.check(Vn()),e.normalize=(...n)=>e.check(Zn(...n)),e.toLowerCase=()=>e.check(Mn()),e.toUpperCase=()=>e.check(Jn()),e.slugify=()=>e.check(Wn());}),Sp=v("ZodString",(e,r)=>{Lr.init(e,r),ys.init(e,r),e.email=t=>e.check(En(_s,t)),e.url=t=>e.check(rl(Cp,t)),e.jwt=t=>e.check(vl(Np,t)),e.emoji=t=>e.check(tl(Pp,t)),e.guid=t=>e.check(Rn(ms,t)),e.uuid=t=>e.check(Yc(At,t)),e.uuidv4=t=>e.check(qc(At,t)),e.uuidv6=t=>e.check(Qc(At,t)),e.uuidv7=t=>e.check(el(At,t)),e.nanoid=t=>e.check(nl(kp,t)),e.guid=t=>e.check(Rn(ms,t)),e.cuid=t=>e.check(ol($p,t)),e.cuid2=t=>e.check(il(wp,t)),e.ulid=t=>e.check(al(zp,t)),e.base64=t=>e.check(fl(Rp,t)),e.base64url=t=>e.check(pl(jp,t)),e.xid=t=>e.check(cl(Ip,t)),e.ksuid=t=>e.check(ll(Dp,t)),e.ipv4=t=>e.check(sl(Bp,t)),e.ipv6=t=>e.check(ul(Op,t)),e.cidrv4=t=>e.check(dl(Tp,t)),e.cidrv6=t=>e.check(ml(Ep,t)),e.e164=t=>e.check(gl(Fp,t)),e.datetime=t=>e.check(Gl(t)),e.date=t=>e.check(Kl(t)),e.time=t=>e.check(Yl(t)),e.duration=t=>e.check(ql(t));});function U(e){return Kc(Sp,e)}var L=v("ZodStringFormat",(e,r)=>{A.init(e,r),ys.init(e,r);}),_s=v("ZodEmail",(e,r)=>{ac.init(e,r),L.init(e,r);});function bs(e){return En(_s,e)}var ms=v("ZodGUID",(e,r)=>{oc.init(e,r),L.init(e,r);});var At=v("ZodUUID",(e,r)=>{ic.init(e,r),L.init(e,r);});var Cp=v("ZodURL",(e,r)=>{cc.init(e,r),L.init(e,r);});var Pp=v("ZodEmoji",(e,r)=>{lc.init(e,r),L.init(e,r);});var kp=v("ZodNanoID",(e,r)=>{sc.init(e,r),L.init(e,r);});var $p=v("ZodCUID",(e,r)=>{uc.init(e,r),L.init(e,r);});var wp=v("ZodCUID2",(e,r)=>{dc.init(e,r),L.init(e,r);});var zp=v("ZodULID",(e,r)=>{mc.init(e,r),L.init(e,r);});var Ip=v("ZodXID",(e,r)=>{fc.init(e,r),L.init(e,r);});var Dp=v("ZodKSUID",(e,r)=>{pc.init(e,r),L.init(e,r);});var Bp=v("ZodIPv4",(e,r)=>{_c.init(e,r),L.init(e,r);});var Op=v("ZodIPv6",(e,r)=>{bc.init(e,r),L.init(e,r);});var Tp=v("ZodCIDRv4",(e,r)=>{xc.init(e,r),L.init(e,r);});var Ep=v("ZodCIDRv6",(e,r)=>{Sc.init(e,r),L.init(e,r);});var Rp=v("ZodBase64",(e,r)=>{Pc.init(e,r),L.init(e,r);});var jp=v("ZodBase64URL",(e,r)=>{kc.init(e,r),L.init(e,r);});var Fp=v("ZodE164",(e,r)=>{$c.init(e,r),L.init(e,r);});var Np=v("ZodJWT",(e,r)=>{wc.init(e,r),L.init(e,r);});var xs=v("ZodNumber",(e,r)=>{On.init(e,r),X.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Dl(e,n,o),e.gt=(n,o)=>e.check(Bt(n,o)),e.gte=(n,o)=>e.check(Vr(n,o)),e.min=(n,o)=>e.check(Vr(n,o)),e.lt=(n,o)=>e.check(Dt(n,o)),e.lte=(n,o)=>e.check(Zr(n,o)),e.max=(n,o)=>e.check(Zr(n,o)),e.int=n=>e.check(fs(n)),e.safe=n=>e.check(fs(n)),e.positive=n=>e.check(Bt(0,n)),e.nonnegative=n=>e.check(Vr(0,n)),e.negative=n=>e.check(Dt(0,n)),e.nonpositive=n=>e.check(Zr(0,n)),e.multipleOf=(n,o)=>e.check(Ot(n,o)),e.step=(n,o)=>e.check(Ot(n,o)),e.finite=()=>e;let t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=true,e.format=t.format??null;});function hr(e){return xl(xs,e)}var Ap=v("ZodNumberFormat",(e,r)=>{zc.init(e,r),xs.init(e,r);});function fs(e){return Sl(Ap,e)}var Up=v("ZodUnknown",(e,r)=>{Ic.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ol();});function ps(){return Cl(Up)}var Lp=v("ZodNever",(e,r)=>{Dc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Bl(e,t,n);});function Zp(e){return Pl(Lp,e)}var Vp=v("ZodArray",(e,r)=>{Bc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>jl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(vr(t,n)),e.nonempty=t=>e.check(vr(1,t)),e.max=(t,n)=>e.check(Tt(t,n)),e.length=(t,n)=>e.check(Et(t,n)),e.unwrap=()=>e.element;});function Ut(e,r){return kl(Vp,e,r)}var Mp=v("ZodObject",(e,r)=>{Ec.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Fl(e,t,n,o),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ee(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ps()}),e.loose=()=>e.clone({...e._zod.def,catchall:ps()}),e.strict=()=>e.clone({...e._zod.def,catchall:Zp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>_.extend(e,t),e.safeExtend=t=>_.safeExtend(e,t),e.merge=t=>_.merge(e,t),e.pick=t=>_.pick(e,t),e.omit=t=>_.omit(e,t),e.partial=(...t)=>_.partial(Ss,e,t[0]),e.required=(...t)=>_.required(Cs,e,t[0]);});function ue(e,r){let t={type:"object",shape:e??{},..._.normalizeParams(r)};return new Mp(t)}var Jp=v("ZodUnion",(e,r)=>{Rc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Nl(e,t,n,o),e.options=r.options;});function Wp(e,r){return new Jp({type:"union",options:e,..._.normalizeParams(r)})}var Hp=v("ZodIntersection",(e,r)=>{jc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Al(e,t,n,o);});function Xp(e,r){return new Hp({type:"intersection",left:e,right:r})}var Gp=v("ZodRecord",(e,r)=>{Fc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ul(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Jr(e,r,t){return new Gp({type:"record",keyType:e,valueType:r,..._.normalizeParams(t)})}var Hn=v("ZodEnum",(e,r)=>{Nc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Tl(e,n,o),e.enum=r.entries,e.options=Object.values(r.entries);let t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Hn({...r,checks:[],..._.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...r.entries};for(let a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Hn({...r,checks:[],..._.normalizeParams(o),entries:i})};});function ee(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Hn({type:"enum",entries:t,..._.normalizeParams(r)})}var Kp=v("ZodTransform",(e,r)=>{Ac.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Rl(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new mr(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(_.issue(i,t.value,r));else {let a=i;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(_.issue(a));}};let o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)};});function Yp(e){return new Kp({type:"transform",transform:e})}var Ss=v("ZodOptional",(e,r)=>{Uc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Xl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function gs(e){return new Ss({type:"optional",innerType:e})}var qp=v("ZodNullable",(e,r)=>{Lc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ll(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function vs(e){return new qp({type:"nullable",innerType:e})}var Qp=v("ZodDefault",(e,r)=>{Zc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Vl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function eg(e,r){return new Qp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var rg=v("ZodPrefault",(e,r)=>{Vc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ml(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function tg(e,r){return new rg({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Cs=v("ZodNonOptional",(e,r)=>{Mc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Zl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function ng(e,r){return new Cs({type:"nonoptional",innerType:e,..._.normalizeParams(r)})}var og=v("ZodCatch",(e,r)=>{Jc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Jl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function ig(e,r){return new og({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var ag=v("ZodPipe",(e,r)=>{Wc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Wl(e,t,n,o),e.in=r.in,e.out=r.out;});function hs(e,r){return new ag({type:"pipe",in:e,out:r})}var cg=v("ZodReadonly",(e,r)=>{Hc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Hl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function lg(e){return new cg({type:"readonly",innerType:e})}var sg=v("ZodCustom",(e,r)=>{Xc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>El(e,t);});function ug(e,r={}){return $l(sg,e,r)}function dg(e){return wl(e)}var Ps=ee(["Google"]),Lt=ee(["pdf","word","excel","img","txt","unknown"]);Lt.exclude(["unknown"]);var mg=ue({lastModified:hr().nullable(),uid:U().trim().optional(),uploadDate:hr().optional(),sizeInBytes:hr(),name:U().trim(),path:U().trim(),extension:U().trim().startsWith(".").lowercase(),description:U().trim().optional(),alias:Lt}),ks={txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]},fg=U().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),pg=ee(["first","last"]),gg=Jr(pg,U().trim()),vg=ee(["streetAddress","city","parish","country"]);Jr(vg,U().trim());var hg=ue({name:gg,photoUrl:U().optional(),email:bs(),phoneNumber:fg.optional()});ue({uid:U(),...hg.shape});ue({body:ue({text:U().trim(),html:U().optional()}),recipients:Ut(U().trim()),subject:U().trim(),attachments:Ut(mg)});ue({timestamp:hr(),status:ee(["success","error","info"]),response:U().trim().or(Jr(ee(["tag","message"]),U().trim()))});var yg=ee(["BAD_REQUEST","NOT_FOUND","OUT_OF_BOUNDS","INVALID","INTERNAL_ERROR","MISSING_PERMISSIONS","PROHIBITED_ACTION","INCOMPLETE_FORM","SERVER_ERROR","REQUEST_TIMEDOUT","UNKNOWN","UNVERIFIED","INVALID_TOKEN","CANCELLED"]);ue({code:yg,title:U().optional(),message:U().trim(),cause:U().optional()});ue({title:U().trim(),message:U().trim()});ee(["success","pending","error"]);ee(["JMD"]);function ws(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:_g(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var _g=e=>e.flatMap(r=>ks[r]);function dD(e){return jsx(ws,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:S(e.backgroundColor||"transparent"),borderColor:S(e.borderColor||"outlineVariant"),color:S(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}c();var Os=createContext(null);function xD(e){let r=R({defaultValue:null}),t=R({defaultValue:e.defaultValue??""}),[n,o]=useState(e.value??t.read()),[i,a]=useState(false),l=e.activationMode||"click",s=e.size||"md",u=k=>{e.readOnly||(e.value===void 0&&o(k),e.onChange?.(k));},d=()=>{u(t.read());},p=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&a(true));},h=(k={asClick:true})=>{r.upsert("cancel"),d(),k.asClick&&e.onCancelClick?.(),a(false);},y=k=>{k.preventDefault(),a(false);},$=(k=true)=>{t.upsert(n),k&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},b=()=>{r.upsert("edit"),e.onEditClick?.(),p();},x=()=>{$(false);},w=()=>{e.onContentClick?.(),p();},B={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Os.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...B,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(C,{text:e.label,fontSize:Z[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...B,grid:true,gap:e.columnGap??B.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(k=>e.hideControls.includes(k))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(g,{width:"full",align:"center",gap:"md",children:jsx(he,{autoFocus:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:y,onEnterKeyPressed:x,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(g,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||s,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:l==="dblclick"?()=>h({asClick:false}):void 0,onClick:l==="click"?w:void 0,children:jsx(sr,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:me({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Ig,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:$,onEdit:b}))]})]})})}function Ig(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Gn,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Gn,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Gn,{icon:LuPencilLine,onClick:e.onEdit})}function Gn(e){let{padding:r,iconSize:t}=useContext(Os);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(O,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}c();var Yn=createContext(null);function Og(e){return jsx(Yn,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(g,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Tg(e){let{fade:r}=useContext(Yn);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Eg(e){let{fade:r}=useContext(Yn);return jsxs(g,{align:"center",gap:e.gap||"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(C,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Zt={Root:Og,Indicator:Tg,Content:Eg};c();function Me(e){let r=()=>{let t={...e.fallbackStyle,display:e.fallbackStyle?.display||"flex",alignItems:e.fallbackStyle?.alignItems||"center",justifyContent:e.fallbackStyle?.justifyContent||"center"};if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:t});if(e.fallback&&we__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let n=e.fallback;return jsx(n,{size:"50%",style:t})}return jsx(Avatar.Fallback,{style:t})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:S(e.backgroundColor),color:S(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Rs(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}c();var js=createContext(null);function Mg(e){return jsx(js.Provider,{value:{gap:e.gap},children:jsx(g,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function Fs(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:a=true,align:l="center",...s}=r;return jsx(g,{className:n,...s,row:o,spill:i,centerContent:a,align:l,children:t})}}function Ns(e){return r=>jsx("span",{style:(()=>{let n=P({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?me(n):Cr(r.truncateStyle.lineCount,n)})(),children:r.value})}var Jg=Fs(),Wg=Fs(),Hg=e=>{let{gap:r=e.gap}=useContext(js);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Xg=Ns({fontWeight:"bold",fontSize:"xs",fade:.75}),Gg=Ns({fontSize:"sm"}),ae={Root:Mg,LeadingAddOn:Jg,TrailingAddOn:Wg,Content:Hg,Label:Xg,Item:Gg};c();function qg(e){let r=()=>{if(typeof e.fallback=="string"||we__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(g,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(g,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(je,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(g,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(g,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:P({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:P({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Qg(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var tB={Root:qg,Content:Qg};c();function ev(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(g,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(g,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(Me,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(g,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:me(P({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:me(P({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var dB={Root:ev,Content:g};c();function Ei(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(g,{centerContent:true,cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:n?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:n?1:0}})})}c();c();function iv(e){let{triggerRerender:r}=H(),t=P({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i);},o=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var to=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let a=i;o?.[a]||(o=Object.assign(o,{[a]:r[a]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(g,{...o,children:t.children})})},av=to("Header",{fontSize:"xl",fontWeight:"bold"}),cv=to("Body",{gap:"md"}),lv=to("Footer",{row:true,gap:"sm"}),sv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),uv=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),E={Root:iv,Header:av,Body:cv,Footer:lv,CloseTrigger:sv,ActionTrigger:uv};function OB(e){let r=e.severity||"error",t=S(r,{preference:"res"});return jsxs(E.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(E.Header,{fontSize:"2xl",children:e.title}),jsxs(E.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
38
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(r===i[0]){o(i);continue}if(e.external){let s=e.external.registry.get(i[0])?.id;if(r!==i[0]&&s){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(a.cycle){o(i);continue}if(a.count>1&&e.reused==="ref"){o(i);continue}}}function Ft(e,r){let t=e.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let l=e.seen.get(a),s=l.def??l.schema,u={...s};if(l.ref===null)return;let d=l.ref;if(l.ref=null,d){n(d);let p=e.seen.get(d).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):(Object.assign(s,p),Object.assign(s,u));}l.isParent||e.override({zodSchema:a,jsonSchema:s,path:l.path??[]});};for(let a of [...e.seen.entries()].reverse())n(a[0]);let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(r)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a);}Object.assign(o,t.def??t.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let l=a[1];l.def&&l.defId&&(i[l.defId]=l.def);}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:Mr(r,"input"),output:Mr(r,"output")}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Q(e,r){let t=r??{seen:new Set};if(t.seen.has(e))return false;t.seen.add(e);let n=e._zod.def;if(n.type==="transform")return true;if(n.type==="array")return Q(n.element,t);if(n.type==="set")return Q(n.valueType,t);if(n.type==="lazy")return Q(n.getter(),t);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return Q(n.innerType,t);if(n.type==="intersection")return Q(n.left,t)||Q(n.right,t);if(n.type==="record"||n.type==="map")return Q(n.keyType,t)||Q(n.valueType,t);if(n.type==="pipe")return Q(n.in,t)||Q(n.out,t);if(n.type==="object"){for(let o in n.shape)if(Q(n.shape[o],t))return true;return false}if(n.type==="union"){for(let o of n.options)if(Q(o,t))return true;return false}if(n.type==="tuple"){for(let o of n.items)if(Q(o,t))return true;return !!(n.rest&&Q(n.rest,t))}return false}var zl=(e,r={})=>t=>{let n=Rt({...t,processors:r});return W(e,n),jt(n,e),Ft(n,e)},Mr=(e,r)=>t=>{let{libraryOptions:n,target:o}=t??{},i=Rt({...n??{},target:o,io:r,processors:{}});return W(e,i),jt(i,e),Ft(i,e)};c();var lp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Il=(e,r,t,n)=>{let o=t;o.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),l&&(o.format=lp[l]??l,o.format===""&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){let d=[...s];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(p=>({...r.target==="draft-07"||r.target==="draft-04"||r.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))]);}},Dl=(e,r,t,n)=>{let o=t,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=true):o.exclusiveMinimum=d),typeof i=="number"&&(o.minimum=i,typeof d=="number"&&r.target!=="draft-04"&&(d>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(r.target==="draft-04"||r.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=true):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&r.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof s=="number"&&(o.multipleOf=s);};var Bl=(e,r,t,n)=>{t.not={};};var Ol=(e,r,t,n)=>{};var Tl=(e,r,t,n)=>{let o=e._zod.def,i=Tr(o.entries);i.every(a=>typeof a=="number")&&(t.type="number"),i.every(a=>typeof a=="string")&&(t.type="string"),t.enum=i;};var El=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")};var Rl=(e,r,t,n)=>{if(r.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")};var jl=(e,r,t,n)=>{let o=t,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=W(i.element,r,{...n,path:[...n.path,"items"]});},Fl=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",o.properties={};let a=i.shape;for(let u in a)o.properties[u]=W(a[u],r,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{let d=i.shape[u]._zod;return r.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(o.required=Array.from(s)),i.catchall?._zod.def.type==="never"?o.additionalProperties=false:i.catchall?i.catchall&&(o.additionalProperties=W(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):r.io==="output"&&(o.additionalProperties=false);},Nl=(e,r,t,n)=>{let o=e._zod.def,i=o.inclusive===false,a=o.options.map((l,s)=>W(l,r,{...n,path:[...n.path,i?"oneOf":"anyOf",s]}));i?t.oneOf=a:t.anyOf=a;},Al=(e,r,t,n)=>{let o=e._zod.def,i=W(o.left,r,{...n,path:[...n.path,"allOf",0]}),a=W(o.right,r,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];t.allOf=s;};var Ul=(e,r,t,n)=>{let o=t,i=e._zod.def;o.type="object",(r.target==="draft-07"||r.target==="draft-2020-12")&&(o.propertyNames=W(i.keyType,r,{...n,path:[...n.path,"propertyNames"]})),o.additionalProperties=W(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]});},Ll=(e,r,t,n)=>{let o=e._zod.def,i=W(o.innerType,r,n),a=r.seen.get(e);r.target==="openapi-3.0"?(a.ref=o.innerType,t.nullable=true):t.anyOf=[i,{type:"null"}];},Zl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;},Vl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.default=JSON.parse(JSON.stringify(o.defaultValue));},Ml=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,r.io==="input"&&(t._prefault=JSON.parse(JSON.stringify(o.defaultValue)));},Jl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0);}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=a;},Wl=(e,r,t,n)=>{let o=e._zod.def,i=r.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;W(i,r,n);let a=r.seen.get(e);a.ref=i;},Hl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType,t.readOnly=true;};var Xl=(e,r,t,n)=>{let o=e._zod.def;W(o.innerType,r,n);let i=r.seen.get(e);i.ref=o.innerType;};c();c();c();c();c();var gp=v("ZodISODateTime",(e,r)=>{gc.init(e,r),L.init(e,r);});function Gl(e){return hl(gp,e)}var vp=v("ZodISODate",(e,r)=>{vc.init(e,r),L.init(e,r);});function Kl(e){return yl(vp,e)}var hp=v("ZodISOTime",(e,r)=>{hc.init(e,r),L.init(e,r);});function Yl(e){return _l(hp,e)}var yp=v("ZodISODuration",(e,r)=>{yc.init(e,r),L.init(e,r);});function ql(e){return bl(yp,e)}c();c();var Ql=(e,r)=>{Ct.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>qi(e,t)},flatten:{value:t=>Yi(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,pr,2);}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,pr,2);}},isEmpty:{get(){return e.issues.length===0}}});};v("ZodError",Ql);var oe=v("ZodError",Ql,{Parent:Error});var es=Pt(oe),rs=kt(oe),ts=Nr(oe),ns=Ar(oe),os=ra(oe),is=ta(oe),as=na(oe),cs=oa(oe),ls=ia(oe),ss=aa(oe),us=ca(oe),ds=la(oe);var X=v("ZodType",(e,r)=>(V.init(e,r),Object.assign(e["~standard"],{jsonSchema:{input:Mr(e,"input"),output:Mr(e,"output")}}),e.toJSONSchema=zl(e,{}),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone(_.mergeDefs(r,{checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(t,n)=>ge(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>es(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ts(e,t,n),e.parseAsync=async(t,n)=>rs(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>ns(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>os(e,t,n),e.decode=(t,n)=>is(e,t,n),e.encodeAsync=async(t,n)=>as(e,t,n),e.decodeAsync=async(t,n)=>cs(e,t,n),e.safeEncode=(t,n)=>ls(e,t,n),e.safeDecode=(t,n)=>ss(e,t,n),e.safeEncodeAsync=async(t,n)=>us(e,t,n),e.safeDecodeAsync=async(t,n)=>ds(e,t,n),e.refine=(t,n)=>e.check(ug(t,n)),e.superRefine=t=>e.check(dg(t)),e.overwrite=t=>e.check(Ve(t)),e.optional=()=>gs(e),e.nullable=()=>vs(e),e.nullish=()=>gs(vs(e)),e.nonoptional=t=>ng(e,t),e.array=()=>Ut(e),e.or=t=>Wp([e,t]),e.and=t=>Xp(e,t),e.transform=t=>hs(e,Yp(t)),e.default=t=>eg(e,t),e.prefault=t=>tg(e,t),e.catch=t=>ig(e,t),e.pipe=t=>hs(e,t),e.readonly=()=>lg(e),e.describe=t=>{let n=e.clone();return Ze.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return Ze.get(e)?.description},configurable:true}),e.meta=(...t)=>{if(t.length===0)return Ze.get(e);let n=e.clone();return Ze.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ys=v("_ZodString",(e,r)=>{Lr.init(e,r),X.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Il(e,n,o);let t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(jn(...n)),e.includes=(...n)=>e.check(An(...n)),e.startsWith=(...n)=>e.check(Un(...n)),e.endsWith=(...n)=>e.check(Ln(...n)),e.min=(...n)=>e.check(vr(...n)),e.max=(...n)=>e.check(Tt(...n)),e.length=(...n)=>e.check(Et(...n)),e.nonempty=(...n)=>e.check(vr(1,...n)),e.lowercase=n=>e.check(Fn(n)),e.uppercase=n=>e.check(Nn(n)),e.trim=()=>e.check(Vn()),e.normalize=(...n)=>e.check(Zn(...n)),e.toLowerCase=()=>e.check(Mn()),e.toUpperCase=()=>e.check(Jn()),e.slugify=()=>e.check(Wn());}),Sp=v("ZodString",(e,r)=>{Lr.init(e,r),ys.init(e,r),e.email=t=>e.check(En(_s,t)),e.url=t=>e.check(rl(Cp,t)),e.jwt=t=>e.check(vl(Np,t)),e.emoji=t=>e.check(tl(Pp,t)),e.guid=t=>e.check(Rn(ms,t)),e.uuid=t=>e.check(Yc(At,t)),e.uuidv4=t=>e.check(qc(At,t)),e.uuidv6=t=>e.check(Qc(At,t)),e.uuidv7=t=>e.check(el(At,t)),e.nanoid=t=>e.check(nl(kp,t)),e.guid=t=>e.check(Rn(ms,t)),e.cuid=t=>e.check(ol($p,t)),e.cuid2=t=>e.check(il(wp,t)),e.ulid=t=>e.check(al(zp,t)),e.base64=t=>e.check(fl(Rp,t)),e.base64url=t=>e.check(pl(jp,t)),e.xid=t=>e.check(cl(Ip,t)),e.ksuid=t=>e.check(ll(Dp,t)),e.ipv4=t=>e.check(sl(Bp,t)),e.ipv6=t=>e.check(ul(Op,t)),e.cidrv4=t=>e.check(dl(Tp,t)),e.cidrv6=t=>e.check(ml(Ep,t)),e.e164=t=>e.check(gl(Fp,t)),e.datetime=t=>e.check(Gl(t)),e.date=t=>e.check(Kl(t)),e.time=t=>e.check(Yl(t)),e.duration=t=>e.check(ql(t));});function U(e){return Kc(Sp,e)}var L=v("ZodStringFormat",(e,r)=>{A.init(e,r),ys.init(e,r);}),_s=v("ZodEmail",(e,r)=>{ac.init(e,r),L.init(e,r);});function bs(e){return En(_s,e)}var ms=v("ZodGUID",(e,r)=>{oc.init(e,r),L.init(e,r);});var At=v("ZodUUID",(e,r)=>{ic.init(e,r),L.init(e,r);});var Cp=v("ZodURL",(e,r)=>{cc.init(e,r),L.init(e,r);});var Pp=v("ZodEmoji",(e,r)=>{lc.init(e,r),L.init(e,r);});var kp=v("ZodNanoID",(e,r)=>{sc.init(e,r),L.init(e,r);});var $p=v("ZodCUID",(e,r)=>{uc.init(e,r),L.init(e,r);});var wp=v("ZodCUID2",(e,r)=>{dc.init(e,r),L.init(e,r);});var zp=v("ZodULID",(e,r)=>{mc.init(e,r),L.init(e,r);});var Ip=v("ZodXID",(e,r)=>{fc.init(e,r),L.init(e,r);});var Dp=v("ZodKSUID",(e,r)=>{pc.init(e,r),L.init(e,r);});var Bp=v("ZodIPv4",(e,r)=>{_c.init(e,r),L.init(e,r);});var Op=v("ZodIPv6",(e,r)=>{bc.init(e,r),L.init(e,r);});var Tp=v("ZodCIDRv4",(e,r)=>{xc.init(e,r),L.init(e,r);});var Ep=v("ZodCIDRv6",(e,r)=>{Sc.init(e,r),L.init(e,r);});var Rp=v("ZodBase64",(e,r)=>{Pc.init(e,r),L.init(e,r);});var jp=v("ZodBase64URL",(e,r)=>{kc.init(e,r),L.init(e,r);});var Fp=v("ZodE164",(e,r)=>{$c.init(e,r),L.init(e,r);});var Np=v("ZodJWT",(e,r)=>{wc.init(e,r),L.init(e,r);});var xs=v("ZodNumber",(e,r)=>{On.init(e,r),X.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Dl(e,n,o),e.gt=(n,o)=>e.check(Bt(n,o)),e.gte=(n,o)=>e.check(Vr(n,o)),e.min=(n,o)=>e.check(Vr(n,o)),e.lt=(n,o)=>e.check(Dt(n,o)),e.lte=(n,o)=>e.check(Zr(n,o)),e.max=(n,o)=>e.check(Zr(n,o)),e.int=n=>e.check(fs(n)),e.safe=n=>e.check(fs(n)),e.positive=n=>e.check(Bt(0,n)),e.nonnegative=n=>e.check(Vr(0,n)),e.negative=n=>e.check(Dt(0,n)),e.nonpositive=n=>e.check(Zr(0,n)),e.multipleOf=(n,o)=>e.check(Ot(n,o)),e.step=(n,o)=>e.check(Ot(n,o)),e.finite=()=>e;let t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=true,e.format=t.format??null;});function hr(e){return xl(xs,e)}var Ap=v("ZodNumberFormat",(e,r)=>{zc.init(e,r),xs.init(e,r);});function fs(e){return Sl(Ap,e)}var Up=v("ZodUnknown",(e,r)=>{Ic.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ol();});function ps(){return Cl(Up)}var Lp=v("ZodNever",(e,r)=>{Dc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Bl(e,t,n);});function Zp(e){return Pl(Lp,e)}var Vp=v("ZodArray",(e,r)=>{Bc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>jl(e,t,n,o),e.element=r.element,e.min=(t,n)=>e.check(vr(t,n)),e.nonempty=t=>e.check(vr(1,t)),e.max=(t,n)=>e.check(Tt(t,n)),e.length=(t,n)=>e.check(Et(t,n)),e.unwrap=()=>e.element;});function Ut(e,r){return kl(Vp,e,r)}var Mp=v("ZodObject",(e,r)=>{Ec.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Fl(e,t,n,o),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>ee(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ps()}),e.loose=()=>e.clone({...e._zod.def,catchall:ps()}),e.strict=()=>e.clone({...e._zod.def,catchall:Zp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>_.extend(e,t),e.safeExtend=t=>_.safeExtend(e,t),e.merge=t=>_.merge(e,t),e.pick=t=>_.pick(e,t),e.omit=t=>_.omit(e,t),e.partial=(...t)=>_.partial(Ss,e,t[0]),e.required=(...t)=>_.required(Cs,e,t[0]);});function ue(e,r){let t={type:"object",shape:e??{},..._.normalizeParams(r)};return new Mp(t)}var Jp=v("ZodUnion",(e,r)=>{Rc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Nl(e,t,n,o),e.options=r.options;});function Wp(e,r){return new Jp({type:"union",options:e,..._.normalizeParams(r)})}var Hp=v("ZodIntersection",(e,r)=>{jc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Al(e,t,n,o);});function Xp(e,r){return new Hp({type:"intersection",left:e,right:r})}var Gp=v("ZodRecord",(e,r)=>{Fc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ul(e,t,n,o),e.keyType=r.keyType,e.valueType=r.valueType;});function Jr(e,r,t){return new Gp({type:"record",keyType:e,valueType:r,..._.normalizeParams(t)})}var Hn=v("ZodEnum",(e,r)=>{Nc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(n,o,i)=>Tl(e,n,o),e.enum=r.entries,e.options=Object.values(r.entries);let t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{let i={};for(let a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Hn({...r,checks:[],..._.normalizeParams(o),entries:i})},e.exclude=(n,o)=>{let i={...r.entries};for(let a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Hn({...r,checks:[],..._.normalizeParams(o),entries:i})};});function ee(e,r){let t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Hn({type:"enum",entries:t,..._.normalizeParams(r)})}var Kp=v("ZodTransform",(e,r)=>{Ac.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Rl(e,t),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new mr(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(_.issue(i,t.value,r));else {let a=i;a.fatal&&(a.continue=false),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(_.issue(a));}};let o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)};});function Yp(e){return new Kp({type:"transform",transform:e})}var Ss=v("ZodOptional",(e,r)=>{Uc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Xl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function gs(e){return new Ss({type:"optional",innerType:e})}var qp=v("ZodNullable",(e,r)=>{Lc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ll(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function vs(e){return new qp({type:"nullable",innerType:e})}var Qp=v("ZodDefault",(e,r)=>{Zc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Vl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap;});function eg(e,r){return new Qp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var rg=v("ZodPrefault",(e,r)=>{Vc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Ml(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function tg(e,r){return new rg({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Cs=v("ZodNonOptional",(e,r)=>{Mc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Zl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function ng(e,r){return new Cs({type:"nonoptional",innerType:e,..._.normalizeParams(r)})}var og=v("ZodCatch",(e,r)=>{Jc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Jl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap;});function ig(e,r){return new og({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var ag=v("ZodPipe",(e,r)=>{Wc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Wl(e,t,n,o),e.in=r.in,e.out=r.out;});function hs(e,r){return new ag({type:"pipe",in:e,out:r})}var cg=v("ZodReadonly",(e,r)=>{Hc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>Hl(e,t,n,o),e.unwrap=()=>e._zod.def.innerType;});function lg(e){return new cg({type:"readonly",innerType:e})}var sg=v("ZodCustom",(e,r)=>{Xc.init(e,r),X.init(e,r),e._zod.processJSONSchema=(t,n,o)=>El(e,t);});function ug(e,r={}){return $l(sg,e,r)}function dg(e){return wl(e)}var Ps=ee(["Google"]),Lt=ee(["pdf","word","excel","img","txt","unknown"]);Lt.exclude(["unknown"]);var mg=ue({lastModified:hr().nullable(),uid:U().trim().optional(),uploadDate:hr().optional(),sizeInBytes:hr(),name:U().trim(),path:U().trim(),extension:U().trim().startsWith(".").lowercase(),description:U().trim().optional(),alias:Lt}),ks={txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]},fg=U().regex(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$/),pg=ee(["first","last"]),gg=Jr(pg,U().trim()),vg=ee(["streetAddress","city","parish","country"]);Jr(vg,U().trim());var hg=ue({name:gg,photoUrl:U().optional(),email:bs(),phoneNumber:fg.optional()});ue({uid:U(),...hg.shape});ue({body:ue({text:U().trim(),html:U().optional()}),recipients:Ut(U().trim()),subject:U().trim(),attachments:Ut(mg)});ue({timestamp:hr(),status:ee(["success","error","info"]),response:U().trim().or(Jr(ee(["tag","message"]),U().trim()))});var yg=ee(["BAD_REQUEST","NOT_FOUND","OUT_OF_BOUNDS","INVALID","INTERNAL_ERROR","MISSING_PERMISSIONS","PROHIBITED_ACTION","INCOMPLETE_FORM","SERVER_ERROR","REQUEST_TIMEDOUT","UNKNOWN","UNVERIFIED","INVALID_TOKEN","CANCELLED"]);ue({code:yg,title:U().optional(),message:U().trim(),cause:U().optional()});ue({title:U().trim(),message:U().trim()});ee(["success","pending","error"]);ee(["JMD"]);function ws(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:_g(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var _g=e=>e.flatMap(r=>ks[r]);function dD(e){return jsx(ws,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:S(e.backgroundColor||"transparent"),borderColor:S(e.borderColor||"outlineVariant"),color:S(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}c();var Os=createContext(null);function xD(e){let r=R({defaultValue:null}),t=R({defaultValue:e.defaultValue??""}),[n,o]=useState(e.value??t.read()),[i,a]=useState(false),l=e.activationMode||"click",s=e.size||"md",u=k=>{e.readOnly||(e.value===void 0&&o(k),e.onChange?.(k));},d=()=>{u(t.read());},p=()=>{e.readOnly||(e.onEdit?.(),!e.preventDefault&&a(true));},h=(k={asClick:true})=>{r.upsert("cancel"),d(),k.asClick&&e.onCancelClick?.(),a(false);},y=k=>{k.preventDefault(),a(false);},$=(k=true)=>{t.upsert(n),k&&(r.upsert("save"),e.onSaveClick?.(n)),e.onSave?.(n),a(false);},b=()=>{r.upsert("edit"),e.onEditClick?.(),p();},x=()=>{$(false);},w=()=>{e.onContentClick?.(),p();},B={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Os.Provider,{value:{padding:".25rem",iconSize:e.iconSize||s},children:jsxs(g,{...B,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(C,{text:e.label,fontSize:Z[s],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(g,{...B,grid:true,gap:e.columnGap??B.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(k=>e.hideControls.includes(k))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i&&!e.readOnly?jsx(g,{width:"full",align:"center",gap:"md",children:jsx(he,{autoFocus:true,disableTransition:true,readOnly:e.readOnly,allowedChars:e.allowedChars,maxChars:e.maxChars,value:n,corners:"md",validateInput:e.validateInput,width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||s,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:u,onBlur:y,onEnterKeyPressed:x,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(g,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||s,cursor:"text",css:{transition:"all 200ms linear",":hover":e.readOnly?void 0:{backgroundColor:"onSurface[0.1]"}},onDoubleClick:l==="dblclick"?()=>h({asClick:false}):void 0,onClick:l==="click"?w:void 0,children:jsx(sr,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false||e.slotProps?.popover?.asChild===true?true:!!n,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(n))??n,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:me({opacity:e.placeholder&&!n?.85:1,width:"100%"}),children:(e.formatContent?.(n)??n)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Ig,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:$,onEdit:b}))]})]})})}function Ig(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Gn,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Gn,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Gn,{icon:LuPencilLine,onClick:e.onEdit})}function Gn(e){let{padding:r,iconSize:t}=useContext(Os);return jsx(g,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(O,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:n=>{n.preventDefault();}})})}c();var Yn=createContext(null);function Og(e){return jsx(Yn,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(g,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function Tg(e){let{fade:r}=useContext(Yn);return jsx(g,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function Eg(e){let{fade:r}=useContext(Yn);return jsxs(g,{align:"center",gap:e.gap||"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(C,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var Zt={Root:Og,Indicator:Tg,Content:Eg};c();function Me(e){let r=()=>{let t={...e.fallbackStyle,display:e.fallbackStyle?.display||"flex",alignItems:e.fallbackStyle?.alignItems||"center",justifyContent:e.fallbackStyle?.justifyContent||"center"};if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback,style:t});if(e.fallback&&we__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let n=e.fallback;return jsx(n,{size:"50%",style:t})}return jsx(Avatar.Fallback,{style:t})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:S(e.backgroundColor),color:S(e.color),style:e.style,children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}c();function Rs(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}c();var js=createContext(null);function Mg(e){return jsx(js.Provider,{value:{gap:e.gap},children:jsx(g,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,onClick:e.onClick,children:e.children})})}function Fs(e){return r=>{let{children:t,className:n,row:o=true,spill:i="hidden",centerContent:a=true,align:l="center",...s}=r;return jsx(g,{className:n,...s,row:o,spill:i,centerContent:a,align:l,children:t})}}function Ns(e){return r=>jsx("span",{style:(()=>{let n=P({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?n:r.truncateStyle==="ellipsis"?me(n):Cr(r.truncateStyle.lineCount,n)})(),children:r.value})}var Jg=Fs(),Wg=Fs(),Hg=e=>{let{gap:r=e.gap}=useContext(js);return jsx(g,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Xg=Ns({fontWeight:"bold",fontSize:"xs",fade:.75}),Gg=Ns({fontSize:"sm"}),ae={Root:Mg,LeadingAddOn:Jg,TrailingAddOn:Wg,Content:Hg,Label:Xg,Item:Gg};c();function qg(e){let r=()=>{if(typeof e.fallback=="string"||we__default.isValidElement(e.fallback))return e.fallback;let n=e.fallback||PiImageBrokenLight;return jsx(n,{size:"3rem"})};return jsxs(g,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(g,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(je,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(g,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(g,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:P({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:P({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Qg(e){return jsx(g,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var tB={Root:qg,Content:Qg};c();function ev(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],n=i=>{if(!e.children)return e[i]||r[i]},o=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(g,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:o},children:[jsxs(g,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:n("height"),width:n("width"),backgroundColor:n("backgroundColor"),color:n("color"),padding:n("padding"),corners:n("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:o},children:[jsx(Me,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(g,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:me(P({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:me(P({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var dB={Root:ev,Content:g};c();function Ei(e){let[r,t]=useState(e.defaultChecked??false),n=e.checked??r,o=e.checked!==void 0,i=()=>{e.onClick?.(),o||(e.onChange?.(!n),t(!n));};return jsx(g,{centerContent:true,cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:n?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:n?1:0}})})}c();c();function iv(e){let{triggerRerender:r}=H(),t=P({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),n=({open:i})=>{e.onOpenChange?.(i);},o=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:n,onExitComplete:o,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var to=(e,r)=>t=>{let n=Dialog[e],o={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let a=i;o?.[a]||(o=Object.assign(o,{[a]:r[a]}));}),jsx(n,{width:"full",height:"full",overflow:"hidden",children:jsx(g,{...o,children:t.children})})},av=to("Header",{fontSize:"xl",fontWeight:"bold"}),cv=to("Body",{gap:"md"}),lv=to("Footer",{row:true,gap:"sm"}),sv=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),uv=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),E={Root:iv,Header:av,Body:cv,Footer:lv,CloseTrigger:sv,ActionTrigger:uv};function OB(e){let r=e.severity||"error",t=S(r,{preference:"res"});return jsxs(E.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(E.Header,{fontSize:"2xl",children:e.title}),jsxs(E.Body,{fade:.75,children:[jsx("span",{children:e.message.split(`
39
39
  `).map(n=>jsxs(Fragment,{children:[n,jsx("br",{})]}))}),e.disclaimer&&jsx(Us,{width:"full",facade:n=>n==="error"?"warning":n,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(E.Footer,{gap:"md",children:[jsx(E.ActionTrigger,{children:jsx(O,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(O,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}c();var no=createContext(null);function LB(e){let r=e.sections.flatMap(b=>typeof b=="object"?b.nestedItems:b),t=e.defaultSection?r.findIndex(b=>b===e.defaultSection):0,[n,o]=useState(t>=0?t:0),{triggerRerender:i}=H(),a=R({defaultValue:[]}),l=r[n],s=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),u=n<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((b,x)=>{p(b,x);}),i();},[]);let d=(b=a.read())=>r.filter(x=>!b.includes(x)&&!s.includes(x)),p=(b=l,x=n)=>{let w=a.read();if(!s.includes(b)){if(e.isSectionComplete(b)&&!w.includes(b))w=[...w,b];else if(!e.isSectionComplete(b)&&w.includes(b))w=w.filter((B,k)=>k!==x);else return;a.upsert(w),e.onSectionsStatusChange?.(d(w),w);}},h=b=>{p(),o(r.findIndex(x=>x===b));},y=()=>{n>=r.length-1||(p(),o(n+1));},$=()=>{u||(p(),o(n-1));};return jsx(no.Provider,{value:{activeSection:l,completedSections:a.read(),rawSections:e.sections},children:jsx(E.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(E.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(vv,{title:e.title,onSectionClick:h}),jsx(hv,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:u,onPreviousClick:$,onNextClick:y,incompleteSections:d(),onSubmitClick:e.onSubmit})]})})})}function vv(e){let{rawSections:r,activeSection:t,completedSections:n}=useContext(no);return jsxs(g,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(g,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(mn,{width:"full",items:r,isItemActive:o=>t===o,isItemCompleted:o=>n.includes(o),onItemClick:e.onSectionClick})]})}function hv(e){let{activeSection:r}=useContext(no),{title:t,description:n,element:o}=e.sectionMapper[r],i=typeof o=="function"?jsx(o,{incompleteSections:e.incompleteSections}):o;return jsxs(g,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(g,{children:[jsx(C,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:n,style:{opacity:.75}})]}),jsx(g,{size:"full",gap:"lg",children:i}),jsxs(g,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(io,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(ao,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(oo,{onClick:e.onNextClick})]})]})}c();c();var yv=Re({preset:{text:"Save",async:true}}),co=yv;function QB(e){let{triggerRerender:r}=H(),t=R({defaultValue:Object.fromEntries(Object.entries(e.fields).map(([a,l])=>[a,typeof l=="object"&&"defaultValue"in l?l.defaultValue:e.defaultValue?.[a]??""]))}),n=e.actionButtionSize||"lg",o=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(E.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(E.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(E.Body,{padding:"xs",children:Object.keys(e.fields).map(a=>{let l=a,s=e.fields[l],u=t.read()?.[l]??"",d=typeof s.label=="function"?s.label(a):!s.label||s.label==="prop-name"?e?.formatFieldPropName?.(a)??a:s.label,p=h=>t.upsert(y=>({...y||{},[l]:h}));return s.options?jsx(bv,{label:d,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,placeholder:s.placeholder,options:s.options,onChange:p},a):jsx(he,{width:"full",placeholder:s.placeholder,label:d,size:e.textfieldSize,defaultValue:u,disabled:s.disabled,allowedChars:s.allowedChars||e.allowedChars,onChange:p},l)})}),jsxs(E.Footer,{children:[jsx(E.ActionTrigger,{children:jsx(Yr,{fade:.5,size:n,onClick:i})}),jsx(E.ActionTrigger,{children:jsx(co,{size:n,onClick:o})})]})]})}function bv(e){let[r,t]=useState(e.defaultValue),n=({value:o})=>{e.onChange(o),t(o);};return jsx(Dr,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:o})=>r===o,options:e.options.map(o=>({value:o.trim()})),onOptionClick:n,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(he,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}c();var Pe={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Qr=createContext(null);function Pv(e){let r=S(e.borderColor||"outline[0.1]"),t=Ee.md;return jsx(Qr.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(g,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${Pe.topbar} ${Pe.topbar}" "${Pe.sidebar} ${Pe.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function kv(e){let{navThickness:r}=useContext(Qr),t=Jt(e.file.alias);return jsxs(g,{...e,row:true,align:"center",maxWidth:e.maxWidth||"45%",children:[t&&jsx(t.filled,{style:P({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:P({padding:e.styles?.icon?.padding||".65rem"})?.padding,paddingLeft:`calc(.65rem - ${q.md})`}})}),jsxs(g,{asChildren:e.hideFileMetadata,children:[jsx(C,{ellipsis:true,color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(g,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(C,{fontWeight:"bold",text:(e.file.extension||e.file.alias)?.toUpperCase()}),jsx(g,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(C,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function $v(e){let{navThickness:r}=useContext(Qr),{children:t,...n}=e;return jsx(g,{...n,row:true,id:Pe.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",justify:e.justify||"space-between",style:{...e.style||{},padding:e.style?.padding||"0px .5rem",gridArea:Pe.topbar},children:e.children})}var Ms=createContext(null);function wv(e){let{children:r,onOptionClick:t,...n}=e,{navThickness:o}=useContext(Qr);return jsx(Ms.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(g,{...n,id:Pe.sidebar,height:"full",width:o,align:"center",gap:n.gap||"md",padding:["md",["top","bottom"]],style:{...n.style,gridArea:Pe.sidebar},children:e.children})})}function zv(e){let{onOptionClick:r}=useContext(Ms),t=()=>{e.onClick?.(),r(e.label);};return jsx(sr,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(g,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function Iv(e){let{borderColor:r,corners:t}=useContext(Qr),n=useRef(null);useEffect(()=>{o();let i=new MutationObserver(a=>{for(let l of a)l.type==="childList"&&o();});return i.observe(n.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let o=()=>{let i=["sidebar","topbar"],a=n.current?.parentElement,l=i.filter(s=>a?.querySelector(`#${Pe[s]}`));i.every(s=>l.includes(s))?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):l.includes("sidebar")?Object.assign(n.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):l.includes("topbar")?Object.assign(n.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(n.current?.style,{borderRadius:t,borderColor:r});};return jsx(g,{ref:n,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:Pe.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Dv(e){let r=e.thickness||"0.0104in",t=e.length||"70%",n={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(g,{...n,backgroundColor:e.color||"outline[0.1]"})}var lO={Root:Pv,Sidebar:wv,SidebarOption:zv,Topbar:$v,Viewer:Iv,Indicator:kv,Sep:Dv};c();var Js=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(Js||{});function Ws(e){let r=Js[e.size||"sm"];return jsx(g,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}c();function Hs(e){return jsxs(g,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(n,o=false)=>typeof n=="string"?n:Object.entries(n).map(([i,a],l,s)=>`${o?" ":""}${i}: ${[void 0,null,""].includes(a)?null:typeof a=="object"?`{
40
40
  ${t(a,true)}
41
41
  }`:a}`+(l===lastIndex(s)?"":",")).join(`
42
42
  `);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(g,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(g,{gap:"sm",children:[jsx(C,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(C,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}c();var Gs=createContext(null);function Nv(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",n=e.placement||"right-start";return jsx(Gs.Provider,{value:{color:t,placement:n,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:n,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(Av,{children:jsx(Menu.Positioner,{children:jsx(Menu.Content,{h:e.height,w:e.width,maxH:e.maxHeight,maxW:e.maxWidth,minH:e.minHeight,minW:e.minWidth,backgroundColor:S(r),color:S(t),style:P({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(o=>{let i=e.items[o];return i.subMenu?jsx(Nv,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(Xs,{isTrigger:true,value:o})}):jsx(Xs,{...i,value:o})})})})})]})})}function Av(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function Xs(e){let{color:r,onItemClick:t}=useContext(Gs),n=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},o=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:a}=e.sx?.[":hover"]||{},l={disabled:e.disabled,backgroundColor:S(e.backgroundColor||"transparent"),color:S(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:S(i),color:a?S(a):void 0},_active:e.sx?.[":active"]?{...P({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:o};return e.isTrigger?jsxs(Menu.TriggerItem,{...l,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...l,value:e.value,children:[e.leadingEl,jsx(g,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(n,{})]})}c();var Qs=createContext(null);function JO(e){let[r,t]=useState(false),n=e.controller||eu(0),[o,i]=useState(n.defaultPage??0),a;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),n.goTo=useCallback((d,p)=>{let h=p?.transition||"smooth",y=o;if(!(d===y||r||!p?.ignoreOutOfBoundsCheck&&!e.children[d]))if(a?.(y,d),e.onChange?.(y,d),h==="smooth"){t(true);let $=y,b=setInterval(()=>{d>y?$++:$--,i($),$===d&&(clearInterval(b),t(false));},p?.transitionDuration||200);}else i(d);},[o,e.children,r]),n.echo=e.onEcho,n.isPageActive=useCallback(d=>d===o,[o]),n.onPageChange=useCallback(d=>{a=d;},[]),n.getActivePage=useCallback(()=>o,[o]),useEffect(()=>()=>{for(let p of Object.keys(n)){let h=p;typeof n[h]=="function"&&(n[h]=null);}a=null;},[]);let l=()=>n.goTo(o-1),s=()=>n.goTo(o+1),u=P({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(Qs.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:u.height,width:u.width??"100%",justifyContent:"center",gap:u.gap??".5rem",overflow:u.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[!e.hideControls&&jsx(qs,{disabled:o<=0,inset:"left",onClick:l}),e.children.map((d,p)=>{let h=Math.sign(o-p),y=Math.abs(o-p)/3,$=Math.abs(o-p)>(e.maxDisplayed??2);return jsx("div",{style:{overflow:"hidden",boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.35) 0px 5px 15px",...e.slotProps?.childWrapperStyle||{},display:$?"none":"flex",position:"absolute",opacity:p!==o&&e.hideInactivePages?0:1,transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,justifyContent:"center",alignItems:"center",transform:`
43
43
  scaleY(calc(1 + ${y} * -0.4))
44
44
  translateZ(calc(${y} * -10rem))
45
- translateX(calc(${h} * -5rem))`,filter:`blur(calc(${y} * .5rem))`},children:typeof d=="function"?jsx(d,{isActive:p===o}):d},p)}),!e.hideControls&&jsx(qs,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function qs(e){let r=useContext(Qs),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(g,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}c();c();var Xt=createContext(null);function sr(e){let r=R({defaultValue:e.open??false}),{triggerRerender:t}=H(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=we__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let u=e.placement||"bottom-left",d=["top","right","bottom","left"].includes(u),p=d?{positionArea:u}:Kv(e.anchorPoint||"top-left",Gv(u));if(!e.visibleOnScroll){let y=ti(o.current);y&&y.addEventListener("scroll",$=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${$.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...p,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...P({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:l(e.minWidth),maxWidth:l(e.maxWidth),width:l(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let u=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",d=>{let p=d.newState==="open";p?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(p),r.upsert(p),!p&&e.rerenderOnClose&&t();}),u==="click")i.current?.addEventListener("click",()=>{s(()=>o.current?.togglePopover());});else if(u==="hover"){let d,h=()=>{d&&(d=null),s(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{s(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?d=setTimeout(h,20):h();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{d&&clearTimeout(d);}),o.current?.addEventListener("mouseleave",h));}},[]);let l=(u,d)=>u==="match-anchor"?getComputedStyle(i.current)?.width:u??d,s=(u,d)=>{let p=200;typeof e.delay=="number"?p=e.delay:e.delay&&d in e.delay&&(p=e.delay[d]),setTimeout(u,p);};return jsxs(Xt.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[a,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var Gv=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Kv=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function uT(e){let r=n=>{e.onChange?.(n.value);},t=e.controls[0];return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof t=="string"?t:t?.value),value:e.value,onValueChange:r,style:{backgroundColor:e.backgroundColor?S(e.backgroundColor):void 0,boxShadow:e.borderColor?`${S(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in q?q[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?S(e.indicatorColor):void 0}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{cursor:"pointer",padding:e.padding in q?q[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(Qv,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function Qv(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in Z?Z[e.fontSize]:e.fontSize,border:0,color:S(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function cu(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:S(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function bT(e){return jsx(g,{id:e.id,style:rh({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var eh=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],rh=e=>{let{height:r,width:t}=eh(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:S("paper"),color:S("onPaper"),overflow:"hidden"}};c();function su(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(g,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(g,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(C,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function OT(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}c();c();var fu=we.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:a=true,content:l,contentProps:s,portalRef:u,...d}=r;return i?o:jsxs(Tooltip.Root,{...d,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!a,container:u,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...s,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),l]})})})]})});function Kt(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=P({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(fu,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...P(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var fo=createContext(null);function mh(e){let r=R({defaultValue:[]}),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((a,l)=>l===0||!e.rowGap?a:jsxs(Fragment,{children:[jsx("p",{}),jsx(g,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:S(t)}})}),jsx("p",{}),a]})),i=()=>{if(n.length===1)return "both";let a=[...r.read(),0];if(r.upsert(a),a.length===1)return "first";if(a.length===n.length)return "last"};return jsx(fo.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(g,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function fh(e){let[r,t]=useState(),{register:n}=useContext(fo),{indicator:o,leadingEl:i,trailingEl:a}=e.styles||{},{0:l,1:s}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let d=n();typeof d=="string"&&t(d);},[r]);let u=d=>r===d||r==="both";return jsxs(Fragment,{children:[jsx(gu,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(vu,{hide:u("first")}),jsx(g,{style:{...P({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(vu,{hide:u("last")})]}),jsx(gu,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function gu(e){return jsx(g,{size:"full",style:{...P({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function vu(e){let{lineSeparatorColor:r}=useContext(fo);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var qT={Root:mh,Item:fh};c();function iE(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:S(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:S(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var po=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function he(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),a=e.maxChars??1/0,l="2rem",s=b=>typeof e.indent=="string"?e.indent:e.indent?.[b],u="md",{size:d,...p}=e,h={label:P({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75,fontSize:e.slotProps?.label?.fontSize||(typeof d=="string"&&d in Z?d:void 0)}),helperText:P({...e?.slotProps?.helperText}),root:P({width:e.width}),input:P({...p,width:"full",padding:{top:u,left:e.leadingContent?s("left")||l:u,right:e.trailingContent||e.showCharCounter?s("right")||l:u,bottom:u},corners:!e.corners&&e.corners!==0?".75rem":e.corners,style:{boxShadow:"none"}})},y=b=>{o.current.value=b,e.onChange(b,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let b=x=>{if(e.format!=="currency")return;let w=x;if(w=w.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((B,k)=>k<2).join("."),w&&takeLast(w.split(""))[0]!=="."){let B=parseFloat(w);if(!isNaN(B)){let k=new Intl.NumberFormat;y(k.format(B));}}};o.current?.addEventListener?.("beforeinput",x=>{let w=x.data,B=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";B==="all"||Array.isArray(B)&&B.includes("all")||w===null||(!Array.isArray(B)&&!po(w,B)||Array.isArray(B)&&B.some(k=>!po(w,k)))&&x.preventDefault();}),o.current?.addEventListener?.("paste",x=>{b(x.target.value);}),o.current?.addEventListener?.("input",x=>{b(x.target.value);});},[o.current]);let $=b=>{e.onChange?.(b,void 0),e.onPasteClick?.(b);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},style:{...h.root,boxShadow:"none"},children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...h.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Sh,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:$,slotProps:e.slotProps,children:jsx(InputGroup,{css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(C,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(typeof e.size=="string"&&e.size in Z?Z[e.size]:void 0),text:`${(e.value??r).length}/${a}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:d,zIndex:1,variant:e.variant,css:{transition:"all 200ms ease-in","--focus-color":S(e.focusColor||"primary")},onKeyDown:b=>{b.key==="Enter"?e.onEnterKeyPressed?.():b.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,_placeholder:e.slotProps?.placeholder?.color?{color:S(e.slotProps.placeholder.color)}:void 0,onChange:b=>{let x=b.currentTarget.value;switch(e.allowHtmlInput||(x=oi(x)),e.trimOnChange){case "start":x=x.trimStart();break;case "end":x=x.trimEnd();break;case true:x=x.trim();break}e.validateInput?.(x)!==false&&(e.onChange?.(x,b),n||t(x));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function Sh(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:q.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(br,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(xu,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function Us(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",a=e.gap||"md",l=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(g,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?a:void 0,corners:"md",backgroundColor:S(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?l:jsxs(g,{row:true,gap:a,align:"center",children:[l,jsx(C,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(ni(s));},style:P({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${P({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function Cu(e){return {FlyLeavingBox:wh}[e]}var yo=createContext(null);function Dh(e){let r=R({defaultValue:e.attachments||[]}),{triggerRerender:t}=H(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(yo.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let a=r.read();o==="add"&&(a=[...a,i]),o==="delete"&&(a=a.filter(({uid:l})=>l!==i.uid)),r.upsert(a),e.onAttachmentsChange?.(a),o==="delete"&&isEmpty(a)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(E.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(E.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(E.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Th,{}):jsx(Bh,{})})]})})}function Bh(){let e=useContext(yo),r=R(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let a=t.trim()?o.filter(({name:p})=>p.toLowerCase().includes(t.toLowerCase())):o,l=isEmpty(a)&&!!t.trim(),s=p=>{i(h=>h.filter(({uid:y})=>y!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let y=h[0];i([...o,y]),e?.onAttachmentAdded?.(y),e?.attachmentsEventListener("add",y);},d=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(xo,{width:"full",value:t,onChange:n}),jsx(g,{size:"full",maxHeight:"10rem",spill:"auto",padding:l?"lg":void 0,centerContent:l,children:l?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):a.map((p,h,y)=>jsx(Oh,{scrollIntoView:r.read()===false&&h===y.length-1,value:p,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(p):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(p):e?.openDisabled,onDelete:s,onOpen:d},p.uid))}),!e.hideUploadButton&&jsx(it,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function Oh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Jt(r);return jsxs(ae.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(ae.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(je,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(ae.Content,{gap:"sm",width:"full",children:[jsx(ae.Item,{truncateStyle:"ellipsis",value:n}),jsxs(g,{ref:a=>a&&e.scrollIntoView&&a.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(C,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(C,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(ae.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(bo,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(ot,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Th(){let e=useContext(yo);return jsxs(Zt.Root,{children:[jsx(Zt.Indicator,{size:"7rem",disableFade:true,element:jsx(je,{spill:"hidden",size:"full",src:Cu("FlyLeavingBox")})}),jsx(Zt.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(it,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",n);}),e.rerender();}})]})}var _o=Dh;function jh(e){let r=R({defaultValue:Array.isArray(e.attachments)?e.attachments:[]}),{triggerRerender:t}=H(),n=o=>{r.upsert(o);};return jsx(Kt,{tooltip:"Attachments",placement:"right",children:jsx(Rs,{circleChild:true,asChild:!e.attachments,badge:jsx(Ws,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Fh,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(g,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function Fh(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(_o,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var So=jh;c();var Ah=Re({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Yr=Ah;c();function Zh(e){return jsx(O,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var ot=Zh;c();function Jh(e){let{iconOnly:r,...t}=e;return jsx(O,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var Wh=Jh;c();function qh(e){let r=R({defaultValue:e.initialState==="expanded"}),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(g,{clickable:true,onClick:()=>{r.upsert(l=>(l?e.onContract():e.onExpand(),!l));},children:jsx(i,{})})}var Qh=qh;c();function ey(e){return jsx(O,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var oo=ey;c();function ny(e){return jsx(O,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var bo=ny;c();function ay(e){return jsx(O,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var cy=ay;c();function uy(e){let r=jsx(O,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(Co,{triggerElement:r,options:e.options}):r}var dy=uy;c();function my(e){return jsx(O,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var io=my;c();function gy(e){return jsx(O,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var Po=gy;c();function vy(e){return jsx(O,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var ao=vy;c();function _y(e){return jsx(O,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var ko=_y;c();function xy(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(g,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:ri({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(C,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(C,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Sy=xy;c();function ky(e){return jsxs(ae.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(ae.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(je,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(ae.Content,{width:"full",gap:"xs",children:[jsx(ae.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(ae.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(ae.TrailingAddOn,{children:jsx(ot,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var $y=ky;c();function Ey(e){let[r,t]=useState(e.selectedDate||new Date),n=R({defaultValue:r}),o=e.minDate==="today"?new Date:Tu(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?jy():Tu(e.maxDate),a=p=>{t(p),e.onDateSelected?.(p);},l=p=>p.toDateString()===r.toDateString(),s=p=>p.toDateString()===new Date().toDateString(),u=p=>{let h=n.read();return h.getMonth()===p.getMonth()&&Ny(p.getDate(),h.getMonth())},d=p=>n.upsert(p);return jsx(Dy,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:o,maxDate:i,onMonthChange:d,onYearChange:d,renderCustomHeader:p=>jsx(Ry,{...p,minDate:o,maxDate:i}),form:e.formId,selected:r,onChange:a,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:p=>["calendar-date",l(p)?"selected":"unselected",s(p)?"today":"",u(p)?"":"out-of-bounds",Fy(p,i)?"excluded":""].join(" ")})}function Ry(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((s,u)=>{let d=e.date.getFullYear();return d===e.minDate.getFullYear()?u>=e.minDate.getMonth():d===e.maxDate.getFullYear()?u<=e.maxDate.getMonth():true}),n=r[e.date.getMonth()],o=s=>{e.changeMonth(r.findIndex(u=>u===s));},i=s=>{e.changeYear(parseInt(s));},a=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),l=s=>["calendar-chevron","calendar-nav",s?"disabled":""].join(" ");return jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:l(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(g,{row:true,align:"center",gap:"md",children:[jsx(Ou,{label:n,isSelected:s=>n===s,options:t.map(s=>({value:s})),onOptionClick:o}),jsx(Ou,{label:`${e.date.getFullYear()}`,isSelected:s=>`${e.date.getFullYear()}`===s,options:a().map(s=>({value:s.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:l(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Ou(e){return jsx(Dr,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Tu=e=>{if(e)return e instanceof Date?e:new Date(e)};var jy=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Fy=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>n.year)return true;if(t.year===n.year){if(t.month>n.month)return true;if(t.month===n.month)return t.date>n.date}return false},Ny=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Io=memo(Ey);c();c();var Ay=Re({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Eu=Ay;function Uy(e){let r=R({defaultValue:null}),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...a}=e,l=e.actionButtonSize||"xs",s=p=>{r.upsert(p),e.onDateSelected?.(p);},u=()=>{let p=r.read();p&&e.onDoneClick?.(p);},d=p=>{e.onOpenChange?.(p);};return jsxs(E.Root,{hideCloseButton:true,onOpenChange:d,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(E.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(E.Body,{children:jsx(Io,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(E.Footer,{children:[jsx(E.ActionTrigger,{children:jsx(Yr,{size:l,fade:.5})}),jsx(E.ActionTrigger,{children:jsx(Eu,{size:l,onClick:u})})]})]})}var Ly=Uy;c();function Hy(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(g,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(a=>jsxs("span",{children:[jsxs("strong",{children:[a,":"]}),"\xA0",i.content[a]]}))})};return jsxs(E.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(E.Header,{children:"Payment Options"}),jsx(E.Body,{gap:"sm",width:"full",children:e.options.map((i,a)=>{let l=i.variables?i?.["pre-element"]?.(i.variables):void 0,s=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[l,jsxs(g,{width:"full",css:{backgroundColor:r?.index===a?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(g,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===a?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:a});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(g,{asChildren:!i.description,width:"full",children:[jsx(C,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:Z.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var ju=e=>e,K6=e=>ju({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),Y6=()=>ju({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Co=Hy;c();var Fu=createContext(null);function Do(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",a=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),l=e.actionButton?.(t?"succes":"error"),s={title:P({fontSize:e.titleFontSize||"lg"}),description:P({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:d,lineHeight:p,opacity:h})=>({fontSize:d,lineHeight:p,opacity:h});return jsx(Fu.Provider,{value:{color:i},children:jsxs(E.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(E.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:S(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(g,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:u(s.title),children:n}),jsx("span",{style:u(s.description),children:o})]})]}),jsxs(E.Footer,{row:true,gap:"md",align:"center",children:[jsx(E.ActionTrigger,{children:jsx(O,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(t_,{...l}):void 0]})]})})}function t_(e){let{color:r}=useContext(Fu);return jsx(O,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var Nu=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Do.tryAgainButton=Nu("Try Again");Do.retryButton=Nu("Retry");var Qt=Do;c();var Bo="onPaper[0.1]",Oo=", ";function i_(e){let r=R({defaultValue:typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick}),t=Uu(),n=R({defaultValue:{subject:e.subject??"",body:{text:e.body||""},recipients:e.recipients||[],attachments:e.attachments||[]}}),o=(l,s)=>{n.upsert(u=>({...u,[l]:s}));},i=()=>strictArray(n.read().recipients),a=async()=>{let{subject:l,body:{text:s},attachments:u}=n.read(),d=await e.onSendClick({subject:l,body:{text:s,html:e.bodyToHtml?.(s)},recipients:i(),attachments:u});if(typeof d!="object")return;let{error:p,response:h}=d;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(d)),p)return t.show({error:p});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(g,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(Qt,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:Qt.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(c_,{recipients:i()}):jsx(a_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Oo))}),jsx(l_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(s_,{defaultValue:n.read().body.text,readOnly:e.readOnly,onChange:l=>o("body",{text:l})}),jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(So,{attachments:n.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(Po,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function a_(e){let[r,t]=useState(false),n=o=>jsx(C,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Au,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Oo),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(C,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(g,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function c_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Bo,"bottom"],children:[jsx(g,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(g,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(Me,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(C,{ellipsis:true,text:r})]}))}),jsx(To,{textToCopy:e.recipients.join(Oo)})]})}function l_(e){let r=!!(e.readOnly&&e.subject);return jsxs(g,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Bo,"bottom"],children:[jsx(Au,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(To,{textToCopy:e.subject})]})}function s_(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(g,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${S("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:Z.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(g,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(To,{textToCopy:e.defaultValue})})]})}function Au(e){return jsx(he,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Bo,"bottom"],onChange:e.onChange})}function To(e){return jsx(br,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var u_=i_;c();c();function d_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(Vu,{onClick:e.onNoClick}),jsx(Zu,{onClick:e.onYesClick})]})}var Eo=d_;function p_(e){return jsxs(g,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Eo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var g_=p_;c();function h_(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(g,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(No,{value:r})})}):jsx(y_,{})})}function y_(){let e=r=>jsx(C,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(g,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(C,{color:"jsonKey",text:'"JSON"'}),":",jsx(C,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var __=["string","number","boolean"];function jo(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(C,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function Mu(e){return jsxs(Fragment,{children:[jsx(C,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(a=>typeof a=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(No,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(Mu,{value:r}):jsx(jo,{value:r})})),jsx(C,{color:"arrayBracket",text:"]"})]})}function No(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(C,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,a,l)=>{let s=i,u=e.value[s],d=()=>__.includes(typeof u)?jsx(jo,{value:u}):Array.isArray(u)?jsx(Mu,{value:u}):typeof u=="object"?jsx(No,{indent:true,value:u}):jsx(jo,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(C,{color:"jsonKey",text:`"${s}"`})," : ",jsx(d,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(C,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Ao=h_;c();c();c();function P_(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...Lt.options].filter(l=>l!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,n=useRef(null),o=(...l)=>{if(e.disabled)return;let s="target"in l[0]?l[0].target.files:l[0],u=[],d=[],p=h=>strictArray(h).map(y=>toObject(y,{uploadDate:"now",filepath:e.getFilePath?.(y)}));for(let h of s){if(u.length+d.length>=t)break;r.includes(h.type)?u.push(h):d.push(h);}isEmpty(u)||e.onAccept?.(u,p(u)),isEmpty(d)||e.onReject?.(d,p(d));},i=l=>{if(l.preventDefault(),!e.allowDrop||e.disabled)return;let s=[];if(l.dataTransfer.items?s=[...l.dataTransfer.items].filter(u=>u.kind==="file").map(u=>u.getAsFile()):s=[...l.dataTransfer.files],!isEmpty(s)){let u=new DataTransfer;s.forEach(d=>u.items.add(d)),o(s);}},a=()=>{e.disabled||n.current.click();};return jsxs("label",{className:e.className,style:{...P(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:l=>l.preventDefault(),onClick:a,children:[e.children,jsx("input",{id:"file",type:"file",ref:n,style:{display:"none"},onChange:o,accept:r.join(", "),multiple:e.multiple})]})}var Wu=P_;function Xu(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(Wu,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(O,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:a,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var it=Xu({fileClass:"file"}),cj=Xu({fileClass:"receipt",accepts:["img"]});function D_(e){let[r,t]=useState(e.defaultPicture.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(C,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,a)=>{let l=a[0];t(l.path),e.onChange?.(l);};return jsx(n,{children:jsxs(g,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(Me,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(it,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var B_=D_;c();function T_(e){let r=e.authProviders||Ps.options;return jsxs(g,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(g,{width:"full",color:"inherit",children:[jsx(C,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(g,{width:"full",color:"inherit",children:r.map(t=>jsx(E_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function E_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(O,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var R_=T_;c();c();var Yu={timestamp:Date.now(),status:"info",response:"Hello World!"};function U_(e){useEffect(()=>{e.initialMessage&&(Yu.response=e.initialMessage);},[]);let r=[Yu,...e.logs];return jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(L_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function L_(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:S(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(cu,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:S(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Lo=U_;function H_(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(g,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(Hs,{item:o,info:n})})}),jsx(Lo,{initialMessage:"Awaiting registration process...",logs:r})]})}var X_=H_;c();function Y_(e){return jsx(he,{...e,leadingAdornment:null,width:e.width||"20rem",backgroundColor:e.backgroundColor||"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:e.searchIconSize||"1.15rem"}),placeholder:e.placeholder||"Search..."})}var xo=Y_;c();c();function Q_(e){return e.error?jsx(Kt,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(C,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Zo=Q_;function tb(e){let r=R({defaultValue:e?.verifyError}),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(he,{...e,leadingAdornment:jsx(Zo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(su,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(ko,{onClick:o})})}var Vo=tb;c();function rd(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:a=o.fontSize||e.fontSize||".85rem",fontWeight:l=o.fontWeight,lineHeight:s=o.lineHeight=a,style:u}=e.slotProps?.[n]||{};return jsx(C,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{...u||{},lineHeight:u?.lineHeight||(s in Z?Z[s]:s)}})};return jsxs(g,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(Me,{size:e.slotProps?.avatar?.size,fallback:e.useDefaultFallback?void 0:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color,style:e.slotProps?.avatar?.style,fallbackStyle:e.slotProps?.avatar?.fallbackStyle}),jsxs(g,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}rd.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var ab=rd;c();function td(e){return r=>{let[t,n]=useState(false);return jsx(O,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var xu=td({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:n}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=n.text),r?.(n.text),{response:"success"})}}),br=td({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{code:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});c();function od(e){return r=>jsx(O,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var XF=od(BsPlus),GF=od(BsDash);c();function id(e){return r=>jsx(O,{...e.defaults,text:e.label,onClick:r.onClick})}var Zu=id({label:"Yes"}),Vu=id({label:"No",defaults:{variant:"outline"}});c();var iN=Re({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function xb(e){let r=R({defaultValue:e.defaulValue?.token||""}),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let l=await e.onVerifyClick?.(r.read());return o(l),l.verified?{response:"success"}:{error:l.error}},a=l=>{r.upsert(l),e.onTokenChange?.(l);};return jsxs(g,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(Vo,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:a,onChange:a,onVerifyClick:i}),jsxs(g,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx(br,{textToCopy:n.payload}),jsx(Ao,{fullSize:true,json:n?n.payload:void 0})]})]})}var Sb=xb;c();c();function Jt(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}c();c();c();c();var cd=(T=>(T.white="#FFF",T.black="#000",T.gray="#808080",T.pdf="#F40F02",T.word="#41A5EE",T.excel="#21A366",T.img="#8d481f",T.txt="#8c61a9",T.deepSkyBlue="#00BFFF",T.lightSkyBlue="#87CEFA",T.sendBlue="#0a57d0",T.onSendBlue="#c3dfff",T.book_it="#009688",T.stickyNote="#EFAD03",T.matteBlack="#28282B",T.navyBlue="#000080",T.teal="#008080",T.paper="#ffffff",T.onPaper="#28282B",T.paperVariant="#E6E6E6",T.success="#4BB543",T.hyperlink="#2979ff",T.gold="#d4af37",T.carlsbergGreen="#17B169",T.billsRed="#C60C30",T.info="#1565c0",T.error="#C60C30",T.warning="#f9a825",T.jsonKey="#D56C75",T.string="#59A779",T.number="#D19A5A",T.boolean="#56B6C2",T.jsonBracket="#FFCA1D",T.arrayBracket="#DA68A7",T.delete="#C60C30",T.pdf_table_header="#28282B",T))(cd||{}),$e=cd;c();var Rb=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),se=Rb;c();c();function FA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function ZA(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function KA(e){let[r,t]=useState({}),n=P(e.style);n={...n,...e?.inject?.()||{}};let o=document.getElementById("root")??document.body;return useEffect(()=>{let i=e.tag||"div",a=document.createElement(i),s=(Array.isArray(e.style.children)?e.style.children:[e.style.children]).map(p=>{let h=document.createElement(i);return h.innerHTML=Lb.renderToStaticMarkup(p),h});Object.assign(a.style,{...n,visibility:"hidden"}),s.forEach(p=>a.appendChild(p)),o.appendChild(a);let u=getComputedStyle(a),d=Object.keys(n).filter(p=>p in u&&typeof u[p]=="string").map(p=>{let y=u[p];return [p,p==="opacity"?y.toString():y===0?"0px":y]});t(Object.fromEntries(d)),o.removeChild(a);},[e.style]),{style:r}}c();function Uu(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}c();c();function H(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}function R(e){let r=e?.persist?.storage==="local-storage"?localStorage:sessionStorage,t=new Error("Failed to store value of type 'function', in useStore."),{triggerRerender:n}=H(),o=useRef({fresh:(()=>{let d=castReturn(e.defaultValue);if(typeof d=="function")throw t;if(e?.persist?.key){let p=JSON.parse(r.getItem(e.persist.key));return p??d}return d})(),stale:null}),i=useRef(false);return useEffect(()=>()=>{e?.persist?.deleteOnUnmount&&e.persist.key&&r.removeItem(e.persist.key);},[]),{debug:()=>{let d=o.current.stale,p=o.current.fresh,h=()=>{if(Array.isArray(d)){let $=d;return {from:d,to:p,difference:p.filter((x,w)=>w<$.length?$[w]!==x:false)}}switch(typeof d){case "string":return {from:d,to:p,difference:p.replace(d,"")};case "object":return {from:d,to:p,difference:Object.fromEntries(Object.keys(d).map($=>{let b=$;if(p[b]!==d[b])return [b,p[b]]}).filter($=>!!$))};default:throw new Error("Not yet implemented bro!")}},y=250;return console.log(buildArray(y,$=>$===0||$===y?"/":"*").join(""),h()),h()},upsert:(d,...p)=>{let{skipOnChange:h=false,skipRender:y=false,skipValidation:$=false,skipTransform:b=false}=p[0]||{},x=typeof d=="function"?d(o.current.fresh):d,w=o.current.fresh;if(e?.readOnly===true||e?.readOnly==="lazy"&&i.current)throw console.error("Updating a readOnly store is prohibited"),new Error("Updating a readOnly store is prohibited",{cause:`Attempt to change ${e?.defaultValue} -> ${x}`});if(e?.readOnly==="lazy"&&!i.current&&(i.current=true),!b&&e?.transform&&(x=e.transform(x)),typeof x=="function")throw t;if(JSON.stringify(x)!==JSON.stringify(w)){if(!$&&e?.validate?.(x)===false){e?.onValidationFail?.(x);return}o.current={fresh:x,stale:w},e?.persist?.key&&r.setItem(e.persist.key,JSON.stringify(x)),h||e?.onChange?.(x,w),!y&&e.reactive&&n();}},read:()=>structuredClone(o.current.fresh),delete:()=>{let d=structuredClone(o.current.fresh),p=structuredClone(o.current.stale);o.current.fresh=null,o.current.stale=null,e?.onDelete?.(d,p),e?.persist?.key&&r.removeItem(e.persist.key);}}}c();function eu(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Fi(){return useContext(Xt)}c();function hU(e,r){let[t,n]=useState(()=>{try{let a=window.sessionStorage.getItem(e);return a?JSON.parse(a):r}catch(a){return console.log(a),r}});return [t,a=>{try{let l=a instanceof Function?a(t):a;n(l),window.sessionStorage.setItem(e,JSON.stringify(l));}catch(l){console.log(l);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(a){console.log(a);}}]}c();function CU(e){let r=useContext(ft),{triggerRerender:t}=H(),n=s=>{throw new Error("Invalid key used in useEvent",{cause:`${s} with type "${typeof s}" provided, but a key with type "string" was expected.`})};return {emit:(s,...u)=>{if(typeof s!="string")return n(s);r.emit(s,u?.[0]),e?.rerenderOnEmit&&t();},on:(s,u,d)=>{if(typeof s!="string")return n(s);let p=r.on(s,u);return d?.rerender&&t(),p},listeners:s=>typeof s!="string"?n(s):r.listeners(s),dettach:s=>typeof s!="string"?n(s):r.dettach(s)}}c();function IU(e){let{triggerRerender:r}=H(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}c();export{So as AttachmentsButton,_o as AttachmentsDialog,Me as Avatar,oP as AvatarGroup,Rs as Badge,O as BasicButton,g as BasicDiv,je as BasicImg,mn as BasicOl,vn as BasicOption,Dr as BasicSelect,C as BasicSpan,Lm as BasicTable,Io as Calendar,Ly as CalendarDialog,Yr as CancelButton,ae as Card,Ei as Checkbox,$e as ColorResources,OB as ConfirmationDialog,br as CopyButton,se as CssColors,Ee as CssShapes,q as CssSpacing,JC as Debounce,ot as DeleteButton,E as Dialog,Us as Disclaimer,iN as DownloadButton,IP as Drawer,Wh as EditButton,xD as Editable,u_ as EmailComposer,Zt as EmptyState,Zo as ErrorTooltip,qo as EventContainer,Qh as ExpandableButton,LB as FancyFormDialog,dD as FileDropzone,lO as FileViewer,Z as FontSize,Ws as Indicator,Hs as ItemInfo,Ao as JsonViewer,Sb as JwtVerifier,tB as MediaCard,Nv as Menu,Sy as MoneyDisplayCard,GF as NegativeButton,oo as NextButton,Vu as NoButton,bo as OpenButton,cy as OptionsButton,yP as PageIndicator,JO as PageSlider,bT as Paper,xu as PasteButton,dy as PaymentOptionsButton,Co as PaymentOptionsDialog,B_ as PictureUploader,sr as Popover,XF as PositiveButton,io as PreviousButton,dB as ProfileCard,qC as ProgressBar,$y as ReceiptCard,co as SaveButton,xo as SearchTextField,uT as SegmentedControls,Po as SendButton,iE as Separator,R_ as SignInWidget,QB as SimpleFormDialog,uP as Spinner,su as Status,OT as Stepper,ao as SubmitButton,FC as Switch,cu as Tag,X_ as TaskLogger,Qt as TaskResultDialog,Lo as Terminal,he as TextField,qT as Timeline,Kt as Tooltip,it as UploadButton,cj as UploadReceiptButton,ab as UserProfile,ko as VerifyButton,Vo as VerifyTextField,Rd as WavyUi,Zu as YesButton,Eo as YesNoButtonGroup,g_ as YesOrNoForm,P as applyBasicStyle,K6 as bankTransferPaymentOption,V0 as borderRadius,A0 as buildCSS,q0 as computedCssVariable,Fd as convertHexUnitTo256,U0 as cssTransition,ju as definePaymentOption,M0 as disabledBorderRadius,J0 as dragElement,me as ellipsis,Z0 as flexCenter,Jt as getFileIcon,eh as getPaperDim,ti as getScrollParent,Nd as hexToRgba,Y6 as inAppPaymentOption,on as isOverflown,ni as isSpanMultiLine,jd as isValidHex,H0 as nativeEllipsis,W0 as noSpaceStyle,rh as paperStyle,Y0 as remAsPx,Ad as remToPx,S as resolveBasicColor,Cr as restrictLineCount,X0 as rgbToRgba,G0 as screenHasMaxWidth,K0 as screenHasMinWidth,L0 as solidBorder,oi as stripHtml,ri as tiledBackground,FA as useAsyncEffect,KA as useComputedStyle,CU as useEvent,Uu as useModalControls,eu as usePageSliderController,Fi as usePopoverContext,ZA as usePostRenderEffect,H as useRerender,hU as useSessionStorage,IU as useSmartState,R as useStore};
45
+ translateX(calc(${h} * -5rem))`,filter:`blur(calc(${y} * .5rem))`},children:typeof d=="function"?jsx(d,{isActive:p===o}):d},p)}),!e.hideControls&&jsx(qs,{inset:"right",disabled:!hasIndex(e.children,o+1),onClick:s})]})})}function qs(e){let r=useContext(Qs),t=e.inset==="left"?BsArrowLeft:BsArrowRight,n=e.disabled||r.transitioning;return jsx(g,{fade:n?.5:1,cursor:n?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":n?void 0:{animation:"squish 300ms ease-in-out"},":active":n?void 0:{scale:.9,opacity:.75}},onClick:n?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}c();c();var Xt=createContext(null);function sr(e){let r=R({defaultValue:e.open??false}),{triggerRerender:t}=H(),n=`--${v4()}`,o=useRef(null),i=useRef(null),a=we__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:n});if(e.asChild)return e.children;useEffect(()=>{let u=e.placement||"bottom-left",d=["top","right","bottom","left"].includes(u),p=d?{positionArea:u}:Kv(e.anchorPoint||"top-left",Gv(u));if(!e.visibleOnScroll){let y=ti(o.current);y&&y.addEventListener("scroll",$=>{o.current?.hidePopover(),Object.assign(o.current?.style,{transform:`translateX(-${$.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:n});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[u.split("-")[0]];Object.assign(o.current?.style,{position:"absolute",positionAnchor:n,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...p,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...P({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:l(e.minWidth),maxWidth:l(e.maxWidth),width:l(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&o.current?.showPopover();let u=e.displayAction||"click";if(o.current?.addEventListener("beforetoggle",d=>{let p=d.newState==="open";p?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(p),r.upsert(p),!p&&e.rerenderOnClose&&t();}),u==="click")i.current?.addEventListener("click",()=>{s(()=>o.current?.togglePopover());});else if(u==="hover"){let d,h=()=>{d&&(d=null),s(()=>o.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{s(()=>o.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?d=setTimeout(h,20):h();}),e.allowInteractions&&(o.current?.addEventListener("mouseenter",()=>{d&&clearTimeout(d);}),o.current?.addEventListener("mouseleave",h));}},[]);let l=(u,d)=>u==="match-anchor"?getComputedStyle(i.current)?.width:u??d,s=(u,d)=>{let p=200;typeof e.delay=="number"?p=e.delay:e.delay&&d in e.delay&&(p=e.delay[d]),setTimeout(u,p);};return jsxs(Xt.Provider,{value:{open:()=>{o.current?.showPopover();},close:()=>{o.current?.hidePopover();},isOpen:()=>r.read()},children:[a,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:n,ref:o,className:"popover-transition",children:e.content})]})}var Gv=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Kv=(e,r)=>{let{0:t,1:n}=e?.split("-");return {[t]:r.vertical,[n]:r.horizontal}};c();function uT(e){let r=n=>{e.onChange?.(n.value);},t=e.controls[0];return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue||(typeof t=="string"?t:t?.value),value:e.value,onValueChange:r,style:{backgroundColor:e.backgroundColor?S(e.backgroundColor):void 0,boxShadow:e.borderColor?`${S(e.borderColor)} 0px 0px 0px 1px`:void 0,gap:e.gap in q?q[e.gap]:e.gap},children:[jsx(SegmentGroup.Indicator,{backgroundColor:e.indicatorColor?S(e.indicatorColor):void 0}),e.controls.map(n=>{let o=typeof n=="string"?n:n.value;return jsxs(SegmentGroup.Item,{cursor:"pointer",padding:e.padding in q?q[e.padding]:e.padding||".5rem",value:o,style:{height:"fit-content",border:0},children:[jsx(Qv,{selectedColor:e.selectedColor,color:e.color,fontSize:e.fontSize}),jsx(SegmentGroup.ItemHiddenInput,{style:{border:0}})]},o)})]})}function Qv(e){let r=useSegmentGroupItemContext();return jsx(SegmentGroup.ItemText,{style:{fontSize:e.fontSize in Z?Z[e.fontSize]:e.fontSize,border:0,color:S(r.checked&&e.selectedColor?e.selectedColor:e.color)},children:r.value})}c();function cu(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:S(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}c();function bT(e){return jsx(g,{id:e.id,style:rh({size:e.size,responsive:e.responsive,style:e.style}),children:e.children})}var eh=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()],rh=e=>{let{height:r,width:t}=eh(e.size),n={a4:95,a6:80}[e.size.toLowerCase()],o=e.responsive??true;return {...e?.style||{},maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)",backgroundColor:S("paper"),color:S("onPaper"),overflow:"hidden"}};c();function su(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(g,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(g,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(C,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}c();function OT(e){return jsxs(({children:t})=>{let n={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...n,children:t}):jsx(Steps.Root,{...n,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,n)=>jsxs(Steps.Item,{index:n,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},n))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,n)=>jsx(Steps.Content,{height:"full",width:"full",index:n,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},n)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}c();c();var fu=we.forwardRef(function(r,t){let{showArrow:n,children:o,disabled:i,portalled:a=true,content:l,contentProps:s,portalRef:u,...d}=r;return i?o:jsxs(Tooltip.Root,{...d,children:[jsx(Tooltip.Trigger,{asChild:true,children:o}),jsx(Portal,{disabled:!a,container:u,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...s,children:[n&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),l]})})})]})});function Kt(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:n,backgroundColor:o}=P({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(fu,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:n,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":o}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...P(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}c();var fo=createContext(null);function mh(e){let r=R({defaultValue:[]}),t=e.lineSeparatorColor||"onSurface[0.5]",n=Array.isArray(e.children)?e.children:[e.children],o=n.length===1?n:n.map((a,l)=>l===0||!e.rowGap?a:jsxs(Fragment,{children:[jsx("p",{}),jsx(g,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:S(t)}})}),jsx("p",{}),a]})),i=()=>{if(n.length===1)return "both";let a=[...r.read(),0];if(r.upsert(a),a.length===1)return "first";if(a.length===n.length)return "last"};return jsx(fo.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(g,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:o})})}function fh(e){let[r,t]=useState(),{register:n}=useContext(fo),{indicator:o,leadingEl:i,trailingEl:a}=e.styles||{},{0:l,1:s}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let d=n();typeof d=="string"&&t(d);},[r]);let u=d=>r===d||r==="both";return jsxs(Fragment,{children:[jsx(gu,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?s:l}),jsxs(g,{align:"center",height:"full",children:[jsx(vu,{hide:u("first")}),jsx(g,{style:{...P({...o||{},size:o?.size??".6rem",corners:o?.corners||"circle",backgroundColor:o?.backgroundColor||"onSurface",centerContent:o?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(vu,{hide:u("last")})]}),jsx(gu,{disabled:e.disabled,style:a,children:e.reverse?l:s})]})}function gu(e){return jsx(g,{size:"full",style:{...P({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function vu(e){let{lineSeparatorColor:r}=useContext(fo);return jsx(g,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var qT={Root:mh,Item:fh};c();function iE(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:S(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:S(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}c();c();var po=(e,r)=>{let t=n=>!!n.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function he(e){let[r,t]=useState(e.defaultValue??""),n=e.value!==void 0,o=e.ref||useRef(null),i=useRef(null),a=e.maxChars??1/0,l="2rem",s=b=>typeof e.indent=="string"?e.indent:e.indent?.[b],u="md",{size:d,...p}=e,h={label:P({...e?.slotProps?.label,row:true,fade:e?.slotProps?.label?.fade||.75,fontSize:e.slotProps?.label?.fontSize||(typeof d=="string"&&d in Z?d:void 0)}),helperText:P({...e?.slotProps?.helperText}),root:P({width:e.width}),input:P({...p,width:"full",padding:{top:u,left:e.leadingContent?s("left")||l:u,right:e.trailingContent||e.showCharCounter?s("right")||l:u,bottom:u},corners:!e.corners&&e.corners!==0?".75rem":e.corners,style:{boxShadow:"none",...e.style}})},y=b=>{o.current.value=b,e.onChange(b,null);};useEffect(()=>{e.showCharCounter&&Object.assign(o.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let b=x=>{if(e.format!=="currency")return;let w=x;if(w=w.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((B,k)=>k<2).join("."),w&&takeLast(w.split(""))[0]!=="."){let B=parseFloat(w);if(!isNaN(B)){let k=new Intl.NumberFormat;y(k.format(B));}}};o.current?.addEventListener?.("beforeinput",x=>{let w=x.data,B=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";B==="all"||Array.isArray(B)&&B.includes("all")||w===null||(!Array.isArray(B)&&!po(w,B)||Array.isArray(B)&&B.some(k=>!po(w,k)))&&x.preventDefault();}),o.current?.addEventListener?.("paste",x=>{b(x.target.value);}),o.current?.addEventListener?.("input",x=>{b(x.target.value);});},[o.current]);let $=b=>{e.onChange?.(b,void 0),e.onPasteClick?.(b);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},style:{...h.root,boxShadow:"none"},children:[(e.label||e.required)&&jsxs(Field.Label,{style:{...h.label},children:[e.required?e.label||"required":e.label," ",e.required&&jsx(Field.RequiredIndicator,{})]}),jsx(Sh,{elementRef:o,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:$,slotProps:e.slotProps,children:jsx(InputGroup,{css:{boxShadow:"none","--focus-color":"transparent","--error-color":"transparent"},startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(C,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(typeof e.size=="string"&&e.size in Z?Z[e.size]:void 0),text:`${(e.value??r).length}/${a}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||o,width:"full",autoFocus:e.autoFocus,size:d,zIndex:1,variant:e.variant,css:{transition:e.disableTransition?"none":"all 200ms ease-in","--focus-color":S(e.focusColor||"primary")},onKeyDown:b=>{b.key==="Enter"?e.onEnterKeyPressed?.():b.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,_placeholder:e.slotProps?.placeholder?.color?{color:S(e.slotProps.placeholder.color)}:void 0,onChange:b=>{let x=b.currentTarget.value;switch(e.allowHtmlInput||(x=oi(x)),e.trimOnChange){case "start":x=x.trimStart();break;case "end":x=x.trimEnd();break;case true:x=x.trim();break}e.validateInput?.(x)!==false&&(e.onChange?.(x,b),n||t(x));},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function Sh(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:q.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(br,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(xu,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}c();function Us(e){let[r,t]=useState(false),o={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",a=e.gap||"md",l=jsx(o,{size:i,style:{flexShrink:0}});return jsxs(g,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?a:void 0,corners:"md",backgroundColor:S(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?l:jsxs(g,{row:true,gap:a,align:"center",children:[l,jsx(C,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:s=>{s&&t(ni(s));},style:P({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${P({gap:a}).gap})`}}),children:e.message})]})}c();c();c();c();function Cu(e){return {FlyLeavingBox:wh}[e]}var yo=createContext(null);function Dh(e){let r=R({defaultValue:e.attachments||[]}),{triggerRerender:t}=H(),n=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(yo.Provider,{value:{...e,attachmentsEventListener:(o,i)=>{let a=r.read();o==="add"&&(a=[...a,i]),o==="delete"&&(a=a.filter(({uid:l})=>l!==i.uid)),r.upsert(a),e.onAttachmentsChange?.(a),o==="delete"&&isEmpty(a)&&t(),e.attachmentsEventListener?.(o,i);},attachments:r.read(),rerender:t},children:jsxs(E.Root,{onClose:n,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(E.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(E.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Th,{}):jsx(Bh,{})})]})})}function Bh(){let e=useContext(yo),r=R(void 0),[t,n]=useState(""),[o,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let a=t.trim()?o.filter(({name:p})=>p.toLowerCase().includes(t.toLowerCase())):o,l=isEmpty(a)&&!!t.trim(),s=p=>{i(h=>h.filter(({uid:y})=>y!==p.uid)),e?.onAttachmentDeleted?.(p),e?.attachmentsEventListener?.("delete",p);},u=(p,h)=>{let y=h[0];i([...o,y]),e?.onAttachmentAdded?.(y),e?.attachmentsEventListener("add",y);},d=p=>{e?.onOpenAttachment?.(p),e?.attachmentsEventListener?.("open",p);};return jsxs(Fragment,{children:[jsx(xo,{width:"full",value:t,onChange:n}),jsx(g,{size:"full",maxHeight:"10rem",spill:"auto",padding:l?"lg":void 0,centerContent:l,children:l?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):a.map((p,h,y)=>jsx(Oh,{scrollIntoView:r.read()===false&&h===y.length-1,value:p,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(p):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(p):e?.openDisabled,onDelete:s,onOpen:d},p.uid))}),!e.hideUploadButton&&jsx(it,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:u})]})}function Oh(e){let{alias:r,path:t,name:n,sizeInBytes:o}=e.value,i=Jt(r);return jsxs(ae.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(ae.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(je,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(ae.Content,{gap:"sm",width:"full",children:[jsx(ae.Item,{truncateStyle:"ellipsis",value:n}),jsxs(g,{ref:a=>a&&e.scrollIntoView&&a.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(C,{fontWeight:"bold",text:r.toUpperCase()}),jsx(g,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(C,{fade:.5,text:parseFileSize(o)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(ae.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(bo,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(ot,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Th(){let e=useContext(yo);return jsxs(Zt.Root,{children:[jsx(Zt.Indicator,{size:"7rem",disableFade:true,element:jsx(je,{spill:"hidden",size:"full",src:Cu("FlyLeavingBox")})}),jsx(Zt.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(it,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(n=>{e?.attachmentsEventListener?.("add",n);}),e.rerender();}})]})}var _o=Dh;function jh(e){let r=R({defaultValue:Array.isArray(e.attachments)?e.attachments:[]}),{triggerRerender:t}=H(),n=o=>{r.upsert(o);};return jsx(Kt,{tooltip:"Attachments",placement:"right",children:jsx(Rs,{circleChild:true,asChild:!e.attachments,badge:jsx(Ws,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(Fh,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:n,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(g,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function Fh(e){let{asChild:r,children:t,unmountOnExit:n,onAttachmentsChange:o,onClose:i,...a}=e;return r?t:jsx(_o,{...a,unmountOnExit:n,triggerElement:t,onAttachmentsChange:o,onClose:i})}var So=jh;c();var Ah=Re({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Yr=Ah;c();function Zh(e){return jsx(O,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var ot=Zh;c();function Jh(e){let{iconOnly:r,...t}=e;return jsx(O,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var Wh=Jh;c();function qh(e){let r=R({defaultValue:e.initialState==="expanded"}),t=e.icon||"chevron",n=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,o=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?o:n;return jsx(g,{clickable:true,onClick:()=>{r.upsert(l=>(l?e.onContract():e.onExpand(),!l));},children:jsx(i,{})})}var Qh=qh;c();function ey(e){return jsx(O,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var oo=ey;c();function ny(e){return jsx(O,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var bo=ny;c();function ay(e){return jsx(O,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var cy=ay;c();function uy(e){let r=jsx(O,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(Co,{triggerElement:r,options:e.options}):r}var dy=uy;c();function my(e){return jsx(O,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var io=my;c();function gy(e){return jsx(O,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var Po=gy;c();function vy(e){return jsx(O,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var ao=vy;c();function _y(e){return jsx(O,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var ko=_y;c();function xy(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(g,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:ri({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(g,{gap:"sm",color:"inherit",children:[e.label&&jsx(C,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(g,{row:true,align:"end",gap:"sm",children:[jsx(C,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(C,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var Sy=xy;c();function ky(e){return jsxs(ae.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(ae.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(je,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(ae.Content,{width:"full",gap:"xs",children:[jsx(ae.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(ae.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(ae.TrailingAddOn,{children:jsx(ot,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var $y=ky;c();function Ey(e){let[r,t]=useState(e.selectedDate||new Date),n=R({defaultValue:r}),o=e.minDate==="today"?new Date:Tu(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:e.maxDate==="end-of-year"?jy():!e.maxDate||e.maxDate==="none"?null:Tu(e.maxDate),a=p=>{t(p),e.onDateSelected?.(p);},l=p=>p.toDateString()===r.toDateString(),s=p=>p.toDateString()===new Date().toDateString(),u=p=>{let h=n.read();return h.getMonth()===p.getMonth()&&Ny(p.getDate(),h.getMonth())},d=p=>n.upsert(p);return jsx(Dy,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:o,maxDate:i,onMonthChange:d,onYearChange:d,renderCustomHeader:p=>jsx(Ry,{...p,minDate:o,maxDate:i}),form:e.formId,selected:r,onChange:a,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:p=>["calendar-date",l(p)?"selected":"unselected",s(p)?"today":"",u(p)?"":"out-of-bounds",Fy(p,i)?"excluded":""].join(" ")})}function Ry(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((s,u)=>{let d=e.date.getFullYear();return d===e.minDate.getFullYear()?u>=e.minDate.getMonth():d===e.maxDate.getFullYear()?u<=e.maxDate.getMonth():true}),n=r[e.date.getMonth()],o=s=>{e.changeMonth(r.findIndex(u=>u===s));},i=s=>{e.changeYear(parseInt(s));},a=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),l=s=>["calendar-chevron","calendar-nav",s?"disabled":""].join(" ");return jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:l(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(g,{row:true,align:"center",gap:"md",children:[jsx(Ou,{label:n,isSelected:s=>n===s,options:t.map(s=>({value:s})),onOptionClick:o}),jsx(Ou,{label:`${e.date.getFullYear()}`,isSelected:s=>`${e.date.getFullYear()}`===s,options:a().map(s=>({value:s.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:l(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Ou(e){return jsx(Dr,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Tu=e=>{if(e)return e instanceof Date?e:new Date(e)};var jy=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var Fy=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>n.year)return true;if(t.year===n.year){if(t.month>n.month)return true;if(t.month===n.month)return t.date>n.date}return false},Ny=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var Io=memo(Ey);c();c();var Ay=Re({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Eu=Ay;function Uy(e){let r=R({defaultValue:null}),{controller:t,triggerElement:n,backdropBlur:o,backgroundColor:i,...a}=e,l=e.actionButtonSize||"xs",s=p=>{r.upsert(p),e.onDateSelected?.(p);},u=()=>{let p=r.read();p&&e.onDoneClick?.(p);},d=p=>{e.onOpenChange?.(p);};return jsxs(E.Root,{hideCloseButton:true,onOpenChange:d,width:"max-content",controller:t,triggerElement:n,backgroundColor:i||"surface[0.25]",backdropBlur:o||".5rem",children:[e.title&&jsx(E.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(E.Body,{children:jsx(Io,{...a,selectedDate:e.selectedDate||r.read(),onDateSelected:s})}),jsxs(E.Footer,{children:[jsx(E.ActionTrigger,{children:jsx(Yr,{size:l,fade:.5})}),jsx(E.ActionTrigger,{children:jsx(Eu,{size:l,onClick:u})})]})]})}var Ly=Uy;c();function Hy(e){let[r,t]=useState(),n=r?FaAngleUp:FaAngleDown,o=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(g,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(a=>jsxs("span",{children:[jsxs("strong",{children:[a,":"]}),"\xA0",i.content[a]]}))})};return jsxs(E.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(E.Header,{children:"Payment Options"}),jsx(E.Body,{gap:"sm",width:"full",children:e.options.map((i,a)=>{let l=i.variables?i?.["pre-element"]?.(i.variables):void 0,s=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[l,jsxs(g,{width:"full",css:{backgroundColor:r?.index===a?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(g,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===a?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:a});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(g,{asChildren:!i.description,width:"full",children:[jsx(C,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:Z.xs}})]}),i.dropDownContent&&jsx(n,{})]}),i.dropDownContent&&r?.index===a&&jsx(o,{content:i.dropDownContent})]}),s]})})})]})}var ju=e=>e,Y6=e=>ju({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),q6=()=>ju({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),Co=Hy;c();var Fu=createContext(null);function Do(e){let r=e.controller,t=!!r.value?.response,{title:n,message:o}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",a=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),l=e.actionButton?.(t?"succes":"error"),s={title:P({fontSize:e.titleFontSize||"lg"}),description:P({fontSize:e.descriptionFontSize||"sm",fade:.5})},u=({fontSize:d,lineHeight:p,opacity:h})=>({fontSize:d,lineHeight:p,opacity:h});return jsx(Fu.Provider,{value:{color:i},children:jsxs(E.Root,{onClose:e.onClose,controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(E.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(a,{color:S(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(g,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:u(s.title),children:n}),jsx("span",{style:u(s.description),children:o})]})]}),jsxs(E.Footer,{row:true,gap:"md",align:"center",children:[jsx(E.ActionTrigger,{children:jsx(O,{size:"xs",backgroundColor:l?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),l?jsx(t_,{...l}):void 0]})]})})}function t_(e){let{color:r}=useContext(Fu);return jsx(O,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var Nu=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Do.tryAgainButton=Nu("Try Again");Do.retryButton=Nu("Retry");var Qt=Do;c();var Bo="onPaper[0.1]",Oo=", ";function i_(e){let r=R({defaultValue:typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick}),t=Uu(),n=R({defaultValue:{subject:e.subject??"",body:{text:e.body||""},recipients:e.recipients||[],attachments:e.attachments||[]}}),o=(l,s)=>{n.upsert(u=>({...u,[l]:s}));},i=()=>strictArray(n.read().recipients),a=async()=>{let{subject:l,body:{text:s},attachments:u}=n.read(),d=await e.onSendClick({subject:l,body:{text:s,html:e.bodyToHtml?.(s)},recipients:i(),attachments:u});if(typeof d!="object")return;let{error:p,response:h}=d;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(d)),p)return t.show({error:p});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(g,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(Qt,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:l=>l==="succes"?void 0:Qt.tryAgainButton({disabled:r.read(),onClick:a})}),e.readOnly&&n.read().recipients?jsx(c_,{recipients:i()}):jsx(a_,{readOnly:e.readOnly,recipients:i(),onChange:l=>o("recipients",l.split(Oo))}),jsx(l_,{subject:n.read().subject,readOnly:e.readOnly,onChange:l=>o("subject",l)}),jsxs(g,{size:"full",gap:"sm",spill:"hidden",children:[jsx(s_,{defaultValue:n.read().body.text,readOnly:e.readOnly,onChange:l=>o("body",{text:l})}),jsxs(g,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(So,{attachments:n.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(Po,{size:"2xs",disabled:r.read(),onClick:a})]})]})]})}function a_(e){let[r,t]=useState(false),n=o=>jsx(C,{text:o.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Au,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Oo),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(C,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(g,{row:true,gap:"sm",fontSize:"xs",children:[jsx(n,{value:"Cc"}),jsx(n,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function c_(e){return jsxs(g,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Bo,"bottom"],children:[jsx(g,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(g,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(Me,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(C,{ellipsis:true,text:r})]}))}),jsx(To,{textToCopy:e.recipients.join(Oo)})]})}function l_(e){let r=!!(e.readOnly&&e.subject);return jsxs(g,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Bo,"bottom"],children:[jsx(Au,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(To,{textToCopy:e.subject})]})}function s_(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(g,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${S("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:Z.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(g,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(To,{textToCopy:e.defaultValue})})]})}function Au(e){return jsx(he,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Bo,"bottom"],onChange:e.onChange})}function To(e){return jsx(br,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var u_=i_;c();c();function d_(e){return jsxs(g,{row:true,gap:"md",children:[jsx(Vu,{onClick:e.onNoClick}),jsx(Zu,{onClick:e.onYesClick})]})}var Eo=d_;function p_(e){return jsxs(g,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Eo,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var g_=p_;c();function h_(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(g,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(No,{value:r})})}):jsx(y_,{})})}function y_(){let e=r=>jsx(C,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(g,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(C,{color:"jsonKey",text:'"JSON"'}),":",jsx(C,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var __=["string","number","boolean"];function jo(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(C,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function Mu(e){return jsxs(Fragment,{children:[jsx(C,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(o=>{let i=e.value.some(a=>typeof a=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),o.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(No,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(Mu,{value:r}):jsx(jo,{value:r})})),jsx(C,{color:"arrayBracket",text:"]"})]})}function No(e){let r="1rem",t=e.indentMultiplier||2,n=e.indent?`calc(${r} * ${t})`:r,o=`calc(${n} / ${t})`;return jsxs(Fragment,{children:[jsx(C,{style:{paddingLeft:e.indentInitialBracket?o:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,a,l)=>{let s=i,u=e.value[s],d=()=>__.includes(typeof u)?jsx(jo,{value:u}):Array.isArray(u)?jsx(Mu,{value:u}):typeof u=="object"?jsx(No,{indent:true,value:u}):jsx(jo,{value:`${u}`});return jsxs("span",{style:{paddingLeft:n,width:"100%"},children:[jsx(C,{color:"jsonKey",text:`"${s}"`})," : ",jsx(d,{}),a===l.length-1?"":",",jsx("br",{})]})}),jsx(C,{style:{paddingLeft:e.indent?o:void 0},color:"jsonBracket",text:"}"})]})}var Ao=h_;c();c();c();function P_(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...Lt.options].filter(l=>l!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,n=useRef(null),o=(...l)=>{if(e.disabled)return;let s="target"in l[0]?l[0].target.files:l[0],u=[],d=[],p=h=>strictArray(h).map(y=>toObject(y,{uploadDate:"now",filepath:e.getFilePath?.(y)}));for(let h of s){if(u.length+d.length>=t)break;r.includes(h.type)?u.push(h):d.push(h);}isEmpty(u)||e.onAccept?.(u,p(u)),isEmpty(d)||e.onReject?.(d,p(d));},i=l=>{if(l.preventDefault(),!e.allowDrop||e.disabled)return;let s=[];if(l.dataTransfer.items?s=[...l.dataTransfer.items].filter(u=>u.kind==="file").map(u=>u.getAsFile()):s=[...l.dataTransfer.files],!isEmpty(s)){let u=new DataTransfer;s.forEach(d=>u.items.add(d)),o(s);}},a=()=>{e.disabled||n.current.click();};return jsxs("label",{className:e.className,style:{...P(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:l=>l.preventDefault(),onClick:a,children:[e.children,jsx("input",{id:"file",type:"file",ref:n,style:{display:"none"},onChange:o,accept:r.join(", "),multiple:e.multiple})]})}var Wu=P_;function Xu(e){return r=>{let{size:t,fontSize:n,iconSize:o,fileClass:i,backgroundColor:a,accepts:l=e?.accepts,...s}=r||{};return jsx(Wu,{spill:"hidden",corners:r.corners||"md",accepts:l,...s||{},allowDrop:false,children:jsx(O,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:a,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:n,leadingEl:HiUpload,iconSize:o,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var it=Xu({fileClass:"file"}),lj=Xu({fileClass:"receipt",accepts:["img"]});function D_(e){let[r,t]=useState(e.defaultPicture.path),n=({children:i})=>e.label?jsxs(g,{gap:e.rowGap||"md",children:[jsx(C,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,o=(i,a)=>{let l=a[0];t(l.path),e.onChange?.(l);};return jsx(n,{children:jsxs(g,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(Me,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(it,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:o})]})})}var B_=D_;c();function T_(e){let r=e.authProviders||Ps.options;return jsxs(g,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(g,{width:"full",color:"inherit",children:[jsx(C,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(g,{width:"full",color:"inherit",children:r.map(t=>jsx(E_,{provider:t,onClick:e.onAuthProviderClick}))})]})}function E_(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(O,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var R_=T_;c();c();var Yu={timestamp:Date.now(),status:"info",response:"Hello World!"};function U_(e){useEffect(()=>{e.initialMessage&&(Yu.response=e.initialMessage);},[]);let r=[Yu,...e.logs];return jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,n)=>jsx(L_,{...t,scrollIntoView:n===lastIndex(r)},n)})})}function L_(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:S(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(cu,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:S(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Lo=U_;function H_(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(n=>{let o=Array.isArray(n)?n:"logs"in n?n.logs:null;t(o?sort(o,"timestamp","asc"):[...r,n]);}),[]),jsxs(g,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(g,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:n,...o})=>jsx(Hs,{item:o,info:n})})}),jsx(Lo,{initialMessage:"Awaiting registration process...",logs:r})]})}var X_=H_;c();function Y_(e){return jsx(he,{...e,leadingAdornment:null,width:e.width||"20rem",backgroundColor:e.backgroundColor||"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:e.searchIconSize||"1.15rem"}),placeholder:e.placeholder||"Search..."})}var xo=Y_;c();c();function Q_(e){return e.error?jsx(Kt,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(C,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var Zo=Q_;function tb(e){let r=R({defaultValue:e?.verifyError}),[t,n]=useState(e?.defaultStatus||"pending"),o=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return n("success");r.upsert(i.error),n("error");};return jsx(he,{...e,leadingAdornment:jsx(Zo,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(su,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(ko,{onClick:o})})}var Vo=tb;c();function rd(e){let r=format("name",e.name),t=({value:n,default:o={}})=>{let{fade:i=o.fade,fontSize:a=o.fontSize||e.fontSize||".85rem",fontWeight:l=o.fontWeight,lineHeight:s=o.lineHeight=a,style:u}=e.slotProps?.[n]||{};return jsx(C,{ellipsis:true,fade:i,fontSize:a,fontWeight:l,text:n==="name"?r:e.email,style:{...u||{},lineHeight:u?.lineHeight||(s in Z?Z[s]:s)}})};return jsxs(g,{row:true,align:"center",spill:"hidden",gap:e.columnGap??e.gap??"md",width:e.fullWidth?"full":void 0,style:e.style,children:[jsx(Me,{size:e.slotProps?.avatar?.size,fallback:e.useDefaultFallback?void 0:r,src:e.picture,backgroundColor:e.slotProps?.avatar?.backgroundColor,color:e.slotProps?.avatar?.color,style:e.slotProps?.avatar?.style,fallbackStyle:e.slotProps?.avatar?.fallbackStyle}),jsxs(g,{gap:e.rowGap??e.gap,width:"full",spill:"hidden",children:[jsx(t,{value:"name"}),jsx(t,{value:"email",default:{fade:.5}})]}),e.trailingEl]})}rd.RemoveButton=e=>jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",onClick:e.onClick,children:jsx(IoRemove,{})});var ab=rd;c();function td(e){return r=>{let[t,n]=useState(false);return jsx(O,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:o}=await e.handleOnClick(r);if(o)return console.error(new Error(o.message,{cause:o}));n(true),setTimeout(()=>n(false),3e3);}})}}var xu=td({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:n}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=n.text),r?.(n.text),{response:"success"})}}),br=td({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let n=e?typeof e=="function"?e():e:r?.current?.value;if(!n)return {error:{code:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:o}=await copyToClipboard(n);return o?{error:o}:{response:"success"}}});c();function od(e){return r=>jsx(O,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var GF=od(BsPlus),KF=od(BsDash);c();function id(e){return r=>jsx(O,{...e.defaults,text:e.label,onClick:r.onClick})}var Zu=id({label:"Yes"}),Vu=id({label:"No",defaults:{variant:"outline"}});c();var aN=Re({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});c();c();function xb(e){let r=R({defaultValue:e.defaulValue?.token||""}),t=useRef(null),[n,o]=useState(e.defaulValue?.status),i=async()=>{let l=await e.onVerifyClick?.(r.read());return o(l),l.verified?{response:"success"}:{error:l.error}},a=l=>{r.upsert(l),e.onTokenChange?.(l);};return jsxs(g,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(Vo,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:n?n.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:a,onChange:a,onVerifyClick:i}),jsxs(g,{size:"full",spill:"hidden",gap:"sm",children:[n&&jsx(br,{textToCopy:n.payload}),jsx(Ao,{fullSize:true,json:n?n.payload:void 0})]})]})}var Sb=xb;c();c();function Jt(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}c();c();c();c();var cd=(T=>(T.white="#FFF",T.black="#000",T.gray="#808080",T.pdf="#F40F02",T.word="#41A5EE",T.excel="#21A366",T.img="#8d481f",T.txt="#8c61a9",T.deepSkyBlue="#00BFFF",T.lightSkyBlue="#87CEFA",T.sendBlue="#0a57d0",T.onSendBlue="#c3dfff",T.book_it="#009688",T.stickyNote="#EFAD03",T.matteBlack="#28282B",T.navyBlue="#000080",T.teal="#008080",T.paper="#ffffff",T.onPaper="#28282B",T.paperVariant="#E6E6E6",T.success="#4BB543",T.hyperlink="#2979ff",T.gold="#d4af37",T.carlsbergGreen="#17B169",T.billsRed="#C60C30",T.info="#1565c0",T.error="#C60C30",T.warning="#f9a825",T.jsonKey="#D56C75",T.string="#59A779",T.number="#D19A5A",T.boolean="#56B6C2",T.jsonBracket="#FFCA1D",T.arrayBracket="#DA68A7",T.delete="#C60C30",T.pdf_table_header="#28282B",T))(cd||{}),$e=cd;c();var Rb=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),se=Rb;c();c();function NA(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}c();function VA(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}c();function YA(e){let[r,t]=useState({}),n=P(e.style);n={...n,...e?.inject?.()||{}};let o=document.getElementById("root")??document.body;return useEffect(()=>{let i=e.tag||"div",a=document.createElement(i),s=(Array.isArray(e.style.children)?e.style.children:[e.style.children]).map(p=>{let h=document.createElement(i);return h.innerHTML=Lb.renderToStaticMarkup(p),h});Object.assign(a.style,{...n,visibility:"hidden"}),s.forEach(p=>a.appendChild(p)),o.appendChild(a);let u=getComputedStyle(a),d=Object.keys(n).filter(p=>p in u&&typeof u[p]=="string").map(p=>{let y=u[p];return [p,p==="opacity"?y.toString():y===0?"0px":y]});t(Object.fromEntries(d)),o.removeChild(a);},[e.style]),{style:r}}c();function Uu(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...n)=>{n[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:n[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}c();c();function H(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}function R(e){let r=e?.persist?.storage==="local-storage"?localStorage:sessionStorage,t=new Error("Failed to store value of type 'function', in useStore."),{triggerRerender:n}=H(),o=useRef({fresh:(()=>{let d=castReturn(e.defaultValue);if(typeof d=="function")throw t;if(e?.persist?.key){let p=JSON.parse(r.getItem(e.persist.key));return p??d}return d})(),stale:null}),i=useRef(false);return useEffect(()=>()=>{e?.persist?.deleteOnUnmount&&e.persist.key&&r.removeItem(e.persist.key);},[]),{debug:()=>{let d=o.current.stale,p=o.current.fresh,h=()=>{if(Array.isArray(d)){let $=d;return {from:d,to:p,difference:p.filter((x,w)=>w<$.length?$[w]!==x:false)}}switch(typeof d){case "string":return {from:d,to:p,difference:p.replace(d,"")};case "object":return {from:d,to:p,difference:Object.fromEntries(Object.keys(d).map($=>{let b=$;if(p[b]!==d[b])return [b,p[b]]}).filter($=>!!$))};default:throw new Error("Not yet implemented bro!")}},y=250;return console.log(buildArray(y,$=>$===0||$===y?"/":"*").join(""),h()),h()},upsert:(d,...p)=>{let{skipOnChange:h=false,skipRender:y=false,skipValidation:$=false,skipTransform:b=false}=p[0]||{},x=typeof d=="function"?d(o.current.fresh):d,w=o.current.fresh;if(e?.readOnly===true||e?.readOnly==="lazy"&&i.current)throw console.error("Updating a readOnly store is prohibited"),new Error("Updating a readOnly store is prohibited",{cause:`Attempt to change ${e?.defaultValue} -> ${x}`});if(e?.readOnly==="lazy"&&!i.current&&(i.current=true),!b&&e?.transform&&(x=e.transform(x)),typeof x=="function")throw t;if(JSON.stringify(x)!==JSON.stringify(w)){if(!$&&e?.validate?.(x)===false){e?.onValidationFail?.(x);return}o.current={fresh:x,stale:w},e?.persist?.key&&r.setItem(e.persist.key,JSON.stringify(x)),h||e?.onChange?.(x,w),!y&&e.reactive&&n();}},read:()=>structuredClone(o.current.fresh),delete:()=>{let d=structuredClone(o.current.fresh),p=structuredClone(o.current.stale);o.current.fresh=null,o.current.stale=null,e?.onDelete?.(d,p),e?.persist?.key&&r.removeItem(e.persist.key);}}}c();function eu(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}c();function Fi(){return useContext(Xt)}c();function yU(e,r){let[t,n]=useState(()=>{try{let a=window.sessionStorage.getItem(e);return a?JSON.parse(a):r}catch(a){return console.log(a),r}});return [t,a=>{try{let l=a instanceof Function?a(t):a;n(l),window.sessionStorage.setItem(e,JSON.stringify(l));}catch(l){console.log(l);}},()=>{try{n(r),window.sessionStorage.removeItem(e);}catch(a){console.log(a);}}]}c();function PU(e){let r=useContext(ft),{triggerRerender:t}=H(),n=s=>{throw new Error("Invalid key used in useEvent",{cause:`${s} with type "${typeof s}" provided, but a key with type "string" was expected.`})};return {emit:(s,...u)=>{if(typeof s!="string")return n(s);r.emit(s,u?.[0]),e?.rerenderOnEmit&&t();},on:(s,u,d)=>{if(typeof s!="string")return n(s);let p=r.on(s,u);return d?.rerender&&t(),p},listeners:s=>typeof s!="string"?n(s):r.listeners(s),dettach:s=>typeof s!="string"?n(s):r.dettach(s)}}c();function DU(e){let{triggerRerender:r}=H(),t=useRef(castReturn(e)),n=(o,i={skipRender:false})=>{t.current=typeof o=="function"?o(t.current):o,i.skipRender||r();};return [t.current,n]}c();export{So as AttachmentsButton,_o as AttachmentsDialog,Me as Avatar,oP as AvatarGroup,Rs as Badge,O as BasicButton,g as BasicDiv,je as BasicImg,mn as BasicOl,vn as BasicOption,Dr as BasicSelect,C as BasicSpan,Lm as BasicTable,Io as Calendar,Ly as CalendarDialog,Yr as CancelButton,ae as Card,Ei as Checkbox,$e as ColorResources,OB as ConfirmationDialog,br as CopyButton,se as CssColors,Ee as CssShapes,q as CssSpacing,JC as Debounce,ot as DeleteButton,E as Dialog,Us as Disclaimer,aN as DownloadButton,IP as Drawer,Wh as EditButton,xD as Editable,u_ as EmailComposer,Zt as EmptyState,Zo as ErrorTooltip,qo as EventContainer,Qh as ExpandableButton,LB as FancyFormDialog,dD as FileDropzone,lO as FileViewer,Z as FontSize,Ws as Indicator,Hs as ItemInfo,Ao as JsonViewer,Sb as JwtVerifier,tB as MediaCard,Nv as Menu,Sy as MoneyDisplayCard,KF as NegativeButton,oo as NextButton,Vu as NoButton,bo as OpenButton,cy as OptionsButton,yP as PageIndicator,JO as PageSlider,bT as Paper,xu as PasteButton,dy as PaymentOptionsButton,Co as PaymentOptionsDialog,B_ as PictureUploader,sr as Popover,GF as PositiveButton,io as PreviousButton,dB as ProfileCard,qC as ProgressBar,$y as ReceiptCard,co as SaveButton,xo as SearchTextField,uT as SegmentedControls,Po as SendButton,iE as Separator,R_ as SignInWidget,QB as SimpleFormDialog,uP as Spinner,su as Status,OT as Stepper,ao as SubmitButton,FC as Switch,cu as Tag,X_ as TaskLogger,Qt as TaskResultDialog,Lo as Terminal,he as TextField,qT as Timeline,Kt as Tooltip,it as UploadButton,lj as UploadReceiptButton,ab as UserProfile,ko as VerifyButton,Vo as VerifyTextField,Rd as WavyUi,Zu as YesButton,Eo as YesNoButtonGroup,g_ as YesOrNoForm,P as applyBasicStyle,Y6 as bankTransferPaymentOption,V0 as borderRadius,A0 as buildCSS,q0 as computedCssVariable,Fd as convertHexUnitTo256,U0 as cssTransition,ju as definePaymentOption,M0 as disabledBorderRadius,J0 as dragElement,me as ellipsis,Z0 as flexCenter,Jt as getFileIcon,eh as getPaperDim,ti as getScrollParent,Nd as hexToRgba,q6 as inAppPaymentOption,on as isOverflown,ni as isSpanMultiLine,jd as isValidHex,H0 as nativeEllipsis,W0 as noSpaceStyle,rh as paperStyle,Y0 as remAsPx,Ad as remToPx,S as resolveBasicColor,Cr as restrictLineCount,X0 as rgbToRgba,G0 as screenHasMaxWidth,K0 as screenHasMinWidth,L0 as solidBorder,oi as stripHtml,ri as tiledBackground,NA as useAsyncEffect,YA as useComputedStyle,PU as useEvent,Uu as useModalControls,eu as usePageSliderController,Fi as usePopoverContext,VA as usePostRenderEffect,H as useRerender,yU as useSessionStorage,DU as useSmartState,R as useStore};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavy/react-ui",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Wavy",