@pagelines/widget 1.0.150 → 1.0.151
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/widget.js +2 -2
- package/package.json +3 -3
package/dist/widget.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
var PLWidget=function(e){"use strict";var t=Object.defineProperty,r=(e,r,o)=>((e,r,o)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o)(e,"symbol"!=typeof r?r+"":r,o);
|
|
2
|
-
/*! @pagelines/widget v1.0.
|
|
3
|
-
const o="https://app.pagelines.com";function n(e,t,r){function o(r,o){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:o,constr:i,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,o);const n=i.prototype,a=Object.keys(n);for(let e=0;e<a.length;e++){const t=a[e];t in r||(r[t]=n[t].bind(r))}}const n=r?.Parent??Object;class a extends n{}function i(e){var t;const n=r?.Parent?new a:this;o(n,e),(t=n._zod).deferred??(t.deferred=[]);for(const r of n._zod.deferred)r();return n}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(i,"init",{value:o}),Object.defineProperty(i,Symbol.hasInstance,{value:t=>!!(r?.Parent&&t instanceof r.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class a extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class i extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const s={};function l(e){return s}function c(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function d(e,t){return"bigint"==typeof t?t.toString():t}function u(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function p(e){return null==e}function h(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const g=Symbol("evaluating");function f(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==g)return void 0===o&&(o=g,o=r()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function m(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function v(...e){const t={};for(const r of e){const e=Object.getOwnPropertyDescriptors(r);Object.assign(t,e)}return Object.defineProperties({},t)}function b(e){return JSON.stringify(e)}const w="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function y(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const k=u(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function x(e){if(!1===y(e))return!1;const t=e.constructor;if(void 0===t)return!0;if("function"!=typeof t)return!0;const r=t.prototype;return!1!==y(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function _(e){return x(e)?{...e}:Array.isArray(e)?[...e]:e}const C=new Set(["string","number","symbol"]);function z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function S(e,t,r){const o=new e._zod.constr(t??e._zod.def);return t&&!r?.parent||(o._zod.parent=e),o}function I(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}const A={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function E(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(!0!==e.issues[r]?.continue)return!0;return!1}function T(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function M(e){return"string"==typeof e?e:e?.message}function j(e,t,r){const o={...e,path:e.path??[]};if(!e.message){const n=M(e.inst?._zod.def?.error?.(e))??M(t?.error?.(e))??M(r.customError?.(e))??M(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function $(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function O(...e){const[t,r,o]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:o}:{...t}}const P=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,d,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},N=n("$ZodError",P),L=n("$ZodError",P,{Parent:Error}),D=e=>(t,r,o,n)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new a;if(s.issues.length){const t=new(n?.Err??e)(s.issues.map(e=>j(e,i,l())));throw w(t,n?.callee),t}return s.value},F=e=>async(t,r,o,n)=>{const a=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const t=new(n?.Err??e)(i.issues.map(e=>j(e,a,l())));throw w(t,n?.callee),t}return i.value},Z=e=>(t,r,o)=>{const n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new a;return i.issues.length?{success:!1,error:new(e??N)(i.issues.map(e=>j(e,n,l())))}:{success:!0,data:i.value}},U=Z(L),B=e=>async(t,r,o)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>j(e,n,l())))}:{success:!0,data:a.value}},V=B(L),R=e=>(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return D(e)(t,r,n)},W=e=>(t,r,o)=>D(e)(t,r,o),H=e=>async(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return F(e)(t,r,n)},G=e=>async(t,r,o)=>F(e)(t,r,o),J=e=>(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Z(e)(t,r,n)},q=e=>(t,r,o)=>Z(e)(t,r,o),K=e=>async(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return B(e)(t,r,n)},Y=e=>async(t,r,o)=>B(e)(t,r,o),Q=/^[cC][^\s-]{8,}$/,X=/^[0-9a-z]+$/,ee=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,te=/^[0-9a-vA-V]{20}$/,re=/^[A-Za-z0-9]{27}$/,oe=/^[a-zA-Z0-9_-]{21}$/,ne=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ae=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ie=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,se=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,le=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ce=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,de=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ue=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pe=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,he=/^[A-Za-z0-9_-]*$/,ge=/^\+[1-9]\d{6,14}$/,fe="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",me=new RegExp(`^${fe}$`);function ve(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const be=/^-?\d+$/,we=/^-?\d+(?:\.\d+)?$/,ye=/^(?:true|false)$/i,ke=/^[^A-Z]*$/,xe=/^[^a-z]*$/,_e=n("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Ce={number:"number",bigint:"bigint",object:"date"},ze=n("$ZodCheckLessThan",(e,t)=>{_e.init(e,t);const r=Ce[typeof t.value];e._zod.onattach.push(e=>{const r=e._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Se=n("$ZodCheckGreaterThan",(e,t)=>{_e.init(e,t);const r=Ce[typeof t.value];e._zod.onattach.push(e=>{const r=e._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ie=n("$ZodCheckMultipleOf",(e,t)=>{_e.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===function(e,t){const r=(e.toString().split(".")[1]||"").length,o=t.toString();let n=(o.split(".")[1]||"").length;if(0===n&&/\d?e-\d?/.test(o)){const e=o.match(/\d?e-(\d?)/);e?.[1]&&(n=Number.parseInt(e[1]))}const a=r>n?r:n;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ae=n("$ZodCheckNumberFormat",(e,t)=>{_e.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),o=r?"int":"number",[n,a]=A[t.format];e._zod.onattach.push(e=>{const o=e._zod.bag;o.format=t.format,o.minimum=n,o.maximum=a,r&&(o.pattern=be)}),e._zod.check=i=>{const s=i.value;if(r){if(!Number.isInteger(s))return void i.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}))}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>a&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Ee=n("$ZodCheckMaxLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!p(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const r=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const n=$(o);r.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Te=n("$ZodCheckMinLength",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!p(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const r=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const n=$(o);r.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Me=n("$ZodCheckLengthEquals",(e,t)=>{var r;_e.init(e,t),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!p(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{const o=r.value,n=o.length;if(n===t.length)return;const a=$(o),i=n>t.length;r.issues.push({origin:a,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),je=n("$ZodCheckStringFormat",(e,t)=>{var r,o;_e.init(e,t),e._zod.onattach.push(e=>{const r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),$e=n("$ZodCheckRegex",(e,t)=>{je.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Oe=n("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ke),je.init(e,t)}),Pe=n("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xe),je.init(e,t)}),Ne=n("$ZodCheckIncludes",(e,t)=>{_e.init(e,t);const r=z(t.includes),o=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Le=n("$ZodCheckStartsWith",(e,t)=>{_e.init(e,t);const r=new RegExp(`^${z(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),De=n("$ZodCheckEndsWith",(e,t)=>{_e.init(e,t);const r=new RegExp(`.*${z(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Fe=n("$ZodCheckOverwrite",(e,t)=>{_e.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class Ze{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length)),o=t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e);for(const n of o)this.content.push(n)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const Ue={major:4,minor:3,patch:6},Be=n("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ue;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const n of o)for(const t of n._zod.onattach)t(e);if(0===o.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,r)=>{let o,n=E(e);for(const i of t){if(i._zod.def.when){if(!i._zod.def.when(e))continue}else if(n)continue;const t=e.issues.length,s=i._zod.check(e);if(s instanceof Promise&&!1===r?.async)throw new a;if(o||s instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(n||(n=E(e,t)))});else{if(e.issues.length===t)continue;n||(n=E(e,t))}}return o?o.then(()=>e):e},r=(r,n,i)=>{if(E(r))return r.aborted=!0,r;const s=t(n,o,i);if(s instanceof Promise){if(!1===i.async)throw new a;return s.then(t=>e._zod.parse(t,i))}return e._zod.parse(s,i)};e._zod.run=(n,i)=>{if(i.skipChecks)return e._zod.parse(n,i);if("backward"===i.direction){const t=e._zod.parse({value:n.value,issues:[]},{...i,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,n,i)):r(t,n,i)}const s=e._zod.parse(n,i);if(s instanceof Promise){if(!1===i.async)throw new a;return s.then(e=>t(e,o,i))}return t(s,o,i)}}f(e,"~standard",()=>({validate:t=>{try{const r=U(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return V(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),Ve=n("$ZodString",(e,t)=>{var r;Be.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(r=e._zod.bag,new RegExp(`^${r?`[\\s\\S]{${r?.minimum??0},${r?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch(n){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=n("$ZodStringFormat",(e,t)=>{je.init(e,t),Ve.init(e,t)}),We=n("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ae),Re.init(e,t)}),He=n("$ZodUUID",(e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ie(e))}else t.pattern??(t.pattern=ie());Re.init(e,t)}),Ge=n("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=se),Re.init(e,t)}),Je=n("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=r=>{try{const o=r.value.trim(),n=new URL(o);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),void(t.normalize?r.value=n.href:r.value=o)}catch(o){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),qe=n("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Re.init(e,t)}),Ke=n("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=oe),Re.init(e,t)}),Ye=n("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Q),Re.init(e,t)}),Qe=n("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=X),Re.init(e,t)}),Xe=n("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ee),Re.init(e,t)}),et=n("$ZodXID",(e,t)=>{t.pattern??(t.pattern=te),Re.init(e,t)}),tt=n("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=re),Re.init(e,t)}),rt=n("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){const t=ve({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${r.join("|")})`;return new RegExp(`^${fe}T(?:${o})$`)}(t)),Re.init(e,t)}),ot=n("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=me),Re.init(e,t)}),nt=n("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=new RegExp(`^${ve(t)}$`)),Re.init(e,t)}),at=n("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ne),Re.init(e,t)}),it=n("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=le),Re.init(e,t),e._zod.bag.format="ipv4"}),st=n("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ce),Re.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),lt=n("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=de),Re.init(e,t)}),ct=n("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ue),Re.init(e,t),e._zod.check=r=>{const o=r.value.split("/");try{if(2!==o.length)throw new Error;const[e,t]=o;if(!t)throw new Error;const r=Number(t);if(`${r}`!==t)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function dt(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const ut=n("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=pe),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{dt(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),pt=n("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=he),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{(function(e){if(!he.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return dt(t.padEnd(4*Math.ceil(t.length/4),"="))})(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),ht=n("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ge),Re.init(e,t)}),gt=n("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=r=>{(function(e,t=null){try{const r=e.split(".");if(3!==r.length)return!1;const[o]=r;if(!o)return!1;const n=JSON.parse(atob(o));return!("typ"in n&&"JWT"!==n?.typ||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}})(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),ft=n("$ZodNumber",(e,t)=>{Be.init(e,t),e._zod.pattern=e._zod.bag.pattern??we,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch(i){}const n=r.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),mt=n("$ZodNumberFormat",(e,t)=>{Ae.init(e,t),ft.init(e,t)}),vt=n("$ZodBoolean",(e,t)=>{Be.init(e,t),e._zod.pattern=ye,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Boolean(r.value)}catch(a){}const n=r.value;return"boolean"==typeof n||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),bt=n("$ZodAny",(e,t)=>{Be.init(e,t),e._zod.parse=e=>e}),wt=n("$ZodUnknown",(e,t)=>{Be.init(e,t),e._zod.parse=e=>e}),yt=n("$ZodNever",(e,t)=>{Be.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function kt(e,t,r){e.issues.length&&t.issues.push(...T(r,e.issues)),t.value[r]=e.value}const xt=n("$ZodArray",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let e=0;e<n.length;e++){const i=n[e],s=t.element._zod.run({value:i,issues:[]},o);s instanceof Promise?a.push(s.then(t=>kt(t,r,e))):kt(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function _t(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...T(r,e.issues))}void 0===e.value?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function Ct(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=(o=e.shape,Object.keys(o).filter(e=>"optional"===o[e]._zod.optin&&"optional"===o[e]._zod.optout));var o;return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function zt(e,t,r,o,n,a){const i=[],s=n.keySet,l=n.catchall._zod,c=l.def.type,d="optional"===l.optout;for(const u in t){if(s.has(u))continue;if("never"===c){i.push(u);continue}const n=l.run({value:t[u],issues:[]},o);n instanceof Promise?e.push(n.then(e=>_t(e,r,u,t,d))):_t(n,r,u,t,d)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const St=n("$ZodObject",(e,t)=>{Be.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){const e=t.shape;Object.defineProperty(t,"shape",{get:()=>{const r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}const o=u(()=>Ct(t));f(e._zod,"propValues",()=>{const e=t.shape,r={};for(const t in e){const o=e[t]._zod;if(o.values){r[t]??(r[t]=new Set);for(const e of o.values)r[t].add(e)}}return r});const n=y,a=t.catchall;let i;e._zod.parse=(t,r)=>{i??(i=o.value);const s=t.value;if(!n(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};const l=[],c=i.shape;for(const e of i.keys){const o=c[e],n="optional"===o._zod.optout,a=o._zod.run({value:s[e],issues:[]},r);a instanceof Promise?l.push(a.then(r=>_t(r,t,e,s,n))):_t(a,t,e,s,n)}return a?zt(l,s,t,r,o.value,e):l.length?Promise.all(l).then(()=>t):t}}),It=n("$ZodObjectJIT",(e,t)=>{St.init(e,t);const r=e._zod.parse,o=u(()=>Ct(t));let n;const a=y,i=!s.jitless,l=i&&k.value,c=t.catchall;let d;e._zod.parse=(s,u)=>{d??(d=o.value);const p=s.value;return a(p)?i&&l&&!1===u?.async&&!0!==u.jitless?(n||(n=(e=>{const t=new Ze(["shape","payload","ctx"]),r=o.value,n=e=>{const t=b(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const a=Object.create(null);let i=0;for(const o of r.keys)a[o]="key_"+i++;t.write("const newResult = {};");for(const o of r.keys){const r=a[o],i=b(o),s=e[o],l="optional"===s?._zod?.optout;t.write(`const ${r} = ${n(o)};`),l?t.write(`\n if (${r}.issues.length) {\n if (${i} in input) {\n payload.issues = payload.issues.concat(${r}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${i}, ...iss.path] : [${i}]\n })));\n }\n }\n \n if (${r}.value === undefined) {\n if (${i} in input) {\n newResult[${i}] = undefined;\n }\n } else {\n newResult[${i}] = ${r}.value;\n }\n \n `):t.write(`\n if (${r}.issues.length) {\n payload.issues = payload.issues.concat(${r}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${i}, ...iss.path] : [${i}]\n })));\n }\n \n if (${r}.value === undefined) {\n if (${i} in input) {\n newResult[${i}] = undefined;\n }\n } else {\n newResult[${i}] = ${r}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");const s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),s=n(s,u),c?zt([],p,s,u,d,e):s):r(s,u):(s.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),s)}});function At(e,t,r,o){for(const a of e)if(0===a.issues.length)return t.value=a.value,t;const n=e.filter(e=>!E(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>j(e,o,l())))}),t)}const Et=n("$ZodUnion",(e,t)=>{Be.init(e,t),f(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),f(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),f(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),f(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>h(e.source)).join("|")})$`)}});const r=1===t.options.length,o=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return o(n,a);let i=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:n.value,issues:[]},a);if(t instanceof Promise)s.push(t),i=!0;else{if(0===t.issues.length)return t;s.push(t)}}return i?Promise.all(s).then(t=>At(t,n,e,a)):At(s,n,e,a)}}),Tt=n("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Et.init(e,t);const r=e._zod.parse;f(e._zod,"propValues",()=>{const e={};for(const r of t.options){const o=r._zod.propValues;if(!o||0===Object.keys(o).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[t,r]of Object.entries(o)){e[t]||(e[t]=new Set);for(const o of r)e[t].add(o)}}return e});const o=u(()=>{const e=t.options,r=new Map;for(const o of e){const e=o._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const t of e){if(r.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,o)}}return r});e._zod.parse=(n,a)=>{const i=n.value;if(!y(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;const s=o.value.get(i?.[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),Mt=n("$ZodIntersection",(e,t)=>{Be.init(e,t),e._zod.parse=(e,r)=>{const o=e.value,n=t.left._zod.run({value:o,issues:[]},r),a=t.right._zod.run({value:o,issues:[]},r);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([t,r])=>$t(e,t,r)):$t(e,n,a)}});function jt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(x(e)&&x(t)){const r=Object.keys(t),o=Object.keys(e).filter(e=>-1!==r.indexOf(e)),n={...e,...t};for(const a of o){const r=jt(e[a],t[a]);if(!r.valid)return{valid:!1,mergeErrorPath:[a,...r.mergeErrorPath]};n[a]=r.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const n=jt(e[o],t[o]);if(!n.valid)return{valid:!1,mergeErrorPath:[o,...n.mergeErrorPath]};r.push(n.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function $t(e,t,r){const o=new Map;let n;for(const s of t.issues)if("unrecognized_keys"===s.code){n??(n=s);for(const e of s.keys)o.has(e)||o.set(e,{}),o.get(e).l=!0}else e.issues.push(s);for(const s of r.issues)if("unrecognized_keys"===s.code)for(const e of s.keys)o.has(e)||o.set(e,{}),o.get(e).r=!0;else e.issues.push(s);const a=[...o].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&n&&e.issues.push({...n,keys:a}),E(e))return e;const i=jt(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Ot=n("$ZodRecord",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!x(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[],i=t.keyType._zod.values;if(i){r.value={};const s=new Set;for(const e of i)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){s.add("number"==typeof e?e.toString():e);const i=t.valueType._zod.run({value:n[e],issues:[]},o);i instanceof Promise?a.push(i.then(t=>{t.issues.length&&r.issues.push(...T(e,t.issues)),r.value[e]=t.value})):(i.issues.length&&r.issues.push(...T(e,i.issues)),r.value[e]=i.value)}let l;for(const e in n)s.has(e)||(l=l??[],l.push(e));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(const i of Reflect.ownKeys(n)){if("__proto__"===i)continue;let s=t.keyType._zod.run({value:i,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof i&&we.test(i)&&s.issues.length){const e=t.keyType._zod.run({value:Number(i),issues:[]},o);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?r.value[i]=n[i]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>j(e,o,l())),input:i,path:[i],inst:e});continue}const c=t.valueType._zod.run({value:n[i],issues:[]},o);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&r.issues.push(...T(i,e.issues)),r.value[s.value]=e.value})):(c.issues.length&&r.issues.push(...T(i,c.issues)),r.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}}),Pt=n("$ZodEnum",(e,t)=>{Be.init(e,t);const r=c(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(e=>C.has(typeof e)).map(e=>"string"==typeof e?z(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{const a=t.value;return o.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),Nt=n("$ZodLiteral",(e,t)=>{if(Be.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?z(e):e?z(e.toString()):String(e)).join("|")})$`),e._zod.parse=(o,n)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),o}}),Lt=n("$ZodTransform",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{if("backward"===o.direction)throw new i(e.constructor.name);const n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(e=>(r.value=e,r));if(n instanceof Promise)throw new a;return r.value=n,r}});function Dt(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const Ft=n("$ZodOptional",(e,t)=>{Be.init(e,t),e._zod.optin="optional",e._zod.optout="optional",f(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),f(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${h(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(t=>Dt(t,e.value)):Dt(o,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),Zt=n("$ZodExactOptional",(e,t)=>{Ft.init(e,t),f(e._zod,"values",()=>t.innerType._zod.values),f(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),Ut=n("$ZodNullable",(e,t)=>{Be.init(e,t),f(e._zod,"optin",()=>t.innerType._zod.optin),f(e._zod,"optout",()=>t.innerType._zod.optout),f(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${h(e.source)}|null)$`):void 0}),f(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),Bt=n("$ZodDefault",(e,t)=>{Be.init(e,t),e._zod.optin="optional",f(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(e=>Vt(e,t)):Vt(o,t)}});function Vt(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Rt=n("$ZodPrefault",(e,t)=>{Be.init(e,t),e._zod.optin="optional",f(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),Wt=n("$ZodNonOptional",(e,t)=>{Be.init(e,t),f(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,o)=>{const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(t=>Ht(t,e)):Ht(n,e)}});function Ht(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Gt=n("$ZodCatch",(e,t)=>{Be.init(e,t),f(e._zod,"optin",()=>t.innerType._zod.optin),f(e._zod,"optout",()=>t.innerType._zod.optout),f(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(o=>(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>j(e,r,l()))},input:e.value}),e.issues=[]),e)):(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>j(e,r,l()))},input:e.value}),e.issues=[]),e)}}),Jt=n("$ZodPipe",(e,t)=>{Be.init(e,t),f(e._zod,"values",()=>t.in._zod.values),f(e._zod,"optin",()=>t.in._zod.optin),f(e._zod,"optout",()=>t.out._zod.optout),f(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){const o=t.out._zod.run(e,r);return o instanceof Promise?o.then(e=>qt(e,t.in,r)):qt(o,t.in,r)}const o=t.in._zod.run(e,r);return o instanceof Promise?o.then(e=>qt(e,t.out,r)):qt(o,t.out,r)}});function qt(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const Kt=n("$ZodReadonly",(e,t)=>{Be.init(e,t),f(e._zod,"propValues",()=>t.innerType._zod.propValues),f(e._zod,"values",()=>t.innerType._zod.values),f(e._zod,"optin",()=>t.innerType?._zod?.optin),f(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(Yt):Yt(o)}});function Yt(e){return e.value=Object.freeze(e.value),e}const Qt=n("$ZodCustom",(e,t)=>{_e.init(e,t),Be.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{const o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(t=>Xt(t,r,o,e));Xt(n,r,o,e)}});function Xt(e,t,r,o){if(!e){const e={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(e.params=o._zod.def.params),t.issues.push(O(e))}}var er;(er=globalThis).__zod_globalRegistry??(er.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const o={...r,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});const tr=globalThis.__zod_globalRegistry;function rr(e,t){return new e({type:"string",...I(t)})}function or(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...I(t)})}function nr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...I(t)})}function ar(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...I(t)})}function ir(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...I(t)})}function sr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...I(t)})}function lr(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...I(t)})}function cr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...I(t)})}function dr(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...I(t)})}function ur(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...I(t)})}function pr(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...I(t)})}function hr(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...I(t)})}function gr(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...I(t)})}function fr(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...I(t)})}function mr(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...I(t)})}function vr(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...I(t)})}function br(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...I(t)})}function wr(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...I(t)})}function yr(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...I(t)})}function kr(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...I(t)})}function xr(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...I(t)})}function _r(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...I(t)})}function Cr(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...I(t)})}function zr(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...I(t)})}function Sr(e,t){return new e({type:"string",format:"date",check:"string_format",...I(t)})}function Ir(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...I(t)})}function Ar(e,t){return new e({type:"string",format:"duration",check:"string_format",...I(t)})}function Er(e,t){return new e({type:"number",checks:[],...I(t)})}function Tr(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...I(t)})}function Mr(e,t){return new e({type:"boolean",...I(t)})}function jr(e){return new e({type:"any"})}function $r(e){return new e({type:"unknown"})}function Or(e,t){return new e({type:"never",...I(t)})}function Pr(e,t){return new ze({check:"less_than",...I(t),value:e,inclusive:!1})}function Nr(e,t){return new ze({check:"less_than",...I(t),value:e,inclusive:!0})}function Lr(e,t){return new Se({check:"greater_than",...I(t),value:e,inclusive:!1})}function Dr(e,t){return new Se({check:"greater_than",...I(t),value:e,inclusive:!0})}function Fr(e,t){return new Ie({check:"multiple_of",...I(t),value:e})}function Zr(e,t){return new Ee({check:"max_length",...I(t),maximum:e})}function Ur(e,t){return new Te({check:"min_length",...I(t),minimum:e})}function Br(e,t){return new Me({check:"length_equals",...I(t),length:e})}function Vr(e,t){return new $e({check:"string_format",format:"regex",...I(t),pattern:e})}function Rr(e){return new Oe({check:"string_format",format:"lowercase",...I(e)})}function Wr(e){return new Pe({check:"string_format",format:"uppercase",...I(e)})}function Hr(e,t){return new Ne({check:"string_format",format:"includes",...I(t),includes:e})}function Gr(e,t){return new Le({check:"string_format",format:"starts_with",...I(t),prefix:e})}function Jr(e,t){return new De({check:"string_format",format:"ends_with",...I(t),suffix:e})}function qr(e){return new Fe({check:"overwrite",tx:e})}function Kr(e){return qr(t=>t.normalize(e))}function Yr(){return qr(e=>e.trim())}function Qr(){return qr(e=>e.toLowerCase())}function Xr(){return qr(e=>e.toUpperCase())}function eo(){return qr(e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))}function to(e,t,r){return new e({type:"array",element:t,...I(r)})}function ro(e,t,r){return new e({type:"custom",check:"custom",fn:t,...I(r)})}function oo(e){const t=no(r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(O(e,r.value,t._zod.def));else{const o=e;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(O(o))}},e(r.value,r)));return t}function no(e,t){const r=new _e({check:"custom",...I(t)});return r._zod.check=e,r}function ao(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tr,target:t,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 io(e,t,r={path:[],schemaPath:[]}){var o;const n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);const s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{const o={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,o);else{const r=i.schema,a=t.processors[n.type];if(!a)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);a(e,t,r,o)}const a=e._zod.parent;a&&(i.ref||(i.ref=a),io(a,t,o),t.seen.get(a).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),"input"===t.io&&co(e)&&(delete i.schema.examples,delete i.schema.default),"input"===t.io&&i.schema._prefault&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function so(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const a of e.seen.entries()){const t=e.metadataRegistry.get(a[0])?.id;if(t){const e=o.get(t);if(e&&e!==a[0])throw new Error(`Duplicate schema id "${t}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(t,a[0])}}const n=t=>{if(t[1].schema.$ref)return;const o=t[1],{ref:n,defId:a}=(t=>{const o="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const r=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(r)return{ref:n(r)};const a=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=a,{defId:a,ref:`${n("__shared")}#/${o}/${a}`}}if(t[1]===r)return{ref:"#"};const n=`#/${o}/`,a=t[1].schema.id??"__schema"+e.counter++;return{defId:a,ref:n+a}})(t);o.def={...o.schema},a&&(o.defId=a);const i=o.schema;for(const e in i)delete i[e];i.$ref=n};if("throw"===e.cycles)for(const a of e.seen.entries()){const e=a[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const r=a[1];if(t===a[0]){n(a);continue}if(e.external){const r=e.external.registry.get(a[0])?.id;if(t!==a[0]&&r){n(a);continue}}const o=e.metadataRegistry.get(a[0])?.id;(o||r.cycle||r.count>1&&"ref"===e.reused)&&n(a)}}function lo(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=t=>{const r=e.seen.get(t);if(null===r.ref)return;const n=r.def??r.schema,a={...n},i=r.ref;if(r.ref=null,i){o(i);const r=e.seen.get(i),s=r.schema;if(!s.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Object.assign(n,s):(n.allOf=n.allOf??[],n.allOf.push(s)),Object.assign(n,a),t._zod.parent===i)for(const e in n)"$ref"!==e&&"allOf"!==e&&(e in a||delete n[e]);if(s.$ref&&r.def)for(const e in n)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(n[e])===JSON.stringify(r.def[e])&&delete n[e]}const s=t._zod.parent;if(s&&s!==i){o(s);const t=e.seen.get(s);if(t?.schema.$ref&&(n.$ref=t.schema.$ref,t.def))for(const e in n)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(n[e])===JSON.stringify(t.def[e])&&delete n[e]}e.override({zodSchema:t,jsonSchema:n,path:r.path??[]})};for(const s of[...e.seen.entries()].reverse())o(s[0]);const n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const r=e.external.registry.get(t)?.id;if(!r)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(r)}Object.assign(n,r.def??r.schema);const a=e.external?.defs??{};for(const s of e.seen.entries()){const e=s[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?n.$defs=a:n.definitions=a);try{const r=JSON.parse(JSON.stringify(n));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:uo(t,"input",e.processors),output:uo(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(i){throw new Error("Error converting schema to JSON.")}}function co(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const o=e._zod.def;if("transform"===o.type)return!0;if("array"===o.type)return co(o.element,r);if("set"===o.type)return co(o.valueType,r);if("lazy"===o.type)return co(o.getter(),r);if("promise"===o.type||"optional"===o.type||"nonoptional"===o.type||"nullable"===o.type||"readonly"===o.type||"default"===o.type||"prefault"===o.type)return co(o.innerType,r);if("intersection"===o.type)return co(o.left,r)||co(o.right,r);if("record"===o.type||"map"===o.type)return co(o.keyType,r)||co(o.valueType,r);if("pipe"===o.type)return co(o.in,r)||co(o.out,r);if("object"===o.type){for(const e in o.shape)if(co(o.shape[e],r))return!0;return!1}if("union"===o.type){for(const e of o.options)if(co(e,r))return!0;return!1}if("tuple"===o.type){for(const e of o.items)if(co(e,r))return!0;return!(!o.rest||!co(o.rest,r))}return!1}const uo=(e,t,r={})=>o=>{const{libraryOptions:n,target:a}=o??{},i=ao({...n??{},target:a,io:t,processors:r});return io(e,i),so(i,e),lo(i,e)},po={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ho=(e,t,r,o)=>{const n=e._zod.def;io(n.innerType,t,o),t.seen.get(e).ref=n.innerType},go=n("ZodISODateTime",(e,t)=>{rt.init(e,t),Po.init(e,t)}),fo=n("ZodISODate",(e,t)=>{ot.init(e,t),Po.init(e,t)}),mo=n("ZodISOTime",(e,t)=>{nt.init(e,t),Po.init(e,t)}),vo=n("ZodISODuration",(e,t)=>{at.init(e,t),Po.init(e,t)}),bo=n("ZodError",(e,t)=>{N.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t=e=>e.message){const r={_errors:[]},o=e=>{for(const n of e.issues)if("invalid_union"===n.code&&n.errors.length)n.errors.map(e=>o({issues:e}));else if("invalid_key"===n.code)o({issues:n.issues});else if("invalid_element"===n.code)o({issues:n.issues});else if(0===n.path.length)r._errors.push(t(n));else{let e=r,o=0;for(;o<n.path.length;){const r=n.path[o];o===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],o++}}};return o(e),r}(e,t)},flatten:{value:t=>function(e,t=e=>e.message){const r={},o=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,d,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,d,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),wo=D(bo),yo=F(bo),ko=Z(bo),xo=B(bo),_o=R(bo),Co=W(bo),zo=H(bo),So=G(bo),Io=J(bo),Ao=q(bo),Eo=K(bo),To=Y(bo),Mo=n("ZodType",(e,t)=>(Be.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:uo(e,"input"),output:uo(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{const o=ao({...r,processors:t});return io(e,o),so(o,e),lo(o,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(v(t,{checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,r)=>S(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>wo(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>ko(e,t,r),e.parseAsync=async(t,r)=>yo(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>xo(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>_o(e,t,r),e.decode=(t,r)=>Co(e,t,r),e.encodeAsync=async(t,r)=>zo(e,t,r),e.decodeAsync=async(t,r)=>So(e,t,r),e.safeEncode=(t,r)=>Io(e,t,r),e.safeDecode=(t,r)=>Ao(e,t,r),e.safeEncodeAsync=async(t,r)=>Eo(e,t,r),e.safeDecodeAsync=async(t,r)=>To(e,t,r),e.refine=(t,r)=>e.check(function(e,t={}){return ro(Un,e,t)}(t,r)),e.superRefine=t=>e.check(oo(t)),e.overwrite=t=>e.check(qr(t)),e.optional=()=>Tn(e),e.exactOptional=()=>new Mn({type:"optional",innerType:e}),e.nullable=()=>$n(e),e.nullish=()=>Tn($n(e)),e.nonoptional=t=>function(e,t){return new Nn({type:"nonoptional",innerType:e,...I(t)})}(e,t),e.array=()=>gn(e),e.or=t=>bn([e,t]),e.and=t=>new yn({type:"intersection",left:e,right:t}),e.transform=t=>Fn(e,An(t)),e.default=t=>{return r=t,new On({type:"default",innerType:e,get defaultValue(){return"function"==typeof r?r():_(r)}});var r},e.prefault=t=>{return r=t,new Pn({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof r?r():_(r)}});var r},e.catch=t=>{return new Ln({type:"catch",innerType:e,catchValue:"function"==typeof(r=t)?r:()=>r});var r},e.pipe=t=>Fn(e,t),e.readonly=()=>new Zn({type:"readonly",innerType:e}),e.describe=t=>{const r=e.clone();return tr.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>tr.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return tr.get(e);const r=e.clone();return tr.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),jo=n("_ZodString",(e,t)=>{Ve.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=r;o.type="string";const{minimum:n,maximum:a,format:i,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof n&&(o.minLength=n),"number"==typeof a&&(o.maxLength=a),i&&(o.format=po[i]??i,""===o.format&&delete o.format,"time"===i&&delete o.format),l&&(o.contentEncoding=l),s&&s.size>0){const e=[...s];1===e.length?o.pattern=e[0].source:e.length>1&&(o.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(Vr(...t)),e.includes=(...t)=>e.check(Hr(...t)),e.startsWith=(...t)=>e.check(Gr(...t)),e.endsWith=(...t)=>e.check(Jr(...t)),e.min=(...t)=>e.check(Ur(...t)),e.max=(...t)=>e.check(Zr(...t)),e.length=(...t)=>e.check(Br(...t)),e.nonempty=(...t)=>e.check(Ur(1,...t)),e.lowercase=t=>e.check(Rr(t)),e.uppercase=t=>e.check(Wr(t)),e.trim=()=>e.check(Yr()),e.normalize=(...t)=>e.check(Kr(...t)),e.toLowerCase=()=>e.check(Qr()),e.toUpperCase=()=>e.check(Xr()),e.slugify=()=>e.check(eo())}),$o=n("ZodString",(e,t)=>{Ve.init(e,t),jo.init(e,t),e.email=t=>e.check(or(No,t)),e.url=t=>e.check(cr(Fo,t)),e.jwt=t=>e.check(Cr(en,t)),e.emoji=t=>e.check(dr(Zo,t)),e.guid=t=>e.check(nr(Lo,t)),e.uuid=t=>e.check(ar(Do,t)),e.uuidv4=t=>e.check(ir(Do,t)),e.uuidv6=t=>e.check(sr(Do,t)),e.uuidv7=t=>e.check(lr(Do,t)),e.nanoid=t=>e.check(ur(Uo,t)),e.guid=t=>e.check(nr(Lo,t)),e.cuid=t=>e.check(pr(Bo,t)),e.cuid2=t=>e.check(hr(Vo,t)),e.ulid=t=>e.check(gr(Ro,t)),e.base64=t=>e.check(kr(Yo,t)),e.base64url=t=>e.check(xr(Qo,t)),e.xid=t=>e.check(fr(Wo,t)),e.ksuid=t=>e.check(mr(Ho,t)),e.ipv4=t=>e.check(vr(Go,t)),e.ipv6=t=>e.check(br(Jo,t)),e.cidrv4=t=>e.check(wr(qo,t)),e.cidrv6=t=>e.check(yr(Ko,t)),e.e164=t=>e.check(_r(Xo,t)),e.datetime=t=>e.check(function(e){return zr(go,e)}(t)),e.date=t=>e.check(function(e){return Sr(fo,e)}(t)),e.time=t=>e.check(function(e){return Ir(mo,e)}(t)),e.duration=t=>e.check(function(e){return Ar(vo,e)}(t))});function Oo(e){return rr($o,e)}const Po=n("ZodStringFormat",(e,t)=>{Re.init(e,t),jo.init(e,t)}),No=n("ZodEmail",(e,t)=>{Ge.init(e,t),Po.init(e,t)}),Lo=n("ZodGUID",(e,t)=>{We.init(e,t),Po.init(e,t)}),Do=n("ZodUUID",(e,t)=>{He.init(e,t),Po.init(e,t)}),Fo=n("ZodURL",(e,t)=>{Je.init(e,t),Po.init(e,t)}),Zo=n("ZodEmoji",(e,t)=>{qe.init(e,t),Po.init(e,t)}),Uo=n("ZodNanoID",(e,t)=>{Ke.init(e,t),Po.init(e,t)}),Bo=n("ZodCUID",(e,t)=>{Ye.init(e,t),Po.init(e,t)}),Vo=n("ZodCUID2",(e,t)=>{Qe.init(e,t),Po.init(e,t)}),Ro=n("ZodULID",(e,t)=>{Xe.init(e,t),Po.init(e,t)}),Wo=n("ZodXID",(e,t)=>{et.init(e,t),Po.init(e,t)}),Ho=n("ZodKSUID",(e,t)=>{tt.init(e,t),Po.init(e,t)}),Go=n("ZodIPv4",(e,t)=>{it.init(e,t),Po.init(e,t)}),Jo=n("ZodIPv6",(e,t)=>{st.init(e,t),Po.init(e,t)}),qo=n("ZodCIDRv4",(e,t)=>{lt.init(e,t),Po.init(e,t)}),Ko=n("ZodCIDRv6",(e,t)=>{ct.init(e,t),Po.init(e,t)}),Yo=n("ZodBase64",(e,t)=>{ut.init(e,t),Po.init(e,t)}),Qo=n("ZodBase64URL",(e,t)=>{pt.init(e,t),Po.init(e,t)}),Xo=n("ZodE164",(e,t)=>{ht.init(e,t),Po.init(e,t)}),en=n("ZodJWT",(e,t)=>{gt.init(e,t),Po.init(e,t)}),tn=n("ZodNumber",(e,t)=>{ft.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=r,{minimum:n,maximum:a,format:i,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;"string"==typeof i&&i.includes("int")?o.type="integer":o.type="number","number"==typeof c&&("draft-04"===t.target||"openapi-3.0"===t.target?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c),"number"==typeof n&&(o.minimum=n,"number"==typeof c&&"draft-04"!==t.target&&(c>=n?delete o.minimum:delete o.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l),"number"==typeof a&&(o.maximum=a,"number"==typeof l&&"draft-04"!==t.target&&(l<=a?delete o.maximum:delete o.exclusiveMaximum)),"number"==typeof s&&(o.multipleOf=s)})(e,t,r),e.gt=(t,r)=>e.check(Lr(t,r)),e.gte=(t,r)=>e.check(Dr(t,r)),e.min=(t,r)=>e.check(Dr(t,r)),e.lt=(t,r)=>e.check(Pr(t,r)),e.lte=(t,r)=>e.check(Nr(t,r)),e.max=(t,r)=>e.check(Nr(t,r)),e.int=t=>e.check(nn(t)),e.safe=t=>e.check(nn(t)),e.positive=t=>e.check(Lr(0,t)),e.nonnegative=t=>e.check(Dr(0,t)),e.negative=t=>e.check(Pr(0,t)),e.nonpositive=t=>e.check(Nr(0,t)),e.multipleOf=(t,r)=>e.check(Fr(t,r)),e.step=(t,r)=>e.check(Fr(t,r)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function rn(e){return Er(tn,e)}const on=n("ZodNumberFormat",(e,t)=>{mt.init(e,t),tn.init(e,t)});function nn(e){return Tr(on,e)}const an=n("ZodBoolean",(e,t)=>{vt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r)=>{r.type="boolean"})(0,0,t)});function sn(e){return Mr(an,e)}const ln=n("ZodAny",(e,t)=>{bt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function cn(){return jr(ln)}const dn=n("ZodUnknown",(e,t)=>{wt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function un(){return $r(dn)}const pn=n("ZodNever",(e,t)=>{yt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r)=>{r.not={}})(0,0,t)}),hn=n("ZodArray",(e,t)=>{xt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=r,a=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;"number"==typeof i&&(n.minItems=i),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=io(a.element,t,{...o,path:[...o.path,"items"]})})(e,t,r,o),e.element=t.element,e.min=(t,r)=>e.check(Ur(t,r)),e.nonempty=t=>e.check(Ur(1,t)),e.max=(t,r)=>e.check(Zr(t,r)),e.length=(t,r)=>e.check(Br(t,r)),e.unwrap=()=>e.element});function gn(e,t){return to(hn,e,t)}const fn=n("ZodObject",(e,t)=>{It.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=r,a=e._zod.def;n.type="object",n.properties={};const i=a.shape;for(const c in i)n.properties[c]=io(i[c],t,{...o,path:[...o.path,"properties",c]});const s=new Set(Object.keys(i)),l=new Set([...s].filter(e=>{const r=a.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));l.size>0&&(n.required=Array.from(l)),"never"===a.catchall?._zod.def.type?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=io(a.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)})(e,t,r,o),f(e,"shape",()=>t.shape),e.keyof=()=>Cn(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:un()}),e.loose=()=>e.clone({...e._zod.def,catchall:un()}),e.strict=()=>e.clone({...e._zod.def,catchall:Or(pn,void 0)}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!x(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const r=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=v(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return m(this,"shape",r),r}});return S(e,o)}(e,t),e.safeExtend=t=>function(e,t){if(!x(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=v(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return m(this,"shape",r),r}});return S(e,r)}(e,t),e.merge=t=>function(e,t){const r=v(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return m(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return S(e,r)}(e,t),e.pick=t=>function(e,t){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return S(e,v(e._zod.def,{get shape(){const e={};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(e[o]=r.shape[o])}return m(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const n=v(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const e in t){if(!(e in r.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete o[e]}return m(this,"shape",o),o},checks:[]});return S(e,n)}(e,t),e.partial=(...t)=>function(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const n=v(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const t in r){if(!(t in o))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=e?new e({type:"optional",innerType:o[t]}):o[t])}else for(const t in o)n[t]=e?new e({type:"optional",innerType:o[t]}):o[t];return m(this,"shape",n),n},checks:[]});return S(t,n)}(En,e,t[0]),e.required=(...t)=>function(e,t,r){const o=v(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const t in r){if(!(t in n))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new e({type:"nonoptional",innerType:o[t]}))}else for(const t in o)n[t]=new e({type:"nonoptional",innerType:o[t]});return m(this,"shape",n),n}});return S(t,o)}(Nn,e,t[0])});function mn(e,t){const r={type:"object",shape:e??{},...I(t)};return new fn(r)}const vn=n("ZodUnion",(e,t)=>{Et.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a=!1===n.inclusive,i=n.options.map((e,r)=>io(e,t,{...o,path:[...o.path,a?"oneOf":"anyOf",r]}));a?r.oneOf=i:r.anyOf=i})(e,t,r,o),e.options=t.options});function bn(e,t){return new vn({type:"union",options:e,...I(t)})}const wn=n("ZodDiscriminatedUnion",(e,t)=>{vn.init(e,t),Tt.init(e,t)}),yn=n("ZodIntersection",(e,t)=>{Mt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a=io(n.left,t,{...o,path:[...o.path,"allOf",0]}),i=io(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,l=[...s(a)?a.allOf:[a],...s(i)?i.allOf:[i]];r.allOf=l})(e,t,r,o)}),kn=n("ZodRecord",(e,t)=>{Ot.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=r,a=e._zod.def;n.type="object";const i=a.keyType,s=i._zod.bag,l=s?.patterns;if("loose"===a.mode&&l&&l.size>0){const e=io(a.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(const t of l)n.patternProperties[t.source]=e}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(n.propertyNames=io(a.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=io(a.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=i._zod.values;if(c){const e=[...c].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}})(e,t,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function xn(e,t,r){return new kn({type:"record",keyType:e,valueType:t,...I(r)})}const _n=n("ZodEnum",(e,t)=>{Pt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=c(e._zod.def.entries);o.every(e=>"number"==typeof e)&&(r.type="number"),o.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=o})(e,0,r),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(e,o)=>{const n={};for(const a of e){if(!r.has(a))throw new Error(`Key ${a} not found in enum`);n[a]=t.entries[a]}return new _n({...t,checks:[],...I(o),entries:n})},e.exclude=(e,o)=>{const n={...t.entries};for(const t of e){if(!r.has(t))throw new Error(`Key ${t} not found in enum`);delete n[t]}return new _n({...t,checks:[],...I(o),entries:n})}});function Cn(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new _n({type:"enum",entries:r,...I(t)})}const zn=n("ZodLiteral",(e,t)=>{Nt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=e._zod.def,n=[];for(const a of o.values)if(void 0===a){if("throw"===t.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof a){if("throw"===t.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(a))}else n.push(a);if(0===n.length);else if(1===n.length){const e=n[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else n.every(e=>"number"==typeof e)&&(r.type="number"),n.every(e=>"string"==typeof e)&&(r.type="string"),n.every(e=>"boolean"==typeof e)&&(r.type="boolean"),n.every(e=>null===e)&&(r.type="null"),r.enum=n})(e,t,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Sn(e,t){return new zn({type:"literal",values:Array.isArray(e)?e:[e],...I(t)})}const In=n("ZodTransform",(e,t)=>{Lt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")})(0,e),e._zod.parse=(r,o)=>{if("backward"===o.direction)throw new i(e.constructor.name);r.addIssue=o=>{if("string"==typeof o)r.issues.push(O(o,r.value,t));else{const t=o;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),r.issues.push(O(t))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(e=>(r.value=e,r)):(r.value=n,r)}});function An(e){return new In({type:"transform",transform:e})}const En=n("ZodOptional",(e,t)=>{Ft.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>ho(e,t,0,o),e.unwrap=()=>e._zod.def.innerType});function Tn(e){return new En({type:"optional",innerType:e})}const Mn=n("ZodExactOptional",(e,t)=>{Zt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>ho(e,t,0,o),e.unwrap=()=>e._zod.def.innerType}),jn=n("ZodNullable",(e,t)=>{Ut.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a=io(n.innerType,t,o),i=t.seen.get(e);"openapi-3.0"===t.target?(i.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType});function $n(e){return new jn({type:"nullable",innerType:e})}const On=n("ZodDefault",(e,t)=>{Bt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;io(n.innerType,t,o),t.seen.get(e).ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Pn=n("ZodPrefault",(e,t)=>{Rt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;io(n.innerType,t,o),t.seen.get(e).ref=n.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType}),Nn=n("ZodNonOptional",(e,t)=>{Wt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;io(n.innerType,t,o),t.seen.get(e).ref=n.innerType})(e,t,0,o),e.unwrap=()=>e._zod.def.innerType}),Ln=n("ZodCatch",(e,t)=>{Gt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;let a;io(n.innerType,t,o),t.seen.get(e).ref=n.innerType;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Dn=n("ZodPipe",(e,t)=>{Jt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a="input"===t.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;io(a,t,o),t.seen.get(e).ref=a})(e,t,0,o),e.in=t.in,e.out=t.out});function Fn(e,t){return new Dn({type:"pipe",in:e,out:t})}const Zn=n("ZodReadonly",(e,t)=>{Kt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;io(n.innerType,t,o),t.seen.get(e).ref=n.innerType,r.readOnly=!0})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType}),Un=n("ZodCustom",(e,t)=>{Qt.init(e,t),Mo.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")})(0,e)});function Bn(e,t){return Fn(An(e),t)}Bn(e=>Array.isArray(e)?e.filter(e=>e&&"object"==typeof e&&e.platform&&e.handle):e,gn(mn({platform:Cn(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),handle:Oo(),url:Oo().optional()})));const Vn=Cn(["image","video","audio"]),Rn=Cn(["avatar","cover","general"]),Wn=Cn(["processing","active","failed","deleted"]),Hn=Cn(["low","standard","high"]),Gn=Cn(["jpg","jpeg","png","gif","webp","svg"]),Jn=Cn(["mp4","webm","ogg","mov","avi"]),qn=Cn(["mp3","wav","ogg","opus","aac","flac"]),Kn=mn({mediaId:Oo(),userId:Oo(),orgId:Oo(),agentId:Oo().nullable().optional(),filename:Oo(),mimeType:Oo(),size:rn(),src:Oo(),alt:Oo().optional(),context:Rn.default("general"),status:Wn.default("processing"),quality:Hn.default("standard"),createdAt:Oo().optional(),updatedAt:Oo().optional()}).extend({mediaType:Vn.optional(),className:Oo().optional(),width:rn().optional(),height:rn().optional(),duration:rn().optional(),blurhash:Oo().optional()}).partial(),Yn=mn({duration:rn().optional(),thumbnail:Oo().optional(),autoplay:sn().optional(),loop:sn().optional(),muted:sn().optional(),controls:sn().optional()}),Qn=mn({duration:rn().optional(),autoplay:sn().optional(),loop:sn().optional(),muted:sn().optional(),controls:sn().optional()});new wn({type:"union",options:[Kn.extend({mediaType:Sn("image"),imageFormat:Gn}),Kn.extend({mediaType:Sn("video"),videoFormat:Jn,video:Yn.optional()}),Kn.extend({mediaType:Sn("audio"),audioFormat:qn,audio:Qn.optional()})],discriminator:"mediaType",...I(void 0)});const Xn=Cn(["xxs","xs","sm","md","lg","xl"]),ea=Cn(["primary","default","overlay","red","green","indigo","orange"]),ta=Cn(["ghost","link","outline","solid"]),ra=mn({key:Oo().optional(),label:Oo().optional(),href:Oo().optional(),size:Xn.optional(),theme:ea.optional(),design:ta.optional(),icon:bn([Oo(),Kn]).optional(),iconAfter:bn([Oo(),Kn]).optional(),rounding:Cn(["full","md","lg"]).optional(),loading:sn().optional(),disabled:sn().optional(),onClick:cn().optional(),testId:Oo().optional(),target:Cn(["_blank","_self"]).optional(),type:Cn(["button","submit","reset"]).optional()});mn({buttons:gn(ra).optional(),size:Xn.optional(),theme:ea.optional(),design:ta.optional()});const oa=mn({key:Oo().optional(),id:Oo().optional(),label:Oo().optional(),srLabel:Oo().optional(),subLabel:Oo().optional(),value:bn([Oo(),rn()]).optional(),description:Oo().optional(),info:Oo().optional(),count:rn().optional(),className:Oo().optional(),media:Kn.optional(),icon:Kn.optional(),iconAfter:Kn.optional(),href:Oo().optional(),target:Cn(["_self","_blank"]).optional(),onClick:cn().optional(),theme:Cn(["primary","default"]).optional(),isActive:sn().optional(),isDisabled:sn().optional(),isHidden:sn().optional(),priority:rn().optional(),testId:Oo().optional(),items:gn(cn()).optional(),badges:gn(cn()).optional(),menuItems:gn(cn()).optional()});mn({title:Oo().optional(),description:Oo().optional(),items:gn(oa).optional()});const na=Bn(e=>Array.isArray(e)?e.filter(e=>e&&"object"==typeof e&&e.platform&&e.handle):e,gn(mn({platform:Cn(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website"]),handle:Oo()}))),aa=mn({agentId:Oo().optional(),handle:Oo().optional(),ownerId:Oo().optional(),orgId:Oo().optional(),name:Oo().optional(),title:Oo().nullable().optional(),summary:Oo().nullable().optional(),entityType:Oo().optional(),avatarId:Oo().nullable().optional(),coverId:Oo().nullable().optional(),avatar:Kn.optional(),cover:Kn.optional(),email:Oo().nullable().optional(),website:Oo().url().nullable().optional(),accounts:na.nullable().optional(),model:Oo().nullable().optional(),channel:Oo().nullable().optional(),lastActivityAt:Oo().nullable().optional(),instanceId:Oo().nullable().optional(),instanceProvider:Oo().nullable().optional(),imageVersion:Oo().nullable().optional(),botStatus:Oo().nullable().optional(),botServerUrl:Oo().nullable().optional(),botError:Oo().nullable().optional(),botLastSeen:Oo().nullable().optional(),botHeartbeatAt:Oo().nullable().optional(),desiredStatus:Cn(["active","stopped"]).nullable().optional(),onboardedAt:Oo().nullable().optional(),enrichment:xn(Oo(),cn()).nullable().optional(),onboarding:xn(Oo(),cn()).nullable().optional(),org:mn({orgId:Oo(),handle:Oo(),name:Oo(),headline:Oo().optional(),summary:Oo().optional(),status:Oo()}).optional(),visibility:Cn(["private","org","public"]).optional(),status:Oo().optional(),createdAt:Oo().optional(),updatedAt:Oo().optional()});aa.extend({avatar:Kn.optional(),cover:Kn.optional(),isPrimary:sn().optional()});const ia=mn({userId:Oo(),email:Oo().optional(),handle:Oo().optional(),fullName:Oo().optional(),avatarId:Oo().optional(),avatar:Kn.optional(),emailVerified:sn().optional(),hashedPassword:Oo().optional(),primaryAgentId:Oo().optional(),primaryOrgId:Oo().optional(),lastActiveOrgId:Oo().optional(),onboarding:cn().optional(),recentAgentIds:gn(Oo()).optional(),location:Oo().optional(),geo:cn().optional(),status:Oo().optional(),lastSeenAt:Oo().optional(),createdAt:Oo().optional(),updatedAt:Oo().optional(),onboarded:sn().optional()});mn({name:Oo().min(1).max(100).optional(),avatar:mn({src:Oo(),mediaId:Oo()}).optional(),primaryAgentId:Oo().optional(),primaryOrgId:Oo().optional(),lastActiveOrgId:Oo().optional(),onboarding:cn().optional()}).partial(),mn({email:Oo()}),mn({email:Oo(),password:Oo().min(8,"Password must be at least 8 characters")}),mn({email:Oo(),password:Oo().min(8,"Password must be at least 8 characters"),fullName:Oo().min(1,"Name is required")}),mn({email:Oo(),code:Oo().min(6,"Verification code is required")}),mn({email:Oo(),code:Oo().min(6,"Verification code is required"),newPassword:Oo().min(8,"New password must be at least 8 characters")}),mn({newEmail:Oo()}),mn({newPassword:Oo().min(8,"New password must be at least 8 characters")}),mn({credential:Oo().optional(),code:Oo().optional(),createOnEmpty:sn().optional()}).refine(e=>e.credential||e.code,{message:"Either credential or code must be provided"}),mn({orgId:Oo().optional(),handle:Oo().optional(),name:Oo().optional(),email:Oo().optional(),website:Oo().url().nullable().optional(),summary:Oo().optional(),avatarId:Oo().optional(),avatar:Kn.optional(),coverId:Oo().optional(),cover:Kn.optional(),accounts:xn(Oo(),mn({handle:Oo().optional(),url:Oo().optional()})).nullable().optional(),ownerId:Oo().optional(),isPersonal:sn().optional(),stripeCustomerIdTest:Oo().optional(),stripeCustomerIdLive:Oo().optional(),maxUsers:rn().optional(),onboarding:cn().optional(),status:Oo().optional(),createdAt:Oo().optional(),updatedAt:Oo().optional()}).extend({defaultAgent:mn({agentId:Oo(),handle:Oo(),name:Oo(),orgId:Oo()}),onboardingCompleted:sn().optional()});const sa=mn({membershipId:Oo(),orgId:Oo(),name:Oo(),handle:Oo(),avatarId:Oo().optional(),avatar:Kn.optional(),coverId:Oo().optional(),cover:Kn.optional(),role:Cn(["owner","admin","member","observer"]),joinedAt:Oo()});function la(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}ia.extend({orgs:gn(sa).optional(),memberships:gn(sa).optional(),agents:gn(aa).optional()});const ca={},da=[],ua=()=>{},pa=()=>!1,ha=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ga=e=>e.startsWith("onUpdate:"),fa=Object.assign,ma=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},va=Object.prototype.hasOwnProperty,ba=(e,t)=>va.call(e,t),wa=Array.isArray,ya=e=>"[object Map]"===Ea(e),ka=e=>"[object Set]"===Ea(e),xa=e=>"[object Date]"===Ea(e),_a=e=>"function"==typeof e,Ca=e=>"string"==typeof e,za=e=>"symbol"==typeof e,Sa=e=>null!==e&&"object"==typeof e,Ia=e=>(Sa(e)||_a(e))&&_a(e.then)&&_a(e.catch),Aa=Object.prototype.toString,Ea=e=>Aa.call(e),Ta=e=>"[object Object]"===Ea(e),Ma=e=>Ca(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ja=la(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$a=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Oa=/-\w/g,Pa=$a(e=>e.replace(Oa,e=>e.slice(1).toUpperCase())),Na=/\B([A-Z])/g,La=$a(e=>e.replace(Na,"-$1").toLowerCase()),Da=$a(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fa=$a(e=>e?`on${Da(e)}`:""),Za=(e,t)=>!Object.is(e,t),Ua=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Ba=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Va=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ra;const Wa=()=>Ra||(Ra="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function Ha(e){if(wa(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],n=Ca(o)?Ka(o):Ha(o);if(n)for(const e in n)t[e]=n[e]}return t}if(Ca(e)||Sa(e))return e}const Ga=/;(?![^(]*\))/g,Ja=/:([^]+)/,qa=/\/\*[^]*?\*\//g;function Ka(e){const t={};return e.replace(qa,"").split(Ga).forEach(e=>{if(e){const r=e.split(Ja);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ya(e){let t="";if(Ca(e))t=e;else if(wa(e))for(let r=0;r<e.length;r++){const o=Ya(e[r]);o&&(t+=o+" ")}else if(Sa(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Qa(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ca(t)&&(e.class=Ya(t)),r&&(e.style=Ha(r)),e}const Xa=la("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ei(e){return!!e||""===e}function ti(e,t){if(e===t)return!0;let r=xa(e),o=xa(t);if(r||o)return!(!r||!o)&&e.getTime()===t.getTime();if(r=za(e),o=za(t),r||o)return e===t;if(r=wa(e),o=wa(t),r||o)return!(!r||!o)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=ti(e[o],t[o]);return r}(e,t);if(r=Sa(e),o=Sa(t),r||o){if(!r||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e){const o=e.hasOwnProperty(r),n=t.hasOwnProperty(r);if(o&&!n||!o&&n||!ti(e[r],t[r]))return!1}}return String(e)===String(t)}const ri=e=>!(!e||!0!==e.__v_isRef),oi=e=>Ca(e)?e:null==e?"":wa(e)||Sa(e)&&(e.toString===Aa||!_a(e.toString))?ri(e)?oi(e.value):JSON.stringify(e,ni,2):String(e),ni=(e,t)=>ri(t)?ni(e,t.value):ya(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,r],o)=>(e[ai(t,o)+" =>"]=r,e),{})}:ka(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ai(e))}:za(t)?ai(t):!Sa(t)||wa(t)||Ta(t)?t:String(t),ai=(e,t="")=>{var r;return za(e)?`Symbol(${null!=(r=e.description)?r:t})`:e};let ii,si;class li{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ii,!e&&ii&&(this.index=(ii.scopes||(ii.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ii;try{return ii=this,e()}finally{ii=t}}}on(){1===++this._on&&(this.prevScope=ii,ii=this)}off(){this._on>0&&0===--this._on&&(ii=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,r;for(this._active=!1,t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const ci=new WeakSet;class di{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ii&&ii.active&&ii.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,ci.has(this)&&(ci.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||gi(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Ii(this),vi(this);const e=si,t=_i;si=this,_i=!0;try{return this.fn()}finally{bi(this),si=e,_i=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ki(e);this.deps=this.depsTail=void 0,Ii(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?ci.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){wi(this)&&this.run()}get dirty(){return wi(this)}}let ui,pi,hi=0;function gi(e,t=!1){if(e.flags|=8,t)return e.next=pi,void(pi=e);e.next=ui,ui=e}function fi(){hi++}function mi(){if(--hi>0)return;if(pi){let e=pi;for(pi=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ui;){let r=ui;for(ui=void 0;r;){const o=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=o}}if(e)throw e}function vi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function bi(e){let t,r=e.depsTail,o=r;for(;o;){const e=o.prevDep;-1===o.version?(o===r&&(r=e),ki(o),xi(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=r}function wi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yi(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Ai)return;if(e.globalVersion=Ai,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!wi(e)))return;e.flags|=2;const t=e.dep,r=si,o=_i;si=e,_i=!0;try{vi(e);const r=e.fn(e._value);(0===t.version||Za(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(n){throw t.version++,n}finally{si=r,_i=o,bi(e),e.flags&=-3}}function ki(e,t=!1){const{dep:r,prevSub:o,nextSub:n}=e;if(o&&(o.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let e=r.computed.deps;e;e=e.nextDep)ki(e,!0)}t||--r.sc||!r.map||r.map.delete(r.key)}function xi(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let _i=!0;const Ci=[];function zi(){Ci.push(_i),_i=!1}function Si(){const e=Ci.pop();_i=void 0===e||e}function Ii(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=si;si=void 0;try{t()}finally{si=e}}}let Ai=0;class Ei{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ti{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!si||!_i||si===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==si)t=this.activeLink=new Ei(si,this),si.deps?(t.prevDep=si.depsTail,si.depsTail.nextDep=t,si.depsTail=t):si.deps=si.depsTail=t,Mi(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=si.depsTail,t.nextDep=void 0,si.depsTail.nextDep=t,si.depsTail=t,si.deps===t&&(si.deps=e)}return t}trigger(e){this.version++,Ai++,this.notify(e)}notify(e){fi();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{mi()}}}function Mi(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Mi(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ji=new WeakMap,$i=Symbol(""),Oi=Symbol(""),Pi=Symbol("");function Ni(e,t,r){if(_i&&si){let t=ji.get(e);t||ji.set(e,t=new Map);let o=t.get(r);o||(t.set(r,o=new Ti),o.map=t,o.key=r),o.track()}}function Li(e,t,r,o,n,a){const i=ji.get(e);if(!i)return void Ai++;const s=e=>{e&&e.trigger()};if(fi(),"clear"===t)i.forEach(s);else{const n=wa(e),a=n&&Ma(r);if(n&&"length"===r){const e=Number(o);i.forEach((t,r)=>{("length"===r||r===Pi||!za(r)&&r>=e)&&s(t)})}else switch((void 0!==r||i.has(void 0))&&s(i.get(r)),a&&s(i.get(Pi)),t){case"add":n?a&&s(i.get("length")):(s(i.get($i)),ya(e)&&s(i.get(Oi)));break;case"delete":n||(s(i.get($i)),ya(e)&&s(i.get(Oi)));break;case"set":ya(e)&&s(i.get($i))}}mi()}function Di(e){const t=xs(e);return t===e?t:(Ni(t,0,Pi),ys(e)?t:t.map(_s))}function Fi(e){return Ni(e=xs(e),0,Pi),e}function Zi(e,t){return ws(e)?Cs(bs(e)?_s(t):t):_s(t)}const Ui={__proto__:null,[Symbol.iterator](){return Bi(this,Symbol.iterator,e=>Zi(this,e))},concat(...e){return Di(this).concat(...e.map(e=>wa(e)?Di(e):e))},entries(){return Bi(this,"entries",e=>(e[1]=Zi(this,e[1]),e))},every(e,t){return Ri(this,"every",e,t,void 0,arguments)},filter(e,t){return Ri(this,"filter",e,t,e=>e.map(e=>Zi(this,e)),arguments)},find(e,t){return Ri(this,"find",e,t,e=>Zi(this,e),arguments)},findIndex(e,t){return Ri(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ri(this,"findLast",e,t,e=>Zi(this,e),arguments)},findLastIndex(e,t){return Ri(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ri(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hi(this,"includes",e)},indexOf(...e){return Hi(this,"indexOf",e)},join(e){return Di(this).join(e)},lastIndexOf(...e){return Hi(this,"lastIndexOf",e)},map(e,t){return Ri(this,"map",e,t,void 0,arguments)},pop(){return Gi(this,"pop")},push(...e){return Gi(this,"push",e)},reduce(e,...t){return Wi(this,"reduce",e,t)},reduceRight(e,...t){return Wi(this,"reduceRight",e,t)},shift(){return Gi(this,"shift")},some(e,t){return Ri(this,"some",e,t,void 0,arguments)},splice(...e){return Gi(this,"splice",e)},toReversed(){return Di(this).toReversed()},toSorted(e){return Di(this).toSorted(e)},toSpliced(...e){return Di(this).toSpliced(...e)},unshift(...e){return Gi(this,"unshift",e)},values(){return Bi(this,"values",e=>Zi(this,e))}};function Bi(e,t,r){const o=Fi(e),n=o[t]();return o===e||ys(e)||(n._next=n.next,n.next=()=>{const e=n._next();return e.done||(e.value=r(e.value)),e}),n}const Vi=Array.prototype;function Ri(e,t,r,o,n,a){const i=Fi(e),s=i!==e&&!ys(e),l=i[t];if(l!==Vi[t]){const t=l.apply(e,a);return s?_s(t):t}let c=r;i!==e&&(s?c=function(t,o){return r.call(this,Zi(e,t),o,e)}:r.length>2&&(c=function(t,o){return r.call(this,t,o,e)}));const d=l.call(i,c,o);return s&&n?n(d):d}function Wi(e,t,r,o){const n=Fi(e);let a=r;return n!==e&&(ys(e)?r.length>3&&(a=function(t,o,n){return r.call(this,t,o,n,e)}):a=function(t,o,n){return r.call(this,t,Zi(e,o),n,e)}),n[t](a,...o)}function Hi(e,t,r){const o=xs(e);Ni(o,0,Pi);const n=o[t](...r);return-1!==n&&!1!==n||!ks(r[0])?n:(r[0]=xs(r[0]),o[t](...r))}function Gi(e,t,r=[]){zi(),fi();const o=xs(e)[t].apply(e,r);return mi(),Si(),o}const Ji=la("__proto__,__v_isRef,__isVue"),qi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(za));function Ki(e){za(e)||(e=String(e));const t=xs(this);return Ni(t,0,e),t.hasOwnProperty(e)}class Yi{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,n=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return n;if("__v_raw"===t)return r===(o?n?hs:ps:n?us:ds).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const a=wa(e);if(!o){let e;if(a&&(e=Ui[t]))return e;if("hasOwnProperty"===t)return Ki}const i=Reflect.get(e,t,zs(e)?e:r);if(za(t)?qi.has(t):Ji(t))return i;if(o||Ni(e,0,t),n)return i;if(zs(i)){const e=a&&Ma(t)?i:i.value;return o&&Sa(e)?ms(e):e}return Sa(i)?o?ms(i):gs(i):i}}class Qi extends Yi{constructor(e=!1){super(!1,e)}set(e,t,r,o){let n=e[t];const a=wa(e)&&Ma(t);if(!this._isShallow){const e=ws(n);if(ys(r)||ws(r)||(n=xs(n),r=xs(r)),!a&&zs(n)&&!zs(r))return e||(n.value=r),!0}const i=a?Number(t)<e.length:ba(e,t),s=Reflect.set(e,t,r,zs(e)?e:o);return e===xs(o)&&(i?Za(r,n)&&Li(e,"set",t,r):Li(e,"add",t,r)),s}deleteProperty(e,t){const r=ba(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&r&&Li(e,"delete",t,void 0),o}has(e,t){const r=Reflect.has(e,t);return za(t)&&qi.has(t)||Ni(e,0,t),r}ownKeys(e){return Ni(e,0,wa(e)?"length":$i),Reflect.ownKeys(e)}}class Xi extends Yi{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const es=new Qi,ts=new Xi,rs=new Qi(!0),os=e=>e,ns=e=>Reflect.getPrototypeOf(e);function as(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function is(e,t){const r=function(e,t){const r={get(r){const o=this.__v_raw,n=xs(o),a=xs(r);e||(Za(r,a)&&Ni(n,0,r),Ni(n,0,a));const{has:i}=ns(n),s=t?os:e?Cs:_s;return i.call(n,r)?s(o.get(r)):i.call(n,a)?s(o.get(a)):void(o!==n&&o.get(r))},get size(){const t=this.__v_raw;return!e&&Ni(xs(t),0,$i),t.size},has(t){const r=this.__v_raw,o=xs(r),n=xs(t);return e||(Za(t,n)&&Ni(o,0,t),Ni(o,0,n)),t===n?r.has(t):r.has(t)||r.has(n)},forEach(r,o){const n=this,a=n.__v_raw,i=t?os:e?Cs:_s;return!e&&Ni(xs(a),0,$i),a.forEach((e,t)=>r.call(o,i(e),i(t),n))}};return fa(r,e?{add:as("add"),set:as("set"),delete:as("delete"),clear:as("clear")}:{add(e){t||ys(e)||ws(e)||(e=xs(e));const r=xs(this);return ns(r).has.call(r,e)||(r.add(e),Li(r,"add",e,e)),this},set(e,r){t||ys(r)||ws(r)||(r=xs(r));const o=xs(this),{has:n,get:a}=ns(o);let i=n.call(o,e);i||(e=xs(e),i=n.call(o,e));const s=a.call(o,e);return o.set(e,r),i?Za(r,s)&&Li(o,"set",e,r):Li(o,"add",e,r),this},delete(e){const t=xs(this),{has:r,get:o}=ns(t);let n=r.call(t,e);n||(e=xs(e),n=r.call(t,e)),o&&o.call(t,e);const a=t.delete(e);return n&&Li(t,"delete",e,void 0),a},clear(){const e=xs(this),t=0!==e.size,r=e.clear();return t&&Li(e,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=function(e,t,r){return function(...o){const n=this.__v_raw,a=xs(n),i=ya(a),s="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,c=n[e](...o),d=r?os:t?Cs:_s;return!t&&Ni(a,0,l?Oi:$i),fa(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}(o,e,t)}),r}(e,t);return(t,o,n)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(ba(r,o)&&o in t?r:t,o,n)}const ss={get:is(!1,!1)},ls={get:is(!1,!0)},cs={get:is(!0,!1)},ds=new WeakMap,us=new WeakMap,ps=new WeakMap,hs=new WeakMap;function gs(e){return ws(e)?e:vs(e,!1,es,ss,ds)}function fs(e){return vs(e,!1,rs,ls,us)}function ms(e){return vs(e,!0,ts,cs,ps)}function vs(e,t,r,o,n){if(!Sa(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>Ea(e).slice(8,-1))(i));var i;if(0===a)return e;const s=n.get(e);if(s)return s;const l=new Proxy(e,2===a?o:r);return n.set(e,l),l}function bs(e){return ws(e)?bs(e.__v_raw):!(!e||!e.__v_isReactive)}function ws(e){return!(!e||!e.__v_isReadonly)}function ys(e){return!(!e||!e.__v_isShallow)}function ks(e){return!!e&&!!e.__v_raw}function xs(e){const t=e&&e.__v_raw;return t?xs(t):e}const _s=e=>Sa(e)?gs(e):e,Cs=e=>Sa(e)?ms(e):e;function zs(e){return!!e&&!0===e.__v_isRef}function Ss(e){return As(e,!1)}function Is(e){return As(e,!0)}function As(e,t){return zs(e)?e:new Es(e,t)}class Es{constructor(e,t){this.dep=new Ti,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:xs(e),this._value=t?e:_s(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||ys(e)||ws(e);Za(e=r?e:xs(e),t)&&(this._rawValue=e,this._value=r?e:_s(e),this.dep.trigger())}}function Ts(e){return zs(e)?e.value:e}const Ms={get:(e,t,r)=>"__v_raw"===t?e:Ts(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const n=e[t];return zs(n)&&!zs(r)?(n.value=r,!0):Reflect.set(e,t,r,o)}};function js(e){return bs(e)?e:new Proxy(e,Ms)}class $s{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ti(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ai-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(8&this.flags)&&si!==this)return gi(this,!0),!0}get value(){const e=this.dep.track();return yi(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Os(e,t,r=!1){let o,n;return _a(e)?o=e:(o=e.get,n=e.set),new $s(o,n,r)}const Ps={},Ns=new WeakMap;let Ls;function Ds(e,t=1/0,r){if(t<=0||!Sa(e)||e.__v_skip)return e;if(((r=r||new Map).get(e)||0)>=t)return e;if(r.set(e,t),t--,zs(e))Ds(e.value,t,r);else if(wa(e))for(let o=0;o<e.length;o++)Ds(e[o],t,r);else if(ka(e)||ya(e))e.forEach(e=>{Ds(e,t,r)});else if(Ta(e)){for(const o in e)Ds(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Ds(e[o],t,r)}return e}function Fs(e,t,r,o){try{return o?e(...o):e()}catch(n){Us(n,t,r)}}function Zs(e,t,r,o){if(_a(e)){const n=Fs(e,t,r,o);return n&&Ia(n)&&n.catch(e=>{Us(e,t,r)}),n}if(wa(e)){const n=[];for(let a=0;a<e.length;a++)n.push(Zs(e[a],t,r,o));return n}}function Us(e,t,r,o=!0){t&&t.vnode;const{errorHandler:n,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||ca;if(t){let o=t.parent;const a=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const t=o.ec;if(t)for(let r=0;r<t.length;r++)if(!1===t[r](e,a,i))return;o=o.parent}if(n)return zi(),Fs(n,null,10,[e,a,i]),void Si()}!function(e,t,r,o=!0,n=!1){if(n)throw e}(e,0,0,o,a)}const Bs=[];let Vs=-1;const Rs=[];let Ws=null,Hs=0;const Gs=Promise.resolve();let Js=null;function qs(e){const t=Js||Gs;return e?t.then(this?e.bind(this):e):t}function Ks(e){if(!(1&e.flags)){const t=el(e),r=Bs[Bs.length-1];!r||!(2&e.flags)&&t>=el(r)?Bs.push(e):Bs.splice(function(e){let t=Vs+1,r=Bs.length;for(;t<r;){const o=t+r>>>1,n=Bs[o],a=el(n);a<e||a===e&&2&n.flags?t=o+1:r=o}return t}(t),0,e),e.flags|=1,Ys()}}function Ys(){Js||(Js=Gs.then(tl))}function Qs(e,t,r=Vs+1){for(;r<Bs.length;r++){const t=Bs[r];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Bs.splice(r,1),r--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Xs(e){if(Rs.length){const e=[...new Set(Rs)].sort((e,t)=>el(e)-el(t));if(Rs.length=0,Ws)return void Ws.push(...e);for(Ws=e,Hs=0;Hs<Ws.length;Hs++){const e=Ws[Hs];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Ws=null,Hs=0}}const el=e=>null==e.id?2&e.flags?-1:1/0:e.id;function tl(e){try{for(Vs=0;Vs<Bs.length;Vs++){const e=Bs[Vs];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Fs(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Vs<Bs.length;Vs++){const e=Bs[Vs];e&&(e.flags&=-2)}Vs=-1,Bs.length=0,Xs(),Js=null,(Bs.length||Rs.length)&&tl()}}let rl=null,ol=null;function nl(e){const t=rl;return rl=e,ol=e&&e.type.__scopeId||null,t}function al(e,t=rl,r){if(!t)return e;if(e._n)return e;const o=(...r)=>{o._d&&xd(-1);const n=nl(t);let a;try{a=e(...r)}finally{nl(n),o._d&&xd(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function il(e,t){if(null===rl)return e;const r=eu(rl),o=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[e,a,i,s=ca]=t[n];e&&(_a(e)&&(e={mounted:e,updated:e}),e.deep&&Ds(a),o.push({dir:e,instance:r,value:a,oldValue:void 0,arg:i,modifiers:s}))}return e}function sl(e,t,r,o){const n=e.dirs,a=t&&t.dirs;for(let i=0;i<n.length;i++){const s=n[i];a&&(s.oldValue=a[i].value);let l=s.dir[o];l&&(zi(),Zs(l,r,8,[e.el,s,e,t]),Si())}}function ll(e,t,r=!1){const o=Rd();if(o||Pc){let n=Pc?Pc._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return r&&_a(t)?t.call(o&&o.proxy):t}}const cl=Symbol.for("v-scx");function dl(e,t,r){return ul(e,t,r)}function ul(e,t,r=ca){const{immediate:o,deep:n,flush:a,once:i}=r,s=fa({},r),l=t&&o||!t&&"post"!==a;let c;if(Kd)if("sync"===a){const e=ll(cl);c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=ua,e.resume=ua,e.pause=ua,e}const d=Vd;s.call=(e,t,r)=>Zs(e,d,t,r);let u=!1;"post"===a?s.scheduler=e=>{ad(e,d&&d.suspense)}:"sync"!==a&&(u=!0,s.scheduler=(e,t)=>{t?e():Ks(e)}),s.augmentJob=e=>{t&&(e.flags|=4),u&&(e.flags|=2,d&&(e.id=d.uid,e.i=d))};const p=function(e,t,r=ca){const{immediate:o,deep:n,once:a,scheduler:i,augmentJob:s,call:l}=r,c=e=>n?e:ys(e)||!1===n||0===n?Ds(e,1):Ds(e);let d,u,p,h,g=!1,f=!1;if(zs(e)?(u=()=>e.value,g=ys(e)):bs(e)?(u=()=>c(e),g=!0):wa(e)?(f=!0,g=e.some(e=>bs(e)||ys(e)),u=()=>e.map(e=>zs(e)?e.value:bs(e)?c(e):_a(e)?l?l(e,2):e():void 0)):u=_a(e)?t?l?()=>l(e,2):e:()=>{if(p){zi();try{p()}finally{Si()}}const t=Ls;Ls=d;try{return l?l(e,3,[h]):e(h)}finally{Ls=t}}:ua,t&&n){const e=u,t=!0===n?1/0:n;u=()=>Ds(e(),t)}const m=ii,v=()=>{d.stop(),m&&m.active&&ma(m.effects,d)};if(a&&t){const e=t;t=(...t)=>{e(...t),v()}}let b=f?new Array(e.length).fill(Ps):Ps;const w=e=>{if(1&d.flags&&(d.dirty||e))if(t){const e=d.run();if(n||g||(f?e.some((e,t)=>Za(e,b[t])):Za(e,b))){p&&p();const r=Ls;Ls=d;try{const r=[e,b===Ps?void 0:f&&b[0]===Ps?[]:b,h];b=e,l?l(t,3,r):t(...r)}finally{Ls=r}}}else d.run()};return s&&s(w),d=new di(u),d.scheduler=i?()=>i(w,!1):w,h=e=>function(e,t=!1,r=Ls){if(r){let t=Ns.get(r);t||Ns.set(r,t=[]),t.push(e)}}(e,!1,d),p=d.onStop=()=>{const e=Ns.get(d);if(e){if(l)l(e,4);else for(const t of e)t();Ns.delete(d)}},t?o?w(!0):b=d.run():i?i(w.bind(null,!0),!0):d.run(),v.pause=d.pause.bind(d),v.resume=d.resume.bind(d),v.stop=v,v}(e,t,s);return Kd&&(c?c.push(p):l&&p()),p}function pl(e,t,r){const o=this.proxy,n=Ca(e)?e.includes(".")?hl(o,e):()=>o[e]:e.bind(o,o);let a;_a(t)?a=t:(a=t.handler,r=t);const i=Gd(this),s=ul(n,a.bind(o),r);return i(),s}function hl(e,t){const r=t.split(".");return()=>{let t=e;for(let e=0;e<r.length&&t;e++)t=t[r[e]];return t}}const gl=Symbol("_vte"),fl=e=>e.__isTeleport,ml=e=>e&&(e.disabled||""===e.disabled),vl=e=>e&&(e.defer||""===e.defer),bl=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,wl=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,yl=(e,t)=>{const r=e&&e.to;return Ca(r)?t?t(r):null:r},kl={name:"Teleport",__isTeleport:!0,process(e,t,r,o,n,a,i,s,l,c){const{mc:d,pc:u,pbc:p,o:{insert:h,querySelector:g,createText:f,createComment:m}}=c,v=ml(t.props);let{shapeFlag:b,children:w,dynamicChildren:y}=t;if(null==e){const e=t.el=f(""),c=t.anchor=f("");h(e,r,o),h(c,r,o);const u=(e,t)=>{16&b&&d(w,e,t,n,a,i,s,l)},p=()=>{const e=t.target=yl(t.props,g),r=zl(e,t,f,h);e&&("svg"!==i&&bl(e)?i="svg":"mathml"!==i&&wl(e)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(e),v||(u(e,r),Cl(t,!1)))};v&&(u(r,c),Cl(t,!0)),vl(t.props)?(t.el.__isMounted=!1,ad(()=>{p(),delete t.el.__isMounted},a)):p()}else{if(vl(t.props)&&!1===e.el.__isMounted)return void ad(()=>{kl.process(e,t,r,o,n,a,i,s,l,c)},a);t.el=e.el,t.targetStart=e.targetStart;const d=t.anchor=e.anchor,h=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=ml(e.props),b=m?r:h,w=m?d:f;if("svg"===i||bl(h)?i="svg":("mathml"===i||wl(h))&&(i="mathml"),y?(p(e.dynamicChildren,y,b,n,a,i,s),cd(e,t,!0)):l||u(e,t,b,w,n,a,i,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):xl(t,r,d,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=yl(t.props,g);e&&xl(t,e,null,c,0)}else m&&xl(t,h,f,c,1);Cl(t,v)}},remove(e,t,r,{um:o,o:{remove:n}},a){const{shapeFlag:i,children:s,anchor:l,targetStart:c,targetAnchor:d,target:u,props:p}=e;if(u&&(n(c),n(d)),a&&n(l),16&i){const e=a||!ml(p);for(let n=0;n<s.length;n++){const a=s[n];o(a,t,r,e,!!a.dynamicChildren)}}},move:xl,hydrate:function(e,t,r,o,n,a,{o:{nextSibling:i,parentNode:s,querySelector:l,insert:c,createText:d}},u){function p(e,r){let o=r;for(;o;){if(o&&8===o.nodeType)if("teleport start anchor"===o.data)t.targetStart=o;else if("teleport anchor"===o.data){t.targetAnchor=o,e._lpa=t.targetAnchor&&i(t.targetAnchor);break}o=i(o)}}function h(e,t){t.anchor=u(i(e),t,s(e),r,o,n,a)}const g=t.target=yl(t.props,l),f=ml(t.props);if(g){const l=g._lpa||g.firstChild;16&t.shapeFlag&&(f?(h(e,t),p(g,l),t.targetAnchor||zl(g,t,d,c,s(e)===g?e:null)):(t.anchor=i(e),p(g,l),t.targetAnchor||zl(g,t,d,c),u(l&&i(l),t,g,r,o,n,a))),Cl(t,f)}else f&&16&t.shapeFlag&&(h(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}};function xl(e,t,r,{o:{insert:o},m:n},a=2){0===a&&o(e.targetAnchor,t,r);const{el:i,anchor:s,shapeFlag:l,children:c,props:d}=e,u=2===a;if(u&&o(i,t,r),(!u||ml(d))&&16&l)for(let p=0;p<c.length;p++)n(c[p],t,r,2);u&&o(s,t,r)}const _l=kl;function Cl(e,t){const r=e.ctx;if(r&&r.ut){let o,n;for(t?(o=e.el,n=e.anchor):(o=e.targetStart,n=e.targetAnchor);o&&o!==n;)1===o.nodeType&&o.setAttribute("data-v-owner",r.uid),o=o.nextSibling;r.ut()}}function zl(e,t,r,o,n=null){const a=t.targetStart=r(""),i=t.targetAnchor=r("");return a[gl]=i,e&&(o(a,e,n),o(i,e,n)),i}const Sl=Symbol("_leaveCb"),Il=Symbol("_enterCb");function Al(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tc(()=>{e.isMounted=!0}),nc(()=>{e.isUnmounting=!0}),e}const El=[Function,Array],Tl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:El,onEnter:El,onAfterEnter:El,onEnterCancelled:El,onBeforeLeave:El,onLeave:El,onAfterLeave:El,onLeaveCancelled:El,onBeforeAppear:El,onAppear:El,onAfterAppear:El,onAppearCancelled:El},Ml=e=>{const t=e.subTree;return t.component?Ml(t.component):t};function jl(e){let t=e[0];if(e.length>1)for(const r of e)if(r.type!==md){t=r;break}return t}const $l={name:"BaseTransition",props:Tl,setup(e,{slots:t}){const r=Rd(),o=Al();return()=>{const n=t.default&&Fl(t.default(),!0);if(!n||!n.length)return;const a=jl(n),i=xs(e),{mode:s}=i;if(o.isLeaving)return Nl(a);const l=Ll(a);if(!l)return Nl(a);let c=Pl(l,i,o,r,e=>c=e);l.type!==md&&Dl(l,c);let d=r.subTree&&Ll(r.subTree);if(d&&d.type!==md&&!Id(d,l)&&Ml(r).type!==md){let e=Pl(d,i,o,r);if(Dl(d,e),"out-in"===s&&l.type!==md)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&r.job.flags||r.update(),delete e.afterLeave,d=void 0},Nl(a);"in-out"===s&&l.type!==md?e.delayLeave=(e,t,r)=>{Ol(o,d)[String(d.key)]=d,e[Sl]=()=>{t(),e[Sl]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{r(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return a}}};function Ol(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Pl(e,t,r,o,n){const{appear:a,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:g,onLeaveCancelled:f,onBeforeAppear:m,onAppear:v,onAfterAppear:b,onAppearCancelled:w}=t,y=String(e.key),k=Ol(r,e),x=(e,t)=>{e&&Zs(e,o,9,t)},_=(e,t)=>{const r=t[1];x(e,t),wa(e)?e.every(e=>e.length<=1)&&r():e.length<=1&&r()},C={mode:i,persisted:s,beforeEnter(t){let o=l;if(!r.isMounted){if(!a)return;o=m||l}t[Sl]&&t[Sl](!0);const n=k[y];n&&Id(e,n)&&n.el[Sl]&&n.el[Sl](),x(o,[t])},enter(e){let t=c,o=d,n=u;if(!r.isMounted){if(!a)return;t=v||c,o=b||d,n=w||u}let i=!1;e[Il]=t=>{i||(i=!0,x(t?n:o,[e]),C.delayedLeave&&C.delayedLeave(),e[Il]=void 0)};const s=e[Il].bind(null,!1);t?_(t,[e,s]):s()},leave(t,o){const n=String(e.key);if(t[Il]&&t[Il](!0),r.isUnmounting)return o();x(p,[t]);let a=!1;t[Sl]=r=>{a||(a=!0,o(),x(r?f:g,[t]),t[Sl]=void 0,k[n]===e&&delete k[n])};const i=t[Sl].bind(null,!1);k[n]=e,h?_(h,[t,i]):i()},clone(e){const a=Pl(e,t,r,o,n);return n&&n(a),a}};return C}function Nl(e){if(Gl(e))return(e=$d(e)).children=null,e}function Ll(e){if(!Gl(e))return fl(e.type)&&e.children?jl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(16&t)return r[0];if(32&t&&_a(r.default))return r.default()}}function Dl(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Dl(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fl(e,t=!1,r){let o=[],n=0;for(let a=0;a<e.length;a++){let i=e[a];const s=null==r?i.key:String(r)+String(null!=i.key?i.key:a);i.type===gd?(128&i.patchFlag&&n++,o=o.concat(Fl(i.children,t,s))):(t||i.type!==md)&&o.push(null!=s?$d(i,{key:s}):i)}if(n>1)for(let a=0;a<o.length;a++)o[a].patchFlag=-2;return o}function Zl(e,t){return _a(e)?(()=>fa({name:e.name},t,{setup:e}))():e}function Ul(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Bl(e,t){let r;return!(!(r=Object.getOwnPropertyDescriptor(e,t))||r.configurable)}const Vl=new WeakMap;function Rl(e,t,r,o,n=!1){if(wa(e))return void e.forEach((e,a)=>Rl(e,t&&(wa(t)?t[a]:t),r,o,n));if(Hl(o)&&!n)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&Rl(e,t,r,o.component.subTree));const a=4&o.shapeFlag?eu(o.component):o.el,i=n?null:a,{i:s,r:l}=e,c=t&&t.r,d=s.refs===ca?s.refs={}:s.refs,u=s.setupState,p=xs(u),h=u===ca?pa:e=>!Bl(d,e)&&ba(p,e),g=(e,t)=>!t||!Bl(d,t);if(null!=c&&c!==l)if(Wl(t),Ca(c))d[c]=null,h(c)&&(u[c]=null);else if(zs(c)){const e=t;g(0,e.k)&&(c.value=null),e.k&&(d[e.k]=null)}if(_a(l))Fs(l,s,12,[i,d]);else{const t=Ca(l),o=zs(l);if(t||o){const s=()=>{if(e.f){const r=t?h(l)?u[l]:d[l]:g()||!e.k?l.value:d[e.k];if(n)wa(r)&&ma(r,a);else if(wa(r))r.includes(a)||r.push(a);else if(t)d[l]=[a],h(l)&&(u[l]=d[l]);else{const t=[a];g(0,e.k)&&(l.value=t),e.k&&(d[e.k]=t)}}else t?(d[l]=i,h(l)&&(u[l]=i)):o&&(g(0,e.k)&&(l.value=i),e.k&&(d[e.k]=i))};if(i){const t=()=>{s(),Vl.delete(e)};t.id=-1,Vl.set(e,t),ad(t,r)}else Wl(e),s()}}}function Wl(e){const t=Vl.get(e);t&&(t.flags|=8,Vl.delete(e))}Wa().requestIdleCallback,Wa().cancelIdleCallback;const Hl=e=>!!e.type.__asyncLoader,Gl=e=>e.type.__isKeepAlive;function Jl(e,t){Kl(e,"a",t)}function ql(e,t){Kl(e,"da",t)}function Kl(e,t,r=Vd){const o=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ql(t,o,r),r){let e=r.parent;for(;e&&e.parent;)Gl(e.parent.vnode)&&Yl(o,t,r,e),e=e.parent}}function Yl(e,t,r,o){const n=Ql(t,e,o,!0);ac(()=>{ma(o[t],n)},r)}function Ql(e,t,r=Vd,o=!1){if(r){const n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{zi();const n=Gd(r),a=Zs(t,r,e,o);return n(),Si(),a});return o?n.unshift(a):n.push(a),a}}const Xl=e=>(t,r=Vd)=>{Kd&&"sp"!==e||Ql(e,(...e)=>t(...e),r)},ec=Xl("bm"),tc=Xl("m"),rc=Xl("bu"),oc=Xl("u"),nc=Xl("bum"),ac=Xl("um"),ic=Xl("sp"),sc=Xl("rtg"),lc=Xl("rtc");function cc(e,t=Vd){Ql("ec",e,t)}const dc=Symbol.for("v-ndc");function uc(e){return Ca(e)?function(e,t,r=!0,o=!1){const n=rl||Vd;if(n){const r=n.type;{const e=function(e,t=!0){return _a(e)?e.displayName||e.name:e.name||t&&e.__name}(r,!1);if(e&&(e===t||e===Pa(t)||e===Da(Pa(t))))return r}const a=pc(n[e]||r[e],t)||pc(n.appContext[e],t);return!a&&o?r:a}}("components",e,!1)||e:e||dc}function pc(e,t){return e&&(e[t]||e[Pa(t)]||e[Da(Pa(t))])}function hc(e,t,r,o){let n;const a=r,i=wa(e);if(i||Ca(e)){let r=!1,o=!1;i&&bs(e)&&(r=!ys(e),o=ws(e),e=Fi(e)),n=new Array(e.length);for(let i=0,s=e.length;i<s;i++)n[i]=t(r?o?Cs(_s(e[i])):_s(e[i]):e[i],i,void 0,a)}else if("number"==typeof e){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r,void 0,a)}else if(Sa(e))if(e[Symbol.iterator])n=Array.from(e,(e,r)=>t(e,r,void 0,a));else{const r=Object.keys(e);n=new Array(r.length);for(let o=0,i=r.length;o<i;o++){const i=r[o];n[o]=t(e[i],i,o,a)}}else n=[];return n}function gc(e,t,r={},o,n){if(rl.ce||rl.parent&&Hl(rl.parent)&&rl.parent.ce){const e=Object.keys(r).length>0;return"default"!==t&&(r.name=t),yd(),zd(gd,null,[Md("slot",r,o&&o())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),yd();const i=a&&fc(a(r)),s=r.key||i&&i.key,l=zd(gd,{key:(s&&!za(s)?s:`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&1===e._?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function fc(e){return e.some(e=>!Sd(e)||e.type!==md&&!(e.type===gd&&!fc(e.children)))?e:null}const mc=e=>e?qd(e)?eu(e):mc(e.parent):null,vc=fa(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>mc(e.parent),$root:e=>mc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Cc(e),$forceUpdate:e=>e.f||(e.f=()=>{Ks(e.update)}),$nextTick:e=>e.n||(e.n=qs.bind(e.proxy)),$watch:e=>pl.bind(e)}),bc=(e,t)=>e!==ca&&!e.__isScriptSetup&&ba(e,t),wc={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:r,setupState:o,data:n,props:a,accessCache:i,type:s,appContext:l}=e;if("$"!==t[0]){const e=i[t];if(void 0!==e)switch(e){case 1:return o[t];case 2:return n[t];case 4:return r[t];case 3:return a[t]}else{if(bc(o,t))return i[t]=1,o[t];if(n!==ca&&ba(n,t))return i[t]=2,n[t];if(ba(a,t))return i[t]=3,a[t];if(r!==ca&&ba(r,t))return i[t]=4,r[t];kc&&(i[t]=0)}}const c=vc[t];let d,u;return c?("$attrs"===t&&Ni(e.attrs,0,""),c(e)):(d=s.__cssModules)&&(d=d[t])?d:r!==ca&&ba(r,t)?(i[t]=4,r[t]):(u=l.config.globalProperties,ba(u,t)?u[t]:void 0)},set({_:e},t,r){const{data:o,setupState:n,ctx:a}=e;return bc(n,t)?(n[t]=r,!0):o!==ca&&ba(o,t)?(o[t]=r,!0):!(ba(e.props,t)||"$"===t[0]&&t.slice(1)in e||(a[t]=r,0))},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:n,props:a,type:i}},s){let l;return!!(r[s]||e!==ca&&"$"!==s[0]&&ba(e,s)||bc(t,s)||ba(a,s)||ba(o,s)||ba(vc,s)||ba(n.config.globalProperties,s)||(l=i.__cssModules)&&l[s])},defineProperty(e,t,r){return null!=r.get?e._.accessCache[t]=0:ba(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yc(e){return wa(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let kc=!0;function xc(e,t,r){Zs(wa(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,r)}function _c(e,t,r,o){let n=o.includes(".")?hl(r,o):()=>r[o];if(Ca(e)){const r=t[e];_a(r)&&dl(n,r)}else if(_a(e))dl(n,e.bind(r));else if(Sa(e))if(wa(e))e.forEach(e=>_c(e,t,r,o));else{const o=_a(e.handler)?e.handler.bind(r):t[e.handler];_a(o)&&dl(n,o,e)}}function Cc(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:n.length||r||o?(l={},n.length&&n.forEach(e=>zc(l,e,i,!0)),zc(l,t,i)):l=t,Sa(t)&&a.set(t,l),l}function zc(e,t,r,o=!1){const{mixins:n,extends:a}=t;a&&zc(e,a,r,!0),n&&n.forEach(t=>zc(e,t,r,!0));for(const i in t)if(o&&"expose"===i);else{const o=Sc[i]||r&&r[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const Sc={data:Ic,props:Mc,emits:Mc,methods:Tc,computed:Tc,beforeCreate:Ec,created:Ec,beforeMount:Ec,mounted:Ec,beforeUpdate:Ec,updated:Ec,beforeDestroy:Ec,beforeUnmount:Ec,destroyed:Ec,unmounted:Ec,activated:Ec,deactivated:Ec,errorCaptured:Ec,serverPrefetch:Ec,components:Tc,directives:Tc,watch:function(e,t){if(!e)return t;if(!t)return e;const r=fa(Object.create(null),e);for(const o in t)r[o]=Ec(e[o],t[o]);return r},provide:Ic,inject:function(e,t){return Tc(Ac(e),Ac(t))}};function Ic(e,t){return t?e?function(){return fa(_a(e)?e.call(this,this):e,_a(t)?t.call(this,this):t)}:t:e}function Ac(e){if(wa(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Ec(e,t){return e?[...new Set([].concat(e,t))]:t}function Tc(e,t){return e?fa(Object.create(null),e,t):t}function Mc(e,t){return e?wa(e)&&wa(t)?[...new Set([...e,...t])]:fa(Object.create(null),yc(e),yc(null!=t?t:{})):t}function jc(){return{app:null,config:{isNativeTag:pa,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let $c=0;function Oc(e,t){return function(t,r=null){_a(t)||(t=fa({},t)),null==r||Sa(r)||(r=null);const o=jc(),n=new WeakSet,a=[];let i=!1;const s=o.app={_uid:$c++,_component:t,_props:r,_container:null,_context:o,_instance:null,version:ru,get config(){return o.config},set config(e){},use:(e,...t)=>(n.has(e)||(e&&_a(e.install)?(n.add(e),e.install(s,...t)):_a(e)&&(n.add(e),e(s,...t))),s),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(n,a,l){if(!i){const a=s._ceVNode||Md(t,r);return a.appContext=o,!0===l?l="svg":!1===l&&(l=void 0),e(a,n,l),i=!0,s._container=n,n.__vue_app__=s,eu(a.component)}},onUnmount(e){a.push(e)},unmount(){i&&(Zs(a,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s),runWithContext(e){const t=Pc;Pc=s;try{return e()}finally{Pc=t}}};return s}}let Pc=null;function Nc(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||ca;let n=r;const a=t.startsWith("update:"),i=a&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${Pa(t)}Modifiers`]||e[`${La(t)}Modifiers`])(o,t.slice(7));let s;i&&(i.trim&&(n=r.map(e=>Ca(e)?e.trim():e)),i.number&&(n=r.map(Va)));let l=o[s=Fa(t)]||o[s=Fa(Pa(t))];!l&&a&&(l=o[s=Fa(La(t))]),l&&Zs(l,e,6,n);const c=o[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Zs(c,e,6,n)}}const Lc=new WeakMap;function Dc(e,t,r=!1){const o=r?Lc:t.emitsCache,n=o.get(e);if(void 0!==n)return n;const a=e.emits;let i={},s=!1;if(!_a(e)){const o=e=>{const r=Dc(e,t,!0);r&&(s=!0,fa(i,r))};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return a||s?(wa(a)?a.forEach(e=>i[e]=null):fa(i,a),Sa(e)&&o.set(e,i),i):(Sa(e)&&o.set(e,null),null)}function Fc(e,t){return!(!e||!ha(t))&&(t=t.slice(2).replace(/Once$/,""),ba(e,t[0].toLowerCase()+t.slice(1))||ba(e,La(t))||ba(e,t))}function Zc(e){const{type:t,vnode:r,proxy:o,withProxy:n,propsOptions:[a],slots:i,attrs:s,emit:l,render:c,renderCache:d,props:u,data:p,setupState:h,ctx:g,inheritAttrs:f}=e,m=nl(e);let v,b;try{if(4&r.shapeFlag){const e=n||o,t=e;v=Nd(c.call(t,e,d,u,h,p,g)),b=s}else{const e=t;v=Nd(e.length>1?e(u,{attrs:s,slots:i,emit:l}):e(u,null)),b=t.props?s:Uc(s)}}catch(y){bd.length=0,Us(y,e,1),v=Md(md)}let w=v;if(b&&!1!==f){const e=Object.keys(b),{shapeFlag:t}=w;e.length&&7&t&&(a&&e.some(ga)&&(b=Bc(b,a)),w=$d(w,b,!1,!0))}return r.dirs&&(w=$d(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(r.dirs):r.dirs),r.transition&&Dl(w,r.transition),v=w,nl(m),v}const Uc=e=>{let t;for(const r in e)("class"===r||"style"===r||ha(r))&&((t||(t={}))[r]=e[r]);return t},Bc=(e,t)=>{const r={};for(const o in e)ga(o)&&o.slice(9)in t||(r[o]=e[o]);return r};function Vc(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let n=0;n<o.length;n++){const a=o[n];if(Rc(t,e,a)&&!Fc(r,a))return!0}return!1}function Rc(e,t,r){const o=e[r],n=t[r];return"style"===r&&Sa(o)&&Sa(n)?!ti(o,n):o!==n}const Wc={},Hc=()=>Object.create(Wc),Gc=e=>Object.getPrototypeOf(e)===Wc;function Jc(e,t,r,o){const[n,a]=e.propsOptions;let i,s=!1;if(t)for(let l in t){if(ja(l))continue;const c=t[l];let d;n&&ba(n,d=Pa(l))?a&&a.includes(d)?(i||(i={}))[d]=c:r[d]=c:Fc(e.emitsOptions,l)||l in o&&c===o[l]||(o[l]=c,s=!0)}if(a){const t=xs(r),o=i||ca;for(let i=0;i<a.length;i++){const s=a[i];r[s]=qc(n,t,s,o[s],e,!ba(o,s))}}return s}function qc(e,t,r,o,n,a){const i=e[r];if(null!=i){const e=ba(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&_a(e)){const{propsDefaults:a}=n;if(r in a)o=a[r];else{const i=Gd(n);o=a[r]=e.call(null,t),i()}}else o=e;n.ce&&n.ce._setProp(r,o)}i[0]&&(a&&!e?o=!1:!i[1]||""!==o&&o!==La(r)||(o=!0))}return o}const Kc=new WeakMap;function Yc(e,t,r=!1){const o=r?Kc:t.propsCache,n=o.get(e);if(n)return n;const a=e.props,i={},s=[];let l=!1;if(!_a(e)){const o=e=>{l=!0;const[r,o]=Yc(e,t,!0);fa(i,r),o&&s.push(...o)};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!l)return Sa(e)&&o.set(e,da),da;if(wa(a))for(let d=0;d<a.length;d++){const e=Pa(a[d]);Qc(e)&&(i[e]=ca)}else if(a)for(const d in a){const e=Pa(d);if(Qc(e)){const t=a[d],r=i[e]=wa(t)||_a(t)?{type:t}:fa({},t),o=r.type;let n=!1,l=!0;if(wa(o))for(let e=0;e<o.length;++e){const t=o[e],r=_a(t)&&t.name;if("Boolean"===r){n=!0;break}"String"===r&&(l=!1)}else n=_a(o)&&"Boolean"===o.name;r[0]=n,r[1]=l,(n||ba(r,"default"))&&s.push(e)}}const c=[i,s];return Sa(e)&&o.set(e,c),c}function Qc(e){return"$"!==e[0]&&!ja(e)}const Xc=e=>"_"===e||"_ctx"===e||"$stable"===e,ed=e=>wa(e)?e.map(Nd):[Nd(e)],td=(e,t,r)=>{if(t._n)return t;const o=al((...e)=>ed(t(...e)),r);return o._c=!1,o},rd=(e,t,r)=>{const o=e._ctx;for(const n in e){if(Xc(n))continue;const r=e[n];if(_a(r))t[n]=td(0,r,o);else if(null!=r){const e=ed(r);t[n]=()=>e}}},od=(e,t)=>{const r=ed(t);e.slots.default=()=>r},nd=(e,t,r)=>{for(const o in t)!r&&Xc(o)||(e[o]=t[o])},ad=function(e,t){var r;t&&t.pendingBranch?wa(e)?t.effects.push(...e):t.effects.push(e):(wa(r=e)?Rs.push(...r):Ws&&-1===r.id?Ws.splice(Hs+1,0,r):1&r.flags||(Rs.push(r),r.flags|=1),Ys())};function id(e){return function(e){Wa().__VUE__=!0;const{insert:t,remove:r,patchProp:o,createElement:n,createText:a,createComment:i,setText:s,setElementText:l,parentNode:c,nextSibling:d,setScopeId:u=ua,insertStaticContent:p}=e,h=(e,t,r,o=null,n=null,a=null,i=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Id(e,t)&&(o=F(e),O(e,n,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case fd:g(e,t,r,o);break;case md:f(e,t,r,o);break;case vd:null==e&&m(t,r,o,i);break;case gd:C(e,t,r,o,n,a,i,s,l);break;default:1&u?v(e,t,r,o,n,a,i,s,l):6&u?z(e,t,r,o,n,a,i,s,l):(64&u||128&u)&&c.process(e,t,r,o,n,a,i,s,l,B)}null!=d&&n?Rl(d,e&&e.ref,a,t||e,!t):null==d&&e&&null!=e.ref&&Rl(e.ref,null,a,e,!0)},g=(e,r,o,n)=>{if(null==e)t(r.el=a(r.children),o,n);else{const t=r.el=e.el;r.children!==e.children&&s(t,r.children)}},f=(e,r,o,n)=>{null==e?t(r.el=i(r.children||""),o,n):r.el=e.el},m=(e,t,r,o)=>{[e.el,e.anchor]=p(e.children,t,r,o,e.el,e.anchor)},v=(e,t,r,o,n,a,i,s,l)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)b(t,r,o,n,a,i,s,l);else{const r=e.el&&e.el._isVueCE?e.el:null;try{r&&r._beginPatch(),k(e,t,n,a,i,s,l)}finally{r&&r._endPatch()}}},b=(e,r,a,i,s,c,d,u)=>{let p,h;const{props:g,shapeFlag:f,transition:m,dirs:v}=e;if(p=e.el=n(e.type,c,g&&g.is,g),8&f?l(p,e.children):16&f&&y(e.children,p,null,i,s,sd(e,c),d,u),v&&sl(e,null,i,"created"),w(p,e,e.scopeId,d,i),g){for(const e in g)"value"===e||ja(e)||o(p,e,null,g[e],c,i);"value"in g&&o(p,"value",null,g.value,c),(h=g.onVnodeBeforeMount)&&Zd(h,i,e)}v&&sl(e,null,i,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,m);b&&m.beforeEnter(p),t(p,r,a),((h=g&&g.onVnodeMounted)||b||v)&&ad(()=>{h&&Zd(h,i,e),b&&m.enter(p),v&&sl(e,null,i,"mounted")},s)},w=(e,t,r,o,n)=>{if(r&&u(e,r),o)for(let a=0;a<o.length;a++)u(e,o[a]);if(n){let r=n.subTree;if(t===r||hd(r.type)&&(r.ssContent===t||r.ssFallback===t)){const t=n.vnode;w(e,t,t.scopeId,t.slotScopeIds,n.parent)}}},y=(e,t,r,o,n,a,i,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Ld(e[c]):Nd(e[c]);h(null,l,t,r,o,n,a,i,s)}},k=(e,t,r,n,a,i,s)=>{const c=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const h=e.props||ca,g=t.props||ca;let f;if(r&&ld(r,!1),(f=g.onVnodeBeforeUpdate)&&Zd(f,r,t,e),p&&sl(t,e,r,"beforeUpdate"),r&&ld(r,!0),(h.innerHTML&&null==g.innerHTML||h.textContent&&null==g.textContent)&&l(c,""),u?x(e.dynamicChildren,u,c,r,n,sd(t,a),i):s||T(e,t,c,null,r,n,sd(t,a),i,!1),d>0){if(16&d)_(c,h,g,r,a);else if(2&d&&h.class!==g.class&&o(c,"class",null,g.class,a),4&d&&o(c,"style",h.style,g.style,a),8&d){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],i=h[n],s=g[n];s===i&&"value"!==n||o(c,n,i,s,a,r)}}1&d&&e.children!==t.children&&l(c,t.children)}else s||null!=u||_(c,h,g,r,a);((f=g.onVnodeUpdated)||p)&&ad(()=>{f&&Zd(f,r,t,e),p&&sl(t,e,r,"updated")},n)},x=(e,t,r,o,n,a,i)=>{for(let s=0;s<t.length;s++){const l=e[s],d=t[s],u=l.el&&(l.type===gd||!Id(l,d)||198&l.shapeFlag)?c(l.el):r;h(l,d,u,null,o,n,a,i,!0)}},_=(e,t,r,n,a)=>{if(t!==r){if(t!==ca)for(const i in t)ja(i)||i in r||o(e,i,t[i],null,a,n);for(const i in r){if(ja(i))continue;const s=r[i],l=t[i];s!==l&&"value"!==i&&o(e,i,l,s,a,n)}"value"in r&&o(e,"value",t.value,r.value,a)}},C=(e,r,o,n,i,s,l,c,d)=>{const u=r.el=e?e.el:a(""),p=r.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:g,slotScopeIds:f}=r;f&&(c=c?c.concat(f):f),null==e?(t(u,o,n),t(p,o,n),y(r.children||[],o,p,i,s,l,c,d)):h>0&&64&h&&g&&e.dynamicChildren&&e.dynamicChildren.length===g.length?(x(e.dynamicChildren,g,o,i,s,l,c),(null!=r.key||i&&r===i.subTree)&&cd(e,r,!0)):T(e,r,o,p,i,s,l,c,d)},z=(e,t,r,o,n,a,i,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?n.ctx.activate(t,r,o,i,l):S(t,r,o,n,a,i,l):I(e,t,l)},S=(e,t,r,o,n,a,i)=>{const s=e.component=function(e,t,r){const o=e.type,n=(t?t.appContext:e.appContext)||Ud,a={uid:Bd++,vnode:e,type:o,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new li(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yc(o,n),emitsOptions:Dc(o,n),emit:null,emitted:null,propsDefaults:ca,inheritAttrs:o.inheritAttrs,ctx:ca,data:ca,props:ca,attrs:ca,slots:ca,refs:ca,setupState:ca,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Nc.bind(null,a),e.ce&&e.ce(a),a}(e,o,n);if(Gl(e)&&(s.ctx.renderer=B),function(e,t=!1,r=!1){t&&Hd(t);const{props:o,children:n}=e.vnode,a=qd(e);(function(e,t,r,o=!1){const n={},a=Hc();e.propsDefaults=Object.create(null),Jc(e,t,n,a);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);r?e.props=o?n:fs(n):e.type.props?e.props=n:e.props=a,e.attrs=a})(e,o,a,t),((e,t,r)=>{const o=e.slots=Hc();if(32&e.vnode.shapeFlag){const e=t._;e?(nd(o,t,r),r&&Ba(o,"_",e,!0)):rd(t,o)}else t&&od(e,t)})(e,n,r||t);a&&function(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wc);const{setup:o}=r;if(o){zi();const r=e.setupContext=o.length>1?function(e){return{attrs:new Proxy(e.attrs,Xd),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}(e):null,n=Gd(e),a=Fs(o,e,0,[e.props,r]),i=Ia(a);if(Si(),n(),!i&&!e.sp||Hl(e)||Ul(e),i){if(a.then(Jd,Jd),t)return a.then(t=>{Yd(e,t)}).catch(t=>{Us(t,e,0)});e.asyncDep=a}else Yd(e,a)}else Qd(e)}(e,t);t&&Hd(!1)}(s,!1,i),s.asyncDep){if(n&&n.registerDep(s,A,i),!e.el){const o=s.subTree=Md(md);f(null,o,t,r),e.placeholder=o.el}}else A(s,e,t,r,n,a,i)},I=(e,t,r)=>{const o=t.component=e.component;if(function(e,t,r){const{props:o,children:n,component:a}=e,{props:i,children:s,patchFlag:l}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&l>=0))return!(!n&&!s||s&&s.$stable)||o!==i&&(o?!i||Vc(o,i,c):!!i);if(1024&l)return!0;if(16&l)return o?Vc(o,i,c):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t];if(Rc(i,o,r)&&!Fc(c,r))return!0}}return!1}(e,t,r)){if(o.asyncDep&&!o.asyncResolved)return void E(o,t,r);o.next=t,o.update()}else t.el=e.el,o.vnode=t},A=(e,t,r,o,n,a,i)=>{e.scope.on();const s=e.effect=new di(()=>{if(e.isMounted){let{next:t,bu:r,u:o,parent:s,vnode:d}=e;{const r=dd(e);if(r)return t&&(t.el=d.el,E(e,t,i)),void r.asyncDep.then(()=>{ad(()=>{e.isUnmounted||l()},n)})}let u,p=t;ld(e,!1),t?(t.el=d.el,E(e,t,i)):t=d,r&&Ua(r),(u=t.props&&t.props.onVnodeBeforeUpdate)&&Zd(u,s,t,d),ld(e,!0);const g=Zc(e),f=e.subTree;e.subTree=g,h(f,g,c(f.el),F(f),e,n,a),t.el=g.el,null===p&&function({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=r,t=t.parent}}(e,g.el),o&&ad(o,n),(u=t.props&&t.props.onVnodeUpdated)&&ad(()=>Zd(u,s,t,d),n)}else{let i;const{el:s,props:l}=t,{bm:c,m:d,parent:u,root:p,type:g}=e,f=Hl(t);ld(e,!1),c&&Ua(c),!f&&(i=l&&l.onVnodeBeforeMount)&&Zd(i,u,t),ld(e,!0);{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(g);const i=e.subTree=Zc(e);h(null,i,r,o,e,n,a),t.el=i.el}if(d&&ad(d,n),!f&&(i=l&&l.onVnodeMounted)){const e=t;ad(()=>Zd(i,u,e),n)}(256&t.shapeFlag||u&&Hl(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&ad(e.a,n),e.isMounted=!0,t=r=o=null}});e.scope.off();const l=e.update=s.run.bind(s),d=e.job=s.runIfDirty.bind(s);d.i=e,d.id=e.uid,s.scheduler=()=>Ks(d),ld(e,!0),l()},E=(e,t,r)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,o){const{props:n,attrs:a,vnode:{patchFlag:i}}=e,s=xs(n),[l]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Jc(e,t,n,a)&&(c=!0);for(const a in s)t&&(ba(t,a)||(o=La(a))!==a&&ba(t,o))||(l?!r||void 0===r[a]&&void 0===r[o]||(n[a]=qc(l,s,a,void 0,e,!0)):delete n[a]);if(a!==s)for(const e in a)t&&ba(t,e)||(delete a[e],c=!0)}else if(8&i){const r=e.vnode.dynamicProps;for(let o=0;o<r.length;o++){let i=r[o];if(Fc(e.emitsOptions,i))continue;const d=t[i];if(l)if(ba(a,i))d!==a[i]&&(a[i]=d,c=!0);else{const t=Pa(i);n[t]=qc(l,s,t,d,e,!1)}else d!==a[i]&&(a[i]=d,c=!0)}}c&&Li(e.attrs,"set","")}(e,t.props,o,r),((e,t,r)=>{const{vnode:o,slots:n}=e;let a=!0,i=ca;if(32&o.shapeFlag){const e=t._;e?r&&1===e?a=!1:nd(n,t,r):(a=!t.$stable,rd(t,n)),i=t}else t&&(od(e,t),i={default:1});if(a)for(const s in n)Xc(s)||null!=i[s]||delete n[s]})(e,t.children,r),zi(),Qs(e),Si()},T=(e,t,r,o,n,a,i,s,c=!1)=>{const d=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:g}=t;if(h>0){if(128&h)return void j(d,p,r,o,n,a,i,s,c);if(256&h)return void M(d,p,r,o,n,a,i,s,c)}8&g?(16&u&&D(d,n,a),p!==d&&l(r,p)):16&u?16&g?j(d,p,r,o,n,a,i,s,c):D(d,n,a,!0):(8&u&&l(r,""),16&g&&y(p,r,o,n,a,i,s,c))},M=(e,t,r,o,n,a,i,s,l)=>{t=t||da;const c=(e=e||da).length,d=t.length,u=Math.min(c,d);let p;for(p=0;p<u;p++){const o=t[p]=l?Ld(t[p]):Nd(t[p]);h(e[p],o,r,null,n,a,i,s,l)}c>d?D(e,n,a,!0,!1,u):y(t,r,o,n,a,i,s,l,u)},j=(e,t,r,o,n,a,i,s,l)=>{let c=0;const d=t.length;let u=e.length-1,p=d-1;for(;c<=u&&c<=p;){const o=e[c],d=t[c]=l?Ld(t[c]):Nd(t[c]);if(!Id(o,d))break;h(o,d,r,null,n,a,i,s,l),c++}for(;c<=u&&c<=p;){const o=e[u],c=t[p]=l?Ld(t[p]):Nd(t[p]);if(!Id(o,c))break;h(o,c,r,null,n,a,i,s,l),u--,p--}if(c>u){if(c<=p){const e=p+1,u=e<d?t[e].el:o;for(;c<=p;)h(null,t[c]=l?Ld(t[c]):Nd(t[c]),r,u,n,a,i,s,l),c++}}else if(c>p)for(;c<=u;)O(e[c],n,a,!0),c++;else{const g=c,f=c,m=new Map;for(c=f;c<=p;c++){const e=t[c]=l?Ld(t[c]):Nd(t[c]);null!=e.key&&m.set(e.key,c)}let v,b=0;const w=p-f+1;let y=!1,k=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=g;c<=u;c++){const o=e[c];if(b>=w){O(o,n,a,!0);continue}let d;if(null!=o.key)d=m.get(o.key);else for(v=f;v<=p;v++)if(0===x[v-f]&&Id(o,t[v])){d=v;break}void 0===d?O(o,n,a,!0):(x[d-f]=c+1,d>=k?k=d:y=!0,h(o,t[d],r,null,n,a,i,s,l),b++)}const _=y?function(e){const t=e.slice(),r=[0];let o,n,a,i,s;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(n=r[r.length-1],e[n]<l){t[o]=n,r.push(o);continue}for(a=0,i=r.length-1;a<i;)s=a+i>>1,e[r[s]]<l?a=s+1:i=s;l<e[r[a]]&&(a>0&&(t[o]=r[a-1]),r[a]=o)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}(x):da;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,u=t[e],p=t[e+1],g=e+1<d?p.el||pd(p):o;0===x[c]?h(null,u,r,g,n,a,i,s,l):y&&(v<0||c!==_[v]?$(u,r,g,2):v--)}}},$=(e,o,n,a,i=null)=>{const{el:s,type:l,transition:c,children:u,shapeFlag:p}=e;if(6&p)$(e.component.subTree,o,n,a);else if(128&p)e.suspense.move(o,n,a);else if(64&p)l.move(e,o,n,B);else if(l!==gd)if(l!==vd)if(2!==a&&1&p&&c)if(0===a)c.beforeEnter(s),t(s,o,n),ad(()=>c.enter(s),i);else{const{leave:a,delayLeave:i,afterLeave:l}=c,d=()=>{e.ctx.isUnmounted?r(s):t(s,o,n)},u=()=>{s._isLeaving&&s[Sl](!0),a(s,()=>{d(),l&&l()})};i?i(s,d,u):u()}else t(s,o,n);else(({el:e,anchor:r},o,n)=>{let a;for(;e&&e!==r;)a=d(e),t(e,o,n),e=a;t(r,o,n)})(e,o,n);else{t(s,o,n);for(let e=0;e<u.length;e++)$(u[e],o,n,a);t(e.anchor,o,n)}},O=(e,t,r,o=!1,n=!1)=>{const{type:a,props:i,ref:s,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p,cacheIndex:h}=e;if(-2===u&&(n=!1),null!=s&&(zi(),Rl(s,null,r,e,!0),Si()),null!=h&&(t.renderCache[h]=void 0),256&d)return void t.ctx.deactivate(e);const g=1&d&&p,f=!Hl(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&Zd(m,t,e),6&d)L(e.component,r,o);else{if(128&d)return void e.suspense.unmount(r,o);g&&sl(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,r,B,o):c&&!c.hasOnce&&(a!==gd||u>0&&64&u)?D(c,t,r,!1,!0):(a===gd&&384&u||!n&&16&d)&&D(l,t,r),o&&P(e)}(f&&(m=i&&i.onVnodeUnmounted)||g)&&ad(()=>{m&&Zd(m,t,e),g&&sl(e,null,t,"unmounted")},r)},P=e=>{const{type:t,el:o,anchor:n,transition:a}=e;if(t===gd)return void N(o,n);if(t===vd)return void(({el:e,anchor:t})=>{let o;for(;e&&e!==t;)o=d(e),r(e),e=o;r(t)})(e);const i=()=>{r(o),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:r}=a,n=()=>t(o,i);r?r(e.el,i,n):n()}else i()},N=(e,t)=>{let o;for(;e!==t;)o=d(e),r(e),e=o;r(t)},L=(e,t,r)=>{const{bum:o,scope:n,job:a,subTree:i,um:s,m:l,a:c}=e;ud(l),ud(c),o&&Ua(o),n.stop(),a&&(a.flags|=8,O(i,e,t,r)),s&&ad(s,t),ad(()=>{e.isUnmounted=!0},t)},D=(e,t,r,o=!1,n=!1,a=0)=>{for(let i=a;i<e.length;i++)O(e[i],t,r,o,n)},F=e=>{if(6&e.shapeFlag)return F(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=d(e.anchor||e.el),r=t&&t[gl];return r?d(r):t};let Z=!1;const U=(e,t,r)=>{let o;null==e?t._vnode&&(O(t._vnode,null,null,!0),o=t._vnode.component):h(t._vnode||null,e,t,null,null,null,r),t._vnode=e,Z||(Z=!0,Qs(o),Xs(),Z=!1)},B={p:h,um:O,m:$,r:P,mt:S,mc:y,pc:T,pbc:x,n:F,o:e};return{render:U,hydrate:void 0,createApp:Oc(U)}}(e)}function sd({type:e,props:t},r){return"svg"===r&&"foreignObject"===e||"mathml"===r&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function ld({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cd(e,t,r=!1){const o=e.children,n=t.children;if(wa(o)&&wa(n))for(let a=0;a<o.length;a++){const e=o[a];let t=n[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=n[a]=Ld(n[a]),t.el=e.el),r||-2===t.patchFlag||cd(e,t)),t.type===fd&&(-1===t.patchFlag&&(t=n[a]=Ld(t)),t.el=e.el),t.type!==md||t.el||(t.el=e.el)}}function dd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dd(t)}function ud(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function pd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?pd(t.subTree):null}const hd=e=>e.__isSuspense,gd=Symbol.for("v-fgt"),fd=Symbol.for("v-txt"),md=Symbol.for("v-cmt"),vd=Symbol.for("v-stc"),bd=[];let wd=null;function yd(e=!1){bd.push(wd=e?null:[])}let kd=1;function xd(e,t=!1){kd+=e,e<0&&wd&&t&&(wd.hasOnce=!0)}function _d(e){return e.dynamicChildren=kd>0?wd||da:null,bd.pop(),wd=bd[bd.length-1]||null,kd>0&&wd&&wd.push(e),e}function Cd(e,t,r,o,n,a){return _d(Td(e,t,r,o,n,a,!0))}function zd(e,t,r,o,n){return _d(Md(e,t,r,o,n,!0))}function Sd(e){return!!e&&!0===e.__v_isVNode}function Id(e,t){return e.type===t.type&&e.key===t.key}const Ad=({key:e})=>null!=e?e:null,Ed=({ref:e,ref_key:t,ref_for:r})=>("number"==typeof e&&(e=""+e),null!=e?Ca(e)||zs(e)||_a(e)?{i:rl,r:e,k:t,f:!!r}:e:null);function Td(e,t=null,r=null,o=0,n=null,a=(e===gd?0:1),i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ad(t),ref:t&&Ed(t),scopeId:ol,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:rl};return s?(Dd(l,r),128&a&&e.normalize(l)):r&&(l.shapeFlag|=Ca(r)?8:16),kd>0&&!i&&wd&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&wd.push(l),l}const Md=function(e,t=null,r=null,o=0,n=null,a=!1){if(e&&e!==dc||(e=md),Sd(e)){const o=$d(e,t,!0);return r&&Dd(o,r),kd>0&&!a&&wd&&(6&o.shapeFlag?wd[wd.indexOf(e)]=o:wd.push(o)),o.patchFlag=-2,o}var i;if(_a(i=e)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=jd(t);let{class:e,style:r}=t;e&&!Ca(e)&&(t.class=Ya(e)),Sa(r)&&(ks(r)&&!wa(r)&&(r=fa({},r)),t.style=Ha(r))}return Td(e,t,r,o,n,Ca(e)?1:hd(e)?128:fl(e)?64:Sa(e)?4:_a(e)?2:0,a,!0)};function jd(e){return e?ks(e)||Gc(e)?fa({},e):e:null}function $d(e,t,r=!1,o=!1){const{props:n,ref:a,patchFlag:i,children:s,transition:l}=e,c=t?Fd(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ad(c),ref:t&&t.ref?r&&a?wa(a)?a.concat(Ed(t)):[a,Ed(t)]:Ed(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==gd?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$d(e.ssContent),ssFallback:e.ssFallback&&$d(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&Dl(d,l.clone(d)),d}function Od(e=" ",t=0){return Md(fd,null,e,t)}function Pd(e="",t=!1){return t?(yd(),zd(md,null,e)):Md(md,null,e)}function Nd(e){return null==e||"boolean"==typeof e?Md(md):wa(e)?Md(gd,null,e.slice()):Sd(e)?Ld(e):Md(fd,null,String(e))}function Ld(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:$d(e)}function Dd(e,t){let r=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(wa(t))r=16;else if("object"==typeof t){if(65&o){const r=t.default;return void(r&&(r._c&&(r._d=!1),Dd(e,r()),r._c&&(r._d=!0)))}{r=32;const o=t._;o||Gc(t)?3===o&&rl&&(1===rl.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=rl}}else _a(t)?(t={default:t,_ctx:rl},r=32):(t=String(t),64&o?(r=16,t=[Od(t)]):r=8);e.children=t,e.shapeFlag|=r}function Fd(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Ya([t.class,o.class]));else if("style"===e)t.style=Ha([t.style,o.style]);else if(ha(e)){const r=t[e],n=o[e];!n||r===n||wa(r)&&r.includes(n)||(t[e]=r?[].concat(r,n):n)}else""!==e&&(t[e]=o[e])}return t}function Zd(e,t,r,o=null){Zs(e,t,7,[r,o])}const Ud=jc();let Bd=0,Vd=null;const Rd=()=>Vd||rl;let Wd,Hd;{const e=Wa(),t=(t,r)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(r),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};Wd=t("__VUE_INSTANCE_SETTERS__",e=>Vd=e),Hd=t("__VUE_SSR_SETTERS__",e=>Kd=e)}const Gd=e=>{const t=Vd;return Wd(e),e.scope.on(),()=>{e.scope.off(),Wd(t)}},Jd=()=>{Vd&&Vd.scope.off(),Wd(null)};function qd(e){return 4&e.vnode.shapeFlag}let Kd=!1;function Yd(e,t,r){_a(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Sa(t)&&(e.setupState=js(t)),Qd(e)}function Qd(e,t,r){const o=e.type;e.render||(e.render=o.render||ua);{const t=Gd(e);zi();try{!function(e){const t=Cc(e),r=e.proxy,o=e.ctx;kc=!1,t.beforeCreate&&xc(t.beforeCreate,e,"bc");const{data:n,computed:a,methods:i,watch:s,provide:l,inject:c,created:d,beforeMount:u,mounted:p,beforeUpdate:h,updated:g,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:b,destroyed:w,unmounted:y,render:k,renderTracked:x,renderTriggered:_,errorCaptured:C,serverPrefetch:z,expose:S,inheritAttrs:I,components:A,directives:E,filters:T}=t;if(c&&function(e,t){wa(e)&&(e=Ac(e));for(const r in e){const o=e[r];let n;n=Sa(o)?"default"in o?ll(o.from||r,o.default,!0):ll(o.from||r):ll(o),zs(n)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n.value,set:e=>n.value=e}):t[r]=n}}(c,o),i)for(const j in i){const e=i[j];_a(e)&&(o[j]=e.bind(r))}if(n){const t=n.call(r,r);Sa(t)&&(e.data=gs(t))}if(kc=!0,a)for(const j in a){const e=a[j],t=_a(e)?e.bind(r,r):_a(e.get)?e.get.bind(r,r):ua,n=!_a(e)&&_a(e.set)?e.set.bind(r):ua,i=tu({get:t,set:n});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(const j in s)_c(s[j],o,r,j);if(l){const e=_a(l)?l.call(r):l;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(Vd){let r=Vd.provides;const o=Vd.parent&&Vd.parent.provides;o===r&&(r=Vd.provides=Object.create(o)),r[e]=t}}(t,e[t])})}function M(e,t){wa(t)?t.forEach(t=>e(t.bind(r))):t&&e(t.bind(r))}if(d&&xc(d,e,"c"),M(ec,u),M(tc,p),M(rc,h),M(oc,g),M(Jl,f),M(ql,m),M(cc,C),M(lc,x),M(sc,_),M(nc,b),M(ac,y),M(ic,z),wa(S))if(S.length){const t=e.exposed||(e.exposed={});S.forEach(e=>{Object.defineProperty(t,e,{get:()=>r[e],set:t=>r[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ua&&(e.render=k),null!=I&&(e.inheritAttrs=I),A&&(e.components=A),E&&(e.directives=E),z&&Ul(e)}(e)}finally{Si(),t()}}}const Xd={get:(e,t)=>(Ni(e,0,""),e[t])};function eu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(js((t=e.exposed,!ba(t,"__v_skip")&&Object.isExtensible(t)&&Ba(t,"__v_skip",!0),t)),{get:(t,r)=>r in t?t[r]:r in vc?vc[r](e):void 0,has:(e,t)=>t in e||t in vc})):e.proxy;var t}const tu=(e,t)=>Os(e,0,Kd),ru="3.5.28";let ou;const nu="undefined"!=typeof window&&window.trustedTypes;if(nu)try{ou=nu.createPolicy("vue",{createHTML:e=>e})}catch(lv){}const au=ou?e=>ou.createHTML(e):e=>e,iu="undefined"!=typeof document?document:null,su=iu&&iu.createElement("template"),lu={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const n="svg"===t?iu.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?iu.createElementNS("http://www.w3.org/1998/Math/MathML",e):r?iu.createElement(e,{is:r}):iu.createElement(e);return"select"===e&&o&&null!=o.multiple&&n.setAttribute("multiple",o.multiple),n},createText:e=>iu.createTextNode(e),createComment:e=>iu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>iu.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,n,a){const i=r?r.previousSibling:t.lastChild;if(n&&(n===a||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),n!==a&&(n=n.nextSibling););else{su.innerHTML=au("svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e);const n=su.content;if("svg"===o||"mathml"===o){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}t.insertBefore(n,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},cu="transition",du="animation",uu=Symbol("_vtc"),pu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hu=fa({},Tl,pu),gu=(e=>(e.displayName="Transition",e.props=hu,e))((e,{slots:t})=>function(e,t,r){try{xd(-1);const o=arguments.length;return 2===o?Sa(t)&&!wa(t)?Sd(t)?Md(e,null,[t]):Md(e,t):Md(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):3===o&&Sd(r)&&(r=[r]),Md(e,t,r))}finally{xd(1)}}($l,vu(e),t)),fu=(e,t=[])=>{wa(e)?e.forEach(e=>e(...t)):e&&e(...t)},mu=e=>!!e&&(wa(e)?e.some(e=>e.length>1):e.length>1);function vu(e){const t={};for(const A in e)A in pu||(t[A]=e[A]);if(!1===e.css)return t;const{name:r="v",type:o,duration:n,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:c=i,appearToClass:d=s,leaveFromClass:u=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,g=function(e){if(null==e)return null;if(Sa(e))return[bu(e.enter),bu(e.leave)];{const t=bu(e);return[t,t]}}(n),f=g&&g[0],m=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:y,onLeaveCancelled:k,onBeforeAppear:x=v,onAppear:_=b,onAppearCancelled:C=w}=t,z=(e,t,r,o)=>{e._enterCancelled=o,yu(e,t?d:s),yu(e,t?c:i),r&&r()},S=(e,t)=>{e._isLeaving=!1,yu(e,u),yu(e,h),yu(e,p),t&&t()},I=e=>(t,r)=>{const n=e?_:b,i=()=>z(t,e,r);fu(n,[t,i]),ku(()=>{yu(t,e?l:a),wu(t,e?d:s),mu(n)||_u(t,o,f,i)})};return fa(t,{onBeforeEnter(e){fu(v,[e]),wu(e,a),wu(e,i)},onBeforeAppear(e){fu(x,[e]),wu(e,l),wu(e,c)},onEnter:I(!1),onAppear:I(!0),onLeave(e,t){e._isLeaving=!0;const r=()=>S(e,t);wu(e,u),e._enterCancelled?(wu(e,p),Iu(e)):(Iu(e),wu(e,p)),ku(()=>{e._isLeaving&&(yu(e,u),wu(e,h),mu(y)||_u(e,o,m,r))}),fu(y,[e,r])},onEnterCancelled(e){z(e,!1,void 0,!0),fu(w,[e])},onAppearCancelled(e){z(e,!0,void 0,!0),fu(C,[e])},onLeaveCancelled(e){S(e),fu(k,[e])}})}function bu(e){const t=(e=>{const t=Ca(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function wu(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[uu]||(e[uu]=new Set)).add(t)}function yu(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const r=e[uu];r&&(r.delete(t),r.size||(e[uu]=void 0))}function ku(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xu=0;function _u(e,t,r,o){const n=e._endId=++xu,a=()=>{n===e._endId&&o()};if(null!=r)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=Cu(e,t);if(!i)return o();const c=i+"end";let d=0;const u=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++d>=l&&u()};setTimeout(()=>{d<l&&u()},s+1),e.addEventListener(c,p)}function Cu(e,t){const r=window.getComputedStyle(e),o=e=>(r[e]||"").split(", "),n=o(`${cu}Delay`),a=o(`${cu}Duration`),i=zu(n,a),s=o(`${du}Delay`),l=o(`${du}Duration`),c=zu(s,l);let d=null,u=0,p=0;return t===cu?i>0&&(d=cu,u=i,p=a.length):t===du?c>0&&(d=du,u=c,p=l.length):(u=Math.max(i,c),d=u>0?i>c?cu:du:null,p=d?d===cu?a.length:l.length:0),{type:d,timeout:u,propCount:p,hasTransform:d===cu&&/\b(?:transform|all)(?:,|$)/.test(o(`${cu}Property`).toString())}}function zu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,r)=>Su(t)+Su(e[r])))}function Su(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Iu(e){return(e?e.ownerDocument:document).body.offsetHeight}const Au=Symbol("_vod"),Eu=Symbol("_vsh"),Tu=Symbol(""),Mu=/(?:^|;)\s*display\s*:/,ju=/\s*!important$/;function $u(e,t,r){if(wa(r))r.forEach(r=>$u(e,t,r));else if(null==r&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=function(e,t){const r=Pu[t];if(r)return r;let o=Pa(t);if("filter"!==o&&o in e)return Pu[t]=o;o=Da(o);for(let n=0;n<Ou.length;n++){const r=Ou[n]+o;if(r in e)return Pu[t]=r}return t}(e,t);ju.test(r)?e.setProperty(La(o),r.replace(ju,""),"important"):e[o]=r}}const Ou=["Webkit","Moz","ms"],Pu={},Nu="http://www.w3.org/1999/xlink";function Lu(e,t,r,o,n,a=Xa(t)){o&&t.startsWith("xlink:")?null==r?e.removeAttributeNS(Nu,t.slice(6,t.length)):e.setAttributeNS(Nu,t,r):null==r||a&&!ei(r)?e.removeAttribute(t):e.setAttribute(t,a?"":za(r)?String(r):r)}function Du(e,t,r,o,n){if("innerHTML"===t||"textContent"===t)return void(null!=r&&(e[t]="innerHTML"===t?au(r):r));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o="OPTION"===a?e.getAttribute("value")||"":e.value,n=null==r?"checkbox"===e.type?"on":"":String(r);return o===n&&"_value"in e||(e.value=n),null==r&&e.removeAttribute(t),void(e._value=r)}let i=!1;if(""===r||null==r){const o=typeof e[t];"boolean"===o?r=ei(r):null==r&&"string"===o?(r="",i=!0):"number"===o&&(r=0,i=!0)}try{e[t]=r}catch(lv){}i&&e.removeAttribute(n||t)}function Fu(e,t,r,o){e.addEventListener(t,r,o)}const Zu=Symbol("_vei");const Uu=/(?:Once|Passive|Capture)$/;let Bu=0;const Vu=Promise.resolve(),Ru=()=>Bu||(Vu.then(()=>Bu=0),Bu=Date.now()),Wu=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hu=new WeakMap,Gu=new WeakMap,Ju=Symbol("_moveCb"),qu=Symbol("_enterCb"),Ku=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:fa({},hu,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Rd(),o=Al();let n,a;return oc(()=>{if(!n.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,r){const o=e.cloneNode(),n=e[uu];n&&n.forEach(e=>{e.split(/\s+/).forEach(e=>e&&o.classList.remove(e))}),r.split(/\s+/).forEach(e=>e&&o.classList.add(e)),o.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(o);const{hasTransform:i}=Cu(o);return a.removeChild(o),i}(n[0].el,r.vnode.el,t))return void(n=[]);n.forEach(Yu),n.forEach(Qu);const o=n.filter(Xu);Iu(r.vnode.el),o.forEach(e=>{const r=e.el,o=r.style;wu(r,t),o.transform=o.webkitTransform=o.transitionDuration="";const n=r[Ju]=e=>{e&&e.target!==r||e&&!e.propertyName.endsWith("transform")||(r.removeEventListener("transitionend",n),r[Ju]=null,yu(r,t))};r.addEventListener("transitionend",n)}),n=[]}),()=>{const i=xs(e),s=vu(i);let l=i.tag||gd;if(n=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&(n.push(t),Dl(t,Pl(t,s,o,r)),Hu.set(t,ep(t.el)))}a=t.default?Fl(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&Dl(t,Pl(t,s,o,r))}return Md(l,null,a)}}});function Yu(e){const t=e.el;t[Ju]&&t[Ju](),t[qu]&&t[qu]()}function Qu(e){Gu.set(e,ep(e.el))}function Xu(e){const t=Hu.get(e),r=Gu.get(e),o=t.left-r.left,n=t.top-r.top;if(o||n){const t=e.el,r=t.style,a=t.getBoundingClientRect();let i=1,s=1;return t.offsetWidth&&(i=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(i)&&0!==i||(i=1),Number.isFinite(s)&&0!==s||(s=1),Math.abs(i-1)<.01&&(i=1),Math.abs(s-1)<.01&&(s=1),r.transform=r.webkitTransform=`translate(${o/i}px,${n/s}px)`,r.transitionDuration="0s",e}}function ep(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const tp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return wa(t)?e=>Ua(t,e):t};function rp(e){e.target.composing=!0}function op(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const np=Symbol("_assign");function ap(e,t,r){return t&&(e=e.trim()),r&&(e=Va(e)),e}const ip={created(e,{modifiers:{lazy:t,trim:r,number:o}},n){e[np]=tp(n);const a=o||n.props&&"number"===n.props.type;Fu(e,t?"change":"input",t=>{t.target.composing||e[np](ap(e.value,r,a))}),(r||a)&&Fu(e,"change",()=>{e.value=ap(e.value,r,a)}),t||(Fu(e,"compositionstart",rp),Fu(e,"compositionend",op),Fu(e,"change",op))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:n,number:a}},i){if(e[np]=tp(i),e.composing)return;const s=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:Va(e.value))!==s){if(document.activeElement===e&&"range"!==e.type){if(o&&t===r)return;if(n&&e.value.trim()===s)return}e.value=s}}},sp=["ctrl","shift","alt","meta"],lp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>sp.some(r=>e[`${r}Key`]&&!t.includes(r))},cp=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(r,...o)=>{for(let e=0;e<t.length;e++){const o=lp[t[e]];if(o&&o(r,t))return}return e(r,...o)})},dp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},up=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=r=>{if(!("key"in r))return;const o=La(r.key);return t.some(e=>e===o||dp[e]===o)?e(r):void 0})},pp=fa({patchProp:(e,t,r,o,n,a)=>{const i="svg"===n;"class"===t?function(e,t,r){const o=e[uu];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,r){const o=e.style,n=Ca(r);let a=!1;if(r&&!n){if(t)if(Ca(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==r[t]&&$u(o,t,"")}else for(const e in t)null==r[e]&&$u(o,e,"");for(const e in r)"display"===e&&(a=!0),$u(o,e,r[e])}else if(n){if(t!==r){const e=o[Tu];e&&(r+=";"+e),o.cssText=r,a=Mu.test(r)}}else t&&e.removeAttribute("style");Au in e&&(e[Au]=a?o.display:"",e[Eu]&&(o.display="none"))}(e,r,o):ha(t)?ga(t)||function(e,t,r,o,n=null){const a=e[Zu]||(e[Zu]={}),i=a[t];if(o&&i)i.value=o;else{const[r,s]=function(e){let t;if(Uu.test(e)){let r;for(t={};r=e.match(Uu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):La(e.slice(2)),t]}(t);if(o){const i=a[t]=function(e,t){const r=e=>{if(e._vts){if(e._vts<=r.attached)return}else e._vts=Date.now();Zs(function(e,t){if(wa(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,r.value),t,5,[e])};return r.value=e,r.attached=Ru(),r}(o,n);Fu(e,r,i,s)}else i&&(function(e,t,r,o){e.removeEventListener(t,r,o)}(e,r,i,s),a[t]=void 0)}}(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,r,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Wu(t)&&_a(r));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Wu(t)||!Ca(r))&&t in e}(e,t,o,i))?(Du(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Lu(e,t,o,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&Ca(o)?("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Lu(e,t,o,i)):Du(e,Pa(t),o,0,t)}},lu);let hp;const gp=(...e)=>{const t=(hp||(hp=id(pp))).createApp(...e),{mount:r}=t;return t.mount=e=>{const o=function(e){return Ca(e)?document.querySelector(e):e}(e);if(!o)return;const n=t._component;_a(n)||n.render||n.template||(n.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const a=r(o,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};var fp=(e,t,r)=>((e,t,r={})=>{let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!r.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!r.secure)throw new Error("__Host- Cookie must have Secure attributes");if("/"!==r.path)throw new Error('__Host- Cookie must have Path attributes with "/"');if(r.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(r&&"number"==typeof r.maxAge&&r.maxAge>=0){if(r.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+="; Max-Age="+(0|r.maxAge)}if(r.domain&&"host"!==r.prefix&&(o+=`; Domain=${r.domain}`),r.path&&(o+=`; Path=${r.path}`),r.expires){if(r.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite&&(o+=`; SameSite=${r.sameSite.charAt(0).toUpperCase()+r.sameSite.slice(1)}`),r.priority&&(o+=`; Priority=${r.priority.charAt(0).toUpperCase()+r.priority.slice(1)}`),r.partitioned){if(!r.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o})(e,t=encodeURIComponent(t),r),mp=(e,t)=>{for(const[r,o]of Object.entries(t)){const t=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(t,o?`/${o}`:"")}return e},vp=e=>{const t=new URLSearchParams;for(const[r,o]of Object.entries(e))if(void 0!==o)if(Array.isArray(o))for(const e of o)t.append(r,e);else t.set(r,o);return t},bp=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function wp(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function yp(e,t){if(!wp(e)&&!wp(t))return t;const r={...e};for(const o in t){const e=t[o];wp(r[o])&&wp(e)?r[o]=yp(r[o],e):r[o]=e}return r}var kp=(e,t)=>new Proxy(()=>{},{get(r,o){if("string"==typeof o&&"then"!==o)return kp(e,[...t,o])},apply:(r,o,n)=>e({path:t,args:n})}),xp=class{constructor(e,t,o){r(this,"url"),r(this,"method"),r(this,"buildSearchParams"),r(this,"queryParams"),r(this,"pathParams",{}),r(this,"rBody"),r(this,"cType"),r(this,"fetch",async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){const t=new FormData;for(const[r,o]of Object.entries(e.form))if(Array.isArray(o))for(const e of o)t.append(r,e);else t.append(r,o);this.rBody=t}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let r=this.method.toUpperCase();const o={...e?.header,..."function"==typeof t?.headers?await t.headers():t?.headers};if(e?.cookie){const t=[];for(const[r,o]of Object.entries(e.cookie))t.push(fp(r,o,{path:"/"}));o.Cookie=t.join(",")}this.cType&&(o["Content-Type"]=this.cType);const n=new Headers(o??void 0);let a=this.url;a=bp(a),a=mp(a,this.pathParams),this.queryParams&&(a=a+"?"+this.queryParams.toString()),r=this.method.toUpperCase();const i=!("GET"===r||"HEAD"===r);return(t?.fetch||fetch)(a,{body:i?this.rBody:void 0,method:r,headers:n,...t?.init})}),this.url=e,this.method=t,this.buildSearchParams=o.buildSearchParams}},_p=(e,t)=>kp(function r(o){const n=t?.buildSearchParams??vp,a=[...o.path],i=a.slice(-3).reverse();if("toString"===i[0])return"name"===i[1]?i[2]||"":r.toString();if("valueOf"===i[0])return"name"===i[1]?i[2]||"":r;let s="";if(/^\$/.test(i[0])){const e=a.pop();e&&(s=e.replace(/^\$/,""))}const l=a.join("/"),c=((e,t)=>(e=e.replace(/\/+$/,""),(e+="/")+t.replace(/^\/+/,"")))(e,l);if("url"===s){let e=c;return o.args[0]&&(o.args[0].param&&(e=mp(c,o.args[0].param)),o.args[0].query&&(e=e+"?"+n(o.args[0].query).toString())),e=bp(e),new URL(e)}if("ws"===s){const e=(o.args[0]&&o.args[0].param?mp(c,o.args[0].param):c).replace(/^http/,"ws"),r=new URL(e),n=o.args[0]?.query;return n&&Object.entries(n).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>r.searchParams.append(e,t)):r.searchParams.set(e,t)}),((...e)=>void 0!==t?.webSocket&&"function"==typeof t.webSocket?t.webSocket(...e):new WebSocket(...e))(r.toString())}const d=new xp(c,s,{buildSearchParams:n});if(s){t??(t={});const e=yp(t,{...o.args[1]});return d.fetch(o.args[0],e)}return d},[]),Cp=Object.defineProperty,zp=(e,t)=>Cp(e,"name",{value:t,configurable:!0}),Sp=(e,t,r)=>((e,t,r)=>t in e?Cp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function Ip(e={}){const{prefix:t="id_"}=e,r=t.length>=3?t.substring(0,3):t.padEnd(3,"_"),o=Math.floor(Date.now()/1e3).toString(16).padStart(8,"0");let n="";for(let a=0;a<16;a++)n+=Math.floor(16*Math.random()).toString(16);return r+o+n}zp(Ip,"objectId");const Ap=globalThis.process,Ep=typeof window<"u",Tp=typeof Ap<"u"&&!Ep,Mp=Ep?typeof window<"u"&&window.location&&!window.location.hostname.includes("localhost"):Tp&&typeof Ap<"u"&&"production"===Ap.env?.NODE_ENV,jp=!Mp,$p={error:{priority:50,color:"#FF0000",nodeColor:"\x1b[31m"},warn:{priority:40,color:"#FFA500",nodeColor:"\x1b[33m"},info:{priority:30,color:"#00ABFF",nodeColor:"\x1b[36m"},debug:{priority:20,color:"#00BD0C",nodeColor:"\x1b[32m"},trace:{priority:10,color:"#5233FF",nodeColor:"\x1b[35m"}},Op=["password","token","secret","apikey","api_key","authorization","cookie"],Pp=class e{constructor(e={},t){Sp(this,"settings"),Sp(this,"enabledInBrowser",!1),Sp(this,"context"),this.context=t,this.settings={enabled:e.enabled??!0,minLevel:e.minLevel??this.getDefaultLevel(),timestamps:e.timestamps??!0},Ep&&this.initBrowserLogging()}getDefaultLevel(){if(Tp&&typeof Ap<"u"&&Ap.env?.LOG_LEVEL)return Ap.env.LOG_LEVEL;if(Ep&&typeof localStorage<"u"&&"function"==typeof localStorage.getItem){const e=localStorage.getItem("PAGELINES_LOG_LEVEL");if(e)return e}return Mp?"info":"debug"}initBrowserLogging(){if(!Ep)return;const t="function"==typeof localStorage?.getItem&&"true"===localStorage.getItem("PAGELINES_LOG"),r=window.location?.hostname||"";this.enabledInBrowser=jp||t||"localhost"===r||r.includes("127.0.0.1"),Mp&&!t&&!e.hasShownHelp&&(e.hasShownHelp=!0)}shouldLog(e){return!(!this.settings.enabled||Ep&&!this.enabledInBrowser)&&$p[e].priority>=$p[this.settings.minLevel].priority}formatTimestamp(){return(new Date).toLocaleTimeString("en-GB",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}formatISOTimestamp(){return(new Date).toISOString()}redactSensitive(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(e=>this.redactSensitive(e));const t={};for(const[r,o]of Object.entries(e)){const e=r.toLowerCase();Op.some(t=>e.includes(t))?t[r]="[REDACTED]":t[r]="object"==typeof o&&null!==o?this.redactSensitive(o):o}return t}formatData(e,t=3,r=0){if(r>=t)return"[Max Depth]";if(null==e)return e;if(e instanceof Error)return{name:e.name,message:e.message,stack:Mp?e.stack?.split("\n").slice(0,3).join("\n"):e.stack,...e};if(e instanceof Date)return e.toISOString();if("object"!=typeof e)return e;if(Array.isArray(e))return e.length>20&&Mp?`Array(${e.length}) [${e.slice(0,3).map(e=>this.formatData(e,t,r+1)).join(", ")}, ...]`:e.map(e=>this.formatData(e,t,r+1));try{const o={},n=Object.entries(e),a=Mp?50:200;for(const[e,i]of n.slice(0,a))o[e]=this.formatData(i,t,r+1);return n.length>a&&(o["..."]=n.length-a+" more properties"),this.redactSensitive(o)}catch{return"[Unserializable]"}}logToBrowser(e){if(!Ep||!this.shouldLog(e.level))return;const{level:t,description:r,context:o,data:n,error:a}=e,i=$p[t];o||this.context,t.toUpperCase(),i.color,a&&Error}logToNode(e){if(!Tp||!this.shouldLog(e.level))return;const{level:t,description:r,context:o,data:n,error:a}=e;o||this.context;if(Mp){const e={timestamp:this.formatISOTimestamp(),level:t.toUpperCase()};n&&(e.data=this.formatData(n)),a&&(e.error=this.formatData(a))}else{const e=$p[t];this.formatTimestamp(),e.nodeColor,t.toUpperCase(),a&&a instanceof Error&&a.stack}}log(e){Ep?this.logToBrowser(e):Tp&&this.logToNode(e)}error(e,t){this.log({level:"error",description:e,data:t,context:this.context})}warn(e,t){this.log({level:"warn",description:e,data:t,context:this.context})}info(e,t){this.log({level:"info",description:e,data:t,context:this.context})}debug(e,t){this.log({level:"debug",description:e,data:t,context:this.context})}trace(e,t){this.log({level:"trace",description:e,data:t,context:this.context})}isEnabled(){return!Ep||this.enabledInBrowser}setLevel(e){this.settings.minLevel=e}createContextLogger(t){const r=new e(this.settings,t);return{error:zp((e,t)=>r.error(e,t),"error"),warn:zp((e,t)=>r.warn(e,t),"warn"),info:zp((e,t)=>r.info(e,t),"info"),debug:zp((e,t)=>r.debug(e,t),"debug"),trace:zp((e,t)=>r.trace(e,t),"trace"),isEnabled:zp(()=>r.isEnabled(),"isEnabled"),setLevel:zp(e=>r.setLevel(e),"setLevel")}}};zp(Pp,"Logger"),Sp(Pp,"hasShownHelp",!1);let Np=Pp;function Lp(e){return new Np({},e).createContextLogger(e)}zp(Lp,"createLogger");const Dp=new Np;Dp.error.bind(Dp),Dp.warn.bind(Dp),Dp.info.bind(Dp),Dp.debug.bind(Dp),Dp.trace.bind(Dp);const Fp=class{constructor(e,t){Sp(this,"name"),Sp(this,"settings"),Sp(this,"logger"),this.name=e,this.settings=t,this.logger=Lp(e)}};zp(Fp,"SettingsObject");let Zp=Fp;const Up=class{constructor(){Sp(this,"tokenName","auth-token"),Sp(this,"tokenMaxAge",604800),Sp(this,"fallbackStorageKey","token"),Sp(this,"productionDomain",".pagelines.com")}getCookie(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(const r of t){const[t,o]=r.trim().split("=");if(t===e)return decodeURIComponent(o||"")}return null}setCookie(e,t,r={}){if(typeof document>"u")return;const{secure:o=!0,sameSite:n="lax",maxAge:a=604800,domain:i,path:s="/"}=r;let l=`${e}=${encodeURIComponent(t)}`;l+=`; Path=${s}`,l+=`; Max-Age=${a}`,l+=`; SameSite=${n}`,o&&(l+="; Secure"),i&&(l+=`; Domain=${i}`),document.cookie=l}removeCookie(e,t={}){this.setCookie(e,"",{...t,maxAge:0})}isLocalStorageFunctional(){return typeof window<"u"&&"function"==typeof window.localStorage?.getItem&&"function"==typeof window.localStorage?.setItem&&"function"==typeof window.localStorage?.removeItem}getAuthToken(){const e=this.getCookie(this.tokenName);if(e)return e;if(this.isLocalStorageFunctional()){const e=window.localStorage.getItem(this.fallbackStorageKey);if(e)return this.setAuthToken(e),window.localStorage.removeItem(this.fallbackStorageKey),e}return null}setAuthToken(e){const t=typeof window<"u"&&"localhost"!==window.location.hostname;this.setCookie(this.tokenName,e,{secure:t,sameSite:"lax",maxAge:this.tokenMaxAge,domain:t?this.productionDomain:void 0,path:"/"})}removeAuthToken(){const e=typeof window<"u"&&"localhost"!==window.location.hostname;this.removeCookie(this.tokenName,{domain:e?this.productionDomain:void 0,path:"/"}),this.isLocalStorageFunctional()&&window.localStorage.removeItem(this.fallbackStorageKey)}};zp(Up,"CookieUtil");const Bp=new Up;function Vp(e,t){const r=e.apiBase||(e.isDev?"http://localhost:3222":o);return _p(r,{fetch:zp(async(e,r)=>{const o=Bp.getAuthToken(),n=await fetch(e,{...r,headers:{...r?.headers,"Content-Type":"application/json",...o&&{Authorization:`Bearer ${o}`}},credentials:"omit"});if(t){const e=n.json.bind(n);n.json=async()=>{const r=await e();return"object"==typeof r&&null!==r&&"ok"in r&&("user"in r||"token"in r)&&t(r),r}}return n},"fetch")})}zp(Vp,"createApiClient");let Rp=[],Wp=0;const Hp=zp(e=>{let t=[],r={get:()=>(r.lc||r.listen(()=>{})(),r.value),lc:0,listen:e=>(r.lc=t.push(e),()=>{for(let t=Wp+4;t<Rp.length;)Rp[t]===e?Rp.splice(t,4):t+=4;let o=t.indexOf(e);~o&&(t.splice(o,1),--r.lc||r.off())}),notify(e,o){let n=!Rp.length;for(let a of t)Rp.push(a,r.value,e,o);if(n){for(Wp=0;Wp<Rp.length;Wp+=4)Rp[Wp](Rp[Wp+1],Rp[Wp+2],Rp[Wp+3]);Rp.length=0}},off(){},set(e){let t=r.value;t!==e&&(r.value=e,r.notify(t))},subscribe(e){let t=r.listen(e);return e(r.value),t},value:e};return r},"atom"),Gp=Hp(void 0),Jp=Hp(null),qp=class{constructor(){Sp(this,"logger",Lp("SDKStorage"))}isLocalStorageFunctional(){return typeof window<"u"&&"function"==typeof localStorage?.getItem&&"function"==typeof localStorage?.setItem&&"function"==typeof localStorage?.removeItem}syncWithGlobalStores(e,t){const r=Gp.get(),o=Jp.get();r&&(e.value=r),o&&(t.value=o),dl(e,e=>{Gp.set(e)},{immediate:!0}),dl(t,e=>{Jp.set(e)},{immediate:!0}),Gp.subscribe(t=>{t!==e.value&&(e.value=t)}),Jp.subscribe(e=>{e!==t.value&&(t.value=e)})}loadFromStorage(e,t){if(typeof window>"u")return;const r=Bp.getAuthToken();if(r&&(t.value=r),this.isLocalStorageFunctional())try{const t=localStorage.getItem("pagelines-user");t&&(e.value=JSON.parse(t))}catch(o){this.logger.error("Failed to load user from localStorage",{data:o})}}saveToStorage(e,t){if(!(typeof window>"u")&&(t.value?Bp.setAuthToken(t.value):Bp.removeAuthToken(),this.isLocalStorageFunctional()))try{e.value?localStorage.setItem("pagelines-user",JSON.stringify(e.value)):localStorage.removeItem("pagelines-user")}catch(r){this.logger.error("Failed to save user to localStorage",{data:r})}}clearStorage(){if(!(typeof window>"u")){if(Bp.removeAuthToken(),this.isLocalStorageFunctional())try{localStorage.removeItem("pagelines-user")}catch(e){this.logger.error("Failed to clear user from localStorage",{data:e})}Gp.set(void 0),Jp.set(null)}}getItem(e){if(!this.isLocalStorageFunctional())return null;try{return localStorage.getItem(e)}catch(lv){return this.logger.error("Failed to get item from localStorage",{key:e,error:lv}),null}}setItem(e,t){if(this.isLocalStorageFunctional())try{localStorage.setItem(e,t)}catch(r){this.logger.error("Failed to set item in localStorage",{key:e,error:r})}}};zp(qp,"SDKStorage");let Kp=qp;const Yp=class{constructor(){Sp(this,"key","__PAGELINES_SDK__")}get(){if(!(typeof window>"u"))return globalThis[this.key]}set(e){typeof window<"u"&&(globalThis[this.key]=e)}delete(){typeof window<"u"&&delete globalThis[this.key]}};zp(Yp,"SDKGlobal");const Qp=new Yp,Xp=class e extends Zp{constructor(e={}){const t=Qp.get();if(t)return t;super("PageLinesSDK",e),Sp(this,"activeUser",Ss()),Sp(this,"token",Ss(null)),Sp(this,"loading",Ss(!1)),Sp(this,"error",Ss(null)),Sp(this,"apiBase",this.settings.apiBase||void 0),Sp(this,"storage",new Kp),Sp(this,"sessionId",Ip({prefix:"ses"})),Sp(this,"apiClient"),Sp(this,"currentAgent",tu(()=>{const e=this.activeUser.value;if(!e?.agents)return;const t=e.primaryAgentId||e.agents[0]?.agentId;return t?e.agents.find(e=>e.agentId===t):void 0})),Sp(this,"currentOrg",tu(()=>{const e=this.currentAgent.value;if(!e?.orgId)return;const t=this.activeUser.value;return t?.orgs?t.orgs.find(t=>t.orgId===e.orgId):void 0})),Sp(this,"initialized"),Sp(this,"resolveUser"),Qp.set(this),this.apiClient=Vp({isDev:this.isDev,apiBase:this.apiBase},this.processApiResponse.bind(this)),this.logger.info("PageLinesSDK initialized"),this.storage.loadFromStorage(this.activeUser,this.token),this.storage.syncWithGlobalStores(this.activeUser,this.token),this.initialized=new Promise(e=>{this.resolveUser=e}),this.token.value&&!this.activeUser.value?this.getCurrentUser().then(e=>{this.resolveUser&&(this.resolveUser(e),this.resolveUser=void 0)}).catch(e=>{this.logger.error("Auto user fetch failed",{data:e}),this.resolveUser&&(this.resolveUser(void 0),this.resolveUser=void 0)}):this.activeUser.value?this.resolveUser?.(this.activeUser.value):this.resolveUser?.(void 0)}static getInstance(t={}){return Qp.get()||new e(t)}get isDev(){return this.settings.isDev??(typeof window<"u"&&("localhost"===window.location.hostname||window.location.hostname.includes("127.0.0.1")))}get api(){return this.apiClient.api}processApiResponse(e){e.ok&&e.user&&(this.activeUser.value=e.user,this.logger.info("User updated from API response",{data:e.user})),e.ok&&e.token&&(this.token.value=e.token,this.storage.saveToStorage(this.activeUser,this.token),this.logger.info("Token updated from API response")),this.resolveUser&&e.ok&&(this.resolveUser(e.user),this.resolveUser=void 0)}clearSession(){this.logger.info("Clearing session"),this.activeUser.value=void 0,this.token.value=null,this.error.value=null,this.storage.clearStorage()}clear(){this.logger.info("Clearing SDK completely"),this.clearSession(),this.loading.value=!1,this.sessionId=Ip({prefix:"ses"}),Qp.delete()}async sendCode(e){this.loading.value=!0,this.error.value=null;try{const t=await(await this.api.auth["check-email"].$post({json:{email:e}})).json();if(!t.ok)throw this.error.value=t.error,new Error(t.error)}catch(t){this.logger.error("Send code error",{data:t});const e=t instanceof Error?t.message:"Failed to send verification code";throw this.error.value=e,t}finally{this.loading.value=!1}}async verifyCode(e,t){this.loading.value=!0,this.error.value=null;try{const r=await(await this.api.auth["verify-code"].$post({json:{email:e,code:t}})).json();if(!r.ok)throw this.error.value=r.error,new Error(r.error)}catch(r){this.logger.error("Verify code error",{data:r});const e=r instanceof Error?r.message:"Failed to verify code";throw this.error.value=e,r}finally{this.loading.value=!1}}async login(e,t){this.loading.value=!0,this.error.value=null;try{const r=await(await this.api.auth.login.$post({json:{email:e,password:t}})).json();if(!r.ok)throw this.error.value=r.error,new Error(r.error)}catch(r){this.logger.error("Login error",{data:r});const e=r instanceof Error?r.message:"Login failed";throw this.error.value=e,r}finally{this.loading.value=!1}}async logout(){this.loading.value=!0,this.error.value=null;try{await this.api.auth.logout.$post(),this.activeUser.value=void 0,this.token.value=null,this.storage.clearStorage()}catch(lv){this.logger.error("Logout error (user still logged out locally)",{data:lv}),this.activeUser.value=void 0,this.token.value=null,this.storage.clearStorage()}finally{this.loading.value=!1}}async getCurrentUser(){if(this.token.value){this.loading.value=!0;try{const e=await(await this.api.auth.me.$get()).json();return e.ok?e.user:(this.error.value=e.error,void(e.error.includes("Authentication")&&(this.activeUser.value=void 0,this.token.value=null,this.storage.clearStorage())))}catch(lv){return this.logger.error("Get current user error",{data:lv}),void(this.error.value=lv instanceof Error?lv.message:"Failed to get user info")}finally{this.loading.value=!1}}}async getPublicAgent(e){this.loading.value=!0,this.error.value=null;try{const t=await(await this.api.agent.public[":handle"].$get({param:{handle:e.handle}})).json();return t.ok?t.data:(this.error.value=t.error,void this.logger.error("Failed to fetch public agent",{handle:e.handle,error:t.error}))}catch(t){return this.logger.error("Get public agent error",{handle:e.handle,error:t}),void(this.error.value=t instanceof Error?t.message:"Failed to fetch agent")}finally{this.loading.value=!1}}async getAgentByEmail(e){this.loading.value=!0,this.error.value=null;try{const t=await(await this.api.agent["by-email"][":email"].$get({param:{email:e.email}})).json();return t.ok?t.data:(this.error.value=t.error,void this.logger.error("Failed to fetch agent by email",{email:e.email,error:t.error}))}catch(t){return this.logger.error("Get agent by email error",{email:e.email,error:t}),void(this.error.value=t instanceof Error?t.message:"Failed to fetch agent")}finally{this.loading.value=!1}}async requestAuthCode(e){this.loading.value=!0,this.error.value=null;try{const t=await(await this.api.auth["check-email"].$post({json:{email:e.email}})).json();return t.ok?(this.logger.info("Auth code requested successfully",{email:e.email}),!0):(this.error.value=t.error,this.logger.error("Failed to request auth code",{email:e.email,error:t.error}),!1)}catch(t){return this.logger.error("Request auth code error",{email:e.email,error:t}),this.error.value=t instanceof Error?t.message:"Failed to request auth code",!1}finally{this.loading.value=!1}}async loginWithCode(e){this.loading.value=!0,this.error.value=null;try{const t=await(await this.api.auth["verify-code"].$post({json:{email:e.email,code:e.code}})).json();return this.logger.info("Login with code response",{hasUser:!!t.user,hasToken:!!t.token,ok:t.ok}),t.ok?(this.logger.info("Login successful",{email:e.email}),e.orgId&&!1!==e.autoCreateContact&&this.activeUser.value?.userId&&await this.autoCreateContact({userId:this.activeUser.value.userId,orgId:e.orgId}),!0):(this.error.value=t.error,this.logger.error("Login failed",{email:e.email,error:t.error}),!1)}catch(t){return this.logger.error("Login with code error",{email:e.email,error:t}),this.error.value=t instanceof Error?t.message:"Login failed",!1}finally{this.loading.value=!1}}async trackUsage(e){try{const t=this.currentAgent.value;if(!t?.orgId)return this.logger.error("Cannot track usage: no current agent with orgId",{args:e}),!1;const r=await(await this.api.usage.record.$post({json:{orgId:t.orgId,agentId:e.agentId,sessionId:this.sessionId,type:e.type,quantity:e.quantity,userId:e.participantId||this.activeUser.value?.userId||"anonymous"}})).json();return!!r.ok||(this.logger.error("Failed to track usage",{error:r.error,args:e}),!1)}catch(t){return this.logger.error("Track usage error",{error:t,args:e}),!1}}async autoCreateContact(e){try{const t=await(await this.api.contact.resolve.$post({json:{userId:e.userId,orgId:e.orgId}})).json();return t.ok?(this.logger.info("Contact resolved",{userId:e.userId,orgId:e.orgId}),!0):(this.logger.error("Failed to auto-create contact",{error:t.error,args:e}),!1)}catch(t){return this.logger.error("Auto-create contact error",{error:t,args:e}),!1}}async startConversation(e){try{const t=this.currentAgent.value;if(!t?.orgId)return void this.logger.error("Cannot start conversation: no current agent with orgId",{args:e});const r=await(await this.api.conversation.start.$post({json:{orgId:t.orgId,agentId:e.agentId,userId:e.userId||this.activeUser.value?.userId,anonId:e.anonId,channel:e.channel}})).json();if(!r.ok||!r.data){const t=r.ok?"No conversation data returned":"error"in r?r.error:"Unknown error";return void this.logger.error("Failed to start conversation",{error:t,args:e})}return this.logger.info("Conversation started",{conversationId:r.data.conversationId}),r.data}catch(t){return void this.logger.error("Start conversation error",{error:t,args:e})}}generateAnonId(){const e="pagelinesAnonId";let t=this.storage.getItem(e);return t||(t=Ip({prefix:"anon"}),this.storage.setItem(e,t)),t}async saveMessage(e){try{const t=await(await this.api.conversation.messages.$post({json:{sessionId:e.conversationId,participantId:e.participantId,content:e.content,role:e.role}})).json();return!!t.ok||(this.logger.error("Failed to save message",{error:"error"in t?t.error:"Unknown error",args:e}),!1)}catch(t){return this.logger.error("Save message error",{error:t,args:e}),!1}}async chatStream(e){const t=`${this.apiBase||(this.isDev?"http://localhost:3222":o)}/api/agent/public/${encodeURIComponent(e.handle)}/chat/stream`;try{const r=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,conversationId:e.conversationId,history:e.history,visitorId:e.visitorId})});if(!r.ok){const t=await r.json().catch(()=>({error:"Request failed"}));return void e.onError(t.error||`HTTP ${r.status}`)}const o=r.body?.getReader();if(!o)return void e.onError("No response stream");const n=new TextDecoder;let a="",i=e.conversationId||"";for(;;){const{done:t,value:r}=await o.read();if(t)break;a+=n.decode(r,{stream:!0});const s=a.split("\n");a=s.pop()||"";for(const o of s){if(!o.startsWith("data: "))continue;const t=o.slice(6).trim();if("[DONE]"===t)return void e.onDone(i);try{const r=JSON.parse(t);r.pl_metadata?.conversationId&&(i=r.pl_metadata.conversationId);const o=r.choices?.[0]?.delta;o?.content&&e.onDelta(o.content)}catch{}}}e.onDone(i)}catch(r){e.onError(r instanceof Error?r.message:"Stream failed")}}async chatMessage(e){const t=`${this.apiBase||(this.isDev?"http://localhost:3222":o)}/api/agent/public/${encodeURIComponent(e.handle)}/chat`;try{const r=await(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,conversationId:e.conversationId,visitorId:e.visitorId})})).json();return r.ok&&r.data?{conversationId:r.data.conversationId,content:r.data.message.content}:void this.logger.error("chatMessage failed",{error:!r.ok&&"error"in r?r.error:"Unknown"})}catch(r){return void this.logger.error("chatMessage error",{error:r})}}loginWithGoogle(e){if(typeof window>"u")return void this.logger.error("loginWithGoogle: Only available in browser");const t=this.apiBase||(this.isDev?"http://localhost:3222":o),r=window.location.origin,n=`${t}/auth/google-popup?origin=${encodeURIComponent(r)}`,a=window.screenX+(window.outerWidth-500)/2,i=window.screenY+(window.outerHeight-600)/2,s=window.open(n,"google-auth",`width=500,height=600,left=${a},top=${i},popup=yes`);if(!s){const t="Popup was blocked. Please allow popups for this site.";return this.error.value=t,void e?.onError?.(t)}const l=zp(r=>{const o=new URL(t).origin;if(r.origin===o)if("auth-success"===r.data?.type){window.removeEventListener("message",l);const{token:t,user:o}=r.data;this.processApiResponse({ok:!0,data:{},token:t,user:o}),this.logger.info("Google login successful"),e?.onSuccess?.(o)}else if("auth-error"===r.data?.type){window.removeEventListener("message",l);const t=r.data.error||"Google authentication failed";this.error.value=t,this.logger.error("Google login failed",{error:t}),e?.onError?.(t)}},"handler");window.addEventListener("message",l);const c=setInterval(()=>{s.closed&&(clearInterval(c),window.removeEventListener("message",l))},500)}track(e){try{typeof window<"u"&&window.parent!==window&&window.parent.postMessage({type:"pagelines_track",event:e.event,agentId:e.agentId,properties:e.properties||{}},"*"),this.logger.info("SDK event tracked",{event:e.event,agentId:e.agentId})}catch(t){this.logger.error("Track event error",{error:t,args:e})}}};zp(Xp,"PageLinesSDK");let eh=Xp;var th=Object.defineProperty,rh=(e,t)=>th(e,"name",{value:t,configurable:!0}),oh=(e,t,r)=>((e,t,r)=>t in e?th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const nh={info:rh(e=>{},"info"),error:rh(e=>{},"error"),warn:rh(e=>{},"warn")},ah=class e{constructor(t){if(oh(this,"app",null),oh(this,"shadowRoot",null),oh(this,"widgetInstance",null),oh(this,"config"),oh(this,"sdk"),oh(this,"container",null),this.config=t,!t.mode)throw new Error("PLWidget: mode is required");if(!t.handle&&!t.agent)throw new Error("PLWidget: either handle or agent is required");if("modal"!==t.mode&&"button"!==t.mode&&!t.el)throw new Error(`PLWidget: el (HTMLElement) is required for ${t.mode} mode`);if("modal"===t.mode){const r=t.handle||t.agent?.agentId||"default",o=e.modalInstances.get(r);o&&(nh.warn(`Destroying existing modal widget for: ${r}`),o.destroy()),e.modalInstances.set(r,this)}const r=typeof window<"u"&&("localhost"===window.location.hostname||window.location.hostname.includes("127.0.0.1"));this.sdk=eh.getInstance({isDev:r,...t.apiBase&&{apiBase:t.apiBase}}),nh.info(`Initializing ${t.mode} mode for @${t.handle||t.agent?.handle} (isDev: ${r})`),this.init()}async init(){if("button"===this.config.mode)return void(await this.mountMode(this.config.el));"modal"===this.config.mode?(this.container=document.createElement("div"),this.container.id=`pagelines-modal-${this.config.handle||this.config.agent?.agentId||"widget"}`,this.container.style.cssText="position: fixed; inset: 0; z-index: 9999;",document.body.appendChild(this.container),this.shadowRoot=this.container.attachShadow({mode:"open"})):this.shadowRoot=this.config.el.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent="@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif;--font-mono:\"DM Mono\",\"SF Mono\",SFMono-Regular,Consolas,\"Liberation Mono\",Menlo,Courier,monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--tracking-wide:.025em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--blur-sm:8px;--blur-lg:16px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-theme-400:var(--theme-400,#6b7280);--color-theme-500:var(--theme-500,#4b5563);--color-theme-600:var(--theme-600,#374151);--color-theme-800:var(--theme-800,#111827);--color-theme-900:var(--theme-900,#0c0a13);--color-theme-950:var(--theme-950,#030712);--color-primary-300:var(--primary-300,#60a5fa);--color-primary-400:var(--primary-400,#3b82f6);--color-primary-500:var(--primary-500,#2563eb);--color-primary-600:var(--primary-600,#1d4ed8)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container\\/agent{container:agent/inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1{top:calc(var(--spacing)*1)}.top-1\\.5{top:calc(var(--spacing)*1.5)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-6{top:calc(var(--spacing)*6)}.-right-16{right:calc(var(--spacing)*-16)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-1{right:calc(var(--spacing)*1)}.right-1\\.5{right:calc(var(--spacing)*1.5)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.-left-16{left:calc(var(--spacing)*-16)}.left-1\\/2{left:50%}.left-6{left:calc(var(--spacing)*6)}.left-\\[13px\\]{left:13px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[999999\\]{z-index:999999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.i-heroicons-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-chat-bubble-left-right{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193q-.51.041-1.02.072v3.091l-3-3q-2.031 0-4.02-.163a2.1 2.1 0 0 1-.825-.242m9.345-8.334a2 2 0 0 0-.476-.095a48.6 48.6 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.5 48.5 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402c-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235q.865.113 1.74.194V21l4.155-4.155'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-cloud-arrow-down{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 0 1-1.41-8.775a5.25 5.25 0 0 1 10.233-2.33a3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-envelope{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.04 12.04 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-question-mark-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.879 7.519c1.172-1.025 3.071-1.025 4.243 0c1.171 1.025 1.171 2.687 0 3.712q-.308.268-.67.442c-.746.361-1.452.999-1.452 1.827v.75M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9 5.25h.008v.008H12z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09m8.445-7.188L18 9.75l-.259-1.035a3.38 3.38 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.38 3.38 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.38 3.38 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.38 3.38 0 0 0-2.456 2.456m-1.365 11.852L16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183l.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394l-1.183.394a2.25 2.25 0 0 0-1.423 1.423'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-facebook{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a9 9 0 0 1 1.141.195v3.325a9 9 0 0 0-.653-.036a27 27 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.7 1.7 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103l-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-instagram{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.9 5.9 0 0 0-2.124 1.388a5.9 5.9 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076s-.069 1.688-.063 4.947s.021 3.667.083 4.947c.061 1.277.264 2.149.563 2.911c.308.789.72 1.457 1.388 2.123a5.9 5.9 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552c1.278.056 1.689.069 4.947.063s3.668-.021 4.947-.082c1.28-.06 2.147-.265 2.91-.563a5.9 5.9 0 0 0 2.123-1.388a5.9 5.9 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912c.056-1.28.07-1.69.063-4.948c-.006-3.258-.02-3.667-.081-4.947c-.06-1.28-.264-2.148-.564-2.911a5.9 5.9 0 0 0-1.387-2.123a5.9 5.9 0 0 0-2.128-1.38c-.764-.294-1.636-.496-2.914-.55C15.647.009 15.236-.006 11.977 0S8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.7 3.7 0 0 1-1.382-.895a3.7 3.7 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228c-.06-1.264-.072-1.644-.08-4.848c-.006-3.204.006-3.583.061-4.848c.05-1.169.246-1.805.408-2.228c.216-.561.477-.96.895-1.382a3.7 3.7 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417c1.265-.06 1.644-.072 4.848-.08c3.203-.006 3.583.006 4.85.062c1.168.05 1.804.244 2.227.408c.56.216.96.475 1.382.895s.681.817.9 1.378c.165.422.362 1.056.417 2.227c.06 1.265.074 1.645.08 4.848c.005 3.203-.006 3.583-.061 4.848c-.051 1.17-.245 1.805-.408 2.23c-.216.56-.477.96-.896 1.38a3.7 3.7 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418c-1.266.06-1.645.072-4.85.079s-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442a1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024a6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16A4 4 0 0 1 8 12.008'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-linkedin{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-threads{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098c1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015c-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164c1.43 1.783 3.631 2.698 6.54 2.717c2.623-.02 4.358-.631 5.8-2.045c1.647-1.613 1.618-3.593 1.09-4.798c-.31-.71-.873-1.3-1.634-1.75c-.192 1.352-.622 2.446-1.284 3.272c-.886 1.102-2.14 1.704-3.73 1.79c-1.202.065-2.361-.218-3.259-.801c-1.063-.689-1.685-1.74-1.752-2.964c-.065-1.19.408-2.285 1.33-3.082c.88-.76 2.119-1.207 3.583-1.291a14 14 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757c-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32l-1.757-1.18c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388q.163.07.321.142c1.49.7 2.58 1.761 3.154 3.07c.797 1.82.871 4.79-1.548 7.158c-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69q-.362 0-.739.021c-1.836.103-2.98.946-2.916 2.143c.067 1.256 1.452 1.839 2.784 1.767c1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-tiktok{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02c.08 1.53.63 3.09 1.75 4.17c1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97c-.57-.26-1.1-.59-1.62-.93c-.01 2.92.01 5.84-.02 8.75c-.08 1.4-.54 2.79-1.35 3.94c-1.31 1.92-3.58 3.17-5.91 3.21c-1.43.08-2.86-.31-4.08-1.03c-2.02-1.19-3.44-3.37-3.65-5.71c-.02-.5-.03-1-.01-1.49c.18-1.9 1.12-3.72 2.58-4.96c1.66-1.44 3.98-2.13 6.15-1.72c.02 1.48-.04 2.96-.04 4.44c-.99-.32-2.15-.23-3.02.37c-.63.41-1.11 1.04-1.36 1.75c-.21.51-.15 1.07-.14 1.61c.24 1.64 1.82 3.02 3.5 2.87c1.12-.01 2.19-.66 2.77-1.61c.19-.33.4-.67.41-1.06c.1-1.79.06-3.57.07-5.36c.01-4.03-.01-8.05.02-12.07'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-x{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M14.234 10.162L22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299l-.929-1.329L3.076 1.56h3.182l5.965 8.532l.929 1.329l7.754 11.09h-3.182z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-3-dots-fade{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Ccircle cx='4' cy='12' r='3' fill='black'%3E%3Canimate id='SVG7x14Dcom' fill='freeze' attributeName='opacity' begin='0;SVGqSjG0dUp.end-0.25s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3' fill='black' opacity='.4'%3E%3Canimate fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.15s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3' fill='black' opacity='.3'%3E%3Canimate id='SVGqSjG0dUp' fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.3s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-90-ring-with-bg{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='black' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-alert-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-4v4m0 4h.01'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-github{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2c2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2a4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6c-.6.6-.6 1.2-.5 2V21'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-youtube{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 8a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4z'/%3E%3Cpath d='m10 9l5 3l-5 3z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm12-4v4M8 3v4m-4 4h16m-9 4h1m0 0v3'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-chevron-down{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9l6 6l6-6'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-logout{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2'/%3E%3Cpath d='M9 12h12l-3-3m0 6l3-3'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-mail{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='m3 7l9 6l9-6'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-menu{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h16M4 16h16'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-message-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-share{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m12-6a3 3 0 1 0 6 0a3 3 0 1 0-6 0m0 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-6.3-7.3l6.6-3.4m-6.6 6l6.6 3.4'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2m0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2M9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='M9 10a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-2.832 8.849A4 4 0 0 1 10 16h4a4 4 0 0 1 3.834 2.855'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-square-rounded{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6'/%3E%3Cpath d='M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9s-9-1.8-9-9s1.8-9 9-9'/%3E%3Cpath d='M6 20.05V20a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v.05'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-world{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m.6-3h16.8M3.6 15h16.8'/%3E%3Cpath d='M11.5 3a17 17 0 0 0 0 18m1-18a17 17 0 0 1 0 18'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-x{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-11{width:calc(var(--spacing)*11);height:calc(var(--spacing)*11)}.size-12{width:calc(var(--spacing)*12);height:calc(var(--spacing)*12)}.size-full{width:100%;height:100%}.h-10{height:calc(var(--spacing)*10)}.h-20{height:calc(var(--spacing)*20)}.h-\\[28px\\]{height:28px}.h-\\[60px\\]{height:60px}.h-\\[80px\\]{height:80px}.h-\\[80vh\\]{height:80vh}.h-\\[600px\\]{height:600px}.h-full{height:100%}.max-h-\\[calc\\(100vh-48px\\)\\]{max-height:calc(100vh - 48px)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-96{width:calc(var(--spacing)*96)}.w-\\[3px\\]{width:3px}.w-\\[28px\\]{width:28px}.w-\\[60px\\]{width:60px}.w-\\[80\\%\\]{width:80%}.w-\\[80px\\]{width:80px}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[70\\%\\]{max-width:70%}.max-w-\\[255px\\]{max-width:255px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[calc\\(100vw-48px\\)\\]{max-width:calc(100vw - 48px)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.flex-grow-0{flex-grow:0}.basis-0{flex-basis:calc(var(--spacing)*0)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-4{--tw-translate-x:calc(var(--spacing)*-4);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-\\[30px\\]{--tw-translate-x: -30px ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-4{--tw-translate-x:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-\\[30px\\]{--tw-translate-y: -30px ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[30px\\]{--tw-translate-y:30px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45{rotate:-45deg}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.transform-gpu{transform:translateZ(0)var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-7{gap:calc(var(--spacing)*7)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*12)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*12)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-green-400{border-color:var(--color-green-400)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500\\/40{border-color:var(--color-primary-500)}@supports (color:color-mix(in lab,red,red)){.border-primary-500\\/40{border-color:color-mix(in oklab,var(--color-primary-500)40%,transparent)}}.border-red-400{border-color:var(--color-red-400)}.border-white{border-color:var(--color-white)}.border-white\\/0{border-color:#0000}@supports (color:color-mix(in lab,red,red)){.border-white\\/0{border-color:color-mix(in oklab,var(--color-white)0%,transparent)}}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.border-white\\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-white\\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-primary-500\\/20{background-color:var(--color-primary-500)}@supports (color:color-mix(in lab,red,red)){.bg-primary-500\\/20{background-color:color-mix(in oklab,var(--color-primary-500)20%,transparent)}}.bg-primary-500\\/80{background-color:var(--color-primary-500)}@supports (color:color-mix(in lab,red,red)){.bg-primary-500\\/80{background-color:color-mix(in oklab,var(--color-primary-500)80%,transparent)}}.bg-primary-600{background-color:var(--color-primary-600)}.bg-red-500\\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/20{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\\/5{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.bg-white\\/15{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab,red,red)){.from-black\\/70{--tw-gradient-from:color-mix(in oklab,var(--color-black)70%,transparent)}}.from-black\\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab,red,red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab,var(--color-black)80%,transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/90{--tw-gradient-from:#000000e6}@supports (color:color-mix(in lab,red,red)){.from-black\\/90{--tw-gradient-from:color-mix(in oklab,var(--color-black)90%,transparent)}}.from-black\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-theme-800{--tw-gradient-from:var(--color-theme-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-black\\/10{--tw-gradient-via:#0000001a}@supports (color:color-mix(in lab,red,red)){.via-black\\/10{--tw-gradient-via:color-mix(in oklab,var(--color-black)10%,transparent)}}.via-black\\/10{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/50{--tw-gradient-via:#00000080}@supports (color:color-mix(in lab,red,red)){.via-black\\/50{--tw-gradient-via:color-mix(in oklab,var(--color-black)50%,transparent)}}.via-black\\/50{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/60{--tw-gradient-via:#0009}@supports (color:color-mix(in lab,red,red)){.via-black\\/60{--tw-gradient-via:color-mix(in oklab,var(--color-black)60%,transparent)}}.via-black\\/60{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/90{--tw-gradient-via:#000000e6}@supports (color:color-mix(in lab,red,red)){.via-black\\/90{--tw-gradient-via:color-mix(in oklab,var(--color-black)90%,transparent)}}.via-black\\/90{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\\/40{--tw-gradient-to:#0006}@supports (color:color-mix(in lab,red,red)){.to-black\\/40{--tw-gradient-to:color-mix(in oklab,var(--color-black)40%,transparent)}}.to-black\\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-black\\/80{--tw-gradient-to:#000c}@supports (color:color-mix(in lab,red,red)){.to-black\\/80{--tw-gradient-to:color-mix(in oklab,var(--color-black)80%,transparent)}}.to-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-black\\/100{--tw-gradient-to:var(--color-black);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-theme-950{--tw-gradient-to:var(--color-theme-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-9{padding-inline:calc(var(--spacing)*9)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pt-12{padding-top:calc(var(--spacing)*12)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pb-12{padding-bottom:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.text-red-400{color:var(--color-red-400)}.text-theme-400{color:var(--color-theme-400)}.text-theme-600{color:var(--color-theme-600)}.text-theme-900{color:var(--color-theme-900)}.text-white{color:var(--color-white)}.text-white\\/20{color:#fff3}@supports (color:color-mix(in lab,red,red)){.text-white\\/20{color:color-mix(in oklab,var(--color-white)20%,transparent)}}.text-white\\/40{color:#fff6}@supports (color:color-mix(in lab,red,red)){.text-white\\/40{color:color-mix(in oklab,var(--color-white)40%,transparent)}}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-white\\/90{color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.text-white\\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.text-white\\/95{color:#fffffff2}@supports (color:color-mix(in lab,red,red)){.text-white\\/95{color:color-mix(in oklab,var(--color-white)95%,transparent)}}.placeholder-theme-500::-moz-placeholder{color:var(--color-theme-500)}.placeholder-theme-500::placeholder{color:var(--color-theme-500)}.placeholder-white\\/50::-moz-placeholder{color:#ffffff80}.placeholder-white\\/50::placeholder{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.placeholder-white\\/50::-moz-placeholder{color:color-mix(in oklab,var(--color-white)50%,transparent)}.placeholder-white\\/50::placeholder{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-white{--tw-ring-color:var(--color-white)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-1000{--tw-duration:1s;transition-duration:1s}.duration-\\[400ms\\]{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\.25\\,1\\,0\\.33\\,1\\)\\]{--tw-ease:cubic-bezier(.25,1,.33,1);transition-timing-function:cubic-bezier(.25,1,.33,1)}.ease-\\[cubic-bezier\\(0\\.52\\,0\\.01\\,0\\.16\\,1\\)\\]{--tw-ease:cubic-bezier(.52,.01,.16,1);transition-timing-function:cubic-bezier(.52,.01,.16,1)}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}@media(hover:hover){.group-hover\\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\\:opacity-40:is(:where(.group):hover *){opacity:.4}.hover\\:translate-y-\\[-1px\\]:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:rotate-90:hover{rotate:90deg}.hover\\:border-green-300:hover{border-color:var(--color-green-300)}.hover\\:border-primary-300:hover{border-color:var(--color-primary-300)}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:border-white\\/10:hover{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\\:border-white\\/10:hover{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\\:border-white\\/40:hover{border-color:#fff6}@supports (color:color-mix(in lab,red,red)){.hover\\:border-white\\/40:hover{border-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.hover\\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\\:bg-primary-500:hover{background-color:var(--color-primary-500)}.hover\\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/5:hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-white\\/70:hover{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.hover\\:text-white\\/70:hover{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.hover\\:text-white\\/80:hover{color:#fffc}@supports (color:color-mix(in lab,red,red)){.hover\\:text-white\\/80:hover{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.hover\\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.focus\\:border-white\\/40:focus{border-color:#fff6}@supports (color:color-mix(in lab,red,red)){.focus\\:border-white\\/40:focus{border-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:-translate-y-0\\.5:active{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[1\\.06\\]:active{scale:1.06}.active\\:opacity-80:active{opacity:.8}.active\\:duration-100:active{--tw-duration:.1s;transition-duration:.1s}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.sm\\:h-24{height:calc(var(--spacing)*24)}.sm\\:w-24{width:calc(var(--spacing)*24)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:48rem){.md\\:h-\\[600px\\]{height:600px}}@container agent (min-width:480px){.\\@\\[480px\\]\\/agent\\:px-6{padding-inline:calc(var(--spacing)*6)}}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:\"*\";inherits:false}@property --tw-gradient-from{syntax:\"<color>\";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:\"<color>\";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:\"<color>\";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:\"*\";inherits:false}@property --tw-gradient-via-stops{syntax:\"*\";inherits:false}@property --tw-gradient-from-position{syntax:\"<length-percentage>\";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:\"<length-percentage>\";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:\"<length-percentage>\";inherits:false;initial-value:100%}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}",this.shadowRoot.appendChild(e);const t=document.createElement("div");t.id="pagelines-widget-root",t.style.cssText="width: 100%; height: 100%;",this.shadowRoot.appendChild(t),await this.mountMode(t)}async mountMode(t){const{mode:r}=this.config;if("inline"===r){const{default:e}=await Promise.resolve().then(()=>Vm);this.app=gp(e,{sdk:this.sdk,handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon}),this.widgetInstance=this.app.mount(t)}else if("button"===r){if(!this.config.el)throw new Error("PLWidget: el is required for button mode");const t=this.config.el;t.style.cursor="pointer";const r=rh(()=>{new e({mode:"modal",handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,onClose:this.config.onClose})},"handleClick");t.addEventListener("click",r),this.destroy=()=>{t.removeEventListener("click",r),nh.info(`Button mode widget destroyed for handle: ${this.config.handle}`)}}else if("popup"===r){const{default:e}=await Promise.resolve().then(()=>Km);this.app=gp(e,{sdk:this.sdk,handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,position:this.config.position||"bottom-right"}),this.widgetInstance=this.app.mount(t)}else{if("modal"!==r)throw new Error(`PLWidget: unsupported mode "${r}"`);{const{default:e}=await Promise.resolve().then(()=>sv);this.app=gp(e,{sdk:this.sdk,handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,onClose:rh(()=>{this.config.onClose&&this.config.onClose(),this.destroy()},"onClose")}),this.widgetInstance=this.app.mount(t)}}}update(e){this.widgetInstance?.update?(this.widgetInstance.update(e),nh.info(`Widget updated: ${Object.keys(e).join(", ")}`)):nh.warn("Widget instance does not support update()")}toggle(){this.widgetInstance?.toggle?this.widgetInstance.toggle():nh.warn("Widget mode does not support toggle()")}open(){this.widgetInstance?.open?this.widgetInstance.open():nh.warn("Widget mode does not support open()")}close(){this.widgetInstance?.close?this.widgetInstance.close():nh.warn("Widget mode does not support close()")}destroy(){if(this.app&&(this.app.unmount(),this.app=null),this.shadowRoot&&(this.shadowRoot.innerHTML="",this.shadowRoot=null),"modal"===this.config.mode){this.container&&(this.container.remove(),this.container=null);const t=this.config.handle||this.config.agent?.agentId||"default";e.modalInstances.delete(t)}this.widgetInstance=null,nh.info(`Widget destroyed for handle: ${this.config.handle||this.config.agent?.handle}`)}};rh(ah,"PLWidget"),oh(ah,"modalInstances",new Map);let ih=ah;rh(function(e){const t=Ss(null),r=Ss(null),o=Ss(!0),n=Ss(null),a=Ss(!1),i=tu(()=>Ts(e.handle)),s=tu(()=>Ts(e.agent)),l=tu(()=>Ts(e.context)),c=tu(()=>Ts(e.firstMessage)),d=tu(()=>"modal"===e.mode?!(!i.value&&!s.value):!(!t.value||!i.value&&!s.value));return dl([t,s,i],async()=>{if(!a.value&&d.value){o.value=!0,n.value=null;try{await new Promise(e=>setTimeout(e,0));const o={mode:e.mode,handle:i.value,agent:s.value||void 0,context:l.value,firstMessage:c.value,apiBase:e.apiBase,onClose:e.onClose};"modal"!==e.mode&&(o.el=t.value),r.value=new ih(o),a.value=!0}catch(u){n.value=u instanceof Error?u.message:"Failed to initialize widget"}finally{o.value=!1}}},{immediate:!0}),dl([s,l,c],()=>{if(!r.value||!a.value)return;const e={};void 0!==s.value&&(e.agent=s.value||void 0),void 0!==l.value&&(e.context=l.value),void 0!==c.value&&(e.firstMessage=c.value),Object.keys(e).length>0&&r.value.update(e)}),ac(()=>{r.value&&(r.value.destroy(),r.value=null),a.value=!1}),{containerRef:t,widget:r,loading:o,error:n}},"usePLWidget");const sh=new Map;let lh=!0,ch=null;function dh(e){if(sh.has(e))return sh.get(e)||null;const t=e.getAttribute("data-handle"),r=e.getAttribute("data-mode");if(!t)return null;if(!r||!["inline","button","popup","modal"].includes(r))return null;try{const o={el:e,mode:r,handle:t,context:e.getAttribute("data-context")||void 0,firstMessage:e.getAttribute("data-first-message")||void 0,buttonText:e.getAttribute("data-button-text")||void 0,buttonIcon:e.getAttribute("data-button-icon")||void 0,position:e.getAttribute("data-position")||"bottom-right",apiBase:e.getAttribute("data-api-base")||void 0},n=new ih(o);return sh.set(e,n),n}catch(o){return o instanceof Error?o.message:String(o),null}}function uh(){const e=document.querySelectorAll("[data-pagelines-agent]");0!==e.length&&(e.length,e.forEach(e=>{dh(e)}))}function ph(){lh=!1,ch&&(ch.disconnect(),ch=null)}if("undefined"!=typeof window){window.PLWidget=ih,window.PLWidgetAPI={disableAutoDetect:ph};const e=()=>{const e=document.querySelector('script[src*="@pagelines/widget"]');"false"!==e?.getAttribute("data-pagelines-auto-detect")?(uh(),lh&&!ch&&(ch=new MutationObserver(e=>{e.forEach(e=>{if("childList"===e.type&&(e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){const t=e;t.hasAttribute("data-pagelines-agent")&&dh(t),t.querySelectorAll("[data-pagelines-agent]").forEach(e=>{dh(e)})}}),e.removedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){const t=e;if(sh.has(t)){const e=sh.get(t);e?.destroy(),sh.delete(t)}t.querySelectorAll("[data-pagelines-agent]").forEach(e=>{const t=sh.get(e);t&&(t.destroy(),sh.delete(e))})}})),"attributes"===e.type&&e.target.nodeType===Node.ELEMENT_NODE){const t=e.target;t.hasAttribute("data-pagelines-agent")&&e.attributeName&&function(e,t){const r=sh.get(e);if(r){if("data-handle"===t)return r.destroy(),sh.delete(e),void dh(e);if("data-context"===t||"data-first-message"===t||"data-button-text"===t||"data-button-icon"===t){const t=e.getAttribute("data-context")||void 0,o=e.getAttribute("data-first-message")||void 0,n=e.getAttribute("data-button-text")||void 0,a=e.getAttribute("data-button-icon")||void 0;r.update({context:t,firstMessage:o,buttonText:n,buttonIcon:a})}}}(t,e.attributeName)}})}),ch.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-handle","data-context","data-first-message","data-button-text","data-button-icon"]}))):ph()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}var hh=Object.defineProperty,gh=(e,t)=>hh(e,"name",{value:t,configurable:!0});const fh={linkedin:{label:"LinkedIn",icon:"i-simple-icons-linkedin",placeholder:"john-smith",getUrl:gh(e=>`https://linkedin.com/in/${e}`,"getUrl")},x:{label:"X",icon:"i-simple-icons-x",placeholder:"johnsmith",getUrl:gh(e=>`https://x.com/${e}`,"getUrl")},facebook:{label:"Facebook",icon:"i-simple-icons-facebook",placeholder:"johnsmith",getUrl:gh(e=>`https://facebook.com/${e}`,"getUrl")},tiktok:{label:"TikTok",icon:"i-simple-icons-tiktok",placeholder:"johnsmith",getUrl:gh(e=>`https://tiktok.com/@${e}`,"getUrl")},youtube:{label:"YouTube",icon:"i-tabler-brand-youtube",placeholder:"johnsmith",getUrl:gh(e=>`https://youtube.com/@${e}`,"getUrl")},github:{label:"GitHub",icon:"i-tabler-brand-github",placeholder:"johnsmith",getUrl:gh(e=>`https://github.com/${e}`,"getUrl")},instagram:{label:"Instagram",icon:"i-simple-icons-instagram",placeholder:"johnsmith",getUrl:gh(e=>`https://instagram.com/${e}`,"getUrl")},threads:{label:"Threads",icon:"i-simple-icons-threads",placeholder:"johnsmith",getUrl:gh(e=>`https://threads.net/@${e}`,"getUrl")},email:{label:"Email",icon:"i-tabler-mail",placeholder:"hello@example.com",getUrl:gh(e=>`mailto:${e}`,"getUrl")},phone:{label:"Phone",icon:"i-tabler-phone",placeholder:"+1-555-123-4567",getUrl:gh(e=>`tel:${e.replace(/[^0-9+]/g,"")}`,"getUrl")},website:{label:"Website",icon:"i-tabler-world",placeholder:"https://example.com",getUrl:gh(e=>e,"getUrl")},calendar:{label:"Calendar",icon:"i-tabler-calendar",placeholder:"https://cal.com/username",getUrl:gh(e=>e,"getUrl")}};var mh=Object.defineProperty,vh=(e,t)=>mh(e,"name",{value:t,configurable:!0}),bh=(e,t,r)=>((e,t,r)=>t in e?mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const wh={class:"spinner max-w-sm"},yh={class:"ring-circular h-full w-full origin-center",viewBox:"25 25 50 50"},kh=Zl({__name:"FSpinner",props:{width:{type:String,default:""},colorMode:{type:String,default:"primary"}},setup:e=>(t,r)=>(yd(),Cd("div",wh,[(yd(),Cd("svg",yh,[Td("circle",{class:Ya([e.colorMode,"ring-path"]),cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"30"},null,2)]))]))}),xh={green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"}};function _h(e){return xh[e]||xh.blue}vh(_h,"getColorSchemeOklch");const Ch=[{mode:"self",label:"Overview",icon:"i-tabler-user-square-rounded"},{mode:"talk",label:"Talk",icon:"i-tabler-phone"},{mode:"chat",label:"Chat",icon:"i-tabler-message-circle"},{mode:"info",label:"About",icon:"i-tabler-user-circle"}],zh=class extends Zp{constructor(e){super("ClientAudio",e),bh(this,"audioContext"),bh(this,"analyser"),bh(this,"microphone"),bh(this,"audioLevelInterval"),bh(this,"stream"),bh(this,"visibilityChangeHandler"),bh(this,"vadTimeout"),bh(this,"lastSpeechTime",0),bh(this,"VAD_SILENCE_THRESHOLD",.03),bh(this,"VAD_SILENCE_DURATION",1200),bh(this,"audioLevels",Ss({inputLevel:0,outputLevel:0})),this.setupVisibilityHandler()}setupVisibilityHandler(){typeof document>"u"||(this.visibilityChangeHandler=()=>{document.hidden?(this.logger.info("App backgrounded, suspending audio context"),this.handleAppBackground()):(this.logger.info("App foregrounded, resuming audio context"),this.handleAppForeground())},document.addEventListener("visibilitychange",this.visibilityChangeHandler,{passive:!0}),window.addEventListener("beforeunload",()=>{this.cleanup().catch(this.logger.error.bind(this,"Error during beforeunload cleanup"))},{passive:!0}))}handleAppBackground(){this.logger.info("App backgrounded - stopping microphone for privacy"),this.stopMicrophone().catch(this.logger.error.bind(this,"Error stopping microphone on background"))}handleAppForeground(){this.logger.info("App foregrounded - microphone remains off until user re-enables (security best practice)")}async requestMicrophonePermission(e={}){try{const{noiseSuppression:t=!0,echoCancellation:r=!0,autoGainControl:o=!0,voiceIsolation:n=!0}=e,a={audio:{noiseSuppression:{ideal:t,exact:t},echoCancellation:{ideal:r,exact:r},autoGainControl:{ideal:o,exact:o},voiceIsolation:{ideal:n,exact:n},advanced:[{googAudioMirroring:!1},{googAutoGainControl:o},{googAutoGainControl2:o},{googNoiseSuppression:t},{googNoiseSuppression2:t},{googEchoCancellation:r},{googEchoCancellation2:r},{googHighpassFilter:!0},{googTypingNoiseDetection:!0}]}};this.stream=await navigator.mediaDevices.getUserMedia(a);const i=this.stream.getAudioTracks()[0].getSettings();return this.logger.info("Microphone permission granted with settings:",{noiseSuppression:i.noiseSuppression,echoCancellation:i.echoCancellation,autoGainControl:i.autoGainControl,voiceIsolation:i.voiceIsolation,sampleRate:i.sampleRate}),await this.setupAudioAnalysis(),!0}catch(t){return this.logger.error("Microphone permission denied:",t),!1}}getMicrophoneStream(){return this.stream}async setupAudioAnalysis(){if(!this.stream)throw new Error("No audio stream available");try{this.audioContext=new AudioContext,this.analyser=this.audioContext.createAnalyser(),this.microphone=this.audioContext.createMediaStreamSource(this.stream),this.analyser.fftSize=256,this.analyser.smoothingTimeConstant=.8,this.microphone.connect(this.analyser),this.logger.info("Audio analysis setup complete",{fftSize:this.analyser.fftSize,frequencyBinCount:this.analyser.frequencyBinCount,sampleRate:this.audioContext.sampleRate})}catch(e){throw this.logger.error("Failed to setup audio analysis:",e),e}}detectVoiceActivity(e){const t=e>this.VAD_SILENCE_THRESHOLD;return t&&(this.lastSpeechTime=Date.now()),t}hasUserStoppedSpeaking(){return 0!==this.lastSpeechTime&&Date.now()-this.lastSpeechTime>this.VAD_SILENCE_DURATION}startAudioLevelMonitoring(e,t){if(!this.analyser)return void this.logger.info("Audio level monitoring not started - missing analyser");this.logger.info("Starting audio level monitoring with VAD at timestamp:",Date.now());const r=new Uint8Array(this.analyser.frequencyBinCount),o=vh(async()=>{if(this.analyser)try{this.analyser.getByteFrequencyData(r);const o=r.reduce((e,t)=>e+t,0)/r.length,n=Math.min(o/128,1);!this.detectVoiceActivity(n)&&this.hasUserStoppedSpeaking()&&t&&(this.logger.info("VAD: User stopped speaking (silence detected)"),t(),this.lastSpeechTime=0);const a=e?.()?.3:0;this.audioLevels.value={inputLevel:n,outputLevel:a}}catch(o){this.logger.error("Error in audio level monitoring:",o),this.stopAudioLevelMonitoring()}else this.logger.info("Stopping audio level monitoring - missing analyser")},"updateLevels"),n=vh(()=>{o().catch(e=>{this.logger.error("Async error in audio level monitoring:",e)})},"intervalWrapper");this.audioLevelInterval=window.setInterval(n,50)}stopAudioLevelMonitoring(){this.audioLevelInterval?(this.logger.info("Stopping audio level monitoring interval"),clearInterval(this.audioLevelInterval),this.audioLevelInterval=void 0):this.logger.info("No audio level monitoring interval to stop"),this.lastSpeechTime=0,this.vadTimeout&&(clearTimeout(this.vadTimeout),this.vadTimeout=void 0)}resetAudioLevels(){this.audioLevels.value={inputLevel:0,outputLevel:0},this.lastSpeechTime=0}isAudioContextAvailable(){return!!this.audioContext}getAudioContextState(){return this.audioContext?.state}getSharedAnalyser(){return this.analyser}async stopMicrophone(){this.stream&&(this.logger.info("Stopping microphone stream"),this.stream.getTracks().forEach(e=>{e.stop(),e.enabled=!1}),this.stream=void 0),this.stopAudioLevelMonitoring(),this.resetAudioLevels(),this.audioContext&&"closed"!==this.audioContext.state&&(await this.audioContext.close(),this.audioContext=void 0),this.analyser=void 0,this.microphone=void 0,this.logger.info("Microphone stopped")}async cleanup(){await this.stopMicrophone(),this.visibilityChangeHandler&&typeof document<"u"&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=void 0),this.logger.info("Audio resources cleaned up")}};vh(zh,"ClientAudio");let Sh=zh;function Ih(e){return e?"string"==typeof e?e:e.src||"":""}function Ah(e){return Ih(e.cover)||Ih(e.avatar)||"/img/placeholder-avatar.png"}function Eh(){return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+"}function Th(e){const t=e.target;t.dataset.fallbackUsed||(t.dataset.fallbackUsed="true",t.src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+")}function Mh(e){const{message:t,source:r}=e;if(!t)return null;const o={user:"user",ai:"agent",agent:"agent"},n=o[r]||"agent";if("string"==typeof t)return t.trim()?{text:t.trim(),sender:n}:null;if("object"!=typeof t)return null;const a=[e=>{if(!("source"in e))return null;const t=o[e.source];return t?{text:e.message||"",sender:t}:null}];for(const i of a){const e=i(t);if(e&&e.text.trim())return{text:e.text.trim(),sender:e.sender}}return null}function jh(e){const{template:t,agent:r}=e;return t.replace(/{name}/g,r.name||"Digital Agent").replace(/{title}/g,r.title||"").replace(/{handle}/g,r.handle||"").replace(/{orgName}/g,r.org?.name||"")}vh(Ih,"getImageSrc"),vh(Ah,"getAgentAvatarUrl"),vh(Eh,"getFallbackAvatarDataUrl"),vh(Th,"handleImageError"),vh(Mh,"parseVoiceMessage"),vh(function(e){const{name:t,context:r}=e;return"welcome"===r?`Welcome! I'm ${t}, your AI agent. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?`:"onboarding"===r?`Hi! I'm ${t}, your newly created AI agent. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?`:`Hello! I'm ${t}. How can I help you today?`},"generateFirstMessage"),vh(jh,"parseButtonTemplate");const $h=class extends Zp{constructor(e){super("AgentController",e),bh(this,"conversation"),bh(this,"isTextMode",!1),bh(this,"lastMessage",{hash:"",time:0}),bh(this,"clientAudio"),bh(this,"unwatchAudio"),bh(this,"isConnecting",!1),bh(this,"conversationId"),bh(this,"sessionId"),bh(this,"conversationStartTime"),bh(this,"hostParticipantId"),bh(this,"visitorParticipantId"),bh(this,"voiceState",Ss({isActive:!1,isConnected:!1,isSpeaking:!1,isListening:!1,isProcessing:!1,transcript:"Tap to begin voice conversation",connectionStatus:"disconnected"})),bh(this,"textState",Ss({isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected"})),bh(this,"agentMode",Ss("self")),bh(this,"sharedMessages",Ss([])),this.clientAudio=new Sh(e),this.setupModeWatcher()}get chatEnabled(){const{agent:e}=this.settings;return!!e.instanceId&&"running"===e.botStatus}get chatUnavailableReason(){const{agent:e}=this.settings;return e.instanceId?"error"===e.botStatus?"Agent encountered an error":"running"!==e.botStatus?"Agent is offline":void 0:"Agent is not deployed"}get audioLevels(){return this.clientAudio.audioLevels}getClientAudio(){return this.clientAudio}getOutputFrequencyData(){return null}getInputFrequencyData(){const e=this.clientAudio.getSharedAnalyser();if(e)try{const t=new Uint8Array(e.frequencyBinCount);return e.getByteFrequencyData(t),t}catch{}return null}mapChatError(e){return e.includes("429")||e.includes("Too many")?"Too many messages. Please wait a moment.":e.includes("503")||e.includes("not available")?"Agent is currently offline.":e.includes("timed out")||e.includes("starting up")?"Agent is starting up. Please try again.":e.includes("404")?"Agent not found.":"Something went wrong. Please try again."}isTransientError(e){return e.includes("timed out")||e.includes("starting up")||e.includes("503")}isDuplicateMessage(e,t){const r=`${t}:${e.toLowerCase().trim()}`,o=Date.now(),n=r===this.lastMessage.hash&&o-this.lastMessage.time<500;return n||(this.lastMessage={hash:r,time:o}),n}addMessage(e,t){this.isDuplicateMessage(e,t)||(this.sharedMessages.value=[...this.sharedMessages.value,{id:Date.now().toString(),text:e,sender:t,timestamp:new Date}])}getDynamicSettings(){const{sdk:e}=this.settings,t=e.activeUser.value,r=t?.agents?.find(e=>e.agentId===t.primaryAgentId),o=t?`\n\nCurrent User:\n- Name: ${r?.name||"Anonymous"}\n- Email: ${t.email}\n- Title: ${r?.title||""}\n- About: ${r?.summary||""}\n`:"";return{context:`${this.settings.context||""}${o}`.trim(),firstMessage:this.settings.firstMessage||""}}updateState(e,t){e.value={...e.value,...t}}resetState(e){e?this.updateState(this.textState,{isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected",error:void 0}):(this.updateState(this.voiceState,{isActive:!1,isConnected:!1,isSpeaking:!1,isListening:!1,isProcessing:!1,transcript:"Ready to start a call...",connectionStatus:"disconnected",error:void 0}),this.clientAudio.resetAudioLevels())}setupModeWatcher(){dl(this.agentMode,async(e,t)=>{this.logger.info(`Mode changed from ${t} to ${e}`),this.conversation&&("talk"===t||"chat"===t)&&await this.endConversation()})}handleMessage(e,t){const r=Mh(e);if(r&&(t&&"user"===r.sender&&this.logger.info("User transcription received",{text:r.text}),this.addMessage(r.text,r.sender),!t&&"agent"===r.sender&&this.updateState(this.textState,{isThinking:!1}),this.sessionId&&this.hostParticipantId&&this.visitorParticipantId)){const e="agent"===r.sender?this.hostParticipantId:this.visitorParticipantId,{sdk:t}=this.settings;t.saveMessage({conversationId:this.sessionId,participantId:e,content:r.text,role:"agent"===r.sender?"agent":"user"}).catch(e=>{this.logger.warn("Failed to save message",{error:e})})}}handleError(e,t){const r=e.message;this.logger.error("Conversation error:",e),this.resetState(t),t?this.updateState(this.voiceState,{error:r,connectionStatus:"error",transcript:"Failed to start call."}):this.updateState(this.textState,{error:r,connectionStatus:"error"})}async setMode(e){this.agentMode.value!==e&&(this.agentMode.value=e)}async startVoiceConversation(e={}){this.handleError(new Error("Voice conversations not yet available. OpenClaw integration pending."),!0)}async startTextConversation(e={}){if(this.isConnecting)this.logger.info("Text conversation already connecting, ignoring duplicate request");else{this.isConnecting=!0,this.isTextMode=!0,this.updateState(this.textState,{isActive:!0,connectionStatus:"connecting"});try{if(!this.chatEnabled)return this.isConnecting=!1,void this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason});this.isConnecting=!1,this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected"}),e.onConnect?.(),this.logger.info("Text conversation ready")}catch(t){throw this.isConnecting=!1,this.handleError(t,!1),t}}}async endConversation(){if(!this.conversation&&!this.isTextMode)return this.resetState(this.isTextMode),void(await this.clientAudio.stopMicrophone());try{this.conversation=void 0}finally{this.conversation=void 0,this.unwatchAudio?.(),this.unwatchAudio=void 0,this.conversationId=void 0,this.resetState(this.isTextMode),this.isTextMode=!1,await this.clientAudio.stopMicrophone()}}async sendChatMessage(e){if(!this.isTextMode)return;if(!this.chatEnabled)return void this.addMessage("Agent is currently offline.","system");const{sdk:t,agent:r}=this.settings;if(r.handle){this.addMessage(e,"user"),this.updateState(this.textState,{isThinking:!0}),this.sharedMessages.value=[...this.sharedMessages.value,{id:`stream-${Date.now()}`,text:"",sender:"agent",timestamp:new Date}];try{await t.chatStream({handle:r.handle,message:e,conversationId:this.conversationId,history:this.buildHistory(),visitorId:t.generateAnonId(),onDelta:vh(e=>{const t=this.sharedMessages.value,r=t[t.length-1];"agent"===r?.sender&&(r.text+=e,this.sharedMessages.value=[...t])},"onDelta"),onDone:vh(e=>{e&&(this.conversationId=e),this.updateState(this.textState,{isThinking:!1})},"onDone"),onError:vh(e=>{const t=this.sharedMessages.value,r=t[t.length-1];"agent"===r?.sender&&!r.text&&(this.sharedMessages.value=t.slice(0,-1));const o=this.mapChatError(e);this.isTransientError(e)?(this.addMessage(o,"system"),this.updateState(this.textState,{isThinking:!1})):this.handleError(new Error(o),!1)},"onError")})}catch(o){this.handleError(o,!1)}}else this.handleError(new Error("Agent handle required for chat"),!1)}buildHistory(){return this.sharedMessages.value.filter(e=>"user"===e.sender||"agent"===e.sender).slice(-20).map(e=>({role:"user"===e.sender?"user":"assistant",content:e.text})).filter(e=>e.content.length>0)}isConnected(){return!!this.conversation||this.isTextMode}isVoiceConnected(){return!!this.conversation&&!this.isTextMode}isTextConnected(){return this.isTextMode}async destroy(){await this.endConversation(),await this.clientAudio.cleanup(),this.endSession().catch(e=>{})}async endSession(){!this.sessionId||!this.conversationStartTime||(this.logger.info("Session ended",{sessionId:this.sessionId,duration:Math.round((Date.now()-this.conversationStartTime.getTime())/1e3),type:this.isTextMode?"chat":"voice"}),this.resetSession())}resetSession(){this.sessionId=void 0,this.conversationStartTime=void 0}};vh($h,"AgentController");let Oh=$h;const Ph=Zl({__name:"EffectTransitionList",props:{disabled:{type:Boolean,default:!1},mode:{default:"block"}},setup:e=>(t,r)=>(yd(),zd(Ku,{name:e.disabled?"":"nlist"},{default:al(()=>[gc(t.$slots,"default")]),_:3},8,["name"]))}),Nh={key:0,class:"absolute inset-0 flex items-center justify-center"},Lh=Zl({__name:"ElAgentButton",props:{theme:{default:"primary"},size:{default:"lg"},loading:{type:Boolean,default:!1},icon:{},iconAfter:{}},setup(e){const t=tu(()=>({primary:"bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",green:"bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",red:"bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",default:"bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"}[e.theme])),r=tu(()=>({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-base"}[e.size])),o=tu(()=>({sm:"size-4",md:"size-4",lg:"size-5"}[e.size]));return(n,a)=>(yd(),Cd("button",{class:Ya(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",[t.value,r.value]])},[e.loading?(yd(),Cd("div",Nh,[...a[0]||(a[0]=[Td("i",{class:"i-svg-spinners-90-ring-with-bg size-5"},null,-1)])])):Pd("",!0),Td("span",{class:Ya(["flex items-center gap-2 transition-opacity duration-200",e.loading?"opacity-0":"opacity-100"])},[e.icon?(yd(),Cd("i",{key:0,class:Ya([e.icon,o.value])},null,2)):Pd("",!0),gc(n.$slots,"default"),e.iconAfter?(yd(),Cd("i",{key:1,class:Ya([e.iconAfter,o.value])},null,2)):Pd("",!0)],2)],2))}}),Dh=["value"],Fh=Zl({__name:"AgentInputEmail",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t;return(t,o)=>(yd(),Cd("input",{type:"email",autocomplete:"email",placeholder:"Enter Your Email",value:e.modelValue,class:"w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-all",style:{"font-size":"16px"},onInput:o[0]||(o[0]=e=>r("update:modelValue",e.target.value))},null,40,Dh))}}),Zh={class:"flex gap-1.5 justify-center"},Uh=["onUpdate:modelValue","onInput","onKeydown","onPaste","onFocus"],Bh=Zl({__name:"AgentInputOneTimeCode",props:{modelValue:{},length:{},focusFirst:{type:Boolean}},emits:["update:modelValue","autoSubmit"],setup(e,{emit:t}){const r=e,o=t,n=Ss([]),a=Ss(Array.from({length:r.length}).fill("")),i=Ss(!1);function s(e,t){t.preventDefault(),i.value=!0;const o=(t.clipboardData?.getData("text")||"").replace(/\D/g,"");if(o.length===r.length)a.value=o.split(""),setTimeout(()=>{n.value[r.length-1]?.focus(),i.value=!1},10);else{const t=[...a.value];o.split("").slice(0,r.length-e).forEach((r,o)=>{t[e+o]=r}),a.value=t;const s=Math.min(e+o.length,r.length-1);setTimeout(()=>{n.value[s]?.focus(),i.value=!1},10)}}function l(e,t){const o=t.target.value.slice(-1).replace(/\D/g,"");a.value[e]=o,o&&e<r.length-1&&n.value[e+1]?.focus()}function c(e,t){"Backspace"===t.key?(t.preventDefault(),a.value[e]="",e>0&&n.value[e-1]?.focus()):"ArrowLeft"===t.key&&e>0?n.value[e-1]?.focus():"ArrowRight"===t.key&&e<r.length-1&&n.value[e+1]?.focus()}function d(e){if(n.value[e]?.select(),!i.value&&a.value[e])for(let t=e;t<r.length;t++)a.value[t]=""}return tc(()=>{r.modelValue&&(a.value=r.modelValue.split("").slice(0,r.length)),r.focusFirst&&!("ontouchstart"in window)&&n.value[0]?.focus()}),dl(()=>r.modelValue,e=>{a.value=e?e.split("").slice(0,r.length):Array.from({length:r.length}).fill("")}),dl(a,()=>{const e=a.value.filter(Boolean).join("");o("update:modelValue",e),e.length===r.length&&o("autoSubmit",e)},{deep:!0}),vh(s,"onPaste"),vh(l,"onInput"),vh(c,"onKeydown"),vh(d,"onFocus"),(t,r)=>(yd(),Cd("div",Zh,[(yd(!0),Cd(gd,null,hc(e.length,e=>il((yd(),Cd("input",{key:e,ref_for:!0,ref:vh(t=>n.value[e-1]=t,"ref"),"onUpdate:modelValue":vh(t=>a.value[e-1]=t,"onUpdate:modelValue"),type:"text",inputmode:"numeric",autocomplete:"one-time-code",class:"size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",style:{"font-size":"16px"},maxlength:"1",onInput:vh(t=>l(e-1,t),"onInput"),onKeydown:vh(t=>c(e-1,t),"onKeydown"),onPaste:vh(t=>s(e-1,t),"onPaste"),onFocus:vh(t=>d(e-1),"onFocus")},null,40,Uh)),[[ip,a.value[e-1]]])),128))]))}}),Vh=["data-test-mode"],Rh={class:"w-full max-w-xs space-y-12"},Wh={key:0,class:"text-xs text-theme-400 text-center"},Hh={class:"text-base font-light text-white text-center"},Gh={class:"space-y-6 relative"},Jh={key:"email-field",class:"w-full"},qh={key:"code-field",class:"w-full"},Kh=Zl({__name:"ElAuthGate",props:{sdk:{}},setup(e){const t=Ss({email:"",code:""}),r=Ss("email"),o=Ss(!1),n={email:{title:"Enter Your Email",button:{label:"Continue",disabled:vh(()=>!t.value.email||o.value,"disabled")},action:vh(async()=>{if(!o.value){o.value=!0;try{await e.sdk.requestAuthCode({email:t.value.email})&&(r.value="code")}finally{o.value=!1}}},"action")},code:{title:"Enter Verification Code",button:{label:"Verify",disabled:vh(()=>6!==t.value.code.length||o.value,"disabled")},action:vh(async()=>{if(!o.value){o.value=!0;try{await e.sdk.loginWithCode({email:t.value.email,code:t.value.code})}finally{o.value=!1}}},"action")}},a=tu(()=>n[r.value]);return dl(()=>e.sdk.activeUser.value,e=>{e&&r.value}),(o,n)=>(yd(),Cd("div",{"data-test":"auth-form","data-test-mode":r.value,class:"flex flex-col items-center justify-center h-full p-6"},[Td("div",Rh,[e.sdk.error.value?(yd(),Cd("p",Wh,oi(e.sdk.error.value),1)):Pd("",!0),Td("h3",Hh,oi(a.value.title),1),Td("div",Gh,[Md(Ph,null,{default:al(()=>["email"===r.value?(yd(),Cd("div",Jh,[Md(Fh,{modelValue:t.value.email,"onUpdate:modelValue":n[0]||(n[0]=e=>t.value.email=e),"data-test":"auth-email-input",onKeyup:up(a.value.action,["enter"])},null,8,["modelValue","onKeyup"])])):(yd(),Cd("div",qh,[Md(Bh,{modelValue:t.value.code,"onUpdate:modelValue":n[1]||(n[1]=e=>t.value.code=e),length:6,"focus-first":!0,"data-test":"auth-code-input",onAutoSubmit:a.value.action},null,8,["modelValue","onAutoSubmit"])])),(yd(),Cd("div",{key:a.value.button.label,class:"space-y-4 w-full"},[Md(Lh,{theme:"primary",size:"md",class:"w-full","data-test":"auth-submit",loading:e.sdk.loading.value,disabled:a.value.button.disabled()||e.sdk.loading.value,onClick:a.value.action},{default:al(()=>[Od(oi(a.value.button.label),1)]),_:1},8,["loading","disabled","onClick"]),"code"===r.value?(yd(),Cd("button",{key:0,class:"w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",onClick:n[2]||(n[2]=e=>r.value="email")}," Change Email ")):Pd("",!0)]))]),_:1})])])],8,Vh))}}),Yh={class:"relative flex-shrink-0"},Qh=["src","alt"],Xh={key:0,class:"absolute top-1 right-1"},eg={class:"min-w-0"},tg=Zl({__name:"ElModeHeader",props:{agent:{},size:{default:"md"},showOnlineIndicator:{type:Boolean,default:!0},layout:{default:"centered"}},setup(e){function t(){return e.agent.avatar?.src?e.agent.avatar.src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+"}return vh(t,"getAvatarSrc"),(r,o)=>(yd(),Cd("div",{class:Ya(["flex gap-4",["centered"===e.layout?"flex-col items-center text-center":"flex-row items-center justify-center"]])},[Td("div",Yh,[Td("div",{class:Ya(["rounded-full overflow-hidden border-white","lg"===e.size?"w-20 h-20 sm:w-24 sm:h-24 border-4":"w-16 sm:size-16 border-2"])},[Td("img",{src:t(),alt:e.agent.name,class:"w-full h-full object-cover",onError:o[0]||(o[0]=(...e)=>Ts(Th)&&Ts(Th)(...e))},null,40,Qh)],2),e.showOnlineIndicator?(yd(),Cd("div",Xh,[...o[1]||(o[1]=[Td("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1),Td("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1)])])):Pd("",!0)]),Td("div",eg,[Td("h1",{class:Ya(["font-light text-white mb-1 truncate",["lg"===e.size?"text-3xl mb-2":"text-xl sm:text-2xl tracking-wide leading-tight","horizontal"===e.layout?"text-white/95":""]])},oi(e.agent.name),3),Td("p",{class:Ya(["font-light line-clamp-1",["lg"===e.size?"text-base text-white/60":"text-sm sm:text-base","horizontal"===e.layout?"text-white/70 truncate":"text-white/60"]])},oi("horizontal"===e.layout?e.agent.title||"Digital Agent":e.agent.title),3)])],2))}}),rg=vh((e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},"concatArrays"),og=vh((e,t)=>({classGroupId:e,validator:t}),"createClassValidatorObject"),ng=vh((e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),"createClassPartObject"),ag="-",ig=[],sg=vh(e=>{const t=dg(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:vh(e=>{if(e.startsWith("[")&&e.endsWith("]"))return cg(e);const r=e.split(ag),o=""===r[0]&&r.length>1?1:0;return lg(r,o,t)},"getClassGroupId"),getConflictingClassGroupIds:vh((e,t)=>{if(t){const t=o[e],n=r[e];return t?n?rg(n,t):t:n||ig}return r[e]||ig},"getConflictingClassGroupIds")}},"createClassGroupUtils"),lg=vh((e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],n=r.nextPart.get(o);if(n){const r=lg(e,t+1,n);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(ag):e.slice(t).join(ag),s=a.length;for(let l=0;l<s;l++){const e=a[l];if(e.validator(i))return e.classGroupId}},"getGroupRecursive"),cg=vh(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?"arbitrary.."+o:void 0})(),"getGroupIdForArbitraryProperty"),dg=vh(e=>{const{theme:t,classGroups:r}=e;return ug(r,t)},"createClassMap"),ug=vh((e,t)=>{const r=ng();for(const o in e){const n=e[o];pg(n,r,o,t)}return r},"processClassGroups"),pg=vh((e,t,r,o)=>{const n=e.length;for(let a=0;a<n;a++){const n=e[a];hg(n,t,r,o)}},"processClassesRecursively"),hg=vh((e,t,r,o)=>{"string"!=typeof e?"function"!=typeof e?mg(e,t,r,o):fg(e,t,r,o):gg(e,t,r)},"processClassDefinition"),gg=vh((e,t,r)=>{(""===e?t:vg(t,e)).classGroupId=r},"processStringDefinition"),fg=vh((e,t,r,o)=>{bg(e)?pg(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push(og(r,e)))},"processFunctionDefinition"),mg=vh((e,t,r,o)=>{const n=Object.entries(e),a=n.length;for(let i=0;i<a;i++){const[e,a]=n[i];pg(a,vg(t,e),r,o)}},"processObjectDefinition"),vg=vh((e,t)=>{let r=e;const o=t.split(ag),n=o.length;for(let a=0;a<n;a++){const e=o[a];let t=r.nextPart.get(e);t||(t=ng(),r.nextPart.set(e,t)),r=t}return r},"getPart"),bg=vh(e=>"isThemeGetter"in e&&!0===e.isThemeGetter,"isThemeGetter"),wg=vh(e=>{if(e<1)return{get:vh(()=>{},"get"),set:vh(()=>{},"set")};let t=0,r=Object.create(null),o=Object.create(null);const n=vh((n,a)=>{r[n]=a,t++,t>e&&(t=0,o=r,r=Object.create(null))},"update");return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}},"createLruCache"),yg=[],kg=vh((e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),"createResultObject"),xg=vh(e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=vh(e=>{const t=[];let r,o=0,n=0,a=0;const i=e.length;for(let d=0;d<i;d++){const i=e[d];if(0===o&&0===n){if(":"===i){t.push(e.slice(a,d)),a=d+1;continue}if("/"===i){r=d;continue}}"["===i?o++:"]"===i?o--:"("===i?n++:")"===i&&n--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;return s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0),kg(t,c,l,r&&r>a?r-a:void 0)},"parseClassName");if(t){const e=t+":",r=o;o=vh(t=>t.startsWith(e)?r(t.slice(e.length)):kg(yg,!1,t,void 0,!0),"parseClassName")}if(r){const e=o;o=vh(t=>r({className:t,parseClassName:e}),"parseClassName")}return o},"createParseClassName"),_g=vh(e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let o=[];for(let n=0;n<e.length;n++){const a=e[n],i="["===a[0],s=t.has(a);i||s?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},"createSortModifiers"),Cg=vh(e=>({cache:wg(e.cacheSize),parseClassName:xg(e),sortModifiers:_g(e),...sg(e)}),"createConfigUtils"),zg=/\s+/,Sg=vh((e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],s=e.trim().split(zg);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:h}=r(e);if(t){l=e+(l.length>0?" "+l:l);continue}let g=!!h,f=o(g?p.substring(0,h):p);if(!f){if(!g){l=e+(l.length>0?" "+l:l);continue}if(f=o(p),!f){l=e+(l.length>0?" "+l:l);continue}g=!1}const m=0===d.length?"":1===d.length?d[0]:a(d).join(":"),v=u?m+"!":m,b=v+f;if(i.indexOf(b)>-1)continue;i.push(b);const w=n(f,g);for(let r=0;r<w.length;++r){const e=w[r];i.push(v+e)}l=e+(l.length>0?" "+l:l)}return l},"mergeClassList"),Ig=vh((...e)=>{let t,r,o=0,n="";for(;o<e.length;)(t=e[o++])&&(r=Ag(t))&&(n&&(n+=" "),n+=r);return n},"twJoin"),Ag=vh(e=>{if("string"==typeof e)return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ag(e[o]))&&(r&&(r+=" "),r+=t);return r},"toValue"),Eg=vh((e,...t)=>{let r,o,n,a;const i=vh(i=>{const l=t.reduce((e,t)=>t(e),e());return r=Cg(l),o=r.cache.get,n=r.cache.set,a=s,s(i)},"initTailwindMerge"),s=vh(e=>{const t=o(e);if(t)return t;const a=Sg(e,r);return n(e,a),a},"tailwindMerge");return a=i,(...e)=>a(Ig(...e))},"createTailwindMerge"),Tg=[],Mg=vh(e=>{const t=vh(t=>t[e]||Tg,"themeGetter");return t.isThemeGetter=!0,t},"fromTheme"),jg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$g=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Og=/^\d+\/\d+$/,Pg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ng=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zg=vh(e=>Og.test(e),"isFraction"),Ug=vh(e=>!!e&&!Number.isNaN(Number(e)),"isNumber"),Bg=vh(e=>!!e&&Number.isInteger(Number(e)),"isInteger"),Vg=vh(e=>e.endsWith("%")&&Ug(e.slice(0,-1)),"isPercent"),Rg=vh(e=>Pg.test(e),"isTshirtSize"),Wg=vh(()=>!0,"isAny"),Hg=vh(e=>Ng.test(e)&&!Lg.test(e),"isLengthOnly"),Gg=vh(()=>!1,"isNever"),Jg=vh(e=>Dg.test(e),"isShadow"),qg=vh(e=>Fg.test(e),"isImage"),Kg=vh(e=>!Qg(e)&&!sf(e),"isAnyNonArbitrary"),Yg=vh(e=>ff(e,wf,Gg),"isArbitrarySize"),Qg=vh(e=>jg.test(e),"isArbitraryValue"),Xg=vh(e=>ff(e,yf,Hg),"isArbitraryLength"),ef=vh(e=>ff(e,kf,Ug),"isArbitraryNumber"),tf=vh(e=>ff(e,_f,Wg),"isArbitraryWeight"),rf=vh(e=>ff(e,xf,Gg),"isArbitraryFamilyName"),of=vh(e=>ff(e,vf,Gg),"isArbitraryPosition"),nf=vh(e=>ff(e,bf,qg),"isArbitraryImage"),af=vh(e=>ff(e,Cf,Jg),"isArbitraryShadow"),sf=vh(e=>$g.test(e),"isArbitraryVariable"),lf=vh(e=>mf(e,yf),"isArbitraryVariableLength"),cf=vh(e=>mf(e,xf),"isArbitraryVariableFamilyName"),df=vh(e=>mf(e,vf),"isArbitraryVariablePosition"),uf=vh(e=>mf(e,wf),"isArbitraryVariableSize"),pf=vh(e=>mf(e,bf),"isArbitraryVariableImage"),hf=vh(e=>mf(e,Cf,!0),"isArbitraryVariableShadow"),gf=vh(e=>mf(e,_f,!0),"isArbitraryVariableWeight"),ff=vh((e,t,r)=>{const o=jg.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},"getIsArbitraryValue"),mf=vh((e,t,r=!1)=>{const o=$g.exec(e);return!!o&&(o[1]?t(o[1]):r)},"getIsArbitraryVariable"),vf=vh(e=>"position"===e||"percentage"===e,"isLabelPosition"),bf=vh(e=>"image"===e||"url"===e,"isLabelImage"),wf=vh(e=>"length"===e||"size"===e||"bg-size"===e,"isLabelSize"),yf=vh(e=>"length"===e,"isLabelLength"),kf=vh(e=>"number"===e,"isLabelNumber"),xf=vh(e=>"family-name"===e,"isLabelFamilyName"),_f=vh(e=>"number"===e||"weight"===e,"isLabelWeight"),Cf=vh(e=>"shadow"===e,"isLabelShadow"),zf=Eg(vh(()=>{const e=Mg("color"),t=Mg("font"),r=Mg("text"),o=Mg("font-weight"),n=Mg("tracking"),a=Mg("leading"),i=Mg("breakpoint"),s=Mg("container"),l=Mg("spacing"),c=Mg("radius"),d=Mg("shadow"),u=Mg("inset-shadow"),p=Mg("text-shadow"),h=Mg("drop-shadow"),g=Mg("blur"),f=Mg("perspective"),m=Mg("aspect"),v=Mg("ease"),b=Mg("animate"),w=vh(()=>["auto","avoid","all","avoid-page","page","left","right","column"],"scaleBreak"),y=vh(()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],"scalePosition"),k=vh(()=>[...y(),sf,Qg],"scalePositionWithArbitrary"),x=vh(()=>["auto","hidden","clip","visible","scroll"],"scaleOverflow"),_=vh(()=>["auto","contain","none"],"scaleOverscroll"),C=vh(()=>[sf,Qg,l],"scaleUnambiguousSpacing"),z=vh(()=>[Zg,"full","auto",...C()],"scaleInset"),S=vh(()=>[Bg,"none","subgrid",sf,Qg],"scaleGridTemplateColsRows"),I=vh(()=>["auto",{span:["full",Bg,sf,Qg]},Bg,sf,Qg],"scaleGridColRowStartAndEnd"),A=vh(()=>[Bg,"auto",sf,Qg],"scaleGridColRowStartOrEnd"),E=vh(()=>["auto","min","max","fr",sf,Qg],"scaleGridAutoColsRows"),T=vh(()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],"scaleAlignPrimaryAxis"),M=vh(()=>["start","end","center","stretch","center-safe","end-safe"],"scaleAlignSecondaryAxis"),j=vh(()=>["auto",...C()],"scaleMargin"),$=vh(()=>[Zg,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],"scaleSizing"),O=vh(()=>[e,sf,Qg],"scaleColor"),P=vh(()=>[...y(),df,of,{position:[sf,Qg]}],"scaleBgPosition"),N=vh(()=>["no-repeat",{repeat:["","x","y","space","round"]}],"scaleBgRepeat"),L=vh(()=>["auto","cover","contain",uf,Yg,{size:[sf,Qg]}],"scaleBgSize"),D=vh(()=>[Vg,lf,Xg],"scaleGradientStopPosition"),F=vh(()=>["","none","full",c,sf,Qg],"scaleRadius"),Z=vh(()=>["",Ug,lf,Xg],"scaleBorderWidth"),U=vh(()=>["solid","dashed","dotted","double"],"scaleLineStyle"),B=vh(()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],"scaleBlendMode"),V=vh(()=>[Ug,Vg,df,of],"scaleMaskImagePosition"),R=vh(()=>["","none",g,sf,Qg],"scaleBlur"),W=vh(()=>["none",Ug,sf,Qg],"scaleRotate"),H=vh(()=>["none",Ug,sf,Qg],"scaleScale"),G=vh(()=>[Ug,sf,Qg],"scaleSkew"),J=vh(()=>[Zg,"full",...C()],"scaleTranslate");return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rg],breakpoint:[Rg],color:[Wg],container:[Rg],"drop-shadow":[Rg],ease:["in","out","in-out"],font:[Kg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rg],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rg],shadow:[Rg],spacing:["px",Ug],text:[Rg],"text-shadow":[Rg],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zg,Qg,sf,m]}],container:["container"],columns:[{columns:[Ug,Qg,sf,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Bg,"auto",sf,Qg]}],basis:[{basis:[Zg,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ug,Zg,"auto","initial","none",Qg]}],grow:[{grow:["",Ug,sf,Qg]}],shrink:[{shrink:["",Ug,sf,Qg]}],order:[{order:[Bg,"first","last","none",sf,Qg]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,lf,Xg]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,gf,tf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Vg,Qg]}],"font-family":[{font:[cf,rf,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,sf,Qg]}],"line-clamp":[{"line-clamp":[Ug,"none",sf,ef]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",sf,Qg]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",sf,Qg]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ug,"from-font","auto",sf,Xg]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Ug,"auto",sf,Qg]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",sf,Qg]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",sf,Qg]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bg,sf,Qg],radial:["",sf,Qg],conic:[Bg,sf,Qg]},pf,nf]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...U(),"hidden","none"]}],"divide-style":[{divide:[...U(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...U(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ug,sf,Qg]}],"outline-w":[{outline:["",Ug,lf,Xg]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,hf,af]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,hf,af]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Ug,Xg]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",p,hf,af]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Ug,sf,Qg]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ug]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[sf,Qg]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[Ug]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",sf,Qg]}],filter:[{filter:["","none",sf,Qg]}],blur:[{blur:R()}],brightness:[{brightness:[Ug,sf,Qg]}],contrast:[{contrast:[Ug,sf,Qg]}],"drop-shadow":[{"drop-shadow":["","none",h,hf,af]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Ug,sf,Qg]}],"hue-rotate":[{"hue-rotate":[Ug,sf,Qg]}],invert:[{invert:["",Ug,sf,Qg]}],saturate:[{saturate:[Ug,sf,Qg]}],sepia:[{sepia:["",Ug,sf,Qg]}],"backdrop-filter":[{"backdrop-filter":["","none",sf,Qg]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[Ug,sf,Qg]}],"backdrop-contrast":[{"backdrop-contrast":[Ug,sf,Qg]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ug,sf,Qg]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ug,sf,Qg]}],"backdrop-invert":[{"backdrop-invert":["",Ug,sf,Qg]}],"backdrop-opacity":[{"backdrop-opacity":[Ug,sf,Qg]}],"backdrop-saturate":[{"backdrop-saturate":[Ug,sf,Qg]}],"backdrop-sepia":[{"backdrop-sepia":["",Ug,sf,Qg]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",sf,Qg]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ug,"initial",sf,Qg]}],ease:[{ease:["linear","initial",v,sf,Qg]}],delay:[{delay:[Ug,sf,Qg]}],animate:[{animate:["none",b,sf,Qg]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,sf,Qg]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[sf,Qg,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",sf,Qg]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",sf,Qg]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Ug,lf,Xg,ef]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},"getDefaultConfig")),Sf={default:{solid:{base:"bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",input:"bg-white dark:bg-theme-800/50\n ring-theme-200 dark:ring-theme-600/70\n focus:ring-theme-600 focus:bg-white\n dark:focus:ring-theme-500 dark:focus:bg-theme-800\n focus-within:ring-theme-600 dark:focus-within:ring-theme-500\n text-theme-900 dark:text-theme-100\n placeholder:text-theme-400 dark:placeholder:text-theme-500",border:"border-theme-300/80 dark:border-theme-600",hover:"hover:border-theme-300 dark:hover:border-theme-500",icon:"text-theme-600 dark:text-theme-50"},ghost:{base:"bg-theme-50 dark:bg-theme-600/30 text-theme-700 dark:text-theme-50",border:"border-theme-100 dark:border-theme-800/20",hover:"hover:bg-theme-200 dark:hover:bg-theme-600/50 hover:border-theme-200 dark:hover:border-theme-600",icon:"text-theme-500 dark:text-theme-500"},outline:{base:"bg-transparent text-theme-700 dark:text-theme-50",border:"border-theme-300 dark:border-theme-400",hover:"hover:opacity-70",icon:"text-theme-700 dark:text-theme-300"},link:{base:"bg-transparent text-theme-600 dark:text-theme-50",border:"border-transparent",hover:"hover:opacity-70",icon:"text-theme-600 dark:text-theme-400"}},muted:{solid:{base:"bg-gray-100 dark:bg-gray-700/40 text-gray-900 dark:text-gray-50",input:"bg-white dark:bg-gray-800/50\n ring-gray-200 dark:ring-gray-600/70\n focus:ring-gray-600 focus:bg-white\n dark:focus:ring-gray-500 dark:focus:bg-gray-800\n focus-within:ring-gray-600 dark:focus-within:ring-gray-500\n text-gray-900 dark:text-gray-100\n placeholder:text-gray-400 dark:placeholder:text-gray-500",border:"border-gray-300/80 dark:border-gray-600",hover:"hover:border-gray-300 dark:hover:border-gray-500",icon:"text-gray-600 dark:text-gray-50"},ghost:{base:"bg-gray-100 dark:bg-gray-600/30 text-gray-700 dark:text-gray-50",border:"border-gray-100 dark:border-gray-800/20",hover:"hover:bg-gray-200 dark:hover:bg-gray-600/50 hover:border-gray-200 dark:hover:border-gray-600",icon:"text-gray-500 dark:text-gray-500"},outline:{base:"bg-transparent text-gray-700 dark:text-gray-50",border:"border-gray-500 dark:border-gray-400",hover:"hover:opacity-70",icon:"text-gray-700 dark:text-gray-300"},link:{base:"bg-transparent text-gray-600 dark:text-gray-50",border:"border-transparent",hover:"hover:opacity-70",icon:"text-gray-600 dark:text-gray-400"}},overlay:{solid:{base:"bg-white/100 text-black backdrop-blur-sm shadow-sm mix-blend-overlay [text-shadow:_0_1px_1px_rgb(255_255_255_/_100%)]",border:"border-white/100",input:"bg-white/10 ring-white\n focus:ring-white/90 focus:bg-white/20\n dark:focus:ring-white/70\n text-white\n placeholder:text-white/60",hover:"hover:bg-white/70 ",icon:"text-black"},ghost:{base:"bg-white/70 text-black backdrop-blur-sm shadow-sm mix-blend-overlay [text-shadow:_0_1px_1px_rgb(255_255_255_/_100%)]",border:"border-white/100",hover:"hover:bg-white/70 hover:border-white/90",icon:"text-black"},outline:{base:"bg-white/10 text-white backdrop-blur-sm shadow-sm [text-shadow:_0_0.5px_0_rgb(0_0_0_/_40%)]",border:"border-white",hover:"hover:border-white/80",icon:"text-white"},link:{base:"bg-transparent text-white [text-shadow:_0_0.5px_0_rgb(0_0_0_/_40%)]",border:"border-transparent",hover:"hover:opacity-70",icon:"text-white"}},primary:{solid:{base:"bg-theme-900 dark:bg-theme-100 text-white dark:text-theme-900",border:"border-theme-900 dark:border-theme-200",input:"bg-theme-50 dark:bg-theme-800/20\n ring-theme-900 dark:ring-theme-300\n focus:ring-theme-700 focus:bg-theme-50/50\n dark:focus:ring-theme-400 dark:focus:bg-theme-800/40\n text-theme-900 dark:text-theme-100\n placeholder:text-theme-400 dark:placeholder:text-theme-500",hover:"hover:bg-theme-800 dark:hover:bg-theme-200",icon:"text-white dark:text-theme-900"},ghost:{base:"bg-theme-100 dark:bg-theme-800 text-theme-900 dark:text-theme-100",border:"border-theme-200 dark:border-theme-700",hover:"hover:bg-theme-200 dark:hover:bg-theme-700",icon:"text-theme-700 dark:text-theme-300"},outline:{base:"bg-transparent text-theme-900 dark:text-theme-100",border:"border-theme-900 dark:border-theme-300",hover:"hover:bg-theme-100 dark:hover:bg-theme-800",icon:"text-theme-900 dark:text-theme-100"},link:{base:"bg-transparent text-theme-900 dark:text-theme-100",border:"border-transparent",hover:"hover:opacity-70",icon:"text-theme-900 dark:text-theme-100"}},theme:{solid:{base:"bg-theme-500 dark:bg-theme-600/70 text-theme-0 dark:text-theme-0",border:"border-theme-600/80 dark:border-theme-600",hover:"hover:bg-theme-600 dark:hover:bg-theme-800",icon:"text-theme-50 dark:text-theme-50"},ghost:{base:"bg-theme-100 dark:bg-theme-600/50 text-theme-900 dark:text-theme-100",border:"border-theme-100 dark:border-theme-800/20",hover:"hover:bg-theme-200 dark:hover:bg-theme-600/40 hover:border-theme-200 dark:hover:border-theme-600",icon:"text-theme-500 dark:text-theme-500"},outline:{base:"bg-transparent text-theme-500 dark:text-theme-300",border:"border-theme-500 dark:border-theme-400",hover:"hover:bg-theme-500/10 dark:hover:bg-theme-400/20",icon:"text-theme-500 dark:text-theme-300"},link:{base:"bg-transparent text-theme-600 dark:text-theme-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-theme-600 dark:text-theme-400"}},green:{solid:{base:"bg-green-600 dark:bg-green-700/70 text-green-50 dark:text-green-50",border:"border-green-600 dark:border-green-600",hover:"hover:bg-green-700 dark:hover:bg-green-800",icon:"text-green-50 dark:text-green-50"},ghost:{base:"bg-green-100 dark:bg-green-800/20 text-green-900 dark:text-green-100",border:"border-green-100 dark:border-green-800/20",hover:"hover:bg-green-200 dark:hover:bg-green-800/40 hover:border-green-200 dark:hover:border-green-700",icon:"text-green-500 dark:text-green-500"},outline:{base:"bg-transparent text-green-500 dark:text-green-50",border:"border-green-500 dark:border-green-600",hover:"hover:bg-green-500/10 dark:hover:bg-green-400/10",icon:"text-green-500 dark:text-green-50"},link:{base:"bg-transparent text-green-600 dark:text-green-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-green-600 dark:text-green-400"}},orange:{solid:{base:"bg-orange-500 dark:bg-orange-700/70 text-orange-50 dark:text-orange-50",border:"border-orange-700 dark:border-orange-600",hover:"hover:bg-orange-700 dark:hover:bg-orange-800",icon:"text-orange-50 dark:text-orange-50"},ghost:{base:"bg-orange-100 dark:bg-orange-800/20 text-orange-900 dark:text-orange-100",border:"border-orange-100 dark:border-orange-800/20",hover:"hover:bg-orange-200 dark:hover:bg-orange-800/40 hover:border-orange-200 dark:hover:border-orange-700",icon:"text-orange-500 dark:text-orange-500"},outline:{base:"bg-transparent text-orange-500 dark:text-orange-50",border:"border-orange-500 dark:border-orange-600",hover:"hover:bg-orange-500/10 dark:hover:bg-orange-400/10",icon:"text-orange-500 dark:text-orange-50"},link:{base:"bg-transparent text-orange-600 dark:text-orange-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-orange-600 dark:text-orange-400"}},rose:{solid:{base:"bg-rose-500 dark:bg-rose-700/70 text-rose-50 dark:text-rose-50",border:"border-rose-600/80 dark:border-rose-600",hover:"hover:bg-rose-600 dark:hover:bg-rose-800",icon:"text-rose-50 dark:text-rose-50"},ghost:{base:"bg-rose-100 dark:bg-rose-800/20 text-rose-900 dark:text-rose-100",border:"border-rose-100 dark:border-rose-800/20",hover:"hover:bg-rose-200 dark:hover:bg-rose-800/40 hover:border-rose-200 dark:hover:border-rose-700",icon:"text-rose-500 dark:text-rose-500"},outline:{base:"bg-transparent text-rose-500 dark:text-rose-50",border:"border-rose-500 dark:border-rose-600",hover:"hover:bg-rose-500/10 dark:hover:bg-rose-400/10",icon:"text-rose-500 dark:text-rose-50"},link:{base:"bg-transparent text-rose-600 dark:text-rose-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-rose-600 dark:text-rose-400"}},indigo:{solid:{base:"bg-indigo-500 dark:bg-indigo-700/70 text-indigo-50 dark:text-indigo-50",border:"border-indigo-600/80 dark:border-indigo-600",hover:"hover:bg-indigo-600 dark:hover:bg-indigo-800",icon:"text-indigo-50 dark:text-indigo-50"},ghost:{base:"bg-indigo-100 dark:bg-indigo-800/20 text-indigo-900 dark:text-indigo-100",border:"border-indigo-100 dark:border-indigo-800/20",hover:"hover:bg-indigo-200 dark:hover:bg-indigo-800/40 hover:border-indigo-200 dark:hover:border-indigo-700",icon:"text-indigo-500 dark:text-indigo-500"},outline:{base:"bg-transparent text-indigo-500 dark:text-indigo-50",border:"border-indigo-500 dark:border-indigo-600",hover:"hover:bg-indigo-500/10 dark:hover:bg-indigo-400/10",icon:"text-indigo-500 dark:text-indigo-50"},link:{base:"bg-transparent text-indigo-600 dark:text-indigo-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-indigo-600 dark:text-indigo-400"}},red:{solid:{base:"bg-red-500 dark:bg-red-700/70 text-red-50 dark:text-red-50",border:"border-red-600/80 dark:border-red-600",hover:"hover:bg-red-600 dark:hover:bg-red-800",icon:"text-red-50 dark:text-red-50"},ghost:{base:"bg-red-100 dark:bg-red-800/20 text-red-900 dark:text-red-100",border:"border-red-100 dark:border-red-800/20",hover:"hover:bg-red-200 dark:hover:bg-red-800/40 hover:border-red-200 dark:hover:border-red-700",icon:"text-red-500 dark:text-red-500"},outline:{base:"bg-transparent text-red-500 dark:text-red-50",border:"border-red-500 dark:border-red-600",hover:"hover:bg-red-500/10 dark:hover:bg-red-400/10",icon:"text-red-500 dark:text-red-50"},link:{base:"bg-transparent text-red-600 dark:text-red-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-red-600 dark:text-red-400"}}},If={key:0,class:"absolute inset-0 flex items-center justify-center"},Af=Zl({__name:"FButton",props:{theme:{default:"default"},design:{default:"solid"},size:{default:"md"},rounding:{default:"full"},href:{},icon:{},iconAfter:{},tag:{default:"button"},loading:{type:Boolean,default:!1},class:{default:""}},setup(e){const t=tu(()=>"string"==typeof e.icon?e.icon:e.icon?.className),r=tu(()=>"string"==typeof e.iconAfter?e.iconAfter:e.iconAfter?.className),o=tu(()=>e.href?"a":e.tag),n=tu(()=>({xxs:"size-2.5",xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6"}[e.size])),a=tu(()=>Sf[e.theme]?.[e.design]||Sf.default[e.design]||{base:"",border:"",hover:"",icon:""}),i=tu(()=>{const t="link"===e.design?"!px-1":"",r=a.value,o=["relative inline-flex items-center justify-center gap-2 font-medium transition-all duration-200 focus:outline-none active:opacity-80 cursor-pointer",{xxs:"px-2 py-0.5 text-[10px]",xs:"px-3 py-1 text-[11px]",sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",xl:"px-8 py-4 text-base"}[e.size],t,{md:"rounded-md",lg:"rounded-lg","2xl":"rounded-2xl",full:"rounded-full"}[e.rounding],r.base,`border ${r.border}`,r.hover].filter(Boolean).join(" ");return zf(o,e.class)}),s=tu(()=>({design:a.value.icon||""}));return(a,l)=>(yd(),zd(uc(o.value),{href:e.href,class:Ya(i.value)},{default:al(()=>[e.loading?(yd(),Cd("div",If,[Md(kh,{class:Ya(n.value)},null,8,["class"])])):Pd("",!0),Td("span",{class:Ya(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap",e.loading?"opacity-0":"opacity-100"])},[t.value?(yd(),Cd("span",{key:0,class:Ya(["flex items-center size-[1.1em] mt-[-.07em]",[t.value,s.value.design]])},null,2)):Pd("",!0),gc(a.$slots,"default"),r.value?(yd(),Cd("span",{key:1,class:Ya(["flex items-center size-[1.1em] mt-[-.07em]",[r.value,s.value.design]])},null,2)):Pd("",!0)],2)]),_:3},8,["href","class"]))}}),Ef={class:"flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative"},Tf={class:"flex-1 space-y-6 pb-12"},Mf={key:0,class:"text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"},jf=["innerHTML"],$f={key:1,class:"bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"},Of={class:"text-sm text-white/70 leading-relaxed"},Pf={key:2,class:"space-y-3"},Nf={key:3,class:"space-y-3"},Lf={class:"grid grid-cols-2 gap-3"},Df=Zl({__name:"ElAgentAbout",props:{agent:{}},setup:e=>(t,r)=>(yd(),Cd("div",Ef,[Md(tg,{agent:e.agent},null,8,["agent"]),Td("div",Tf,[e.agent.summary?(yd(),Cd("div",Mf,[r[0]||(r[0]=Td("h3",{class:"font-medium text-white/50"}," About ",-1)),Td("div",{class:"text-white/70 leading-relaxed",innerHTML:e.agent.summary},null,8,jf)])):Pd("",!0),"company"===e.agent.entityType?(yd(),Cd("div",$f,[r[1]||(r[1]=Td("h3",{class:"text-sm font-medium text-white/90 mb-2"}," Company Info ",-1)),Td("p",Of," This is a company agent representing "+oi(e.agent.name)+". ",1)])):Pd("",!0),e.agent.email?(yd(),Cd("div",Pf,[r[3]||(r[3]=Td("h3",{class:"text-sm font-medium text-white/90"}," Contact ",-1)),Md(Af,{design:"ghost",theme:"default",size:"sm",class:"bg-white/5 hover:bg-white/10 border border-white/10 text-white/80 text-sm justify-start h-10 w-full",icon:"i-heroicons-envelope",href:`mailto:${e.agent.email}`,target:"_blank"},{default:al(()=>[...r[2]||(r[2]=[Od(" Email ",-1)])]),_:1},8,["href"])])):Pd("",!0),e.agent.accounts&&e.agent.accounts.length>0?(yd(),Cd("div",Nf,[r[4]||(r[4]=Td("h3",{class:"text-sm font-medium text-white/90"}," Links ",-1)),Td("div",Lf,[(yd(!0),Cd(gd,null,hc(e.agent.accounts,e=>(yd(),zd(Af,{key:`${e.platform}-${e.handle}`,design:"ghost",theme:"default",size:"md",class:"bg-white/10 hover:bg-white/20 border border-white/20 text-white/80",icon:Ts(fh)[e.platform].icon,href:Ts(fh)[e.platform].getUrl(e.handle),target:"_blank"},{default:al(()=>[Od(oi(Ts(fh)[e.platform].label),1)]),_:2},1032,["icon","href"]))),128))])])):Pd("",!0)])]))}),Ff={class:"flex flex-col h-full relative"},Zf={class:"pb-4"},Uf={key:0,class:"text-white/60 py-16 flex flex-col items-center justify-center gap-3 text-sm"},Bf={key:1,class:"text-theme-600 py-16 flex flex-col items-center justify-center gap-2 text-sm"},Vf={key:0,class:"flex-shrink-0 size-8"},Rf=["src","alt"],Wf={class:"max-w-[70%]"},Hf={class:"text-sm leading-[1.5] whitespace-pre-wrap break-words"},Gf={key:0,class:"flex gap-2 justify-start items-end mb-4"},Jf={class:"flex-shrink-0"},qf=["src","alt"],Kf={class:"flex-shrink-0 pt-6 pb-2"},Yf=["placeholder","disabled"],Qf=Zl({__name:"ElAgentChat",props:{agentController:{},agent:{}},setup(e){const t=Ss(""),r=Ss(),o=Ss(),n=tu(()=>Ah(e.agent));function a(e,t){const r=e[t],o=e[t+1];return!o||o.sender!==r.sender}async function i(){if(!t.value.trim()||!e.agentController||!e.agentController.textState.value.isConnected)return;const r=t.value;t.value="",o.value&&(o.value.style.height="auto",o.value.focus());try{await e.agentController.sendChatMessage(r),l()}catch(n){}}function s(e){"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),i())}function l(){r.value&&qs(()=>{const e=r.value;e.scrollTop=e.scrollHeight})}function c(){if(!o.value)return;o.value.style.height="auto";const e=Math.min(o.value.scrollHeight,150);o.value.style.height=`${e}px`}vh(a,"shouldShowAvatar"),tc(async()=>{if(e.agentController&&!e.agentController.textState.value.isConnected)try{await e.agentController.startTextConversation()}catch(t){}}),vh(i,"sendMessage"),vh(s,"handleKeydown"),vh(l,"scrollToBottom"),vh(c,"adjustTextareaHeight"),dl(t,()=>{qs(()=>c())});const d=tu(()=>{const t=e.agentController?.textState.value;return"disconnected"===t?.connectionStatus&&!!t?.error}),u=tu(()=>{const t=e.agentController?.textState.value;return"connected"!==t?.connectionStatus&&!t?.error}),p=tu(()=>d.value?"Agent is offline":u.value?"Connecting...":"Message"),h=tu(()=>!e.agentController?.textState.value.isConnected);return dl(()=>e.agentController?.sharedMessages.value,e=>{e&&e.length>0&&qs(()=>l())},{immediate:!0,deep:!0}),(i,l)=>(yd(),Cd("div",Ff,[Td("div",Zf,[Md(tg,{agent:e.agent},null,8,["agent"])]),d.value?(yd(),Cd("div",Uf,[l[1]||(l[1]=Td("i",{class:"i-heroicons-cloud-arrow-down size-8 text-white/40"},null,-1)),Td("span",null,oi(e.agentController?.textState.value.error),1)])):u.value?(yd(),Cd("div",Bf,[Md(kh,{class:"size-4"})])):Pd("",!0),Td("div",{ref_key:"messagesContainer",ref:r,class:"flex-1 overflow-y-auto overflow-x-hidden py-8 space-y-1 min-h-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"},[(yd(!0),Cd(gd,null,hc(e.agentController?.sharedMessages.value.filter(e=>"system"!==e.sender)??[],(t,r)=>(yd(),Cd("div",{key:t.id,class:Ya(["flex gap-2 items-end",{"justify-end":"user"===t.sender,"justify-start":"agent"===t.sender,"mb-4":a(e.agentController?.sharedMessages.value.filter(e=>"system"!==e.sender)??[],r)}])},["agent"===t.sender?(yd(),Cd("div",Vf,[a(e.agentController?.sharedMessages.value.filter(e=>"system"!==e.sender)??[],r)?(yd(),Cd("img",{key:0,src:n.value,alt:e.agent.name,class:"size-7 rounded-full object-cover"},null,8,Rf)):Pd("",!0)])):Pd("",!0),Td("div",Wf,[Td("div",{class:Ya(["rounded-2xl px-3.5 py-1.5 backdrop-blur-sm","user"===t.sender?"bg-primary-500/80 text-white":"bg-white/15 text-white/95"])},[Td("p",Hf,oi(t.text),1)],2)])],2))),128)),e.agentController?.textState.value.isThinking?(yd(),Cd("div",Gf,[Td("div",Jf,[Td("img",{src:n.value,alt:e.agent.name,class:"size-8 rounded-full object-cover"},null,8,qf)]),l[2]||(l[2]=Td("div",{class:"rounded-2xl px-4 py-2.5 bg-white/15 backdrop-blur-sm flex items-center"},[Td("i",{class:"i-svg-spinners-3-dots-fade size-6 text-white/70"})],-1))])):Pd("",!0)],512),Td("div",Kf,[il(Td("textarea",{ref_key:"textarea",ref:o,"onUpdate:modelValue":l[0]||(l[0]=e=>t.value=e),rows:"1",placeholder:p.value,disabled:h.value,style:{"font-size":"16px",resize:"none"},class:"w-full bg-white/10 backdrop-blur-sm border border-white/20 rounded-3xl px-5 py-3 text-white placeholder-white/50 focus:outline-none focus:border-white/40 disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",onKeydown:s},null,40,Yf),[[ip,t.value]]),l[3]||(l[3]=Td("div",{class:"text-[10px] text-white/40 text-center mt-2"}," Press Enter to send, Shift+Enter for new line ",-1))])]))}}),Xf={class:"flex flex-col items-center text-center gap-4"},em={class:"relative flex-shrink-0"},tm={class:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white"},rm=["src","alt"],om={class:"min-w-0"},nm={class:"text-3xl font-light text-white mb-2 truncate"},am={class:"text-base font-light text-white/60 line-clamp-1"},im=Zl({__name:"ElAgentHeader",props:{agent:{}},setup(e){function t(){return e.agent.avatar?.src?e.agent.avatar.src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+"}return vh(t,"getAvatarSrc"),(r,o)=>(yd(),Cd("div",Xf,[Td("div",em,[Td("div",tm,[Td("img",{src:t(),alt:e.agent.name,class:"w-full h-full object-cover",onError:o[0]||(o[0]=(...e)=>Ts(Th)&&Ts(Th)(...e))},null,40,rm)]),o[1]||(o[1]=Td("div",{class:"absolute top-1.5 right-1.5"},[Td("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}}),Td("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white"})],-1))]),Td("div",om,[Td("h1",nm,oi(e.agent.name),1),Td("p",am,oi(e.agent.title),1)])]))}}),sm={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},lm=Zl({name:"SelfSidebarClose",__name:"AgentSidebarClose",emits:["click"],setup(e){const t=Ss(!1);return tc(()=>{setTimeout(()=>{t.value=!0},100)}),(e,r)=>(yd(),Cd("a",{class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:r[0]||(r[0]=t=>e.$emit("click",t))},[r[1]||(r[1]=Td("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),Td("span",sm,[Td("span",{class:Ya(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),Td("span",{class:Ya(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])]))}}),cm={key:0,class:"px-9 pt-12 pb-4"},dm={class:"text-base font-medium text-theme-400"},um={key:1,class:"px-4 pb-8 border-b border-white/10"},pm=["disabled","onClick"],hm={class:"flex items-center gap-3"},gm={class:"flex-1"},fm={key:0,class:"text-xs text-white/50 mt-0.5"},mm={class:"p-6"},vm=Zl({name:"ElSidebar",inheritAttrs:!1,__name:"ElSidebar",props:{modelValue:{type:Boolean},items:{},position:{},title:{},widthClasses:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,n=r.position||"left",a=r.widthClasses||"w-[80%] max-w-[300px]",i=tu({get:vh(()=>r.modelValue,"get"),set:vh(e=>o("update:modelValue",e),"set")}),s=tu(()=>r.items.filter(e=>!e.isHidden));function l(e){e.isDisabled||(e.onClick?e.onClick({item:e,event:new MouseEvent("click")}):e.href&&(e.href.includes("http")?window.open(e.href,e.target||"_self")?.focus():window.location.href=e.href),i.value=!1)}vh(l,"handleItemClick");const c=tu(()=>"left"===n?{enter:"-translate-x-full",leave:"-translate-x-full",position:"justify-start",closeButton:"-right-16"}:{enter:"translate-x-full",leave:"translate-x-full",position:"justify-end",closeButton:"-left-16"});return(t,r)=>(yd(),Cd(gd,null,[Md(gu,{"enter-active-class":"transition-opacity duration-300 ease-out","leave-active-class":"transition-opacity duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:al(()=>[i.value?(yd(),Cd("div",{key:0,class:"absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:r[0]||(r[0]=e=>i.value=!1)})):Pd("",!0)]),_:1}),Md(gu,{"enter-active-class":"transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":c.value.enter,"enter-to-class":"translate-x-0","leave-from-class":"translate-x-0","leave-to-class":c.value.leave},{default:al(()=>[i.value?(yd(),Cd("div",{key:0,class:Ya(["absolute inset-0 z-50 flex",c.value.position]),onClick:r[3]||(r[3]=e=>i.value=!1)},[Td("div",{class:Ya(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center",Ts(a)]),onClick:r[2]||(r[2]=cp(()=>{},["stop"]))},[Md(lm,{class:Ya(["absolute top-4 z-10 text-white",c.value.closeButton]),onClick:r[1]||(r[1]=e=>i.value=!1)},null,8,["class"]),e.title?(yd(),Cd("div",cm,[Td("h3",dm,oi(e.title),1)])):Pd("",!0),t.$slots.header?(yd(),Cd("div",um,[gc(t.$slots,"header")])):Pd("",!0),Td("div",{class:Ya(["flex-1 p-6 space-y-2 overflow-y-auto",{"pt-6":!e.title&&!t.$slots.header,"pt-4":e.title||t.$slots.header}])},[Md(Ku,{"enter-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":"left"===Ts(n)?"-translate-x-4 opacity-0":"translate-x-4 opacity-0","enter-to-class":"translate-x-0 opacity-100","leave-from-class":"translate-x-0 opacity-100","leave-to-class":"left"===Ts(n)?"-translate-x-4 opacity-0":"translate-x-4 opacity-0"},{default:al(()=>[(yd(!0),Cd(gd,null,hc(s.value,(e,t)=>(yd(),Cd("button",{key:e.key||e.label||t,style:Ha({transitionDelay:40*t+"ms"}),class:Ya(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group",[e.isActive?"bg-primary-500/20 border border-primary-500/40":"hover:bg-white/10",e.isDisabled&&"opacity-50 cursor-not-allowed"]]),disabled:e.isDisabled,onClick:vh(t=>l(e),"onClick")},[Td("div",hm,[e.icon?.src?(yd(),Cd("i",{key:0,class:Ya(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110",[e.icon.src,e.isActive?"text-primary-400":"text-white/70 group-hover:text-white"]])},null,2)):Pd("",!0),Td("div",gm,[Td("div",{class:Ya(["font-medium text-sm",e.isActive?"text-primary-300":"text-white"])},oi(e.label),3),e.subLabel?(yd(),Cd("div",fm,oi(e.subLabel),1)):Pd("",!0)])])],14,pm))),128))]),_:1},8,["enter-from-class","leave-to-class"])],2),Td("div",mm,[gc(t.$slots,"footer",{},()=>[r[4]||(r[4]=Td("div",{class:"text-center"},[Td("p",{class:"text-[10px] text-white/40 font-sans"},[Od(" AI Agent by "),Td("a",{href:"https://www.pagelines.com",target:"_blank",class:"text-white/60 hover:text-white/80 transition-colors"},"PageLines")])],-1))])])],2)],2)):Pd("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],64))}}),bm=Zl({name:"AgentModeSidebar",__name:"ElAgentModeSidebar",props:{modelValue:{type:Boolean},agentController:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,n=tu({get:vh(()=>r.modelValue,"get"),set:vh(e=>o("update:modelValue",e),"set")}),a=tu(()=>r.agentController?.agentMode?.value??"self"),i=tu(()=>Ch.map(e=>({key:e.mode,icon:{src:e.icon},label:e.label,isActive:a.value===e.mode,onClick:vh(()=>{r.agentController?.setMode(e.mode)},"onClick")})));return(e,t)=>(yd(),zd(vm,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),items:i.value,position:"right",title:"Mode","width-classes":"w-[80%] max-w-[255px]"},null,8,["modelValue","items"]))}}),wm=Zl({name:"AgentSidebar",__name:"ElAgentSidebar",props:{modelValue:{type:Boolean},agent:{},sdk:{},title:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,n=tu({get:vh(()=>r.modelValue,"get"),set:vh(e=>o("update:modelValue",e),"set")}),a=tu(()=>{const e=[{key:"share",icon:{src:"i-tabler-share"},label:"Share This Digital Agent",onClick:vh(()=>{const e=`${window.location.origin}/@${r.agent.handle||r.agent.agentId}`;navigator.clipboard.writeText(e)},"onClick")},{key:"profile",icon:{src:"i-tabler-user"},label:"Visit Full Profile",onClick:vh(()=>{window.open(`/@${r.agent.handle||r.agent.agentId}`,"_blank")},"onClick")},{key:"create",icon:{src:"i-tabler-sparkles"},label:"Create Your Own",onClick:vh(()=>{window.open("/auth","_blank")},"onClick")}];return r.sdk.activeUser.value&&e.push({key:"logout",icon:{src:"i-tabler-logout"},label:"Logout",onClick:vh(async()=>{await r.sdk.logout()},"onClick")}),e});return(t,r)=>(yd(),zd(vm,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),items:a.value,position:"left",title:e.title||"Menu"},null,8,["modelValue","items","title"]))}}),ym={key:0,class:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"},km=["data-quality"],xm={class:"text-sm"},_m={key:0,class:"flex-1 basis-0 flex justify-end"},Cm={key:0,class:"h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/agent:px-6 max-w-md mx-auto w-full"},zm={class:"flex-1 basis-0 flex flex-col justify-start pt-8 gap-7"},Sm={key:0,class:"flex items-center justify-center gap-3"},Im=["href"],Am={key:1,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"},Em={class:"max-w-md mx-auto"},Tm={key:2,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"},Mm={class:"flex-1 min-h-0 max-w-md mx-auto w-full"},jm={key:2,class:"bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"},$m={class:"text-center max-w-md space-y-4"},Om={class:"text-sm text-white/70 leading-relaxed"},Pm={key:3,class:"bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"},Nm=Zl({__name:"AgentChat",props:{sdk:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean,default:!1},isActive:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},theme:{default:"green"},requireAuth:{type:Boolean,default:!1}},emits:["close","error"],setup(e,{emit:t}){const r=t,o=Is(),n=Ss(!1),a=Ss(!1),i=Ss(),s=Ss(),l=tu(()=>o.value?.agentMode?.value??"self"),c=tu(()=>void 0!==e.sdk.activeUser.value),d=tu(()=>Ch.find(e=>e.mode===l.value));function u(){o.value&&o.value.destroy();try{o.value=new Oh({sdk:e.sdk,agent:e.agent,context:e.context,firstMessage:e.firstMessage})}catch(t){throw t}}function p(e){if(!s.value)return;const t=_h(e);Object.entries(t).forEach(([e,t])=>{s.value.style.setProperty(`--primary-${e}`,t)})}vh(u,"createAgentController"),vh(p,"applyTheme"),tc(()=>{try{u(),p(e.theme)}catch(t){const e=t instanceof Error?t.message:"Failed to initialize digital agent";i.value=e,r("error",e)}}),ac(()=>{o.value&&o.value.destroy()}),dl(()=>e.theme,e=>{p(e)}),dl(()=>e.sdk.activeUser.value,(e,t)=>{t&&!e&&o.value&&o.value.setMode("self")});const h=tu(()=>!(!e.agent.cover?.src||"low"!==e.agent.cover?.quality)||!(!e.agent.avatar?.src||"low"!==e.agent.avatar?.quality)),g=tu(()=>{const e=[h.value?"backdrop-blur-sm":""];return h.value&&"self"===l.value?e.push("from-black/80 via-black/60 to-black/80"):"self"===l.value?e.push("from-black/70 via-black/50 to-black/80"):e.push("from-black/90 via-black/90 to-black/100"),e.join(" ")}),f={phone:"i-heroicons-phone",calendar:"i-heroicons-calendar",question:"i-heroicons-question-mark-circle",message:"i-heroicons-chat-bubble-left-right",sparkles:"i-heroicons-sparkles"},m=tu(()=>jh({template:e.buttonText||"Talk to {name}",agent:e.agent})),v=tu(()=>f[e.buttonIcon||"phone"]||f.phone);return(t,u)=>(yd(),Cd("div",{ref_key:"rootElement",ref:s,key:Ts(Ah)(e.agent),class:"pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative","data-test":"agent-chat"},[e.loading?(yd(),Cd("div",ym,[Md(kh,{class:"text-white size-8"})])):e.agent&&!i.value?(yd(),Cd("div",{key:1,class:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:Ha({backgroundImage:`url(${Ts(Ah)(e.agent)||Ts(Eh)()})`}),"data-quality":e.agent.avatar?.quality||"none"},[Td("div",{class:Ya(["absolute inset-0 bg-gradient-to-br z-0",g.value])},null,2),Td("div",{class:Ya(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform",e.isActive?"opacity-100 translate-y-0":"opacity-0 translate-y-2"])},[Td("div",{class:Ya(["relative z-30 p-2","self"!==l.value?"backdrop-blur-lg":""])},[Td("div",{class:Ya(["flex items-center",e.hasClose?"":"justify-between"])},[Td("div",{class:Ya(e.hasClose?"flex-1 basis-0":"")},[Td("button",{class:"cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",onClick:u[0]||(u[0]=e=>n.value=!0)},[...u[6]||(u[6]=[Td("i",{class:"i-tabler-menu size-7"},null,-1)])])],2),Td("button",{class:Ya(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0",{"bg-white/10":a.value}]),onClick:u[1]||(u[1]=e=>a.value=!0)},[Td("i",{class:Ya([d.value?.icon,"size-4 opacity-60"])},null,2),Td("span",xm,oi(d.value?.label),1),u[7]||(u[7]=Td("i",{class:"i-tabler-chevron-down size-4"},null,-1))],2),e.hasClose?(yd(),Cd("div",_m,[Td("button",{class:"cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",onClick:u[2]||(u[2]=cp(e=>r("close","button"),["stop"]))},[...u[8]||(u[8]=[Td("i",{class:"size-6 i-tabler-x"},null,-1)])])])):Pd("",!0)],2)],2),"self"===l.value?(yd(),Cd("div",Cm,[u[9]||(u[9]=Td("div",{class:"flex-1 basis-0 mb-12"},null,-1)),Md(im,{agent:e.agent},null,8,["agent"]),Td("div",zm,[Md(Lh,{theme:"primary",size:"lg",class:"w-full",icon:v.value,"data-test":"voice-button",onClick:u[3]||(u[3]=e=>o.value?.setMode("talk"))},{default:al(()=>[Od(oi(m.value),1)]),_:1},8,["icon"]),e.agent.accounts&&e.agent.accounts.length>0?(yd(),Cd("div",Sm,[(yd(!0),Cd(gd,null,hc(e.agent.accounts.filter(e=>Ts(fh)[e.platform]),e=>(yd(),Cd("a",{key:`${e.platform}-${e.handle}`,href:Ts(fh)[e.platform].getUrl(e.handle),target:"_blank",class:"size-12 rounded-full text-white/60 hover:text-white hover:bg-white/5 border border-white/0 hover:border-white/10 flex items-center justify-center transition-all duration-200 hover:scale-105"},[Td("i",{class:Ya([Ts(fh)[e.platform].icon,"size-5"])},null,2)],8,Im))),128))])):Pd("",!0)])])):"talk"===l.value?(yd(),Cd("div",Am,[e.requireAuth&&!c.value?(yd(),zd(Kh,{key:0,sdk:e.sdk},null,8,["sdk"])):(yd(),Cd(gd,{key:1},[Td("div",null,[Td("div",Em,[Md(tg,{agent:e.agent},null,8,["agent"])])]),Md(Qf,{"agent-controller":o.value,agent:e.agent},null,8,["agent-controller","agent"])],64))])):(yd(),Cd("div",Tm,[Td("div",Mm,["chat"===l.value?(yd(),Cd(gd,{key:0},[e.requireAuth&&!c.value?(yd(),zd(Kh,{key:0,sdk:e.sdk},null,8,["sdk"])):(yd(),zd(Qf,{key:1,"agent-controller":o.value,agent:e.agent},null,8,["agent-controller","agent"]))],64)):"info"===l.value?(yd(),zd(Df,{key:1,agent:e.agent},null,8,["agent"])):Pd("",!0)])])),Td("div",{class:Ya(["relative z-20 text-center py-5 px-6","info"===l.value?"hidden":""])},[...u[10]||(u[10]=[Td("a",{href:"https://www.pagelines.com",class:"flex items-center justify-center gap-1.5 text-[10px] font-sans font-normal text-white/50 hover:text-white/70 transition-colors"},[Td("span",{class:""},"AI Agent\u2122"),Td("span",{class:"text-white/20"},"by"),Td("span",null,"PageLines")],-1)])],2)],2)],12,km)):i.value?(yd(),Cd("div",jm,[Td("div",$m,[u[11]||(u[11]=Td("div",{class:"flex justify-center"},[Td("div",{class:"rounded-full bg-red-500/20 flex items-center justify-center size-10"},[Td("i",{class:"i-tabler-alert-circle size-6 text-red-400"})])],-1)),u[12]||(u[12]=Td("h3",{class:"text-lg font-medium"}," Agent Error ",-1)),Td("p",Om,oi(i.value),1)])])):(yd(),Cd("div",Pm," There was an error loading the digital agent. Please try again later. ")),Md(wm,{modelValue:n.value,"onUpdate:modelValue":u[4]||(u[4]=e=>n.value=e),agent:e.agent,sdk:e.sdk,title:e.agent.name,"data-test":"agent-sidebar"},null,8,["modelValue","agent","sdk","title"]),Md(bm,{modelValue:a.value,"onUpdate:modelValue":u[5]||(u[5]=e=>a.value=e),"agent-controller":o.value,"data-test":"agent-mode-sidebar"},null,8,["modelValue","agent-controller"])]))}}),Lm={class:"agent-wrap"},Dm={key:0,class:"flex items-center justify-center h-full"},Fm=Zl({__name:"AgentWrap",props:{sdk:{},agent:{},handle:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},apiBase:{}},setup(e){const t=Lp("AgentWrap"),r=e,o=r.sdk||eh.getInstance({isDev:typeof window<"u"&&("localhost"===window.location.hostname||window.location.hostname.includes("127.0.0.1")),...r.apiBase&&{apiBase:r.apiBase}}),n=Ss(!r.agent),a=Ss(r.agent),i=Ss();return tc(async()=>{if(r.agent)return t.debug("Agent provided via props, skipping fetch",{agentId:r.agent.agentId,handle:r.agent.handle}),void(n.value=!1);if(!r.handle)return i.value="No handle or agent provided",t.warn("AgentWrap mounted without handle or agent",{propsReceived:{handle:r.handle,agent:r.agent,context:r.context,apiBase:r.apiBase},sdkState:{isDev:o.isDev,apiBase:o.apiBase}}),void(n.value=!1);try{n.value=!0,t.debug("Fetching public agent",{handle:r.handle});const e=await o.getPublicAgent({handle:r.handle});e?(a.value=e,t.debug("Successfully fetched public agent",{agentId:e.agentId,handle:e.handle}),e.agentId&&o.track({event:"view_profile",agentId:e.agentId,properties:{viewSource:"widget"}})):(i.value=o.error.value||"Agent not found",t.error("Failed to fetch public agent - no data returned",{handle:r.handle,sdkError:o.error.value,sdkState:{isDev:o.isDev,apiBase:o.apiBase,loading:o.loading.value}}))}catch(e){i.value=e instanceof Error?e.message:"Failed to fetch agent",t.error("Exception while fetching public agent",{handle:r.handle,error:e instanceof Error?{message:e.message,stack:e.stack}:e,sdkState:{isDev:o.isDev,apiBase:o.apiBase,error:o.error.value}})}finally{n.value=!1,a.value||t.debug("AgentWrap component will render empty (silent failure)",{state:{loading:n.value,hasAgent:!!a.value,error:i.value},props:{handle:r.handle,context:r.context,apiBase:r.apiBase},sdkState:{isDev:o.isDev,apiBase:o.apiBase,error:o.error.value}})}}),(t,r)=>(yd(),Cd("div",Lm,[n.value?(yd(),Cd("div",Dm,[...r[0]||(r[0]=[Td("div",{class:"animate-spin rounded-full size-6 border-b-2 border-white"},null,-1)])])):a.value?gc(t.$slots,"default",{key:1,sdk:Ts(o),agent:a.value,context:e.context,firstMessage:e.firstMessage,buttonText:e.buttonText,buttonIcon:e.buttonIcon,loading:n.value}):Pd("",!0)]))}}),Zm=Zl({__name:"AgentProvider",props:{sdk:{},agent:{},handle:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},apiBase:{}},emits:["close","error"],setup(e,{emit:t}){const r=e,o=t;return(e,t)=>(yd(),zd(Fm,Fd(r,{class:"agent-provider size-full relative"}),{default:al(e=>[Md(Nm,{sdk:e.sdk,agent:e.agent,context:e.context,"first-message":e.firstMessage,"button-text":r.buttonText,"button-icon":r.buttonIcon,"has-close":r.hasClose,"is-active":!0,class:"size-full",onClose:t[0]||(t[0]=e=>o("close",e)),onError:t[1]||(t[1]=e=>o("error",e))},null,8,["sdk","agent","context","first-message","button-text","button-icon","has-close"])]),_:1},16))}});var Um=Object.defineProperty;const Bm=Zl({__name:"AgentWidgetInline",props:{sdk:{},handle:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{}},setup(e,{expose:t}){const r=e,o=Ss(r.agent),n=Ss(r.context),a=Ss(r.firstMessage),i=Ss(r.buttonText),s=Ss(r.buttonIcon);function l(e){void 0!==e.agent&&(o.value=e.agent),void 0!==e.context&&(n.value=e.context),void 0!==e.firstMessage&&(a.value=e.firstMessage),void 0!==e.buttonText&&(i.value=e.buttonText),void 0!==e.buttonIcon&&(s.value=e.buttonIcon)}return(e=>{Um(e,"name",{value:"update",configurable:!0})})(l),t({update:l}),(t,r)=>(yd(),zd(Zm,{sdk:e.sdk,handle:e.handle,agent:o.value,context:n.value,"first-message":a.value,"button-text":i.value,"button-icon":s.value},null,8,["sdk","handle","agent","context","first-message","button-text","button-icon"]))}}),Vm=Object.freeze(Object.defineProperty({__proto__:null,default:Bm},Symbol.toStringTag,{value:"Module"}));var Rm=Object.defineProperty,Wm=(e,t)=>Rm(e,"name",{value:t,configurable:!0});const Hm={key:0,class:"relative h-full w-full"},Gm={class:"group relative h-full w-full rounded-3xl overflow-hidden shadow-lg transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:shadow-2xl hover:translate-y-[-1px] hover:brightness-110 active:scale-[1.06] active:-translate-y-0.5 active:duration-100"},Jm=["src","alt"],qm=Zl({__name:"AgentWidgetPopup",props:{sdk:{},handle:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},position:{}},setup(e,{expose:t}){const r=e,o=Ss(!1),n=Ss(!1),a=Ss(r.agent),i=Ss(r.context),s=Ss(r.firstMessage),l=Ss(r.buttonText),c=Ss(r.buttonIcon);function d(){o.value=!o.value}function u(){o.value=!0}function p(){o.value=!1}function h(){p()}function g(e){void 0!==e.agent&&(a.value=e.agent),void 0!==e.context&&(i.value=e.context),void 0!==e.firstMessage&&(s.value=e.firstMessage),void 0!==e.buttonText&&(l.value=e.buttonText),void 0!==e.buttonIcon&&(c.value=e.buttonIcon)}return Wm(d,"toggle"),dl(o,async e=>{e?(await qs(),setTimeout(()=>{n.value=!0},400)):n.value=!1}),Wm(u,"open"),Wm(p,"close"),Wm(h,"handleClose"),Wm(g,"update"),t({toggle:d,open:u,close:p,update:g}),(t,u)=>(yd(),zd(Fm,{sdk:e.sdk,handle:e.handle,agent:a.value,context:i.value,"first-message":s.value,"button-text":l.value,"button-icon":c.value},{default:al(({agent:e,sdk:t})=>[e?(yd(),Cd("div",{key:0,class:Ya(["fixed z-[999999] pointer-events-auto",["bottom-left"===r.position?"bottom-6 left-6":"top-right"===r.position?"top-6 right-6":"top-left"===r.position?"top-6 left-6":"bottom-6 right-6"]])},[Td("div",{class:Ya(["transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] transform-gpu",[o.value?"widget-expanded w-96 h-[600px] max-w-[calc(100vw-48px)] max-h-[calc(100vh-48px)] rounded-3xl opacity-100 scale-100":"widget-button w-[80px] h-[80px] opacity-100 scale-100 flex items-center justify-center cursor-pointer"]]),style:Ha({"transform-origin":"bottom-left"===r.position?"bottom left":"top-right"===r.position?"top right":"top-left"===r.position?"top left":"bottom right"}),onClick:u[0]||(u[0]=e=>o.value?void 0:d())},[o.value?Pd("",!0):(yd(),Cd("div",Hm,[Td("div",Gm,[Td("img",{src:Ts(Ah)(e)||Ts(Eh)(),alt:`${e.name} digital agent`,class:"h-full w-full object-cover pointer-events-none",width:"80",height:"80"},null,8,Jm),u[1]||(u[1]=Td("div",{class:"absolute inset-0 pointer-events-none bg-gradient-to-br from-transparent via-black/10 to-black/40 opacity-60 transition-opacity duration-300 group-hover:opacity-40"},null,-1))]),u[2]||(u[2]=Td("div",{class:"absolute top-0.5 right-0.5"},[Td("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}}),Td("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"})],-1))])),o.value&&e?(yd(),zd(Nm,{key:1,class:"rounded-3xl shadow-2xl border border-white/10",sdk:t,agent:e,context:i.value,"first-message":s.value,"button-text":l.value,"button-icon":c.value,"has-close":!0,"is-active":n.value,onClose:h},null,8,["sdk","agent","context","first-message","button-text","button-icon","is-active"])):Pd("",!0)],6)],2)):Pd("",!0)]),_:1},8,["sdk","handle","agent","context","first-message","button-text","button-icon"]))}}),Km=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"}));var Ym=Object.defineProperty;const Qm={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},Xm=Zl({name:"FClose",__name:"FClose",emits:["click"],setup(e){const t=Ss(!1);return tc(()=>{setTimeout(()=>{t.value=!0},100)}),(e,r)=>(yd(),Cd("a",{class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:r[0]||(r[0]=t=>e.$emit("click",t))},[r[1]||(r[1]=Td("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),Td("span",Qm,[Td("span",{class:Ya(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),Td("span",{class:Ya(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])]))}}),ev={class:"flex h-full overflow-scroll no-scrollbar items-center justify-center text-center p-4 py-8"},tv={key:0,class:"text-base p-4 font-semibold"},rv={key:1,class:"flex items-center gap-2 px-2"},ov=Zl({inheritAttrs:!1,name:"FModal",__name:"FModal",props:{vis:{type:Boolean,default:!1},modalClass:{},styleClass:{},fullScreen:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!1},title:{default:""},transitionMode:{default:"modal"},teleportTo:{default:"body"},disableTeleport:{type:Boolean,default:!1}},emits:["update:vis","close","escape"],setup(e,{emit:t}){const r=t,o=Ss(!1);function n(e){const{reason:t}=e;r("update:vis",!1),r("close",!0),"escape"===t&&r("escape",!0)}(e=>{Ym(e,"name",{value:"close",configurable:!0})})(n);const a=e.modalClass?[e.modalClass]:["max-w-screen-md p-24"],i=e.styleClass?[e.styleClass]:["bg-theme-0 text-theme-900","shadow-xl"];e.fullScreen?a.push("fixed inset-0"):a.push("rounded-2xl my-6 mx-3");const s=["relative","text-left","transform","transition-all","w-full","overflow-hidden",...a,...i],l=Ss(!1),c=[];tc(async()=>{o.value=!0;const t=dl(()=>e.vis,e=>{e?setTimeout(()=>l.value=!0,300):l.value=!1},{immediate:!0});c.push(t)}),ac(()=>{c.forEach(e=>e())});const d=tu(()=>"slideUp"===e.transitionMode?{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 translate-y-full scale-95",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 translate-y-full scale-95"}:{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 scale-75",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 scale-75"});return(t,r)=>o.value?(yd(),zd(_l,{key:0,to:e.teleportTo,disabled:e.disableTeleport},[Td("div",{class:Ya(["fixed inset-0 z-50",e.vis?"":"pointer-events-none"]),"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},[Md(gu,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:al(()=>[e.vis?(yd(),Cd("div",{key:0,class:"fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity",onClick:r[0]||(r[0]=e=>n({reason:"escape"}))})):Pd("",!0)]),_:1}),Td("div",{class:"fixed inset-0 z-40 overflow-y-auto",onClick:r[3]||(r[3]=e=>n({reason:"escape"}))},[Td("div",ev,[Md(gu,Qa(jd(d.value)),{default:al(()=>[e.vis?(yd(),Cd("div",{key:0,class:Ya([s,"w-full"]),onClick:r[2]||(r[2]=cp(()=>{},["stop"]))},[e.hasClose||e.title||t.$slots.actions?(yd(),Cd("div",{key:0,class:Ya(e.title||!e.hasClose&&!t.$slots.actions?"flex justify-between items-center":"absolute top-0 right-0 z-10")},[e.title?(yd(),Cd("h2",tv,oi(e.title),1)):Pd("",!0),e.hasClose||t.$slots.actions?(yd(),Cd("div",rv,[gc(t.$slots,"actions"),e.hasClose?(yd(),zd(Xm,{key:0,class:"relative","data-test-id":"close-modal",onClick:r[1]||(r[1]=cp(e=>n({reason:"escape"}),["stop"]))})):Pd("",!0)])):Pd("",!0)],2)):Pd("",!0),gc(t.$slots,"default")])):Pd("",!0)]),_:3},16)])])],2)],8,["to","disabled"])):Pd("",!0)}});var nv=Object.defineProperty,av=(e,t)=>nv(e,"name",{value:t,configurable:!0});const iv=Zl({__name:"AgentWidgetModal",props:{sdk:{},handle:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},onClose:{type:Function}},setup(e,{expose:t}){const r=e,o=Ss(r.agent),n=Ss(r.context),a=Ss(r.firstMessage),i=Ss(r.buttonText),s=Ss(r.buttonIcon),l=Ss(!1);function c(e){void 0!==e.agent&&(o.value=e.agent),void 0!==e.context&&(n.value=e.context),void 0!==e.firstMessage&&(a.value=e.firstMessage),void 0!==e.buttonText&&(i.value=e.buttonText),void 0!==e.buttonIcon&&(s.value=e.buttonIcon)}function d(){l.value=!1,setTimeout(()=>{r.onClose&&r.onClose()},300)}function u(){l.value=!0}return tc(async()=>{await qs(),setTimeout(()=>{l.value=!0},10)}),av(c,"update"),av(d,"close"),av(u,"open"),t({update:c,close:d,open:u}),(t,r)=>(yd(),zd(ov,{vis:l.value,"disable-teleport":!0,"modal-class":"max-w-4xl h-[80vh] md:h-[600px]","has-close":!1,"onUpdate:vis":r[0]||(r[0]=e=>l.value=e),onClose:d},{default:al(()=>[Md(Zm,{sdk:e.sdk,handle:e.handle,agent:o.value,context:n.value,"first-message":a.value,"button-text":i.value,"button-icon":s.value,"has-close":!0,onClose:d},null,8,["sdk","handle","agent","context","first-message","button-text","button-icon"])]),_:1},8,["vis"]))}}),sv=Object.freeze(Object.defineProperty({__proto__:null,default:iv},Symbol.toStringTag,{value:"Module"}));return e.PLWidget=ih,e.default=ih,e.initializeWidgets=uh,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),e}({});
|
|
2
|
+
/*! @pagelines/widget v1.0.150 | (c) 2026 PageLines | MIT License */
|
|
3
|
+
function o(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return e=>e in t}const n={},a=[],i=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),d=Object.assign,u=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},p=Object.prototype.hasOwnProperty,h=(e,t)=>p.call(e,t),g=Array.isArray,f=e=>"[object Map]"===C(e),m=e=>"[object Set]"===C(e),v=e=>"[object Date]"===C(e),b=e=>"function"==typeof e,w=e=>"string"==typeof e,y=e=>"symbol"==typeof e,k=e=>null!==e&&"object"==typeof e,x=e=>(k(e)||b(e))&&b(e.then)&&b(e.catch),_=Object.prototype.toString,C=e=>_.call(e),z=e=>"[object Object]"===C(e),S=e=>w(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},E=/-\w/g,T=A(e=>e.replace(E,e=>e.slice(1).toUpperCase())),M=/\B([A-Z])/g,j=A(e=>e.replace(M,"-$1").toLowerCase()),$=A(e=>e.charAt(0).toUpperCase()+e.slice(1)),O=A(e=>e?`on${$(e)}`:""),P=(e,t)=>!Object.is(e,t),N=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},L=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},D=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let F;const U=()=>F||(F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function Z(e){if(g(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],n=w(o)?W(o):Z(o);if(n)for(const e in n)t[e]=n[e]}return t}if(w(e)||k(e))return e}const B=/;(?![^(]*\))/g,V=/:([^]+)/,R=/\/\*[^]*?\*\//g;function W(e){const t={};return e.replace(R,"").split(B).forEach(e=>{if(e){const r=e.split(V);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function H(e){let t="";if(w(e))t=e;else if(g(e))for(let r=0;r<e.length;r++){const o=H(e[r]);o&&(t+=o+" ")}else if(k(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function G(e){if(!e)return null;let{class:t,style:r}=e;return t&&!w(t)&&(e.class=H(t)),r&&(e.style=Z(r)),e}const J=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function q(e){return!!e||""===e}function K(e,t){if(e===t)return!0;let r=v(e),o=v(t);if(r||o)return!(!r||!o)&&e.getTime()===t.getTime();if(r=y(e),o=y(t),r||o)return e===t;if(r=g(e),o=g(t),r||o)return!(!r||!o)&&function(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=K(e[o],t[o]);return r}(e,t);if(r=k(e),o=k(t),r||o){if(!r||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e){const o=e.hasOwnProperty(r),n=t.hasOwnProperty(r);if(o&&!n||!o&&n||!K(e[r],t[r]))return!1}}return String(e)===String(t)}const Y=e=>!(!e||!0!==e.__v_isRef),Q=e=>w(e)?e:null==e?"":g(e)||k(e)&&(e.toString===_||!b(e.toString))?Y(e)?Q(e.value):JSON.stringify(e,X,2):String(e),X=(e,t)=>Y(t)?X(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,r],o)=>(e[ee(t,o)+" =>"]=r,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>ee(e))}:y(t)?ee(t):!k(t)||g(t)||z(t)?t:String(t),ee=(e,t="")=>{var r;return y(e)?`Symbol(${null!=(r=e.description)?r:t})`:e};let te,re;class oe{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=te,!e&&te&&(this.index=(te.scopes||(te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=te;try{return te=this,e()}finally{te=t}}}on(){1===++this._on&&(this.prevScope=te,te=this)}off(){this._on>0&&0===--this._on&&(te=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,r;for(this._active=!1,t=0,r=this.effects.length;t<r;t++)this.effects[t].stop();for(this.effects.length=0,t=0,r=this.cleanups.length;t<r;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}const ne=new WeakSet;class ae{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,te&&te.active&&te.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,ne.has(this)&&(ne.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||ce(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,xe(this),pe(this);const e=re,t=be;re=this,be=!0;try{return this.fn()}finally{he(this),re=e,be=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)me(e);this.deps=this.depsTail=void 0,xe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?ne.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ge(this)&&this.run()}get dirty(){return ge(this)}}let ie,se,le=0;function ce(e,t=!1){if(e.flags|=8,t)return e.next=se,void(se=e);e.next=ie,ie=e}function de(){le++}function ue(){if(--le>0)return;if(se){let e=se;for(se=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ie;){let r=ie;for(ie=void 0;r;){const o=r.next;if(r.next=void 0,r.flags&=-9,1&r.flags)try{r.trigger()}catch(t){e||(e=t)}r=o}}if(e)throw e}function pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function he(e){let t,r=e.depsTail,o=r;for(;o;){const e=o.prevDep;-1===o.version?(o===r&&(r=e),me(o),ve(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=r}function ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fe(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fe(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===_e)return;if(e.globalVersion=_e,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!ge(e)))return;e.flags|=2;const t=e.dep,r=re,o=be;re=e,be=!0;try{pe(e);const r=e.fn(e._value);(0===t.version||P(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(n){throw t.version++,n}finally{re=r,be=o,he(e),e.flags&=-3}}function me(e,t=!1){const{dep:r,prevSub:o,nextSub:n}=e;if(o&&(o.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let e=r.computed.deps;e;e=e.nextDep)me(e,!0)}t||--r.sc||!r.map||r.map.delete(r.key)}function ve(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let be=!0;const we=[];function ye(){we.push(be),be=!1}function ke(){const e=we.pop();be=void 0===e||e}function xe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=re;re=void 0;try{t()}finally{re=e}}}let _e=0;class Ce{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ze{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!re||!be||re===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==re)t=this.activeLink=new Ce(re,this),re.deps?(t.prevDep=re.depsTail,re.depsTail.nextDep=t,re.depsTail=t):re.deps=re.depsTail=t,Se(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=re.depsTail,t.nextDep=void 0,re.depsTail.nextDep=t,re.depsTail=t,re.deps===t&&(re.deps=e)}return t}trigger(e){this.version++,_e++,this.notify(e)}notify(e){de();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ue()}}}function Se(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Se(e)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Ie=new WeakMap,Ae=Symbol(""),Ee=Symbol(""),Te=Symbol("");function Me(e,t,r){if(be&&re){let t=Ie.get(e);t||Ie.set(e,t=new Map);let o=t.get(r);o||(t.set(r,o=new ze),o.map=t,o.key=r),o.track()}}function je(e,t,r,o,n,a){const i=Ie.get(e);if(!i)return void _e++;const s=e=>{e&&e.trigger()};if(de(),"clear"===t)i.forEach(s);else{const n=g(e),a=n&&S(r);if(n&&"length"===r){const e=Number(o);i.forEach((t,r)=>{("length"===r||r===Te||!y(r)&&r>=e)&&s(t)})}else switch((void 0!==r||i.has(void 0))&&s(i.get(r)),a&&s(i.get(Te)),t){case"add":n?a&&s(i.get("length")):(s(i.get(Ae)),f(e)&&s(i.get(Ee)));break;case"delete":n||(s(i.get(Ae)),f(e)&&s(i.get(Ee)));break;case"set":f(e)&&s(i.get(Ae))}}ue()}function $e(e){const t=vt(e);return t===e?t:(Me(t,0,Te),ft(e)?t:t.map(bt))}function Oe(e){return Me(e=vt(e),0,Te),e}function Pe(e,t){return gt(e)?wt(ht(e)?bt(t):t):bt(t)}const Ne={__proto__:null,[Symbol.iterator](){return Le(this,Symbol.iterator,e=>Pe(this,e))},concat(...e){return $e(this).concat(...e.map(e=>g(e)?$e(e):e))},entries(){return Le(this,"entries",e=>(e[1]=Pe(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,e=>e.map(e=>Pe(this,e)),arguments)},find(e,t){return Fe(this,"find",e,t,e=>Pe(this,e),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,e=>Pe(this,e),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ze(this,"includes",e)},indexOf(...e){return Ze(this,"indexOf",e)},join(e){return $e(this).join(e)},lastIndexOf(...e){return Ze(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return Be(this,"pop")},push(...e){return Be(this,"push",e)},reduce(e,...t){return Ue(this,"reduce",e,t)},reduceRight(e,...t){return Ue(this,"reduceRight",e,t)},shift(){return Be(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return Be(this,"splice",e)},toReversed(){return $e(this).toReversed()},toSorted(e){return $e(this).toSorted(e)},toSpliced(...e){return $e(this).toSpliced(...e)},unshift(...e){return Be(this,"unshift",e)},values(){return Le(this,"values",e=>Pe(this,e))}};function Le(e,t,r){const o=Oe(e),n=o[t]();return o===e||ft(e)||(n._next=n.next,n.next=()=>{const e=n._next();return e.done||(e.value=r(e.value)),e}),n}const De=Array.prototype;function Fe(e,t,r,o,n,a){const i=Oe(e),s=i!==e&&!ft(e),l=i[t];if(l!==De[t]){const t=l.apply(e,a);return s?bt(t):t}let c=r;i!==e&&(s?c=function(t,o){return r.call(this,Pe(e,t),o,e)}:r.length>2&&(c=function(t,o){return r.call(this,t,o,e)}));const d=l.call(i,c,o);return s&&n?n(d):d}function Ue(e,t,r,o){const n=Oe(e);let a=r;return n!==e&&(ft(e)?r.length>3&&(a=function(t,o,n){return r.call(this,t,o,n,e)}):a=function(t,o,n){return r.call(this,t,Pe(e,o),n,e)}),n[t](a,...o)}function Ze(e,t,r){const o=vt(e);Me(o,0,Te);const n=o[t](...r);return-1!==n&&!1!==n||!mt(r[0])?n:(r[0]=vt(r[0]),o[t](...r))}function Be(e,t,r=[]){ye(),de();const o=vt(e)[t].apply(e,r);return ue(),ke(),o}const Ve=o("__proto__,__v_isRef,__isVue"),Re=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(y));function We(e){y(e)||(e=String(e));const t=vt(this);return Me(t,0,e),t.hasOwnProperty(e)}class He{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,r){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,n=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return n;if("__v_raw"===t)return r===(o?n?lt:st:n?it:at).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const a=g(e);if(!o){let e;if(a&&(e=Ne[t]))return e;if("hasOwnProperty"===t)return We}const i=Reflect.get(e,t,yt(e)?e:r);if(y(t)?Re.has(t):Ve(t))return i;if(o||Me(e,0,t),n)return i;if(yt(i)){const e=a&&S(t)?i:i.value;return o&&k(e)?ut(e):e}return k(i)?o?ut(i):ct(i):i}}class Ge extends He{constructor(e=!1){super(!1,e)}set(e,t,r,o){let n=e[t];const a=g(e)&&S(t);if(!this._isShallow){const e=gt(n);if(ft(r)||gt(r)||(n=vt(n),r=vt(r)),!a&&yt(n)&&!yt(r))return e||(n.value=r),!0}const i=a?Number(t)<e.length:h(e,t),s=Reflect.set(e,t,r,yt(e)?e:o);return e===vt(o)&&(i?P(r,n)&&je(e,"set",t,r):je(e,"add",t,r)),s}deleteProperty(e,t){const r=h(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&r&&je(e,"delete",t,void 0),o}has(e,t){const r=Reflect.has(e,t);return y(t)&&Re.has(t)||Me(e,0,t),r}ownKeys(e){return Me(e,0,g(e)?"length":Ae),Reflect.ownKeys(e)}}class Je extends He{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const qe=new Ge,Ke=new Je,Ye=new Ge(!0),Qe=e=>e,Xe=e=>Reflect.getPrototypeOf(e);function et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function tt(e,t){const r=function(e,t){const r={get(r){const o=this.__v_raw,n=vt(o),a=vt(r);e||(P(r,a)&&Me(n,0,r),Me(n,0,a));const{has:i}=Xe(n),s=t?Qe:e?wt:bt;return i.call(n,r)?s(o.get(r)):i.call(n,a)?s(o.get(a)):void(o!==n&&o.get(r))},get size(){const t=this.__v_raw;return!e&&Me(vt(t),0,Ae),t.size},has(t){const r=this.__v_raw,o=vt(r),n=vt(t);return e||(P(t,n)&&Me(o,0,t),Me(o,0,n)),t===n?r.has(t):r.has(t)||r.has(n)},forEach(r,o){const n=this,a=n.__v_raw,i=t?Qe:e?wt:bt;return!e&&Me(vt(a),0,Ae),a.forEach((e,t)=>r.call(o,i(e),i(t),n))}};return d(r,e?{add:et("add"),set:et("set"),delete:et("delete"),clear:et("clear")}:{add(e){t||ft(e)||gt(e)||(e=vt(e));const r=vt(this);return Xe(r).has.call(r,e)||(r.add(e),je(r,"add",e,e)),this},set(e,r){t||ft(r)||gt(r)||(r=vt(r));const o=vt(this),{has:n,get:a}=Xe(o);let i=n.call(o,e);i||(e=vt(e),i=n.call(o,e));const s=a.call(o,e);return o.set(e,r),i?P(r,s)&&je(o,"set",e,r):je(o,"add",e,r),this},delete(e){const t=vt(this),{has:r,get:o}=Xe(t);let n=r.call(t,e);n||(e=vt(e),n=r.call(t,e)),o&&o.call(t,e);const a=t.delete(e);return n&&je(t,"delete",e,void 0),a},clear(){const e=vt(this),t=0!==e.size,r=e.clear();return t&&je(e,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=function(e,t,r){return function(...o){const n=this.__v_raw,a=vt(n),i=f(a),s="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,c=n[e](...o),u=r?Qe:t?wt:bt;return!t&&Me(a,0,l?Ee:Ae),d(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}(o,e,t)}),r}(e,t);return(t,o,n)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(h(r,o)&&o in t?r:t,o,n)}const rt={get:tt(!1,!1)},ot={get:tt(!1,!0)},nt={get:tt(!0,!1)},at=new WeakMap,it=new WeakMap,st=new WeakMap,lt=new WeakMap;function ct(e){return gt(e)?e:pt(e,!1,qe,rt,at)}function dt(e){return pt(e,!1,Ye,ot,it)}function ut(e){return pt(e,!0,Ke,nt,st)}function pt(e,t,r,o,n){if(!k(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>C(e).slice(8,-1))(i));var i;if(0===a)return e;const s=n.get(e);if(s)return s;const l=new Proxy(e,2===a?o:r);return n.set(e,l),l}function ht(e){return gt(e)?ht(e.__v_raw):!(!e||!e.__v_isReactive)}function gt(e){return!(!e||!e.__v_isReadonly)}function ft(e){return!(!e||!e.__v_isShallow)}function mt(e){return!!e&&!!e.__v_raw}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}const bt=e=>k(e)?ct(e):e,wt=e=>k(e)?ut(e):e;function yt(e){return!!e&&!0===e.__v_isRef}function kt(e){return _t(e,!1)}function xt(e){return _t(e,!0)}function _t(e,t){return yt(e)?e:new Ct(e,t)}class Ct{constructor(e,t){this.dep=new ze,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:vt(e),this._value=t?e:bt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,r=this.__v_isShallow||ft(e)||gt(e);P(e=r?e:vt(e),t)&&(this._rawValue=e,this._value=r?e:bt(e),this.dep.trigger())}}function zt(e){return yt(e)?e.value:e}const St={get:(e,t,r)=>"__v_raw"===t?e:zt(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const n=e[t];return yt(n)&&!yt(r)?(n.value=r,!0):Reflect.set(e,t,r,o)}};function It(e){return ht(e)?e:new Proxy(e,St)}class At{constructor(e,t,r){this.fn=e,this.setter=t,this._value=void 0,this.dep=new ze(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_e-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=r}notify(){if(this.flags|=16,!(8&this.flags)&&re!==this)return ce(this,!0),!0}get value(){const e=this.dep.track();return fe(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Et(e,t,r=!1){let o,n;return b(e)?o=e:(o=e.get,n=e.set),new At(o,n,r)}const Tt={},Mt=new WeakMap;let jt;function $t(e,t=1/0,r){if(t<=0||!k(e)||e.__v_skip)return e;if(((r=r||new Map).get(e)||0)>=t)return e;if(r.set(e,t),t--,yt(e))$t(e.value,t,r);else if(g(e))for(let o=0;o<e.length;o++)$t(e[o],t,r);else if(m(e)||f(e))e.forEach(e=>{$t(e,t,r)});else if(z(e)){for(const o in e)$t(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&$t(e[o],t,r)}return e}function Ot(e,t,r,o){try{return o?e(...o):e()}catch(n){Nt(n,t,r)}}function Pt(e,t,r,o){if(b(e)){const n=Ot(e,t,r,o);return n&&x(n)&&n.catch(e=>{Nt(e,t,r)}),n}if(g(e)){const n=[];for(let a=0;a<e.length;a++)n.push(Pt(e[a],t,r,o));return n}}function Nt(e,t,r,o=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||n;if(t){let o=t.parent;const n=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const t=o.ec;if(t)for(let r=0;r<t.length;r++)if(!1===t[r](e,n,i))return;o=o.parent}if(a)return ye(),Ot(a,null,10,[e,n,i]),void ke()}!function(e,t,r,o=!0,n=!1){if(n)throw e}(e,0,0,o,i)}const Lt=[];let Dt=-1;const Ft=[];let Ut=null,Zt=0;const Bt=Promise.resolve();let Vt=null;function Rt(e){const t=Vt||Bt;return e?t.then(this?e.bind(this):e):t}function Wt(e){if(!(1&e.flags)){const t=qt(e),r=Lt[Lt.length-1];!r||!(2&e.flags)&&t>=qt(r)?Lt.push(e):Lt.splice(function(e){let t=Dt+1,r=Lt.length;for(;t<r;){const o=t+r>>>1,n=Lt[o],a=qt(n);a<e||a===e&&2&n.flags?t=o+1:r=o}return t}(t),0,e),e.flags|=1,Ht()}}function Ht(){Vt||(Vt=Bt.then(Kt))}function Gt(e,t,r=Dt+1){for(;r<Lt.length;r++){const t=Lt[r];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;Lt.splice(r,1),r--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Jt(e){if(Ft.length){const e=[...new Set(Ft)].sort((e,t)=>qt(e)-qt(t));if(Ft.length=0,Ut)return void Ut.push(...e);for(Ut=e,Zt=0;Zt<Ut.length;Zt++){const e=Ut[Zt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Ut=null,Zt=0}}const qt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Kt(e){try{for(Dt=0;Dt<Lt.length;Dt++){const e=Lt[Dt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Ot(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;Dt<Lt.length;Dt++){const e=Lt[Dt];e&&(e.flags&=-2)}Dt=-1,Lt.length=0,Jt(),Vt=null,(Lt.length||Ft.length)&&Kt()}}let Yt=null,Qt=null;function Xt(e){const t=Yt;return Yt=e,Qt=e&&e.type.__scopeId||null,t}function er(e,t=Yt,r){if(!t)return e;if(e._n)return e;const o=(...r)=>{o._d&&wn(-1);const n=Xt(t);let a;try{a=e(...r)}finally{Xt(n),o._d&&wn(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function tr(e,t){if(null===Yt)return e;const r=Yn(Yt),o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,i,s,l=n]=t[a];e&&(b(e)&&(e={mounted:e,updated:e}),e.deep&&$t(i),o.push({dir:e,instance:r,value:i,oldValue:void 0,arg:s,modifiers:l}))}return e}function rr(e,t,r,o){const n=e.dirs,a=t&&t.dirs;for(let i=0;i<n.length;i++){const s=n[i];a&&(s.oldValue=a[i].value);let l=s.dir[o];l&&(ye(),Pt(l,r,8,[e.el,s,e,t]),ke())}}function or(e,t,r=!1){const o=Zn();if(o||Mo){let n=Mo?Mo._context.provides:o?null==o.parent||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return r&&b(t)?t.call(o&&o.proxy):t}}const nr=Symbol.for("v-scx");function ar(e,t,r){return ir(e,t,r)}function ir(e,t,r=n){const{immediate:o,deep:a,flush:s,once:l}=r,c=d({},r),p=t&&o||!t&&"post"!==s;let h;if(Gn)if("sync"===s){const e=or(nr);h=e.__watcherHandles||(e.__watcherHandles=[])}else if(!p){const e=()=>{};return e.stop=i,e.resume=i,e.pause=i,e}const f=Un;c.call=(e,t,r)=>Pt(e,f,t,r);let m=!1;"post"===s?c.scheduler=e=>{tn(e,f&&f.suspense)}:"sync"!==s&&(m=!0,c.scheduler=(e,t)=>{t?e():Wt(e)}),c.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};const v=function(e,t,r=n){const{immediate:o,deep:a,once:s,scheduler:l,augmentJob:c,call:d}=r,p=e=>a?e:ft(e)||!1===a||0===a?$t(e,1):$t(e);let h,f,m,v,w=!1,y=!1;if(yt(e)?(f=()=>e.value,w=ft(e)):ht(e)?(f=()=>p(e),w=!0):g(e)?(y=!0,w=e.some(e=>ht(e)||ft(e)),f=()=>e.map(e=>yt(e)?e.value:ht(e)?p(e):b(e)?d?d(e,2):e():void 0)):f=b(e)?t?d?()=>d(e,2):e:()=>{if(m){ye();try{m()}finally{ke()}}const t=jt;jt=h;try{return d?d(e,3,[v]):e(v)}finally{jt=t}}:i,t&&a){const e=f,t=!0===a?1/0:a;f=()=>$t(e(),t)}const k=te,x=()=>{h.stop(),k&&k.active&&u(k.effects,h)};if(s&&t){const e=t;t=(...t)=>{e(...t),x()}}let _=y?new Array(e.length).fill(Tt):Tt;const C=e=>{if(1&h.flags&&(h.dirty||e))if(t){const e=h.run();if(a||w||(y?e.some((e,t)=>P(e,_[t])):P(e,_))){m&&m();const r=jt;jt=h;try{const r=[e,_===Tt?void 0:y&&_[0]===Tt?[]:_,v];_=e,d?d(t,3,r):t(...r)}finally{jt=r}}}else h.run()};return c&&c(C),h=new ae(f),h.scheduler=l?()=>l(C,!1):C,v=e=>function(e,t=!1,r=jt){if(r){let t=Mt.get(r);t||Mt.set(r,t=[]),t.push(e)}}(e,!1,h),m=h.onStop=()=>{const e=Mt.get(h);if(e){if(d)d(e,4);else for(const t of e)t();Mt.delete(h)}},t?o?C(!0):_=h.run():l?l(C.bind(null,!0),!0):h.run(),x.pause=h.pause.bind(h),x.resume=h.resume.bind(h),x.stop=x,x}(e,t,c);return Gn&&(h?h.push(v):p&&v()),v}function sr(e,t,r){const o=this.proxy,n=w(e)?e.includes(".")?lr(o,e):()=>o[e]:e.bind(o,o);let a;b(t)?a=t:(a=t.handler,r=t);const i=Rn(this),s=ir(n,a.bind(o),r);return i(),s}function lr(e,t){const r=t.split(".");return()=>{let t=e;for(let e=0;e<r.length&&t;e++)t=t[r[e]];return t}}const cr=Symbol("_vte"),dr=e=>e.__isTeleport,ur=e=>e&&(e.disabled||""===e.disabled),pr=e=>e&&(e.defer||""===e.defer),hr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,gr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,fr=(e,t)=>{const r=e&&e.to;return w(r)?t?t(r):null:r},mr={name:"Teleport",__isTeleport:!0,process(e,t,r,o,n,a,i,s,l,c){const{mc:d,pc:u,pbc:p,o:{insert:h,querySelector:g,createText:f,createComment:m}}=c,v=ur(t.props);let{shapeFlag:b,children:w,dynamicChildren:y}=t;if(null==e){const e=t.el=f(""),c=t.anchor=f("");h(e,r,o),h(c,r,o);const u=(e,t)=>{16&b&&d(w,e,t,n,a,i,s,l)},p=()=>{const e=t.target=fr(t.props,g),r=yr(e,t,f,h);e&&("svg"!==i&&hr(e)?i="svg":"mathml"!==i&&gr(e)&&(i="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(e),v||(u(e,r),wr(t,!1)))};v&&(u(r,c),wr(t,!0)),pr(t.props)?(t.el.__isMounted=!1,tn(()=>{p(),delete t.el.__isMounted},a)):p()}else{if(pr(t.props)&&!1===e.el.__isMounted)return void tn(()=>{mr.process(e,t,r,o,n,a,i,s,l,c)},a);t.el=e.el,t.targetStart=e.targetStart;const d=t.anchor=e.anchor,h=t.target=e.target,f=t.targetAnchor=e.targetAnchor,m=ur(e.props),b=m?r:h,w=m?d:f;if("svg"===i||hr(h)?i="svg":("mathml"===i||gr(h))&&(i="mathml"),y?(p(e.dynamicChildren,y,b,n,a,i,s),an(e,t,!0)):l||u(e,t,b,w,n,a,i,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vr(t,r,d,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=fr(t.props,g);e&&vr(t,e,null,c,0)}else m&&vr(t,h,f,c,1);wr(t,v)}},remove(e,t,r,{um:o,o:{remove:n}},a){const{shapeFlag:i,children:s,anchor:l,targetStart:c,targetAnchor:d,target:u,props:p}=e;if(u&&(n(c),n(d)),a&&n(l),16&i){const e=a||!ur(p);for(let n=0;n<s.length;n++){const a=s[n];o(a,t,r,e,!!a.dynamicChildren)}}},move:vr,hydrate:function(e,t,r,o,n,a,{o:{nextSibling:i,parentNode:s,querySelector:l,insert:c,createText:d}},u){function p(e,r){let o=r;for(;o;){if(o&&8===o.nodeType)if("teleport start anchor"===o.data)t.targetStart=o;else if("teleport anchor"===o.data){t.targetAnchor=o,e._lpa=t.targetAnchor&&i(t.targetAnchor);break}o=i(o)}}function h(e,t){t.anchor=u(i(e),t,s(e),r,o,n,a)}const g=t.target=fr(t.props,l),f=ur(t.props);if(g){const l=g._lpa||g.firstChild;16&t.shapeFlag&&(f?(h(e,t),p(g,l),t.targetAnchor||yr(g,t,d,c,s(e)===g?e:null)):(t.anchor=i(e),p(g,l),t.targetAnchor||yr(g,t,d,c),u(l&&i(l),t,g,r,o,n,a))),wr(t,f)}else f&&16&t.shapeFlag&&(h(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}};function vr(e,t,r,{o:{insert:o},m:n},a=2){0===a&&o(e.targetAnchor,t,r);const{el:i,anchor:s,shapeFlag:l,children:c,props:d}=e,u=2===a;if(u&&o(i,t,r),(!u||ur(d))&&16&l)for(let p=0;p<c.length;p++)n(c[p],t,r,2);u&&o(s,t,r)}const br=mr;function wr(e,t){const r=e.ctx;if(r&&r.ut){let o,n;for(t?(o=e.el,n=e.anchor):(o=e.targetStart,n=e.targetAnchor);o&&o!==n;)1===o.nodeType&&o.setAttribute("data-v-owner",r.uid),o=o.nextSibling;r.ut()}}function yr(e,t,r,o,n=null){const a=t.targetStart=r(""),i=t.targetAnchor=r("");return a[cr]=i,e&&(o(a,e,n),o(i,e,n)),i}const kr=Symbol("_leaveCb"),xr=Symbol("_enterCb");function _r(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Kr(()=>{e.isMounted=!0}),Xr(()=>{e.isUnmounting=!0}),e}const Cr=[Function,Array],zr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cr,onEnter:Cr,onAfterEnter:Cr,onEnterCancelled:Cr,onBeforeLeave:Cr,onLeave:Cr,onAfterLeave:Cr,onLeaveCancelled:Cr,onBeforeAppear:Cr,onAppear:Cr,onAfterAppear:Cr,onAppearCancelled:Cr},Sr=e=>{const t=e.subTree;return t.component?Sr(t.component):t};function Ir(e){let t=e[0];if(e.length>1)for(const r of e)if(r.type!==hn){t=r;break}return t}const Ar={name:"BaseTransition",props:zr,setup(e,{slots:t}){const r=Zn(),o=_r();return()=>{const n=t.default&&Or(t.default(),!0);if(!n||!n.length)return;const a=Ir(n),i=vt(e),{mode:s}=i;if(o.isLeaving)return Mr(a);const l=jr(a);if(!l)return Mr(a);let c=Tr(l,i,o,r,e=>c=e);l.type!==hn&&$r(l,c);let d=r.subTree&&jr(r.subTree);if(d&&d.type!==hn&&!Cn(d,l)&&Sr(r).type!==hn){let e=Tr(d,i,o,r);if($r(d,e),"out-in"===s&&l.type!==hn)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,8&r.job.flags||r.update(),delete e.afterLeave,d=void 0},Mr(a);"in-out"===s&&l.type!==hn?e.delayLeave=(e,t,r)=>{Er(o,d)[String(d.key)]=d,e[kr]=()=>{t(),e[kr]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{r(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return a}}};function Er(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function Tr(e,t,r,o,n){const{appear:a,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:v,onAppear:b,onAfterAppear:w,onAppearCancelled:y}=t,k=String(e.key),x=Er(r,e),_=(e,t)=>{e&&Pt(e,o,9,t)},C=(e,t)=>{const r=t[1];_(e,t),g(e)?e.every(e=>e.length<=1)&&r():e.length<=1&&r()},z={mode:i,persisted:s,beforeEnter(t){let o=l;if(!r.isMounted){if(!a)return;o=v||l}t[kr]&&t[kr](!0);const n=x[k];n&&Cn(e,n)&&n.el[kr]&&n.el[kr](),_(o,[t])},enter(e){let t=c,o=d,n=u;if(!r.isMounted){if(!a)return;t=b||c,o=w||d,n=y||u}let i=!1;e[xr]=t=>{i||(i=!0,_(t?n:o,[e]),z.delayedLeave&&z.delayedLeave(),e[xr]=void 0)};const s=e[xr].bind(null,!1);t?C(t,[e,s]):s()},leave(t,o){const n=String(e.key);if(t[xr]&&t[xr](!0),r.isUnmounting)return o();_(p,[t]);let a=!1;t[kr]=r=>{a||(a=!0,o(),_(r?m:f,[t]),t[kr]=void 0,x[n]===e&&delete x[n])};const i=t[kr].bind(null,!1);x[n]=e,h?C(h,[t,i]):i()},clone(e){const a=Tr(e,t,r,o,n);return n&&n(a),a}};return z}function Mr(e){if(Br(e))return(e=Tn(e)).children=null,e}function jr(e){if(!Br(e))return dr(e.type)&&e.children?Ir(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(16&t)return r[0];if(32&t&&b(r.default))return r.default()}}function $r(e,t){6&e.shapeFlag&&e.component?(e.transition=t,$r(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Or(e,t=!1,r){let o=[],n=0;for(let a=0;a<e.length;a++){let i=e[a];const s=null==r?i.key:String(r)+String(null!=i.key?i.key:a);i.type===un?(128&i.patchFlag&&n++,o=o.concat(Or(i.children,t,s))):(t||i.type!==hn)&&o.push(null!=s?Tn(i,{key:s}):i)}if(n>1)for(let a=0;a<o.length;a++)o[a].patchFlag=-2;return o}function Pr(e,t){return b(e)?(()=>d({name:e.name},t,{setup:e}))():e}function Nr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Lr(e,t){let r;return!(!(r=Object.getOwnPropertyDescriptor(e,t))||r.configurable)}const Dr=new WeakMap;function Fr(e,t,r,o,a=!1){if(g(e))return void e.forEach((e,n)=>Fr(e,t&&(g(t)?t[n]:t),r,o,a));if(Zr(o)&&!a)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&Fr(e,t,r,o.component.subTree));const i=4&o.shapeFlag?Yn(o.component):o.el,l=a?null:i,{i:c,r:d}=e,p=t&&t.r,f=c.refs===n?c.refs={}:c.refs,m=c.setupState,v=vt(m),y=m===n?s:e=>!Lr(f,e)&&h(v,e),k=(e,t)=>!t||!Lr(f,t);if(null!=p&&p!==d)if(Ur(t),w(p))f[p]=null,y(p)&&(m[p]=null);else if(yt(p)){const e=t;k(0,e.k)&&(p.value=null),e.k&&(f[e.k]=null)}if(b(d))Ot(d,c,12,[l,f]);else{const t=w(d),o=yt(d);if(t||o){const n=()=>{if(e.f){const r=t?y(d)?m[d]:f[d]:k()||!e.k?d.value:f[e.k];if(a)g(r)&&u(r,i);else if(g(r))r.includes(i)||r.push(i);else if(t)f[d]=[i],y(d)&&(m[d]=f[d]);else{const t=[i];k(0,e.k)&&(d.value=t),e.k&&(f[e.k]=t)}}else t?(f[d]=l,y(d)&&(m[d]=l)):o&&(k(0,e.k)&&(d.value=l),e.k&&(f[e.k]=l))};if(l){const t=()=>{n(),Dr.delete(e)};t.id=-1,Dr.set(e,t),tn(t,r)}else Ur(e),n()}}}function Ur(e){const t=Dr.get(e);t&&(t.flags|=8,Dr.delete(e))}U().requestIdleCallback,U().cancelIdleCallback;const Zr=e=>!!e.type.__asyncLoader,Br=e=>e.type.__isKeepAlive;function Vr(e,t){Wr(e,"a",t)}function Rr(e,t){Wr(e,"da",t)}function Wr(e,t,r=Un){const o=e.__wdc||(e.__wdc=()=>{let t=r;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Gr(t,o,r),r){let e=r.parent;for(;e&&e.parent;)Br(e.parent.vnode)&&Hr(o,t,r,e),e=e.parent}}function Hr(e,t,r,o){const n=Gr(t,e,o,!0);eo(()=>{u(o[t],n)},r)}function Gr(e,t,r=Un,o=!1){if(r){const n=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{ye();const n=Rn(r),a=Pt(t,r,e,o);return n(),ke(),a});return o?n.unshift(a):n.push(a),a}}const Jr=e=>(t,r=Un)=>{Gn&&"sp"!==e||Gr(e,(...e)=>t(...e),r)},qr=Jr("bm"),Kr=Jr("m"),Yr=Jr("bu"),Qr=Jr("u"),Xr=Jr("bum"),eo=Jr("um"),to=Jr("sp"),ro=Jr("rtg"),oo=Jr("rtc");function no(e,t=Un){Gr("ec",e,t)}const ao=Symbol.for("v-ndc");function io(e){return w(e)?function(e,t,r=!0,o=!1){const n=Yt||Un;if(n){const r=n.type;{const e=function(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}(r,!1);if(e&&(e===t||e===T(t)||e===$(T(t))))return r}const a=so(n[e]||r[e],t)||so(n.appContext[e],t);return!a&&o?r:a}}("components",e,!1)||e:e||ao}function so(e,t){return e&&(e[t]||e[T(t)]||e[$(T(t))])}function lo(e,t,r,o){let n;const a=r,i=g(e);if(i||w(e)){let r=!1,o=!1;i&&ht(e)&&(r=!ft(e),o=gt(e),e=Oe(e)),n=new Array(e.length);for(let i=0,s=e.length;i<s;i++)n[i]=t(r?o?wt(bt(e[i])):bt(e[i]):e[i],i,void 0,a)}else if("number"==typeof e){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r,void 0,a)}else if(k(e))if(e[Symbol.iterator])n=Array.from(e,(e,r)=>t(e,r,void 0,a));else{const r=Object.keys(e);n=new Array(r.length);for(let o=0,i=r.length;o<i;o++){const i=r[o];n[o]=t(e[i],i,o,a)}}else n=[];return n}function co(e,t,r={},o,n){if(Yt.ce||Yt.parent&&Zr(Yt.parent)&&Yt.parent.ce){const e=Object.keys(r).length>0;return"default"!==t&&(r.name=t),vn(),xn(un,null,[An("slot",r,o&&o())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),vn();const i=a&&uo(a(r)),s=r.key||i&&i.key,l=xn(un,{key:(s&&!y(s)?s:`_${t}`)+(!i&&o?"_fb":"")},i||(o?o():[]),i&&1===e._?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function uo(e){return e.some(e=>!_n(e)||e.type!==hn&&!(e.type===un&&!uo(e.children)))?e:null}const po=e=>e?Hn(e)?Yn(e):po(e.parent):null,ho=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>po(e.parent),$root:e=>po(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yo(e),$forceUpdate:e=>e.f||(e.f=()=>{Wt(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>sr.bind(e)}),go=(e,t)=>e!==n&&!e.__isScriptSetup&&h(e,t),fo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:r,setupState:o,data:a,props:i,accessCache:s,type:l,appContext:c}=e;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return o[t];case 2:return a[t];case 4:return r[t];case 3:return i[t]}else{if(go(o,t))return s[t]=1,o[t];if(a!==n&&h(a,t))return s[t]=2,a[t];if(h(i,t))return s[t]=3,i[t];if(r!==n&&h(r,t))return s[t]=4,r[t];vo&&(s[t]=0)}}const d=ho[t];let u,p;return d?("$attrs"===t&&Me(e.attrs,0,""),d(e)):(u=l.__cssModules)&&(u=u[t])?u:r!==n&&h(r,t)?(s[t]=4,r[t]):(p=c.config.globalProperties,h(p,t)?p[t]:void 0)},set({_:e},t,r){const{data:o,setupState:a,ctx:i}=e;return go(a,t)?(a[t]=r,!0):o!==n&&h(o,t)?(o[t]=r,!0):!(h(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=r,0))},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:a,props:i,type:s}},l){let c;return!!(r[l]||e!==n&&"$"!==l[0]&&h(e,l)||go(t,l)||h(i,l)||h(o,l)||h(ho,l)||h(a.config.globalProperties,l)||(c=s.__cssModules)&&c[l])},defineProperty(e,t,r){return null!=r.get?e._.accessCache[t]=0:h(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function mo(e){return g(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let vo=!0;function bo(e,t,r){Pt(g(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,r)}function wo(e,t,r,o){let n=o.includes(".")?lr(r,o):()=>r[o];if(w(e)){const r=t[e];b(r)&&ar(n,r)}else if(b(e))ar(n,e.bind(r));else if(k(e))if(g(e))e.forEach(e=>wo(e,t,r,o));else{const o=b(e.handler)?e.handler.bind(r):t[e.handler];b(o)&&ar(n,o,e)}}function yo(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:n,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:n.length||r||o?(l={},n.length&&n.forEach(e=>ko(l,e,i,!0)),ko(l,t,i)):l=t,k(t)&&a.set(t,l),l}function ko(e,t,r,o=!1){const{mixins:n,extends:a}=t;a&&ko(e,a,r,!0),n&&n.forEach(t=>ko(e,t,r,!0));for(const i in t)if(o&&"expose"===i);else{const o=xo[i]||r&&r[i];e[i]=o?o(e[i],t[i]):t[i]}return e}const xo={data:_o,props:Io,emits:Io,methods:So,computed:So,beforeCreate:zo,created:zo,beforeMount:zo,mounted:zo,beforeUpdate:zo,updated:zo,beforeDestroy:zo,beforeUnmount:zo,destroyed:zo,unmounted:zo,activated:zo,deactivated:zo,errorCaptured:zo,serverPrefetch:zo,components:So,directives:So,watch:function(e,t){if(!e)return t;if(!t)return e;const r=d(Object.create(null),e);for(const o in t)r[o]=zo(e[o],t[o]);return r},provide:_o,inject:function(e,t){return So(Co(e),Co(t))}};function _o(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function Co(e){if(g(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function zo(e,t){return e?[...new Set([].concat(e,t))]:t}function So(e,t){return e?d(Object.create(null),e,t):t}function Io(e,t){return e?g(e)&&g(t)?[...new Set([...e,...t])]:d(Object.create(null),mo(e),mo(null!=t?t:{})):t}function Ao(){return{app:null,config:{isNativeTag:s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Eo=0;function To(e,t){return function(t,r=null){b(t)||(t=d({},t)),null==r||k(r)||(r=null);const o=Ao(),n=new WeakSet,a=[];let i=!1;const s=o.app={_uid:Eo++,_component:t,_props:r,_container:null,_context:o,_instance:null,version:Xn,get config(){return o.config},set config(e){},use:(e,...t)=>(n.has(e)||(e&&b(e.install)?(n.add(e),e.install(s,...t)):b(e)&&(n.add(e),e(s,...t))),s),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(n,a,l){if(!i){const a=s._ceVNode||An(t,r);return a.appContext=o,!0===l?l="svg":!1===l&&(l=void 0),e(a,n,l),i=!0,s._container=n,n.__vue_app__=s,Yn(a.component)}},onUnmount(e){a.push(e)},unmount(){i&&(Pt(a,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s),runWithContext(e){const t=Mo;Mo=s;try{return e()}finally{Mo=t}}};return s}}let Mo=null;function jo(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||n;let a=r;const i=t.startsWith("update:"),s=i&&((e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${T(t)}Modifiers`]||e[`${j(t)}Modifiers`])(o,t.slice(7));let l;s&&(s.trim&&(a=r.map(e=>w(e)?e.trim():e)),s.number&&(a=r.map(D)));let c=o[l=O(t)]||o[l=O(T(t))];!c&&i&&(c=o[l=O(j(t))]),c&&Pt(c,e,6,a);const d=o[l+"Once"];if(d){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Pt(d,e,6,a)}}const $o=new WeakMap;function Oo(e,t,r=!1){const o=r?$o:t.emitsCache,n=o.get(e);if(void 0!==n)return n;const a=e.emits;let i={},s=!1;if(!b(e)){const o=e=>{const r=Oo(e,t,!0);r&&(s=!0,d(i,r))};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return a||s?(g(a)?a.forEach(e=>i[e]=null):d(i,a),k(e)&&o.set(e,i),i):(k(e)&&o.set(e,null),null)}function Po(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),h(e,t[0].toLowerCase()+t.slice(1))||h(e,j(t))||h(e,t))}function No(e){const{type:t,vnode:r,proxy:o,withProxy:n,propsOptions:[a],slots:i,attrs:s,emit:l,render:d,renderCache:u,props:p,data:h,setupState:g,ctx:f,inheritAttrs:m}=e,v=Xt(e);let b,w;try{if(4&r.shapeFlag){const e=n||o,t=e;b=$n(d.call(t,e,u,p,g,h,f)),w=s}else{const e=t;b=$n(e.length>1?e(p,{attrs:s,slots:i,emit:l}):e(p,null)),w=t.props?s:Lo(s)}}catch(k){fn.length=0,Nt(k,e,1),b=An(hn)}let y=b;if(w&&!1!==m){const e=Object.keys(w),{shapeFlag:t}=y;e.length&&7&t&&(a&&e.some(c)&&(w=Do(w,a)),y=Tn(y,w,!1,!0))}return r.dirs&&(y=Tn(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&$r(y,r.transition),b=y,Xt(v),b}const Lo=e=>{let t;for(const r in e)("class"===r||"style"===r||l(r))&&((t||(t={}))[r]=e[r]);return t},Do=(e,t)=>{const r={};for(const o in e)c(o)&&o.slice(9)in t||(r[o]=e[o]);return r};function Fo(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let n=0;n<o.length;n++){const a=o[n];if(Uo(t,e,a)&&!Po(r,a))return!0}return!1}function Uo(e,t,r){const o=e[r],n=t[r];return"style"===r&&k(o)&&k(n)?!K(o,n):o!==n}const Zo={},Bo=()=>Object.create(Zo),Vo=e=>Object.getPrototypeOf(e)===Zo;function Ro(e,t,r,o){const[a,i]=e.propsOptions;let s,l=!1;if(t)for(let n in t){if(I(n))continue;const c=t[n];let d;a&&h(a,d=T(n))?i&&i.includes(d)?(s||(s={}))[d]=c:r[d]=c:Po(e.emitsOptions,n)||n in o&&c===o[n]||(o[n]=c,l=!0)}if(i){const t=vt(r),o=s||n;for(let n=0;n<i.length;n++){const s=i[n];r[s]=Wo(a,t,s,o[s],e,!h(o,s))}}return l}function Wo(e,t,r,o,n,a){const i=e[r];if(null!=i){const e=h(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&!i.skipFactory&&b(e)){const{propsDefaults:a}=n;if(r in a)o=a[r];else{const i=Rn(n);o=a[r]=e.call(null,t),i()}}else o=e;n.ce&&n.ce._setProp(r,o)}i[0]&&(a&&!e?o=!1:!i[1]||""!==o&&o!==j(r)||(o=!0))}return o}const Ho=new WeakMap;function Go(e,t,r=!1){const o=r?Ho:t.propsCache,i=o.get(e);if(i)return i;const s=e.props,l={},c=[];let u=!1;if(!b(e)){const o=e=>{u=!0;const[r,o]=Go(e,t,!0);d(l,r),o&&c.push(...o)};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!u)return k(e)&&o.set(e,a),a;if(g(s))for(let a=0;a<s.length;a++){const e=T(s[a]);Jo(e)&&(l[e]=n)}else if(s)for(const n in s){const e=T(n);if(Jo(e)){const t=s[n],r=l[e]=g(t)||b(t)?{type:t}:d({},t),o=r.type;let a=!1,i=!0;if(g(o))for(let e=0;e<o.length;++e){const t=o[e],r=b(t)&&t.name;if("Boolean"===r){a=!0;break}"String"===r&&(i=!1)}else a=b(o)&&"Boolean"===o.name;r[0]=a,r[1]=i,(a||h(r,"default"))&&c.push(e)}}const p=[l,c];return k(e)&&o.set(e,p),p}function Jo(e){return"$"!==e[0]&&!I(e)}const qo=e=>"_"===e||"_ctx"===e||"$stable"===e,Ko=e=>g(e)?e.map($n):[$n(e)],Yo=(e,t,r)=>{if(t._n)return t;const o=er((...e)=>Ko(t(...e)),r);return o._c=!1,o},Qo=(e,t,r)=>{const o=e._ctx;for(const n in e){if(qo(n))continue;const r=e[n];if(b(r))t[n]=Yo(0,r,o);else if(null!=r){const e=Ko(r);t[n]=()=>e}}},Xo=(e,t)=>{const r=Ko(t);e.slots.default=()=>r},en=(e,t,r)=>{for(const o in t)!r&&qo(o)||(e[o]=t[o])},tn=function(e,t){var r;t&&t.pendingBranch?g(e)?t.effects.push(...e):t.effects.push(e):(g(r=e)?Ft.push(...r):Ut&&-1===r.id?Ut.splice(Zt+1,0,r):1&r.flags||(Ft.push(r),r.flags|=1),Ht())};function rn(e){return function(e){U().__VUE__=!0;const{insert:t,remove:r,patchProp:o,createElement:s,createText:l,createComment:c,setText:d,setElementText:u,parentNode:p,nextSibling:g,setScopeId:f=i,insertStaticContent:m}=e,v=(e,t,r,o=null,n=null,a=null,i=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Cn(e,t)&&(o=K(e),W(e,n,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case pn:b(e,t,r,o);break;case hn:w(e,t,r,o);break;case gn:null==e&&y(t,r,o,i);break;case un:M(e,t,r,o,n,a,i,s,l);break;default:1&u?k(e,t,r,o,n,a,i,s,l):6&u?$(e,t,r,o,n,a,i,s,l):(64&u||128&u)&&c.process(e,t,r,o,n,a,i,s,l,X)}null!=d&&n?Fr(d,e&&e.ref,a,t||e,!t):null==d&&e&&null!=e.ref&&Fr(e.ref,null,a,e,!0)},b=(e,r,o,n)=>{if(null==e)t(r.el=l(r.children),o,n);else{const t=r.el=e.el;r.children!==e.children&&d(t,r.children)}},w=(e,r,o,n)=>{null==e?t(r.el=c(r.children||""),o,n):r.el=e.el},y=(e,t,r,o)=>{[e.el,e.anchor]=m(e.children,t,r,o,e.el,e.anchor)},k=(e,t,r,o,n,a,i,s,l)=>{if("svg"===t.type?i="svg":"math"===t.type&&(i="mathml"),null==e)_(t,r,o,n,a,i,s,l);else{const r=e.el&&e.el._isVueCE?e.el:null;try{r&&r._beginPatch(),S(e,t,n,a,i,s,l)}finally{r&&r._endPatch()}}},_=(e,r,n,a,i,l,c,d)=>{let p,h;const{props:g,shapeFlag:f,transition:m,dirs:v}=e;if(p=e.el=s(e.type,l,g&&g.is,g),8&f?u(p,e.children):16&f&&z(e.children,p,null,a,i,on(e,l),c,d),v&&rr(e,null,a,"created"),C(p,e,e.scopeId,c,a),g){for(const e in g)"value"===e||I(e)||o(p,e,null,g[e],l,a);"value"in g&&o(p,"value",null,g.value,l),(h=g.onVnodeBeforeMount)&&Ln(h,a,e)}v&&rr(e,null,a,"beforeMount");const b=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(i,m);b&&m.beforeEnter(p),t(p,r,n),((h=g&&g.onVnodeMounted)||b||v)&&tn(()=>{h&&Ln(h,a,e),b&&m.enter(p),v&&rr(e,null,a,"mounted")},i)},C=(e,t,r,o,n)=>{if(r&&f(e,r),o)for(let a=0;a<o.length;a++)f(e,o[a]);if(n){let r=n.subTree;if(t===r||dn(r.type)&&(r.ssContent===t||r.ssFallback===t)){const t=n.vnode;C(e,t,t.scopeId,t.slotScopeIds,n.parent)}}},z=(e,t,r,o,n,a,i,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?On(e[c]):$n(e[c]);v(null,l,t,r,o,n,a,i,s)}},S=(e,t,r,a,i,s,l)=>{const c=t.el=e.el;let{patchFlag:d,dynamicChildren:p,dirs:h}=t;d|=16&e.patchFlag;const g=e.props||n,f=t.props||n;let m;if(r&&nn(r,!1),(m=f.onVnodeBeforeUpdate)&&Ln(m,r,t,e),h&&rr(t,e,r,"beforeUpdate"),r&&nn(r,!0),(g.innerHTML&&null==f.innerHTML||g.textContent&&null==f.textContent)&&u(c,""),p?A(e.dynamicChildren,p,c,r,a,on(t,i),s):l||Z(e,t,c,null,r,a,on(t,i),s,!1),d>0){if(16&d)E(c,g,f,r,i);else if(2&d&&g.class!==f.class&&o(c,"class",null,f.class,i),4&d&&o(c,"style",g.style,f.style,i),8&d){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t],a=g[n],s=f[n];s===a&&"value"!==n||o(c,n,a,s,i,r)}}1&d&&e.children!==t.children&&u(c,t.children)}else l||null!=p||E(c,g,f,r,i);((m=f.onVnodeUpdated)||h)&&tn(()=>{m&&Ln(m,r,t,e),h&&rr(t,e,r,"updated")},a)},A=(e,t,r,o,n,a,i)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],d=l.el&&(l.type===un||!Cn(l,c)||198&l.shapeFlag)?p(l.el):r;v(l,c,d,null,o,n,a,i,!0)}},E=(e,t,r,a,i)=>{if(t!==r){if(t!==n)for(const n in t)I(n)||n in r||o(e,n,t[n],null,i,a);for(const n in r){if(I(n))continue;const s=r[n],l=t[n];s!==l&&"value"!==n&&o(e,n,l,s,i,a)}"value"in r&&o(e,"value",t.value,r.value,i)}},M=(e,r,o,n,a,i,s,c,d)=>{const u=r.el=e?e.el:l(""),p=r.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:g,slotScopeIds:f}=r;f&&(c=c?c.concat(f):f),null==e?(t(u,o,n),t(p,o,n),z(r.children||[],o,p,a,i,s,c,d)):h>0&&64&h&&g&&e.dynamicChildren&&e.dynamicChildren.length===g.length?(A(e.dynamicChildren,g,o,a,i,s,c),(null!=r.key||a&&r===a.subTree)&&an(e,r,!0)):Z(e,r,o,p,a,i,s,c,d)},$=(e,t,r,o,n,a,i,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?n.ctx.activate(t,r,o,i,l):O(t,r,o,n,a,i,l):P(e,t,l)},O=(e,t,r,o,a,i,s)=>{const l=e.component=function(e,t,r){const o=e.type,a=(t?t.appContext:e.appContext)||Dn,i={uid:Fn++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new oe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Go(o,a),emitsOptions:Oo(o,a),emit:null,emitted:null,propsDefaults:n,inheritAttrs:o.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=jo.bind(null,i),e.ce&&e.ce(i),i}(e,o,a);if(Br(e)&&(l.ctx.renderer=X),function(e,t=!1,r=!1){t&&Vn(t);const{props:o,children:n}=e.vnode,a=Hn(e);(function(e,t,r,o=!1){const n={},a=Bo();e.propsDefaults=Object.create(null),Ro(e,t,n,a);for(const i in e.propsOptions[0])i in n||(n[i]=void 0);r?e.props=o?n:dt(n):e.type.props?e.props=n:e.props=a,e.attrs=a})(e,o,a,t),((e,t,r)=>{const o=e.slots=Bo();if(32&e.vnode.shapeFlag){const e=t._;e?(en(o,t,r),r&&L(o,"_",e,!0)):Qo(t,o)}else t&&Xo(e,t)})(e,n,r||t);a&&function(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fo);const{setup:o}=r;if(o){ye();const r=e.setupContext=o.length>1?function(e){return{attrs:new Proxy(e.attrs,Kn),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}(e):null,n=Rn(e),a=Ot(o,e,0,[e.props,r]),i=x(a);if(ke(),n(),!i&&!e.sp||Zr(e)||Nr(e),i){if(a.then(Wn,Wn),t)return a.then(t=>{Jn(e,t)}).catch(t=>{Nt(t,e,0)});e.asyncDep=a}else Jn(e,a)}else qn(e)}(e,t);t&&Vn(!1)}(l,!1,s),l.asyncDep){if(a&&a.registerDep(l,D,s),!e.el){const o=l.subTree=An(hn);w(null,o,t,r),e.placeholder=o.el}}else D(l,e,t,r,a,i,s)},P=(e,t,r)=>{const o=t.component=e.component;if(function(e,t,r){const{props:o,children:n,component:a}=e,{props:i,children:s,patchFlag:l}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&l>=0))return!(!n&&!s||s&&s.$stable)||o!==i&&(o?!i||Fo(o,i,c):!!i);if(1024&l)return!0;if(16&l)return o?Fo(o,i,c):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t];if(Uo(i,o,r)&&!Po(c,r))return!0}}return!1}(e,t,r)){if(o.asyncDep&&!o.asyncResolved)return void F(o,t,r);o.next=t,o.update()}else t.el=e.el,o.vnode=t},D=(e,t,r,o,n,a,i)=>{e.scope.on();const s=e.effect=new ae(()=>{if(e.isMounted){let{next:t,bu:r,u:o,parent:s,vnode:c}=e;{const r=sn(e);if(r)return t&&(t.el=c.el,F(e,t,i)),void r.asyncDep.then(()=>{tn(()=>{e.isUnmounted||l()},n)})}let d,u=t;nn(e,!1),t?(t.el=c.el,F(e,t,i)):t=c,r&&N(r),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ln(d,s,t,c),nn(e,!0);const h=No(e),g=e.subTree;e.subTree=h,v(g,h,p(g.el),K(g),e,n,a),t.el=h.el,null===u&&function({vnode:e,parent:t},r){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o!==e)break;(e=t.vnode).el=r,t=t.parent}}(e,h.el),o&&tn(o,n),(d=t.props&&t.props.onVnodeUpdated)&&tn(()=>Ln(d,s,t,c),n)}else{let i;const{el:s,props:l}=t,{bm:c,m:d,parent:u,root:p,type:h}=e,g=Zr(t);nn(e,!1),c&&N(c),!g&&(i=l&&l.onVnodeBeforeMount)&&Ln(i,u,t),nn(e,!0);{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(h);const i=e.subTree=No(e);v(null,i,r,o,e,n,a),t.el=i.el}if(d&&tn(d,n),!g&&(i=l&&l.onVnodeMounted)){const e=t;tn(()=>Ln(i,u,e),n)}(256&t.shapeFlag||u&&Zr(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&tn(e.a,n),e.isMounted=!0,t=r=o=null}});e.scope.off();const l=e.update=s.run.bind(s),c=e.job=s.runIfDirty.bind(s);c.i=e,c.id=e.uid,s.scheduler=()=>Wt(c),nn(e,!0),l()},F=(e,t,r)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,r,o){const{props:n,attrs:a,vnode:{patchFlag:i}}=e,s=vt(n),[l]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Ro(e,t,n,a)&&(c=!0);for(const a in s)t&&(h(t,a)||(o=j(a))!==a&&h(t,o))||(l?!r||void 0===r[a]&&void 0===r[o]||(n[a]=Wo(l,s,a,void 0,e,!0)):delete n[a]);if(a!==s)for(const e in a)t&&h(t,e)||(delete a[e],c=!0)}else if(8&i){const r=e.vnode.dynamicProps;for(let o=0;o<r.length;o++){let i=r[o];if(Po(e.emitsOptions,i))continue;const d=t[i];if(l)if(h(a,i))d!==a[i]&&(a[i]=d,c=!0);else{const t=T(i);n[t]=Wo(l,s,t,d,e,!1)}else d!==a[i]&&(a[i]=d,c=!0)}}c&&je(e.attrs,"set","")}(e,t.props,o,r),((e,t,r)=>{const{vnode:o,slots:a}=e;let i=!0,s=n;if(32&o.shapeFlag){const e=t._;e?r&&1===e?i=!1:en(a,t,r):(i=!t.$stable,Qo(t,a)),s=t}else t&&(Xo(e,t),s={default:1});if(i)for(const n in a)qo(n)||null!=s[n]||delete a[n]})(e,t.children,r),ye(),Gt(e),ke()},Z=(e,t,r,o,n,a,i,s,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:g}=t;if(h>0){if(128&h)return void V(c,p,r,o,n,a,i,s,l);if(256&h)return void B(c,p,r,o,n,a,i,s,l)}8&g?(16&d&&q(c,n,a),p!==c&&u(r,p)):16&d?16&g?V(c,p,r,o,n,a,i,s,l):q(c,n,a,!0):(8&d&&u(r,""),16&g&&z(p,r,o,n,a,i,s,l))},B=(e,t,r,o,n,i,s,l,c)=>{t=t||a;const d=(e=e||a).length,u=t.length,p=Math.min(d,u);let h;for(h=0;h<p;h++){const o=t[h]=c?On(t[h]):$n(t[h]);v(e[h],o,r,null,n,i,s,l,c)}d>u?q(e,n,i,!0,!1,p):z(t,r,o,n,i,s,l,c,p)},V=(e,t,r,o,n,i,s,l,c)=>{let d=0;const u=t.length;let p=e.length-1,h=u-1;for(;d<=p&&d<=h;){const o=e[d],a=t[d]=c?On(t[d]):$n(t[d]);if(!Cn(o,a))break;v(o,a,r,null,n,i,s,l,c),d++}for(;d<=p&&d<=h;){const o=e[p],a=t[h]=c?On(t[h]):$n(t[h]);if(!Cn(o,a))break;v(o,a,r,null,n,i,s,l,c),p--,h--}if(d>p){if(d<=h){const e=h+1,a=e<u?t[e].el:o;for(;d<=h;)v(null,t[d]=c?On(t[d]):$n(t[d]),r,a,n,i,s,l,c),d++}}else if(d>h)for(;d<=p;)W(e[d],n,i,!0),d++;else{const g=d,f=d,m=new Map;for(d=f;d<=h;d++){const e=t[d]=c?On(t[d]):$n(t[d]);null!=e.key&&m.set(e.key,d)}let b,w=0;const y=h-f+1;let k=!1,x=0;const _=new Array(y);for(d=0;d<y;d++)_[d]=0;for(d=g;d<=p;d++){const o=e[d];if(w>=y){W(o,n,i,!0);continue}let a;if(null!=o.key)a=m.get(o.key);else for(b=f;b<=h;b++)if(0===_[b-f]&&Cn(o,t[b])){a=b;break}void 0===a?W(o,n,i,!0):(_[a-f]=d+1,a>=x?x=a:k=!0,v(o,t[a],r,null,n,i,s,l,c),w++)}const C=k?function(e){const t=e.slice(),r=[0];let o,n,a,i,s;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(n=r[r.length-1],e[n]<l){t[o]=n,r.push(o);continue}for(a=0,i=r.length-1;a<i;)s=a+i>>1,e[r[s]]<l?a=s+1:i=s;l<e[r[a]]&&(a>0&&(t[o]=r[a-1]),r[a]=o)}}for(a=r.length,i=r[a-1];a-- >0;)r[a]=i,i=t[i];return r}(_):a;for(b=C.length-1,d=y-1;d>=0;d--){const e=f+d,a=t[e],p=t[e+1],h=e+1<u?p.el||cn(p):o;0===_[d]?v(null,a,r,h,n,i,s,l,c):k&&(b<0||d!==C[b]?R(a,r,h,2):b--)}}},R=(e,o,n,a,i=null)=>{const{el:s,type:l,transition:c,children:d,shapeFlag:u}=e;if(6&u)R(e.component.subTree,o,n,a);else if(128&u)e.suspense.move(o,n,a);else if(64&u)l.move(e,o,n,X);else if(l!==un)if(l!==gn)if(2!==a&&1&u&&c)if(0===a)c.beforeEnter(s),t(s,o,n),tn(()=>c.enter(s),i);else{const{leave:a,delayLeave:i,afterLeave:l}=c,d=()=>{e.ctx.isUnmounted?r(s):t(s,o,n)},u=()=>{s._isLeaving&&s[kr](!0),a(s,()=>{d(),l&&l()})};i?i(s,d,u):u()}else t(s,o,n);else(({el:e,anchor:r},o,n)=>{let a;for(;e&&e!==r;)a=g(e),t(e,o,n),e=a;t(r,o,n)})(e,o,n);else{t(s,o,n);for(let e=0;e<d.length;e++)R(d[e],o,n,a);t(e.anchor,o,n)}},W=(e,t,r,o=!1,n=!1)=>{const{type:a,props:i,ref:s,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:p,cacheIndex:h}=e;if(-2===u&&(n=!1),null!=s&&(ye(),Fr(s,null,r,e,!0),ke()),null!=h&&(t.renderCache[h]=void 0),256&d)return void t.ctx.deactivate(e);const g=1&d&&p,f=!Zr(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&Ln(m,t,e),6&d)J(e.component,r,o);else{if(128&d)return void e.suspense.unmount(r,o);g&&rr(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,r,X,o):c&&!c.hasOnce&&(a!==un||u>0&&64&u)?q(c,t,r,!1,!0):(a===un&&384&u||!n&&16&d)&&q(l,t,r),o&&H(e)}(f&&(m=i&&i.onVnodeUnmounted)||g)&&tn(()=>{m&&Ln(m,t,e),g&&rr(e,null,t,"unmounted")},r)},H=e=>{const{type:t,el:o,anchor:n,transition:a}=e;if(t===un)return void G(o,n);if(t===gn)return void(({el:e,anchor:t})=>{let o;for(;e&&e!==t;)o=g(e),r(e),e=o;r(t)})(e);const i=()=>{r(o),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:r}=a,n=()=>t(o,i);r?r(e.el,i,n):n()}else i()},G=(e,t)=>{let o;for(;e!==t;)o=g(e),r(e),e=o;r(t)},J=(e,t,r)=>{const{bum:o,scope:n,job:a,subTree:i,um:s,m:l,a:c}=e;ln(l),ln(c),o&&N(o),n.stop(),a&&(a.flags|=8,W(i,e,t,r)),s&&tn(s,t),tn(()=>{e.isUnmounted=!0},t)},q=(e,t,r,o=!1,n=!1,a=0)=>{for(let i=a;i<e.length;i++)W(e[i],t,r,o,n)},K=e=>{if(6&e.shapeFlag)return K(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=g(e.anchor||e.el),r=t&&t[cr];return r?g(r):t};let Y=!1;const Q=(e,t,r)=>{let o;null==e?t._vnode&&(W(t._vnode,null,null,!0),o=t._vnode.component):v(t._vnode||null,e,t,null,null,null,r),t._vnode=e,Y||(Y=!0,Gt(o),Jt(),Y=!1)},X={p:v,um:W,m:R,r:H,mt:O,mc:z,pc:Z,pbc:A,n:K,o:e};return{render:Q,hydrate:void 0,createApp:To(Q)}}(e)}function on({type:e,props:t},r){return"svg"===r&&"foreignObject"===e||"mathml"===r&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function nn({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function an(e,t,r=!1){const o=e.children,n=t.children;if(g(o)&&g(n))for(let a=0;a<o.length;a++){const e=o[a];let t=n[a];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=n[a]=On(n[a]),t.el=e.el),r||-2===t.patchFlag||an(e,t)),t.type===pn&&(-1===t.patchFlag&&(t=n[a]=On(t)),t.el=e.el),t.type!==hn||t.el||(t.el=e.el)}}function sn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sn(t)}function ln(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function cn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?cn(t.subTree):null}const dn=e=>e.__isSuspense,un=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),hn=Symbol.for("v-cmt"),gn=Symbol.for("v-stc"),fn=[];let mn=null;function vn(e=!1){fn.push(mn=e?null:[])}let bn=1;function wn(e,t=!1){bn+=e,e<0&&mn&&t&&(mn.hasOnce=!0)}function yn(e){return e.dynamicChildren=bn>0?mn||a:null,fn.pop(),mn=fn[fn.length-1]||null,bn>0&&mn&&mn.push(e),e}function kn(e,t,r,o,n,a){return yn(In(e,t,r,o,n,a,!0))}function xn(e,t,r,o,n){return yn(An(e,t,r,o,n,!0))}function _n(e){return!!e&&!0===e.__v_isVNode}function Cn(e,t){return e.type===t.type&&e.key===t.key}const zn=({key:e})=>null!=e?e:null,Sn=({ref:e,ref_key:t,ref_for:r})=>("number"==typeof e&&(e=""+e),null!=e?w(e)||yt(e)||b(e)?{i:Yt,r:e,k:t,f:!!r}:e:null);function In(e,t=null,r=null,o=0,n=null,a=(e===un?0:1),i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zn(t),ref:t&&Sn(t),scopeId:Qt,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:o,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Yt};return s?(Pn(l,r),128&a&&e.normalize(l)):r&&(l.shapeFlag|=w(r)?8:16),bn>0&&!i&&mn&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&mn.push(l),l}const An=function(e,t=null,r=null,o=0,n=null,a=!1){if(e&&e!==ao||(e=hn),_n(e)){const o=Tn(e,t,!0);return r&&Pn(o,r),bn>0&&!a&&mn&&(6&o.shapeFlag?mn[mn.indexOf(e)]=o:mn.push(o)),o.patchFlag=-2,o}var i;if(b(i=e)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=En(t);let{class:e,style:r}=t;e&&!w(e)&&(t.class=H(e)),k(r)&&(mt(r)&&!g(r)&&(r=d({},r)),t.style=Z(r))}return In(e,t,r,o,n,w(e)?1:dn(e)?128:dr(e)?64:k(e)?4:b(e)?2:0,a,!0)};function En(e){return e?mt(e)||Vo(e)?d({},e):e:null}function Tn(e,t,r=!1,o=!1){const{props:n,ref:a,patchFlag:i,children:s,transition:l}=e,c=t?Nn(n||{},t):n,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&zn(c),ref:t&&t.ref?r&&a?g(a)?a.concat(Sn(t)):[a,Sn(t)]:Sn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==un?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&$r(d,l.clone(d)),d}function Mn(e=" ",t=0){return An(pn,null,e,t)}function jn(e="",t=!1){return t?(vn(),xn(hn,null,e)):An(hn,null,e)}function $n(e){return null==e||"boolean"==typeof e?An(hn):g(e)?An(un,null,e.slice()):_n(e)?On(e):An(pn,null,String(e))}function On(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Tn(e)}function Pn(e,t){let r=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(g(t))r=16;else if("object"==typeof t){if(65&o){const r=t.default;return void(r&&(r._c&&(r._d=!1),Pn(e,r()),r._c&&(r._d=!0)))}{r=32;const o=t._;o||Vo(t)?3===o&&Yt&&(1===Yt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Yt}}else b(t)?(t={default:t,_ctx:Yt},r=32):(t=String(t),64&o?(r=16,t=[Mn(t)]):r=8);e.children=t,e.shapeFlag|=r}function Nn(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=H([t.class,o.class]));else if("style"===e)t.style=Z([t.style,o.style]);else if(l(e)){const r=t[e],n=o[e];!n||r===n||g(r)&&r.includes(n)||(t[e]=r?[].concat(r,n):n)}else""!==e&&(t[e]=o[e])}return t}function Ln(e,t,r,o=null){Pt(e,t,7,[r,o])}const Dn=Ao();let Fn=0,Un=null;const Zn=()=>Un||Yt;let Bn,Vn;{const e=U(),t=(t,r)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(r),e=>{o.length>1?o.forEach(t=>t(e)):o[0](e)}};Bn=t("__VUE_INSTANCE_SETTERS__",e=>Un=e),Vn=t("__VUE_SSR_SETTERS__",e=>Gn=e)}const Rn=e=>{const t=Un;return Bn(e),e.scope.on(),()=>{e.scope.off(),Bn(t)}},Wn=()=>{Un&&Un.scope.off(),Bn(null)};function Hn(e){return 4&e.vnode.shapeFlag}let Gn=!1;function Jn(e,t,r){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=It(t)),qn(e)}function qn(e,t,r){const o=e.type;e.render||(e.render=o.render||i);{const t=Rn(e);ye();try{!function(e){const t=yo(e),r=e.proxy,o=e.ctx;vo=!1,t.beforeCreate&&bo(t.beforeCreate,e,"bc");const{data:n,computed:a,methods:s,watch:l,provide:c,inject:d,created:u,beforeMount:p,mounted:h,beforeUpdate:f,updated:m,activated:v,deactivated:w,beforeDestroy:y,beforeUnmount:x,destroyed:_,unmounted:C,render:z,renderTracked:S,renderTriggered:I,errorCaptured:A,serverPrefetch:E,expose:T,inheritAttrs:M,components:j,directives:$,filters:O}=t;if(d&&function(e,t){g(e)&&(e=Co(e));for(const r in e){const o=e[r];let n;n=k(o)?"default"in o?or(o.from||r,o.default,!0):or(o.from||r):or(o),yt(n)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>n.value,set:e=>n.value=e}):t[r]=n}}(d,o),s)for(const i in s){const e=s[i];b(e)&&(o[i]=e.bind(r))}if(n){const t=n.call(r,r);k(t)&&(e.data=ct(t))}if(vo=!0,a)for(const g in a){const e=a[g],t=b(e)?e.bind(r,r):b(e.get)?e.get.bind(r,r):i,n=!b(e)&&b(e.set)?e.set.bind(r):i,s=Qn({get:t,set:n});Object.defineProperty(o,g,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(l)for(const i in l)wo(l[i],o,r,i);if(c){const e=b(c)?c.call(r):c;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(Un){let r=Un.provides;const o=Un.parent&&Un.parent.provides;o===r&&(r=Un.provides=Object.create(o)),r[e]=t}}(t,e[t])})}function P(e,t){g(t)?t.forEach(t=>e(t.bind(r))):t&&e(t.bind(r))}if(u&&bo(u,e,"c"),P(qr,p),P(Kr,h),P(Yr,f),P(Qr,m),P(Vr,v),P(Rr,w),P(no,A),P(oo,S),P(ro,I),P(Xr,x),P(eo,C),P(to,E),g(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach(e=>{Object.defineProperty(t,e,{get:()=>r[e],set:t=>r[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===i&&(e.render=z),null!=M&&(e.inheritAttrs=M),j&&(e.components=j),$&&(e.directives=$),E&&Nr(e)}(e)}finally{ke(),t()}}}const Kn={get:(e,t)=>(Me(e,0,""),e[t])};function Yn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(It((t=e.exposed,!h(t,"__v_skip")&&Object.isExtensible(t)&&L(t,"__v_skip",!0),t)),{get:(t,r)=>r in t?t[r]:r in ho?ho[r](e):void 0,has:(e,t)=>t in e||t in ho})):e.proxy;var t}const Qn=(e,t)=>Et(e,0,Gn),Xn="3.5.28";let ea;const ta="undefined"!=typeof window&&window.trustedTypes;if(ta)try{ea=ta.createPolicy("vue",{createHTML:e=>e})}catch(gv){}const ra=ea?e=>ea.createHTML(e):e=>e,oa="undefined"!=typeof document?document:null,na=oa&&oa.createElement("template"),aa={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const n="svg"===t?oa.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?oa.createElementNS("http://www.w3.org/1998/Math/MathML",e):r?oa.createElement(e,{is:r}):oa.createElement(e);return"select"===e&&o&&null!=o.multiple&&n.setAttribute("multiple",o.multiple),n},createText:e=>oa.createTextNode(e),createComment:e=>oa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>oa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,n,a){const i=r?r.previousSibling:t.lastChild;if(n&&(n===a||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),r),n!==a&&(n=n.nextSibling););else{na.innerHTML=ra("svg"===o?`<svg>${e}</svg>`:"mathml"===o?`<math>${e}</math>`:e);const n=na.content;if("svg"===o||"mathml"===o){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}t.insertBefore(n,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},ia="transition",sa="animation",la=Symbol("_vtc"),ca={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},da=d({},zr,ca),ua=(e=>(e.displayName="Transition",e.props=da,e))((e,{slots:t})=>function(e,t,r){try{wn(-1);const o=arguments.length;return 2===o?k(t)&&!g(t)?_n(t)?An(e,null,[t]):An(e,t):An(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):3===o&&_n(r)&&(r=[r]),An(e,t,r))}finally{wn(1)}}(Ar,ga(e),t)),pa=(e,t=[])=>{g(e)?e.forEach(e=>e(...t)):e&&e(...t)},ha=e=>!!e&&(g(e)?e.some(e=>e.length>1):e.length>1);function ga(e){const t={};for(const d in e)d in ca||(t[d]=e[d]);if(!1===e.css)return t;const{name:r="v",type:o,duration:n,enterFromClass:a=`${r}-enter-from`,enterActiveClass:i=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:c=i,appearToClass:u=s,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:g=`${r}-leave-to`}=e,f=function(e){if(null==e)return null;if(k(e))return[fa(e.enter),fa(e.leave)];{const t=fa(e);return[t,t]}}(n),m=f&&f[0],v=f&&f[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:y,onLeave:x,onLeaveCancelled:_,onBeforeAppear:C=b,onAppear:z=w,onAppearCancelled:S=y}=t,I=(e,t,r,o)=>{e._enterCancelled=o,va(e,t?u:s),va(e,t?c:i),r&&r()},A=(e,t)=>{e._isLeaving=!1,va(e,p),va(e,g),va(e,h),t&&t()},E=e=>(t,r)=>{const n=e?z:w,i=()=>I(t,e,r);pa(n,[t,i]),ba(()=>{va(t,e?l:a),ma(t,e?u:s),ha(n)||ya(t,o,m,i)})};return d(t,{onBeforeEnter(e){pa(b,[e]),ma(e,a),ma(e,i)},onBeforeAppear(e){pa(C,[e]),ma(e,l),ma(e,c)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;const r=()=>A(e,t);ma(e,p),e._enterCancelled?(ma(e,h),Ca(e)):(Ca(e),ma(e,h)),ba(()=>{e._isLeaving&&(va(e,p),ma(e,g),ha(x)||ya(e,o,v,r))}),pa(x,[e,r])},onEnterCancelled(e){I(e,!1,void 0,!0),pa(y,[e])},onAppearCancelled(e){I(e,!0,void 0,!0),pa(S,[e])},onLeaveCancelled(e){A(e),pa(_,[e])}})}function fa(e){const t=(e=>{const t=w(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function ma(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[la]||(e[la]=new Set)).add(t)}function va(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const r=e[la];r&&(r.delete(t),r.size||(e[la]=void 0))}function ba(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wa=0;function ya(e,t,r,o){const n=e._endId=++wa,a=()=>{n===e._endId&&o()};if(null!=r)return setTimeout(a,r);const{type:i,timeout:s,propCount:l}=ka(e,t);if(!i)return o();const c=i+"end";let d=0;const u=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++d>=l&&u()};setTimeout(()=>{d<l&&u()},s+1),e.addEventListener(c,p)}function ka(e,t){const r=window.getComputedStyle(e),o=e=>(r[e]||"").split(", "),n=o(`${ia}Delay`),a=o(`${ia}Duration`),i=xa(n,a),s=o(`${sa}Delay`),l=o(`${sa}Duration`),c=xa(s,l);let d=null,u=0,p=0;return t===ia?i>0&&(d=ia,u=i,p=a.length):t===sa?c>0&&(d=sa,u=c,p=l.length):(u=Math.max(i,c),d=u>0?i>c?ia:sa:null,p=d?d===ia?a.length:l.length:0),{type:d,timeout:u,propCount:p,hasTransform:d===ia&&/\b(?:transform|all)(?:,|$)/.test(o(`${ia}Property`).toString())}}function xa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,r)=>_a(t)+_a(e[r])))}function _a(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ca(e){return(e?e.ownerDocument:document).body.offsetHeight}const za=Symbol("_vod"),Sa=Symbol("_vsh"),Ia=Symbol(""),Aa=/(?:^|;)\s*display\s*:/,Ea=/\s*!important$/;function Ta(e,t,r){if(g(r))r.forEach(r=>Ta(e,t,r));else if(null==r&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=function(e,t){const r=ja[t];if(r)return r;let o=T(t);if("filter"!==o&&o in e)return ja[t]=o;o=$(o);for(let n=0;n<Ma.length;n++){const r=Ma[n]+o;if(r in e)return ja[t]=r}return t}(e,t);Ea.test(r)?e.setProperty(j(o),r.replace(Ea,""),"important"):e[o]=r}}const Ma=["Webkit","Moz","ms"],ja={},$a="http://www.w3.org/1999/xlink";function Oa(e,t,r,o,n,a=J(t)){o&&t.startsWith("xlink:")?null==r?e.removeAttributeNS($a,t.slice(6,t.length)):e.setAttributeNS($a,t,r):null==r||a&&!q(r)?e.removeAttribute(t):e.setAttribute(t,a?"":y(r)?String(r):r)}function Pa(e,t,r,o,n){if("innerHTML"===t||"textContent"===t)return void(null!=r&&(e[t]="innerHTML"===t?ra(r):r));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const o="OPTION"===a?e.getAttribute("value")||"":e.value,n=null==r?"checkbox"===e.type?"on":"":String(r);return o===n&&"_value"in e||(e.value=n),null==r&&e.removeAttribute(t),void(e._value=r)}let i=!1;if(""===r||null==r){const o=typeof e[t];"boolean"===o?r=q(r):null==r&&"string"===o?(r="",i=!0):"number"===o&&(r=0,i=!0)}try{e[t]=r}catch(gv){}i&&e.removeAttribute(n||t)}function Na(e,t,r,o){e.addEventListener(t,r,o)}const La=Symbol("_vei");const Da=/(?:Once|Passive|Capture)$/;let Fa=0;const Ua=Promise.resolve(),Za=()=>Fa||(Ua.then(()=>Fa=0),Fa=Date.now()),Ba=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Va=new WeakMap,Ra=new WeakMap,Wa=Symbol("_moveCb"),Ha=Symbol("_enterCb"),Ga=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:d({},da,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Zn(),o=_r();let n,a;return Qr(()=>{if(!n.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,r){const o=e.cloneNode(),n=e[la];n&&n.forEach(e=>{e.split(/\s+/).forEach(e=>e&&o.classList.remove(e))}),r.split(/\s+/).forEach(e=>e&&o.classList.add(e)),o.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(o);const{hasTransform:i}=ka(o);return a.removeChild(o),i}(n[0].el,r.vnode.el,t))return void(n=[]);n.forEach(Ja),n.forEach(qa);const o=n.filter(Ka);Ca(r.vnode.el),o.forEach(e=>{const r=e.el,o=r.style;ma(r,t),o.transform=o.webkitTransform=o.transitionDuration="";const n=r[Wa]=e=>{e&&e.target!==r||e&&!e.propertyName.endsWith("transform")||(r.removeEventListener("transitionend",n),r[Wa]=null,va(r,t))};r.addEventListener("transitionend",n)}),n=[]}),()=>{const i=vt(e),s=ga(i);let l=i.tag||un;if(n=[],a)for(let e=0;e<a.length;e++){const t=a[e];t.el&&t.el instanceof Element&&(n.push(t),$r(t,Tr(t,s,o,r)),Va.set(t,Ya(t.el)))}a=t.default?Or(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&$r(t,Tr(t,s,o,r))}return An(l,null,a)}}});function Ja(e){const t=e.el;t[Wa]&&t[Wa](),t[Ha]&&t[Ha]()}function qa(e){Ra.set(e,Ya(e.el))}function Ka(e){const t=Va.get(e),r=Ra.get(e),o=t.left-r.left,n=t.top-r.top;if(o||n){const t=e.el,r=t.style,a=t.getBoundingClientRect();let i=1,s=1;return t.offsetWidth&&(i=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(i)&&0!==i||(i=1),Number.isFinite(s)&&0!==s||(s=1),Math.abs(i-1)<.01&&(i=1),Math.abs(s-1)<.01&&(s=1),r.transform=r.webkitTransform=`translate(${o/i}px,${n/s}px)`,r.transitionDuration="0s",e}}function Ya(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const Qa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return g(t)?e=>N(t,e):t};function Xa(e){e.target.composing=!0}function ei(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ti=Symbol("_assign");function ri(e,t,r){return t&&(e=e.trim()),r&&(e=D(e)),e}const oi={created(e,{modifiers:{lazy:t,trim:r,number:o}},n){e[ti]=Qa(n);const a=o||n.props&&"number"===n.props.type;Na(e,t?"change":"input",t=>{t.target.composing||e[ti](ri(e.value,r,a))}),(r||a)&&Na(e,"change",()=>{e.value=ri(e.value,r,a)}),t||(Na(e,"compositionstart",Xa),Na(e,"compositionend",ei),Na(e,"change",ei))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:n,number:a}},i){if(e[ti]=Qa(i),e.composing)return;const s=null==t?"":t;if((!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:D(e.value))!==s){if(document.activeElement===e&&"range"!==e.type){if(o&&t===r)return;if(n&&e.value.trim()===s)return}e.value=s}}},ni=["ctrl","shift","alt","meta"],ai={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ni.some(r=>e[`${r}Key`]&&!t.includes(r))},ii=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(r,...o)=>{for(let e=0;e<t.length;e++){const o=ai[t[e]];if(o&&o(r,t))return}return e(r,...o)})},si={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},li=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=r=>{if(!("key"in r))return;const o=j(r.key);return t.some(e=>e===o||si[e]===o)?e(r):void 0})},ci=d({patchProp:(e,t,r,o,n,a)=>{const i="svg"===n;"class"===t?function(e,t,r){const o=e[la];o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}(e,o,i):"style"===t?function(e,t,r){const o=e.style,n=w(r);let a=!1;if(r&&!n){if(t)if(w(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==r[t]&&Ta(o,t,"")}else for(const e in t)null==r[e]&&Ta(o,e,"");for(const e in r)"display"===e&&(a=!0),Ta(o,e,r[e])}else if(n){if(t!==r){const e=o[Ia];e&&(r+=";"+e),o.cssText=r,a=Aa.test(r)}}else t&&e.removeAttribute("style");za in e&&(e[za]=a?o.display:"",e[Sa]&&(o.display="none"))}(e,r,o):l(t)?c(t)||function(e,t,r,o,n=null){const a=e[La]||(e[La]={}),i=a[t];if(o&&i)i.value=o;else{const[r,s]=function(e){let t;if(Da.test(e)){let r;for(t={};r=e.match(Da);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):j(e.slice(2)),t]}(t);if(o){const i=a[t]=function(e,t){const r=e=>{if(e._vts){if(e._vts<=r.attached)return}else e._vts=Date.now();Pt(function(e,t){if(g(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,r.value),t,5,[e])};return r.value=e,r.attached=Za(),r}(o,n);Na(e,r,i,s)}else i&&(function(e,t,r,o){e.removeEventListener(t,r,o)}(e,r,i,s),a[t]=void 0)}}(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,r,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ba(t)&&b(r));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!Ba(t)||!w(r))&&t in e}(e,t,o,i))?(Pa(e,t,o),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Oa(e,t,o,i,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&w(o)?("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),Oa(e,t,o,i)):Pa(e,T(t),o,0,t)}},aa);let di;const ui=(...e)=>{const t=(di||(di=rn(ci))).createApp(...e),{mount:r}=t;return t.mount=e=>{const o=function(e){return w(e)?document.querySelector(e):e}(e);if(!o)return;const n=t._component;b(n)||n.render||n.template||(n.template=o.innerHTML),1===o.nodeType&&(o.textContent="");const a=r(o,!1,function(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t},pi="https://app.pagelines.com";function hi(e,t,r){function o(r,o){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:o,constr:i,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,o);const n=i.prototype,a=Object.keys(n);for(let e=0;e<a.length;e++){const t=a[e];t in r||(r[t]=n[t].bind(r))}}const n=r?.Parent??Object;class a extends n{}function i(e){var t;const n=r?.Parent?new a:this;o(n,e),(t=n._zod).deferred??(t.deferred=[]);for(const r of n._zod.deferred)r();return n}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(i,"init",{value:o}),Object.defineProperty(i,Symbol.hasInstance,{value:t=>!!(r?.Parent&&t instanceof r.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class gi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class fi extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const mi={};function vi(e){return mi}function bi(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function wi(e,t){return"bigint"==typeof t?t.toString():t}function yi(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ki(e){return null==e}function xi(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const _i=Symbol("evaluating");function Ci(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==_i)return void 0===o&&(o=_i,o=r()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function zi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Si(...e){const t={};for(const r of e){const e=Object.getOwnPropertyDescriptors(r);Object.assign(t,e)}return Object.defineProperties({},t)}function Ii(e){return JSON.stringify(e)}const Ai="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ei(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}const Ti=yi(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Mi(e){if(!1===Ei(e))return!1;const t=e.constructor;if(void 0===t)return!0;if("function"!=typeof t)return!0;const r=t.prototype;return!1!==Ei(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function ji(e){return Mi(e)?{...e}:Array.isArray(e)?[...e]:e}const $i=new Set(["string","number","symbol"]);function Oi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Pi(e,t,r){const o=new e._zod.constr(t??e._zod.def);return t&&!r?.parent||(o._zod.parent=e),o}function Ni(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}const Li={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Di(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(!0!==e.issues[r]?.continue)return!0;return!1}function Fi(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Ui(e){return"string"==typeof e?e:e?.message}function Zi(e,t,r){const o={...e,path:e.path??[]};if(!e.message){const n=Ui(e.inst?._zod.def?.error?.(e))??Ui(t?.error?.(e))??Ui(r.customError?.(e))??Ui(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function Bi(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function Vi(...e){const[t,r,o]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:o}:{...t}}const Ri=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wi,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wi=hi("$ZodError",Ri),Hi=hi("$ZodError",Ri,{Parent:Error}),Gi=e=>(t,r,o,n)=>{const a=o?Object.assign(o,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},a);if(i instanceof Promise)throw new gi;if(i.issues.length){const t=new(n?.Err??e)(i.issues.map(e=>Zi(e,a,vi())));throw Ai(t,n?.callee),t}return i.value},Ji=e=>async(t,r,o,n)=>{const a=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const t=new(n?.Err??e)(i.issues.map(e=>Zi(e,a,vi())));throw Ai(t,n?.callee),t}return i.value},qi=e=>(t,r,o)=>{const n=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new gi;return a.issues.length?{success:!1,error:new(e??Wi)(a.issues.map(e=>Zi(e,n,vi())))}:{success:!0,data:a.value}},Ki=qi(Hi),Yi=e=>async(t,r,o)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Zi(e,n,vi())))}:{success:!0,data:a.value}},Qi=Yi(Hi),Xi=e=>(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Gi(e)(t,r,n)},es=e=>(t,r,o)=>Gi(e)(t,r,o),ts=e=>async(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ji(e)(t,r,n)},rs=e=>async(t,r,o)=>Ji(e)(t,r,o),os=e=>(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return qi(e)(t,r,n)},ns=e=>(t,r,o)=>qi(e)(t,r,o),as=e=>async(t,r,o)=>{const n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Yi(e)(t,r,n)},is=e=>async(t,r,o)=>Yi(e)(t,r,o),ss=/^[cC][^\s-]{8,}$/,ls=/^[0-9a-z]+$/,cs=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ds=/^[0-9a-vA-V]{20}$/,us=/^[A-Za-z0-9]{27}$/,ps=/^[a-zA-Z0-9_-]{21}$/,hs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,gs=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,fs=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ms=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bs=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ws=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ys=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ks=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xs=/^[A-Za-z0-9_-]*$/,_s=/^\+[1-9]\d{6,14}$/,Cs="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",zs=new RegExp(`^${Cs}$`);function Ss(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}const Is=/^-?\d+$/,As=/^-?\d+(?:\.\d+)?$/,Es=/^(?:true|false)$/i,Ts=/^[^A-Z]*$/,Ms=/^[^a-z]*$/,js=hi("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),$s={number:"number",bigint:"bigint",object:"date"},Os=hi("$ZodCheckLessThan",(e,t)=>{js.init(e,t);const r=$s[typeof t.value];e._zod.onattach.push(e=>{const r=e._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ps=hi("$ZodCheckGreaterThan",(e,t)=>{js.init(e,t);const r=$s[typeof t.value];e._zod.onattach.push(e=>{const r=e._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ns=hi("$ZodCheckMultipleOf",(e,t)=>{js.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===function(e,t){const r=(e.toString().split(".")[1]||"").length,o=t.toString();let n=(o.split(".")[1]||"").length;if(0===n&&/\d?e-\d?/.test(o)){const e=o.match(/\d?e-(\d?)/);e?.[1]&&(n=Number.parseInt(e[1]))}const a=r>n?r:n;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ls=hi("$ZodCheckNumberFormat",(e,t)=>{js.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),o=r?"int":"number",[n,a]=Li[t.format];e._zod.onattach.push(e=>{const o=e._zod.bag;o.format=t.format,o.minimum=n,o.maximum=a,r&&(o.pattern=Is)}),e._zod.check=i=>{const s=i.value;if(r){if(!Number.isInteger(s))return void i.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}))}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>a&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Ds=hi("$ZodCheckMaxLength",(e,t)=>{var r;js.init(e,t),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!ki(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const r=e._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const n=Bi(o);r.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Fs=hi("$ZodCheckMinLength",(e,t)=>{var r;js.init(e,t),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!ki(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const r=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const n=Bi(o);r.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Us=hi("$ZodCheckLengthEquals",(e,t)=>{var r;js.init(e,t),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!ki(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{const o=r.value,n=o.length;if(n===t.length)return;const a=Bi(o),i=n>t.length;r.issues.push({origin:a,...i?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Zs=hi("$ZodCheckStringFormat",(e,t)=>{var r,o;js.init(e,t),e._zod.onattach.push(e=>{const r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Bs=hi("$ZodCheckRegex",(e,t)=>{Zs.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vs=hi("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ts),Zs.init(e,t)}),Rs=hi("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ms),Zs.init(e,t)}),Ws=hi("$ZodCheckIncludes",(e,t)=>{js.init(e,t);const r=Oi(t.includes),o=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Hs=hi("$ZodCheckStartsWith",(e,t)=>{js.init(e,t);const r=new RegExp(`^${Oi(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Gs=hi("$ZodCheckEndsWith",(e,t)=>{js.init(e,t);const r=new RegExp(`.*${Oi(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Js=hi("$ZodCheckOverwrite",(e,t)=>{js.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class qs{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length)),o=t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e);for(const n of o)this.content.push(n)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}const Ks={major:4,minor:3,patch:6},Ys=hi("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ks;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const n of o)for(const t of n._zod.onattach)t(e);if(0===o.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,r)=>{let o,n=Di(e);for(const a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(n)continue;const t=e.issues.length,i=a._zod.check(e);if(i instanceof Promise&&!1===r?.async)throw new gi;if(o||i instanceof Promise)o=(o??Promise.resolve()).then(async()=>{await i,e.issues.length!==t&&(n||(n=Di(e,t)))});else{if(e.issues.length===t)continue;n||(n=Di(e,t))}}return o?o.then(()=>e):e},r=(r,n,a)=>{if(Di(r))return r.aborted=!0,r;const i=t(n,o,a);if(i instanceof Promise){if(!1===a.async)throw new gi;return i.then(t=>e._zod.parse(t,a))}return e._zod.parse(i,a)};e._zod.run=(n,a)=>{if(a.skipChecks)return e._zod.parse(n,a);if("backward"===a.direction){const t=e._zod.parse({value:n.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,n,a)):r(t,n,a)}const i=e._zod.parse(n,a);if(i instanceof Promise){if(!1===a.async)throw new gi;return i.then(e=>t(e,o,a))}return t(i,o,a)}}Ci(e,"~standard",()=>({validate:t=>{try{const r=Ki(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return Qi(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),Qs=hi("$ZodString",(e,t)=>{var r;Ys.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(r=e._zod.bag,new RegExp(`^${r?`[\\s\\S]{${r?.minimum??0},${r?.maximum??""}}`:"[\\s\\S]*"}$`)),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch(n){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Xs=hi("$ZodStringFormat",(e,t)=>{Zs.init(e,t),Qs.init(e,t)}),el=hi("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=gs),Xs.init(e,t)}),tl=hi("$ZodUUID",(e,t)=>{if(t.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=fs(e))}else t.pattern??(t.pattern=fs());Xs.init(e,t)}),rl=hi("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ms),Xs.init(e,t)}),ol=hi("$ZodURL",(e,t)=>{Xs.init(e,t),e._zod.check=r=>{try{const o=r.value.trim(),n=new URL(o);return t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),void(t.normalize?r.value=n.href:r.value=o)}catch(o){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),nl=hi("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Xs.init(e,t)}),al=hi("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ps),Xs.init(e,t)}),il=hi("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ss),Xs.init(e,t)}),sl=hi("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ls),Xs.init(e,t)}),ll=hi("$ZodULID",(e,t)=>{t.pattern??(t.pattern=cs),Xs.init(e,t)}),cl=hi("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ds),Xs.init(e,t)}),dl=hi("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=us),Xs.init(e,t)}),ul=hi("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=function(e){const t=Ss({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Cs}T(?:${o})$`)}(t)),Xs.init(e,t)}),pl=hi("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=zs),Xs.init(e,t)}),hl=hi("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=new RegExp(`^${Ss(t)}$`)),Xs.init(e,t)}),gl=hi("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hs),Xs.init(e,t)}),fl=hi("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vs),Xs.init(e,t),e._zod.bag.format="ipv4"}),ml=hi("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=bs),Xs.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),vl=hi("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ws),Xs.init(e,t)}),bl=hi("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ys),Xs.init(e,t),e._zod.check=r=>{const o=r.value.split("/");try{if(2!==o.length)throw new Error;const[e,t]=o;if(!t)throw new Error;const r=Number(t);if(`${r}`!==t)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function wl(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}const yl=hi("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ks),Xs.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{wl(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),kl=hi("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=xs),Xs.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{(function(e){if(!xs.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return wl(t.padEnd(4*Math.ceil(t.length/4),"="))})(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),xl=hi("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_s),Xs.init(e,t)}),_l=hi("$ZodJWT",(e,t)=>{Xs.init(e,t),e._zod.check=r=>{(function(e,t=null){try{const r=e.split(".");if(3!==r.length)return!1;const[o]=r;if(!o)return!1;const n=JSON.parse(atob(o));return!("typ"in n&&"JWT"!==n?.typ||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}})(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Cl=hi("$ZodNumber",(e,t)=>{Ys.init(e,t),e._zod.pattern=e._zod.bag.pattern??As,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch(i){}const n=r.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return r;const a="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),zl=hi("$ZodNumberFormat",(e,t)=>{Ls.init(e,t),Cl.init(e,t)}),Sl=hi("$ZodBoolean",(e,t)=>{Ys.init(e,t),e._zod.pattern=Es,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Boolean(r.value)}catch(a){}const n=r.value;return"boolean"==typeof n||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Il=hi("$ZodAny",(e,t)=>{Ys.init(e,t),e._zod.parse=e=>e}),Al=hi("$ZodUnknown",(e,t)=>{Ys.init(e,t),e._zod.parse=e=>e}),El=hi("$ZodNever",(e,t)=>{Ys.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function Tl(e,t,r){e.issues.length&&t.issues.push(...Fi(r,e.issues)),t.value[r]=e.value}const Ml=hi("$ZodArray",(e,t)=>{Ys.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const a=[];for(let e=0;e<n.length;e++){const i=n[e],s=t.element._zod.run({value:i,issues:[]},o);s instanceof Promise?a.push(s.then(t=>Tl(t,r,e))):Tl(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function jl(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Fi(r,e.issues))}void 0===e.value?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function $l(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=(o=e.shape,Object.keys(o).filter(e=>"optional"===o[e]._zod.optin&&"optional"===o[e]._zod.optout));var o;return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Ol(e,t,r,o,n,a){const i=[],s=n.keySet,l=n.catchall._zod,c=l.def.type,d="optional"===l.optout;for(const u in t){if(s.has(u))continue;if("never"===c){i.push(u);continue}const n=l.run({value:t[u],issues:[]},o);n instanceof Promise?e.push(n.then(e=>jl(e,r,u,t,d))):jl(n,r,u,t,d)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}const Pl=hi("$ZodObject",(e,t)=>{Ys.init(e,t);const r=Object.getOwnPropertyDescriptor(t,"shape");if(!r?.get){const e=t.shape;Object.defineProperty(t,"shape",{get:()=>{const r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}const o=yi(()=>$l(t));Ci(e._zod,"propValues",()=>{const e=t.shape,r={};for(const t in e){const o=e[t]._zod;if(o.values){r[t]??(r[t]=new Set);for(const e of o.values)r[t].add(e)}}return r});const n=Ei,a=t.catchall;let i;e._zod.parse=(t,r)=>{i??(i=o.value);const s=t.value;if(!n(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};const l=[],c=i.shape;for(const e of i.keys){const o=c[e],n="optional"===o._zod.optout,a=o._zod.run({value:s[e],issues:[]},r);a instanceof Promise?l.push(a.then(r=>jl(r,t,e,s,n))):jl(a,t,e,s,n)}return a?Ol(l,s,t,r,o.value,e):l.length?Promise.all(l).then(()=>t):t}}),Nl=hi("$ZodObjectJIT",(e,t)=>{Pl.init(e,t);const r=e._zod.parse,o=yi(()=>$l(t));let n;const a=Ei,i=!mi.jitless,s=i&&Ti.value,l=t.catchall;let c;e._zod.parse=(d,u)=>{c??(c=o.value);const p=d.value;return a(p)?i&&s&&!1===u?.async&&!0!==u.jitless?(n||(n=(e=>{const t=new qs(["shape","payload","ctx"]),r=o.value,n=e=>{const t=Ii(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const a=Object.create(null);let i=0;for(const o of r.keys)a[o]="key_"+i++;t.write("const newResult = {};");for(const o of r.keys){const r=a[o],i=Ii(o),s=e[o],l="optional"===s?._zod?.optout;t.write(`const ${r} = ${n(o)};`),l?t.write(`\n if (${r}.issues.length) {\n if (${i} in input) {\n payload.issues = payload.issues.concat(${r}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${i}, ...iss.path] : [${i}]\n })));\n }\n }\n \n if (${r}.value === undefined) {\n if (${i} in input) {\n newResult[${i}] = undefined;\n }\n } else {\n newResult[${i}] = ${r}.value;\n }\n \n `):t.write(`\n if (${r}.issues.length) {\n payload.issues = payload.issues.concat(${r}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${i}, ...iss.path] : [${i}]\n })));\n }\n \n if (${r}.value === undefined) {\n if (${i} in input) {\n newResult[${i}] = undefined;\n }\n } else {\n newResult[${i}] = ${r}.value;\n }\n \n `)}t.write("payload.value = newResult;"),t.write("return payload;");const s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),d=n(d,u),l?Ol([],p,d,u,c,e):d):r(d,u):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ll(e,t,r,o){for(const a of e)if(0===a.issues.length)return t.value=a.value,t;const n=e.filter(e=>!Di(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>Zi(e,o,vi())))}),t)}const Dl=hi("$ZodUnion",(e,t)=>{Ys.init(e,t),Ci(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),Ci(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),Ci(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Ci(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){const e=t.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>xi(e.source)).join("|")})$`)}});const r=1===t.options.length,o=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return o(n,a);let i=!1;const s=[];for(const e of t.options){const t=e._zod.run({value:n.value,issues:[]},a);if(t instanceof Promise)s.push(t),i=!0;else{if(0===t.issues.length)return t;s.push(t)}}return i?Promise.all(s).then(t=>Ll(t,n,e,a)):Ll(s,n,e,a)}}),Fl=hi("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Dl.init(e,t);const r=e._zod.parse;Ci(e._zod,"propValues",()=>{const e={};for(const r of t.options){const o=r._zod.propValues;if(!o||0===Object.keys(o).length)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[t,r]of Object.entries(o)){e[t]||(e[t]=new Set);for(const o of r)e[t].add(o)}}return e});const o=yi(()=>{const e=t.options,r=new Map;for(const o of e){const e=o._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const t of e){if(r.has(t))throw new Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,o)}}return r});e._zod.parse=(n,a)=>{const i=n.value;if(!Ei(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;const s=o.value.get(i?.[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),Ul=hi("$ZodIntersection",(e,t)=>{Ys.init(e,t),e._zod.parse=(e,r)=>{const o=e.value,n=t.left._zod.run({value:o,issues:[]},r),a=t.right._zod.run({value:o,issues:[]},r);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([t,r])=>Bl(e,t,r)):Bl(e,n,a)}});function Zl(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(Mi(e)&&Mi(t)){const r=Object.keys(t),o=Object.keys(e).filter(e=>-1!==r.indexOf(e)),n={...e,...t};for(const a of o){const r=Zl(e[a],t[a]);if(!r.valid)return{valid:!1,mergeErrorPath:[a,...r.mergeErrorPath]};n[a]=r.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let o=0;o<e.length;o++){const n=Zl(e[o],t[o]);if(!n.valid)return{valid:!1,mergeErrorPath:[o,...n.mergeErrorPath]};r.push(n.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Bl(e,t,r){const o=new Map;let n;for(const s of t.issues)if("unrecognized_keys"===s.code){n??(n=s);for(const e of s.keys)o.has(e)||o.set(e,{}),o.get(e).l=!0}else e.issues.push(s);for(const s of r.issues)if("unrecognized_keys"===s.code)for(const e of s.keys)o.has(e)||o.set(e,{}),o.get(e).r=!0;else e.issues.push(s);const a=[...o].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&n&&e.issues.push({...n,keys:a}),Di(e))return e;const i=Zl(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Vl=hi("$ZodRecord",(e,t)=>{Ys.init(e,t),e._zod.parse=(r,o)=>{const n=r.value;if(!Mi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const a=[],i=t.keyType._zod.values;if(i){r.value={};const s=new Set;for(const e of i)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){s.add("number"==typeof e?e.toString():e);const i=t.valueType._zod.run({value:n[e],issues:[]},o);i instanceof Promise?a.push(i.then(t=>{t.issues.length&&r.issues.push(...Fi(e,t.issues)),r.value[e]=t.value})):(i.issues.length&&r.issues.push(...Fi(e,i.issues)),r.value[e]=i.value)}let l;for(const e in n)s.has(e)||(l=l??[],l.push(e));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(const i of Reflect.ownKeys(n)){if("__proto__"===i)continue;let s=t.keyType._zod.run({value:i,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof i&&As.test(i)&&s.issues.length){const e=t.keyType._zod.run({value:Number(i),issues:[]},o);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===e.issues.length&&(s=e)}if(s.issues.length){"loose"===t.mode?r.value[i]=n[i]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>Zi(e,o,vi())),input:i,path:[i],inst:e});continue}const l=t.valueType._zod.run({value:n[i],issues:[]},o);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...Fi(i,e.issues)),r.value[s.value]=e.value})):(l.issues.length&&r.issues.push(...Fi(i,l.issues)),r.value[s.value]=l.value)}}return a.length?Promise.all(a).then(()=>r):r}}),Rl=hi("$ZodEnum",(e,t)=>{Ys.init(e,t);const r=bi(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(e=>$i.has(typeof e)).map(e=>"string"==typeof e?Oi(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{const a=t.value;return o.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),Wl=hi("$ZodLiteral",(e,t)=>{if(Ys.init(e,t),0===t.values.length)throw new Error("Cannot create literal schema with no valid values");const r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(e=>"string"==typeof e?Oi(e):e?Oi(e.toString()):String(e)).join("|")})$`),e._zod.parse=(o,n)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),o}}),Hl=hi("$ZodTransform",(e,t)=>{Ys.init(e,t),e._zod.parse=(r,o)=>{if("backward"===o.direction)throw new fi(e.constructor.name);const n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(e=>(r.value=e,r));if(n instanceof Promise)throw new gi;return r.value=n,r}});function Gl(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}const Jl=hi("$ZodOptional",(e,t)=>{Ys.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ci(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ci(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${xi(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(t=>Gl(t,e.value)):Gl(o,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),ql=hi("$ZodExactOptional",(e,t)=>{Jl.init(e,t),Ci(e._zod,"values",()=>t.innerType._zod.values),Ci(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),Kl=hi("$ZodNullable",(e,t)=>{Ys.init(e,t),Ci(e._zod,"optin",()=>t.innerType._zod.optin),Ci(e._zod,"optout",()=>t.innerType._zod.optout),Ci(e._zod,"pattern",()=>{const e=t.innerType._zod.pattern;return e?new RegExp(`^(${xi(e.source)}|null)$`):void 0}),Ci(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),Yl=hi("$ZodDefault",(e,t)=>{Ys.init(e,t),e._zod.optin="optional",Ci(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(e=>Ql(e,t)):Ql(o,t)}});function Ql(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}const Xl=hi("$ZodPrefault",(e,t)=>{Ys.init(e,t),e._zod.optin="optional",Ci(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),ec=hi("$ZodNonOptional",(e,t)=>{Ys.init(e,t),Ci(e._zod,"values",()=>{const e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,o)=>{const n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(t=>tc(t,e)):tc(n,e)}});function tc(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const rc=hi("$ZodCatch",(e,t)=>{Ys.init(e,t),Ci(e._zod,"optin",()=>t.innerType._zod.optin),Ci(e._zod,"optout",()=>t.innerType._zod.optout),Ci(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(o=>(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>Zi(e,r,vi()))},input:e.value}),e.issues=[]),e)):(e.value=o.value,o.issues.length&&(e.value=t.catchValue({...e,error:{issues:o.issues.map(e=>Zi(e,r,vi()))},input:e.value}),e.issues=[]),e)}}),oc=hi("$ZodPipe",(e,t)=>{Ys.init(e,t),Ci(e._zod,"values",()=>t.in._zod.values),Ci(e._zod,"optin",()=>t.in._zod.optin),Ci(e._zod,"optout",()=>t.out._zod.optout),Ci(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){const o=t.out._zod.run(e,r);return o instanceof Promise?o.then(e=>nc(e,t.in,r)):nc(o,t.in,r)}const o=t.in._zod.run(e,r);return o instanceof Promise?o.then(e=>nc(e,t.out,r)):nc(o,t.out,r)}});function nc(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const ac=hi("$ZodReadonly",(e,t)=>{Ys.init(e,t),Ci(e._zod,"propValues",()=>t.innerType._zod.propValues),Ci(e._zod,"values",()=>t.innerType._zod.values),Ci(e._zod,"optin",()=>t.innerType?._zod?.optin),Ci(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);const o=t.innerType._zod.run(e,r);return o instanceof Promise?o.then(ic):ic(o)}});function ic(e){return e.value=Object.freeze(e.value),e}const sc=hi("$ZodCustom",(e,t)=>{js.init(e,t),Ys.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{const o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(t=>lc(t,r,o,e));lc(n,r,o,e)}});function lc(e,t,r,o){if(!e){const e={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(e.params=o._zod.def.params),t.issues.push(Vi(e))}}var cc;(cc=globalThis).__zod_globalRegistry??(cc.__zod_globalRegistry=new class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const o={...r,...this._map.get(e)};return Object.keys(o).length?o:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});const dc=globalThis.__zod_globalRegistry;function uc(e,t){return new e({type:"string",...Ni(t)})}function pc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ni(t)})}function hc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ni(t)})}function gc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ni(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ni(t)})}function mc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ni(t)})}function vc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ni(t)})}function bc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ni(t)})}function wc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ni(t)})}function yc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ni(t)})}function kc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ni(t)})}function xc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ni(t)})}function _c(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ni(t)})}function Cc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ni(t)})}function zc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ni(t)})}function Sc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ni(t)})}function Ic(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ni(t)})}function Ac(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ni(t)})}function Ec(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ni(t)})}function Tc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ni(t)})}function Mc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ni(t)})}function jc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ni(t)})}function $c(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ni(t)})}function Oc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ni(t)})}function Pc(e,t){return new e({type:"string",format:"date",check:"string_format",...Ni(t)})}function Nc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ni(t)})}function Lc(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ni(t)})}function Dc(e,t){return new e({type:"number",checks:[],...Ni(t)})}function Fc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Ni(t)})}function Uc(e,t){return new e({type:"boolean",...Ni(t)})}function Zc(e){return new e({type:"any"})}function Bc(e){return new e({type:"unknown"})}function Vc(e,t){return new e({type:"never",...Ni(t)})}function Rc(e,t){return new Os({check:"less_than",...Ni(t),value:e,inclusive:!1})}function Wc(e,t){return new Os({check:"less_than",...Ni(t),value:e,inclusive:!0})}function Hc(e,t){return new Ps({check:"greater_than",...Ni(t),value:e,inclusive:!1})}function Gc(e,t){return new Ps({check:"greater_than",...Ni(t),value:e,inclusive:!0})}function Jc(e,t){return new Ns({check:"multiple_of",...Ni(t),value:e})}function qc(e,t){return new Ds({check:"max_length",...Ni(t),maximum:e})}function Kc(e,t){return new Fs({check:"min_length",...Ni(t),minimum:e})}function Yc(e,t){return new Us({check:"length_equals",...Ni(t),length:e})}function Qc(e,t){return new Bs({check:"string_format",format:"regex",...Ni(t),pattern:e})}function Xc(e){return new Vs({check:"string_format",format:"lowercase",...Ni(e)})}function ed(e){return new Rs({check:"string_format",format:"uppercase",...Ni(e)})}function td(e,t){return new Ws({check:"string_format",format:"includes",...Ni(t),includes:e})}function rd(e,t){return new Hs({check:"string_format",format:"starts_with",...Ni(t),prefix:e})}function od(e,t){return new Gs({check:"string_format",format:"ends_with",...Ni(t),suffix:e})}function nd(e){return new Js({check:"overwrite",tx:e})}function ad(e){return nd(t=>t.normalize(e))}function id(){return nd(e=>e.trim())}function sd(){return nd(e=>e.toLowerCase())}function ld(){return nd(e=>e.toUpperCase())}function cd(){return nd(e=>function(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(e))}function dd(e,t,r){return new e({type:"array",element:t,...Ni(r)})}function ud(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Ni(r)})}function pd(e){const t=hd(r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(Vi(e,r.value,t._zod.def));else{const o=e;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(Vi(o))}},e(r.value,r)));return t}function hd(e,t){const r=new js({check:"custom",...Ni(t)});return r._zod.check=e,r}function gd(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??dc,target:t,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 fd(e,t,r={path:[],schemaPath:[]}){var o;const n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);const s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{const o={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,o);else{const r=i.schema,a=t.processors[n.type];if(!a)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);a(e,t,r,o)}const a=e._zod.parent;a&&(i.ref||(i.ref=a),fd(a,t,o),t.seen.get(a).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),"input"===t.io&&bd(e)&&(delete i.schema.examples,delete i.schema.default),"input"===t.io&&i.schema._prefault&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function md(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const a of e.seen.entries()){const t=e.metadataRegistry.get(a[0])?.id;if(t){const e=o.get(t);if(e&&e!==a[0])throw new Error(`Duplicate schema id "${t}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(t,a[0])}}const n=t=>{if(t[1].schema.$ref)return;const o=t[1],{ref:n,defId:a}=(t=>{const o="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){const r=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(r)return{ref:n(r)};const a=t[1].defId??t[1].schema.id??"schema"+e.counter++;return t[1].defId=a,{defId:a,ref:`${n("__shared")}#/${o}/${a}`}}if(t[1]===r)return{ref:"#"};const n=`#/${o}/`,a=t[1].schema.id??"__schema"+e.counter++;return{defId:a,ref:n+a}})(t);o.def={...o.schema},a&&(o.defId=a);const i=o.schema;for(const e in i)delete i[e];i.$ref=n};if("throw"===e.cycles)for(const a of e.seen.entries()){const e=a[1];if(e.cycle)throw new Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const r=a[1];if(t===a[0]){n(a);continue}if(e.external){const r=e.external.registry.get(a[0])?.id;if(t!==a[0]&&r){n(a);continue}}const o=e.metadataRegistry.get(a[0])?.id;(o||r.cycle||r.count>1&&"ref"===e.reused)&&n(a)}}function vd(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=t=>{const r=e.seen.get(t);if(null===r.ref)return;const n=r.def??r.schema,a={...n},i=r.ref;if(r.ref=null,i){o(i);const r=e.seen.get(i),s=r.schema;if(!s.$ref||"draft-07"!==e.target&&"draft-04"!==e.target&&"openapi-3.0"!==e.target?Object.assign(n,s):(n.allOf=n.allOf??[],n.allOf.push(s)),Object.assign(n,a),t._zod.parent===i)for(const e in n)"$ref"!==e&&"allOf"!==e&&(e in a||delete n[e]);if(s.$ref&&r.def)for(const e in n)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(n[e])===JSON.stringify(r.def[e])&&delete n[e]}const s=t._zod.parent;if(s&&s!==i){o(s);const t=e.seen.get(s);if(t?.schema.$ref&&(n.$ref=t.schema.$ref,t.def))for(const e in n)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(n[e])===JSON.stringify(t.def[e])&&delete n[e]}e.override({zodSchema:t,jsonSchema:n,path:r.path??[]})};for(const s of[...e.seen.entries()].reverse())o(s[0]);const n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const r=e.external.registry.get(t)?.id;if(!r)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(r)}Object.assign(n,r.def??r.schema);const a=e.external?.defs??{};for(const s of e.seen.entries()){const e=s[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?n.$defs=a:n.definitions=a);try{const r=JSON.parse(JSON.stringify(n));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:wd(t,"input",e.processors),output:wd(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(i){throw new Error("Error converting schema to JSON.")}}function bd(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const o=e._zod.def;if("transform"===o.type)return!0;if("array"===o.type)return bd(o.element,r);if("set"===o.type)return bd(o.valueType,r);if("lazy"===o.type)return bd(o.getter(),r);if("promise"===o.type||"optional"===o.type||"nonoptional"===o.type||"nullable"===o.type||"readonly"===o.type||"default"===o.type||"prefault"===o.type)return bd(o.innerType,r);if("intersection"===o.type)return bd(o.left,r)||bd(o.right,r);if("record"===o.type||"map"===o.type)return bd(o.keyType,r)||bd(o.valueType,r);if("pipe"===o.type)return bd(o.in,r)||bd(o.out,r);if("object"===o.type){for(const e in o.shape)if(bd(o.shape[e],r))return!0;return!1}if("union"===o.type){for(const e of o.options)if(bd(e,r))return!0;return!1}if("tuple"===o.type){for(const e of o.items)if(bd(e,r))return!0;return!(!o.rest||!bd(o.rest,r))}return!1}const wd=(e,t,r={})=>o=>{const{libraryOptions:n,target:a}=o??{},i=gd({...n??{},target:a,io:t,processors:r});return fd(e,i),md(i,e),vd(i,e)},yd={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},kd=(e,t,r,o)=>{const n=e._zod.def;fd(n.innerType,t,o),t.seen.get(e).ref=n.innerType},xd=hi("ZodISODateTime",(e,t)=>{ul.init(e,t),Vd.init(e,t)}),_d=hi("ZodISODate",(e,t)=>{pl.init(e,t),Vd.init(e,t)}),Cd=hi("ZodISOTime",(e,t)=>{hl.init(e,t),Vd.init(e,t)}),zd=hi("ZodISODuration",(e,t)=>{gl.init(e,t),Vd.init(e,t)}),Sd=hi("ZodError",(e,t)=>{Wi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>function(e,t=e=>e.message){const r={_errors:[]},o=e=>{for(const n of e.issues)if("invalid_union"===n.code&&n.errors.length)n.errors.map(e=>o({issues:e}));else if("invalid_key"===n.code)o({issues:n.issues});else if("invalid_element"===n.code)o({issues:n.issues});else if(0===n.path.length)r._errors.push(t(n));else{let e=r,o=0;for(;o<n.path.length;){const r=n.path[o];o===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],o++}}};return o(e),r}(e,t)},flatten:{value:t=>function(e,t=e=>e.message){const r={},o=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,wi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,wi,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),Id=Gi(Sd),Ad=Ji(Sd),Ed=qi(Sd),Td=Yi(Sd),Md=Xi(Sd),jd=es(Sd),$d=ts(Sd),Od=rs(Sd),Pd=os(Sd),Nd=ns(Sd),Ld=as(Sd),Dd=is(Sd),Fd=hi("ZodType",(e,t)=>(Ys.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wd(e,"input"),output:wd(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{const o=gd({...r,processors:t});return fd(e,o),md(o,e),vd(o,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Si(t,{checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,r)=>Pi(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>Id(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>Ed(e,t,r),e.parseAsync=async(t,r)=>Ad(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>Td(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>Md(e,t,r),e.decode=(t,r)=>jd(e,t,r),e.encodeAsync=async(t,r)=>$d(e,t,r),e.decodeAsync=async(t,r)=>Od(e,t,r),e.safeEncode=(t,r)=>Pd(e,t,r),e.safeDecode=(t,r)=>Nd(e,t,r),e.safeEncodeAsync=async(t,r)=>Ld(e,t,r),e.safeDecodeAsync=async(t,r)=>Dd(e,t,r),e.refine=(t,r)=>e.check(function(e,t={}){return ud(Ju,e,t)}(t,r)),e.superRefine=t=>e.check(pd(t)),e.overwrite=t=>e.check(nd(t)),e.optional=()=>Lu(e),e.exactOptional=()=>new Du({type:"optional",innerType:e}),e.nullable=()=>Uu(e),e.nullish=()=>Lu(Uu(e)),e.nonoptional=t=>function(e,t){return new Vu({type:"nonoptional",innerType:e,...Ni(t)})}(e,t),e.array=()=>ku(e),e.or=t=>zu([e,t]),e.and=t=>new Iu({type:"intersection",left:e,right:t}),e.transform=t=>Hu(e,Pu(t)),e.default=t=>{return r=t,new Zu({type:"default",innerType:e,get defaultValue(){return"function"==typeof r?r():ji(r)}});var r},e.prefault=t=>{return r=t,new Bu({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof r?r():ji(r)}});var r},e.catch=t=>{return new Ru({type:"catch",innerType:e,catchValue:"function"==typeof(r=t)?r:()=>r});var r},e.pipe=t=>Hu(e,t),e.readonly=()=>new Gu({type:"readonly",innerType:e}),e.describe=t=>{const r=e.clone();return dc.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>dc.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return dc.get(e);const r=e.clone();return dc.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),Ud=hi("_ZodString",(e,t)=>{Qs.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=r;o.type="string";const{minimum:n,maximum:a,format:i,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof n&&(o.minLength=n),"number"==typeof a&&(o.maxLength=a),i&&(o.format=yd[i]??i,""===o.format&&delete o.format,"time"===i&&delete o.format),l&&(o.contentEncoding=l),s&&s.size>0){const e=[...s];1===e.length?o.pattern=e[0].source:e.length>1&&(o.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(Qc(...t)),e.includes=(...t)=>e.check(td(...t)),e.startsWith=(...t)=>e.check(rd(...t)),e.endsWith=(...t)=>e.check(od(...t)),e.min=(...t)=>e.check(Kc(...t)),e.max=(...t)=>e.check(qc(...t)),e.length=(...t)=>e.check(Yc(...t)),e.nonempty=(...t)=>e.check(Kc(1,...t)),e.lowercase=t=>e.check(Xc(t)),e.uppercase=t=>e.check(ed(t)),e.trim=()=>e.check(id()),e.normalize=(...t)=>e.check(ad(...t)),e.toLowerCase=()=>e.check(sd()),e.toUpperCase=()=>e.check(ld()),e.slugify=()=>e.check(cd())}),Zd=hi("ZodString",(e,t)=>{Qs.init(e,t),Ud.init(e,t),e.email=t=>e.check(pc(Rd,t)),e.url=t=>e.check(bc(Gd,t)),e.jwt=t=>e.check($c(lu,t)),e.emoji=t=>e.check(wc(Jd,t)),e.guid=t=>e.check(hc(Wd,t)),e.uuid=t=>e.check(gc(Hd,t)),e.uuidv4=t=>e.check(fc(Hd,t)),e.uuidv6=t=>e.check(mc(Hd,t)),e.uuidv7=t=>e.check(vc(Hd,t)),e.nanoid=t=>e.check(yc(qd,t)),e.guid=t=>e.check(hc(Wd,t)),e.cuid=t=>e.check(kc(Kd,t)),e.cuid2=t=>e.check(xc(Yd,t)),e.ulid=t=>e.check(_c(Qd,t)),e.base64=t=>e.check(Tc(au,t)),e.base64url=t=>e.check(Mc(iu,t)),e.xid=t=>e.check(Cc(Xd,t)),e.ksuid=t=>e.check(zc(eu,t)),e.ipv4=t=>e.check(Sc(tu,t)),e.ipv6=t=>e.check(Ic(ru,t)),e.cidrv4=t=>e.check(Ac(ou,t)),e.cidrv6=t=>e.check(Ec(nu,t)),e.e164=t=>e.check(jc(su,t)),e.datetime=t=>e.check(function(e){return Oc(xd,e)}(t)),e.date=t=>e.check(function(e){return Pc(_d,e)}(t)),e.time=t=>e.check(function(e){return Nc(Cd,e)}(t)),e.duration=t=>e.check(function(e){return Lc(zd,e)}(t))});function Bd(e){return uc(Zd,e)}const Vd=hi("ZodStringFormat",(e,t)=>{Xs.init(e,t),Ud.init(e,t)}),Rd=hi("ZodEmail",(e,t)=>{rl.init(e,t),Vd.init(e,t)}),Wd=hi("ZodGUID",(e,t)=>{el.init(e,t),Vd.init(e,t)}),Hd=hi("ZodUUID",(e,t)=>{tl.init(e,t),Vd.init(e,t)}),Gd=hi("ZodURL",(e,t)=>{ol.init(e,t),Vd.init(e,t)}),Jd=hi("ZodEmoji",(e,t)=>{nl.init(e,t),Vd.init(e,t)}),qd=hi("ZodNanoID",(e,t)=>{al.init(e,t),Vd.init(e,t)}),Kd=hi("ZodCUID",(e,t)=>{il.init(e,t),Vd.init(e,t)}),Yd=hi("ZodCUID2",(e,t)=>{sl.init(e,t),Vd.init(e,t)}),Qd=hi("ZodULID",(e,t)=>{ll.init(e,t),Vd.init(e,t)}),Xd=hi("ZodXID",(e,t)=>{cl.init(e,t),Vd.init(e,t)}),eu=hi("ZodKSUID",(e,t)=>{dl.init(e,t),Vd.init(e,t)}),tu=hi("ZodIPv4",(e,t)=>{fl.init(e,t),Vd.init(e,t)}),ru=hi("ZodIPv6",(e,t)=>{ml.init(e,t),Vd.init(e,t)}),ou=hi("ZodCIDRv4",(e,t)=>{vl.init(e,t),Vd.init(e,t)}),nu=hi("ZodCIDRv6",(e,t)=>{bl.init(e,t),Vd.init(e,t)}),au=hi("ZodBase64",(e,t)=>{yl.init(e,t),Vd.init(e,t)}),iu=hi("ZodBase64URL",(e,t)=>{kl.init(e,t),Vd.init(e,t)}),su=hi("ZodE164",(e,t)=>{xl.init(e,t),Vd.init(e,t)}),lu=hi("ZodJWT",(e,t)=>{_l.init(e,t),Vd.init(e,t)}),cu=hi("ZodNumber",(e,t)=>{Cl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=r,{minimum:n,maximum:a,format:i,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;"string"==typeof i&&i.includes("int")?o.type="integer":o.type="number","number"==typeof c&&("draft-04"===t.target||"openapi-3.0"===t.target?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c),"number"==typeof n&&(o.minimum=n,"number"==typeof c&&"draft-04"!==t.target&&(c>=n?delete o.minimum:delete o.exclusiveMinimum)),"number"==typeof l&&("draft-04"===t.target||"openapi-3.0"===t.target?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l),"number"==typeof a&&(o.maximum=a,"number"==typeof l&&"draft-04"!==t.target&&(l<=a?delete o.maximum:delete o.exclusiveMaximum)),"number"==typeof s&&(o.multipleOf=s)})(e,t,r),e.gt=(t,r)=>e.check(Hc(t,r)),e.gte=(t,r)=>e.check(Gc(t,r)),e.min=(t,r)=>e.check(Gc(t,r)),e.lt=(t,r)=>e.check(Rc(t,r)),e.lte=(t,r)=>e.check(Wc(t,r)),e.max=(t,r)=>e.check(Wc(t,r)),e.int=t=>e.check(pu(t)),e.safe=t=>e.check(pu(t)),e.positive=t=>e.check(Hc(0,t)),e.nonnegative=t=>e.check(Gc(0,t)),e.negative=t=>e.check(Rc(0,t)),e.nonpositive=t=>e.check(Wc(0,t)),e.multipleOf=(t,r)=>e.check(Jc(t,r)),e.step=(t,r)=>e.check(Jc(t,r)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function du(e){return Dc(cu,e)}const uu=hi("ZodNumberFormat",(e,t)=>{zl.init(e,t),cu.init(e,t)});function pu(e){return Fc(uu,e)}const hu=hi("ZodBoolean",(e,t)=>{Sl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r)=>{r.type="boolean"})(0,0,t)});function gu(e){return Uc(hu,e)}const fu=hi("ZodAny",(e,t)=>{Il.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function mu(){return Zc(fu)}const vu=hi("ZodUnknown",(e,t)=>{Al.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function bu(){return Bc(vu)}const wu=hi("ZodNever",(e,t)=>{El.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r)=>{r.not={}})(0,0,t)}),yu=hi("ZodArray",(e,t)=>{Ml.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=r,a=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;"number"==typeof i&&(n.minItems=i),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=fd(a.element,t,{...o,path:[...o.path,"items"]})})(e,t,r,o),e.element=t.element,e.min=(t,r)=>e.check(Kc(t,r)),e.nonempty=t=>e.check(Kc(1,t)),e.max=(t,r)=>e.check(qc(t,r)),e.length=(t,r)=>e.check(Yc(t,r)),e.unwrap=()=>e.element});function ku(e,t){return dd(yu,e,t)}const xu=hi("ZodObject",(e,t)=>{Nl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=r,a=e._zod.def;n.type="object",n.properties={};const i=a.shape;for(const c in i)n.properties[c]=fd(i[c],t,{...o,path:[...o.path,"properties",c]});const s=new Set(Object.keys(i)),l=new Set([...s].filter(e=>{const r=a.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));l.size>0&&(n.required=Array.from(l)),"never"===a.catchall?._zod.def.type?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=fd(a.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)})(e,t,r,o),Ci(e,"shape",()=>t.shape),e.keyof=()=>Mu(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bu()}),e.loose=()=>e.clone({...e._zod.def,catchall:bu()}),e.strict=()=>e.clone({...e._zod.def,catchall:Vc(wu,void 0)}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>function(e,t){if(!Mi(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const r=e._zod.def.shape;for(const e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Si(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return zi(this,"shape",r),r}});return Pi(e,o)}(e,t),e.safeExtend=t=>function(e,t){if(!Mi(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=Si(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return zi(this,"shape",r),r}});return Pi(e,r)}(e,t),e.merge=t=>function(e,t){const r=Si(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return zi(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Pi(e,r)}(e,t),e.pick=t=>function(e,t){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return Pi(e,Si(e._zod.def,{get shape(){const e={};for(const o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(e[o]=r.shape[o])}return zi(this,"shape",e),e},checks:[]}))}(e,t),e.omit=t=>function(e,t){const r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const n=Si(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const e in t){if(!(e in r.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete o[e]}return zi(this,"shape",o),o},checks:[]});return Pi(e,n)}(e,t),e.partial=(...t)=>function(e,t,r){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const n=Si(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const t in r){if(!(t in o))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=e?new e({type:"optional",innerType:o[t]}):o[t])}else for(const t in o)n[t]=e?new e({type:"optional",innerType:o[t]}):o[t];return zi(this,"shape",n),n},checks:[]});return Pi(t,n)}(Nu,e,t[0]),e.required=(...t)=>function(e,t,r){const o=Si(t._zod.def,{get shape(){const o=t._zod.def.shape,n={...o};if(r)for(const t in r){if(!(t in n))throw new Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new e({type:"nonoptional",innerType:o[t]}))}else for(const t in o)n[t]=new e({type:"nonoptional",innerType:o[t]});return zi(this,"shape",n),n}});return Pi(t,o)}(Vu,e,t[0])});function _u(e,t){const r={type:"object",shape:e??{},...Ni(t)};return new xu(r)}const Cu=hi("ZodUnion",(e,t)=>{Dl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a=!1===n.inclusive,i=n.options.map((e,r)=>fd(e,t,{...o,path:[...o.path,a?"oneOf":"anyOf",r]}));a?r.oneOf=i:r.anyOf=i})(e,t,r,o),e.options=t.options});function zu(e,t){return new Cu({type:"union",options:e,...Ni(t)})}const Su=hi("ZodDiscriminatedUnion",(e,t)=>{Cu.init(e,t),Fl.init(e,t)}),Iu=hi("ZodIntersection",(e,t)=>{Ul.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a=fd(n.left,t,{...o,path:[...o.path,"allOf",0]}),i=fd(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,l=[...s(a)?a.allOf:[a],...s(i)?i.allOf:[i]];r.allOf=l})(e,t,r,o)}),Au=hi("ZodRecord",(e,t)=>{Vl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=r,a=e._zod.def;n.type="object";const i=a.keyType,s=i._zod.bag,l=s?.patterns;if("loose"===a.mode&&l&&l.size>0){const e=fd(a.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(const t of l)n.patternProperties[t.source]=e}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(n.propertyNames=fd(a.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=fd(a.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=i._zod.values;if(c){const e=[...c].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}})(e,t,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function Eu(e,t,r){return new Au({type:"record",keyType:e,valueType:t,...Ni(r)})}const Tu=hi("ZodEnum",(e,t)=>{Rl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=bi(e._zod.def.entries);o.every(e=>"number"==typeof e)&&(r.type="number"),o.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=o})(e,0,r),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(e,o)=>{const n={};for(const a of e){if(!r.has(a))throw new Error(`Key ${a} not found in enum`);n[a]=t.entries[a]}return new Tu({...t,checks:[],...Ni(o),entries:n})},e.exclude=(e,o)=>{const n={...t.entries};for(const t of e){if(!r.has(t))throw new Error(`Key ${t} not found in enum`);delete n[t]}return new Tu({...t,checks:[],...Ni(o),entries:n})}});function Mu(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Tu({type:"enum",entries:r,...Ni(t)})}const ju=hi("ZodLiteral",(e,t)=>{Wl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r)=>{const o=e._zod.def,n=[];for(const a of o.values)if(void 0===a){if("throw"===t.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof a){if("throw"===t.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(a))}else n.push(a);if(0===n.length);else if(1===n.length){const e=n[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else n.every(e=>"number"==typeof e)&&(r.type="number"),n.every(e=>"string"==typeof e)&&(r.type="string"),n.every(e=>"boolean"==typeof e)&&(r.type="boolean"),n.every(e=>null===e)&&(r.type="null"),r.enum=n})(e,t,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $u(e,t){return new ju({type:"literal",values:Array.isArray(e)?e:[e],...Ni(t)})}const Ou=hi("ZodTransform",(e,t)=>{Hl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema")})(0,e),e._zod.parse=(r,o)=>{if("backward"===o.direction)throw new fi(e.constructor.name);r.addIssue=o=>{if("string"==typeof o)r.issues.push(Vi(o,r.value,t));else{const t=o;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),r.issues.push(Vi(t))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(e=>(r.value=e,r)):(r.value=n,r)}});function Pu(e){return new Ou({type:"transform",transform:e})}const Nu=hi("ZodOptional",(e,t)=>{Jl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>kd(e,t,0,o),e.unwrap=()=>e._zod.def.innerType});function Lu(e){return new Nu({type:"optional",innerType:e})}const Du=hi("ZodExactOptional",(e,t)=>{ql.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>kd(e,t,0,o),e.unwrap=()=>e._zod.def.innerType}),Fu=hi("ZodNullable",(e,t)=>{Kl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a=fd(n.innerType,t,o),i=t.seen.get(e);"openapi-3.0"===t.target?(i.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType});function Uu(e){return new Fu({type:"nullable",innerType:e})}const Zu=hi("ZodDefault",(e,t)=>{Yl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;fd(n.innerType,t,o),t.seen.get(e).ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Bu=hi("ZodPrefault",(e,t)=>{Xl.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;fd(n.innerType,t,o),t.seen.get(e).ref=n.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType}),Vu=hi("ZodNonOptional",(e,t)=>{ec.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;fd(n.innerType,t,o),t.seen.get(e).ref=n.innerType})(e,t,0,o),e.unwrap=()=>e._zod.def.innerType}),Ru=hi("ZodCatch",(e,t)=>{rc.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;let a;fd(n.innerType,t,o),t.seen.get(e).ref=n.innerType;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Wu=hi("ZodPipe",(e,t)=>{oc.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def,a="input"===t.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;fd(a,t,o),t.seen.get(e).ref=a})(e,t,0,o),e.in=t.in,e.out=t.out});function Hu(e,t){return new Wu({type:"pipe",in:e,out:t})}const Gu=hi("ZodReadonly",(e,t)=>{ac.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(t,r,o)=>((e,t,r,o)=>{const n=e._zod.def;fd(n.innerType,t,o),t.seen.get(e).ref=n.innerType,r.readOnly=!0})(e,t,r,o),e.unwrap=()=>e._zod.def.innerType}),Ju=hi("ZodCustom",(e,t)=>{sc.init(e,t),Fd.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t)=>{if("throw"===t.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")})(0,e)});function qu(e,t){return Hu(Pu(e),t)}qu(e=>Array.isArray(e)?e.filter(e=>e&&"object"==typeof e&&e.platform&&e.handle):e,ku(_u({platform:Mu(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),handle:Bd(),url:Bd().optional()})));const Ku=Mu(["image","video","audio"]),Yu=Mu(["avatar","cover","general"]),Qu=Mu(["processing","active","failed","deleted"]),Xu=Mu(["low","standard","high"]),ep=Mu(["jpg","jpeg","png","gif","webp","svg"]),tp=Mu(["mp4","webm","ogg","mov","avi"]),rp=Mu(["mp3","wav","ogg","opus","aac","flac"]),op=_u({mediaId:Bd(),userId:Bd(),orgId:Bd(),agentId:Bd().nullable().optional(),filename:Bd(),mimeType:Bd(),size:du(),src:Bd(),alt:Bd().optional(),context:Yu.default("general"),status:Qu.default("processing"),quality:Xu.default("standard"),createdAt:Bd().optional(),updatedAt:Bd().optional()}).extend({mediaType:Ku.optional(),className:Bd().optional(),width:du().optional(),height:du().optional(),duration:du().optional(),blurhash:Bd().optional()}).partial(),np=_u({duration:du().optional(),thumbnail:Bd().optional(),autoplay:gu().optional(),loop:gu().optional(),muted:gu().optional(),controls:gu().optional()}),ap=_u({duration:du().optional(),autoplay:gu().optional(),loop:gu().optional(),muted:gu().optional(),controls:gu().optional()});new Su({type:"union",options:[op.extend({mediaType:$u("image"),imageFormat:ep}),op.extend({mediaType:$u("video"),videoFormat:tp,video:np.optional()}),op.extend({mediaType:$u("audio"),audioFormat:rp,audio:ap.optional()})],discriminator:"mediaType",...Ni(void 0)});const ip=Mu(["xxs","xs","sm","md","lg","xl"]),sp=Mu(["primary","default","overlay","red","green","indigo","orange"]),lp=Mu(["ghost","link","outline","solid"]),cp=_u({key:Bd().optional(),label:Bd().optional(),href:Bd().optional(),size:ip.optional(),theme:sp.optional(),design:lp.optional(),icon:zu([Bd(),op]).optional(),iconAfter:zu([Bd(),op]).optional(),rounding:Mu(["full","md","lg"]).optional(),loading:gu().optional(),disabled:gu().optional(),onClick:mu().optional(),testId:Bd().optional(),target:Mu(["_blank","_self"]).optional(),type:Mu(["button","submit","reset"]).optional()});_u({buttons:ku(cp).optional(),size:ip.optional(),theme:sp.optional(),design:lp.optional()});const dp=_u({key:Bd().optional(),id:Bd().optional(),label:Bd().optional(),srLabel:Bd().optional(),subLabel:Bd().optional(),value:zu([Bd(),du()]).optional(),description:Bd().optional(),info:Bd().optional(),count:du().optional(),className:Bd().optional(),media:op.optional(),icon:op.optional(),iconAfter:op.optional(),href:Bd().optional(),target:Mu(["_self","_blank"]).optional(),onClick:mu().optional(),theme:Mu(["primary","default"]).optional(),isActive:gu().optional(),isDisabled:gu().optional(),isHidden:gu().optional(),priority:du().optional(),testId:Bd().optional(),items:ku(mu()).optional(),badges:ku(mu()).optional(),menuItems:ku(mu()).optional()});_u({title:Bd().optional(),description:Bd().optional(),items:ku(dp).optional()});const up=qu(e=>Array.isArray(e)?e.filter(e=>e&&"object"==typeof e&&e.platform&&e.handle):e,ku(_u({platform:Mu(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website"]),handle:Bd()}))),pp=_u({agentId:Bd().optional(),handle:Bd().optional(),ownerId:Bd().optional(),orgId:Bd().optional(),name:Bd().optional(),title:Bd().nullable().optional(),summary:Bd().nullable().optional(),entityType:Bd().optional(),avatarId:Bd().nullable().optional(),coverId:Bd().nullable().optional(),avatar:op.optional(),cover:op.optional(),email:Bd().nullable().optional(),website:Bd().url().nullable().optional(),accounts:up.nullable().optional(),model:Bd().nullable().optional(),channel:Bd().nullable().optional(),lastActivityAt:Bd().nullable().optional(),instanceId:Bd().nullable().optional(),instanceProvider:Bd().nullable().optional(),imageVersion:Bd().nullable().optional(),botStatus:Bd().nullable().optional(),botServerUrl:Bd().nullable().optional(),botError:Bd().nullable().optional(),botLastSeen:Bd().nullable().optional(),botHeartbeatAt:Bd().nullable().optional(),desiredStatus:Mu(["active","stopped"]).nullable().optional(),onboardedAt:Bd().nullable().optional(),enrichment:Eu(Bd(),mu()).nullable().optional(),onboarding:Eu(Bd(),mu()).nullable().optional(),org:_u({orgId:Bd(),handle:Bd(),name:Bd(),headline:Bd().optional(),summary:Bd().optional(),status:Bd()}).optional(),visibility:Mu(["private","org","public"]).optional(),status:Bd().optional(),createdAt:Bd().optional(),updatedAt:Bd().optional()});pp.extend({avatar:op.optional(),cover:op.optional(),isPrimary:gu().optional()});const hp=_u({userId:Bd(),email:Bd().optional(),handle:Bd().optional(),fullName:Bd().optional(),avatarId:Bd().optional(),avatar:op.optional(),emailVerified:gu().optional(),hashedPassword:Bd().optional(),primaryAgentId:Bd().optional(),primaryOrgId:Bd().optional(),lastActiveOrgId:Bd().optional(),onboarding:mu().optional(),recentAgentIds:ku(Bd()).optional(),location:Bd().optional(),geo:mu().optional(),status:Bd().optional(),lastSeenAt:Bd().optional(),createdAt:Bd().optional(),updatedAt:Bd().optional(),onboarded:gu().optional()});_u({name:Bd().min(1).max(100).optional(),avatar:_u({src:Bd(),mediaId:Bd()}).optional(),primaryAgentId:Bd().optional(),primaryOrgId:Bd().optional(),lastActiveOrgId:Bd().optional(),onboarding:mu().optional()}).partial(),_u({email:Bd()}),_u({email:Bd(),password:Bd().min(8,"Password must be at least 8 characters")}),_u({email:Bd(),password:Bd().min(8,"Password must be at least 8 characters"),fullName:Bd().min(1,"Name is required")}),_u({email:Bd(),code:Bd().min(6,"Verification code is required")}),_u({email:Bd(),code:Bd().min(6,"Verification code is required"),newPassword:Bd().min(8,"New password must be at least 8 characters")}),_u({newEmail:Bd()}),_u({newPassword:Bd().min(8,"New password must be at least 8 characters")}),_u({credential:Bd().optional(),code:Bd().optional(),createOnEmpty:gu().optional()}).refine(e=>e.credential||e.code,{message:"Either credential or code must be provided"}),_u({orgId:Bd().optional(),handle:Bd().optional(),name:Bd().optional(),email:Bd().optional(),website:Bd().url().nullable().optional(),summary:Bd().optional(),avatarId:Bd().optional(),avatar:op.optional(),coverId:Bd().optional(),cover:op.optional(),accounts:Eu(Bd(),_u({handle:Bd().optional(),url:Bd().optional()})).nullable().optional(),ownerId:Bd().optional(),isPersonal:gu().optional(),stripeCustomerIdTest:Bd().optional(),stripeCustomerIdLive:Bd().optional(),maxUsers:du().optional(),onboarding:mu().optional(),status:Bd().optional(),createdAt:Bd().optional(),updatedAt:Bd().optional()}).extend({defaultAgent:_u({agentId:Bd(),handle:Bd(),name:Bd(),orgId:Bd()}),onboardingCompleted:gu().optional()});const gp=_u({membershipId:Bd(),orgId:Bd(),name:Bd(),handle:Bd(),avatarId:Bd().optional(),avatar:op.optional(),coverId:Bd().optional(),cover:op.optional(),role:Mu(["owner","admin","member","observer"]),joinedAt:Bd()});hp.extend({orgs:ku(gp).optional(),memberships:ku(gp).optional(),agents:ku(pp).optional()});var fp=(e,t,r)=>((e,t,r={})=>{let o=`${e}=${t}`;if(e.startsWith("__Secure-")&&!r.secure)throw new Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!r.secure)throw new Error("__Host- Cookie must have Secure attributes");if("/"!==r.path)throw new Error('__Host- Cookie must have Path attributes with "/"');if(r.domain)throw new Error("__Host- Cookie must not have Domain attributes")}if(r&&"number"==typeof r.maxAge&&r.maxAge>=0){if(r.maxAge>3456e4)throw new Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");o+="; Max-Age="+(0|r.maxAge)}if(r.domain&&"host"!==r.prefix&&(o+=`; Domain=${r.domain}`),r.path&&(o+=`; Path=${r.path}`),r.expires){if(r.expires.getTime()-Date.now()>3456e7)throw new Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite&&(o+=`; SameSite=${r.sameSite.charAt(0).toUpperCase()+r.sameSite.slice(1)}`),r.priority&&(o+=`; Priority=${r.priority.charAt(0).toUpperCase()+r.priority.slice(1)}`),r.partitioned){if(!r.secure)throw new Error("Partitioned Cookie must have Secure attributes");o+="; Partitioned"}return o})(e,t=encodeURIComponent(t),r),mp=(e,t)=>{for(const[r,o]of Object.entries(t)){const t=new RegExp("/:"+r+"(?:{[^/]+})?\\??");e=e.replace(t,o?`/${o}`:"")}return e},vp=e=>{const t=new URLSearchParams;for(const[r,o]of Object.entries(e))if(void 0!==o)if(Array.isArray(o))for(const e of o)t.append(r,e);else t.set(r,o);return t},bp=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,"/"):e.replace(/\/index(?=\?|$)/,"");function wp(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function yp(e,t){if(!wp(e)&&!wp(t))return t;const r={...e};for(const o in t){const e=t[o];wp(r[o])&&wp(e)?r[o]=yp(r[o],e):r[o]=e}return r}var kp=(e,t)=>new Proxy(()=>{},{get(r,o){if("string"==typeof o&&"then"!==o)return kp(e,[...t,o])},apply:(r,o,n)=>e({path:t,args:n})}),xp=class{constructor(e,t,o){r(this,"url"),r(this,"method"),r(this,"buildSearchParams"),r(this,"queryParams"),r(this,"pathParams",{}),r(this,"rBody"),r(this,"cType"),r(this,"fetch",async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){const t=new FormData;for(const[r,o]of Object.entries(e.form))if(Array.isArray(o))for(const e of o)t.append(r,e);else t.append(r,o);this.rBody=t}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let r=this.method.toUpperCase();const o={...e?.header,..."function"==typeof t?.headers?await t.headers():t?.headers};if(e?.cookie){const t=[];for(const[r,o]of Object.entries(e.cookie))t.push(fp(r,o,{path:"/"}));o.Cookie=t.join(",")}this.cType&&(o["Content-Type"]=this.cType);const n=new Headers(o??void 0);let a=this.url;a=bp(a),a=mp(a,this.pathParams),this.queryParams&&(a=a+"?"+this.queryParams.toString()),r=this.method.toUpperCase();const i=!("GET"===r||"HEAD"===r);return(t?.fetch||fetch)(a,{body:i?this.rBody:void 0,method:r,headers:n,...t?.init})}),this.url=e,this.method=t,this.buildSearchParams=o.buildSearchParams}},_p=(e,t)=>kp(function r(o){const n=t?.buildSearchParams??vp,a=[...o.path],i=a.slice(-3).reverse();if("toString"===i[0])return"name"===i[1]?i[2]||"":r.toString();if("valueOf"===i[0])return"name"===i[1]?i[2]||"":r;let s="";if(/^\$/.test(i[0])){const e=a.pop();e&&(s=e.replace(/^\$/,""))}const l=a.join("/"),c=((e,t)=>(e=e.replace(/\/+$/,""),(e+="/")+t.replace(/^\/+/,"")))(e,l);if("url"===s){let e=c;return o.args[0]&&(o.args[0].param&&(e=mp(c,o.args[0].param)),o.args[0].query&&(e=e+"?"+n(o.args[0].query).toString())),e=bp(e),new URL(e)}if("ws"===s){const e=(o.args[0]&&o.args[0].param?mp(c,o.args[0].param):c).replace(/^http/,"ws"),r=new URL(e),n=o.args[0]?.query;return n&&Object.entries(n).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>r.searchParams.append(e,t)):r.searchParams.set(e,t)}),((...e)=>void 0!==t?.webSocket&&"function"==typeof t.webSocket?t.webSocket(...e):new WebSocket(...e))(r.toString())}const d=new xp(c,s,{buildSearchParams:n});if(s){t??(t={});const e=yp(t,{...o.args[1]});return d.fetch(o.args[0],e)}return d},[]),Cp=Object.defineProperty,zp=(e,t)=>Cp(e,"name",{value:t,configurable:!0}),Sp=(e,t,r)=>((e,t,r)=>t in e?Cp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function Ip(e={}){const{prefix:t="id_"}=e,r=t.length>=3?t.substring(0,3):t.padEnd(3,"_"),o=Math.floor(Date.now()/1e3).toString(16).padStart(8,"0");let n="";for(let a=0;a<16;a++)n+=Math.floor(16*Math.random()).toString(16);return r+o+n}zp(Ip,"objectId");const Ap=globalThis.process,Ep=typeof window<"u",Tp=typeof Ap<"u"&&!Ep,Mp=Ep?typeof window<"u"&&window.location&&!window.location.hostname.includes("localhost"):Tp&&typeof Ap<"u"&&"production"===Ap.env?.NODE_ENV,jp=!Mp,$p={error:{priority:50,color:"#FF0000",nodeColor:"\x1b[31m"},warn:{priority:40,color:"#FFA500",nodeColor:"\x1b[33m"},info:{priority:30,color:"#00ABFF",nodeColor:"\x1b[36m"},debug:{priority:20,color:"#00BD0C",nodeColor:"\x1b[32m"},trace:{priority:10,color:"#5233FF",nodeColor:"\x1b[35m"}},Op=["password","token","secret","apikey","api_key","authorization","cookie"],Pp=class e{constructor(e={},t){Sp(this,"settings"),Sp(this,"enabledInBrowser",!1),Sp(this,"context"),this.context=t,this.settings={enabled:e.enabled??!0,minLevel:e.minLevel??this.getDefaultLevel(),timestamps:e.timestamps??!0},Ep&&this.initBrowserLogging()}getDefaultLevel(){if(Tp&&typeof Ap<"u"&&Ap.env?.LOG_LEVEL)return Ap.env.LOG_LEVEL;if(Ep&&typeof localStorage<"u"&&"function"==typeof localStorage.getItem){const e=localStorage.getItem("PAGELINES_LOG_LEVEL");if(e)return e}return Mp?"info":"debug"}initBrowserLogging(){if(!Ep)return;const t="function"==typeof localStorage?.getItem&&"true"===localStorage.getItem("PAGELINES_LOG"),r=window.location?.hostname||"";this.enabledInBrowser=jp||t||"localhost"===r||r.includes("127.0.0.1"),Mp&&!t&&!e.hasShownHelp&&(e.hasShownHelp=!0)}shouldLog(e){return!(!this.settings.enabled||Ep&&!this.enabledInBrowser)&&$p[e].priority>=$p[this.settings.minLevel].priority}formatTimestamp(){return(new Date).toLocaleTimeString("en-GB",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}formatISOTimestamp(){return(new Date).toISOString()}redactSensitive(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(e=>this.redactSensitive(e));const t={};for(const[r,o]of Object.entries(e)){const e=r.toLowerCase();Op.some(t=>e.includes(t))?t[r]="[REDACTED]":t[r]="object"==typeof o&&null!==o?this.redactSensitive(o):o}return t}formatData(e,t=3,r=0){if(r>=t)return"[Max Depth]";if(null==e)return e;if(e instanceof Error)return{name:e.name,message:e.message,stack:Mp?e.stack?.split("\n").slice(0,3).join("\n"):e.stack,...e};if(e instanceof Date)return e.toISOString();if("object"!=typeof e)return e;if(Array.isArray(e))return e.length>20&&Mp?`Array(${e.length}) [${e.slice(0,3).map(e=>this.formatData(e,t,r+1)).join(", ")}, ...]`:e.map(e=>this.formatData(e,t,r+1));try{const o={},n=Object.entries(e),a=Mp?50:200;for(const[e,i]of n.slice(0,a))o[e]=this.formatData(i,t,r+1);return n.length>a&&(o["..."]=n.length-a+" more properties"),this.redactSensitive(o)}catch{return"[Unserializable]"}}logToBrowser(e){if(!Ep||!this.shouldLog(e.level))return;const{level:t,description:r,context:o,data:n,error:a}=e,i=$p[t];o||this.context,t.toUpperCase(),i.color,a&&Error}logToNode(e){if(!Tp||!this.shouldLog(e.level))return;const{level:t,description:r,context:o,data:n,error:a}=e;o||this.context;if(Mp){const e={timestamp:this.formatISOTimestamp(),level:t.toUpperCase()};n&&(e.data=this.formatData(n)),a&&(e.error=this.formatData(a))}else{const e=$p[t];this.formatTimestamp(),e.nodeColor,t.toUpperCase(),a&&a instanceof Error&&a.stack}}log(e){Ep?this.logToBrowser(e):Tp&&this.logToNode(e)}error(e,t){this.log({level:"error",description:e,data:t,context:this.context})}warn(e,t){this.log({level:"warn",description:e,data:t,context:this.context})}info(e,t){this.log({level:"info",description:e,data:t,context:this.context})}debug(e,t){this.log({level:"debug",description:e,data:t,context:this.context})}trace(e,t){this.log({level:"trace",description:e,data:t,context:this.context})}isEnabled(){return!Ep||this.enabledInBrowser}setLevel(e){this.settings.minLevel=e}createContextLogger(t){const r=new e(this.settings,t);return{error:zp((e,t)=>r.error(e,t),"error"),warn:zp((e,t)=>r.warn(e,t),"warn"),info:zp((e,t)=>r.info(e,t),"info"),debug:zp((e,t)=>r.debug(e,t),"debug"),trace:zp((e,t)=>r.trace(e,t),"trace"),isEnabled:zp(()=>r.isEnabled(),"isEnabled"),setLevel:zp(e=>r.setLevel(e),"setLevel")}}};zp(Pp,"Logger"),Sp(Pp,"hasShownHelp",!1);let Np=Pp;function Lp(e){return new Np({},e).createContextLogger(e)}zp(Lp,"createLogger");const Dp=new Np;Dp.error.bind(Dp),Dp.warn.bind(Dp),Dp.info.bind(Dp),Dp.debug.bind(Dp),Dp.trace.bind(Dp);const Fp=class{constructor(e,t){Sp(this,"name"),Sp(this,"settings"),Sp(this,"logger"),this.name=e,this.settings=t,this.logger=Lp(e)}};zp(Fp,"SettingsObject");let Up=Fp;const Zp=class{constructor(){Sp(this,"tokenName","auth-token"),Sp(this,"tokenMaxAge",604800),Sp(this,"fallbackStorageKey","token"),Sp(this,"productionDomain",".pagelines.com")}getCookie(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(const r of t){const[t,o]=r.trim().split("=");if(t===e)return decodeURIComponent(o||"")}return null}setCookie(e,t,r={}){if(typeof document>"u")return;const{secure:o=!0,sameSite:n="lax",maxAge:a=604800,domain:i,path:s="/"}=r;let l=`${e}=${encodeURIComponent(t)}`;l+=`; Path=${s}`,l+=`; Max-Age=${a}`,l+=`; SameSite=${n}`,o&&(l+="; Secure"),i&&(l+=`; Domain=${i}`),document.cookie=l}removeCookie(e,t={}){this.setCookie(e,"",{...t,maxAge:0})}isLocalStorageFunctional(){return typeof window<"u"&&"function"==typeof window.localStorage?.getItem&&"function"==typeof window.localStorage?.setItem&&"function"==typeof window.localStorage?.removeItem}getAuthToken(){const e=this.getCookie(this.tokenName);if(e)return e;if(this.isLocalStorageFunctional()){const e=window.localStorage.getItem(this.fallbackStorageKey);if(e)return this.setAuthToken(e),window.localStorage.removeItem(this.fallbackStorageKey),e}return null}setAuthToken(e){const t=typeof window<"u"&&"localhost"!==window.location.hostname;this.setCookie(this.tokenName,e,{secure:t,sameSite:"lax",maxAge:this.tokenMaxAge,domain:t?this.productionDomain:void 0,path:"/"})}removeAuthToken(){const e=typeof window<"u"&&"localhost"!==window.location.hostname;this.removeCookie(this.tokenName,{domain:e?this.productionDomain:void 0,path:"/"}),this.isLocalStorageFunctional()&&window.localStorage.removeItem(this.fallbackStorageKey)}};zp(Zp,"CookieUtil");const Bp=new Zp;function Vp(e,t){const r=e.apiBase||(e.isDev?"http://localhost:3222":pi);return _p(r,{fetch:zp(async(e,r)=>{const o=Bp.getAuthToken(),n=await fetch(e,{...r,headers:{...r?.headers,"Content-Type":"application/json",...o&&{Authorization:`Bearer ${o}`}},credentials:"omit"});if(t){const e=n.json.bind(n);n.json=async()=>{const r=await e();return"object"==typeof r&&null!==r&&"ok"in r&&("user"in r||"token"in r)&&t(r),r}}return n},"fetch")})}zp(Vp,"createApiClient");let Rp=[],Wp=0;const Hp=zp(e=>{let t=[],r={get:()=>(r.lc||r.listen(()=>{})(),r.value),lc:0,listen:e=>(r.lc=t.push(e),()=>{for(let t=Wp+4;t<Rp.length;)Rp[t]===e?Rp.splice(t,4):t+=4;let o=t.indexOf(e);~o&&(t.splice(o,1),--r.lc||r.off())}),notify(e,o){let n=!Rp.length;for(let a of t)Rp.push(a,r.value,e,o);if(n){for(Wp=0;Wp<Rp.length;Wp+=4)Rp[Wp](Rp[Wp+1],Rp[Wp+2],Rp[Wp+3]);Rp.length=0}},off(){},set(e){let t=r.value;t!==e&&(r.value=e,r.notify(t))},subscribe(e){let t=r.listen(e);return e(r.value),t},value:e};return r},"atom"),Gp=Hp(void 0),Jp=Hp(null),qp=class{constructor(){Sp(this,"logger",Lp("SDKStorage"))}isLocalStorageFunctional(){return typeof window<"u"&&"function"==typeof localStorage?.getItem&&"function"==typeof localStorage?.setItem&&"function"==typeof localStorage?.removeItem}syncWithGlobalStores(e,t){const r=Gp.get(),o=Jp.get();r&&(e.value=r),o&&(t.value=o),ar(e,e=>{Gp.set(e)},{immediate:!0}),ar(t,e=>{Jp.set(e)},{immediate:!0}),Gp.subscribe(t=>{t!==e.value&&(e.value=t)}),Jp.subscribe(e=>{e!==t.value&&(t.value=e)})}loadFromStorage(e,t){if(typeof window>"u")return;const r=Bp.getAuthToken();if(r&&(t.value=r),this.isLocalStorageFunctional())try{const t=localStorage.getItem("pagelines-user");t&&(e.value=JSON.parse(t))}catch(o){this.logger.error("Failed to load user from localStorage",{data:o})}}saveToStorage(e,t){if(!(typeof window>"u")&&(t.value?Bp.setAuthToken(t.value):Bp.removeAuthToken(),this.isLocalStorageFunctional()))try{e.value?localStorage.setItem("pagelines-user",JSON.stringify(e.value)):localStorage.removeItem("pagelines-user")}catch(r){this.logger.error("Failed to save user to localStorage",{data:r})}}clearStorage(){if(!(typeof window>"u")){if(Bp.removeAuthToken(),this.isLocalStorageFunctional())try{localStorage.removeItem("pagelines-user")}catch(gv){this.logger.error("Failed to clear user from localStorage",{data:gv})}Gp.set(void 0),Jp.set(null)}}getItem(e){if(!this.isLocalStorageFunctional())return null;try{return localStorage.getItem(e)}catch(t){return this.logger.error("Failed to get item from localStorage",{key:e,error:t}),null}}setItem(e,t){if(this.isLocalStorageFunctional())try{localStorage.setItem(e,t)}catch(r){this.logger.error("Failed to set item in localStorage",{key:e,error:r})}}};zp(qp,"SDKStorage");let Kp=qp;const Yp=class{constructor(e){this.ctx=e}async sendCode(e){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const t=await(await this.ctx.api.auth["check-email"].$post({json:{email:e}})).json();if(!t.ok)throw this.ctx.error.value=t.error,new Error(t.error)}catch(t){this.ctx.logger.error("Send code error",{data:t});const e=t instanceof Error?t.message:"Failed to send verification code";throw this.ctx.error.value=e,t}finally{this.ctx.loading.value=!1}}async verifyCode(e,t){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const r=await(await this.ctx.api.auth["verify-code"].$post({json:{email:e,code:t}})).json();if(!r.ok)throw this.ctx.error.value=r.error,new Error(r.error)}catch(r){this.ctx.logger.error("Verify code error",{data:r});const e=r instanceof Error?r.message:"Failed to verify code";throw this.ctx.error.value=e,r}finally{this.ctx.loading.value=!1}}async login(e,t){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const r=await(await this.ctx.api.auth.login.$post({json:{email:e,password:t}})).json();if(!r.ok)throw this.ctx.error.value=r.error,new Error(r.error)}catch(r){this.ctx.logger.error("Login error",{data:r});const e=r instanceof Error?r.message:"Login failed";throw this.ctx.error.value=e,r}finally{this.ctx.loading.value=!1}}async logout(){this.ctx.loading.value=!0,this.ctx.error.value=null;try{await this.ctx.api.auth.logout.$post(),this.ctx.activeUser.value=void 0,this.ctx.token.value=null,this.ctx.storage.clearStorage()}catch(gv){this.ctx.logger.error("Logout error (user still logged out locally)",{data:gv}),this.ctx.activeUser.value=void 0,this.ctx.token.value=null,this.ctx.storage.clearStorage()}finally{this.ctx.loading.value=!1}}async getCurrentUser(){if(this.ctx.token.value){this.ctx.loading.value=!0;try{const e=await(await this.ctx.api.auth.me.$get()).json();return e.ok?e.user:(this.ctx.error.value=e.error,void(e.error.includes("Authentication")&&(this.ctx.activeUser.value=void 0,this.ctx.token.value=null,this.ctx.storage.clearStorage())))}catch(gv){return this.ctx.logger.error("Get current user error",{data:gv}),void(this.ctx.error.value=gv instanceof Error?gv.message:"Failed to get user info")}finally{this.ctx.loading.value=!1}}}async requestAuthCode(e){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const t=await(await this.ctx.api.auth["check-email"].$post({json:{email:e.email}})).json();return t.ok?(this.ctx.logger.info("Auth code requested successfully",{email:e.email}),!0):(this.ctx.error.value=t.error,this.ctx.logger.error("Failed to request auth code",{email:e.email,error:t.error}),!1)}catch(t){return this.ctx.logger.error("Request auth code error",{email:e.email,error:t}),this.ctx.error.value=t instanceof Error?t.message:"Failed to request auth code",!1}finally{this.ctx.loading.value=!1}}async loginWithCode(e){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const t=await(await this.ctx.api.auth["verify-code"].$post({json:{email:e.email,code:e.code}})).json();return this.ctx.logger.info("Login with code response",{hasUser:!!t.user,hasToken:!!t.token,ok:t.ok}),t.ok?(this.ctx.logger.info("Login successful",{email:e.email}),e.orgId&&!1!==e.autoCreateContact&&this.ctx.activeUser.value?.userId&&await this.autoCreateContact({userId:this.ctx.activeUser.value.userId,orgId:e.orgId}),!0):(this.ctx.error.value=t.error,this.ctx.logger.error("Login failed",{email:e.email,error:t.error}),!1)}catch(t){return this.ctx.logger.error("Login with code error",{email:e.email,error:t}),this.ctx.error.value=t instanceof Error?t.message:"Login failed",!1}finally{this.ctx.loading.value=!1}}async autoCreateContact(e){try{const t=await(await this.ctx.api.contact.resolve.$post({json:{userId:e.userId,orgId:e.orgId}})).json();return t.ok?(this.ctx.logger.info("Contact resolved",{userId:e.userId,orgId:e.orgId}),!0):(this.ctx.logger.error("Failed to auto-create contact",{error:t.error,args:e}),!1)}catch(t){return this.ctx.logger.error("Auto-create contact error",{error:t,args:e}),!1}}loginWithGoogle(e){if(typeof window>"u")return void this.ctx.logger.error("loginWithGoogle: Only available in browser");const t=this.ctx.apiBase||(this.ctx.isDev?"http://localhost:3222":pi),r=window.location.origin,o=`${t}/auth/google-popup?origin=${encodeURIComponent(r)}`,n=window.screenX+(window.outerWidth-500)/2,a=window.screenY+(window.outerHeight-600)/2,i=window.open(o,"google-auth",`width=500,height=600,left=${n},top=${a},popup=yes`);if(!i){const t="Popup was blocked. Please allow popups for this site.";return this.ctx.error.value=t,void e?.onError?.(t)}const s=zp(r=>{const o=new URL(t).origin;if(r.origin===o)if("auth-success"===r.data?.type){window.removeEventListener("message",s);const{token:t,user:o}=r.data;this.ctx.processApiResponse({ok:!0,data:{},token:t,user:o}),this.ctx.logger.info("Google login successful"),e?.onSuccess?.(o)}else if("auth-error"===r.data?.type){window.removeEventListener("message",s);const t=r.data.error||"Google authentication failed";this.ctx.error.value=t,this.ctx.logger.error("Google login failed",{error:t}),e?.onError?.(t)}},"handler");window.addEventListener("message",s);const l=setInterval(()=>{i.closed&&(clearInterval(l),window.removeEventListener("message",s))},500)}};zp(Yp,"AuthClient");let Qp=Yp;const Xp=class{constructor(e){this.ctx=e}async chatStream(e){const t=`${this.ctx.apiBase||(this.ctx.isDev?"http://localhost:3222":pi)}/api/agent/public/${encodeURIComponent(e.handle)}/chat/stream`;try{const r=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,conversationId:e.conversationId,history:e.history,visitorId:e.visitorId})});if(!r.ok){const t=await r.json().catch(()=>({error:"Request failed"}));return void e.onError(t.error||`HTTP ${r.status}`)}const o=r.body?.getReader();if(!o)return void e.onError("No response stream");const n=new TextDecoder;let a="",i=e.conversationId||"";for(;;){const{done:t,value:r}=await o.read();if(t)break;a+=n.decode(r,{stream:!0});const s=a.split("\n");a=s.pop()||"";for(const o of s){if(!o.startsWith("data: "))continue;const t=o.slice(6).trim();if("[DONE]"===t)return void e.onDone(i);try{const r=JSON.parse(t);r.pl_metadata?.conversationId&&(i=r.pl_metadata.conversationId);const o=r.choices?.[0]?.delta;o?.content&&e.onDelta(o.content)}catch{}}}e.onDone(i)}catch(r){e.onError(r instanceof Error?r.message:"Stream failed")}}async chatMessage(e){const t=`${this.ctx.apiBase||(this.ctx.isDev?"http://localhost:3222":pi)}/api/agent/public/${encodeURIComponent(e.handle)}/chat`;try{const r=await(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,conversationId:e.conversationId,visitorId:e.visitorId})})).json();return r.ok&&r.data?{conversationId:r.data.conversationId,content:r.data.message.content}:void this.ctx.logger.error("chatMessage failed",{error:!r.ok&&"error"in r?r.error:"Unknown"})}catch(r){return void this.ctx.logger.error("chatMessage error",{error:r})}}async saveMessage(e){try{const t=await(await this.ctx.api.conversation.messages.$post({json:{sessionId:e.conversationId,participantId:e.participantId,content:e.content,role:e.role}})).json();return!!t.ok||(this.ctx.logger.error("Failed to save message",{error:"error"in t?t.error:"Unknown error",args:e}),!1)}catch(t){return this.ctx.logger.error("Save message error",{error:t,args:e}),!1}}};zp(Xp,"ChatClient");let eh=Xp;const th=class{constructor(e){this.ctx=e}async getPublicAgent(e){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const t=await(await this.ctx.api.agent.public[":handle"].$get({param:{handle:e.handle}})).json();return t.ok?t.data:(this.ctx.error.value=t.error,void this.ctx.logger.error("Failed to fetch public agent",{handle:e.handle,error:t.error}))}catch(t){return this.ctx.logger.error("Get public agent error",{handle:e.handle,error:t}),void(this.ctx.error.value=t instanceof Error?t.message:"Failed to fetch agent")}finally{this.ctx.loading.value=!1}}async getAgentByEmail(e){this.ctx.loading.value=!0,this.ctx.error.value=null;try{const t=await(await this.ctx.api.agent["by-email"][":email"].$get({param:{email:e.email}})).json();return t.ok?t.data:(this.ctx.error.value=t.error,void this.ctx.logger.error("Failed to fetch agent by email",{email:e.email,error:t.error}))}catch(t){return this.ctx.logger.error("Get agent by email error",{email:e.email,error:t}),void(this.ctx.error.value=t instanceof Error?t.message:"Failed to fetch agent")}finally{this.ctx.loading.value=!1}}async trackUsage(e){try{const t=this.ctx.currentAgent.value;if(!t?.orgId)return this.ctx.logger.error("Cannot track usage: no current agent with orgId",{args:e}),!1;const r=await(await this.ctx.api.usage.record.$post({json:{orgId:t.orgId,agentId:e.agentId,sessionId:this.ctx.sessionId,type:e.type,quantity:e.quantity,userId:e.participantId||this.ctx.activeUser.value?.userId||"anonymous"}})).json();return!!r.ok||(this.ctx.logger.error("Failed to track usage",{error:r.error,args:e}),!1)}catch(t){return this.ctx.logger.error("Track usage error",{error:t,args:e}),!1}}async startConversation(e){try{const t=this.ctx.currentAgent.value;if(!t?.orgId)return void this.ctx.logger.error("Cannot start conversation: no current agent with orgId",{args:e});const r=await(await this.ctx.api.conversation.start.$post({json:{orgId:t.orgId,agentId:e.agentId,userId:e.userId||this.ctx.activeUser.value?.userId,anonId:e.anonId,channel:e.channel}})).json();if(!r.ok||!r.data){const t=r.ok?"No conversation data returned":"error"in r?r.error:"Unknown error";return void this.ctx.logger.error("Failed to start conversation",{error:t,args:e})}return this.ctx.logger.info("Conversation started",{conversationId:r.data.conversationId}),r.data}catch(t){return void this.ctx.logger.error("Start conversation error",{error:t,args:e})}}async autoCreateContact(e){try{const t=await(await this.ctx.api.contact.resolve.$post({json:{userId:e.userId,orgId:e.orgId}})).json();return t.ok?(this.ctx.logger.info("Contact resolved",{userId:e.userId,orgId:e.orgId}),!0):(this.ctx.logger.error("Failed to auto-create contact",{error:t.error,args:e}),!1)}catch(t){return this.ctx.logger.error("Auto-create contact error",{error:t,args:e}),!1}}generateAnonId(){const e="pagelinesAnonId";let t=this.ctx.storage.getItem(e);return t||(t=Ip({prefix:"anon"}),this.ctx.storage.setItem(e,t)),t}track(e){try{typeof window<"u"&&window.parent!==window&&window.parent.postMessage({type:"pagelines_track",event:e.event,agentId:e.agentId,properties:e.properties||{}},"*"),this.ctx.logger.info("SDK event tracked",{event:e.event,agentId:e.agentId})}catch(t){this.ctx.logger.error("Track event error",{error:t,args:e})}}};zp(th,"UserClient");let rh=th;const oh=class{constructor(){Sp(this,"key","__PAGELINES_SDK__")}get(){if(!(typeof window>"u"))return globalThis[this.key]}set(e){typeof window<"u"&&(globalThis[this.key]=e)}delete(){typeof window<"u"&&delete globalThis[this.key]}};zp(oh,"SDKGlobal");const nh=new oh,ah=class e extends Up{constructor(e={}){const t=nh.get();if(t)return t;super("PageLinesSDK",e),Sp(this,"activeUser",kt()),Sp(this,"token",kt(null)),Sp(this,"loading",kt(!1)),Sp(this,"error",kt(null)),Sp(this,"apiBase",this.settings.apiBase||void 0),Sp(this,"storage",new Kp),Sp(this,"sessionId",Ip({prefix:"ses"})),Sp(this,"apiClient"),Sp(this,"currentAgent",Qn(()=>{const e=this.activeUser.value;if(!e?.agents)return;const t=e.primaryAgentId||e.agents[0]?.agentId;return t?e.agents.find(e=>e.agentId===t):void 0})),Sp(this,"currentOrg",Qn(()=>{const e=this.currentAgent.value;if(!e?.orgId)return;const t=this.activeUser.value;return t?.orgs?t.orgs.find(t=>t.orgId===e.orgId):void 0})),Sp(this,"initialized"),Sp(this,"resolveUser"),Sp(this,"auth"),Sp(this,"chat"),Sp(this,"user"),nh.set(this),this.apiClient=Vp({isDev:this.isDev,apiBase:this.apiBase},this.processApiResponse.bind(this));const r={api:this.api,apiBase:this.apiBase,isDev:this.isDev,activeUser:this.activeUser,token:this.token,loading:this.loading,error:this.error,currentAgent:this.currentAgent,storage:this.storage,sessionId:this.sessionId,logger:this.logger,processApiResponse:this.processApiResponse.bind(this)};this.auth=new Qp(r),this.chat=new eh(r),this.user=new rh(r),this.logger.info("PageLinesSDK initialized"),this.storage.loadFromStorage(this.activeUser,this.token),this.storage.syncWithGlobalStores(this.activeUser,this.token),this.initialized=new Promise(e=>{this.resolveUser=e}),this.token.value&&!this.activeUser.value?this.getCurrentUser().then(e=>{this.resolveUser&&(this.resolveUser(e),this.resolveUser=void 0)}).catch(e=>{this.logger.error("Auto user fetch failed",{data:e}),this.resolveUser&&(this.resolveUser(void 0),this.resolveUser=void 0)}):this.activeUser.value?this.resolveUser?.(this.activeUser.value):this.resolveUser?.(void 0)}static getInstance(t={}){return nh.get()||new e(t)}get isDev(){return this.settings.isDev??(typeof window<"u"&&("localhost"===window.location.hostname||window.location.hostname.includes("127.0.0.1")))}get api(){return this.apiClient.api}processApiResponse(e){e.ok&&e.user&&(this.activeUser.value=e.user,this.logger.info("User updated from API response",{data:e.user})),e.ok&&e.token&&(this.token.value=e.token,this.storage.saveToStorage(this.activeUser,this.token),this.logger.info("Token updated from API response")),this.resolveUser&&e.ok&&(this.resolveUser(e.user),this.resolveUser=void 0)}clearSession(){this.logger.info("Clearing session"),this.activeUser.value=void 0,this.token.value=null,this.error.value=null,this.storage.clearStorage()}clear(){this.logger.info("Clearing SDK completely"),this.clearSession(),this.loading.value=!1,this.sessionId=Ip({prefix:"ses"}),nh.delete()}async sendCode(e){return this.auth.sendCode(e)}async verifyCode(e,t){return this.auth.verifyCode(e,t)}async login(e,t){return this.auth.login(e,t)}async logout(){return this.auth.logout()}async getCurrentUser(){return this.auth.getCurrentUser()}async requestAuthCode(e){return this.auth.requestAuthCode(e)}async loginWithCode(e){return this.auth.loginWithCode(e)}loginWithGoogle(e){return this.auth.loginWithGoogle(e)}async chatStream(e){return this.chat.chatStream(e)}async chatMessage(e){return this.chat.chatMessage(e)}async saveMessage(e){return this.chat.saveMessage(e)}async getPublicAgent(e){return this.user.getPublicAgent(e)}async getAgentByEmail(e){return this.user.getAgentByEmail(e)}async trackUsage(e){return this.user.trackUsage(e)}async startConversation(e){return this.user.startConversation(e)}async autoCreateContact(e){return this.user.autoCreateContact(e)}generateAnonId(){return this.user.generateAnonId()}track(e){return this.user.track(e)}};zp(ah,"PageLinesSDK");let ih=ah;var sh=Object.defineProperty,lh=(e,t)=>sh(e,"name",{value:t,configurable:!0}),ch=(e,t,r)=>((e,t,r)=>t in e?sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const dh={info:lh(e=>{},"info"),error:lh(e=>{},"error"),warn:lh(e=>{},"warn")},uh=class e{constructor(t){if(ch(this,"app",null),ch(this,"shadowRoot",null),ch(this,"widgetInstance",null),ch(this,"config"),ch(this,"sdk"),ch(this,"container",null),this.config=t,!t.mode)throw new Error("PLWidget: mode is required");if(!t.handle&&!t.agent)throw new Error("PLWidget: either handle or agent is required");if("modal"!==t.mode&&"button"!==t.mode&&!t.el)throw new Error(`PLWidget: el (HTMLElement) is required for ${t.mode} mode`);if("modal"===t.mode){const r=t.handle||t.agent?.agentId||"default",o=e.modalInstances.get(r);o&&(dh.warn(`Destroying existing modal widget for: ${r}`),o.destroy()),e.modalInstances.set(r,this)}const r=typeof window<"u"&&("localhost"===window.location.hostname||window.location.hostname.includes("127.0.0.1"));this.sdk=ih.getInstance({isDev:r,...t.apiBase&&{apiBase:t.apiBase}}),dh.info(`Initializing ${t.mode} mode for @${t.handle||t.agent?.handle} (isDev: ${r})`),this.init()}async init(){if("button"===this.config.mode)return void(await this.mountMode(this.config.el));"modal"===this.config.mode?(this.container=document.createElement("div"),this.container.id=`pagelines-modal-${this.config.handle||this.config.agent?.agentId||"widget"}`,this.container.style.cssText="position: fixed; inset: 0; z-index: 9999;",document.body.appendChild(this.container),this.shadowRoot=this.container.attachShadow({mode:"open"})):this.shadowRoot=this.config.el.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent="@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif;--font-mono:\"DM Mono\",\"SF Mono\",SFMono-Regular,Consolas,\"Liberation Mono\",Menlo,Courier,monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--tracking-wide:.025em;--leading-tight:1.25;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--blur-sm:8px;--blur-lg:16px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-theme-400:var(--theme-400,#6b7280);--color-theme-500:var(--theme-500,#4b5563);--color-theme-600:var(--theme-600,#374151);--color-theme-800:var(--theme-800,#111827);--color-theme-900:var(--theme-900,#0c0a13);--color-theme-950:var(--theme-950,#030712);--color-primary-300:var(--primary-300,#60a5fa);--color-primary-400:var(--primary-400,#3b82f6);--color-primary-500:var(--primary-500,#2563eb);--color-primary-600:var(--primary-600,#1d4ed8)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container\\/agent{container:agent/inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing)*0)}.top-0\\.5{top:calc(var(--spacing)*.5)}.top-1{top:calc(var(--spacing)*1)}.top-1\\.5{top:calc(var(--spacing)*1.5)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing)*4)}.top-6{top:calc(var(--spacing)*6)}.-right-16{right:calc(var(--spacing)*-16)}.right-0\\.5{right:calc(var(--spacing)*.5)}.right-1{right:calc(var(--spacing)*1)}.right-1\\.5{right:calc(var(--spacing)*1.5)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.-left-16{left:calc(var(--spacing)*-16)}.left-1\\/2{left:50%}.left-6{left:calc(var(--spacing)*6)}.left-\\[13px\\]{left:13px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[999999\\]{z-index:999999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\\.5{margin-top:calc(var(--spacing)*.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.i-heroicons-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-chat-bubble-left-right{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193q-.51.041-1.02.072v3.091l-3-3q-2.031 0-4.02-.163a2.1 2.1 0 0 1-.825-.242m9.345-8.334a2 2 0 0 0-.476-.095a48.6 48.6 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.5 48.5 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402c-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235q.865.113 1.74.194V21l4.155-4.155'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-cloud-arrow-down{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 0 1-1.41-8.775a5.25 5.25 0 0 1 10.233-2.33a3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-envelope{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.04 12.04 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-question-mark-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.879 7.519c1.172-1.025 3.071-1.025 4.243 0c1.171 1.025 1.171 2.687 0 3.712q-.308.268-.67.442c-.746.361-1.452.999-1.452 1.827v.75M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9 5.25h.008v.008H12z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09m8.445-7.188L18 9.75l-.259-1.035a3.38 3.38 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.38 3.38 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.38 3.38 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.38 3.38 0 0 0-2.456 2.456m-1.365 11.852L16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183l.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394l-1.183.394a2.25 2.25 0 0 0-1.423 1.423'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-facebook{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a9 9 0 0 1 1.141.195v3.325a9 9 0 0 0-.653-.036a27 27 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.7 1.7 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103l-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-instagram{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.9 5.9 0 0 0-2.124 1.388a5.9 5.9 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076s-.069 1.688-.063 4.947s.021 3.667.083 4.947c.061 1.277.264 2.149.563 2.911c.308.789.72 1.457 1.388 2.123a5.9 5.9 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552c1.278.056 1.689.069 4.947.063s3.668-.021 4.947-.082c1.28-.06 2.147-.265 2.91-.563a5.9 5.9 0 0 0 2.123-1.388a5.9 5.9 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912c.056-1.28.07-1.69.063-4.948c-.006-3.258-.02-3.667-.081-4.947c-.06-1.28-.264-2.148-.564-2.911a5.9 5.9 0 0 0-1.387-2.123a5.9 5.9 0 0 0-2.128-1.38c-.764-.294-1.636-.496-2.914-.55C15.647.009 15.236-.006 11.977 0S8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.7 3.7 0 0 1-1.382-.895a3.7 3.7 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228c-.06-1.264-.072-1.644-.08-4.848c-.006-3.204.006-3.583.061-4.848c.05-1.169.246-1.805.408-2.228c.216-.561.477-.96.895-1.382a3.7 3.7 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417c1.265-.06 1.644-.072 4.848-.08c3.203-.006 3.583.006 4.85.062c1.168.05 1.804.244 2.227.408c.56.216.96.475 1.382.895s.681.817.9 1.378c.165.422.362 1.056.417 2.227c.06 1.265.074 1.645.08 4.848c.005 3.203-.006 3.583-.061 4.848c-.051 1.17-.245 1.805-.408 2.23c-.216.56-.477.96-.896 1.38a3.7 3.7 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418c-1.266.06-1.645.072-4.85.079s-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442a1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024a6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16A4 4 0 0 1 8 12.008'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-linkedin{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-threads{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098c1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015c-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164c1.43 1.783 3.631 2.698 6.54 2.717c2.623-.02 4.358-.631 5.8-2.045c1.647-1.613 1.618-3.593 1.09-4.798c-.31-.71-.873-1.3-1.634-1.75c-.192 1.352-.622 2.446-1.284 3.272c-.886 1.102-2.14 1.704-3.73 1.79c-1.202.065-2.361-.218-3.259-.801c-1.063-.689-1.685-1.74-1.752-2.964c-.065-1.19.408-2.285 1.33-3.082c.88-.76 2.119-1.207 3.583-1.291a14 14 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757c-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32l-1.757-1.18c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388q.163.07.321.142c1.49.7 2.58 1.761 3.154 3.07c.797 1.82.871 4.79-1.548 7.158c-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69q-.362 0-.739.021c-1.836.103-2.98.946-2.916 2.143c.067 1.256 1.452 1.839 2.784 1.767c1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-tiktok{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02c.08 1.53.63 3.09 1.75 4.17c1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97c-.57-.26-1.1-.59-1.62-.93c-.01 2.92.01 5.84-.02 8.75c-.08 1.4-.54 2.79-1.35 3.94c-1.31 1.92-3.58 3.17-5.91 3.21c-1.43.08-2.86-.31-4.08-1.03c-2.02-1.19-3.44-3.37-3.65-5.71c-.02-.5-.03-1-.01-1.49c.18-1.9 1.12-3.72 2.58-4.96c1.66-1.44 3.98-2.13 6.15-1.72c.02 1.48-.04 2.96-.04 4.44c-.99-.32-2.15-.23-3.02.37c-.63.41-1.11 1.04-1.36 1.75c-.21.51-.15 1.07-.14 1.61c.24 1.64 1.82 3.02 3.5 2.87c1.12-.01 2.19-.66 2.77-1.61c.19-.33.4-.67.41-1.06c.1-1.79.06-3.57.07-5.36c.01-4.03-.01-8.05.02-12.07'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-x{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M14.234 10.162L22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299l-.929-1.329L3.076 1.56h3.182l5.965 8.532l.929 1.329l7.754 11.09h-3.182z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-3-dots-fade{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Ccircle cx='4' cy='12' r='3' fill='black'%3E%3Canimate id='SVG7x14Dcom' fill='freeze' attributeName='opacity' begin='0;SVGqSjG0dUp.end-0.25s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='3' fill='black' opacity='.4'%3E%3Canimate fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.15s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3Ccircle cx='20' cy='12' r='3' fill='black' opacity='.3'%3E%3Canimate id='SVGqSjG0dUp' fill='freeze' attributeName='opacity' begin='SVG7x14Dcom.begin+0.3s' dur='0.75s' values='1;.2'/%3E%3C/circle%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-90-ring-with-bg{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='black' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-alert-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-4v4m0 4h.01'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-github{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2c2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2a4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6c-.6.6-.6 1.2-.5 2V21'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-youtube{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 8a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4z'/%3E%3Cpath d='m10 9l5 3l-5 3z'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm12-4v4M8 3v4m-4 4h16m-9 4h1m0 0v3'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-chevron-down{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9l6 6l6-6'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-logout{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2'/%3E%3Cpath d='M9 12h12l-3-3m0 6l3-3'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-mail{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='m3 7l9 6l9-6'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-menu{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h16M4 16h16'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-message-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-share{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m12-6a3 3 0 1 0 6 0a3 3 0 1 0-6 0m0 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-6.3-7.3l6.6-3.4m-6.6 6l6.6 3.4'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2m0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2M9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='M9 10a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-2.832 8.849A4 4 0 0 1 10 16h4a4 4 0 0 1 3.834 2.855'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-square-rounded{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6'/%3E%3Cpath d='M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9s-9-1.8-9-9s1.8-9 9-9'/%3E%3Cpath d='M6 20.05V20a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v.05'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-world{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m.6-3h16.8M3.6 15h16.8'/%3E%3Cpath d='M11.5 3a17 17 0 0 0 0 18m1-18a17 17 0 0 1 0 18'/%3E%3C/g%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-x{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E\");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-11{width:calc(var(--spacing)*11);height:calc(var(--spacing)*11)}.size-12{width:calc(var(--spacing)*12);height:calc(var(--spacing)*12)}.size-full{width:100%;height:100%}.h-10{height:calc(var(--spacing)*10)}.h-20{height:calc(var(--spacing)*20)}.h-\\[28px\\]{height:28px}.h-\\[60px\\]{height:60px}.h-\\[80px\\]{height:80px}.h-\\[80vh\\]{height:80vh}.h-\\[600px\\]{height:600px}.h-full{height:100%}.max-h-\\[calc\\(100vh-48px\\)\\]{max-height:calc(100vh - 48px)}.min-h-0{min-height:calc(var(--spacing)*0)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-96{width:calc(var(--spacing)*96)}.w-\\[3px\\]{width:3px}.w-\\[28px\\]{width:28px}.w-\\[60px\\]{width:60px}.w-\\[80\\%\\]{width:80%}.w-\\[80px\\]{width:80px}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\\[70\\%\\]{max-width:70%}.max-w-\\[255px\\]{max-width:255px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[calc\\(100vw-48px\\)\\]{max-width:calc(100vw - 48px)}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.flex-grow-0{flex-grow:0}.basis-0{flex-basis:calc(var(--spacing)*0)}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-4{--tw-translate-x:calc(var(--spacing)*-4);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-\\[30px\\]{--tw-translate-x: -30px ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-4{--tw-translate-x:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-\\[30px\\]{--tw-translate-y: -30px ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\\[30px\\]{--tw-translate-y:30px;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45{rotate:-45deg}.rotate-0{rotate:none}.rotate-45{rotate:45deg}.transform-gpu{transform:translateZ(0)var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1\\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-7{gap:calc(var(--spacing)*7)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*12)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*12)*calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-green-400{border-color:var(--color-green-400)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500\\/40{border-color:var(--color-primary-500)}@supports (color:color-mix(in lab,red,red)){.border-primary-500\\/40{border-color:color-mix(in oklab,var(--color-primary-500)40%,transparent)}}.border-red-400{border-color:var(--color-red-400)}.border-white{border-color:var(--color-white)}.border-white\\/0{border-color:#0000}@supports (color:color-mix(in lab,red,red)){.border-white\\/0{border-color:color-mix(in oklab,var(--color-white)0%,transparent)}}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.border-white\\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-white\\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-primary-500\\/20{background-color:var(--color-primary-500)}@supports (color:color-mix(in lab,red,red)){.bg-primary-500\\/20{background-color:color-mix(in oklab,var(--color-primary-500)20%,transparent)}}.bg-primary-500\\/80{background-color:var(--color-primary-500)}@supports (color:color-mix(in lab,red,red)){.bg-primary-500\\/80{background-color:color-mix(in oklab,var(--color-primary-500)80%,transparent)}}.bg-primary-600{background-color:var(--color-primary-600)}.bg-red-500\\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\\/20{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\\/5{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.bg-white\\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.bg-white\\/15{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-black\\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab,red,red)){.from-black\\/70{--tw-gradient-from:color-mix(in oklab,var(--color-black)70%,transparent)}}.from-black\\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab,red,red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab,var(--color-black)80%,transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\\/90{--tw-gradient-from:#000000e6}@supports (color:color-mix(in lab,red,red)){.from-black\\/90{--tw-gradient-from:color-mix(in oklab,var(--color-black)90%,transparent)}}.from-black\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-theme-800{--tw-gradient-from:var(--color-theme-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-black\\/10{--tw-gradient-via:#0000001a}@supports (color:color-mix(in lab,red,red)){.via-black\\/10{--tw-gradient-via:color-mix(in oklab,var(--color-black)10%,transparent)}}.via-black\\/10{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/50{--tw-gradient-via:#00000080}@supports (color:color-mix(in lab,red,red)){.via-black\\/50{--tw-gradient-via:color-mix(in oklab,var(--color-black)50%,transparent)}}.via-black\\/50{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/60{--tw-gradient-via:#0009}@supports (color:color-mix(in lab,red,red)){.via-black\\/60{--tw-gradient-via:color-mix(in oklab,var(--color-black)60%,transparent)}}.via-black\\/60{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/90{--tw-gradient-via:#000000e6}@supports (color:color-mix(in lab,red,red)){.via-black\\/90{--tw-gradient-via:color-mix(in oklab,var(--color-black)90%,transparent)}}.via-black\\/90{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\\/40{--tw-gradient-to:#0006}@supports (color:color-mix(in lab,red,red)){.to-black\\/40{--tw-gradient-to:color-mix(in oklab,var(--color-black)40%,transparent)}}.to-black\\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-black\\/80{--tw-gradient-to:#000c}@supports (color:color-mix(in lab,red,red)){.to-black\\/80{--tw-gradient-to:color-mix(in oklab,var(--color-black)80%,transparent)}}.to-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-black\\/100{--tw-gradient-to:var(--color-black);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-theme-950{--tw-gradient-to:var(--color-theme-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.px-9{padding-inline:calc(var(--spacing)*9)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pt-12{padding-top:calc(var(--spacing)*12)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pb-12{padding-bottom:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.text-red-400{color:var(--color-red-400)}.text-theme-400{color:var(--color-theme-400)}.text-theme-600{color:var(--color-theme-600)}.text-theme-900{color:var(--color-theme-900)}.text-white{color:var(--color-white)}.text-white\\/20{color:#fff3}@supports (color:color-mix(in lab,red,red)){.text-white\\/20{color:color-mix(in oklab,var(--color-white)20%,transparent)}}.text-white\\/40{color:#fff6}@supports (color:color-mix(in lab,red,red)){.text-white\\/40{color:color-mix(in oklab,var(--color-white)40%,transparent)}}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-white\\/90{color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.text-white\\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.text-white\\/95{color:#fffffff2}@supports (color:color-mix(in lab,red,red)){.text-white\\/95{color:color-mix(in oklab,var(--color-white)95%,transparent)}}.placeholder-theme-500::-moz-placeholder{color:var(--color-theme-500)}.placeholder-theme-500::placeholder{color:var(--color-theme-500)}.placeholder-white\\/50::-moz-placeholder{color:#ffffff80}.placeholder-white\\/50::placeholder{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.placeholder-white\\/50::-moz-placeholder{color:color-mix(in oklab,var(--color-white)50%,transparent)}.placeholder-white\\/50::placeholder{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-white{--tw-ring-color:var(--color-white)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-1000{--tw-duration:1s;transition-duration:1s}.duration-\\[400ms\\]{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\.25\\,1\\,0\\.33\\,1\\)\\]{--tw-ease:cubic-bezier(.25,1,.33,1);transition-timing-function:cubic-bezier(.25,1,.33,1)}.ease-\\[cubic-bezier\\(0\\.52\\,0\\.01\\,0\\.16\\,1\\)\\]{--tw-ease:cubic-bezier(.52,.01,.16,1);transition-timing-function:cubic-bezier(.52,.01,.16,1)}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}@media(hover:hover){.group-hover\\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\\:opacity-40:is(:where(.group):hover *){opacity:.4}.hover\\:translate-y-\\[-1px\\]:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:rotate-90:hover{rotate:90deg}.hover\\:border-green-300:hover{border-color:var(--color-green-300)}.hover\\:border-primary-300:hover{border-color:var(--color-primary-300)}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:border-white\\/10:hover{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\\:border-white\\/10:hover{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\\:border-white\\/40:hover{border-color:#fff6}@supports (color:color-mix(in lab,red,red)){.hover\\:border-white\\/40:hover{border-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.hover\\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\\:bg-primary-500:hover{background-color:var(--color-primary-500)}.hover\\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/5:hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-white\\/70:hover{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.hover\\:text-white\\/70:hover{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.hover\\:text-white\\/80:hover{color:#fffc}@supports (color:color-mix(in lab,red,red)){.hover\\:text-white\\/80:hover{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.hover\\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}.focus\\:border-white\\/40:focus{border-color:#fff6}@supports (color:color-mix(in lab,red,red)){.focus\\:border-white\\/40:focus{border-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:-translate-y-0\\.5:active{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:scale-\\[1\\.06\\]:active{scale:1.06}.active\\:opacity-80:active{opacity:.8}.active\\:duration-100:active{--tw-duration:.1s;transition-duration:.1s}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media(min-width:40rem){.sm\\:size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.sm\\:h-24{height:calc(var(--spacing)*24)}.sm\\:w-24{width:calc(var(--spacing)*24)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media(min-width:48rem){.md\\:h-\\[600px\\]{height:600px}}@container agent (min-width:480px){.\\@\\[480px\\]\\/agent\\:px-6{padding-inline:calc(var(--spacing)*6)}}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:\"*\";inherits:false}@property --tw-gradient-from{syntax:\"<color>\";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:\"<color>\";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:\"<color>\";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:\"*\";inherits:false}@property --tw-gradient-via-stops{syntax:\"*\";inherits:false}@property --tw-gradient-from-position{syntax:\"<length-percentage>\";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:\"<length-percentage>\";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:\"<length-percentage>\";inherits:false;initial-value:100%}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}",this.shadowRoot.appendChild(e);const t=document.createElement("div");t.id="pagelines-widget-root",t.style.cssText="width: 100%; height: 100%;",this.shadowRoot.appendChild(t),await this.mountMode(t)}async mountMode(t){const{mode:r}=this.config;if("inline"===r){const{default:e}=await Promise.resolve().then(()=>qm);this.app=ui(e,{sdk:this.sdk,handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon}),this.widgetInstance=this.app.mount(t)}else if("button"===r){if(!this.config.el)throw new Error("PLWidget: el is required for button mode");const t=this.config.el;t.style.cursor="pointer";const r=lh(()=>{new e({mode:"modal",handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,onClose:this.config.onClose})},"handleClick");t.addEventListener("click",r),this.destroy=()=>{t.removeEventListener("click",r),dh.info(`Button mode widget destroyed for handle: ${this.config.handle}`)}}else if("popup"===r){const{default:e}=await Promise.resolve().then(()=>rv);this.app=ui(e,{sdk:this.sdk,handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,position:this.config.position||"bottom-right"}),this.widgetInstance=this.app.mount(t)}else{if("modal"!==r)throw new Error(`PLWidget: unsupported mode "${r}"`);{const{default:e}=await Promise.resolve().then(()=>hv);this.app=ui(e,{sdk:this.sdk,handle:this.config.handle,agent:this.config.agent,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,onClose:lh(()=>{this.config.onClose&&this.config.onClose(),this.destroy()},"onClose")}),this.widgetInstance=this.app.mount(t)}}}update(e){this.widgetInstance?.update?(this.widgetInstance.update(e),dh.info(`Widget updated: ${Object.keys(e).join(", ")}`)):dh.warn("Widget instance does not support update()")}toggle(){this.widgetInstance?.toggle?this.widgetInstance.toggle():dh.warn("Widget mode does not support toggle()")}open(){this.widgetInstance?.open?this.widgetInstance.open():dh.warn("Widget mode does not support open()")}close(){this.widgetInstance?.close?this.widgetInstance.close():dh.warn("Widget mode does not support close()")}destroy(){if(this.app&&(this.app.unmount(),this.app=null),this.shadowRoot&&(this.shadowRoot.innerHTML="",this.shadowRoot=null),"modal"===this.config.mode){this.container&&(this.container.remove(),this.container=null);const t=this.config.handle||this.config.agent?.agentId||"default";e.modalInstances.delete(t)}this.widgetInstance=null,dh.info(`Widget destroyed for handle: ${this.config.handle||this.config.agent?.handle}`)}};lh(uh,"PLWidget"),ch(uh,"modalInstances",new Map);let ph=uh;lh(function(e){const t=kt(null),r=kt(null),o=kt(!0),n=kt(null),a=kt(!1),i=Qn(()=>zt(e.handle)),s=Qn(()=>zt(e.agent)),l=Qn(()=>zt(e.context)),c=Qn(()=>zt(e.firstMessage)),d=Qn(()=>"modal"===e.mode?!(!i.value&&!s.value):!(!t.value||!i.value&&!s.value));return ar([t,s,i],async()=>{if(!a.value&&d.value){o.value=!0,n.value=null;try{await new Promise(e=>setTimeout(e,0));const o={mode:e.mode,handle:i.value,agent:s.value||void 0,context:l.value,firstMessage:c.value,apiBase:e.apiBase,onClose:e.onClose};"modal"!==e.mode&&(o.el=t.value),r.value=new ph(o),a.value=!0}catch(u){n.value=u instanceof Error?u.message:"Failed to initialize widget"}finally{o.value=!1}}},{immediate:!0}),ar([s,l,c],()=>{if(!r.value||!a.value)return;const e={};void 0!==s.value&&(e.agent=s.value||void 0),void 0!==l.value&&(e.context=l.value),void 0!==c.value&&(e.firstMessage=c.value),Object.keys(e).length>0&&r.value.update(e)}),eo(()=>{r.value&&(r.value.destroy(),r.value=null),a.value=!1}),{containerRef:t,widget:r,loading:o,error:n}},"usePLWidget");const hh=new Map;let gh=!0,fh=null;function mh(e){if(hh.has(e))return hh.get(e)||null;const t=e.getAttribute("data-handle"),r=e.getAttribute("data-mode");if(!t)return null;if(!r||!["inline","button","popup","modal"].includes(r))return null;try{const o={el:e,mode:r,handle:t,context:e.getAttribute("data-context")||void 0,firstMessage:e.getAttribute("data-first-message")||void 0,buttonText:e.getAttribute("data-button-text")||void 0,buttonIcon:e.getAttribute("data-button-icon")||void 0,position:e.getAttribute("data-position")||"bottom-right",apiBase:e.getAttribute("data-api-base")||void 0},n=new ph(o);return hh.set(e,n),n}catch(o){return o instanceof Error?o.message:String(o),null}}function vh(){const e=document.querySelectorAll("[data-pagelines-agent]");0!==e.length&&(e.length,e.forEach(e=>{mh(e)}))}function bh(){gh=!1,fh&&(fh.disconnect(),fh=null)}if("undefined"!=typeof window){window.PLWidget=ph,window.PLWidgetAPI={disableAutoDetect:bh};const e=()=>{const e=document.querySelector('script[src*="@pagelines/widget"]');"false"!==e?.getAttribute("data-pagelines-auto-detect")?(vh(),gh&&!fh&&(fh=new MutationObserver(e=>{e.forEach(e=>{if("childList"===e.type&&(e.addedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){const t=e;t.hasAttribute("data-pagelines-agent")&&mh(t),t.querySelectorAll("[data-pagelines-agent]").forEach(e=>{mh(e)})}}),e.removedNodes.forEach(e=>{if(e.nodeType===Node.ELEMENT_NODE){const t=e;if(hh.has(t)){const e=hh.get(t);e?.destroy(),hh.delete(t)}t.querySelectorAll("[data-pagelines-agent]").forEach(e=>{const t=hh.get(e);t&&(t.destroy(),hh.delete(e))})}})),"attributes"===e.type&&e.target.nodeType===Node.ELEMENT_NODE){const t=e.target;t.hasAttribute("data-pagelines-agent")&&e.attributeName&&function(e,t){const r=hh.get(e);if(r){if("data-handle"===t)return r.destroy(),hh.delete(e),void mh(e);if("data-context"===t||"data-first-message"===t||"data-button-text"===t||"data-button-icon"===t){const t=e.getAttribute("data-context")||void 0,o=e.getAttribute("data-first-message")||void 0,n=e.getAttribute("data-button-text")||void 0,a=e.getAttribute("data-button-icon")||void 0;r.update({context:t,firstMessage:o,buttonText:n,buttonIcon:a})}}}(t,e.attributeName)}})}),fh.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-handle","data-context","data-first-message","data-button-text","data-button-icon"]}))):bh()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}var wh=Object.defineProperty,yh=(e,t)=>wh(e,"name",{value:t,configurable:!0});const kh={linkedin:{label:"LinkedIn",icon:"i-simple-icons-linkedin",placeholder:"john-smith",getUrl:yh(e=>`https://linkedin.com/in/${e}`,"getUrl")},x:{label:"X",icon:"i-simple-icons-x",placeholder:"johnsmith",getUrl:yh(e=>`https://x.com/${e}`,"getUrl")},facebook:{label:"Facebook",icon:"i-simple-icons-facebook",placeholder:"johnsmith",getUrl:yh(e=>`https://facebook.com/${e}`,"getUrl")},tiktok:{label:"TikTok",icon:"i-simple-icons-tiktok",placeholder:"johnsmith",getUrl:yh(e=>`https://tiktok.com/@${e}`,"getUrl")},youtube:{label:"YouTube",icon:"i-tabler-brand-youtube",placeholder:"johnsmith",getUrl:yh(e=>`https://youtube.com/@${e}`,"getUrl")},github:{label:"GitHub",icon:"i-tabler-brand-github",placeholder:"johnsmith",getUrl:yh(e=>`https://github.com/${e}`,"getUrl")},instagram:{label:"Instagram",icon:"i-simple-icons-instagram",placeholder:"johnsmith",getUrl:yh(e=>`https://instagram.com/${e}`,"getUrl")},threads:{label:"Threads",icon:"i-simple-icons-threads",placeholder:"johnsmith",getUrl:yh(e=>`https://threads.net/@${e}`,"getUrl")},email:{label:"Email",icon:"i-tabler-mail",placeholder:"hello@example.com",getUrl:yh(e=>`mailto:${e}`,"getUrl")},phone:{label:"Phone",icon:"i-tabler-phone",placeholder:"+1-555-123-4567",getUrl:yh(e=>`tel:${e.replace(/[^0-9+]/g,"")}`,"getUrl")},website:{label:"Website",icon:"i-tabler-world",placeholder:"https://example.com",getUrl:yh(e=>e,"getUrl")},calendar:{label:"Calendar",icon:"i-tabler-calendar",placeholder:"https://cal.com/username",getUrl:yh(e=>e,"getUrl")}};var xh=Object.defineProperty,_h=(e,t)=>xh(e,"name",{value:t,configurable:!0}),Ch=(e,t,r)=>((e,t,r)=>t in e?xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);const zh={class:"spinner max-w-sm"},Sh={class:"ring-circular h-full w-full origin-center",viewBox:"25 25 50 50"},Ih=Pr({__name:"FSpinner",props:{width:{type:String,default:""},colorMode:{type:String,default:"primary"}},setup:e=>(t,r)=>(vn(),kn("div",zh,[(vn(),kn("svg",Sh,[In("circle",{class:H([e.colorMode,"ring-path"]),cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"30"},null,2)]))]))}),Ah={green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"}};function Eh(e){return Ah[e]||Ah.blue}_h(Eh,"getColorSchemeOklch");const Th=[{mode:"self",label:"Overview",icon:"i-tabler-user-square-rounded"},{mode:"talk",label:"Talk",icon:"i-tabler-phone"},{mode:"chat",label:"Chat",icon:"i-tabler-message-circle"},{mode:"info",label:"About",icon:"i-tabler-user-circle"}],Mh=class extends Up{constructor(e){super("ClientAudio",e),Ch(this,"audioContext"),Ch(this,"analyser"),Ch(this,"microphone"),Ch(this,"audioLevelInterval"),Ch(this,"stream"),Ch(this,"visibilityChangeHandler"),Ch(this,"vadTimeout"),Ch(this,"lastSpeechTime",0),Ch(this,"VAD_SILENCE_THRESHOLD",.03),Ch(this,"VAD_SILENCE_DURATION",1200),Ch(this,"audioLevels",kt({inputLevel:0,outputLevel:0})),this.setupVisibilityHandler()}setupVisibilityHandler(){typeof document>"u"||(this.visibilityChangeHandler=()=>{document.hidden?(this.logger.info("App backgrounded, suspending audio context"),this.handleAppBackground()):(this.logger.info("App foregrounded, resuming audio context"),this.handleAppForeground())},document.addEventListener("visibilitychange",this.visibilityChangeHandler,{passive:!0}),window.addEventListener("beforeunload",()=>{this.cleanup().catch(this.logger.error.bind(this,"Error during beforeunload cleanup"))},{passive:!0}))}handleAppBackground(){this.logger.info("App backgrounded - stopping microphone for privacy"),this.stopMicrophone().catch(this.logger.error.bind(this,"Error stopping microphone on background"))}handleAppForeground(){this.logger.info("App foregrounded - microphone remains off until user re-enables (security best practice)")}async requestMicrophonePermission(e={}){try{const{noiseSuppression:t=!0,echoCancellation:r=!0,autoGainControl:o=!0,voiceIsolation:n=!0}=e,a={audio:{noiseSuppression:{ideal:t,exact:t},echoCancellation:{ideal:r,exact:r},autoGainControl:{ideal:o,exact:o},voiceIsolation:{ideal:n,exact:n},advanced:[{googAudioMirroring:!1},{googAutoGainControl:o},{googAutoGainControl2:o},{googNoiseSuppression:t},{googNoiseSuppression2:t},{googEchoCancellation:r},{googEchoCancellation2:r},{googHighpassFilter:!0},{googTypingNoiseDetection:!0}]}};this.stream=await navigator.mediaDevices.getUserMedia(a);const i=this.stream.getAudioTracks()[0].getSettings();return this.logger.info("Microphone permission granted with settings:",{noiseSuppression:i.noiseSuppression,echoCancellation:i.echoCancellation,autoGainControl:i.autoGainControl,voiceIsolation:i.voiceIsolation,sampleRate:i.sampleRate}),await this.setupAudioAnalysis(),!0}catch(t){return this.logger.error("Microphone permission denied:",t),!1}}getMicrophoneStream(){return this.stream}async setupAudioAnalysis(){if(!this.stream)throw new Error("No audio stream available");try{this.audioContext=new AudioContext,this.analyser=this.audioContext.createAnalyser(),this.microphone=this.audioContext.createMediaStreamSource(this.stream),this.analyser.fftSize=256,this.analyser.smoothingTimeConstant=.8,this.microphone.connect(this.analyser),this.logger.info("Audio analysis setup complete",{fftSize:this.analyser.fftSize,frequencyBinCount:this.analyser.frequencyBinCount,sampleRate:this.audioContext.sampleRate})}catch(e){throw this.logger.error("Failed to setup audio analysis:",e),e}}detectVoiceActivity(e){const t=e>this.VAD_SILENCE_THRESHOLD;return t&&(this.lastSpeechTime=Date.now()),t}hasUserStoppedSpeaking(){return 0!==this.lastSpeechTime&&Date.now()-this.lastSpeechTime>this.VAD_SILENCE_DURATION}startAudioLevelMonitoring(e,t){if(!this.analyser)return void this.logger.info("Audio level monitoring not started - missing analyser");this.logger.info("Starting audio level monitoring with VAD at timestamp:",Date.now());const r=new Uint8Array(this.analyser.frequencyBinCount),o=_h(async()=>{if(this.analyser)try{this.analyser.getByteFrequencyData(r);const o=r.reduce((e,t)=>e+t,0)/r.length,n=Math.min(o/128,1);!this.detectVoiceActivity(n)&&this.hasUserStoppedSpeaking()&&t&&(this.logger.info("VAD: User stopped speaking (silence detected)"),t(),this.lastSpeechTime=0);const a=e?.()?.3:0;this.audioLevels.value={inputLevel:n,outputLevel:a}}catch(o){this.logger.error("Error in audio level monitoring:",o),this.stopAudioLevelMonitoring()}else this.logger.info("Stopping audio level monitoring - missing analyser")},"updateLevels"),n=_h(()=>{o().catch(e=>{this.logger.error("Async error in audio level monitoring:",e)})},"intervalWrapper");this.audioLevelInterval=window.setInterval(n,50)}stopAudioLevelMonitoring(){this.audioLevelInterval?(this.logger.info("Stopping audio level monitoring interval"),clearInterval(this.audioLevelInterval),this.audioLevelInterval=void 0):this.logger.info("No audio level monitoring interval to stop"),this.lastSpeechTime=0,this.vadTimeout&&(clearTimeout(this.vadTimeout),this.vadTimeout=void 0)}resetAudioLevels(){this.audioLevels.value={inputLevel:0,outputLevel:0},this.lastSpeechTime=0}isAudioContextAvailable(){return!!this.audioContext}getAudioContextState(){return this.audioContext?.state}getSharedAnalyser(){return this.analyser}async stopMicrophone(){this.stream&&(this.logger.info("Stopping microphone stream"),this.stream.getTracks().forEach(e=>{e.stop(),e.enabled=!1}),this.stream=void 0),this.stopAudioLevelMonitoring(),this.resetAudioLevels(),this.audioContext&&"closed"!==this.audioContext.state&&(await this.audioContext.close(),this.audioContext=void 0),this.analyser=void 0,this.microphone=void 0,this.logger.info("Microphone stopped")}async cleanup(){await this.stopMicrophone(),this.visibilityChangeHandler&&typeof document<"u"&&(document.removeEventListener("visibilitychange",this.visibilityChangeHandler),this.visibilityChangeHandler=void 0),this.logger.info("Audio resources cleaned up")}};_h(Mh,"ClientAudio");let jh=Mh;function $h(e){return e?"string"==typeof e?e:e.src||"":""}function Oh(e){return $h(e.cover)||$h(e.avatar)||"/img/placeholder-avatar.png"}function Ph(){return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+"}function Nh(e){const t=e.target;t.dataset.fallbackUsed||(t.dataset.fallbackUsed="true",t.src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+")}function Lh(e){const{message:t,source:r}=e;if(!t)return null;const o={user:"user",ai:"agent",agent:"agent"},n=o[r]||"agent";if("string"==typeof t)return t.trim()?{text:t.trim(),sender:n}:null;if("object"!=typeof t)return null;const a=[e=>{if(!("source"in e))return null;const t=o[e.source];return t?{text:e.message||"",sender:t}:null}];for(const i of a){const e=i(t);if(e&&e.text.trim())return{text:e.text.trim(),sender:e.sender}}return null}function Dh(e){const{template:t,agent:r}=e;return t.replace(/{name}/g,r.name||"Digital Agent").replace(/{title}/g,r.title||"").replace(/{handle}/g,r.handle||"").replace(/{orgName}/g,r.org?.name||"")}_h($h,"getImageSrc"),_h(Oh,"getAgentAvatarUrl"),_h(Ph,"getFallbackAvatarDataUrl"),_h(Nh,"handleImageError"),_h(Lh,"parseVoiceMessage"),_h(function(e){const{name:t,context:r}=e;return"welcome"===r?`Welcome! I'm ${t}, your AI agent. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?`:"onboarding"===r?`Hi! I'm ${t}, your newly created AI agent. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?`:`Hello! I'm ${t}. How can I help you today?`},"generateFirstMessage"),_h(Dh,"parseButtonTemplate");const Fh=class extends Up{constructor(e){super("AgentController",e),Ch(this,"conversation"),Ch(this,"isTextMode",!1),Ch(this,"lastMessage",{hash:"",time:0}),Ch(this,"clientAudio"),Ch(this,"unwatchAudio"),Ch(this,"isConnecting",!1),Ch(this,"conversationId"),Ch(this,"sessionId"),Ch(this,"conversationStartTime"),Ch(this,"hostParticipantId"),Ch(this,"visitorParticipantId"),Ch(this,"voiceState",kt({isActive:!1,isConnected:!1,isSpeaking:!1,isListening:!1,isProcessing:!1,transcript:"Tap to begin voice conversation",connectionStatus:"disconnected"})),Ch(this,"textState",kt({isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected"})),Ch(this,"agentMode",kt("self")),Ch(this,"sharedMessages",kt([])),this.clientAudio=new jh(e),this.setupModeWatcher()}get chatEnabled(){const{agent:e}=this.settings;return!!e.instanceId&&"running"===e.botStatus}get chatUnavailableReason(){const{agent:e}=this.settings;return e.instanceId?"error"===e.botStatus?"Agent encountered an error":"running"!==e.botStatus?"Agent is offline":void 0:"Agent is not deployed"}get audioLevels(){return this.clientAudio.audioLevels}getClientAudio(){return this.clientAudio}getOutputFrequencyData(){return null}getInputFrequencyData(){const e=this.clientAudio.getSharedAnalyser();if(e)try{const t=new Uint8Array(e.frequencyBinCount);return e.getByteFrequencyData(t),t}catch{}return null}mapChatError(e){return e.includes("429")||e.includes("Too many")?"Too many messages. Please wait a moment.":e.includes("503")||e.includes("not available")?"Agent is currently offline.":e.includes("timed out")||e.includes("starting up")?"Agent is starting up. Please try again.":e.includes("404")?"Agent not found.":"Something went wrong. Please try again."}isTransientError(e){return e.includes("timed out")||e.includes("starting up")||e.includes("503")}isDuplicateMessage(e,t){const r=`${t}:${e.toLowerCase().trim()}`,o=Date.now(),n=r===this.lastMessage.hash&&o-this.lastMessage.time<500;return n||(this.lastMessage={hash:r,time:o}),n}addMessage(e,t){this.isDuplicateMessage(e,t)||(this.sharedMessages.value=[...this.sharedMessages.value,{id:Date.now().toString(),text:e,sender:t,timestamp:new Date}])}getDynamicSettings(){const{sdk:e}=this.settings,t=e.activeUser.value,r=t?.agents?.find(e=>e.agentId===t.primaryAgentId),o=t?`\n\nCurrent User:\n- Name: ${r?.name||"Anonymous"}\n- Email: ${t.email}\n- Title: ${r?.title||""}\n- About: ${r?.summary||""}\n`:"";return{context:`${this.settings.context||""}${o}`.trim(),firstMessage:this.settings.firstMessage||""}}updateState(e,t){e.value={...e.value,...t}}resetState(e){e?this.updateState(this.textState,{isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected",error:void 0}):(this.updateState(this.voiceState,{isActive:!1,isConnected:!1,isSpeaking:!1,isListening:!1,isProcessing:!1,transcript:"Ready to start a call...",connectionStatus:"disconnected",error:void 0}),this.clientAudio.resetAudioLevels())}setupModeWatcher(){ar(this.agentMode,async(e,t)=>{this.logger.info(`Mode changed from ${t} to ${e}`),this.conversation&&("talk"===t||"chat"===t)&&await this.endConversation()})}handleMessage(e,t){const r=Lh(e);if(r&&(t&&"user"===r.sender&&this.logger.info("User transcription received",{text:r.text}),this.addMessage(r.text,r.sender),!t&&"agent"===r.sender&&this.updateState(this.textState,{isThinking:!1}),this.sessionId&&this.hostParticipantId&&this.visitorParticipantId)){const e="agent"===r.sender?this.hostParticipantId:this.visitorParticipantId,{sdk:t}=this.settings;t.saveMessage({conversationId:this.sessionId,participantId:e,content:r.text,role:"agent"===r.sender?"agent":"user"}).catch(e=>{this.logger.warn("Failed to save message",{error:e})})}}handleError(e,t){const r=e.message;this.logger.error("Conversation error:",e),this.resetState(t),t?this.updateState(this.voiceState,{error:r,connectionStatus:"error",transcript:"Failed to start call."}):this.updateState(this.textState,{error:r,connectionStatus:"error"})}async setMode(e){this.agentMode.value!==e&&(this.agentMode.value=e)}async startVoiceConversation(e={}){this.handleError(new Error("Voice conversations not yet available. OpenClaw integration pending."),!0)}async startTextConversation(e={}){if(this.isConnecting)this.logger.info("Text conversation already connecting, ignoring duplicate request");else{this.isConnecting=!0,this.isTextMode=!0,this.updateState(this.textState,{isActive:!0,connectionStatus:"connecting"});try{if(!this.chatEnabled)return this.isConnecting=!1,void this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason});this.isConnecting=!1,this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected"}),e.onConnect?.(),this.logger.info("Text conversation ready")}catch(t){throw this.isConnecting=!1,this.handleError(t,!1),t}}}async endConversation(){if(!this.conversation&&!this.isTextMode)return this.resetState(this.isTextMode),void(await this.clientAudio.stopMicrophone());try{this.conversation=void 0}finally{this.conversation=void 0,this.unwatchAudio?.(),this.unwatchAudio=void 0,this.conversationId=void 0,this.resetState(this.isTextMode),this.isTextMode=!1,await this.clientAudio.stopMicrophone()}}async sendChatMessage(e){if(!this.isTextMode)return;if(!this.chatEnabled)return void this.addMessage("Agent is currently offline.","system");const{sdk:t,agent:r}=this.settings;if(r.handle){this.addMessage(e,"user"),this.updateState(this.textState,{isThinking:!0}),this.sharedMessages.value=[...this.sharedMessages.value,{id:`stream-${Date.now()}`,text:"",sender:"agent",timestamp:new Date}];try{await t.chatStream({handle:r.handle,message:e,conversationId:this.conversationId,history:this.buildHistory(),visitorId:t.generateAnonId(),onDelta:_h(e=>{const t=this.sharedMessages.value,r=t[t.length-1];"agent"===r?.sender&&(r.text+=e,this.sharedMessages.value=[...t])},"onDelta"),onDone:_h(e=>{e&&(this.conversationId=e),this.updateState(this.textState,{isThinking:!1})},"onDone"),onError:_h(e=>{const t=this.sharedMessages.value,r=t[t.length-1];"agent"===r?.sender&&!r.text&&(this.sharedMessages.value=t.slice(0,-1));const o=this.mapChatError(e);this.isTransientError(e)?(this.addMessage(o,"system"),this.updateState(this.textState,{isThinking:!1})):this.handleError(new Error(o),!1)},"onError")})}catch(o){this.handleError(o,!1)}}else this.handleError(new Error("Agent handle required for chat"),!1)}buildHistory(){return this.sharedMessages.value.filter(e=>"user"===e.sender||"agent"===e.sender).slice(-20).map(e=>({role:"user"===e.sender?"user":"assistant",content:e.text})).filter(e=>e.content.length>0)}isConnected(){return!!this.conversation||this.isTextMode}isVoiceConnected(){return!!this.conversation&&!this.isTextMode}isTextConnected(){return this.isTextMode}async destroy(){await this.endConversation(),await this.clientAudio.cleanup(),this.endSession().catch(e=>{})}async endSession(){!this.sessionId||!this.conversationStartTime||(this.logger.info("Session ended",{sessionId:this.sessionId,duration:Math.round((Date.now()-this.conversationStartTime.getTime())/1e3),type:this.isTextMode?"chat":"voice"}),this.resetSession())}resetSession(){this.sessionId=void 0,this.conversationStartTime=void 0}};_h(Fh,"AgentController");let Uh=Fh;const Zh=Pr({__name:"EffectTransitionList",props:{disabled:{type:Boolean,default:!1},mode:{default:"block"}},setup:e=>(t,r)=>(vn(),xn(Ga,{name:e.disabled?"":"nlist"},{default:er(()=>[co(t.$slots,"default")]),_:3},8,["name"]))}),Bh={key:0,class:"absolute inset-0 flex items-center justify-center"},Vh=Pr({__name:"ElAgentButton",props:{theme:{default:"primary"},size:{default:"lg"},loading:{type:Boolean,default:!1},icon:{},iconAfter:{}},setup(e){const t=Qn(()=>({primary:"bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",green:"bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",red:"bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",default:"bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"}[e.theme])),r=Qn(()=>({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-base"}[e.size])),o=Qn(()=>({sm:"size-4",md:"size-4",lg:"size-5"}[e.size]));return(n,a)=>(vn(),kn("button",{class:H(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",[t.value,r.value]])},[e.loading?(vn(),kn("div",Bh,[...a[0]||(a[0]=[In("i",{class:"i-svg-spinners-90-ring-with-bg size-5"},null,-1)])])):jn("",!0),In("span",{class:H(["flex items-center gap-2 transition-opacity duration-200",e.loading?"opacity-0":"opacity-100"])},[e.icon?(vn(),kn("i",{key:0,class:H([e.icon,o.value])},null,2)):jn("",!0),co(n.$slots,"default"),e.iconAfter?(vn(),kn("i",{key:1,class:H([e.iconAfter,o.value])},null,2)):jn("",!0)],2)],2))}}),Rh=["value"],Wh=Pr({__name:"AgentInputEmail",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t;return(t,o)=>(vn(),kn("input",{type:"email",autocomplete:"email",placeholder:"Enter Your Email",value:e.modelValue,class:"w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-all",style:{"font-size":"16px"},onInput:o[0]||(o[0]=e=>r("update:modelValue",e.target.value))},null,40,Rh))}}),Hh={class:"flex gap-1.5 justify-center"},Gh=["onUpdate:modelValue","onInput","onKeydown","onPaste","onFocus"],Jh=Pr({__name:"AgentInputOneTimeCode",props:{modelValue:{},length:{},focusFirst:{type:Boolean}},emits:["update:modelValue","autoSubmit"],setup(e,{emit:t}){const r=e,o=t,n=kt([]),a=kt(Array.from({length:r.length}).fill("")),i=kt(!1);function s(e,t){t.preventDefault(),i.value=!0;const o=(t.clipboardData?.getData("text")||"").replace(/\D/g,"");if(o.length===r.length)a.value=o.split(""),setTimeout(()=>{n.value[r.length-1]?.focus(),i.value=!1},10);else{const t=[...a.value];o.split("").slice(0,r.length-e).forEach((r,o)=>{t[e+o]=r}),a.value=t;const s=Math.min(e+o.length,r.length-1);setTimeout(()=>{n.value[s]?.focus(),i.value=!1},10)}}function l(e,t){const o=t.target.value.slice(-1).replace(/\D/g,"");a.value[e]=o,o&&e<r.length-1&&n.value[e+1]?.focus()}function c(e,t){"Backspace"===t.key?(t.preventDefault(),a.value[e]="",e>0&&n.value[e-1]?.focus()):"ArrowLeft"===t.key&&e>0?n.value[e-1]?.focus():"ArrowRight"===t.key&&e<r.length-1&&n.value[e+1]?.focus()}function d(e){if(n.value[e]?.select(),!i.value&&a.value[e])for(let t=e;t<r.length;t++)a.value[t]=""}return Kr(()=>{r.modelValue&&(a.value=r.modelValue.split("").slice(0,r.length)),r.focusFirst&&!("ontouchstart"in window)&&n.value[0]?.focus()}),ar(()=>r.modelValue,e=>{a.value=e?e.split("").slice(0,r.length):Array.from({length:r.length}).fill("")}),ar(a,()=>{const e=a.value.filter(Boolean).join("");o("update:modelValue",e),e.length===r.length&&o("autoSubmit",e)},{deep:!0}),_h(s,"onPaste"),_h(l,"onInput"),_h(c,"onKeydown"),_h(d,"onFocus"),(t,r)=>(vn(),kn("div",Hh,[(vn(!0),kn(un,null,lo(e.length,e=>tr((vn(),kn("input",{key:e,ref_for:!0,ref:_h(t=>n.value[e-1]=t,"ref"),"onUpdate:modelValue":_h(t=>a.value[e-1]=t,"onUpdate:modelValue"),type:"text",inputmode:"numeric",autocomplete:"one-time-code",class:"size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",style:{"font-size":"16px"},maxlength:"1",onInput:_h(t=>l(e-1,t),"onInput"),onKeydown:_h(t=>c(e-1,t),"onKeydown"),onPaste:_h(t=>s(e-1,t),"onPaste"),onFocus:_h(t=>d(e-1),"onFocus")},null,40,Gh)),[[oi,a.value[e-1]]])),128))]))}}),qh=["data-test-mode"],Kh={class:"w-full max-w-xs space-y-12"},Yh={key:0,class:"text-xs text-theme-400 text-center"},Qh={class:"text-base font-light text-white text-center"},Xh={class:"space-y-6 relative"},eg={key:"email-field",class:"w-full"},tg={key:"code-field",class:"w-full"},rg=Pr({__name:"ElAuthGate",props:{sdk:{}},setup(e){const t=kt({email:"",code:""}),r=kt("email"),o=kt(!1),n={email:{title:"Enter Your Email",button:{label:"Continue",disabled:_h(()=>!t.value.email||o.value,"disabled")},action:_h(async()=>{if(!o.value){o.value=!0;try{await e.sdk.requestAuthCode({email:t.value.email})&&(r.value="code")}finally{o.value=!1}}},"action")},code:{title:"Enter Verification Code",button:{label:"Verify",disabled:_h(()=>6!==t.value.code.length||o.value,"disabled")},action:_h(async()=>{if(!o.value){o.value=!0;try{await e.sdk.loginWithCode({email:t.value.email,code:t.value.code})}finally{o.value=!1}}},"action")}},a=Qn(()=>n[r.value]);return ar(()=>e.sdk.activeUser.value,e=>{e&&r.value}),(o,n)=>(vn(),kn("div",{"data-test":"auth-form","data-test-mode":r.value,class:"flex flex-col items-center justify-center h-full p-6"},[In("div",Kh,[e.sdk.error.value?(vn(),kn("p",Yh,Q(e.sdk.error.value),1)):jn("",!0),In("h3",Qh,Q(a.value.title),1),In("div",Xh,[An(Zh,null,{default:er(()=>["email"===r.value?(vn(),kn("div",eg,[An(Wh,{modelValue:t.value.email,"onUpdate:modelValue":n[0]||(n[0]=e=>t.value.email=e),"data-test":"auth-email-input",onKeyup:li(a.value.action,["enter"])},null,8,["modelValue","onKeyup"])])):(vn(),kn("div",tg,[An(Jh,{modelValue:t.value.code,"onUpdate:modelValue":n[1]||(n[1]=e=>t.value.code=e),length:6,"focus-first":!0,"data-test":"auth-code-input",onAutoSubmit:a.value.action},null,8,["modelValue","onAutoSubmit"])])),(vn(),kn("div",{key:a.value.button.label,class:"space-y-4 w-full"},[An(Vh,{theme:"primary",size:"md",class:"w-full","data-test":"auth-submit",loading:e.sdk.loading.value,disabled:a.value.button.disabled()||e.sdk.loading.value,onClick:a.value.action},{default:er(()=>[Mn(Q(a.value.button.label),1)]),_:1},8,["loading","disabled","onClick"]),"code"===r.value?(vn(),kn("button",{key:0,class:"w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",onClick:n[2]||(n[2]=e=>r.value="email")}," Change Email ")):jn("",!0)]))]),_:1})])])],8,qh))}}),og={class:"relative flex-shrink-0"},ng=["src","alt"],ag={key:0,class:"absolute top-1 right-1"},ig={class:"min-w-0"},sg=Pr({__name:"ElModeHeader",props:{agent:{},size:{default:"md"},showOnlineIndicator:{type:Boolean,default:!0},layout:{default:"centered"}},setup(e){function t(){return e.agent.avatar?.src?e.agent.avatar.src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+"}return _h(t,"getAvatarSrc"),(r,o)=>(vn(),kn("div",{class:H(["flex gap-4",["centered"===e.layout?"flex-col items-center text-center":"flex-row items-center justify-center"]])},[In("div",og,[In("div",{class:H(["rounded-full overflow-hidden border-white","lg"===e.size?"w-20 h-20 sm:w-24 sm:h-24 border-4":"w-16 sm:size-16 border-2"])},[In("img",{src:t(),alt:e.agent.name,class:"w-full h-full object-cover",onError:o[0]||(o[0]=(...e)=>zt(Nh)&&zt(Nh)(...e))},null,40,ng)],2),e.showOnlineIndicator?(vn(),kn("div",ag,[...o[1]||(o[1]=[In("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1),In("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1)])])):jn("",!0)]),In("div",ig,[In("h1",{class:H(["font-light text-white mb-1 truncate",["lg"===e.size?"text-3xl mb-2":"text-xl sm:text-2xl tracking-wide leading-tight","horizontal"===e.layout?"text-white/95":""]])},Q(e.agent.name),3),In("p",{class:H(["font-light line-clamp-1",["lg"===e.size?"text-base text-white/60":"text-sm sm:text-base","horizontal"===e.layout?"text-white/70 truncate":"text-white/60"]])},Q("horizontal"===e.layout?e.agent.title||"Digital Agent":e.agent.title),3)])],2))}}),lg=_h((e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},"concatArrays"),cg=_h((e,t)=>({classGroupId:e,validator:t}),"createClassValidatorObject"),dg=_h((e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),"createClassPartObject"),ug="-",pg=[],hg=_h(e=>{const t=mg(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:_h(e=>{if(e.startsWith("[")&&e.endsWith("]"))return fg(e);const r=e.split(ug),o=""===r[0]&&r.length>1?1:0;return gg(r,o,t)},"getClassGroupId"),getConflictingClassGroupIds:_h((e,t)=>{if(t){const t=o[e],n=r[e];return t?n?lg(n,t):t:n||pg}return r[e]||pg},"getConflictingClassGroupIds")}},"createClassGroupUtils"),gg=_h((e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],n=r.nextPart.get(o);if(n){const r=gg(e,t+1,n);if(r)return r}const a=r.validators;if(null===a)return;const i=0===t?e.join(ug):e.slice(t).join(ug),s=a.length;for(let l=0;l<s;l++){const e=a[l];if(e.validator(i))return e.classGroupId}},"getGroupRecursive"),fg=_h(e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?"arbitrary.."+o:void 0})(),"getGroupIdForArbitraryProperty"),mg=_h(e=>{const{theme:t,classGroups:r}=e;return vg(r,t)},"createClassMap"),vg=_h((e,t)=>{const r=dg();for(const o in e){const n=e[o];bg(n,r,o,t)}return r},"processClassGroups"),bg=_h((e,t,r,o)=>{const n=e.length;for(let a=0;a<n;a++){const n=e[a];wg(n,t,r,o)}},"processClassesRecursively"),wg=_h((e,t,r,o)=>{"string"!=typeof e?"function"!=typeof e?xg(e,t,r,o):kg(e,t,r,o):yg(e,t,r)},"processClassDefinition"),yg=_h((e,t,r)=>{(""===e?t:_g(t,e)).classGroupId=r},"processStringDefinition"),kg=_h((e,t,r,o)=>{Cg(e)?bg(e(o),t,r,o):(null===t.validators&&(t.validators=[]),t.validators.push(cg(r,e)))},"processFunctionDefinition"),xg=_h((e,t,r,o)=>{const n=Object.entries(e),a=n.length;for(let i=0;i<a;i++){const[e,a]=n[i];bg(a,_g(t,e),r,o)}},"processObjectDefinition"),_g=_h((e,t)=>{let r=e;const o=t.split(ug),n=o.length;for(let a=0;a<n;a++){const e=o[a];let t=r.nextPart.get(e);t||(t=dg(),r.nextPart.set(e,t)),r=t}return r},"getPart"),Cg=_h(e=>"isThemeGetter"in e&&!0===e.isThemeGetter,"isThemeGetter"),zg=_h(e=>{if(e<1)return{get:_h(()=>{},"get"),set:_h(()=>{},"set")};let t=0,r=Object.create(null),o=Object.create(null);const n=_h((n,a)=>{r[n]=a,t++,t>e&&(t=0,o=r,r=Object.create(null))},"update");return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=o[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}},"createLruCache"),Sg=[],Ig=_h((e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),"createResultObject"),Ag=_h(e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=_h(e=>{const t=[];let r,o=0,n=0,a=0;const i=e.length;for(let d=0;d<i;d++){const i=e[d];if(0===o&&0===n){if(":"===i){t.push(e.slice(a,d)),a=d+1;continue}if("/"===i){r=d;continue}}"["===i?o++:"]"===i?o--:"("===i?n++:")"===i&&n--}const s=0===t.length?e:e.slice(a);let l=s,c=!1;return s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0),Ig(t,c,l,r&&r>a?r-a:void 0)},"parseClassName");if(t){const e=t+":",r=o;o=_h(t=>t.startsWith(e)?r(t.slice(e.length)):Ig(Sg,!1,t,void 0,!0),"parseClassName")}if(r){const e=o;o=_h(t=>r({className:t,parseClassName:e}),"parseClassName")}return o},"createParseClassName"),Eg=_h(e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,r)=>{t.set(e,1e6+r)}),e=>{const r=[];let o=[];for(let n=0;n<e.length;n++){const a=e[n],i="["===a[0],s=t.has(a);i||s?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},"createSortModifiers"),Tg=_h(e=>({cache:zg(e.cacheSize),parseClassName:Ag(e),sortModifiers:Eg(e),...hg(e)}),"createConfigUtils"),Mg=/\s+/,jg=_h((e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],s=e.trim().split(Mg);let l="";for(let c=s.length-1;c>=0;c-=1){const e=s[c],{isExternal:t,modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:h}=r(e);if(t){l=e+(l.length>0?" "+l:l);continue}let g=!!h,f=o(g?p.substring(0,h):p);if(!f){if(!g){l=e+(l.length>0?" "+l:l);continue}if(f=o(p),!f){l=e+(l.length>0?" "+l:l);continue}g=!1}const m=0===d.length?"":1===d.length?d[0]:a(d).join(":"),v=u?m+"!":m,b=v+f;if(i.indexOf(b)>-1)continue;i.push(b);const w=n(f,g);for(let r=0;r<w.length;++r){const e=w[r];i.push(v+e)}l=e+(l.length>0?" "+l:l)}return l},"mergeClassList"),$g=_h((...e)=>{let t,r,o=0,n="";for(;o<e.length;)(t=e[o++])&&(r=Og(t))&&(n&&(n+=" "),n+=r);return n},"twJoin"),Og=_h(e=>{if("string"==typeof e)return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Og(e[o]))&&(r&&(r+=" "),r+=t);return r},"toValue"),Pg=_h((e,...t)=>{let r,o,n,a;const i=_h(i=>{const l=t.reduce((e,t)=>t(e),e());return r=Tg(l),o=r.cache.get,n=r.cache.set,a=s,s(i)},"initTailwindMerge"),s=_h(e=>{const t=o(e);if(t)return t;const a=jg(e,r);return n(e,a),a},"tailwindMerge");return a=i,(...e)=>a($g(...e))},"createTailwindMerge"),Ng=[],Lg=_h(e=>{const t=_h(t=>t[e]||Ng,"themeGetter");return t.isThemeGetter=!0,t},"fromTheme"),Dg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ug=/^\d+\/\d+$/,Zg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Rg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hg=_h(e=>Ug.test(e),"isFraction"),Gg=_h(e=>!!e&&!Number.isNaN(Number(e)),"isNumber"),Jg=_h(e=>!!e&&Number.isInteger(Number(e)),"isInteger"),qg=_h(e=>e.endsWith("%")&&Gg(e.slice(0,-1)),"isPercent"),Kg=_h(e=>Zg.test(e),"isTshirtSize"),Yg=_h(()=>!0,"isAny"),Qg=_h(e=>Bg.test(e)&&!Vg.test(e),"isLengthOnly"),Xg=_h(()=>!1,"isNever"),ef=_h(e=>Rg.test(e),"isShadow"),tf=_h(e=>Wg.test(e),"isImage"),rf=_h(e=>!nf(e)&&!hf(e),"isAnyNonArbitrary"),of=_h(e=>kf(e,zf,Xg),"isArbitrarySize"),nf=_h(e=>Dg.test(e),"isArbitraryValue"),af=_h(e=>kf(e,Sf,Qg),"isArbitraryLength"),sf=_h(e=>kf(e,If,Gg),"isArbitraryNumber"),lf=_h(e=>kf(e,Ef,Yg),"isArbitraryWeight"),cf=_h(e=>kf(e,Af,Xg),"isArbitraryFamilyName"),df=_h(e=>kf(e,_f,Xg),"isArbitraryPosition"),uf=_h(e=>kf(e,Cf,tf),"isArbitraryImage"),pf=_h(e=>kf(e,Tf,ef),"isArbitraryShadow"),hf=_h(e=>Fg.test(e),"isArbitraryVariable"),gf=_h(e=>xf(e,Sf),"isArbitraryVariableLength"),ff=_h(e=>xf(e,Af),"isArbitraryVariableFamilyName"),mf=_h(e=>xf(e,_f),"isArbitraryVariablePosition"),vf=_h(e=>xf(e,zf),"isArbitraryVariableSize"),bf=_h(e=>xf(e,Cf),"isArbitraryVariableImage"),wf=_h(e=>xf(e,Tf,!0),"isArbitraryVariableShadow"),yf=_h(e=>xf(e,Ef,!0),"isArbitraryVariableWeight"),kf=_h((e,t,r)=>{const o=Dg.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},"getIsArbitraryValue"),xf=_h((e,t,r=!1)=>{const o=Fg.exec(e);return!!o&&(o[1]?t(o[1]):r)},"getIsArbitraryVariable"),_f=_h(e=>"position"===e||"percentage"===e,"isLabelPosition"),Cf=_h(e=>"image"===e||"url"===e,"isLabelImage"),zf=_h(e=>"length"===e||"size"===e||"bg-size"===e,"isLabelSize"),Sf=_h(e=>"length"===e,"isLabelLength"),If=_h(e=>"number"===e,"isLabelNumber"),Af=_h(e=>"family-name"===e,"isLabelFamilyName"),Ef=_h(e=>"number"===e||"weight"===e,"isLabelWeight"),Tf=_h(e=>"shadow"===e,"isLabelShadow"),Mf=Pg(_h(()=>{const e=Lg("color"),t=Lg("font"),r=Lg("text"),o=Lg("font-weight"),n=Lg("tracking"),a=Lg("leading"),i=Lg("breakpoint"),s=Lg("container"),l=Lg("spacing"),c=Lg("radius"),d=Lg("shadow"),u=Lg("inset-shadow"),p=Lg("text-shadow"),h=Lg("drop-shadow"),g=Lg("blur"),f=Lg("perspective"),m=Lg("aspect"),v=Lg("ease"),b=Lg("animate"),w=_h(()=>["auto","avoid","all","avoid-page","page","left","right","column"],"scaleBreak"),y=_h(()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],"scalePosition"),k=_h(()=>[...y(),hf,nf],"scalePositionWithArbitrary"),x=_h(()=>["auto","hidden","clip","visible","scroll"],"scaleOverflow"),_=_h(()=>["auto","contain","none"],"scaleOverscroll"),C=_h(()=>[hf,nf,l],"scaleUnambiguousSpacing"),z=_h(()=>[Hg,"full","auto",...C()],"scaleInset"),S=_h(()=>[Jg,"none","subgrid",hf,nf],"scaleGridTemplateColsRows"),I=_h(()=>["auto",{span:["full",Jg,hf,nf]},Jg,hf,nf],"scaleGridColRowStartAndEnd"),A=_h(()=>[Jg,"auto",hf,nf],"scaleGridColRowStartOrEnd"),E=_h(()=>["auto","min","max","fr",hf,nf],"scaleGridAutoColsRows"),T=_h(()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],"scaleAlignPrimaryAxis"),M=_h(()=>["start","end","center","stretch","center-safe","end-safe"],"scaleAlignSecondaryAxis"),j=_h(()=>["auto",...C()],"scaleMargin"),$=_h(()=>[Hg,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],"scaleSizing"),O=_h(()=>[e,hf,nf],"scaleColor"),P=_h(()=>[...y(),mf,df,{position:[hf,nf]}],"scaleBgPosition"),N=_h(()=>["no-repeat",{repeat:["","x","y","space","round"]}],"scaleBgRepeat"),L=_h(()=>["auto","cover","contain",vf,of,{size:[hf,nf]}],"scaleBgSize"),D=_h(()=>[qg,gf,af],"scaleGradientStopPosition"),F=_h(()=>["","none","full",c,hf,nf],"scaleRadius"),U=_h(()=>["",Gg,gf,af],"scaleBorderWidth"),Z=_h(()=>["solid","dashed","dotted","double"],"scaleLineStyle"),B=_h(()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],"scaleBlendMode"),V=_h(()=>[Gg,qg,mf,df],"scaleMaskImagePosition"),R=_h(()=>["","none",g,hf,nf],"scaleBlur"),W=_h(()=>["none",Gg,hf,nf],"scaleRotate"),H=_h(()=>["none",Gg,hf,nf],"scaleScale"),G=_h(()=>[Gg,hf,nf],"scaleSkew"),J=_h(()=>[Hg,"full",...C()],"scaleTranslate");return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kg],breakpoint:[Kg],color:[Yg],container:[Kg],"drop-shadow":[Kg],ease:["in","out","in-out"],font:[rf],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kg],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kg],shadow:[Kg],spacing:["px",Gg],text:[Kg],"text-shadow":[Kg],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hg,nf,hf,m]}],container:["container"],columns:[{columns:[Gg,nf,hf,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Jg,"auto",hf,nf]}],basis:[{basis:[Hg,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Gg,Hg,"auto","initial","none",nf]}],grow:[{grow:["",Gg,hf,nf]}],shrink:[{shrink:["",Gg,hf,nf]}],order:[{order:[Jg,"first","last","none",hf,nf]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[s,"screen",...$()]}],"min-w":[{"min-w":[s,"screen","none",...$()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,gf,af]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,yf,lf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qg,nf]}],"font-family":[{font:[ff,cf,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,hf,nf]}],"line-clamp":[{"line-clamp":[Gg,"none",hf,sf]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":["none",hf,nf]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",hf,nf]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Gg,"from-font","auto",hf,af]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Gg,"auto",hf,nf]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",hf,nf]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",hf,nf]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jg,hf,nf],radial:["",hf,nf],conic:[Jg,hf,nf]},bf,uf]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Gg,hf,nf]}],"outline-w":[{outline:["",Gg,gf,af]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,wf,pf]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,wf,pf]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Gg,af]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",p,wf,pf]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Gg,hf,nf]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Gg]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[hf,nf]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[Gg]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",hf,nf]}],filter:[{filter:["","none",hf,nf]}],blur:[{blur:R()}],brightness:[{brightness:[Gg,hf,nf]}],contrast:[{contrast:[Gg,hf,nf]}],"drop-shadow":[{"drop-shadow":["","none",h,wf,pf]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Gg,hf,nf]}],"hue-rotate":[{"hue-rotate":[Gg,hf,nf]}],invert:[{invert:["",Gg,hf,nf]}],saturate:[{saturate:[Gg,hf,nf]}],sepia:[{sepia:["",Gg,hf,nf]}],"backdrop-filter":[{"backdrop-filter":["","none",hf,nf]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[Gg,hf,nf]}],"backdrop-contrast":[{"backdrop-contrast":[Gg,hf,nf]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Gg,hf,nf]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Gg,hf,nf]}],"backdrop-invert":[{"backdrop-invert":["",Gg,hf,nf]}],"backdrop-opacity":[{"backdrop-opacity":[Gg,hf,nf]}],"backdrop-saturate":[{"backdrop-saturate":[Gg,hf,nf]}],"backdrop-sepia":[{"backdrop-sepia":["",Gg,hf,nf]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",hf,nf]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Gg,"initial",hf,nf]}],ease:[{ease:["linear","initial",v,hf,nf]}],delay:[{delay:[Gg,hf,nf]}],animate:[{animate:["none",b,hf,nf]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,hf,nf]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[hf,nf,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",hf,nf]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",hf,nf]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Gg,gf,af,sf]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},"getDefaultConfig")),jf={default:{solid:{base:"bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",input:"bg-white dark:bg-theme-800/50\n ring-theme-200 dark:ring-theme-600/70\n focus:ring-theme-600 focus:bg-white\n dark:focus:ring-theme-500 dark:focus:bg-theme-800\n focus-within:ring-theme-600 dark:focus-within:ring-theme-500\n text-theme-900 dark:text-theme-100\n placeholder:text-theme-400 dark:placeholder:text-theme-500",border:"border-theme-300/80 dark:border-theme-600",hover:"hover:border-theme-300 dark:hover:border-theme-500",icon:"text-theme-600 dark:text-theme-50"},ghost:{base:"bg-theme-50 dark:bg-theme-600/30 text-theme-700 dark:text-theme-50",border:"border-theme-100 dark:border-theme-800/20",hover:"hover:bg-theme-200 dark:hover:bg-theme-600/50 hover:border-theme-200 dark:hover:border-theme-600",icon:"text-theme-500 dark:text-theme-500"},outline:{base:"bg-transparent text-theme-700 dark:text-theme-50",border:"border-theme-300 dark:border-theme-400",hover:"hover:opacity-70",icon:"text-theme-700 dark:text-theme-300"},link:{base:"bg-transparent text-theme-600 dark:text-theme-50",border:"border-transparent",hover:"hover:opacity-70",icon:"text-theme-600 dark:text-theme-400"}},muted:{solid:{base:"bg-gray-100 dark:bg-gray-700/40 text-gray-900 dark:text-gray-50",input:"bg-white dark:bg-gray-800/50\n ring-gray-200 dark:ring-gray-600/70\n focus:ring-gray-600 focus:bg-white\n dark:focus:ring-gray-500 dark:focus:bg-gray-800\n focus-within:ring-gray-600 dark:focus-within:ring-gray-500\n text-gray-900 dark:text-gray-100\n placeholder:text-gray-400 dark:placeholder:text-gray-500",border:"border-gray-300/80 dark:border-gray-600",hover:"hover:border-gray-300 dark:hover:border-gray-500",icon:"text-gray-600 dark:text-gray-50"},ghost:{base:"bg-gray-100 dark:bg-gray-600/30 text-gray-700 dark:text-gray-50",border:"border-gray-100 dark:border-gray-800/20",hover:"hover:bg-gray-200 dark:hover:bg-gray-600/50 hover:border-gray-200 dark:hover:border-gray-600",icon:"text-gray-500 dark:text-gray-500"},outline:{base:"bg-transparent text-gray-700 dark:text-gray-50",border:"border-gray-500 dark:border-gray-400",hover:"hover:opacity-70",icon:"text-gray-700 dark:text-gray-300"},link:{base:"bg-transparent text-gray-600 dark:text-gray-50",border:"border-transparent",hover:"hover:opacity-70",icon:"text-gray-600 dark:text-gray-400"}},overlay:{solid:{base:"bg-white/100 text-black backdrop-blur-sm shadow-sm mix-blend-overlay [text-shadow:_0_1px_1px_rgb(255_255_255_/_100%)]",border:"border-white/100",input:"bg-white/10 ring-white\n focus:ring-white/90 focus:bg-white/20\n dark:focus:ring-white/70\n text-white\n placeholder:text-white/60",hover:"hover:bg-white/70 ",icon:"text-black"},ghost:{base:"bg-white/70 text-black backdrop-blur-sm shadow-sm mix-blend-overlay [text-shadow:_0_1px_1px_rgb(255_255_255_/_100%)]",border:"border-white/100",hover:"hover:bg-white/70 hover:border-white/90",icon:"text-black"},outline:{base:"bg-white/10 text-white backdrop-blur-sm shadow-sm [text-shadow:_0_0.5px_0_rgb(0_0_0_/_40%)]",border:"border-white",hover:"hover:border-white/80",icon:"text-white"},link:{base:"bg-transparent text-white [text-shadow:_0_0.5px_0_rgb(0_0_0_/_40%)]",border:"border-transparent",hover:"hover:opacity-70",icon:"text-white"}},primary:{solid:{base:"bg-theme-900 dark:bg-theme-100 text-white dark:text-theme-900",border:"border-theme-900 dark:border-theme-200",input:"bg-theme-50 dark:bg-theme-800/20\n ring-theme-900 dark:ring-theme-300\n focus:ring-theme-700 focus:bg-theme-50/50\n dark:focus:ring-theme-400 dark:focus:bg-theme-800/40\n text-theme-900 dark:text-theme-100\n placeholder:text-theme-400 dark:placeholder:text-theme-500",hover:"hover:bg-theme-800 dark:hover:bg-theme-200",icon:"text-white dark:text-theme-900"},ghost:{base:"bg-theme-100 dark:bg-theme-800 text-theme-900 dark:text-theme-100",border:"border-theme-200 dark:border-theme-700",hover:"hover:bg-theme-200 dark:hover:bg-theme-700",icon:"text-theme-700 dark:text-theme-300"},outline:{base:"bg-transparent text-theme-900 dark:text-theme-100",border:"border-theme-900 dark:border-theme-300",hover:"hover:bg-theme-100 dark:hover:bg-theme-800",icon:"text-theme-900 dark:text-theme-100"},link:{base:"bg-transparent text-theme-900 dark:text-theme-100",border:"border-transparent",hover:"hover:opacity-70",icon:"text-theme-900 dark:text-theme-100"}},theme:{solid:{base:"bg-theme-500 dark:bg-theme-600/70 text-theme-0 dark:text-theme-0",border:"border-theme-600/80 dark:border-theme-600",hover:"hover:bg-theme-600 dark:hover:bg-theme-800",icon:"text-theme-50 dark:text-theme-50"},ghost:{base:"bg-theme-100 dark:bg-theme-600/50 text-theme-900 dark:text-theme-100",border:"border-theme-100 dark:border-theme-800/20",hover:"hover:bg-theme-200 dark:hover:bg-theme-600/40 hover:border-theme-200 dark:hover:border-theme-600",icon:"text-theme-500 dark:text-theme-500"},outline:{base:"bg-transparent text-theme-500 dark:text-theme-300",border:"border-theme-500 dark:border-theme-400",hover:"hover:bg-theme-500/10 dark:hover:bg-theme-400/20",icon:"text-theme-500 dark:text-theme-300"},link:{base:"bg-transparent text-theme-600 dark:text-theme-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-theme-600 dark:text-theme-400"}},green:{solid:{base:"bg-green-600 dark:bg-green-700/70 text-green-50 dark:text-green-50",border:"border-green-600 dark:border-green-600",hover:"hover:bg-green-700 dark:hover:bg-green-800",icon:"text-green-50 dark:text-green-50"},ghost:{base:"bg-green-100 dark:bg-green-800/20 text-green-900 dark:text-green-100",border:"border-green-100 dark:border-green-800/20",hover:"hover:bg-green-200 dark:hover:bg-green-800/40 hover:border-green-200 dark:hover:border-green-700",icon:"text-green-500 dark:text-green-500"},outline:{base:"bg-transparent text-green-500 dark:text-green-50",border:"border-green-500 dark:border-green-600",hover:"hover:bg-green-500/10 dark:hover:bg-green-400/10",icon:"text-green-500 dark:text-green-50"},link:{base:"bg-transparent text-green-600 dark:text-green-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-green-600 dark:text-green-400"}},orange:{solid:{base:"bg-orange-500 dark:bg-orange-700/70 text-orange-50 dark:text-orange-50",border:"border-orange-700 dark:border-orange-600",hover:"hover:bg-orange-700 dark:hover:bg-orange-800",icon:"text-orange-50 dark:text-orange-50"},ghost:{base:"bg-orange-100 dark:bg-orange-800/20 text-orange-900 dark:text-orange-100",border:"border-orange-100 dark:border-orange-800/20",hover:"hover:bg-orange-200 dark:hover:bg-orange-800/40 hover:border-orange-200 dark:hover:border-orange-700",icon:"text-orange-500 dark:text-orange-500"},outline:{base:"bg-transparent text-orange-500 dark:text-orange-50",border:"border-orange-500 dark:border-orange-600",hover:"hover:bg-orange-500/10 dark:hover:bg-orange-400/10",icon:"text-orange-500 dark:text-orange-50"},link:{base:"bg-transparent text-orange-600 dark:text-orange-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-orange-600 dark:text-orange-400"}},rose:{solid:{base:"bg-rose-500 dark:bg-rose-700/70 text-rose-50 dark:text-rose-50",border:"border-rose-600/80 dark:border-rose-600",hover:"hover:bg-rose-600 dark:hover:bg-rose-800",icon:"text-rose-50 dark:text-rose-50"},ghost:{base:"bg-rose-100 dark:bg-rose-800/20 text-rose-900 dark:text-rose-100",border:"border-rose-100 dark:border-rose-800/20",hover:"hover:bg-rose-200 dark:hover:bg-rose-800/40 hover:border-rose-200 dark:hover:border-rose-700",icon:"text-rose-500 dark:text-rose-500"},outline:{base:"bg-transparent text-rose-500 dark:text-rose-50",border:"border-rose-500 dark:border-rose-600",hover:"hover:bg-rose-500/10 dark:hover:bg-rose-400/10",icon:"text-rose-500 dark:text-rose-50"},link:{base:"bg-transparent text-rose-600 dark:text-rose-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-rose-600 dark:text-rose-400"}},indigo:{solid:{base:"bg-indigo-500 dark:bg-indigo-700/70 text-indigo-50 dark:text-indigo-50",border:"border-indigo-600/80 dark:border-indigo-600",hover:"hover:bg-indigo-600 dark:hover:bg-indigo-800",icon:"text-indigo-50 dark:text-indigo-50"},ghost:{base:"bg-indigo-100 dark:bg-indigo-800/20 text-indigo-900 dark:text-indigo-100",border:"border-indigo-100 dark:border-indigo-800/20",hover:"hover:bg-indigo-200 dark:hover:bg-indigo-800/40 hover:border-indigo-200 dark:hover:border-indigo-700",icon:"text-indigo-500 dark:text-indigo-500"},outline:{base:"bg-transparent text-indigo-500 dark:text-indigo-50",border:"border-indigo-500 dark:border-indigo-600",hover:"hover:bg-indigo-500/10 dark:hover:bg-indigo-400/10",icon:"text-indigo-500 dark:text-indigo-50"},link:{base:"bg-transparent text-indigo-600 dark:text-indigo-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-indigo-600 dark:text-indigo-400"}},red:{solid:{base:"bg-red-500 dark:bg-red-700/70 text-red-50 dark:text-red-50",border:"border-red-600/80 dark:border-red-600",hover:"hover:bg-red-600 dark:hover:bg-red-800",icon:"text-red-50 dark:text-red-50"},ghost:{base:"bg-red-100 dark:bg-red-800/20 text-red-900 dark:text-red-100",border:"border-red-100 dark:border-red-800/20",hover:"hover:bg-red-200 dark:hover:bg-red-800/40 hover:border-red-200 dark:hover:border-red-700",icon:"text-red-500 dark:text-red-500"},outline:{base:"bg-transparent text-red-500 dark:text-red-50",border:"border-red-500 dark:border-red-600",hover:"hover:bg-red-500/10 dark:hover:bg-red-400/10",icon:"text-red-500 dark:text-red-50"},link:{base:"bg-transparent text-red-600 dark:text-red-400",border:"border-transparent",hover:"hover:opacity-70",icon:"text-red-600 dark:text-red-400"}}},$f={key:0,class:"absolute inset-0 flex items-center justify-center"},Of=Pr({__name:"FButton",props:{theme:{default:"default"},design:{default:"solid"},size:{default:"md"},rounding:{default:"full"},href:{},icon:{},iconAfter:{},tag:{default:"button"},loading:{type:Boolean,default:!1},class:{default:""}},setup(e){const t=Qn(()=>"string"==typeof e.icon?e.icon:e.icon?.className),r=Qn(()=>"string"==typeof e.iconAfter?e.iconAfter:e.iconAfter?.className),o=Qn(()=>e.href?"a":e.tag),n=Qn(()=>({xxs:"size-2.5",xs:"size-3",sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6"}[e.size])),a=Qn(()=>jf[e.theme]?.[e.design]||jf.default[e.design]||{base:"",border:"",hover:"",icon:""}),i=Qn(()=>{const t="link"===e.design?"!px-1":"",r=a.value,o=["relative inline-flex items-center justify-center gap-2 font-medium transition-all duration-200 focus:outline-none active:opacity-80 cursor-pointer",{xxs:"px-2 py-0.5 text-[10px]",xs:"px-3 py-1 text-[11px]",sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base",xl:"px-8 py-4 text-base"}[e.size],t,{md:"rounded-md",lg:"rounded-lg","2xl":"rounded-2xl",full:"rounded-full"}[e.rounding],r.base,`border ${r.border}`,r.hover].filter(Boolean).join(" ");return Mf(o,e.class)}),s=Qn(()=>({design:a.value.icon||""}));return(a,l)=>(vn(),xn(io(o.value),{href:e.href,class:H(i.value)},{default:er(()=>[e.loading?(vn(),kn("div",$f,[An(Ih,{class:H(n.value)},null,8,["class"])])):jn("",!0),In("span",{class:H(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap",e.loading?"opacity-0":"opacity-100"])},[t.value?(vn(),kn("span",{key:0,class:H(["flex items-center size-[1.1em] mt-[-.07em]",[t.value,s.value.design]])},null,2)):jn("",!0),co(a.$slots,"default"),r.value?(vn(),kn("span",{key:1,class:H(["flex items-center size-[1.1em] mt-[-.07em]",[r.value,s.value.design]])},null,2)):jn("",!0)],2)]),_:3},8,["href","class"]))}}),Pf={class:"flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative"},Nf={class:"flex-1 space-y-6 pb-12"},Lf={key:0,class:"text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"},Df=["innerHTML"],Ff={key:1,class:"bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"},Uf={class:"text-sm text-white/70 leading-relaxed"},Zf={key:2,class:"space-y-3"},Bf={key:3,class:"space-y-3"},Vf={class:"grid grid-cols-2 gap-3"},Rf=Pr({__name:"ElAgentAbout",props:{agent:{}},setup:e=>(t,r)=>(vn(),kn("div",Pf,[An(sg,{agent:e.agent},null,8,["agent"]),In("div",Nf,[e.agent.summary?(vn(),kn("div",Lf,[r[0]||(r[0]=In("h3",{class:"font-medium text-white/50"}," About ",-1)),In("div",{class:"text-white/70 leading-relaxed",innerHTML:e.agent.summary},null,8,Df)])):jn("",!0),"company"===e.agent.entityType?(vn(),kn("div",Ff,[r[1]||(r[1]=In("h3",{class:"text-sm font-medium text-white/90 mb-2"}," Company Info ",-1)),In("p",Uf," This is a company agent representing "+Q(e.agent.name)+". ",1)])):jn("",!0),e.agent.email?(vn(),kn("div",Zf,[r[3]||(r[3]=In("h3",{class:"text-sm font-medium text-white/90"}," Contact ",-1)),An(Of,{design:"ghost",theme:"default",size:"sm",class:"bg-white/5 hover:bg-white/10 border border-white/10 text-white/80 text-sm justify-start h-10 w-full",icon:"i-heroicons-envelope",href:`mailto:${e.agent.email}`,target:"_blank"},{default:er(()=>[...r[2]||(r[2]=[Mn(" Email ",-1)])]),_:1},8,["href"])])):jn("",!0),e.agent.accounts&&e.agent.accounts.length>0?(vn(),kn("div",Bf,[r[4]||(r[4]=In("h3",{class:"text-sm font-medium text-white/90"}," Links ",-1)),In("div",Vf,[(vn(!0),kn(un,null,lo(e.agent.accounts,e=>(vn(),xn(Of,{key:`${e.platform}-${e.handle}`,design:"ghost",theme:"default",size:"md",class:"bg-white/10 hover:bg-white/20 border border-white/20 text-white/80",icon:zt(kh)[e.platform].icon,href:zt(kh)[e.platform].getUrl(e.handle),target:"_blank"},{default:er(()=>[Mn(Q(zt(kh)[e.platform].label),1)]),_:2},1032,["icon","href"]))),128))])])):jn("",!0)])]))}),Wf={class:"flex flex-col h-full relative"},Hf={class:"pb-4"},Gf={key:0,class:"text-white/60 py-16 flex flex-col items-center justify-center gap-3 text-sm"},Jf={key:1,class:"text-theme-600 py-16 flex flex-col items-center justify-center gap-2 text-sm"},qf={key:0,class:"flex-shrink-0 size-8"},Kf=["src","alt"],Yf={class:"max-w-[70%]"},Qf={class:"text-sm leading-[1.5] whitespace-pre-wrap break-words"},Xf={key:0,class:"flex gap-2 justify-start items-end mb-4"},em={class:"flex-shrink-0"},tm=["src","alt"],rm={class:"flex-shrink-0 pt-6 pb-2"},om=["placeholder","disabled"],nm=Pr({__name:"ElAgentChat",props:{agentController:{},agent:{}},setup(e){const t=kt(""),r=kt(),o=kt(),n=Qn(()=>Oh(e.agent));function a(e,t){const r=e[t],o=e[t+1];return!o||o.sender!==r.sender}async function i(){if(!t.value.trim()||!e.agentController||!e.agentController.textState.value.isConnected)return;const r=t.value;t.value="",o.value&&(o.value.style.height="auto",o.value.focus());try{await e.agentController.sendChatMessage(r),l()}catch(n){}}function s(e){"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),i())}function l(){r.value&&Rt(()=>{const e=r.value;e.scrollTop=e.scrollHeight})}function c(){if(!o.value)return;o.value.style.height="auto";const e=Math.min(o.value.scrollHeight,150);o.value.style.height=`${e}px`}_h(a,"shouldShowAvatar"),Kr(async()=>{if(e.agentController&&!e.agentController.textState.value.isConnected)try{await e.agentController.startTextConversation()}catch(t){}}),_h(i,"sendMessage"),_h(s,"handleKeydown"),_h(l,"scrollToBottom"),_h(c,"adjustTextareaHeight"),ar(t,()=>{Rt(()=>c())});const d=Qn(()=>{const t=e.agentController?.textState.value;return"disconnected"===t?.connectionStatus&&!!t?.error}),u=Qn(()=>{const t=e.agentController?.textState.value;return"connected"!==t?.connectionStatus&&!t?.error}),p=Qn(()=>d.value?"Agent is offline":u.value?"Connecting...":"Message"),h=Qn(()=>!e.agentController?.textState.value.isConnected);return ar(()=>e.agentController?.sharedMessages.value,e=>{e&&e.length>0&&Rt(()=>l())},{immediate:!0,deep:!0}),(i,l)=>(vn(),kn("div",Wf,[In("div",Hf,[An(sg,{agent:e.agent},null,8,["agent"])]),d.value?(vn(),kn("div",Gf,[l[1]||(l[1]=In("i",{class:"i-heroicons-cloud-arrow-down size-8 text-white/40"},null,-1)),In("span",null,Q(e.agentController?.textState.value.error),1)])):u.value?(vn(),kn("div",Jf,[An(Ih,{class:"size-4"})])):jn("",!0),In("div",{ref_key:"messagesContainer",ref:r,class:"flex-1 overflow-y-auto overflow-x-hidden py-8 space-y-1 min-h-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"},[(vn(!0),kn(un,null,lo(e.agentController?.sharedMessages.value.filter(e=>"system"!==e.sender)??[],(t,r)=>(vn(),kn("div",{key:t.id,class:H(["flex gap-2 items-end",{"justify-end":"user"===t.sender,"justify-start":"agent"===t.sender,"mb-4":a(e.agentController?.sharedMessages.value.filter(e=>"system"!==e.sender)??[],r)}])},["agent"===t.sender?(vn(),kn("div",qf,[a(e.agentController?.sharedMessages.value.filter(e=>"system"!==e.sender)??[],r)?(vn(),kn("img",{key:0,src:n.value,alt:e.agent.name,class:"size-7 rounded-full object-cover"},null,8,Kf)):jn("",!0)])):jn("",!0),In("div",Yf,[In("div",{class:H(["rounded-2xl px-3.5 py-1.5 backdrop-blur-sm","user"===t.sender?"bg-primary-500/80 text-white":"bg-white/15 text-white/95"])},[In("p",Qf,Q(t.text),1)],2)])],2))),128)),e.agentController?.textState.value.isThinking?(vn(),kn("div",Xf,[In("div",em,[In("img",{src:n.value,alt:e.agent.name,class:"size-8 rounded-full object-cover"},null,8,tm)]),l[2]||(l[2]=In("div",{class:"rounded-2xl px-4 py-2.5 bg-white/15 backdrop-blur-sm flex items-center"},[In("i",{class:"i-svg-spinners-3-dots-fade size-6 text-white/70"})],-1))])):jn("",!0)],512),In("div",rm,[tr(In("textarea",{ref_key:"textarea",ref:o,"onUpdate:modelValue":l[0]||(l[0]=e=>t.value=e),rows:"1",placeholder:p.value,disabled:h.value,style:{"font-size":"16px",resize:"none"},class:"w-full bg-white/10 backdrop-blur-sm border border-white/20 rounded-3xl px-5 py-3 text-white placeholder-white/50 focus:outline-none focus:border-white/40 disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",onKeydown:s},null,40,om),[[oi,t.value]]),l[3]||(l[3]=In("div",{class:"text-[10px] text-white/40 text-center mt-2"}," Press Enter to send, Shift+Enter for new line ",-1))])]))}}),am={class:"flex flex-col items-center text-center gap-4"},im={class:"relative flex-shrink-0"},sm={class:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white"},lm=["src","alt"],cm={class:"min-w-0"},dm={class:"text-3xl font-light text-white mb-2 truncate"},um={class:"text-base font-light text-white/60 line-clamp-1"},pm=Pr({__name:"ElAgentHeader",props:{agent:{}},setup(e){function t(){return e.agent.avatar?.src?e.agent.avatar.src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+"}return _h(t,"getAvatarSrc"),(r,o)=>(vn(),kn("div",am,[In("div",im,[In("div",sm,[In("img",{src:t(),alt:e.agent.name,class:"w-full h-full object-cover",onError:o[0]||(o[0]=(...e)=>zt(Nh)&&zt(Nh)(...e))},null,40,lm)]),o[1]||(o[1]=In("div",{class:"absolute top-1.5 right-1.5"},[In("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}}),In("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white"})],-1))]),In("div",cm,[In("h1",dm,Q(e.agent.name),1),In("p",um,Q(e.agent.title),1)])]))}}),hm={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},gm=Pr({name:"SelfSidebarClose",__name:"AgentSidebarClose",emits:["click"],setup(e){const t=kt(!1);return Kr(()=>{setTimeout(()=>{t.value=!0},100)}),(e,r)=>(vn(),kn("a",{class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:r[0]||(r[0]=t=>e.$emit("click",t))},[r[1]||(r[1]=In("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),In("span",hm,[In("span",{class:H(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),In("span",{class:H(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])]))}}),fm={key:0,class:"px-9 pt-12 pb-4"},mm={class:"text-base font-medium text-theme-400"},vm={key:1,class:"px-4 pb-8 border-b border-white/10"},bm=["disabled","onClick"],wm={class:"flex items-center gap-3"},ym={class:"flex-1"},km={key:0,class:"text-xs text-white/50 mt-0.5"},xm={class:"p-6"},_m=Pr({name:"ElSidebar",inheritAttrs:!1,__name:"ElSidebar",props:{modelValue:{type:Boolean},items:{},position:{},title:{},widthClasses:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,n=r.position||"left",a=r.widthClasses||"w-[80%] max-w-[300px]",i=Qn({get:_h(()=>r.modelValue,"get"),set:_h(e=>o("update:modelValue",e),"set")}),s=Qn(()=>r.items.filter(e=>!e.isHidden));function l(e){e.isDisabled||(e.onClick?e.onClick({item:e,event:new MouseEvent("click")}):e.href&&(e.href.includes("http")?window.open(e.href,e.target||"_self")?.focus():window.location.href=e.href),i.value=!1)}_h(l,"handleItemClick");const c=Qn(()=>"left"===n?{enter:"-translate-x-full",leave:"-translate-x-full",position:"justify-start",closeButton:"-right-16"}:{enter:"translate-x-full",leave:"translate-x-full",position:"justify-end",closeButton:"-left-16"});return(t,r)=>(vn(),kn(un,null,[An(ua,{"enter-active-class":"transition-opacity duration-300 ease-out","leave-active-class":"transition-opacity duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:er(()=>[i.value?(vn(),kn("div",{key:0,class:"absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:r[0]||(r[0]=e=>i.value=!1)})):jn("",!0)]),_:1}),An(ua,{"enter-active-class":"transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":c.value.enter,"enter-to-class":"translate-x-0","leave-from-class":"translate-x-0","leave-to-class":c.value.leave},{default:er(()=>[i.value?(vn(),kn("div",{key:0,class:H(["absolute inset-0 z-50 flex",c.value.position]),onClick:r[3]||(r[3]=e=>i.value=!1)},[In("div",{class:H(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center",zt(a)]),onClick:r[2]||(r[2]=ii(()=>{},["stop"]))},[An(gm,{class:H(["absolute top-4 z-10 text-white",c.value.closeButton]),onClick:r[1]||(r[1]=e=>i.value=!1)},null,8,["class"]),e.title?(vn(),kn("div",fm,[In("h3",mm,Q(e.title),1)])):jn("",!0),t.$slots.header?(vn(),kn("div",vm,[co(t.$slots,"header")])):jn("",!0),In("div",{class:H(["flex-1 p-6 space-y-2 overflow-y-auto",{"pt-6":!e.title&&!t.$slots.header,"pt-4":e.title||t.$slots.header}])},[An(Ga,{"enter-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":"left"===zt(n)?"-translate-x-4 opacity-0":"translate-x-4 opacity-0","enter-to-class":"translate-x-0 opacity-100","leave-from-class":"translate-x-0 opacity-100","leave-to-class":"left"===zt(n)?"-translate-x-4 opacity-0":"translate-x-4 opacity-0"},{default:er(()=>[(vn(!0),kn(un,null,lo(s.value,(e,t)=>(vn(),kn("button",{key:e.key||e.label||t,style:Z({transitionDelay:40*t+"ms"}),class:H(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group",[e.isActive?"bg-primary-500/20 border border-primary-500/40":"hover:bg-white/10",e.isDisabled&&"opacity-50 cursor-not-allowed"]]),disabled:e.isDisabled,onClick:_h(t=>l(e),"onClick")},[In("div",wm,[e.icon?.src?(vn(),kn("i",{key:0,class:H(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110",[e.icon.src,e.isActive?"text-primary-400":"text-white/70 group-hover:text-white"]])},null,2)):jn("",!0),In("div",ym,[In("div",{class:H(["font-medium text-sm",e.isActive?"text-primary-300":"text-white"])},Q(e.label),3),e.subLabel?(vn(),kn("div",km,Q(e.subLabel),1)):jn("",!0)])])],14,bm))),128))]),_:1},8,["enter-from-class","leave-to-class"])],2),In("div",xm,[co(t.$slots,"footer",{},()=>[r[4]||(r[4]=In("div",{class:"text-center"},[In("p",{class:"text-[10px] text-white/40 font-sans"},[Mn(" AI Agent by "),In("a",{href:"https://www.pagelines.com",target:"_blank",class:"text-white/60 hover:text-white/80 transition-colors"},"PageLines")])],-1))])])],2)],2)):jn("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],64))}}),Cm=Pr({name:"AgentModeSidebar",__name:"ElAgentModeSidebar",props:{modelValue:{type:Boolean},agentController:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,n=Qn({get:_h(()=>r.modelValue,"get"),set:_h(e=>o("update:modelValue",e),"set")}),a=Qn(()=>r.agentController?.agentMode?.value??"self"),i=Qn(()=>Th.map(e=>({key:e.mode,icon:{src:e.icon},label:e.label,isActive:a.value===e.mode,onClick:_h(()=>{r.agentController?.setMode(e.mode)},"onClick")})));return(e,t)=>(vn(),xn(_m,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),items:i.value,position:"right",title:"Mode","width-classes":"w-[80%] max-w-[255px]"},null,8,["modelValue","items"]))}}),zm=Pr({name:"AgentSidebar",__name:"ElAgentSidebar",props:{modelValue:{type:Boolean},agent:{},sdk:{},title:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,n=Qn({get:_h(()=>r.modelValue,"get"),set:_h(e=>o("update:modelValue",e),"set")}),a=Qn(()=>{const e=[{key:"share",icon:{src:"i-tabler-share"},label:"Share This Digital Agent",onClick:_h(()=>{const e=`${window.location.origin}/@${r.agent.handle||r.agent.agentId}`;navigator.clipboard.writeText(e)},"onClick")},{key:"profile",icon:{src:"i-tabler-user"},label:"Visit Full Profile",onClick:_h(()=>{window.open(`/@${r.agent.handle||r.agent.agentId}`,"_blank")},"onClick")},{key:"create",icon:{src:"i-tabler-sparkles"},label:"Create Your Own",onClick:_h(()=>{window.open("/auth","_blank")},"onClick")}];return r.sdk.activeUser.value&&e.push({key:"logout",icon:{src:"i-tabler-logout"},label:"Logout",onClick:_h(async()=>{await r.sdk.logout()},"onClick")}),e});return(t,r)=>(vn(),xn(_m,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=e=>n.value=e),items:a.value,position:"left",title:e.title||"Menu"},null,8,["modelValue","items","title"]))}}),Sm={key:0,class:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"},Im=["data-quality"],Am={class:"text-sm"},Em={key:0,class:"flex-1 basis-0 flex justify-end"},Tm={key:0,class:"h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/agent:px-6 max-w-md mx-auto w-full"},Mm={class:"flex-1 basis-0 flex flex-col justify-start pt-8 gap-7"},jm={key:0,class:"flex items-center justify-center gap-3"},$m=["href"],Om={key:1,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"},Pm={class:"max-w-md mx-auto"},Nm={key:2,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"},Lm={class:"flex-1 min-h-0 max-w-md mx-auto w-full"},Dm={key:2,class:"bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"},Fm={class:"text-center max-w-md space-y-4"},Um={class:"text-sm text-white/70 leading-relaxed"},Zm={key:3,class:"bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"},Bm=Pr({__name:"AgentChat",props:{sdk:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean,default:!1},isActive:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},theme:{default:"green"},requireAuth:{type:Boolean,default:!1}},emits:["close","error"],setup(e,{emit:t}){const r=t,o=xt(),n=kt(!1),a=kt(!1),i=kt(),s=kt(),l=Qn(()=>o.value?.agentMode?.value??"self"),c=Qn(()=>void 0!==e.sdk.activeUser.value),d=Qn(()=>Th.find(e=>e.mode===l.value));function u(){o.value&&o.value.destroy();try{o.value=new Uh({sdk:e.sdk,agent:e.agent,context:e.context,firstMessage:e.firstMessage})}catch(t){throw t}}function p(e){if(!s.value)return;const t=Eh(e);Object.entries(t).forEach(([e,t])=>{s.value.style.setProperty(`--primary-${e}`,t)})}_h(u,"createAgentController"),_h(p,"applyTheme"),Kr(()=>{try{u(),p(e.theme)}catch(t){const e=t instanceof Error?t.message:"Failed to initialize digital agent";i.value=e,r("error",e)}}),eo(()=>{o.value&&o.value.destroy()}),ar(()=>e.theme,e=>{p(e)}),ar(()=>e.sdk.activeUser.value,(e,t)=>{t&&!e&&o.value&&o.value.setMode("self")});const h=Qn(()=>!(!e.agent.cover?.src||"low"!==e.agent.cover?.quality)||!(!e.agent.avatar?.src||"low"!==e.agent.avatar?.quality)),g=Qn(()=>{const e=[h.value?"backdrop-blur-sm":""];return h.value&&"self"===l.value?e.push("from-black/80 via-black/60 to-black/80"):"self"===l.value?e.push("from-black/70 via-black/50 to-black/80"):e.push("from-black/90 via-black/90 to-black/100"),e.join(" ")}),f={phone:"i-heroicons-phone",calendar:"i-heroicons-calendar",question:"i-heroicons-question-mark-circle",message:"i-heroicons-chat-bubble-left-right",sparkles:"i-heroicons-sparkles"},m=Qn(()=>Dh({template:e.buttonText||"Talk to {name}",agent:e.agent})),v=Qn(()=>f[e.buttonIcon||"phone"]||f.phone);return(t,u)=>(vn(),kn("div",{ref_key:"rootElement",ref:s,key:zt(Oh)(e.agent),class:"pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative","data-test":"agent-chat"},[e.loading?(vn(),kn("div",Sm,[An(Ih,{class:"text-white size-8"})])):e.agent&&!i.value?(vn(),kn("div",{key:1,class:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:Z({backgroundImage:`url(${zt(Oh)(e.agent)||zt(Ph)()})`}),"data-quality":e.agent.avatar?.quality||"none"},[In("div",{class:H(["absolute inset-0 bg-gradient-to-br z-0",g.value])},null,2),In("div",{class:H(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform",e.isActive?"opacity-100 translate-y-0":"opacity-0 translate-y-2"])},[In("div",{class:H(["relative z-30 p-2","self"!==l.value?"backdrop-blur-lg":""])},[In("div",{class:H(["flex items-center",e.hasClose?"":"justify-between"])},[In("div",{class:H(e.hasClose?"flex-1 basis-0":"")},[In("button",{class:"cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",onClick:u[0]||(u[0]=e=>n.value=!0)},[...u[6]||(u[6]=[In("i",{class:"i-tabler-menu size-7"},null,-1)])])],2),In("button",{class:H(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0",{"bg-white/10":a.value}]),onClick:u[1]||(u[1]=e=>a.value=!0)},[In("i",{class:H([d.value?.icon,"size-4 opacity-60"])},null,2),In("span",Am,Q(d.value?.label),1),u[7]||(u[7]=In("i",{class:"i-tabler-chevron-down size-4"},null,-1))],2),e.hasClose?(vn(),kn("div",Em,[In("button",{class:"cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",onClick:u[2]||(u[2]=ii(e=>r("close","button"),["stop"]))},[...u[8]||(u[8]=[In("i",{class:"size-6 i-tabler-x"},null,-1)])])])):jn("",!0)],2)],2),"self"===l.value?(vn(),kn("div",Tm,[u[9]||(u[9]=In("div",{class:"flex-1 basis-0 mb-12"},null,-1)),An(pm,{agent:e.agent},null,8,["agent"]),In("div",Mm,[An(Vh,{theme:"primary",size:"lg",class:"w-full",icon:v.value,"data-test":"voice-button",onClick:u[3]||(u[3]=e=>o.value?.setMode("talk"))},{default:er(()=>[Mn(Q(m.value),1)]),_:1},8,["icon"]),e.agent.accounts&&e.agent.accounts.length>0?(vn(),kn("div",jm,[(vn(!0),kn(un,null,lo(e.agent.accounts.filter(e=>zt(kh)[e.platform]),e=>(vn(),kn("a",{key:`${e.platform}-${e.handle}`,href:zt(kh)[e.platform].getUrl(e.handle),target:"_blank",class:"size-12 rounded-full text-white/60 hover:text-white hover:bg-white/5 border border-white/0 hover:border-white/10 flex items-center justify-center transition-all duration-200 hover:scale-105"},[In("i",{class:H([zt(kh)[e.platform].icon,"size-5"])},null,2)],8,$m))),128))])):jn("",!0)])])):"talk"===l.value?(vn(),kn("div",Om,[e.requireAuth&&!c.value?(vn(),xn(rg,{key:0,sdk:e.sdk},null,8,["sdk"])):(vn(),kn(un,{key:1},[In("div",null,[In("div",Pm,[An(sg,{agent:e.agent},null,8,["agent"])])]),An(nm,{"agent-controller":o.value,agent:e.agent},null,8,["agent-controller","agent"])],64))])):(vn(),kn("div",Nm,[In("div",Lm,["chat"===l.value?(vn(),kn(un,{key:0},[e.requireAuth&&!c.value?(vn(),xn(rg,{key:0,sdk:e.sdk},null,8,["sdk"])):(vn(),xn(nm,{key:1,"agent-controller":o.value,agent:e.agent},null,8,["agent-controller","agent"]))],64)):"info"===l.value?(vn(),xn(Rf,{key:1,agent:e.agent},null,8,["agent"])):jn("",!0)])])),In("div",{class:H(["relative z-20 text-center py-5 px-6","info"===l.value?"hidden":""])},[...u[10]||(u[10]=[In("a",{href:"https://www.pagelines.com",class:"flex items-center justify-center gap-1.5 text-[10px] font-sans font-normal text-white/50 hover:text-white/70 transition-colors"},[In("span",{class:""},"AI Agent\u2122"),In("span",{class:"text-white/20"},"by"),In("span",null,"PageLines")],-1)])],2)],2)],12,Im)):i.value?(vn(),kn("div",Dm,[In("div",Fm,[u[11]||(u[11]=In("div",{class:"flex justify-center"},[In("div",{class:"rounded-full bg-red-500/20 flex items-center justify-center size-10"},[In("i",{class:"i-tabler-alert-circle size-6 text-red-400"})])],-1)),u[12]||(u[12]=In("h3",{class:"text-lg font-medium"}," Agent Error ",-1)),In("p",Um,Q(i.value),1)])])):(vn(),kn("div",Zm," There was an error loading the digital agent. Please try again later. ")),An(zm,{modelValue:n.value,"onUpdate:modelValue":u[4]||(u[4]=e=>n.value=e),agent:e.agent,sdk:e.sdk,title:e.agent.name,"data-test":"agent-sidebar"},null,8,["modelValue","agent","sdk","title"]),An(Cm,{modelValue:a.value,"onUpdate:modelValue":u[5]||(u[5]=e=>a.value=e),"agent-controller":o.value,"data-test":"agent-mode-sidebar"},null,8,["modelValue","agent-controller"])]))}}),Vm={class:"agent-wrap"},Rm={key:0,class:"flex items-center justify-center h-full"},Wm=Pr({__name:"AgentWrap",props:{sdk:{},agent:{},handle:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},apiBase:{}},setup(e){const t=Lp("AgentWrap"),r=e,o=r.sdk||ih.getInstance({isDev:typeof window<"u"&&("localhost"===window.location.hostname||window.location.hostname.includes("127.0.0.1")),...r.apiBase&&{apiBase:r.apiBase}}),n=kt(!r.agent),a=kt(r.agent),i=kt();return Kr(async()=>{if(r.agent)return t.debug("Agent provided via props, skipping fetch",{agentId:r.agent.agentId,handle:r.agent.handle}),void(n.value=!1);if(!r.handle)return i.value="No handle or agent provided",t.warn("AgentWrap mounted without handle or agent",{propsReceived:{handle:r.handle,agent:r.agent,context:r.context,apiBase:r.apiBase},sdkState:{isDev:o.isDev,apiBase:o.apiBase}}),void(n.value=!1);try{n.value=!0,t.debug("Fetching public agent",{handle:r.handle});const e=await o.getPublicAgent({handle:r.handle});e?(a.value=e,t.debug("Successfully fetched public agent",{agentId:e.agentId,handle:e.handle}),e.agentId&&o.track({event:"view_profile",agentId:e.agentId,properties:{viewSource:"widget"}})):(i.value=o.error.value||"Agent not found",t.error("Failed to fetch public agent - no data returned",{handle:r.handle,sdkError:o.error.value,sdkState:{isDev:o.isDev,apiBase:o.apiBase,loading:o.loading.value}}))}catch(e){i.value=e instanceof Error?e.message:"Failed to fetch agent",t.error("Exception while fetching public agent",{handle:r.handle,error:e instanceof Error?{message:e.message,stack:e.stack}:e,sdkState:{isDev:o.isDev,apiBase:o.apiBase,error:o.error.value}})}finally{n.value=!1,a.value||t.debug("AgentWrap component will render empty (silent failure)",{state:{loading:n.value,hasAgent:!!a.value,error:i.value},props:{handle:r.handle,context:r.context,apiBase:r.apiBase},sdkState:{isDev:o.isDev,apiBase:o.apiBase,error:o.error.value}})}}),(t,r)=>(vn(),kn("div",Vm,[n.value?(vn(),kn("div",Rm,[...r[0]||(r[0]=[In("div",{class:"animate-spin rounded-full size-6 border-b-2 border-white"},null,-1)])])):a.value?co(t.$slots,"default",{key:1,sdk:zt(o),agent:a.value,context:e.context,firstMessage:e.firstMessage,buttonText:e.buttonText,buttonIcon:e.buttonIcon,loading:n.value}):jn("",!0)]))}}),Hm=Pr({__name:"AgentProvider",props:{sdk:{},agent:{},handle:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},apiBase:{}},emits:["close","error"],setup(e,{emit:t}){const r=e,o=t;return(e,t)=>(vn(),xn(Wm,Nn(r,{class:"agent-provider size-full relative"}),{default:er(e=>[An(Bm,{sdk:e.sdk,agent:e.agent,context:e.context,"first-message":e.firstMessage,"button-text":r.buttonText,"button-icon":r.buttonIcon,"has-close":r.hasClose,"is-active":!0,class:"size-full",onClose:t[0]||(t[0]=e=>o("close",e)),onError:t[1]||(t[1]=e=>o("error",e))},null,8,["sdk","agent","context","first-message","button-text","button-icon","has-close"])]),_:1},16))}});var Gm=Object.defineProperty;const Jm=Pr({__name:"AgentWidgetInline",props:{sdk:{},handle:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{}},setup(e,{expose:t}){const r=e,o=kt(r.agent),n=kt(r.context),a=kt(r.firstMessage),i=kt(r.buttonText),s=kt(r.buttonIcon);function l(e){void 0!==e.agent&&(o.value=e.agent),void 0!==e.context&&(n.value=e.context),void 0!==e.firstMessage&&(a.value=e.firstMessage),void 0!==e.buttonText&&(i.value=e.buttonText),void 0!==e.buttonIcon&&(s.value=e.buttonIcon)}return(e=>{Gm(e,"name",{value:"update",configurable:!0})})(l),t({update:l}),(t,r)=>(vn(),xn(Hm,{sdk:e.sdk,handle:e.handle,agent:o.value,context:n.value,"first-message":a.value,"button-text":i.value,"button-icon":s.value},null,8,["sdk","handle","agent","context","first-message","button-text","button-icon"]))}}),qm=Object.freeze(Object.defineProperty({__proto__:null,default:Jm},Symbol.toStringTag,{value:"Module"}));var Km=Object.defineProperty,Ym=(e,t)=>Km(e,"name",{value:t,configurable:!0});const Qm={key:0,class:"relative h-full w-full"},Xm={class:"group relative h-full w-full rounded-3xl overflow-hidden shadow-lg transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:shadow-2xl hover:translate-y-[-1px] hover:brightness-110 active:scale-[1.06] active:-translate-y-0.5 active:duration-100"},ev=["src","alt"],tv=Pr({__name:"AgentWidgetPopup",props:{sdk:{},handle:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},position:{}},setup(e,{expose:t}){const r=e,o=kt(!1),n=kt(!1),a=kt(r.agent),i=kt(r.context),s=kt(r.firstMessage),l=kt(r.buttonText),c=kt(r.buttonIcon);function d(){o.value=!o.value}function u(){o.value=!0}function p(){o.value=!1}function h(){p()}function g(e){void 0!==e.agent&&(a.value=e.agent),void 0!==e.context&&(i.value=e.context),void 0!==e.firstMessage&&(s.value=e.firstMessage),void 0!==e.buttonText&&(l.value=e.buttonText),void 0!==e.buttonIcon&&(c.value=e.buttonIcon)}return Ym(d,"toggle"),ar(o,async e=>{e?(await Rt(),setTimeout(()=>{n.value=!0},400)):n.value=!1}),Ym(u,"open"),Ym(p,"close"),Ym(h,"handleClose"),Ym(g,"update"),t({toggle:d,open:u,close:p,update:g}),(t,u)=>(vn(),xn(Wm,{sdk:e.sdk,handle:e.handle,agent:a.value,context:i.value,"first-message":s.value,"button-text":l.value,"button-icon":c.value},{default:er(({agent:e,sdk:t})=>[e?(vn(),kn("div",{key:0,class:H(["fixed z-[999999] pointer-events-auto",["bottom-left"===r.position?"bottom-6 left-6":"top-right"===r.position?"top-6 right-6":"top-left"===r.position?"top-6 left-6":"bottom-6 right-6"]])},[In("div",{class:H(["transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] transform-gpu",[o.value?"widget-expanded w-96 h-[600px] max-w-[calc(100vw-48px)] max-h-[calc(100vh-48px)] rounded-3xl opacity-100 scale-100":"widget-button w-[80px] h-[80px] opacity-100 scale-100 flex items-center justify-center cursor-pointer"]]),style:Z({"transform-origin":"bottom-left"===r.position?"bottom left":"top-right"===r.position?"top right":"top-left"===r.position?"top left":"bottom right"}),onClick:u[0]||(u[0]=e=>o.value?void 0:d())},[o.value?jn("",!0):(vn(),kn("div",Qm,[In("div",Xm,[In("img",{src:zt(Oh)(e)||zt(Ph)(),alt:`${e.name} digital agent`,class:"h-full w-full object-cover pointer-events-none",width:"80",height:"80"},null,8,ev),u[1]||(u[1]=In("div",{class:"absolute inset-0 pointer-events-none bg-gradient-to-br from-transparent via-black/10 to-black/40 opacity-60 transition-opacity duration-300 group-hover:opacity-40"},null,-1))]),u[2]||(u[2]=In("div",{class:"absolute top-0.5 right-0.5"},[In("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}}),In("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"})],-1))])),o.value&&e?(vn(),xn(Bm,{key:1,class:"rounded-3xl shadow-2xl border border-white/10",sdk:t,agent:e,context:i.value,"first-message":s.value,"button-text":l.value,"button-icon":c.value,"has-close":!0,"is-active":n.value,onClose:h},null,8,["sdk","agent","context","first-message","button-text","button-icon","is-active"])):jn("",!0)],6)],2)):jn("",!0)]),_:1},8,["sdk","handle","agent","context","first-message","button-text","button-icon"]))}}),rv=Object.freeze(Object.defineProperty({__proto__:null,default:tv},Symbol.toStringTag,{value:"Module"}));var ov=Object.defineProperty;const nv={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},av=Pr({name:"FClose",__name:"FClose",emits:["click"],setup(e){const t=kt(!1);return Kr(()=>{setTimeout(()=>{t.value=!0},100)}),(e,r)=>(vn(),kn("a",{class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:r[0]||(r[0]=t=>e.$emit("click",t))},[r[1]||(r[1]=In("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),In("span",nv,[In("span",{class:H(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),In("span",{class:H(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])]))}}),iv={class:"flex h-full overflow-scroll no-scrollbar items-center justify-center text-center p-4 py-8"},sv={key:0,class:"text-base p-4 font-semibold"},lv={key:1,class:"flex items-center gap-2 px-2"},cv=Pr({inheritAttrs:!1,name:"FModal",__name:"FModal",props:{vis:{type:Boolean,default:!1},modalClass:{},styleClass:{},fullScreen:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!1},title:{default:""},transitionMode:{default:"modal"},teleportTo:{default:"body"},disableTeleport:{type:Boolean,default:!1}},emits:["update:vis","close","escape"],setup(e,{emit:t}){const r=t,o=kt(!1);function n(e){const{reason:t}=e;r("update:vis",!1),r("close",!0),"escape"===t&&r("escape",!0)}(e=>{ov(e,"name",{value:"close",configurable:!0})})(n);const a=e.modalClass?[e.modalClass]:["max-w-screen-md p-24"],i=e.styleClass?[e.styleClass]:["bg-theme-0 text-theme-900","shadow-xl"];e.fullScreen?a.push("fixed inset-0"):a.push("rounded-2xl my-6 mx-3");const s=["relative","text-left","transform","transition-all","w-full","overflow-hidden",...a,...i],l=kt(!1),c=[];Kr(async()=>{o.value=!0;const t=ar(()=>e.vis,e=>{e?setTimeout(()=>l.value=!0,300):l.value=!1},{immediate:!0});c.push(t)}),eo(()=>{c.forEach(e=>e())});const d=Qn(()=>"slideUp"===e.transitionMode?{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 translate-y-full scale-95",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 translate-y-full scale-95"}:{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 scale-75",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 scale-75"});return(t,r)=>o.value?(vn(),xn(br,{key:0,to:e.teleportTo,disabled:e.disableTeleport},[In("div",{class:H(["fixed inset-0 z-50",e.vis?"":"pointer-events-none"]),"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},[An(ua,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:er(()=>[e.vis?(vn(),kn("div",{key:0,class:"fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity",onClick:r[0]||(r[0]=e=>n({reason:"escape"}))})):jn("",!0)]),_:1}),In("div",{class:"fixed inset-0 z-40 overflow-y-auto",onClick:r[3]||(r[3]=e=>n({reason:"escape"}))},[In("div",iv,[An(ua,G(En(d.value)),{default:er(()=>[e.vis?(vn(),kn("div",{key:0,class:H([s,"w-full"]),onClick:r[2]||(r[2]=ii(()=>{},["stop"]))},[e.hasClose||e.title||t.$slots.actions?(vn(),kn("div",{key:0,class:H(e.title||!e.hasClose&&!t.$slots.actions?"flex justify-between items-center":"absolute top-0 right-0 z-10")},[e.title?(vn(),kn("h2",sv,Q(e.title),1)):jn("",!0),e.hasClose||t.$slots.actions?(vn(),kn("div",lv,[co(t.$slots,"actions"),e.hasClose?(vn(),xn(av,{key:0,class:"relative","data-test-id":"close-modal",onClick:r[1]||(r[1]=ii(e=>n({reason:"escape"}),["stop"]))})):jn("",!0)])):jn("",!0)],2)):jn("",!0),co(t.$slots,"default")])):jn("",!0)]),_:3},16)])])],2)],8,["to","disabled"])):jn("",!0)}});var dv=Object.defineProperty,uv=(e,t)=>dv(e,"name",{value:t,configurable:!0});const pv=Pr({__name:"AgentWidgetModal",props:{sdk:{},handle:{},agent:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},onClose:{type:Function}},setup(e,{expose:t}){const r=e,o=kt(r.agent),n=kt(r.context),a=kt(r.firstMessage),i=kt(r.buttonText),s=kt(r.buttonIcon),l=kt(!1);function c(e){void 0!==e.agent&&(o.value=e.agent),void 0!==e.context&&(n.value=e.context),void 0!==e.firstMessage&&(a.value=e.firstMessage),void 0!==e.buttonText&&(i.value=e.buttonText),void 0!==e.buttonIcon&&(s.value=e.buttonIcon)}function d(){l.value=!1,setTimeout(()=>{r.onClose&&r.onClose()},300)}function u(){l.value=!0}return Kr(async()=>{await Rt(),setTimeout(()=>{l.value=!0},10)}),uv(c,"update"),uv(d,"close"),uv(u,"open"),t({update:c,close:d,open:u}),(t,r)=>(vn(),xn(cv,{vis:l.value,"disable-teleport":!0,"modal-class":"max-w-4xl h-[80vh] md:h-[600px]","has-close":!1,"onUpdate:vis":r[0]||(r[0]=e=>l.value=e),onClose:d},{default:er(()=>[An(Hm,{sdk:e.sdk,handle:e.handle,agent:o.value,context:n.value,"first-message":a.value,"button-text":i.value,"button-icon":s.value,"has-close":!0,onClose:d},null,8,["sdk","handle","agent","context","first-message","button-text","button-icon"])]),_:1},8,["vis"]))}}),hv=Object.freeze(Object.defineProperty({__proto__:null,default:pv},Symbol.toStringTag,{value:"Module"}));return e.PLWidget=ph,e.default=ph,e.initializeWidgets=vh,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),e}({});
|